UNPKG

@hey-web-components/monaco-editor

Version:
7 lines (5 loc) 233 kB
(function(){"use strict";var $s,Hs,Ws,zs;class Os{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?Fe.isErrorNoTelemetry(t)?new Fe(t.message+` `+t.stack):new Error(t.message+` `+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const Gs=new Os;function Ze(e){js(e)||Gs.onUnexpectedError(e)}function yn(e){if(e instanceof Error){const{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:Fe.isErrorNoTelemetry(e)}}return e}const Ut="Canceled";function js(e){return e instanceof Xs?!0:e instanceof Error&&e.name===Ut&&e.message===Ut}class Xs extends Error{constructor(){super(Ut),this.name=this.message}}class Fe extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof Fe)return t;const n=new Fe;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class ie extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,ie.prototype)}}function Qs(e,t){const n=this;let r=!1,s;return function(){return r||(r=!0,s=e.apply(n,arguments)),s}}var ft;(function(e){function t(x){return x&&typeof x=="object"&&typeof x[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*s(x){yield x}e.single=s;function i(x){return t(x)?x:s(x)}e.wrap=i;function o(x){return x||n}e.from=o;function*l(x){for(let p=x.length-1;p>=0;p--)yield x[p]}e.reverse=l;function u(x){return!x||x[Symbol.iterator]().next().done===!0}e.isEmpty=u;function c(x){return x[Symbol.iterator]().next().value}e.first=c;function h(x,p){let L=0;for(const A of x)if(p(A,L++))return!0;return!1}e.some=h;function f(x,p){for(const L of x)if(p(L))return L}e.find=f;function*d(x,p){for(const L of x)p(L)&&(yield L)}e.filter=d;function*m(x,p){let L=0;for(const A of x)yield p(A,L++)}e.map=m;function*g(x,p){let L=0;for(const A of x)yield*p(A,L++)}e.flatMap=g;function*b(...x){for(const p of x)yield*p}e.concat=b;function _(x,p,L){let A=L;for(const E of x)A=p(A,E);return A}e.reduce=_;function*v(x,p,L=x.length){for(p<0&&(p+=x.length),L<0?L+=x.length:L>x.length&&(L=x.length);p<L;p++)yield x[p]}e.slice=v;function S(x,p=Number.POSITIVE_INFINITY){const L=[];if(p===0)return[L,x];const A=x[Symbol.iterator]();for(let E=0;E<p;E++){const B=A.next();if(B.done)return[L,e.empty()];L.push(B.value)}return[L,{[Symbol.iterator](){return A}}]}e.consume=S;async function N(x){const p=[];for await(const L of x)p.push(L);return Promise.resolve(p)}e.asyncToArray=N})(ft||(ft={}));function T1(e){return e}function I1(e,t){}function En(e){if(ft.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Ys(...e){return dt(()=>En(e))}function dt(e){return{dispose:Qs(()=>{e()})}}const Pt=class Pt{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{En(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Pt.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(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&this._toDispose.delete(t)}};Pt.DISABLE_DISPOSED_WARNING=!1;let Ke=Pt;const Rn=class Rn{constructor(){this._store=new Ke,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};Rn.None=Object.freeze({dispose(){}});let De=Rn;const Ge=class Ge{constructor(t){this.element=t,this.next=Ge.Undefined,this.prev=Ge.Undefined}};Ge.Undefined=new Ge(void 0);let O=Ge;class Js{constructor(){this._first=O.Undefined,this._last=O.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===O.Undefined}clear(){let t=this._first;for(;t!==O.Undefined;){const n=t.next;t.prev=O.Undefined,t.next=O.Undefined,t=n}this._first=O.Undefined,this._last=O.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new O(t);if(this._first===O.Undefined)this._first=r,this._last=r;else if(n){const i=this._last;this._last=r,r.prev=i,i.next=r}else{const i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(r))}}shift(){if(this._first!==O.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==O.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==O.Undefined&&t.next!==O.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===O.Undefined&&t.next===O.Undefined?(this._first=O.Undefined,this._last=O.Undefined):t.next===O.Undefined?(this._last=this._last.prev,this._last.next=O.Undefined):t.prev===O.Undefined&&(this._first=this._first.next,this._first.prev=O.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==O.Undefined;)yield t.element,t=t.next}}const Zs=globalThis.performance&&typeof globalThis.performance.now=="function";class mt{static create(t){return new mt(t)}constructor(t){this._now=Zs&&t===!1?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 this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var gt;(function(e){e.None=()=>De.None;function t(C,w){return d(C,()=>{},0,void 0,!0,void 0,w)}e.defer=t;function n(C){return(w,y=null,R)=>{let P=!1,I;return I=C(U=>{if(!P)return I?I.dispose():P=!0,w.call(y,U)},null,R),P&&I.dispose(),I}}e.once=n;function r(C,w){return e.once(e.filter(C,w))}e.onceIf=r;function s(C,w,y){return h((R,P=null,I)=>C(U=>R.call(P,w(U)),null,I),y)}e.map=s;function i(C,w,y){return h((R,P=null,I)=>C(U=>{w(U),R.call(P,U)},null,I),y)}e.forEach=i;function o(C,w,y){return h((R,P=null,I)=>C(U=>w(U)&&R.call(P,U),null,I),y)}e.filter=o;function l(C){return C}e.signal=l;function u(...C){return(w,y=null,R)=>{const P=Ys(...C.map(I=>I(U=>w.call(y,U))));return f(P,R)}}e.any=u;function c(C,w,y,R){let P=y;return s(C,I=>(P=w(P,I),P),R)}e.reduce=c;function h(C,w){let y;const R={onWillAddFirstListener(){y=C(P.fire,P)},onDidRemoveLastListener(){y==null||y.dispose()}},P=new oe(R);return w==null||w.add(P),P.event}function f(C,w){return w instanceof Array?w.push(C):w&&w.add(C),C}function d(C,w,y=100,R=!1,P=!1,I,U){let J,te,Je,Bt=0,Pe;const P1={leakWarningThreshold:I,onWillAddFirstListener(){J=C(F1=>{Bt++,te=w(te,F1),R&&!Je&&(qt.fire(te),te=void 0),Pe=()=>{const D1=te;te=void 0,Je=void 0,(!R||Bt>1)&&qt.fire(D1),Bt=0},typeof y=="number"?(clearTimeout(Je),Je=setTimeout(Pe,y)):Je===void 0&&(Je=0,queueMicrotask(Pe))})},onWillRemoveListener(){P&&Bt>0&&(Pe==null||Pe())},onDidRemoveLastListener(){Pe=void 0,J.dispose()}},qt=new oe(P1);return U==null||U.add(qt),qt.event}e.debounce=d;function m(C,w=0,y){return e.debounce(C,(R,P)=>R?(R.push(P),R):[P],w,void 0,!0,void 0,y)}e.accumulate=m;function g(C,w=(R,P)=>R===P,y){let R=!0,P;return o(C,I=>{const U=R||!w(I,P);return R=!1,P=I,U},y)}e.latch=g;function b(C,w,y){return[e.filter(C,w,y),e.filter(C,R=>!w(R),y)]}e.split=b;function _(C,w=!1,y=[],R){let P=y.slice(),I=C(te=>{P?P.push(te):J.fire(te)});R&&R.add(I);const U=()=>{P==null||P.forEach(te=>J.fire(te)),P=null},J=new oe({onWillAddFirstListener(){I||(I=C(te=>J.fire(te)),R&&R.add(I))},onDidAddFirstListener(){P&&(w?setTimeout(U):U())},onDidRemoveLastListener(){I&&I.dispose(),I=null}});return R&&R.add(J),J.event}e.buffer=_;function v(C,w){return(R,P,I)=>{const U=w(new N);return C(function(J){const te=U.evaluate(J);te!==S&&R.call(P,te)},void 0,I)}}e.chain=v;const S=Symbol("HaltChainable");class N{constructor(){this.steps=[]}map(w){return this.steps.push(w),this}forEach(w){return this.steps.push(y=>(w(y),y)),this}filter(w){return this.steps.push(y=>w(y)?y:S),this}reduce(w,y){let R=y;return this.steps.push(P=>(R=w(R,P),R)),this}latch(w=(y,R)=>y===R){let y=!0,R;return this.steps.push(P=>{const I=y||!w(P,R);return y=!1,R=P,I?P:S}),this}evaluate(w){for(const y of this.steps)if(w=y(w),w===S)break;return w}}function x(C,w,y=R=>R){const R=(...J)=>U.fire(y(...J)),P=()=>C.on(w,R),I=()=>C.removeListener(w,R),U=new oe({onWillAddFirstListener:P,onDidRemoveLastListener:I});return U.event}e.fromNodeEventEmitter=x;function p(C,w,y=R=>R){const R=(...J)=>U.fire(y(...J)),P=()=>C.addEventListener(w,R),I=()=>C.removeEventListener(w,R),U=new oe({onWillAddFirstListener:P,onDidRemoveLastListener:I});return U.event}e.fromDOMEventEmitter=p;function L(C){return new Promise(w=>n(C)(w))}e.toPromise=L;function A(C){const w=new oe;return C.then(y=>{w.fire(y)},()=>{w.fire(void 0)}).finally(()=>{w.dispose()}),w.event}e.fromPromise=A;function E(C,w){return C(y=>w.fire(y))}e.forward=E;function B(C,w,y){return w(y),C(R=>w(R))}e.runAndSubscribe=B;class Q{constructor(w,y){this._observable=w,this._counter=0,this._hasChanged=!1;const R={onWillAddFirstListener:()=>{w.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{w.removeObserver(this)}};this.emitter=new oe(R),y&&y.add(this.emitter)}beginUpdate(w){this._counter++}handlePossibleChange(w){}handleChange(w,y){this._hasChanged=!0}endUpdate(w){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function q(C,w){return new Q(C,w).emitter.event}e.fromObservable=q;function F(C){return(w,y,R)=>{let P=0,I=!1;const U={beginUpdate(){P++},endUpdate(){P--,P===0&&(C.reportChanges(),I&&(I=!1,w.call(y)))},handlePossibleChange(){},handleChange(){I=!0}};C.addObserver(U),C.reportChanges();const J={dispose(){C.removeObserver(U)}};return R instanceof Ke?R.add(J):Array.isArray(R)&&R.push(J),J}}e.fromObservableLight=F})(gt||(gt={}));const je=class je{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${je._idPool++}`,je.all.add(this)}start(t){this._stopWatch=new mt,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};je.all=new Set,je._idPool=0;let $t=je,Ks=-1;const Ft=class Ft{constructor(t,n,r=(Ft._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){var t;(t=this._stacks)==null||t.clear()}check(t,n){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const s=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;const[i,o]=this.getMostFrequentStack(),l=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${o}):`;console.warn(l),console.warn(i);const u=new ei(l,i);this._errorHandler(u)}return()=>{const i=this._stacks.get(t.value)||0;this._stacks.set(t.value,i-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,n=0;for(const[r,s]of this._stacks)(!t||n<s)&&(t=[r,s],n=s);return t}};Ft._idPool=1;let Ht=Ft;class Wt{static create(){const t=new Error;return new Wt(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class ei extends Error{constructor(t,n){super(t),this.name="ListenerLeakError",this.stack=n}}class ti extends Error{constructor(t,n){super(t),this.name="ListenerRefusalError",this.stack=n}}class zt{constructor(t){this.value=t}}const ni=2;class oe{constructor(t){var n,r,s,i;this._size=0,this._options=t,this._leakageMon=(n=this._options)!=null&&n.leakWarningThreshold?new Ht((t==null?void 0:t.onListenerError)??Ze,((r=this._options)==null?void 0:r.leakWarningThreshold)??Ks):void 0,this._perfMon=(s=this._options)!=null&&s._profName?new $t(this._options._profName):void 0,this._deliveryQueue=(i=this._options)==null?void 0:i.deliveryQueue}dispose(){var t,n,r,s;this._disposed||(this._disposed=!0,((t=this._deliveryQueue)==null?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(r=(n=this._options)==null?void 0:n.onDidRemoveLastListener)==null||r.call(n),(s=this._leakageMon)==null||s.dispose())}get event(){return this._event??(this._event=(t,n,r)=>{var l,u,c,h,f;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const d=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(d);const m=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],g=new ti(`${d}. HINT: Stack shows most frequent listener (${m[1]}-times)`,m[0]);return(((l=this._options)==null?void 0:l.onListenerError)||Ze)(g),De.None}if(this._disposed)return De.None;n&&(t=t.bind(n));const s=new zt(t);let i;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(s.stack=Wt.create(),i=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof zt?(this._deliveryQueue??(this._deliveryQueue=new ri),this._listeners=[this._listeners,s]):this._listeners.push(s):((c=(u=this._options)==null?void 0:u.onWillAddFirstListener)==null||c.call(u,this),this._listeners=s,(f=(h=this._options)==null?void 0:h.onDidAddFirstListener)==null||f.call(h,this)),this._size++;const o=dt(()=>{i==null||i(),this._removeListener(s)});return r instanceof Ke?r.add(o):Array.isArray(r)&&r.push(o),o}),this._event}_removeListener(t){var i,o,l,u;if((o=(i=this._options)==null?void 0:i.onWillRemoveListener)==null||o.call(i,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(u=(l=this._options)==null?void 0:l.onDidRemoveLastListener)==null||u.call(l,this),this._size=0;return}const n=this._listeners,r=n.indexOf(t);if(r===-1)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--,n[r]=void 0;const s=this._deliveryQueue.current===this;if(this._size*ni<=n.length){let c=0;for(let h=0;h<n.length;h++)n[h]?n[c++]=n[h]:s&&(this._deliveryQueue.end--,c<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=c}}_deliver(t,n){var s;if(!t)return;const r=((s=this._options)==null?void 0:s.onListenerError)||Ze;if(!r){t.value(n);return}try{t.value(n)}catch(i){r(i)}}_deliverQueue(t){const n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){var n,r,s,i;if((n=this._deliveryQueue)!=null&&n.current&&(this._deliverQueue(this._deliveryQueue),(r=this._perfMon)==null||r.stop()),(s=this._perfMon)==null||s.start(this._size),this._listeners)if(this._listeners instanceof zt)this._deliver(this._listeners,t);else{const o=this._deliveryQueue;o.enqueue(this,t,this._listeners.length),this._deliverQueue(o)}(i=this._perfMon)==null||i.stop()}hasListeners(){return this._size>0}}class ri{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function si(){return globalThis._VSCODE_NLS_MESSAGES}function Mn(){return globalThis._VSCODE_NLS_LANGUAGE}const ii=Mn()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function kn(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(r,s)=>{const i=s[0],o=t[i];let l=r;return typeof o=="string"?l=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(l=String(o)),l}),ii&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function z(e,t,...n){return kn(typeof e=="number"?ai(e,t):t,n)}function ai(e,t){var r;const n=(r=si())==null?void 0:r[e];if(typeof n!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}const Te="en";let Ot=!1,Gt=!1,jt=!1,Pn=!1,Xt=!1,bt,Qt=Te,Fn=Te,oi,he;const pe=globalThis;let Z;typeof pe.vscode<"u"&&typeof pe.vscode.process<"u"?Z=pe.vscode.process:typeof process<"u"&&typeof(($s=process==null?void 0:process.versions)==null?void 0:$s.node)=="string"&&(Z=process);const li=typeof((Hs=Z==null?void 0:Z.versions)==null?void 0:Hs.electron)=="string"&&(Z==null?void 0:Z.type)==="renderer";if(typeof Z=="object"){Ot=Z.platform==="win32",Gt=Z.platform==="darwin",jt=Z.platform==="linux",jt&&Z.env.SNAP&&Z.env.SNAP_REVISION,Z.env.CI||Z.env.BUILD_ARTIFACTSTAGINGDIRECTORY,bt=Te,Qt=Te;const e=Z.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);bt=t.userLocale,Fn=t.osLocale,Qt=t.resolvedLanguage||Te,oi=(Ws=t.languagePack)==null?void 0:Ws.translationsConfigFile}catch{}Pn=!0}else typeof navigator=="object"&&!li?(he=navigator.userAgent,Ot=he.indexOf("Windows")>=0,Gt=he.indexOf("Macintosh")>=0,(he.indexOf("Macintosh")>=0||he.indexOf("iPad")>=0||he.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,jt=he.indexOf("Linux")>=0,(he==null?void 0:he.indexOf("Mobi"))>=0,Xt=!0,Qt=Mn()||Te,bt=navigator.language.toLowerCase(),Fn=bt):console.error("Unable to resolve platform.");const et=Ot,ui=Gt,ci=Pn,hi=Xt,fi=Xt&&typeof pe.importScripts=="function"?pe.origin:void 0,me=he,di=typeof pe.postMessage=="function"&&!pe.importScripts;(()=>{if(di){const e=[];pe.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,s=e.length;r<s;r++){const i=e[r];if(i.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),i.callback();return}}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),pe.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();const mi=!!(me&&me.indexOf("Chrome")>=0);me&&me.indexOf("Firefox")>=0,!mi&&me&&me.indexOf("Safari")>=0,me&&me.indexOf("Edg/")>=0,me&&me.indexOf("Android")>=0;function gi(e){return e}class bi{constructor(t,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof t=="function"?(this._fn=t,this._computeKey=gi):(this._fn=n,this._computeKey=t.getCacheKey)}get(t){const n=this._computeKey(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(t)),this.lastCache}}class Dn{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function pi(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function xi(e){return e.split(/\r\n|\r|\n/)}function _i(e){for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function wi(e,t=e.length-1){for(let n=t;n>=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function Tn(e){return e>=65&&e<=90}function Yt(e){return 55296<=e&&e<=56319}function Li(e){return 56320<=e&&e<=57343}function vi(e,t){return(e-55296<<10)+(t-56320)+65536}function Ni(e,t,n){const r=e.charCodeAt(n);if(Yt(r)&&n+1<t){const s=e.charCodeAt(n+1);if(Li(s))return vi(r,s)}return r}const Si=/^[\t\n\r\x20-\x7E]*$/;function Ci(e){return Si.test(e)}const be=class be{static getInstance(t){return be.cache.get(Array.from(t))}static getLocales(){return be._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};be.ambiguousCharacterData=new Dn(()=>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]}')),be.cache=new bi({getCacheKey:JSON.stringify},t=>{function n(h){const f=new Map;for(let d=0;d<h.length;d+=2)f.set(h[d],h[d+1]);return f}function r(h,f){const d=new Map(h);for(const[m,g]of f)d.set(m,g);return d}function s(h,f){if(!h)return f;const d=new Map;for(const[m,g]of h)f.has(m)&&d.set(m,g);return d}const i=be.ambiguousCharacterData.value;let o=t.filter(h=>!h.startsWith("_")&&h in i);o.length===0&&(o=["_default"]);let l;for(const h of o){const f=n(i[h]);l=s(l,f)}const u=n(i._common),c=r(u,l);return new be(c)}),be._locales=new Dn(()=>Object.keys(be.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")));let tt=be;const Xe=class Xe{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 getData(){return this._data||(this._data=new Set(Xe.getRawData())),this._data}static isInvisibleCharacter(t){return Xe.getData().has(t)}static get codePoints(){return Xe.getData()}};Xe._data=void 0;let nt=Xe,Ie;const Jt=globalThis.vscode;if(typeof Jt<"u"&&typeof Jt.process<"u"){const e=Jt.process;Ie={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof((zs=process==null?void 0:process.versions)==null?void 0:zs.node)=="string"?Ie={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Ie={get platform(){return et?"win32":ui?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const pt=Ie.cwd,Ai=Ie.env,Ri=Ie.platform,yi=65,Ei=97,Mi=90,ki=122,ve=46,Y=47,re=92,Ne=58,Pi=63;class In extends Error{constructor(t,n,r){let s;typeof n=="string"&&n.indexOf("not ")===0?(s="must not be",n=n.replace(/^not /,"")):s="must be";const i=t.indexOf(".")!==-1?"property":"argument";let o=`The "${t}" ${i} ${s} of type ${n}`;o+=`. Received type ${typeof r}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function Fi(e,t){if(e===null||typeof e!="object")throw new In(t,"Object",e)}function j(e,t){if(typeof e!="string")throw new In(t,"string",e)}const xe=Ri==="win32";function T(e){return e===Y||e===re}function Zt(e){return e===Y}function Se(e){return e>=yi&&e<=Mi||e>=Ei&&e<=ki}function xt(e,t,n,r){let s="",i=0,o=-1,l=0,u=0;for(let c=0;c<=e.length;++c){if(c<e.length)u=e.charCodeAt(c);else{if(r(u))break;u=Y}if(r(u)){if(!(o===c-1||l===1))if(l===2){if(s.length<2||i!==2||s.charCodeAt(s.length-1)!==ve||s.charCodeAt(s.length-2)!==ve){if(s.length>2){const h=s.lastIndexOf(n);h===-1?(s="",i=0):(s=s.slice(0,h),i=s.length-1-s.lastIndexOf(n)),o=c,l=0;continue}else if(s.length!==0){s="",i=0,o=c,l=0;continue}}t&&(s+=s.length>0?`${n}..`:"..",i=2)}else s.length>0?s+=`${n}${e.slice(o+1,c)}`:s=e.slice(o+1,c),i=c-o-1;o=c,l=0}else u===ve&&l!==-1?++l:l=-1}return s}function Di(e){return e?`${e[0]==="."?"":"."}${e}`:""}function Vn(e,t){Fi(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${Di(t.ext)}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const K={resolve(...e){let t="",n="",r=!1;for(let s=e.length-1;s>=-1;s--){let i;if(s>=0){if(i=e[s],j(i,`paths[${s}]`),i.length===0)continue}else t.length===0?i=pt():(i=Ai[`=${t}`]||pt(),(i===void 0||i.slice(0,2).toLowerCase()!==t.toLowerCase()&&i.charCodeAt(2)===re)&&(i=`${t}\\`));const o=i.length;let l=0,u="",c=!1;const h=i.charCodeAt(0);if(o===1)T(h)&&(l=1,c=!0);else if(T(h))if(c=!0,T(i.charCodeAt(1))){let f=2,d=f;for(;f<o&&!T(i.charCodeAt(f));)f++;if(f<o&&f!==d){const m=i.slice(d,f);for(d=f;f<o&&T(i.charCodeAt(f));)f++;if(f<o&&f!==d){for(d=f;f<o&&!T(i.charCodeAt(f));)f++;(f===o||f!==d)&&(u=`\\\\${m}\\${i.slice(d,f)}`,l=f)}}}else l=1;else Se(h)&&i.charCodeAt(1)===Ne&&(u=i.slice(0,2),l=2,o>2&&T(i.charCodeAt(2))&&(c=!0,l=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${i.slice(l)}\\${n}`,r=c,c&&t.length>0)break}return n=xt(n,!r,"\\",T),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){j(e,"path");const t=e.length;if(t===0)return".";let n=0,r,s=!1;const i=e.charCodeAt(0);if(t===1)return Zt(i)?"\\":e;if(T(i))if(s=!0,T(e.charCodeAt(1))){let l=2,u=l;for(;l<t&&!T(e.charCodeAt(l));)l++;if(l<t&&l!==u){const c=e.slice(u,l);for(u=l;l<t&&T(e.charCodeAt(l));)l++;if(l<t&&l!==u){for(u=l;l<t&&!T(e.charCodeAt(l));)l++;if(l===t)return`\\\\${c}\\${e.slice(u)}\\`;l!==u&&(r=`\\\\${c}\\${e.slice(u,l)}`,n=l)}}}else n=1;else Se(i)&&e.charCodeAt(1)===Ne&&(r=e.slice(0,2),n=2,t>2&&T(e.charCodeAt(2))&&(s=!0,n=3));let o=n<t?xt(e.slice(n),!s,"\\",T):"";return o.length===0&&!s&&(o="."),o.length>0&&T(e.charCodeAt(t-1))&&(o+="\\"),r===void 0?s?`\\${o}`:o:s?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){j(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return T(n)||t>2&&Se(n)&&e.charCodeAt(1)===Ne&&T(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let i=0;i<e.length;++i){const o=e[i];j(o,"path"),o.length>0&&(t===void 0?t=n=o:t+=`\\${o}`)}if(t===void 0)return".";let r=!0,s=0;if(typeof n=="string"&&T(n.charCodeAt(0))){++s;const i=n.length;i>1&&T(n.charCodeAt(1))&&(++s,i>2&&(T(n.charCodeAt(2))?++s:r=!1))}if(r){for(;s<t.length&&T(t.charCodeAt(s));)s++;s>=2&&(t=`\\${t.slice(s)}`)}return K.normalize(t)},relative(e,t){if(j(e,"from"),j(t,"to"),e===t)return"";const n=K.resolve(e),r=K.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let s=0;for(;s<e.length&&e.charCodeAt(s)===re;)s++;let i=e.length;for(;i-1>s&&e.charCodeAt(i-1)===re;)i--;const o=i-s;let l=0;for(;l<t.length&&t.charCodeAt(l)===re;)l++;let u=t.length;for(;u-1>l&&t.charCodeAt(u-1)===re;)u--;const c=u-l,h=o<c?o:c;let f=-1,d=0;for(;d<h;d++){const g=e.charCodeAt(s+d);if(g!==t.charCodeAt(l+d))break;g===re&&(f=d)}if(d!==h){if(f===-1)return r}else{if(c>h){if(t.charCodeAt(l+d)===re)return r.slice(l+d+1);if(d===2)return r.slice(l+d)}o>h&&(e.charCodeAt(s+d)===re?f=d:d===2&&(f=3)),f===-1&&(f=0)}let m="";for(d=s+f+1;d<=i;++d)(d===i||e.charCodeAt(d)===re)&&(m+=m.length===0?"..":"\\..");return l+=f,m.length>0?`${m}${r.slice(l,u)}`:(r.charCodeAt(l)===re&&++l,r.slice(l,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=K.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===re){if(t.charCodeAt(1)===re){const n=t.charCodeAt(2);if(n!==Pi&&n!==ve)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Se(t.charCodeAt(0))&&t.charCodeAt(1)===Ne&&t.charCodeAt(2)===re)return`\\\\?\\${t}`;return e},dirname(e){j(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const s=e.charCodeAt(0);if(t===1)return T(s)?e:".";if(T(s)){if(n=r=1,T(e.charCodeAt(1))){let l=2,u=l;for(;l<t&&!T(e.charCodeAt(l));)l++;if(l<t&&l!==u){for(u=l;l<t&&T(e.charCodeAt(l));)l++;if(l<t&&l!==u){for(u=l;l<t&&!T(e.charCodeAt(l));)l++;if(l===t)return e;l!==u&&(n=r=l+1)}}}}else Se(s)&&e.charCodeAt(1)===Ne&&(n=t>2&&T(e.charCodeAt(2))?3:2,r=n);let i=-1,o=!0;for(let l=t-1;l>=r;--l)if(T(e.charCodeAt(l))){if(!o){i=l;break}}else o=!1;if(i===-1){if(n===-1)return".";i=n}return e.slice(0,i)},basename(e,t){t!==void 0&&j(t,"suffix"),j(e,"path");let n=0,r=-1,s=!0,i;if(e.length>=2&&Se(e.charCodeAt(0))&&e.charCodeAt(1)===Ne&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,l=-1;for(i=e.length-1;i>=n;--i){const u=e.charCodeAt(i);if(T(u)){if(!s){n=i+1;break}}else l===-1&&(s=!1,l=i+1),o>=0&&(u===t.charCode