diff --git a/docs/index.html b/docs/index.html index 74a6722..2ed3da7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -50,6 +50,6 @@ // gtag('config', 'UA-163429136-1'); - + \ No newline at end of file diff --git a/docs/main-es2015.3c0232a55522f86c271f.js b/docs/main-es2015.3c0232a55522f86c271f.js new file mode 100644 index 0000000..9c0d9bd --- /dev/null +++ b/docs/main-es2015.3c0232a55522f86c271f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+Ohx":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("8Y7J");let i=(()=>{class e{constructor(){this.conveyorBeltSound=new Audio,this.conveyorBeltSoundGapless=new Audio,this.smashFruitSound=new Audio,this.pouringLiquidSound=new Audio,this.playerGapless=null,this.timeoutGapless=null,this.volume=.1,this.isMute=!1,this.imagePath="/assets/images/sound-low.png"}playConveyorBeltSound(){if(this.isMute)return;this.conveyorBeltSound.loop=!0,this.conveyorBeltSound.volume=this.volume,this.conveyorBeltSound.src="/assets/sounds/conveyor-belt.mp3",this.conveyorBeltSoundGapless.loop=!0,this.conveyorBeltSoundGapless.volume=this.volume,this.conveyorBeltSoundGapless.src="/assets/sounds/conveyor-belt.mp3";let e="a";function t(t){t.isMute||("a"===e?(t.playerGapless=t.conveyorBeltSound,e="b"):(t.playerGapless=t.conveyorBeltSoundGapless,e="a"),t.playerGapless.play())}this.timeoutGapless=setTimeout(()=>t(this),9e3),t(this)}playSmashFruitSound(e){this.isMute||e&&(this.smashFruitSound.volume=this.volume,this.smashFruitSound.src="/assets/sounds/smash-fruit.mp3",this.smashFruitSound.play())}playPouringLiquidSound(e){this.isMute||(this.pouringLiquidSound.volume=this.volume,this.pouringLiquidSound.src="/assets/sounds/pouring-liquid.mp3",this.pouringLiquidSound.play())}stopAll(){this.conveyorBeltSound.pause(),this.conveyorBeltSoundGapless.pause(),this.smashFruitSound.pause(),this.pouringLiquidSound.pause(),this.playerGapless&&(this.playerGapless.pause(),clearTimeout(this.timeoutGapless))}changeSound(e){return this.isMute?(this.imagePath="/assets/images/sound-low.png",this.isMute=!1,this.volume=.1,e&&this.playConveyorBeltSound()):.1===this.volume?(this.imagePath="/assets/images/sound-high.png",this.volume=.5,e&&this.playConveyorBeltSound()):.5===this.volume&&(this.imagePath="/assets/images/sound-off.png",this.isMute=!0,this.stopAll()),this.conveyorBeltSound.volume=this.volume,this.conveyorBeltSoundGapless.volume=this.volume,this.playerGapless&&(this.playerGapless.volume=this.volume),{imagePath:this.imagePath,isMute:this.isMute,volume:this.volume}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},"/d8p":function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("7o/Q"),i=r("EY2u");function a(e=-1){return t=>0===e?Object(i.b)():t.lift(new o(e<0?-1:e-1,t))}class o{constructor(e,t){this.count=e,this.source=t}call(e,t){return t.subscribe(new s(e,this.count,this.source))}}class s extends n.a{constructor(e,t,r){super(e),this.count=t,this.source=r}complete(){if(!this.isStopped){const{source:e,count:t}=this;if(0===t)return super.complete();t>-1&&(this.count=t-1),e.subscribe(this._unsubscribeAndRecycle())}}}},"/q54":function(e,t,r){"use strict";r.d(t,"c",function(){return p}),r.d(t,"d",function(){return m}),r.d(t,"e",function(){return h}),r.d(t,"g",function(){return y}),r.d(t,"a",function(){return v}),r.d(t,"b",function(){return S}),r.d(t,"i",function(){return W}),r.d(t,"h",function(){return q}),r.d(t,"j",function(){return K}),r.d(t,"f",function(){return G});var n=r("8Y7J"),i=r("SVse"),a=r("XNiG"),o=r("2Vo4"),s=r("HDdC"),c=r("VRyK"),u=(r("7Hc7"),r("LRne"),r("xgIS"),r("pLZG")),l=(r("lJxs"),r("Kj3r"),r("eIep"),r("1G5W"),r("IzEk"),r("vkgz"));const _={provide:n.b,useFactory:function(e,t){return()=>{if(Object(i.p)(t)){const t=Array.from(e.querySelectorAll(`[class*=${d}]`)),r=/\bflex-layout-.+?\b/g;t.forEach(e=>{e.classList.contains(`${d}ssr`)&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(r,"")})}}},deps:[i.c,n.C],multi:!0},d="flex-layout-";let p=(()=>{class e{}return e.\u0275mod=n.Jb({type:e}),e.\u0275inj=n.Ib({factory:function(t){return new(t||e)},providers:[_]}),e})();class f{constructor(e=!1,t="all",r="",n="",i=0){this.matches=e,this.mediaQuery=t,this.mqAlias=r,this.suffix=n,this.priority=i,this.property=""}clone(){return new f(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let g=(()=>{class e{constructor(){this.stylesheet=new Map}addStyleToElement(e,t,r){const n=this.stylesheet.get(e);n?n.set(t,r):this.stylesheet.set(e,new Map([[t,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,t){const r=this.stylesheet.get(e);let n="";if(r){const e=r.get(t);"number"!=typeof e&&"string"!=typeof e||(n=e+"")}return n}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(n.Hb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const m={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},h=new n.r("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>m}),y=new n.r("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),v=new n.r("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function b(e,t){return e=e?e.clone():new f,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}const x=["row","column","row-reverse","column-reverse"];function D(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}let S=(()=>{class e{constructor(e,t,r,n){this.elementRef=e,this.styleBuilder=t,this.styler=r,this.marshal=n,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new a.a,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(t=>{if(-1!==this.inputs.indexOf(t)){const r=t.split(".").slice(1).join(".");this.setValue(e[t].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,t){const r=this.styleBuilder,n=r.shouldCache;let i=this.styleCache.get(e);i&&n||(i=r.buildStyles(e,t),n&&this.styleCache.set(e,i)),this.mru=Object.assign({},i),this.applyStyleToElement(i),r.sideEffect(e,i,t)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,t=!1){if(e){const[r,n]=this.styler.getFlowDirection(e);if(!n&&t){const t=function(e){let[t,r,n]=function(e){e=e?e.toLowerCase():"";let[t,r,n]=e.split(" ");return x.find(e=>e===t)||(t=x[0]),"inline"===r&&(r="inline"!==n?n:"",n="inline"),[t,D(r),!!n]}(e);return function(e,t=null,r=!1){return{display:r?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(t,r,n)}(r);this.styler.applyStyleToElements(t,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,t,r=this.nativeElement){this.styler.applyStyleToElement(r,e,t)}setValue(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return e.\u0275fac=function(e){n.Vb()},e.\u0275dir=n.Gb({type:e,features:[n.zb]}),e})();const E=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],C="(orientation: portrait) and (max-width: 599.98px)",T="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",k="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",w="(orientation: portrait) and (min-width: 840px)",A="(orientation: landscape) and (min-width: 1280px)",N={HANDSET:`${C}, (orientation: landscape) and (max-width: 959.98px)`,TABLET:`${T} , ${k}`,WEB:`${w}, ${A} `,HANDSET_PORTRAIT:`${C}`,TABLET_PORTRAIT:`${T} `,WEB_PORTRAIT:`${w}`,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:`${k}`,WEB_LANDSCAPE:`${A}`},P=[{alias:"handset",priority:2e3,mediaQuery:N.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:N.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:N.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:N.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:N.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:N.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:N.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:N.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:N.WEB_PORTRAIT,overlapping:!0}],O=/(\.|-|_)/g;function F(e){let t=e.length>0?e.charAt(0):"",r=e.length>1?e.slice(1):"";return t.toUpperCase()+r}const I=new n.r("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const e=Object(n.V)(v),t=Object(n.V)(h),r=[].concat.apply([],(e||[]).map(e=>Array.isArray(e)?e:[e]));return function(e,t=[]){const r={};return e.forEach(e=>{r[e.alias]=e}),t.forEach(e=>{r[e.alias]?function(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(let r of t)if(null!=r)for(let t in r)r.hasOwnProperty(t)&&(e[t]=r[t])}(r[e.alias],e):r[e.alias]=e}),(n=Object.keys(r).map(e=>r[e])).forEach(e=>{e.suffix||(e.suffix=e.alias.replace(O,"|").split("|").map(F).join(""),e.overlapping=!!e.overlapping)}),n;var n}((t.disableDefaultBps?[]:E).concat(t.addOrientationBps?P:[]),r)}});function M(e,t){return(t&&t.priority||0)-(e&&e.priority||0)}function L(e,t){return(e.priority||0)-(t.priority||0)}let R=(()=>{class e{constructor(e){this.findByMap=new Map,this.items=[...e].sort(L)}findByAlias(e){return e?this.findWithPredicate(e,t=>t.alias==e):null}findByQuery(e){return this.findWithPredicate(e,t=>t.mediaQuery==e)}get overlappings(){return this.items.filter(e=>1==e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>e.suffix?e.suffix:"")}findWithPredicate(e,t){let r=this.findByMap.get(e);return r||(r=this.items.find(t)||null,this.findByMap.set(e,r)),r||null}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(I))},e.\u0275prov=Object(n.Hb)({factory:function(){return new e(Object(n.Sb)(I))},token:e,providedIn:"root"}),e})(),B=(()=>{class e{constructor(e,t,r){this._zone=e,this._platformId=t,this._document=r,this.source=new o.a(new f(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((t,r)=>{t.matches&&e.push(r)}),e}isActive(e){const t=this.registry.get(e);return t?t.matches:this.registerQuery(e).some(e=>e.matches)}observe(e,t=!1){if(e&&e.length){const r=this._observable$.pipe(Object(u.a)(r=>!t||e.indexOf(r.mediaQuery)>-1)),n=new s.a(t=>{const r=this.registerQuery(e);if(r.length){const e=r.pop();r.forEach(e=>{t.next(e)}),this.source.next(e)}t.complete()});return Object(c.a)(n,r)}return this._observable$}registerQuery(e){const t=Array.isArray(e)?e:[e],r=[];return function(e,t){const r=e.filter(e=>!j[e]);if(r.length>0){const e=r.join(", ");try{const n=t.createElement("style");n.setAttribute("type","text/css"),n.styleSheet||n.appendChild(t.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${e} {.fx-query-test{ }}\n`)),t.head.appendChild(n),r.forEach(e=>j[e]=n)}catch(n){console.error(n)}}}(t,this._document),t.forEach(e=>{const t=t=>{this._zone.run(()=>this.source.next(new f(t.matches,e)))};let n=this.registry.get(e);n||(n=this.buildMQL(e),n.addListener(t),this.pendingRemoveListenerFns.push(()=>n.removeListener(t)),this.registry.set(e,n)),n.matches&&r.push(new f(!0,e))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,Object(i.p)(this._platformId))}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(n.A),n.Sb(n.C),n.Sb(i.c))},e.\u0275prov=Object(n.Hb)({factory:function(){return new e(Object(n.Sb)(n.A),Object(n.Sb)(n.C),Object(n.Sb)(i.c))},token:e,providedIn:"root"}),e})();const j={},U={alias:"print",mediaQuery:"print",priority:1e3};let z=(()=>{class e{constructor(e,t,r){this.breakpoints=e,this.layoutConfig=t,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new J,this.deactivations=[]}withPrintQuery(e){return[...e,"print"]}isPrintEvent(e){return e.mediaQuery.startsWith("print")}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const t=this.breakpoints.findByQuery(e);return(t?[...this.printBreakPoints,t]:this.printBreakPoints).sort(M)}updateEvent(e){let t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),b(e,t)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const t=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new f(!0,"print"))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",t),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(t),this.afterPrintEventListeners.push(r)}interceptEvents(e){return this.registerBeforeAfterPrintHooks(e),t=>{this.isPrintEvent(t)?t.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(t)),e.updateStyles()):t.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(e),e.updateStyles()):this.collectActivations(t)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort(M))}}ngOnDestroy(){this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e))}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(R),n.Sb(h),n.Sb(i.c))},e.\u0275prov=Object(n.Hb)({factory:function(){return new e(Object(n.Sb)(R),Object(n.Sb)(h),Object(n.Sb)(i.c))},token:e,providedIn:"root"}),e})();class J{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(e){return e.push(U),e.sort(M),e.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(e){e&&void 0===this.printBreakpoints.find(t=>t.mediaQuery===e.mediaQuery)&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith("print")}(e)?[e,...this.printBreakpoints]:[...this.printBreakpoints,e])}clear(){this.printBreakpoints=[]}}function V(e){for(let t in e){let r=e[t]||"";switch(t){case"display":e.display="flex"===r?["-webkit-flex","flex"]:"inline-flex"===r?["-webkit-inline-flex","inline-flex"]:r;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+t]=r;break;case"flex-direction":r=r||"row",e["-webkit-flex-direction"]=r,e["flex-direction"]=r;break;case"order":e.order=e["-webkit-"+t]=isNaN(+r)?"0":r}}return e}let W=(()=>{class e{constructor(e,t,r,n){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=r,this.layoutConfig=n}applyStyleToElement(e,t,r=null){let n={};"string"==typeof t&&(n[t]=r,t=n),n=this.layoutConfig.disableVendorPrefixes?t:V(t),this._applyMultiValueStyleToElement(n,e)}applyStyleToElements(e,t=[]){const r=this.layoutConfig.disableVendorPrefixes?e:V(e);t.forEach(e=>{this._applyMultiValueStyleToElement(r,e)})}getFlowDirection(e){let t=this.lookupStyle(e,"flex-direction");return[t||"row",this.lookupInlineStyle(e,"flex-direction")||Object(i.q)(this._platformId)&&this._serverModuleLoaded?t:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,t){return e.getAttribute(t)||""}lookupInlineStyle(e,t){return Object(i.p)(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}lookupStyle(e,t,r=!1){let n="";return e&&((n=this.lookupInlineStyle(e,t))||(Object(i.p)(this._platformId)?r||(n=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(n=this._serverStylesheet.getStyleForElement(e,t)))),n?n.trim():""}_applyMultiValueStyleToElement(e,t){Object.keys(e).sort().forEach(r=>{const n=e[r],a=Array.isArray(n)?n:[n];a.sort();for(let e of a)e=e?e+"":"",Object(i.p)(this._platformId)||!this._serverModuleLoaded?Object(i.p)(this._platformId)?t.style.setProperty(r,e):this._setServerStyle(t,r,e):this._serverStylesheet.addStyleToElement(t,r,e)})}_setServerStyle(e,t,r){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const n=this._readStyleAttribute(e);n[t]=r||"",this._writeStyleAttribute(e,n)}_getServerStyle(e,t){return this._readStyleAttribute(e)[t]||""}_readStyleAttribute(e){const t={},r=e.getAttribute("style");if(r){const e=r.split(/;+/g);for(let r=0;r0){const e=n.indexOf(":");if(-1===e)throw new Error(`Invalid CSS style: ${n}`);t[n.substr(0,e).trim()]=n.substr(e+1).trim()}}}return t}_writeStyleAttribute(e,t){let r="";for(const n in t)t[n]&&(r+=n+":"+t[n]+";");e.setAttribute("style",r)}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(g),n.Sb(y),n.Sb(n.C),n.Sb(h))},e.\u0275prov=Object(n.Hb)({factory:function(){return new e(Object(n.Sb)(g),Object(n.Sb)(y),Object(n.Sb)(n.C),Object(n.Sb)(h))},token:e,providedIn:"root"}),e})();class q{constructor(){this.shouldCache=!0}sideEffect(e,t,r){}}function K(e,t="1",r="1"){let n=[t,r,e],i=e.indexOf("calc");if(i>0){n[2]=H(e.substring(i).trim());let t=e.substr(0,i).trim().split(" ");2==t.length&&(n[0]=t[0],n[1]=t[1])}else if(0==i)n[2]=H(e.trim());else{let i=e.split(" ");n=3===i.length?i:[t,r,e]}return n}function H(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let G=(()=>{class e{constructor(e,t,r){this.matchMedia=e,this.breakpoints=t,this.hook=r,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new a.a,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(e){const t=this.findByQuery(e.mediaQuery);t&&((e=b(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(M),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(M),this.updateStyles()))}init(e,t,r,n,i=[]){Q(this.updateMap,e,t,r),Q(this.clearMap,e,t,n),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,i)}getValue(e,t,r){const n=this.elementMap.get(e);if(n){const e=void 0!==r?n.get(r):this.getActivatedValues(n,t);if(e)return e.get(t)}}hasValue(e,t){const r=this.elementMap.get(e);if(r){const e=this.getActivatedValues(r,t);if(e)return void 0!==e.get(t)||!1}return!1}setValue(e,t,r,n){let i=this.elementMap.get(e);if(i){const a=(i.get(n)||new Map).set(t,r);i.set(n,a),this.elementMap.set(e,i)}else i=(new Map).set(n,(new Map).set(t,r)),this.elementMap.set(e,i);const a=this.getValue(e,t);void 0!==a&&this.updateElement(e,t,a)}trackValue(e,t){return this.subject.asObservable().pipe(Object(u.a)(r=>r.element===e&&r.key===t))}updateStyles(){this.elementMap.forEach((e,t)=>{const r=new Set(this.elementKeyMap.get(t));let n=this.getActivatedValues(e);n&&n.forEach((e,n)=>{this.updateElement(t,n,e),r.delete(n)}),r.forEach(r=>{if(n=this.getActivatedValues(e,r),n){const e=n.get(r);this.updateElement(t,r,e)}else this.clearElement(t,r)})})}clearElement(e,t){const r=this.clearMap.get(e);if(r){const n=r.get(t);n&&(n(),this.subject.next({element:e,key:t,value:""}))}}updateElement(e,t,r){const n=this.updateMap.get(e);if(n){const i=n.get(t);i&&(i(r),this.subject.next({element:e,key:t,value:r}))}}releaseElement(e){const t=this.watcherMap.get(e);t&&(t.forEach(e=>e.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((e,t)=>r.delete(t)),this.elementMap.delete(e))}triggerUpdate(e,t){const r=this.elementMap.get(e);if(r){const n=this.getActivatedValues(r,t);n&&(t?this.updateElement(e,t,n.get(t)):n.forEach((t,r)=>this.updateElement(e,r,t)))}}buildElementKeyMap(e,t){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(t)}watchExtraTriggers(e,t,r){if(r&&r.length){let n=this.watcherMap.get(e);if(n||(n=new Map,this.watcherMap.set(e,n)),!n.get(t)){const i=Object(c.a)(...r).subscribe(()=>{const r=this.getValue(e,t);this.updateElement(e,t,r)});n.set(t,i)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,t){for(let n=0;ne.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Object(l.a)(this.hook.interceptEvents(this)),Object(u.a)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(B),n.Sb(R),n.Sb(z))},e.\u0275prov=Object(n.Hb)({factory:function(){return new e(Object(n.Sb)(B),Object(n.Sb)(R),Object(n.Sb)(z))},token:e,providedIn:"root"}),e})();function Q(e,t,r,n){if(void 0!==n){let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(r,n)}}},"/uUt":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("7o/Q");function i(e,t){return r=>r.lift(new a(e,t))}class a{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new o(e,this.compare,this.keySelector))}}class o extends n.a{constructor(e,t,r){super(e),this.keySelector=r,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:r}=this;t=r?r(e):e}catch(n){return this.destination.error(n)}let r=!1;if(this.hasKey)try{const{compare:e}=this;r=e(this.key,t)}catch(n){return this.destination.error(n)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))}}},0:function(e,t,r){e.exports=r("zUnb")},"02Lk":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("zx2A");function i(e,t){return r=>r.lift(new a(e,t))}class a{constructor(e,t){this.keySelector=e,this.flushes=t}call(e,t){return t.subscribe(new o(e,this.keySelector,this.flushes))}}class o extends n.b{constructor(e,t,r){super(e),this.keySelector=t,this.values=new Set,r&&this.add(Object(n.c)(r,new n.a(this)))}notifyNext(){this.values.clear()}notifyError(e){this._error(e)}_next(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}_useKeySelector(e){let t;const{destination:r}=this;try{t=this.keySelector(e)}catch(n){return void r.error(n)}this._finalizeNext(t,e)}_finalizeNext(e,t){const{values:r}=this;r.has(e)||(r.add(e),this.destination.next(t))}}},"099V":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("8Y7J");let i=(()=>{class e{constructor(){this.supportsAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,this.colors=["rgba(30,144,255,","rgba(107,142,35,","rgba(255,215,0,","rgba(255,192,203,","rgba(106,90,205,","rgba(173,216,230,","rgba(238,130,238,","rgba(152,251,152,","rgba(70,130,180,","rgba(244,164,96,","rgba(210,105,30,","rgba(220,20,60,"],this.streamingConfetti=!1,this.animationTimer=null,this.pause=!1,this.lastFrameTime=Date.now(),this.particles=[],this.waveAngle=0,this.context=null,this.confetti={maxCount:150,speed:2,frameInterval:15,alpha:1,gradient:!1}}resetParticle(e,t,r){return e.color=this.colors[Math.random()*this.colors.length|0]+(this.confetti.alpha+")"),e.color2=this.colors[Math.random()*this.colors.length|0]+(this.confetti.alpha+")"),e.x=Math.random()*t,e.y=Math.random()*r-r,e.diameter=10*Math.random()+5,e.tilt=10*Math.random()-10,e.tiltAngleIncrement=.07*Math.random()+.05,e.tiltAngle=Math.random()*Math.PI,e}toggleConfettiPause(){this.pause?this.resumeConfetti():this.pauseConfetti()}isConfettiPaused(){return this.pause}pauseConfetti(){this.pause=!0}resumeConfetti(){this.pause=!1,this.runAnimation()}runAnimation(){if(!this.pause)if(0===this.particles.length)this.context.clearRect(0,0,window.innerWidth,window.innerHeight),this.animationTimer=null;else{const e=Date.now(),t=e-this.lastFrameTime;(!this.supportsAnimationFrame||t>this.confetti.frameInterval)&&(this.context.clearRect(0,0,window.innerWidth,window.innerHeight),this.updateParticles(),this.drawParticles(this.context),this.lastFrameTime=e-t%this.confetti.frameInterval),this.animationTimer=requestAnimationFrame(this.runAnimation.bind(this))}}start(e,t,r){const n=window.innerWidth,i=window.innerHeight;window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,this.confetti.frameInterval)};let a=document.getElementById("confetti-canvas");null===a?(a=document.createElement("canvas"),a.setAttribute("id","confetti-canvas"),a.setAttribute("style","display:block;z-index:900;pointer-events:none;position:fixed;top:0"),document.body.prepend(a),a.width=n,a.height=i,window.addEventListener("resize",()=>{a.width=window.innerWidth,a.height=window.innerHeight},!0),this.context=a.getContext("2d")):null===this.context&&(this.context=a.getContext("2d"));let o=this.confetti.maxCount;if(t)if(r)if(t===r)o=this.particles.length+r;else{if(t>r){const e=t;t=r,r=e}o=this.particles.length+(Math.random()*(r-t)+t|0)}else o=this.particles.length+t;else r&&(o=this.particles.length+r);for(;this.particles.lengthe+20||r.x<-20||r.y>t)&&(this.streamingConfetti&&this.particles.length<=this.confetti.maxCount?this.resetParticle(r,e,t):(this.particles.splice(n,1),n--))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},1:function(e,t){},"1G5W":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("zx2A");function i(e){return t=>t.lift(new a(e))}class a{constructor(e){this.notifier=e}call(e,t){const r=new o(e),i=Object(n.c)(this.notifier,new n.a(r));return i&&!r.seenValue?(r.add(i),t.subscribe(r)):r}}class o extends n.b{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1uah":function(e,t,r){"use strict";r.d(t,"a",function(){return c});var n=r("yCtX"),i=r("DH7j"),a=r("7o/Q"),o=r("Lhse"),s=r("zx2A");function c(...e){const t=e[e.length-1];return"function"==typeof t&&e.pop(),Object(n.a)(e,void 0).lift(new u(t))}class u{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new l(e,this.resultSelector))}}class l extends a.a{constructor(e,t,r=Object.create(null)){super(e),this.resultSelector=t,this.iterators=[],this.active=0,this.resultSelector="function"==typeof t?t:void 0}_next(e){const t=this.iterators;Object(i.a)(e)?t.push(new d(e)):t.push("function"==typeof e[o.a]?new _(e[o.a]()):new p(this.destination,this,e))}_complete(){const e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(let r=0;rthis.index}hasCompleted(){return this.array.length===this.index}}class p extends s.b{constructor(e,t,r){super(e),this.parent=t,this.observable=r,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[o.a](){return this}next(){const e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(e){this.buffer.push(e),this.parent.checkIterators()}subscribe(){return Object(s.c)(this.observable,new s.a(this))}}},2:function(e,t){},"2QA8":function(e,t,r){"use strict";r.d(t,"a",function(){return n});const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("XNiG"),i=r("9ppp");class a extends n.a{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value}next(e){super.next(this._value=e)}}},"2fFW":function(e,t,r){"use strict";r.d(t,"a",function(){return i});let n=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=e},get useDeprecatedSynchronousErrorHandling(){return n}}},3:function(e,t){},"3E0/":function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("D0XW"),i=r("7o/Q"),a=r("WMd4");function o(e,t=n.a){var r;const i=(r=e)instanceof Date&&!isNaN(+r)?+e-t.now():Math.abs(e);return e=>e.lift(new s(i,t))}class s{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new c(e,this.delay,this.scheduler))}}class c extends i.a{constructor(e,t,r){super(e),this.delay=t,this.scheduler=r,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,r=t.queue,n=e.scheduler,i=e.destination;for(;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){const t=Math.max(0,r[0].time-n.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(c.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,r=new u(t.now()+this.delay,e);this.queue.push(r),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(a.a.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()}}class u{constructor(e,t){this.time=e,this.notification=t}}},"3N8a":function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("quSY");class i extends n.a{constructor(e,t){super()}schedule(e,t=0){return this}}class a extends i{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this}requestAsyncId(e,t,r=0){return setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,t,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,n=!1;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,r=t.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}},4:function(e,t){},"4I5i":function(e,t,r){"use strict";r.d(t,"a",function(){return n});const n=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})()},5:function(e,t){},"5+tZ":function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("lJxs"),i=r("Cfvw"),a=r("zx2A");function o(e,t,r=Number.POSITIVE_INFINITY){return"function"==typeof t?a=>a.pipe(o((r,a)=>Object(i.a)(e(r,a)).pipe(Object(n.a)((e,n)=>t(r,e,a,n))),r)):("number"==typeof t&&(r=t),t=>t.lift(new s(e,r)))}class s{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new c(e,this.project,this.concurrent))}}class c extends a.b{constructor(e,t,r=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},6:function(e,t){},7:function(e,t){},"7+OI":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("HDdC");function i(e){return!!e&&(e instanceof n.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},"7Hc7":function(e,t,r){"use strict";r.d(t,"a",function(){return d});let n=1;const i=(()=>Promise.resolve())(),a={};function o(e){return e in a&&(delete a[e],!0)}const s={setImmediate(e){const t=n++;return a[t]=!0,i.then(()=>o(t)&&e()),t},clearImmediate(e){o(e)}};var c=r("3N8a");class u extends c.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,r=0){return null!==r&&r>0?super.requestAsyncId(e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=s.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,r=0){if(null!==r&&r>0||null===r&&this.delay>0)return super.recycleAsyncId(e,t,r);0===e.actions.length&&(s.clearImmediate(t),e.scheduled=void 0)}}var l=r("IjjT");class _ extends l.a{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let r,n=-1,i=t.length;e=e||t.shift();do{if(r=e.execute(e.state,e.delay))break}while(++nthis._complete.call(this._context);s.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(r){if(this.unsubscribe(),s.a.useDeprecatedSynchronousErrorHandling)throw r;Object(c.a)(r)}}__tryOrSetError(e,t,r){if(!s.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,r)}catch(n){return s.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=n,e.syncErrorThrown=!0,!0):(Object(c.a)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"8LU1":function(e,t,r){"use strict";r.d(t,"a",function(){return o}),r.d(t,"b",function(){return i}),r.d(t,"c",function(){return s}),r.d(t,"d",function(){return c}),r.d(t,"e",function(){return a});var n=r("8Y7J");function i(e){return null!=e&&"false"!=`${e}`}function a(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function o(e){return Array.isArray(e)?e:[e]}function s(e){return null==e?"":"string"==typeof e?e:`${e}px`}function c(e){return e instanceof n.l?e.nativeElement:e}},"8Y7J":function(e,t,r){"use strict";r.d(t,"a",function(){return ir}),r.d(t,"b",function(){return Cc}),r.d(t,"c",function(){return bc}),r.d(t,"d",function(){return yc}),r.d(t,"e",function(){return vc}),r.d(t,"f",function(){return yu}),r.d(t,"g",function(){return cu}),r.d(t,"h",function(){return Ds}),r.d(t,"i",function(){return Lc}),r.d(t,"j",function(){return Ko}),r.d(t,"k",function(){return wc}),r.d(t,"l",function(){return $o}),r.d(t,"m",function(){return En}),r.d(t,"n",function(){return Ys}),r.d(t,"o",function(){return la}),r.d(t,"p",function(){return Er}),r.d(t,"q",function(){return P}),r.d(t,"r",function(){return nr}),r.d(t,"s",function(){return Ta}),r.d(t,"t",function(){return gs}),r.d(t,"u",function(){return hs}),r.d(t,"v",function(){return kc}),r.d(t,"w",function(){return Fs}),r.d(t,"x",function(){return lu}),r.d(t,"y",function(){return Os}),r.d(t,"z",function(){return nu}),r.d(t,"A",function(){return jc}),r.d(t,"B",function(){return Cr}),r.d(t,"C",function(){return Ec}),r.d(t,"D",function(){return Sc}),r.d(t,"E",function(){return ec}),r.d(t,"F",function(){return Zo}),r.d(t,"G",function(){return Yo}),r.d(t,"H",function(){return wn}),r.d(t,"I",function(){return ts}),r.d(t,"J",function(){return mn}),r.d(t,"K",function(){return Tr}),r.d(t,"L",function(){return pu}),r.d(t,"M",function(){return ws}),r.d(t,"N",function(){return Kc}),r.d(t,"O",function(){return ar}),r.d(t,"P",function(){return rs}),r.d(t,"Q",function(){return Ms}),r.d(t,"R",function(){return R}),r.d(t,"S",function(){return iu}),r.d(t,"T",function(){return tu}),r.d(t,"U",function(){return g}),r.d(t,"V",function(){return xr}),r.d(t,"W",function(){return eu}),r.d(t,"X",function(){return mu}),r.d(t,"Y",function(){return Qc}),r.d(t,"Z",function(){return Tc}),r.d(t,"ab",function(){return da}),r.d(t,"bb",function(){return Fo}),r.d(t,"cb",function(){return fn}),r.d(t,"db",function(){return $r}),r.d(t,"eb",function(){return jr}),r.d(t,"fb",function(){return zr}),r.d(t,"gb",function(){return qr}),r.d(t,"hb",function(){return Vr}),r.d(t,"ib",function(){return Jr}),r.d(t,"jb",function(){return Wr}),r.d(t,"kb",function(){return Ao}),r.d(t,"lb",function(){return gu}),r.d(t,"mb",function(){return No}),r.d(t,"nb",function(){return Po}),r.d(t,"ob",function(){return Ur}),r.d(t,"pb",function(){return J}),r.d(t,"qb",function(){return La}),r.d(t,"rb",function(){return Ya}),r.d(t,"sb",function(){return $a}),r.d(t,"tb",function(){return Xa}),r.d(t,"ub",function(){return wo}),r.d(t,"vb",function(){return Ee}),r.d(t,"wb",function(){return d}),r.d(t,"xb",function(){return Br}),r.d(t,"yb",function(){return wa}),r.d(t,"zb",function(){return ye}),r.d(t,"Ab",function(){return Vo}),r.d(t,"Bb",function(){return fi}),r.d(t,"Cb",function(){return ja}),r.d(t,"Db",function(){return po}),r.d(t,"Eb",function(){return dc}),r.d(t,"Fb",function(){return Z}),r.d(t,"Gb",function(){return oe}),r.d(t,"Hb",function(){return D}),r.d(t,"Ib",function(){return S}),r.d(t,"Jb",function(){return ne}),r.d(t,"Kb",function(){return se}),r.d(t,"Lb",function(){return Ja}),r.d(t,"Mb",function(){return Ga}),r.d(t,"Nb",function(){return Ha}),r.d(t,"Ob",function(){return Ka}),r.d(t,"Pb",function(){return Qa}),r.d(t,"Qb",function(){return er}),r.d(t,"Rb",function(){return So}),r.d(t,"Sb",function(){return br}),r.d(t,"Tb",function(){return tr}),r.d(t,"Ub",function(){return hc}),r.d(t,"Vb",function(){return Va}),r.d(t,"Wb",function(){return Za}),r.d(t,"Xb",function(){return pc}),r.d(t,"Yb",function(){return yt}),r.d(t,"Zb",function(){return ht}),r.d(t,"ac",function(){return io}),r.d(t,"bc",function(){return $s}),r.d(t,"cc",function(){return Xs}),r.d(t,"dc",function(){return so}),r.d(t,"ec",function(){return oo}),r.d(t,"fc",function(){return Wa}),r.d(t,"gc",function(){return lc}),r.d(t,"hc",function(){return za}),r.d(t,"ic",function(){return We}),r.d(t,"jc",function(){return hn}),r.d(t,"kc",function(){return yn}),r.d(t,"lc",function(){return ie}),r.d(t,"mc",function(){return _o}),r.d(t,"nc",function(){return eo}),r.d(t,"oc",function(){return Eo}),r.d(t,"pc",function(){return Ua}),r.d(t,"qc",function(){return vo}),r.d(t,"rc",function(){return bo}),r.d(t,"sc",function(){return xo}),r.d(t,"tc",function(){return Do}),r.d(t,"uc",function(){return vn}),r.d(t,"vc",function(){return _c});var n=r("XNiG"),i=r("quSY"),a=r("HDdC"),o=r("VRyK"),s=r("EQ5u"),c=r("x+ZX");function u(){return new n.a}function l(e){for(let t in e)if(e[t]===l)return t;throw Error("Could not find renamed property on target object.")}function _(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function d(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(d).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function p(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const f=l({__forward_ref__:l});function g(e){return e.__forward_ref__=g,e.toString=function(){return d(this())},e}function m(e){return h(e)?e():e}function h(e){return"function"==typeof e&&e.hasOwnProperty(f)&&e.__forward_ref__===g}class y extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function v(e){return"string"==typeof e?e:null==e?"":String(e)}function b(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():v(e)}function x(e,t){const r=t?` in ${t}`:"";throw new y("201",`No provider for ${b(e)} found${r}`)}function D(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function S(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function E(e){return C(e,k)||C(e,A)}function C(e,t){return e.hasOwnProperty(t)?e[t]:null}function T(e){return e&&(e.hasOwnProperty(w)||e.hasOwnProperty(N))?e[w]:null}const k=l({"\u0275prov":l}),w=l({"\u0275inj":l}),A=l({ngInjectableDef:l}),N=l({ngInjectorDef:l});var P=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});let O;function F(e){const t=O;return O=e,t}function I(e,t,r){const n=E(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:r&P.Optional?null:void 0!==t?t:void x(d(e),"Injector")}function M(e){return{toString:e}.toString()}var L=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),R=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const B="undefined"!=typeof globalThis&&globalThis,j="undefined"!=typeof window&&window,U="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,z="undefined"!=typeof global&&global,J=B||z||j||U,V={},W=[],q=l({"\u0275cmp":l}),K=l({"\u0275dir":l}),H=l({"\u0275pipe":l}),G=l({"\u0275mod":l}),Q=l({"\u0275loc":l}),$=l({"\u0275fac":l}),X=l({__NG_ELEMENT_ID__:l});let Y=0;function Z(e){return M(()=>{const t={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===L.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||W,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||R.Emulated,id:"c",styles:e.styles||W,_:null,setInput:null,schemas:e.schemas||null,tView:null},n=e.directives,i=e.features,a=e.pipes;return r.id+=Y++,r.inputs=ae(e.inputs,t),r.outputs=ae(e.outputs),i&&i.forEach(e=>e(r)),r.directiveDefs=n?()=>("function"==typeof n?n():n).map(ee):null,r.pipeDefs=a?()=>("function"==typeof a?a():a).map(te):null,r})}function ee(e){return ce(e)||function(e){return e[K]||null}(e)}function te(e){return function(e){return e[H]||null}(e)}const re={};function ne(e){const t={type:e.type,bootstrap:e.bootstrap||W,declarations:e.declarations||W,imports:e.imports||W,exports:e.exports||W,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&M(()=>{re[e.id]=e.type}),t}function ie(e,t){return M(()=>{const r=ue(e,!0);r.declarations=t.declarations||W,r.imports=t.imports||W,r.exports=t.exports||W})}function ae(e,t){if(null==e)return V;const r={};for(const n in e)if(e.hasOwnProperty(n)){let i=e[n],a=i;Array.isArray(i)&&(a=i[1],i=i[0]),r[i]=n,t&&(t[i]=a)}return r}const oe=Z;function se(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ce(e){return e[q]||null}function ue(e,t){const r=e[G]||null;if(!r&&!0===t)throw new Error(`Type ${d(e)} does not have '\u0275mod' property.`);return r}function le(e){return Array.isArray(e)&&"object"==typeof e[1]}function _e(e){return Array.isArray(e)&&!0===e[1]}function de(e){return 0!=(8&e.flags)}function pe(e){return 2==(2&e.flags)}function fe(e){return 1==(1&e.flags)}function ge(e){return null!==e.template}function me(e,t){return e.hasOwnProperty($)?e[$]:null}class he{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function ye(){return ve}function ve(e){return e.type.prototype.ngOnChanges&&(e.setInput=xe),be}function be(){const e=De(this),t=null==e?void 0:e.current;if(t){const r=e.previous;if(r===V)e.previous=t;else for(let e in t)r[e]=t[e];e.current=null,this.ngOnChanges(t)}}function xe(e,t,r,n){const i=De(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:V,current:null}),a=i.current||(i.current={}),o=i.previous,s=this.declaredInputs[r],c=o[s];a[s]=new he(c&&c.currentValue,t,o===V),e[n]=t}function De(e){return e.__ngSimpleChanges__||null}let Se;function Ee(e){Se=e}function Ce(){return void 0!==Se?Se:"undefined"!=typeof document?document:void 0}function Te(e){return!!e.listen}ye.ngInherit=!0;const ke={createRenderer:(e,t)=>Ce()};function we(e){for(;Array.isArray(e);)e=e[0];return e}function Ae(e,t){return we(t[e])}function Ne(e,t){return we(t[e.index])}function Pe(e,t){return e.data[t]}function Oe(e,t){return e[t]}function Fe(e,t){const r=t[e];return le(r)?r:r[0]}function Ie(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Me(e){return 4==(4&e[2])}function Le(e){return 128==(128&e[2])}function Re(e,t){return null==t?null:e[t]}function Be(e){e[18]=0}function je(e,t){e[5]+=t;let r=e,n=e[3];for(;null!==n&&(1===t&&1===r[5]||-1===t&&0===r[5]);)n[5]+=t,r=n,n=n[3]}const Ue={lFrame:lt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function ze(){return Ue.bindingsEnabled}function Je(){return Ue.lFrame.lView}function Ve(){return Ue.lFrame.tView}function We(e){Ue.lFrame.contextLView=e}function qe(){let e=Ke();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ke(){return Ue.lFrame.currentTNode}function He(e,t){const r=Ue.lFrame;r.currentTNode=e,r.isParent=t}function Ge(){return Ue.lFrame.isParent}function Qe(){Ue.lFrame.isParent=!1}function $e(){return Ue.isInCheckNoChangesMode}function Xe(e){Ue.isInCheckNoChangesMode=e}function Ye(){return Ue.lFrame.bindingIndex}function Ze(){return Ue.lFrame.bindingIndex++}function et(e){const t=Ue.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function tt(e,t){const r=Ue.lFrame;r.bindingIndex=r.bindingRootIndex=e,rt(t)}function rt(e){Ue.lFrame.currentDirectiveIndex=e}function nt(e){const t=Ue.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function it(){return Ue.lFrame.currentQueryIndex}function at(e){Ue.lFrame.currentQueryIndex=e}function ot(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function st(e,t,r){if(r&P.SkipSelf){let n=t,i=e;for(;n=n.parent,!(null!==n||r&P.Host||(n=ot(i),null===n)||(i=i[15],10&n.type)););if(null===n)return!1;t=n,e=i}const n=Ue.lFrame=ut();return n.currentTNode=t,n.lView=e,!0}function ct(e){const t=ut(),r=e[1];Ue.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function ut(){const e=Ue.lFrame,t=null===e?null:e.child;return null===t?lt(e):t}function lt(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function _t(){const e=Ue.lFrame;return Ue.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const dt=_t;function pt(){const e=_t();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ft(){return Ue.lFrame.selectedIndex}function gt(e){Ue.lFrame.selectedIndex=e}function mt(){const e=Ue.lFrame;return Pe(e.tView,e.selectedIndex)}function ht(){Ue.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function yt(){Ue.lFrame.currentNamespace=null}function vt(e,t){for(let r=t.directiveStart,n=t.directiveEnd;r=n)break}else t[s]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,a.call(o)):a.call(o)}class Ct{constructor(e,t,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function Tt(e,t,r){const n=Te(e);let i=0;for(;it){o=a-1;break}}}for(;a>16,n=t;for(;r>0;)n=n[15],r--;return n}let It=!0;function Mt(e){const t=It;return It=e,t}let Lt=0;function Rt(e,t){const r=jt(e,t);if(-1!==r)return r;const n=t[1];n.firstCreatePass&&(e.injectorIndex=t.length,Bt(n.data,e),Bt(t,null),Bt(n.blueprint,null));const i=Ut(e,t),a=e.injectorIndex;if(Pt(i)){const e=Ot(i),r=Ft(i,t),n=r[1].data;for(let i=0;i<8;i++)t[a+i]=r[e+i]|n[e+i]}return t[a+8]=i,a}function Bt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function jt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ut(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,n=null,i=t;for(;null!==i;){const e=i[1],t=e.type;if(n=2===t?e.declTNode:1===t?i[6]:null,null===n)return-1;if(r++,i=i[15],-1!==n.injectorIndex)return n.injectorIndex|r<<16}return-1}function zt(e,t,r){!function(e,t,r){let n;"string"==typeof r?n=r.charCodeAt(0)||0:r.hasOwnProperty(X)&&(n=r[X]),null==n&&(n=r[X]=Lt++);const i=255&n;t.data[e+(i>>5)]|=1<=0?255&t:Kt:t}(r);if("function"==typeof a){if(!st(t,e,n))return n&P.Host?Jt(i,r,n):Vt(t,r,n,i);try{const e=a();if(null!=e||n&P.Optional)return e;x(r)}finally{dt()}}else if("number"==typeof a){let i=null,o=jt(e,t),s=-1,c=n&P.Host?t[16][6]:null;for((-1===o||n&P.SkipSelf)&&(s=-1===o?Ut(e,t):t[o+8],-1!==s&&Xt(n,!1)?(i=t[1],o=Ot(s),t=Ft(s,t)):o=-1);-1!==o;){const e=t[1];if($t(a,o,e.data)){const e=Ht(o,t,r,i,n,c);if(e!==qt)return e}s=t[o+8],-1!==s&&Xt(n,t[1].data[o+8]===c)&&$t(a,o,t)?(i=e,o=Ot(s),t=Ft(s,t)):o=-1}}}return Vt(t,r,n,i)}const qt={};function Kt(){return new Yt(qe(),Je())}function Ht(e,t,r,n,i,a){const o=t[1],s=o.data[e+8],c=Gt(s,o,r,null==n?pe(s)&&It:n!=o&&0!=(3&s.type),i&P.Host&&a===s);return null!==c?Qt(t,o,c,s):qt}function Gt(e,t,r,n,i){const a=e.providerIndexes,o=t.data,s=1048575&a,c=e.directiveStart,u=a>>20,l=i?s+u:e.directiveEnd;for(let _=n?s:s+u;_=c&&e.type===r)return _}if(i){const e=o[c];if(e&&ge(e)&&e.type===r)return c}return null}function Qt(e,t,r,n){let i=e[r];const a=t.data;if(i instanceof Ct){const o=i;o.resolving&&function(e,t){throw new y("200",`Circular dependency in DI detected for ${e}`)}(b(a[r]));const s=Mt(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?F(o.injectImpl):null;st(e,n,P.Default);try{i=e[r]=o.factory(void 0,a,e,n),t.firstCreatePass&&r>=n.directiveStart&&function(e,t,r){const{ngOnChanges:n,ngOnInit:i,ngDoCheck:a}=t.type.prototype;if(n){const n=ve(t);(r.preOrderHooks||(r.preOrderHooks=[])).push(e,n),(r.preOrderCheckHooks||(r.preOrderCheckHooks=[])).push(e,n)}i&&(r.preOrderHooks||(r.preOrderHooks=[])).push(0-e,i),a&&((r.preOrderHooks||(r.preOrderHooks=[])).push(e,a),(r.preOrderCheckHooks||(r.preOrderCheckHooks=[])).push(e,a))}(r,a[r],t)}finally{null!==c&&F(c),Mt(s),o.resolving=!1,dt()}}return i}function $t(e,t,r){return!!(r[t+(e>>5)]&1<{const e=Zt(m(t));return e?e():null};let r=me(t);if(null===r){const e=T(t);r=e&&e.factory}return r||null}function er(e){return M(()=>{const t=e.prototype.constructor,r=t[$]||Zt(t),n=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==n;){const e=i[$]||Zt(i);if(e&&e!==r)return e;i=Object.getPrototypeOf(i)}return e=>new e})}function tr(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const e=r.length;let n=0;for(;n{const n=function(e){return function(...t){if(e){const r=e(...t);for(const e in r)this[e]=r[e]}}}(t);function i(...e){if(this instanceof i)return n.apply(this,e),this;const t=new i(...e);return r.annotation=t,r;function r(e,r,n){const i=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(t),e}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class nr{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=D({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ir=new nr("AnalyzeForEntryComponents"),ar=Function;function or(e,t){void 0===t&&(t=e);for(let r=0;rArray.isArray(e)?sr(e,t):t(e))}function cr(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function ur(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function lr(e,t){const r=[];for(let n=0;n=0?e[1|n]=r:(n=~n,function(e,t,r,n){let i=e.length;if(i==t)e.push(r,n);else if(1===i)e.push(n,e[0]),e[0]=r;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=r,e[t+1]=n}}(e,n,t,r)),n}function dr(e,t){const r=pr(e,t);if(r>=0)return e[1|r]}function pr(e,t){return function(e,t,r){let n=0,i=e.length>>1;for(;i!==n;){const r=n+(i-n>>1),a=e[r<<1];if(t===a)return r<<1;a>t?i=r:n=r+1}return~(i<<1)}(e,t)}const fr={},gr=/\n/gm,mr=l({provide:String,useValue:l});let hr;function yr(e){const t=hr;return hr=e,t}function vr(e,t=P.Default){if(void 0===hr)throw new Error("inject() must be called from an injection context");return null===hr?I(e,void 0,t):hr.get(e,t&P.Optional?null:void 0,t)}function br(e,t=P.Default){return(O||vr)(m(e),t)}const xr=br;function Dr(e){const t=[];for(let r=0;r({token:e})),-1),Cr=Sr(rr("Optional"),8),Tr=Sr(rr("SkipSelf"),4);let kr,wr;function Ar(){if(void 0===kr&&(kr=null,J.trustedTypes))try{kr=J.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return kr}function Nr(e){var t;return(null===(t=Ar())||void 0===t?void 0:t.createHTML(e))||e}function Pr(e){var t;return(null===(t=function(){if(void 0===wr&&(wr=null,J.trustedTypes))try{wr=J.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return wr}())||void 0===t?void 0:t.createHTML(e))||e}class Or{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Fr extends Or{getTypeName(){return"HTML"}}class Ir extends Or{getTypeName(){return"Style"}}class Mr extends Or{getTypeName(){return"Script"}}class Lr extends Or{getTypeName(){return"URL"}}class Rr extends Or{getTypeName(){return"ResourceURL"}}function Br(e){return e instanceof Or?e.changingThisBreaksApplicationSecurity:e}function jr(e,t){const r=Ur(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see https://g.co/ng/security#xss)`)}return r===t}function Ur(e){return e instanceof Or&&e.getTypeName()||null}function zr(e){return new Fr(e)}function Jr(e){return new Ir(e)}function Vr(e){return new Mr(e)}function Wr(e){return new Lr(e)}function qr(e){return new Rr(e)}class Kr{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(Nr(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class Hr{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Nr(e),t;const r=this.inertDocument.createElement("body");return r.innerHTML=Nr(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(e){const t=e.attributes;for(let n=t.length-1;0$r(e.trim())).join(", ")),this.buf.push(" ",t,'="',dn(o),'"')}var n;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();nn.hasOwnProperty(t)&&!Zr.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(dn(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const ln=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_n=/([^\#-~ |!])/g;function dn(e){return e.replace(/&/g,"&").replace(ln,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(_n,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let pn;function fn(e,t){let r=null;try{pn=pn||function(e){const t=new Hr(e);return function(){try{return!!(new window.DOMParser).parseFromString(Nr(""),"text/html")}catch(e){return!1}}()?new Kr(t):t}(e);let n=t?String(t):"";r=pn.getInertBodyElement(n);let i=5,a=n;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,n=a,a=r.innerHTML,r=pn.getInertBodyElement(n)}while(n!==a);return Nr((new un).sanitizeChildren(gn(r)||r))}finally{if(r){const e=gn(r)||r;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function gn(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var mn=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function hn(e){const t=bn();return t?Pr(t.sanitize(mn.HTML,e)||""):jr(e,"HTML")?Pr(Br(e)):fn(Ce(),v(e))}function yn(e){const t=bn();return t?t.sanitize(mn.URL,e)||"":jr(e,"URL")?Br(e):$r(v(e))}function vn(e){return function(e){var t;return(null===(t=Ar())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function bn(){const e=Je();return e&&e[12]}function xn(e){return e.ngDebugContext}function Dn(e){return e.ngOriginalError}function Sn(e,...t){e.error(...t)}class En{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),r=this._findContext(e),n=function(e){return e.ngErrorLogger||Sn}(e);n(this._console,"ERROR",e),t&&n(this._console,"ORIGINAL ERROR",t),r&&n(this._console,"ERROR CONTEXT",r)}_findContext(e){return e?xn(e)?xn(e):this._findContext(Dn(e)):null}_findOriginalError(e){let t=Dn(e);for(;t&&Dn(t);)t=Dn(t);return t}}function Cn(e,t){e.__ngContext__=t}const Tn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(J))();function kn(e){return e instanceof Function?e():e}var wn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function An(e,t){return(void 0)(e,t)}function Nn(e){const t=e[3];return _e(t)?t[3]:t}function Pn(e){return Fn(e[13])}function On(e){return Fn(e[4])}function Fn(e){for(;null!==e&&!_e(e);)e=e[4];return e}function In(e,t,r,n,i){if(null!=n){let a,o=!1;_e(n)?a=n:le(n)&&(o=!0,n=n[0]);const s=we(n);0===e&&null!==r?null==i?Jn(t,r,s):zn(t,r,s,i||null,!0):1===e&&null!==r?zn(t,r,s,i||null,!0):2===e?function(e,t,r){const n=Wn(e,t);n&&function(e,t,r,n){Te(e)?e.removeChild(t,r,n):t.removeChild(r)}(e,n,t,r)}(t,s,o):3===e&&t.destroyNode(s),null!=a&&function(e,t,r,n,i){const a=r[7];a!==we(r)&&In(t,e,n,a,i);for(let o=10;o0&&(e[r-1][4]=n[4]);const o=ur(e,10+t);Yn(n[1],i=n,i[11],2,null,null),i[0]=null,i[6]=null;const s=o[19];null!==s&&s.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-129}var i;return n}function Bn(e,t){if(!(256&t[2])){const r=t[11];Te(r)&&r.destroyNode&&Yn(e,t,r,3,null,null),function(e){let t=e[13];if(!t)return jn(e[1],e);for(;t;){let r=null;if(le(t))r=t[13];else{const e=t[10];e&&(r=e)}if(!r){for(;t&&!t[4]&&t!==e;)le(t)&&jn(t[1],t),t=t[3];null===t&&(t=e),le(t)&&jn(t[1],t),r=t&&t[4]}t=r}}(t)}}function jn(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let n=0;n=0?n[i=c]():n[i=-c].unsubscribe(),a+=2}else{const e=n[i=r[a+1]];r[a].call(e)}if(null!==n){for(let e=i+1;ea?"":i[l+1].toLowerCase();const t=8&n?e:null;if(t&&-1!==ri(t,u,0)||2&n&&u!==e){if(si(n))return!1;o=!0}}}}else{if(!o&&!si(n)&&!si(c))return!1;if(o&&si(c))continue;o=!1,n=c|1&n}}return si(n)||o}function si(e){return 0==(1&e)}function ci(e,t,r,n){if(null===t)return-1;let i=0;if(n||!r){let r=!1;for(;i-1)for(r++;r0?'="'+t+'"':"")+"]"}else 8&n?i+="."+o:4&n&&(i+=" "+o);else""===i||si(o)||(t+=_i(a,i),i=""),n=o,a=a||!si(n);r++}return""!==i&&(t+=_i(a,i)),t}const pi={};function fi(e){gi(Ve(),Je(),ft()+e,$e())}function gi(e,t,r,n){if(!n)if(3==(3&t[2])){const n=e.preOrderCheckHooks;null!==n&&bt(t,n,r)}else{const n=e.preOrderHooks;null!==n&&xt(t,n,0,r)}gt(r)}function mi(e,t){return e<<17|t<<2}function hi(e){return e>>17&32767}function yi(e){return 2|e}function vi(e){return(131068&e)>>2}function bi(e,t){return-131069&e|t<<2}function xi(e){return 1|e}function Di(e,t){const r=e.contentQueries;if(null!==r)for(let n=0;n20&&gi(e,t,20,$e()),r(n,i)}finally{gt(a)}}function Ni(e,t,r){ze()&&(function(e,t,r,n){const i=r.directiveStart,a=r.directiveEnd;e.firstCreatePass||Rt(r,t),Cn(n,t);const o=r.initialInputs;for(let s=i;s0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(r)!=a&&r.push(a),r.push(n,i,o)}}function ji(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Ui(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function zi(e,t,r){if(r){if(t.exportAs)for(let n=0;n0&&Qi(r)}}function Qi(e){for(let r=Pn(e);null!==r;r=On(r))for(let e=10;e0&&Qi(t)}const t=e[1].components;if(null!==t)for(let r=0;r0&&Qi(n)}}function $i(e,t){const r=Fe(t,e),n=r[1];!function(e,t){for(let r=t.length;rPromise.resolve(null))();function na(e){return e[7]||(e[7]=[])}function ia(e){return e.cleanup||(e.cleanup=[])}function aa(e,t,r){return(null===e||ge(e))&&(r=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(r[t.index])),r[11]}function oa(e,t){const r=e[9],n=r?r.get(En,null):null;n&&n.handleError(t)}function sa(e,t,r,n,i){for(let a=0;athis.processProvider(r,e,t)),sr([e],e=>this.processInjectorType(e,[],i)),this.records.set(la,Da(void 0,this));const a=this.records.get(da);this.scope=null!=a?a.value:null,this.source=n||("object"==typeof e?null:d(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=fr,r=P.Default){this.assertNotDestroyed();const n=yr(this);try{if(!(r&P.SkipSelf)){let t=this.records.get(e);if(void 0===t){const r=("function"==typeof(i=e)||"object"==typeof i&&i instanceof nr)&&E(e);t=r&&this.injectableDefInScope(r)?Da(ba(e),pa):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(r&P.Self?ha():this.parent).get(e,t=r&P.Optional&&t===fr?null:t)}catch(a){if("NullInjectorError"===a.name){if((a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(d(e)),n)throw a;return function(e,t,r,n){const i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,r,n=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=d(t);if(Array.isArray(t))i=t.map(d).join(" -> ");else if("object"==typeof t){let e=[];for(let r in t)if(t.hasOwnProperty(r)){let n=t[r];e.push(r+":"+("string"==typeof n?JSON.stringify(n):d(n)))}i=`{${e.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${e.replace(gr,"\n ")}`}("\n"+e.message,i,r,n),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(a,e,"R3InjectorError",this.source)}throw a}finally{yr(n)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,r)=>e.push(d(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,r){if(!(e=m(e)))return!1;let n=T(e);const i=null==n&&e.ngModule||void 0,a=void 0===i?e:i,o=-1!==r.indexOf(a);if(void 0!==i&&(n=T(i)),null==n)return!1;if(null!=n.imports&&!o){let e;r.push(a);try{sr(n.imports,n=>{this.processInjectorType(n,t,r)&&(void 0===e&&(e=[]),e.push(n))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,r,n||ga))}}this.injectorDefTypes.add(a),this.records.set(a,Da(n.factory,pa));const s=n.providers;if(null!=s&&!o){const t=e;sr(s,e=>this.processProvider(e,t,s))}return void 0!==i&&void 0!==e.providers}processProvider(e,t,r){let n=Ea(e=m(e))?e:m(e&&e.provide);const i=function(e,t,r){return Sa(e)?Da(void 0,e.useValue):Da(xa(e),pa)}(e);if(Ea(e)||!0!==e.multi)this.records.get(n);else{let t=this.records.get(n);t||(t=Da(void 0,pa,!0),t.factory=()=>Dr(t.multi),this.records.set(n,t)),n=e,t.multi.push(e)}this.records.set(n,i)}hydrate(e,t){var r;return t.value===pa&&(t.value=fa,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(r=t.value)&&"object"==typeof r&&"function"==typeof r.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function ba(e){const t=E(e),r=null!==t?t.factory:me(e);if(null!==r)return r;const n=T(e);if(null!==n)return n.factory;if(e instanceof nr)throw new Error(`Token ${d(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const r=lr(t,"?");throw new Error(`Can't resolve all parameters for ${d(e)}: (${r.join(", ")}).`)}const r=function(e){const t=e&&(e[k]||e[A]);if(t){const r=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${r}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${r}" class.`),t}return null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new Error("unreachable")}function xa(e,t,r){let n;if(Ea(e)){const t=m(e);return me(t)||ba(t)}if(Sa(e))n=()=>m(e.useValue);else if((i=e)&&i.useFactory)n=()=>e.useFactory(...Dr(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))n=()=>br(m(e.useExisting));else{const t=m(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return me(t)||ba(t);n=()=>new t(...Dr(e.deps))}var i;return n}function Da(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Sa(e){return null!==e&&"object"==typeof e&&mr in e}function Ea(e){return"function"==typeof e}const Ca=function(e,t,r){return function(e,t=null,r=null,n){const i=ya(e,t,r,n);return i._resolveInjectorDefTypes(),i}({name:r},t,e,r)};let Ta=(()=>{class e{static create(e,t){return Array.isArray(e)?Ca(e,t,""):Ca(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=fr,e.NULL=new _a,e.\u0275prov=D({token:e,providedIn:"any",factory:()=>br(la)}),e.__NG_ELEMENT_ID__=-1,e})();function ka(e,t){vt(Ie(e)[1],qe())}function wa(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,r=!0;const n=[e];for(;t;){let i;if(ge(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(r){n.push(i);const t=e;t.inputs=Aa(e.inputs),t.declaredInputs=Aa(e.declaredInputs),t.outputs=Aa(e.outputs);const r=i.hostBindings;r&&Oa(e,r);const a=i.viewQuery,o=i.contentQueries;if(a&&Na(e,a),o&&Pa(e,o),_(e.inputs,i.inputs),_(e.declaredInputs,i.declaredInputs),_(e.outputs,i.outputs),ge(i)&&i.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(i.data.animation)}}const t=i.features;if(t)for(let n=0;n=0;n--){const i=e[n];i.hostVars=t+=i.hostVars,i.hostAttrs=At(i.hostAttrs,r=At(r,i.hostAttrs))}}(n)}function Aa(e){return e===V?{}:e===W?[]:e}function Na(e,t){const r=e.viewQuery;e.viewQuery=r?(e,n)=>{t(e,n),r(e,n)}:t}function Pa(e,t){const r=e.contentQueries;e.contentQueries=r?(e,n,i)=>{t(e,n,i),r(e,n,i)}:t}function Oa(e,t){const r=e.hostBindings;e.hostBindings=r?(e,n)=>{t(e,n),r(e,n)}:t}let Fa=null;function Ia(){if(!Fa){const e=J.Symbol;if(e&&e.iterator)Fa=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ts(we(e[n.index])).target:n.index;if(Te(r)){let o=null;if(!s&&c&&(o=function(e,t,r,n){const i=e.cleanup;if(null!=i)for(let a=0;ar?e[r]:null}"string"==typeof e&&(a+=2)}return null}(e,t,i,n.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=a,o.__ngLastListenerFn__=a,_=!1;else{a=no(n,t,a,!1);const e=r.listen(p.name||f,i,a);l.push(a,e),u&&u.push(i,m,g,g+1)}}else a=no(n,t,a,!0),f.addEventListener(i,a,o),l.push(a),u&&u.push(i,m,g,o)}else a=no(n,t,a,!1);const d=n.outputs;let p;if(_&&null!==d&&(p=d[i])){const e=p.length;if(e)for(let r=0;r0;)t=t[15],e--;return t}(e,Ue.lFrame.contextLView))[8]}(e)}function ao(e,t){let r=null;const n=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let i=0;i=0}function _o(e,t,r){return fo(e,t,r,!1),_o}function po(e,t){return fo(e,t,null,!0),po}function fo(e,t,r,n){const i=Je(),a=Ve(),o=et(2);a.firstUpdatePass&&function(e,t,r,n){const i=e.data;if(null===i[r+1]){const a=i[ft()],o=function(e,t){return t>=e.expandoStartIndex}(e,r);(function(e,t){return 0!=(e.flags&(t?16:32))})(a,n)&&null===t&&!o&&(t=!1),t=function(e,t,r,n){const i=nt(e);let a=n?t.residualClasses:t.residualStyles;if(null===i)0===(n?t.classBindings:t.styleBindings)&&(r=mo(r=go(null,e,t,r,n),t.attrs,n),a=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==i)if(r=go(i,e,t,r,n),null===a){let r=function(e,t,r){const n=r?t.classBindings:t.styleBindings;if(0!==vi(n))return e[hi(n)]}(e,t,n);void 0!==r&&Array.isArray(r)&&(r=go(null,e,t,r[1],n),r=mo(r,t.attrs,n),function(e,t,r,n){e[hi(r?t.classBindings:t.styleBindings)]=n}(e,t,n,r))}else a=function(e,t,r){let n;const i=t.directiveEnd;for(let a=1+t.directiveStylingLast;a0)&&(l=!0)}else u=r;if(i)if(0!==c){const t=hi(e[s+1]);e[n+1]=mi(t,s),0!==t&&(e[t+1]=bi(e[t+1],n)),e[s+1]=131071&e[s+1]|n<<17}else e[n+1]=mi(s,0),0!==s&&(e[s+1]=bi(e[s+1],n)),s=n;else e[n+1]=mi(c,0),0===s?s=n:e[c+1]=bi(e[c+1],n),c=n;l&&(e[n+1]=yi(e[n+1])),uo(e,u,n,!0),uo(e,u,n,!1),function(e,t,r,n,i){const a=i?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&pr(a,t)>=0&&(r[n+1]=xi(r[n+1]))}(t,u,e,n,a),o=mi(s,c),a?t.classBindings=o:t.styleBindings=o}(i,a,t,r,o,n)}}(a,e,o,n),t!==pi&&Ba(i,o,t)&&function(e,t,r,n,i,a,o,s){if(!(3&t.type))return;const c=e.data,u=c[s+1];yo(1==(1&u)?ho(c,t,r,i,vi(u),o):void 0)||(yo(a)||function(e){return 2==(2&e)}(u)&&(a=ho(c,null,r,i,s,o)),function(e,t,r,n,i){const a=Te(e);if(t)i?a?e.addClass(r,n):r.classList.add(n):a?e.removeClass(r,n):r.classList.remove(n);else{let t=-1===n.indexOf("-")?void 0:wn.DashCase;if(null==i)a?e.removeStyle(r,n,t):r.style.removeProperty(n);else{const o="string"==typeof i&&i.endsWith("!important");o&&(i=i.slice(0,-10),t|=wn.Important),a?e.setStyle(r,n,i,t):r.style.setProperty(n,i,o?"important":"")}}}(n,o,Ae(ft(),r),i,a))}(a,a.data[ft()],i,i[11],e,i[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=d(Br(e)))),e}(t,r),n,o)}function go(e,t,r,n,i){let a=null;const o=r.directiveEnd;let s=r.directiveStylingLast;for(-1===s?s=r.directiveStart:s++;s0;){const t=e[i],a=Array.isArray(t),c=a?t[1]:t,u=null===c;let l=r[i+1];l===pi&&(l=u?co:void 0);let _=u?dr(l,n):c===n?l:void 0;if(a&&!yo(_)&&(_=dr(t,n)),yo(_)&&(s=_,o))return s;const d=e[i+1];i=o?hi(d):vi(d)}if(null!==t){let e=a?t.residualClasses:t.residualStyles;null!=e&&(s=dr(e,n))}return s}function yo(e){return void 0!==e}function vo(e,t=""){const r=Je(),n=Ve(),i=e+20,a=n.firstCreatePass?Ei(n,i,1,t,null):n.data[i],o=r[i]=function(e,t){return Te(e)?e.createText(t):e.createTextNode(t)}(r[11],t);Hn(n,r,o,a),He(a,!1)}function bo(e){return xo("",e,""),bo}function xo(e,t,r){const n=Je(),i=function(e,t,r,n){return Ba(e,Ze(),r)?t+v(r)+n:pi}(n,e,t,r);return i!==pi&&ca(n,ft(),i),xo}function Do(e,t,r,n,i){const a=Je(),o=function(e,t,r,n,i,a){const o=function(e,t,r,n){const i=Ba(e,t,r);return Ba(e,t+1,n)||i}(e,Ye(),r,i);return et(2),o?t+v(r)+n+v(i)+a:pi}(a,e,t,r,n,i);return o!==pi&&ca(a,ft(),o),Do}function So(e,t,r){const n=Je();return Ba(n,Ze(),t)&&Li(Ve(),mt(),n,e,t,n[11],r,!0),So}function Eo(e,t,r){const n=Je();if(Ba(n,Ze(),t)){const i=Ve(),a=mt();Li(i,a,n,e,t,aa(nt(i.data),a,n),r,!0)}return Eo}const Co=void 0;var To=["en",[["a","p"],["AM","PM"],Co],[["AM","PM"],Co,Co],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Co,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Co,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Co,"{1} 'at' {0}",Co],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let ko={};function wo(e,t,r){"string"!=typeof t&&(r=t,t=e[Fo.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),ko[t]=e,r&&(ko[t][Fo.ExtraData]=r)}function Ao(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=Oo(t);if(r)return r;const n=t.split("-")[0];if(r=Oo(n),r)return r;if("en"===n)return To;throw new Error(`Missing locale data for the locale "${e}".`)}function No(e){return Ao(e)[Fo.CurrencyCode]||null}function Po(e){return Ao(e)[Fo.PluralCase]}function Oo(e){return e in ko||(ko[e]=J.ng&&J.ng.common&&J.ng.common.locales&&J.ng.common.locales[e]),ko[e]}var Fo=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});let Io="en-US";function Mo(e){var t,r;r="Expected localeId to be defined",null==(t=e)&&function(e,t,r,n){throw new Error(`ASSERTION ERROR: ${e} [Expected=> null != ${t} <=Actual]`)}(r,t),"string"==typeof e&&(Io=e.toLowerCase().replace(/_/g,"-"))}function Lo(e,t,r,n,i){if(e=m(e),Array.isArray(e))for(let a=0;a>20;if(Ea(e)||!e.multi){const n=new Ct(c,i,Ja),p=jo(s,t,i?l:l+d,_);-1===p?(zt(Rt(u,o),a,s),Ro(a,e,t.length),t.push(s),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),r.push(n),o.push(n)):(r[p]=n,o[p]=n)}else{const p=jo(s,t,l+d,_),f=jo(s,t,l,l+d),g=p>=0&&r[p],m=f>=0&&r[f];if(i&&!m||!i&&!g){zt(Rt(u,o),a,s);const l=function(e,t,r,n,i){const a=new Ct(e,r,Ja);return a.multi=[],a.index=t,a.componentProviders=0,Bo(a,i,n&&!r),a}(i?zo:Uo,r.length,i,n,c);!i&&m&&(r[f].providerFactory=l),Ro(a,e,t.length,0),t.push(s),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),r.push(l),o.push(l)}else Ro(a,e,p>-1?p:f,Bo(r[i?f:p],c,!i&&n));!i&&n&&m&&r[f].componentProviders++}}}function Ro(e,t,r,n){const i=Ea(t);if(i||t.useClass){const a=(t.useClass||t).prototype.ngOnDestroy;if(a){const o=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const e=o.indexOf(r);-1===e?o.push(r,[n,a]):o[e+1].push(n,a)}else o.push(r,a)}}}function Bo(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function jo(e,t,r,n){for(let i=r;i{r.providersResolver=(r,n)=>function(e,t,r){const n=Ve();if(n.firstCreatePass){const i=ge(e);Lo(r,n.data,n.blueprint,i,!0),Lo(t,n.data,n.blueprint,i,!1)}}(r,n?n(e):e,t)}}class Wo{}class qo{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${d(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let Ko=(()=>{class e{}return e.NULL=new qo,e})();function Ho(...e){}function Go(e,t){return new $o(Ne(e,t))}const Qo=function(){return Go(qe(),Je())};let $o=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=Qo,e})();function Xo(e){return e instanceof $o?e.nativeElement:e}class Yo{}let Zo=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>es(),e})();const es=function(){const e=Je(),t=Fe(qe().index,e);return function(e){return e[11]}(le(t)?t:e)};let ts=(()=>{class e{}return e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null}),e})();class rs{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const ns=new rs("11.2.4");class is{constructor(){}supports(e){return La(e)}create(e){return new os(e)}}const as=(e,t)=>t;class os{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||as}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,r=this._removalsHead,n=0,i=null;for(;t||r;){const a=!r||t&&t.currentIndex{n=this._trackByFn(t,e),null!==i&&Object.is(i.trackById,n)?(a&&(i=this._verifyReinsertion(i,e,n,t)),Object.is(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,n,t),a=!0),i=i._next,t++}),this.length=t;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,r,n){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,n)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,n))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,n)):e=this._addAfter(new ss(t,r),i,n),e}_verifyReinsertion(e,t,r,n){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?e=this._reinsertAfter(i,e._prev,n):e.currentIndex!=n&&(e.currentIndex=n,this._addToMoves(e,n)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const n=e._prevRemoved,i=e._nextRemoved;return null===n?this._removalsHead=i:n._nextRemoved=i,null===i?this._removalsTail=n:i._prevRemoved=n,this._insertAfter(e,t,r),this._addToMoves(e,r),e}_moveAfter(e,t,r){return this._unlink(e),this._insertAfter(e,t,r),this._addToMoves(e,r),e}_addAfter(e,t,r){return this._insertAfter(e,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,r){const n=null===t?this._itHead:t._next;return e._next=n,e._prev=t,null===n?this._itTail=e:n._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new us),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,r=e._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new us),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class ss{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class cs{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class us{constructor(){this.map=new Map}put(e){const t=e.trackById;let r=this.map.get(t);r||(r=new cs,this.map.set(t,r)),r.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ls(e,t,r){const n=e.previousIndex;if(null===n)return n;let i=0;return r&&n{if(t&&t.key===r)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const n=this._getOrCreateRecordForKey(r,e);t=this._insertBeforeOrAppend(t,n)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const r=e._prev;return t._next=e,t._prev=r,e._prev=t,r&&(r._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,t);const n=r._prev,i=r._next;return n&&(n._next=i),i&&(i._prev=n),r._next=null,r._prev=null,r}const r=new ps(e);return this._records.set(e,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(r=>t(e[r],r))}}class ps{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function fs(){return new gs([new is])}let gs=(()=>{class e{constructor(e){this.factories=e}static create(t,r){if(null!=r){const e=r.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||fs()),deps:[[e,new Tr,new Cr]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${r=e,r.name||typeof r}'`);var r}}return e.\u0275prov=D({token:e,providedIn:"root",factory:fs}),e})();function ms(){return new hs([new _s])}let hs=(()=>{class e{constructor(e){this.factories=e}static create(t,r){if(r){const e=r.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||ms()),deps:[[e,new Tr,new Cr]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=D({token:e,providedIn:"root",factory:ms}),e})();function ys(e,t,r,n,i=!1){for(;null!==r;){const a=t[r.index];if(null!==a&&n.push(we(a)),_e(a))for(let e=10;e-1&&(Rn(e,r),ur(t,r))}this._attachedToViewContainer=!1}Bn(this._lView[1],this._lView)}onDestroy(e){Ii(this._lView[1],this._lView,null,e)}markForCheck(){Yi(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Zi(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,r){Xe(!0);try{Zi(e,t,r)}finally{Xe(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,Yn(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class bs extends vs{constructor(e){super(e),this._view=e}detectChanges(){ea(this._view)}checkNoChanges(){!function(e){Xe(!0);try{ea(e)}finally{Xe(!1)}}(this._view)}get context(){return null}}const xs=Ss;let Ds=(()=>{class e{}return e.__NG_ELEMENT_ID__=xs,e.__ChangeDetectorRef__=!0,e})();function Ss(e=!1){return function(e,t,r){if(!r&&pe(e)){const r=Fe(e.index,t);return new vs(r,r)}return 47&e.type?new vs(t[16],t):null}(qe(),Je(),e)}const Es=[new _s],Cs=new gs([new is]),Ts=new hs(Es),ks=function(){return Ps(qe(),Je())};let ws=(()=>{class e{}return e.__NG_ELEMENT_ID__=ks,e})();const As=ws,Ns=class extends As{constructor(e,t,r){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(e){const t=this._declarationTContainer.tViews,r=Si(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(r[19]=n.createEmbeddedView(t)),Ti(t,r,e),new vs(r)}};function Ps(e,t){return 4&e.type?new Ns(t,e,Go(e,t)):null}class Os{}class Fs{}const Is=function(){return Us(qe(),Je())};let Ms=(()=>{class e{}return e.__NG_ELEMENT_ID__=Is,e})();const Ls=Ms,Rs=class extends Ls{constructor(e,t,r){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=r}get element(){return Go(this._hostTNode,this._hostLView)}get injector(){return new Yt(this._hostTNode,this._hostLView)}get parentInjector(){const e=Ut(this._hostTNode,this._hostLView);if(Pt(e)){const t=Ft(e,this._hostLView),r=Ot(e);return new Yt(t[1].data[r+8],t)}return new Yt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Bs(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,r){const n=e.createEmbeddedView(t||{});return this.insert(n,r),n}createComponent(e,t,r,n,i){const a=r||this.parentInjector;if(!i&&null==e.ngModule&&a){const e=a.get(Os,null);e&&(i=e)}const o=e.create(a,n,void 0,i);return this.insert(o.hostView,t),o}insert(e,t){const r=e._lView,n=r[1];if(_e(r[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=r[3],n=new Rs(t,t[6],t[3]);n.detach(n.indexOf(e))}}const i=this._adjustIndex(t),a=this._lContainer;!function(e,t,r,n){const i=10+n,a=r.length;n>0&&(r[i-1][4]=t),nTn});class qs extends Wo{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(di).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Vs(this.componentDef.inputs)}get outputs(){return Vs(this.componentDef.outputs)}create(e,t,r,n){const i=(n=n||this.ngModule)?function(e,t){return{get:(r,n,i)=>{const a=e.get(r,zs,i);return a!==zs||n===zs?a:t.get(r,n,i)}}}(e,n.injector):e,a=i.get(Yo,ke),o=i.get(ts,null),s=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=r?function(e,t,r){if(Te(e))return e.selectRootElement(t,r===R.ShadowDom);let n="string"==typeof t?e.querySelector(t):t;return n.textContent="",n}(s,r,this.componentDef.encapsulation):Mn(a.createRenderer(null,this.componentDef),c,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,_={components:[],scheduler:Tn,clean:ra,playerHandler:null,flags:0},d=Fi(0,null,null,1,0,null,null,null,null,null),p=Si(null,d,_,l,null,null,a,s,o,i);let f,g;ct(p);try{const e=function(e,t,r,n,i,a){const o=r[1];r[20]=e;const s=Ei(o,20,2,"#host",null),c=s.mergedAttrs=t.hostAttrs;null!==c&&(ua(s,c,!0),null!==e&&(Tt(i,e,c),null!==s.classes&&ti(i,e,s.classes),null!==s.styles&&ei(i,e,s.styles)));const u=n.createRenderer(e,t),l=Si(r,Oi(t),null,t.onPush?64:16,r[20],s,n,u,null,null);return o.firstCreatePass&&(zt(Rt(s,r),o,t.type),Ui(o,s),Ji(s,r.length,1)),Xi(r,l),r[20]=l}(u,this.componentDef,p,a,s);if(u)if(r)Tt(s,u,["ng-version",ns.full]);else{const{attrs:e,classes:t}=function(e){const t=[],r=[];let n=1,i=2;for(;n0&&ti(s,u,t.join(" "))}if(g=Pe(d,20),void 0!==t){const e=g.projection=[];for(let r=0;re(o,t)),t.contentQueries){const e=qe();t.contentQueries(1,o,e.directiveStart)}const s=qe();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(gt(s.index),Bi(r[1],s,0,s.directiveStart,s.directiveEnd,t),ji(t,o)),o}(e,this.componentDef,p,_,[ka]),Ti(d,p,null)}finally{pt()}return new Ks(this.componentType,f,Go(g,p),p,g)}}class Ks extends class{}{constructor(e,t,r,n,i){super(),this.location=r,this._rootLView=n,this._tNode=i,this.instance=t,this.hostView=this.changeDetectorRef=new bs(n),this.componentType=e}get injector(){return new Yt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const Hs=new Map;class Gs extends Os{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Js(this);const r=ue(e),n=e[Q]||null;n&&Mo(n),this._bootstrapComponents=kn(r.bootstrap),this._r3Injector=ya(e,t,[{provide:Os,useValue:this},{provide:Ko,useValue:this.componentFactoryResolver}],d(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Ta.THROW_IF_NOT_FOUND,r=P.Default){return e===Ta||e===Os||e===la?this:this._r3Injector.get(e,t,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Qs extends Fs{constructor(e){super(),this.moduleType=e,null!==ue(e)&&function(e){const t=new Set;!function e(r){const n=ue(r,!0),i=n.id;null!==i&&(function(e,t,r){if(t&&t!==r)throw new Error(`Duplicate module registered for ${e} - ${d(t)} vs ${d(t.name)}`)}(i,Hs.get(i),r),Hs.set(i,r));const a=kn(n.imports);for(const o of a)t.has(o)||(t.add(o),e(o))}(e)}(e)}create(e){return new Gs(this.moduleType,e)}}function $s(e,t){const r=Ve();let n;const i=e+20;r.firstCreatePass?(n=function(e,t){if(t)for(let r=t.length-1;r>=0;r--){const n=t[r];if(e===n.name)return n}throw new y("302",`The pipe '${e}' could not be found!`)}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];const a=n.factory||(n.factory=me(n.type)),o=F(Ja);try{const e=Mt(!1),t=a();return Mt(e),function(e,t,r,n){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=n}(r,Je(),i,t),t}finally{F(o)}}function Xs(e,t,r){const n=e+20,i=Je(),a=Oe(i,n);return function(e,t){return Ma.isWrapped(t)&&(t=Ma.unwrap(t),e[Ye()]=pi),t}(i,function(e,t){return e[1].data[t].pure}(i,n)?function(e,t,r,n,i,a){const o=t+r;return Ba(e,o,i)?function(e,t,r){return e[t]=r}(e,o+1,a?n.call(a,i):n(i)):function(e,t){const r=e[t];return r===pi?void 0:r}(e,o+1)}(i,function(){const e=Ue.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),t,a.transform,r,a):a.transform(r))}const Ys=class extends n.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){let n,a=e=>null,o=()=>null;e&&"object"==typeof e?(n=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(a=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(n=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(a=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),r&&(o=this.__isAsync?()=>{setTimeout(()=>r())}:()=>{r()}));const s=super.subscribe(n,a,o);return e instanceof i.a&&e.add(s),s}};function Zs(){return this._results[Ia()]()}class ec{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Ia(),r=ec.prototype;r[t]||(r[t]=Zs)}get changes(){return this._changes||(this._changes=new Ys)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const r=or(e);(this._changesDetected=!function(e,t,r){if(e.length!==t.length)return!1;for(let n=0;n0)n.push(o[e/2]);else{const i=a[e+1],o=t[-r];for(let e=10;e{class e{constructor(e){this.appInits=e,this.resolve=Ho,this.reject=Ho,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(br(yc,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac}),e})();const bc=new nr("AppId"),xc={provide:bc,useFactory:function(){return`${Dc()}${Dc()}${Dc()}`},deps:[]};function Dc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Sc=new nr("Platform Initializer"),Ec=new nr("Platform ID"),Cc=new nr("appBootstrapListener");let Tc=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac}),e})();const kc=new nr("LocaleId"),wc=new nr("DefaultCurrencyCode");class Ac{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Nc=function(e){return new Qs(e)},Pc=Nc,Oc=function(e){return Promise.resolve(Nc(e))},Fc=function(e){const t=Nc(e),r=kn(ue(e).declarations).reduce((e,t)=>{const r=ce(t);return r&&e.push(new qs(r)),e},[]);return new Ac(t,r)},Ic=Fc,Mc=function(e){return Promise.resolve(Fc(e))};let Lc=(()=>{class e{constructor(){this.compileModuleSync=Pc,this.compileModuleAsync=Oc,this.compileModuleAndAllComponentsSync=Ic,this.compileModuleAndAllComponentsAsync=Mc}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac}),e})();const Rc=(()=>Promise.resolve(0))();function Bc(e){"undefined"==typeof Zone?Rc.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class jc{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ys(!1),this.onMicrotaskEmpty=new Ys(!1),this.onStable=new Ys(!1),this.onError=new Ys(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!r&&t,this.shouldCoalesceRunChangeDetection=r,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=J.requestAnimationFrame,t=J.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r);const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(J,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Jc(e),zc(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Jc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,a,o,s)=>{try{return Vc(e),r.invokeTask(i,a,o,s)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),Wc(e)}},onInvoke:(r,n,i,a,o,s,c)=>{try{return Vc(e),r.invoke(i,a,o,s,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),Wc(e)}},onHasTask:(t,r,n,i)=>{t.hasTask(n,i),r===n&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Jc(e),zc(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,r,n,i)=>(t.handleError(n,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!jc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(jc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,r){return this._inner.run(e,t,r)}runTask(e,t,r,n){const i=this._inner,a=i.scheduleEventTask("NgZoneEvent: "+n,e,Uc,Ho,Ho);try{return i.runTask(a,t,r)}finally{i.cancelTask(a)}}runGuarded(e,t,r){return this._inner.runGuarded(e,t,r)}runOutsideAngular(e){return this._outer.run(e)}}const Uc={};function zc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Jc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Vc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Wc(e){e._nesting--,zc(e)}class qc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ys,this.onMicrotaskEmpty=new Ys,this.onStable=new Ys,this.onError=new Ys}run(e,t,r){return e.apply(t,r)}runGuarded(e,t,r){return e.apply(t,r)}runOutsideAngular(e){return e()}runTask(e,t,r,n){return e.apply(t,r)}}let Kc=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{jc.assertNotInAngularZone(),Bc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Bc(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,r){let n=-1;t&&t>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==n),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:n,updateCb:r})}whenStable(e,t,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,r){return[]}}return e.\u0275fac=function(t){return new(t||e)(br(jc))},e.\u0275prov=D({token:e,factory:e.\u0275fac}),e})(),Hc=(()=>{class e{constructor(){this._applications=new Map,Xc.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Xc.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac}),e})();class Gc{addToWindow(e){}findTestabilityInTree(e,t,r){return null}}function Qc(e){Xc=e}let $c,Xc=new Gc,Yc=!0,Zc=!1;function eu(){return Zc=!0,Yc}function tu(){if(Zc)throw new Error("Cannot enable prod mode after platform setup.");Yc=!1}const ru=new nr("AllowMultipleToken");class nu{constructor(e,t){this.name=e,this.token=t}}function iu(e,t,r=[]){const n=`Platform: ${t}`,i=new nr(n);return(t=[])=>{let a=au();if(!a||a.injector.get(ru,!1))if(e)e(r.concat(t).concat({provide:i,useValue:!0}));else{const e=r.concat(t).concat({provide:i,useValue:!0},{provide:da,useValue:"platform"});!function(e){if($c&&!$c.destroyed&&!$c.injector.get(ru,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");$c=e.get(ou);const t=e.get(Sc,null);t&&t.forEach(e=>e())}(Ta.create({providers:e,name:n}))}return function(e){const t=au();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function au(){return $c&&!$c.destroyed?$c:null}let ou=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const r=function(e,t){let r;return r="noop"===e?new qc:("zone.js"===e?void 0:e)||new jc({enableLongStackTrace:eu(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),r}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),n=[{provide:jc,useValue:r}];return r.run(()=>{const t=Ta.create({providers:n,parent:this.injector,name:e.moduleType.name}),i=e.create(t),a=i.injector.get(En,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.runOutsideAngular(()=>{const e=r.onError.subscribe({next:e=>{a.handleError(e)}});i.onDestroy(()=>{uu(this._modules,i),e.unsubscribe()})}),function(e,t,r){try{const n=r();return $a(n)?n.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}(a,r,()=>{const e=i.injector.get(vc);return e.runInitializers(),e.donePromise.then(()=>(Mo(i.injector.get(kc,"en-US")||"en-US"),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,t=[]){const r=su({},t);return function(e,t,r){const n=new Qs(r);return Promise.resolve(n)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,r))}_moduleDoBootstrap(e){const t=e.injector.get(cu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${d(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(br(Ta))},e.\u0275prov=D({token:e,factory:e.\u0275fac}),e})();function su(e,t){return Array.isArray(t)?t.reduce(su,e):Object.assign(Object.assign({},e),t)}let cu=(()=>{class e{constructor(e,t,r,n,i){this._zone=e,this._injector=t,this._exceptionHandler=r,this._componentFactoryResolver=n,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new a.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),_=new a.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{jc.assertNotInAngularZone(),Bc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const r=this._zone.onUnstable.subscribe(()=>{jc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),r.unsubscribe()}});this.isStable=Object(o.a)(l,_.pipe(e=>{return Object(c.a)()((t=u,function(e){let r;r="function"==typeof t?t:function(){return t};const n=Object.create(e,s.b);return n.source=e,n.subjectFactory=r,n})(e));var t}))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let r;r=e instanceof Wo?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(r.componentType);const n=r.isBoundToModule?void 0:this._injector.get(Os),i=r.create(Ta.NULL,[],t||r.selector,n),a=i.location.nativeElement,o=i.injector.get(Kc,null),s=o&&i.injector.get(Hc);return o&&s&&s.registerApplication(a,o),i.onDestroy(()=>{this.detachView(i.hostView),uu(this.components,i),s&&s.unregisterApplication(a)}),this._loadComponent(i),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;uu(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Cc,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(br(jc),br(Ta),br(En),br(Ko),br(vc))},e.\u0275prov=D({token:e,factory:e.\u0275fac}),e})();function uu(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class lu{}class _u{}const du={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let pu=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||du}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,n]=e.split("#");return void 0===n&&(n="default"),r("zn8P")(t).then(e=>e[n]).then(e=>fu(e,t,n)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,n]=e.split("#"),i="NgFactory";return void 0===n&&(n="default",i=""),r("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[n+i]).then(e=>fu(e,t,n))}}return e.\u0275fac=function(t){return new(t||e)(br(Lc),br(_u,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac}),e})();function fu(e,t,r){if(!e)throw new Error(`Cannot find '${r}' in '${t}'`);return e}const gu=function(e){return null},mu=iu(null,"core",[{provide:Ec,useValue:"unknown"},{provide:ou,deps:[Ta]},{provide:Hc,deps:[]},{provide:Tc,deps:[]}]),hu=[{provide:cu,useClass:cu,deps:[jc,Ta,En,Ko,vc]},{provide:Ws,deps:[jc],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:vc,useClass:vc,deps:[[new Cr,yc]]},{provide:Lc,useClass:Lc,deps:[]},xc,{provide:gs,useFactory:function(){return Cs},deps:[]},{provide:hs,useFactory:function(){return Ts},deps:[]},{provide:kc,useFactory:function(e){return Mo(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new Er(kc),new Cr,new Tr]]},{provide:wc,useValue:"USD"}];let yu=(()=>{class e{constructor(e){}}return e.\u0275mod=ne({type:e}),e.\u0275inj=S({factory:function(t){return new(t||e)(br(cu))},providers:hu}),e})()},"8ok5":function(e,t,r){"use strict";function n(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o}function i(e,t){return function(r,n){t(r,n,e)}}function a(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}r.d(t,"a",function(){return f}),r.d(t,"b",function(){return d}),r.d(t,"c",function(){return g});var o=r("8Y7J"),s=r("2Vo4"),c=(r("XNiG"),r("1G5W"),r("pLZG")),u=r("IzEk"),l=r("s7LF");const _=["editor"];let d=(()=>{let e=class{constructor(e,t){this.ngZone=e,this.monacoPathConfig=t,this.isMonacoLoaded$=new s.a(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?e.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(e){e&&(this._monacoPath=e)}loadMonaco(){const e=()=>{let e=this._monacoPath;window.amdRequire=window.require,this.nodeRequire&&(window.require=this.nodeRequire,e=window.require("path").resolve(window.__dirname,this._monacoPath)),window.amdRequire.config({paths:{vs:e}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))})};if(window.amdRequire)return e();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const t=document.createElement("script");t.type="text/javascript",t.src=`${this._monacoPath}/loader.js`,t.addEventListener("load",e),document.body.appendChild(t)}addElectronFixScripts(){const e=document.createElement("script"),t=document.createTextNode("self.module = undefined;"),r=document.createTextNode("self.process.browser = true;");e.appendChild(t),e.appendChild(r),document.body.appendChild(e)}};return e.\u0275fac=function(t){return new(t||e)(o.Sb(o.A),o.Sb("MONACO_PATH",8))},e.\u0275prov=Object(o.Hb)({factory:function(){return new e(Object(o.Sb)(o.A),Object(o.Sb)("MONACO_PATH",8))},token:e,providedIn:"root"}),e=n([i(1,Object(o.B)()),i(1,Object(o.p)("MONACO_PATH")),a("design:paramtypes",[o.A,String])],e),e})();var p;let f=(()=>{let e=p=class{constructor(e){this.monacoLoader=e,this.init=new o.n,this.propagateChange=e=>{}}get model(){return this.editor&&this.editor.getModel()}get modelMarkers(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}ngOnInit(){this.monacoLoader.isMonacoLoaded$.pipe(Object(c.a)(e=>e),Object(u.a)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(e){if(this.editor&&e.options&&!e.options.firstChange){const t=e.options.currentValue,{language:r,theme:n}=t,i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);ie.uri.path===t.path)),this.modelUriInstance=r||monaco.editor.createModel(e,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(e){this.value=e,this.editor&&e?this.editor.setValue(e):this.editor&&this.editor.setValue("")}registerOnChange(e){this.propagateChange=e}registerOnTouched(e){this.onTouched=e}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(e){this.onErrorStatusChange=e}initEditor(){const e={value:[this.value].join("\n"),language:"text",automaticLayout:!0,scrollBeyondLastLine:!1,theme:"vc"};this.editor=monaco.editor.create(this.editorContent.nativeElement,this.options?Object.assign(Object.assign({},e),this.options):e),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const e=this.modelMarkers.map(({message:e})=>e).join("|");this.parsedError!==e&&(this.parsedError=e,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}};return e.\u0275fac=function(t){return new(t||e)(o.Lb(d))},e.\u0275cmp=o.Fb({type:e,selectors:[["ngx-monaco-editor"]],viewQuery:function(e,t){if(1&e&&o.vc(_,3),2&e){let e;o.gc(e=o.Xb())&&(t.editorContent=e.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[o.Ab([{provide:l.c,useExisting:Object(o.U)(()=>p),multi:!0},{provide:l.b,useExisting:Object(o.U)(()=>p),multi:!0}]),o.zb],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(e,t){1&e&&(o.Ob(0,"div",0,1),o.Mb(2,"div",2,3),o.Nb())},styles:[".monaco-editor[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n\n}\n.editor-container[_ngcontent-%COMP%] {\n\toverflow: hidden;\n\tposition: relative;\n\tdisplay: table;\n\twidth: 100%;\n height: 100%;\n min-width: 0;\n}"],changeDetection:0}),e=p=n([a("design:paramtypes",[d])],e),e})(),g=(()=>{let e=class{};return e.\u0275mod=o.Jb({type:e}),e.\u0275inj=o.Ib({factory:function(t){return new(t||e)},imports:[[]]}),e})()},"9gLZ":function(e,t,r){"use strict";r.d(t,"a",function(){return s}),r.d(t,"b",function(){return o});var n=r("8Y7J"),i=r("SVse");const a=new n.r("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(n.V)(i.c)}});let o=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new n.n,e){const t=e.documentElement?e.documentElement.dir:null,r=(e.body?e.body.dir:null)||t;this.value="ltr"===r||"rtl"===r?r:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(a,8))},e.\u0275prov=Object(n.Hb)({factory:function(){return new e(Object(n.Sb)(a,8))},token:e,providedIn:"root"}),e})(),s=(()=>{class e{}return e.\u0275mod=n.Jb({type:e}),e.\u0275inj=n.Ib({factory:function(t){return new(t||e)}}),e})()},"9ppp":function(e,t,r){"use strict";r.d(t,"a",function(){return n});const n=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},AytR:function(e,t,r){"use strict";r.d(t,"a",function(){return n});const n={production:!0}},BFxc:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("7o/Q"),i=r("4I5i"),a=r("EY2u");function o(e){return function(t){return 0===e?Object(a.b)():t.lift(new s(e))}}class s{constructor(e){if(this.total=e,this.total<0)throw new i.a}call(e,t){return t.subscribe(new c(e,this.total))}}class c extends n.a{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,r=this.total,n=this.count++;t.length0){const r=this.count>=this.total?this.total:this.count,n=this.ring;for(let i=0;i{class e{saveCode(e,t){localStorage.setItem(e,t)}loadCode(e){return e in localStorage?localStorage.getItem(e):""}saveLevelSolved(e){if("levels"in localStorage){const t=JSON.parse(localStorage.getItem("levels"));t.push(e),localStorage.setItem("levels",JSON.stringify(t))}else localStorage.setItem("levels",JSON.stringify([e]))}loadSolvedLevels(){return"levels"in localStorage?JSON.parse(localStorage.getItem("levels")):[]}saveLanguage(e){localStorage.setItem("language",e)}loadSelectedLanguage(){return"language"in localStorage?localStorage.getItem("language"):""}saveSoundSettings(e){localStorage.setItem("sound",JSON.stringify(e))}loadSoundSettings(){return"sound"in localStorage?JSON.parse(localStorage.getItem("sound")):{imagePath:"/assets/images/sound-low.png",volume:.1,isMute:!1}}clearAll(){localStorage.clear()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},Cfvw:function(e,t,r){"use strict";r.d(t,"a",function(){return _});var n=r("HDdC"),i=r("SeVD"),a=r("quSY"),o=r("kJWO"),s=r("jZKg"),c=r("Lhse"),u=r("c2HN"),l=r("I55L");function _(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[o.a]}(e))return function(e,t){return new n.a(r=>{const n=new a.a;return n.add(t.schedule(()=>{const i=e[o.a]();n.add(i.subscribe({next(e){n.add(t.schedule(()=>r.next(e)))},error(e){n.add(t.schedule(()=>r.error(e)))},complete(){n.add(t.schedule(()=>r.complete()))}}))})),n})}(e,t);if(Object(u.a)(e))return function(e,t){return new n.a(r=>{const n=new a.a;return n.add(t.schedule(()=>e.then(e=>{n.add(t.schedule(()=>{r.next(e),n.add(t.schedule(()=>r.complete()))}))},e=>{n.add(t.schedule(()=>r.error(e)))}))),n})}(e,t);if(Object(l.a)(e))return Object(s.a)(e,t);if(function(e){return e&&"function"==typeof e[c.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new n.a(r=>{const n=new a.a;let i;return n.add(()=>{i&&"function"==typeof i.return&&i.return()}),n.add(t.schedule(()=>{i=e[c.a](),n.add(t.schedule(function(){if(r.closed)return;let e,t;try{const r=i.next();e=r.value,t=r.done}catch(n){return void r.error(n)}t?r.complete():(r.next(e),this.schedule())}))})),n})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof n.a?e:new n.a(Object(i.a)(e))}},D0XW:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("3N8a");const i=new(r("IjjT").a)(n.a)},DH7j:function(e,t,r){"use strict";r.d(t,"a",function(){return n});const n=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))()},"DRc/":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("8Y7J");let i=(()=>{class e{constructor(){this.appInit=new n.n}loaded(){this.appInit.emit()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=n.Gb({type:e,selectors:[["","appInit",""]],hostBindings:function(e,t){1&e&&n.Wb("load",function(){return t.loaded()})},outputs:{appInit:"appInit"}}),e})()},Dsyz:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("8Y7J");let i=(()=>{class e{mix(e,t){e=e.replace("#",""),t=t.replace("#","");const r=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16),a=parseInt(t.slice(0,2),16),o=parseInt(t.slice(2,4),16),s=parseInt(t.slice(4,6),16),c={red:Math.ceil((r+a)/2),green:Math.ceil((n+o)/2),blue:Math.ceil((i+s)/2)};return"#"+c.red.toString(16).padStart(2,"0").toUpperCase()+c.green.toString(16).padStart(2,"0").toUpperCase()+c.blue.toString(16).padStart(2,"0").toUpperCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},EQ5u:function(e,t,r){"use strict";r.d(t,"a",function(){return s}),r.d(t,"b",function(){return c});var n=r("XNiG"),i=r("HDdC"),a=(r("7o/Q"),r("quSY")),o=r("x+ZX");class s extends i.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new a.a,e.add(this.source.subscribe(new u(this.getSubject(),this))),e.closed&&(this._connection=null,e=a.a.EMPTY)),e}refCount(){return Object(o.a)()(this)}}const c=(()=>{const e=s.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class u extends n.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}},EY2u:function(e,t,r){"use strict";r.d(t,"a",function(){return i}),r.d(t,"b",function(){return a});var n=r("HDdC");const i=new n.a(e=>e.complete());function a(e){return e?function(e){return new n.a(t=>e.schedule(()=>t.complete()))}(e):i}},GJmQ:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("7o/Q");function i(e,t=!1){return r=>r.lift(new a(e,t))}class a{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new o(e,this.predicate,this.inclusive))}}class o extends n.a{constructor(e,t,r){super(e),this.predicate=t,this.inclusive=r,this.index=0}_next(e){const t=this.destination;let r;try{r=this.predicate(e,this.index++)}catch(n){return void t.error(n)}this.nextOrComplete(e,r)}nextOrComplete(e,t){const r=this.destination;Boolean(t)?r.next(e):(this.inclusive&&r.next(e),r.complete())}}},GS7A:function(e,t,r){"use strict";r.d(t,"a",function(){return a}),r.d(t,"b",function(){return n}),r.d(t,"c",function(){return i}),r.d(t,"d",function(){return p}),r.d(t,"e",function(){return s}),r.d(t,"f",function(){return c}),r.d(t,"g",function(){return l}),r.d(t,"h",function(){return u}),r.d(t,"i",function(){return _}),r.d(t,"j",function(){return o}),r.d(t,"k",function(){return f}),r.d(t,"l",function(){return g});class n{}class i{}const a="*";function o(e,t){return{type:7,name:e,definitions:t,options:{}}}function s(e,t=null){return{type:4,styles:t,timings:e}}function c(e,t=null){return{type:2,steps:e,options:t}}function u(e){return{type:6,styles:e,offset:null}}function l(e,t,r){return{type:0,name:e,styles:t,options:r}}function _(e,t,r=null){return{type:1,expr:e,animation:t,options:r}}function d(e){Promise.resolve(null).then(e)}class p{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){d(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class f{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,r=0,n=0;const i=this.players.length;0==i?d(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==i&&this._onFinish()}),e.onDestroy(()=>{++r==i&&this._onDestroy()}),e.onStart(()=>{++n==i&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const r=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(r)})}getPosition(){const e=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}const g="!"},GyhO:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("LRne"),i=r("bHdf");function a(...e){return Object(i.a)(1)(Object(n.a)(...e))}},HDdC:function(e,t,r){"use strict";r.d(t,"a",function(){return u});var n=r("7o/Q"),i=r("2QA8"),a=r("gRHU"),o=r("kJWO"),s=r("SpAZ"),c=r("2fFW");let u=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(e,t,r){const{operator:o}=this,s=function(e,t,r){if(e){if(e instanceof n.a)return e;if(e[i.a])return e[i.a]()}return e||t||r?new n.a(e,t,r):new n.a(a.a)}(e,t,r);if(s.add(o?o.call(s,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:r,isStopped:i}=e;if(t||i)return!1;e=r&&r instanceof n.a?r:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=l(t))((t,r)=>{let n;n=this.subscribe(t=>{try{e(t)}catch(i){r(i),n&&n.unsubscribe()}},r,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[o.a](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?s.a:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=l(e))((e,t)=>{let r;this.subscribe(e=>r=e,e=>t(e),()=>e(r))})}}return e.create=t=>new e(t),e})();function l(e){if(e||(e=c.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},I55L:function(e,t,r){"use strict";r.d(t,"a",function(){return n});const n=e=>e&&"number"==typeof e.length&&"function"!=typeof e},IheW:function(e,t,r){"use strict";r.d(t,"a",function(){return T}),r.d(t,"b",function(){return z});var n=r("8Y7J"),i=r("LRne"),a=r("HDdC"),o=r("bOdf"),s=r("pLZG"),c=r("lJxs"),u=r("SVse");class l{}class _{}class d{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const r=e.slice(0,t),n=r.toLowerCase(),i=e.slice(t+1).trim();this.maybeSetNormalizedName(r,n),this.headers.has(n)?this.headers.get(n).push(i):this.headers.set(n,[i])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let r=e[t];const n=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(n,r),this.maybeSetNormalizedName(t,n))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new d;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,t);const n=("a"===e.op?this.headers.get(t):void 0)||[];n.push(...r),this.headers.set(t,n);break;case"d":const i=e.value;if(i){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===i.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class p{encodeKey(e){return f(e)}encodeValue(e){return f(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function f(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class g{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new p,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const r=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(e=>{const n=e.indexOf("="),[i,a]=-1==n?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,n)),t.decodeValue(e.slice(n+1))],o=r.get(i)||[];o.push(a),r.set(i,o)}),r}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const r=e.fromObject[t];this.map.set(t,Array.isArray(r)?r:[r])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(r=>{const n=e[r];Array.isArray(n)?n.forEach(e=>{t.push({param:r,value:e,op:"a"})}):t.push({param:r,value:n,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new g({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const r=t.indexOf(e.value);-1!==r&&t.splice(r,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function m(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function h(e){return"undefined"!=typeof Blob&&e instanceof Blob}function y(e){return"undefined"!=typeof FormData&&e instanceof FormData}class v{constructor(e,t,r,n){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==r?r:null,i=n):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new d),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const r=t.indexOf("?");this.urlWithParams=t+(-1===r?"?":rt.set(r,e.setHeaders[r]),s)),e.setParams&&(c=Object.keys(e.setParams).reduce((t,r)=>t.set(r,e.setParams[r]),c)),new v(t,r,i,{params:c,headers:s,reportProgress:o,responseType:n,withCredentials:a})}}var b=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class x{constructor(e,t=200,r="OK"){this.headers=e.headers||new d,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class D extends x{constructor(e={}){super(e),this.type=b.ResponseHeader}clone(e={}){return new D({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class S extends x{constructor(e={}){super(e),this.type=b.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new S({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class E extends x{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function C(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let T=(()=>{class e{constructor(e){this.handler=e}request(e,t,r={}){let n;if(e instanceof v)n=e;else{let i,a;i=r.headers instanceof d?r.headers:new d(r.headers),r.params&&(a=r.params instanceof g?r.params:new g({fromObject:r.params})),n=new v(e,t,void 0!==r.body?r.body:null,{headers:i,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=Object(i.a)(n).pipe(Object(o.a)(e=>this.handler.handle(e)));if(e instanceof v||"events"===r.observe)return a;const u=a.pipe(Object(s.a)(e=>e instanceof S));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(Object(c.a)(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(Object(c.a)(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(Object(c.a)(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return u.pipe(Object(c.a)(e=>e.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new g).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,r={}){return this.request("PATCH",e,C(r,t))}post(e,t,r={}){return this.request("POST",e,C(r,t))}put(e,t,r={}){return this.request("PUT",e,C(r,t))}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(l))},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})();class k{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const w=new n.r("HTTP_INTERCEPTORS");let A=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})();const N=/^\)\]\}',?\n/;class P{}let O=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})(),F=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new a.a(t=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((e,t)=>r.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&r.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();r.responseType="json"!==t?t:"text"}const n=e.serializeBody();let i=null;const a=()=>{if(null!==i)return i;const t=1223===r.status?204:r.status,n=r.statusText||"OK",a=new d(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return i=new D({headers:a,status:t,statusText:n,url:o}),i},o=()=>{let{headers:n,status:i,statusText:o,url:s}=a(),c=null;204!==i&&(c=void 0===r.response?r.responseText:r.response),0===i&&(i=c?200:0);let u=i>=200&&i<300;if("json"===e.responseType&&"string"==typeof c){const e=c;c=c.replace(N,"");try{c=""!==c?JSON.parse(c):null}catch(l){c=e,u&&(u=!1,c={error:l,text:c})}}u?(t.next(new S({body:c,headers:n,status:i,statusText:o,url:s||void 0})),t.complete()):t.error(new E({error:c,headers:n,status:i,statusText:o,url:s||void 0}))},s=e=>{const{url:n}=a(),i=new E({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:n||void 0});t.error(i)};let c=!1;const u=n=>{c||(t.next(a()),c=!0);let i={type:b.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(i.total=n.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),t.next(i)},l=e=>{let r={type:b.UploadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),t.next(r)};return r.addEventListener("load",o),r.addEventListener("error",s),r.addEventListener("timeout",s),r.addEventListener("abort",s),e.reportProgress&&(r.addEventListener("progress",u),null!==n&&r.upload&&r.upload.addEventListener("progress",l)),r.send(n),t.next({type:b.Sent}),()=>{r.removeEventListener("error",s),r.removeEventListener("abort",s),r.removeEventListener("load",o),r.removeEventListener("timeout",s),e.reportProgress&&(r.removeEventListener("progress",u),null!==n&&r.upload&&r.upload.removeEventListener("progress",l)),r.readyState!==r.DONE&&r.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(P))},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})();const I=new n.r("XSRF_COOKIE_NAME"),M=new n.r("XSRF_HEADER_NAME");class L{}let R=(()=>{class e{constructor(e,t,r){this.doc=e,this.platform=t,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(u.u)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(u.c),n.Sb(n.C),n.Sb(I))},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})(),B=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return t.handle(e);const n=this.tokenService.getToken();return null===n||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,n)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(L),n.Sb(M))},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})(),j=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(w,[]);this.chain=e.reduceRight((e,t)=>new k(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(_),n.Sb(n.s))},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})(),U=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:B,useClass:A}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:I,useValue:t.cookieName}:[],t.headerName?{provide:M,useValue:t.headerName}:[]]}}}return e.\u0275mod=n.Jb({type:e}),e.\u0275inj=n.Ib({factory:function(t){return new(t||e)},providers:[B,{provide:w,useExisting:B,multi:!0},{provide:L,useClass:R},{provide:I,useValue:"XSRF-TOKEN"},{provide:M,useValue:"X-XSRF-TOKEN"}]}),e})(),z=(()=>{class e{}return e.\u0275mod=n.Jb({type:e}),e.\u0275inj=n.Ib({factory:function(t){return new(t||e)},providers:[T,{provide:l,useClass:j},F,{provide:_,useExisting:F},O,{provide:P,useExisting:O}],imports:[[U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})()},IjjT:function(e,t,r){"use strict";r.d(t,"a",function(){return i});let n=(()=>{class e{constructor(t,r=e.now){this.SchedulerAction=t,this.now=r}schedule(e,t=0,r){return new this.SchedulerAction(this,e).schedule(r,t)}}return e.now=()=>Date.now(),e})();class i extends n{constructor(e,t=n.now){super(e,()=>i.delegate&&i.delegate!==this?i.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,r){return i.delegate&&i.delegate!==this?i.delegate.schedule(e,t,r):super.schedule(e,t,r)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}}},IzEk:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("7o/Q"),i=r("4I5i"),a=r("EY2u");function o(e){return t=>0===e?Object(a.b)():t.lift(new s(e))}class s{constructor(e){if(this.total=e,this.total<0)throw new i.a}call(e,t){return t.subscribe(new c(e,this.total))}}class c extends n.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))}}},JIr8:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("zx2A");function i(e){return function(t){const r=new a(e),n=t.lift(r);return r.caught=n}}class a{constructor(e){this.selector=e}call(e,t){return t.subscribe(new o(e,this.selector,this.caught))}}class o extends n.b{constructor(e,t,r){super(e),this.selector=t,this.caught=r}error(e){if(!this.isStopped){let r;try{r=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const i=new n.a(this);this.add(i);const a=Object(n.c)(r,i);a!==i&&this.add(a)}}}},JX91:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("GyhO"),i=r("z+Ro");function a(...e){const t=e[e.length-1];return Object(i.a)(t)?(e.pop(),r=>Object(n.a)(e,r,t)):t=>Object(n.a)(e,t)}},Kj3r:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("7o/Q"),i=r("D0XW");function a(e,t=i.a){return r=>r.lift(new o(e,t))}class o{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))}}class s extends n.a{constructor(e,t,r){super(e),this.dueTime=t,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function c(e){e.debouncedNext()}},LRne:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("z+Ro"),i=r("yCtX"),a=r("jZKg");function o(...e){let t=e[e.length-1];return Object(n.a)(t)?(e.pop(),Object(a.a)(e,t)):Object(i.a)(e)}},Lhse:function(e,t,r){"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}r.d(t,"a",function(){return i});const i=n()},NJ4a:function(e,t,r){"use strict";function n(e){setTimeout(()=>{throw e},0)}r.d(t,"a",function(){return n})},NXyV:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("HDdC"),i=r("Cfvw"),a=r("EY2u");function o(e){return new n.a(t=>{let r;try{r=e()}catch(n){return void t.error(n)}return(r?Object(i.a)(r):Object(a.b)()).subscribe(t)})}},PCNd:function(e,t,r){"use strict";r.d(t,"a",function(){return s});var n=r("SVse"),i=r("dJsq"),a=r("TSSN"),o=r("8Y7J");let s=(()=>{class e{}return e.\u0275mod=o.Jb({type:e}),e.\u0275inj=o.Ib({factory:function(t){return new(t||e)},providers:[{provide:i.a,useValue:{languages:{typescript:()=>r.e(20).then(r.t.bind(null,"TdF3",7))}}}],imports:[n.b,i.c,a.b]}),e})()},Q1aD:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("8Y7J");let i=(()=>{class e{analyseCode(e){return!!(e.includes("toConveyorBelt('apple')")||e.includes('toConveyorBelt("apple")')||e.includes("toConveyorBelt(`apple`)"))||!!(e.includes("toConveyorBelt('banana')")||e.includes('toConveyorBelt("banana")')||e.includes("toConveyorBelt(`banana`)"))||!!(e.includes("toConveyorBelt('cherry')")||e.includes('toConveyorBelt("cherry")')||e.includes("toConveyorBelt(`cherry`)"))||(e.match(/toConveyorBelt/g)||[]).length>1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},R1az:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnChange=function(e){var t=Symbol(),r=Symbol();return function(n,i){var a="string"==typeof e?n[e]:e;if(!a)throw new Error("Cannot find method "+e+" in class "+n.constructor.name);Object.defineProperty(n,i,{set:function(e){var n=this;if(this[r]=void 0===this[r],this[r]||this[t]!==e){var i=this[t];this[t]=e,a.call(this,this[t],{firstChange:this[r],previousValue:i,currentValue:this[t],isFirstChange:function(){return n[r]}})}},get:function(){return this[t]}})}}},SVse:function(e,t,r){"use strict";r.d(t,"a",function(){return b}),r.d(t,"b",function(){return U}),r.d(t,"c",function(){return c}),r.d(t,"d",function(){return D}),r.d(t,"e",function(){return _}),r.d(t,"f",function(){return S}),r.d(t,"g",function(){return y}),r.d(t,"h",function(){return P}),r.d(t,"i",function(){return F}),r.d(t,"j",function(){return M}),r.d(t,"k",function(){return B}),r.d(t,"l",function(){return x}),r.d(t,"m",function(){return u}),r.d(t,"n",function(){return j}),r.d(t,"o",function(){return W}),r.d(t,"p",function(){return J}),r.d(t,"q",function(){return V}),r.d(t,"r",function(){return s}),r.d(t,"s",function(){return z}),r.d(t,"t",function(){return a}),r.d(t,"u",function(){return N}),r.d(t,"v",function(){return o});var n=r("8Y7J");let i=null;function a(){return i}function o(e){i||(i=e)}class s{}const c=new n.r("DocumentToken");let u=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(n.Hb)({factory:l,token:e,providedIn:"platform"}),e})();function l(){return Object(n.Sb)(d)}const _=new n.r("Location Initialized");let d=(()=>{class e extends u{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=a().getLocation(),this._history=a().getHistory()}getBaseHrefFromDOM(){return a().getBaseHref(this._doc)}onPopState(e){a().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){a().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,r){p()?this._history.pushState(e,t,r):this.location.hash=r}replaceState(e,t,r){p()?this._history.replaceState(e,t,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(c))},e.\u0275prov=Object(n.Hb)({factory:f,token:e,providedIn:"platform"}),e})();function p(){return!!window.history.pushState}function f(){return new d(Object(n.Sb)(c))}function g(e,t){if(0==e.length)return t;if(0==t.length)return e;let r=0;return e.endsWith("/")&&r++,t.startsWith("/")&&r++,2==r?e+t.substring(1):1==r?e+t:e+"/"+t}function m(e){const t=e.match(/#|\?|$/),r=t&&t.index||e.length;return e.slice(0,r-("/"===e[r-1]?1:0))+e.slice(r)}function h(e){return e&&"?"!==e[0]?"?"+e:e}let y=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(n.Hb)({factory:v,token:e,providedIn:"root"}),e})();function v(e){const t=Object(n.Sb)(c).location;return new x(Object(n.Sb)(u),t&&t.origin||"")}const b=new n.r("appBaseHref");let x=(()=>{class e extends y{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return g(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+h(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${t}${r}`:t}pushState(e,t,r,n){const i=this.prepareExternalUrl(r+h(n));this._platformLocation.pushState(e,t,i)}replaceState(e,t,r,n){const i=this.prepareExternalUrl(r+h(n));this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(u),n.Sb(b,8))},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})(),D=(()=>{class e extends y{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=g(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,r,n){let i=this.prepareExternalUrl(r+h(n));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}replaceState(e,t,r,n){let i=this.prepareExternalUrl(r+h(n));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(u),n.Sb(b,8))},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})(),S=(()=>{class e{constructor(e,t){this._subject=new n.n,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=m(C(r)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+h(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,C(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",r=null){this._platformStrategy.pushState(r,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+h(t)),r)}replaceState(e,t="",r=null){this._platformStrategy.replaceState(r,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+h(t)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(r=>r(e,t))}subscribe(e,t,r){return this._subject.subscribe({next:e,error:t,complete:r})}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(y),n.Sb(u))},e.normalizeQueryParams=h,e.joinWithSlash=g,e.stripTrailingSlash=m,e.\u0275prov=Object(n.Hb)({factory:E,token:e,providedIn:"root"}),e})();function E(){return new S(Object(n.Sb)(y),Object(n.Sb)(u))}function C(e){return e.replace(/\/index.html$/,"")}var T=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({});const k=n.nb;class w{}let A=(()=>{class e extends w{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(k(t||this.locale)(e)){case T.Zero:return"zero";case T.One:return"one";case T.Two:return"two";case T.Few:return"few";case T.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(n.v))},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})();function N(e,t){t=encodeURIComponent(t);for(const r of e.split(";")){const e=r.indexOf("="),[n,i]=-1==e?[r,""]:[r.slice(0,e),r.slice(e+1)];if(n.trim()===t)return decodeURIComponent(i)}return null}let P=(()=>{class e{constructor(e,t,r,n){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=r,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(n.qb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(n.wb)(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.t),n.Lb(n.u),n.Lb(n.l),n.Lb(n.F))},e.\u0275dir=n.Gb({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class O{constructor(e,t,r,n){this.$implicit=e,this.ngForOf=t,this.index=r,this.count=n}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let F=(()=>{class e{constructor(e,t,r){this._viewContainer=e,this._template=t,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const r=this._ngForOf;if(!this._differ&&r)try{this._differ=this._differs.find(r).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${r}' of type '${e=r,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,r,n)=>{if(null==e.previousIndex){const r=this._viewContainer.createEmbeddedView(this._template,new O(null,this._ngForOf,-1,-1),null===n?void 0:n),i=new I(e,r);t.push(i)}else if(null==n)this._viewContainer.remove(null===r?void 0:r);else if(null!==r){const i=this._viewContainer.get(r);this._viewContainer.move(i,n);const a=new I(e,i);t.push(a)}});for(let r=0;r{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.Q),n.Lb(n.M),n.Lb(n.t))},e.\u0275dir=n.Gb({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class I{constructor(e,t){this.record=e,this.view=t}}let M=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new L,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){R("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){R("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.Q),n.Lb(n.M))},e.\u0275dir=n.Gb({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class L{constructor(){this.$implicit=null,this.ngIf=null}}function R(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(n.wb)(t)}'.`)}let B=(()=>{class e{constructor(e,t,r){this._ngEl=e,this._differs=t,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[r,n]=e.split(".");null!=(t=null!=t&&n?`${t}${n}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,r,t):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.l),n.Lb(n.u),n.Lb(n.F))},e.\u0275dir=n.Gb({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),j=(()=>{class e{transform(t){if(null==t)return null;if("string"!=typeof t)throw function(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Object(n.wb)(e)}'`)}(e,t);return t.toUpperCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=n.Kb({name:"uppercase",type:e,pure:!0}),e})(),U=(()=>{class e{}return e.\u0275mod=n.Jb({type:e}),e.\u0275inj=n.Ib({factory:function(t){return new(t||e)},providers:[{provide:w,useClass:A}]}),e})();const z="browser";function J(e){return e===z}function V(e){return"server"===e}let W=(()=>{class e{}return e.\u0275prov=Object(n.Hb)({token:e,providedIn:"root",factory:()=>new q(Object(n.Sb)(c),window)}),e})();class q{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){var t;if(!this.supportsScrolling())return;const r=null!==(t=this.document.getElementById(e))&&void 0!==t?t:this.document.getElementsByName(e)[0];void 0!==r&&(this.scrollToElement(r),this.attemptFocus(r))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),r=t.left+this.window.pageXOffset,n=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],n-i[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=K(this.window.history)||K(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function K(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}},"ScT/":function(e){e.exports=JSON.parse('[{"title":"subscribe","number":1,"urlPath":"/subscribe","solved":false},{"title":"subscribe-next","number":2,"urlPath":"/subscribe-next","solved":false},{"title":"distinct","number":3,"urlPath":"/distinct","solved":false},{"title":"take","number":4,"urlPath":"/take","solved":false},{"title":"filter","number":5,"urlPath":"/filter","solved":false},{"title":"map","number":6,"urlPath":"/map","solved":false},{"title":"filter-map-take","number":7,"urlPath":"/filter-map-take","solved":false},{"title":"distinctuntilchanged","number":8,"urlPath":"/distinctuntilchanged","solved":false},{"title":"skip","number":9,"urlPath":"/skip","solved":false},{"title":"skip-take-map","number":10,"urlPath":"/skip-take-map","solved":false},{"title":"merge","number":11,"urlPath":"/merge","solved":false},{"title":"take-last","number":12,"urlPath":"/take-last","solved":false},{"title":"skip-last","number":13,"urlPath":"/skip-last","solved":false},{"title":"skiplast-skip-merge","number":14,"urlPath":"/skiplast-skip-merge","solved":false},{"title":"zip-concatmap","number":15,"urlPath":"/zip-concatmap","solved":false},{"title":"repeat","number":16,"urlPath":"/repeat","solved":false}]')},SeVD:function(e,t,r){"use strict";r.d(t,"a",function(){return l});var n=r("ngJS"),i=r("NJ4a"),a=r("Lhse"),o=r("kJWO"),s=r("I55L"),c=r("c2HN"),u=r("XoHu");const l=e=>{if(e&&"function"==typeof e[o.a])return l=e,e=>{const t=l[o.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(s.a)(e))return Object(n.a)(e);if(Object(c.a)(e))return r=e,e=>(r.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,i.a),e);if(e&&"function"==typeof e[a.a])return t=e,e=>{const r=t[a.a]();for(;;){let t;try{t=r.next()}catch(n){return e.error(n),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof r.return&&e.add(()=>{r.return&&r.return()}),e};{const t=Object(u.a)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,r,l}},SoUf:function(e,t,r){"use strict";var n,i=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0;for(var r=0,n=e;r>1);switch(n(r(e[c]),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function y(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}e.Map=t("Map","tryGetNativeMap","createMapShim"),e.Set=t("Set","tryGetNativeSet","createSetShim"),e.getIterator=r,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.createMap=function(){return new e.Map},e.createMapFromTemplate=function(t){var r=new e.Map;for(var n in t)v.call(t,n)&&r.set(n,t[n]);return r},e.length=function(e){return e?e.length:0},e.forEach=function(e,t){if(e)for(var r=0;r=0;r--){var n=t(e[r],r);if(n)return n}},e.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=function(e,t,r){for(var n=r||0;n=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(t,r){for(var n=0;n0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;as&&e.Debug.assertGreaterThanOrEqual(n(t[a],t[a-1]),0),n(r[o],t[a])){case-1:i.push(r[o]);continue e;case 0:continue e;case 1:continue t}}return i},e.sum=function(e,t){for(var r=0,n=0,i=e;nt?1:0}function j(e,t){return L(e,t)}e.toFileNameLowerCase=I,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.memoizeOne=function(t){var r=new e.Map;return function(e){var n=typeof e+":"+e,i=r.get(n);return void 0!==i||r.has(n)||(i=t(e),r.set(n,i)),i}},e.compose=function(e,t,r,n,i){if(i){for(var a=[],o=0;o0?1:0}function i(){return function(t,r){return n(t,r,e)};function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return et?1:0}}}();function V(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+1,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=o>r?o-r:1,u=t.length>r+o?r+o:t.length;i[0]=o;for(var l=o,_=1;_r)return;var p=n;n=i,i=p}var f=n[t.length];return f>r?void 0:f}function W(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function q(e,t){for(var r=t;r=r.length+n.length&&G(t,r)&&W(t,n)}function $(e,t,r,n){for(var i=0,a=e[n];ii&&(i=c.prefix.length,n=s)}return n},e.startsWith=G,e.removePrefix=function(e,t){return G(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=N),G(r(e),r(t))?e.substring(t.length):void 0},e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(){for(var e=[],t=0;t=e}function d(t,n){return!!_(t)||(l[n]={level:t,assertion:r[n]},r[n]=e.noop,!1)}function p(e,t){var r=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||p),r}function f(e,t,r,n){e||(t=t?"False expression: "+t:"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),p(t,n||f))}function g(e,t,r){null==e&&p(t,r||g)}function m(e,t,r){return g(e,t,r||m),e}function h(e,t,r){for(var n=0,i=e;n0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=0,c=i;st)break;0!==p&&p&t&&(a=a+(a?"|":"")+l,o&=~p)}if(0===o)return a}else for(var _=0,d=i;_n)for(var i=0,o=e.getOwnKeys(l);i=c.level&&(r[s]=c,l[s]=void 0)}},r.shouldAssert=_,r.fail=p,r.failBadSyntaxKind=function e(t,r,n){return p((r||"Unexpected node.")+"\r\nNode "+x(t.kind)+" was unexpected.",n||e)},r.assert=f,r.assertEqual=function e(t,r,n,i,a){t!==r&&p("Expected "+t+" === "+r+". "+(n?i?n+" "+i:n:""),a||e)},r.assertLessThan=function e(t,r,n,i){t>=r&&p("Expected "+t+" < "+r+". "+(n||""),i||e)},r.assertLessThanOrEqual=function e(t,r,n){t>r&&p("Expected "+t+" <= "+r,n||e)},r.assertGreaterThanOrEqual=function e(t,r,n){t= "+r,n||e)},r.assertIsDefined=g,r.checkDefined=m,r.assertDefined=m,r.assertEachIsDefined=h,r.checkEachDefined=y,r.assertEachDefined=y,r.assertNever=function t(r,n,i){return void 0===n&&(n="Illegal value:"),p(n+" "+("object"==typeof r&&e.hasProperty(r,"kind")&&e.hasProperty(r,"pos")&&x?"SyntaxKind: "+x(r.kind):JSON.stringify(r)),i||t)},r.assertEachNode=function t(r,n,i,a){d(1,"assertEachNode")&&f(void 0===n||e.every(r,n),i||"Unexpected node.",function(){return"Node array did not pass test '"+v(n)+"'."},a||t)},r.assertNode=function e(t,r,n,i){d(1,"assertNode")&&f(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",function(){return"Node "+x(t.kind)+" did not pass test '"+v(r)+"'."},i||e)},r.assertNotNode=function e(t,r,n,i){d(1,"assertNotNode")&&f(void 0===t||void 0===r||!r(t),n||"Unexpected node.",function(){return"Node "+x(t.kind)+" should not have passed test '"+v(r)+"'."},i||e)},r.assertOptionalNode=function e(t,r,n,i){d(1,"assertOptionalNode")&&f(void 0===r||void 0===t||r(t),n||"Unexpected node.",function(){return"Node "+x(t.kind)+" did not pass test '"+v(r)+"'."},i||e)},r.assertOptionalToken=function e(t,r,n,i){d(1,"assertOptionalToken")&&f(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",function(){return"Node "+x(t.kind)+" was not a '"+x(r)+"' token."},i||e)},r.assertMissingNode=function e(t,r,n){d(1,"assertMissingNode")&&f(void 0===t,r||"Unexpected node.",function(){return"Node "+x(t.kind)+" was unexpected'."},n||e)},r.getFunctionName=v,r.formatSymbol=function(t){return"{ name: "+e.unescapeLeadingUnderscores(t.escapedName)+"; flags: "+T(t.flags)+"; declarations: "+e.map(t.declarations,function(e){return x(e.kind)})+" }"},r.formatEnum=b,r.formatSyntaxKind=x,r.formatNodeFlags=D,r.formatModifierFlags=S,r.formatTransformFlags=E,r.formatEmitFlags=C,r.formatSymbolFlags=T,r.formatTypeFlags=k,r.formatObjectFlags=w;var A,N=!1;function P(e){return function(){if(O(),!A)throw new Error("Debugging helpers could not be loaded.");return A}().formatControlFlowGraph(e)}function O(){if(!N){Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return T(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return k(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?w(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var t=0,r=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];t=0;return _?function(e,t,r,n){var i=F(e,!0,t,r,n);return function(){throw new TypeError(i)}}(t,s,l,r.message):d?function(e,t,r,n){var i=!1;return function(){i||(u.warn(F(e,!1,t,r,n)),i=!0)}}(t,s,l,r.message):e.noop}(v(t),r),t)}}(e.Debug||(e.Debug={}))}(l||(l={})),function(e){e.timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}}(l||(l={})),function(e){!function(t){var r,n,i,a="function"==typeof onProfilerEvent&&!0===onProfilerEvent.profiler?onProfilerEvent:function(){},o=!1,s=0;function c(t,r,n){var i=0;return{enter:function(){1==++i&&u(r)},exit:function(){0==--i?(u(n),l(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}function u(t){o&&(n.set(t,e.timestamp()),r.set(t,(r.get(t)||0)+1),a(t))}function l(t,r,a){if(o){var c=a&&n.get(a)||e.timestamp(),u=r&&n.get(r)||s;i.set(t,(i.get(t)||0)+(c-u))}}t.createTimerIf=function(e,r,n,i){return e?c(r,n,i):t.nullTimer},t.createTimer=c,t.nullTimer={enter:e.noop,exit:e.noop},t.mark=u,t.measure=l,t.getCount=function(e){return r&&r.get(e)||0},t.getDuration=function(e){return i&&i.get(e)||0},t.forEachMeasure=function(e){i.forEach(function(t,r){e(r,t)})},t.enable=function(){r=new e.Map,n=new e.Map,i=new e.Map,o=!0,s=e.timestamp()},t.disable=function(){o=!1}}(e.performance||(e.performance={}))}(l||(l={})),function(e){var t,n,i={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{var a=null!==(t=process.env.TS_ETW_MODULE_PATH)&&void 0!==t?t:"./node_modules/@microsoft/typescript-etw";n=r("izN1")(a)}catch(o){n=void 0}e.perfLogger=n&&n.logEvent?n:i}(l||(l={})),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i=/^(0|[1-9]\d*)$/,a=function(){function t(t,i,a,s,c){if(void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"==typeof t){var u=e.Debug.checkDefined(o(t),"Invalid version");t=u.major,i=u.minor,a=u.patch,s=u.prerelease,c=u.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||r.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||n.test(c),"Invalid argument: build"),this.major=t,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return t.tryParse=function(e){var r=o(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),a=0;a|>=|=)?\s*([a-z0-9-+.*]+)$/i;function p(e){for(var t=[],r=0,n=e.trim().split(c);r=",n.version)),h(i.major)||r.push(h(i.minor)?y("<",i.version.increment("major")):h(i.patch)?y("<",i.version.increment("minor")):y("<=",i.version)),!0)}function m(e,t,r){var n=f(t);if(!n)return!1;var i=n.version,o=n.minor,s=n.patch;if(h(n.major))"<"!==e&&">"!==e||r.push(y("<",a.zero));else switch(e){case"~":r.push(y(">=",i)),r.push(y("<",i.increment(h(o)?"major":"minor")));break;case"^":r.push(y(">=",i)),r.push(y("<",i.increment(i.major>0||h(o)?"major":i.minor>0||h(s)?"minor":"patch")));break;case"<":case">=":r.push(y(e,i));break;case"<=":case">":r.push(h(o)?y("<="===e?"<":">=",i.increment("major")):h(s)?y("<="===e?"<":">=",i.increment("minor")):y(e,i));break;case"=":case void 0:h(o)||h(s)?(r.push(y(">=",i)),r.push(y("<",i.increment(h(o)?"major":"minor")))):r.push(y("=",i));break;default:return!1}return!0}function h(e){return"*"===e||"x"===e||"X"===e}function y(e,t){return{operator:e,operand:t}}function v(e,t){for(var r=0,n=t;r":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function x(t){return e.map(t,D).join(" ")}function D(e){return""+e.operator+e.operand}}(l||(l={})),function(e){var t,r,n,i,a,o,s,c,u,l,_,d,p,f,g,m,h,y,v,b,x,D,S,E,C,T,k,w,A,N,P,O,F,I,M,L,R,B,j,U,z,J,V,W,q,K,H,G,Q,$,X,Y,Z,ee,te,re,ne,ie,ae,oe,se,ce,ue;(ue=e.SyntaxKind||(e.SyntaxKind={}))[ue.Unknown=0]="Unknown",ue[ue.EndOfFileToken=1]="EndOfFileToken",ue[ue.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",ue[ue.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",ue[ue.NewLineTrivia=4]="NewLineTrivia",ue[ue.WhitespaceTrivia=5]="WhitespaceTrivia",ue[ue.ShebangTrivia=6]="ShebangTrivia",ue[ue.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",ue[ue.NumericLiteral=8]="NumericLiteral",ue[ue.BigIntLiteral=9]="BigIntLiteral",ue[ue.StringLiteral=10]="StringLiteral",ue[ue.JsxText=11]="JsxText",ue[ue.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",ue[ue.RegularExpressionLiteral=13]="RegularExpressionLiteral",ue[ue.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",ue[ue.TemplateHead=15]="TemplateHead",ue[ue.TemplateMiddle=16]="TemplateMiddle",ue[ue.TemplateTail=17]="TemplateTail",ue[ue.OpenBraceToken=18]="OpenBraceToken",ue[ue.CloseBraceToken=19]="CloseBraceToken",ue[ue.OpenParenToken=20]="OpenParenToken",ue[ue.CloseParenToken=21]="CloseParenToken",ue[ue.OpenBracketToken=22]="OpenBracketToken",ue[ue.CloseBracketToken=23]="CloseBracketToken",ue[ue.DotToken=24]="DotToken",ue[ue.DotDotDotToken=25]="DotDotDotToken",ue[ue.SemicolonToken=26]="SemicolonToken",ue[ue.CommaToken=27]="CommaToken",ue[ue.QuestionDotToken=28]="QuestionDotToken",ue[ue.LessThanToken=29]="LessThanToken",ue[ue.LessThanSlashToken=30]="LessThanSlashToken",ue[ue.GreaterThanToken=31]="GreaterThanToken",ue[ue.LessThanEqualsToken=32]="LessThanEqualsToken",ue[ue.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",ue[ue.EqualsEqualsToken=34]="EqualsEqualsToken",ue[ue.ExclamationEqualsToken=35]="ExclamationEqualsToken",ue[ue.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",ue[ue.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",ue[ue.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",ue[ue.PlusToken=39]="PlusToken",ue[ue.MinusToken=40]="MinusToken",ue[ue.AsteriskToken=41]="AsteriskToken",ue[ue.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",ue[ue.SlashToken=43]="SlashToken",ue[ue.PercentToken=44]="PercentToken",ue[ue.PlusPlusToken=45]="PlusPlusToken",ue[ue.MinusMinusToken=46]="MinusMinusToken",ue[ue.LessThanLessThanToken=47]="LessThanLessThanToken",ue[ue.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",ue[ue.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",ue[ue.AmpersandToken=50]="AmpersandToken",ue[ue.BarToken=51]="BarToken",ue[ue.CaretToken=52]="CaretToken",ue[ue.ExclamationToken=53]="ExclamationToken",ue[ue.TildeToken=54]="TildeToken",ue[ue.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",ue[ue.BarBarToken=56]="BarBarToken",ue[ue.QuestionToken=57]="QuestionToken",ue[ue.ColonToken=58]="ColonToken",ue[ue.AtToken=59]="AtToken",ue[ue.QuestionQuestionToken=60]="QuestionQuestionToken",ue[ue.BacktickToken=61]="BacktickToken",ue[ue.EqualsToken=62]="EqualsToken",ue[ue.PlusEqualsToken=63]="PlusEqualsToken",ue[ue.MinusEqualsToken=64]="MinusEqualsToken",ue[ue.AsteriskEqualsToken=65]="AsteriskEqualsToken",ue[ue.AsteriskAsteriskEqualsToken=66]="AsteriskAsteriskEqualsToken",ue[ue.SlashEqualsToken=67]="SlashEqualsToken",ue[ue.PercentEqualsToken=68]="PercentEqualsToken",ue[ue.LessThanLessThanEqualsToken=69]="LessThanLessThanEqualsToken",ue[ue.GreaterThanGreaterThanEqualsToken=70]="GreaterThanGreaterThanEqualsToken",ue[ue.GreaterThanGreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanGreaterThanEqualsToken",ue[ue.AmpersandEqualsToken=72]="AmpersandEqualsToken",ue[ue.BarEqualsToken=73]="BarEqualsToken",ue[ue.BarBarEqualsToken=74]="BarBarEqualsToken",ue[ue.AmpersandAmpersandEqualsToken=75]="AmpersandAmpersandEqualsToken",ue[ue.QuestionQuestionEqualsToken=76]="QuestionQuestionEqualsToken",ue[ue.CaretEqualsToken=77]="CaretEqualsToken",ue[ue.Identifier=78]="Identifier",ue[ue.PrivateIdentifier=79]="PrivateIdentifier",ue[ue.BreakKeyword=80]="BreakKeyword",ue[ue.CaseKeyword=81]="CaseKeyword",ue[ue.CatchKeyword=82]="CatchKeyword",ue[ue.ClassKeyword=83]="ClassKeyword",ue[ue.ConstKeyword=84]="ConstKeyword",ue[ue.ContinueKeyword=85]="ContinueKeyword",ue[ue.DebuggerKeyword=86]="DebuggerKeyword",ue[ue.DefaultKeyword=87]="DefaultKeyword",ue[ue.DeleteKeyword=88]="DeleteKeyword",ue[ue.DoKeyword=89]="DoKeyword",ue[ue.ElseKeyword=90]="ElseKeyword",ue[ue.EnumKeyword=91]="EnumKeyword",ue[ue.ExportKeyword=92]="ExportKeyword",ue[ue.ExtendsKeyword=93]="ExtendsKeyword",ue[ue.FalseKeyword=94]="FalseKeyword",ue[ue.FinallyKeyword=95]="FinallyKeyword",ue[ue.ForKeyword=96]="ForKeyword",ue[ue.FunctionKeyword=97]="FunctionKeyword",ue[ue.IfKeyword=98]="IfKeyword",ue[ue.ImportKeyword=99]="ImportKeyword",ue[ue.InKeyword=100]="InKeyword",ue[ue.InstanceOfKeyword=101]="InstanceOfKeyword",ue[ue.NewKeyword=102]="NewKeyword",ue[ue.NullKeyword=103]="NullKeyword",ue[ue.ReturnKeyword=104]="ReturnKeyword",ue[ue.SuperKeyword=105]="SuperKeyword",ue[ue.SwitchKeyword=106]="SwitchKeyword",ue[ue.ThisKeyword=107]="ThisKeyword",ue[ue.ThrowKeyword=108]="ThrowKeyword",ue[ue.TrueKeyword=109]="TrueKeyword",ue[ue.TryKeyword=110]="TryKeyword",ue[ue.TypeOfKeyword=111]="TypeOfKeyword",ue[ue.VarKeyword=112]="VarKeyword",ue[ue.VoidKeyword=113]="VoidKeyword",ue[ue.WhileKeyword=114]="WhileKeyword",ue[ue.WithKeyword=115]="WithKeyword",ue[ue.ImplementsKeyword=116]="ImplementsKeyword",ue[ue.InterfaceKeyword=117]="InterfaceKeyword",ue[ue.LetKeyword=118]="LetKeyword",ue[ue.PackageKeyword=119]="PackageKeyword",ue[ue.PrivateKeyword=120]="PrivateKeyword",ue[ue.ProtectedKeyword=121]="ProtectedKeyword",ue[ue.PublicKeyword=122]="PublicKeyword",ue[ue.StaticKeyword=123]="StaticKeyword",ue[ue.YieldKeyword=124]="YieldKeyword",ue[ue.AbstractKeyword=125]="AbstractKeyword",ue[ue.AsKeyword=126]="AsKeyword",ue[ue.AssertsKeyword=127]="AssertsKeyword",ue[ue.AnyKeyword=128]="AnyKeyword",ue[ue.AsyncKeyword=129]="AsyncKeyword",ue[ue.AwaitKeyword=130]="AwaitKeyword",ue[ue.BooleanKeyword=131]="BooleanKeyword",ue[ue.ConstructorKeyword=132]="ConstructorKeyword",ue[ue.DeclareKeyword=133]="DeclareKeyword",ue[ue.GetKeyword=134]="GetKeyword",ue[ue.InferKeyword=135]="InferKeyword",ue[ue.IsKeyword=136]="IsKeyword",ue[ue.KeyOfKeyword=137]="KeyOfKeyword",ue[ue.ModuleKeyword=138]="ModuleKeyword",ue[ue.NamespaceKeyword=139]="NamespaceKeyword",ue[ue.NeverKeyword=140]="NeverKeyword",ue[ue.ReadonlyKeyword=141]="ReadonlyKeyword",ue[ue.RequireKeyword=142]="RequireKeyword",ue[ue.NumberKeyword=143]="NumberKeyword",ue[ue.ObjectKeyword=144]="ObjectKeyword",ue[ue.SetKeyword=145]="SetKeyword",ue[ue.StringKeyword=146]="StringKeyword",ue[ue.SymbolKeyword=147]="SymbolKeyword",ue[ue.TypeKeyword=148]="TypeKeyword",ue[ue.UndefinedKeyword=149]="UndefinedKeyword",ue[ue.UniqueKeyword=150]="UniqueKeyword",ue[ue.UnknownKeyword=151]="UnknownKeyword",ue[ue.FromKeyword=152]="FromKeyword",ue[ue.GlobalKeyword=153]="GlobalKeyword",ue[ue.BigIntKeyword=154]="BigIntKeyword",ue[ue.OfKeyword=155]="OfKeyword",ue[ue.QualifiedName=156]="QualifiedName",ue[ue.ComputedPropertyName=157]="ComputedPropertyName",ue[ue.TypeParameter=158]="TypeParameter",ue[ue.Parameter=159]="Parameter",ue[ue.Decorator=160]="Decorator",ue[ue.PropertySignature=161]="PropertySignature",ue[ue.PropertyDeclaration=162]="PropertyDeclaration",ue[ue.MethodSignature=163]="MethodSignature",ue[ue.MethodDeclaration=164]="MethodDeclaration",ue[ue.Constructor=165]="Constructor",ue[ue.GetAccessor=166]="GetAccessor",ue[ue.SetAccessor=167]="SetAccessor",ue[ue.CallSignature=168]="CallSignature",ue[ue.ConstructSignature=169]="ConstructSignature",ue[ue.IndexSignature=170]="IndexSignature",ue[ue.TypePredicate=171]="TypePredicate",ue[ue.TypeReference=172]="TypeReference",ue[ue.FunctionType=173]="FunctionType",ue[ue.ConstructorType=174]="ConstructorType",ue[ue.TypeQuery=175]="TypeQuery",ue[ue.TypeLiteral=176]="TypeLiteral",ue[ue.ArrayType=177]="ArrayType",ue[ue.TupleType=178]="TupleType",ue[ue.OptionalType=179]="OptionalType",ue[ue.RestType=180]="RestType",ue[ue.UnionType=181]="UnionType",ue[ue.IntersectionType=182]="IntersectionType",ue[ue.ConditionalType=183]="ConditionalType",ue[ue.InferType=184]="InferType",ue[ue.ParenthesizedType=185]="ParenthesizedType",ue[ue.ThisType=186]="ThisType",ue[ue.TypeOperator=187]="TypeOperator",ue[ue.IndexedAccessType=188]="IndexedAccessType",ue[ue.MappedType=189]="MappedType",ue[ue.LiteralType=190]="LiteralType",ue[ue.NamedTupleMember=191]="NamedTupleMember",ue[ue.ImportType=192]="ImportType",ue[ue.ObjectBindingPattern=193]="ObjectBindingPattern",ue[ue.ArrayBindingPattern=194]="ArrayBindingPattern",ue[ue.BindingElement=195]="BindingElement",ue[ue.ArrayLiteralExpression=196]="ArrayLiteralExpression",ue[ue.ObjectLiteralExpression=197]="ObjectLiteralExpression",ue[ue.PropertyAccessExpression=198]="PropertyAccessExpression",ue[ue.ElementAccessExpression=199]="ElementAccessExpression",ue[ue.CallExpression=200]="CallExpression",ue[ue.NewExpression=201]="NewExpression",ue[ue.TaggedTemplateExpression=202]="TaggedTemplateExpression",ue[ue.TypeAssertionExpression=203]="TypeAssertionExpression",ue[ue.ParenthesizedExpression=204]="ParenthesizedExpression",ue[ue.FunctionExpression=205]="FunctionExpression",ue[ue.ArrowFunction=206]="ArrowFunction",ue[ue.DeleteExpression=207]="DeleteExpression",ue[ue.TypeOfExpression=208]="TypeOfExpression",ue[ue.VoidExpression=209]="VoidExpression",ue[ue.AwaitExpression=210]="AwaitExpression",ue[ue.PrefixUnaryExpression=211]="PrefixUnaryExpression",ue[ue.PostfixUnaryExpression=212]="PostfixUnaryExpression",ue[ue.BinaryExpression=213]="BinaryExpression",ue[ue.ConditionalExpression=214]="ConditionalExpression",ue[ue.TemplateExpression=215]="TemplateExpression",ue[ue.YieldExpression=216]="YieldExpression",ue[ue.SpreadElement=217]="SpreadElement",ue[ue.ClassExpression=218]="ClassExpression",ue[ue.OmittedExpression=219]="OmittedExpression",ue[ue.ExpressionWithTypeArguments=220]="ExpressionWithTypeArguments",ue[ue.AsExpression=221]="AsExpression",ue[ue.NonNullExpression=222]="NonNullExpression",ue[ue.MetaProperty=223]="MetaProperty",ue[ue.SyntheticExpression=224]="SyntheticExpression",ue[ue.TemplateSpan=225]="TemplateSpan",ue[ue.SemicolonClassElement=226]="SemicolonClassElement",ue[ue.Block=227]="Block",ue[ue.EmptyStatement=228]="EmptyStatement",ue[ue.VariableStatement=229]="VariableStatement",ue[ue.ExpressionStatement=230]="ExpressionStatement",ue[ue.IfStatement=231]="IfStatement",ue[ue.DoStatement=232]="DoStatement",ue[ue.WhileStatement=233]="WhileStatement",ue[ue.ForStatement=234]="ForStatement",ue[ue.ForInStatement=235]="ForInStatement",ue[ue.ForOfStatement=236]="ForOfStatement",ue[ue.ContinueStatement=237]="ContinueStatement",ue[ue.BreakStatement=238]="BreakStatement",ue[ue.ReturnStatement=239]="ReturnStatement",ue[ue.WithStatement=240]="WithStatement",ue[ue.SwitchStatement=241]="SwitchStatement",ue[ue.LabeledStatement=242]="LabeledStatement",ue[ue.ThrowStatement=243]="ThrowStatement",ue[ue.TryStatement=244]="TryStatement",ue[ue.DebuggerStatement=245]="DebuggerStatement",ue[ue.VariableDeclaration=246]="VariableDeclaration",ue[ue.VariableDeclarationList=247]="VariableDeclarationList",ue[ue.FunctionDeclaration=248]="FunctionDeclaration",ue[ue.ClassDeclaration=249]="ClassDeclaration",ue[ue.InterfaceDeclaration=250]="InterfaceDeclaration",ue[ue.TypeAliasDeclaration=251]="TypeAliasDeclaration",ue[ue.EnumDeclaration=252]="EnumDeclaration",ue[ue.ModuleDeclaration=253]="ModuleDeclaration",ue[ue.ModuleBlock=254]="ModuleBlock",ue[ue.CaseBlock=255]="CaseBlock",ue[ue.NamespaceExportDeclaration=256]="NamespaceExportDeclaration",ue[ue.ImportEqualsDeclaration=257]="ImportEqualsDeclaration",ue[ue.ImportDeclaration=258]="ImportDeclaration",ue[ue.ImportClause=259]="ImportClause",ue[ue.NamespaceImport=260]="NamespaceImport",ue[ue.NamedImports=261]="NamedImports",ue[ue.ImportSpecifier=262]="ImportSpecifier",ue[ue.ExportAssignment=263]="ExportAssignment",ue[ue.ExportDeclaration=264]="ExportDeclaration",ue[ue.NamedExports=265]="NamedExports",ue[ue.NamespaceExport=266]="NamespaceExport",ue[ue.ExportSpecifier=267]="ExportSpecifier",ue[ue.MissingDeclaration=268]="MissingDeclaration",ue[ue.ExternalModuleReference=269]="ExternalModuleReference",ue[ue.JsxElement=270]="JsxElement",ue[ue.JsxSelfClosingElement=271]="JsxSelfClosingElement",ue[ue.JsxOpeningElement=272]="JsxOpeningElement",ue[ue.JsxClosingElement=273]="JsxClosingElement",ue[ue.JsxFragment=274]="JsxFragment",ue[ue.JsxOpeningFragment=275]="JsxOpeningFragment",ue[ue.JsxClosingFragment=276]="JsxClosingFragment",ue[ue.JsxAttribute=277]="JsxAttribute",ue[ue.JsxAttributes=278]="JsxAttributes",ue[ue.JsxSpreadAttribute=279]="JsxSpreadAttribute",ue[ue.JsxExpression=280]="JsxExpression",ue[ue.CaseClause=281]="CaseClause",ue[ue.DefaultClause=282]="DefaultClause",ue[ue.HeritageClause=283]="HeritageClause",ue[ue.CatchClause=284]="CatchClause",ue[ue.PropertyAssignment=285]="PropertyAssignment",ue[ue.ShorthandPropertyAssignment=286]="ShorthandPropertyAssignment",ue[ue.SpreadAssignment=287]="SpreadAssignment",ue[ue.EnumMember=288]="EnumMember",ue[ue.UnparsedPrologue=289]="UnparsedPrologue",ue[ue.UnparsedPrepend=290]="UnparsedPrepend",ue[ue.UnparsedText=291]="UnparsedText",ue[ue.UnparsedInternalText=292]="UnparsedInternalText",ue[ue.UnparsedSyntheticReference=293]="UnparsedSyntheticReference",ue[ue.SourceFile=294]="SourceFile",ue[ue.Bundle=295]="Bundle",ue[ue.UnparsedSource=296]="UnparsedSource",ue[ue.InputFiles=297]="InputFiles",ue[ue.JSDocTypeExpression=298]="JSDocTypeExpression",ue[ue.JSDocAllType=299]="JSDocAllType",ue[ue.JSDocUnknownType=300]="JSDocUnknownType",ue[ue.JSDocNullableType=301]="JSDocNullableType",ue[ue.JSDocNonNullableType=302]="JSDocNonNullableType",ue[ue.JSDocOptionalType=303]="JSDocOptionalType",ue[ue.JSDocFunctionType=304]="JSDocFunctionType",ue[ue.JSDocVariadicType=305]="JSDocVariadicType",ue[ue.JSDocNamepathType=306]="JSDocNamepathType",ue[ue.JSDocComment=307]="JSDocComment",ue[ue.JSDocTypeLiteral=308]="JSDocTypeLiteral",ue[ue.JSDocSignature=309]="JSDocSignature",ue[ue.JSDocTag=310]="JSDocTag",ue[ue.JSDocAugmentsTag=311]="JSDocAugmentsTag",ue[ue.JSDocImplementsTag=312]="JSDocImplementsTag",ue[ue.JSDocAuthorTag=313]="JSDocAuthorTag",ue[ue.JSDocDeprecatedTag=314]="JSDocDeprecatedTag",ue[ue.JSDocClassTag=315]="JSDocClassTag",ue[ue.JSDocPublicTag=316]="JSDocPublicTag",ue[ue.JSDocPrivateTag=317]="JSDocPrivateTag",ue[ue.JSDocProtectedTag=318]="JSDocProtectedTag",ue[ue.JSDocReadonlyTag=319]="JSDocReadonlyTag",ue[ue.JSDocCallbackTag=320]="JSDocCallbackTag",ue[ue.JSDocEnumTag=321]="JSDocEnumTag",ue[ue.JSDocParameterTag=322]="JSDocParameterTag",ue[ue.JSDocReturnTag=323]="JSDocReturnTag",ue[ue.JSDocThisTag=324]="JSDocThisTag",ue[ue.JSDocTypeTag=325]="JSDocTypeTag",ue[ue.JSDocTemplateTag=326]="JSDocTemplateTag",ue[ue.JSDocTypedefTag=327]="JSDocTypedefTag",ue[ue.JSDocPropertyTag=328]="JSDocPropertyTag",ue[ue.SyntaxList=329]="SyntaxList",ue[ue.NotEmittedStatement=330]="NotEmittedStatement",ue[ue.PartiallyEmittedExpression=331]="PartiallyEmittedExpression",ue[ue.CommaListExpression=332]="CommaListExpression",ue[ue.MergeDeclarationMarker=333]="MergeDeclarationMarker",ue[ue.EndOfDeclarationMarker=334]="EndOfDeclarationMarker",ue[ue.SyntheticReferenceExpression=335]="SyntheticReferenceExpression",ue[ue.Count=336]="Count",ue[ue.FirstAssignment=62]="FirstAssignment",ue[ue.LastAssignment=77]="LastAssignment",ue[ue.FirstCompoundAssignment=63]="FirstCompoundAssignment",ue[ue.LastCompoundAssignment=77]="LastCompoundAssignment",ue[ue.FirstReservedWord=80]="FirstReservedWord",ue[ue.LastReservedWord=115]="LastReservedWord",ue[ue.FirstKeyword=80]="FirstKeyword",ue[ue.LastKeyword=155]="LastKeyword",ue[ue.FirstFutureReservedWord=116]="FirstFutureReservedWord",ue[ue.LastFutureReservedWord=124]="LastFutureReservedWord",ue[ue.FirstTypeNode=171]="FirstTypeNode",ue[ue.LastTypeNode=192]="LastTypeNode",ue[ue.FirstPunctuation=18]="FirstPunctuation",ue[ue.LastPunctuation=77]="LastPunctuation",ue[ue.FirstToken=0]="FirstToken",ue[ue.LastToken=155]="LastToken",ue[ue.FirstTriviaToken=2]="FirstTriviaToken",ue[ue.LastTriviaToken=7]="LastTriviaToken",ue[ue.FirstLiteralToken=8]="FirstLiteralToken",ue[ue.LastLiteralToken=14]="LastLiteralToken",ue[ue.FirstTemplateToken=14]="FirstTemplateToken",ue[ue.LastTemplateToken=17]="LastTemplateToken",ue[ue.FirstBinaryOperator=29]="FirstBinaryOperator",ue[ue.LastBinaryOperator=77]="LastBinaryOperator",ue[ue.FirstStatement=229]="FirstStatement",ue[ue.LastStatement=245]="LastStatement",ue[ue.FirstNode=156]="FirstNode",ue[ue.FirstJSDocNode=298]="FirstJSDocNode",ue[ue.LastJSDocNode=328]="LastJSDocNode",ue[ue.FirstJSDocTagNode=310]="FirstJSDocTagNode",ue[ue.LastJSDocTagNode=328]="LastJSDocTagNode",ue[ue.FirstContextualKeyword=125]="FirstContextualKeyword",ue[ue.LastContextualKeyword=155]="LastContextualKeyword",(ce=e.NodeFlags||(e.NodeFlags={}))[ce.None=0]="None",ce[ce.Let=1]="Let",ce[ce.Const=2]="Const",ce[ce.NestedNamespace=4]="NestedNamespace",ce[ce.Synthesized=8]="Synthesized",ce[ce.Namespace=16]="Namespace",ce[ce.OptionalChain=32]="OptionalChain",ce[ce.ExportContext=64]="ExportContext",ce[ce.ContainsThis=128]="ContainsThis",ce[ce.HasImplicitReturn=256]="HasImplicitReturn",ce[ce.HasExplicitReturn=512]="HasExplicitReturn",ce[ce.GlobalAugmentation=1024]="GlobalAugmentation",ce[ce.HasAsyncFunctions=2048]="HasAsyncFunctions",ce[ce.DisallowInContext=4096]="DisallowInContext",ce[ce.YieldContext=8192]="YieldContext",ce[ce.DecoratorContext=16384]="DecoratorContext",ce[ce.AwaitContext=32768]="AwaitContext",ce[ce.ThisNodeHasError=65536]="ThisNodeHasError",ce[ce.JavaScriptFile=131072]="JavaScriptFile",ce[ce.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",ce[ce.HasAggregatedChildData=524288]="HasAggregatedChildData",ce[ce.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",ce[ce.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",ce[ce.JSDoc=4194304]="JSDoc",ce[ce.Ambient=8388608]="Ambient",ce[ce.InWithStatement=16777216]="InWithStatement",ce[ce.JsonFile=33554432]="JsonFile",ce[ce.TypeCached=67108864]="TypeCached",ce[ce.Deprecated=134217728]="Deprecated",ce[ce.BlockScoped=3]="BlockScoped",ce[ce.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",ce[ce.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",ce[ce.ContextFlags=25358336]="ContextFlags",ce[ce.TypeExcludesFlags=40960]="TypeExcludesFlags",ce[ce.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags",(se=e.ModifierFlags||(e.ModifierFlags={}))[se.None=0]="None",se[se.Export=1]="Export",se[se.Ambient=2]="Ambient",se[se.Public=4]="Public",se[se.Private=8]="Private",se[se.Protected=16]="Protected",se[se.Static=32]="Static",se[se.Readonly=64]="Readonly",se[se.Abstract=128]="Abstract",se[se.Async=256]="Async",se[se.Default=512]="Default",se[se.Const=2048]="Const",se[se.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",se[se.Deprecated=8192]="Deprecated",se[se.HasComputedFlags=536870912]="HasComputedFlags",se[se.AccessibilityModifier=28]="AccessibilityModifier",se[se.ParameterPropertyModifier=92]="ParameterPropertyModifier",se[se.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",se[se.TypeScriptModifier=2270]="TypeScriptModifier",se[se.ExportDefault=513]="ExportDefault",se[se.All=11263]="All",(oe=e.JsxFlags||(e.JsxFlags={}))[oe.None=0]="None",oe[oe.IntrinsicNamedElement=1]="IntrinsicNamedElement",oe[oe.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",oe[oe.IntrinsicElement=3]="IntrinsicElement",(ae=e.RelationComparisonResult||(e.RelationComparisonResult={}))[ae.Succeeded=1]="Succeeded",ae[ae.Failed=2]="Failed",ae[ae.Reported=4]="Reported",ae[ae.ReportsUnmeasurable=8]="ReportsUnmeasurable",ae[ae.ReportsUnreliable=16]="ReportsUnreliable",ae[ae.ReportsMask=24]="ReportsMask",(ie=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[ie.None=0]="None",ie[ie.Auto=1]="Auto",ie[ie.Loop=2]="Loop",ie[ie.Unique=3]="Unique",ie[ie.Node=4]="Node",ie[ie.KindMask=7]="KindMask",ie[ie.ReservedInNestedScopes=8]="ReservedInNestedScopes",ie[ie.Optimistic=16]="Optimistic",ie[ie.FileLevel=32]="FileLevel",(ne=e.TokenFlags||(e.TokenFlags={}))[ne.None=0]="None",ne[ne.PrecedingLineBreak=1]="PrecedingLineBreak",ne[ne.PrecedingJSDocComment=2]="PrecedingJSDocComment",ne[ne.Unterminated=4]="Unterminated",ne[ne.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",ne[ne.Scientific=16]="Scientific",ne[ne.Octal=32]="Octal",ne[ne.HexSpecifier=64]="HexSpecifier",ne[ne.BinarySpecifier=128]="BinarySpecifier",ne[ne.OctalSpecifier=256]="OctalSpecifier",ne[ne.ContainsSeparator=512]="ContainsSeparator",ne[ne.UnicodeEscape=1024]="UnicodeEscape",ne[ne.ContainsInvalidEscape=2048]="ContainsInvalidEscape",ne[ne.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",ne[ne.NumericLiteralFlags=1008]="NumericLiteralFlags",ne[ne.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(re=e.FlowFlags||(e.FlowFlags={}))[re.Unreachable=1]="Unreachable",re[re.Start=2]="Start",re[re.BranchLabel=4]="BranchLabel",re[re.LoopLabel=8]="LoopLabel",re[re.Assignment=16]="Assignment",re[re.TrueCondition=32]="TrueCondition",re[re.FalseCondition=64]="FalseCondition",re[re.SwitchClause=128]="SwitchClause",re[re.ArrayMutation=256]="ArrayMutation",re[re.Call=512]="Call",re[re.ReduceLabel=1024]="ReduceLabel",re[re.Referenced=2048]="Referenced",re[re.Shared=4096]="Shared",re[re.Label=12]="Label",re[re.Condition=96]="Condition",(te=e.CommentDirectiveType||(e.CommentDirectiveType={}))[te.ExpectError=0]="ExpectError",te[te.Ignore=1]="Ignore",e.OperationCanceledException=function(){},(ee=e.RefFileKind||(e.RefFileKind={}))[ee.Import=0]="Import",ee[ee.ReferenceFile=1]="ReferenceFile",ee[ee.TypeReferenceDirective=2]="TypeReferenceDirective",(Z=e.StructureIsReused||(e.StructureIsReused={}))[Z.Not=0]="Not",Z[Z.SafeModules=1]="SafeModules",Z[Z.Completely=2]="Completely",(Y=e.ExitStatus||(e.ExitStatus={}))[Y.Success=0]="Success",Y[Y.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",Y[Y.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",Y[Y.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",Y[Y.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",Y[Y.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(X=e.UnionReduction||(e.UnionReduction={}))[X.None=0]="None",X[X.Literal=1]="Literal",X[X.Subtype=2]="Subtype",($=e.ContextFlags||(e.ContextFlags={}))[$.None=0]="None",$[$.Signature=1]="Signature",$[$.NoConstraints=2]="NoConstraints",$[$.Completions=4]="Completions",$[$.SkipBindingPatterns=8]="SkipBindingPatterns",(Q=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[Q.None=0]="None",Q[Q.NoTruncation=1]="NoTruncation",Q[Q.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",Q[Q.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",Q[Q.UseStructuralFallback=8]="UseStructuralFallback",Q[Q.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",Q[Q.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",Q[Q.UseFullyQualifiedType=64]="UseFullyQualifiedType",Q[Q.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",Q[Q.SuppressAnyReturnType=256]="SuppressAnyReturnType",Q[Q.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",Q[Q.MultilineObjectLiterals=1024]="MultilineObjectLiterals",Q[Q.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",Q[Q.UseTypeOfFunction=4096]="UseTypeOfFunction",Q[Q.OmitParameterModifiers=8192]="OmitParameterModifiers",Q[Q.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",Q[Q.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",Q[Q.NoTypeReduction=536870912]="NoTypeReduction",Q[Q.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",Q[Q.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",Q[Q.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",Q[Q.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",Q[Q.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",Q[Q.AllowEmptyTuple=524288]="AllowEmptyTuple",Q[Q.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",Q[Q.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",Q[Q.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",Q[Q.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",Q[Q.IgnoreErrors=70221824]="IgnoreErrors",Q[Q.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",Q[Q.InTypeAlias=8388608]="InTypeAlias",Q[Q.InInitialEntityName=16777216]="InInitialEntityName",Q[Q.InReverseMappedType=33554432]="InReverseMappedType",(G=e.TypeFormatFlags||(e.TypeFormatFlags={}))[G.None=0]="None",G[G.NoTruncation=1]="NoTruncation",G[G.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",G[G.UseStructuralFallback=8]="UseStructuralFallback",G[G.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",G[G.UseFullyQualifiedType=64]="UseFullyQualifiedType",G[G.SuppressAnyReturnType=256]="SuppressAnyReturnType",G[G.MultilineObjectLiterals=1024]="MultilineObjectLiterals",G[G.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",G[G.UseTypeOfFunction=4096]="UseTypeOfFunction",G[G.OmitParameterModifiers=8192]="OmitParameterModifiers",G[G.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",G[G.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",G[G.NoTypeReduction=536870912]="NoTypeReduction",G[G.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",G[G.AddUndefined=131072]="AddUndefined",G[G.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",G[G.InArrayType=524288]="InArrayType",G[G.InElementType=2097152]="InElementType",G[G.InFirstTypeArgument=4194304]="InFirstTypeArgument",G[G.InTypeAlias=8388608]="InTypeAlias",G[G.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",G[G.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask",(H=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[H.None=0]="None",H[H.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",H[H.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",H[H.AllowAnyNodeKind=4]="AllowAnyNodeKind",H[H.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",H[H.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(K=e.SymbolAccessibility||(e.SymbolAccessibility={}))[K.Accessible=0]="Accessible",K[K.NotAccessible=1]="NotAccessible",K[K.CannotBeNamed=2]="CannotBeNamed",(q=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[q.UnionOrIntersection=0]="UnionOrIntersection",q[q.Spread=1]="Spread",(W=e.TypePredicateKind||(e.TypePredicateKind={}))[W.This=0]="This",W[W.Identifier=1]="Identifier",W[W.AssertsThis=2]="AssertsThis",W[W.AssertsIdentifier=3]="AssertsIdentifier",(V=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[V.Unknown=0]="Unknown",V[V.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",V[V.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",V[V.NumberLikeType=3]="NumberLikeType",V[V.BigIntLikeType=4]="BigIntLikeType",V[V.StringLikeType=5]="StringLikeType",V[V.BooleanType=6]="BooleanType",V[V.ArrayLikeType=7]="ArrayLikeType",V[V.ESSymbolType=8]="ESSymbolType",V[V.Promise=9]="Promise",V[V.TypeWithCallSignature=10]="TypeWithCallSignature",V[V.ObjectType=11]="ObjectType",(J=e.SymbolFlags||(e.SymbolFlags={}))[J.None=0]="None",J[J.FunctionScopedVariable=1]="FunctionScopedVariable",J[J.BlockScopedVariable=2]="BlockScopedVariable",J[J.Property=4]="Property",J[J.EnumMember=8]="EnumMember",J[J.Function=16]="Function",J[J.Class=32]="Class",J[J.Interface=64]="Interface",J[J.ConstEnum=128]="ConstEnum",J[J.RegularEnum=256]="RegularEnum",J[J.ValueModule=512]="ValueModule",J[J.NamespaceModule=1024]="NamespaceModule",J[J.TypeLiteral=2048]="TypeLiteral",J[J.ObjectLiteral=4096]="ObjectLiteral",J[J.Method=8192]="Method",J[J.Constructor=16384]="Constructor",J[J.GetAccessor=32768]="GetAccessor",J[J.SetAccessor=65536]="SetAccessor",J[J.Signature=131072]="Signature",J[J.TypeParameter=262144]="TypeParameter",J[J.TypeAlias=524288]="TypeAlias",J[J.ExportValue=1048576]="ExportValue",J[J.Alias=2097152]="Alias",J[J.Prototype=4194304]="Prototype",J[J.ExportStar=8388608]="ExportStar",J[J.Optional=16777216]="Optional",J[J.Transient=33554432]="Transient",J[J.Assignment=67108864]="Assignment",J[J.ModuleExports=134217728]="ModuleExports",J[J.All=67108863]="All",J[J.Enum=384]="Enum",J[J.Variable=3]="Variable",J[J.Value=111551]="Value",J[J.Type=788968]="Type",J[J.Namespace=1920]="Namespace",J[J.Module=1536]="Module",J[J.Accessor=98304]="Accessor",J[J.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",J[J.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",J[J.ParameterExcludes=111551]="ParameterExcludes",J[J.PropertyExcludes=0]="PropertyExcludes",J[J.EnumMemberExcludes=900095]="EnumMemberExcludes",J[J.FunctionExcludes=110991]="FunctionExcludes",J[J.ClassExcludes=899503]="ClassExcludes",J[J.InterfaceExcludes=788872]="InterfaceExcludes",J[J.RegularEnumExcludes=899327]="RegularEnumExcludes",J[J.ConstEnumExcludes=899967]="ConstEnumExcludes",J[J.ValueModuleExcludes=110735]="ValueModuleExcludes",J[J.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",J[J.MethodExcludes=103359]="MethodExcludes",J[J.GetAccessorExcludes=46015]="GetAccessorExcludes",J[J.SetAccessorExcludes=78783]="SetAccessorExcludes",J[J.TypeParameterExcludes=526824]="TypeParameterExcludes",J[J.TypeAliasExcludes=788968]="TypeAliasExcludes",J[J.AliasExcludes=2097152]="AliasExcludes",J[J.ModuleMember=2623475]="ModuleMember",J[J.ExportHasLocal=944]="ExportHasLocal",J[J.BlockScoped=418]="BlockScoped",J[J.PropertyOrAccessor=98308]="PropertyOrAccessor",J[J.ClassMember=106500]="ClassMember",J[J.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",J[J.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",J[J.Classifiable=2885600]="Classifiable",J[J.LateBindingContainer=6256]="LateBindingContainer",(z=e.EnumKind||(e.EnumKind={}))[z.Numeric=0]="Numeric",z[z.Literal=1]="Literal",(U=e.CheckFlags||(e.CheckFlags={}))[U.Instantiated=1]="Instantiated",U[U.SyntheticProperty=2]="SyntheticProperty",U[U.SyntheticMethod=4]="SyntheticMethod",U[U.Readonly=8]="Readonly",U[U.ReadPartial=16]="ReadPartial",U[U.WritePartial=32]="WritePartial",U[U.HasNonUniformType=64]="HasNonUniformType",U[U.HasLiteralType=128]="HasLiteralType",U[U.ContainsPublic=256]="ContainsPublic",U[U.ContainsProtected=512]="ContainsProtected",U[U.ContainsPrivate=1024]="ContainsPrivate",U[U.ContainsStatic=2048]="ContainsStatic",U[U.Late=4096]="Late",U[U.ReverseMapped=8192]="ReverseMapped",U[U.OptionalParameter=16384]="OptionalParameter",U[U.RestParameter=32768]="RestParameter",U[U.DeferredType=65536]="DeferredType",U[U.HasNeverType=131072]="HasNeverType",U[U.Mapped=262144]="Mapped",U[U.StripOptional=524288]="StripOptional",U[U.Synthetic=6]="Synthetic",U[U.Discriminant=192]="Discriminant",U[U.Partial=48]="Partial",(j=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",j.Constructor="__constructor",j.New="__new",j.Index="__index",j.ExportStar="__export",j.Global="__global",j.Missing="__missing",j.Type="__type",j.Object="__object",j.JSXAttributes="__jsxAttributes",j.Class="__class",j.Function="__function",j.Computed="__computed",j.Resolving="__resolving__",j.ExportEquals="export=",j.Default="default",j.This="this",(B=e.NodeCheckFlags||(e.NodeCheckFlags={}))[B.TypeChecked=1]="TypeChecked",B[B.LexicalThis=2]="LexicalThis",B[B.CaptureThis=4]="CaptureThis",B[B.CaptureNewTarget=8]="CaptureNewTarget",B[B.SuperInstance=256]="SuperInstance",B[B.SuperStatic=512]="SuperStatic",B[B.ContextChecked=1024]="ContextChecked",B[B.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",B[B.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",B[B.CaptureArguments=8192]="CaptureArguments",B[B.EnumValuesComputed=16384]="EnumValuesComputed",B[B.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",B[B.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",B[B.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",B[B.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",B[B.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",B[B.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",B[B.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",B[B.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",B[B.AssignmentsMarked=8388608]="AssignmentsMarked",B[B.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",B[B.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",B[B.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",(R=e.TypeFlags||(e.TypeFlags={}))[R.Any=1]="Any",R[R.Unknown=2]="Unknown",R[R.String=4]="String",R[R.Number=8]="Number",R[R.Boolean=16]="Boolean",R[R.Enum=32]="Enum",R[R.BigInt=64]="BigInt",R[R.StringLiteral=128]="StringLiteral",R[R.NumberLiteral=256]="NumberLiteral",R[R.BooleanLiteral=512]="BooleanLiteral",R[R.EnumLiteral=1024]="EnumLiteral",R[R.BigIntLiteral=2048]="BigIntLiteral",R[R.ESSymbol=4096]="ESSymbol",R[R.UniqueESSymbol=8192]="UniqueESSymbol",R[R.Void=16384]="Void",R[R.Undefined=32768]="Undefined",R[R.Null=65536]="Null",R[R.Never=131072]="Never",R[R.TypeParameter=262144]="TypeParameter",R[R.Object=524288]="Object",R[R.Union=1048576]="Union",R[R.Intersection=2097152]="Intersection",R[R.Index=4194304]="Index",R[R.IndexedAccess=8388608]="IndexedAccess",R[R.Conditional=16777216]="Conditional",R[R.Substitution=33554432]="Substitution",R[R.NonPrimitive=67108864]="NonPrimitive",R[R.AnyOrUnknown=3]="AnyOrUnknown",R[R.Nullable=98304]="Nullable",R[R.Literal=2944]="Literal",R[R.Unit=109440]="Unit",R[R.StringOrNumberLiteral=384]="StringOrNumberLiteral",R[R.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",R[R.DefinitelyFalsy=117632]="DefinitelyFalsy",R[R.PossiblyFalsy=117724]="PossiblyFalsy",R[R.Intrinsic=67359327]="Intrinsic",R[R.Primitive=131068]="Primitive",R[R.StringLike=132]="StringLike",R[R.NumberLike=296]="NumberLike",R[R.BigIntLike=2112]="BigIntLike",R[R.BooleanLike=528]="BooleanLike",R[R.EnumLike=1056]="EnumLike",R[R.ESSymbolLike=12288]="ESSymbolLike",R[R.VoidLike=49152]="VoidLike",R[R.DisjointDomains=67238908]="DisjointDomains",R[R.UnionOrIntersection=3145728]="UnionOrIntersection",R[R.StructuredType=3670016]="StructuredType",R[R.TypeVariable=8650752]="TypeVariable",R[R.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",R[R.InstantiablePrimitive=4194304]="InstantiablePrimitive",R[R.Instantiable=63176704]="Instantiable",R[R.StructuredOrInstantiable=66846720]="StructuredOrInstantiable",R[R.ObjectFlagsType=3899393]="ObjectFlagsType",R[R.Simplifiable=25165824]="Simplifiable",R[R.Substructure=66584576]="Substructure",R[R.Narrowable=133970943]="Narrowable",R[R.NotPrimitiveUnion=66994211]="NotPrimitiveUnion",R[R.IncludesMask=71041023]="IncludesMask",R[R.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",R[R.IncludesNonWideningType=4194304]="IncludesNonWideningType",R[R.IncludesWildcard=8388608]="IncludesWildcard",R[R.IncludesEmptyObject=16777216]="IncludesEmptyObject",(L=e.ObjectFlags||(e.ObjectFlags={}))[L.Class=1]="Class",L[L.Interface=2]="Interface",L[L.Reference=4]="Reference",L[L.Tuple=8]="Tuple",L[L.Anonymous=16]="Anonymous",L[L.Mapped=32]="Mapped",L[L.Instantiated=64]="Instantiated",L[L.ObjectLiteral=128]="ObjectLiteral",L[L.EvolvingArray=256]="EvolvingArray",L[L.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",L[L.ContainsSpread=1024]="ContainsSpread",L[L.ReverseMapped=2048]="ReverseMapped",L[L.JsxAttributes=4096]="JsxAttributes",L[L.MarkerType=8192]="MarkerType",L[L.JSLiteral=16384]="JSLiteral",L[L.FreshLiteral=32768]="FreshLiteral",L[L.ArrayLiteral=65536]="ArrayLiteral",L[L.ObjectRestType=131072]="ObjectRestType",L[L.PrimitiveUnion=262144]="PrimitiveUnion",L[L.ContainsWideningType=524288]="ContainsWideningType",L[L.ContainsObjectOrArrayLiteral=1048576]="ContainsObjectOrArrayLiteral",L[L.NonInferrableType=2097152]="NonInferrableType",L[L.IsGenericObjectTypeComputed=4194304]="IsGenericObjectTypeComputed",L[L.IsGenericObjectType=8388608]="IsGenericObjectType",L[L.IsGenericIndexTypeComputed=16777216]="IsGenericIndexTypeComputed",L[L.IsGenericIndexType=33554432]="IsGenericIndexType",L[L.CouldContainTypeVariablesComputed=67108864]="CouldContainTypeVariablesComputed",L[L.CouldContainTypeVariables=134217728]="CouldContainTypeVariables",L[L.ContainsIntersections=268435456]="ContainsIntersections",L[L.IsNeverIntersectionComputed=268435456]="IsNeverIntersectionComputed",L[L.IsNeverIntersection=536870912]="IsNeverIntersection",L[L.ClassOrInterface=3]="ClassOrInterface",L[L.RequiresWidening=1572864]="RequiresWidening",L[L.PropagatingFlags=3670016]="PropagatingFlags",(M=e.VarianceFlags||(e.VarianceFlags={}))[M.Invariant=0]="Invariant",M[M.Covariant=1]="Covariant",M[M.Contravariant=2]="Contravariant",M[M.Bivariant=3]="Bivariant",M[M.Independent=4]="Independent",M[M.VarianceMask=7]="VarianceMask",M[M.Unmeasurable=8]="Unmeasurable",M[M.Unreliable=16]="Unreliable",M[M.AllowsStructuralFallback=24]="AllowsStructuralFallback",(I=e.ElementFlags||(e.ElementFlags={}))[I.Required=1]="Required",I[I.Optional=2]="Optional",I[I.Rest=4]="Rest",I[I.Variadic=8]="Variadic",I[I.Variable=12]="Variable",(F=e.JsxReferenceKind||(e.JsxReferenceKind={}))[F.Component=0]="Component",F[F.Function=1]="Function",F[F.Mixed=2]="Mixed",(O=e.SignatureKind||(e.SignatureKind={}))[O.Call=0]="Call",O[O.Construct=1]="Construct",(P=e.SignatureFlags||(e.SignatureFlags={}))[P.None=0]="None",P[P.HasRestParameter=1]="HasRestParameter",P[P.HasLiteralTypes=2]="HasLiteralTypes",P[P.IsInnerCallChain=4]="IsInnerCallChain",P[P.IsOuterCallChain=8]="IsOuterCallChain",P[P.IsUntypedSignatureInJSFile=16]="IsUntypedSignatureInJSFile",P[P.PropagatingFlags=19]="PropagatingFlags",P[P.CallChainFlags=12]="CallChainFlags",(N=e.IndexKind||(e.IndexKind={}))[N.String=0]="String",N[N.Number=1]="Number",(A=e.TypeMapKind||(e.TypeMapKind={}))[A.Simple=0]="Simple",A[A.Array=1]="Array",A[A.Function=2]="Function",A[A.Composite=3]="Composite",A[A.Merged=4]="Merged",(w=e.InferencePriority||(e.InferencePriority={}))[w.NakedTypeVariable=1]="NakedTypeVariable",w[w.SpeculativeTuple=2]="SpeculativeTuple",w[w.HomomorphicMappedType=4]="HomomorphicMappedType",w[w.PartialHomomorphicMappedType=8]="PartialHomomorphicMappedType",w[w.MappedTypeConstraint=16]="MappedTypeConstraint",w[w.ContravariantConditional=32]="ContravariantConditional",w[w.ReturnType=64]="ReturnType",w[w.LiteralKeyof=128]="LiteralKeyof",w[w.NoConstraints=256]="NoConstraints",w[w.AlwaysStrict=512]="AlwaysStrict",w[w.MaxValue=1024]="MaxValue",w[w.PriorityImpliesCombination=208]="PriorityImpliesCombination",w[w.Circularity=-1]="Circularity",(k=e.InferenceFlags||(e.InferenceFlags={}))[k.None=0]="None",k[k.NoDefault=1]="NoDefault",k[k.AnyDefault=2]="AnyDefault",k[k.SkippedGenericFunction=4]="SkippedGenericFunction",(T=e.Ternary||(e.Ternary={}))[T.False=0]="False",T[T.Maybe=1]="Maybe",T[T.True=-1]="True",(C=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[C.None=0]="None",C[C.ExportsProperty=1]="ExportsProperty",C[C.ModuleExports=2]="ModuleExports",C[C.PrototypeProperty=3]="PrototypeProperty",C[C.ThisProperty=4]="ThisProperty",C[C.Property=5]="Property",C[C.Prototype=6]="Prototype",C[C.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",C[C.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",C[C.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(t=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,r){void 0===r&&(r=!0);var n=t[e.category];return r?n.toLowerCase():n},(E=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[E.Classic=1]="Classic",E[E.NodeJs=2]="NodeJs",(S=e.WatchFileKind||(e.WatchFileKind={}))[S.FixedPollingInterval=0]="FixedPollingInterval",S[S.PriorityPollingInterval=1]="PriorityPollingInterval",S[S.DynamicPriorityPolling=2]="DynamicPriorityPolling",S[S.UseFsEvents=3]="UseFsEvents",S[S.UseFsEventsOnParentDirectory=4]="UseFsEventsOnParentDirectory",(D=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[D.UseFsEvents=0]="UseFsEvents",D[D.FixedPollingInterval=1]="FixedPollingInterval",D[D.DynamicPriorityPolling=2]="DynamicPriorityPolling",(x=e.PollingWatchKind||(e.PollingWatchKind={}))[x.FixedInterval=0]="FixedInterval",x[x.PriorityInterval=1]="PriorityInterval",x[x.DynamicPriority=2]="DynamicPriority",(b=e.ModuleKind||(e.ModuleKind={}))[b.None=0]="None",b[b.CommonJS=1]="CommonJS",b[b.AMD=2]="AMD",b[b.UMD=3]="UMD",b[b.System=4]="System",b[b.ES2015=5]="ES2015",b[b.ES2020=6]="ES2020",b[b.ESNext=99]="ESNext",(v=e.JsxEmit||(e.JsxEmit={}))[v.None=0]="None",v[v.Preserve=1]="Preserve",v[v.React=2]="React",v[v.ReactNative=3]="ReactNative",(y=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[y.Remove=0]="Remove",y[y.Preserve=1]="Preserve",y[y.Error=2]="Error",(h=e.NewLineKind||(e.NewLineKind={}))[h.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",h[h.LineFeed=1]="LineFeed",(m=e.ScriptKind||(e.ScriptKind={}))[m.Unknown=0]="Unknown",m[m.JS=1]="JS",m[m.JSX=2]="JSX",m[m.TS=3]="TS",m[m.TSX=4]="TSX",m[m.External=5]="External",m[m.JSON=6]="JSON",m[m.Deferred=7]="Deferred",(g=e.ScriptTarget||(e.ScriptTarget={}))[g.ES3=0]="ES3",g[g.ES5=1]="ES5",g[g.ES2015=2]="ES2015",g[g.ES2016=3]="ES2016",g[g.ES2017=4]="ES2017",g[g.ES2018=5]="ES2018",g[g.ES2019=6]="ES2019",g[g.ES2020=7]="ES2020",g[g.ESNext=99]="ESNext",g[g.JSON=100]="JSON",g[g.Latest=99]="Latest",(f=e.LanguageVariant||(e.LanguageVariant={}))[f.Standard=0]="Standard",f[f.JSX=1]="JSX",(p=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[p.None=0]="None",p[p.Recursive=1]="Recursive",(d=e.CharacterCodes||(e.CharacterCodes={}))[d.nullCharacter=0]="nullCharacter",d[d.maxAsciiCharacter=127]="maxAsciiCharacter",d[d.lineFeed=10]="lineFeed",d[d.carriageReturn=13]="carriageReturn",d[d.lineSeparator=8232]="lineSeparator",d[d.paragraphSeparator=8233]="paragraphSeparator",d[d.nextLine=133]="nextLine",d[d.space=32]="space",d[d.nonBreakingSpace=160]="nonBreakingSpace",d[d.enQuad=8192]="enQuad",d[d.emQuad=8193]="emQuad",d[d.enSpace=8194]="enSpace",d[d.emSpace=8195]="emSpace",d[d.threePerEmSpace=8196]="threePerEmSpace",d[d.fourPerEmSpace=8197]="fourPerEmSpace",d[d.sixPerEmSpace=8198]="sixPerEmSpace",d[d.figureSpace=8199]="figureSpace",d[d.punctuationSpace=8200]="punctuationSpace",d[d.thinSpace=8201]="thinSpace",d[d.hairSpace=8202]="hairSpace",d[d.zeroWidthSpace=8203]="zeroWidthSpace",d[d.narrowNoBreakSpace=8239]="narrowNoBreakSpace",d[d.ideographicSpace=12288]="ideographicSpace",d[d.mathematicalSpace=8287]="mathematicalSpace",d[d.ogham=5760]="ogham",d[d._=95]="_",d[d.$=36]="$",d[d._0=48]="_0",d[d._1=49]="_1",d[d._2=50]="_2",d[d._3=51]="_3",d[d._4=52]="_4",d[d._5=53]="_5",d[d._6=54]="_6",d[d._7=55]="_7",d[d._8=56]="_8",d[d._9=57]="_9",d[d.a=97]="a",d[d.b=98]="b",d[d.c=99]="c",d[d.d=100]="d",d[d.e=101]="e",d[d.f=102]="f",d[d.g=103]="g",d[d.h=104]="h",d[d.i=105]="i",d[d.j=106]="j",d[d.k=107]="k",d[d.l=108]="l",d[d.m=109]="m",d[d.n=110]="n",d[d.o=111]="o",d[d.p=112]="p",d[d.q=113]="q",d[d.r=114]="r",d[d.s=115]="s",d[d.t=116]="t",d[d.u=117]="u",d[d.v=118]="v",d[d.w=119]="w",d[d.x=120]="x",d[d.y=121]="y",d[d.z=122]="z",d[d.A=65]="A",d[d.B=66]="B",d[d.C=67]="C",d[d.D=68]="D",d[d.E=69]="E",d[d.F=70]="F",d[d.G=71]="G",d[d.H=72]="H",d[d.I=73]="I",d[d.J=74]="J",d[d.K=75]="K",d[d.L=76]="L",d[d.M=77]="M",d[d.N=78]="N",d[d.O=79]="O",d[d.P=80]="P",d[d.Q=81]="Q",d[d.R=82]="R",d[d.S=83]="S",d[d.T=84]="T",d[d.U=85]="U",d[d.V=86]="V",d[d.W=87]="W",d[d.X=88]="X",d[d.Y=89]="Y",d[d.Z=90]="Z",d[d.ampersand=38]="ampersand",d[d.asterisk=42]="asterisk",d[d.at=64]="at",d[d.backslash=92]="backslash",d[d.backtick=96]="backtick",d[d.bar=124]="bar",d[d.caret=94]="caret",d[d.closeBrace=125]="closeBrace",d[d.closeBracket=93]="closeBracket",d[d.closeParen=41]="closeParen",d[d.colon=58]="colon",d[d.comma=44]="comma",d[d.dot=46]="dot",d[d.doubleQuote=34]="doubleQuote",d[d.equals=61]="equals",d[d.exclamation=33]="exclamation",d[d.greaterThan=62]="greaterThan",d[d.hash=35]="hash",d[d.lessThan=60]="lessThan",d[d.minus=45]="minus",d[d.openBrace=123]="openBrace",d[d.openBracket=91]="openBracket",d[d.openParen=40]="openParen",d[d.percent=37]="percent",d[d.plus=43]="plus",d[d.question=63]="question",d[d.semicolon=59]="semicolon",d[d.singleQuote=39]="singleQuote",d[d.slash=47]="slash",d[d.tilde=126]="tilde",d[d.backspace=8]="backspace",d[d.formFeed=12]="formFeed",d[d.byteOrderMark=65279]="byteOrderMark",d[d.tab=9]="tab",d[d.verticalTab=11]="verticalTab",(_=e.Extension||(e.Extension={})).Ts=".ts",_.Tsx=".tsx",_.Dts=".d.ts",_.Js=".js",_.Jsx=".jsx",_.Json=".json",_.TsBuildInfo=".tsbuildinfo",(l=e.TransformFlags||(e.TransformFlags={}))[l.None=0]="None",l[l.ContainsTypeScript=1]="ContainsTypeScript",l[l.ContainsJsx=2]="ContainsJsx",l[l.ContainsESNext=4]="ContainsESNext",l[l.ContainsES2020=8]="ContainsES2020",l[l.ContainsES2019=16]="ContainsES2019",l[l.ContainsES2018=32]="ContainsES2018",l[l.ContainsES2017=64]="ContainsES2017",l[l.ContainsES2016=128]="ContainsES2016",l[l.ContainsES2015=256]="ContainsES2015",l[l.ContainsGenerator=512]="ContainsGenerator",l[l.ContainsDestructuringAssignment=1024]="ContainsDestructuringAssignment",l[l.ContainsTypeScriptClassSyntax=2048]="ContainsTypeScriptClassSyntax",l[l.ContainsLexicalThis=4096]="ContainsLexicalThis",l[l.ContainsRestOrSpread=8192]="ContainsRestOrSpread",l[l.ContainsObjectRestOrSpread=16384]="ContainsObjectRestOrSpread",l[l.ContainsComputedPropertyName=32768]="ContainsComputedPropertyName",l[l.ContainsBlockScopedBinding=65536]="ContainsBlockScopedBinding",l[l.ContainsBindingPattern=131072]="ContainsBindingPattern",l[l.ContainsYield=262144]="ContainsYield",l[l.ContainsAwait=524288]="ContainsAwait",l[l.ContainsHoistedDeclarationOrCompletion=1048576]="ContainsHoistedDeclarationOrCompletion",l[l.ContainsDynamicImport=2097152]="ContainsDynamicImport",l[l.ContainsClassFields=4194304]="ContainsClassFields",l[l.ContainsPossibleTopLevelAwait=8388608]="ContainsPossibleTopLevelAwait",l[l.HasComputedFlags=536870912]="HasComputedFlags",l[l.AssertTypeScript=1]="AssertTypeScript",l[l.AssertJsx=2]="AssertJsx",l[l.AssertESNext=4]="AssertESNext",l[l.AssertES2020=8]="AssertES2020",l[l.AssertES2019=16]="AssertES2019",l[l.AssertES2018=32]="AssertES2018",l[l.AssertES2017=64]="AssertES2017",l[l.AssertES2016=128]="AssertES2016",l[l.AssertES2015=256]="AssertES2015",l[l.AssertGenerator=512]="AssertGenerator",l[l.AssertDestructuringAssignment=1024]="AssertDestructuringAssignment",l[l.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",l[l.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",l[l.NodeExcludes=536870912]="NodeExcludes",l[l.ArrowFunctionExcludes=547309568]="ArrowFunctionExcludes",l[l.FunctionExcludes=547313664]="FunctionExcludes",l[l.ConstructorExcludes=547311616]="ConstructorExcludes",l[l.MethodOrAccessorExcludes=538923008]="MethodOrAccessorExcludes",l[l.PropertyExcludes=536875008]="PropertyExcludes",l[l.ClassExcludes=536905728]="ClassExcludes",l[l.ModuleExcludes=546379776]="ModuleExcludes",l[l.TypeExcludes=-2]="TypeExcludes",l[l.ObjectLiteralExcludes=536922112]="ObjectLiteralExcludes",l[l.ArrayLiteralOrCallOrNewExcludes=536879104]="ArrayLiteralOrCallOrNewExcludes",l[l.VariableDeclarationListExcludes=537018368]="VariableDeclarationListExcludes",l[l.ParameterExcludes=536870912]="ParameterExcludes",l[l.CatchClauseExcludes=536887296]="CatchClauseExcludes",l[l.BindingPatternExcludes=536879104]="BindingPatternExcludes",l[l.PropertyNamePropagatingFlags=4096]="PropertyNamePropagatingFlags",(u=e.EmitFlags||(e.EmitFlags={}))[u.None=0]="None",u[u.SingleLine=1]="SingleLine",u[u.AdviseOnEmitNode=2]="AdviseOnEmitNode",u[u.NoSubstitution=4]="NoSubstitution",u[u.CapturesThis=8]="CapturesThis",u[u.NoLeadingSourceMap=16]="NoLeadingSourceMap",u[u.NoTrailingSourceMap=32]="NoTrailingSourceMap",u[u.NoSourceMap=48]="NoSourceMap",u[u.NoNestedSourceMaps=64]="NoNestedSourceMaps",u[u.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",u[u.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",u[u.NoTokenSourceMaps=384]="NoTokenSourceMaps",u[u.NoLeadingComments=512]="NoLeadingComments",u[u.NoTrailingComments=1024]="NoTrailingComments",u[u.NoComments=1536]="NoComments",u[u.NoNestedComments=2048]="NoNestedComments",u[u.HelperName=4096]="HelperName",u[u.ExportName=8192]="ExportName",u[u.LocalName=16384]="LocalName",u[u.InternalName=32768]="InternalName",u[u.Indented=65536]="Indented",u[u.NoIndentation=131072]="NoIndentation",u[u.AsyncFunctionBody=262144]="AsyncFunctionBody",u[u.ReuseTempVariableScope=524288]="ReuseTempVariableScope",u[u.CustomPrologue=1048576]="CustomPrologue",u[u.NoHoisting=2097152]="NoHoisting",u[u.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",u[u.Iterator=8388608]="Iterator",u[u.NoAsciiEscaping=16777216]="NoAsciiEscaping",u[u.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",u[u.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",u[u.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",(c=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[c.Extends=1]="Extends",c[c.Assign=2]="Assign",c[c.Rest=4]="Rest",c[c.Decorate=8]="Decorate",c[c.Metadata=16]="Metadata",c[c.Param=32]="Param",c[c.Awaiter=64]="Awaiter",c[c.Generator=128]="Generator",c[c.Values=256]="Values",c[c.Read=512]="Read",c[c.Spread=1024]="Spread",c[c.SpreadArrays=2048]="SpreadArrays",c[c.Await=4096]="Await",c[c.AsyncGenerator=8192]="AsyncGenerator",c[c.AsyncDelegator=16384]="AsyncDelegator",c[c.AsyncValues=32768]="AsyncValues",c[c.ExportStar=65536]="ExportStar",c[c.ImportStar=131072]="ImportStar",c[c.ImportDefault=262144]="ImportDefault",c[c.MakeTemplateObject=524288]="MakeTemplateObject",c[c.ClassPrivateFieldGet=1048576]="ClassPrivateFieldGet",c[c.ClassPrivateFieldSet=2097152]="ClassPrivateFieldSet",c[c.CreateBinding=4194304]="CreateBinding",c[c.FirstEmitHelper=1]="FirstEmitHelper",c[c.LastEmitHelper=4194304]="LastEmitHelper",c[c.ForOfIncludes=256]="ForOfIncludes",c[c.ForAwaitOfIncludes=32768]="ForAwaitOfIncludes",c[c.AsyncGeneratorIncludes=12288]="AsyncGeneratorIncludes",c[c.AsyncDelegatorIncludes=53248]="AsyncDelegatorIncludes",c[c.SpreadIncludes=1536]="SpreadIncludes",(s=e.EmitHint||(e.EmitHint={}))[s.SourceFile=0]="SourceFile",s[s.Expression=1]="Expression",s[s.IdentifierName=2]="IdentifierName",s[s.MappedTypeParameter=3]="MappedTypeParameter",s[s.Unspecified=4]="Unspecified",s[s.EmbeddedStatement=5]="EmbeddedStatement",s[s.JsxAttributeValue=6]="JsxAttributeValue",(o=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[o.Parentheses=1]="Parentheses",o[o.TypeAssertions=2]="TypeAssertions",o[o.NonNullAssertions=4]="NonNullAssertions",o[o.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",o[o.Assertions=6]="Assertions",o[o.All=15]="All",(a=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[a.None=0]="None",a[a.InParameters=1]="InParameters",a[a.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(i=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",i.EmitHelpers="emitHelpers",i.NoDefaultLib="no-default-lib",i.Reference="reference",i.Type="type",i.Lib="lib",i.Prepend="prepend",i.Text="text",i.Internal="internal",(n=e.ListFormat||(e.ListFormat={}))[n.None=0]="None",n[n.SingleLine=0]="SingleLine",n[n.MultiLine=1]="MultiLine",n[n.PreserveLines=2]="PreserveLines",n[n.LinesMask=3]="LinesMask",n[n.NotDelimited=0]="NotDelimited",n[n.BarDelimited=4]="BarDelimited",n[n.AmpersandDelimited=8]="AmpersandDelimited",n[n.CommaDelimited=16]="CommaDelimited",n[n.AsteriskDelimited=32]="AsteriskDelimited",n[n.DelimitersMask=60]="DelimitersMask",n[n.AllowTrailingComma=64]="AllowTrailingComma",n[n.Indented=128]="Indented",n[n.SpaceBetweenBraces=256]="SpaceBetweenBraces",n[n.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",n[n.Braces=1024]="Braces",n[n.Parenthesis=2048]="Parenthesis",n[n.AngleBrackets=4096]="AngleBrackets",n[n.SquareBrackets=8192]="SquareBrackets",n[n.BracketsMask=15360]="BracketsMask",n[n.OptionalIfUndefined=16384]="OptionalIfUndefined",n[n.OptionalIfEmpty=32768]="OptionalIfEmpty",n[n.Optional=49152]="Optional",n[n.PreferNewLine=65536]="PreferNewLine",n[n.NoTrailingNewLine=131072]="NoTrailingNewLine",n[n.NoInterveningComments=262144]="NoInterveningComments",n[n.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",n[n.SingleElement=1048576]="SingleElement",n[n.SpaceAfterList=2097152]="SpaceAfterList",n[n.Modifiers=262656]="Modifiers",n[n.HeritageClauses=512]="HeritageClauses",n[n.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",n[n.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",n[n.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",n[n.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",n[n.UnionTypeConstituents=516]="UnionTypeConstituents",n[n.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",n[n.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",n[n.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",n[n.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",n[n.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",n[n.CommaListElements=528]="CommaListElements",n[n.CallExpressionArguments=2576]="CallExpressionArguments",n[n.NewExpressionArguments=18960]="NewExpressionArguments",n[n.TemplateExpressionSpans=262144]="TemplateExpressionSpans",n[n.SingleLineBlockStatements=768]="SingleLineBlockStatements",n[n.MultiLineBlockStatements=129]="MultiLineBlockStatements",n[n.VariableDeclarationList=528]="VariableDeclarationList",n[n.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",n[n.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",n[n.ClassHeritageClauses=0]="ClassHeritageClauses",n[n.ClassMembers=129]="ClassMembers",n[n.InterfaceMembers=129]="InterfaceMembers",n[n.EnumMembers=145]="EnumMembers",n[n.CaseBlockClauses=129]="CaseBlockClauses",n[n.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",n[n.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",n[n.JsxElementAttributes=262656]="JsxElementAttributes",n[n.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",n[n.HeritageClauseTypes=528]="HeritageClauseTypes",n[n.SourceFileStatements=131073]="SourceFileStatements",n[n.Decorators=2146305]="Decorators",n[n.TypeArguments=53776]="TypeArguments",n[n.TypeParameters=53776]="TypeParameters",n[n.Parameters=2576]="Parameters",n[n.IndexSignatureParameters=8848]="IndexSignatureParameters",n[n.JSDocComment=33]="JSDocComment",(r=e.PragmaKindFlags||(e.PragmaKindFlags={}))[r.None=0]="None",r[r.TripleSlashXML=1]="TripleSlashXML",r[r.SingleLine=2]="SingleLine",r[r.MultiLine=4]="MultiLine",r[r.All=7]="All",r[r.Default=7]="Default",e.commentPragmas={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}],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}}}(l||(l={})),function(e){function t(e){for(var t=5381,r=0;r0;++a===t.length&&(c=4,g="linux"===process.platform||"darwin"===process.platform,m=u.platform(),y="win32"!==m&&"win64"!==m&&!N((l=__filename,l.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t}))),b=f&&("win32"===process.platform||"darwin"===process.platform),D=v({pollingWatchFile:p(function(e,t,r){var i;return s.watchFile(e,{persistent:!0,interval:r},a),{close:function(){return s.unwatchFile(e,a)}};function a(r,a){var o=0==+a.mtime||i===n.Deleted;if(0==+r.mtime){if(o)return;i=n.Deleted}else if(o)i=n.Created;else{if(+r.mtime==+a.mtime)return;i=n.Changed}t(e,i)}},y),getModifiedTime:F,setTimeout,clearTimeout,fsWatch:function(t,r,i,a,o,c){var u,l,_;g&&(l=t.substr(t.lastIndexOf(e.directorySeparator)),_=l.slice(e.directorySeparator.length));var d=A(t,r)?f():y();return{close:function(){d.close(),d=void 0}};function p(r){e.sysLog("sysLog:: "+t+":: Changing watcher to "+(r===f?"Present":"Missing")+"FileSystemEntryWatcher"),i("rename",""),d&&(d.close(),d=r())}function f(){void 0===u&&(u=b?{persistent:!0,recursive:!!a}:{persistent:!0});try{var r=s.watch(t,u,g?m:i);return r.on("error",function(){return p(y)}),r}catch(n){return e.sysLog("sysLog:: "+t+":: Changing to fsWatchFile"),S(t,h(i),o,c)}}function m(e,n){return"rename"!==e||n&&n!==_&&n.lastIndexOf(l)!==n.length-l.length||A(t,r)?i(e,n):p(y)}function y(){return S(t,function(e,i){i===n.Created&&A(t,r)&&p(f)},o,c)}},useCaseSensitiveFileNames:y,fileExists:N,fsSupportsRecursiveFsWatch:b,directoryExists:P,getAccessibleSortedChildDirectories:function(e){return w(e).directories},realpath:O,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY}),S=D.watchFile,E=D.watchDirectory,C={args:process.argv.slice(2),newLine:u.EOL,useCaseSensitiveFileNames:y,write:function(e){process.stdout.write(e)},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:function(t,r){e.perfLogger.logStartReadFile(t);var n=function(e,t){var r;try{r=s.readFileSync(e)}catch(o){return}var n=r.length;if(n>=2&&254===r[0]&&255===r[1]){n&=-2;for(var i=0;i=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):n>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}(t);return e.perfLogger.logStopReadFile(),n},writeFile:function(t,r,n){var i;e.perfLogger.logEvent("WriteFile: "+t),n&&(r="\ufeff"+r);try{i=s.openSync(t,"w"),s.writeSync(i,r,void 0,"utf8")}finally{void 0!==i&&s.closeSync(i)}},watchFile:S,watchDirectory:E,resolvePath:function(e){return c.resolve(e)},fileExists:N,directoryExists:P,createDirectory:function(e){if(!C.directoryExists(e))try{s.mkdirSync(e)}catch(t){if("EEXIST"!==t.code)throw t}},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:function(e){return w(e).directories.slice()},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(t,r,n,i,a){return e.matchFiles(t,r,n,i,y,process.cwd(),a,w,O)},getModifiedTime:F,setModifiedTime:function(e,t){try{s.utimesSync(e,t,t)}catch(r){return}},deleteFile:function(e){try{return s.unlinkSync(e)}catch(t){return}},createHash:i?I:t,createSHA256Hash:i?I:void 0,getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=s.statSync(e);if(t.isFile())return t.size}catch(M){}return 0},exit:function(e){T(function(){return process.exit(e)})},enableCPUProfiler:function(e,t){if(a)return t(),!1;var n=r(7);if(!n||!n.Session)return t(),!1;var i=new n.Session;return i.connect(),i.post("Profiler.enable",function(){i.post("Profiler.start",function(){a=i,_=e,t()})}),!0},disableCPUProfiler:T,realpath:O,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||e.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{r(6).install()}catch(M){}},setTimeout,clearTimeout,clearScreen:function(){process.stdout.write("\x1bc")},setBlocking:function(){process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:k,base64decode:function(e){return k(e,"base64").toString("utf8")},base64encode:function(e){return k(e).toString("base64")},require:function(t,n){try{var i=e.resolveJSModule(n,t,C);return{module:r("izN1")(i),modulePath:i,error:void 0}}catch(a){return{module:void 0,modulePath:void 0,error:a}}}};return C;function T(t){if(a&&"stopping"!==a){var r=a;return a.post("Profiler.stop",function(n,i){var u=i.profile;if(!n){try{s.statSync(_).isDirectory()&&(_=c.join(_,(new Date).toISOString().replace(/:/g,"-")+"+P"+process.pid+".cpuprofile"))}catch(D){}try{s.mkdirSync(c.dirname(_),{recursive:!0})}catch(l){}s.writeFileSync(_,JSON.stringify(function(t){for(var r=0,n=new e.Map,i=e.normalizeSlashes(__dirname),a="file://"+(1===e.getRootLength(i)?"":"/")+i,s=0,c=t.nodes;s0}function a(e){return 0!==l(e)}function o(e){return/^\.\.?($|[\\/])/.test(e)}function s(t,r){return t.length>r.length&&e.endsWith(t,r)}function c(e){return e.length>0&&r(e.charCodeAt(e.length-1))}function u(e){return e>=97&&e<=122||e>=65&&e<=90}function l(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:"\\",2);return n<0?t.length:n+1}if(u(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf("://");if(-1!==a){var o=a+"://".length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var c=t.slice(0,a),l=t.slice(o,s);if("file"===c&&(""===l||"localhost"===l)&&u(t.charCodeAt(s+1))){var _=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(t,s+2);if(-1!==_){if(47===t.charCodeAt(_))return~(_+1);if(_===t.length)return~_}}return~(s+1)}return~t.length}return 0}function _(e){var t=l(e);return t<0?~t:t}function d(t){var r=_(t=y(t));return r===t.length?t:(t=C(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function p(t,r,n){if(_(t=y(t))===t.length)return"";var i=(t=C(t)).slice(Math.max(_(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?g(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function f(t,r,n){if(e.startsWith(r,".")||(r="."+r),t.length>=r.length&&46===t.charCodeAt(t.length-r.length)){var i=t.slice(t.length-r.length);if(n(i,r))return i}}function g(t,r,n){if(r)return function(e,t,r){if("string"==typeof t)return f(e,t,r)||"";for(var n=0,i=t;n=0?i.substring(a):""}function m(t,r){return void 0===r&&(r=""),function(t,r){var n=t.substring(0,r),a=t.substring(r).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),i([n],a)}(t=b(r,t),_(t))}function h(t){return 0===t.length?"":(t[0]&&T(t[0]))+t.slice(1).join(e.directorySeparator)}function y(r){return r.replace(t,e.directorySeparator)}function v(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function b(e){for(var t=[],r=1;r0&&t===e.length},e.pathIsAbsolute=a,e.pathIsRelative=o,e.hasExtension=function(t){return e.stringContains(p(t),".")},e.fileExtensionIs=s,e.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r0==_(r)>0,"Paths must either both be absolute or both be relative"),h(N(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,"function"==typeof n?n:e.identity))}function O(t,r,i,a,o){var s=N(x(i,t),x(i,r),e.equateStringsCaseSensitive,a),c=s[0];if(o&&n(c)){var u=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=u+c}return h(s)}e.comparePathsCaseSensitive=function(t,r){return A(t,r,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,r){return A(t,r,e.compareStringsCaseInsensitive)},e.comparePaths=function(t,r,n,i){return"string"==typeof n?(t=b(n,t),r=b(n,r)):"boolean"==typeof n&&(i=n),A(t,r,e.getStringComparer(i))},e.containsPath=function(t,r,n,i){if("string"==typeof n?(t=b(n,t),r=b(n,r)):"boolean"==typeof n&&(i=n),void 0===t||void 0===r)return!1;if(t===r)return!0;var a=v(m(t)),o=v(m(r));if(o.length type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"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:t(1068,e.DiagnosticCategory.Error,"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:t(1069,e.DiagnosticCategory.Error,"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:t(1070,e.DiagnosticCategory.Error,"_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:t(1071,e.DiagnosticCategory.Error,"_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:t(1079,e.DiagnosticCategory.Error,"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:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_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:t(1091,e.DiagnosticCategory.Error,"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:t(1092,e.DiagnosticCategory.Error,"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:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"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:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"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:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"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:t(1105,e.DiagnosticCategory.Error,"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."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"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:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"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:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"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:t(1116,e.DiagnosticCategory.Error,"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_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"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:t(1119,e.DiagnosticCategory.Error,"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:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"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:t(1148,e.DiagnosticCategory.Error,"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:t(1149,e.DiagnosticCategory.Error,"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."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"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:t(1163,e.DiagnosticCategory.Error,"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:t(1164,e.DiagnosticCategory.Error,"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:t(1165,e.DiagnosticCategory.Error,"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_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a 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:t(1168,e.DiagnosticCategory.Error,"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:t(1169,e.DiagnosticCategory.Error,"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:t(1170,e.DiagnosticCategory.Error,"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:t(1171,e.DiagnosticCategory.Error,"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:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"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:t(1187,e.DiagnosticCategory.Error,"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:t(1188,e.DiagnosticCategory.Error,"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:t(1189,e.DiagnosticCategory.Error,"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:t(1190,e.DiagnosticCategory.Error,"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:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"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:t(1195,e.DiagnosticCategory.Error,"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:t(1196,e.DiagnosticCategory.Error,"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:t(1197,e.DiagnosticCategory.Error,"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:t(1198,e.DiagnosticCategory.Error,"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:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"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:t(1202,e.DiagnosticCategory.Error,"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:t(1203,e.DiagnosticCategory.Error,"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_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"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."),All_files_must_be_modules_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"All_files_must_be_modules_when_the_isolatedModules_flag_is_provided_1208","All files must be modules when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"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:t(1212,e.DiagnosticCategory.Error,"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:t(1213,e.DiagnosticCategory.Error,"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:t(1214,e.DiagnosticCategory.Error,"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:t(1215,e.DiagnosticCategory.Error,"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:t(1216,e.DiagnosticCategory.Error,"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:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"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:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"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:t(1227,e.DiagnosticCategory.Error,"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:t(1228,e.DiagnosticCategory.Error,"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:t(1229,e.DiagnosticCategory.Error,"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:t(1230,e.DiagnosticCategory.Error,"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_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"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_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"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:t(1237,e.DiagnosticCategory.Error,"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:t(1238,e.DiagnosticCategory.Error,"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:t(1239,e.DiagnosticCategory.Error,"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:t(1240,e.DiagnosticCategory.Error,"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:t(1241,e.DiagnosticCategory.Error,"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:t(1242,e.DiagnosticCategory.Error,"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:t(1243,e.DiagnosticCategory.Error,"_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:t(1244,e.DiagnosticCategory.Error,"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:t(1245,e.DiagnosticCategory.Error,"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:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"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:t(1248,e.DiagnosticCategory.Error,"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:t(1249,e.DiagnosticCategory.Error,"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:t(1250,e.DiagnosticCategory.Error,"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:t(1251,e.DiagnosticCategory.Error,"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:t(1252,e.DiagnosticCategory.Error,"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."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"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:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_rest_element_must_be_last_in_a_tuple_type:t(1256,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_tuple_type_1256","A rest element must be last in a tuple type."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation:t(1258,e.DiagnosticCategory.Error,"Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation_1258","Definite assignment assertions can only be used along with a type annotation."),Module_0_can_only_be_default_imported_using_the_1_flag:t(1259,e.DiagnosticCategory.Error,"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:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"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:t(1262,e.DiagnosticCategory.Error,"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."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"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:t(1308,e.DiagnosticCategory.Error,"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."),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:t(1312,e.DiagnosticCategory.Error,"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:t(1313,e.DiagnosticCategory.Error,"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:t(1314,e.DiagnosticCategory.Error,"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:t(1315,e.DiagnosticCategory.Error,"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:t(1316,e.DiagnosticCategory.Error,"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:t(1317,e.DiagnosticCategory.Error,"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:t(1318,e.DiagnosticCategory.Error,"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:t(1319,e.DiagnosticCategory.Error,"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:t(1320,e.DiagnosticCategory.Error,"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:t(1321,e.DiagnosticCategory.Error,"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:t(1322,e.DiagnosticCategory.Error,"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_esnext_commonjs_amd_system_or_umd:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"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:t(1328,e.DiagnosticCategory.Error,"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:t(1329,e.DiagnosticCategory.Error,"_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:t(1330,e.DiagnosticCategory.Error,"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:t(1331,e.DiagnosticCategory.Error,"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:t(1332,e.DiagnosticCategory.Error,"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:t(1333,e.DiagnosticCategory.Error,"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:t(1334,e.DiagnosticCategory.Error,"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:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:t(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"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:t(1339,e.DiagnosticCategory.Error,"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:t(1340,e.DiagnosticCategory.Error,"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}')'?"),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'esnext' or 'system'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"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:t(1346,e.DiagnosticCategory.Error,"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:t(1347,e.DiagnosticCategory.Error,"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:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"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:t(1351,e.DiagnosticCategory.Error,"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:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"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:t(1354,e.DiagnosticCategory.Error,"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:t(1355,e.DiagnosticCategory.Error,"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:t(1356,e.DiagnosticCategory.Error,"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:t(1357,e.DiagnosticCategory.Error,"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:t(1358,e.DiagnosticCategory.Error,"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:t(1359,e.DiagnosticCategory.Error,"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."),Did_you_mean_to_parenthesize_this_function_type:t(1360,e.DiagnosticCategory.Error,"Did_you_mean_to_parenthesize_this_function_type_1360","Did you mean to parenthesize this function type?"),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_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:t(1362,e.DiagnosticCategory.Error,"_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:t(1363,e.DiagnosticCategory.Error,"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:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"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:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(1368,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_1368","Specify emit/checking behavior for imports that are only used for types"),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),Only_ECMAScript_imports_may_use_import_type:t(1370,e.DiagnosticCategory.Error,"Only_ECMAScript_imports_may_use_import_type_1370","Only ECMAScript imports may use 'import type'."),This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is__1371","This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),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:t(1375,e.DiagnosticCategory.Error,"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:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_t_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"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:t(1380,e.DiagnosticCategory.Error,"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:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:t(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"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:t(1386,e.DiagnosticCategory.Error,"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:t(1387,e.DiagnosticCategory.Error,"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:t(1388,e.DiagnosticCategory.Error,"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."),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"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:t(2201,e.DiagnosticCategory.Error,"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:t(2202,e.DiagnosticCategory.Error,"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:t(2203,e.DiagnosticCategory.Error,"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:t(2204,e.DiagnosticCategory.Error,"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:t(2205,e.DiagnosticCategory.Error,"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),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"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:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"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:t(2308,e.DiagnosticCategory.Error,"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:t(2309,e.DiagnosticCategory.Error,"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:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"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:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"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:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"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:t(2320,e.DiagnosticCategory.Error,"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:t(2321,e.DiagnosticCategory.Error,"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:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"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:t(2325,e.DiagnosticCategory.Error,"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:t(2326,e.DiagnosticCategory.Error,"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:t(2327,e.DiagnosticCategory.Error,"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:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"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:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"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:t(2335,e.DiagnosticCategory.Error,"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:t(2336,e.DiagnosticCategory.Error,"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:t(2337,e.DiagnosticCategory.Error,"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:t(2338,e.DiagnosticCategory.Error,"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:t(2339,e.DiagnosticCategory.Error,"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:t(2340,e.DiagnosticCategory.Error,"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:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"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:t(2344,e.DiagnosticCategory.Error,"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:t(2345,e.DiagnosticCategory.Error,"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}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"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:t(2348,e.DiagnosticCategory.Error,"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:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"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:t(2351,e.DiagnosticCategory.Error,"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:t(2352,e.DiagnosticCategory.Error,"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:t(2353,e.DiagnosticCategory.Error,"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:t(2354,e.DiagnosticCategory.Error,"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_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"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:t(2357,e.DiagnosticCategory.Error,"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:t(2358,e.DiagnosticCategory.Error,"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_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"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:t(2363,e.DiagnosticCategory.Error,"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:t(2364,e.DiagnosticCategory.Error,"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:t(2365,e.DiagnosticCategory.Error,"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:t(2366,e.DiagnosticCategory.Error,"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_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"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:t(2370,e.DiagnosticCategory.Error,"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:t(2371,e.DiagnosticCategory.Error,"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:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"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:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"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:t(2384,e.DiagnosticCategory.Error,"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:t(2385,e.DiagnosticCategory.Error,"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:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"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:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"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:t(2395,e.DiagnosticCategory.Error,"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:t(2396,e.DiagnosticCategory.Error,"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:t(2397,e.DiagnosticCategory.Error,"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:t(2398,e.DiagnosticCategory.Error,"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:t(2399,e.DiagnosticCategory.Error,"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:t(2400,e.DiagnosticCategory.Error,"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."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"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:t(2403,e.DiagnosticCategory.Error,"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:t(2404,e.DiagnosticCategory.Error,"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:t(2405,e.DiagnosticCategory.Error,"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:t(2406,e.DiagnosticCategory.Error,"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:t(2407,e.DiagnosticCategory.Error,"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:t(2408,e.DiagnosticCategory.Error,"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:t(2409,e.DiagnosticCategory.Error,"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:t(2410,e.DiagnosticCategory.Error,"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'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"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:t(2416,e.DiagnosticCategory.Error,"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:t(2417,e.DiagnosticCategory.Error,"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:t(2418,e.DiagnosticCategory.Error,"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}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"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:t(2422,e.DiagnosticCategory.Error,"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:t(2423,e.DiagnosticCategory.Error,"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:t(2425,e.DiagnosticCategory.Error,"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:t(2426,e.DiagnosticCategory.Error,"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:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"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:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"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:t(2432,e.DiagnosticCategory.Error,"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:t(2433,e.DiagnosticCategory.Error,"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:t(2434,e.DiagnosticCategory.Error,"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:t(2435,e.DiagnosticCategory.Error,"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:t(2436,e.DiagnosticCategory.Error,"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:t(2437,e.DiagnosticCategory.Error,"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:t(2438,e.DiagnosticCategory.Error,"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:t(2439,e.DiagnosticCategory.Error,"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:t(2440,e.DiagnosticCategory.Error,"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:t(2441,e.DiagnosticCategory.Error,"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:t(2442,e.DiagnosticCategory.Error,"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:t(2443,e.DiagnosticCategory.Error,"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:t(2444,e.DiagnosticCategory.Error,"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:t(2445,e.DiagnosticCategory.Error,"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:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"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:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"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:t(2459,e.DiagnosticCategory.Error,"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:t(2460,e.DiagnosticCategory.Error,"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:t(2461,e.DiagnosticCategory.Error,"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:t(2462,e.DiagnosticCategory.Error,"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:t(2463,e.DiagnosticCategory.Error,"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:t(2464,e.DiagnosticCategory.Error,"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:t(2465,e.DiagnosticCategory.Error,"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:t(2466,e.DiagnosticCategory.Error,"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:t(2467,e.DiagnosticCategory.Error,"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:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"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:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),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:t(2475,e.DiagnosticCategory.Error,"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:t(2476,e.DiagnosticCategory.Error,"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:t(2477,e.DiagnosticCategory.Error,"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:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"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:t(2481,e.DiagnosticCategory.Error,"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:t(2483,e.DiagnosticCategory.Error,"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:t(2484,e.DiagnosticCategory.Error,"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:t(2487,e.DiagnosticCategory.Error,"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:t(2488,e.DiagnosticCategory.Error,"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:t(2489,e.DiagnosticCategory.Error,"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:t(2490,e.DiagnosticCategory.Error,"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:t(2491,e.DiagnosticCategory.Error,"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:t(2492,e.DiagnosticCategory.Error,"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:t(2493,e.DiagnosticCategory.Error,"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:t(2494,e.DiagnosticCategory.Error,"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:t(2495,e.DiagnosticCategory.Error,"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:t(2496,e.DiagnosticCategory.Error,"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:t(2497,e.DiagnosticCategory.Error,"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:t(2498,e.DiagnosticCategory.Error,"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:t(2499,e.DiagnosticCategory.Error,"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:t(2500,e.DiagnosticCategory.Error,"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:t(2501,e.DiagnosticCategory.Error,"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:t(2502,e.DiagnosticCategory.Error,"_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:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"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:t(2505,e.DiagnosticCategory.Error,"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:t(2506,e.DiagnosticCategory.Error,"_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:t(2507,e.DiagnosticCategory.Error,"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:t(2508,e.DiagnosticCategory.Error,"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:t(2509,e.DiagnosticCategory.Error,"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:t(2510,e.DiagnosticCategory.Error,"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:t(2511,e.DiagnosticCategory.Error,"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:t(2512,e.DiagnosticCategory.Error,"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:t(2513,e.DiagnosticCategory.Error,"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."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"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:t(2516,e.DiagnosticCategory.Error,"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:t(2517,e.DiagnosticCategory.Error,"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:t(2518,e.DiagnosticCategory.Error,"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:t(2519,e.DiagnosticCategory.Error,"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:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses 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:t(2522,e.DiagnosticCategory.Error,"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:t(2523,e.DiagnosticCategory.Error,"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:t(2524,e.DiagnosticCategory.Error,"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:t(2525,e.DiagnosticCategory.Error,"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:t(2526,e.DiagnosticCategory.Error,"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:t(2527,e.DiagnosticCategory.Error,"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:t(2528,e.DiagnosticCategory.Error,"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:t(2529,e.DiagnosticCategory.Error,"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:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"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:t(2537,e.DiagnosticCategory.Error,"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:t(2538,e.DiagnosticCategory.Error,"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:t(2539,e.DiagnosticCategory.Error,"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:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"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:t(2543,e.DiagnosticCategory.Error,"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:t(2544,e.DiagnosticCategory.Error,"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:t(2545,e.DiagnosticCategory.Error,"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:t(2547,e.DiagnosticCategory.Error,"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:t(2548,e.DiagnosticCategory.Error,"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:t(2549,e.DiagnosticCategory.Error,"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_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"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:t(2552,e.DiagnosticCategory.Error,"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:t(2553,e.DiagnosticCategory.Error,"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:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"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:t(2559,e.DiagnosticCategory.Error,"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:t(2560,e.DiagnosticCategory.Error,"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:t(2561,e.DiagnosticCategory.Error,"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:t(2562,e.DiagnosticCategory.Error,"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:t(2563,e.DiagnosticCategory.Error,"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:t(2564,e.DiagnosticCategory.Error,"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:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"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:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:t(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:t(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"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:t(2575,e.DiagnosticCategory.Error,"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_is_a_static_member_of_type_1:t(2576,e.DiagnosticCategory.Error,"Property_0_is_a_static_member_of_type_1_2576","Property '{0}' is a static member of type '{1}'"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"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_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2583,e.DiagnosticCategory.Error,"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 es2015 or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"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:t(2585,e.DiagnosticCategory.Error,"_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."),Enum_type_0_circularly_references_itself:t(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:t(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"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:t(2589,e.DiagnosticCategory.Error,"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:t(2590,e.DiagnosticCategory.Error,"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_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_th_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @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_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_an_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @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_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using '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:t(2595,e.DiagnosticCategory.Error,"_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:t(2596,e.DiagnosticCategory.Error,"_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:t(2597,e.DiagnosticCategory.Error,"_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:t(2598,e.DiagnosticCategory.Error,"_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_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"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:t(2603,e.DiagnosticCategory.Error,"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:t(2604,e.DiagnosticCategory.Error,"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."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"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:t(2607,e.DiagnosticCategory.Error,"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:t(2608,e.DiagnosticCategory.Error,"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:t(2609,e.DiagnosticCategory.Error,"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:t(2610,e.DiagnosticCategory.Error,"_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:t(2611,e.DiagnosticCategory.Error,"_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:t(2612,e.DiagnosticCategory.Error,"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:t(2613,e.DiagnosticCategory.Error,"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:t(2614,e.DiagnosticCategory.Error,"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:t(2615,e.DiagnosticCategory.Error,"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:t(2616,e.DiagnosticCategory.Error,"_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:t(2617,e.DiagnosticCategory.Error,"_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:t(2618,e.DiagnosticCategory.Error,"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:t(2619,e.DiagnosticCategory.Error,"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:t(2620,e.DiagnosticCategory.Error,"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:t(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Element_at_index_0_is_variadic_in_one_type_but_not_in_the_other:t(2622,e.DiagnosticCategory.Error,"Element_at_index_0_is_variadic_in_one_type_but_not_in_the_other_2622","Element at index {0} is variadic in one type but not in the other."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"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:t(2651,e.DiagnosticCategory.Error,"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:t(2652,e.DiagnosticCategory.Error,"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:t(2653,e.DiagnosticCategory.Error,"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}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"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:t(2659,e.DiagnosticCategory.Error,"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:t(2660,e.DiagnosticCategory.Error,"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:t(2661,e.DiagnosticCategory.Error,"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:t(2662,e.DiagnosticCategory.Error,"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:t(2663,e.DiagnosticCategory.Error,"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:t(2664,e.DiagnosticCategory.Error,"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:t(2665,e.DiagnosticCategory.Error,"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:t(2666,e.DiagnosticCategory.Error,"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:t(2667,e.DiagnosticCategory.Error,"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:t(2668,e.DiagnosticCategory.Error,"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:t(2669,e.DiagnosticCategory.Error,"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:t(2670,e.DiagnosticCategory.Error,"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:t(2671,e.DiagnosticCategory.Error,"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:t(2672,e.DiagnosticCategory.Error,"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:t(2673,e.DiagnosticCategory.Error,"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:t(2674,e.DiagnosticCategory.Error,"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:t(2675,e.DiagnosticCategory.Error,"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:t(2676,e.DiagnosticCategory.Error,"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:t(2677,e.DiagnosticCategory.Error,"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:t(2678,e.DiagnosticCategory.Error,"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:t(2679,e.DiagnosticCategory.Error,"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:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"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:t(2684,e.DiagnosticCategory.Error,"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:t(2685,e.DiagnosticCategory.Error,"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:t(2686,e.DiagnosticCategory.Error,"_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:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_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:t(2693,e.DiagnosticCategory.Error,"_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:t(2694,e.DiagnosticCategory.Error,"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:t(2695,e.DiagnosticCategory.Error,"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:t(2696,e.DiagnosticCategory.Error,"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:t(2697,e.DiagnosticCategory.Error,"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:t(2698,e.DiagnosticCategory.Error,"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:t(2699,e.DiagnosticCategory.Error,"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:t(2700,e.DiagnosticCategory.Error,"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:t(2701,e.DiagnosticCategory.Error,"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:t(2702,e.DiagnosticCategory.Error,"_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:t(2703,e.DiagnosticCategory.Error,"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:t(2704,e.DiagnosticCategory.Error,"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:t(2705,e.DiagnosticCategory.Error,"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:t(2706,e.DiagnosticCategory.Error,"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:t(2707,e.DiagnosticCategory.Error,"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:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"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:t(2710,e.DiagnosticCategory.Error,"_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:t(2711,e.DiagnosticCategory.Error,"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:t(2712,e.DiagnosticCategory.Error,"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:t(2713,e.DiagnosticCategory.Error,"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:t(2714,e.DiagnosticCategory.Error,"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:t(2715,e.DiagnosticCategory.Error,"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:t(2716,e.DiagnosticCategory.Error,"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:t(2717,e.DiagnosticCategory.Error,"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:t(2718,e.DiagnosticCategory.Error,"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:t(2719,e.DiagnosticCategory.Error,"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:t(2720,e.DiagnosticCategory.Error,"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:t(2721,e.DiagnosticCategory.Error,"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:t(2722,e.DiagnosticCategory.Error,"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:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),Module_0_has_no_exported_member_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"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:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"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:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"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:t(2731,e.DiagnosticCategory.Error,"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:t(2732,e.DiagnosticCategory.Error,"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:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"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:t(2735,e.DiagnosticCategory.Error,"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:t(2736,e.DiagnosticCategory.Error,"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:t(2737,e.DiagnosticCategory.Error,"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:t(2738,e.DiagnosticCategory.Message,"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:t(2739,e.DiagnosticCategory.Error,"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:t(2740,e.DiagnosticCategory.Error,"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:t(2741,e.DiagnosticCategory.Error,"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:t(2742,e.DiagnosticCategory.Error,"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:t(2743,e.DiagnosticCategory.Error,"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:t(2744,e.DiagnosticCategory.Error,"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:t(2745,e.DiagnosticCategory.Error,"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:t(2746,e.DiagnosticCategory.Error,"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:t(2747,e.DiagnosticCategory.Error,"_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_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_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:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"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:t(2758,e.DiagnosticCategory.Error,"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:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"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:t(2762,e.DiagnosticCategory.Error,"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:t(2763,e.DiagnosticCategory.Error,"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:t(2764,e.DiagnosticCategory.Error,"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:t(2765,e.DiagnosticCategory.Error,"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:t(2766,e.DiagnosticCategory.Error,"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:t(2767,e.DiagnosticCategory.Error,"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:t(2768,e.DiagnosticCategory.Error,"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:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"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:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it__2774","This condition will always return true since the 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:t(2775,e.DiagnosticCategory.Error,"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:t(2776,e.DiagnosticCategory.Error,"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:t(2777,e.DiagnosticCategory.Error,"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:t(2778,e.DiagnosticCategory.Error,"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:t(2779,e.DiagnosticCategory.Error,"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:t(2780,e.DiagnosticCategory.Error,"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:t(2781,e.DiagnosticCategory.Error,"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:t(2782,e.DiagnosticCategory.Message,"_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:t(2783,e.DiagnosticCategory.Error,"_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:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_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:t(2787,e.DiagnosticCategory.Error,"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:t(2788,e.DiagnosticCategory.Error,"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:t(2789,e.DiagnosticCategory.Error,"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:t(2790,e.DiagnosticCategory.Error,"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:t(2791,e.DiagnosticCategory.Error,"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_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"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:t(4002,e.DiagnosticCategory.Error,"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:t(4004,e.DiagnosticCategory.Error,"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:t(4006,e.DiagnosticCategory.Error,"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:t(4008,e.DiagnosticCategory.Error,"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:t(4010,e.DiagnosticCategory.Error,"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:t(4012,e.DiagnosticCategory.Error,"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:t(4014,e.DiagnosticCategory.Error,"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:t(4016,e.DiagnosticCategory.Error,"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:t(4019,e.DiagnosticCategory.Error,"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:t(4020,e.DiagnosticCategory.Error,"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:t(4021,e.DiagnosticCategory.Error,"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:t(4022,e.DiagnosticCategory.Error,"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:t(4023,e.DiagnosticCategory.Error,"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:t(4024,e.DiagnosticCategory.Error,"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:t(4025,e.DiagnosticCategory.Error,"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:t(4026,e.DiagnosticCategory.Error,"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:t(4027,e.DiagnosticCategory.Error,"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:t(4028,e.DiagnosticCategory.Error,"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:t(4029,e.DiagnosticCategory.Error,"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:t(4030,e.DiagnosticCategory.Error,"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:t(4031,e.DiagnosticCategory.Error,"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:t(4032,e.DiagnosticCategory.Error,"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:t(4033,e.DiagnosticCategory.Error,"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:t(4034,e.DiagnosticCategory.Error,"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:t(4035,e.DiagnosticCategory.Error,"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:t(4036,e.DiagnosticCategory.Error,"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:t(4037,e.DiagnosticCategory.Error,"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:t(4038,e.DiagnosticCategory.Error,"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:t(4039,e.DiagnosticCategory.Error,"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:t(4040,e.DiagnosticCategory.Error,"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:t(4041,e.DiagnosticCategory.Error,"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:t(4042,e.DiagnosticCategory.Error,"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:t(4043,e.DiagnosticCategory.Error,"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:t(4044,e.DiagnosticCategory.Error,"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:t(4045,e.DiagnosticCategory.Error,"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:t(4046,e.DiagnosticCategory.Error,"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:t(4047,e.DiagnosticCategory.Error,"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:t(4048,e.DiagnosticCategory.Error,"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:t(4049,e.DiagnosticCategory.Error,"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:t(4050,e.DiagnosticCategory.Error,"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:t(4051,e.DiagnosticCategory.Error,"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:t(4052,e.DiagnosticCategory.Error,"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:t(4053,e.DiagnosticCategory.Error,"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:t(4054,e.DiagnosticCategory.Error,"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:t(4055,e.DiagnosticCategory.Error,"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:t(4056,e.DiagnosticCategory.Error,"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:t(4057,e.DiagnosticCategory.Error,"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:t(4058,e.DiagnosticCategory.Error,"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:t(4059,e.DiagnosticCategory.Error,"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:t(4060,e.DiagnosticCategory.Error,"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:t(4061,e.DiagnosticCategory.Error,"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:t(4062,e.DiagnosticCategory.Error,"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:t(4063,e.DiagnosticCategory.Error,"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:t(4064,e.DiagnosticCategory.Error,"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:t(4065,e.DiagnosticCategory.Error,"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:t(4066,e.DiagnosticCategory.Error,"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:t(4067,e.DiagnosticCategory.Error,"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:t(4068,e.DiagnosticCategory.Error,"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:t(4069,e.DiagnosticCategory.Error,"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:t(4070,e.DiagnosticCategory.Error,"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:t(4071,e.DiagnosticCategory.Error,"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:t(4072,e.DiagnosticCategory.Error,"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:t(4073,e.DiagnosticCategory.Error,"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:t(4074,e.DiagnosticCategory.Error,"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:t(4075,e.DiagnosticCategory.Error,"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:t(4076,e.DiagnosticCategory.Error,"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:t(4077,e.DiagnosticCategory.Error,"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:t(4078,e.DiagnosticCategory.Error,"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:t(4081,e.DiagnosticCategory.Error,"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:t(4082,e.DiagnosticCategory.Error,"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:t(4083,e.DiagnosticCategory.Error,"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}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"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:t(4091,e.DiagnosticCategory.Error,"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:t(4092,e.DiagnosticCategory.Error,"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:t(4094,e.DiagnosticCategory.Error,"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:t(4095,e.DiagnosticCategory.Error,"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:t(4096,e.DiagnosticCategory.Error,"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:t(4097,e.DiagnosticCategory.Error,"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:t(4098,e.DiagnosticCategory.Error,"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:t(4099,e.DiagnosticCategory.Error,"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:t(4100,e.DiagnosticCategory.Error,"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:t(4101,e.DiagnosticCategory.Error,"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:t(4102,e.DiagnosticCategory.Error,"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:t(4103,e.DiagnosticCategory.Error,"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:t(4104,e.DiagnosticCategory.Error,"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:t(4105,e.DiagnosticCategory.Error,"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:t(4106,e.DiagnosticCategory.Error,"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:t(4107,e.DiagnosticCategory.Error,"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:t(4108,e.DiagnosticCategory.Error,"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:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"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:t(5009,e.DiagnosticCategory.Error,"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:t(5010,e.DiagnosticCategory.Error,"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:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"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:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"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:t(5042,e.DiagnosticCategory.Error,"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:t(5047,e.DiagnosticCategory.Error,"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:t(5048,e.DiagnosticCategory.Error,"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:t(5051,e.DiagnosticCategory.Error,"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:t(5052,e.DiagnosticCategory.Error,"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:t(5053,e.DiagnosticCategory.Error,"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:t(5054,e.DiagnosticCategory.Error,"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:t(5055,e.DiagnosticCategory.Error,"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:t(5056,e.DiagnosticCategory.Error,"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:t(5057,e.DiagnosticCategory.Error,"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:t(5058,e.DiagnosticCategory.Error,"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:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"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:t(5062,e.DiagnosticCategory.Error,"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:t(5063,e.DiagnosticCategory.Error,"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:t(5064,e.DiagnosticCategory.Error,"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:t(5065,e.DiagnosticCategory.Error,"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:t(5066,e.DiagnosticCategory.Error,"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:t(5067,e.DiagnosticCategory.Error,"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:t(5068,e.DiagnosticCategory.Error,"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:t(5069,e.DiagnosticCategory.Error,"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_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"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:t(5074,e.DiagnosticCategory.Error,"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:t(5075,e.DiagnosticCategory.Error,"_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:t(5076,e.DiagnosticCategory.Error,"_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:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"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:t(5080,e.DiagnosticCategory.Error,"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:t(5081,e.DiagnosticCategory.Error,"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:t(5082,e.DiagnosticCategory.Error,"_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:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"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:t(5086,e.DiagnosticCategory.Error,"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:t(5087,e.DiagnosticCategory.Error,"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:t(5088,e.DiagnosticCategory.Error,"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."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"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:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"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:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"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:t(6008,e.DiagnosticCategory.Message,"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:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"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:t(6011,e.DiagnosticCategory.Message,"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:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"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:t(6020,e.DiagnosticCategory.Message,"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:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"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:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"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:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"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:t(6055,e.DiagnosticCategory.Message,"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:t(6056,e.DiagnosticCategory.Message,"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:t(6058,e.DiagnosticCategory.Message,"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:t(6059,e.DiagnosticCategory.Error,"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:t(6060,e.DiagnosticCategory.Message,"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:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"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:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"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:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"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:t(6074,e.DiagnosticCategory.Message,"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:t(6075,e.DiagnosticCategory.Message,"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:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"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:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"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:t(6083,e.DiagnosticCategory.Message,"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:t(6084,e.DiagnosticCategory.Message,"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:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"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:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"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:t(6091,e.DiagnosticCategory.Message,"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:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"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:t(6094,e.DiagnosticCategory.Message,"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_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"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:t(6101,e.DiagnosticCategory.Message,"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:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"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:t(6105,e.DiagnosticCategory.Message,"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:t(6106,e.DiagnosticCategory.Message,"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:t(6107,e.DiagnosticCategory.Message,"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:t(6108,e.DiagnosticCategory.Message,"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:t(6109,e.DiagnosticCategory.Message,"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:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"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:t(6115,e.DiagnosticCategory.Message,"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:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"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:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"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:t(6123,e.DiagnosticCategory.Message,"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:t(6124,e.DiagnosticCategory.Message,"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:t(6125,e.DiagnosticCategory.Message,"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:t(6126,e.DiagnosticCategory.Message,"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:t(6127,e.DiagnosticCategory.Message,"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:t(6128,e.DiagnosticCategory.Message,"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:t(6130,e.DiagnosticCategory.Message,"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:t(6131,e.DiagnosticCategory.Error,"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:t(6132,e.DiagnosticCategory.Message,"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:t(6133,e.DiagnosticCategory.Error,"_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:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"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:t(6137,e.DiagnosticCategory.Error,"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:t(6138,e.DiagnosticCategory.Error,"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:t(6139,e.DiagnosticCategory.Message,"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:t(6140,e.DiagnosticCategory.Error,"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:t(6141,e.DiagnosticCategory.Message,"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:t(6142,e.DiagnosticCategory.Error,"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:t(6144,e.DiagnosticCategory.Message,"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:t(6145,e.DiagnosticCategory.Message,"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:t(6146,e.DiagnosticCategory.Message,"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:t(6147,e.DiagnosticCategory.Message,"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:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"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:t(6152,e.DiagnosticCategory.Message,"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:t(6153,e.DiagnosticCategory.Message,"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:t(6154,e.DiagnosticCategory.Message,"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:t(6155,e.DiagnosticCategory.Message,"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:t(6156,e.DiagnosticCategory.Message,"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:t(6157,e.DiagnosticCategory.Message,"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:t(6158,e.DiagnosticCategory.Message,"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:t(6159,e.DiagnosticCategory.Message,"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:t(6160,e.DiagnosticCategory.Message,"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:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"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:t(6167,e.DiagnosticCategory.Message,"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:t(6168,e.DiagnosticCategory.Message,"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:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"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:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"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:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"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:t(6191,e.DiagnosticCategory.Message,"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:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"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:t(6195,e.DiagnosticCategory.Message,"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:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"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:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"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:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused"),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"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:t(6207,e.DiagnosticCategory.Message,"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:t(6208,e.DiagnosticCategory.Message,"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:t(6209,e.DiagnosticCategory.Message,"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:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"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:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"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:t(6214,e.DiagnosticCategory.Message,"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:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"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:t(6219,e.DiagnosticCategory.Message,"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:t(6220,e.DiagnosticCategory.Message,"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:t(6221,e.DiagnosticCategory.Message,"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:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling:t(6226,e.DiagnosticCategory.Message,"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'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority:t(6227,e.DiagnosticCategory.Message,"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'."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6228,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6228","Synchronously call callbacks and update the state of directory watchers on platforms that don't support recursive watching natively."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"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:t(6230,e.DiagnosticCategory.Error,"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:t(6231,e.DiagnosticCategory.Error,"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:t(6232,e.DiagnosticCategory.Error,"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:t(6233,e.DiagnosticCategory.Error,"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:t(6234,e.DiagnosticCategory.Error,"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:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Projects_to_reference:t(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"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:t(6305,e.DiagnosticCategory.Error,"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:t(6306,e.DiagnosticCategory.Error,"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:t(6307,e.DiagnosticCategory.Error,"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:t(6308,e.DiagnosticCategory.Error,"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:t(6309,e.DiagnosticCategory.Error,"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:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"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:t(6353,e.DiagnosticCategory.Message,"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:t(6354,e.DiagnosticCategory.Message,"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:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"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:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:t(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"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:t(6363,e.DiagnosticCategory.Message,"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:t(6364,e.DiagnosticCategory.Message,"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:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:t(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6368,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6368","Build all projects, including those that appear to be up to date"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"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:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"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:t(6372,e.DiagnosticCategory.Message,"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:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"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:t(6375,e.DiagnosticCategory.Message,"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:t(6376,e.DiagnosticCategory.Message,"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:t(6377,e.DiagnosticCategory.Error,"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}'"),Enable_incremental_compilation:t(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"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:t(6381,e.DiagnosticCategory.Message,"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:t(6382,e.DiagnosticCategory.Message,"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:t(6383,e.DiagnosticCategory.Message,"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:t(6384,e.DiagnosticCategory.Message,"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:t(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated",void 0,void 0,!0),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"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:t(6501,e.DiagnosticCategory.Message,"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:t(6502,e.DiagnosticCategory.Message,"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:t(6503,e.DiagnosticCategory.Message,"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:t(6504,e.DiagnosticCategory.Error,"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?"),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"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:t(7009,e.DiagnosticCategory.Error,"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:t(7010,e.DiagnosticCategory.Error,"_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:t(7011,e.DiagnosticCategory.Error,"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."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"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:t(7014,e.DiagnosticCategory.Error,"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:t(7015,e.DiagnosticCategory.Error,"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:t(7016,e.DiagnosticCategory.Error,"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:t(7017,e.DiagnosticCategory.Error,"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:t(7018,e.DiagnosticCategory.Error,"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:t(7019,e.DiagnosticCategory.Error,"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:t(7020,e.DiagnosticCategory.Error,"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:t(7022,e.DiagnosticCategory.Error,"_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:t(7023,e.DiagnosticCategory.Error,"_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:t(7024,e.DiagnosticCategory.Error,"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:t(7025,e.DiagnosticCategory.Error,"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:t(7026,e.DiagnosticCategory.Error,"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:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"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:t(7032,e.DiagnosticCategory.Error,"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:t(7033,e.DiagnosticCategory.Error,"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:t(7034,e.DiagnosticCategory.Error,"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_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @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:t(7036,e.DiagnosticCategory.Error,"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:t(7037,e.DiagnosticCategory.Message,"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:t(7038,e.DiagnosticCategory.Message,"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:t(7039,e.DiagnosticCategory.Error,"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:t(7040,e.DiagnosticCategory.Error,"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:t(7041,e.DiagnosticCategory.Error,"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:t(7042,e.DiagnosticCategory.Error,"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:t(7043,e.DiagnosticCategory.Suggestion,"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:t(7044,e.DiagnosticCategory.Suggestion,"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:t(7045,e.DiagnosticCategory.Suggestion,"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:t(7046,e.DiagnosticCategory.Suggestion,"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:t(7047,e.DiagnosticCategory.Suggestion,"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:t(7048,e.DiagnosticCategory.Suggestion,"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:t(7049,e.DiagnosticCategory.Suggestion,"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:t(7050,e.DiagnosticCategory.Suggestion,"_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:t(7051,e.DiagnosticCategory.Error,"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:t(7052,e.DiagnosticCategory.Error,"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:t(7053,e.DiagnosticCategory.Error,"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:t(7054,e.DiagnosticCategory.Error,"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:t(7055,e.DiagnosticCategory.Error,"_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."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"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:t(8002,e.DiagnosticCategory.Error,"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:t(8003,e.DiagnosticCategory.Error,"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:t(8004,e.DiagnosticCategory.Error,"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:t(8005,e.DiagnosticCategory.Error,"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:t(8006,e.DiagnosticCategory.Error,"_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:t(8008,e.DiagnosticCategory.Error,"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:t(8009,e.DiagnosticCategory.Error,"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:t(8010,e.DiagnosticCategory.Error,"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:t(8011,e.DiagnosticCategory.Error,"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:t(8012,e.DiagnosticCategory.Error,"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:t(8013,e.DiagnosticCategory.Error,"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:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"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:t(8021,e.DiagnosticCategory.Error,"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:t(8022,e.DiagnosticCategory.Error,"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:t(8023,e.DiagnosticCategory.Error,"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:t(8024,e.DiagnosticCategory.Error,"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:t(8025,e.DiagnosticCategory.Error,"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:t(8026,e.DiagnosticCategory.Error,"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:t(8027,e.DiagnosticCategory.Error,"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:t(8028,e.DiagnosticCategory.Error,"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:t(8029,e.DiagnosticCategory.Error,"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:t(8030,e.DiagnosticCategory.Error,"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:t(8031,e.DiagnosticCategory.Error,"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:t(8032,e.DiagnosticCategory.Error,"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:t(8033,e.DiagnosticCategory.Error,"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:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(9005,e.DiagnosticCategory.Error,"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:t(9006,e.DiagnosticCategory.Error,"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:t(17e3,e.DiagnosticCategory.Error,"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:t(17001,e.DiagnosticCategory.Error,"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:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"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:t(17005,e.DiagnosticCategory.Error,"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:t(17006,e.DiagnosticCategory.Error,"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:t(17007,e.DiagnosticCategory.Error,"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:t(17008,e.DiagnosticCategory.Error,"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:t(17009,e.DiagnosticCategory.Error,"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:t(17010,e.DiagnosticCategory.Error,"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:t(17011,e.DiagnosticCategory.Error,"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:t(17012,e.DiagnosticCategory.Error,"_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:t(17013,e.DiagnosticCategory.Error,"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:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"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:t(17016,e.DiagnosticCategory.Error,"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:t(17017,e.DiagnosticCategory.Error,"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:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"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:t(18003,e.DiagnosticCategory.Error,"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_ES6_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"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:t(80003,e.DiagnosticCategory.Suggestion,"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:t(80004,e.DiagnosticCategory.Suggestion,"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:t(80005,e.DiagnosticCategory.Suggestion,"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:t(80006,e.DiagnosticCategory.Suggestion,"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:t(80007,e.DiagnosticCategory.Suggestion,"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:t(80008,e.DiagnosticCategory.Suggestion,"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."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:t(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:t(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"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:t(95031,e.DiagnosticCategory.Message,"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:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"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:t(95037,e.DiagnosticCategory.Message,"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:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"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:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Allow_accessing_UMD_globals_from_modules:t(95076,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_95076","Allow accessing UMD globals from modules."),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"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:t(95098,e.DiagnosticCategory.Message,"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:t(95099,e.DiagnosticCategory.Message,"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:t(95100,e.DiagnosticCategory.Message,"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:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:t(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:t(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:t(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"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:t(95113,e.DiagnosticCategory.Message,"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:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"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:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"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:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"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:t(18006,e.DiagnosticCategory.Error,"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:t(18007,e.DiagnosticCategory.Error,"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:t(18009,e.DiagnosticCategory.Error,"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:t(18010,e.DiagnosticCategory.Error,"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:t(18011,e.DiagnosticCategory.Error,"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:t(18012,e.DiagnosticCategory.Error,"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:t(18013,e.DiagnosticCategory.Error,"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:t(18014,e.DiagnosticCategory.Error,"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:t(18015,e.DiagnosticCategory.Error,"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:t(18016,e.DiagnosticCategory.Error,"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:t(18017,e.DiagnosticCategory.Error,"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:t(18018,e.DiagnosticCategory.Error,"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:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier"),A_method_cannot_be_named_with_a_private_identifier:t(18022,e.DiagnosticCategory.Error,"A_method_cannot_be_named_with_a_private_identifier_18022","A method cannot be named with a private identifier."),An_accessor_cannot_be_named_with_a_private_identifier:t(18023,e.DiagnosticCategory.Error,"An_accessor_cannot_be_named_with_a_private_identifier_18023","An accessor cannot be named with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"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:t(18026,e.DiagnosticCategory.Error,"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:t(18027,e.DiagnosticCategory.Error,"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:t(18028,e.DiagnosticCategory.Error,"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:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"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:t(18031,e.DiagnosticCategory.Error,"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:t(18032,e.DiagnosticCategory.Error,"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."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"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:t(18035,e.DiagnosticCategory.Error,"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.")}}(l||(l={})),function(e){var t;function r(e){return e>=78}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||r(e)};var n=((t={abstract:125,any:128,as:126,asserts:127,bigint:154,boolean:131,break:80,case:81,catch:82,class:83,continue:85,const:84}).constructor=132,t.debugger=86,t.declare=133,t.default=87,t.delete=88,t.do=89,t.else=90,t.enum=91,t.export=92,t.extends=93,t.false=94,t.finally=95,t.for=96,t.from=152,t.function=97,t.get=134,t.if=98,t.implements=116,t.import=99,t.in=100,t.infer=135,t.instanceof=101,t.interface=117,t.is=136,t.keyof=137,t.let=118,t.module=138,t.namespace=139,t.never=140,t.new=102,t.null=103,t.number=143,t.object=144,t.package=119,t.private=120,t.protected=121,t.public=122,t.readonly=141,t.require=142,t.global=153,t.return=104,t.set=145,t.static=123,t.string=146,t.super=105,t.switch=106,t.symbol=147,t.this=107,t.throw=108,t.true=109,t.try=110,t.type=148,t.typeof=111,t.undefined=149,t.unique=150,t.unknown=151,t.var=112,t.void=113,t.while=114,t.with=115,t.yield=124,t.async=129,t.await=130,t.of=155,t),i=new e.Map(e.getEntries(n)),o=new e.Map(e.getEntries(a(a({},n),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,">":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":62,"+=":63,"-=":64,"*=":65,"**=":66,"/=":67,"%=":68,"<<=":69,">>=":70,">>>=":71,"&=":72,"|=":73,"^=":77,"||=":74,"&&=":75,"??=":76,"@":59,"`":61}))),s=[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],c=[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],u=[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],l=[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],_=[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],d=[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],p=/^\s*\/\/\/?\s*@(ts-expect-error|ts-ignore)/,f=/^\s*(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function g(e,t){if(e=2?_:1===t?u:s)}e.isUnicodeIdentifierStart=m;var h,y=(h=[],o.forEach(function(e,t){h[e]=t}),h);function v(e){for(var t=new Array,r=0,n=0;r127&&T(i)&&(t.push(n),n=r)}}return t.push(n),t}function b(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: "+r+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,v(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function T(e){return 10===e||13===e||8232===e||8233===e}function k(e){return e>=48&&e<=57}function w(e){return k(e)||e>=65&&e<=70||e>=97&&e<=102}function A(e){return e>=48&&e<=55}e.tokenToString=function(e){return y[e]},e.stringToToken=function(e){return o.get(e)},e.computeLineStarts=v,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):b(x(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=b,e.getLineStarts=x,e.computeLineAndCharacterOfPosition=D,e.computeLineOfPosition=S,e.getLinesBetweenPositions=function(e,t,r){if(t===r)return 0;var n=x(e),i=Math.min(t,r),a=i===r,o=a?t:r,s=S(n,i),c=S(n,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,t){return D(x(e),t)},e.isWhiteSpaceLike=E,e.isWhiteSpaceSingleLine=C,e.isLineBreak=T,e.isOctalDigit=A,e.couldStartTrivia=function(e,t){var r=e.charCodeAt(t);switch(r){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 r>127}},e.skipTrivia=function(t,r,n,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(r))return r;for(;;){var a=t.charCodeAt(r);switch(a){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r127&&E(a)){r++;continue}}return r}};var N="<<<<<<<".length;function P(t,r){if(e.Debug.assert(r>=0),0===r||T(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+N=0&&r127&&E(g)){_&&T(g)&&(l=!0),r++;continue}break e}}return _&&(p=i(s,c,u,l,a,p)),p}function R(e,t,r,n,i){return L(!0,e,t,!1,r,n,i)}function B(e,t,r,n,i){return L(!0,e,t,!0,r,n,i)}function j(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function U(e){var t=F.exec(e);if(t)return t[0]}function z(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&m(e,t)}function J(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===r&&(45===e||58===e)||e>127&&function(e,t){return g(e,t>=2?d:1===t?l:c)}(e,t)}e.isShebangTrivia=I,e.scanShebangTrivia=M,e.forEachLeadingCommentRange=function(e,t,r,n){return L(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return L(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=R,e.reduceEachTrailingCommentRange=B,e.getLeadingCommentRanges=function(e,t){return R(e,t,j,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return B(e,t,j,void 0,void 0)},e.getShebang=U,e.isIdentifierStart=z,e.isIdentifierPart=J,e.isIdentifierText=function(e,t,r){var n=V(e,0);if(!z(n,t))return!1;for(var i=W(n);i115},isReservedWord:function(){return m>=80&&m<=115},isUnterminated:function(){return 0!=(4&y)},getCommentDirectives:function(){return v},getNumericLiteralFlags:function(){return 1008&y},getTokenFlags:function(){return y},reScanGreaterToken:function(){if(31===m){if(62===b.charCodeAt(l))return 62===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=71):(l+=2,m=49):61===b.charCodeAt(l+1)?(l+=2,m=70):(l++,m=48);if(61===b.charCodeAt(l))return l++,m=33}return m},reScanAsteriskEqualsToken:function(){return e.Debug.assert(65===m,"'reScanAsteriskEqualsToken' should only be called on a '*='"),l=g+1,m=62},reScanSlashToken:function(){if(43===m||67===m){for(var r=g+1,n=!1,i=!1;;){if(r>=_){y|=4,S(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=b.charCodeAt(r);if(T(a)){y|=4,S(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){r++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}r++}for(;r<_&&J(b.charCodeAt(r),t);)r++;h=b.substring(g,l=r),m=13}return m},reScanTemplateToken:function(t){return e.Debug.assert(19===m,"'reScanTemplateToken' should only be called on a '}'"),l=g,m=H(t)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return l=g,m=H(!0)},scanJsxIdentifier:function(){if(r(m))for(;l<_;)if(45!==b.charCodeAt(l)){var e=l;if(h+=Z(),l===e)break}else h+="-",l++;return m},scanJsxAttributeValue:oe,reScanJsxAttributeValue:function(){return l=g=d,oe()},reScanJsxToken:function(){return l=g=d,m=ae()},reScanLessThanToken:function(){return 47===m?(l=g+1,m=29):m},reScanQuestionToken:function(){return e.Debug.assert(60===m,"'reScanQuestionToken' should only be called on a '??'"),l=g+1,m=57},scanJsxToken:ae,scanJsDocToken:function(){if(d=g=l,y=0,l>=_)return m=1;var e=V(b,l);switch(l+=W(e),e){case 9:case 11:case 12:case 32:for(;l<_&&C(b.charCodeAt(l));)l++;return m=5;case 64:return m=59;case 13:10===b.charCodeAt(l)&&l++;case 10:return y|=1,m=4;case 42:return m=41;case 123:return m=18;case 125:return m=19;case 91:return m=22;case 93:return m=23;case 60:return m=29;case 62:return m=31;case 61:return m=62;case 44:return m=27;case 46:return m=24;case 96:return m=61;case 92:l--;var r=Y();if(r>=0&&z(r,t))return l+=3,y|=8,h=$()+Z(),m=ee();var n=X();return n>=0&&z(n,t)?(l+=6,y|=1024,h=String.fromCharCode(n)+Z(),m=ee()):(l++,m=0)}if(z(e,t)){for(var i=e;l<_&&J(i=V(b,l),t)||45===b.charCodeAt(l);)l+=W(i);return h=b.substring(g,l),92===i&&(h+=Z()),m=ee()}return m=0},scan:ne,getText:function(){return b},clearCommentDirectives:function(){v=void 0},setText:ce,setScriptTarget:function(e){t=e},setLanguageVariant:function(e){a=e},setOnError:function(e){s=e},setTextPos:ue,setInJSDocType:function(e){x+=e?1:-1},tryScan:function(e){return se(e,!1)},lookAhead:function(e){return se(e,!0)},scanRange:function(e,t,r){var n=_,i=l,a=d,o=g,s=m,c=h,u=y,p=v;ce(b,e,t);var f=r();return _=n,l=i,d=a,g=o,m=s,h=c,y=u,v=p,f}};return e.Debug.isDebugging&&Object.defineProperty(D,"__debugShowCurrentPositionInText",{get:function(){var e=D.getText();return e.slice(0,D.getStartPos())+"\u2551"+e.slice(D.getStartPos())}}),D;function S(e,t,r){if(void 0===t&&(t=l),s){var n=l;l=t,s(e,r||0),l=n}}function N(){for(var t=l,r=!1,n=!1,i="";;){var a=b.charCodeAt(l);if(95!==a){if(!k(a))break;r=!0,n=!1,l++}else y|=512,r?(r=!1,n=!0,i+=b.substring(t,l)):S(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),t=++l}return 95===b.charCodeAt(l-1)&&S(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),i+b.substring(t,l)}function F(){var t,r,n=l,i=N();46===b.charCodeAt(l)&&(l++,t=N());var a,o=l;if(69===b.charCodeAt(l)||101===b.charCodeAt(l)){l++,y|=16,43!==b.charCodeAt(l)&&45!==b.charCodeAt(l)||l++;var s=l,c=N();c?(r=b.substring(o,s)+c,o=l):S(e.Diagnostics.Digit_expected)}if(512&y?(a=i,t&&(a+="."+t),r&&(a+=r)):a=b.substring(n,o),void 0!==t||16&y)return L(n,void 0===t&&!!(16&y)),{type:8,value:""+ +a};h=a;var u=re();return L(n),{type:u,value:h}}function L(r,n){if(z(V(b,l),t)){var i=l,a=Z().length;1===a&&"n"===b[i]?S(n?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,r,i-r+1):(S(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),l=i)}}function R(){for(var e=l;A(b.charCodeAt(l));)l++;return+b.substring(e,l)}function B(e,t){var r=U(e,!1,t);return r?parseInt(r,16):-1}function j(e,t){return U(e,!0,t)}function U(t,r,n){for(var i=[],a=!1,o=!1;i.length=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),l++,o=!1}}return i.length=_){n+=b.substring(i,l),y|=4,S(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(l);if(a===r){n+=b.substring(i,l),l++;break}if(92!==a||t){if(T(a)&&!t){n+=b.substring(i,l),y|=4,S(e.Diagnostics.Unterminated_string_literal);break}l++}else n+=b.substring(i,l),n+=G(),i=l}return n}function H(t){for(var r,n=96===b.charCodeAt(l),i=++l,a="";;){if(l>=_){a+=b.substring(i,l),y|=4,S(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=b.charCodeAt(l);if(96===o){a+=b.substring(i,l),l++,r=n?14:17;break}if(36===o&&l+1<_&&123===b.charCodeAt(l+1)){a+=b.substring(i,l),l+=2,r=n?15:16;break}92!==o?13!==o?l++:(a+=b.substring(i,l),++l<_&&10===b.charCodeAt(l)&&l++,a+="\n",i=l):(a+=b.substring(i,l),a+=G(t),i=l)}return e.Debug.assert(void 0!==r),h=a,r}function G(t){var r=l;if(++l>=_)return S(e.Diagnostics.Unexpected_end_of_text),"";var n=b.charCodeAt(l);switch(l++,n){case 48:return t&&l<_&&k(b.charCodeAt(l))?(l++,y|=2048,b.substring(r,l)):"\0";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(t)for(var i=l;i=0?String.fromCharCode(r):(S(e.Diagnostics.Hexadecimal_digit_expected),"")}function $(){var t=j(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(S(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(S(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),l>=_?(S(e.Diagnostics.Unexpected_end_of_text),n=!0):125===b.charCodeAt(l)?l++:(S(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":K(r)}function X(){if(l+5<_&&117===b.charCodeAt(l+1)){var e=l;l+=2;var t=B(4,!1);return l=e,t}return-1}function Y(){if(t>=2&&117===V(b,l+1)&&123===V(b,l+2)){var e=l;l+=3;var r=j(1,!1),n=r?parseInt(r,16):-1;return l=e,n}return-1}function Z(){for(var e="",r=l;l<_;){var n=V(b,l);if(J(n,t))l+=W(n);else{if(92!==n)break;if((n=Y())>=0&&J(n,t)){l+=3,y|=8,e+=$(),r=l;continue}if(!((n=X())>=0&&J(n,t)))break;y|=1024,e+=b.substring(r,l),e+=K(n),r=l+=6}}return e+b.substring(r,l)}function ee(){var e=h.length;if(e>=2&&e<=11){var t=h.charCodeAt(0);if(t>=97&&t<=122){var r=i.get(h);if(void 0!==r)return m=r}}return m=78}function te(t){for(var r="",n=!1,i=!1;;){var a=b.charCodeAt(l);if(95!==a){if(n=!0,!k(a)||a-48>=t)break;r+=b[l],l++,i=!1}else y|=512,n?(n=!1,i=!0):S(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++}return 95===b.charCodeAt(l-1)&&S(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),r}function re(){if(110===b.charCodeAt(l))return h+="n",384&y&&(h=e.parsePseudoBigInt(h)+"n"),l++,9;var t=128&y?parseInt(h.slice(2),2):256&y?parseInt(h.slice(2),8):+h;return h=""+t,8}function ne(){var r;d=l,y=0;for(var i=!1;;){if(g=l,l>=_)return m=1;var o=V(b,l);if(35===o&&0===l&&I(b,l)){if(l=M(b,l),n)continue;return m=6}switch(o){case 10:case 13:if(y|=1,n){l++;continue}return 13===o&&l+1<_&&10===b.charCodeAt(l+1)?l+=2:l++,m=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(n){l++;continue}for(;l<_&&C(b.charCodeAt(l));)l++;return m=5;case 33:return 61===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=37):(l+=2,m=35):(l++,m=53);case 34:case 39:return h=q(),m=10;case 96:return m=H(!1);case 37:return 61===b.charCodeAt(l+1)?(l+=2,m=68):(l++,m=44);case 38:return 38===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=75):(l+=2,m=55):61===b.charCodeAt(l+1)?(l+=2,m=72):(l++,m=50);case 40:return l++,m=20;case 41:return l++,m=21;case 42:if(61===b.charCodeAt(l+1))return l+=2,m=65;if(42===b.charCodeAt(l+1))return 61===b.charCodeAt(l+2)?(l+=3,m=66):(l+=2,m=42);if(l++,x&&!i&&1&y){i=!0;continue}return m=41;case 43:return 43===b.charCodeAt(l+1)?(l+=2,m=45):61===b.charCodeAt(l+1)?(l+=2,m=63):(l++,m=39);case 44:return l++,m=27;case 45:return 45===b.charCodeAt(l+1)?(l+=2,m=46):61===b.charCodeAt(l+1)?(l+=2,m=64):(l++,m=40);case 46:return k(b.charCodeAt(l+1))?(h=F().value,m=8):46===b.charCodeAt(l+1)&&46===b.charCodeAt(l+2)?(l+=3,m=25):(l++,m=24);case 47:if(47===b.charCodeAt(l+1)){for(l+=2;l<_&&!T(b.charCodeAt(l));)l++;if(v=ie(v,b.slice(g,l),p,g),n)continue;return m=2}if(42===b.charCodeAt(l+1)){42===b.charCodeAt(l+=2)&&47!==b.charCodeAt(l+1)&&(y|=2);for(var s=!1,c=g;l<_;){var u=b.charCodeAt(l);if(42===u&&47===b.charCodeAt(l+1)){l+=2,s=!0;break}l++,T(u)&&(c=l,y|=1)}if(v=ie(v,b.slice(c,l),f,c),s||S(e.Diagnostics.Asterisk_Slash_expected),n)continue;return s||(y|=4),m=3}return 61===b.charCodeAt(l+1)?(l+=2,m=67):(l++,m=43);case 48:if(l+2<_&&(88===b.charCodeAt(l+1)||120===b.charCodeAt(l+1)))return l+=2,(h=j(1,!0))||(S(e.Diagnostics.Hexadecimal_digit_expected),h="0"),h="0x"+h,y|=64,m=re();if(l+2<_&&(66===b.charCodeAt(l+1)||98===b.charCodeAt(l+1)))return l+=2,(h=te(2))||(S(e.Diagnostics.Binary_digit_expected),h="0"),h="0b"+h,y|=128,m=re();if(l+2<_&&(79===b.charCodeAt(l+1)||111===b.charCodeAt(l+1)))return l+=2,(h=te(8))||(S(e.Diagnostics.Octal_digit_expected),h="0"),h="0o"+h,y|=256,m=re();if(l+1<_&&A(b.charCodeAt(l+1)))return h=""+R(),y|=32,m=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r=F(),h=r.value,m=r.type;case 58:return l++,m=58;case 59:return l++,m=26;case 60:if(P(b,l)){if(l=O(b,l,S),n)continue;return m=7}return 60===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=69):(l+=2,m=47):61===b.charCodeAt(l+1)?(l+=2,m=32):1===a&&47===b.charCodeAt(l+1)&&42!==b.charCodeAt(l+2)?(l+=2,m=30):(l++,m=29);case 61:if(P(b,l)){if(l=O(b,l,S),n)continue;return m=7}return 61===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=36):(l+=2,m=34):62===b.charCodeAt(l+1)?(l+=2,m=38):(l++,m=62);case 62:if(P(b,l)){if(l=O(b,l,S),n)continue;return m=7}return l++,m=31;case 63:return 46!==b.charCodeAt(l+1)||k(b.charCodeAt(l+2))?63===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=76):(l+=2,m=60):(l++,m=57):(l+=2,m=28);case 91:return l++,m=22;case 93:return l++,m=23;case 94:return 61===b.charCodeAt(l+1)?(l+=2,m=77):(l++,m=52);case 123:return l++,m=18;case 124:if(P(b,l)){if(l=O(b,l,S),n)continue;return m=7}return 124===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=74):(l+=2,m=56):61===b.charCodeAt(l+1)?(l+=2,m=73):(l++,m=51);case 125:return l++,m=19;case 126:return l++,m=54;case 64:return l++,m=59;case 92:var D=Y();if(D>=0&&z(D,t))return l+=3,y|=8,h=$()+Z(),m=ee();var E=X();return E>=0&&z(E,t)?(l+=6,y|=1024,h=String.fromCharCode(E)+Z(),m=ee()):(S(e.Diagnostics.Invalid_character),l++,m=0);case 35:if(0!==l&&"!"===b[l+1])return S(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),l++,m=0;if(l++,z(o=b.charCodeAt(l),t)){for(l++;l<_&&J(o=b.charCodeAt(l),t);)l++;h=b.substring(g,l),92===o&&(h+=Z())}else h="#",S(e.Diagnostics.Invalid_character);return m=79;default:if(z(o,t)){for(l+=W(o);l<_&&J(o=V(b,l),t);)l+=W(o);return h=b.substring(g,l),92===o&&(h+=Z()),m=ee()}if(C(o)){l+=W(o);continue}if(T(o)){y|=1,l+=W(o);continue}return S(e.Diagnostics.Invalid_character),l+=W(o),m=0}}}function ie(t,r,n,i){var a=function(e,t){var r=t.exec(e);if(r)switch(r[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}(r,n);return void 0===a?t:e.append(t,{range:{pos:i,end:l},type:a})}function ae(){if(d=g=l,l>=_)return m=1;var t=b.charCodeAt(l);if(60===t)return 47===b.charCodeAt(l+1)?(l+=2,m=30):(l++,m=29);if(123===t)return l++,m=18;for(var r=0,n=-1;l<_&&(C(t)||(n=l),123!==(t=b.charCodeAt(l)));){if(60===t){if(P(b,l))return l=O(b,l,S),m=7;break}62===t&&S(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,l,1),125===t&&S(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,l,1),n>0&&n++,T(t)&&0===r?r=-1:E(t)||(r=l),l++}return h=b.substring(d,-1===n?l:n),-1===r?12:11}function oe(){switch(d=l,b.charCodeAt(l)){case 34:case 39:return h=q(!0),m=10;default:return ne()}}function se(e,t){var r=l,n=d,i=g,a=m,o=h,s=y,c=e();return c&&!t||(l=r,d=n,g=i,m=a,h=o,y=s),c}function ce(e,t,r){b=e||"",_=void 0===r?b.length:t+r,ue(t||0)}function ue(t){e.Debug.assert(t>=0),l=t,d=t,g=t,m=0,h=void 0,y=0}};var V=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t);if(n>=55296&&n<=56319&&r>t+1){var i=e.charCodeAt(t+1);if(i>=56320&&i<=57343)return 1024*(n-55296)+i-56320+65536}return n}};function W(e){return e>=65536?2:1}var q=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296;return String.fromCharCode(r,(t-65536)%1024+56320)};function K(e){return q(e)}e.utf16EncodeAsString=K}(l||(l={})),function(e){function t(e){return e.start+e.length}function r(e){return 0===e.length}function n(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function i(e,t,r,n){return r<=e+t&&r+n>=e}function a(e,r){var n=Math.max(e.start,r.start),i=Math.min(t(e),t(r));return n<=i?s(n,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function u(t){return!!$(t)&&e.every(t.elements,l)}function l(t){return!!e.isOmittedExpression(t)||u(t.name)}function _(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function d(t,r){e.isBindingElement(t)&&(t=_(t));var n=r(t);return 246===t.kind&&(t=t.parent),t&&247===t.kind&&(n|=r(t),t=t.parent),t&&229===t.kind&&(n|=r(t)),n}function p(e){return 0==(8&e.flags)}function f(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function g(e){return f(e.escapedText)}function m(t){var r=t.parent.parent;if(r){if(ae(r))return h(r);switch(r.kind){case 229:if(r.declarationList&&r.declarationList.declarations[0])return h(r.declarationList.declarations[0]);break;case 230:var n=r.expression;switch(213===n.kind&&62===n.operatorToken.kind&&(n=n.left),n.kind){case 198:return n.name;case 199:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 204:return h(r.expression);case 242:if(ae(r.statement)||te(r.statement))return h(r.statement)}}}function h(t){var r=x(t);return r&&e.isIdentifier(r)?r:void 0}function y(e){return e.name||m(e)}function v(e){return!!e.name}function b(t){switch(t.kind){case 78:return t;case 328:case 322:var r=t.name;if(156===r.kind)return r.right;break;case 200:case 213:var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}case 327:return y(t);case 321:return m(t);case 263:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 199:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function x(t){if(void 0!==t)return b(t)||(e.isFunctionExpression(t)||e.isClassExpression(t)?D(t):void 0)}function D(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function S(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return A(t.parent,r).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n})}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=A(t.parent,r).filter(e.isJSDocParameterTag);if(i=156}function B(e){return 8<=e&&e<=14}function j(e){return 14<=e&&e<=17}function U(t){return e.isPropertyDeclaration(t)&&e.isPrivateIdentifier(t.name)}function z(e){switch(e){case 125:case 129:case 84:case 133:case 87:case 92:case 122:case 120:case 121:case 141:case 123:return!0}return!1}function J(t){return!!(92&e.modifierToFlag(t))}function V(e){return e&&q(e.kind)}function W(e){switch(e){case 248:case 164:case 165:case 166:case 167:case 205:case 206:return!0;default:return!1}}function q(e){switch(e){case 163:case 168:case 309:case 169:case 170:case 173:case 304:case 174:return!0;default:return W(e)}}function K(e){var t=e.kind;return 165===t||162===t||164===t||166===t||167===t||170===t||226===t}function H(e){return e&&(249===e.kind||218===e.kind)}function G(e){var t=e.kind;return 169===t||168===t||161===t||163===t||170===t}function Q(e){var t=e.kind;return 285===t||286===t||287===t||164===t||166===t||167===t}function $(e){if(e){var t=e.kind;return 194===t||193===t}return!1}function X(e){switch(e.kind){case 193:case 197:return!0}return!1}function Y(e){switch(e.kind){case 194:case 196:return!0}return!1}function Z(e){switch(e){case 198:case 199:case 201:case 200:case 270:case 271:case 274:case 202:case 196:case 204:case 197:case 218:case 205:case 78:case 13:case 8:case 9:case 10:case 14:case 215:case 94:case 103:case 107:case 109:case 105:case 222:case 223:case 99:return!0;default:return!1}}function ee(e){switch(e){case 211:case 212:case 207:case 208:case 209:case 210:case 203:return!0;default:return Z(e)}}function te(e){return function(e){switch(e){case 214:case 216:case 206:case 213:case 217:case 221:case 219:case 332:case 331:return!0;default:return ee(e)}}(M(e).kind)}function re(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ne(e){return 248===e||268===e||249===e||250===e||251===e||252===e||253===e||258===e||257===e||264===e||263===e||256===e}function ie(e){return 238===e||237===e||245===e||232===e||230===e||228===e||235===e||236===e||234===e||231===e||242===e||239===e||241===e||243===e||244===e||229===e||233===e||240===e||330===e||334===e||333===e}function ae(t){return 158===t.kind?t.parent&&326!==t.parent.kind||e.isInJSFile(t):206===(r=t.kind)||195===r||249===r||218===r||165===r||252===r||288===r||267===r||248===r||205===r||166===r||259===r||257===r||262===r||250===r||277===r||164===r||163===r||253===r||256===r||260===r||266===r||159===r||285===r||162===r||161===r||167===r||286===r||251===r||158===r||246===r||327===r||320===r||328===r;var r}function oe(e){return e.kind>=310&&e.kind<=328}e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)},e.getDefaultLibFileName=function(e){switch(e.target){case 99:return"lib.esnext.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"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=function(e,r){return r>=e.start&&r=e.pos&&t<=e.end},e.textSpanContainsTextSpan=function(e,r){return r.start>=e.start&&t(r)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==n(e,t)},e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,r){return i(e.start,e.length,t,r)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,r){return r<=t(e)&&r>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return r(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(r){if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,u=1;u=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=f,e.idText=g,e.symbolName=function(e){return e.valueDeclaration&&U(e.valueDeclaration)?g(e.valueDeclaration.name):f(e.escapedName)},e.nodeHasName=function t(r,n){return!(!v(r)||!e.isIdentifier(r.name)||g(r.name)!==g(n))||!(!e.isVariableStatement(r)||!e.some(r.declarationList.declarations,function(e){return t(e,n)}))},e.getNameOfJSDocTypedef=y,e.isNamedDeclaration=v,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=x,e.getAssignedName=D,e.getJSDocParameterTags=E,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return C(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return C(e,!0)},e.hasJSDocParameterTags=function(t){return!!P(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return P(t,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(t){return O(t,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(t){return P(t,e.isJSDocClassTag)},e.getJSDocPublicTag=function(t){return P(t,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(t){return P(t,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(t){return P(t,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(t){return P(t,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(t){return P(t,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(t){return P(t,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(t){return P(t,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(t){return P(t,e.isJSDocReadonlyTag,!0)},e.getJSDocDeprecatedTag=function(t){return P(t,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(t){return P(t,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(t){return P(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return P(t,e.isJSDocThisTag)},e.getJSDocReturnTag=T,e.getJSDocTemplateTag=function(t){return P(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=k,e.getJSDocType=w,e.getJSDocReturnType=function(t){var r=T(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=k(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=N,e.getJSDocTagsNoCache=function(e){return A(e,!0)},e.getAllJSDocTags=O,e.getAllJSDocTagsOfKind=function(e,t){return N(e).filter(function(e){return e.kind===t})},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(307===t.parent.kind),e.flatMap(t.parent.tags,function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0});if(t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=w(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0},e.isIdentifierOrPrivateIdentifier=function(e){return 78===e.kind||79===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 167===e.kind||166===e.kind},e.isPropertyAccessChain=function(t){return e.isPropertyAccessExpression(t)&&!!(32&t.flags)},e.isElementAccessChain=function(t){return e.isElementAccessExpression(t)&&!!(32&t.flags)},e.isCallChain=function(t){return e.isCallExpression(t)&&!!(32&t.flags)},e.isOptionalChain=F,e.isOptionalChainRoot=I,e.isExpressionOfOptionalChainRoot=function(e){return I(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!F(e.parent)||I(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 213===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments},e.skipPartiallyEmittedExpressions=M,e.isNonNullChain=function(t){return e.isNonNullExpression(t)&&!!(32&t.flags)},e.isBreakOrContinueStatement=function(e){return 238===e.kind||237===e.kind},e.isNamedExportBindings=function(e){return 266===e.kind||265===e.kind},e.isUnparsedTextLike=L,e.isUnparsedNode=function(e){return L(e)||289===e.kind||293===e.kind},e.isJSDocPropertyLikeTag=function(e){return 328===e.kind||322===e.kind},e.isNode=function(e){return R(e.kind)},e.isNodeKind=R,e.isToken=function(e){return e.kind>=0&&e.kind<=155},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=B,e.isLiteralExpression=function(e){return B(e.kind)},e.isTemplateLiteralKind=j,e.isTemplateLiteralToken=function(e){return j(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 262:case 267:return e.parent.parent.isTypeOnly;case 260:return e.parent.isTypeOnly;case 259:return e.isTypeOnly;default:return!1}},e.isStringTextContainingNode=function(e){return 10===e.kind||j(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isPrivateIdentifierPropertyDeclaration=U,e.isPrivateIdentifierPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)},e.isModifierKind=z,e.isParameterPropertyModifier=J,e.isClassMemberModifier=function(e){return J(e)||123===e},e.isModifier=function(e){return z(e.kind)},e.isEntityName=function(e){var t=e.kind;return 156===t||78===t},e.isPropertyName=function(e){var t=e.kind;return 78===t||79===t||10===t||8===t||157===t},e.isBindingName=function(e){var t=e.kind;return 78===t||193===t||194===t},e.isFunctionLike=V,e.isFunctionLikeDeclaration=function(e){return e&&W(e.kind)},e.isFunctionLikeKind=q,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&V(t.parent)},e.isClassElement=K,e.isClassLike=H,e.isAccessor=function(e){return e&&(166===e.kind||167===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 164:case 166:case 167:return!0;default:return!1}},e.isTypeElement=G,e.isClassOrTypeElement=function(e){return G(e)||K(e)},e.isObjectLiteralElementLike=Q,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 173:case 174:return!0}return!1},e.isBindingPattern=$,e.isAssignmentPattern=function(e){var t=e.kind;return 196===t||197===t},e.isArrayBindingElement=function(e){var t=e.kind;return 195===t||219===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 246:case 159:case 195:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return X(e)||Y(e)},e.isObjectBindingOrAssignmentPattern=X,e.isArrayBindingOrAssignmentPattern=Y,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 198===t||156===t||192===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 198===t||156===t},e.isCallLikeExpression=function(e){switch(e.kind){case 272:case 271:case 200:case 201:case 202:case 160:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 200===e.kind||201===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 215===t||14===t},e.isLeftHandSideExpression=function(e){return Z(M(e).kind)},e.isUnaryExpression=function(e){return ee(M(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 212:return!0;case 211:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=te,e.isAssertionExpression=function(e){var t=e.kind;return 203===t||221===t},e.isNotEmittedOrPartiallyEmittedNode=function(t){return e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t)},e.isIterationStatement=function e(t,r){switch(t.kind){case 234:case 235:case 236:case 232:case 233:return!0;case 242:return r&&e(t.statement,r)}return!1},e.isScopeMarker=re,e.hasScopeMarker=function(t){return e.some(t,re)},e.needsScopeMarker=function(t){return!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t))},e.isExternalModuleIndicator=function(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)},e.isForInOrOfStatement=function(e){return 235===e.kind||236===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||te(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||te(t)},e.isModuleBody=function(e){var t=e.kind;return 254===t||253===t||78===t},e.isNamespaceBody=function(e){var t=e.kind;return 254===t||253===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 78===t||253===t},e.isNamedImportBindings=function(e){var t=e.kind;return 261===t||260===t},e.isModuleOrEnumDeclaration=function(e){return 253===e.kind||252===e.kind},e.isDeclaration=ae,e.isDeclarationStatement=function(e){return ne(e.kind)},e.isStatementButNotDeclaration=function(e){return ie(e.kind)},e.isStatement=function(t){var r=t.kind;return ie(r)||ne(r)||function(t){return 227===t.kind&&(void 0===t.parent||244!==t.parent.kind&&284!==t.parent.kind)&&!e.isFunctionBlock(t)}(t)},e.isStatementOrBlock=function(e){var t=e.kind;return ie(t)||ne(t)||227===t},e.isModuleReference=function(e){var t=e.kind;return 269===t||156===t||78===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 107===t||78===t||198===t},e.isJsxChild=function(e){var t=e.kind;return 270===t||280===t||271===t||11===t||274===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 277===t||279===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||280===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 272===t||271===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 281===t||282===t},e.isJSDocNode=function(e){return e.kind>=298&&e.kind<=328},e.isJSDocCommentContainingNode=function(t){return 307===t.kind||306===t.kind||oe(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=oe,e.isSetAccessor=function(e){return 167===e.kind},e.isGetAccessor=function(e){return 166===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 246:case 159:case 195:case 161:case 162:case 285:case 288:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 277===e.kind||279===e.kind||Q(e)},e.isTypeReferenceType=function(e){return 172===e.kind||220===e.kind},e.guessIndentation=function(t){for(var r=1073741823,n=0,i=t;n=0);var n=e.getLineStarts(r),i=r.text;if(t+1===n.length)return i.length-1;var a=n[t],o=n[t+1]-1;for(e.Debug.assert(e.isLineBreak(i.charCodeAt(o)));a<=o&&e.isLineBreak(i.charCodeAt(o));)o--;return o}function _(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function d(e){return!_(e)}function p(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n0?h(t._children[0],r,n):e.skipTrivia((r||u(t)).text,t.pos)}function y(e,t,r){return void 0===r&&(r=!1),v(e.text,t,r)}function v(t,r,n){if(void 0===n&&(n=!1),_(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return function(t){return!!s(t,e.isJSDocTypeExpression)}(r)&&(i=i.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),i}function b(e,t){return void 0===t&&(t=!1),y(u(e),e,t)}function x(e){return e.pos}function D(e){var t=e.emitNode;return t&&t.flags||0}function S(e){var t=bt(e);return 246===t.kind&&284===t.parent.kind}function E(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||T(t))}function C(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function T(e){return!!(1024&e.flags)}function k(e){return E(e)&&w(e)}function w(t){switch(t.parent.kind){case 294:return e.isExternalModule(t.parent);case 254:return E(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function A(t,r){switch(t.kind){case 294:case 255:case 284:case 253:case 234:case 235:case 236:case 165:case 164:case 166:case 167:case 248:case 205:case 206:return!0;case 227:return!e.isFunctionLike(r)}return!1}function N(t){switch(t.kind){case 168:case 169:case 163:case 170:case 173:case 174:case 304:case 249:case 218:case 250:case 251:case 326:case 248:case 164:case 165:case 166:case 167:case 205:case 206:return!0;default:return e.assertType(t),!1}}function P(e){switch(e.kind){case 258:case 257:return!0;default:return!1}}function O(e){return e&&0!==c(e)?b(e):"(Missing)"}function F(t){switch(t.kind){case 78:case 79:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 157:return lt(t.expression)?e.escapeLeadingUnderscores(t.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(t)}}function I(t){switch(t.kind){case 107:return"this";case 79:case 78:return 0===c(t)?e.idText(t):b(t);case 156:return I(t.left)+"."+I(t.right);case 198:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?I(t.expression)+"."+I(t.name):e.Debug.assertNever(t.name);default:return e.Debug.assertNever(t)}}function M(e,t,r,n,i,a,o){var s=R(e,t);return sn(e,s.start,s.length,r,n,i,a,o)}function L(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function R(t,r){var n=r;switch(r.kind){case 294:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):L(t,i);case 246:case 195:case 249:case 218:case 250:case 253:case 252:case 288:case 248:case 205:case 164:case 166:case 167:case 251:case 162:case 161:n=r.name;break;case 206:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&227===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i0?r.statements[0].pos:r.end)}if(void 0===n)return L(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var o=_(n),s=o||e.isJsxText(r)?n.pos:e.skipTrivia(t.text,n.pos);return o?(e.Debug.assert(s===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(s===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(s>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(s<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(s,n.end)}function B(e){return 6===e.scriptKind}function j(t){return!!(2&e.getCombinedNodeFlags(t))}function U(e){return 200===e.kind&&99===e.expression.kind}function z(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function J(e){return 230===e.kind&&10===e.expression.kind}function V(e){return!!(1048576&D(e))}function W(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||o(e,t)},e.optionsHaveModuleResolutionChanges=o,e.findAncestor=s,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=t(i[1],i[0]);if(a)return a}},e.forEachKey=function(e,t){for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},e.copyEntries=function(e,t){e.forEach(function(e,r){t.set(r,e)})},e.usingSingleLineStringWriter=function(e){var t=n.getText();try{return e(n),n.getText()}finally{n.clear(),n.writeKeyword(t)}},e.getFullWidth=c,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,r,n){t.resolvedModules||(t.resolvedModules=new e.Map),t.resolvedModules.set(r,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=new e.Map),t.resolvedTypeReferenceDirectiveNames.set(r,n)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&((r=e.packageId)===(n=t.packageId)||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToString=function(e){var t=e.name,r=e.subModuleName;return(r?t+"/"+r:t)+"@"+e.version},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},e.hasChangesInResolutions=function(t,r,n,i){e.Debug.assert(t.length===r.length);for(var a=0;a=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=u(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"},e.getEndLinePosition=l,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=_,e.nodeIsPresent=d,e.insertStatementsAfterStandardPrologue=function(e,t){return p(e,t,J)},e.insertStatementsAfterCustomPrologue=function(e,t){return p(e,t,g)},e.insertStatementAfterStandardPrologue=function(e,t){return f(e,t,J)},e.insertStatementAfterCustomPrologue=function(e,t){return f(e,t,g)},e.isRecognizedTripleSlashComment=function(t,r,n){if(47===t.charCodeAt(r+1)&&r+2=e.ModuleKind.ES2015)&&r.noImplicitUseStrict))},e.isBlockScope=A,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 320:case 327:case 309:return!0;default:return e.assertType(t),N(t)}},e.isDeclarationWithTypeParameterChildren=N,e.isAnyImportSyntax=P,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 258:case 257:case 229:case 249:case 248:case 253:case 251:case 250:case 252:return!0;default:return!1}},e.isAnyImportOrReExport=function(t){return P(t)||e.isExportDeclaration(t)},e.getEnclosingBlockScopeContainer=function(e){return s(e.parent,function(e){return A(e,e.parent)})},e.declarationNameToString=O,e.getNameFromIndexInfo=function(e){return e.declaration?O(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 157===e.kind&&!lt(e.expression)},e.getTextOfPropertyName=F,e.entityNameToString=I,e.createDiagnosticForNode=function(e,t,r,n,i,a){return M(u(e),e,t,r,n,i,a)},e.createDiagnosticForNodeArray=function(t,r,n,i,a,o,s){var c=e.skipTrivia(t.text,r.pos);return sn(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=M,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=u(e),i=R(n,e);return{file:n,start:i.start,length:i.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},e.createDiagnosticForRange=function(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}},e.getSpanOfTokenAtPosition=L,e.getErrorSpanForNode=R,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=B,e.isEnumConst=function(t){return!!(2048&e.getCombinedModifierFlags(t))},e.isDeclarationReadonly=function(t){return!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent))},e.isVarConst=j,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 200===e.kind&&105===e.expression.kind},e.isImportCall=U,e.isImportMeta=function(t){return e.isMetaProperty(t)&&99===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=z,e.isPrologueDirective=J,e.isCustomPrologue=V,e.isHoistedFunction=function(t){return V(t)&&e.isFunctionDeclaration(t)},e.isHoistedVariableStatement=function(t){return V(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,W)},e.getLeadingCommentRangesOfNode=function(t,r){return 11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,r){var n=159===t.kind||158===t.kind||205===t.kind||206===t.kind||204===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,function(e){return 42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)})},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var q=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var K,H,G,Q,$=/^(\/\/\/\s*/;function X(t){if(171<=t.kind&&t.kind<=192)return!0;switch(t.kind){case 128:case 151:case 143:case 154:case 146:case 131:case 147:case 144:case 149:case 140:return!0;case 113:return 209!==t.parent.kind;case 220:return!wr(t);case 158:return 189===t.parent.kind||184===t.parent.kind;case 78:(156===t.parent.kind&&t.parent.right===t||198===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(78===t.kind||156===t.kind||198===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 156:case 198:case 107:var r=t.parent;if(175===r.kind)return!1;if(192===r.kind)return!r.isTypeOf;if(171<=r.kind&&r.kind<=192)return!0;switch(r.kind){case 220:return!wr(r);case 158:case 326:return t===r.constraint;case 162:case 161:case 159:case 246:return t===r.type;case 248:case 205:case 206:case 165:case 164:case 163:case 166:case 167:return t===r.type;case 168:case 169:case 170:case 203:return t===r.type;case 200:case 201:return e.contains(r.typeArguments,t);case 202:return!1}}return!1}function Y(e){if(e)switch(e.kind){case 195:case 288:case 159:case 285:case 162:case 161:case 286:case 246:return!0}return!1}function Z(e){return 247===e.parent.kind&&229===e.parent.parent.kind}function ee(e,t,r){return e.properties.filter(function(e){if(285===e.kind){var n=F(e.name);return t===n||!!r&&r===n}return!1})}function te(t){if(t&&t.statements.length)return e.tryCast(t.statements[0].expression,e.isObjectLiteralExpression)}function re(t,r){var n=te(t);return n?ee(n,r):e.emptyArray}function ne(t,r){for(e.Debug.assert(294!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 157:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 160:159===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 206:if(!r)continue;case 248:case 205:case 253:case 162:case 161:case 164:case 163:case 165:case 166:case 167:case 168:case 169:case 170:case 252:case 294:return t}}}function ie(e){var t=e.kind;return(198===t||199===t)&&105===e.expression.kind}function ae(t,r,n){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 249:return!0;case 162:return 249===r.kind;case 166:case 167:case 164:return void 0!==t.body&&249===r.kind;case 159:return void 0!==r.body&&(165===r.kind||164===r.kind||167===r.kind)&&249===n.kind}return!1}function oe(e,t,r){return void 0!==e.decorators&&ae(e,t,r)}function se(e,t,r){return oe(e,t,r)||ce(e,t)}function ce(t,r){switch(t.kind){case 249:return e.some(t.members,function(e){return se(e,t,r)});case 164:case 167:return e.some(t.parameters,function(e){return oe(e,t,r)});default:return!1}}function ue(e){var t=e.parent;return(272===t.kind||271===t.kind||273===t.kind)&&t.tagName===e}function le(e){switch(e.kind){case 105:case 103:case 109:case 94:case 13:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 221:case 203:case 222:case 204:case 205:case 218:case 206:case 209:case 207:case 208:case 211:case 212:case 213:case 214:case 217:case 215:case 219:case 270:case 271:case 274:case 216:case 210:case 223:return!0;case 156:for(;156===e.parent.kind;)e=e.parent;return 175===e.parent.kind||ue(e);case 78:if(175===e.parent.kind||ue(e))return!0;case 8:case 9:case 10:case 14:case 107:return _e(e);default:return!1}}function _e(e){var t=e.parent;switch(t.kind){case 246:case 159:case 162:case 161:case 288:case 285:case 195:return t.initializer===e;case 230:case 231:case 232:case 233:case 239:case 240:case 241:case 281:case 243:return t.expression===e;case 234:return t.initializer===e&&247!==t.initializer.kind||t.condition===e||t.incrementor===e;case 235:case 236:return t.initializer===e&&247!==t.initializer.kind||t.expression===e;case 203:case 221:case 225:case 157:return e===t.expression;case 160:case 280:case 279:case 287:return!0;case 220:return t.expression===e&&wr(t);case 286:return t.objectAssignmentInitializer===e;default:return le(t)}}function de(e){for(;156===e.kind||78===e.kind;)e=e.parent;return 175===e.kind}function pe(e){return 257===e.kind&&269===e.moduleReference.kind}function fe(e){return ge(e)}function ge(e){return!!e&&!!(131072&e.flags)}function me(t,r){if(200!==t.kind)return!1;var n=t.expression,i=t.arguments;return 78===n.kind&&"require"===n.escapedText&&1===i.length&&(!r||e.isStringLiteralLike(i[0]))}function he(t,r){return e.isVariableDeclaration(t)&&!!t.initializer&&me(t.initializer,r)}function ye(t){return e.isBinaryExpression(t)||Gr(t)||e.isIdentifier(t)||e.isCallExpression(t)}function ve(t){return ge(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&Ar(t.name)&&xe(t.name,t.initializer.left)?t.initializer.right:t.initializer}function be(t,r){if(e.isCallExpression(t)){var n=Ye(t.expression);return 205===n.kind||206===n.kind?t:void 0}return 205===t.kind||218===t.kind||206===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function xe(t,r){if(mt(t)&&mt(r))return ht(t)===ht(r);if(e.isIdentifier(t)&&we(r)&&(107===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))){var n=Fe(r);return e.isPrivateIdentifier(n)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),xe(t,n)}return!(!we(t)||!we(r))&&Me(t)===Me(r)&&xe(t.expression,r.expression)}function De(e){for(;kr(e,!0);)e=e.right;return e}function Se(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Ee(t){return e.isIdentifier(t)&&"module"===t.escapedText}function Ce(t){return(e.isPropertyAccessExpression(t)||Ae(t))&&Ee(t.expression)&&"exports"===Me(t)}function Te(t){var r=function(t){if(e.isCallExpression(t)){if(!ke(t))return 0;var r=t.arguments[0];return Se(r)||Ce(r)?8:Ne(r)&&"prototype"===Me(r)?9:7}return 62!==t.operatorToken.kind||!Gr(t.left)||(n=De(t),e.isVoidExpression(n)&&e.isNumericLiteral(n.expression)&&"0"===n.expression.text)?0:Oe(t.left.expression,!0)&&"prototype"===Me(t.left)&&e.isObjectLiteralExpression(Re(t))?6:Le(t.left);var n}(t);return 5===r||ge(t)?r:0}function ke(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&<(t.arguments[1])&&Oe(t.arguments[0],!0)}function we(t){return e.isPropertyAccessExpression(t)||Ae(t)}function Ae(t){return e.isElementAccessExpression(t)&&(lt(t.argumentExpression)||ft(t.argumentExpression))}function Ne(t,r){return e.isPropertyAccessExpression(t)&&(!r&&107===t.expression.kind||e.isIdentifier(t.name)&&Oe(t.expression,!0))||Pe(t,r)}function Pe(e,t){return Ae(e)&&(!t&&107===e.expression.kind||Ar(e.expression)||Ne(e.expression,!0))}function Oe(e,t){return Ar(e)||Ne(e,t)}function Fe(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function Ie(t){if(e.isPropertyAccessExpression(t))return t.name;var r=Ye(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function Me(t){var r=Ie(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}if(e.isElementAccessExpression(t)&&ft(t.argumentExpression))return yt(e.idText(t.argumentExpression.name))}function Le(t){if(107===t.expression.kind)return 4;if(Ce(t))return 2;if(Oe(t.expression,!0)){if(Pr(t.expression))return 3;for(var r=t;!e.isIdentifier(r.expression);)r=r.expression;var n=r.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===Me(r))&&Ne(t))return 1;if(Oe(t,!0)||e.isElementAccessExpression(t)&&pt(t))return 5}return 0}function Re(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function Be(t){switch(t.parent.kind){case 258:case 264:return t.parent;case 269:return t.parent.parent;case 200:return U(t.parent)||me(t.parent,!1)?t.parent:void 0;case 190:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function je(e){return 327===e.kind||320===e.kind||321===e.kind}function Ue(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Te(t.expression)&&e.isBinaryExpression(t.expression.right)&&(56===t.expression.right.operatorToken.kind||60===t.expression.right.operatorToken.kind)?t.expression.right.right:void 0}function ze(e){switch(e.kind){case 229:var t=Je(e);return t&&t.initializer;case 162:case 285:return e.initializer}}function Je(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function Ve(t){return e.isModuleDeclaration(t)&&t.body&&253===t.body.kind?t.body:void 0}function We(t){var r=t.parent;return 285===r.kind||263===r.kind||162===r.kind||230===r.kind&&198===t.kind||Ve(r)||e.isBinaryExpression(t)&&62===t.operatorToken.kind?r:r.parent&&(Je(r.parent)===t||e.isBinaryExpression(r)&&62===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(Je(r.parent.parent)||ze(r.parent.parent)===t||Ue(r.parent.parent))?r.parent.parent:void 0}function qe(t){var r=Ke(t);return r&&e.isFunctionLike(r)?r:void 0}function Ke(t){var r=He(t);return Ue(r)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&62===t.expression.operatorToken.kind?De(t.expression):void 0}(r)||ze(r)||Je(r)||Ve(r)||r}function He(t){return e.Debug.checkDefined(s(t.parent,e.isJSDoc)).parent}function Ge(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&305===r.kind}function Qe(e){for(var t=e.parent;;){switch(t.kind){case 213:var r=t.operatorToken.kind;return Er(r)&&t.left===e?62===r||Sr(r)?1:2:0;case 211:case 212:var n=t.operator;return 45===n||46===n?2:0;case 235:case 236:return t.initializer===e?1:0;case 204:case 196:case 217:case 222:e=t;break;case 286:if(t.name!==e)return 0;e=t.parent;break;case 285:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function $e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function Xe(e){return $e(e,204)}function Ye(t){return e.skipOuterExpressions(t,1)}function Ze(t){return Ar(t)||e.isClassExpression(t)}function et(e){return Ze(tt(e))}function tt(t){return e.isExportAssignment(t)?t.expression:t.right}function rt(t){var r=nt(t);if(r&&ge(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function nt(e){var t=ot(e.heritageClauses,93);return t&&t.types.length>0?t.types[0]:void 0}function it(t){if(ge(t))return e.getJSDocImplementsTags(t).map(function(e){return e.class});var r=ot(t.heritageClauses,116);return null==r?void 0:r.types}function at(e){var t=ot(e.heritageClauses,93);return t?t.types:void 0}function ot(e,t){if(e)for(var r=0,n=e;r0&&e.every(t.declarationList.declarations,function(e){return he(e,r)})},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===y(t,e).charCodeAt(0)},e.getDeclarationOfExpando=function(t){if(t.parent){var r,n;if(e.isVariableDeclaration(t.parent)&&t.parent.initializer===t){if(!ge(t)&&!j(t.parent))return;r=t.parent.name,n=t.parent}else if(e.isBinaryExpression(t.parent)){var i=t.parent,a=t.parent.operatorToken.kind;if(62===a&&i.right===t)n=r=i.left;else if(!(56!==a&&60!==a||(e.isVariableDeclaration(i.parent)&&i.parent.initializer===i?(r=i.parent.name,n=i.parent):e.isBinaryExpression(i.parent)&&62===i.parent.operatorToken.kind&&i.parent.right===i&&(n=r=i.parent.left),r&&Oe(r)&&xe(r,i.left))))return}if(r&&be(t,Pr(r)))return n}},e.isAssignmentDeclaration=ye,e.getEffectiveInitializer=ve,e.getDeclaredExpandoInitializer=function(e){var t=ve(e);return t&&be(t,Pr(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind){var r=Pr(t.parent.left);return be(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&be(r.right,n);if(i&&xe(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&ke(t)){var n=function(t,r){return e.forEach(t.properties,function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&be(t.initializer,r)})}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=be,e.isDefaultedExpandoInitializer=function(t){var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&be(t.right,Pr(r))&&Ar(r)&&xe(r,t.left)},e.getNameOfExpando=function(t){if(e.isBinaryExpression(t.parent)){var r=56!==t.parent.operatorToken.kind&&60!==t.parent.operatorToken.kind||!e.isBinaryExpression(t.parent.parent)?t.parent:t.parent.parent;if(62===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.getRightMostAssignedExpression=De,e.isExportsIdentifier=Se,e.isModuleIdentifier=Ee,e.isModuleExportsAccessExpression=Ce,e.getAssignmentDeclarationKind=Te,e.isBindableObjectDefinePropertyCall=ke,e.isLiteralLikeAccess=we,e.isLiteralLikeElementAccess=Ae,e.isBindableStaticAccessExpression=Ne,e.isBindableStaticElementAccessExpression=Pe,e.isBindableStaticNameExpression=Oe,e.getNameOrArgument=Fe,e.getElementOrPropertyAccessArgumentExpressionOrName=Ie,e.getElementOrPropertyAccessName=Me,e.getAssignmentDeclarationPropertyAccessKind=Le,e.getInitializerOfBinaryExpression=Re,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===Te(t)},e.isSpecialPropertyDeclaration=function(t){return ge(t)&&t.parent&&230===t.parent.kind&&(!e.isElementAccessExpression(t)||Ae(t))&&!!e.getJSDocTypeTag(t.parent)},e.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(8388608&t.flags)||8388608&r.flags)&&ye(r)&&!ye(t)||r.kind!==t.kind&&C(r))&&(e.valueDeclaration=t)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 248===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.importFromModuleSpecifier=function(t){return Be(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=Be,e.getExternalModuleName=function(t){switch(t.kind){case 258:case 264:return t.moduleSpecifier;case 257:return 269===t.moduleReference.kind?t.moduleReference.expression:void 0;case 192:return z(t)?t.argument.literal:void 0;default:return e.Debug.assertNever(t)}},e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 258:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 257:return t;case 264:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 258===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(t,r){var n;return t.name&&(n=r(t))||t.namedBindings&&(n=e.isNamespaceImport(t.namedBindings)?r(t.namedBindings):e.forEach(t.namedBindings.elements,r))?n:void 0},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 159:case 164:case 163:case 286:case 285:case 162:case 161:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(t){var r=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):void 0,n=e.tryCast(r&&r.name,e.isIdentifier);return!!n&&"new"===n.escapedText},e.isJSDocTypeAlias=je,e.isTypeAlias=function(t){return je(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=ze,e.getSingleVariableOfVariableStatement=Je,e.getJSDocCommentsAndTags=function(t,r){var n;Y(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(n=e.append(n,e.last(t.initializer.jsDoc)));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(n=e.append(n,e.last(i.jsDoc))),159===i.kind){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(158===i.kind){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=We(i)}return n||e.emptyArray},e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=qe(t);if(n){var i=e.find(n.parameters,function(e){return 78===e.name.kind&&e.name.escapedText===r});return i&&i.symbol}}},e.getHostSignatureFromJSDoc=qe,e.getEffectiveJSDocHost=Ke,e.getJSDocHost=He,e.getTypeParameterFromJsDoc=function(t){var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return n&&e.find(n,function(e){return e.name.escapedText===r})},e.hasRestParameter=function(t){var r=e.lastOrUndefined(t.parameters);return!!r&&Ge(r)},e.isRestParameter=Ge,e.hasTypeArguments=function(e){return!!e.typeArguments},(Q=e.AssignmentKind||(e.AssignmentKind={}))[Q.None=0]="None",Q[Q.Definite=1]="Definite",Q[Q.Compound=2]="Compound",e.getAssignmentTargetKind=Qe,e.isAssignmentTarget=function(e){return 0!==Qe(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 227:case 229:case 240:case 231:case 241:case 255:case 281:case 282:case 242:case 234:case 235:case 236:case 232:case 233:case 244:case 284:return!0}return!1},e.isValueSignatureDeclaration=function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)},e.walkUpParenthesizedTypes=function(e){return $e(e,185)},e.walkUpParenthesizedExpressions=Xe,e.skipParentheses=Ye,e.isDeleteTarget=function(e){return(198===e.kind||199===e.kind)&&(e=Xe(e.parent))&&207===e.kind},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.getDeclarationFromName=function(t){var r=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(r))return r.parent;case 78:if(e.isDeclaration(r))return r.name===t?r:void 0;if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:void 0}var i=r.parent;return e.isBinaryExpression(i)&&0!==Te(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 79:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return lt(t)&&157===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 162:case 161:case 164:case 163:case 166:case 167:case 288:case 285:case 198:return t.name===e;case 156:return t.right===e;case 195:case 262:return t.propertyName===e;case 267:case 277:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return 257===t.kind||256===t.kind||259===t.kind&&!!t.name||260===t.kind||266===t.kind||262===t.kind||267===t.kind||263===t.kind&&et(t)||e.isBinaryExpression(t)&&2===Te(t)&&et(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind&&Ze(t.parent.right)||286===t.kind||285===t.kind&&Ze(t.initializer)},e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 259:case 262:case 260:case 267:case 263:case 257:return t.parent;case 156:do{t=t.parent}while(156===t.parent.kind);return e(t)}},e.isAliasableExpression=Ze,e.exportAssignmentIsAlias=et,e.getExportAssignmentExpression=tt,e.getPropertyAssignmentAliasLikeExpression=function(e){return 286===e.kind?e.name:285===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=rt,e.getClassExtendsHeritageElement=nt,e.getEffectiveImplementsTypeNodes=it,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?at(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(rt(t)),it(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=at,e.getHeritageClause=ot,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=st,e.isContextualKeyword=ct,e.isNonContextualKeyword=ut,e.isFutureReservedKeyword=function(e){return 116<=e&&e<=124},e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&ut(r)},e.isStringAKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&st(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!ct(t)},e.isTrivia=function(e){return 2<=e&&e<=7},(G=e.FunctionFlags||(e.FunctionFlags={}))[G.Normal=0]="Normal",G[G.Generator=1]="Generator",G[G.Async=2]="Async",G[G.Invalid=4]="Invalid",G[G.AsyncGenerator=3]="AsyncGenerator",e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 248:case 205:case 164:e.asteriskToken&&(t|=1);case 206:_r(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 248:case 205:case 206:case 164:return void 0!==e.body&&void 0===e.asteriskToken&&_r(e,256)}return!1},e.isStringOrNumericLiteralLike=lt,e.isSignedNumericLiteral=_t,e.hasDynamicName=dt,e.isDynamicName=pt,e.isWellKnownSymbolSyntactically=ft,e.getPropertyNameForPropertyNameNode=gt,e.isPropertyNameLiteral=mt,e.getTextOfIdentifierOrLiteral=ht,e.getEscapedTextOfIdentifierOrLiteral=function(t){return e.isIdentifierOrPrivateIdentifier(t)?t.escapedText:e.escapeLeadingUnderscores(t.text)},e.getPropertyNameForUniqueESSymbol=function(t){return"__@"+e.getSymbolId(t)+"@"+t.escapedName},e.getPropertyNameForKnownSymbolName=yt,e.getSymbolNameForPrivateIdentifier=function(t,r){return"__#"+e.getSymbolId(t)+"@"+r},e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isESSymbolIdentifier=vt,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 159===bt(e).kind},e.getRootDeclaration=bt,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 165===t||205===t||248===t||206===t||164===t||166===t||167===t||253===t||294===t},e.nodeIsSynthesized=xt,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},(H=e.Associativity||(e.Associativity={}))[H.Left=0]="Left",H[H.Right=1]="Right",e.getExpressionAssociativity=function(e){var t=St(e);return Dt(e.kind,t,201===e.kind&&void 0!==e.arguments)},e.getOperatorAssociativity=Dt,e.getExpressionPrecedence=function(e){var t=St(e);return Et(e.kind,t,201===e.kind&&void 0!==e.arguments)},e.getOperator=St,(K=e.OperatorPrecedence||(e.OperatorPrecedence={}))[K.Comma=0]="Comma",K[K.Spread=1]="Spread",K[K.Yield=2]="Yield",K[K.Assignment=3]="Assignment",K[K.Conditional=4]="Conditional",K[K.Coalesce=4]="Coalesce",K[K.LogicalOR=5]="LogicalOR",K[K.LogicalAND=6]="LogicalAND",K[K.BitwiseOR=7]="BitwiseOR",K[K.BitwiseXOR=8]="BitwiseXOR",K[K.BitwiseAND=9]="BitwiseAND",K[K.Equality=10]="Equality",K[K.Relational=11]="Relational",K[K.Shift=12]="Shift",K[K.Additive=13]="Additive",K[K.Multiplicative=14]="Multiplicative",K[K.Exponentiation=15]="Exponentiation",K[K.Unary=16]="Unary",K[K.Update=17]="Update",K[K.LeftHandSide=18]="LeftHandSide",K[K.Member=19]="Member",K[K.Primary=20]="Primary",K[K.Highest=20]="Highest",K[K.Lowest=0]="Lowest",K[K.Invalid=-1]="Invalid",e.getOperatorPrecedence=Et,e.getBinaryOperatorPrecedence=Ct,e.createDiagnosticCollection=function(){var t=[],r=[],n=new e.Map,i=!1;return{add:function(a){var o;a.file?(o=n.get(a.file.fileName))||(n.set(a.file.fileName,o=[]),e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t),e.insertSorted(o,a,ln)},lookup:function(r){var i;if(i=r.file?n.get(r.file.fileName):t){var a=e.binarySearch(i,r,e.identity,_n);return a>=0?i[a]:void 0}},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return n.get(i)||[];var a=e.flatMapToMutable(r,function(e){return n.get(e)});return t.length?(a.unshift.apply(a,t),a):a},reattachFileDiagnostics:function(t){e.forEach(n.get(t.fileName),function(e){return e.file=t})}}};var Tt=/\$\{/g;e.hasInvalidEscape=function(t){return t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,function(e){return!!e.literal.templateFlags}))};var kt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,wt=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,At=/[\\`]/g,Nt=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085"}));function Pt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Ot(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return Nt.get(e)||Pt(e.charCodeAt(0))}function Ft(e,t){return e.replace(96===t?At:39===t?wt:kt,Ot)}e.escapeString=Ft;var It=/[^\u0000-\u007F]/g;function Mt(e,t){return e=Ft(e,t),It.test(e)?e.replace(It,function(e){return Pt(e.charCodeAt(0))}):e}e.escapeNonAsciiString=Mt;var Lt=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Rt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Bt=new e.Map(e.getEntries({'"':""","'":"'"}));function jt(e){return 0===e.charCodeAt(0)?"�":Bt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Ut(e,t){return e.replace(39===t?Rt:Lt,jt)}e.escapeJsxAttributeString=Ut,e.stripQuotes=function(e){var t,r=e.length;return r>=2&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e},e.isIntrinsicJsxName=function(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")};var zt=[""," "];function Jt(e){return void 0===zt[e]&&(zt[e]=Jt(e-1)+zt[1]),zt[e]}function Vt(){return zt[1].length}function Wt(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function qt(e,t,r){return t.moduleName||Kt(e,t.fileName,r&&r.fileName)}function Kt(t,r,n){var i=function(e){return t.getCanonicalFileName(e)},a=e.toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),s=Kn(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function Ht(e,t,r,n,i){var a=t.declarationDir||t.outDir;return Kn(a?Xt(e,a,r,n,i):e)+".d.ts"}function Gt(e){return e.outFile||e.out}function Qt(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&fe(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&!(B(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&(r||!t.isSourceOfProjectReferenceRedirect(e.fileName))}function $t(e,t,r){return Xt(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}function Xt(t,r,n,i,a){var o=e.getNormalizedAbsolutePath(t,n);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(r,o)}function Yt(t,r,n){t.length>e.getRootLength(t)&&!n(t)&&(Yt(e.getDirectoryPath(t),r,n),r(t))}function Zt(t,r){return e.computeLineOfPosition(t,r)}function er(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&tr(e.parameters[0]);return e.parameters[t?1:0]}}function tr(e){return rr(e.name)}function rr(e){return!!e&&78===e.kind&&nr(e)}function nr(e){return 107===e.originalKeywordKind}function ir(t){if(ge(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!ge(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function ar(e,t,r,n){or(e,t,r.pos,n)}function or(e,t,r,n){n&&n.length&&r!==n[0].pos&&Zt(e,r)!==Zt(e,n[0].pos)&&t.writeLine()}function sr(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,u=0,l=n;u=0&&e.kind<=155?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|br(e)),!t||4096&e.modifierFlagsCache||!r&&!ge(e)||!e.parent||(e.modifierFlagsCache|=4096|vr(e)),-536875009&e.modifierFlagsCache)}function hr(e){return mr(e,!0)}function yr(e){return mr(e,!1)}function vr(t){var r=0;return t.parent&&!e.isParameter(t)&&(ge(t)&&(e.getJSDocPublicTagNoCache(t)&&(r|=4),e.getJSDocPrivateTagNoCache(t)&&(r|=8),e.getJSDocProtectedTagNoCache(t)&&(r|=16),e.getJSDocReadonlyTagNoCache(t)&&(r|=64)),e.getJSDocDeprecatedTagNoCache(t)&&(r|=8192)),r}function br(e){var t=xr(e.modifiers);return(4&e.flags||78===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function xr(e){var t=0;if(e)for(var r=0,n=e;r=62&&e<=77}function Cr(e){var t=Tr(e);return t&&!t.isImplements?t.class:void 0}function Tr(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:116===t.parent.token}:void 0}function kr(t,r){return e.isBinaryExpression(t)&&(r?62===t.operatorToken.kind:Er(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function wr(e){return void 0!==Cr(e)}function Ar(e){return 78===e.kind||Nr(e)}function Nr(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&Ar(t.expression)}function Pr(e){return Ne(e)&&"prototype"===Me(e)}e.getIndentString=Jt,e.getIndentSize=Vt,e.createTextWriter=function(t){var r,n,i,a,o,s=!1;function c(t){var n=e.computeLineStarts(t);n.length>1?(a=a+n.length-1,o=r.length-t.length+e.last(n),i=o-r.length==0):i=!1}function u(e){e&&e.length&&(i&&(e=Jt(n)+e,i=!1),r+=e,c(e))}function l(e){e&&(s=!1),u(e)}function _(){r="",n=0,i=!0,a=0,o=0,s=!1}return _(),{write:l,rawWrite:function(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(e){i&&!e||(a++,o=(r+=t).length,i=!0,s=!1)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*Vt():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!r.length&&e.isWhiteSpaceLike(r.charCodeAt(r.length-1))},clear:_,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:function(e,t){return l(e)},writeTrailingSemicolon:l,writeComment:function(e){e&&(s=!0),u(e)},getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return a(a({},e),{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){r(),e.writeLiteral(t)},writeStringLiteral:function(t){r(),e.writeStringLiteral(t)},writeSymbol:function(t,n){r(),e.writeSymbol(t,n)},writePunctuation:function(t){r(),e.writePunctuation(t)},writeKeyword:function(t){r(),e.writeKeyword(t)},writeOperator:function(t){r(),e.writeOperator(t)},writeParameter:function(t){r(),e.writeParameter(t)},writeSpace:function(t){r(),e.writeSpace(t)},writeProperty:function(t){r(),e.writeProperty(t)},writeComment:function(t){r(),e.writeComment(t)},writeLine:function(){r(),e.writeLine()},increaseIndent:function(){r(),e.increaseIndent()},decreaseIndent:function(){r(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=Wt,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(Wt(t))},e.getResolvedExternalModuleName=qt,e.getExternalModuleNameFromDeclaration=function(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!n.isDeclarationFile)return qt(e,n)},e.getExternalModuleNameFromPath=Kt,e.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return Kn(n.outDir?$t(e,t,n.outDir):e)+r},e.getDeclarationEmitOutputFilePath=function(e,t){return Ht(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})},e.getDeclarationEmitOutputFilePathWorker=Ht,e.outFile=Gt,e.getSourceFilesToEmit=function(t,r,n){var i=t.getCompilerOptions();if(Gt(i)){var a=fn(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(r){return(o||!e.isExternalModule(r))&&Qt(r,t,n)})}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,function(e){return Qt(e,t,n)})},e.sourceFileMayBeEmitted=Qt,e.getSourceFilePathInNewDir=$t,e.getSourceFilePathInNewDirWorker=Xt,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,function(t){r.add(cn(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))},o)},e.writeFileEnsuringDirectories=function(t,r,n,i,a,o){try{i(t,r,n)}catch(s){Yt(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,r,n)}},e.getLineOfLocalPosition=function(t,r){var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)},e.getLineOfLocalPositionFromLineMap=Zt,e.getFirstConstructorWithBody=function(t){return e.find(t.members,function(t){return e.isConstructorDeclaration(t)&&d(t.body)})},e.getSetAccessorValueParameter=er,e.getSetAccessorTypeAnnotationNode=function(e){var t=er(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(tr(r))return r}},e.parameterIsThisKeyword=tr,e.isThisIdentifier=rr,e.identifierIsThisKeyword=nr,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return dt(r)?(n=r,166===r.kind?a=r:167===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(t){e.isAccessor(t)&&_r(t,32)===_r(r,32)&>(t.name)===gt(r.name)&&(n?i||(i=t):n=t,166!==t.kind||a||(a=t),167!==t.kind||o||(o=t))}),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=ir,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(ge(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(307===t.parent.kind&&t.parent.tags.some(je))}(t)?t.typeParameters:void 0})},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=er(e);return t&&ir(t)},e.emitNewLineBeforeLeadingComments=ar,e.emitNewLineBeforeLeadingCommentsOfPosition=or,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&Zt(e,r)!==Zt(e,n)&&t.writeLine()},e.emitComments=sr,e.emitDetachedComments=function(t,r,n,i,a,o,s){var c,u;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),function(e){return m(t,e.pos)})):c=e.getLeadingCommentRanges(t,a.pos),c){for(var l=[],_=void 0,d=0,p=c;d=g+2)break}l.push(f),_=f}l.length&&(g=Zt(r,e.last(l).end),Zt(r,e.skipTrivia(t,a.pos))>=g+2&&(ar(r,n,a,c),sr(t,r,n,l,!1,!0,o,i),u={nodePos:a.pos,detachedCommentEndPos:e.last(l).end}))}return u},e.writeCommentRange=function(t,r,n,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,u=void 0,l=i,_=s.line;l0){var f=p%Vt(),g=Jt((p-f)/Vt());for(n.rawWrite(g);f;)n.rawWrite(" "),f--}else n.rawWrite("")}cr(t,a,n,o,l,d),l=d}else n.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=function(e){return 0!==hr(e)},e.hasSyntacticModifiers=function(e){return 0!==yr(e)},e.hasEffectiveModifier=lr,e.hasSyntacticModifier=_r,e.hasStaticModifier=dr,e.hasEffectiveReadonlyModifier=pr,e.getSelectedEffectiveModifierFlags=fr,e.getSelectedSyntacticModifierFlags=gr,e.getEffectiveModifierFlags=hr,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return mr(e,!0,!0)},e.getSyntacticModifierFlags=yr,e.getEffectiveModifierFlagsNoCache=function(e){return br(e)|vr(e)},e.getSyntacticModifierFlagsNoCache=br,e.modifiersToFlags=xr,e.modifierToFlag=Dr,e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=Sr,e.isLogicalOrCoalescingAssignmentExpression=function(e){return Sr(e.operatorToken.kind)},e.isAssignmentOperator=Er,e.tryGetClassExtendingExpressionWithTypeArguments=Cr,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Tr,e.isAssignmentExpression=kr,e.isDestructuringAssignment=function(e){if(kr(e,!0)){var t=e.left.kind;return 197===t||196===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=wr,e.isEntityNameExpression=Ar,e.getFirstIdentifier=function(e){switch(e.kind){case 78:return e;case 156:do{e=e.left}while(78!==e.kind);return e;case 198:do{e=e.expression}while(78!==e.kind);return e}},e.isDottedName=function e(t){return 78===t.kind||107===t.kind||105===t.kind||198===t.kind&&e(t.expression)||204===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=Nr,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){var n=t(r.expression);if(void 0!==n)return n+"."+I(r.name)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=Pr,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 156===e.parent.kind&&e.parent.right===e||198===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 197===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 196===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){if(function(t){return t&&e.length(t.declarations)>0&&_r(t.declarations[0],512)}(t))for(var r=0,n=t.declarations;r>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r}(t),s=0,c=o.length;s>4,n=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],s+1>=c?n=i=64:s+2>=c&&(i=64),a+=Fr.charAt(o[s]>>2)+Fr.charAt(r)+Fr.charAt(n)+Fr.charAt(i),s+=3;return a}function Mr(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t||-1===r),{pos:t,end:r}}function Lr(e,t){return Mr(t,e.end)}function Rr(e){return e.decorators&&e.decorators.length>0?Lr(e,e.decorators.end):e}function Br(e,t,r){return jr(Ur(e,r,!1),t.end,r)}function jr(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function Ur(t,r,n){return $n(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function zr(e){return void 0!==e.initializer}function Jr(e){return 33554432&e.flags?e.checkFlags:0}function Vr(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 204:return Vr(r);case 212:case 211:var n=r.operator;return 45===n||46===n?o():0;case 213:var i=r.operatorToken;return r.left===t&&Er(i.kind)?62===i.kind?1:o():0;case 198:return r.name!==t?0:Vr(r);case 285:var a=Vr(r.parent);return t===r.name?function(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}(a):a;case 286:return t===r.objectAssignmentInitializer?0:Vr(r.parent);case 196:return Vr(r);default:return 0}function o(){return r.parent&&230===function(e){for(;204===e.kind;)e=e.parent;return e}(r.parent).kind?1:2}}function Wr(e,t,r){var n=r.onDeleteValue,i=r.onExistingValue;e.forEach(function(r,a){var o=t.get(a);void 0===o?(e.delete(a),n(r,a)):i&&i(r,o,a)})}function qr(e){if(32&e.flags){var t=Kr(e);return!!t&&_r(t,128)}return!1}function Kr(t){return e.find(t.declarations,e.isClassLike)}function Hr(e){return 3899393&e.flags?e.objectFlags:0}function Gr(e){return 198===e.kind||199===e.kind}function Qr(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function $r(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function Xr(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function Yr(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Zr(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function en(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function tn(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function rn(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,function(t,i){return""+e.Debug.checkDefined(r[+i+n])})}function nn(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function an(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function on(t,r){var n=r.fileName||"",i=r.text.length;e.Debug.assertEqual(t.fileName,n),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o4&&(a=rn(a,arguments,4)),{file:t,start:r,length:n,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function cn(e){var t=nn(e);return arguments.length>1&&(t=rn(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function un(e){return e.file?e.file.path:void 0}function ln(t,r){return _n(t,r)||function(t,r){return t.relatedInformation||r.relatedInformation?t.relatedInformation&&r.relatedInformation?e.compareValues(t.relatedInformation.length,r.relatedInformation.length)||e.forEach(t.relatedInformation,function(e,t){return ln(e,r.relatedInformation[t])})||0:t.relatedInformation?-1:1:0}(t,r)||0}function _n(t,r){return e.compareStringsCaseSensitive(un(t),un(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||dn(t.messageText,r.messageText)||0}function dn(t,r){if("string"==typeof t&&"string"==typeof r)return e.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1;var n=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(n)return n;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;for(var i=Math.min(t.next.length,r.next.length),a=0;ar.next.length?1:0}function pn(e){return e.target||0}function fn(t){return"number"==typeof t.module?t.module:pn(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function gn(e){return!(!e.declaration&&!e.composite)}function mn(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function hn(e,t){return t.strictFlag?mn(e,t.name):e[t.name]}function yn(e){for(var t=!1,r=0;r>4&3,l=(15&o)<<4|s>>2&15,_=(3&s)<<6|63&c;0===l&&0!==s?n.push(u):0===_&&0!==c?n.push(u,l):n.push(u,l,_),i+=4}return function(e){for(var t="",r=0,n=e.length;r0?Lr(e,e.modifiers.end):Rr(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return Mr(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return Br(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return jr(Ur(e,r,!1),Ur(t,r,!1),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return jr(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=Br,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return jr(e.end,Ur(t,r,!1),r)},e.getLinesBetweenRangeEndAndRangeStart=function(t,r,n,i){var a=Ur(r,n,i);return e.getLinesBetweenPositions(n,t.end,a)},e.getLinesBetweenRangeEndPositions=function(t,r,n){return e.getLinesBetweenPositions(n,t.end,r.end)},e.isNodeArrayMultiLine=function(e,t){return!jr(e.pos,e.end,t)},e.positionsAreOnSameLine=jr,e.getStartPositionOfRange=Ur,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i),o=function(t,r,n){for(void 0===r&&(r=0);t-- >r;)if(!e.isWhiteSpaceLike(n.text.charCodeAt(t)))return t}(a,r,n);return e.getLinesBetweenPositions(n,null!=o?o:r,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i);return e.getLinesBetweenPositions(n,t,Math.min(r,a))},e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 252:case 253:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,zr)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=Jr,e.getDeclarationModifierFlagsFromSymbol=function(t){if(t.valueDeclaration){var r=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?r:-29&r}if(6&Jr(t)){var n=t.checkFlags;return(1024&n?8:256&n?4:16)|(2048&n?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===Vr(e)},e.isWriteAccess=function(e){return 0!==Vr(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Or||(Or={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=Wr,e.mutateMap=function(e,t,r){Wr(e,t,r);var n=r.createNewValue;t.forEach(function(t,r){e.has(r)||e.set(r,n(r,t))})},e.isAbstractConstructorType=function(e){return!!(16&Hr(e))&&!!e.symbol&&qr(e.symbol)},e.isAbstractConstructorSymbol=qr,e.getClassLikeDeclarationOfSymbol=Kr,e.getObjectFlags=Hr,e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(t,r){return!!e.forEachAncestorDirectory(t,function(e){return!!r(e)||void 0})},e.isUMDExportSymbol=function(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:b(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,function(e){d(e)&&(r=e)},function(e){for(var t=e.length-1;t>=0;t--)if(d(e[t])){r=e[t];break}}),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),t=String(t),!e.has(t)&&(e.set(t,r),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=171&&e<=192||128===e||151===e||143===e||154===e||144===e||131===e||146===e||147===e||113===e||149===e||140===e||220===e||299===e||300===e||301===e||302===e||303===e||304===e||305===e},e.isAccessExpression=Gr,e.getNameOfAccessExpression=function(t){return 198===t.kind?t.name:(e.Debug.assert(199===t.kind),t.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 261===e.kind||265===e.kind},e.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 212:e=e.operand;continue;case 213:e=e.left;continue;case 214:e=e.condition;continue;case 202:e=e.tag;continue;case 200:if(t)return e;case 221:case 199:case 198:case 222:case 331:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return Yr},getTokenConstructor:function(){return Zr},getIdentifierConstructor:function(){return en},getPrivateIdentifierConstructor:function(){return Yr},getSourceFileConstructor:function(){return Yr},getSymbolConstructor:function(){return Qr},getTypeConstructor:function(){return $r},getSignatureConstructor:function(){return Xr},getSourceMapSourceConstructor:function(){return tn}},e.setObjectAllocator=function(t){e.objectAllocator=t},e.formatStringFromArgs=rn,e.setLocalizedDiagnosticMessages=function(t){e.localizedDiagnosticMessages=t},e.getLocaleSpecificMessage=nn,e.createDetachedDiagnostic=function(t,r,n,i){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0);var a=nn(i);return arguments.length>4&&(a=rn(a,arguments,4)),{file:void 0,start:r,length:n,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:t}},e.attachFileToDiagnostics=function(e,t){for(var r=[],n=0,i=e;n2&&(r=rn(r,arguments,2)),r},e.createCompilerDiagnostic=cn,e.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},e.chainDiagnosticMessages=function(e,t){var r=nn(t);return arguments.length>2&&(r=rn(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next[0];r.next=[t]},e.compareDiagnostics=ln,e.compareDiagnosticsSkipRelatedInformation=_n,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getEmitScriptTarget=pn,e.getEmitModuleKind=fn,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;return void 0===r&&(r=fn(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r},e.hasJsonModuleEmitEnabled=function(t){switch(fn(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ESNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!gn(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var r=fn(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop||r===e.ModuleKind.System},e.getEmitDeclarations=gn,e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=mn,e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return r!==t&&e.semanticDiagnosticsOptionDeclarations.some(function(e){return!Zn(hn(r,e),hn(t,e))})},e.compilerOptionsAffectEmit=function(t,r){return r!==t&&e.affectsEmitOptionDeclarations.some(function(e){return!Zn(hn(r,e),hn(t,e))})},e.getCompilerOptionValue=hn,e.hasZeroOrOneAsteriskCharacter=yn,e.createSymlinkCache=vn,e.discoverProbableSymlinks=function(t,r,n){for(var i=vn(),a=0,o=e.flatten(e.mapDefined(t,function(t){return t.resolvedModules&&e.compact(e.arrayFrom(e.mapIterator(t.resolvedModules.values(),function(e){return e&&e.originalPath&&e.resolvedFileName!==e.originalPath?[e.resolvedFileName,e.originalPath]:void 0})))}));a0;)c+=")?",d--;return c}}(t,r,n,An[n])})}function On(e){return!/[.*?]/.test(e)}function Fn(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function In(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Pn(n,o,"files"),function(e){return"^"+e+"$"}),includeFilePattern:Nn(n,o,"files"),includeDirectoryPattern:Nn(n,o,"directories"),excludePattern:Nn(r,o,"exclude"),basePaths:Ln(t,n,i)}}function Mn(e,t){return new RegExp(e,t?"":"i")}function Ln(t,r,n){var i=[t];if(r){for(var a=[],o=0,s=r;o=0;n--)if(e.fileExtensionIs(t,r[n]))return Wn(n,r);return 0},e.adjustExtensionPriority=Wn,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var qn=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function Kn(e){for(var t=0,r=qn;t=0)}function Xn(e){return".ts"===e||".tsx"===e||".d.ts"===e}function Yn(t){return e.find(qn,function(r){return e.fileExtensionIs(t,r)})}function Zn(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,Zn)}function ei(e,t){return e.pos=t,e}function ti(e,t){return e.end=t,e}function ri(e,t,r){return ti(ei(e,t),r)}function ni(e,t){return e&&t&&(e.parent=t),e}e.removeFileExtension=Kn,e.tryRemoveExtension=Hn,e.removeExtension=Gn,e.changeExtension=function(t,r){return e.changeAnyExtension(t,r,qn,!1)},e.tryParsePattern=Qn,e.positionIsSynthesized=$n,e.extensionIsTS=Xn,e.resolutionExtensionIsTSOrJson=function(e){return Xn(e)||".json"===e},e.extensionFromPath=function(t){var r=Yn(t);return void 0!==r?r:e.Debug.fail("File "+t+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==Yn(e)},e.tryGetExtensionFromPath=Yn,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(t,r){for(var n=[],i=0,a=t;ii&&(i=o)}return{min:n,max:i}},e.rangeOfNode=function(e){return{pos:h(e),end:e.end}},e.rangeOfTypeParameters=function(e){return{pos:e.pos-1,end:e.end+1}},e.skipTypeChecking=function(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=Zn,e.parsePseudoBigInt=function(e){var 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:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var u=c>>>4,l=e.charCodeAt(s),_=(l<=57?l-48:10+l-(l<=70?65:97))<<(15&c);o[u]|=_;var d=_>>>16;d&&(o[u+1]|=d)}for(var p="",f=o.length-1,g=!0;g;){var m=0;for(g=!1,u=f;u>=0;u--){var h=m<<16|o[u],y=h/10|0;o[u]=y,m=h-10*y,y&&!g&&(f=u,g=!0)}p=m+p}return p},e.pseudoBigIntToString=function(e){var t=e.base10Value;return(e.negative&&"0"!==t?"-":"")+t},e.isValidTypeOnlyAliasUseSite=function(e){return!!(8388608&e.flags)||de(e)||function(e){if(78!==e.kind)return!1;var t=s(e.parent,function(e){switch(e.kind){case 283:return!0;case 198:case 220:return!1;default:return"quit"}});return 116===(null==t?void 0:t.token)||250===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;78===e.kind||198===e.kind;)e=e.parent;if(157!==e.kind)return!1;if(_r(e.parent,128))return!0;var t=e.parent.parent.kind;return 250===t||176===t}(e)||!le(e)},e.typeOnlyDeclarationIsExport=function(e){return 267===e.kind},e.isIdentifierTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)},e.arrayIsHomogeneous=function(t,r){if(void 0===r&&(r=e.equateValues),t.length<2)return!0;for(var n=t[0],i=1,a=t.length;i3)return!0;var u=e.getExpressionPrecedence(c);switch(e.compareValues(u,o)){case-1:return!(!i&&1===s&&216===n.kind);case 1:return!1;case 0:if(i)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if(function(e){return 41===e||51===e||50===e||52===e}(t))return!1;if(39===t){var l=a?r(a):0;if(e.isLiteralKind(l)&&l===r(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(n,i,a,o)?t.createParenthesizedExpression(i):i}function i(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isLeftHandSideExpression(n)&&(201!==n.kind||n.arguments)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function a(r){var n=e.skipPartiallyEmittedExpressions(r);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(213,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function o(e){return 183===e.kind?t.createParenthesizedType(e):e}function s(e){switch(e.kind){case 181:case 182:case 173:case 174:return t.createParenthesizedType(e)}return o(e)}function c(r,n){return 0===n&&e.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?t.createParenthesizedType(r):r}},e.nullParenthesizerRules={parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,r){return r},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(t){return e.cast(t,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(t){return e.cast(t,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeTypeArguments:function(t){return t&&e.cast(t,e.isNodeArray)}}}(l||(l={})),function(e){e.createNodeConverters=function(t){return{convertToFunctionBlock:function(r,n){if(e.isBlock(r))return r;var i=t.createReturnStatement(r);e.setTextRange(i,r);var a=t.createBlock([i],n);return e.setTextRange(a,r),a},convertToFunctionExpression:function(r){if(!r.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var n=t.createFunctionExpression(r.modifiers,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body);return e.setOriginalNode(n,r),e.setTextRange(n,r),e.getStartsOnNewLine(r)&&e.setStartsOnNewLine(n,!0),n},convertToArrayAssignmentElement:r,convertToObjectAssignmentElement:n,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function r(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadElement(r.name),r),r);var n=s(r.name);return r.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(n,r.initializer),r),r):n}return e.cast(r,e.isExpression)}function n(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(r.name),r),r);if(r.propertyName){var n=s(r.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(r.propertyName,r.initializer?t.createAssignment(n,r.initializer):n),r),r)}return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(r.name,r.initializer),r),r)}return e.cast(r,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 194:case 196:return o(e);case 193:case 197:return a(e)}}function a(r){return e.isObjectBindingPattern(r)?e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(r.elements,n)),r),r):e.cast(r,e.isObjectLiteralExpression)}function o(n){return e.isArrayBindingPattern(n)?e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(n.elements,r)),n),n):e.cast(n,e.isArrayLiteralExpression)}function s(t){return e.isBindingPattern(t)?i(t):e.cast(t,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}}(l||(l={})),function(e){var t,r,n=0;function a(r,a){var f=8&r?o:s,g=e.memoize(function(){return 1&r?e.nullParenthesizerRules:e.createParenthesizerRules(w)}),m=e.memoize(function(){return 2&r?e.nullNodeConverters:e.createNodeConverters(w)}),h=e.memoizeOne(function(e){return function(t,r){return wt(t,e,r)}}),v=e.memoizeOne(function(e){return function(t){return Tt(e,t)}}),b=e.memoizeOne(function(e){return function(t){return kt(t,e)}}),x=e.memoizeOne(function(e){return function(){return function(e){return N(e)}(e)}}),D=e.memoizeOne(function(e){return function(t){return qr(e,t)}}),S=e.memoizeOne(function(e){return function(t,r){return function(e,t,r){return t.type!==r?f(qr(e,r),t):t}(e,t,r)}}),E=e.memoizeOne(function(e){return function(t,r){return on(e,t,r)}}),C=e.memoizeOne(function(e){return function(t,r,n){return function(e,t,r,n){return void 0===r&&(r=$r(t)),t.tagName!==r||t.comment!==n?f(on(e,r,n),t):t}(e,t,r,n)}}),T=e.memoizeOne(function(e){return function(t,r,n){return sn(e,t,r,n)}}),k=e.memoizeOne(function(e){return function(t,r,n,i){return function(e,t,r,n,i){return void 0===r&&(r=$r(t)),t.tagName!==r||t.typeExpression!==n||t.comment!==i?f(sn(e,r,n,i),t):t}(e,t,r,n,i)}}),w={get parenthesizer(){return g()},get converters(){return m()},createNodeArray:A,createNumericLiteral:V,createBigIntLiteral:W,createStringLiteral:K,createStringLiteralFromNode:function(t){var r=q(e.getTextOfIdentifierOrLiteral(t),void 0);return r.textSourceNode=t,r},createRegularExpressionLiteral:H,createLiteralLikeNode:function(e,t){switch(e){case 8:return V(t,0);case 9:return W(t);case 10:return K(t,void 0);case 11:return gn(t,!1);case 12:return gn(t,!0);case 13:return H(t);case 14:return Ot(e,t,void 0,0)}},createIdentifier:$,updateIdentifier:function(t,r){return t.typeArguments!==r?f($(e.idText(t),r),t):t},createTempVariable:X,createLoopVariable:function(){return Q("",2)},createUniqueName:function(t,r){return void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags"),e.Debug.assert(32!=(48&r),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Q(t,3|r)},getGeneratedNameForNode:Y,createPrivateIdentifier:function(t){e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t);var r=a.createBasePrivateIdentifierNode(79);return r.escapedText=e.escapeLeadingUnderscores(t),r.transformFlags|=4194304,r},createToken:ee,createSuper:function(){return ee(105)},createThis:te,createNull:function(){return ee(103)},createTrue:re,createFalse:ne,createModifier:ie,createModifiersFromModifierFlags:ae,createQualifiedName:oe,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?f(oe(t,r),e):e},createComputedPropertyName:se,updateComputedPropertyName:function(e,t){return e.expression!==t?f(se(t),e):e},createTypeParameterDeclaration:ce,updateTypeParameterDeclaration:function(e,t,r,n){return e.name!==t||e.constraint!==r||e.default!==n?f(ce(t,r,n),e):e},createParameterDeclaration:ue,updateParameterDeclaration:le,createDecorator:_e,updateDecorator:function(e,t){return e.expression!==t?f(_e(t),e):e},createPropertySignature:de,updatePropertySignature:pe,createPropertyDeclaration:fe,updatePropertyDeclaration:ge,createMethodSignature:me,updateMethodSignature:he,createMethodDeclaration:ye,updateMethodDeclaration:ve,createConstructorDeclaration:be,updateConstructorDeclaration:xe,createGetAccessorDeclaration:De,updateGetAccessorDeclaration:Se,createSetAccessorDeclaration:Ee,updateSetAccessorDeclaration:Ce,createCallSignature:Te,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(Te(t,r,n),e):e},createConstructSignature:ke,updateConstructSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(ke(t,r,n),e):e},createIndexSignature:we,updateIndexSignature:Ae,createKeywordTypeNode:function(e){return ee(e)},createTypePredicateNode:Ne,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?f(Ne(t,r,n),e):e},createTypeReferenceNode:Pe,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?f(Pe(t,r),e):e},createFunctionTypeNode:Oe,updateFunctionTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(Oe(t,r,n),e):e},createConstructorTypeNode:Fe,updateConstructorTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(Fe(t,r,n),e):e},createTypeQueryNode:Ie,updateTypeQueryNode:function(e,t){return e.exprName!==t?f(Ie(t),e):e},createTypeLiteralNode:Me,updateTypeLiteralNode:function(e,t){return e.members!==t?f(Me(t),e):e},createArrayTypeNode:Le,updateArrayTypeNode:function(e,t){return e.elementType!==t?f(Le(t),e):e},createTupleTypeNode:Re,updateTupleTypeNode:function(e,t){return e.elements!==t?f(Re(t),e):e},createNamedTupleMember:Be,updateNamedTupleMember:function(e,t,r,n,i){return e.dotDotDotToken!==t||e.name!==r||e.questionToken!==n||e.type!==i?f(Be(t,r,n,i),e):e},createOptionalTypeNode:je,updateOptionalTypeNode:function(e,t){return e.type!==t?f(je(t),e):e},createRestTypeNode:Ue,updateRestTypeNode:function(e,t){return e.type!==t?f(Ue(t),e):e},createUnionTypeNode:function(e){return ze(181,e)},updateUnionTypeNode:function(e,t){return Je(e,t)},createIntersectionTypeNode:function(e){return ze(182,e)},updateIntersectionTypeNode:function(e,t){return Je(e,t)},createConditionalTypeNode:Ve,updateConditionalTypeNode:function(e,t,r,n,i){return e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==i?f(Ve(t,r,n,i),e):e},createInferTypeNode:We,updateInferTypeNode:function(e,t){return e.typeParameter!==t?f(We(t),e):e},createImportTypeNode:qe,updateImportTypeNode:function(e,t,r,n,i){return void 0===i&&(i=e.isTypeOf),e.argument!==t||e.qualifier!==r||e.typeArguments!==n||e.isTypeOf!==i?f(qe(t,r,n,i),e):e},createParenthesizedType:Ke,updateParenthesizedType:function(e,t){return e.type!==t?f(Ke(t),e):e},createThisTypeNode:function(){var e=N(186);return e.transformFlags=1,e},createTypeOperatorNode:He,updateTypeOperatorNode:function(e,t){return e.type!==t?f(He(e.operator,t),e):e},createIndexedAccessTypeNode:Ge,updateIndexedAccessTypeNode:function(e,t,r){return e.objectType!==t||e.indexType!==r?f(Ge(t,r),e):e},createMappedTypeNode:Qe,updateMappedTypeNode:function(e,t,r,n,i){return e.readonlyToken!==t||e.typeParameter!==r||e.questionToken!==n||e.type!==i?f(Qe(t,r,n,i),e):e},createLiteralTypeNode:$e,updateLiteralTypeNode:function(e,t){return e.literal!==t?f($e(t),e):e},createObjectBindingPattern:Xe,updateObjectBindingPattern:function(e,t){return e.elements!==t?f(Xe(t),e):e},createArrayBindingPattern:Ye,updateArrayBindingPattern:function(e,t){return e.elements!==t?f(Ye(t),e):e},createBindingElement:Ze,updateBindingElement:function(e,t,r,n,i){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==i?f(Ze(t,r,n,i),e):e},createArrayLiteralExpression:tt,updateArrayLiteralExpression:function(e,t){return e.elements!==t?f(tt(t,e.multiLine),e):e},createObjectLiteralExpression:rt,updateObjectLiteralExpression:function(e,t){return e.properties!==t?f(rt(t,e.multiLine),e):e},createPropertyAccessExpression:4&r?function(t,r){return e.setEmitFlags(nt(t,r),131072)}:nt,updatePropertyAccessExpression:function(t,r,n){return e.isPropertyAccessChain(t)?at(t,r,t.questionDotToken,e.cast(n,e.isIdentifier)):t.expression!==r||t.name!==n?f(nt(r,n),t):t},createPropertyAccessChain:4&r?function(t,r,n){return e.setEmitFlags(it(t,r,n),131072)}:it,updatePropertyAccessChain:at,createElementAccessExpression:ot,updateElementAccessExpression:function(t,r,n){return e.isElementAccessChain(t)?ct(t,r,t.questionDotToken,n):t.expression!==r||t.argumentExpression!==n?f(ot(r,n),t):t},createElementAccessChain:st,updateElementAccessChain:ct,createCallExpression:ut,updateCallExpression:function(t,r,n,i){return e.isCallChain(t)?_t(t,r,t.questionDotToken,n,i):t.expression!==r||t.typeArguments!==n||t.arguments!==i?f(ut(r,n,i),t):t},createCallChain:lt,updateCallChain:_t,createNewExpression:dt,updateNewExpression:function(e,t,r,n){return e.expression!==t||e.typeArguments!==r||e.arguments!==n?f(dt(t,r,n),e):e},createTaggedTemplateExpression:pt,updateTaggedTemplateExpression:function(e,t,r,n){return e.tag!==t||e.typeArguments!==r||e.template!==n?f(pt(t,r,n),e):e},createTypeAssertion:ft,updateTypeAssertion:gt,createParenthesizedExpression:mt,updateParenthesizedExpression:ht,createFunctionExpression:yt,updateFunctionExpression:vt,createArrowFunction:bt,updateArrowFunction:xt,createDeleteExpression:Dt,updateDeleteExpression:function(e,t){return e.expression!==t?f(Dt(t),e):e},createTypeOfExpression:St,updateTypeOfExpression:function(e,t){return e.expression!==t?f(St(t),e):e},createVoidExpression:Et,updateVoidExpression:function(e,t){return e.expression!==t?f(Et(t),e):e},createAwaitExpression:Ct,updateAwaitExpression:function(e,t){return e.expression!==t?f(Ct(t),e):e},createPrefixUnaryExpression:Tt,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?f(Tt(e.operator,t),e):e},createPostfixUnaryExpression:kt,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?f(kt(t,e.operator),e):e},createBinaryExpression:wt,updateBinaryExpression:function(e,t,r,n){return e.left!==t||e.operatorToken!==r||e.right!==n?f(wt(t,r,n),e):e},createConditionalExpression:At,updateConditionalExpression:function(e,t,r,n,i,a){return e.condition!==t||e.questionToken!==r||e.whenTrue!==n||e.colonToken!==i||e.whenFalse!==a?f(At(t,r,n,i,a),e):e},createTemplateExpression:Nt,updateTemplateExpression:function(e,t,r){return e.head!==t||e.templateSpans!==r?f(Nt(t,r),e):e},createTemplateHead:function(e,t,r){return Pt(15,e,t,r)},createTemplateMiddle:function(e,t,r){return Pt(16,e,t,r)},createTemplateTail:function(e,t,r){return Pt(17,e,t,r)},createNoSubstitutionTemplateLiteral:function(e,t,r){return Pt(14,e,t,r)},createTemplateLiteralLikeNode:Ot,createYieldExpression:Ft,updateYieldExpression:function(e,t,r){return e.expression!==r||e.asteriskToken!==t?f(Ft(t,r),e):e},createSpreadElement:It,updateSpreadElement:function(e,t){return e.expression!==t?f(It(t),e):e},createClassExpression:Mt,updateClassExpression:Lt,createOmittedExpression:function(){return et(219)},createExpressionWithTypeArguments:Rt,updateExpressionWithTypeArguments:function(e,t,r){return e.expression!==t||e.typeArguments!==r?f(Rt(t,r),e):e},createAsExpression:Bt,updateAsExpression:jt,createNonNullExpression:Ut,updateNonNullExpression:zt,createNonNullChain:Jt,updateNonNullChain:Vt,createMetaProperty:Wt,updateMetaProperty:function(e,t){return e.name!==t?f(Wt(e.keywordToken,t),e):e},createTemplateSpan:qt,updateTemplateSpan:function(e,t,r){return e.expression!==t||e.literal!==r?f(qt(t,r),e):e},createSemicolonClassElement:function(){var e=N(226);return e.transformFlags|=256,e},createBlock:Kt,updateBlock:function(e,t){return e.statements!==t?f(Kt(t,e.multiLine),e):e},createVariableStatement:Ht,updateVariableStatement:Gt,createEmptyStatement:Qt,createExpressionStatement:$t,updateExpressionStatement:function(e,t){return e.expression!==t?f($t(t),e):e},createIfStatement:Xt,updateIfStatement:function(e,t,r,n){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?f(Xt(t,r,n),e):e},createDoStatement:Yt,updateDoStatement:function(e,t,r){return e.statement!==t||e.expression!==r?f(Yt(t,r),e):e},createWhileStatement:Zt,updateWhileStatement:function(e,t,r){return e.expression!==t||e.statement!==r?f(Zt(t,r),e):e},createForStatement:er,updateForStatement:function(e,t,r,n,i){return e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==i?f(er(t,r,n,i),e):e},createForInStatement:tr,updateForInStatement:function(e,t,r,n){return e.initializer!==t||e.expression!==r||e.statement!==n?f(tr(t,r,n),e):e},createForOfStatement:rr,updateForOfStatement:function(e,t,r,n,i){return e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==i?f(rr(t,r,n,i),e):e},createContinueStatement:nr,updateContinueStatement:function(e,t){return e.label!==t?f(nr(t),e):e},createBreakStatement:ir,updateBreakStatement:function(e,t){return e.label!==t?f(ir(t),e):e},createReturnStatement:ar,updateReturnStatement:function(e,t){return e.expression!==t?f(ar(t),e):e},createWithStatement:or,updateWithStatement:function(e,t,r){return e.expression!==t||e.statement!==r?f(or(t,r),e):e},createSwitchStatement:sr,updateSwitchStatement:function(e,t,r){return e.expression!==t||e.caseBlock!==r?f(sr(t,r),e):e},createLabeledStatement:cr,updateLabeledStatement:ur,createThrowStatement:lr,updateThrowStatement:function(e,t){return e.expression!==t?f(lr(t),e):e},createTryStatement:_r,updateTryStatement:function(e,t,r,n){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?f(_r(t,r,n),e):e},createDebuggerStatement:function(){return N(245)},createVariableDeclaration:dr,updateVariableDeclaration:function(e,t,r,n,i){return e.name!==t||e.type!==n||e.exclamationToken!==r||e.initializer!==i?f(dr(t,r,n,i),e):e},createVariableDeclarationList:pr,updateVariableDeclarationList:function(e,t){return e.declarations!==t?f(pr(t,e.flags),e):e},createFunctionDeclaration:fr,updateFunctionDeclaration:gr,createClassDeclaration:mr,updateClassDeclaration:hr,createInterfaceDeclaration:yr,updateInterfaceDeclaration:vr,createTypeAliasDeclaration:br,updateTypeAliasDeclaration:xr,createEnumDeclaration:Dr,updateEnumDeclaration:Sr,createModuleDeclaration:Er,updateModuleDeclaration:Cr,createModuleBlock:Tr,updateModuleBlock:function(e,t){return e.statements!==t?f(Tr(t),e):e},createCaseBlock:kr,updateCaseBlock:function(e,t){return e.clauses!==t?f(kr(t),e):e},createNamespaceExportDeclaration:wr,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?f(wr(t),e):e},createImportEqualsDeclaration:Ar,updateImportEqualsDeclaration:Nr,createImportDeclaration:Pr,updateImportDeclaration:Or,createImportClause:Fr,updateImportClause:function(e,t,r,n){return e.isTypeOnly!==t||e.name!==r||e.namedBindings!==n?f(Fr(t,r,n),e):e},createNamespaceImport:Ir,updateNamespaceImport:function(e,t){return e.name!==t?f(Ir(t),e):e},createNamespaceExport:Mr,updateNamespaceExport:function(e,t){return e.name!==t?f(Mr(t),e):e},createNamedImports:Lr,updateNamedImports:function(e,t){return e.elements!==t?f(Lr(t),e):e},createImportSpecifier:Rr,updateImportSpecifier:function(e,t,r){return e.propertyName!==t||e.name!==r?f(Rr(t,r),e):e},createExportAssignment:Br,updateExportAssignment:jr,createExportDeclaration:Ur,updateExportDeclaration:zr,createNamedExports:Jr,updateNamedExports:function(e,t){return e.elements!==t?f(Jr(t),e):e},createExportSpecifier:Vr,updateExportSpecifier:function(e,t,r){return e.propertyName!==t||e.name!==r?f(Vr(t,r),e):e},createMissingDeclaration:function(){return P(268,void 0,void 0)},createExternalModuleReference:Wr,updateExternalModuleReference:function(e,t){return e.expression!==t?f(Wr(t),e):e},get createJSDocAllType(){return x(299)},get createJSDocUnknownType(){return x(300)},get createJSDocNonNullableType(){return D(302)},get updateJSDocNonNullableType(){return S(302)},get createJSDocNullableType(){return D(301)},get updateJSDocNullableType(){return S(301)},get createJSDocOptionalType(){return D(303)},get updateJSDocOptionalType(){return S(303)},get createJSDocVariadicType(){return D(305)},get updateJSDocVariadicType(){return S(305)},get createJSDocNamepathType(){return D(306)},get updateJSDocNamepathType(){return S(306)},createJSDocFunctionType:Kr,updateJSDocFunctionType:function(e,t,r){return e.parameters!==t||e.type!==r?f(Kr(t,r),e):e},createJSDocTypeLiteral:Hr,updateJSDocTypeLiteral:function(e,t,r){return e.jsDocPropertyTags!==t||e.isArrayType!==r?f(Hr(t,r),e):e},createJSDocTypeExpression:Gr,updateJSDocTypeExpression:function(e,t){return e.type!==t?f(Gr(t),e):e},createJSDocSignature:Qr,updateJSDocSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?f(Qr(t,r,n),e):e},createJSDocTemplateTag:Yr,updateJSDocTemplateTag:function(e,t,r,n,i){return void 0===t&&(t=$r(e)),e.tagName!==t||e.constraint!==r||e.typeParameters!==n||e.comment!==i?f(Yr(t,r,n,i),e):e},createJSDocTypedefTag:Zr,updateJSDocTypedefTag:function(e,t,r,n,i){return void 0===t&&(t=$r(e)),e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?f(Zr(t,r,n,i),e):e},createJSDocParameterTag:en,updateJSDocParameterTag:function(e,t,r,n,i,a,o){return void 0===t&&(t=$r(e)),e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?f(en(t,r,n,i,a,o),e):e},createJSDocPropertyTag:tn,updateJSDocPropertyTag:function(e,t,r,n,i,a,o){return void 0===t&&(t=$r(e)),e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?f(tn(t,r,n,i,a,o),e):e},createJSDocCallbackTag:rn,updateJSDocCallbackTag:function(e,t,r,n,i){return void 0===t&&(t=$r(e)),e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?f(rn(t,r,n,i),e):e},createJSDocAugmentsTag:nn,updateJSDocAugmentsTag:function(e,t,r,n){return void 0===t&&(t=$r(e)),e.tagName!==t||e.class!==r||e.comment!==n?f(nn(t,r,n),e):e},createJSDocImplementsTag:an,updateJSDocImplementsTag:function(e,t,r,n){return void 0===t&&(t=$r(e)),e.tagName!==t||e.class!==r||e.comment!==n?f(an(t,r,n),e):e},get createJSDocTypeTag(){return T(325)},get updateJSDocTypeTag(){return k(325)},get createJSDocReturnTag(){return T(323)},get updateJSDocReturnTag(){return k(323)},get createJSDocThisTag(){return T(324)},get updateJSDocThisTag(){return k(324)},get createJSDocEnumTag(){return T(321)},get updateJSDocEnumTag(){return k(321)},get createJSDocAuthorTag(){return E(313)},get updateJSDocAuthorTag(){return C(313)},get createJSDocClassTag(){return E(315)},get updateJSDocClassTag(){return C(315)},get createJSDocPublicTag(){return E(316)},get updateJSDocPublicTag(){return C(316)},get createJSDocPrivateTag(){return E(317)},get updateJSDocPrivateTag(){return C(317)},get createJSDocProtectedTag(){return E(318)},get updateJSDocProtectedTag(){return C(318)},get createJSDocReadonlyTag(){return E(319)},get updateJSDocReadonlyTag(){return C(319)},get createJSDocDeprecatedTag(){return E(314)},get updateJSDocDeprecatedTag(){return C(314)},createJSDocUnknownTag:cn,updateJSDocUnknownTag:function(e,t,r){return e.tagName!==t||e.comment!==r?f(cn(t,r),e):e},createJSDocComment:un,updateJSDocComment:function(e,t,r){return e.comment!==t||e.tags!==r?f(un(t,r),e):e},createJsxElement:ln,updateJsxElement:function(e,t,r,n){return e.openingElement!==t||e.children!==r||e.closingElement!==n?f(ln(t,r,n),e):e},createJsxSelfClosingElement:_n,updateJsxSelfClosingElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?f(_n(t,r,n),e):e},createJsxOpeningElement:dn,updateJsxOpeningElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?f(dn(t,r,n),e):e},createJsxClosingElement:pn,updateJsxClosingElement:function(e,t){return e.tagName!==t?f(pn(t),e):e},createJsxFragment:fn,createJsxText:gn,updateJsxText:function(e,t,r){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?f(gn(t,r),e):e},createJsxOpeningFragment:function(){var e=N(275);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){var e=N(276);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,r,n){return e.openingFragment!==t||e.children!==r||e.closingFragment!==n?f(fn(t,r,n),e):e},createJsxAttribute:mn,updateJsxAttribute:function(e,t,r){return e.name!==t||e.initializer!==r?f(mn(t,r),e):e},createJsxAttributes:hn,updateJsxAttributes:function(e,t){return e.properties!==t?f(hn(t),e):e},createJsxSpreadAttribute:yn,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?f(yn(t),e):e},createJsxExpression:vn,updateJsxExpression:function(e,t){return e.expression!==t?f(vn(e.dotDotDotToken,t),e):e},createCaseClause:bn,updateCaseClause:function(e,t,r){return e.expression!==t||e.statements!==r?f(bn(t,r),e):e},createDefaultClause:xn,updateDefaultClause:function(e,t){return e.statements!==t?f(xn(t),e):e},createHeritageClause:Dn,updateHeritageClause:function(e,t){return e.types!==t?f(Dn(e.token,t),e):e},createCatchClause:Sn,updateCatchClause:function(e,t,r){return e.variableDeclaration!==t||e.block!==r?f(Sn(t,r),e):e},createPropertyAssignment:En,updatePropertyAssignment:function(e,t,r){return e.name!==t||e.initializer!==r?(n=En(t,r),(i=e).decorators&&(n.decorators=i.decorators),i.modifiers&&(n.modifiers=i.modifiers),i.questionToken&&(n.questionToken=i.questionToken),i.exclamationToken&&(n.exclamationToken=i.exclamationToken),f(n,i)):e;var n,i},createShorthandPropertyAssignment:Cn,updateShorthandPropertyAssignment:function(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?(n=Cn(t,r),(i=e).decorators&&(n.decorators=i.decorators),i.modifiers&&(n.modifiers=i.modifiers),i.equalsToken&&(n.equalsToken=i.equalsToken),i.questionToken&&(n.questionToken=i.questionToken),i.exclamationToken&&(n.exclamationToken=i.exclamationToken),f(n,i)):e;var n,i},createSpreadAssignment:Tn,updateSpreadAssignment:function(e,t){return e.expression!==t?f(Tn(t),e):e},createEnumMember:kn,updateEnumMember:function(e,t,r){return e.name!==t||e.initializer!==r?f(kn(t,r),e):e},createSourceFile:function(e,t,r){var n=a.createBaseSourceFileNode(294);return n.statements=A(e),n.endOfFileToken=t,n.flags|=r,n.fileName="",n.text="",n.languageVersion=0,n.languageVariant=0,n.scriptKind=0,n.isDeclarationFile=!1,n.hasNoDefaultLib=!1,n.transformFlags|=d(n.statements)|_(n.endOfFileToken),n},updateSourceFile:function(t,r,n,i,o,s,c){return void 0===n&&(n=t.isDeclarationFile),void 0===i&&(i=t.referencedFiles),void 0===o&&(o=t.typeReferenceDirectives),void 0===s&&(s=t.hasNoDefaultLib),void 0===c&&(c=t.libReferenceDirectives),t.statements!==r||t.isDeclarationFile!==n||t.referencedFiles!==i||t.typeReferenceDirectives!==o||t.hasNoDefaultLib!==s||t.libReferenceDirectives!==c?f(function(t,r,n,i,o,s,c){var u=a.createBaseSourceFileNode(294);for(var l in t)"emitNode"!==l&&!e.hasProperty(u,l)&&e.hasProperty(t,l)&&(u[l]=t[l]);return u.flags|=t.flags,u.statements=A(r),u.endOfFileToken=t.endOfFileToken,u.isDeclarationFile=n,u.referencedFiles=i,u.typeReferenceDirectives=o,u.hasNoDefaultLib=s,u.libReferenceDirectives=c,u.transformFlags=d(u.statements)|_(u.endOfFileToken),u}(t,r,n,i,o,s,c),t):t},createBundle:wn,updateBundle:function(t,r,n){return void 0===n&&(n=e.emptyArray),t.sourceFiles!==r||t.prepends!==n?f(wn(r,n),t):t},createUnparsedSource:function(t,r,n){var i=N(296);return i.prologues=t,i.syntheticReferences=r,i.texts=n,i.fileName="",i.text="",i.referencedFiles=e.emptyArray,i.libReferenceDirectives=e.emptyArray,i.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(i,t)},i},createUnparsedPrologue:function(e){return An(289,e)},createUnparsedPrepend:function(e,t){var r=An(290,e);return r.texts=t,r},createUnparsedTextLike:function(e,t){return An(t?292:291,e)},createUnparsedSyntheticReference:function(e){var t=N(293);return t.data=e.data,t.section=e,t},createInputFiles:function(){var e=N(297);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t,r){void 0===t&&(t=!1);var n=N(224);return n.type=e,n.isSpread=t,n.tupleNameSource=r,n},createSyntaxList:function(e){var t=N(329);return t._children=e,t},createNotEmittedStatement:function(t){var r=N(330);return r.original=t,e.setTextRange(r,t),r},createPartiallyEmittedExpression:Nn,updatePartiallyEmittedExpression:Pn,createCommaListExpression:Fn,updateCommaListExpression:function(e,t){return e.elements!==t?f(Fn(t),e):e},createEndOfDeclarationMarker:function(e){var t=N(334);return t.emitNode={},t.original=e,t},createMergeDeclarationMarker:function(e){var t=N(333);return t.emitNode={},t.original=e,t},createSyntheticReferenceExpression:In,updateSyntheticReferenceExpression:function(e,t,r){return e.expression!==t||e.thisArg!==r?f(In(t,r),e):e},cloneNode:Mn,get createComma(){return h(27)},get createAssignment(){return h(62)},get createLogicalOr(){return h(56)},get createLogicalAnd(){return h(55)},get createBitwiseOr(){return h(51)},get createBitwiseXor(){return h(52)},get createBitwiseAnd(){return h(50)},get createStrictEquality(){return h(36)},get createStrictInequality(){return h(37)},get createEquality(){return h(34)},get createInequality(){return h(35)},get createLessThan(){return h(29)},get createLessThanEquals(){return h(32)},get createGreaterThan(){return h(31)},get createGreaterThanEquals(){return h(33)},get createLeftShift(){return h(47)},get createRightShift(){return h(48)},get createUnsignedRightShift(){return h(49)},get createAdd(){return h(39)},get createSubtract(){return h(40)},get createMultiply(){return h(41)},get createDivide(){return h(43)},get createModulo(){return h(44)},get createExponent(){return h(42)},get createPrefixPlus(){return v(39)},get createPrefixMinus(){return v(40)},get createPrefixIncrement(){return v(45)},get createPrefixDecrement(){return v(46)},get createBitwiseNot(){return v(54)},get createLogicalNot(){return v(53)},get createPostfixIncrement(){return b(45)},get createPostfixDecrement(){return b(46)},createImmediatelyInvokedFunctionExpression:function(e,t,r){return ut(yt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,Kt(e,!0)),void 0,r?[r]:[])},createImmediatelyInvokedArrowFunction:function(e,t,r){return ut(bt(void 0,void 0,t?[t]:[],void 0,void 0,Kt(e,!0)),void 0,r?[r]:[])},createVoidZero:Ln,createExportDefault:function(e){return Br(void 0,void 0,!1,e)},createExternalModuleExport:function(e){return Ur(void 0,void 0,!1,Jr([Vr(void 0,e)]))},createTypeCheck:function(e,t){return"undefined"===t?w.createStrictEquality(e,Ln()):w.createStrictEquality(St(e),K(t))},createMethodCall:Rn,createGlobalMethodCall:Bn,createFunctionBindCall:function(e,t,r){return Rn(e,"bind",i([t],r))},createFunctionCallCall:function(e,t,r){return Rn(e,"call",i([t],r))},createFunctionApplyCall:function(e,t,r){return Rn(e,"apply",[t,r])},createArraySliceCall:function(e,t){return Rn(e,"slice",void 0===t?[]:[$n(t)])},createArrayConcatCall:function(e,t){return Rn(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,r){return Bn("Object","defineProperty",[e,$n(t),r])},createPropertyDescriptor:function(t,r){var n=[];jn(n,"enumerable",$n(t.enumerable)),jn(n,"configurable",$n(t.configurable));var i=jn(n,"writable",$n(t.writable));i=jn(n,"value",t.value)||i;var a=jn(n,"get",t.get);return a=jn(n,"set",t.set)||a,e.Debug.assert(!(i&&a),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),rt(n,!r)},createCallBinding:function(t,r,n,i){void 0===i&&(i=!1);var a,o,s=e.skipOuterExpressions(t,15);return e.isSuperProperty(s)?(a=te(),o=s):e.isSuperKeyword(s)?(a=te(),o=void 0!==n&&n<2?e.setTextRange($("_super"),s):s):4096&e.getEmitFlags(s)?(a=Ln(),o=g().parenthesizeLeftSideOfAccess(s)):e.isPropertyAccessExpression(s)?Un(s.expression,i)?(a=X(r),o=nt(e.setTextRange(w.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s):e.isElementAccessExpression(s)?Un(s.expression,i)?(a=X(r),o=ot(e.setTextRange(w.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s):(a=Ln(),o=g().parenthesizeLeftSideOfAccess(t)),{target:o,thisArg:a}},inlineExpressions:function(t){return t.length>10?Fn(t):e.reduceLeft(t,w.createComma)},getInternalName:function(e,t,r){return zn(e,t,r,49152)},getLocalName:function(e,t,r){return zn(e,t,r,16384)},getExportName:Jn,getDeclarationName:function(e,t,r){return zn(e,t,r)},getNamespaceMemberName:Vn,getExternalModuleOrNamespaceExportName:function(t,r,n,i){return t&&e.hasSyntacticModifier(r,1)?Vn(t,zn(r),n,i):Jn(r,n,i)},restoreOuterExpressions:function t(r,n,i){return void 0===i&&(i=15),!r||!e.isOuterExpression(r,i)||e.isParenthesizedExpression(a=r)&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a))&&!e.some(e.getSyntheticLeadingComments(a))&&!e.some(e.getSyntheticTrailingComments(a))?n:function(e,t){switch(e.kind){case 204:return ht(e,t);case 203:return gt(e,e.type,t);case 221:return jt(e,t,e.type);case 222:return zt(e,t);case 331:return Pn(e,t)}}(r,t(r.expression,n));var a},restoreEnclosingLabel:function t(r,n,i){if(!n)return r;var a=ur(n,n.label,e.isLabeledStatement(n.statement)?t(r,n.statement):r);return i&&i(n),a},createUseStrictPrologue:Wn,copyPrologue:function(e,t,r,n){return Kn(e,t,qn(e,t,r),n)},copyStandardPrologue:qn,copyCustomPrologue:Kn,ensureUseStrict:function(t){return e.findUseStrictPrologue(t)?t:e.setTextRange(A(i([Wn()],t)),t)},liftToBlock:function(t){return e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||Kt(t)},mergeLexicalEnvironment:function(t,r){if(!e.some(r))return t;var n=Hn(t,e.isPrologueDirective,0),a=Hn(t,e.isHoistedFunction,n),o=Hn(t,e.isHoistedVariableStatement,a),s=Hn(r,e.isPrologueDirective,0),c=Hn(r,e.isHoistedFunction,s),u=Hn(r,e.isHoistedVariableStatement,c),l=Hn(r,e.isCustomPrologue,u);e.Debug.assert(l===r.length,"Expected declarations to be valid standard or custom prologues");var _=e.isNodeArray(t)?t.slice():t;if(l>u&&_.splice.apply(_,i([o,0],r.slice(u,l))),u>c&&_.splice.apply(_,i([a,0],r.slice(c,u))),c>s&&_.splice.apply(_,i([n,0],r.slice(s,c))),s>0)if(0===n)_.splice.apply(_,i([0,0],r.slice(0,s)));else{for(var d=new e.Map,p=0;p=0;p--){var f=r[p];d.has(f.expression.text)||_.unshift(f)}}return e.isNodeArray(t)?e.setTextRange(A(_,t.hasTrailingComma),t):t},updateModifiers:function(t,r){var n;return"number"==typeof r&&(r=ae(r)),e.isParameter(t)?le(t,t.decorators,r,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isPropertySignature(t)?pe(t,r,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?ge(t,t.decorators,r,t.name,null!==(n=t.questionToken)&&void 0!==n?n:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?he(t,r,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?ve(t,t.decorators,r,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?xe(t,t.decorators,r,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Se(t,t.decorators,r,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?Ce(t,t.decorators,r,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Ae(t,t.decorators,r,t.parameters,t.type):e.isFunctionExpression(t)?vt(t,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?xt(t,r,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?Lt(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?Gt(t,r,t.declarationList):e.isFunctionDeclaration(t)?gr(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?hr(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?vr(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?xr(t,t.decorators,r,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Sr(t,t.decorators,r,t.name,t.members):e.isModuleDeclaration(t)?Cr(t,t.decorators,r,t.name,t.body):e.isImportEqualsDeclaration(t)?Nr(t,t.decorators,r,t.name,t.moduleReference):e.isImportDeclaration(t)?Or(t,t.decorators,r,t.importClause,t.moduleSpecifier):e.isExportAssignment(t)?jr(t,t.decorators,r,t.expression):e.isExportDeclaration(t)?zr(t,t.decorators,r,t.isTypeOnly,t.exportClause,t.moduleSpecifier):e.Debug.assertNever(t)}};return w;function A(t,r){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t))return void 0===t.transformFlags&&p(t),t;var n=t.length,i=n>=1&&n<=4?t.slice():t;return e.setTextRangePosEnd(i,-1,-1),i.hasTrailingComma=!!r,p(i),i}function N(e){return a.createBaseNode(e)}function P(e,t,r){var n=N(e);return n.decorators=Gn(t),n.modifiers=Gn(r),n.transformFlags|=d(n.decorators)|d(n.modifiers),n.symbol=void 0,n.localSymbol=void 0,n.locals=void 0,n.nextContainer=void 0,n}function O(t,r,n,i){var a=P(t,r,n);if(i=Qn(i),a.name=i,i)switch(a.kind){case 164:case 166:case 167:case 162:case 285:if(e.isIdentifier(i)){a.transformFlags|=l(i);break}default:a.transformFlags|=_(i)}return a}function F(e,t,r,n,i){var a=O(e,t,r,n);return a.typeParameters=Gn(i),a.transformFlags|=d(a.typeParameters),i&&(a.transformFlags|=1),a}function I(e,t,r,n,i,a,o){var s=F(e,t,r,n,i);return s.parameters=A(a),s.type=o,s.transformFlags|=d(s.parameters)|_(s.type),o&&(s.transformFlags|=1),s}function M(e,t){return t.typeArguments&&(e.typeArguments=t.typeArguments),f(e,t)}function L(e,t,r,n,i,a,o,s){var c=I(e,t,r,n,i,a,o);return c.body=s,c.transformFlags|=-8388609&_(c.body),s||(c.transformFlags|=1),c}function R(e,t){return t.exclamationToken&&(e.exclamationToken=t.exclamationToken),t.typeArguments&&(e.typeArguments=t.typeArguments),M(e,t)}function B(e,t,r,n,i,a){var o=F(e,t,r,n,i);return o.heritageClauses=Gn(a),o.transformFlags|=d(o.heritageClauses),o}function j(e,t,r,n,i,a,o){var s=B(e,t,r,n,i,a);return s.members=A(o),s.transformFlags|=d(s.members),s}function U(e,t,r,n,i){var a=O(e,t,r,n);return a.initializer=i,a.transformFlags|=_(a.initializer),a}function z(e,t,r,n,i,a){var o=U(e,t,r,n,a);return o.type=i,o.transformFlags|=_(i),i&&(o.transformFlags|=1),o}function J(e,t){var r=Z(e);return r.text=t,r}function V(e,t){void 0===t&&(t=0);var r=J(8,"number"==typeof e?e+"":e);return r.numericLiteralFlags=t,384&t&&(r.transformFlags|=256),r}function W(t){var r=J(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return r.transformFlags|=4,r}function q(e,t){var r=J(10,e);return r.singleQuote=t,r}function K(e,t,r){var n=q(e,t);return n.hasExtendedUnicodeEscape=r,r&&(n.transformFlags|=256),n}function H(e){return J(13,e)}function G(t,r){void 0===r&&t&&(r=e.stringToToken(t)),78===r&&(r=void 0);var n=a.createBaseIdentifierNode(78);return n.originalKeywordKind=r,n.escapedText=e.escapeLeadingUnderscores(t),n}function Q(e,t){var r=G(e,void 0);return r.autoGenerateFlags=t,r.autoGenerateId=n,n++,r}function $(e,t,r){var n=G(e,r);return t&&(n.typeArguments=A(t)),130===n.originalKeywordKind&&(n.transformFlags|=8388608),n}function X(e,t){var r=1;t&&(r|=8);var n=Q("",r);return e&&e(n),n}function Y(t,r){void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags");var n=Q(t&&e.isIdentifier(t)?e.idText(t):"",4|r);return n.original=t,n}function Z(e){return a.createBaseTokenNode(e)}function ee(t){e.Debug.assert(t>=0&&t<=155,"Invalid token"),e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(78!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var r=Z(t),n=0;switch(t){case 129:n=96;break;case 122:case 120:case 121:case 141:case 125:case 133:case 84:case 128:case 143:case 154:case 140:case 144:case 146:case 131:case 147:case 113:case 151:case 149:n=1;break;case 123:case 105:n=256;break;case 107:n=4096}return n&&(r.transformFlags|=n),r}function te(){return ee(107)}function re(){return ee(109)}function ne(){return ee(94)}function ie(e){return ee(e)}function ae(e){var t=[];return 1&e&&t.push(ie(92)),2&e&&t.push(ie(133)),512&e&&t.push(ie(87)),2048&e&&t.push(ie(84)),4&e&&t.push(ie(122)),8&e&&t.push(ie(120)),16&e&&t.push(ie(121)),128&e&&t.push(ie(125)),32&e&&t.push(ie(123)),64&e&&t.push(ie(141)),256&e&&t.push(ie(129)),t}function oe(e,t){var r=N(156);return r.left=e,r.right=Qn(t),r.transformFlags|=_(r.left)|l(r.right),r}function se(e){var t=N(157);return t.expression=g().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=33024|_(t.expression),t}function ce(e,t,r){var n=O(158,void 0,void 0,e);return n.constraint=t,n.default=r,n.transformFlags=1,n}function ue(t,r,n,i,a,o,s){var c=z(159,t,r,i,o,s&&g().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=n,c.questionToken=a,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=_(c.dotDotDotToken)|_(c.questionToken),a&&(c.transformFlags|=1),92&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=2048),(s||n)&&(c.transformFlags|=256)),c}function le(e,t,r,n,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==n||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?f(ue(t,r,n,i,a,o,s),e):e}function _e(e){var t=N(160);return t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=2049|_(t.expression),t}function de(e,t,r,n){var i=O(161,void 0,e,t);return i.type=n,i.questionToken=r,i.transformFlags=1,i}function pe(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?f(de(t,r,n,i),e):e}function fe(t,r,n,i,a,o){var s=z(162,t,r,n,a,o);return s.questionToken=i&&e.isQuestionToken(i)?i:void 0,s.exclamationToken=i&&e.isExclamationToken(i)?i:void 0,s.transformFlags|=_(s.questionToken)|_(s.exclamationToken)|4194304,(e.isComputedPropertyName(s.name)||e.hasStaticModifier(s)&&s.initializer)&&(s.transformFlags|=2048),(i||2&e.modifiersToFlags(s.modifiers))&&(s.transformFlags|=1),s}function ge(t,r,n,i,a,o,s){return t.decorators!==r||t.modifiers!==n||t.name!==i||t.questionToken!==(void 0!==a&&e.isQuestionToken(a)?a:void 0)||t.exclamationToken!==(void 0!==a&&e.isExclamationToken(a)?a:void 0)||t.type!==o||t.initializer!==s?f(fe(r,n,i,a,o,s),t):t}function me(e,t,r,n,i,a){var o=I(163,void 0,e,t,n,i,a);return o.questionToken=r,o.transformFlags=1,o}function he(e,t,r,n,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o?M(me(t,r,n,i,a,o),e):e}function ye(t,r,n,i,a,o,s,c,u){var l=L(164,t,r,i,o,s,c,u);return l.asteriskToken=n,l.questionToken=a,l.transformFlags|=_(l.asteriskToken)|_(l.questionToken)|256,a&&(l.transformFlags|=1),256&e.modifiersToFlags(l.modifiers)?l.transformFlags|=n?32:64:n&&(l.transformFlags|=512),l}function ve(e,t,r,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?R(ye(t,r,n,i,a,o,s,c,u),e):e}function be(e,t,r,n){var i=L(165,e,t,void 0,void 0,r,void 0,n);return i.transformFlags|=256,i}function xe(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?R(be(t,r,n,i),e):e}function De(e,t,r,n,i,a){return L(166,e,t,r,void 0,n,i,a)}function Se(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.type!==a||e.body!==o?R(De(t,r,n,i,a,o),e):e}function Ee(e,t,r,n,i){return L(167,e,t,r,void 0,n,void 0,i)}function Ce(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.body!==a?R(Ee(t,r,n,i,a),e):e}function Te(e,t,r){var n=I(168,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function ke(e,t,r){var n=I(169,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function we(e,t,r,n){var i=I(170,e,t,void 0,void 0,r,n);return i.transformFlags=1,i}function Ae(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?M(we(t,r,n,i),e):e}function Ne(e,t,r){var n=N(171);return n.assertsModifier=e,n.parameterName=Qn(t),n.type=r,n.transformFlags=1,n}function Pe(e,t){var r=N(172);return r.typeName=Qn(e),r.typeArguments=t&&g().parenthesizeTypeArguments(A(t)),r.transformFlags=1,r}function Oe(e,t,r){var n=I(173,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Fe(e,t,r){var n=I(174,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Ie(e){var t=N(175);return t.exprName=e,t.transformFlags=1,t}function Me(e){var t=N(176);return t.members=A(e),t.transformFlags=1,t}function Le(e){var t=N(177);return t.elementType=g().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function Re(e){var t=N(178);return t.elements=A(e),t.transformFlags=1,t}function Be(e,t,r,n){var i=N(191);return i.dotDotDotToken=e,i.name=t,i.questionToken=r,i.type=n,i.transformFlags=1,i}function je(e){var t=N(179);return t.type=g().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function Ue(e){var t=N(180);return t.type=e,t.transformFlags=1,t}function ze(e,t){var r=N(e);return r.types=g().parenthesizeConstituentTypesOfUnionOrIntersectionType(t),r.transformFlags=1,r}function Je(e,t){return e.types!==t?f(ze(e.kind,t),e):e}function Ve(e,t,r,n){var i=N(183);return i.checkType=g().parenthesizeMemberOfConditionalType(e),i.extendsType=g().parenthesizeMemberOfConditionalType(t),i.trueType=r,i.falseType=n,i.transformFlags=1,i}function We(e){var t=N(184);return t.typeParameter=e,t.transformFlags=1,t}function qe(e,t,r,n){void 0===n&&(n=!1);var i=N(192);return i.argument=e,i.qualifier=t,i.typeArguments=r&&g().parenthesizeTypeArguments(r),i.isTypeOf=n,i.transformFlags=1,i}function Ke(e){var t=N(185);return t.type=e,t.transformFlags=1,t}function He(e,t){var r=N(187);return r.operator=e,r.type=g().parenthesizeMemberOfElementType(t),r.transformFlags=1,r}function Ge(e,t){var r=N(188);return r.objectType=g().parenthesizeMemberOfElementType(e),r.indexType=t,r.transformFlags=1,r}function Qe(e,t,r,n){var i=N(189);return i.readonlyToken=e,i.typeParameter=t,i.questionToken=r,i.type=n,i.transformFlags=1,i}function $e(e){var t=N(190);return t.literal=e,t.transformFlags=1,t}function Xe(e){var t=N(193);return t.elements=A(e),t.transformFlags|=131328|d(t.elements),8192&t.transformFlags&&(t.transformFlags|=16416),t}function Ye(e){var t=N(194);return t.elements=A(e),t.transformFlags|=131328|d(t.elements),t}function Ze(t,r,n,i){var a=U(195,void 0,void 0,n,i);return a.propertyName=Qn(r),a.dotDotDotToken=t,a.transformFlags|=256|_(a.dotDotDotToken),a.propertyName&&(a.transformFlags|=e.isIdentifier(a.propertyName)?l(a.propertyName):_(a.propertyName)),t&&(a.transformFlags|=8192),a}function et(e){return N(e)}function tt(e,t){var r=et(196);return r.elements=g().parenthesizeExpressionsOfCommaDelimitedList(A(e)),r.multiLine=t,r.transformFlags|=d(r.elements),r}function rt(e,t){var r=et(197);return r.properties=A(e),r.multiLine=t,r.transformFlags|=d(r.properties),r}function nt(t,r){var n=et(198);return n.expression=g().parenthesizeLeftSideOfAccess(t),n.name=Qn(r),n.transformFlags=_(n.expression)|(e.isIdentifier(n.name)?l(n.name):_(n.name)),e.isSuperKeyword(t)&&(n.transformFlags|=96),n}function it(t,r,n){var i=et(198);return i.flags|=32,i.expression=g().parenthesizeLeftSideOfAccess(t),i.questionDotToken=r,i.name=Qn(n),i.transformFlags|=8|_(i.expression)|_(i.questionDotToken)|(e.isIdentifier(i.name)?l(i.name):_(i.name)),i}function at(t,r,n,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),t.expression!==r||t.questionDotToken!==n||t.name!==i?f(it(r,n,i),t):t}function ot(t,r){var n=et(199);return n.expression=g().parenthesizeLeftSideOfAccess(t),n.argumentExpression=$n(r),n.transformFlags|=_(n.expression)|_(n.argumentExpression),e.isSuperKeyword(t)&&(n.transformFlags|=96),n}function st(e,t,r){var n=et(199);return n.flags|=32,n.expression=g().parenthesizeLeftSideOfAccess(e),n.questionDotToken=t,n.argumentExpression=$n(r),n.transformFlags|=_(n.expression)|_(n.questionDotToken)|_(n.argumentExpression)|8,n}function ct(t,r,n,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),t.expression!==r||t.questionDotToken!==n||t.argumentExpression!==i?f(st(r,n,i),t):t}function ut(t,r,n){var i=et(200);return i.expression=g().parenthesizeLeftSideOfAccess(t),i.typeArguments=Gn(r),i.arguments=g().parenthesizeExpressionsOfCommaDelimitedList(A(n)),i.transformFlags|=_(i.expression)|d(i.typeArguments)|d(i.arguments),i.typeArguments&&(i.transformFlags|=1),e.isImportKeyword(i.expression)?i.transformFlags|=2097152:e.isSuperProperty(i.expression)&&(i.transformFlags|=4096),i}function lt(t,r,n,i){var a=et(200);return a.flags|=32,a.expression=g().parenthesizeLeftSideOfAccess(t),a.questionDotToken=r,a.typeArguments=Gn(n),a.arguments=g().parenthesizeExpressionsOfCommaDelimitedList(A(i)),a.transformFlags|=_(a.expression)|_(a.questionDotToken)|d(a.typeArguments)|d(a.arguments)|8,a.typeArguments&&(a.transformFlags|=1),e.isSuperProperty(a.expression)&&(a.transformFlags|=4096),a}function _t(t,r,n,i,a){return e.Debug.assert(!!(32&t.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),t.expression!==r||t.questionDotToken!==n||t.typeArguments!==i||t.arguments!==a?f(lt(r,n,i,a),t):t}function dt(e,t,r){var n=et(201);return n.expression=g().parenthesizeExpressionOfNew(e),n.typeArguments=Gn(t),n.arguments=r?g().parenthesizeExpressionsOfCommaDelimitedList(r):void 0,n.transformFlags|=_(n.expression)|d(n.typeArguments)|d(n.arguments)|8,n.typeArguments&&(n.transformFlags|=1),n}function pt(t,r,n){var i=et(202);return i.tag=g().parenthesizeLeftSideOfAccess(t),i.typeArguments=Gn(r),i.template=n,i.transformFlags|=_(i.tag)|d(i.typeArguments)|_(i.template)|256,i.typeArguments&&(i.transformFlags|=1),e.hasInvalidEscape(i.template)&&(i.transformFlags|=32),i}function ft(e,t){var r=et(203);return r.expression=g().parenthesizeOperandOfPrefixUnary(t),r.type=e,r.transformFlags|=_(r.expression)|_(r.type)|1,r}function gt(e,t,r){return e.type!==t||e.expression!==r?f(ft(t,r),e):e}function mt(e){var t=et(204);return t.expression=e,t.transformFlags=_(t.expression),t}function ht(e,t){return e.expression!==t?f(mt(t),e):e}function yt(t,r,n,i,a,o,s){var c=L(205,void 0,t,n,i,a,o,s);return c.asteriskToken=r,c.transformFlags|=_(c.asteriskToken),c.typeParameters&&(c.transformFlags|=1),256&e.modifiersToFlags(c.modifiers)?c.transformFlags|=c.asteriskToken?32:64:c.asteriskToken&&(c.transformFlags|=512),c}function vt(e,t,r,n,i,a,o,s){return e.name!==n||e.modifiers!==t||e.asteriskToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?R(yt(t,r,n,i,a,o,s),e):e}function bt(t,r,n,i,a,o){var s=L(206,void 0,t,void 0,r,n,i,g().parenthesizeConciseBodyOfArrowFunction(o));return s.equalsGreaterThanToken=null!=a?a:ee(38),s.transformFlags|=256|_(s.equalsGreaterThanToken),256&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=64),s}function xt(e,t,r,n,i,a,o){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?R(bt(t,r,n,i,a,o),e):e}function Dt(e){var t=et(207);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=_(t.expression),t}function St(e){var t=et(208);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=_(t.expression),t}function Et(e){var t=et(209);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=_(t.expression),t}function Ct(e){var t=et(210);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=524384|_(t.expression),t}function Tt(e,t){var r=et(211);return r.operator=e,r.operand=g().parenthesizeOperandOfPrefixUnary(t),r.transformFlags|=_(r.operand),r}function kt(e,t){var r=et(212);return r.operator=t,r.operand=g().parenthesizeOperandOfPostfixUnary(e),r.transformFlags=_(r.operand),r}function wt(t,r,n){var i,a=et(213),o="number"==typeof(i=r)?ee(i):i,s=o.kind;return a.left=g().parenthesizeLeftSideOfBinary(s,t),a.operatorToken=o,a.right=g().parenthesizeRightSideOfBinary(s,a.left,n),a.transformFlags|=_(a.left)|_(a.operatorToken)|_(a.right),60===s?a.transformFlags|=8:62===s?e.isObjectLiteralExpression(a.left)?a.transformFlags|=1312:e.isArrayLiteralExpression(a.left)&&(a.transformFlags|=1280):42===s||66===s?a.transformFlags|=128:e.isLogicalOrCoalescingAssignmentOperator(s)&&(a.transformFlags|=4),a}function At(e,t,r,n,i){var a=et(214);return a.condition=g().parenthesizeConditionOfConditionalExpression(e),a.questionToken=null!=t?t:ee(57),a.whenTrue=g().parenthesizeBranchOfConditionalExpression(r),a.colonToken=null!=n?n:ee(58),a.whenFalse=g().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=_(a.condition)|_(a.questionToken)|_(a.whenTrue)|_(a.colonToken)|_(a.whenFalse),a}function Nt(e,t){var r=et(215);return r.head=e,r.templateSpans=A(t),r.transformFlags|=_(r.head)|d(r.templateSpans)|256,r}function Pt(r,n,i,a){void 0===a&&(a=0),e.Debug.assert(!(-2049&a),"Unsupported template flags.");var o=void 0;if(void 0!==i&&i!==n&&"object"==typeof(o=function(r,n){switch(t||(t=e.createScanner(99,!1,0)),r){case 14:t.setText("`"+n+"`");break;case 15:t.setText("`"+n+"${");break;case 16:t.setText("}"+n+"${");break;case 17:t.setText("}"+n+"`")}var i,a=t.scan();if(23===a&&(a=t.reScanTemplateToken(!1)),t.isUnterminated())return t.setText(void 0),u;switch(a){case 14:case 15:case 16:case 17:i=t.getTokenValue()}return void 0===i||1!==t.scan()?(t.setText(void 0),u):(t.setText(void 0),i)}(r,i)))return e.Debug.fail("Invalid raw text");if(void 0===n){if(void 0===o)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");n=o}else void 0!==o&&e.Debug.assert(n===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return Ot(r,n,i,a)}function Ot(e,t,r,n){var i=Z(e);return i.text=t,i.rawText=r,i.templateFlags=2048&n,i.transformFlags|=256,i.templateFlags&&(i.transformFlags|=32),i}function Ft(t,r){e.Debug.assert(!t||!!r,"A `YieldExpression` with an asteriskToken must have an expression.");var n=et(216);return n.expression=r&&g().parenthesizeExpressionForDisallowedComma(r),n.asteriskToken=t,n.transformFlags|=_(n.expression)|_(n.asteriskToken)|262432,n}function It(e){var t=et(217);return t.expression=g().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=8448|_(t.expression),t}function Mt(e,t,r,n,i,a){var o=j(218,e,t,r,n,i,a);return o.transformFlags|=256,o}function Lt(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?f(Mt(t,r,n,i,a,o),e):e}function Rt(e,t){var r=N(220);return r.expression=g().parenthesizeLeftSideOfAccess(e),r.typeArguments=t&&g().parenthesizeTypeArguments(t),r.transformFlags|=_(r.expression)|d(r.typeArguments)|256,r}function Bt(e,t){var r=et(221);return r.expression=e,r.type=t,r.transformFlags|=_(r.expression)|_(r.type)|1,r}function jt(e,t,r){return e.expression!==t||e.type!==r?f(Bt(t,r),e):e}function Ut(e){var t=et(222);return t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|_(t.expression),t}function zt(t,r){return e.isNonNullChain(t)?Vt(t,r):t.expression!==r?f(Ut(r),t):t}function Jt(e){var t=et(222);return t.flags|=32,t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|_(t.expression),t}function Vt(t,r){return e.Debug.assert(!!(32&t.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),t.expression!==r?f(Jt(r),t):t}function Wt(t,r){var n=et(223);switch(n.keywordToken=t,n.name=r,n.transformFlags|=_(n.name),t){case 102:n.transformFlags|=256;break;case 99:n.transformFlags|=4;break;default:return e.Debug.assertNever(t)}return n}function qt(e,t){var r=N(225);return r.expression=e,r.literal=t,r.transformFlags|=_(r.expression)|_(r.literal)|256,r}function Kt(e,t){var r=N(227);return r.statements=A(e),r.multiLine=t,r.transformFlags|=d(r.statements),r}function Ht(t,r){var n=P(229,void 0,t);return n.declarationList=e.isArray(r)?pr(r):r,n.transformFlags|=_(n.declarationList),2&e.modifiersToFlags(n.modifiers)&&(n.transformFlags=1),n}function Gt(e,t,r){return e.modifiers!==t||e.declarationList!==r?f(Ht(t,r),e):e}function Qt(){return N(228)}function $t(e){var t=N(230);return t.expression=g().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=_(t.expression),t}function Xt(e,t,r){var n=N(231);return n.expression=e,n.thenStatement=Xn(t),n.elseStatement=Xn(r),n.transformFlags|=_(n.expression)|_(n.thenStatement)|_(n.elseStatement),n}function Yt(e,t){var r=N(232);return r.statement=Xn(e),r.expression=t,r.transformFlags|=_(r.statement)|_(r.expression),r}function Zt(e,t){var r=N(233);return r.expression=e,r.statement=Xn(t),r.transformFlags|=_(r.expression)|_(r.statement),r}function er(e,t,r,n){var i=N(234);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=Xn(n),i.transformFlags|=_(i.initializer)|_(i.condition)|_(i.incrementor)|_(i.statement),i}function tr(e,t,r){var n=N(235);return n.initializer=e,n.expression=t,n.statement=Xn(r),n.transformFlags|=_(n.initializer)|_(n.expression)|_(n.statement),n}function rr(e,t,r,n){var i=N(236);return i.awaitModifier=e,i.initializer=t,i.expression=g().parenthesizeExpressionForDisallowedComma(r),i.statement=Xn(n),i.transformFlags|=_(i.awaitModifier)|_(i.initializer)|_(i.expression)|_(i.statement)|256,e&&(i.transformFlags|=32),i}function nr(e){var t=N(237);return t.label=Qn(e),t.transformFlags|=1048576|_(t.label),t}function ir(e){var t=N(238);return t.label=Qn(e),t.transformFlags|=1048576|_(t.label),t}function ar(e){var t=N(239);return t.expression=e,t.transformFlags|=1048608|_(t.expression),t}function or(e,t){var r=N(240);return r.expression=e,r.statement=Xn(t),r.transformFlags|=_(r.expression)|_(r.statement),r}function sr(e,t){var r=N(241);return r.expression=g().parenthesizeExpressionForDisallowedComma(e),r.caseBlock=t,r.transformFlags|=_(r.expression)|_(r.caseBlock),r}function cr(e,t){var r=N(242);return r.label=Qn(e),r.statement=Xn(t),r.transformFlags|=_(r.label)|_(r.statement),r}function ur(e,t,r){return e.label!==t||e.statement!==r?f(cr(t,r),e):e}function lr(e){var t=N(243);return t.expression=e,t.transformFlags|=_(t.expression),t}function _r(e,t,r){var n=N(244);return n.tryBlock=e,n.catchClause=t,n.finallyBlock=r,n.transformFlags|=_(n.tryBlock)|_(n.catchClause)|_(n.finallyBlock),n}function dr(e,t,r,n){var i=z(246,void 0,void 0,e,r,n&&g().parenthesizeExpressionForDisallowedComma(n));return i.exclamationToken=t,i.transformFlags|=_(i.exclamationToken),t&&(i.transformFlags|=1),i}function pr(e,t){void 0===t&&(t=0);var r=N(247);return r.flags|=3&t,r.declarations=A(e),r.transformFlags|=1048576|d(r.declarations),3&t&&(r.transformFlags|=65792),r}function fr(t,r,n,i,a,o,s,c){var u=L(248,t,r,i,a,o,s,c);return u.asteriskToken=n,!u.body||2&e.modifiersToFlags(u.modifiers)?u.transformFlags=1:(u.transformFlags|=1048576|_(u.asteriskToken),256&e.modifiersToFlags(u.modifiers)?u.transformFlags|=u.asteriskToken?32:64:u.asteriskToken&&(u.transformFlags|=512)),u}function gr(e,t,r,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?R(fr(t,r,n,i,a,o,s,c),e):e}function mr(t,r,n,i,a,o){var s=j(249,t,r,n,i,a,o);return 2&e.modifiersToFlags(s.modifiers)?s.transformFlags=1:(s.transformFlags|=256,2048&s.transformFlags&&(s.transformFlags|=1)),s}function hr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?f(mr(t,r,n,i,a,o),e):e}function yr(e,t,r,n,i,a){var o=B(250,e,t,r,n,i);return o.members=A(a),o.transformFlags=1,o}function vr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?f(yr(t,r,n,i,a,o),e):e}function br(e,t,r,n,i){var a=F(251,e,t,r,n);return a.type=i,a.transformFlags=1,a}function xr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.type!==a?f(br(t,r,n,i,a),e):e}function Dr(e,t,r,n){var i=O(252,e,t,r);return i.members=A(n),i.transformFlags|=1|d(i.members),i.transformFlags&=-8388609,i}function Sr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.members!==i?f(Dr(t,r,n,i),e):e}function Er(t,r,n,i,a){void 0===a&&(a=0);var o=P(253,t,r);return o.flags|=1044&a,o.name=n,o.body=i,2&e.modifiersToFlags(o.modifiers)?o.transformFlags=1:o.transformFlags|=_(o.name)|_(o.body)|1,o.transformFlags&=-8388609,o}function Cr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.body!==i?f(Er(t,r,n,i,e.flags),e):e}function Tr(e){var t=N(254);return t.statements=A(e),t.transformFlags|=d(t.statements),t}function kr(e){var t=N(255);return t.clauses=A(e),t.transformFlags|=d(t.clauses),t}function wr(e){var t=O(256,void 0,void 0,e);return t.transformFlags=1,t}function Ar(t,r,n,i){var a=O(257,t,r,n);return a.moduleReference=i,a.transformFlags|=_(a.moduleReference),e.isExternalModuleReference(a.moduleReference)||(a.transformFlags|=1),a.transformFlags&=-8388609,a}function Nr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.moduleReference!==i?f(Ar(t,r,n,i),e):e}function Pr(e,t,r,n){var i=P(258,e,t);return i.importClause=r,i.moduleSpecifier=n,i.transformFlags|=_(i.importClause)|_(i.moduleSpecifier),i.transformFlags&=-8388609,i}function Or(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.importClause!==n||e.moduleSpecifier!==i?f(Pr(t,r,n,i),e):e}function Fr(e,t,r){var n=N(259);return n.isTypeOnly=e,n.name=t,n.namedBindings=r,n.transformFlags|=_(n.name)|_(n.namedBindings),e&&(n.transformFlags|=1),n.transformFlags&=-8388609,n}function Ir(e){var t=N(260);return t.name=e,t.transformFlags|=_(t.name),t.transformFlags&=-8388609,t}function Mr(e){var t=N(266);return t.name=e,t.transformFlags|=4|_(t.name),t.transformFlags&=-8388609,t}function Lr(e){var t=N(261);return t.elements=A(e),t.transformFlags|=d(t.elements),t.transformFlags&=-8388609,t}function Rr(e,t){var r=N(262);return r.propertyName=e,r.name=t,r.transformFlags|=_(r.propertyName)|_(r.name),r.transformFlags&=-8388609,r}function Br(e,t,r,n){var i=P(263,e,t);return i.isExportEquals=r,i.expression=r?g().parenthesizeRightSideOfBinary(62,void 0,n):g().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=_(i.expression),i.transformFlags&=-8388609,i}function jr(e,t,r,n){return e.decorators!==t||e.modifiers!==r||e.expression!==n?f(Br(t,r,e.isExportEquals,n),e):e}function Ur(e,t,r,n,i){var a=P(264,e,t);return a.isTypeOnly=r,a.exportClause=n,a.moduleSpecifier=i,a.transformFlags|=_(a.exportClause)|_(a.moduleSpecifier),a.transformFlags&=-8388609,a}function zr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.exportClause!==i||e.moduleSpecifier!==a?f(Ur(t,r,n,i,a),e):e}function Jr(e){var t=N(265);return t.elements=A(e),t.transformFlags|=d(t.elements),t.transformFlags&=-8388609,t}function Vr(e,t){var r=N(267);return r.propertyName=Qn(e),r.name=Qn(t),r.transformFlags|=_(r.propertyName)|_(r.name),r.transformFlags&=-8388609,r}function Wr(e){var t=N(269);return t.expression=e,t.transformFlags|=_(t.expression),t.transformFlags&=-8388609,t}function qr(e,t){var r=N(e);return r.type=t,r}function Kr(e,t){return I(304,void 0,void 0,void 0,void 0,e,t)}function Hr(e,t){void 0===t&&(t=!1);var r=N(308);return r.jsDocPropertyTags=Gn(e),r.isArrayType=t,r}function Gr(e){var t=N(298);return t.type=e,t}function Qr(e,t,r){var n=N(309);return n.typeParameters=Gn(e),n.parameters=A(t),n.type=r,n}function $r(t){var r=c(t.kind);return t.tagName.escapedText===e.escapeLeadingUnderscores(r)?t.tagName:$(r)}function Xr(e,t,r){var n=N(e);return n.tagName=t,n.comment=r,n}function Yr(e,t,r,n){var i=Xr(326,null!=e?e:$("template"),n);return i.constraint=t,i.typeParameters=A(r),i}function Zr(t,r,n,i){var a=Xr(327,null!=t?t:$("typedef"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function en(e,t,r,n,i,a){var o=Xr(322,null!=e?e:$("param"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function tn(e,t,r,n,i,a){var o=Xr(328,null!=e?e:$("prop"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function rn(t,r,n,i){var a=Xr(320,null!=t?t:$("callback"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function nn(e,t,r){var n=Xr(311,null!=e?e:$("augments"),r);return n.class=t,n}function an(e,t,r){var n=Xr(312,null!=e?e:$("implements"),r);return n.class=t,n}function on(e,t,r){return Xr(e,null!=t?t:$(c(e)),r)}function sn(e,t,r,n){var i=Xr(e,null!=t?t:$(c(e)),n);return i.typeExpression=r,i}function cn(e,t){return Xr(310,e,t)}function un(e,t){var r=N(307);return r.comment=e,r.tags=Gn(t),r}function ln(e,t,r){var n=N(270);return n.openingElement=e,n.children=A(t),n.closingElement=r,n.transformFlags|=_(n.openingElement)|d(n.children)|_(n.closingElement)|2,n}function _n(e,t,r){var n=N(271);return n.tagName=e,n.typeArguments=Gn(t),n.attributes=r,n.transformFlags|=_(n.tagName)|d(n.typeArguments)|_(n.attributes)|2,n.typeArguments&&(n.transformFlags|=1),n}function dn(e,t,r){var n=N(272);return n.tagName=e,n.typeArguments=Gn(t),n.attributes=r,n.transformFlags|=_(n.tagName)|d(n.typeArguments)|_(n.attributes)|2,t&&(n.transformFlags|=1),n}function pn(e){var t=N(273);return t.tagName=e,t.transformFlags|=2|_(t.tagName),t}function fn(e,t,r){var n=N(274);return n.openingFragment=e,n.children=A(t),n.closingFragment=r,n.transformFlags|=_(n.openingFragment)|d(n.children)|_(n.closingFragment)|2,n}function gn(e,t){var r=N(11);return r.text=e,r.containsOnlyTriviaWhiteSpaces=!!t,r.transformFlags|=2,r}function mn(e,t){var r=N(277);return r.name=e,r.initializer=t,r.transformFlags|=_(r.name)|_(r.initializer)|2,r}function hn(e){var t=N(278);return t.properties=A(e),t.transformFlags|=2|d(t.properties),t}function yn(e){var t=N(279);return t.expression=e,t.transformFlags|=2|_(t.expression),t}function vn(e,t){var r=N(280);return r.dotDotDotToken=e,r.expression=t,r.transformFlags|=_(r.dotDotDotToken)|_(r.expression)|2,r}function bn(e,t){var r=N(281);return r.expression=g().parenthesizeExpressionForDisallowedComma(e),r.statements=A(t),r.transformFlags|=_(r.expression)|d(r.statements),r}function xn(e){var t=N(282);return t.statements=A(e),t.transformFlags=d(t.statements),t}function Dn(t,r){var n=N(283);switch(n.token=t,n.types=A(r),n.transformFlags|=d(n.types),t){case 93:n.transformFlags|=256;break;case 116:n.transformFlags|=1;break;default:return e.Debug.assertNever(t)}return n}function Sn(t,r){var n=N(284);return t=e.isString(t)?dr(t,void 0,void 0,void 0):t,n.variableDeclaration=t,n.block=r,n.transformFlags|=_(n.variableDeclaration)|_(n.block),t||(n.transformFlags|=16),n}function En(e,t){var r=O(285,void 0,void 0,e);return r.initializer=g().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=_(r.name)|_(r.initializer),r}function Cn(e,t){var r=O(286,void 0,void 0,e);return r.objectAssignmentInitializer=t&&g().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=256|_(r.objectAssignmentInitializer),r}function Tn(e){var t=N(287);return t.expression=g().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=16416|_(t.expression),t}function kn(e,t){var r=N(288);return r.name=Qn(e),r.initializer=t&&g().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=_(r.name)|_(r.initializer)|1,r}function wn(t,r){void 0===r&&(r=e.emptyArray);var n=N(295);return n.prepends=r,n.sourceFiles=t,n}function An(e,t){var r=N(e);return r.data=t,r}function Nn(t,r){var n=N(331);return n.expression=t,n.original=r,n.transformFlags|=1|_(n.expression),e.setTextRange(n,r),n}function Pn(e,t){return e.expression!==t?f(Nn(t,e.original),e):e}function On(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(e.isCommaListExpression(t))return t.elements;if(e.isBinaryExpression(t)&&e.isCommaToken(t.operatorToken))return[t.left,t.right]}return t}function Fn(t){var r=N(332);return r.elements=A(e.sameFlatMap(t,On)),r.transformFlags|=d(r.elements),r}function In(e,t){var r=N(335);return r.expression=e,r.thisArg=t,r.transformFlags|=_(r.expression)|_(r.thisArg),r}function Mn(t){if(void 0===t)return t;var r=e.isSourceFile(t)?a.createBaseSourceFileNode(294):e.isIdentifier(t)?a.createBaseIdentifierNode(78):e.isPrivateIdentifier(t)?a.createBasePrivateIdentifierNode(79):e.isNodeKind(t.kind)?a.createBaseNode(t.kind):a.createBaseTokenNode(t.kind);for(var n in r.flags|=-9&t.flags,r.transformFlags=t.transformFlags,y(r,t),t)!r.hasOwnProperty(n)&&t.hasOwnProperty(n)&&(r[n]=t[n]);return r}function Ln(){return Et(V("0"))}function Rn(e,t,r){return ut(nt(e,t),void 0,r)}function Bn(e,t,r){return Rn($(e),t,r)}function jn(e,t,r){return!!r&&(e.push(En(t,r)),!0)}function Un(t,r){var n=e.skipParentheses(t);switch(n.kind){case 78:return r;case 107:case 8:case 9:case 10:return!1;case 196:return 0!==n.elements.length;case 197:return n.properties.length>0;default:return!0}}function zn(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange(Mn(a),a),a.parent);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return Y(t)}function Jn(e,t,r){return zn(e,t,r,8192)}function Vn(t,r,n,i){var a=nt(t,e.nodeIsSynthesized(r)?r:Mn(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function Wn(){return e.startOnNewLine($t(K("use strict")))}function qn(t,r,n){e.Debug.assert(0===r.length,"Prologue directives should be at the first statement in the target statements array");for(var i,a=!1,o=0,s=t.length;o=171&&e<=192)return-2;switch(e){case 200:case 201:case 196:return 536879104;case 253:return 546379776;case 159:return 536870912;case 206:return 547309568;case 205:case 248:return 547313664;case 247:return 537018368;case 249:case 218:return 536905728;case 165:return 547311616;case 162:return 536875008;case 164:case 166:case 167:return 538923008;case 128:case 143:case 154:case 140:case 146:case 144:case 131:case 147:case 113:case 158:case 161:case 163:case 168:case 169:case 170:case 250:case 251:return-2;case 197:return 536922112;case 284:return 536887296;case 193:case 194:return 536879104;case 203:case 221:case 331:case 204:case 105:return 536870912;case 198:case 199:default:return 536870912}}e.getTransformFlagsSubtreeExclusions=f;var g,m=e.createBaseNodeFactory();function h(e){return e.flags|=8,e}function y(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=function(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers,_=t.startsOnNewLine;if(r||(r={}),i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments)),a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments)),n&&(r.flags=n),o&&(r.commentRange=o),s&&(r.sourceMapRange=s),c&&(r.tokenSourceMapRanges=function(e,t){for(var r in t||(t=[]),e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges)),void 0!==u&&(r.constantValue=u),l)for(var d=0,p=l;d0&&(o[u-c]=l)}c>0&&(o.length-=c)}},e.ignoreSourceNewlines=function(e){return t(e).flags|=134217728,e}}(l||(l={})),function(e){function t(e){for(var t=[],r=1;r=2?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),void 0,i):(t.requestEmitHelper(e.assignHelper),r.createCallExpression(n("__assign"),void 0,i))},createAwaitHelper:function(i){return t.requestEmitHelper(e.awaitHelper),r.createCallExpression(n("__await"),void 0,[i])},createAsyncGeneratorHelper:function(i,a){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(i.emitNode||(i.emitNode={})).flags|=786432,r.createCallExpression(n("__asyncGenerator"),void 0,[a?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),i])},createAsyncDelegatorHelper:function(i){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),r.createCallExpression(n("__asyncDelegator"),void 0,[i])},createAsyncValuesHelper:function(i){return t.requestEmitHelper(e.asyncValues),r.createCallExpression(n("__asyncValues"),void 0,[i])},createRestHelper:function(i,a,o,s){t.requestEmitHelper(e.restHelper);for(var c=[],u=0,l=0;l= 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 };'},e.metadataHelper={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 };'},e.paramHelper={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 };"},e.assignHelper={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 };"},e.awaitHelper={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); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],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"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\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 };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],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: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={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 };'},e.restHelper={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 };'},e.awaiterHelper={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 };'},e.extendsHelper={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 extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"},e.templateObjectHelper={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 };'},e.readHelper={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 };'},e.spreadHelper={name:"typescript:spread",importName:"__spread",scoped:!1,dependencies:[e.readHelper],text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"},e.spreadArraysHelper={name:"typescript:spreadArrays",importName:"__spreadArrays",scoped:!1,text:"\n var __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n };"},e.valuesHelper={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 };'},e.generatorHelper={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 (_) 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 };'},e.createBindingHelper={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 Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));"},e.setModuleDefaultHelper={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 });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],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 };'},e.importDefaultHelper={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 };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],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 };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {\n if (!privateMap.has(receiver)) {\n throw new TypeError("attempted to get private field on non-instance");\n }\n return privateMap.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {\n if (!privateMap.has(receiver)) {\n throw new TypeError("attempted to set private field on non-instance");\n }\n privateMap.set(receiver, value);\n return value;\n };'},e.getAllUnscopedEmitHelpers=function(){return r||(r=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadHelper,e.spreadArraysHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.createBindingHelper,e.setModuleDefaultHelper],function(e){return e.name}))},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:t(o(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(o(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")}}(l||(l={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isIdentifier=function(e){return 78===e.kind},e.isQualifiedName=function(e){return 156===e.kind},e.isComputedPropertyName=function(e){return 157===e.kind},e.isPrivateIdentifier=function(e){return 79===e.kind},e.isSuperKeyword=function(e){return 105===e.kind},e.isImportKeyword=function(e){return 99===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isTypeParameterDeclaration=function(e){return 158===e.kind},e.isParameter=function(e){return 159===e.kind},e.isDecorator=function(e){return 160===e.kind},e.isPropertySignature=function(e){return 161===e.kind},e.isPropertyDeclaration=function(e){return 162===e.kind},e.isMethodSignature=function(e){return 163===e.kind},e.isMethodDeclaration=function(e){return 164===e.kind},e.isConstructorDeclaration=function(e){return 165===e.kind},e.isGetAccessorDeclaration=function(e){return 166===e.kind},e.isSetAccessorDeclaration=function(e){return 167===e.kind},e.isCallSignatureDeclaration=function(e){return 168===e.kind},e.isConstructSignatureDeclaration=function(e){return 169===e.kind},e.isIndexSignatureDeclaration=function(e){return 170===e.kind},e.isTypePredicateNode=function(e){return 171===e.kind},e.isTypeReferenceNode=function(e){return 172===e.kind},e.isFunctionTypeNode=function(e){return 173===e.kind},e.isConstructorTypeNode=function(e){return 174===e.kind},e.isTypeQueryNode=function(e){return 175===e.kind},e.isTypeLiteralNode=function(e){return 176===e.kind},e.isArrayTypeNode=function(e){return 177===e.kind},e.isTupleTypeNode=function(e){return 178===e.kind},e.isNamedTupleMember=function(e){return 191===e.kind},e.isOptionalTypeNode=function(e){return 179===e.kind},e.isRestTypeNode=function(e){return 180===e.kind},e.isUnionTypeNode=function(e){return 181===e.kind},e.isIntersectionTypeNode=function(e){return 182===e.kind},e.isConditionalTypeNode=function(e){return 183===e.kind},e.isInferTypeNode=function(e){return 184===e.kind},e.isParenthesizedTypeNode=function(e){return 185===e.kind},e.isThisTypeNode=function(e){return 186===e.kind},e.isTypeOperatorNode=function(e){return 187===e.kind},e.isIndexedAccessTypeNode=function(e){return 188===e.kind},e.isMappedTypeNode=function(e){return 189===e.kind},e.isLiteralTypeNode=function(e){return 190===e.kind},e.isImportTypeNode=function(e){return 192===e.kind},e.isObjectBindingPattern=function(e){return 193===e.kind},e.isArrayBindingPattern=function(e){return 194===e.kind},e.isBindingElement=function(e){return 195===e.kind},e.isArrayLiteralExpression=function(e){return 196===e.kind},e.isObjectLiteralExpression=function(e){return 197===e.kind},e.isPropertyAccessExpression=function(e){return 198===e.kind},e.isElementAccessExpression=function(e){return 199===e.kind},e.isCallExpression=function(e){return 200===e.kind},e.isNewExpression=function(e){return 201===e.kind},e.isTaggedTemplateExpression=function(e){return 202===e.kind},e.isTypeAssertionExpression=function(e){return 203===e.kind},e.isParenthesizedExpression=function(e){return 204===e.kind},e.isFunctionExpression=function(e){return 205===e.kind},e.isArrowFunction=function(e){return 206===e.kind},e.isDeleteExpression=function(e){return 207===e.kind},e.isTypeOfExpression=function(e){return 208===e.kind},e.isVoidExpression=function(e){return 209===e.kind},e.isAwaitExpression=function(e){return 210===e.kind},e.isPrefixUnaryExpression=function(e){return 211===e.kind},e.isPostfixUnaryExpression=function(e){return 212===e.kind},e.isBinaryExpression=function(e){return 213===e.kind},e.isConditionalExpression=function(e){return 214===e.kind},e.isTemplateExpression=function(e){return 215===e.kind},e.isYieldExpression=function(e){return 216===e.kind},e.isSpreadElement=function(e){return 217===e.kind},e.isClassExpression=function(e){return 218===e.kind},e.isOmittedExpression=function(e){return 219===e.kind},e.isExpressionWithTypeArguments=function(e){return 220===e.kind},e.isAsExpression=function(e){return 221===e.kind},e.isNonNullExpression=function(e){return 222===e.kind},e.isMetaProperty=function(e){return 223===e.kind},e.isSyntheticExpression=function(e){return 224===e.kind},e.isPartiallyEmittedExpression=function(e){return 331===e.kind},e.isCommaListExpression=function(e){return 332===e.kind},e.isTemplateSpan=function(e){return 225===e.kind},e.isSemicolonClassElement=function(e){return 226===e.kind},e.isBlock=function(e){return 227===e.kind},e.isVariableStatement=function(e){return 229===e.kind},e.isEmptyStatement=function(e){return 228===e.kind},e.isExpressionStatement=function(e){return 230===e.kind},e.isIfStatement=function(e){return 231===e.kind},e.isDoStatement=function(e){return 232===e.kind},e.isWhileStatement=function(e){return 233===e.kind},e.isForStatement=function(e){return 234===e.kind},e.isForInStatement=function(e){return 235===e.kind},e.isForOfStatement=function(e){return 236===e.kind},e.isContinueStatement=function(e){return 237===e.kind},e.isBreakStatement=function(e){return 238===e.kind},e.isReturnStatement=function(e){return 239===e.kind},e.isWithStatement=function(e){return 240===e.kind},e.isSwitchStatement=function(e){return 241===e.kind},e.isLabeledStatement=function(e){return 242===e.kind},e.isThrowStatement=function(e){return 243===e.kind},e.isTryStatement=function(e){return 244===e.kind},e.isDebuggerStatement=function(e){return 245===e.kind},e.isVariableDeclaration=function(e){return 246===e.kind},e.isVariableDeclarationList=function(e){return 247===e.kind},e.isFunctionDeclaration=function(e){return 248===e.kind},e.isClassDeclaration=function(e){return 249===e.kind},e.isInterfaceDeclaration=function(e){return 250===e.kind},e.isTypeAliasDeclaration=function(e){return 251===e.kind},e.isEnumDeclaration=function(e){return 252===e.kind},e.isModuleDeclaration=function(e){return 253===e.kind},e.isModuleBlock=function(e){return 254===e.kind},e.isCaseBlock=function(e){return 255===e.kind},e.isNamespaceExportDeclaration=function(e){return 256===e.kind},e.isImportEqualsDeclaration=function(e){return 257===e.kind},e.isImportDeclaration=function(e){return 258===e.kind},e.isImportClause=function(e){return 259===e.kind},e.isNamespaceImport=function(e){return 260===e.kind},e.isNamespaceExport=function(e){return 266===e.kind},e.isNamedImports=function(e){return 261===e.kind},e.isImportSpecifier=function(e){return 262===e.kind},e.isExportAssignment=function(e){return 263===e.kind},e.isExportDeclaration=function(e){return 264===e.kind},e.isNamedExports=function(e){return 265===e.kind},e.isExportSpecifier=function(e){return 267===e.kind},e.isMissingDeclaration=function(e){return 268===e.kind},e.isNotEmittedStatement=function(e){return 330===e.kind},e.isSyntheticReference=function(e){return 335===e.kind},e.isMergeDeclarationMarker=function(e){return 333===e.kind},e.isEndOfDeclarationMarker=function(e){return 334===e.kind},e.isExternalModuleReference=function(e){return 269===e.kind},e.isJsxElement=function(e){return 270===e.kind},e.isJsxSelfClosingElement=function(e){return 271===e.kind},e.isJsxOpeningElement=function(e){return 272===e.kind},e.isJsxClosingElement=function(e){return 273===e.kind},e.isJsxFragment=function(e){return 274===e.kind},e.isJsxOpeningFragment=function(e){return 275===e.kind},e.isJsxClosingFragment=function(e){return 276===e.kind},e.isJsxAttribute=function(e){return 277===e.kind},e.isJsxAttributes=function(e){return 278===e.kind},e.isJsxSpreadAttribute=function(e){return 279===e.kind},e.isJsxExpression=function(e){return 280===e.kind},e.isCaseClause=function(e){return 281===e.kind},e.isDefaultClause=function(e){return 282===e.kind},e.isHeritageClause=function(e){return 283===e.kind},e.isCatchClause=function(e){return 284===e.kind},e.isPropertyAssignment=function(e){return 285===e.kind},e.isShorthandPropertyAssignment=function(e){return 286===e.kind},e.isSpreadAssignment=function(e){return 287===e.kind},e.isEnumMember=function(e){return 288===e.kind},e.isUnparsedPrepend=function(e){return 290===e.kind},e.isSourceFile=function(e){return 294===e.kind},e.isBundle=function(e){return 295===e.kind},e.isUnparsedSource=function(e){return 296===e.kind},e.isJSDocTypeExpression=function(e){return 298===e.kind},e.isJSDocAllType=function(e){return 299===e.kind},e.isJSDocUnknownType=function(e){return 300===e.kind},e.isJSDocNullableType=function(e){return 301===e.kind},e.isJSDocNonNullableType=function(e){return 302===e.kind},e.isJSDocOptionalType=function(e){return 303===e.kind},e.isJSDocFunctionType=function(e){return 304===e.kind},e.isJSDocVariadicType=function(e){return 305===e.kind},e.isJSDocNamepathType=function(e){return 306===e.kind},e.isJSDoc=function(e){return 307===e.kind},e.isJSDocTypeLiteral=function(e){return 308===e.kind},e.isJSDocSignature=function(e){return 309===e.kind},e.isJSDocAugmentsTag=function(e){return 311===e.kind},e.isJSDocAuthorTag=function(e){return 313===e.kind},e.isJSDocClassTag=function(e){return 315===e.kind},e.isJSDocCallbackTag=function(e){return 320===e.kind},e.isJSDocPublicTag=function(e){return 316===e.kind},e.isJSDocPrivateTag=function(e){return 317===e.kind},e.isJSDocProtectedTag=function(e){return 318===e.kind},e.isJSDocReadonlyTag=function(e){return 319===e.kind},e.isJSDocDeprecatedTag=function(e){return 314===e.kind},e.isJSDocEnumTag=function(e){return 321===e.kind},e.isJSDocParameterTag=function(e){return 322===e.kind},e.isJSDocReturnTag=function(e){return 323===e.kind},e.isJSDocThisTag=function(e){return 324===e.kind},e.isJSDocTypeTag=function(e){return 325===e.kind},e.isJSDocTemplateTag=function(e){return 326===e.kind},e.isJSDocTypedefTag=function(e){return 327===e.kind},e.isJSDocUnknownTag=function(e){return 310===e.kind},e.isJSDocPropertyTag=function(e){return 328===e.kind},e.isJSDocImplementsTag=function(e){return 312===e.kind},e.isSyntaxList=function(e){return 329===e.kind}}(l||(l={})),function(e){function t(t,r,n,i){if(e.isComputedPropertyName(n))return e.setTextRange(t.createElementAccessExpression(r,n.expression),i);var a=e.setTextRange(e.isIdentifierOrPrivateIdentifier(n)?t.createPropertyAccessExpression(r,n):t.createElementAccessExpression(r,n),n);return e.getOrCreateEmitNode(a).flags|=64,a}function r(t,r){var n=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(n,e.getParseTreeNode(r)),n}function n(t,i,a){if(e.isQualifiedName(i)){var o=n(t,i.left,a),s=t.createIdentifier(e.idText(i.right));return s.escapedText=i.right.escapedText,t.createPropertyAccessExpression(o,s)}return r(e.idText(i),a)}function a(e,t,i,a){return t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"createElement")}function o(t,r){return e.isIdentifier(r)?t.createStringLiteralFromNode(r):e.isComputedPropertyName(r)?e.setParent(e.setTextRange(t.cloneNode(r.expression),r.expression),r.expression.parent):e.setParent(e.setTextRange(t.cloneNode(r),r),r.parent)}function s(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function c(e,t){switch(void 0===t&&(t=15),e.kind){case 204:return 0!=(1&t);case 203:case 221:return 0!=(2&t);case 222:return 0!=(4&t);case 331:return 0!=(8&t)}return!1}function u(e,t){for(void 0===t&&(t=15);c(e,t);)e=e.expression;return e}function l(t){return e.setStartsOnNewLine(t,!0)}function _(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function d(t,r,n,i,a){if(n.importHelpers&&e.isEffectiveExternalModule(r,n)){var o=_(r);if(o)return o;var s=e.getEmitModuleKind(n),c=(i||n.esModuleInterop&&a)&&s!==e.ModuleKind.System&&s0)if(o||_.push(t.createNull()),s.length>1)for(var d=0,p=s;d0)if(c.length>1)for(var p=0,f=c;p=e.ModuleKind.ES2015&&u<=e.ModuleKind.ESNext){var l=e.getEmitHelpers(n);if(l){for(var _=[],p=0,f=l;pt.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})});break;case"jsx":case"jsxfrag":return;default:e.Debug.fail("Unhandled pragma kind")}})}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(t||(t={})),function(e){e[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse"}(r||(r={})),e.parseBaseNodeFactory={createBaseSourceFileNode:function(t){return new(s||(s=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(a||(a=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(o||(o=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(i||(i=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(t){return new(n||(n=e.objectAllocator.getNodeConstructor()))(t,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=d,e.forEachChild=p,e.forEachChildRecursively=function(t,r,n){for(var i=[t];i.length;){var a=i.pop(),o=c(a,s(a));if(o)return o}return;function s(e){var t=[];return p(e,r,r),t;function r(e){t.unshift(e)}}function c(t,a){for(var o=0,s=a;o=0;u--){var l=c[u];if(_=r(l,t)){if("skip"===_)continue;return _}i.push(l)}}else{var _;if(i.push(c),_=r(c,t)){if("skip"===_)continue;return _}}}}},e.createSourceFile=function(t,r,n,i,a){var o;return void 0===i&&(i=!1),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(t),o=c.parseSourceFile(t,r,n,void 0,i,100===n?6:a),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),o},e.parseIsolatedEntityName=function(e,t){return c.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return c.parseJsonText(e,t)},e.isExternalModule=f,e.updateSourceFile=function(e,t,r,n){void 0===n&&(n=!1);var i=u.updateSourceFile(e,t,r,n);return i.flags|=3145728&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,r){var n=c.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&c.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=function(e,t,r){return c.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(t){var r,n,i,a,o,s=e.createScanner(99,!0);function c(e){return k++,e}var l,_,y,v,b,x,D,S,C,T,k,w,A,N,P,O,F,I=e.createNodeFactory(11,{createBaseSourceFileNode:function(e){return c(new o(e,0,0))},createBaseIdentifierNode:function(e){return c(new i(e,0,0))},createBasePrivateIdentifierNode:function(e){return c(new a(e,0,0))},createBaseTokenNode:function(e){return c(new n(e,0,0))},createBaseNode:function(e){return c(new r(e,0,0))}}),M=!0,L=!1;function R(t,r,n,i,a){void 0===n&&(n=2),void 0===a&&(a=!1),B(t,r,n,i,6),_=F,ve();var o,s,c=fe();if(1===me())o=Be([],c,c),s=Me();else{var u=void 0;switch(me()){case 22:u=dn();break;case 109:case 94:case 103:u=Me();break;case 40:u=ke(function(){return 8===ve()&&58!==ve()})?Ur():fn();break;case 8:case 10:if(ke(function(){return 58!==ve()})){u=Ct();break}default:u=fn()}var l=I.createExpressionStatement(u);je(l,c),o=Be([l],c),s=Ie(1,e.Diagnostics.Unexpected_token)}var d=G(t,2,6,!1,o,s,_);a&&H(d),d.nodeCount=k,d.identifierCount=N,d.identifiers=w,d.parseDiagnostics=e.attachFileToDiagnostics(D,d),S&&(d.jsDocDiagnostics=e.attachFileToDiagnostics(S,d));var p=d;return j(),p}function B(t,c,u,d,p){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getPrivateIdentifierConstructor(),o=e.objectAllocator.getSourceFileConstructor(),l=e.normalizePath(t),y=c,v=u,C=d,b=p,x=e.getLanguageVariant(p),D=[],P=0,w=new e.Map,A=new e.Map,N=0,k=0,_=0,M=!0,b){case 1:case 2:F=131072;break;case 6:F=33685504;break;default:F=0}L=!1,s.setText(y),s.setOnError(pe),s.setScriptTarget(v),s.setLanguageVariant(x)}function j(){s.clearCommentDirectives(),s.setText(""),s.setOnError(void 0),y=void 0,v=void 0,C=void 0,b=void 0,x=void 0,_=0,D=void 0,S=void 0,P=0,w=void 0,O=void 0,M=!0}function U(t,r,n){var i=g(l);i&&(F|=8388608),_=F,ve();var a=_t(0,An);e.Debug.assert(1===me());var o=K(Me()),c=G(l,t,n,i,a,o,_);return m(c,y),h(c,function(t,r,n){D.push(e.createDetachedDiagnostic(l,t,r,n))}),c.commentDirectives=s.getCommentDirectives(),c.nodeCount=k,c.identifierCount=N,c.identifiers=w,c.parseDiagnostics=e.attachFileToDiagnostics(D,c),S&&(c.jsDocDiagnostics=e.attachFileToDiagnostics(S,c)),r&&H(c),c}function z(e,t){return t?K(e):e}t.parseSourceFile=function(t,r,n,i,a,o){if(void 0===a&&(a=!1),6===(o=e.ensureScriptKind(t,o))){var s=R(t,r,n,i,a);return e.convertToObjectWorker(s,s.parseDiagnostics,!1,void 0,void 0),s.referencedFiles=e.emptyArray,s.typeReferenceDirectives=e.emptyArray,s.libReferenceDirectives=e.emptyArray,s.amdDependencies=e.emptyArray,s.hasNoDefaultLib=!1,s.pragmas=e.emptyMap,s}B(t,r,n,i,o);var c=U(n,a,o);return j(),c},t.parseIsolatedEntityName=function(e,t){B("",e,t,void 0,1),ve();var r=bt(!0),n=1===me()&&!D.length;return j(),n?r:void 0},t.parseJsonText=R;var J,V,W,q=!1;function K(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,y),function(e){return W.parseJSDocComment(t,e.pos,e.end-e.pos)});return r.length&&(t.jsDoc=r),q&&(q=!1,t.flags|=134217728),t}function H(t){e.setParentRecursive(t,!0)}function G(t,r,n,i,a,o,c){var l=I.createSourceFile(a,o,c);return e.setTextRangePosWidth(l,0,y.length),function(t){t.externalModuleIndicator=e.forEach(t.statements,bi)||function(e){return 2097152&e.flags?xi(e):void 0}(t)}(l),!i&&f(l)&&8388608&l.transformFlags&&(l=function(t){var r=C,n=u.createSyntaxCursor(t);C={currentNode:function(e){var t=n.currentNode(e);return M&&t&&p(t)&&(t.intersectsChange=!0),t}};var i=[],a=D;D=[];for(var o=0,c=f(t.statements,0),l=function(){var r=t.statements[o],n=t.statements[c];e.addRange(i,t.statements,o,c),o=g(t.statements,c);var u=e.findIndex(a,function(e){return e.start>=r.pos}),l=u>=0?e.findIndex(a,function(e){return e.start>=n.pos},u):-1;u>=0&&e.addRange(D,a,u,l>=0?l:void 0),Te(function(){var e=F;for(F|=32768,s.setTextPos(n.pos),ve();1!==me();){var r=s.getStartPos(),a=dt(0,An);if(i.push(a),r===s.getStartPos()&&ve(),o>=0){var c=t.statements[o];if(a.end===c.pos)break;a.end>c.pos&&(o=g(t.statements,o+1))}}F=e},2),c=o>=0?f(t.statements,o):-1};-1!==c;)l();if(o>=0){var _=t.statements[o];e.addRange(i,t.statements,o);var d=e.findIndex(a,function(e){return e.start>=_.pos});d>=0&&e.addRange(D,a,d)}return C=r,I.updateSourceFile(t,e.setTextRange(I.createNodeArray(i),t.statements));function p(e){return!(32768&e.flags||!(8388608&e.transformFlags))}function f(e,t){for(var r=t;r115}function Ne(){return 78===me()||(124!==me()||!ae())&&(130!==me()||!ce())&&me()>115}function Pe(t,r,n){return void 0===n&&(n=!0),me()===t?(n&&ve(),!0):(r?ue(r):ue(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function Oe(e){return me()===e&&(ve(),!0)}function Fe(e){if(me()===e)return Me()}function Ie(t,r,n){return Fe(t)||Ue(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function Me(){var e=fe(),t=me();return ve(),je(I.createToken(t),e)}function Le(){return 26===me()||19===me()||1===me()||s.hasPrecedingLineBreak()}function Re(){return Le()?(26===me()&&ve(),!0):Pe(26)}function Be(t,r,n,i){var a=I.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:s.getStartPos()),a}function je(t,r,n){return e.setTextRangePosEnd(t,r,null!=n?n:s.getStartPos()),F&&(t.flags|=F),L&&(L=!1,t.flags|=65536),t}function Ue(t,r,n,i){r?le(s.getStartPos(),0,n,i):n&&ue(n,i);var a=fe();return je(78===t?I.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?I.createTemplateLiteralLikeNode(t,"","",void 0):8===t?I.createNumericLiteral("",void 0):10===t?I.createStringLiteral("",void 0):268===t?I.createMissingDeclaration():I.createToken(t),a)}function ze(e){var t=w.get(e);return void 0===t&&w.set(e,t=e),t}function Je(t,r,n){if(N++,t){var i=fe(),a=me(),o=ze(s.getTokenValue());return he(),je(I.createIdentifier(o,void 0,a),i)}if(79===me())return ue(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Je(!0);var c=1===me(),u=s.isReservedWord(),l=s.getTokenText();return Ue(78,c,r||(u?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected),l)}function Ve(e){return Je(Ae(),void 0,e)}function We(e,t){return Je(Ne(),e,t)}function qe(t){return Je(e.tokenIsIdentifierOrKeyword(me()),t)}function Ke(){return e.tokenIsIdentifierOrKeyword(me())||10===me()||8===me()}function He(){return function(e){if(10===me()||8===me()){var t=Ct();return t.text=ze(t.text),t}return 22===me()?function(){var e=fe();Pe(22);var t=re(kr);return Pe(23),je(I.createComputedPropertyName(t),e)}():79===me()?Ge():qe()}()}function Ge(){var e,t,r=fe(),n=I.createPrivateIdentifier((e=s.getTokenText(),void 0===(t=A.get(e))&&A.set(e,t=e),t));return ve(),je(n,r)}function Qe(e){return me()===e&&we(Xe)}function $e(){return ve(),!s.hasPrecedingLineBreak()&&et()}function Xe(){switch(me()){case 84:return 91===ve();case 92:return ve(),87===me()?ke(tt):148===me()?ke(Ze):Ye();case 87:return tt();case 123:case 134:case 145:return ve(),et();default:return $e()}}function Ye(){return 41!==me()&&126!==me()&&18!==me()&&et()}function Ze(){return ve(),Ye()}function et(){return 22===me()||18===me()||41===me()||25===me()||Ke()}function tt(){return ve(),83===me()||97===me()||117===me()||125===me()&&ke(Dn)||129===me()&&ke(Sn)}function rt(t,r){if(pt(t))return!0;switch(t){case 0:case 1:case 3:return!(26===me()&&r)&&kn();case 2:return 81===me()||87===me();case 4:return ke(Gt);case 5:return ke(Gn)||26===me()&&!r;case 6:return 22===me()||Ke();case 12:switch(me()){case 22:case 41:case 25:case 24:return!0;default:return Ke()}case 18:return Ke();case 9:return 22===me()||25===me()||Ke();case 7:return 18===me()?ke(nt):r?Ne()&&!st():Cr()&&!st();case 8:return Ln();case 10:return 27===me()||25===me()||Ln();case 19:return Ne();case 15:switch(me()){case 27:case 24:return!0}case 11:return 25===me()||Tr();case 16:return Lt(!1);case 17:return Lt(!0);case 20:case 21:return 27===me()||dr();case 22:return ci();case 23:return e.tokenIsIdentifierOrKeyword(me());case 13:return e.tokenIsIdentifierOrKeyword(me())||18===me();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function nt(){if(e.Debug.assert(18===me()),19===ve()){var t=ve();return 27===t||18===t||93===t||116===t}return!0}function it(){return ve(),Ne()}function at(){return ve(),e.tokenIsIdentifierOrKeyword(me())}function ot(){return ve(),e.tokenIsIdentifierOrKeywordOrGreaterThan(me())}function st(){return(116===me()||93===me())&&ke(ct)}function ct(){return ve(),Tr()}function ut(){return ve(),dr()}function lt(e){if(1===me())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===me();case 3:return 19===me()||81===me()||87===me();case 7:return 18===me()||93===me()||116===me();case 8:return!!Le()||!!Rr(me())||38===me();case 19:return 31===me()||20===me()||18===me()||93===me()||116===me();case 11:return 21===me()||26===me();case 15:case 21:case 10:return 23===me();case 17:case 16:case 18:return 21===me()||23===me();case 20:return 27!==me();case 22:return 18===me()||19===me();case 13:return 31===me()||43===me();case 14:return 29===me()&&ke(fi);default:return!1}}function _t(e,t){var r=P;P|=1<=0)}function ht(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function yt(){var e=Be([],fe());return e.isMissingList=!0,e}function vt(e,t,r,n){if(Pe(r)){var i=mt(e,t);return Pe(n),i}return yt()}function bt(e,t){for(var r=fe(),n=e?qe(t):We(t),i=fe();Oe(24);){if(29===me()){n.jsdocDotPos=i;break}i=fe(),n=je(I.createQualifiedName(n,Dt(e,!1)),r)}return n}function xt(e,t){return je(I.createQualifiedName(e,t),e.pos)}function Dt(t,r){if(s.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(me())&&ke(xn))return Ue(78,!0,e.Diagnostics.Identifier_expected);if(79===me()){var n=Ge();return r?n:Ue(78,!0,e.Diagnostics.Identifier_expected)}return t?qe():We()}function St(t){var r=fe();return je(I.createTemplateExpression(function(t){t&&De();var r=Tt(me());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}(t),function(e){var t,r=fe(),n=[];do{t=Et(e),n.push(t)}while(16===t.literal.kind);return Be(n,r)}(t)),r)}function Et(t){var r=fe();return je(I.createTemplateSpan(re(kr),function(t){return 19===me()?(function(e){T=s.reScanTemplateToken(e)}(t),r=Tt(me()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):Ie(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}(t)),r)}function Ct(){return Tt(me())}function Tt(t){var r=fe(),n=e.isTemplateLiteralKind(t)?I.createTemplateLiteralLikeNode(t,s.getTokenValue(),function(e){var t=14===e||17===e,r=s.getTokenText();return r.substring(1,r.length-(s.isUnterminated()?0:t?1:2))}(t),2048&s.getTokenFlags()):8===t?I.createNumericLiteral(s.getTokenValue(),s.getNumericLiteralFlags()):10===t?I.createStringLiteral(s.getTokenValue(),void 0,s.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?I.createLiteralLikeNode(t,s.getTokenValue()):e.Debug.fail();return s.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),s.isUnterminated()&&(n.isUnterminated=!0),ve(),je(n,r)}function kt(){return bt(!0,e.Diagnostics.Type_expected)}function wt(){if(!s.hasPrecedingLineBreak()&&29===Se())return vt(20,Dr,29,31)}function At(){var e=fe();return je(I.createTypeReferenceNode(kt(),wt()),e)}function Nt(t){switch(t.kind){case 172:return e.nodeIsMissing(t.typeName);case 173:case 174:return!!t.parameters.isMissingList||Nt(t.type);case 185:return Nt(t.type);default:return!1}}function Pt(){var e=fe();return ve(),je(I.createThisTypeNode(),e)}function Ot(){var e,t=fe();return 107!==me()&&102!==me()||(e=qe(),Pe(58)),je(I.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Ft(),void 0),t)}function Ft(){s.setInJSDocType(!0);var e=fe();if(Oe(138)){var t=I.createJSDocNamepathType(void 0);e:for(;;)switch(me()){case 19:case 1:case 27:case 5:break e;default:be()}return s.setInJSDocType(!1),je(t,e)}var r=Oe(25),n=br();return s.setInJSDocType(!1),r&&(n=je(I.createJSDocVariadicType(n),e)),62===me()?(ve(),je(I.createJSDocOptionalType(n),e)):n}function It(){var e,t,r=fe(),n=We();Oe(93)&&(dr()||!Tr()?e=Dr():t=zr());var i=Oe(62)?Dr():void 0,a=I.createTypeParameterDeclaration(n,e,i);return a.expression=t,je(a,r)}function Mt(){if(29===me())return vt(19,It,29,31)}function Lt(t){return 25===me()||Ln()||e.isModifierKind(me())||59===me()||dr(!t)}function Rt(){return jt(!0)}function Bt(){return jt(!1)}function jt(t){var r=fe(),n=ge();if(107===me())return z(je(I.createParameterDeclaration(void 0,void 0,void 0,Je(!0),void 0,Er(),void 0),r),n);var i=t?ne(Xn):Xn(),a=M;M=!1;var o=Zn(),s=z(je(I.createParameterDeclaration(i,o,Fe(25),function(t){var r=Rn(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(me())&&ve(),r}(o),Fe(57),Er(),wr()),r),n);return M=a,s}function Ut(t,r){if(function(t,r){return 38===t?(Pe(t),!0):!!Oe(58)||!(!r||38!==me())&&(ue(e.Diagnostics._0_expected,e.tokenToString(58)),ve(),!0)}(t,r))return br()}function zt(e){var t=ae(),r=ce();X(!!(1&e)),Z(!!(2&e));var n=32&e?mt(17,Ot):mt(16,r?Rt:Bt);return X(t),Z(r),n}function Jt(e){if(!Pe(20))return yt();var t=zt(e);return Pe(21),t}function Vt(){Oe(27)||Re()}function Wt(e){var t=fe(),r=ge();169===e&&Pe(102);var n=Mt(),i=Jt(4),a=Ut(58,!0);return Vt(),z(je(168===e?I.createCallSignature(n,i,a):I.createConstructSignature(n,i,a),t),r)}function qt(){return 22===me()&&ke(Kt)}function Kt(){if(ve(),25===me()||23===me())return!0;if(e.isModifierKind(me())){if(ve(),Ne())return!0}else{if(!Ne())return!1;ve()}return 58===me()||27===me()||57===me()&&(ve(),58===me()||27===me()||23===me())}function Ht(e,t,r,n){var i=vt(16,Bt,22,23),a=Er();return Vt(),z(je(I.createIndexSignature(r,n,i,a),e),t)}function Gt(){if(20===me()||29===me())return!0;for(var t=!1;e.isModifierKind(me());)t=!0,ve();return 22===me()||(Ke()&&(t=!0,ve()),!!t&&(20===me()||29===me()||57===me()||58===me()||27===me()||Le()))}function Qt(){if(20===me()||29===me())return Wt(168);if(102===me()&&ke($t))return Wt(169);var e=fe(),t=ge(),r=Zn();return qt()?Ht(e,t,void 0,r):function(e,t,r){var n,i=He(),a=Fe(57);if(20===me()||29===me()){var o=Mt(),s=Jt(4),c=Ut(58,!0);n=I.createMethodSignature(r,i,a,o,s,c)}else c=Er(),n=I.createPropertySignature(r,i,a,c),62===me()&&(n.initializer=wr());return Vt(),z(je(n,e),t)}(e,t,r)}function $t(){return ve(),20===me()||29===me()}function Xt(){return 24===ve()}function Yt(){switch(ve()){case 20:case 29:case 24:return!0}return!1}function Zt(){var e;return Pe(18)?(e=_t(4,Qt),Pe(19)):e=yt(),e}function er(){return ve(),39===me()||40===me()?141===ve():(141===me()&&ve(),22===me()&&it()&&100===ve())}function tr(){var t=fe();if(Oe(25))return je(I.createRestTypeNode(Dr()),t);var r=Dr();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=I.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function rr(){return 58===ve()||57===me()&&58===ve()}function nr(){return 25===me()?e.tokenIsIdentifierOrKeyword(ve())&&rr():e.tokenIsIdentifierOrKeyword(me())&&rr()}function ir(){if(ke(nr)){var e=fe(),t=ge(),r=Fe(25),n=qe(),i=Fe(57);Pe(58);var a=tr();return z(je(I.createNamedTupleMember(r,n,i,a),e),t)}return tr()}function ar(){var e=fe(),t=ge(),r=Oe(102),n=Mt(),i=Jt(4),a=Ut(38,!1);return z(je(r?I.createConstructorTypeNode(n,i,a):I.createFunctionTypeNode(n,i,a),e),t)}function or(){var e=Me();return 24===me()?void 0:e}function sr(e){var t=fe();e&&ve();var r=109===me()||94===me()||103===me()?Me():Tt(me());return e&&(r=je(I.createPrefixUnaryExpression(40,r),t)),je(I.createLiteralTypeNode(r),t)}function cr(){return ve(),99===me()}function ur(){_|=1048576;var e=fe(),t=Oe(111);Pe(99),Pe(20);var r=Dr();Pe(21);var n=Oe(24)?kt():void 0,i=wt();return je(I.createImportTypeNode(r,n,i,t),e)}function lr(){return ve(),8===me()||9===me()}function _r(){switch(me()){case 128:case 151:case 146:case 143:case 154:case 147:case 131:case 149:case 140:case 144:return we(or)||At();case 65:s.reScanAsteriskEqualsToken();case 41:return r=fe(),ve(),je(I.createJSDocAllType(),r);case 60:s.reScanQuestionToken();case 57:return function(){var e=fe();return ve(),27===me()||19===me()||21===me()||31===me()||62===me()||51===me()?je(I.createJSDocUnknownType(),e):je(I.createJSDocNullableType(Dr()),e)}();case 97:return function(){var e=fe(),t=ge();if(ke(pi)){ve();var r=Jt(36),n=Ut(58,!1);return z(je(I.createJSDocFunctionType(r,n),e),t)}return je(I.createTypeReferenceNode(qe(),void 0),e)}();case 53:return function(){var e=fe();return ve(),je(I.createJSDocNonNullableType(_r()),e)}();case 14:case 10:case 8:case 9:case 109:case 94:case 103:return sr();case 40:return ke(lr)?sr(!0):At();case 113:return Me();case 107:var e=Pt();return 136!==me()||s.hasPrecedingLineBreak()?e:(t=e,ve(),je(I.createTypePredicateNode(void 0,t,Dr()),t.pos));case 111:return ke(cr)?ur():function(){var e=fe();return Pe(111),je(I.createTypeQueryNode(bt(!0)),e)}();case 18:return ke(er)?function(){var e,t=fe();Pe(18),141!==me()&&39!==me()&&40!==me()||141!==(e=Me()).kind&&Pe(141),Pe(22);var r,n=function(){var e=fe(),t=qe();Pe(100);var r=Dr();return je(I.createTypeParameterDeclaration(t,r,void 0),e)}();Pe(23),57!==me()&&39!==me()&&40!==me()||57!==(r=Me()).kind&&Pe(57);var i=Er();return Re(),Pe(19),je(I.createMappedTypeNode(e,n,r,i),t)}():function(){var e=fe();return je(I.createTypeLiteralNode(Zt()),e)}();case 22:return function(){var e=fe();return je(I.createTupleTypeNode(vt(21,ir,22,23)),e)}();case 20:return function(){var e=fe();Pe(20);var t=Dr();return Pe(21),je(I.createParenthesizedType(t),e)}();case 99:return ur();case 127:return ke(xn)?function(){var e=fe(),t=Ie(127),r=107===me()?Pt():We(),n=Oe(136)?Dr():void 0;return je(I.createTypePredicateNode(t,r,n),e)}():At();default:return At()}var t,r}function dr(e){switch(me()){case 128:case 151:case 146:case 143:case 154:case 131:case 141:case 147:case 150:case 113:case 149:case 103:case 107:case 111:case 140:case 18:case 22:case 29:case 51:case 50:case 102:case 10:case 8:case 9:case 109:case 94:case 144:case 41:case 57:case 53:case 25:case 135:case 99:case 127:return!0;case 97:return!e;case 40:return!e&&ke(lr);case 20:return!e&&ke(pr);default:return Ne()}}function pr(){return ve(),21===me()||Lt(!1)||dr()}function fr(){var e,t=me();switch(t){case 137:case 150:case 141:return function(e){var t=fe();return Pe(e),je(I.createTypeOperatorNode(e,fr()),t)}(t);case 135:return e=fe(),Pe(135),je(I.createInferTypeNode(function(){var e=fe();return je(I.createTypeParameterDeclaration(We(),void 0,void 0),e)}()),e)}return function(){for(var e=fe(),t=_r();!s.hasPrecedingLineBreak();)switch(me()){case 53:ve(),t=je(I.createJSDocNonNullableType(t),e);break;case 57:if(ke(ut))return t;ve(),t=je(I.createJSDocNullableType(t),e);break;case 22:if(Pe(22),dr()){var r=Dr();Pe(23),t=je(I.createIndexedAccessTypeNode(t,r),e)}else Pe(23),t=je(I.createArrayTypeNode(t),e);break;default:return t}return t}()}function gr(t){if(yr()){var r=ar();return de(r,e.isFunctionTypeNode(r)?t?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),r}}function mr(e,t,r){var n=fe(),i=51===e,a=Oe(e),o=a&&gr(i)||t();if(me()===e||a){for(var s=[o];Oe(e);)s.push(gr(i)||t());o=je(r(Be(s,n)),n)}return o}function hr(){return mr(50,fr,I.createIntersectionTypeNode)}function yr(){return 29===me()||!(20!==me()||!ke(vr))||102===me()}function vr(){if(ve(),21===me()||25===me())return!0;if(function(){if(e.isModifierKind(me())&&Zn(),Ne()||107===me())return ve(),!0;if(22===me()||18===me()){var t=D.length;return Rn(),t===D.length}return!1}()){if(58===me()||27===me()||57===me()||62===me())return!0;if(21===me()&&(ve(),38===me()))return!0}return!1}function br(){var e=fe(),t=Ne()&&we(xr),r=Dr();return t?je(I.createTypePredicateNode(void 0,t,r),e):r}function xr(){var e=We();if(136===me()&&!s.hasPrecedingLineBreak())return ve(),e}function Dr(){return ee(40960,Sr)}function Sr(e){if(yr())return ar();var t=fe(),r=mr(51,hr,I.createUnionTypeNode);if(!e&&!s.hasPrecedingLineBreak()&&Oe(93)){var n=Sr(!0);Pe(57);var i=Sr();Pe(58);var a=Sr();return je(I.createConditionalTypeNode(r,n,i,a),t)}return r}function Er(){return Oe(58)?Dr():void 0}function Cr(){switch(me()){case 107:case 105:case 103:case 109:case 94:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 97:case 83:case 102:case 43:case 67:case 78:return!0;case 99:return ke(Yt);default:return Ne()}}function Tr(){if(Cr())return!0;switch(me()){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 45:case 46:case 29:case 130:case 124:case 79:return!0;default:return!(oe()&&100===me()||!(e.getBinaryOperatorPrecedence(me())>0))||Ne()}}function kr(){var e=se();e&&Y(!1);for(var t,r=fe(),n=Ar();t=Fe(27);)n=jr(n,t,Ar(),r);return e&&Y(!0),n}function wr(){return Oe(62)?Ar():void 0}function Ar(){if(124===me()&&(ae()||ke(En)))return function(){var e=fe();return ve(),s.hasPrecedingLineBreak()||41!==me()&&!Tr()?je(I.createYieldExpression(void 0,void 0),e):je(I.createYieldExpression(Fe(41),Ar()),e)}();var t=function(){var e=20===me()||29===me()||129===me()?ke(Pr):38===me()?1:0;if(0!==e)return 1===e?Ir(!0):we(Or)}()||function(){if(129===me()&&1===ke(Fr)){var e=fe(),t=ei();return Nr(e,Lr(0),t)}}();if(t)return t;var r=fe(),n=Lr(0);return 78===n.kind&&38===me()?Nr(r,n,void 0):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(xe())?jr(n,Me(),Ar(),r):function(t,r){var n,i=Fe(57);return i?je(I.createConditionalExpression(t,i,ee(20480,Ar),n=Ie(58),e.nodeIsPresent(n)?Ar():Ue(78,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r):t}(n,r)}function Nr(t,r,n){e.Debug.assert(38===me(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=I.createParameterDeclaration(void 0,void 0,void 0,r,void 0,void 0,void 0);je(i,r.pos);var a=Be([i],i.pos,i.end),o=Ie(38),s=Mr(!!n);return K(je(I.createArrowFunction(n,void 0,a,void 0,o,s),t))}function Pr(){if(129===me()){if(ve(),s.hasPrecedingLineBreak())return 0;if(20!==me()&&29!==me())return 0}var t=me(),r=ve();if(20===t){if(21===r)switch(ve()){case 38:case 58:case 18:return 1;default:return 0}if(22===r||18===r)return 2;if(25===r)return 1;if(e.isModifierKind(r)&&129!==r&&ke(it))return 1;if(!Ne()&&107!==r)return 0;switch(ve()){case 58:return 1;case 57:return ve(),58===me()||27===me()||62===me()||21===me()?1:0;case 27:case 62:case 21:return 2}return 0}return e.Debug.assert(29===t),Ne()?1===x?ke(function(){var e=ve();if(93===e)switch(ve()){case 62:case 31:return!1;default:return!0}else if(27===e)return!0;return!1})?1:0:2:0}function Or(){var t=s.getTokenPos();if(!(null==O?void 0:O.has(t))){var r=Ir(!1);return r||(O||(O=new e.Set)).add(t),r}}function Fr(){if(129===me()){if(ve(),s.hasPrecedingLineBreak()||38===me())return 0;var e=Lr(0);if(!s.hasPrecedingLineBreak()&&78===e.kind&&38===me())return 1}return 0}function Ir(t){var r,n=fe(),i=ge(),a=ei(),o=e.some(a,e.isAsyncModifier)?2:0,s=Mt();if(Pe(20)){if(r=zt(o),!Pe(21)&&!t)return}else{if(!t)return;r=yt()}var c=Ut(58,!1);if(!c||t||!Nt(c)){var u=c&&e.isJSDocFunctionType(c);if(t||38===me()||!u&&18===me()){var l=me(),_=Ie(38),d=38===l||18===l?Mr(e.some(a,e.isAsyncModifier)):We();return z(je(I.createArrowFunction(a,s,r,c,_,d),n),i)}}}function Mr(e){if(18===me())return yn(e?2:0);if(26!==me()&&97!==me()&&83!==me()&&kn()&&(18===me()||97===me()||83===me()||59===me()||!Tr()))return yn(16|(e?2:0));var t=M;M=!1;var r=e?ne(Ar):ee(32768,Ar);return M=t,r}function Lr(e){var t=fe();return Br(e,zr(),t)}function Rr(e){return 100===e||155===e}function Br(t,r,n){for(;;){xe();var i=e.getBinaryOperatorPrecedence(me());if(!(42===me()?i>=t:i>t))break;if(100===me()&&oe())break;if(126===me()){if(s.hasPrecedingLineBreak())break;ve(),a=r,o=Dr(),r=je(I.createAsExpression(a,o),a.pos)}else r=jr(r,Me(),Lr(i),n)}var a,o;return r}function jr(e,t,r,n){return je(I.createBinaryExpression(e,t,r),n)}function Ur(){var e=fe();return je(I.createPrefixUnaryExpression(me(),ye(Jr)),e)}function zr(){if(function(){switch(me()){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 130:return!1;case 29:if(1!==x)return!1;default:return!0}}()){var t=fe(),r=Vr();return 42===me()?Br(e.getBinaryOperatorPrecedence(me()),r,t):r}var n=me(),i=Jr();if(42===me()){t=e.skipTrivia(y,i.pos);var a=i.end;203===i.kind?_e(t,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):_e(t,a,e.Diagnostics.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,e.tokenToString(n))}return i}function Jr(){switch(me()){case 39:case 40:case 54:case 53:return Ur();case 88:return e=fe(),je(I.createDeleteExpression(ye(Jr)),e);case 111:return function(){var e=fe();return je(I.createTypeOfExpression(ye(Jr)),e)}();case 113:return function(){var e=fe();return je(I.createVoidExpression(ye(Jr)),e)}();case 29:return function(){var e=fe();Pe(29);var t=Dr();Pe(31);var r=Jr();return je(I.createTypeAssertion(t,r),e)}();case 130:if(130===me()&&(ce()||ke(En)))return function(){var e=fe();return je(I.createAwaitExpression(ye(Jr)),e)}();default:return Vr()}var e}function Vr(){if(45===me()||46===me()){var t=fe();return je(I.createPrefixUnaryExpression(me(),ye(Wr)),t)}if(1===x&&29===me()&&ke(ot))return Kr(!0);var r=Wr();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===me()||46===me())&&!s.hasPrecedingLineBreak()){var n=me();return ve(),je(I.createPostfixUnaryExpression(r,n),r.pos)}return r}function Wr(){var t,r=fe();return 99===me()?ke($t)?(_|=1048576,t=Me()):ke(Xt)?(ve(),ve(),t=je(I.createMetaProperty(99,qe()),r),_|=2097152):t=qr():t=105===me()?function(){var t=fe(),r=Me();if(29===me()){var n=fe();void 0!==we(cn)&&_e(n,fe(),e.Diagnostics.super_may_not_use_type_arguments)}return 20===me()||24===me()||22===me()?r:(Ie(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),je(I.createPropertyAccessExpression(r,Dt(!0,!0)),t))}():qr(),on(r,t)}function qr(){return rn(fe(),un(),!0)}function Kr(t,r){var n,i=fe(),a=function(e){var t=fe();if(Pe(29),31===me())return Ce(),je(I.createJsxOpeningFragment(),t);var r,n=Qr(),i=si(),a=function(){var e=fe();return je(I.createJsxAttributes(_t(13,Xr)),e)}();return 31===me()?(Ce(),r=I.createJsxOpeningElement(n,i,a)):(Pe(43),e?Pe(31):(Pe(31,void 0,!1),Ce()),r=I.createJsxSelfClosingElement(n,i,a)),je(r,t)}(t);if(272===a.kind){var o=Gr(a),s=function(e){var t=fe();Pe(30);var r=Qr();return e?Pe(31):(Pe(31,void 0,!1),Ce()),je(I.createJsxClosingElement(r),t)}(t);E(a.tagName,s.tagName)||de(s,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(y,a.tagName)),n=je(I.createJsxElement(a,o,s),i)}else 275===a.kind?n=je(I.createJsxFragment(a,Gr(a),function(t){var r=fe();return Pe(30),e.tokenIsIdentifierOrKeyword(me())&&de(Qr(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),t?Pe(31):(Pe(31,void 0,!1),Ce()),je(I.createJsxJsxClosingFragment(),r)}(t)),i):(e.Debug.assert(271===a.kind),n=a);if(t&&29===me()){var c=void 0===r?n.pos:r,u=we(function(){return Kr(!0,c)});if(u){var l=Ue(27,!1);return e.setTextRangePosWidth(l,u.pos,0),_e(e.skipTrivia(y,c),u.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),je(I.createBinaryExpression(n,l,u),i)}}return n}function Hr(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))de(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;_e(e.skipTrivia(y,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(y,t.tagName))}return;case 30:case 7:return;case 11:case 12:return i=fe(),a=I.createJsxText(s.getTokenValue(),12===T),T=s.scanJsxToken(),je(a,i);case 18:return $r(!1);case 29:return Kr(!1);default:return e.Debug.assertNever(r)}var i,a}function Gr(e){var t=[],r=fe(),n=P;for(P|=16384;;){var i=Hr(e,T=s.reScanJsxToken());if(!i)break;t.push(i)}return P=n,Be(t,r)}function Qr(){var e=fe();Ee();for(var t=107===me()?Me():qe();Oe(24);)t=je(I.createPropertyAccessExpression(t,Dt(!0,!1)),e);return t}function $r(e){var t,r,n=fe();if(Pe(18))return 19!==me()&&(t=Fe(25),r=kr()),e?Pe(19):Pe(19,void 0,!1)&&Ce(),je(I.createJsxExpression(t,r),n)}function Xr(){if(18===me())return function(){var e=fe();Pe(18),Pe(25);var t=kr();return Pe(19),je(I.createJsxSpreadAttribute(t),e)}();Ee();var e=fe();return je(I.createJsxAttribute(qe(),62!==me()?void 0:10===(T=s.scanJsxAttributeValue())?Ct():$r(!0)),e)}function Yr(){return ve(),e.tokenIsIdentifierOrKeyword(me())||22===me()||nn()}function Zr(t){if(32&t.flags)return!0;if(e.isNonNullExpression(t)){for(var r=t.expression;e.isNonNullExpression(r)&&!(32&r.flags);)r=r.expression;if(32&r.flags){for(;e.isNonNullExpression(t);)t.flags|=32,t=t.expression;return!0}}return!1}function en(t,r,n){var i=Dt(!0,!0),a=n||Zr(r),o=a?I.createPropertyAccessChain(r,n,i):I.createPropertyAccessExpression(r,i);return a&&e.isPrivateIdentifier(o.name)&&de(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),je(o,t)}function tn(t,r,n){var i;if(23===me())i=Ue(78,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=re(kr);e.isStringOrNumericLiteralLike(a)&&(a.text=ze(a.text)),i=a}return Pe(23),je(n||Zr(r)?I.createElementAccessChain(r,n,i):I.createElementAccessExpression(r,i),t)}function rn(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===me()&&ke(Yr)?(i=Ie(28),a=e.tokenIsIdentifierOrKeyword(me())):a=Oe(24),a)r=en(t,r,i);else if(i||53!==me()||s.hasPrecedingLineBreak())if(!i&&se()||!Oe(22)){if(!nn())return r;r=an(t,r,i,void 0)}else r=tn(t,r,i);else ve(),r=je(I.createNonNullExpression(r),t)}}function nn(){return 14===me()||15===me()}function an(e,t,r,n){var i=I.createTaggedTemplateExpression(t,n,14===me()?(De(),Ct()):St(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,je(i,e)}function on(t,r){for(;;){r=rn(t,r,!0);var n=Fe(28);if(29===me()||47===me()){var i=we(cn);if(i){if(nn()){r=an(t,r,n,i);continue}var a=sn();r=je(n||Zr(r)?I.createCallChain(r,n,i,a):I.createCallExpression(r,i,a),t);continue}}else if(20===me()){a=sn(),r=je(n||Zr(r)?I.createCallChain(r,n,void 0,a):I.createCallExpression(r,void 0,a),t);continue}if(n){var o=Ue(78,!1,e.Diagnostics.Identifier_expected);r=je(I.createPropertyAccessChain(r,n,o),t)}break}return r}function sn(){Pe(20);var e=mt(11,_n);return Pe(21),e}function cn(){if(29===Se()){ve();var e=mt(20,Dr);if(Pe(31))return e&&function(){switch(me()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}}()?e:void 0}}function un(){switch(me()){case 8:case 9:case 10:case 14:return Ct();case 107:case 105:case 103:case 109:case 94:return Me();case 20:return function(){var e=fe(),t=ge();Pe(20);var r=re(kr);return Pe(21),z(je(I.createParenthesizedExpression(r),e),t)}();case 22:return dn();case 18:return fn();case 129:if(!ke(Sn))break;return gn();case 83:return ni(fe(),ge(),void 0,void 0,218);case 97:return gn();case 102:return function(){var t=fe();if(Pe(102),Oe(24)){var r=qe();return je(I.createMetaProperty(102,r),t)}for(var n,i,a=fe(),o=un();;){o=rn(a,o,!1),n=we(cn),nn()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=an(a,o,void 0,n),n=void 0);break}return 20===me()?i=sn():n&&_e(t,s.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),je(I.createNewExpression(o,n,i),t)}();case 43:case 67:if(13===(T=s.reScanSlashToken()))return Ct();break;case 15:return St(!1)}return We(e.Diagnostics.Expression_expected)}function ln(){return 25===me()?function(){var e=fe();Pe(25);var t=Ar();return je(I.createSpreadElement(t),e)}():27===me()?je(I.createOmittedExpression(),fe()):Ar()}function _n(){return ee(20480,ln)}function dn(){var e=fe();Pe(22);var t=s.hasPrecedingLineBreak(),r=mt(15,ln);return Pe(23),je(I.createArrayLiteralExpression(r,t),e)}function pn(){var e=fe(),t=ge();if(Fe(25)){var r=Ar();return z(je(I.createSpreadAssignment(r),e),t)}var n=Xn(),i=Zn();if(Qe(134))return Hn(e,t,n,i,166);if(Qe(145))return Hn(e,t,n,i,167);var a,o=Fe(41),s=Ne(),c=He(),u=Fe(57),l=Fe(53);if(o||20===me()||29===me())return Wn(e,t,n,i,o,c,u,l);if(s&&58!==me()){var _=Fe(62),d=_?re(Ar):void 0;(a=I.createShorthandPropertyAssignment(c,d)).equalsToken=_}else{Pe(58);var p=re(Ar);a=I.createPropertyAssignment(c,p)}return a.decorators=n,a.modifiers=i,a.questionToken=u,a.exclamationToken=l,z(je(a,e),t)}function fn(){var t=fe(),r=s.getTokenPos();Pe(18);var n=s.hasPrecedingLineBreak(),i=mt(12,pn,!0);if(!Pe(19)){var a=e.lastOrUndefined(D);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(l,r,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return je(I.createObjectLiteralExpression(i,n),t)}function gn(){var t=se();t&&Y(!1);var r=fe(),n=ge(),i=Zn();Pe(97);var a=Fe(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?te(40960,mn):o?te(8192,mn):s?ne(mn):mn(),u=Mt(),l=Jt(o|s),_=Ut(58,!1),d=yn(o|s);return t&&Y(!0),z(je(I.createFunctionExpression(i,a,c,u,l,_,d),r),n)}function mn(){return Ae()?Ve():void 0}function hn(t,r){var n=fe(),i=s.getTokenPos();if(Pe(18,r)||t){var a=s.hasPrecedingLineBreak(),o=_t(1,An);if(!Pe(19)){var c=e.lastOrUndefined(D);c&&c.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(c,e.createDetachedDiagnostic(l,i,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return je(I.createBlock(o,a),n)}return o=yt(),je(I.createBlock(o,void 0),n)}function yn(e,t){var r=ae();X(!!(1&e));var n=ce();Z(!!(2&e));var i=M;M=!1;var a=se();a&&Y(!1);var o=hn(!!(16&e),t);return a&&Y(!0),M=i,X(r),Z(n),o}function vn(e){var t=fe();Pe(238===e?80:85);var r=Le()?void 0:We();return Re(),je(238===e?I.createBreakStatement(r):I.createContinueStatement(r),t)}function bn(){return 81===me()?function(){var e=fe();Pe(81);var t=re(kr);Pe(58);var r=_t(3,An);return je(I.createCaseClause(t,r),e)}():function(){var e=fe();Pe(87),Pe(58);var t=_t(3,An);return je(I.createDefaultClause(t),e)}()}function xn(){return ve(),e.tokenIsIdentifierOrKeyword(me())&&!s.hasPrecedingLineBreak()}function Dn(){return ve(),83===me()&&!s.hasPrecedingLineBreak()}function Sn(){return ve(),97===me()&&!s.hasPrecedingLineBreak()}function En(){return ve(),(e.tokenIsIdentifierOrKeyword(me())||8===me()||9===me()||10===me())&&!s.hasPrecedingLineBreak()}function Cn(){for(;;)switch(me()){case 112:case 118:case 84:case 97:case 83:case 91:return!0;case 117:case 148:return ve(),!s.hasPrecedingLineBreak()&&Ne();case 138:case 139:return ve(),!s.hasPrecedingLineBreak()&&(Ne()||10===me());case 125:case 129:case 133:case 120:case 121:case 122:case 141:if(ve(),s.hasPrecedingLineBreak())return!1;continue;case 153:return ve(),18===me()||78===me()||92===me();case 99:return ve(),10===me()||41===me()||18===me()||e.tokenIsIdentifierOrKeyword(me());case 92:var t=ve();if(148===t&&(t=ke(ve)),62===t||41===t||18===t||87===t||126===t)return!0;continue;case 123:ve();continue;default:return!1}}function Tn(){return ke(Cn)}function kn(){switch(me()){case 59:case 26:case 18:case 112:case 118:case 97:case 83:case 91:case 98:case 89:case 114:case 96:case 85:case 80:case 104:case 115:case 106:case 108:case 110:case 86:case 82:case 95:return!0;case 99:return Tn()||ke(Yt);case 84:case 92:return Tn();case 129:case 133:case 117:case 138:case 139:case 148:case 153:return!0;case 122:case 120:case 121:case 123:case 141:return Tn()||!ke(xn);default:return Tr()}}function wn(){return ve(),Ne()||18===me()||22===me()}function An(){switch(me()){case 26:return t=fe(),Pe(26),je(I.createEmptyStatement(),t);case 18:return hn(!1);case 112:return Jn(fe(),ge(),void 0,void 0);case 118:if(ke(wn))return Jn(fe(),ge(),void 0,void 0);break;case 97:return Vn(fe(),ge(),void 0,void 0);case 83:return ri(fe(),ge(),void 0,void 0);case 98:return function(){var e=fe();Pe(98),Pe(20);var t=re(kr);Pe(21);var r=An(),n=Oe(90)?An():void 0;return je(I.createIfStatement(t,r,n),e)}();case 89:return function(){var e=fe();Pe(89);var t=An();Pe(114),Pe(20);var r=re(kr);return Pe(21),Oe(26),je(I.createDoStatement(t,r),e)}();case 114:return function(){var e=fe();Pe(114),Pe(20);var t=re(kr);Pe(21);var r=An();return je(I.createWhileStatement(t,r),e)}();case 96:return function(){var e=fe();Pe(96);var t,r,n=Fe(130);if(Pe(20),26!==me()&&(t=112===me()||118===me()||84===me()?Un(!0):te(4096,kr)),n?Pe(155):Oe(155)){var i=re(Ar);Pe(21),r=I.createForOfStatement(n,t,i,An())}else if(Oe(100))i=re(kr),Pe(21),r=I.createForInStatement(t,i,An());else{Pe(26);var a=26!==me()&&21!==me()?re(kr):void 0;Pe(26);var o=21!==me()?re(kr):void 0;Pe(21),r=I.createForStatement(t,a,o,An())}return je(r,e)}();case 85:return vn(237);case 80:return vn(238);case 104:return function(){var e=fe();Pe(104);var t=Le()?void 0:re(kr);return Re(),je(I.createReturnStatement(t),e)}();case 115:return function(){var e=fe();Pe(115),Pe(20);var t=re(kr);Pe(21);var r=te(16777216,An);return je(I.createWithStatement(t,r),e)}();case 106:return function(){var e=fe();Pe(106),Pe(20);var t=re(kr);Pe(21);var r=function(){var e=fe();Pe(18);var t=_t(2,bn);return Pe(19),je(I.createCaseBlock(t),e)}();return je(I.createSwitchStatement(t,r),e)}();case 108:return function(){var e=fe();Pe(108);var t=s.hasPrecedingLineBreak()?void 0:re(kr);return void 0===t&&(N++,t=je(I.createIdentifier(""),fe())),Re(),je(I.createThrowStatement(t),e)}();case 110:case 82:case 95:return function(){var e=fe();Pe(110);var t,r=hn(!1),n=82===me()?function(){var e,t=fe();Pe(82),Oe(20)?(e=jn(),Pe(21)):e=void 0;var r=hn(!1);return je(I.createCatchClause(e,r),t)}():void 0;return n&&95!==me()||(Pe(95),t=hn(!1)),je(I.createTryStatement(r,n,t),e)}();case 86:return function(){var e=fe();return Pe(86),Re(),je(I.createDebuggerStatement(),e)}();case 59:return Pn();case 129:case 117:case 148:case 138:case 139:case 133:case 84:case 91:case 92:case 99:case 120:case 121:case 122:case 125:case 123:case 141:case 153:if(Tn())return Pn()}var t;return function(){var t,r=fe(),n=ge(),i=20===me(),a=re(kr);return e.isIdentifier(a)&&Oe(58)?t=I.createLabeledStatement(a,An()):(Re(),t=I.createExpressionStatement(a),i&&(n=!1)),z(je(t,r),n)}()}function Nn(e){return 133===e.kind}function Pn(){var t=e.some(ke(function(){return Xn(),Zn()}),Nn);if(t){var r=te(8388608,function(){var e=pt(P);if(e)return ft(e)});if(r)return r}var n=fe(),i=ge(),a=Xn(),o=Zn();if(t){for(var s=0,c=o;s=0),e.Debug.assert(t<=a),e.Debug.assert(a<=i.length),d(i,t)){var o,c,u,_=[];return s.scanRange(t+3,n-5,function(){var e,r,n,l,d=1,g=t-Math.max(i.lastIndexOf("\n",t),0)+4;function m(t){e||(e=g),_.push(t),g+=t.length}for(be();L(5););L(4)&&(d=0,g=0);e:for(;;){switch(me()){case 59:0===d||1===d?(f(_),(l=v(g))&&(o?o.push(l):(o=[l],c=l.pos),u=l.end),d=0,e=void 0):m(s.getTokenText());break;case 4:_.push(s.getTokenText()),d=0,g=0;break;case 41:var h=s.getTokenText();1===d||2===d?(d=2,m(h)):(d=1,g+=h.length);break;case 5:var y=s.getTokenText();2===d?_.push(y):void 0!==e&&g+y.length>e&&_.push(y.slice(e-g-1)),g+=y.length;break;case 1:break e;default:d=2,m(s.getTokenText())}be()}return p(_),f(_),r=_.length?_.join(""):void 0,n=o&&Be(o,c,u),je(I.createJSDocComment(r,n),t,a)})}function p(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function f(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function g(){for(;;){if(be(),1===me())return!0;if(5!==me()&&4!==me())return!1}}function m(){if(5!==me()&&4!==me()||!ke(g))for(;5===me()||4===me();)be()}function h(){if((5===me()||4===me())&&ke(g))return"";for(var e=s.hasPrecedingLineBreak(),t=!1,r="";e&&41===me()||5===me()||4===me();)r+=s.getTokenText(),4===me()?(e=!0,t=!0,r=""):41===me()&&(e=!1),be();return t?r:""}function v(t){e.Debug.assert(59===me());var n=s.getTokenPos();be();var i,a=R(void 0),c=h();switch(a.escapedText){case"author":i=function(e,t,r,n){var i=we(function(){return function(){var e=[],t=!1,r=!1,n=s.getToken();e:for(;;){switch(n){case 78:case 5:case 24:case 59:e.push(s.getTokenText());break;case 29:if(t||r)return;t=!0,e.push(s.getTokenText());break;case 31:if(!t||r)return;r=!0,e.push(s.getTokenText()),s.setTextPos(s.getTokenPos()+1);break e;case 4:case 1:break e}n=be()}if(t&&r)return 0===e.length?void 0:e.join("")}()});if(!i){var a=fe();return je(I.createJSDocAuthorTag(t,b(e,a,r,n)),e,a)}var o=i;if(ke(function(){return 4!==ve()})){var c=x(r);c&&(o+=c)}return je(I.createJSDocAuthorTag(t,o),e)}(n,a,t,c);break;case"implements":i=function(e,t,r,n){var i=k(),a=fe();return je(I.createJSDocImplementsTag(t,i,b(e,a,r,n)),e,a)}(n,a,t,c);break;case"augments":case"extends":i=function(e,t,r,n){var i=k(),a=fe();return je(I.createJSDocAugmentsTag(t,i,b(e,a,r,n)),e,a)}(n,a,t,c);break;case"class":case"constructor":i=w(n,I.createJSDocClassTag,a,t,c);break;case"public":i=w(n,I.createJSDocPublicTag,a,t,c);break;case"private":i=w(n,I.createJSDocPrivateTag,a,t,c);break;case"protected":i=w(n,I.createJSDocProtectedTag,a,t,c);break;case"readonly":i=w(n,I.createJSDocReadonlyTag,a,t,c);break;case"deprecated":q=!0,i=w(n,I.createJSDocDeprecatedTag,a,t,c);break;case"this":i=function(e,t,n,i){var a=r(!0);m();var o=fe();return je(I.createJSDocThisTag(t,a,b(e,o,n,i)),e,o)}(n,a,t,c);break;case"enum":i=function(e,t,n,i){var a=r(!0);m();var o=fe();return je(I.createJSDocEnumTag(t,a,b(e,o,n,i)),e,o)}(n,a,t,c);break;case"arg":case"argument":case"param":return C(n,a,2,t);case"return":case"returns":i=function(t,r,n,i){e.some(o,e.isJSDocReturnTag)&&_e(r.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=S(),c=fe();return je(I.createJSDocReturnTag(r,a,b(t,c,n,i)),t,c)}(n,a,t,c);break;case"template":i=function(t,n,i,a){var o=18===me()?r():void 0,s=function(){var t,r,n=fe(),i=[];do{m(),i.push((void 0,void 0,t=fe(),r=R(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),je(I.createTypeParameterDeclaration(r,void 0,void 0),t))),h()}while(L(27));return Be(i,n)}(),c=fe();return je(I.createJSDocTemplateTag(n,o,s,b(t,c,i,a)),t,c)}(n,a,t,c);break;case"type":i=T(n,a,t,c);break;case"typedef":i=function(t,r,n,i){var a,o=S();h();var s=A();m();var c,u=x(n);if(!o||E(o.type)){for(var _=void 0,d=void 0,p=void 0,f=!1;_=we(function(){return O(n)});)if(f=!0,325===_.kind){if(d){ue(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var g=e.lastOrUndefined(D);g&&e.addRelatedInfo(g,e.createDetachedDiagnostic(l,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}d=_}else p=e.append(p,_);if(f){var y=I.createJSDocTypeLiteral(p,o&&177===o.type.kind);c=(o=d&&d.typeExpression&&!E(d.typeExpression.type)?d.typeExpression:je(y,t)).end}}return c=c||void 0!==u?fe():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,u||(u=b(t,c,n,i)),je(I.createJSDocTypedefTag(r,o,s,u),t,c)}(n,a,t,c);break;case"callback":i=function(t,r,n,i){var a=A();m();var o=x(n),s=function(t){for(var r,n,i=fe();r=we(function(){return F(4,t)});)n=e.append(n,r);return Be(n||[],i)}(n),c=we(function(){if(L(59)){var e=v(n);if(e&&323===e.kind)return e}}),u=je(I.createJSDocSignature(void 0,s,c),t),l=fe();return o||(o=b(t,l,n,i)),je(I.createJSDocCallbackTag(r,u,a,o),t,l)}(n,a,t,c);break;default:i=function(e,t,r,n){var i=fe();return je(I.createJSDocUnknownTag(t,b(e,i,r,n)),e,i)}(n,a,t,c)}return i}function b(e,t,r,n){return n||(r+=t-e),x(r,n.slice(r))}function x(t,r){var n,i=[],a=0;function o(e){n||(n=t),i.push(e),t+=e.length}void 0!==r&&(""!==r&&o(r),a=1);var c=me();e:for(;;){switch(c){case 4:a=0,i.push(s.getTokenText()),t=0;break;case 59:if(3===a){i.push(s.getTokenText());break}s.setTextPos(s.getTextPos()-1);case 1:break e;case 5:if(2===a||3===a)o(s.getTokenText());else{var u=s.getTokenText();void 0!==n&&t+u.length>n&&i.push(u.slice(n-t)),t+=u.length}break;case 18:a=2,ke(function(){return 59===be()&&e.tokenIsIdentifierOrKeyword(be())&&"link"===s.getTokenText()})&&(o(s.getTokenText()),be(),o(s.getTokenText()),be()),o(s.getTokenText());break;case 61:a=3===a?2:3,o(s.getTokenText());break;case 41:if(0===a){a=1,t+=1;break}default:3!==a&&(a=2),o(s.getTokenText())}c=be()}return p(i),f(i),0===i.length?void 0:i.join("")}function S(){return h(),18===me()?r():void 0}function E(t){switch(t.kind){case 144:return!0;case 177:return E(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function C(t,r,n,i){var a=S(),o=!a;h();var c=function(){var t=L(22);t&&m();var r=L(61),n=function(){var e=R();for(Oe(22)&&Pe(23);Oe(24);){var t=R();Oe(22)&&Pe(23),e=xt(e,t)}return e}();return r&&(function(e){if(61===me())return t=fe(),r=me(),be(),je(I.createToken(r),t);var t,r}()||Ue(61,!1,e.Diagnostics._0_expected,e.tokenToString(61))),t&&(m(),Fe(62)&&kr(),Pe(23)),{name:n,isBracketed:t}}(),u=c.name,l=c.isBracketed;m(),o&&(a=S());var _=x(i+s.getStartPos()-t),d=4!==n&&function(t,r,n,i){if(t&&E(t.type)){for(var a=fe(),o=void 0,s=void 0;o=we(function(){return F(n,i,r)});)322!==o.kind&&328!==o.kind||(s=e.append(s,o));if(s){var c=je(I.createJSDocTypeLiteral(s,177===t.type.kind),a);return je(I.createJSDocTypeExpression(c),a)}}}(a,u,n,i);return d&&(a=d,o=!0),je(1===n?I.createJSDocPropertyTag(r,u,l,a,o,_):I.createJSDocParameterTag(r,u,l,a,o,_),t)}function T(t,n,i,a){e.some(o,e.isJSDocTypeTag)&&_e(n.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var c=r(!0),u=fe(),l=void 0!==i&&void 0!==a?b(t,u,i,a):void 0;return je(I.createJSDocTypeTag(n,c,l),t,u)}function k(){var e=Oe(18),t=fe(),r=function(){for(var e=fe(),t=R();Oe(24);){var r=R();t=je(I.createPropertyAccessExpression(t,r),e)}return t}(),n=si(),i=je(I.createExpressionWithTypeArguments(r,n),t);return e&&Pe(19),i}function w(e,t,r,n,i){var a=fe();return je(t(r,b(e,a,n,i)),e,a)}function A(t){var r=s.getTokenPos();if(e.tokenIsIdentifierOrKeyword(me())){var n=R();if(Oe(24)){var i=A(!0);return je(I.createModuleDeclaration(void 0,void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function P(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function O(e){return F(1,e)}function F(t,r,n){for(var i=!0,a=!1;;)switch(be()){case 59:if(i){var o=M(t,r);return!(o&&(322===o.kind||328===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!P(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 78:i=!1;break;case 1:return!1}}function M(t,r){e.Debug.assert(59===me());var n=s.getStartPos();be();var i,a=R();switch(m(),a.escapedText){case"type":return 1===t&&T(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&C(n,a,t,r)}function L(e){return me()===e&&(be(),!0)}function R(t){if(!e.tokenIsIdentifierOrKeyword(me()))return Ue(78,!t,t||e.Diagnostics.Identifier_expected);N++;var r=s.getTokenPos(),n=s.getTextPos(),i=me(),a=ze(s.getTokenValue()),o=je(I.createIdentifier(a,void 0,i),r,n);return be(),o}}t.parseJSDocTypeExpressionForTests=function(t,n,i){B("file.js",t,99,void 0,1),s.setText(t,n,i),T=s.scan();var a=r(),o=G("file.js",99,1,!1,[],I.createToken(1),0),c=e.attachFileToDiagnostics(D,o);return S&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(S,o)),j(),a?{jsDocTypeExpression:a,diagnostics:c}:void 0},t.parseJSDocTypeExpression=r,t.parseIsolatedJSDocComment=function(t,r,n){B("",t,99,void 0,1);var i=te(4194304,function(){return a(r,n)}),o=e.attachFileToDiagnostics(D,{languageVariant:0,text:t});return j(),i?{jsDoc:i,diagnostics:o}:void 0},t.parseJSDocComment=function(t,r,n){var i=T,o=D.length,s=L,c=te(4194304,function(){return a(r,n)});return e.setParent(c,t),131072&F&&(S||(S=[]),S.push.apply(S,D)),T=i,D.length=o,L=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(n||(n={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(i||(i={}))}(W=t.JSDocParser||(t.JSDocParser={}))}(c||(c={})),function(t){function r(t,r,i,o,s,c){return void(r?l(t):u(t));function u(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),e.setTextRangePosEnd(t,t.pos+i,t.end+i),c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),p(t,u,l),e.hasJSDocNodes(t))for(var _=0,d=t.jsDoc;_=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end);var o=Math.min(t.pos,i),s=t.end>=n?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}function a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;a=i.pos&&(i=a),rr),!0)}),n){var a=function(t){for(;;){var r=e.getLastChild(t);if(!r)return t;t=r}}(n);a.pos>i.pos&&(i=a)}return i}function s(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}function u(t){var r=t.statements,n=0;e.Debug.assert(n=t.pos&&e=t.pos&&e0&&i<=1;i++){var a=o(t,n);e.Debug.assert(a.pos<=n),n=Math.max(0,a.pos-1)}var s=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span));return e.createTextChangeRange(s,r.newLength+(r.span.start-n))}(t,l);s(t,n,m,_),e.Debug.assert(m.span.start<=l.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(l.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(l)));var h=e.textChangeRangeNewSpan(m).length-m.span.length;!function(t,n,o,s,c,u,l,_){return void d(t);function d(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,u,l,_);else{var g=t.end;if(g>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),p(t,d,f),e.hasJSDocNodes(t))for(var m=0,h=t.jsDoc;mo)r(t,!0,c,u,l,_);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var p=0,f=t;pi){h();var m={range:{pos:f.pos+a,end:f.end+a},type:g};u=e.append(u,m),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(m.range.pos,m.range.end))}}return h(),u;function h(){l||(l=!0,u?r&&u.push.apply(u,r):u=r)}}(t.commentDirectives,y.commentDirectives,m.span.start,e.textSpanEnd(m.span),h,f,n,_),y},t.createSyntaxCursor=u,function(e){e[e.Value=-1]="Value"}(l||(l={}))}(u||(u={})),e.isDeclarationFileName=g,e.processCommentPragmas=m,e.processPragmasIntoFields=h;var y=new e.Map;function v(e){if(y.has(e))return y.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return y.set(e,t),t}var b=/^\/\/\/\s*<(\S+)\s.*?\/>/im,x=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function D(t,r,n){var i=2===r.kind&&b.exec(n);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,u=o.args;c=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a32;)a++;i.push(r.substring(o,a))}}c(i)}else s.push(r)}}function m(t,r,n,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[r])?(a[i.name]=void 0,r++):"boolean"===i.type?"false"===s?(a[i.name]=!1,r++):("true"===s&&r++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&r++);else if(t[r]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(n.optionTypeMismatchDiagnostic,i.name,R(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=parseInt(t[r]),r++;break;case"boolean":var s;a[i.name]="false"!==(s=t[r]),"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=t[r]||"",r++;break;case"list":var c=d(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=_(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function h(e,t){return y(s,e,t)}function y(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionsNameMap;if(r){var a=n.shortOptionNames.get(t);void 0!==a&&(t=a)}return i.get(t)}e.libs=n.map(function(e){return e[0]}),e.libMap=new e.Map(n),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_UseFsEvents_UseFsEventsOnParentDirectory},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Generates_a_CPU_profile},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us}],e.optionDeclarations=i(e.commonOptionsWithBuild,[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing},{name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT},{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,esnext:e.ModuleKind.ESNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:new e.Map(e.getEntries({preserve:1,"react-native":3,react:2})),affectsSourceFile:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files,transpileOptionValue:void 0},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation,transpileOptionValue:void 0},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_file_to_store_incremental_compilation_information,transpileOptionValue:void 0},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs,transpileOptionValue:void 0},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule,transpileOptionValue:!0},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime,transpileOptionValue:void 0},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts,transpileOptionValue:!0},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files,transpileOptionValue:!0},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_solution_searching_for_this_project},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_loading_referenced_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported,transpileOptionValue:void 0},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files,transpileOptionValue:void 0},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_class_fields_with_Define_instead_of_Set},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}]),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsSemanticDiagnostics}),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsEmit}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics}),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter(function(t){return e.hasProperty(t,"transpileOptionValue")}),e.buildOpts=i(e.commonOptionsWithBuild,[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],e.createOptionNameMap=o,e.getOptionsNameMap=s,e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=c,e.createCompilerDiagnosticForInvalidCustomType=u,e.parseCustomTypeOption=_,e.parseListTypeOption=d,e.parseCommandLineWorker=g,e.compilerOptionsDidYouMeanDiagnostics={getOptionsNameMap:s,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=function(t,r){return g(e.compilerOptionsDidYouMeanDiagnostics,t,r)},e.getOptionFromName=h;var v={getOptionsNameMap:function(){return r||(r=o(e.buildOpts))},optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function b(t,r){var n=e.parseJsonText(t,r);return{config:M(n,n.parseDiagnostics),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function x(t,r){var n=D(t,r);return e.isString(n)?e.parseJsonText(t,n):{parseDiagnostics:[n]}}function D(t,r){var n;try{n=r(t)}catch(i){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,i.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):n}function S(t){return e.arrayToMap(t,p)}e.parseBuildCommand=function(t){var r=g(v,t),n=r.watchOptions,i=r.fileNames,a=r.errors,o=r.options;return 0===i.length&&i.push("."),o.clean&&o.force&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:i,errors:a}},e.getDiagnosticText=function(t){for(var r=[],n=1;n=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,i(s,[l]).join(" -> "))),{raw:t||M(r,c)};var _=t?function(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=ie(t.compilerOptions,n,a,i),c=oe(t.typeAcquisition||t.typingOptions,n,a,i),u=function(e,t,r){return se(F(),e,t,void 0,P,r)}(t.watchOptions,n,a);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=ce(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var l=i?Q(i,n):n;o=re(t.extends,r,l,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,watchOptions:u,typeAcquisition:c,extendedConfigPath:o}}(t,n,a,o,c):function(t,r,n,i,a){var o,s,c,u,l=ne(i),_={onSetValidOptionKeyValueInParent:function(t,r,a){var u;switch(t){case"compilerOptions":u=l;break;case"watchOptions":u=c||(c={});break;case"typeAcquisition":u=o||(o=ae(i));break;case"typingOptions":u=s||(s=ae(i));break;default:e.Debug.fail("Unknown option")}u[r.name]=ue(r,n,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,l){switch(o){case"extends":var _=i?Q(i,n):n;return void(u=re(c,r,_,a,function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)}))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,o){"excludes"===r&&a.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},d=L(t,a,!0,(void 0===N&&(N={name:void 0,type:"object",elementOptions:S([{name:"compilerOptions",type:"object",elementOptions:O(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:F(),extraKeyDiagnostics:P},{name:"typingOptions",type:"object",elementOptions:I(),extraKeyDiagnostics:C},{name:"typeAcquisition",type:"object",elementOptions:I(),extraKeyDiagnostics:C},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])}),N),_);return o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:ae(i)),{raw:d,options:l,watchOptions:c,typeAcquisition:o,extendedConfigPath:u}}(r,n,a,o,c);if(_.extendedConfigPath){s=s.concat([l]);var d=function(t,r,n,i,a,o,s){var c,u,l,_,d=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);if(s&&(u=s.get(d)))l=u.extendedResult,_=u.extendedConfig;else{if(!(l=x(r,function(e){return n.readFile(e)})).parseDiagnostics.length){var p=e.getDirectoryPath(r);if(ee(_=te(void 0,l,n,p,e.getBaseFileName(r),a,o,s))){var f=e.convertToRelativePath(p,i,e.identity),g=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(f,t)},m=function(t){h[t]&&(h[t]=e.map(h[t],g))},h=_.raw;m("include"),m("exclude"),m("files")}}s&&s.set(d,{extendedResult:l,extendedConfig:_})}if(t&&(t.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(c=t.extendedSourceFiles).push.apply(c,l.extendedSourceFiles)),!l.parseDiagnostics.length)return _;o.push.apply(o,l.parseDiagnostics)}(r,_.extendedConfigPath,n,a,s,c,u);if(d&&ee(d)){var p=d.raw,f=_.raw,g=function(e){var t=f[e]||p[e];t&&(f[e]=t)};g("include"),g("exclude"),g("files"),void 0===f.compileOnSave&&(f.compileOnSave=p.compileOnSave),_.options=e.assign({},d.options,_.options),_.watchOptions=_.watchOptions&&d.watchOptions?e.assign({},d.watchOptions,_.watchOptions):_.watchOptions||d.watchOptions}}return _}function re(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);return r.fileExists(o)||e.endsWith(o,".json")||r.fileExists(o+=".json")?o:void i.push(a(e.Diagnostics.File_0_not_found,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,t))}function ne(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function ie(t,r,n,i){var a=ne(i);return se(O(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function ae(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function oe(e,t,r,n){var i=ae(n),a=c(e);return se(I(),a,t,i,C,r),i}function se(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=ce(c,r[s],n,o):o.push(f(s,a,e.createCompilerDiagnostic))}return i}}function ce(t,r,n,i){if(B(t,r)){var a=t.type;return"list"===a&&e.isArray(r)?function(t,r,n,i){return e.filter(e.map(r,function(e){return ce(t.element,e,n,i)}),function(e){return!!e})}(t,r,n,i):e.isString(a)?le(t,n,r):_e(t,r,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,R(t)))}function ue(t,r,n){if(!G(n)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(n,function(e){return ue(i.element,r,e)}),function(e){return!!e}):n}return e.isString(t.type)?le(t,r,n):t.type.get(e.isString(n)?n.toLowerCase():n)}}function le(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function _e(e,t,r){if(!G(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return i;r.push(u(e))}}function de(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.convertToObject=M,e.convertToObjectWorker=L,e.convertToTSConfig=function(t,r,n){var i=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),o=e.map(e.filter(t.fileNames,t.configFileSpecs&&t.configFileSpecs.validatedIncludeSpecs?function(t,r,n,i){if(!r)return function(e){return!0};var a=e.getFileMatcherPatterns(t,n,r,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,i.useCaseSensitiveFileNames),s=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,i.useCaseSensitiveFileNames);return s?o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)}:o?function(e){return o.test(e)}:function(e){return!0}}(r,t.configFileSpecs.validatedIncludeSpecs,t.configFileSpecs.validatedExcludeSpecs,n):function(e){return!0}),function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),i)}),s=V(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),c=t.watchOptions&&W(t.watchOptions,T());return a(a({compilerOptions:a(a({},j(s)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:c&&j(c),references:e.map(t.projectReferences,function(e){return a(a({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})}),files:e.length(o)?o:void 0},t.configFileSpecs?{include:U(t.configFileSpecs.validatedIncludeSpecs),exclude:t.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.generateTSConfig=function(t,r,n){var i=V(e.extend(t,e.defaultInitCompilerOptions));return function(){for(var t=e.createMultiMap(),c=0,u=e.optionDeclarations;c0)for(var b=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var n=d.filter(function(t){return e.endsWith(t,".json")}),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),function(e){return"^"+e+"$"});o=a?a.map(function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)}):e.emptyArray}if(-1!==e.findIndex(o,function(e){return e.test(t)})){var _=s(t);c.has(_)||l.has(_)||l.set(_,t)}return"continue"}if(function(t,r,n,i,a){for(var o=e.getExtensionPriority(t,i),s=e.adjustExtensionPriority(o,i),c=0;ci&&(i=u),1===i)return i}return i}break;case 254:var l=0;return e.forEachChild(t,function(t){var n=o(t,r);switch(n){case 0:return;case 2:return void(l=2);case 1:return l=1,!0;default:e.Debug.assertNever(n)}}),l;case 253:return n(t,r);case 78:if(t.isInJSDocNamespace)return 0}return 1}(t,r);return r.set(i,a),a}function s(t,r){for(var n=t.propertyName||t.name,i=t.parent;i;){if(e.isBlock(i)||e.isModuleBlock(i)||e.isSourceFile(i)){for(var a=void 0,s=0,c=i.statements;sa)&&(a=l),1===a)return a}}if(void 0!==a)return a}i=i.parent}return 1}function c(t){return e.Debug.attachFlowNodeDebugInfo(t),t}(r=e.ModuleInstanceState||(e.ModuleInstanceState={}))[r.NonInstantiated=0]="NonInstantiated",r[r.Instantiated=1]="Instantiated",r[r.ConstEnumOnly=2]="ConstEnumOnly",e.getModuleInstanceState=n,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(t||(t={}));var u=function(){var t,r,o,s,u,p,f,g,m,h,y,v,b,x,D,S,E,C,T,k,w,A,N,P,O=0,F={flags:1},I={flags:1};function M(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(n,i){t=n,o=e.getEmitScriptTarget(r=i),A=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,i),P=new e.Set,O=0,N=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(F),e.Debug.attachFlowNodeDebugInfo(I),t.locals||(Fe(t),t.symbolCount=O,t.classifiableNames=P,function(){if(m){for(var r=u,n=g,i=f,a=s,o=y,l=0,d=m;l=229&&t.kind<=245&&!r.allowUnreachableCode&&(t.flowNode=y),t.kind){case 233:!function(e){var t=pe(e,Y()),r=X(),n=X();te(t,y),y=t,_e(e.expression,r,n),y=oe(r),de(e.statement,n,t),te(t,y),y=oe(n)}(t);break;case 232:!function(e){var t=Y(),r=pe(e,X()),n=X();te(t,y),y=t,de(e.statement,n,r),te(r,y),y=oe(r),_e(e.expression,t,n),y=oe(n)}(t);break;case 234:!function(e){var t=pe(e,Y()),r=X(),n=X();Fe(e.initializer),te(t,y),y=t,_e(e.condition,r,n),y=oe(r),de(e.statement,n,t),Fe(e.incrementor),te(t,y),y=oe(n)}(t);break;case 235:case 236:!function(e){var t=pe(e,Y()),r=X();Fe(e.expression),te(t,y),y=t,236===e.kind&&Fe(e.awaitModifier),te(r,y),Fe(e.initializer),247!==e.initializer.kind&&me(e.initializer),de(e.statement,r,t),te(t,y),y=oe(r)}(t);break;case 231:!function(e){var t=X(),r=X(),n=X();_e(e.expression,t,r),y=oe(t),Fe(e.thenStatement),te(n,y),y=oe(r),Fe(e.elseStatement),te(n,y),y=oe(n)}(t);break;case 239:case 243:!function(e){Fe(e.expression),239===e.kind&&(k=!0,x&&te(x,y)),y=F}(t);break;case 238:case 237:!function(e){if(Fe(e.label),e.label){var t=function(e){for(var t=T;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,fe(e,t.breakTarget,t.continueTarget))}else fe(e,v,b)}(t);break;case 244:!function(t){var r=x,n=E,i=X(),a=X(),o=X();if(t.finallyBlock&&(x=a),te(o,y),E=o,Fe(t.tryBlock),te(i,y),t.catchClause&&(y=oe(o),te(o=X(),y),E=o,Fe(t.catchClause),te(i,y)),x=r,E=n,t.finallyBlock){var s=X();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),y=s,Fe(t.finallyBlock),1&y.flags?y=F:(x&&a.antecedents&&te(x,Z(s,a.antecedents,y)),E&&o.antecedents&&te(E,Z(s,o.antecedents,y)),y=i.antecedents?Z(s,i.antecedents,y):F)}else y=oe(i)}(t);break;case 241:!function(t){var r=X();Fe(t.expression);var n=v,i=C;v=r,C=y,Fe(t.caseBlock),te(r,y);var a=e.forEach(t.caseBlock.clauses,function(e){return 282===e.kind});t.possiblyExhaustive=!a&&!r.antecedents,a||te(r,ne(C,t,0,0)),v=n,C=i,y=oe(r)}(t);break;case 255:!function(e){for(var t=e.clauses,n=K(e.parent.expression),i=F,a=0;a=0;)switch(t=r.expr[n],r.state[n]){case 0:e.setParent(t,s);var i=A;Le(t);var a=s;s=t,u(1,i,a);break;case 1:if(55===(c=t.operatorToken.kind)||56===c||60===c||e.isLogicalOrCoalescingAssignmentOperator(c)){if(ue(t)){var o=X();he(t,o,o),y=oe(o)}else he(t,D,S);l()}else u(2),_(t.left);break;case 2:u(3),_(t.operatorToken);break;case 3:u(4),_(t.right);break;case 4:var c;e.isAssignmentOperator(c=t.operatorToken.kind)&&!e.isAssignmentTarget(t)&&(me(t.left),62===c&&199===t.left.kind&&$(t.left.expression)&&(y=ie(256,y,t))),l();break;default:return e.Debug.fail("Invalid state "+r.state[n]+" for bindBinaryExpressionFlow")}function u(e,t,i){r.state[n]=e,void 0!==t&&(r.inStrictMode[n]=t),void 0!==i&&(r.parent[n]=i)}function l(){void 0!==r.inStrictMode[n]&&(A=r.inStrictMode[n],s=r.parent[n]),n--}function _(t){t&&e.isBinaryExpression(t)?(n++,r.expr[n]=t,r.state[n]=0,r.inStrictMode[n]=void 0,r.parent[n]=void 0):Fe(t)}}(t);break;case 207:!function(e){W(e),198===e.expression.kind&&me(e.expression)}(t);break;case 214:!function(e){var t=X(),r=X(),n=X();_e(e.condition,t,r),y=oe(t),Fe(e.questionToken),Fe(e.whenTrue),te(n,y),y=oe(r),Fe(e.colonToken),Fe(e.whenFalse),te(n,y),y=oe(n)}(t);break;case 246:!function(t){W(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&ye(t)}(t);break;case 198:case 199:!function(t){e.isOptionalChain(t)?xe(t):W(t)}(t);break;case 200:!function(t){if(e.isOptionalChain(t))xe(t);else{var r=e.skipParentheses(t.expression);205===r.kind||206===r.kind?(V(t.typeArguments),V(t.arguments),Fe(t.expression)):(W(t),105===t.expression.kind&&(y=ae(y,t)))}if(198===t.expression.kind){var n=t.expression;e.isIdentifier(n.name)&&$(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(y=ie(256,y,t))}}(t);break;case 222:!function(t){e.isOptionalChain(t)?xe(t):W(t)}(t);break;case 327:case 320:case 321:!function(t){e.setParent(t.tagName,t),321!==t.kind&&t.fullName&&(e.setParent(t.fullName,t),e.setParentRecursive(t.fullName,!1))}(t);break;case 294:J(t.statements),Fe(t.endOfFileToken);break;case 227:case 254:J(t.statements);break;default:W(t)}Ie(t)}function K(t){switch(t.kind){case 78:case 107:case 198:case 199:return G(t);case 200:return function(e){if(e.arguments)for(var t=0,r=e.arguments;t155){var n=s;s=t;var i=De(t);0===i?q(t):function(t,r){var n=u,i=p,a=f;if(1&r?(206!==t.kind&&(p=u),u=f=t,32&r&&(u.locals=e.createSymbolTable()),Se(u)):2&r&&((f=t).locals=void 0),4&r){var o=y,s=v,l=b,_=x,d=E,g=T,m=k,D=16&r&&!e.hasSyntacticModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);D||(y=c({flags:2}),144&r&&(y.node=t)),x=D||165===t.kind||e.isInJSFile&&(248===t.kind||205===t.kind)?X():void 0,E=void 0,v=void 0,b=void 0,T=void 0,k=!1,q(t),t.flags&=-2817,!(1&y.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,k&&(t.flags|=512),t.endFlowNode=y),294===t.kind&&(t.flags|=w),x&&(te(x,y),y=oe(x),(165===t.kind||e.isInJSFile&&(248===t.kind||205===t.kind))&&(t.returnFlowNode=y)),D||(y=o),v=s,b=l,x=_,E=d,T=g,k=m}else 64&r?(h=!1,q(t),t.flags=h?128|t.flags:-129&t.flags):q(t);u=n,p=i,f=a}(t,i),s=n}else n=s,1===t.kind&&(s=t),Ie(t),s=n;A=r}}function Ie(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r=116&&r.originalKeywordKind<=124?t.bindDiagnostics.push(M(r,function(r){return e.getContainingClass(r)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(r),e.declarationNameToString(r))):130===r.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(r)?t.bindDiagnostics.push(M(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(r))):32768&r.flags&&t.bindDiagnostics.push(M(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))):124===r.originalKeywordKind&&8192&r.flags&&t.bindDiagnostics.push(M(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))))}(n);case 105:n.flowNode=y;break;case 79:return function(r){"#constructor"===r.escapedText&&(t.parseDiagnostics.length||t.bindDiagnostics.push(M(r,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(r))))}(n);case 198:case 199:var a=n;y&&H(a)&&(a.flowNode=y),e.isSpecialPropertyDeclaration(a)&&function(t){107===t.expression.kind?Ue(t):e.isBindableStaticAccessExpression(t)&&294===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?Ve(t,t.parent):We(t))}(a),e.isInJSFile(a)&&t.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(a)&&!d(f,"module")&&U(t.locals,void 0,a.expression,134217729,111550);break;case 213:switch(e.getAssignmentDeclarationKind(n)){case 1:je(n);break;case 2:!function(r){if(Be(r)){var n=e.getRightMostAssignedExpression(r.right);if(!(e.isEmptyObjectLiteral(n)||u===t&&_(t,n))){var i=e.exportAssignmentIsAlias(r)?2097152:1049092,a=U(t.symbol.exports,t.symbol,r,67108864|i,0);e.setValueDeclaration(a,r)}}}(n);break;case 3:Ve(n.left,n);break;case 6:!function(t){e.setParent(t.left,t),e.setParent(t.right,t),Ge(t.left.expression,t.left,!1,!0)}(n);break;case 4:Ue(n);break;case 5:!function(r){var n=Qe(r.left.expression,u)||Qe(r.left.expression,f);(e.isInJSFile(r)||e.isFunctionSymbol(n))&&(e.setParent(r.left,r),e.setParent(r.right,r),e.isIdentifier(r.left.expression)&&u===t&&_(t,r.left.expression)?je(r):e.hasDynamicName(r)?(ke(r,67108868,"__computed"),Je(r,qe(n,r.left.expression,He(r.left),!1,!1))):We(e.cast(r.left,e.isBindableStaticNameExpression)))}(n);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(t){A&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Ae(t,t.left)}(n);case 284:return function(e){A&&e.variableDeclaration&&Ae(e,e.variableDeclaration.name)}(n);case 207:return function(r){if(A&&78===r.expression.kind){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(n);case 8:return function(r){A&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(M(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(n);case 212:return function(e){A&&Ae(e,e.operand)}(n);case 211:return function(e){A&&(45!==e.operator&&46!==e.operator||Ae(e,e.operand))}(n);case 240:return function(t){A&&Pe(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(n);case 242:return function(t){A&&r.target>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Pe(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(n);case 186:return void(h=!0);case 171:break;case 158:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.find(t.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),U(r.locals,void 0,t,262144,526824)):Ee(t,262144,526824)}else if(184===t.parent.kind){var n=function(t){var r=e.findAncestor(t,function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t});return r&&r.parent}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),U(n.locals,void 0,t,262144,526824)):ke(t,262144,B(t))}else Ee(t,262144,526824)}(n);case 159:return Ye(n);case 246:return Xe(n);case 195:return n.flowNode=y,Xe(n);case 162:case 161:return function(e){return Ze(e,4|(e.questionToken?16777216:0),0)}(n);case 285:case 286:return Ze(n,4,0);case 288:return Ze(n,8,900095);case 168:case 169:case 170:return Ee(n,131072,0);case 164:case 163:return Ze(n,8192|(n.questionToken?16777216:0),e.isObjectLiteralMethod(n)?0:103359);case 248:return function(r){t.isDeclarationFile||8388608&r.flags||e.isAsyncFunction(r)&&(w|=2048),Ne(r),A?(function(r){if(o<2&&294!==f.kind&&253!==f.kind&&!e.isFunctionLike(f)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){return e.getContainingClass(r)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(r)))}}(r),we(r,16,110991)):Ee(r,16,110991)}(n);case 165:return Ee(n,16384,0);case 166:return Ze(n,32768,46015);case 167:return Ze(n,65536,78783);case 173:case 304:case 309:case 174:return function(t){var r=L(131072,B(t));R(r,t,131072);var n=L(2048,"__type");R(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(n);case 176:case 308:case 189:return function(e){return ke(e,2048,"__type")}(n);case 315:return function(t){W(t);var r=e.getHostSignatureFromJSDoc(t);r&&164!==r.kind&&R(r.symbol,r,32)}(n);case 197:return function(r){var n;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(n||(n={})),A&&!e.isAssignmentTarget(r))for(var i=new e.Map,a=0,o=r.properties;a1&&2097152&b.flags&&(t=e.createSymbolTable()).set("export=",b),T(t),h=function(t){var r=e.findIndex(t,function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)});if(r>=0){var n=t[r],i=e.mapDefined(n.exportClause.elements,function(r){if(!r.propertyName){var n=e.indicesOf(t),i=e.filter(n,function(n){return e.nodeHasName(t[n],r.name)});if(e.length(i)&&e.every(i,function(e){return D(t[e])})){for(var a=0,o=i;a1){var n=e.filter(t,function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause});t=i(n,[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(r,function(t){return e.cast(t.exportClause,e.isNamedExports).elements})),void 0)])}var a=e.filter(t,function(t){return e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)});if(e.length(a)>1){var o=e.group(a,function(t){return e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"});if(o.length!==a.length)for(var s=function(r){r.length>1&&(t=i(e.filter(t,function(e){return-1===r.indexOf(e)}),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(r,function(t){return e.cast(t.exportClause,e.isNamedExports).elements})),r[0].moduleSpecifier)]))},c=0,u=o;c0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===n?n="_default":"export="===n&&(n="_exports"),e.isIdentifierText(n,V)&&!e.isStringANonContextualKeyword(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function Z(e,t){var n=O(e);return r.remappedSymbolNames.has(n)?r.remappedSymbolNames.get(n):(t=Y(e,t),r.remappedSymbolNames.set(n,t),t)}}(t,r,u)})}};function r(r,n,i,a){e.Debug.assert(void 0===r||0==(8&r.flags));var o={enclosingDeclaration:r,flags:n||0,tracker:i&&i.trackSymbol?i:{trackSymbol:e.noop,moduleResolverHost:134217728&n?{getCommonSourceDirectory:t.getCommonSourceDirectory?function(){return t.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return t.getSourceFiles()},getCurrentDirectory:function(){return t.getCurrentDirectory()},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return t.fileExists(e)}}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},s=a(o);return o.encounteredError?void 0:s}function o(t){return t.truncating?t.truncating:t.truncating=t.approximateLength>(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function s(t,r){n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();var i=8388608&r.flags;if(r.flags&=-8388609,!t)return 262144&r.flags?(r.approximateLength+=3,e.factory.createKeywordTypeNode(128)):void(r.encounteredError=!0);if(536870912&r.flags||(t=Vs(t)),1&t.flags)return r.approximateLength+=3,e.factory.createKeywordTypeNode(128);if(2&t.flags)return e.factory.createKeywordTypeNode(151);if(4&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(8&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(143);if(64&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(154);if(16&t.flags)return r.approximateLength+=7,e.factory.createKeywordTypeNode(131);if(1024&t.flags&&!(1048576&t.flags)){var a=vi(t.symbol),c=E(a,r,788968);return wo(a)===t?c:B(c,e.factory.createTypeReferenceNode(e.symbolName(t.symbol),void 0))}if(1056&t.flags)return E(t.symbol,r,788968);if(128&t.flags)return r.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&r.flags)),16777216));if(256&t.flags){var g=t.value;return r.approximateLength+=(""+g).length,e.factory.createLiteralTypeNode(g<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-g)):e.factory.createNumericLiteral(g))}if(2048&t.flags)return r.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value));if(512&t.flags)return r.approximateLength+=t.intrinsicName.length,e.factory.createLiteralTypeNode("true"===t.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&t.flags){if(!(1048576&r.flags)){if(zi(t.symbol,r.enclosingDeclaration))return r.approximateLength+=6,E(t.symbol,r,111551);r.tracker.reportInaccessibleUniqueSymbolError&&r.tracker.reportInaccessibleUniqueSymbolError()}return r.approximateLength+=13,e.factory.createTypeOperatorNode(150,e.factory.createKeywordTypeNode(147))}if(16384&t.flags)return r.approximateLength+=4,e.factory.createKeywordTypeNode(113);if(32768&t.flags)return r.approximateLength+=9,e.factory.createKeywordTypeNode(149);if(65536&t.flags)return r.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&t.flags)return r.approximateLength+=5,e.factory.createKeywordTypeNode(140);if(4096&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(67108864&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(144);if(Zu(t))return 4194304&r.flags&&(r.encounteredError||32768&r.flags||(r.encounteredError=!0),r.tracker.reportInaccessibleThisError&&r.tracker.reportInaccessibleThisError()),r.approximateLength+=4,e.factory.createThisTypeNode();if(!i&&t.aliasSymbol&&(16384&r.flags||Ui(t.aliasSymbol,r.enclosingDeclaration))){var m=_(t.aliasTypeArguments,r);return!Oi(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?E(t.aliasSymbol,r,788968,m):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),m)}var h=e.getObjectFlags(t);if(4&h)return e.Debug.assert(!!(524288&t.flags)),t.node?M(t,R):R(t);if(262144&t.flags||3&h){if(262144&t.flags&&e.contains(r.inferTypeParameters,t))return r.approximateLength+=e.symbolName(t.symbol).length+6,e.factory.createInferTypeNode(f(t,r,void 0));if(4&r.flags&&262144&t.flags&&!Ui(t.symbol,r.enclosingDeclaration)){var y=T(t,r);return r.approximateLength+=e.idText(y).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(y)),void 0)}return t.symbol?E(t.symbol,r,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(3145728&t.flags){var v=1048576&t.flags?function(e){for(var t=[],r=0,n=0;n0?1048576&t.flags?e.factory.createUnionTypeNode(b):e.factory.createIntersectionTypeNode(b):void(r.encounteredError||262144&r.flags||(r.encounteredError=!0))}if(48&h)return e.Debug.assert(!!(524288&t.flags)),I(t);if(4194304&t.flags){var x=t.type;r.approximateLength+=6;var D=s(x,r);return e.factory.createTypeOperatorNode(137,D)}if(8388608&t.flags){var S=s(t.objectType,r);return D=s(t.indexType,r),r.approximateLength+=2,e.factory.createIndexedAccessTypeNode(S,D)}if(16777216&t.flags){var C=s(t.checkType,r),k=r.inferTypeParameters;r.inferTypeParameters=t.root.inferTypeParameters;var w=s(t.extendsType,r);r.inferTypeParameters=k;var A=F(_l(t)),N=F(dl(t));return r.approximateLength+=15,e.factory.createConditionalTypeNode(C,w,A,N)}return 33554432&t.flags?s(t.baseType,r):e.Debug.fail("Should be unreachable.");function F(e){var t,n,i;return 1048576&e.flags?(null===(t=r.visitedTypes)||void 0===t?void 0:t.has(Tu(e)))?(131072&r.flags||(r.encounteredError=!0,null===(i=null===(n=r.tracker)||void 0===n?void 0:n.reportCyclicStructureError)||void 0===i||i.call(n)),u(r)):M(e,function(e){return s(e,r)}):s(e,r)}function I(t){var n,i=t.id,a=t.symbol;if(a){if(Eh(a.valueDeclaration)){var o=t===vo(a)?788968:111551;return E(a,r,o)}if(32&a.flags&&!$a(a)&&!(218===a.valueDeclaration.kind&&2048&r.flags)||896&a.flags||function(){var t,n=!!(8192&a.flags)&&e.some(a.declarations,function(t){return e.hasSyntacticModifier(t,32)}),o=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,function(e){return 294===e.parent.kind||254===e.parent.kind}));if(n||o)return(!!(4096&r.flags)||(null===(t=r.visitedTypes)||void 0===t?void 0:t.has(i)))&&(!(8&r.flags)||zi(a,r.enclosingDeclaration))}())return E(a,r,111551);if(null===(n=r.visitedTypes)||void 0===n?void 0:n.has(i)){var s=function(t){if(t.symbol&&2048&t.symbol.flags){var r=e.walkUpParenthesizedTypes(t.symbol.declarations[0].parent);if(251===r.kind)return yi(r)}}(t);return s?E(s,r,788968):u(r)}return M(t,L)}return L(t)}function M(t,n){var i,a=t.id,o=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags,s=4&e.getObjectFlags(t)&&t.node?"N"+P(t.node):t.symbol?(o?"+":"")+O(t.symbol):void 0;if(r.visitedTypes||(r.visitedTypes=new e.Set),s&&!r.symbolDepth&&(r.symbolDepth=new e.Map),s){if((i=r.symbolDepth.get(s)||0)>10)return u(r);r.symbolDepth.set(s,i+1)}r.visitedTypes.add(a);var c=n(t);return r.visitedTypes.delete(a),s&&r.symbolDepth.set(s,i),c}function L(t){if(bs(t)||t.containsError)return function(t){e.Debug.assert(!!(524288&t.flags));var n,i=t.declaration.readonlyToken?e.factory.createToken(t.declaration.readonlyToken.kind):void 0,a=t.declaration.questionToken?e.factory.createToken(t.declaration.questionToken.kind):void 0;n=gs(t)?e.factory.createTypeOperatorNode(137,s(ms(t),r)):s(ds(t),r);var o=f(_s(t),r,n),c=s(ps(t),r),u=e.factory.createMappedTypeNode(i,o,a,c);return r.approximateLength+=10,e.setEmitFlags(u,1)}(t);var n=xs(t);if(!n.properties.length&&!n.stringIndexInfo&&!n.numberIndexInfo){if(!n.callSignatures.length&&!n.constructSignatures.length)return r.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===n.callSignatures.length&&!n.constructSignatures.length)return p(n.callSignatures[0],173,r);if(1===n.constructSignatures.length&&!n.callSignatures.length)return p(n.constructSignatures[0],174,r)}var i=r.flags;r.flags|=4194304;var a=function(t){if(o(r))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var n=[],i=0,a=t.callSignatures;i0&&(h=_(n.slice(x,(t.target.typeParameters||e.emptyArray).length),r)),D=r.flags,r.flags|=16;var y=E(t.symbol,r,788968,h);return r.flags=D,u?B(u,y):y}if(n.length>0){var v=Uc(t),b=_(n.slice(0,v),r);if(b){if(t.target.labeledElementDeclarations)for(var x=0;x2)return[s(t[0],r),e.factory.createTypeReferenceNode("... "+(t.length-2)+" more ...",void 0),s(t[t.length-1],r)]}for(var i=64&r.flags?void 0:e.createUnderscoreEscapedMultiMap(),a=[],c=0,u=0,l=t;u0)),a}function b(t,r){var n;return 524384&Lb(t).flags&&(n=e.factory.createNodeArray(e.map(so(t),function(e){return g(e,r)}))),n}function x(t,r,n){var i;e.Debug.assert(t&&0<=r&&r1?g(a,a.length-1,1):void 0,c=i||x(a,0,r),u=S(a[0],r);!(67108864&r.flags)&&e.getEmitModuleResolutionKind(J)===e.ModuleResolutionKind.NodeJs&&u.indexOf("/node_modules/")>=0&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(u));var l=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(u));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]),r.approximateLength+=u.length+10,!s||e.isEntityName(s))return s&&((p=e.isIdentifier(s)?s:s.right).typeArguments=void 0),e.factory.createImportTypeNode(l,s,c,o);var _=D(s);return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(l,_.objectType.typeName,c,o),_.indexType)}var d=g(a,a.length-1,0);if(e.isIndexedAccessTypeNode(d))return d;if(o)return e.factory.createTypeQueryNode(d);var p,f=(p=e.isIdentifier(d)?d:d.right).typeArguments;return p.typeArguments=void 0,e.factory.createTypeReferenceNode(d,f);function g(t,n,a){var o,s=n===t.length-1?i:x(t,n,r),c=t[n],u=t[n-1];if(0===n)r.flags|=16777216,o=ua(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(u&&pi(u)){var l=pi(u);e.forEachEntry(l,function(t,r){if(Si(t,c)&&!Uo(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0})}if(o||(o=ua(c,r)),r.approximateLength+=o.length+1,!(16&r.flags)&&u&&Ko(u)&&Ko(u).get(c.escapedName)&&Si(Ko(u).get(c.escapedName),c)){var _=g(t,n-1,a);return e.isIndexedAccessTypeNode(_)?e.factory.createIndexedAccessTypeNode(_,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(_,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)))}var d=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);return d.symbol=c,n>a?(_=g(t,n-1,a),e.isEntityName(_)?e.factory.createQualifiedName(_,d):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")):d}}function C(e,t,r){var n=Cn(t.enclosingDeclaration,e,788968,void 0,e,!1);return!(!n||262144&n.flags&&n===r.symbol)}function T(t,r){var n;if(4&r.flags&&r.typeParameterNames){var i=r.typeParameterNames.get(Tu(t));if(i)return i}var a=k(t.symbol,r,788968,!0);if(!(78&a.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var o=a.escapedText,s=0,c=o;(null===(n=r.typeParameterNamesByText)||void 0===n?void 0:n.has(c))||C(c,r,t);)c=o+"_"+ ++s;c!==o&&(a=e.factory.createIdentifier(c,a.typeArguments)),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(Tu(t),a),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(a.escapedText)}return a}function k(t,r,n,i){var a=y(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=x(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=ua(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}function w(t,r,n){var i=y(t,r,n);return function t(n,i){var a=x(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=ua(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,Gi))return e.factory.createStringLiteral(S(o,r));var u=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),V):e.isIdentifierStart(c,V);if(0===i||u){var l=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return l.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(n,i-1),l):l}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var _=void 0;return e.isSingleOrDoubleQuote(c)?_=e.factory.createStringLiteral(s.substring(1,s.length-1).replace(/\\./g,function(e){return e.substring(1)}),39===c):""+ +s===s&&(_=e.factory.createNumericLiteral(+s)),_||((_=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(n,i-1),_)}(i,i.length-1)}function A(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function N(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function F(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,N);return function(t,r,n){var i=vn(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,J.target)||Mg(a)?Mg(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):I(a):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(w(i.symbol,r,111551))}}(t,r,n)||(e.isKnownSymbol(t)?e.factory.createComputedPropertyName(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("Symbol"),t.escapedName.substr(3))):I(e.unescapeLeadingUnderscores(t.escapedName),!!e.length(t.declarations)&&e.every(t.declarations,A),n))}function I(t,r,n){return e.isIdentifierText(t,J.target)?e.factory.createIdentifier(t):!r&&Mg(t)&&+t>=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n)}function M(t,r){return t.declarations&&e.find(t.declarations,function(t){return!(!e.getEffectiveTypeAnnotationNode(t)||r&&!e.findAncestor(t,function(e){return e===r}))})}function L(t,r){return!(4&e.getObjectFlags(r))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=uc(r.target.typeParameters)}function R(t,r,n,i,a,o){if(r!==Se&&i){var c=M(n,i);if(c&&!e.isFunctionLikeDeclaration(c)){var u=e.getEffectiveTypeAnnotationNode(c);if(Rl(u)===r&&L(u,r)){var l=B(t,u,a,o);if(l)return l}}}var _=t.flags;8192&r.flags&&r.symbol===n&&(t.flags|=1048576);var d=s(r,t);return t.flags=_,d}function B(r,i,a,o){n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();var c=!1,u=e.getSourceFileOfNode(i),l=e.visitNode(i,function n(i){var l,_,d;if(e.isJSDocAllType(i)||306===i.kind)return e.factory.createKeywordTypeNode(128);if(e.isJSDocUnknownType(i))return e.factory.createKeywordTypeNode(151);if(e.isJSDocNullableType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,n),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,n),e.factory.createKeywordTypeNode(149)]);if(e.isJSDocNonNullableType(i))return e.visitNode(i.type,n);if(e.isJSDocVariadicType(i))return e.factory.createArrayTypeNode(e.visitNode(i.type,n));if(e.isJSDocTypeLiteral(i))return e.factory.createTypeLiteralNode(e.map(i.jsDocPropertyTags,function(t){var a=e.isIdentifier(t.name)?t.name:t.name.right,o=ha(Rl(i),a.escapedText),c=o&&t.typeExpression&&Rl(t.typeExpression.type)!==o?s(o,r):void 0;return e.factory.createPropertySignature(void 0,a,t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.factory.createToken(57):void 0,c||t.typeExpression&&e.visitNode(t.typeExpression.type,n)||e.factory.createKeywordTypeNode(128))}));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(128),i);if((e.isExpressionWithTypeArguments(i)||e.isTypeReferenceNode(i))&&e.isJSDocIndexSignature(i))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,e.visitNode(i.typeArguments[0],n))],e.visitNode(i.typeArguments[1],n))]);if(e.isJSDocFunctionType(i))return e.isJSDocConstructSignature(i)?e.factory.createConstructorTypeNode(e.visitNodes(i.typeParameters,n),e.mapDefined(i.parameters,function(t,r){return t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(d=t.type):e.factory.createParameterDeclaration(void 0,void 0,m(t),h(t,r),t.questionToken,e.visitNode(t.type,n),void 0)}),e.visitNode(d||i.type,n)||e.factory.createKeywordTypeNode(128)):e.factory.createFunctionTypeNode(e.visitNodes(i.typeParameters,n),e.map(i.parameters,function(t,r){return e.factory.createParameterDeclaration(void 0,void 0,m(t),h(t,r),t.questionToken,e.visitNode(t.type,n),void 0)}),e.visitNode(i.type,n)||e.factory.createKeywordTypeNode(128));if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(!L(i,Rl(i))||Yc(i)||ye===Wc(Vc(i),788968,!0)))return e.setOriginalNode(s(Rl(i),r),i);if(e.isLiteralImportTypeNode(i))return e.factory.updateImportTypeNode(i,e.factory.updateLiteralTypeNode(i.argument,function(n,i){if(o){if(r.tracker&&r.tracker.moduleResolverHost){var a=Yx(n);if(a){var s=e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),c=e.getResolvedExternalModuleName({getCanonicalFileName:s,getCurrentDirectory:function(){return r.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return r.tracker.moduleResolverHost.getCommonSourceDirectory()}},a);return e.factory.createStringLiteral(c)}}}else if(r.tracker&&r.tracker.trackExternalModuleSymbolOfImportTypeNode){var u=ai(i,i,void 0);u&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(u)}return i}(i,i.argument.literal)),i.qualifier,e.visitNodes(i.typeArguments,n,e.isTypeNode),i.isTypeOf);if(e.isEntityName(i)||e.isEntityNameExpression(i)){var p=e.getFirstIdentifier(i);if(e.isInJSFile(i)&&(e.isExportsIdentifier(p)||e.isModuleExportsAccessExpression(p.parent)||e.isQualifiedName(p.parent)&&e.isModuleIdentifier(p.parent.left)&&e.isExportsIdentifier(p.parent.right)))return c=!0,i;var f=ri(p,67108863,!0,!0);if(f&&(0!==Wi(f,r.enclosingDeclaration,67108863,!1).accessibility?c=!0:(null===(_=null===(l=r.tracker)||void 0===l?void 0:l.trackSymbol)||void 0===_||_.call(l,f,r.enclosingDeclaration,67108863),null==a||a(f)),e.isIdentifier(i))){var g=262144&f.flags?T(wo(f),r):e.factory.cloneNode(i);return g.symbol=f,e.setEmitFlags(e.setOriginalNode(g,i),16777216)}}return u&&e.isTupleTypeNode(i)&&e.getLineAndCharacterOfPosition(u,i.pos).line===e.getLineAndCharacterOfPosition(u,i.end).line&&e.setEmitFlags(i,1),e.visitEachChild(i,n,e.nullTransformationContext);function m(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):void 0)}function h(t,r){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":m(t)?"args":"arg"+r}});if(!c)return l===i?e.setTextRange(e.factory.cloneNode(i),i):l}}(),re=e.createSymbolTable(),ne=ln(4,"undefined");ne.declarations=[];var ie=ln(1536,"globalThis",8);ie.exports=re,ie.declarations=[],re.set(ie.escapedName,ie);var ae,oe=ln(4,"arguments"),se=ln(4,"require"),ce={getNodeCount:function(){return e.sum(t.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(t.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(t.getSourceFiles(),"symbolCount")+v},getTypeCount:function(){return y},getInstantiationCount:function(){return x},getRelationCacheSizes:function(){return{assignable:Yr.size,identity:en.size,subtype:$r.size,strictSubtype:Xr.size}},isUndefinedSymbol:function(e){return e===ne},isArgumentsSymbol:function(e){return e===oe},isUnknownSymbol:function(e){return e===ye},getMergedSymbol:hi,getDiagnostics:nx,getGlobalDiagnostics:function(){return ix(),Kr.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(t,r){var n=e.getParseTreeNode(r);return n?function(t,r){if(t=t.exportSymbol||t,78===r.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&!e.isAssignmentTarget(r))){var n=Wy(r);if(Ei(bn(r).resolvedSymbol)===t)return n}return eo(t)}(t,n):Se},getSymbolsOfParameterPropertyDeclaration:function(t,r){var n=e.getParseTreeNode(t,e.isParameter);return void 0===n?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(t,r){var n=t.parent.parent,i=Dn(t.parent.locals,r,111551),a=Dn(Ko(n.symbol),r,111551);return i&&a?[i,a]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:wo,getPropertiesOfType:Cs,getPropertyOfType:function(t,r){return Gs(t,e.escapeLeadingUnderscores(r))},getPrivateIdentifierPropertyOfType:function(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=bm(e.escapeLeadingUnderscores(r),i);return a?xm(t,a):void 0}},getTypeOfPropertyOfType:function(t,r){return ha(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:Zs,getSignaturesOfType:$s,getIndexTypeOfType:ec,getBaseTypes:mo,getBaseTypeOfLiteralType:wd,getWidenedType:op,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?Rl(r):Se},getParameterType:Bh,getPromisedTypeOfPromise:pv,getAwaitedType:function(e){return gv(e)},getReturnTypeOfSignature:hc,isNullableType:lm,getNullableType:Wd,getNonNullableType:Kd,getNonOptionalType:Qd,getTypeArguments:jc,typeToTypeNode:te.typeToTypeNode,indexInfoToIndexSignatureDeclaration:te.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:te.signatureToSignatureDeclaration,symbolToEntityName:te.symbolToEntityName,symbolToExpression:te.symbolToExpression,symbolToTypeParameterDeclarations:te.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:te.symbolToParameterDeclaration,typeParameterToDeclaration:te.typeParameterToDeclaration,getSymbolsInScope:function(t,r){var n=e.getParseTreeNode(t);return n?function(t,r){if(16777216&t.flags)return[];var n=e.createSymbolTable(),i=!1;return function(){for(;t;){switch(t.locals&&!xn(t)&&o(t.locals,r),t.kind){case 294:if(!e.isExternalOrCommonJsModule(t))break;case 253:o(yi(t).exports,2623475&r);break;case 252:o(yi(t).exports,8&r);break;case 218:t.name&&a(t.symbol,r);case 249:case 250:i||o(Ko(yi(t)),788968&r);break;case 205:t.name&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(oe,r),i=e.hasSyntacticModifier(t,32),t=t.parent}o(re,r)}(),n.delete("this"),nc(n);function a(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;n.has(i)||n.set(i,t)}}function o(e,t){t&&e.forEach(function(e){a(e,t)})}}(n,r):[]},getSymbolAtLocation:function(t){var r=e.getParseTreeNode(t);return r?_x(r,!0):void 0},getShorthandAssignmentValueSymbol:function(t){var r=e.getParseTreeNode(t);return r?function(e){if(e&&286===e.kind)return ri(e.name,2208703)}(r):void 0},getExportSpecifierLocalTargetSymbol:function(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?function(e){return e.parent.parent.moduleSpecifier?Jn(e.parent.parent,e):ri(e.propertyName||e.name,2998271)}(r):void 0},getExportSymbolOfSymbol:function(e){return hi(e.exportSymbol||e)},getTypeAtLocation:function(t){var r=e.getParseTreeNode(t);return r?dx(r):Se},getTypeOfAssignmentPattern:function(t){var r=e.getParseTreeNode(t,e.isAssignmentPattern);return r&&px(r)||Se},getPropertySymbolOfDestructuringAssignment:function(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?function(t){var r=px(e.cast(t.parent.parent,e.isAssignmentPattern));return r&&Gs(r,t.escapedText)}(r):void 0},signatureToString:function(t,r,n,i){return Yi(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return Zi(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return Xi(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return ia(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return Yi(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return Zi(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return Xi(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return ia(t,e.getParseTreeNode(r),n,i)},getAugmentedPropertiesOfType:hx,getRootSymbols:function t(r){var n=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(vn(t).containingType.types,function(e){return Gs(e,t.escapedName)});if(33554432&t.flags){var r=t.leftSpread,n=t.syntheticOrigin;return r?[r,t.rightSpread]:n?[n]:e.singleElementArray(function(e){for(var t,r=e;r=vn(r).target;)t=r;return t}(t))}}(r);return n?e.flatMap(n,t):[r]},getContextualType:function(t,r){var n=e.getParseTreeNode(t,e.isExpression);if(n){var i=e.findAncestor(n,e.isCallLikeExpression),a=i&&bn(i).resolvedSignature;if(4&r&&i){var o=n;do{bn(o).skipDirectInference=!0,o=o.parent}while(o&&o!==i);bn(i).resolvedSignature=void 0}var s=Dg(n,r);if(4&r&&i){o=n;do{bn(o).skipDirectInference=void 0,o=o.parent}while(o&&o!==i);bn(i).resolvedSignature=a}return s}},getContextualTypeForObjectLiteralElement:function(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?gg(r):void 0},getContextualTypeForArgumentAtIndex:function(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&dg(n,r)},getContextualTypeForJsxAttribute:function(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&hg(r)},isContextSensitive:p_,getFullyQualifiedName:ti,getResolvedSignature:function(e,t,r){return ue(e,t,r,0)},getResolvedSignatureForSignatureHelp:function(e,t,r){return ue(e,t,r,16)},getExpandedParameters:es,hasEffectiveRestParameter:Vh,getConstantValue:function(t){var r=e.getParseTreeNode(t,Bx);return r?jx(r):void 0},isValidPropertyAccess:function(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&function(e,t){switch(e.kind){case 198:return Im(e,105===e.expression.kind,t,op(Hy(e.expression)));case 156:return Im(e,!1,t,op(Hy(e.left)));case 192:return Im(e,!1,t,Rl(e))}}(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&function(e,t,r){return Im(e,198===e.kind&&105===e.expression.kind,r.escapedName,t)}(i,r,n)},getSignatureFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?_c(r):void 0},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?Px(r):void 0},getImmediateAliasedSymbol:Bg,getAliasedSymbol:Gn,getEmitResolver:function(e,t){return nx(e,t),ee},getExportsOfModule:_i,getExportsAndPropertiesOfModule:function(t){var r=_i(t),n=ci(t);return n!==t&&e.addRange(r,Cs(eo(n))),r},getSymbolWalker:e.createGetSymbolWalker(function(e){return bc(e)||be},mc,hc,mo,xs,eo,Up,Ys,ks,e.getFirstIdentifier,jc),getAmbientModules:function(){return lt||(lt=[],re.forEach(function(e,t){c.test(t)&<.push(e)})),lt},getJsxIntrinsicTagNamesAt:function(t){var r=qg(k.IntrinsicElements,t);return r?Cs(r):e.emptyArray},isOptionalParameter:function(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&oc(r)},tryGetMemberInModuleExports:function(t,r){return di(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return function(t,r){var n=di(t,r);if(n)return n;var i=ci(r);if(i!==r){var a=eo(i);return 131068&a.flags||1&e.getObjectFlags(a)||Ed(a)?void 0:Gs(a,t)}}(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModuleWithoutAugmentations:function(e){return ac(e,!1)},getApparentType:Bs,getUnionType:Pu,isTypeAssignableTo:S_,createAnonymousType:Mi,createSignature:$o,createSymbol:ln,createIndexInfo:Ac,getAnyType:function(){return be},getStringType:function(){return Pe},getNumberType:function(){return Oe},createPromiseType:Xh,createArrayType:fu,getElementTypeOfArrayType:bd,getBooleanType:function(){return Be},getFalseType:function(e){return e?Ie:Me},getTrueType:function(e){return e?Le:Re},getVoidType:function(){return Ue},getUndefinedType:function(){return Te},getNullType:function(){return Ae},getESSymbolType:function(){return je},getNeverType:function(){return ze},getOptionalType:function(){return we},isSymbolAccessible:Wi,isArrayType:hd,isTupleType:Fd,isArrayLikeType:xd,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some(function(t){var r=t.name&&Uu(t.name),n=r&&Bo(r)?Vo(r):void 0,i=void 0===n?void 0:ha(e,n);return!!i&&kd(i)&&!S_(dx(t),i)})},getAllPossiblePropertiesOfTypes:function(t){var r=Pu(t);if(!(1048576&r.flags))return hx(r);for(var n=e.createSymbolTable(),i=0,a=t;i>",0,be),ir=$o(void 0,void 0,void 0,e.emptyArray,be,void 0,0,0),ar=$o(void 0,void 0,void 0,e.emptyArray,Se,void 0,0,0),or=$o(void 0,void 0,void 0,e.emptyArray,be,void 0,0,0),sr=$o(void 0,void 0,void 0,e.emptyArray,Je,void 0,0,0),cr=Ac(Pe,!0),ur=new e.Map,lr={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},_r=sb(be,be,be),dr=sb(be,be,Ce),pr=sb(ze,be,Te),fr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Jt||(Jt=au("AsyncIterator",3,e))||rt},getGlobalIterableType:function(e){return zt||(zt=au("AsyncIterable",1,e))||rt},getGlobalIterableIteratorType:function(e){return Vt||(Vt=au("AsyncIterableIterator",1,e))||rt},getGlobalGeneratorType:function(e){return Wt||(Wt=au("AsyncGenerator",3,e))||rt},resolveIterationType:gv,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},gr={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Lt||(Lt=au("Iterator",3,e))||rt},getGlobalIterableType:lu,getGlobalIterableIteratorType:function(e){return Rt||(Rt=au("IterableIterator",1,e))||rt},getGlobalGeneratorType:function(e){return Bt||(Bt=au("Generator",3,e))||rt},resolveIterationType:function(e,t){return e},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},mr=new e.Map,hr=!1,yr=new e.Map,vr=0,br=0,xr=0,Dr=!1,Sr=0,Er=Ol(""),Cr=Ol(0),Tr=Ol({negative:!1,base10Value:"0"}),kr=[],wr=[],Ar=[],Nr=0,Pr=[],Or=[],Fr=[],Ir=[],Mr=[],Lr=[],Rr=[],Br=[],jr=[],Ur=[],zr=[],Jr=[],Vr=[],Wr=[],qr=[],Kr=e.createDiagnosticCollection(),Hr=e.createDiagnosticCollection(),Gr=new e.Map(e.getEntries({string:Pe,number:Oe,bigint:Fe,boolean:Be,symbol:je,undefined:Te})),Qr=Pu(e.arrayFrom(S.keys(),Ol)),$r=new e.Map,Xr=new e.Map,Yr=new e.Map,Zr=new e.Map,en=new e.Map,tn=new e.Map,rn=e.createSymbolTable();return rn.set(ne.escapedName,ne),function(){for(var r=0,n=t.getSourceFiles();r=5||e.some(o.relatedInformation,function(t){return 0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i)}))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,u=i||e.emptyArray;c1)}function vn(e){if(33554432&e.flags)return e;var t=O(e);return Or[t]||(Or[t]=new A)}function bn(e){var t=P(e);return Fr[t]||(Fr[t]=new N)}function xn(t){return 294===t.kind&&!e.isExternalOrCommonJsModule(t)}function Dn(t,r,n){if(n){var i=hi(t.get(r));if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&n)return i;if(2097152&i.flags){var a=Gn(i);if(a===ye||a.flags&n)return i}}}}function Sn(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),o=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(W&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(J)||zp(n)||8388608&r.flags)return!0;if(u(n,r))return!0;var s=t.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(r.pos<=n.pos&&(!e.isPropertyDeclaration(r)||!e.isThisProperty(n.parent)||r.initializer||r.exclamationToken)){if(195===r.kind){var c=e.getAncestor(n,195);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.post.end)&&void 0===e.findAncestor(r,function(r){if(r===t)return"quit";switch(r.kind){case 206:return!0;case 162:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 227:switch(r.parent.kind){case 166:case 164:case 167:return!0;default:return!1}default:return!1}})}}function En(t,r,n){var i=e.getEmitScriptTarget(J),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=bn(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,function(e){return s(e.name)||!!e.initializer&&s(e.initializer)})||!1),!o.declarationRequiresScopeChange}return!1;function s(t){switch(t.kind){case 206:case 205:case 248:case 165:return!1;case 164:case 166:case 167:case 285:return s(t.name);case 162:return e.hasStaticModifier(t)?i<99||!J.useDefineForClassFields:s(t.name);default:return e.isNullishCoalesce(t)||e.isOptionalChain(t)?i<7:e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)?i<4:!e.isTypeNode(t)&&(e.forEachChild(t,s)||!1)}}}function Cn(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),Tn(e,t,r,n,i,a,o,Dn,s)}function Tn(t,r,n,i,a,o,s,c,u){var l,_,d,p,f,g,m=t,h=!1,y=t,v=!1;e:for(;t;){if(t.locals&&!xn(t)&&(l=c(t.locals,r,n))){var b=!0;if(e.isFunctionLike(t)&&_&&_!==t.body?(n&l.flags&788968&&307!==_.kind&&(b=!!(262144&l.flags)&&(_===t.type||159===_.kind||158===_.kind)),n&l.flags&3&&(En(l,t,_)?b=!1:1&l.flags&&(b=159===_.kind||_===t.type&&!!e.findAncestor(l.valueDeclaration,e.isParameter)))):183===t.kind&&(b=_===t.trueType),b)break e;l=void 0}switch(h=h||kn(t,_),t.kind){case 294:if(!e.isExternalOrCommonJsModule(t))break;v=!0;case 253:var x=yi(t).exports||U;if(294===t.kind||e.isModuleDeclaration(t)&&8388608&t.flags&&!e.isGlobalScopeAugmentation(t)){if(l=x.get("default")){var D=e.getLocalSymbolForExportDefault(l);if(D&&l.flags&n&&D.escapedName===r)break e;l=void 0}var S=x.get(r);if(S&&2097152===S.flags&&(e.getDeclarationOfKind(S,267)||e.getDeclarationOfKind(S,266)))break}if("default"!==r&&(l=c(x,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||l.declarations.some(e.isJSDocTypeAlias))break e;l=void 0}break;case 252:if(l=c(yi(t).exports,r,8&n))break e;break;case 162:if(!e.hasSyntacticModifier(t,32)){var E=Ti(t.parent);E&&E.locals&&c(E.locals,r,111551&n)&&(p=t)}break;case 249:case 218:case 250:if(l=c(yi(t).members||U,r,788968&n)){if(!Nn(l,t)){l=void 0;break}if(_&&e.hasSyntacticModifier(_,32))return void on(y,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(218===t.kind&&32&n){var C=t.name;if(C&&r===C.escapedText){l=t.symbol;break e}}break;case 220:if(_===t.expression&&93===t.parent.token){var T=t.parent.parent;if(e.isClassLike(T)&&(l=c(yi(T).members,r,788968&n)))return void(i&&on(y,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 157:if((e.isClassLike(g=t.parent.parent)||250===g.kind)&&(l=c(yi(g).members,r,788968&n)))return void on(y,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 206:if(J.target>=2)break;case 164:case 165:case 166:case 167:case 248:if(3&n&&"arguments"===r){l=oe;break e}break;case 205:if(3&n&&"arguments"===r){l=oe;break e}if(16&n){var k=t.name;if(k&&r===k.escapedText){l=t.symbol;break e}}break;case 160:t.parent&&159===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||249===t.parent.kind)&&(t=t.parent);break;case 327:case 320:case 321:t=e.getJSDocHost(t);break;case 159:_&&(_===t.initializer||_===t.name&&e.isBindingPattern(_))&&(f||(f=t));break;case 195:_&&(_===t.initializer||_===t.name&&e.isBindingPattern(_))&&159===(P=e.getRootDeclaration(t)).kind&&(f||(f=t))}wn(t)&&(d=t),_=t,t=t.parent}if(!o||!l||d&&l===d.symbol||(l.isReferenced|=n),!l){if(_&&(e.Debug.assert(294===_.kind),_.commonJsModuleIndicator&&"exports"===r&&n&_.symbol.flags))return _.symbol;s||(l=c(re,r,n))}if(!l&&m&&e.isInJSFile(m)&&m.parent&&e.isRequireCall(m.parent,!1))return se;if(l){if(i){if(p&&(99!==J.target||!J.useDefineForClassFields))return void on(y,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(p.name),An(a));if(y&&(2&n||(32&n||384&n)&&111551==(111551&n))){var w=Ei(l);(2&w.flags||32&w.flags||384&w.flags)&&function(t,r){if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),!(67108881&t.flags&&32&t.flags)){var n=e.find(t.declarations,function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||252===t.kind});if(void 0===n)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&n.flags||Sn(n,r))){var i=void 0,a=e.declarationNameToString(e.getNameOfDeclaration(n));2&t.flags?i=on(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,a):32&t.flags?i=on(r,e.Diagnostics.Class_0_used_before_its_declaration,a):256&t.flags?i=on(r,e.Diagnostics.Enum_0_used_before_its_declaration,a):(e.Debug.assert(!!(128&t.flags)),J.preserveConstEnums&&(i=on(r,e.Diagnostics.Enum_0_used_before_its_declaration,a))),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_here,a))}}}(w,y)}if(l&&v&&111551==(111551&n)&&!(4194304&m.flags)){var A=hi(l);e.length(A.declarations)&&e.every(A.declarations,function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports})&&cn(!J.allowUmdGlobalAccess,y,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(l&&f&&!h&&111551==(111551&n)){var N=hi(Ho(l)),P=e.getRootDeclaration(f);N===yi(f)?on(y,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(f.name)):N.valueDeclaration&&N.valueDeclaration.pos>f.pos&&P.parent.locals&&c(P.parent.locals,N.escapedName,n)===N&&on(y,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(f.name),e.declarationNameToString(y))}l&&y&&111551&n&&2097152&l.flags&&function(t,r,n){if(!e.isValidTypeOnlyAliasUseSite(n)){var i=Xn(t);if(i){var a=e.typeOnlyDeclarationIsExport(i),o=a?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,s=a?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,c=e.unescapeLeadingUnderscores(r);e.addRelatedInfo(on(n,o,c),e.createDiagnosticForNode(i,s,c))}}}(l,r,y)}return l}if(i&&(!y||!(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||ox(t)||zp(t))return!1;for(var i=e.getThisContainer(t,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=yi(a.parent);if(!o)break;if(Gs(eo(o),r))return on(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,An(n),Xi(o)),!0;if(a===i&&!e.hasSyntacticModifier(a,32)&&Gs(wo(o).thisType,r))return on(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,An(n)),!0}a=a.parent}return!1}(y,r,a)||Pn(y)||function(t,r,n){var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=Hn(Cn(t,r,788968&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(Gs(wo(a),s))return on(o,e.Diagnostics.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,e.unescapeLeadingUnderscores(r),e.unescapeLeadingUnderscores(s)),!0}return on(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(y,r,n)||function(t,r){return!(!Fn(r)||267!==t.parent.kind||(on(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),0))}(y,r)||function(t,r,n){if(111551&n){if(Fn(r))return on(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=Hn(Cn(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags))return on(t,function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(r)?e.Diagnostics._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:e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0}return!1}(y,r,n)||function(t,r,n){if(111127&n){if(Hn(Cn(t,r,1024,void 0,void 0,!1)))return on(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n&&Hn(Cn(t,r,1536,void 0,void 0,!1)))return on(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0;return!1}(y,r,n)||function(t,r,n){if(788584&n){var i=Hn(Cn(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return on(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(r)),!0}return!1}(y,r,n)))){var O=void 0;if(u&&Nr<10&&(O=Nm(m,r,n))){var F=Xi(O),I=on(y,u,An(a),F);O.valueDeclaration&&e.addRelatedInfo(I,e.createDiagnosticForNode(O.valueDeclaration,e.Diagnostics._0_is_declared_here,F))}O||on(y,i,An(a)),Nr++}}function kn(t,r){return 206!==t.kind&&205!==t.kind?e.isTypeQueryNode(t)||(e.isFunctionLikeDeclaration(t)||162===t.kind&&!e.hasSyntacticModifier(t,32))&&(!r||r!==t.name):!(r&&r===t.name||!t.asteriskToken&&!e.hasSyntacticModifier(t,256)&&e.getImmediatelyInvokedFunctionExpression(t))}function wn(e){switch(e.kind){case 248:case 249:case 250:case 252:case 251:case 253:return!0;default:return!1}}function An(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function Nn(t,r){for(var n=0,i=t.declarations;n=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",c=n.exports.get("export=").valueDeclaration,u=on(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Xi(n),s);e.addRelatedInfo(u,e.createDiagnosticForNode(c,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,s))}else!function(t,r){var n,i;if(null===(n=t.exports)||void 0===n?void 0:n.has(r.symbol.escapedName))on(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Xi(t),Xi(r.symbol));else{var a=on(r.name,e.Diagnostics.Module_0_has_no_default_export,Xi(t)),o=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(o){var s=e.find(o.declarations,function(t){var r,n;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(n=null===(r=ii(t,t.moduleSpecifier))||void 0===r?void 0:r.exports)||void 0===n?void 0:n.has("default")))});s&&e.addRelatedInfo(a,e.createDiagnosticForNode(s,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(n,t);return Qn(t,i,void 0,!1),i}}(t,r);case 260:return function(e,t){var r=e.parent.parent.moduleSpecifier,n=ii(e,r),i=ui(n,r,t,!1);return Qn(e,n,i,!1),i}(t,r);case 266:return function(e,t){var r=e.parent.moduleSpecifier,n=r&&ii(e,r),i=r&&ui(n,r,t,!1);return Qn(e,n,i,!1),i}(t,r);case 262:return function(e,t){var r=Jn(e.parent.parent.parent,e,t);return Qn(e,void 0,r,!1),r}(t,r);case 267:return Vn(t,901119,r);case 263:case 213:return function(t,r){var n=Wn(e.isExportAssignment(t)?t.expression:t.right,r);return Qn(t,void 0,n,!1),n}(t,r);case 256:return function(e,t){var r=ci(e.parent.symbol,t);return Qn(e,void 0,r,!1),r}(t,r);case 286:return ri(t.name,901119,!0,r);case 285:return function(e,t){return Wn(e.initializer,t)}(t,r);case 198:return function(t,r){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind)return Wn(t.parent.right,r)}(t,r);default:return e.Debug.fail()}}function Kn(e,t){return void 0===t&&(t=901119),!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function Hn(e,t){return!t&&Kn(e)?Gn(e):e}function Gn(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=vn(t);if(r.target)r.target===ve&&(r.target=ye);else{r.target=ve;var n=Ln(t);if(!n)return e.Debug.fail();var i=qn(n);r.target===ve?r.target=i||ye:on(n,e.Diagnostics.Circular_definition_of_import_alias_0,Xi(t))}return r.target}function Qn(t,r,n,i){if(!t)return!1;var a=yi(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return vn(a).typeOnlyDeclaration=t,!0;var o=vn(a);return $n(o,r,i)||$n(o,n,i)}function $n(t,r,n){var i,a,o;if(r&&(void 0===t.typeOnlyDeclaration||n&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=r.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:r,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:vn(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function Xn(e){if(2097152&e.flags)return vn(e).typeOnlyDeclaration||void 0}function Yn(e){var t=yi(e),r=Gn(t);r&&(r===ye||111551&r.flags&&!Ax(r)&&!Xn(t))&&Zn(t)}function Zn(t){var r=vn(t);if(!r.referenced){r.referenced=!0;var n=Ln(t);if(!n)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(n)){var i=Hn(t);(i===ye||111551&i.flags)&&Ay(n.moduleReference)}}}function ei(t,r){return 78===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),78===t.kind||156===t.parent.kind?ri(t,1920,!1,r):(e.Debug.assert(257===t.parent.kind),ri(t,901119,!1,r))}function ti(e,t){return e.parent?ti(e.parent,t)+"."+Xi(e):Xi(e,t,void 0,20)}function ri(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&r:0);if(78===t.kind){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:jp(e.getFirstIdentifier(t)),u=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,r){if($c(t.parent)){var n=function(t){if(!e.findAncestor(t,function(t){return e.isJSDocNode(t)||4194304&t.flags?e.isJSDocTypeAlias(t):"quit"})){var r=e.getJSDocHost(t);if(e.isExpressionStatement(r)&&e.isBinaryExpression(r.expression)&&3===e.getAssignmentDeclarationKind(r.expression)&&(n=yi(r.expression.left)))return ni(n);if((e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&6===e.getAssignmentDeclarationKind(r.parent.parent)&&(n=yi(r.parent.parent.left)))return ni(n);var n,i=e.getEffectiveJSDocHost(t);if(i&&e.isFunctionLike(i))return(n=yi(i))&&n.valueDeclaration}}(t.parent);if(n)return Cn(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=hi(Cn(a||t,t.escapedText,r,n||u?void 0:c,t,!0))))return hi(u)}else{if(156!==t.kind&&198!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var l=156===t.kind?t.right:t.name,_=ri(156===t.kind?t.left:t.expression,s,n,!1,a);if(!_||e.nodeIsMissing(l))return;if(_===ye)return _;if(e.isInJSFile(t)&&_.valueDeclaration&&e.isVariableDeclaration(_.valueDeclaration)&&_.valueDeclaration.initializer&&Nh(_.valueDeclaration.initializer)){var d=_.valueDeclaration.initializer.arguments[0],p=ii(d,d);if(p){var f=ci(p);f&&(_=f)}}if(!(o=hi(Dn(pi(_),l.escapedText,r))))return void(n||on(l,e.Diagnostics.Namespace_0_has_no_exported_member_1,ti(_),e.declarationNameToString(l)))}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(2097152&o.flags||263===t.parent.kind)&&Qn(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:Gn(o)}}function ni(t){var r=t.parent.valueDeclaration;if(r)return(e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):void 0)||r}function ii(t,r,n){var i=e.getEmitModuleResolutionKind(J)===e.ModuleResolutionKind.Classic;return ai(t,r,n?void 0:i?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations)}function ai(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?oi(t,r.text,n,r,i):void 0}function oi(r,n,i,a,o){void 0===o&&(o=!1),e.startsWith(n,"@types/")&&on(a,e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var s=ac(n,!0);if(s)return s;var c=e.getSourceFileOfNode(r),u=e.getResolvedModule(c,n),l=u&&e.getResolutionDiagnostic(J,u),_=u&&!l&&t.getSourceFile(u.resolvedFileName);if(_)return _.symbol?(u.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(u.extension)&&si(!1,a,u,n),hi(_.symbol)):void(i&&on(a,e.Diagnostics.File_0_is_not_a_module,_.fileName));if(_t){var d=e.findBestPatternMatch(_t,function(e){return e.pattern},n);if(d)return hi(dt&&dt.get(n)||d.symbol)}if(u&&!e.resolutionExtensionIsTSOrJson(u.extension)&&void 0===l||l===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?on(a,e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,u.resolvedFileName):si($&&!!i,a,u,n);else if(i){if(u){var p=t.getProjectReferenceRedirect(u.resolvedFileName);if(p)return void on(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,p,u.resolvedFileName)}if(l)on(a,l,n,u.resolvedFileName);else{var f=e.tryExtractTSExtension(n);f?on(a,e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,f,e.removeExtension(n,f)):!J.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(J)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(J)?on(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n):on(a,i,n)}}}function si(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,f().has(e.getTypesPackageName(a))?e.chainDiagnosticMessages(void 0,e.Diagnostics.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.name,e.mangleScopedPackageName(o.name)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;cn(t,r,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function ci(t,r){if(null==t?void 0:t.exports){var n=function(t,r){if(!t||t===ye||t===r||1===r.exports.size||2097152&t.flags)return t;var n=vn(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:pn(t);return i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable()),r.exports.forEach(function(e,t){"export="!==t&&i.exports.set(t,i.exports.has(t)?fn(i.exports.get(t),e):e)}),vn(i).cjsExportMerged=i,n.cjsExportMerged=i}(hi(Hn(t.exports.get("export="),r)),hi(t));return hi(n)||t}}function ui(t,r,n,i){var a=ci(t,n);if(!n&&a){if(!(i||1539&a.flags||e.getDeclarationOfKind(a,294)))return on(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,W>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop"),a;if(J.esModuleInterop){var o=r.parent;if(e.isImportDeclaration(o)&&e.getNamespaceDeclarationNode(o)||e.isImportCall(o)){var s=eo(a),c=Qs(s,0);if(c&&c.length||(c=Qs(s,1)),c&&c.length){var u=Ah(s,a,t),l=ln(a.flags,a.escapedName);l.declarations=a.declarations?a.declarations.slice():[],l.parent=a.parent,l.target=a,l.originatingImport=o,a.valueDeclaration&&(l.valueDeclaration=a.valueDeclaration),a.constEnumOnlyModule&&(l.constEnumOnlyModule=!0),a.members&&(l.members=new e.Map(a.members)),a.exports&&(l.exports=new e.Map(a.exports));var _=xs(u);return l.type=Mi(l,_.members,e.emptyArray,e.emptyArray,_.stringIndexInfo,_.numberIndexInfo),l}}}}return a}function li(e){return void 0!==e.exports.get("export=")}function _i(e){return nc(fi(e))}function di(e,t){var r=fi(t);if(r)return r.get(e)}function pi(e){return 6256&e.flags?qo(e,"resolvedExports"):1536&e.flags?fi(e):e.exports||U}function fi(e){var t=vn(e);return t.resolvedExports||(t.resolvedExports=mi(e))}function gi(t,r,n,i){r&&r.forEach(function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&Hn(o)!==Hn(r)){var s=n.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,r),n&&i&&n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}})}function mi(t){var r=[];return function t(n){if(n&&n.exports&&e.pushIfUnique(r,n)){var i=new e.Map(n.exports),a=n.exports.get("__export");if(a){for(var o=e.createSymbolTable(),s=new e.Map,c=0,u=a.declarations;c=l?u.substr(0,l-"...".length)+"...":u}function ea(e,t){var r=ra(e.symbol)?Zi(e,e.symbol.valueDeclaration):Zi(e),n=ra(t.symbol)?Zi(t,t.symbol.valueDeclaration):Zi(t);return r===n&&(r=ta(e),n=ta(t)),[r,n]}function ta(e){return Zi(e,void 0,64)}function ra(t){return t&&t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!p_(t.valueDeclaration)}function na(e){return void 0===e&&(e=0),814775659&e}function ia(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===t.kind||3===t.kind?e.factory.createToken(127):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&te.typeToTypeNode(t.type,r,70222336|na(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function aa(e){return 8===e?"private":16===e?"protected":"public"}function oa(t){return t&&t.parent&&254===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function sa(t){return 294===t.kind||e.isAmbientModule(t)}function ca(t,r){var n=vn(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,J.target)||Mg(i)?Mg(i)&&e.startsWith(i,"-")?"["+i+"]":i:'"'+e.escapeString(i,34)+'"'}if(8192&n.flags)return"["+ua(n.symbol,r)+"]"}}function ua(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],sa)!==e.findAncestor(r.enclosingDeclaration,sa)))return"default";if(t.declarations&&t.declarations.length){var n=e.firstDefined(t.declarations,function(t){return e.getNameOfDeclaration(t)?t:void 0}),i=n&&e.getNameOfDeclaration(n);if(n&&i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(t))){var a=vn(t).nameType;if(a&&384&a.flags){var o=ca(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&246===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 218:case 205:case 206:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),218===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=ca(t,r);return void 0!==s?s:e.symbolName(t)}function la(t){if(t){var r=bn(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 320:case 327:case 321:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 195:return la(t.parent.parent);case 246:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 253:case 249:case 250:case 251:case 248:case 252:case 257:if(e.isExternalModuleAugmentation(t))return!0;var r=ma(t);return 1&e.getCombinedModifierFlags(t)||257!==t.kind&&294!==r.kind&&8388608&r.flags?la(r):xn(r);case 162:case 161:case 166:case 167:case 164:case 163:if(e.hasEffectiveModifier(t,24))return!1;case 165:case 169:case 168:case 170:case 159:case 254:case 173:case 174:case 176:case 172:case 177:case 178:case 181:case 182:case 185:case 191:return la(t.parent);case 259:case 260:case 262:return!1;case 158:case 294:case 256:return!0;case 263:default:return!1}}()),r.isVisible}return!1}function _a(t,r){var n,i,a;return t.parent&&263===t.parent.kind?n=Cn(t,t.escapedText,2998271,void 0,t,!1):267===t.parent.kind&&(n=Vn(t.parent,2998271)),n&&((a=new e.Set).add(O(n)),function t(n){e.forEach(n,function(n){var o=Mn(n)||n;if(r?bn(n).isVisible=!0:e.pushIfUnique(i=i||[],o),e.isInternalModuleImportEqualsDeclaration(n)){var s=Cn(n,e.getFirstIdentifier(n.moduleReference).escapedText,901119,void 0,void 0,!1);s&&a&&e.tryAddToSet(a,O(s))&&t(s.declarations)}})}(n.declarations)),i}function da(e,t){var r=pa(e,t);if(r>=0){for(var n=kr.length,i=r;i=0;r--){if(fa(kr[r],Ar[r]))return-1;if(kr[r]===e&&Ar[r]===t)return r}return-1}function fa(t,r){switch(r){case 0:return!!vn(t).type;case 5:return!!bn(t).resolvedEnumType;case 2:return!!vn(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!t.resolvedTypeArguments;case 7:return!!t.baseTypesResolved}return e.Debug.assertNever(r)}function ga(){return kr.pop(),Ar.pop(),wr.pop()}function ma(t){return e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 246:case 247:case 262:case 261:case 260:case 259:return!1;default:return!0}}).parent}function ha(e,t){var r=Gs(e,t);return r?eo(r):void 0}function ya(e){return e&&0!=(1&e.flags)}function va(e){var t=yi(e);return t&&vn(t).type||wa(e,!1)}function ba(t,r,n){if(131072&(t=yf(t,function(e){return!(98304&e.flags)})).flags)return Ye;if(1048576&t.flags)return bf(t,function(e){return ba(e,r,n)});var i=Pu(e.map(r,Uu));if(Xu(t)||Yu(i)){if(131072&i.flags)return t;var a=Gt||(Gt=iu("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return a?Jc(a,[t,i]):Se}for(var o=e.createSymbolTable(),s=0,c=Cs(t);s=2?(i=be,du(lu(!0),[i])):Et;var c=e.map(a,function(t){return e.isOmittedExpression(t)?be:ja(t,r,n)}),u=e.findLastIndex(a,function(t){return!(t===s||e.isOmittedExpression(t)||Ng(t))},a.length-1)+1,l=bu(c,e.map(a,function(e,t){return e===s?4:t>=u?2:1}));return r&&((l=Rc(l)).pattern=t,l.objectFlags|=1048576),l}(t,r,n)}function za(e,t){return Ja(wa(e,!0),e,t)}function Ja(t,r,n){return t?(n&&lp(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==yi(r)&&(t=je),op(t)):(t=e.isParameter(r)&&r.dotDotDotToken?Et:be,n&&(Va(r)||up(r,t)),t)}function Va(t){var r=e.getRootDeclaration(t);return cv(159===r.kind?r.parent:r)}function Wa(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Rl(r)}function qa(t){if(t)return 166===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function Ka(e){var t=qa(e);return t&&Rl(t)}function Ha(e){return gc(_c(e))}function Ga(t){var r=vn(t);return r.type||(r.type=function(t){if(!da(t,0))return Se;var r=Qa(t);return ga()||(r=be,$&&on(e.getDeclarationOfKind(t,166),e.Diagnostics._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,Xi(t))),r}(t))}function Qa(t){var r=e.getDeclarationOfKind(t,166),n=e.getDeclarationOfKind(t,167);if(r&&e.isInJSFile(r)){var i=Ca(r);if(i)return i}return Ka(r)||Ka(n)||(r&&r.body?ey(r):(n?cv(n)||cn($,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Xi(t)):(e.Debug.assert(!!r,"there must exist a getter as we are current checking either setter or getter in this function"),cv(r)||cn($,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Xi(t))),be))}function $a(t){var r=fo(vo(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,function(e){return!!(8650752&e.flags)}):void 0}function Xa(t){var r=vn(t),n=r;if(!r.type){var i=t.valueDeclaration&&e.getDeclarationOfExpando(t.valueDeclaration);if(i){var a=Ch(t,yi(i));a&&(t=r=a)}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return be;if(r&&(213===r.kind||e.isAccessExpression(r)&&213===r.parent.kind))return Ia(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=ci(t);if(n!==t){if(!da(t,0))return Se;var i=hi(t.exports.get("export=")),a=Ia(i,i===n?void 0:n);return ga()?a:Za(t)}}var o=Ni(16,t);if(32&t.flags){var s=$a(t);return s?Bu([o,s]):o}return K&&16777216&t.flags?qd(o):o}(t)}return r.type}function Ya(e){var t=vn(e);return t.type||(t.type=To(e))}function Za(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(on(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xi(t)),Se):($&&(159!==r.kind||r.initializer)&&on(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Xi(t)),be)}function eo(t){var r=e.getCheckFlags(t);return 65536&r?function(t){var r=vn(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?Pu(r.deferralConstituents):Bu(r.deferralConstituents)),r.type}(t):1&r?function(e){var t=vn(e);if(!t.type){if(!da(e,0))return t.type=Se;var r=c_(eo(t.target),t.mapper);ga()||(r=Za(e)),t.type=r}return t.type}(t):262144&r?function(t){if(!t.type){if(!da(t,0))return t.mappedType.containsError=!0,Se;var r=c_(ps(t.mappedType.target||t.mappedType),t.mapper),n=K&&16777216&t.flags&&!gy(r,49152)?qd(r):524288&t.checkFlags?ef(r,524288):r;ga()||(on(_,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Xi(t),Zi(t.mappedType)),n=Se),t.type=n,t.mapper=void 0}return t.type}(t):8192&r?function(e){return Cp(e.propertyType,e.mappedType,e.constraintType)}(t):7&t.flags?function(t){var r=vn(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=wo(vi(t))).typeParameters?Lc(r,e.map(r.typeParameters,function(e){return be})):r;var r;if(t===se)return be;if(134217728&t.flags){var n=yi(e.getSourceFileOfNode(t.valueDeclaration)),i=e.createSymbolTable();return i.set("exports",n),Mi(t,i,e.emptyArray,e.emptyArray,void 0,void 0)}var a,o=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(o)){if(!o.type)return be;var s=dx(o.type);return ya(s)||s===Ce?s:Se}if(e.isSourceFile(o)&&e.isJsonSourceFile(o))return o.statements.length?op(Ad(Hy(o.statements[0].expression))):Ye;if(!da(t,0))return 512&t.flags&&!(67108864&t.flags)?Xa(t):Za(t);if(263===o.kind)a=Ja(Ay(o.expression),o);else if(e.isBinaryExpression(o)||e.isInJSFile(o)&&(e.isCallExpression(o)||(e.isPropertyAccessExpression(o)||e.isBindableStaticElementAccessExpression(o))&&e.isBinaryExpression(o.parent)))a=Ia(t);else if(e.isPropertyAccessExpression(o)||e.isElementAccessExpression(o)||e.isIdentifier(o)||e.isStringLiteralLike(o)||e.isNumericLiteral(o)||e.isClassDeclaration(o)||e.isFunctionDeclaration(o)||e.isMethodDeclaration(o)&&!e.isObjectLiteralMethod(o)||e.isMethodSignature(o)||e.isSourceFile(o)){if(9136&t.flags)return Xa(t);a=e.isBinaryExpression(o.parent)?Ia(t):Wa(o)||be}else if(e.isPropertyAssignment(o))a=Wa(o)||Ly(o);else if(e.isJsxAttribute(o))a=Wa(o)||Jg(o);else if(e.isShorthandPropertyAssignment(o))a=Wa(o)||My(o.name,0);else if(e.isObjectLiteralMethod(o))a=Wa(o)||Ry(o,0);else if(e.isParameter(o)||e.isPropertyDeclaration(o)||e.isPropertySignature(o)||e.isVariableDeclaration(o)||e.isBindingElement(o)||e.isJSDocPropertyLikeTag(o))a=za(o,!0);else if(e.isEnumDeclaration(o))a=Xa(t);else if(e.isEnumMember(o))a=Ya(t);else{if(!e.isAccessor(o))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(o.kind)+" for "+e.Debug.formatSymbol(t));a=Qa(t)}return ga()?a:512&t.flags&&!(67108864&t.flags)?Xa(t):Za(t)}(t);r.type||(r.type=n)}return r.type}(t):9136&t.flags?Xa(t):8&t.flags?Ya(t):98304&t.flags?Ga(t):2097152&t.flags?function(e){var t=vn(e);if(!t.type){var r=Gn(e);t.type=111551&r.flags?eo(r):Se}return t.type}(t):Se}function to(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function ro(t){return 4&e.getObjectFlags(t)?t.target:t}function no(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=ro(n);return i===r||e.some(mo(i),t)}return!!(2097152&n.flags)&&e.some(n.types,t)}(t)}function io(t,r){for(var n=0,i=r;n0)return!0;if(8650752&e.flags){var t=Os(e);return!!t&&co(t)}return!1}function lo(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function _o(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter($s(t,1),function(t){return(a||i>=uc(t.typeParameters))&&i<=e.length(t.typeParameters)})}function po(t,r,n){var i=_o(t,r,n),a=e.map(r,Rl);return e.sameMap(i,function(t){return e.some(t.typeParameters)?xc(t,a,e.isInJSFile(n)):t})}function fo(t){if(!t.resolvedBaseConstructorType){var r=e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration),n=lo(t);if(!n)return t.resolvedBaseConstructorType=Te;if(!da(t,1))return Se;var i=Hy(n.expression);if(r&&n!==r&&(e.Debug.assert(!r.typeArguments),Hy(r.expression)),2621440&i.flags&&xs(i),!ga())return on(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Xi(t.symbol)),t.resolvedBaseConstructorType=Se;if(!(1&i.flags||i===Ne||uo(i))){var a=on(n.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Zi(i));if(262144&i.flags){var o=Oc(i),s=Ce;if(o){var c=$s(o,1);c[0]&&(s=hc(c[0]))}e.addRelatedInfo(a,e.createDiagnosticForNode(i.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Xi(i.symbol),Zi(s)))}return t.resolvedBaseConstructorType=Se}t.resolvedBaseConstructorType=i}return t.resolvedBaseConstructorType}function go(t,r){on(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Zi(r,void 0,2))}function mo(t){if(!t.baseTypesResolved){if(da(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[ho(t)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=Bs(fo(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=lo(t),a=r.symbol?wo(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=jc(e);return t[r].symbol!==n[r].symbol}return!0}(a))n=zc(i,r.symbol);else if(1&r.flags)n=r;else{var o=po(r,i.typeArguments,i);if(!o.length)return on(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=hc(o[0])}if(n===Se)return t.resolvedBaseTypes=e.emptyArray;var s=Vs(n);if(!yo(s)){var c=Hs(void 0,n),u=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Zi(s));return Kr.add(e.createDiagnosticForNodeFromMessageChain(i.expression,u)),t.resolvedBaseTypes=e.emptyArray}if(t===s||no(s,t))return on(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Zi(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[s]}(t),64&t.symbol.flags&&function(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var r=0,n=t.symbol.declarations;r0)return;for(var i=1;i1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a1){var l=s.thisParameter,_=e.forEach(c,function(e){return e.thisParameter});_&&(l=Zd(_,Bu(e.mapDefined(c,function(e){return e.thisParameter&&eo(e.thisParameter)})))),(u=Yo(s,c)).thisParameter=l}(r||(r=[])).push(u)}}}}if(!e.length(r)&&-1!==n){for(var d=t[void 0!==n?n:0],p=d.slice(),f=function(t){if(t!==d){var r=t[0];if(e.Debug.assert(!!r,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(p=r.typeParameters&&e.some(p,function(e){return!!e.typeParameters})?void 0:e.map(p,function(t){return function(t,r){var n=t.declaration,i=function(e,t){for(var r=zh(e),n=zh(t),i=r>=n?e:t,a=i===e?t:e,o=i===e?r:n,s=Vh(e)||Vh(t),c=s&&!Vh(i),u=new Array(o+(c?1:0)),l=0;l=Jh(i)&&l>=Jh(a),f=l>=r?void 0:Mh(e,l),g=l>=n?void 0:Mh(t,l),m=ln(1|(p&&!d?16777216:0),(f===g?f:f?g?void 0:f:g)||"arg"+l);m.type=d?fu(_):_,u[l]=m}if(c){var h=ln(1,"args");h.type=fu(Bh(a,o)),u[o]=h}return u}(t,r),a=function(e,t){return e&&t?Zd(e,Bu([eo(e),eo(t)])):e||t}(t.thisParameter,r.thisParameter),o=Math.max(t.minArgumentCount,r.minArgumentCount),s=$o(n,t.typeParameters||r.typeParameters,a,i,void 0,void 0,o,19&(t.flags|r.flags));return s.unionSignatures=e.concatenate(t.unionSignatures||[t],[r]),s}(t,r)})))return"break"}},g=0,m=t;g0}),n=e.map(t,co);if(r>0&&r===e.countWhere(n,function(e){return e})){var i=n.indexOf(!0);n[i]=!1}return n}function us(t,r){for(var n=function(r){t&&!e.every(t,function(e){return!gd(e,r,!1,!1,!1,v_)})||(t=e.append(t,r))},i=0,a=r;i=_&&o<=d){var p=d?Sc(l,lc(a,l.typeParameters,_,i)):Xo(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p)}}return s}(l)),t.constructSignatures=i}}}(t):32&t.objectFlags&&function(t){var r,n,i=e.createSymbolTable();Ii(t,U,e.emptyArray,e.emptyArray,void 0,void 0);var a=_s(t),o=ds(t),s=ps(t.target||t),c=Bs(ms(t)),u=hs(t),l=Y?128:8576;if(gs(t)){for(var _=0,d=Cs(c);_0&&(_=e.map(_,function(e){var t=Xo(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a=50)return on(_,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),r=!0,t.immediateBaseConstraint=it;T++;var n=function(e){if(262144&e.flags){var t=Oc(e);return e.isThisType||!t?t:i(t)}if(3145728&e.flags){for(var r=e.types,n=[],a=0,o=r;a=7))||Ye:528&r.flags?xt:12288&r.flags?su(V>=2):67108864&r.flags?Ye:4194304&r.flags?Ge:2&r.flags&&!K?Ye:r}function js(e){return Vs(Bs(Vs(e)))}function Us(t,r){for(var n,i,a,o=1048576&t.flags,s=o?0:16777216,c=4,u=0,l=0,_=t.types;l<_.length;l++)if(!((E=Bs(_[l]))===Se||131072&E.flags)){var d=(S=Gs(E,r))?e.getDeclarationModifierFlagsFromSymbol(S):0;if(S){if(o?s|=16777216&S.flags:s&=S.flags,n){if(S!==n){i||(i=new e.Map).set(O(n),n);var p=O(S);i.has(p)||i.set(p,S)}}else n=S;u|=(_y(S)?8:0)|(24&d?0:256)|(16&d?512:0)|(8&d?1024:0)|(32&d?2048:0),om(S)||(c=2)}else if(o){var f=!Uo(r)&&(Mg(r)&&Zs(E,1)||Zs(E,0));f?(u|=32|(f.isReadonly?8:0),a=e.append(a,Fd(E)?Ld(E)||Te:f.type)):Ip(E)?(u|=32,a=e.append(a,Te)):u|=16}}if(n&&!(o&&(i||48&u)&&1536&u)){if(!(i||16&u||a))return n;for(var g,m,h,y,v=[],b=!1,x=0,D=i?e.arrayFrom(i.values()):[n];x2?(C.checkFlags|=65536,C.deferralParent=t,C.deferralConstituents=v):C.type=o?Pu(v):Bu(v),C}}function zs(t,r){var n=t.propertyCache||(t.propertyCache=e.createSymbolTable()),i=n.get(r);return i||(i=Us(t,r))&&n.set(r,i),i}function Js(t,r){var n=zs(t,r);return!n||16&e.getCheckFlags(n)?void 0:n}function Vs(t){return 1048576&t.flags&&268435456&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var r=e.sameMap(t.types,Vs);if(r===t.types)return t;var n=Pu(r);return 1048576&n.flags&&(n.resolvedReducedType=n),n}(t)):2097152&t.flags?(268435456&t.objectFlags||(t.objectFlags|=268435456|(e.some(Es(t),Ws)?536870912:0)),536870912&t.objectFlags?ze:t):t}function Ws(e){return qs(e)||Ks(e)}function qs(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&eo(t).flags))}function Ks(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function Hs(t,r){if(536870912&e.getObjectFlags(r)){var n=e.find(Es(r),qs);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Zi(r,void 0,536870912),Xi(n));var i=e.find(Es(r),Ks);if(i)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Zi(r,void 0,536870912),Xi(i))}return t}function Gs(e,t){if(524288&(e=js(e)).flags){var r=xs(e),n=r.members.get(t);if(n&&Ci(n))return n;var i=r===nt?ft:r.callSignatures.length?gt:r.constructSignatures.length?mt:void 0;if(i){var a=Ss(i,t);if(a)return a}return Ss(pt,t)}if(3145728&e.flags)return Js(e,t)}function Qs(t,r){if(3670016&t.flags){var n=xs(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function $s(e,t){return Qs(js(e),t)}function Xs(e,t){if(3670016&e.flags){var r=xs(e);return 0===t?r.stringIndexInfo:r.numberIndexInfo}}function Ys(e,t){var r=Xs(e,t);return r&&r.type}function Zs(e,t){return Xs(js(e),t)}function ec(e,t){return Ys(js(e),t)}function tc(t,r){if(Yd(t)){for(var n=[],i=0,a=Cs(t);i=0),n>=Jh(r,!0)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function sc(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.typeExpression;return t.isBracketed||!!r&&303===r.type.kind}function cc(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function uc(t){var r,n=0;if(t)for(var i=0;i=n&&o<=a){for(var s=t?t.slice():[],c=o;cu.arguments.length&&!f||ic(d)||(o=i.length)}if(!(166!==t.kind&&167!==t.kind||Jo(t)||c&&s)){var g=166===t.kind?167:166,m=e.getDeclarationOfKind(yi(t),g);m&&(s=(r=gD(m))&&r.symbol)}var h=165===t.kind?vo(hi(t.parent.symbol)):void 0,y=h?h.localTypeParameters:rc(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!pc(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0}),o=ln(3,"args",32768);return o.type=a?fu(Rl(a.type)):Et,a&&r.pop(),r.push(o),!0}(t,i))&&(a|=1),n.resolvedSignature=$o(t,y,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function dc(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t),n=r&&r.typeExpression&&Km(Rl(r.typeExpression));return n&&Ec(n)}}function pc(t){var r=bn(t);return void 0===r.containsArgumentsReference&&(r.containsArgumentsReference=!!(8192&r.flags)||function t(r){if(!r)return!1;switch(r.kind){case 78:return"arguments"===r.escapedText&&e.isExpressionNode(r);case 162:case 164:case 166:case 167:return 157===r.name.kind&&t(r.name);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function fc(t){if(!t)return e.emptyArray;for(var r=[],n=0;n0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(_c(i))}}return r}function gc(e){if(e.thisParameter)return eo(e.thisParameter)}function mc(t){if(!t.resolvedTypePredicate){if(t.target){var r=mc(t.target);t.resolvedTypePredicate=r?cc((o=r).kind,o.parameterName,o.parameterIndex,c_(o.type,t.mapper)):nr}else if(t.unionSignatures)t.resolvedTypePredicate=function(e){for(var t,r=[],n=0,i=e;n=0}function bc(e){if(B(e)){var t=eo(e.parameters[e.parameters.length-1]),r=Fd(t)?Ld(t):t;return r&&ec(r,1)}}function xc(e,t,r,n){var i=Dc(e,lc(t,e.typeParameters,uc(e.typeParameters),r));if(n){var a=Hm(hc(i));if(a){var o=Xo(a);o.typeParameters=n;var s=Xo(i);return s.resolvedReturnType=Tc(o),s}}return i}function Dc(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=Ic(r),a=n.get(i);return a||n.set(i,a=Sc(t,r)),a}function Sc(e,t){return Zl(e,function(e,t){return Jl(e.typeParameters,t)}(e,t),!0)}function Ec(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return Zl(e,Hl(e.typeParameters),!0)}(e)):e}function Cc(t){var r=t.typeParameters;if(r){var n=Hl(r);return Zl(t,Jl(r,e.map(r,function(e){return c_(Os(e),n)||Ce})),!0)}return t}function Tc(t){if(!t.isolatedSignatureType){var r=t.declaration?t.declaration.kind:0,n=165===r||169===r||174===r,i=Ni(16);i.members=U,i.properties=e.emptyArray,i.callSignatures=n?e.emptyArray:[t],i.constructSignatures=n?[t]:e.emptyArray,t.isolatedSignatureType=i}return t.isolatedSignatureType}function kc(e){return e.members.get("__index")}function wc(t,r){var n=1===r?143:146,i=kc(t);if(i)for(var a=0,o=i.declarations;a1&&(t+=":"+a),n+=a}return t}function Mc(t,r){for(var n=0,i=0,a=t;ii.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(on(t,o===i.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Zi(n,void 0,2),o,i.length),!s)return Se}return 172===t.kind&&hu(t,e.length(t.typeArguments)!==i.length)?Bc(n,t,void 0):Lc(n,e.concatenate(n.outerTypeParameters,lc(eu(t),i,o,s)))}return Xc(t,r)?n:Se}function Jc(t,r){var n=wo(t),i=vn(t),a=i.typeParameters,o=Ic(r),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=c_(n,Jl(a,lc(r,a,uc(a),e.isInJSFile(t.valueDeclaration))))),s}function Vc(t){switch(t.kind){case 172:return t.typeName;case 220:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function Wc(e,t,r){return e&&ri(e,t,r)||ye}function qc(t,r){if(r===ye)return Se;if(96&(r=function(t){var r=t.valueDeclaration;if(r&&e.isInJSFile(r)&&!(524288&t.flags)&&!e.getExpandoInitializer(r,!1)){var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(n){var i=yi(n);if(i)return Ch(i,t)}}}(r)||r).flags)return zc(t,r);if(524288&r.flags)return function(t,r){var n=wo(r),i=vn(r).typeParameters;if(i){var a=e.length(t.typeArguments),o=uc(i);return ai.length?(on(t,o===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Xi(r),o,i.length),Se):Jc(r,eu(t))}return Xc(t,r)?n:Se}(t,r);var n=Ao(r);return n?Xc(t,r)?Nl(n):Se:111551&r.flags&&$c(t)?function(t,r){var n=bn(t);if(!n.resolvedJSDocType){var i=eo(r),a=i;if(r.valueDeclaration){var o=e.getRootDeclaration(r.valueDeclaration),s=!1;if(e.isVariableDeclaration(o)&&o.initializer){for(var c=o.initializer;e.isPropertyAccessExpression(c);)c=c.expression;s=e.isCallExpression(c)&&e.isRequireCall(c,!0)&&!!i.symbol}i.symbol&&(s||192===t.kind&&t.qualifier)&&(a=qc(t,i.symbol))}n.resolvedJSDocType=a}return n.resolvedJSDocType}(t,r)||(Wc(Vc(t),788968),eo(r)):Se}function Kc(e,t){if(3&t.flags||t===e)return e;var r=Tu(e)+">"+Tu(t),n=ge.get(r);if(n)return n;var i=ki(33554432);return i.baseType=e,i.substitute=t,ge.set(r,i),i}function Hc(e){return 178===e.kind&&1===e.elements.length}function Gc(e,t,r){return Hc(t)&&Hc(r)?Gc(e,t.elements[0],r.elements[0]):ul(Rl(t))===e?Rl(r):void 0}function Qc(t,r){for(var n;r&&!e.isStatement(r)&&307!==r.kind;){var i=r.parent;if(183===i.kind&&r===i.trueType){var a=Gc(t,i.checkType,i.extendsType);a&&(n=e.append(n,a))}r=i}return n?Kc(t,Bu(e.append(n,t))):t}function $c(e){return!!(4194304&e.flags)&&(172===e.kind||192===e.kind)}function Xc(t,r){return!t.typeArguments||(on(t,e.Diagnostics.Type_0_is_not_generic,r?Xi(r):t.typeName?e.declarationNameToString(t.typeName):u),!1)}function Yc(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return Xc(t),Pe;case"Number":return Xc(t),Oe;case"Boolean":return Xc(t),Be;case"Void":return Xc(t),Ue;case"Undefined":return Xc(t),Te;case"Null":return Xc(t),Ae;case"Function":case"function":return Xc(t),ft;case"array":return r&&r.length||$?void 0:Et;case"promise":return r&&r.length||$?void 0:Xh(be);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=Rl(r[0]),i=Ac(Rl(r[1]),!1);return Mi(void 0,U,e.emptyArray,e.emptyArray,n===Pe?i:void 0,n===Oe?i:void 0)}return be}return Xc(t),$?void 0:be}}}function Zc(t){var r=bn(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=ye,r.resolvedType=Ay(t.parent.expression);var n=void 0,i=void 0;$c(t)&&((i=Yc(t))||((n=Wc(Vc(t),788968,!0))===ye?n=Wc(Vc(t),900095):Wc(Vc(t),788968),i=qc(t,n))),i||(i=qc(t,n=Wc(Vc(t),788968))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function eu(t){return e.map(t.typeArguments,Rl)}function tu(e){var t=bn(e);return t.resolvedType||(t.resolvedType=Nl(op(Hy(e.exprName)))),t.resolvedType}function ru(t,r){function n(e){for(var t=0,r=e.declarations;t=0)return bf(r[o],function(n){return Su(t,e.replaceElement(r,o,n))});if(e.findIndex(r,function(e,r){return!(!(8&t.elementFlags[r])||58982400&e.flags||bs(e))})<0)return Lc(t,r);for(var s,c=[],u=[],l=[],_=-1,d=function(o){var s=r[o],c=t.elementFlags[o];8&c?58982400&s.flags||bs(s)?g(s,8,null===(n=t.labeledElementDeclarations)||void 0===n?void 0:n[o]):Fd(s)?e.forEach(jc(s),function(e,t){var r;return g(e,s.target.elementFlags[t],null===(r=s.target.labeledElementDeclarations)||void 0===r?void 0:r[t])}):g(xd(s)&&ec(s,1)||Se,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]):g(s,c,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},p=0;p=0){for(var n=_;ni.fixedLength?function(e){var t=Ld(e);return t&&fu(t)}(t)||bu(e.emptyArray):bu(jc(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function Cu(t){return Pu(e.append(e.arrayOf(t.target.fixedLength,function(e){return Ol(""+e)}),Wu(t.target.readonly?yt:ht)))}function Tu(e){return e.id}function ku(t,r){return e.binarySearch(t,r,Tu,e.compareValues)>=0}function wu(t,r){var n=e.binarySearch(t,r,Tu,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function Au(t,r,n){var i=n.flags;if(1048576&i)return Nu(t,r,n.types);if(!(131072&i))if(r|=71041023&i,66846720&i&&(r|=262144),n===De&&(r|=8388608),!K&&98304&i)524288&e.getObjectFlags(n)||(r|=4194304);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,Tu,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function Nu(e,t,r){for(var n=0,i=r;n0;){var i=t[--n];(128&i.flags&&4&r||256&i.flags&&8&r||2048&i.flags&&64&r||8192&i.flags&&4096&r||Pl(i)&&ku(t,i.regularType))&&e.orderedRemoveItemAt(t,n)}}(a,o);break;case 2:if(!function(t,r){var n=t.length;if(0===n||function(e){var t=e[0];if(1024&t.flags){for(var r=vi(t.symbol),n=1;n0;)for(var o=t[--i],s=0,c=t;s(r?25e6:1e6))return on(_,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1;if(a++,K_(o,u,Xr)&&(!(1&e.getObjectFlags(ro(o)))||!(1&e.getObjectFlags(ro(u)))||E_(o,u))){e.orderedRemoveItemAt(t,i);break}}}return!0}(a,!(262144&o)))return Se}if(0===a.length)return 65536&o?4194304&o?Ae:Ne:32768&o?4194304&o?Te:ke:ze}return Fu(a,(66994211&o?0:262144)|(2097152&o?268435456:0),n,i)}function Ou(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Fu(e,t,r,n){if(0===e.length)return ze;if(1===e.length)return e[0];var i=Ic(e),a=_e.get(i);return a||(a=ki(1048576),_e.set(i,a),a.objectFlags=t|Mc(e,98304),a.types=e,a.aliasSymbol=r,a.aliasTypeArguments=n),a}function Iu(e,t,r){var n=r.flags;return 2097152&n?Mu(e,t,r.types):(J_(r)?16777216&t||(t|=16777216,e.set(r.id.toString(),r)):(3&n?r===De&&(t|=8388608):!K&&98304&n||e.has(r.id.toString())||(109440&r.flags&&109440&t&&(t|=67108864),e.set(r.id.toString(),r)),t|=71041023&n),t)}function Mu(e,t,r){for(var n=0,i=r;n0;){var i=t[--n];(4&i.flags&&128&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r)&&e.orderedRemoveItemAt(t,n)}}(o,a),16777216&a&&524288&a&&e.orderedRemoveItemAt(o,e.findIndex(o,J_)),0===o.length)return Ce;if(1===o.length)return o[0];var s=Ic(o),c=de.get(s);if(!c){if(1048576&a)if(function(t){var r,n=e.findIndex(t,function(t){return!!(262144&e.getObjectFlags(t))});if(n<0)return!1;for(var i=n+1;i=1e5)return on(_,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),Se;var u=e.findIndex(o,function(e){return 0!=(1048576&e.flags)});c=Pu(e.map(o[u].types,function(t){return Bu(e.replaceElement(o,u,t))}),1,r,n)}else c=function(e,t,r){var n=ki(2097152);return n.objectFlags=Mc(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n}(o,r,n);de.set(s,c)}return c}function ju(e,t){var r=ki(4194304);return r.type=e,r.stringsOnly=t,r}function Uu(t){return e.isPrivateIdentifier(t)?ze:e.isIdentifier(t)?Ol(e.unescapeLeadingUnderscores(t.escapedText)):Nl(e.isComputedPropertyName(t)?Lg(t):Hy(t))}function zu(t,r){if(!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var n=vn(Ho(t)).nameType;if(!n&&!e.isKnownSymbol(t))if("default"===t.escapedName)n=Ol("default");else{var i=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);n=i&&Uu(i)||Ol(e.symbolName(t))}if(n&&n.flags&r)return n}return ze}function Ju(t,r){return Pu(e.map(Cs(t),function(e){return zu(e,r)}))}function Vu(e){var t=Zs(e,1);return t!==cr?t:void 0}function Wu(t,r,n){return void 0===r&&(r=Y),1048576&(t=Vs(t)).flags?Bu(e.map(t.types,function(e){return Wu(e,r,n)})):2097152&t.flags?Pu(e.map(t.types,function(e){return Wu(e,r,n)})):58982400&t.flags||Id(t)?function(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=ju(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=ju(e,!1))}(t,r):32&e.getObjectFlags(t)?yf(ds(t),function(e){return!(n&&5&e.flags)}):t===De?De:2&t.flags?ze:131073&t.flags?Ge:r?!n&&Zs(t,0)?Pe:Ju(t,128):!n&&Zs(t,0)?Pu([Pe,Oe,Ju(t,8192)]):Vu(t)?Pu([Oe,Ju(t,8320)]):Ju(t,8576)}function qu(t){if(Y)return t;var r=Ht||(Ht=iu("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return r?Jc(r,[t,Pe]):Pe}function Ku(t){return!$&&(!!(16384&e.getObjectFlags(t))||(1048576&t.flags?e.every(t.types,Ku):2097152&t.flags?e.some(t.types,Ku):!!(63176704&t.flags)&&Ku(Ms(t))))}function Hu(t,r){var n=r&&199===r.kind?r:void 0;return Bo(t)?Vo(t):n&&Rm(n.argumentExpression,t,!1)?e.getPropertyNameForKnownSymbolName(e.idText(n.argumentExpression.name)):r&&e.isPropertyName(r)?e.getPropertyNameForPropertyNameNode(r):void 0}function Gu(t,r){return!(8208&r.flags)||!e.isCallLikeExpression(e.findAncestor(t,function(t){return!e.isAccessExpression(t)})||t.parent)&&e.every(r.declarations,function(t){return!e.isFunctionLike(t)||!!(134217728&e.getCombinedNodeFlags(t))})}function Qu(t,r,n,i,a,o,s,c){var u,l,_=o&&199===o.kind?o:void 0,d=o&&e.isPrivateIdentifier(o)?void 0:Hu(n,o);if(void 0!==d){var p=Gs(r,d);if(p){if(c&&o&&134217728&(null===(u=p.valueDeclaration)||void 0===u?void 0:u.flags)&&Gu(o,p)&&cn(!1,null!==(l=null==_?void 0:_.argumentExpression)&&void 0!==l?l:e.isIndexedAccessTypeNode(o)?o.indexType:o,e.Diagnostics._0_is_deprecated,d),_){if(Fm(p,_,107===_.expression.kind),dy(_,p,e.getAssignmentTargetKind(_)))return void on(_.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Xi(p));if(4&s&&(bn(o).resolvedSymbol=p),Dm(_,p))return xe}var f=eo(p);return _&&1!==e.getAssignmentTargetKind(_)?Uf(_,f):f}if(hf(r,Fd)&&Mg(d)&&+d>=0){if(o&&hf(r,function(e){return!e.target.hasRestElement})&&!(8&s)){var g=$u(o);Fd(r)?on(g,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Zi(r),Uc(r),e.unescapeLeadingUnderscores(d)):on(g,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(d),Zi(r))}return D(Zs(r,1)),bf(r,function(e){return Ld(e)||Te})}}if(!(98304&n.flags)&&my(n,12716)){if(131073&r.flags)return r;var m=Zs(r,0),h=my(n,296)&&Zs(r,1)||m;if(h)return 1&s&&h===m?void(_&&on(_,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Zi(n),Zi(t))):o&&!my(n,12)?(on(g=$u(o),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Zi(n)),h.type):(D(h),h.type);if(131072&n.flags)return ze;if(Ku(r))return be;if(_&&!yy(r)){if(r.symbol===ie&&void 0!==d&&ie.exports.has(d)&&418&ie.exports.get(d).flags)on(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(d),Zi(r));else if($&&!J.suppressImplicitAnyIndexErrors&&!a)if(void 0!==d&&Tm(d,r))on(_,e.Diagnostics.Property_0_is_a_static_member_of_type_1,d,Zi(r));else if(ec(r,1))on(_.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var y=void 0;if(void 0!==d&&(y=Am(d,r)))void 0!==y&&on(_.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,d,Zi(r),y);else{var v=function(t,r,n){var i=e.isAssignmentTarget(r)?"set":"get";if(function(e){var r=Ss(t,e);if(r){var i=Km(eo(r));return!!i&&Jh(i)>=1&&S_(n,Bh(i,0))}return!1}(i)){var a=e.tryGetPropertyAccessOrIdentifierToString(r.expression);return void 0===a?a=i:a+="."+i,a}}(r,_,n);if(void 0!==v)on(_,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Zi(r),v);else{var b=void 0;if(1024&n.flags)b=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Zi(n)+"]",Zi(r));else if(8192&n.flags){var x=ti(n.symbol,_);b=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+x+"]",Zi(r))}else 128&n.flags||256&n.flags?b=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,Zi(r)):12&n.flags&&(b=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Zi(n),Zi(r)));b=e.chainDiagnosticMessages(b,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Zi(i),Zi(r)),Kr.add(e.createDiagnosticForNodeFromMessageChain(_,b))}}}return}}return Ku(r)?be:(o&&(g=$u(o),384&n.flags?on(g,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,Zi(r)):12&n.flags?on(g,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Zi(r),Zi(n)):on(g,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Zi(n))),ya(n)?n:void 0);function D(t){t&&t.isReadonly&&_&&(e.isAssignmentTarget(_)||e.isDeleteTarget(_))&&on(_,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Zi(r))}}function $u(e){return 199===e.kind?e.argumentExpression:188===e.kind?e.indexType:157===e.kind?e.expression:e}function Xu(t){return 3145728&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|(e.some(t.types,Xu)?8388608:0)),!!(8388608&t.objectFlags)):!!(58982400&t.flags)||bs(t)||Id(t)}function Yu(t){return 3145728&t.flags?(16777216&t.objectFlags||(t.objectFlags|=16777216|(e.some(t.types,Yu)?33554432:0)),!!(33554432&t.objectFlags)):!!(63176704&t.flags)}function Zu(e){return!!(262144&e.flags&&e.isThisType)}function el(t,r){return 8388608&t.flags?function(t,r){var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===at?t:t[n];t[n]=at;var i=function(e){return 33554432&e.flags?e.substitute:e}(el(t.objectType,r)),a=el(t.indexType,r),o=function(t,r,n){if(1048576&r.flags){var i=e.map(r.types,function(e){return el(il(t,e),n)});return n?Bu(i):Pu(i)}}(i,a,r);if(o)return t[n]=o;if(!(63176704&a.flags)){var s=tl(i,a,r);if(s)return t[n]=s}if(Id(i)&&296&a.flags){var c=Bd(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}return t[n]=bs(i)?bf(nl(i,t.indexType),function(e){return el(e,r)}):t}(t,r):16777216&t.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=_l(e),a=dl(e);if(131072&a.flags&&ul(i)===ul(r)){if(1&r.flags||S_(__(r),__(n)))return el(i,t);if(rl(r,n))return ze}else if(131072&i.flags&&ul(a)===ul(r)){if(!(1&r.flags)&&S_(__(r),__(n)))return ze;if(1&r.flags||rl(r,n))return el(a,t)}return e}(t,r):t}function tl(t,r,n){if(3145728&t.flags){var i=e.map(t.types,function(e){return el(il(e,r),n)});return 2097152&t.flags||n?Bu(i):Pu(i)}}function rl(e,t){return!!(131072&Pu([as(e,t),ze]).flags)}function nl(e,t){var r=Jl([_s(e)],[t]),n=Gl(e.mapper,r);return c_(ps(e),n)}function il(e,t,r,n,i){return ol(e,t,r,0,n,i)||(r?Se:Ce)}function al(e,t){return hf(e,function(e){if(384&e.flags){var r=Vo(e);if(Mg(r)){var n=+r;return n>=0&&n=5e6)return on(_,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Se;x++,D++,C++;var n=function(t,r){var n=t.flags;if(262144&n)return Vl(t,r);if(524288&n){var i=t.objectFlags;if(52&i){if(4&i&&!t.node){var a=t.resolvedTypeArguments,o=Ul(a,r);return o!==a?Du(t.target,o):t}return function(t,r){var n=64&t.objectFlags?t.target:t,i=4&t.objectFlags?t.node:t.symbol.declarations[0],a=bn(i),o=a.outerTypeParameters;if(!o){var s=ao(i,!0);if(Eh(i)){var c=rc(i);s=e.addRange(s,c)}o=s||e.emptyArray,o=(4&n.objectFlags||2048&n.symbol.flags)&&!n.aliasTypeArguments?e.filter(o,function(e){return t_(e,i)}):o,a.outerTypeParameters=o,o.length&&(a.instantiations=new e.Map,a.instantiations.set(Ic(o),n))}if(o.length){var u=Gl(t.mapper,r),l=e.map(o,function(e){return Vl(e,u)}),_=Ic(l),d=a.instantiations.get(_);if(!d){var p=Jl(o,l);d=4&n.objectFlags?Bc(t.target,t.node,p):32&n.objectFlags?n_(n,p):o_(n,p),a.instantiations.set(_,d)}return d}return t}(t,r)}return t}if(3145728&n){var s=t.types,c=Ul(s,r);return c===s?t:2097152&n?Bu(c,t.aliasSymbol,Ul(t.aliasTypeArguments,r)):Pu(c,1,t.aliasSymbol,Ul(t.aliasTypeArguments,r))}if(4194304&n)return Wu(c_(t.type,r));if(8388608&n)return il(c_(t.objectType,r),c_(t.indexType,r),void 0,t.aliasSymbol,Ul(t.aliasTypeArguments,r));if(16777216&n)return s_(t,Gl(t.mapper,r));if(33554432&n){var u=c_(t.baseType,r);if(8650752&u.flags)return Kc(u,c_(t.substitute,r));var l=c_(t.substitute,r);return 3&l.flags||S_(__(u),__(l))?u:l}return t}(t,r);return C--,n}function u_(e,t){C--;var r=c_(e,t);return C++,r}function l_(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=c_(e,Xe))}function __(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=c_(e,$e),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function d_(e,t){return e&&Ac(c_(e.type,t),e.isReadonly,e.declaration)}function p_(t){switch(e.Debug.assert(164!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 205:case 206:case 164:case 248:return f_(t);case 197:return e.some(t.properties,p_);case 196:return e.some(t.elements,p_);case 214:return p_(t.whenTrue)||p_(t.whenFalse);case 213:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(p_(t.left)||p_(t.right));case 285:return p_(t.initializer);case 204:return p_(t.expression);case 278:return e.some(t.properties,p_)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,p_);case 277:var r=t.initializer;return!!r&&p_(r);case 280:var n=t.expression;return!!n&&p_(n)}return!1}function f_(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!Ca(t))&&(g_(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&227!==t.body.kind&&p_(t.body)}(t))}function g_(t){if(!t.typeParameters){if(e.some(t.parameters,function(t){return!e.getEffectiveTypeAnnotationNode(t)}))return!0;if(206!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!e.parameterIsThisKeyword(r))return!0}}return!1}function m_(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||kg(t)||e.isObjectLiteralMethod(t))&&f_(t)}function h_(t){if(524288&t.flags){var r=xs(t);if(r.constructSignatures.length||r.callSignatures.length){var n=Ni(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n}}else if(2097152&t.flags)return Bu(e.map(t.types,h_));return t}function y_(e,t){return K_(e,t,en)}function v_(e,t){return K_(e,t,en)?-1:0}function b_(e,t){return K_(e,t,Yr)?-1:0}function x_(e,t){return K_(e,t,$r)?-1:0}function D_(e,t){return K_(e,t,$r)}function S_(e,t){return K_(e,t,Yr)}function E_(t,r){return 1048576&t.flags?e.every(t.types,function(e){return E_(e,r)}):1048576&r.flags?e.some(r.types,function(e){return E_(t,e)}):58982400&t.flags?E_(Os(t)||Ce,r):r===pt?!!(67633152&t.flags):r===ft?!!(524288&t.flags)&&Yp(t):no(t,ro(r))}function C_(e,t){return K_(e,t,Zr)}function T_(e,t){return C_(e,t)||C_(t,e)}function k_(e,t,r,n,i,a){return Q_(e,t,Yr,r,n,i,a)}function w_(e,t,r,n,i,a){return A_(e,t,Yr,r,n,i,a,void 0)}function A_(e,t,r,n,i,a,o,s){return!!K_(e,t,r)||(!n||!P_(i,e,t,r,a,o,s))&&Q_(e,t,r,n,a,o,s)}function N_(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,N_))}function P_(t,r,n,i,o,c,u){if(!t||N_(n))return!1;if(!Q_(r,n,i,void 0)&&function(t,r,n,i,a,o,s){for(var c=$s(r,0),u=$s(r,1),l=0,_=[u,c];l<_.length;l++){var d=_[l];if(e.some(d,function(e){var t=hc(e);return!(131073&t.flags)&&Q_(t,n,i,void 0)})){var p=s||{};return k_(r,n,t,a,o,p),e.addRelatedInfo(p.errors[p.errors.length-1],e.createDiagnosticForNode(t,d===u?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(t,r,n,i,o,c,u))return!0;switch(t.kind){case 280:case 204:return P_(t.expression,r,n,i,o,c,u);case 213:switch(t.operatorToken.kind){case 62:case 27:return P_(t.right,r,n,i,o,c,u)}break;case 197:return function(t,r,n,i,a,o){return!(131068&n.flags)&&I_(function(t){var r,n,i,a;return s(this,function(o){switch(o.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,o.label=1;case 1:if(!(r1,y=yf(g,Ed),v=yf(g,function(e){return!Ed(e)});if(h){if(y!==ze){var b=bu(Vg(_,0));l=I_(function(t,r){var n,i,a,o,c;return s(this,function(s){switch(s.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,s.label=1;case 1:return i_:Jh(t)>_))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=Qm(t,r=(l=r).typeParameters?l.canonicalSignatureCache||(l.canonicalSignatureCache=function(t){return xc(t,e.map(t.typeParameters,function(e){return e.target&&!ks(e.target)?e.target:e}),e.isInJSFile(t.declaration))}(l)):l,void 0,s));var d=zh(t),p=qh(t),f=qh(r);if((p||f)&&c_(p||f,c),p&&f&&d!==_)return 0;var g=r.declaration?r.declaration.kind:0,m=!(3&n)&&H&&164!==g&&163!==g&&165!==g,h=-1,y=gc(t);if(y&&y!==Ue){var v=gc(r);if(v){if(!(S=!m&&s(y,v,!1)||s(v,y,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;h&=S}}for(var b=p||f?Math.min(d,_):Math.max(d,_),x=p||f?b-1:-1,D=0;D=Jh(t)&&D0||yx(c));if(f&&!function(e,t,r){for(var n=0,i=Cs(e);n0&&B(hc(g[0]),u,!1)||h.length>0&&B(hc(h[0]),u,!1)?M(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Zi(c),Zi(u)):M(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Zi(c),Zi(u))}return 0}var y=0,v=O();if(1048576&c.flags?y=n===Zr?z(c,u,i&&!(131068&c.flags),s):function(e,t,r,n){for(var i=-1,a=e.types,o=0;o0;if(_&&x--,524288&(n=t.aliasSymbol?t:n).flags&&524288&s.flags){var d=l;R(n,s,i),l!==d&&(_=!!l)}if(524288&n.flags&&131068&s.flags)!function(t,r){var n=ra(t.symbol)?Zi(t,t.symbol.valueDeclaration):Zi(t),i=ra(r.symbol)?Zi(r,r.symbol.valueDeclaration):Zi(r);(vt===t&&Pe===r||bt===t&&Oe===r||xt===t&&Be===r||su(!1)===t&&je===r)&&M(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}(n,s);else if(n.symbol&&524288&n.flags&&pt===n)M(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(u&&2097152&s.flags){var p=s.types,f=qg(k.IntrinsicAttributes,a),g=qg(k.IntrinsicClassAttributes,a);if(f!==Se&&g!==Se&&(e.contains(p,f)||e.contains(p,g)))return c}else l=Hs(l,r);if(!o&&_)return m=[n,s],c;L(o,n,s)}}}function j(e,t){for(var r=-1,n=0,i=e.types;n25)return 0;for(var c=new Array(i.length),u=new e.Set,l=0;l5?M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Zi(t),Zi(r),e.map(m.slice(0,4),function(e){return Xi(e)}).join(", "),m.length-4):M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Zi(t),Zi(r),e.map(m,function(e){return Xi(e)}).join(", ")),s&&l&&x++)}(t,r,w,k),0;if(Ip(r))for(var A=0,N=H(Cs(t),s);A0||$s(t,n=1).length>0)return e.find(r.types,function(e){return $s(e,n).length>0})}(t,r)||function(t,r){for(var n,i=0,a=0,o=r.types;a=i&&(n=s,i=u)}else Td(c)&&1>=i&&(n=s,i=1)}return n}(t,r)}function Y_(t,r,n,i,a){for(var o=t.types.map(function(e){}),s=0,c=r;s0&&e.every(r.properties,function(e){return!!(16777216&e.flags)})}return!!(2097152&t.flags)&&e.every(t.types,Z_)}function ed(t,r,n){var i=Lc(t,e.map(t.typeParameters,function(e){return e===r?n:e}));return i.objectFlags|=8192,i}function td(e){var t=vn(e);return rd(t.typeParameters,t,function(r,n,i){var a=Jc(e,Ul(t.typeParameters,Wl(n,i)));return a.aliasTypeArgumentsContainsMarker=!0,a})}function rd(t,r,n){void 0===t&&(t=e.emptyArray);var i=r.variances;if(!i){r.variances=e.emptyArray,i=[];for(var a=function(e){var t=!1,a=!1,o=tr;tr=function(e){return e?a=!0:t=!0};var s=n(r,e,st),c=n(r,e,ct),u=(S_(c,s)?1:0)|(S_(s,c)?2:0);3===u&&S_(n(r,e,rr),s)&&(u=4),tr=o,(t||a)&&(t&&(u|=8),a&&(u|=16)),i.push(u)},o=0,s=t;o":n+="-"+o.id}return n}function sd(e,t,r,n){if(n===en&&e.id>t.id){var i=e;e=t,t=i}var a=r?":"+r:"";if(ad(e)&&ad(t)){var o=[];return od(e,o)+","+od(t,o)+a}return e.id+","+t.id+a}function cd(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n=5&&524288&t.flags){if(!Mp(t)){var i=t.symbol;if(i)for(var a=0,o=0;o=5)return!0}if(e.getObjectFlags(t)&&t.node){var s=t.target;for(a=0,o=0;o=5)return!0}}if(n>=5&&8388608&t.flags)for(s=dd(t),a=0,o=0;o=5)return!0}return!1}function dd(e){for(var t=e;8388608&t.flags;)t=t.objectType;return t}function pd(e,t){return 0!==fd(e,t,v_)}function fd(t,r,n){if(t===r)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(r)))return 0;if(i){if(Lb(t)!==Lb(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return _y(t)!==_y(r)?0:n(eo(t),eo(r))}function gd(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=zh(e),i=zh(t),a=Jh(e),o=Jh(t),s=Vh(e),c=Vh(t);return n===i&&a===o&&s===c||!!(r&&a<=o)}(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;if(r.typeParameters){for(var s=Jl(t.typeParameters,r.typeParameters),c=0;c-1&&(Cn(o,o.name.escapedText,788968,void 0,o.name.escapedText,!0)||o.name.originalKeywordKind&&e.isTypeNodeKind(o.name.originalKeywordKind))){var s="arg"+o.parent.parameters.indexOf(o);return void cn($,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}a=t.dotDotDotToken?$?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:$?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 195:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!$)return;break;case 304:return void on(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 248:case 164:case 163:case 166:case 167:case 205:case 206:if($&&!t.name)return void on(t,3===n?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=$?3===n?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 189:return void($&&on(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=$?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}cn($,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function lp(t,n,i){!(r&&$&&524288&e.getObjectFlags(n))||i&&wg(t)||cp(n)||up(t,n,i)}function _p(e,t,r){var n=zh(e),i=zh(t),a=Wh(e),o=Wh(t),s=o?i-1:i,c=a?s:Math.min(n,s),u=gc(e);if(u){var l=gc(t);l&&r(u,l)}for(var _=0;_0)for(var D=0,S=r;De.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength0&&4&t.target.elementFlags[a-1]?jc(t)[a-1]:void 0,d=12&r.target.combinedFlags?_?Rd(r):Math.min(Rd(t),Rd(r)):0,p=_?0:d;for(u=0;u1){var r=e.filter(t,Mp);if(r.length){var n=Pu(r,2);return e.concatenate(e.filter(t,function(e){return!Mp(e)}),[n])}}return t}(t.candidates),a=!!(n=ks(t.typeParameter))&&gy(16777216&n.flags?As(n):n,4325372),o=!a&&t.topLevel&&(t.isFixed||!Dp(hc(r),t.typeParameter)),s=a?e.sameMap(i,Nl):o?e.sameMap(i,Ad):i;return op(208&t.priority?Pu(s,2):function(t){if(!K)return md(t);var r=e.filter(t,function(e){return!(98304&e.flags)});return r.length?Wd(md(r),98304&Ud(t)):Pu(t,2)}(s))}(n,a):void 0;if(n.contraCandidates){var s=function(t){return 208&t.priority?Bu(t.contraCandidates):e.reduceLeft(t.contraCandidates,function(e,t){return D_(t,e)?t:e})}(n);i=!o||131072&o.flags||!D_(o,s)?s:o}else if(o)i=o;else if(1&t.flags)i=Je;else{var c=Rs(n.typeParameter);c&&(i=c_(c,Ql(function(t,r){return ql(function(n){return e.findIndex(t.inferences,function(e){return e.typeParameter===n})>=r?Ce:n})}(t,r),t.nonFixingMapper)))}}else i=wp(n);n.inferredType=i||Rp(!!(2&t.flags));var u=ks(n.typeParameter);if(u){var l=c_(u,t.nonFixingMapper);i&&t.compareTypes(i,Go(l,i))||(n.inferredType=i=l)}}return n.inferredType}function Rp(e){return e?be:Ce}function Bp(e){for(var t=[],r=0;r=0&&r.parameterIndex=n&&c-1){var l=a.filter(function(e){return void 0!==e}),_=c0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return Rl(r.parameters[0].type);var n=e.getJSDocThisTag(t);return n&&n.typeExpression?Rl(n.typeExpression):void 0}(n);if(!a){var o=function(t){return 205===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent)?t.parent.left.expression.expression:164===t.kind&&197===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.left.expression:205===t.kind&&285===t.parent.kind&&197===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.left.expression:205===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.arguments[0].expression:e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.arguments[0].expression:void 0}(n);if(i&&o){var s=Hy(o).symbol;s&&s.members&&16&s.flags&&(a=wo(s).thisType)}else Eh(n)&&(a=wo(hi(n.symbol)).thisType);a||(a=ag(n))}if(a)return Uf(t,a)}if(e.isClassLike(n.parent)){var c=yi(n.parent);return Uf(t,e.hasSyntacticModifier(n,32)?eo(c):wo(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var u=yi(n);return u&&eo(u)}if(n.externalModuleIndicator)return Te;if(r)return eo(ie)}}function tg(t,r){return!!e.findAncestor(t,function(t){return e.isFunctionLikeDeclaration(t)?"quit":159===t.kind&&t.parent===r})}function rg(t){var r,n=200===t.parent.kind&&t.parent.expression===t,i=e.getSuperContainer(t,!0),a=i,o=!1;if(!n)for(;a&&206===a.kind;)a=e.getSuperContainer(a,!0),o=V<2;if(!function(t){return!(!t||(n?165!==t.kind:!e.isClassLike(t.parent)&&197!==t.parent.kind||(e.hasSyntacticModifier(t,32)?164!==t.kind&&163!==t.kind&&166!==t.kind&&167!==t.kind:164!==t.kind&&163!==t.kind&&166!==t.kind&&167!==t.kind&&162!==t.kind&&161!==t.kind&&165!==t.kind)))}(a)){var s=e.findAncestor(t,function(e){return e===a?"quit":157===e.kind});return s&&157===s.kind?on(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?on(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):a&&a.parent&&(e.isClassLike(a.parent)||197===a.parent.kind)?on(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):on(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Se}if(n||165!==i.kind||Yf(t,a,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),r=e.hasSyntacticModifier(a,32)||n?512:256,bn(t).flags|=r,164===a.kind&&e.hasSyntacticModifier(a,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?bn(a).flags|=4096:bn(a).flags|=2048),o&&Qf(t.parent,a),197===a.parent.kind)return V<2?(on(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Se):be;var c=a.parent;if(!e.getClassExtendsHeritageElement(c))return on(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Se;var u=wo(yi(c)),l=u&&mo(u)[0];return l?165===a.kind&&tg(t,a)?(on(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Se):512===r?fo(u):Go(l,u.thisType):Se}function ng(t){return 4&e.getObjectFlags(t)&&t.target===St?jc(t)[0]:void 0}function ig(t){return bf(t,function(t){return 2097152&t.flags?e.forEach(t.types,ng):ng(t)})}function ag(t){if(206!==t.kind){if(m_(t)){var r=Ag(t);if(r){var n=r.thisParameter;if(n)return eo(n)}}var i=e.isInJSFile(t);if(X||i){var a=function(e){return 164!==e.kind&&166!==e.kind&&167!==e.kind||197!==e.parent.kind?205===e.kind&&285===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=vg(a),s=a,c=o;c;){var u=ig(c);if(u)return c_(u,vp(Sg(a)));if(285!==s.parent.kind)break;c=vg(s=s.parent.parent)}return op(o?Kd(o):Ay(a))}var l=e.walkUpParenthesizedExpressions(t.parent);if(213===l.kind&&62===l.operatorToken.kind){var _=l.left;if(e.isAccessExpression(_)){var d=_.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&Up(d)===p.symbol)return}return op(Ay(d))}}}}}function og(t){var r=t.parent;if(m_(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=ih(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return Ym(i,a,i.length,be,void 0,0);var o=bn(n),s=o.resolvedSignature;o.resolvedSignature=ir;var c=a=0?void 0:eo(o);if(Fd(t)){var s=Ld(t);if(s&&Mg(r)&&+r>=0)return s}return Mg(r)&&fg(t,1)||fg(t,0)}var c},!0)}function fg(e,t){return bf(e,function(e){return Ys(e,t)},!0)}function gg(e,t){var r=vg(e.parent,t);if(r){if(!Jo(e)){var n=pg(r,yi(e).escapedName);if(n)return n}return Fg(e.name)&&fg(r,1)||fg(r,0)}}function mg(e,t){return e&&(pg(e,""+t)||ab(1,e,Te,void 0,!1))}function hg(t){if(e.isJsxAttribute(t)){var r=vg(t.parent);if(!r||ya(r))return;return pg(r,t.name.escapedText)}return Dg(t.parent)}function yg(e){switch(e.kind){case 10:case 8:case 9:case 14:case 109:case 94:case 103:case 78:case 149:return!0;case 198:case 204:return yg(e.expression);case 280:return!e.expression||yg(e.expression)}return!1}function vg(t,r){var n=bg(e.isObjectLiteralMethod(t)?function(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(16777216&t.flags))return gg(t,r)}(t,r):Dg(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=bf(n,Bs,!0);if(1048576&i.flags){if(e.isObjectLiteralExpression(t))return function(t,r){return Y_(r,e.map(e.filter(t.properties,function(e){return!!e.symbol&&285===e.kind&&yg(e.initializer)&&Gp(r,e.symbol.escapedName)}),function(e){return[function(){return Hy(e.initializer)},e.symbol.escapedName]}),S_,r)}(t,i);if(e.isJsxAttributes(t))return function(t,r){return Y_(r,e.map(e.filter(t.properties,function(e){return!!e.symbol&&277===e.kind&&Gp(r,e.symbol.escapedName)&&(!e.initializer||yg(e.initializer))}),function(e){return[e.initializer?function(){return Hy(e.initializer)}:function(){return Le},e.symbol.escapedName]}),S_,r)}(t,i)}return i}}function bg(t,r,n){if(t&&gy(t,63176704)){var i=Sg(r);if(i&&e.some(i.inferences,Uy)){if(n&&1&n)return xg(t,i.nonFixingMapper);if(i.returnMapper)return xg(t,i.returnMapper)}}return t}function xg(t,r){return 63176704&t.flags?c_(t,r):1048576&t.flags?Pu(e.map(t.types,function(e){return xg(e,r)}),0):2097152&t.flags?Bu(e.map(t.types,function(e){return xg(e,r)})):t}function Dg(t,r){if(16777216&t.flags);else{if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 246:case 159:case 162:case 161:case 195:return function(t,r){var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var i=sg(n);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name))return Ua(n.name,!0,!1)}}(t,r);case 206:case 239:return function(t){var r=e.getContainingFunction(t);if(r){var n=lg(r);if(n){var i=e.getFunctionFlags(r);if(1&i){var a=_b(n,2&i?2:1,void 0);if(!a)return;n=a.returnType}if(2&i){var o=bf(n,gv);return o&&Pu([o,Yh(o)])}return n}}}(t);case 216:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=lg(r);if(i)return t.asteriskToken?i:Tb(0,i,0!=(2&n))}}(n);case 210:return function(e,t){var r=Dg(e,t);if(r){var n=gv(r);return n&&Pu([n,Yh(n)])}}(n,r);case 200:if(99===n.expression.kind)return Pe;case 201:return _g(n,t);case 203:case 221:return e.isConstTypeReference(n.type)?function(t){if(e.isCallLikeExpression(t.parent))return _g(t.parent,t)}(n):Rl(n.type);case 213:return function(t,r){var n=t.parent,i=n.left,a=n.right;switch(n.operatorToken.kind){case 62:case 75:case 74:case 76:if(t!==a)return;var o=function(t){var r=e.getAssignmentDeclarationKind(t);switch(r){case 0:return!0;case 5:case 1:case 6:case 3:if(t.left.symbol){var n=t.left.symbol.valueDeclaration;if(!n)return!1;var i=e.cast(t.left,e.isAccessExpression),a=e.getEffectiveTypeAnnotationNode(n);if(a)return Rl(a);if(e.isIdentifier(i.expression)){var o=i.expression,s=Cn(o,o.escapedText,111551,void 0,o.escapedText,!0);if(s){if(u=s.valueDeclaration&&e.getEffectiveTypeAnnotationNode(s.valueDeclaration)){var c=e.getElementOrPropertyAccessName(i);if(void 0!==c)return(l=pg(Rl(u),c))||!1}return!1}}return!e.isInJSFile(n)}return!0;case 2:case 4:if(!t.symbol)return!0;var u,l;if(t.symbol.valueDeclaration&&(u=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration))&&(l=Rl(u)))return l;if(2===r)return!1;var _=e.cast(t.left,e.isAccessExpression);if(!e.isObjectLiteralMethod(e.getThisContainer(_.expression,!1)))return!1;var d=Zf(_.expression),p=e.getElementOrPropertyAccessName(_);return void 0!==p&&d&&pg(d,p)||!1;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(r)}}(n);if(!o)return;return!0===o?Wy(i):o;case 56:case 60:var s=Dg(n,r);return t===a&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(n))?Wy(i):s;case 55:case 27:return t===a?Dg(n,r):void 0;default:return}}(t,r);case 285:case 286:return gg(n,r);case 287:return vg(n.parent,r);case 196:var i=n;return mg(vg(i,r),e.indexOfNode(i.elements,t));case 214:return function(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?Dg(r,t):void 0}(t,r);case 225:return e.Debug.assert(215===n.parent.kind),function(e,t){if(202===e.parent.kind)return _g(e.parent,t)}(n.parent,t);case 204:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?Rl(a.typeExpression.type):Dg(n,r);case 280:return function(t){var r=t.parent;return e.isJsxAttributeLike(r)?Dg(t):e.isJsxElement(r)?function(e,t){var r=vg(e.openingElement.tagName),n=Qg(Hg(e));if(r&&!ya(r)&&n&&""!==n){var i=L_(e.children),a=i.indexOf(t),o=pg(r,n);return o&&(1===i.length?o:bf(o,function(e){return xd(e)?il(e,Ol(a)):e},!0))}}(r,t):void 0}(n);case 277:case 279:return hg(n);case 272:case 271:return function(t,r){return e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r?t.parent.contextualType:dg(t,0)}(n,r)}}}function Sg(t){var r=e.findAncestor(t,function(e){return!!e.inferenceContext});return r&&r.inferenceContext}function Eg(t,r){return 0!==eh(r)?function(e,t){var r=Hh(e,Ce);r=Cg(t,Hg(t),r);var n=qg(k.IntrinsicAttributes,t);return n!==Se&&(r=as(n,r)),r}(t,r):function(t,r){var n=Hg(r),i=Gg(k.ElementAttributesPropertyNameContainer,n),a=void 0===i?Hh(t,Ce):""===i?hc(t):function(e,t){if(e.unionSignatures){for(var r=[],n=0,i=e.unionSignatures;n=2)return Lc(o,c=lc([s,n],o.typeParameters,2,e.isInJSFile(t)));if(e.length(o.aliasTypeArguments)>=2){var c=lc([s,n],o.aliasTypeArguments,2,e.isInJSFile(t));return Jc(o.aliasSymbol,c)}}return n}function Tg(t,r){var n=$s(t,0);if(1===n.length){var i=n[0];if(!function(t,r){for(var n=0;n1&&on(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Qg(e){return Gg(k.ElementChildrenAttributeNameContainer,e)}function $g(t,r){if(4&t.flags)return[ir];if(128&t.flags){var n=Xg(t,r);return n?[xh(r,n)]:(on(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+k.IntrinsicElements),e.emptyArray)}var i=Bs(t),a=$s(i,1);return 0===a.length&&(a=$s(i,0)),0===a.length&&1048576&i.flags&&(a=ns(e.map(i.types,function(e){return $g(e,r)}))),a}function Xg(t,r){var n=qg(k.IntrinsicElements,r);if(n!==Se){var i=Gs(n,e.escapeLeadingUnderscores(t.value));return i?eo(i):ec(n,0)||void 0}return be}function Yg(t){e.Debug.assert(zg(t.tagName));var r=bn(t);if(!r.resolvedJsxElementAttributesType){var n=Kg(t);return r.resolvedJsxElementAttributesType=1&r.jsxFlags?eo(n):2&r.jsxFlags?ec(wo(n),0):Se}return r.resolvedJsxElementAttributesType}function Zg(e){var t=qg(k.ElementClass,e);if(t!==Se)return t}function em(e){return qg(k.Element,e)}function tm(e){var t=em(e);if(t)return Pu([t,Ae])}function rm(t){var r,n=e.isJsxOpeningLikeElement(t);n&&function(t){oD(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n=0)return _>=Jh(n)&&(Vh(n)||_s)return!1;if(o||a>=c)return!0;for(var d=a;d=i&&r.length<=n}function Km(e){return Gm(e,0,!1)}function Hm(e){return Gm(e,0,!1)||Gm(e,1,!1)}function Gm(e,t,r){if(524288&e.flags){var n=xs(e);if(r||0===n.properties.length&&!n.stringIndexInfo&&!n.numberIndexInfo){if(0===t&&1===n.callSignatures.length&&0===n.constructSignatures.length)return n.callSignatures[0];if(1===t&&1===n.constructSignatures.length&&0===n.callSignatures.length)return n.constructSignatures[0]}}}function Qm(t,r,n,i){var a=pp(t.typeParameters,t,0,i),o=Wh(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return _p(s?Zl(r,s):r,t,function(e,t){Pp(a.inferences,e,t)}),n||dp(r,t,function(e,t){Pp(a.inferences,e,t,64)}),xc(t,Bp(a),e.isInJSFile(r.declaration))}function $m(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=Eg(t,e),a=wy(e.attributes,i,n,r);return Pp(n.inferences,a,i),Bp(n)}(t,r,i,a);if(160!==t.kind){var o=Dg(t,e.every(r.typeParameters,function(e){return!!Rs(e)})?8:0);if(o){var s=Sg(t),c=c_(o,vp(function(t,r){return void 0===r&&(r=0),t&&fp(e.map(t.inferences,yp),t.signature,t.flags|r,t.compareTypes)}(s,1))),u=Km(c),l=u&&u.typeParameters?Tc(Dc(u,u.typeParameters)):c,_=hc(r);Pp(a.inferences,l,_,64);var d=pp(r.typeParameters,r,a.flags),p=c_(o,s&&s.returnMapper);Pp(d.inferences,p,_),a.returnMapper=e.some(d.inferences,Uy)?vp(function(t){var r=e.filter(t.inferences,Uy);return r.length?fp(e.map(r,yp),t.signature,t.flags,t.compareTypes):void 0}(d)):void 0}}var f=qh(r),g=f?Math.min(zh(r)-1,n.length):n.length;if(f&&262144&f.flags){var m=e.find(a.inferences,function(e){return e.typeParameter===f});m&&(m.impliedArity=e.findIndex(n,zm,g)<0?n.length-g:void 0)}var h=gc(r);if(h){var y=rh(t),v=y?Hy(y):Ue;Pp(a.inferences,v,h)}for(var b=0;b=n-1&&zm(_=t[n-1]))return Xm(224===_.kind?_.type:wy(_.expression,i,a,o));for(var s=[],c=[],u=[],l=r;l_&&(_=y)}}if(!l)return!0;for(var v=1/0,b=0,x=i;b0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=Jm(i);if(a>=0){for(var o=i.slice(0,a),s=function(t){var r=i[t],n=217===r.kind&&(br?Hy(r.expression):Ay(r.expression));n&&Fd(n)?e.forEach(jc(n),function(e,t){var i,a=n.target.elementFlags[t],s=nh(r,4&a?fu(e):e,!!(12&a),null===(i=n.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)}):o.push(r)},c=a;cs&&(s=p),u-1;u<=o&&v&&u--;var b=h||v?h&&v?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:h?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:e.Diagnostics.Expected_0_arguments_but_got_1_or_more:e.Diagnostics.Expected_0_arguments_but_got_1;if(i&&Jh(i)>u&&i.declaration){var x=i.declaration.parameters[i.thisParameter?u+1:u];x&&(m=e.createDiagnosticForNode(x,e.isBindingPattern(x.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(x)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,x.name?e.isBindingPattern(x.name)?void 0:e.idText(e.getFirstIdentifier(x.name)):u))}if(au&&S?n.indexOf(S):Math.min(o,n.length-1)))}}else g=e.factory.createNodeArray(n.slice(o));var E=e.first(g).pos,C=e.last(g).end;C===E&&C++,e.setTextRangePosEnd(g,E,C);var T=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),g,b,y,u);return m?e.addRelatedInfo(T,m):T}function uh(t,n,i,a,o,s){var c,u=202===t.kind,l=160===t.kind,_=e.isJsxOpeningLikeElement(t),d=!i&&r;l||(c=t.typeArguments,(u||_||105!==t.expression.kind)&&e.forEach(c,$b));var p=i||[];if(function(t,r,n){var i,a,o,s,c=0,u=-1;e.Debug.assert(!r.length);for(var l=0,_=t;l<_.length;l++){var d=_[l],p=d.declaration&&yi(d.declaration),f=d.declaration&&d.declaration.parent;a&&p!==a?(o=c=r.length,i=f):i&&f===i?o+=1:(i=f,o=c),a=p,j(d)?(s=++u,c++):s=o,r.splice(s,0,n?Zo(d,n):d)}}(n,p,o),!p.length)return d&&Kr.add(sh(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Um(t);var f,g,m,h,y=ih(t),v=1===p.length&&!p[0].typeParameters,b=l||v||!e.some(y,p_)?0:4,x=!!(16&a)&&200===t.kind&&t.arguments.hasTrailingComma;if(p.length>1&&(h=V(p,$r,x)),h||(h=V(p,Yr,x)),h)return h;if(d)if(f)if(1===f.length||f.length>3){var D,S=f[f.length-1];f.length>3&&(D=e.chainDiagnosticMessages(D,e.Diagnostics.The_last_overload_gave_the_following_error),D=e.chainDiagnosticMessages(D,e.Diagnostics.No_overload_matches_this_call));var E=th(t,y,S,Yr,0,!0,function(){return D});if(E)for(var C=0,T=E;C3&&e.addRelatedInfo(k,e.createDiagnosticForNode(S.declaration,e.Diagnostics.The_last_overload_is_declared_here)),Kr.add(k)}else e.Debug.fail("No error for last overload signature")}else{for(var w=[],A=0,N=Number.MAX_VALUE,P=0,O=0,F=function(r){var n=th(t,y,r,Yr,0,!0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,O+1,p.length,Yi(r))});n?(n.length<=N&&(N=n.length,P=O),A=Math.max(A,n.length),w.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),O++},I=0,M=f;I1?w[P]:e.flatten(w);e.Debug.assert(L.length>0,"No errors reported for 3 or fewer overload signatures");var R=e.chainDiagnosticMessages(e.map(L,function(e){return"string"==typeof e.messageText?e:e.messageText}),e.Diagnostics.No_overload_matches_this_call),U=e.flatMap(L,function(e){return e.relatedInformation});if(e.every(L,function(e){return e.start===L[0].start&&e.length===L[0].length&&e.file===L[0].file})){var z=L[0];Kr.add({file:z.file,start:z.start,length:z.length,code:R.code,category:R.category,messageText:R,relatedInformation:U})}else Kr.add(e.createDiagnosticForNodeFromMessageChain(t,R,U))}else if(g)Kr.add(ch(t,[g],y));else if(m)Zm(m,t.typeArguments,!0,s);else{var J=e.filter(n,function(e){return qm(e,c)});0===J.length?Kr.add(function(t,r,n){var i=n.length;if(1===r.length){var a=uc((_=r[0]).typeParameters),o=e.length(_.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,ai?c=Math.min(c,d):o0),Yb(t),i||1===r.length||r.some(function(e){return!!e.typeParameters})?function(t,r,n){var i=function(e,t){for(var r=-1,n=-1,i=0;i=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===ae?n.length:ae),a=r[i],o=a.typeParameters;if(!o)return a;var s=Bm(t)?t.typeArguments:void 0,c=s?Sc(a,function(e,t,r){for(var n=e.map(dx);n.length>t.length;)n.pop();for(;n.length=0&&on(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=um(t.expression);if(a===Je)return sr;if((a=Bs(a))===Se)return Um(t);if(ya(a))return t.typeArguments&&on(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),jm(t);var o=$s(a,1);if(o.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedEffectiveModifierFlags(n,24);if(!i||165!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=wo(n.parent.symbol);if(!cx(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=dx(s);if(mh(n.parent.symbol,c))return!0}return 8&i&&on(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Zi(o)),16&i&&on(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Zi(o)),!1}return!0}(t,o[0]))return Um(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,128)?(on(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Um(t)):uh(t,o,r,n,0)}var c=$s(a,0);if(c.length){var u=uh(t,c,r,n,0);return $||(u.declaration&&!Eh(u.declaration)&&hc(u)!==Ue&&on(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),gc(u)===Ue&&on(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),u}return yh(t.expression,a,1),Um(t)}function mh(t,r){var n=mo(r);if(!e.length(n))return!1;var i=n[0];if(2097152&i.flags){for(var a=cs(i.types),o=0,s=0,c=i.types;s0;if(1048576&r.flags){for(var c=!1,u=0,l=r.types;u=n-1)return r===n-1?a:fu(il(a,Oe));for(var o=[],s=[],c=[],u=r;u0)return t.parameters.length-1+a}}return!r&&16&t.flags?0:t.minArgumentCount}function Vh(e){if(B(e)){var t=eo(e.parameters[e.parameters.length-1]);return!Fd(t)||t.target.hasRestElement}return!1}function Wh(e){if(B(e)){var t=eo(e.parameters[e.parameters.length-1]);if(!Fd(t))return t;if(t.target.hasRestElement)return Eu(t,t.target.fixedLength)}}function qh(e){var t=Wh(e);return!t||hd(t)||ya(t)||0!=(131072&Vs(t).flags)?void 0:t}function Kh(e){return Hh(e,ze)}function Hh(e,t){return e.parameters.length>0?Bh(e,0):t}function Gh(t,r){t.typeParameters=r.typeParameters,r.thisParameter&&(!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=Zd(r.thisParameter,void 0)),Qh(t.thisParameter,eo(r.thisParameter)));for(var n=t.parameters.length-(B(t)?1:0),i=0;i0&&(n=Pu(l,2)):u=ze;var _=function(t,r){var n=[],i=[],a=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,function(t){var o,s=t.expression?Hy(t.expression,r):ke;if(e.pushIfUnique(n,ry(t,s,be,a)),t.asteriskToken){var c=_b(s,a?19:17,t.expression);o=c&&c.nextType}else o=Dg(t);o&&e.pushIfUnique(i,o)}),{yieldTypes:n,nextTypes:i}}(t,r),d=_.yieldTypes,p=_.nextTypes;i=e.some(d)?Pu(d,2):void 0,a=e.some(p)?Bu(p):void 0}else{var f=oy(t,r);if(!f)return 2&o?Zh(t,ze):ze;if(0===f.length)return 2&o?Zh(t,Ue):Ue;n=Pu(f,2)}if(n||i||a){if(i&&lp(t,i,3),n&&lp(t,n,1),a&&lp(t,a,2),n&&Td(n)||i&&Td(i)||a&&Td(a)){var g=wg(t),m=g?g===_c(t)?c?void 0:n:bg(hc(g),t):void 0;c?(i=Od(i,m,0,s),n=Od(n,m,1,s),a=Od(a,m,2,s)):n=function(e,t,r){return e&&Td(e)&&(e=Pd(e,t?r?pv(t):t:void 0)),e}(n,m,s)}i&&(i=op(i)),n&&(n=op(n)),a&&(a=op(a))}return c?ty(i||ze,n||u,a||ug(2,t)||Ce,s):s?Xh(n||u):n||u}function ty(e,t,r,n){var i=n?fr:gr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Ce,t=i.resolveIterationType(t,void 0)||Ce,r=i.resolveIterationType(r,void 0)||Ce,a===rt){var o=i.getGlobalIterableIteratorType(!1),s=o!==rt?gb(o,i):void 0,c=s?s.nextType:Te;return S_(t,s?s.returnType:be)&&S_(c,r)?o!==rt?du(o,[e]):(i.getGlobalIterableIteratorType(!0),Ye):(i.getGlobalGeneratorType(!0),Ye)}return du(a,[e,t,r])}function ry(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?ib(i?19:17,r,n,a):r;return i?gv(o,a,t.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function ny(e,t,r,n){var i=0;if(n){for(var a=t;a=0;)switch(t=i.expr[a],i.state[a]){case 0:if(e.isInJSFile(t)&&e.getAssignedExpandoInitializer(t)){c(Hy(t.right,r));break}if(Ty(t),62===(o=t.operatorToken.kind)&&(197===t.left.kind||196===t.left.kind)){c(Dy(t.left,Hy(t.right,r),r,107===t.right.kind));break}u(1),l(t.left);break;case 1:var o;i.leftType[a]=s=n,55!==(o=t.operatorToken.kind)&&56!==o&&60!==o||eb(s,t.left),u(2),l(t.right);break;case 2:var s;c(ky(t.left,t.operatorToken,t.right,s=i.leftType[a],n,t));break;default:return e.Debug.fail("Invalid state "+i.state[a]+" for checkBinaryExpression")}return n;function c(e){n=e,a--}function u(e){i.state[a]=e}function l(t){e.isBinaryExpression(t)?(a++,i.expr[a]=t,i.state[a]=0,i.leftType[a]=void 0):n=Hy(t,r)}}function Ty(t){var r=t.left,n=t.operatorToken,i=t.right;60===n.kind&&(!e.isBinaryExpression(r)||56!==r.operatorToken.kind&&55!==r.operatorToken.kind||kD(r,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(r.operatorToken.kind),e.tokenToString(n.kind)),!e.isBinaryExpression(i)||56!==i.operatorToken.kind&&55!==i.operatorToken.kind||kD(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(n.kind)))}function ky(t,n,i,a,o,s){var c,u,l=n.kind;switch(l){case 41:case 42:case 65:case 66:case 43:case 67:case 44:case 68:case 40:case 64:case 47:case 69:case 48:case 70:case 49:case 71:case 51:case 73:case 52:case 77:case 50:case 72:if(a===Je||o===Je)return Je;a=gm(a,t),o=gm(o,i);var _=void 0;if(528&a.flags&&528&o.flags&&void 0!==(_=function(e){switch(e){case 51:case 73:return 56;case 52:case 77:return 37;case 50:case 72:return 55;default:return}}(n.kind)))return on(s||n,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(n.kind),e.tokenToString(_)),Oe;var d,p=uy(t,a,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),f=uy(i,o,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(my(a,3)&&my(o,3)||!gy(a,2112)&&!gy(o,2112))d=Oe;else if(D(a,o)){switch(l){case 49:case 71:T();break;case 42:case 66:V<3&&on(s,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}d=Fe}else T(D),d=Se;return p&&f&&E(d),d;case 39:case 63:if(a===Je||o===Je)return Je;my(a,132)||my(o,132)||(a=gm(a,t),o=gm(o,i));var g=void 0;return my(a,296,!0)&&my(o,296,!0)?g=Oe:my(a,2112,!0)&&my(o,2112,!0)?g=Fe:my(a,132,!0)||my(o,132,!0)?g=Pe:(ya(a)||ya(o))&&(g=a===Se||o===Se?Se:be),g&&!S(l)?g:g?(63===l&&E(g),g):(T(function(e,t){return my(e,2543)&&my(t,2543)}),be);case 29:case 31:case 32:case 33:return S(l)&&(a=wd(gm(a,t)),o=wd(gm(o,i)),C(function(e,t){return C_(e,t)||C_(t,e)||S_(e,Qe)&&S_(t,Qe)})),Be;case 34:case 35:case 36:case 37:return C(function(e,t){return Ey(e,t)||Ey(t,e)}),Be;case 101:return function(t,r,n,i){return n===Je||i===Je?Je:(!ya(n)&&hy(n,131068)&&on(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),ya(i)||yx(i)||D_(i,ft)||on(r,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Be)}(t,i,a,o);case 100:return function(t,r,n,i){return n===Je||i===Je?Je:(n=gm(n,t),i=gm(i,r),hy(n,12716)||my(n,4456448)||on(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),hy(i,126091264)||on(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Be)}(t,i,a,o);case 55:case 75:var m=4194304&Zp(a)?Pu([(u=K?a:wd(o),bf(u,Vd)),o]):a;return 75===l&&E(o),m;case 56:case 74:var h=8388608&Zp(a)?Pu([Jd(a),o],2):a;return 74===l&&E(o),h;case 60:case 76:var y=262144&Zp(a)?Pu([Kd(a),o],2):a;return 76===l&&E(o),y;case 62:var v=e.isBinaryExpression(t.parent)?e.getAssignmentDeclarationKind(t.parent):0;return function(t,r){if(2===t)for(var n=0,i=Ds(r);n1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!zy(e,a))return a}}function Vy(e){var t=Km(e);if(t&&!t.typeParameters)return hc(t)}function Wy(t){var r=qy(t);if(r)return r;if(67108864&t.flags&&Yt){var n=Yt[P(t)];if(n)return n}var i=Sr,a=Hy(t);return Sr!==i&&((Yt||(Yt=[]))[P(t)]=a,e.setNodeFlags(t,67108864|t.flags)),a}function qy(t){var r=e.skipParentheses(t);if(!e.isCallExpression(r)||105===r.expression.kind||e.isRequireCall(r,!0)||wh(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return Rl(r.type);if(8===t.kind||10===t.kind||109===t.kind||94===t.kind)return Hy(t)}else{var n=e.isCallChain(r)?function(e){var t=Hy(e.expression),r=Xd(t,e.expression),n=Vy(t);return n&&$d(n,e,r!==t)}(r):Vy(um(r.expression));if(n)return n}}function Ky(e){var t=bn(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=be;try{return t.contextFreeType=Hy(e,4)}finally{e.contextualType=r}}function Hy(t,i,a){var o=_;_=t,D=0;var s=By(t,function(t,i,a){var o=t.kind;if(n)switch(o){case 218:case 205:case 206:n.throwIfCancellationRequested()}switch(o){case 78:return function(t){var r=Up(t);if(r===ye)return Se;if(r===oe){var n=e.getContainingFunction(t);return V<2&&(206===n.kind?on(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(n,256)&&on(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),bn(n).flags|=8192,eo(r)}t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t||Gf(r,t);var i=Ei(r),a=i.valueDeclaration;if(a&&134217728&e.getCombinedNodeFlags(a)&&Gu(t.parent,i)&&cn(!1,t,e.Diagnostics._0_is_deprecated,t.escapedText),32&i.flags)if(249===a.kind&&e.nodeIsDecorated(a))for(n=e.getContainingClass(t);void 0!==n;){if(n===a&&n.name!==t){bn(a).flags|=16777216,bn(t).flags|=33554432;break}n=e.getContainingClass(n)}else if(218===a.kind)for(n=e.getThisContainer(t,!1);294!==n.kind;){if(n.parent===a){162===n.kind&&e.hasSyntacticModifier(n,32)&&(bn(a).flags|=16777216,bn(t).flags|=33554432);break}n=e.getThisContainer(n,!1)}!function(t,r){if(!(V>=2||0==(34&r.flags)||e.isSourceFile(r.valueDeclaration)||284===r.valueDeclaration.parent.kind)){for(var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=function(t,r){return!!e.findAncestor(t,function(t){return t===r?"quit":e.isFunctionLike(t)})}(t.parent,n),a=n,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}if(o){if(i){var s=!0;if(e.isForStatement(n)&&(_=e.getAncestor(r.valueDeclaration,247))&&_.parent===n){var c=function(t,r){return e.findAncestor(t,function(e){return e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement})}(t.parent,n);if(c){var u=bn(c);u.flags|=131072;var l=u.capturedBlockScopeBindings||(u.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),c===n.initializer&&(s=!1)}}s&&(bn(a).flags|=65536)}var _;e.isForStatement(n)&&(_=e.getAncestor(r.valueDeclaration,247))&&_.parent===n&&function(t,r){for(var n=t;204===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(211===n.parent.kind||212===n.parent.kind){var a=n.parent;i=45===a.operator||46===a.operator}return!!i&&!!e.findAncestor(n,function(e){return e===r?"quit":e===r.statement})}(t,n)&&(bn(r.valueDeclaration).flags|=4194304),bn(r.valueDeclaration).flags|=524288}i&&(bn(r.valueDeclaration).flags|=262144)}}(t,r);var o=Hf(eo(i),t),s=e.getAssignmentTargetKind(t);if(s){if(!(3&i.flags||e.isInJSFile(t)&&512&i.flags))return on(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Xi(r)),Se;if(_y(i))return on(t,3&i.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant:e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Xi(r)),Se}var c=2097152&i.flags;if(3&i.flags){if(1===s)return o}else{if(!c)return o;a=e.find(r.declarations,L)}if(!a)return o;for(var u=159===e.getRootDeclaration(a).kind,l=zf(a),_=zf(t),d=_!==l,p=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&of(t.parent.parent),f=134217728&r.flags;_!==l&&(205===_.kind||206===_.kind||e.isObjectLiteralOrClassExpressionMethod(_))&&(Wf(i)||u&&!Jf(i));)_=zf(_);var g=u||c||d||p||f||e.isBindingElement(a)||o!==xe&&o!==Ct&&(!K||0!=(16387&o.flags)||zp(t)||267===t.parent.kind)||222===t.parent.kind||246===a.kind&&a.exclamationToken||8388608&a.flags,m=Uf(t,o,g?u?function(e,t){if(da(t.symbol,2)){var r=K&&159===t.kind&&t.initializer&&32768&zd(e)&&!(32768&zd(Hy(t.initializer)));return ga(),r?ef(e,524288):e}return Za(t.symbol),e}(o,a):o:o===xe||o===Ct?Te:qd(o),_,!g);if(Pf(t)||o!==xe&&o!==Ct){if(!g&&!(32768&zd(o))&&32768&zd(m))return on(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,Xi(r)),o}else if(m===xe||m===Ct)return $&&(on(e.getNameOfDeclaration(a),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Xi(r),Zi(m)),on(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Xi(r),Zi(m))),Hv(m);return s?wd(m):m}(t);case 107:return Zf(t);case 105:return rg(t);case 103:return Ne;case 14:case 10:return Al(Ol(t.text));case 8:return ND(t),Al(Ol(+t.text));case 9:return function(t){!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&V<7&&kD(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)}(t),Al(function(t){return Ol({negative:!1,base10Value:e.parsePseudoBigInt(t.text)})}(t));case 109:return Le;case 94:return Ie;case 215:return function(t){return e.forEach(t.templateSpans,function(t){gy(Hy(t.expression),12288)&&on(t.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)}),Pe}(t);case 13:return Dt;case 196:return Pg(t,i,a);case 197:return function(t,r){var n=e.isAssignmentTarget(t);!function(t,r){for(var n=new e.Map,i=0,a=t.properties;i0&&(s=El(s,M(),t.symbol,g,l),o=[],a=e.createSymbolTable(),h=!1,y=!1),!jg(w=Vs(Hy(C.expression))))return on(C,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Se;i&&Wg(w,i,C),s=El(s,w,t.symbol,g,l),D=o.length;continue}e.Debug.assert(166===C.kind||167===C.kind),Yb(C)}!k||8576&k.flags?a.set(T.escapedName,T):S_(k,He)&&(S_(k,Oe)?y=!0:h=!0,n&&(m=!0)),o.push(T)}if(u&&287!==t.parent.kind)for(var F=0,I=Cs(c);F0&&(s=El(s,M(),t.symbol,g,l),o=[],a=e.createSymbolTable(),h=!1,y=!1),bf(s,function(e){return e===Ye?M():e})):M();function M(){var r=h?Rg(t,D,o,0):void 0,i=y?Rg(t,D,o,1):void 0,s=Mi(t.symbol,a,e.emptyArray,e.emptyArray,r,i);return s.objectFlags|=1048704|g,f&&(s.objectFlags|=16384),m&&(s.objectFlags|=512),n&&(s.pattern=t),s}}(t,i);case 198:return hm(t);case 156:return ym(t);case 199:return function(e){return 32&e.flags?function(e){var t=Hy(e.expression),r=Xd(t,e.expression);return $d(Lm(e,gm(r,e.expression)),e,r!==t)}(e):Lm(e,um(e.expression))}(t);case 200:if(99===t.expression.kind)return function(t){if(sD(t.arguments)||function(t){if(W===e.ModuleKind.ES2015)return kD(t,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd);if(t.typeArguments)return kD(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=t.arguments;1!==r.length?kD(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):(nD(r),e.isSpreadElement(r[0])&&kD(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element))}(t),0===t.arguments.length)return Zh(t,be);for(var r=t.arguments[0],n=Ay(r),i=1;i0&&(s=El(s,E(),i.symbol,l,!1),o=e.createSymbolTable()),ya(m=Vs(Ay(f.expression,r)))&&(c=!0),jg(m)?(s=El(s,m,i.symbol,l,!1),a&&Wg(m,a,f)):n=n?Bu([n,m]):m}c||o.size>0&&(s=El(s,E(),i.symbol,l,!1));var y=270===t.parent.kind?t.parent:void 0;if(y&&y.openingElement===t&&y.children.length>0){var v=Vg(y,r);if(!c&&_&&""!==_){u&&on(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(_));var b=vg(t.attributes),x=b&&pg(b,_),D=ln(33554436,_);D.type=1===v.length?v[0]:x&&mf(x,Sd)?bu(v):fu(Pu(v)),D.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(_),void 0,void 0),e.setParent(D.valueDeclaration,i),D.valueDeclaration.symbol=D;var S=e.createSymbolTable();S.set(_,D),s=El(s,Mi(i.symbol,S,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,l,!1)}}return c?be:n&&s!==Ze?Bu([n,s]):n||(s===Ze?E():s);function E(){l|=Z;var t=Mi(i.symbol,o,e.emptyArray,e.emptyArray,void 0,void 0);return t.objectFlags|=1048704|l,t}}(t.parent,r)}(t,i);case 272:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Se}(t,i,a),i);return yy(s)&&function(t,r){198===t.parent.kind&&t.parent.expression===t||199===t.parent.kind&&t.parent.expression===t||(78===t.kind||156===t.kind)&&ux(t)||175===t.parent.kind&&t.parent.exprName===t||267===t.parent.kind||on(t,e.Diagnostics.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),J.isolatedModules&&(e.Debug.assert(!!(128&r.symbol.flags)),8388608&r.symbol.valueDeclaration.flags&&on(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided))}(t,s),_=o,s}function Gy(t){t.expression&&CD(t.expression,e.Diagnostics.Type_expected),$b(t.constraint),$b(t.default);var n=ko(yi(t));Os(n),function(e){return Ls(e)!==at}(n)||on(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Zi(n));var i=ks(n),a=Rs(n);i&&a&&k_(a,Go(c_(i,Wl(n,a)),a),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),r&&Pb(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function Qy(t){tD(t),Gv(t);var r=e.getContainingFunction(t);e.hasSyntacticModifier(t,92)&&(165===r.kind&&e.nodeIsPresent(r.body)||on(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),165===r.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&on(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&on(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==r.parameters.indexOf(t)&&on(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),165!==r.kind&&169!==r.kind&&174!==r.kind||on(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),206===r.kind&&on(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),166!==r.kind&&167!==r.kind||on(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||S_(Vs(eo(t.symbol)),Tt)||on(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function $y(t,r,n){for(var i=0,a=t.elements;i=2||!e.hasRestParameter(t)||8388608&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===oe.escapedName&&an("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(t);var i=e.getEffectiveReturnTypeNode(t);if($&&!i)switch(t.kind){case 169:on(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 168:on(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(i){var a=e.getFunctionFlags(t);if(1==(5&a)){var o=Rl(i);if(o===Ue)on(i,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=Tb(0,o,0!=(2&a))||be;k_(ty(s,Tb(1,o,0!=(2&a))||s,Tb(2,o,0!=(2&a))||Ce,!!(2&a)),o,i)}}else 2==(3&a)&&function(t,r){var n=Rl(r);if(V>=2){if(n===Se)return;var i=cu(!0);if(i!==rt&&!to(n,i))return void on(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Zi(gv(n)||Ue))}else{if(function(t){yv(t&&e.getEntityNameFromTypeNode(t))}(r),n===Se)return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void on(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Zi(n));var o=ri(a,111551,!0),s=o?eo(o):Se;if(s===Se)return void(78===a.kind&&"Promise"===a.escapedText&&ro(n)===cu(!1)?on(r,e.Diagnostics.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):on(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)));var c=It||(It=au("PromiseConstructorLike",0,!0))||Ye;if(c===Ye)return void on(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a));if(!k_(s,c,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var u=a&&e.getFirstIdentifier(a),l=Dn(t.locals,u.escapedText,111551);if(l)return void on(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a))}fv(n,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t,i)}170!==t.kind&&304!==t.kind&&Tv(t)}}function Yy(t){for(var r=new e.Map,n=0,i=t.members;n0&&r.declarations[0]!==t)return}var n=kc(yi(t));if(n)for(var i=!1,a=!1,o=0,s=n.declarations;o=0)return void(r&&on(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));qr.push(t.id);var s=gv(o,r,n,i);if(qr.pop(),!s)return;return a.awaitedTypeOfType=s}if(!function(e){var t=ha(e,"then");return!!t&&$s(ef(t,2097152),0).length>0}(t))return a.awaitedTypeOfType=t;if(r){if(!n)return e.Debug.fail();on(r,n,i)}}function hv(t){var r=Sh(t);Th(r,t);var n=hc(r);if(!(1&n.flags)){var i,a,o=bh(t);switch(t.parent.kind){case 249:i=Pu([eo(yi(t.parent)),Ue]);break;case 159:i=Ue,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 162:i=Ue,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 164:case 166:case 167:i=Pu([pu(dx(t.parent)),Ue]);break;default:return e.Debug.fail()}k_(n,i,t,o,function(){return a})}}function yv(t){if(t){var r=e.getFirstIdentifier(t),n=Cn(r,r.escapedText,2097152|(78===t.kind?788968:1920),void 0,void 0,!0);n&&2097152&n.flags&&Ci(n)&&!Ax(Gn(n))&&!Xn(n)&&Zn(n)}}function vv(t){var r=bv(t);r&&e.isEntityName(r)&&yv(r)}function bv(e){if(e)switch(e.kind){case 182:case 181:return xv(e.types);case 183:return xv([e.trueType,e.falseType]);case 185:case 191:return bv(e.type);case 172:return e.typeName}}function xv(t){for(var r,n=0,i=t;n=e.ModuleKind.ES2015)&&(zv(t,r,"require")||zv(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=ma(t);294===n.kind&&e.isExternalOrCommonJsModule(n)&&an("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function Kv(t,r){if(!(V>=4)&&zv(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=ma(t);294===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&an("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function Hv(e){return e===xe?be:e===Ct?Et:e}function Gv(t){var r;if(Sv(t),e.isBindingElement(t)||$b(t.type),t.name){if(157===t.name.kind&&(Lg(t.name),t.initializer&&Ay(t.initializer)),195===t.kind){193===t.parent.kind&&V<99&&Zx(t,4),t.propertyName&&157===t.propertyName.kind&&Lg(t.propertyName);var n=t.parent.parent,i=va(n),a=t.propertyName||t.name;if(i&&!e.isBindingPattern(a)){var o=Uu(a);if(Bo(o)){var s=Gs(i,Vo(o));s&&(Fm(s,void 0,!1),sm(n,!!n.initializer&&105===n.initializer.kind,i,s))}}}if(e.isBindingPattern(t.name)&&(194===t.name.kind&&V<2&&J.downlevelIteration&&Zx(t,512),e.forEach(t.name.elements,$b)),t.initializer&&159===e.getRootDeclaration(t).kind&&e.nodeIsMissing(e.getContainingFunction(t).body))on(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(t.name)){var c=t.initializer&&235!==t.parent.parent.kind,u=0===t.name.elements.length;if(c||u){var l=za(t);if(c){var _=Ay(t.initializer);K&&u?mm(_,t):w_(_,za(t),t,t.initializer)}u&&(e.isArrayBindingPattern(t.name)?ib(65,l,Te,t):K&&mm(l,t))}}else{var d=yi(t),p=Hv(eo(d));if(t===d.valueDeclaration){var f=e.getEffectiveInitializer(t);f&&(e.isInJSFile(t)&&e.isObjectLiteralExpression(f)&&(0===f.properties.length||e.isPrototypeAccess(t.name))&&(null===(r=d.exports)||void 0===r?void 0:r.size)||235===t.parent.parent.kind||w_(Ay(f),p,t,f,void 0)),d.declarations.length>1&&e.some(d.declarations,function(r){return r!==t&&e.isVariableLike(r)&&!$v(r,t)})&&on(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var g=Hv(za(t));p===Se||g===Se||y_(p,g)||67108864&d.flags||Qv(d.valueDeclaration,p,t,g),t.initializer&&w_(Ay(t.initializer),g,t,t.initializer,void 0),$v(t,d.valueDeclaration)||on(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}162!==t.kind&&161!==t.kind&&(_v(t),246!==t.kind&&195!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(246!==t.kind||t.initializer)){var r=yi(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=Cn(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&am(n)){var i=e.getAncestor(n.valueDeclaration,247),a=229===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(227===a.kind&&e.isFunctionLike(a.parent)||254===a.kind||253===a.kind||294===a.kind)){var o=Xi(n);on(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),qv(t,t.name),Kv(t,t.name),V<99&&zv(t,t.name,"WeakMap")&&Wr.push(t))}}}function Qv(t,r,n,i){var a=e.getNameOfDeclaration(n),o=162===n.kind||161===n.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,s=e.declarationNameToString(a),c=on(a,o,s,Zi(r),Zi(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function $v(t,r){return 159===t.kind&&246===r.kind||246===t.kind&&159===r.kind||e.hasQuestionToken(t)===e.hasQuestionToken(r)&&e.getSelectedEffectiveModifierFlags(t,504)===e.getSelectedEffectiveModifierFlags(r,504)}function Xv(t){return function(t){if(235!==t.parent.parent.kind&&236!==t.parent.parent.kind)if(8388608&t.flags)vD(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return kD(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return kD(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(229!==t.parent.parent.kind||!t.type||t.initializer||8388608&t.flags))return kD(t.exclamationToken,e.Diagnostics.Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation);var r=e.getEmitModuleKind(J);r=1&&Xv(t.declarations[0])}function nb(e){return ib(e.awaitModifier?15:13,um(e.expression),Te,e.expression)}function ib(e,t,r,n){return ya(t)?t:ab(e,t,r,n,!0)||be}function ab(t,r,n,i,a){var o=0!=(2&t);if(r!==ze){var s=V>=2,c=!s&&J.downlevelIteration;if(s||c||o){var u=_b(r,t,s?i:void 0);if(a&&u){var l=8&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&t?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;l&&k_(n,u.nextType,i,l)}if(u||s)return u&&u.yieldType}var _=r,d=!1,p=!1;if(4&t){if(1048576&_.flags){var f=r.types,g=e.filter(f,function(e){return!(132&e.flags)});g!==f&&(_=Pu(g,2))}else 132&_.flags&&(_=ze);if((p=_!==r)&&(V<1&&i&&(on(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),d=!0),131072&_.flags))return Pe}if(!xd(_)){if(i&&!d){var m=ob(t,0,r,void 0),h=4&t&&!p?c?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:m?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:c?[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:m?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type,!0],y=h[0];un(i,h[1]&&!!dv(_),y,Zi(_))}return p?Pe:void 0}var v=ec(_,1);return p&&v?132&v.flags?Pe:Pu([v,Pe],2):v}yb(i,r,o)}function ob(e,t,r,n){if(!ya(r)){var i=_b(r,e,n);return i&&i[R(t)]}}function sb(e,t,r){if(void 0===e&&(e=ze),void 0===t&&(t=ze),void 0===r&&(r=Ce),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=Ic([e,t,r]),i=ur.get(n);return i||ur.set(n,i={yieldType:e,returnType:t,nextType:r}),i}return{yieldType:e,returnType:t,nextType:r}}function cb(t){for(var r,n,i,a=0,o=t;an)return!1;for(var u=0;u1)return CD(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(116===o.token),n)return CD(o,e.Diagnostics.implements_clause_already_seen);n=!0}cD(o)}})(t)||iD(t.typeParameters,r)}(t),Sv(t),t.name&&(Pb(t.name,e.Diagnostics.Class_name_cannot_be_0),qv(t,t.name),Kv(t,t.name),8388608&t.flags||(n=t.name,1===V&&"Object"===n.escapedText&&W>o;case 49:return a>>>o;case 47:return a<1)for(var o=0,s=n;o=229&&i<=245&&t.flowNode&&!Lf(t.flowNode)&&cn(!1===J.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected),i){case 158:return Gy(t);case 159:return Qy(t);case 162:return ev(t);case 161:return function(t){return e.isPrivateIdentifier(t.name)&&on(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),ev(t)}(t);case 173:case 174:case 168:case 169:case 170:return Xy(t);case 164:case 163:return function(t){hD(t)||lD(t.name),e.isPrivateIdentifier(t.name)&&on(t,e.Diagnostics.A_method_cannot_be_named_with_a_private_identifier),Cv(t),e.hasSyntacticModifier(t,128)&&164===t.kind&&t.body&&on(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name))}(t);case 165:return function(t){Xy(t),function(t){var r=e.isInJSFile(t)?e.getJSDocTypeParameterDeclarations(t):void 0,n=t.typeParameters||r&&e.firstOrUndefined(r);if(n){var i=n.pos===n.end?n.pos:e.skipTrivia(e.getSourceFileOfNode(t).text,n.pos);return TD(t,i,n.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(t)||function(t){var r=e.getEffectiveReturnTypeNode(t);r&&kD(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(t),$b(t.body);var n=yi(t);if(t===e.getDeclarationOfKind(n,t.kind)&&lv(n),!e.nodeIsMissing(t.body)&&r){var i=t.parent;if(e.getClassExtendsHeritageElement(i)){Qf(t.parent,i);var a=Xf(i),o=$f(t.body);if(o){if(a&&on(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==J.target||!J.useDefineForClassFields)&&(e.some(t.parent.members,function(t){return!!e.isPrivateIdentifierPropertyDeclaration(t)||162===t.kind&&!e.hasSyntacticModifier(t,32)&&!!t.initializer})||e.some(t.parameters,function(t){return e.hasSyntacticModifier(t,92)}))){for(var s=void 0,c=0,u=t.body.statements;c=0)B(n)&&i.parameterIndex===n.parameters.length-1?on(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&k_(i.type,eo(n.parameters[i.parameterIndex]),t.type,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)});else if(a){for(var o=!1,s=0,c=r.parameters;s0),n.length>1&&on(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Ev(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=Ev(a.expression);o&&i.escapedText!==o.escapedText&&on(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else on(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 312:return function(t){var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||on(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 327:case 320:case 321:return function(t){t.typeExpression||on(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&Pb(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),$b(t.typeExpression)}(t);case 326:return function(e){$b(e.constraint);for(var t=0,r=e.typeParameters;t-1&&n1){var i=e.isEnumConst(t);e.forEach(n.declarations,function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==i&&on(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var a=!1;e.forEach(n.declarations,function(t){if(252!==t.kind)return!1;if(!t.members.length)return!1;var r=t.members[0];r.initializer||(a?on(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)})}}}(t);case 253:return function(t){if(r){var n=e.isGlobalScopeAugmentation(t),i=8388608&t.flags;n&&!i&&on(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var a=e.isAmbientModule(t);if(Hb(t,a?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;tD(t)||i||10!==t.name.kind||kD(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&(qv(t,t.name),Kv(t,t.name)),_v(t);var o=yi(t);if(512&o.flags&&!i&&o.declarations.length>1&&F(t,!!J.preserveConstEnums||!!J.isolatedModules)){var s=function(t){for(var r=0,n=t.declarations;r=e.ModuleKind.ES2015&&!(8388608&t.flags)&&kD(t,e.Diagnostics.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)}(t);case 264:return function(t){if(!Hb(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!tD(t)&&e.hasEffectiveModifiers(t)&&CD(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),t.moduleSpecifier&&t.exportClause&&e.isNamedExports(t.exportClause)&&e.length(t.exportClause.elements)&&0===V&&Zx(t,4194304),function(t){var r;t.isTypeOnly&&265!==(null===(r=t.exportClause)||void 0===r?void 0:r.kind)&&kD(t,e.Diagnostics.Only_named_exports_may_use_export_type)}(t),!t.moduleSpecifier||Wb(t)))if(t.exportClause&&!e.isNamespaceExport(t.exportClause)){e.forEach(t.exportClause.elements,Gb);var r=254===t.parent.kind&&e.isAmbientModule(t.parent.parent);294===t.parent.kind||r||!r&&254===t.parent.kind&&!t.moduleSpecifier&&8388608&t.flags||on(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var n=ii(t,t.moduleSpecifier);n&&li(n)?on(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Xi(n)):t.exportClause&&qb(t.exportClause),W!==e.ModuleKind.System&&W=e.ModuleKind.ES2015?kD(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):W===e.ModuleKind.System&&kD(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else on(t,t.isExportEquals?e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace:e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 228:case 245:return void AD(t);case 268:!function(e){Sv(e)}(t)}}(t),_=i}}function Xb(t){e.isInJSFile(t)||kD(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Yb(t){var r=bn(e.getSourceFileOfNode(t));if(!(1&r.flags)){r.deferredNodes=r.deferredNodes||new e.Map;var n=P(t);r.deferredNodes.set(n,t)}}function Zb(t){var r=_;switch(_=t,D=0,t.kind){case 200:case 201:case 202:case 160:case 272:jm(t);break;case 205:case 206:case 164:case 163:!function(t){e.Debug.assert(164!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=yc(t);if(sy(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||hc(_c(t)),227===t.body.kind)$b(t.body);else{var i=Hy(t.body),a=n&&wb(n,r);a&&w_(2==(3&r)?fv(i,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,a,t.body,t.body)}}(t);break;case 166:case 167:tv(t);break;case 218:!function(t){e.forEach(t.members,$b),Tv(t)}(t);break;case 271:!function(e){rm(e),jm(e)}(t);break;case 270:!function(e){rm(e.openingElement),zg(e.closingElement.tagName)?Kg(e.closingElement):Hy(e.closingElement.tagName),Vg(e)}(t)}_=r}function ex(r){e.performance.mark("beforeCheck"),function(r){var n=bn(r);if(!(1&n.flags)){if(e.skipTypeChecking(r,J,t))return;!function(t){8388608&t.flags&&function(t){for(var r=0,n=t.statements;r0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),ex),Kr.getDiagnostics()}(r)}finally{n=void 0}}function ix(){if(!r)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function ax(e){switch(e.kind){case 158:case 249:case 250:case 251:case 252:case 327:case 320:case 321:return!0;case 259:return e.isTypeOnly;case 262:case 267:return e.parent.parent.isTypeOnly;default:return!1}}function ox(e){for(;156===e.parent.kind;)e=e.parent;return 172===e.parent.kind}function sx(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function cx(e,t){return!!sx(e,function(e){return e===t})}function ux(e){return void 0!==function(e){for(;156===e.parent.kind;)e=e.parent;return 257===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:263===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function lx(t){if(e.isDeclarationName(t))return yi(t.parent);if(e.isInJSFile(t)&&198===t.parent.kind&&t.parent===t.parent.parent.left&&!e.isPrivateIdentifier(t)){var r=function(t){switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return yi(t.parent);case 4:case 2:case 5:return yi(t.parent.parent)}}(t);if(r)return r}if(263===t.parent.kind&&e.isEntityNameExpression(t)){var n=ri(t,2998271,!0);if(n&&n!==ye)return n}else if(!e.isPropertyAccessExpression(t)&&!e.isPrivateIdentifier(t)&&ux(t)){var i=e.getAncestor(t,257);return e.Debug.assert(void 0!==i),ei(t,!0)}if(!e.isPropertyAccessExpression(t)&&!e.isPrivateIdentifier(t)){var a=function(t){for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&192===r.kind&&r.qualifier===t)return r}(t);if(a){Rl(a);var o=bn(t).resolvedSymbol;return o===ye?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;if(function(e){for(;198===e.parent.kind;)e=e.parent;return 220===e.parent.kind}(t)){var s=0;220===t.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?ri(t,s):void 0;if(c)return c}if(322===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(158===t.parent.kind&&326===t.parent.parent.kind){e.Debug.assert(!e.isInJSFile(t));var u=e.getTypeParameterFromJsDoc(t.parent);return u&&u.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;if(78===t.kind){if(e.isJSXTagName(t)&&zg(t)){var l=Kg(t.parent);return l===ye?void 0:l}return ri(t,111551,!1,!0)}if(198===t.kind||156===t.kind){var _=bn(t);return _.resolvedSymbol||(198===t.kind?hm(t):ym(t)),_.resolvedSymbol}}else if(ox(t))return ri(t,s=172===t.parent.kind?788968:1920,!1,!0);return 171===t.parent.kind?ri(t,1):void 0}function _x(t,r){if(294===t.kind)return e.isExternalModule(t)?hi(t.symbol):void 0;var n=t.parent,i=n.parent;if(!(16777216&t.flags)){if(M(t)){var a=yi(n);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?Bg(a):a}if(e.isLiteralComputedPropertyDeclarationName(t))return yi(n.parent);if(78===t.kind){if(ux(t))return lx(t);if(195===n.kind&&193===i.kind&&t===n.propertyName){var o=Gs(dx(i),t.escapedText);if(o)return o}}switch(t.kind){case 78:case 79:case 198:case 156:return lx(t);case 107:var s=e.getThisContainer(t,!1);if(e.isFunctionLike(s)){var c=_c(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(t))return Hy(t).symbol;case 186:return Il(t).symbol;case 105:return Hy(t).symbol;case 132:var u=t.parent;return u&&165===u.kind?u.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(258===t.parent.kind||264===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJSFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return ii(t,t,r);if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&n.arguments[1]===t)return yi(n);case 8:var l=e.isElementAccessExpression(n)?n.argumentExpression===t?Wy(n.expression):void 0:e.isLiteralTypeNode(n)&&e.isIndexedAccessTypeNode(i)?Rl(i.objectType):void 0;return l&&Gs(l,e.escapeLeadingUnderscores(t.text));case 87:case 97:case 38:case 83:return yi(t.parent);case 192:return e.isLiteralImportTypeNode(t)?_x(t.argument.literal,r):void 0;case 92:return e.isExportAssignment(t.parent)?e.Debug.checkDefined(t.parent.symbol):void 0;default:return}}}function dx(t){if(16777216&t.flags)return Se;var r,n,i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),a=i&&vo(yi(i.class));if(e.isPartOfTypeNode(t)){var o=Rl(t);return a?Go(o,a.thisType):o}if(e.isExpressionNode(t))return fx(t);if(a&&!i.isImplements){var s=e.firstOrUndefined(mo(a));return s?Go(s,a.thisType):Se}if(ax(t))return wo(n=yi(t));if(78===(r=t).kind&&ax(r.parent)&&e.getNameOfDeclaration(r.parent)===r)return(n=_x(t))?wo(n):Se;if(e.isDeclaration(t))return eo(n=yi(t));if(M(t))return(n=_x(t))?eo(n):Se;if(e.isBindingPattern(t))return wa(t.parent,!0)||Se;if(ux(t)&&(n=_x(t))){var c=wo(n);return c!==Se?c:eo(n)}return Se}function px(t){if(e.Debug.assert(197===t.kind||196===t.kind),236===t.parent.kind)return Dy(t,nb(t.parent)||Se);if(213===t.parent.kind)return Dy(t,Wy(t.parent.right)||Se);if(285===t.parent.kind){var r=e.cast(t.parent.parent,e.isObjectLiteralExpression);return by(r,px(r)||Se,e.indexOfNode(r.properties,t.parent))}var n=e.cast(t.parent,e.isArrayLiteralExpression),i=px(n)||Se,a=ib(65,i,Te,t.parent)||Se;return xy(n,i,n.elements.indexOf(t),a)}function fx(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Nl(Wy(t))}function gx(t){var r=yi(t.parent);return e.hasSyntacticModifier(t,32)?eo(r):wo(r)}function mx(t){var r=t.name;switch(r.kind){case 78:return Ol(e.idText(r));case 8:case 10:return Ol(r.text);case 157:var n=Lg(r);return my(n,12288)?n:Pe;default:return e.Debug.fail("Unsupported property name.")}}function hx(t){t=Bs(t);var r=e.createSymbolTable(Cs(t)),n=$s(t,0).length?gt:$s(t,1).length?mt:void 0;return n&&e.forEach(Cs(n),function(e){r.has(e.escapedName)||r.set(e.escapedName,e)}),Fi(r)}function yx(t){return e.typeHasCallOrConstructSignatures(t,ce)}function vx(t){if(e.isGeneratedIdentifier(t))return!1;var r=e.getParseTreeNode(t,e.isIdentifier);if(!r)return!1;var n=r.parent;return!(!n||(e.isPropertyAccessExpression(n)||e.isPropertyAssignment(n))&&n.name===r||Kx(r)!==oe)}function bx(t){var r=ii(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=li(r),i=vn(r=ci(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(111551&r.flags):e.forEachEntry(fi(r),function(e){return(e=Hn(e))&&!!(111551&e.flags)})),i.exportsSomeValue}function xx(t,r){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var i=Kx(n,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(n));if(i){if(1048576&i.flags){var a=hi(i.exportSymbol);if(!r&&944&a.flags&&!(3&a.flags))return;i=a}var o=vi(i);if(o){if(512&o.flags&&294===o.valueDeclaration.kind){var s=o.valueDeclaration;return s!==e.getSourceFileOfNode(n)?void 0:s}return e.findAncestor(n.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&yi(t)===o})}}}}function Dx(t){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=Kx(r);if(Kn(n,111551)&&!Xn(n))return Ln(n)}}function Sx(t){if(418&t.flags&&!e.isSourceFile(t.valueDeclaration)){var r=vn(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)||function(t){return e.isBindingElement(t.valueDeclaration)&&284===e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind}(t)){var i=bn(t.valueDeclaration);if(Cn(n.parent,t.escapedName,111551,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(262144&i.flags){var a=524288&i.flags,o=e.isIterationStatement(n,!1),s=227===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||a&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function Ex(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=Kx(r);if(n&&Sx(n))return n.valueDeclaration}}}function Cx(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=yi(r);if(n)return Sx(n)}return!1}function Tx(t){switch(t.kind){case 257:return wx(yi(t)||ye);case 259:case 260:case 262:case 267:var r=yi(t)||ye;return wx(r)&&!Xn(r);case 264:var n=t.exportClause;return!!n&&(e.isNamespaceExport(n)||e.some(n.elements,Tx));case 263:return!t.expression||78!==t.expression.kind||wx(yi(t)||ye)}return!1}function kx(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||294!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&wx(yi(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function wx(e){var t=Gn(e);return t===ye||!!(111551&t.flags)&&(J.preserveConstEnums||!Ax(t))}function Ax(e){return vy(e)||!!e.constEnumOnlyModule}function Nx(t,r){if(Rn(t)){var n=yi(t);if(n&&vn(n).referenced)return!0;var i=vn(n).target;if(i&&1&e.getEffectiveModifierFlags(t)&&111551&i.flags&&(J.preserveConstEnums||!Ax(i)))return!0}return!!r&&!!e.forEachChild(t,function(e){return Nx(e,r)})}function Px(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=fc(yi(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function Ox(t){return!(!K||oc(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,92))}function Fx(t){return K&&oc(t)&&!t.initializer&&e.hasSyntacticModifier(t,92)}function Ix(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=yi(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(pi(n),function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)})}function Mx(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=yi(r);return n&&Cs(eo(n))||e.emptyArray}function Lx(e){return bn(e).flags||0}function Rx(e){return jb(e.parent),bn(e).enumMemberValue}function Bx(e){switch(e.kind){case 288:case 198:case 199:return!0}return!1}function jx(t){if(288===t.kind)return Rx(t);var r=bn(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return Rx(n)}}function Ux(e){return!!(524288&e.flags)&&$s(e,0).length>0}function zx(t,r){var n,i=e.getParseTreeNode(t,e.isEntityName);if(!i)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var a=ri(i,111551,!0,!0,r),o=(null===(n=null==a?void 0:a.declarations)||void 0===n?void 0:n.every(e.isTypeOnlyImportOrExportDeclaration))||!1,s=a&&2097152&a.flags?Gn(a):a,c=ri(i,788968,!0,!1,r);if(s&&s===c){var u=uu(!1);if(u&&s===u)return e.TypeReferenceSerializationKind.Promise;var l=eo(s);if(l&&uo(l))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!c)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var _=wo(c);return _===Se?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&_.flags?e.TypeReferenceSerializationKind.ObjectType:my(_,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:my(_,528)?e.TypeReferenceSerializationKind.BooleanType:my(_,296)?e.TypeReferenceSerializationKind.NumberLikeType:my(_,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:my(_,132)?e.TypeReferenceSerializationKind.StringLikeType:Fd(_)?e.TypeReferenceSerializationKind.ArrayLikeType:my(_,12288)?e.TypeReferenceSerializationKind.ESSymbolType:Ux(_)?e.TypeReferenceSerializationKind.TypeWithCallSignature:hd(_)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function Jx(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(128);var s=yi(o),c=!s||133120&s.flags?Se:Ad(eo(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=qd(c)),te.typeToTypeNode(c,r,1024|n,i)}function Vx(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(128);var o=_c(a);return te.typeToTypeNode(hc(o),r,1024|n,i)}function Wx(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(128);var o=op(fx(a));return te.typeToTypeNode(o,r,1024|n,i)}function qx(t){return re.has(e.escapeLeadingUnderscores(t))}function Kx(t,r){var n=bn(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=ma(a))}return Cn(i,t.escapedText,3257279,void 0,void 0,!0)}function Hx(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=Kx(r);if(n)return Ei(n).valueDeclaration}}}function Gx(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&Pl(eo(yi(t)))}function Qx(t,r){return function(t,r,n){var i=1024&t.flags?te.symbolToExpression(t.symbol,111551,r,void 0,n):t===Le?e.factory.createTrue():t===Ie&&e.factory.createFalse();if(i)return i;var a=t.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}(eo(yi(t)),t,r)}function $x(t){return t?(nn(t),e.getSourceFileOfNode(t).localJsxFactory||er):er}function Xx(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxFragmentFactory)return r.localJsxFragmentFactory;var n=r.pragmas.get("jsxfrag"),i=e.isArray(n)?n[0]:n;if(i)return r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,V),r.localJsxFragmentFactory}}if(J.jsxFragmentFactory)return e.parseIsolatedEntityName(J.jsxFragmentFactory,V)}function Yx(t){var r=253===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=ai(r,r,void 0);if(n)return e.getDeclarationOfKind(n,294)}function Zx(t,r){if((o&r)!==r&&J.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,J)&&!(8388608&t.flags)){var i=(l||(l=oi(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||ye),l);if(i!==ye)for(var a=r&~o,s=1;s<=4194304;s<<=1)if(a&s){var c=eD(s);Dn(i.exports,e.escapeLeadingUnderscores(c),111551)||on(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c)}o|=r}}}function eD(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__spreadArrays";case 4096:return"__await";case 8192:return"__asyncGenerator";case 16384:return"__asyncDelegator";case 32768:return"__asyncValues";case 65536:return"__exportStar";case 131072:return"__importStar";case 262144:return"__importDefault";case 524288:return"__makeTemplateObject";case 1048576:return"__classPrivateFieldGet";case 2097152:return"__classPrivateFieldSet";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function tD(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 164!==t.kind||e.nodeIsPresent(t.body)?CD(t,e.Diagnostics.Decorators_are_not_valid_here):CD(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(166===t.kind||167===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return CD(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||function(t){var r,n,i,a,o=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 166:case 167:case 165:case 162:case 161:case 164:case 163:case 170:case 253:case 258:case 257:case 264:case 263:case 205:case 206:case 159:return!1;default:if(254===t.parent.kind||294===t.parent.kind)return!1;switch(t.kind){case 248:return rD(t,129);case 249:return rD(t,125);case 250:case 229:case 251:return!0;case 252:return rD(t,84);default:return e.Debug.fail(),!1}}}(t)?CD(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==o)return o;for(var s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function nD(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&TD(t[0],t.end-",".length,",".length,r)}function iD(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return TD(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function aD(t){var r=e.getSourceFileOfNode(t);return tD(t)||iD(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=e.filter(t.parameters,function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)});if(e.length(n)){e.forEach(n,function(t){e.addRelatedInfo(on(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))});var a=n.map(function(t,r){return e.createDiagnosticForNode(t,0===r?e.Diagnostics.Non_simple_parameter_declared_here:e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,i([on(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a)),!0}}}return!1}(t)}function oD(t,r){return nD(r)||function(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return TD(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function sD(t){return function(t){if(t)for(var r=0,n=t;r1)return CD(a.declarations[1],r=235===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement);var s=o[0];if(s.initializer)return kD(s.name,r=235===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer);if(s.type)return kD(s,r=235===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function gD(t){if(t.parameters.length===(166===t.kind?1:2))return e.getThisParameter(t)}function mD(t,r){if(function(t){return e.isDynamicName(t)&&!jo(t)}(t))return kD(t,r)}function hD(t){if(aD(t))return!0;if(164===t.kind){if(197===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||129!==e.first(t.modifiers).kind))return CD(t,e.Diagnostics.Modifiers_cannot_appear_here);if(dD(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(pD(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return TD(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(_D(t))return!0}if(e.isClassLike(t.parent)){if(8388608&t.flags)return mD(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(164===t.kind&&!t.body)return mD(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(250===t.parent.kind)return mD(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(176===t.parent.kind)return mD(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function yD(t){return e.isStringOrNumericLiteralLike(t)||211===t.kind&&40===t.operator&&8===t.operand.kind}function vD(t){var r,n=t.initializer;if(n){var i=!(yD(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&yD(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&Ay(t).flags)}(n)||109===n.kind||94===n.kind||(r=n,9===r.kind||211===r.kind&&40===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return kD(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return kD(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!a||i)return kD(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function bD(t){if(78===t.kind){if("__esModule"===e.idText(t))return o=e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules,!ED(e.getSourceFileOfNode(a=t))&&(an("noEmit",a,o,void 0,void 0,void 0),!0)}else for(var r=0,n=t.elements;r0}function CD(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!ED(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Kr.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function TD(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!ED(c)&&(Kr.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function kD(t,r,n,i,a){return!ED(e.getSourceFileOfNode(t))&&(Kr.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function wD(t){return 250!==t.kind&&251!==t.kind&&258!==t.kind&&257!==t.kind&&264!==t.kind&&263!==t.kind&&256!==t.kind&&!e.hasSyntacticModifier(t,515)&&CD(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function AD(t){if(8388608&t.flags){if(!bn(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return bn(t).hasReportedStatementInAmbientContext=CD(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(227===t.parent.kind||254===t.parent.kind||294===t.parent.kind){var r=bn(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=CD(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function ND(t){if(32&t.numericLiteralFlags){var r=void 0;if(V>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,190)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,288)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&40===t.parent.operator;return kD(n?t.parent:t,r,(n?"-":"")+"0o"+t.text)}}return function(t){if(!(16&t.numericLiteralFlags||t.text.length<=15||-1!==t.text.indexOf("."))){var r=+e.getTextOfNode(t);r<=Math.pow(2,53)-1&&r+1>r||sn(!1,e.createDiagnosticForNode(t,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}}(t),!1}function PD(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=Cs(t);if(a){var o=Qp(a,r);if(o)return Y_(r,e.map(o,function(e){return[function(){return eo(e)},e.escapedName]}),n,void 0,i)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(k||(k={})),e.signatureHasRestParameter=B,e.signatureHasLiteralTypes=j}(l||(l={})),function(e){var t=e.or(e.isTypeNode,e.isTypeParameterDeclaration);function r(t,r,n,i){if(void 0===t||void 0===r)return t;var a,o=r(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||c)(o):o,e.Debug.assertNode(a,n),a):void 0}function n(t,r,n,i,a){if(void 0===t||void 0===r)return t;var o,s,c=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>c-i)&&(a=c-i);var u=-1,l=-1;(i>0||a=2&&(s=function(t,r){for(var n,i=0;i0&&p<=155||186===p)return o;var f=u.factory;switch(p){case 78:return f.updateIdentifier(o,l(o.typeArguments,c,t));case 156:return f.updateQualifiedName(o,d(o.left,c,e.isEntityName),d(o.right,c,e.isIdentifier));case 157:return f.updateComputedPropertyName(o,d(o.expression,c,e.isExpression));case 158:return f.updateTypeParameterDeclaration(o,d(o.name,c,e.isIdentifier),d(o.constraint,c,e.isTypeNode),d(o.default,c,e.isTypeNode));case 159:return f.updateParameterDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.dotDotDotToken,_,e.isToken),d(o.name,c,e.isBindingName),d(o.questionToken,_,e.isToken),d(o.type,c,e.isTypeNode),d(o.initializer,c,e.isExpression));case 160:return f.updateDecorator(o,d(o.expression,c,e.isExpression));case 161:return f.updatePropertySignature(o,l(o.modifiers,c,e.isToken),d(o.name,c,e.isPropertyName),d(o.questionToken,_,e.isToken),d(o.type,c,e.isTypeNode));case 162:return f.updatePropertyDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isPropertyName),d(o.questionToken||o.exclamationToken,_,e.isToken),d(o.type,c,e.isTypeNode),d(o.initializer,c,e.isExpression));case 163:return f.updateMethodSignature(o,l(o.modifiers,c,e.isModifier),d(o.name,c,e.isPropertyName),d(o.questionToken,_,e.isToken),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 164:return f.updateMethodDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.asteriskToken,_,e.isToken),d(o.name,c,e.isPropertyName),d(o.questionToken,_,e.isToken),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),s(o.body,c,u,d));case 165:return f.updateConstructorDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),a(o.parameters,c,u,l),s(o.body,c,u,d));case 166:return f.updateGetAccessorDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isPropertyName),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),s(o.body,c,u,d));case 167:return f.updateSetAccessorDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isPropertyName),a(o.parameters,c,u,l),s(o.body,c,u,d));case 168:return f.updateCallSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 169:return f.updateConstructSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 170:return f.updateIndexSignature(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 171:return f.updateTypePredicateNode(o,d(o.assertsModifier,c),d(o.parameterName,c),d(o.type,c,e.isTypeNode));case 172:return f.updateTypeReferenceNode(o,d(o.typeName,c,e.isEntityName),l(o.typeArguments,c,e.isTypeNode));case 173:return f.updateFunctionTypeNode(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 174:return f.updateConstructorTypeNode(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 175:return f.updateTypeQueryNode(o,d(o.exprName,c,e.isEntityName));case 176:return f.updateTypeLiteralNode(o,l(o.members,c,e.isTypeElement));case 177:return f.updateArrayTypeNode(o,d(o.elementType,c,e.isTypeNode));case 178:return f.updateTupleTypeNode(o,l(o.elements,c,e.isTypeNode));case 179:return f.updateOptionalTypeNode(o,d(o.type,c,e.isTypeNode));case 180:return f.updateRestTypeNode(o,d(o.type,c,e.isTypeNode));case 181:return f.updateUnionTypeNode(o,l(o.types,c,e.isTypeNode));case 182:return f.updateIntersectionTypeNode(o,l(o.types,c,e.isTypeNode));case 183:return f.updateConditionalTypeNode(o,d(o.checkType,c,e.isTypeNode),d(o.extendsType,c,e.isTypeNode),d(o.trueType,c,e.isTypeNode),d(o.falseType,c,e.isTypeNode));case 184:return f.updateInferTypeNode(o,d(o.typeParameter,c,e.isTypeParameterDeclaration));case 192:return f.updateImportTypeNode(o,d(o.argument,c,e.isTypeNode),d(o.qualifier,c,e.isEntityName),n(o.typeArguments,c,e.isTypeNode),o.isTypeOf);case 191:return f.updateNamedTupleMember(o,r(o.dotDotDotToken,c,e.isToken),r(o.name,c,e.isIdentifier),r(o.questionToken,c,e.isToken),r(o.type,c,e.isTypeNode));case 185:return f.updateParenthesizedType(o,d(o.type,c,e.isTypeNode));case 187:return f.updateTypeOperatorNode(o,d(o.type,c,e.isTypeNode));case 188:return f.updateIndexedAccessTypeNode(o,d(o.objectType,c,e.isTypeNode),d(o.indexType,c,e.isTypeNode));case 189:return f.updateMappedTypeNode(o,d(o.readonlyToken,_,e.isToken),d(o.typeParameter,c,e.isTypeParameterDeclaration),d(o.questionToken,_,e.isToken),d(o.type,c,e.isTypeNode));case 190:return f.updateLiteralTypeNode(o,d(o.literal,c,e.isExpression));case 193:return f.updateObjectBindingPattern(o,l(o.elements,c,e.isBindingElement));case 194:return f.updateArrayBindingPattern(o,l(o.elements,c,e.isArrayBindingElement));case 195:return f.updateBindingElement(o,d(o.dotDotDotToken,_,e.isToken),d(o.propertyName,c,e.isPropertyName),d(o.name,c,e.isBindingName),d(o.initializer,c,e.isExpression));case 196:return f.updateArrayLiteralExpression(o,l(o.elements,c,e.isExpression));case 197:return f.updateObjectLiteralExpression(o,l(o.properties,c,e.isObjectLiteralElementLike));case 198:return 32&o.flags?f.updatePropertyAccessChain(o,d(o.expression,c,e.isExpression),d(o.questionDotToken,_,e.isToken),d(o.name,c,e.isIdentifier)):f.updatePropertyAccessExpression(o,d(o.expression,c,e.isExpression),d(o.name,c,e.isIdentifierOrPrivateIdentifier));case 199:return 32&o.flags?f.updateElementAccessChain(o,d(o.expression,c,e.isExpression),d(o.questionDotToken,_,e.isToken),d(o.argumentExpression,c,e.isExpression)):f.updateElementAccessExpression(o,d(o.expression,c,e.isExpression),d(o.argumentExpression,c,e.isExpression));case 200:return 32&o.flags?f.updateCallChain(o,d(o.expression,c,e.isExpression),d(o.questionDotToken,_,e.isToken),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression)):f.updateCallExpression(o,d(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression));case 201:return f.updateNewExpression(o,d(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression));case 202:return f.updateTaggedTemplateExpression(o,d(o.tag,c,e.isExpression),n(o.typeArguments,c,e.isExpression),d(o.template,c,e.isTemplateLiteral));case 203:return f.updateTypeAssertion(o,d(o.type,c,e.isTypeNode),d(o.expression,c,e.isExpression));case 204:return f.updateParenthesizedExpression(o,d(o.expression,c,e.isExpression));case 205:return f.updateFunctionExpression(o,l(o.modifiers,c,e.isModifier),d(o.asteriskToken,_,e.isToken),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),s(o.body,c,u,d));case 206:return f.updateArrowFunction(o,l(o.modifiers,c,e.isModifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),d(o.equalsGreaterThanToken,_,e.isToken),s(o.body,c,u,d));case 207:return f.updateDeleteExpression(o,d(o.expression,c,e.isExpression));case 208:return f.updateTypeOfExpression(o,d(o.expression,c,e.isExpression));case 209:return f.updateVoidExpression(o,d(o.expression,c,e.isExpression));case 210:return f.updateAwaitExpression(o,d(o.expression,c,e.isExpression));case 211:return f.updatePrefixUnaryExpression(o,d(o.operand,c,e.isExpression));case 212:return f.updatePostfixUnaryExpression(o,d(o.operand,c,e.isExpression));case 213:return f.updateBinaryExpression(o,d(o.left,c,e.isExpression),d(o.operatorToken,_,e.isToken),d(o.right,c,e.isExpression));case 214:return f.updateConditionalExpression(o,d(o.condition,c,e.isExpression),d(o.questionToken,_,e.isToken),d(o.whenTrue,c,e.isExpression),d(o.colonToken,_,e.isToken),d(o.whenFalse,c,e.isExpression));case 215:return f.updateTemplateExpression(o,d(o.head,c,e.isTemplateHead),l(o.templateSpans,c,e.isTemplateSpan));case 216:return f.updateYieldExpression(o,d(o.asteriskToken,_,e.isToken),d(o.expression,c,e.isExpression));case 217:return f.updateSpreadElement(o,d(o.expression,c,e.isExpression));case 218:return f.updateClassExpression(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isClassElement));case 220:return f.updateExpressionWithTypeArguments(o,d(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode));case 221:return f.updateAsExpression(o,d(o.expression,c,e.isExpression),d(o.type,c,e.isTypeNode));case 222:return 32&o.flags?f.updateNonNullChain(o,d(o.expression,c,e.isExpression)):f.updateNonNullExpression(o,d(o.expression,c,e.isExpression));case 223:return f.updateMetaProperty(o,d(o.name,c,e.isIdentifier));case 225:return f.updateTemplateSpan(o,d(o.expression,c,e.isExpression),d(o.literal,c,e.isTemplateMiddleOrTemplateTail));case 227:return f.updateBlock(o,l(o.statements,c,e.isStatement));case 229:return f.updateVariableStatement(o,l(o.modifiers,c,e.isModifier),d(o.declarationList,c,e.isVariableDeclarationList));case 230:return f.updateExpressionStatement(o,d(o.expression,c,e.isExpression));case 231:return f.updateIfStatement(o,d(o.expression,c,e.isExpression),d(o.thenStatement,c,e.isStatement,f.liftToBlock),d(o.elseStatement,c,e.isStatement,f.liftToBlock));case 232:return f.updateDoStatement(o,d(o.statement,c,e.isStatement,f.liftToBlock),d(o.expression,c,e.isExpression));case 233:return f.updateWhileStatement(o,d(o.expression,c,e.isExpression),d(o.statement,c,e.isStatement,f.liftToBlock));case 234:return f.updateForStatement(o,d(o.initializer,c,e.isForInitializer),d(o.condition,c,e.isExpression),d(o.incrementor,c,e.isExpression),d(o.statement,c,e.isStatement,f.liftToBlock));case 235:return f.updateForInStatement(o,d(o.initializer,c,e.isForInitializer),d(o.expression,c,e.isExpression),d(o.statement,c,e.isStatement,f.liftToBlock));case 236:return f.updateForOfStatement(o,d(o.awaitModifier,_,e.isToken),d(o.initializer,c,e.isForInitializer),d(o.expression,c,e.isExpression),d(o.statement,c,e.isStatement,f.liftToBlock));case 237:return f.updateContinueStatement(o,d(o.label,c,e.isIdentifier));case 238:return f.updateBreakStatement(o,d(o.label,c,e.isIdentifier));case 239:return f.updateReturnStatement(o,d(o.expression,c,e.isExpression));case 240:return f.updateWithStatement(o,d(o.expression,c,e.isExpression),d(o.statement,c,e.isStatement,f.liftToBlock));case 241:return f.updateSwitchStatement(o,d(o.expression,c,e.isExpression),d(o.caseBlock,c,e.isCaseBlock));case 242:return f.updateLabeledStatement(o,d(o.label,c,e.isIdentifier),d(o.statement,c,e.isStatement,f.liftToBlock));case 243:return f.updateThrowStatement(o,d(o.expression,c,e.isExpression));case 244:return f.updateTryStatement(o,d(o.tryBlock,c,e.isBlock),d(o.catchClause,c,e.isCatchClause),d(o.finallyBlock,c,e.isBlock));case 246:return f.updateVariableDeclaration(o,d(o.name,c,e.isBindingName),d(o.exclamationToken,_,e.isToken),d(o.type,c,e.isTypeNode),d(o.initializer,c,e.isExpression));case 247:return f.updateVariableDeclarationList(o,l(o.declarations,c,e.isVariableDeclaration));case 248:return f.updateFunctionDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.asteriskToken,_,e.isToken),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),s(o.body,c,u,d));case 249:return f.updateClassDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isClassElement));case 250:return f.updateInterfaceDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isTypeElement));case 251:return f.updateTypeAliasDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),d(o.type,c,e.isTypeNode));case 252:return f.updateEnumDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.members,c,e.isEnumMember));case 253:return f.updateModuleDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),d(o.body,c,e.isModuleBody));case 254:return f.updateModuleBlock(o,l(o.statements,c,e.isStatement));case 255:return f.updateCaseBlock(o,l(o.clauses,c,e.isCaseOrDefaultClause));case 256:return f.updateNamespaceExportDeclaration(o,d(o.name,c,e.isIdentifier));case 257:return f.updateImportEqualsDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),d(o.moduleReference,c,e.isModuleReference));case 258:return f.updateImportDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.importClause,c,e.isImportClause),d(o.moduleSpecifier,c,e.isExpression));case 259:return f.updateImportClause(o,o.isTypeOnly,d(o.name,c,e.isIdentifier),d(o.namedBindings,c,e.isNamedImportBindings));case 260:return f.updateNamespaceImport(o,d(o.name,c,e.isIdentifier));case 266:return f.updateNamespaceExport(o,d(o.name,c,e.isIdentifier));case 261:return f.updateNamedImports(o,l(o.elements,c,e.isImportSpecifier));case 262:return f.updateImportSpecifier(o,d(o.propertyName,c,e.isIdentifier),d(o.name,c,e.isIdentifier));case 263:return f.updateExportAssignment(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.expression,c,e.isExpression));case 264:return f.updateExportDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),o.isTypeOnly,d(o.exportClause,c,e.isNamedExportBindings),d(o.moduleSpecifier,c,e.isExpression));case 265:return f.updateNamedExports(o,l(o.elements,c,e.isExportSpecifier));case 267:return f.updateExportSpecifier(o,d(o.propertyName,c,e.isIdentifier),d(o.name,c,e.isIdentifier));case 269:return f.updateExternalModuleReference(o,d(o.expression,c,e.isExpression));case 270:return f.updateJsxElement(o,d(o.openingElement,c,e.isJsxOpeningElement),l(o.children,c,e.isJsxChild),d(o.closingElement,c,e.isJsxClosingElement));case 271:return f.updateJsxSelfClosingElement(o,d(o.tagName,c,e.isJsxTagNameExpression),l(o.typeArguments,c,e.isTypeNode),d(o.attributes,c,e.isJsxAttributes));case 272:return f.updateJsxOpeningElement(o,d(o.tagName,c,e.isJsxTagNameExpression),l(o.typeArguments,c,e.isTypeNode),d(o.attributes,c,e.isJsxAttributes));case 273:return f.updateJsxClosingElement(o,d(o.tagName,c,e.isJsxTagNameExpression));case 274:return f.updateJsxFragment(o,d(o.openingFragment,c,e.isJsxOpeningFragment),l(o.children,c,e.isJsxChild),d(o.closingFragment,c,e.isJsxClosingFragment));case 277:return f.updateJsxAttribute(o,d(o.name,c,e.isIdentifier),d(o.initializer,c,e.isStringLiteralOrJsxExpression));case 278:return f.updateJsxAttributes(o,l(o.properties,c,e.isJsxAttributeLike));case 279:return f.updateJsxSpreadAttribute(o,d(o.expression,c,e.isExpression));case 280:return f.updateJsxExpression(o,d(o.expression,c,e.isExpression));case 281:return f.updateCaseClause(o,d(o.expression,c,e.isExpression),l(o.statements,c,e.isStatement));case 282:return f.updateDefaultClause(o,l(o.statements,c,e.isStatement));case 283:return f.updateHeritageClause(o,l(o.types,c,e.isExpressionWithTypeArguments));case 284:return f.updateCatchClause(o,d(o.variableDeclaration,c,e.isVariableDeclaration),d(o.block,c,e.isBlock));case 285:return f.updatePropertyAssignment(o,d(o.name,c,e.isPropertyName),d(o.initializer,c,e.isExpression));case 286:return f.updateShorthandPropertyAssignment(o,d(o.name,c,e.isIdentifier),d(o.objectAssignmentInitializer,c,e.isExpression));case 287:return f.updateSpreadAssignment(o,d(o.expression,c,e.isExpression));case 288:return f.updateEnumMember(o,d(o.name,c,e.isPropertyName),d(o.initializer,c,e.isExpression));case 294:return f.updateSourceFile(o,i(o.statements,c,u));case 331:return f.updatePartiallyEmittedExpression(o,d(o.expression,c,e.isExpression));case 332:return f.updateCommaListExpression(o,l(o.elements,c,e.isExpression));default:return o}}}}(l||(l={})),function(e){e.createSourceMapGenerator=function(t,r,n,i,o){var c,u,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,_=l.enter,d=l.exit,p=[],f=[],g=new e.Map,m=[],h="",y=0,v=0,b=0,x=0,D=0,S=0,E=!1,C=0,T=0,k=0,w=0,A=0,N=0,P=!1,O=!1,F=!1;return{getSources:function(){return p},addSource:I,setSourceContent:M,addName:L,addMapping:R,appendSourceMap:function(t,r,n,i,o,s){e.Debug.assert(t>=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),_();for(var c,u=[],l=a(n.mappings),p=l.next();!p.done;p=l.next()){var f=p.value;if(s&&(f.generatedLine>s.line||f.generatedLine===s.line&&f.generatedCharacter>s.character))break;if(!o||!(f.generatedLine=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),_(),(function(e,t){return!P||C!==e||T!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(w>t||w===t&&A>r)}(n,i,a))&&(B(),C=t,T=r,O=!1,F=!1,P=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,w=i,A=a,O=!0,void 0!==o&&(N=o,F=!0)),d()}function B(){if(P&&(!E||y!==C||v!==T||b!==k||x!==w||D!==A||S!==N)){if(_(),y=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(n))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return d("Invalid character in VLQ"),-1;r=0!=(32&o),a|=(31&o)<>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(t){t<0?t=1+(-t<<1):t<<=1;var r,n="";do{var i=31&t;(t>>=5)>0&&(i|=32),n+=String.fromCharCode((r=i)>=0&&r<26?65+r:r>=26&&r<52?97+r-26:r>=52&&r<62?48+r-52:62===r?43:63===r?47:e.Debug.fail(r+": not a base64 value"))}while(t>0);return n}function c(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function u(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function _(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function d(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=function(e,t){return{getLineCount:function(){return t.length},getLineText:function(r){return e.substring(t[r],t[r+1])}}},e.tryGetSourceMappingURL=function(e){for(var n=e.getLineCount()-1;n>=0;n--){var i=e.getLineText(n),a=t.exec(i);if(a)return a[1];if(!i.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(r){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,r,n){var i,s,f,g=e.getDirectoryPath(n),m=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,g):g,h=e.getNormalizedAbsolutePath(r.file,g),y=t.getSourceFileLike(h),v=r.sources.map(function(t){return e.getNormalizedAbsolutePath(t,m)}),b=new e.Map(v.map(function(e,r){return[t.getCanonicalFileName(e),r]}));return{getSourcePosition:function(t){var r=E();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,p,e.compareValues);n<0&&(n=~n);var i=r[n];return void 0!==i&&c(i)?{fileName:v[i.sourceIndex],pos:i.sourcePosition}:t},getGeneratedPosition:function(r){var n=b.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=S(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,d,e.compareValues);a<0&&(a=~a);var o=i[a];return void 0===o||o.sourceIndex!==n?r:{fileName:h,pos:o.generatedPosition}}};function x(n){var i,a,s=void 0!==y?e.getPositionOfLineAndCharacter(y,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(v[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function D(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,x);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: "+n.error),i=e.emptyArray):i=o}return i}function S(t){if(void 0===f){for(var r=[],n=0,i=D();n0&&i!==n.elements.length||!!(n.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!n(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&function(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,r)}(t.importClause.namedBindings))}function a(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i=63&&e<=77},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 63:return 39;case 64:return 40;case 65:return 41;case 66:return 42;case 67:return 43;case 68:return 44;case 69:return 47;case 70:return 48;case 71:return 49;case 72:return 50;case 73:return 51;case 77:return 52;case 74:return 56;case 75:return 55;case 76:return 60}},e.addPrologueDirectivesAndInitialSuperCall=function(t,r,n,i){if(r.body){var a=r.body.statements,o=t.copyPrologue(a,n,!1,i);if(o===a.length)return o;var s=e.findIndex(a,function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)},o);if(s>-1){for(var c=o;c<=s;c++)n.push(e.visitNode(a[c],i,e.isStatement));return s+1}return o}return 0},e.getProperties=function(t,r,n){return e.filter(t.members,function(t){return function(t,r,n){return e.isPropertyDeclaration(t)&&(!!t.initializer||!r)&&e.hasStaticModifier(t)===n}(t,r,n)})},e.isInitializedProperty=function(e){return 162===e.kind&&void 0!==e.initializer}}(l||(l={})),function(e){function t(r,n){var i=e.getTargetOfBindingOrAssignmentElement(r);return e.isBindingOrAssignmentPattern(i)?function(r,n){for(var i=0,a=e.getElementsOfBindingOrAssignmentPattern(r);i=1)||24576&f.transformFlags||24576&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);var m=i(t,s,g);e.isComputedPropertyName(g)&&(l=e.append(l,m.argumentExpression)),n(t,f,m,f)}else u=e.append(u,e.visitNode(f,t.visitor))}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o)}(t,r,l,o,s):e.isArrayBindingOrAssignmentPattern(l)?function(t,r,i,o,s){var c,u,l=e.getElementsOfBindingOrAssignmentPattern(i),_=l.length;t.level<1&&t.downlevelIteration?o=a(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(o,_>0&&e.getRestIndicatorOfBindingOrAssignmentElement(l[_-1])?void 0:_),s),!1,s):(1!==_&&(t.level<1||0===_)||e.every(l,e.isOmittedExpression))&&(o=a(t,o,!e.isDeclarationBindingElement(r)||0!==_,s));for(var d=0;d<_;d++){var p=l[d];if(t.level>=1)if(16384&p.transformFlags){var f=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(f),u=e.append(u,[f,p]),c=e.append(c,t.createArrayBindingOrAssignmentElement(f))}else c=e.append(c,p);else{if(e.isOmittedExpression(p))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(p))d===_-1&&(g=t.context.factory.createArraySliceCall(o,d),n(t,p,g,p));else{var g=t.context.factory.createElementAccessExpression(o,d);n(t,p,g,p)}}}if(c&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(c),o,s,i),u)for(var m=0,h=u;m0)return!0;var r=e.getFirstConstructorWithBody(t);return!!r&&e.forEach(r.parameters,B)}(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),Ee(t)?n|=8:function(t){return Ce(t)&&e.hasSyntacticModifier(t,512)}(t)?n|=32:Te(t)&&(n|=16),x<=1&&7&n&&(n|=128),n}(i,e.getProperties(i,!0,!0));128&a&&t.startLexicalEnvironment();var o=i.name||(5&a?d.getGeneratedNameForNode(i):void 0),s=2&a?function(r,n){var i=e.moveRangePastDecorators(r),a=function(r){if(16777216&y.getNodeCheckFlags(r)){0==(1&u)&&(u|=1,t.enableSubstitution(78),l=[]);var n=d.createUniqueName(r.name&&!e.isGeneratedIdentifier(r.name)?e.idText(r.name):"default");return l[e.getOriginalNodeId(r)]=n,h(n),n}}(r),o=d.getLocalName(r,!1,!0),s=e.visitNodes(r.heritageClauses,k,e.isHeritageClause),c=z(r),_=d.createClassExpression(void 0,void 0,n,void 0,s,c);e.setOriginalNode(_,r),e.setTextRange(_,i);var p=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(o,void 0,void 0,a?d.createAssignment(a,_):_)],1));return e.setOriginalNode(p,r),e.setTextRange(p,i),e.setCommentRange(p,r),p}(i,o):function(t,r,n){var i=128&n?void 0:e.visitNodes(t.modifiers,M,e.isModifier),a=d.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,k,e.isHeritageClause),z(t)),o=e.getEmitFlags(t);return 1&n&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}(i,o,a),c=[s];if(q(c,i,!1),q(c,i,!0),function(t,r){var n=function(t){var r=W(t,t,function(t){var r=t.decorators,n=V(e.getFirstConstructorWithBody(t));if(r||n)return{decorators:r,parameters:n}}(t));if(r){var n=l&&l[e.getOriginalNodeId(t)],i=d.getLocalName(t,!1,!0),a=p().createDecorateHelper(r,i),o=d.createAssignment(i,n?d.createAssignment(n,a):a);return e.setEmitFlags(o,1536),e.setSourceMapRange(o,e.moveRangePastDecorators(t)),o}}(r);n&&t.push(e.setOriginalNode(d.createExpressionStatement(n),r))}(c,i),128&a){var _=e.createTokenRange(e.skipTrivia(r.text,i.members.end),19),f=d.getInternalName(i),g=d.createPartiallyEmittedExpression(f);e.setTextRangeEnd(g,_.end),e.setEmitFlags(g,1536);var m=d.createReturnStatement(g);e.setTextRangePos(m,_.pos),e.setEmitFlags(m,1920),c.push(m),e.insertStatementsAfterStandardPrologue(c,t.endLexicalEnvironment());var v=d.createImmediatelyInvokedArrowFunction(c);e.setEmitFlags(v,33554432);var b=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(d.getLocalName(i,!1,!1),void 0,void 0,v)]));e.setOriginalNode(b,i),e.setCommentRange(b,i),e.setSourceMapRange(b,e.moveRangePastDecorators(i)),e.startOnNewLine(b),c=[b]}return 8&a?we(c,i):(128&a||2&a)&&(32&a?c.push(d.createExportDefault(d.getLocalName(i,!1,!0))):16&a&&c.push(d.createExternalModuleExport(d.getLocalName(i,!1,!0)))),c.length>1&&(c.push(d.createEndOfDeclarationMarker(i)),e.setEmitFlags(s,4194304|e.getEmitFlags(s))),e.singleOrMany(c)}(o);case 218:return function(r){if(!U(r))return e.visitEachChild(r,k,t);var n=d.createClassExpression(void 0,void 0,r.name,void 0,e.visitNodes(r.heritageClauses,k,e.isHeritageClause),z(r));return e.setOriginalNode(n,r),e.setTextRange(n,r),n}(o);case 283:return function(r){if(116!==r.token)return e.visitEachChild(r,k,t)}(o);case 220:return function(t){return d.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,k,e.isLeftHandSideExpression),void 0)}(o);case 164:return function(r){if(ae(r)){var n=d.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,ie(r),void 0,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(o);case 166:return function(r){if(ue(r)){var n=d.updateGetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),ie(r),e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||d.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(o);case 167:return function(r){if(ue(r)){var n=d.updateSetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),ie(r),e.visitParameterList(r.parameters,k,t),e.visitFunctionBody(r.body,k,t)||d.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(o);case 248:return function(r){if(!ae(r))return d.createNotEmittedStatement(r);var n=d.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||d.createBlock([]));if(Ee(r)){var i=[n];return we(i,r),i}return n}(o);case 205:return function(r){return ae(r)?d.updateFunctionExpression(r,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||d.createBlock([])):d.createOmittedExpression()}(o);case 206:return function(r){return d.updateArrowFunction(r,e.visitNodes(r.modifiers,M,e.isModifier),void 0,e.visitParameterList(r.parameters,k,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,k,t))}(o);case 159:return function(t){if(!e.parameterIsThisKeyword(t)){var r=d.updateParameterDeclaration(t,void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,k,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,k,e.isExpression));return r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32)),r}}(o);case 204:return function(n){var i=e.skipOuterExpressions(n.expression,-7);if(e.isAssertionExpression(i)){var a=e.visitNode(n.expression,k,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(a,r))?d.updateParenthesizedExpression(n,a):d.createPartiallyEmittedExpression(a,n)}return e.visitEachChild(n,k,t)}(o);case 203:case 221:return function(t){var r=e.visitNode(t.expression,k,e.isExpression);return d.createPartiallyEmittedExpression(r,t)}(o);case 200:return function(t){return d.updateCallExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(o);case 201:return function(t){return d.updateNewExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(o);case 202:return function(t){return d.updateTaggedTemplateExpression(t,e.visitNode(t.tag,k,e.isExpression),void 0,e.visitNode(t.template,k,e.isExpression))}(o);case 222:return function(t){var r=e.visitNode(t.expression,k,e.isLeftHandSideExpression);return d.createPartiallyEmittedExpression(r,t)}(o);case 252:return function(t){if(!function(t){return!e.isEnumConst(t)||v.preserveConstEnums||v.isolatedModules}(t))return d.createNotEmittedStatement(t);var n=[],o=2,s=ge(n,t);s&&(D===e.ModuleKind.System&&a===r||(o|=512));var c=Pe(t),u=Oe(t),l=e.hasSyntacticModifier(t,1)?d.getExternalModuleOrNamespaceExportName(i,t,!1,!0):d.getLocalName(t,!1,!0),_=d.createLogicalOr(l,d.createAssignment(l,d.createObjectLiteralExpression()));if(de(t)){var p=d.getLocalName(t,!1,!0);_=d.createAssignment(p,_)}var g=d.createExpressionStatement(d.createCallExpression(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,function(t,r){var n=i;i=r;var a=[];f();var o=e.map(t.members,_e);return e.insertStatementsAfterStandardPrologue(a,m()),e.addRange(a,o),i=n,d.createBlock(e.setTextRange(d.createNodeArray(a),t.members),!0)}(t,u)),void 0,[_]));return e.setOriginalNode(g,t),s&&(e.setSyntheticLeadingComments(g,void 0),e.setSyntheticTrailingComments(g,void 0)),e.setTextRange(g,t),e.addEmitFlags(g,o),n.push(g),n.push(d.createEndOfDeclarationMarker(t)),n}(o);case 229:return function(r){if(Ee(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(d.createExpressionStatement(d.inlineExpressions(e.map(n,le))),r)}return e.visitEachChild(r,k,t)}(o);case 246:return function(t){return d.updateVariableDeclaration(t,e.visitNode(t.name,k,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,k,e.isExpression))}(o);case 253:return me(o);case 257:return Se(o);case 271:return function(t){return d.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes))}(o);case 272:return function(t){return d.updateJsxOpeningElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes))}(o);default:return e.visitEachChild(o,k,t)}}function R(r){var n=e.getStrictOptionValue(v,"alwaysStrict")&&!(e.isExternalModule(r)&&D>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return d.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,A,t,0,n))}function B(e){return void 0!==e.decorators&&e.decorators.length>0}function j(e){return!!(2048&e.transformFlags)}function U(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,j)||e.some(t.members,j)}function z(t){var r=[],n=e.getFirstConstructorWithBody(t),i=n&&e.filter(n.parameters,function(t){return e.isParameterPropertyDeclaration(t,n)});if(i)for(var a=0,o=i;a0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s0?162===r.kind?d.createVoidZero():d.createNull():void 0,s=p().createDecorateHelper(n,i,a,o);return e.setTextRange(s,e.moveRangePastDecorators(r)),e.setEmitFlags(s,1536),s}}function H(t){return e.visitNode(t.expression,k,e.isExpression)}function G(t,r){var n;if(t){n=[];for(var i=0,a=t;ic&&(a||e.addRange(_,e.visitNodes(n.body.statements,y,e.isStatement,c,d-c)),c=d)}return N(_,o,s.createThis()),n&&e.addRange(_,e.visitNodes(n.body.statements,y,e.isStatement,c)),_=s.mergeLexicalEnvironment(_,u()),e.setTextRange(s.createBlock(e.setTextRange(s.createNodeArray(_),n?n.body.statements:r.members),!0),n?n.body:void 0)}(r,i,n);return c?e.startOnNewLine(e.setOriginalNode(e.setTextRange(s.createConstructorDeclaration(void 0,void 0,null!=o?o:[],c),i||r),i)):void 0}(r,n);return h&&g.push(h),e.addRange(g,e.visitNodes(r.members,b,e.isClassElement)),e.setTextRange(s.createNodeArray(g),r.members)}function A(r){return!(!e.isPropertyDeclaration(r)||e.hasStaticModifier(r))&&(t.getCompilerOptions().useDefineForClassFields?p<99:e.isInitializedProperty(r)||f&&e.isPrivateIdentifierPropertyDeclaration(r))}function N(t,r,n){for(var i=0,a=r;i=0;--t){var r,n=h[t];if(n&&(r=n.get(e.escapedText)))return r}}function I(r){var n=s.getGeneratedNameForNode(r),i=F(r.name);if(!i)return e.visitEachChild(r,y,t);var a=r.expression;return(e.isThisProperty(r)||e.isSuperProperty(r)||!e.isSimpleCopiableExpression(r.expression))&&(a=s.createTempVariable(c,!0),O().push(s.createBinaryExpression(a,62,r.expression))),s.createPropertyAccessExpression(s.createParenthesizedExpression(s.createObjectLiteralExpression([s.createSetAccessorDeclaration(void 0,void 0,"value",[s.createParameterDeclaration(void 0,void 0,void 0,n,void 0,void 0,void 0)],s.createBlock([s.createExpressionStatement(T(i,a,n,62))]))])),"value")}function M(t){var r=e.getTargetOfBindingOrAssignmentElement(t);if(r&&e.isPrivateIdentifierPropertyAccessExpression(r)){var n=I(r);return e.isAssignmentExpression(t)?s.updateBinaryExpression(t,n,t.operatorToken,e.visitNode(t.right,y,e.isExpression)):e.isSpreadElement(t)?s.updateSpreadElement(t,n):n}return e.visitNode(t,v)}function L(t){if(e.isPropertyAssignment(t)){var r=e.getTargetOfBindingOrAssignmentElement(t);if(r&&e.isPrivateIdentifierPropertyAccessExpression(r)){var n=e.getInitializerOfBindingOrAssignmentElement(t),i=I(r);return s.updatePropertyAssignment(t,e.visitNode(t.name,y),n?s.createAssignment(i,e.visitNode(n,y)):i)}return s.updatePropertyAssignment(t,e.visitNode(t.name,y),e.visitNode(t.initializer,v))}return e.visitNode(t,y)}}}(l||(l={})),function(e){var t,r;function n(t,r,n,i){var a=0!=(4096&r.getNodeCheckFlags(n)),o=[];return i.forEach(function(r,n){var i=e.unescapeLeadingUnderscores(n),s=[];s.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4)))),a&&s.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4),t.createIdentifier("v"))))),o.push(t.createPropertyAssignment(i,t.createObjectLiteralExpression(s)))}),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(o,!0)]))],2))}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis"}(r||(r={})),e.transformES2017=function(t){var r,a,o,s,c=t.factory,u=t.getEmitHelperFactory,l=t.resumeLexicalEnvironment,_=t.endLexicalEnvironment,d=t.hoistVariableDeclaration,p=t.getEmitResolver(),f=t.getCompilerOptions(),g=e.getEmitScriptTarget(f),m=0,h=[],y=0,v=t.onEmitNode,b=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){if(1&r&&function(e){var t=e.kind;return 249===t||165===t||164===t||166===t||167===t}(n)){var a=6144&p.getNodeCheckFlags(n);if(a!==m){var o=m;return m=a,v(t,n,i),void(m=o)}}else if(r&&h[e.getNodeId(n)])return o=m,m=0,v(t,n,i),void(m=o);v(t,n,i)},t.onSubstituteNode=function(t,r){return r=b(t,r),1===t&&m?function(t){switch(t.kind){case 198:return U(t);case 199:return z(t);case 200:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?U(r):z(r);return c.createCallExpression(c.createPropertyAccessExpression(n,"call"),void 0,i([c.createThis()],t.arguments))}return t}(t)}return t}(r):r},e.chainBundle(t,function(r){if(r.isDeclarationFile)return r;x(1,!1),x(2,!e.isEffectiveStrictModeSourceFile(r,f));var n=e.visitEachChild(r,T,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n});function x(e,t){y=t?y|e:y&~e}function D(e){return 0!=(y&e)}function S(){return D(2)}function E(e,t,r){var n=e&~y;if(n){x(n,!0);var i=t(r);return x(n,!1),i}return t(r)}function C(r){return e.visitEachChild(r,T,t)}function T(r){if(0==(64&r.transformFlags))return r;switch(r.kind){case 129:return;case 210:return function(r){return D(1)?e.setOriginalNode(e.setTextRange(c.createYieldExpression(void 0,e.visitNode(r.expression,T,e.isExpression)),r),r):e.visitEachChild(r,T,t)}(r);case 164:return E(3,w,r);case 248:return E(3,A,r);case 205:return E(3,N,r);case 206:return E(1,P,r);case 198:return o&&e.isPropertyAccessExpression(r)&&105===r.expression.kind&&o.add(r.name.escapedText),e.visitEachChild(r,T,t);case 199:return o&&105===r.expression.kind&&(s=!0),e.visitEachChild(r,T,t);case 166:case 167:case 165:case 249:case 218:return E(3,C,r);default:return e.visitEachChild(r,T,t)}}function k(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 229:return function(r){if(F(r.declarationList)){var n=I(r.declarationList,!1);return n?c.createExpressionStatement(n):void 0}return e.visitEachChild(r,T,t)}(r);case 234:return function(t){var r=t.initializer;return c.updateForStatement(t,F(r)?I(r,!1):e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.condition,T,e.isExpression),e.visitNode(t.incrementor,T,e.isExpression),e.visitNode(t.statement,k,e.isStatement,c.liftToBlock))}(r);case 235:return function(t){return c.updateForInStatement(t,F(t.initializer)?I(t.initializer,!0):e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),e.visitNode(t.statement,k,e.isStatement,c.liftToBlock))}(r);case 236:return function(t){return c.updateForOfStatement(t,e.visitNode(t.awaitModifier,T,e.isToken),F(t.initializer)?I(t.initializer,!0):e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),e.visitNode(t.statement,k,e.isStatement,c.liftToBlock))}(r);case 284:return function(r){var n,i=new e.Set;if(O(r.variableDeclaration,i),i.forEach(function(t,r){a.has(r)&&(n||(n=new e.Set(a)),n.delete(r))}),n){var o=a;a=n;var s=e.visitEachChild(r,k,t);return a=o,s}return e.visitEachChild(r,k,t)}(r);case 227:case 241:case 255:case 281:case 282:case 244:case 232:case 233:case 231:case 240:case 242:return e.visitEachChild(r,k,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return T(r)}function w(r){return c.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,T,t))}function A(r){return c.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,T,t))}function N(r){return c.updateFunctionExpression(r,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,T,t))}function P(r){return c.updateArrowFunction(r,e.visitNodes(r.modifiers,T,e.isModifier),void 0,e.visitParameterList(r.parameters,T,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,T,t))}function O(t,r){var n=t.name;if(e.isIdentifier(n))r.add(n.escapedText);else for(var i=0,a=n.elements;i=2&&6144&p.getNodeCheckFlags(i);if(P&&(0==(1&r)&&(r|=1,t.enableSubstitution(200),t.enableSubstitution(198),t.enableSubstitution(199),t.enableEmitNotification(249),t.enableEmitNotification(164),t.enableEmitNotification(166),t.enableEmitNotification(167),t.enableEmitNotification(165),t.enableEmitNotification(229)),o.size)){var F=n(c,p,i,o);h[e.getNodeId(F)]=!0,e.insertStatementsAfterStandardPrologue(A,[F])}var I=c.createBlock(A,!0);e.setTextRange(I,i.body),P&&s&&(4096&p.getNodeCheckFlags(i)?e.addEmitHelper(I,e.advancedAsyncSuperHelper):2048&p.getNodeCheckFlags(i)&&e.addEmitHelper(I,e.asyncSuperHelper)),D=I}return a=v,m||(o=E,s=C),D}function j(t,r){return e.isBlock(t)?c.updateBlock(t,e.visitNodes(t.statements,k,e.isStatement,r)):c.converters.convertToFunctionBlock(e.visitNode(t,k,e.isConciseBody))}function U(t){return 105===t.expression.kind?e.setTextRange(c.createPropertyAccessExpression(c.createUniqueName("_super",48),t.name),t):t}function z(t){return 105===t.expression.kind?function(t,r){return e.setTextRange(4096&m?c.createPropertyAccessExpression(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[t]),"value"):c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[t]),r)}(t.argumentExpression,t):t}},e.createSuperAccessVariableStatement=n}(l||(l={})),function(e){var t,r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"}(r||(r={})),e.transformES2018=function(t){var r=t.factory,n=t.getEmitHelperFactory,a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),u=t.getCompilerOptions(),l=e.getEmitScriptTarget(u),_=t.onEmitNode;t.onEmitNode=function(t,r,n){if(1&p&&function(e){var t=e.kind;return 249===t||165===t||164===t||166===t||167===t}(r)){var i=6144&c.getNodeCheckFlags(r);if(i!==b){var a=b;return b=i,_(t,r,n),void(b=a)}}else if(p&&D[e.getNodeId(r)])return a=b,b=0,_(t,r,n),void(b=a);_(t,r,n)};var d=t.onSubstituteNode;t.onSubstituteNode=function(t,n){return n=d(t,n),1===t&&b?function(t){switch(t.kind){case 198:return K(t);case 199:return H(t);case 200:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var a=e.isPropertyAccessExpression(n)?K(n):H(n);return r.createCallExpression(r.createPropertyAccessExpression(a,"call"),void 0,i([r.createThis()],t.arguments))}return t}(t)}return t}(n):n};var p,f,g,m,h,y,v=!1,b=0,x=0,D=[];return e.chainBundle(t,function(n){if(n.isDeclarationFile)return n;g=n;var i=function(n){var i=S(2,e.isEffectiveStrictModeSourceFile(n,u)?0:1);v=!1;var a=e.visitEachChild(n,T,t),o=e.concatenate(a.statements,m&&[r.createVariableStatement(void 0,r.createVariableDeclarationList(m))]),s=r.updateSourceFile(a,e.setTextRange(r.createNodeArray(o),n.statements));return E(i),s}(n);return e.addEmitHelpers(i,t.readEmitHelpers()),g=void 0,m=void 0,i});function S(e,t){var r=x;return x=3&(x&~e|t),r}function E(e){x=e}function C(t){m=e.append(m,r.createVariableDeclaration(t))}function T(e){return P(e,!1)}function k(e){return P(e,!0)}function w(e){if(129!==e.kind)return e}function A(e,t,r,n){if(function(e,t){return x!==(x&~e|t)}(r,n)){var i=S(r,n),a=e(t);return E(i),a}return e(t)}function N(r){return e.visitEachChild(r,T,t)}function P(a,o){if(0==(32&a.transformFlags))return a;switch(a.kind){case 210:return function(i){return 2&f&&1&f?e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(e.visitNode(i.expression,T,e.isExpression))),i),i):e.visitEachChild(i,T,t)}(a);case 216:return function(i){if(2&f&&1&f){if(i.asteriskToken){var a=e.visitNode(e.Debug.assertDefined(i.expression),T,e.isExpression);return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(r.updateYieldExpression(i,i.asteriskToken,e.setTextRange(n().createAsyncDelegatorHelper(e.setTextRange(n().createAsyncValuesHelper(a),a)),a)))),i),i)}return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,M(i.expression?e.visitNode(i.expression,T,e.isExpression):r.createVoidZero())),i),i)}return e.visitEachChild(i,T,t)}(a);case 239:return function(n){return 2&f&&1&f?r.updateReturnStatement(n,M(n.expression?e.visitNode(n.expression,T,e.isExpression):r.createVoidZero())):e.visitEachChild(n,T,t)}(a);case 242:return function(n){if(2&f){var i=e.unwrapInnermostStatementOfLabel(n);return 236===i.kind&&i.awaitModifier?I(i,n):r.restoreEnclosingLabel(e.visitNode(i,T,e.isStatement,r.liftToBlock),n)}return e.visitEachChild(n,T,t)}(a);case 197:return function(i){if(16384&i.transformFlags){var a=function(t){for(var n,i=[],a=0,o=t;a1){for(var s=1;s=2&&6144&c.getNodeCheckFlags(i);if(g){0==(1&p)&&(p|=1,t.enableSubstitution(200),t.enableSubstitution(198),t.enableSubstitution(199),t.enableEmitNotification(249),t.enableEmitNotification(164),t.enableEmitNotification(166),t.enableEmitNotification(167),t.enableEmitNotification(165),t.enableEmitNotification(229));var m=e.createSuperAccessVariableStatement(r,c,i,h);D[e.getNodeId(m)]=!0,e.insertStatementsAfterStandardPrologue(s,[m])}s.push(f),e.insertStatementsAfterStandardPrologue(s,o());var v=r.updateBlock(i.body,s);return g&&y&&(4096&c.getNodeCheckFlags(i)?e.addEmitHelper(v,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(i)&&e.addEmitHelper(v,e.asyncSuperHelper)),h=_,y=d,v}function W(t){var n;a();var i=0,s=[],c=null!==(n=e.visitNode(t.body,T,e.isConciseBody))&&void 0!==n?n:r.createBlock([]);e.isBlock(c)&&(i=r.copyPrologue(c.statements,s,!1,T)),e.addRange(s,q(void 0,t));var u=o();if(i>0||e.some(s)||e.some(u)){var l=r.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,u),e.addRange(s,l.statements.slice(i)),r.updateBlock(l,e.setTextRange(r.createNodeArray(s),l.statements))}return c}function q(n,i){for(var a=0,o=i.parameters;a=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}(r,t)))return e.setTextRange(u.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 107:return function(t){return 1&c&&16&a?e.setTextRange(u.createUniqueName("_this",48),t):t}(t)}return t}(r):e.isIdentifier(r)?function(t){if(2&c&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){switch(e.parent.kind){case 195:case 249:case 252:case 246:return e.parent.name===e&&m.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(u.getGeneratedNameForNode(r),t)}return t}(r):r},e.chainBundle(t,function(i){if(i.isDeclarationFile)return i;r=i,n=i.text;var s=function(t){var r=b(8064,64),n=[],i=[];_();var a=u.copyPrologue(t.statements,n,!1,S);return e.addRange(i,e.visitNodes(t.statements,S,e.isStatement,a)),o&&i.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(o))),u.mergeLexicalEnvironment(n,p()),L(n,t),x(r,0,0),u.updateSourceFile(t,e.setTextRange(u.createNodeArray(e.concatenate(n,i)),t.statements))}(i);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,o=void 0,a=0,s});function b(e,t){var r=a;return a=16383&(a&~e|t),r}function x(e,t,r){a=-16384&(a&~t|r)|e}function D(e){return 0!=(8192&a)&&239===e.kind&&!e.expression}function S(n){return function(t){return 0!=(256&t.transformFlags)||void 0!==s||8192&a&&function(t){return 1048576&t.transformFlags&&(e.isReturnStatement(t)||e.isIfStatement(t)||e.isWithStatement(t)||e.isSwitchStatement(t)||e.isCaseBlock(t)||e.isCaseClause(t)||e.isDefaultClause(t)||e.isTryStatement(t)||e.isCatchClause(t)||e.isLabeledStatement(t)||e.isIterationStatement(t,!1)||e.isBlock(t))}(t)||e.isIterationStatement(t,!1)&&ue(t)||0!=(33554432&e.getEmitFlags(t))}(n)?function(n){switch(n.kind){case 123:return;case 249:return function(t){var r=u.createVariableDeclaration(u.getLocalName(t,!0),void 0,void 0,k(t));e.setOriginalNode(r,t);var n=[],i=u.createVariableStatement(void 0,u.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasSyntacticModifier(t,1)){var a=e.hasSyntacticModifier(t,512)?u.createExportDefault(u.getLocalName(t)):u.createExternalModuleExport(u.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(n.push(u.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(n)}(n);case 218:return function(e){return k(e)}(n);case 159:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,void 0,u.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(n);case 248:return function(r){var n=s;s=void 0;var i=b(16286,65),o=e.visitParameterList(r.parameters,S,t),c=W(r),l=16384&a?u.getLocalName(r):r.name;return x(i,49152,0),s=n,u.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,S,e.isModifier),r.asteriskToken,l,void 0,o,void 0,c)}(n);case 206:return function(r){4096&r.transformFlags&&(a|=32768);var n=s;s=void 0;var i=b(15232,66),o=u.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,S,t),void 0,W(r));return e.setTextRange(o,r),e.setOriginalNode(o,r),e.setEmitFlags(o,8),32768&a&&Oe(),x(i,0,0),s=n,o}(n);case 205:return function(r){var n=262144&e.getEmitFlags(r)?b(16278,69):b(16286,65),i=s;s=void 0;var o=e.visitParameterList(r.parameters,S,t),c=W(r),l=16384&a?u.getLocalName(r):r.name;return x(n,49152,0),s=i,u.updateFunctionExpression(r,void 0,r.asteriskToken,l,void 0,o,void 0,c)}(n);case 246:return G(n);case 78:return T(n);case 247:return function(r){if(3&r.flags||131072&r.transformFlags){3&r.flags&&Pe();var n=e.flatMap(r.declarations,1&r.flags?H:G),i=u.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),131072&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,function(t){for(var r=-1,n=-1,i=0,a=t;i0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(n,S,t,0,u.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(n),e.visitNode(a,S,e.isExpression))),1048576)),!0)}function I(t,r,n,i){i=e.visitNode(i,S,e.isExpression);var a=u.createIfStatement(u.createTypeCheck(u.cloneNode(n),"undefined"),e.setEmitFlags(e.setTextRange(u.createBlock([u.createExpressionStatement(e.setEmitFlags(e.setTextRange(u.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(u.cloneNode(n),n),n.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function M(r,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(o,i))return!1;var s=78===o.name.kind?e.setParent(e.setTextRange(u.cloneNode(o.name),o.name),o.name.parent):u.createTempVariable(void 0);e.setEmitFlags(s,48);var c=78===o.name.kind?u.cloneNode(o.name):s,l=n.parameters.length-1,_=u.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(s,void 0,void 0,u.createArrayLiteralExpression([]))])),o),1048576));var d=u.createForStatement(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(_,void 0,void 0,u.createNumericLiteral(l))]),o),e.setTextRange(u.createLessThan(_,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),o),e.setTextRange(u.createPostfixIncrement(_),o),u.createBlock([e.startOnNewLine(e.setTextRange(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(c,0===l?_:u.createSubtract(_,u.createNumericLiteral(l))),u.createElementAccessExpression(u.createIdentifier("arguments"),_))),o))]));return e.setEmitFlags(d,1048576),e.startOnNewLine(d),a.push(d),78!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(o,S,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function L(e,t){return!!(32768&a&&206!==t.kind)&&(R(e,t,u.createThis()),!0)}function R(t,r,n){Oe();var i=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_this",48),void 0,void 0,n)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,r),e.insertStatementAfterCustomPrologue(t,i)}function B(t,r,n){if(16384&a){var i=void 0;switch(r.kind){case 206:return t;case 164:case 166:case 167:i=u.createVoidZero();break;case 165:i=u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor");break;case 248:case 205:i=u.createConditionalExpression(u.createLogicalAnd(e.setEmitFlags(u.createThis(),4),u.createBinaryExpression(e.setEmitFlags(u.createThis(),4),101,u.getLocalName(r))),void 0,u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor"),void 0,u.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function j(t){return e.setTextRange(u.createEmptyStatement(),t)}function U(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=V(n,n,void 0,i),l=e.visitNode(n.name,S,e.isPropertyName);if(!e.isPrivateIdentifier(l)&&t.getCompilerOptions().useDefineForClassFields){var _=e.isComputedPropertyName(l)?l.expression:e.isIdentifier(l)?u.createStringLiteral(e.unescapeLeadingUnderscores(l.escapedText)):l;a=u.createObjectDefinePropertyCall(r,_,u.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var d=e.createMemberAccessForPropertyName(u,r,l,n.name);a=u.createAssignment(d,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var p=e.setTextRange(u.createExpressionStatement(a),n);return e.setOriginalNode(p,n),e.setCommentRange(p,o),e.setEmitFlags(p,48),p}function z(t,r,n){var i=u.createExpressionStatement(J(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function J(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.setParent(e.setTextRange(u.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var l=e.visitNode(a.name,S,e.isPropertyName);if(e.isPrivateIdentifier(l))return e.Debug.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");var _=e.createExpressionForPropertyName(u,l);e.setEmitFlags(_,1552),e.setSourceMapRange(_,a.name);var d=[];if(o){var p=V(o,void 0,void 0,n);e.setSourceMapRange(p,e.getSourceMapRange(o)),e.setEmitFlags(p,512);var f=u.createPropertyAssignment("get",p);e.setCommentRange(f,e.getCommentRange(o)),d.push(f)}if(s){var g=V(s,void 0,void 0,n);e.setSourceMapRange(g,e.getSourceMapRange(s)),e.setEmitFlags(g,512);var m=u.createPropertyAssignment("set",g);e.setCommentRange(m,e.getCommentRange(s)),d.push(m)}d.push(u.createPropertyAssignment("enumerable",o||s?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));var h=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[c,_,u.createObjectLiteralExpression(d,!0)]);return i&&e.startOnNewLine(h),h}function V(r,n,i,o){var c=s;s=void 0;var l=o&&e.isClassLike(o)&&!e.hasSyntacticModifier(r,32)?b(16286,73):b(16286,65),_=e.visitParameterList(r.parameters,S,t),d=W(r);return 16384&a&&!i&&(248===r.kind||205===r.kind)&&(i=u.getGeneratedNameForNode(r)),x(l,49152,0),s=c,e.setOriginalNode(e.setTextRange(u.createFunctionExpression(void 0,r.asteriskToken,i,void 0,_,void 0,d),n),r)}function W(t){var n,i,a,o=!1,s=!1,c=[],l=[],_=t.body;if(d(),e.isBlock(_)&&(a=u.copyStandardPrologue(_.statements,c,!1),a=u.copyCustomPrologue(_.statements,l,a,S,e.isHoistedFunction),a=u.copyCustomPrologue(_.statements,l,a,S,e.isHoistedVariableStatement)),o=O(l,t)||o,o=M(l,t,!1)||o,e.isBlock(_))a=u.copyCustomPrologue(_.statements,l,a,S),n=_.statements,e.addRange(l,e.visitNodes(_.statements,S,e.isStatement,a)),!o&&_.multiLine&&(o=!0);else{e.Debug.assert(206===t.kind),n=e.moveRangeEnd(_,-1);var f=t.equalsGreaterThanToken;e.nodeIsSynthesized(f)||e.nodeIsSynthesized(_)||(e.rangeEndIsOnSameLineAsRangeStart(f,_,r)?s=!0:o=!0);var g=e.visitNode(_,S,e.isExpression),m=u.createReturnStatement(g);e.setTextRange(m,_),e.moveSyntheticComments(m,_),e.setEmitFlags(m,1440),l.push(m),i=_}if(u.mergeLexicalEnvironment(c,p()),B(c,t,!1),L(c,t),e.some(c)&&(o=!0),l.unshift.apply(l,c),e.isBlock(_)&&e.arrayIsEqualTo(l,_.statements))return _;var h=u.createBlock(e.setTextRange(u.createNodeArray(l),n),o);return e.setTextRange(h,t.body),!o&&s&&e.setEmitFlags(h,1),i&&e.setTokenSourceMapRange(h,19,i),e.setOriginalNode(h,t.body),h}function q(r,n){if(!n)switch(r.expression.kind){case 204:return u.updateParenthesizedExpression(r,q(r.expression,!1));case 213:return u.updateParenthesizedExpression(r,K(r.expression,!1))}return e.visitEachChild(r,S,t)}function K(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,S,t,0,n):e.visitEachChild(r,S,t)}function H(r){return e.isBindingPattern(r.name)?G(r):!r.initializer&&function(e){var t=m.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&a)||r&&n&&0!=(512&a))&&0==(4096&a)&&(!m.isDeclarationWithCollidingName(e)||n&&!r&&0==(6144&a))}(r)?u.updateVariableDeclaration(r,r.name,void 0,void 0,u.createVoidZero()):e.visitEachChild(r,S,t)}function G(r){var n,i=b(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,S,t,0,void 0,0!=(32&i)):e.visitEachChild(r,S,t),x(i,0,0),n}function Q(t){s.labels.set(e.idText(t.label),!0)}function $(t){s.labels.set(e.idText(t.label),!1)}function X(r,n,i,o,c){var l=b(r,n),d=function(r,n,i,o){if(!ue(r)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var l=o?o(r,n,void 0,i):u.restoreEnclosingLabel(e.visitEachChild(r,S,t),n,s&&$);return s&&(s.allowedNonLabeledJumps=c),l}var d=function(t){var r;switch(t.kind){case 234:case 235:case 236:var n=t.initializer;n&&247===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var o=se(t),c=0,u=r.declarations;c=80&&r<=115)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}}(l||(l={})),function(e){var t,r,n,a,o;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(r||(r={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(n||(n={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(a||(a={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(o||(o={})),e.transformGenerators=function(t){var r,n,a,o,s,c,u,l,_,d,p=t.factory,f=t.getEmitHelperFactory,g=t.resumeLexicalEnvironment,m=t.endLexicalEnvironment,h=t.hoistFunctionDeclaration,y=t.hoistVariableDeclaration,v=t.getCompilerOptions(),b=e.getEmitScriptTarget(v),x=t.getEmitResolver(),D=t.onSubstituteNode;t.onSubstituteNode=function(t,i){return i=D(t,i),1===t?function(t){return e.isIdentifier(t)?function(t){if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=x.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(p.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t):t}(i):i};var S,E,C,T,k,w,A,N,P,O,F,I,M=1,L=0,R=0;return e.chainBundle(t,function(r){if(r.isDeclarationFile||0==(512&r.transformFlags))return r;var n=e.visitEachChild(r,B,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n});function B(r){var n=r.transformFlags;return o?function(r){switch(r.kind){case 232:case 233:return function(r){return o?(oe(),r=e.visitEachChild(r,B,t),ce(),r):e.visitEachChild(r,B,t)}(r);case 241:return function(r){return o&&re({kind:2,isScript:!0,breakLabel:-1}),r=e.visitEachChild(r,B,t),o&&ue(),r}(r);case 242:return function(r){return o&&re({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1}),r=e.visitEachChild(r,B,t),o&&le(),r}(r);default:return j(r)}}(r):a?j(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?function(t){switch(t.kind){case 248:return U(t);case 205:return z(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):512&n?e.visitEachChild(r,B,t):r}function j(r){switch(r.kind){case 248:return U(r);case 205:return z(r);case 166:case 167:return function(r){var n=a,i=o;return a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i,r}(r);case 229:return function(t){if(262144&t.transformFlags)G(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r0?p.inlineExpressions(e.map(s,Q)):void 0,e.visitNode(r.condition,B,e.isExpression),e.visitNode(r.incrementor,B,e.isExpression),e.visitNode(r.statement,B,e.isStatement,p.liftToBlock))}else r=e.visitEachChild(r,B,t);return o&&ce(),r}(r);case 235:return function(r){o&&oe();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i0)return ve(n,r)}return e.visitEachChild(r,B,t)}(r);case 237:return function(r){if(o){var n=me(r.label&&e.idText(r.label));if(n>0)return ve(n,r)}return e.visitEachChild(r,B,t)}(r);case 239:return function(t){return function(t,r){return e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(t?[ye(2),t]:[ye(2)])),r)}(e.visitNode(t.expression,B,e.isExpression),t)}(r);default:return 262144&r.transformFlags?function(r){switch(r.kind){case 213:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){return $(r.right)?e.isLogicalOperator(r.operatorToken.kind)?function(t){var r=ee(),n=Z();return De(n,e.visitNode(t.left,B,e.isExpression),t.left),55===t.operatorToken.kind?Ce(r,n,t.left):Ee(r,n,t.left),De(n,e.visitNode(t.right,B,e.isExpression),t.right),te(r),n}(r):27===r.operatorToken.kind?V(r):p.updateBinaryExpression(r,Y(e.visitNode(r.left,B,e.isExpression)),r.operatorToken,e.visitNode(r.right,B,e.isExpression)):e.visitEachChild(r,B,t)}(r);case 1:return function(r){var n=r.left,i=r.right;if($(i)){var a=void 0;switch(n.kind){case 198:a=p.updatePropertyAccessExpression(n,Y(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),n.name);break;case 199:a=p.updateElementAccessExpression(n,Y(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),Y(e.visitNode(n.argumentExpression,B,e.isExpression)));break;default:a=e.visitNode(n,B,e.isExpression)}var o=r.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(p.createAssignment(a,e.setTextRange(p.createBinaryExpression(Y(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,B,e.isExpression)),r)),r):p.updateBinaryExpression(r,a,r.operatorToken,e.visitNode(i,B,e.isExpression))}return e.visitEachChild(r,B,t)}(r);default:return e.Debug.assertNever(n)}}(r);case 332:return function(t){for(var r=[],n=0,i=t.elements;n0&&(Te(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(a,B,e.isExpression)))}return p.inlineExpressions(r)}(r);case 214:return function(r){if($(r.whenTrue)||$(r.whenFalse)){var n=ee(),i=ee(),a=Z();return Ce(n,e.visitNode(r.condition,B,e.isExpression),r.condition),De(a,e.visitNode(r.whenTrue,B,e.isExpression),r.whenTrue),Se(i),te(n),De(a,e.visitNode(r.whenFalse,B,e.isExpression),r.whenFalse),te(i),a}return e.visitEachChild(r,B,t)}(r);case 216:return function(t){var r=ee(),n=e.visitNode(t.expression,B,e.isExpression);return t.asteriskToken?function(e,t){Te(7,[e],t)}(0==(8388608&e.getEmitFlags(t.expression))?e.setTextRange(f().createValuesHelper(n),t):n,t):function(e,t){Te(6,[e],t)}(n,t),te(r),function(t){return e.setTextRange(p.createCallExpression(p.createPropertyAccessExpression(T,"sent"),void 0,[]),t)}(t)}(r);case 196:return function(e){return W(e.elements,void 0,void 0,e.multiLine)}(r);case 197:return function(t){var r=t.properties,n=t.multiLine,i=X(r),a=Z();De(a,p.createObjectLiteralExpression(e.visitNodes(r,B,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,function(r,i){$(i)&&r.length>0&&(xe(p.createExpressionStatement(p.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(p,t,i,a),s=e.visitNode(o,B,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r},[],i);return o.push(n?e.startOnNewLine(e.setParent(e.setTextRange(p.cloneNode(a),a),a.parent)):a),p.inlineExpressions(o)}(r);case 199:return function(r){return $(r.argumentExpression)?p.updateElementAccessExpression(r,Y(e.visitNode(r.expression,B,e.isLeftHandSideExpression)),e.visitNode(r.argumentExpression,B,e.isExpression)):e.visitEachChild(r,B,t)}(r);case 200:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,$)){var n=p.createCallBinding(r.expression,y,b,!0),i=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createFunctionApplyCall(Y(e.visitNode(n.target,B,e.isLeftHandSideExpression)),i,W(r.arguments)),r),r)}return e.visitEachChild(r,B,t)}(r);case 201:return function(r){if(e.forEach(r.arguments,$)){var n=p.createCallBinding(p.createPropertyAccessExpression(r.expression,"bind"),y),i=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createNewExpression(p.createFunctionApplyCall(Y(e.visitNode(n.target,B,e.isExpression)),i,W(r.arguments,p.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,B,t)}(r);default:return e.visitEachChild(r,B,t)}}(r):1049088&r.transformFlags?e.visitEachChild(r,B,t):r}}function U(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,J(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i}return a?void h(r):r}function z(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,J(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i}return r}function J(t){var r=[],n=a,i=o,f=s,h=c,y=u,v=l,b=_,x=d,D=M,k=S,w=E,A=C,N=T;a=!0,o=!1,s=void 0,c=void 0,u=void 0,l=void 0,_=void 0,d=void 0,M=1,S=void 0,E=void 0,C=void 0,T=p.createTempVariable(void 0),g();var P=p.copyPrologue(t.statements,r,!1,B);q(t.statements,P);var O=ke();return e.insertStatementsAfterStandardPrologue(r,m()),r.push(p.createReturnStatement(O)),a=n,o=i,s=f,c=h,u=y,l=v,_=b,d=x,M=D,S=k,E=w,C=A,T=N,e.setTextRange(p.createBlock(r,t.multiLine),t)}function V(t){var r=[];return n(t.left),n(t.right),p.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):($(t)&&r.length>0&&(Te(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,B,e.isExpression)))}}function W(t,r,n,a){var o,s=X(t);if(s>0){o=Z();var c=e.visitNodes(t,B,e.isExpression,0,s);De(o,p.createArrayLiteralExpression(r?i([r],c):c)),r=void 0}var u=e.reduceLeft(t,function(t,n){if($(n)&&t.length>0){var s=void 0!==o;o||(o=Z()),De(o,s?p.createArrayConcatCall(o,[p.createArrayLiteralExpression(t,a)]):p.createArrayLiteralExpression(r?i([r],t):t,a)),r=void 0,t=[]}return t.push(e.visitNode(n,B,e.isExpression)),t},[],s);return o?p.createArrayConcatCall(o,[p.createArrayLiteralExpression(u,a)]):e.setTextRange(p.createArrayLiteralExpression(r?i([r],u):u,a),n)}function q(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n0?Se(r,t):xe(t)}(i);case 238:return function(t){var r=ge(t.label?e.idText(t.label):void 0);r>0?Se(r,t):xe(t)}(i);case 239:return function(t){!function(e,t){Te(8,[e],t)}(e.visitNode(t.expression,B,e.isExpression),t)}(i);case 240:return function(t){var r,n,i;$(t)?(r=Y(e.visitNode(t.expression,B,e.isExpression)),n=ee(),i=ee(),te(n),re({kind:1,expression:r,startLabel:n,endLabel:i}),K(t.statement),e.Debug.assert(1===ae()),te(ne().endLabel)):xe(e.visitNode(t,B,e.isStatement))}(i);case 241:return function(t){if($(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(re({kind:2,isScript:!1,breakLabel:f=ee()}),f),a=Y(e.visitNode(t.expression,B,e.isExpression)),o=[],s=-1,c=0;c0)break;_.push(p.createCaseClause(e.visitNode(u.expression,B,e.isExpression),[ve(o[c],u.expression)]))}else d++;_.length&&(xe(p.createSwitchStatement(a,p.createCaseBlock(_))),l+=_.length,_=[]),d>0&&(l+=d,d=0)}for(Se(s>=0?o[s]:i),c=0;c0)break;c.push(Q(l))}c.length&&(xe(p.createExpressionStatement(p.inlineExpressions(c))),s+=c.length,c=[])}}function Q(t){return e.setSourceMapRange(p.createAssignment(e.setSourceMapRange(p.cloneNode(t.name),t.name),e.visitNode(t.initializer,B,e.isExpression)),t)}function $(e){return!!e&&0!=(262144&e.transformFlags)}function X(e){for(var t=e.length,r=0;r=0;r--){var n=l[r];if(!de(n))break;if(n.labelText===e)return!0}return!1}function ge(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(de(r=l[t])&&r.labelText===e)return r.breakLabel;if(_e(r)&&fe(e,t-1))return r.breakLabel}else for(t=l.length-1;t>=0;t--){var r;if(_e(r=l[t]))return r.breakLabel}return 0}function me(e){if(l)if(e){for(var t=l.length-1;t>=0;t--)if(pe(r=l[t])&&fe(e,t-1))return r.continueLabel}else for(t=l.length-1;t>=0;t--){var r;if(pe(r=l[t]))return r.continueLabel}return 0}function he(e){if(void 0!==e&&e>0){void 0===d&&(d=[]);var t=p.createNumericLiteral(-1);return void 0===d[e]?d[e]=[t]:d[e].push(t),t}return p.createOmittedExpression()}function ye(t){var r=p.createNumericLiteral(t);return e.addSyntheticTrailingComment(r,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(t)),r}function ve(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),he(t)])),r)}function be(){Te(0)}function xe(e){e?Te(1,[e]):be()}function De(e,t,r){Te(2,[e,t],r)}function Se(e,t){Te(3,[e],t)}function Ee(e,t,r){Te(4,[e,t],r)}function Ce(e,t,r){Te(5,[e,t],r)}function Te(e,t,r){void 0===S&&(S=[],E=[],C=[]),void 0===_&&te(ee());var n=S.length;S[n]=e,E[n]=t,C[n]=r}function ke(){L=0,R=0,k=void 0,w=!1,A=!1,N=void 0,P=void 0,O=void 0,F=void 0,I=void 0;var t=function(){if(S){for(var t=0;t0)),524288))}function we(e){(function(e){if(!A)return!0;if(!_||!d)return!1;for(var t=0;t<_.length;t++)if(_[t]===e&&d[t])return!0;return!1})(e)&&(Ne(e),I=void 0,Fe(void 0,void 0)),P&&N&&Ae(!1),function(){if(void 0!==d&&void 0!==k)for(var e=0;e=0;t--)P=[p.createWithStatement(I[t].expression,p.createBlock(P))];if(F){var r=F.startLabel,n=F.catchLabel,i=F.finallyLabel,a=F.endLabel;P.unshift(p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createPropertyAccessExpression(T,"trys"),"push"),void 0,[p.createArrayLiteralExpression([he(r),he(n),he(i),he(a)])]))),F=void 0}e&&P.push(p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(T,"label"),p.createNumericLiteral(R+1))))}N.push(p.createCaseClause(p.createNumericLiteral(R),P||[])),P=void 0}function Ne(e){if(_)for(var t=0;t<_.length;t++)_[t]===e&&(P&&(Ae(!w),w=!1,A=!1,R++),void 0===k&&(k=[]),void 0===k[R]?k[R]=[t]:k[R].push(t))}function Pe(t){if(Ne(t),function(e){if(s)for(;L=2?2:0)),t),t))}else i&&e.isDefaultImport(t)&&(r=e.append(r,n.createVariableStatement(void 0,n.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)),t),t)],d>=2?2:0))));if(j(t)){var o=e.getOriginalNodeId(t);x[o]=U(x[o],t)}else r=U(r,t);return e.singleOrMany(r)}(t);case 257:return function(t){var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?r=e.hasSyntacticModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(G(t.name,L(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(t.name),void 0,void 0,L(t))],d>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(G(n.getExportName(t),n.getLocalName(t))),t),t))),j(t)){var i=e.getOriginalNodeId(t);x[i]=z(x[i],t)}else r=z(r,t);return e.singleOrMany(r)}(t);case 264:return function(t){if(t.moduleSpecifier){var r=n.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var i=[];p!==e.ModuleKind.AMD&&i.push(e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,L(t))])),t),t));for(var o=0,s=t.exportClause.elements;o(e.isExportName(t)?1:0);return!1}function F(t,r){var i,o=n.createUniqueName("resolve"),s=n.createUniqueName("reject"),c=[n.createParameterDeclaration(void 0,void 0,void 0,o),n.createParameterDeclaration(void 0,void 0,void 0,s)],l=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([t||n.createOmittedExpression()]),o,s]))]);d>=2?i=n.createArrowFunction(void 0,void 0,c,void 0,void 0,l):(i=n.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,l),r&&e.setEmitFlags(i,8));var _=n.createNewExpression(n.createIdentifier("Promise"),void 0,[i]);return u.esModuleInterop?n.createCallExpression(n.createPropertyAccessExpression(_,n.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):_}function I(t,r){var i,o=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,[]),s=n.createCallExpression(n.createIdentifier("require"),void 0,t?[t]:[]);return u.esModuleInterop&&(s=a().createImportStarHelper(s)),d>=2?i=n.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(i=n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(s)])),r&&e.setEmitFlags(i,8)),n.createCallExpression(n.createPropertyAccessExpression(o,"then"),void 0,[i])}function M(t,r){return!u.esModuleInterop||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?a().createImportStarHelper(r):e.getImportNeedsImportDefaultHelper(t)?a().createImportDefaultHelper(r):r}function L(t){var r=e.getExternalModuleNameLiteral(n,t,m,_,l,u),i=[];return r&&i.push(r),n.createCallExpression(n.createIdentifier("require"),void 0,i)}function R(t,r,i){var a=X(t);if(a){for(var o=e.isExportName(t)?r:n.createAssignment(t,r),s=0,c=a;se.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var r=t.exportClause.name,i=n.getGeneratedNameForNode(r),a=n.createImportDeclaration(void 0,void 0,n.createImportClause(!1,void 0,n.createNamespaceImport(i)),t.moduleSpecifier);e.setOriginalNode(a,t.exportClause);var s=n.createExportDeclaration(void 0,void 0,!1,n.createNamedExports([n.createExportSpecifier(i,r)]));return e.setOriginalNode(s,t),[a,s]}(t)}return t}}}(l||(l={})),function(e){function t(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)?r:e.isSetAccessor(t)||e.isGetAccessor(t)?function(r){return{diagnosticMessage:167===t.kind?e.hasSyntacticModifier(t,32)?r.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.hasSyntacticModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,errorNode:t.name,typeName:t.name}}:e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?function(r){var n;switch(t.kind){case 169:n=r.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 168:n=r.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 170:n=r.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 164:case 163:n=e.hasSyntacticModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:249===t.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 248:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?r:function(r){var n=function(r){switch(t.parent.kind){case 165:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 169:case 174:return r.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 168:return r.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 170:return r.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 164:case 163:return e.hasSyntacticModifier(t.parent,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:249===t.parent.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 248:case 173:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 167:case 166:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: "+e.SyntaxKind[t.parent.kind])}}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?function(){var r;switch(t.parent.kind){case 249:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 250:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 189:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 174:case 169:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 168:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 164:case 163:r=e.hasSyntacticModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:249===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 173:case 248:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 251:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?function(){return{diagnosticMessage:e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&116===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}:e.isImportEqualsDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}:e.isTypeAliasDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}:e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[t.kind]);function r(r){var n=function(r){return 246===t.kind||195===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:162===t.kind||198===t.kind||161===t.kind||159===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.hasSyntacticModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:249===t.parent.kind||159===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=function(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(r){return e.isSetAccessor(r)||e.isGetAccessor(r)?function(t){var n=function(t){return e.hasSyntacticModifier(r,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:249===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:e.isMethodSignature(r)||e.isMethodDeclaration(r)?function(t){var n=function(t){return e.hasSyntacticModifier(r,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:249===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:t(r)},e.createGetSymbolAccessibilityDiagnosticForNode=t}(l||(l={})),function(e){function t(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function r(r,n){var i=e.getParseTreeNode(r);if(i&&159===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=n.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,r.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,r.pos,!1,!0));return c&&c.length&&t(e.last(c),n)}var u=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(u,function(e){return t(e,n)})}function n(t){var n,c,u,l,_,d,p,f,g,m,h,y=function(){return e.Debug.fail("Diagnostic emitted without context")},v=y,b=!0,x=!1,D=!1,S=!1,E=!1,C=t.factory,T=t.getEmitHost(),k={trackSymbol:function(e,t,r){262144&e.flags||(F(w.isSymbolAccessible(e,t,r,!0)),O(w.getTypeReferenceDirectivesForSymbol(e,r)))},reportInaccessibleThisError:function(){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(p),"this"))},reportInaccessibleUniqueSymbolError:function(){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(p),"unique symbol"))},reportCyclicStructureError:function(){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,e.declarationNameToString(p)))},reportPrivateInBaseOfClassExpression:function(r){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError:function(r){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,e.declarationNameToString(p),r))},moduleResolverHost:T,trackReferencedAmbientModule:function(t,r){var n=w.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return O(n);var i=e.getSourceFileOfNode(t);g.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){x||(d||(d=[])).push(e)},reportNonlocalAugmentation:function(r,n,i){for(var a=e.find(n.declarations,function(t){return e.getSourceFileOfNode(t)===r}),o=0,s=e.filter(i.declarations,function(t){return e.getSourceFileOfNode(t)!==r});o0?e.parameters[0].type:void 0}e.getDeclarationDiagnostics=function(t,r,i){var a=t.getCompilerOptions();return e.transformNodes(r,t,e.factory,a,i?[i]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[n],!1).diagnostics},e.isInternalDeclaration=r,e.transformDeclarations=n}(l||(l={})),function(e){var t,r;function n(t,r,n){if(n)return e.emptyArray;var i=t.jsx,a=e.getEmitScriptTarget(t),o=e.getEmitModuleKind(t),c=[];return e.addRange(c,r&&e.map(r.before,s)),c.push(e.transformTypeScript),c.push(e.transformClassFields),2===i&&c.push(e.transformJsx),a<99&&c.push(e.transformESNext),a<7&&c.push(e.transformES2020),a<6&&c.push(e.transformES2019),a<5&&c.push(e.transformES2018),a<4&&c.push(e.transformES2017),a<3&&c.push(e.transformES2016),a<2&&(c.push(e.transformES2015),c.push(e.transformGenerators)),c.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}(o)),a<1&&c.push(e.transformES5),e.addRange(c,r&&e.map(r.after,s)),c}function a(t){var r=[];return r.push(e.transformDeclarations),e.addRange(r,t&&e.map(t.afterDeclarations,c)),r}function o(t,r){return function(n){var i=t(n);return"function"==typeof i?r(n,i):function(t){return function(r){return e.isBundle(r)?t.transformBundle(r):t.transformSourceFile(r)}}(i)}}function s(t){return o(t,e.chainBundle)}function c(e){return o(e,function(e,t){return t})}function u(e,t){return t}function l(e,t,r){r(e,t)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(r||(r={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,t,r){return{scriptTransformers:n(e,t,r),declarationTransformers:a(t)}},e.noEmitSubstitution=u,e.noEmitNotification=l,e.transformNodes=function(t,r,n,a,o,s,c){for(var _,d,p,f,g=new Array(336),m=0,h=[],y=[],v=[],b=[],x=0,D=!1,S=u,E=l,C=0,T=[],k={factory:n,getCompilerOptions:function(){return a},getEmitResolver:function(){return t},getEmitHost:function(){return r},getEmitHelperFactory:e.memoize(function(){return e.createEmitHelperFactory(k)}),startLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!D,"Lexical environment is suspended."),h[x]=_,y[x]=d,v[x]=p,b[x]=m,x++,_=void 0,d=void 0,p=void 0,m=0},suspendLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!D,"Lexical environment is already suspended."),D=!0},resumeLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(D,"Lexical environment is not suspended."),D=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!D,"Lexical environment is suspended."),_||d||p){if(d&&(t=i(d)),_){var r=n.createVariableStatement(void 0,n.createVariableDeclarationList(_));e.setEmitFlags(r,1048576),t?t.push(r):t=[r]}p&&(t=t?i(t,p):i(p))}return x--,_=h[x],d=y[x],p=v[x],m=b[x],0===x&&(h=[],y=[],v=[],b=[]),t},setLexicalEnvironmentFlags:function(e,t){m=t?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(t){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(n.createVariableDeclaration(t),64);_?_.push(r):_=[r],1&m&&(m|=2)},hoistFunctionDeclaration:function(t){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),d?d.push(t):d=[t]},addInitializationStatement:function(t){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),p?p.push(t):p=[t]},requestEmitHelper:function t(r){if(e.Debug.assert(C>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!r.scoped,"Cannot request a scoped emit helper."),r.dependencies)for(var n=0,i=r.dependencies;n0,"Cannot modify the transformation context during initialization."),e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed.");var t=f;return f=void 0,t},enableSubstitution:function(t){e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=1},enableEmitNotification:function(t){e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=2},isSubstitutionEnabled:F,isEmitNotificationEnabled:I,get onSubstituteNode(){return S},set onSubstituteNode(t){e.Debug.assert(C<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),S=t},get onEmitNode(){return E},set onEmitNode(t){e.Debug.assert(C<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),E=t},addDiagnostic:function(e){T.push(e)}},w=0,A=o;w"],e[8192]=["[","]"],e}(),a={pos:-1,end:-1};function o(t,r,n,i,a,o){void 0===i&&(i=!1);var c=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,i),l=t.getCompilerOptions();if(e.outFile(l)){var _=t.getPrependNodes();if(c.length||_.length){var d=e.factory.createBundle(c,_);if(g=r(u(d,t,i),d))return g}}else{if(!a)for(var p=0,f=c;p"),Pt(),ye(e.type),rr(e)}(r);case 304:return function(e){kt("function"),yt(e,e.parameters),Ct(":"),ye(e.type)}(r);case 174:return function(e){tr(e),kt("new"),Pt(),ht(e,e.typeParameters),yt(e,e.parameters),Pt(),Ct("=>"),Pt(),ye(e.type),rr(e)}(r);case 175:return function(e){kt("typeof"),Pt(),ye(e.exprName)}(r);case 176:return function(t){Ct("{");var r=1&e.getEmitFlags(t)?768:32897;bt(t,t.members,524288|r),Ct("}")}(r);case 177:return function(e){ye(e.elementType),Ct("["),Ct("]")}(r);case 178:return function(t){Be(22,t.pos,Ct,t);var r=1&e.getEmitFlags(t)?528:657;bt(t,t.elements,524288|r),Be(23,t.elements.end,Ct,t)}(r);case 179:return function(e){ye(e.type),Ct("?")}(r);case 181:return function(e){bt(e,e.types,516)}(r);case 182:return function(e){bt(e,e.types,520)}(r);case 183:return function(e){ye(e.checkType),Pt(),kt("extends"),Pt(),ye(e.extendsType),Pt(),Ct("?"),Pt(),ye(e.trueType),Pt(),Ct(":"),Pt(),ye(e.falseType)}(r);case 184:return function(e){kt("infer"),Pt(),ye(e.typeParameter)}(r);case 185:return function(e){Ct("("),ye(e.type),Ct(")")}(r);case 220:return function(e){be(e.expression),mt(e,e.typeArguments)}(r);case 186:return void kt("this");case 187:return function(e){Bt(e.operator,kt),Pt(),ye(e.type)}(r);case 188:return function(e){ye(e.objectType),Ct("["),ye(e.indexType),Ct("]")}(r);case 189:return function(t){var r=e.getEmitFlags(t);Ct("{"),1&r?Pt():(Ft(),It()),t.readonlyToken&&(ye(t.readonlyToken),141!==t.readonlyToken.kind&&kt("readonly"),Pt()),Ct("["),De(3,t.typeParameter),Ct("]"),t.questionToken&&(ye(t.questionToken),57!==t.questionToken.kind&&Ct("?")),Ct(":"),Pt(),ye(t.type),Tt(),1&r?Pt():(Ft(),Mt()),Ct("}")}(r);case 190:return function(e){be(e.literal)}(r);case 192:return function(e){e.isTypeOf&&(kt("typeof"),Pt()),kt("import"),Ct("("),ye(e.argument),Ct(")"),e.qualifier&&(Ct("."),ye(e.qualifier)),mt(e,e.typeArguments)}(r);case 299:return void Ct("*");case 300:return void Ct("?");case 301:return function(e){Ct("?"),ye(e.type)}(r);case 302:return function(e){Ct("!"),ye(e.type)}(r);case 303:return function(e){ye(e.type),Ct("=")}(r);case 180:case 305:return function(e){Ct("..."),ye(e.type)}(r);case 191:return function(e){ye(e.dotDotDotToken),ye(e.name),ye(e.questionToken),Be(58,e.name.end,Ct,e),Pt(),ye(e.type)}(r);case 193:return function(e){Ct("{"),bt(e,e.elements,525136),Ct("}")}(r);case 194:return function(e){Ct("["),bt(e,e.elements,524880),Ct("]")}(r);case 195:return function(e){ye(e.dotDotDotToken),e.propertyName&&(ye(e.propertyName),Ct(":"),Pt()),ye(e.name),_t(e.initializer,e.name.end,e)}(r);case 225:return function(e){be(e.expression),ye(e.literal)}(r);case 226:return void Tt();case 227:return function(e){Ie(e,!e.multiLine&&Xt(e))}(r);case 229:return function(e){ut(e,e.modifiers),ye(e.declarationList),Tt()}(r);case 228:return Me(!1);case 230:return function(t){be(t.expression),(!e.isJsonSourceFile(i)||e.nodeIsSynthesized(t.expression))&&Tt()}(r);case 231:return function(e){var t=Be(98,e.pos,kt,e);Pt(),Be(20,t,Ct,e),be(e.expression),Be(21,e.expression.end,Ct,e),ft(e,e.thenStatement),e.elseStatement&&(jt(e,e.thenStatement,e.elseStatement),Be(90,e.thenStatement.end,kt,e),231===e.elseStatement.kind?(Pt(),ye(e.elseStatement)):ft(e,e.elseStatement))}(r);case 232:return function(t){Be(89,t.pos,kt,t),ft(t,t.statement),e.isBlock(t.statement)&&!R?Pt():jt(t,t.statement,t.expression),Le(t,t.statement.end),Tt()}(r);case 233:return function(e){Le(e,e.pos),ft(e,e.statement)}(r);case 234:return function(e){var t=Be(96,e.pos,kt,e);Pt();var r=Be(20,t,Ct,e);Re(e.initializer),r=Be(26,e.initializer?e.initializer.end:r,Ct,e),pt(e.condition),r=Be(26,e.condition?e.condition.end:r,Ct,e),pt(e.incrementor),Be(21,e.incrementor?e.incrementor.end:r,Ct,e),ft(e,e.statement)}(r);case 235:return function(e){var t=Be(96,e.pos,kt,e);Pt(),Be(20,t,Ct,e),Re(e.initializer),Pt(),Be(100,e.initializer.end,kt,e),Pt(),be(e.expression),Be(21,e.expression.end,Ct,e),ft(e,e.statement)}(r);case 236:return function(e){var t=Be(96,e.pos,kt,e);Pt(),function(e){e&&(ye(e),Pt())}(e.awaitModifier),Be(20,t,Ct,e),Re(e.initializer),Pt(),Be(155,e.initializer.end,kt,e),Pt(),be(e.expression),Be(21,e.expression.end,Ct,e),ft(e,e.statement)}(r);case 237:return function(e){Be(85,e.pos,kt,e),dt(e.label),Tt()}(r);case 238:return function(e){Be(80,e.pos,kt,e),dt(e.label),Tt()}(r);case 239:return function(e){Be(104,e.pos,kt,e),pt(e.expression),Tt()}(r);case 240:return function(e){var t=Be(115,e.pos,kt,e);Pt(),Be(20,t,Ct,e),be(e.expression),Be(21,e.expression.end,Ct,e),ft(e,e.statement)}(r);case 241:return function(e){var t=Be(106,e.pos,kt,e);Pt(),Be(20,t,Ct,e),be(e.expression),Be(21,e.expression.end,Ct,e),Pt(),ye(e.caseBlock)}(r);case 242:return function(e){ye(e.label),Be(58,e.label.end,Ct,e),Pt(),ye(e.statement)}(r);case 243:return function(e){Be(108,e.pos,kt,e),pt(e.expression),Tt()}(r);case 244:return function(e){Be(110,e.pos,kt,e),Pt(),ye(e.tryBlock),e.catchClause&&(jt(e,e.tryBlock,e.catchClause),ye(e.catchClause)),e.finallyBlock&&(jt(e,e.catchClause||e.tryBlock,e.finallyBlock),Be(95,(e.catchClause||e.tryBlock).end,kt,e),Pt(),ye(e.finallyBlock))}(r);case 245:return function(e){Lt(86,e.pos,kt),Tt()}(r);case 246:return function(e){ye(e.name),ye(e.exclamationToken),lt(e.type),_t(e.initializer,e.type?e.type.end:e.name.end,e)}(r);case 247:return function(t){kt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),Pt(),bt(t,t.declarations,528)}(r);case 248:return function(e){je(e)}(r);case 249:return function(e){Ke(e)}(r);case 250:return function(e){gt(e,e.decorators),ut(e,e.modifiers),kt("interface"),Pt(),ye(e.name),ht(e,e.typeParameters),bt(e,e.heritageClauses,512),Pt(),Ct("{"),bt(e,e.members,129),Ct("}")}(r);case 251:return function(e){gt(e,e.decorators),ut(e,e.modifiers),kt("type"),Pt(),ye(e.name),ht(e,e.typeParameters),Pt(),Ct("="),Pt(),ye(e.type),Tt()}(r);case 252:return function(e){ut(e,e.modifiers),kt("enum"),Pt(),ye(e.name),Pt(),Ct("{"),bt(e,e.members,145),Ct("}")}(r);case 253:return function(e){ut(e,e.modifiers),1024&~e.flags&&(kt(16&e.flags?"namespace":"module"),Pt()),ye(e.name);var t=e.body;if(!t)return Tt();for(;253===t.kind;)Ct("."),ye(t.name),t=t.body;Pt(),ye(t)}(r);case 254:return function(t){tr(t),e.forEach(t.statements,ir),Ie(t,Xt(t)),rr(t)}(r);case 255:return function(e){Be(18,e.pos,Ct,e),bt(e,e.clauses,129),Be(19,e.clauses.end,Ct,e,!0)}(r);case 256:return function(e){var t=Be(92,e.pos,kt,e);Pt(),t=Be(126,t,kt,e),Pt(),t=Be(139,t,kt,e),Pt(),ye(e.name),Tt()}(r);case 257:return function(e){ut(e,e.modifiers),Be(99,e.modifiers?e.modifiers.end:e.pos,kt,e),Pt(),ye(e.name),Pt(),Be(62,e.name.end,Ct,e),Pt(),function(e){78===e.kind?be(e):ye(e)}(e.moduleReference),Tt()}(r);case 258:return function(e){ut(e,e.modifiers),Be(99,e.modifiers?e.modifiers.end:e.pos,kt,e),Pt(),e.importClause&&(ye(e.importClause),Pt(),Be(152,e.importClause.end,kt,e),Pt()),be(e.moduleSpecifier),Tt()}(r);case 259:return function(e){e.isTypeOnly&&(Be(148,e.pos,kt,e),Pt()),ye(e.name),e.name&&e.namedBindings&&(Be(27,e.name.end,Ct,e),Pt()),ye(e.namedBindings)}(r);case 260:return function(e){var t=Be(41,e.pos,Ct,e);Pt(),Be(126,t,kt,e),Pt(),ye(e.name)}(r);case 266:return function(e){var t=Be(41,e.pos,Ct,e);Pt(),Be(126,t,kt,e),Pt(),ye(e.name)}(r);case 261:return function(e){He(e)}(r);case 262:return function(e){Ge(e)}(r);case 263:return function(e){var t=Be(92,e.pos,kt,e);Pt(),e.isExportEquals?Be(62,t,wt,e):Be(87,t,kt,e),Pt(),be(e.expression),Tt()}(r);case 264:return function(e){var t=Be(92,e.pos,kt,e);Pt(),e.isTypeOnly&&(t=Be(148,t,kt,e),Pt()),e.exportClause?ye(e.exportClause):t=Be(41,t,Ct,e),e.moduleSpecifier&&(Pt(),Be(152,e.exportClause?e.exportClause.end:t,kt,e),Pt(),be(e.moduleSpecifier)),Tt()}(r);case 265:return function(e){He(e)}(r);case 267:return function(e){Ge(e)}(r);case 268:return;case 269:return function(e){kt("require"),Ct("("),be(e.expression),Ct(")")}(r);case 11:return function(e){f.writeLiteral(e.text)}(r);case 272:case 275:return function(t){if(Ct("<"),e.isJsxOpeningElement(t)){var r=Ht(t.tagName,t);Qe(t.tagName),mt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&Pt(),ye(t.attributes),Gt(t.attributes,t),Jt(r)}Ct(">")}(r);case 273:case 276:return function(t){Ct("")}(r);case 277:return function(e){ye(e.name),function(e,t,r,n){r&&(t("="),n(r))}(0,Ct,e.initializer,xe)}(r);case 278:return function(e){bt(e,e.properties,262656)}(r);case 279:return function(e){Ct("{..."),be(e.expression),Ct("}")}(r);case 280:return function(e){e.expression&&(Ct("{"),ye(e.dotDotDotToken),be(e.expression),Ct("}"))}(r);case 281:return function(e){Be(81,e.pos,kt,e),Pt(),be(e.expression),$e(e,e.statements,e.expression.end)}(r);case 282:return function(e){var t=Be(87,e.pos,kt,e);$e(e,e.statements,t)}(r);case 283:return function(e){Pt(),Bt(e.token,kt),Pt(),bt(e,e.types,528)}(r);case 284:return function(e){var t=Be(82,e.pos,kt,e);Pt(),e.variableDeclaration&&(Be(20,t,Ct,e),ye(e.variableDeclaration),Be(21,e.variableDeclaration.end,Ct,e),Pt()),ye(e.block)}(r);case 285:return function(t){ye(t.name),Ct(":"),Pt();var r=t.initializer;Cr&&0==(512&e.getEmitFlags(r))&&Cr(e.getCommentRange(r).pos),be(r)}(r);case 286:return function(e){ye(e.name),e.objectAssignmentInitializer&&(Pt(),Ct("="),Pt(),be(e.objectAssignmentInitializer))}(r);case 287:return function(e){e.expression&&(Be(25,e.pos,Ct,e),be(e.expression))}(r);case 288:return function(e){ye(e.name),_t(e.initializer,e.name.end,e)}(r);case 322:case 328:return Ze((n=r).tagName),tt(n.typeExpression),Pt(),n.isBracketed&&Ct("["),ye(n.name),n.isBracketed&&Ct("]"),void et(n.comment);case 323:case 325:case 324:case 321:return Ze((a=r).tagName),tt(a.typeExpression),void et(a.comment);case 312:case 311:return function(e){Ze(e.tagName),Pt(),Ct("{"),ye(e.class),Ct("}"),et(e.comment)}(r);case 326:return function(e){Ze(e.tagName),tt(e.constraint),Pt(),bt(e,e.typeParameters,528),et(e.comment)}(r);case 327:return function(e){Ze(e.tagName),e.typeExpression&&(298===e.typeExpression.kind?tt(e.typeExpression):(Pt(),Ct("{"),B("Object"),e.typeExpression.isArrayType&&(Ct("["),Ct("]")),Ct("}"))),e.fullName&&(Pt(),ye(e.fullName)),et(e.comment),e.typeExpression&&308===e.typeExpression.kind&&Xe(e.typeExpression)}(r);case 320:return function(e){Ze(e.tagName),e.name&&(Pt(),ye(e.name)),et(e.comment),Ye(e.typeExpression)}(r);case 309:return Ye(r);case 308:return Xe(r);case 315:case 310:return function(e){Ze(e.tagName),et(e.comment)}(r);case 307:return function(e){if(B("/**"),e.comment)for(var t=0,r=e.comment.split(/\r\n?|\n/g);t=1&&!e.isJsonSourceFile(i)?64:0;bt(t,t.properties,526226|a|n),r&&Mt()}(r);case 198:return function(t){var r=e.cast(be(t.expression),e.isExpression),n=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),i=$t(t,t.expression,n),a=$t(t,n,t.name);zt(i,!1),28===n.kind||!function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=er(t,!0,!1);return!t.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(24))}if(e.isAccessExpression(t)){var n=e.getConstantValue(t);return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}}(r)||f.hasTrailingComment()||f.hasTrailingWhitespace()||Ct("."),t.questionDotToken?ye(n):Be(n.kind,t.expression.end,Ct,t),zt(a,!1),ye(t.name),Jt(i,a)}(r);case 199:return function(e){be(e.expression),ye(e.questionDotToken),Be(22,e.expression.end,Ct,e),be(e.argumentExpression),Be(23,e.argumentExpression.end,Ct,e)}(r);case 200:return function(e){be(e.expression),ye(e.questionDotToken),mt(e,e.typeArguments),xt(e,e.arguments,2576)}(r);case 201:return function(e){Be(102,e.pos,kt,e),Pt(),be(e.expression),mt(e,e.typeArguments),xt(e,e.arguments,18960)}(r);case 202:return function(e){be(e.tag),mt(e,e.typeArguments),Pt(),be(e.template)}(r);case 203:return function(e){Ct("<"),ye(e.type),Ct(">"),be(e.expression)}(r);case 204:return function(e){var t=Be(20,e.pos,Ct,e),r=Ht(e.expression,e);be(e.expression),Gt(e.expression,e),Jt(r),Be(21,e.expression?e.expression.end:t,Ct,e)}(r);case 205:return function(e){or(e.name),je(e)}(r);case 206:return function(e){gt(e,e.decorators),ut(e,e.modifiers),ze(e,Fe)}(r);case 207:return function(e){Be(88,e.pos,kt,e),Pt(),be(e.expression)}(r);case 208:return function(e){Be(111,e.pos,kt,e),Pt(),be(e.expression)}(r);case 209:return function(e){Be(113,e.pos,kt,e),Pt(),be(e.expression)}(r);case 210:return function(e){Be(130,e.pos,kt,e),Pt(),be(e.expression)}(r);case 211:return function(e){Bt(e.operator,wt),function(e){var t=e.operand;return 211===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&Pt(),be(e.operand)}(r);case 212:return function(e){be(e.operand),Bt(e.operator,wt)}(r);case 213:return function(t){for(var r=[t],n=[0],i=0;i>=0;)switch(t=r[i],n[i]){case 0:c(t.left);break;case 1:var a=27!==t.operatorToken.kind,o=$t(t,t.left,t.operatorToken),s=$t(t,t.operatorToken,t.right);zt(o,a),Sr(t.operatorToken.pos),Rt(t.operatorToken,100===t.operatorToken.kind?kt:wt),Cr(t.operatorToken.end,!0),zt(s,!0),c(t.right);break;case 2:Jt(o=$t(t,t.left,t.operatorToken),s=$t(t,t.operatorToken,t.right)),i--;break;default:return e.Debug.fail("Invalid state "+n[i]+" for emitBinaryExpressionWorker")}function c(t){n[i]++;var a=x,o=D;x=t,D=void 0;var s=Se(0,1,t);s===Te&&e.isBinaryExpression(t)?(i++,n[i]=0,r[i]=t):s(1,t),e.Debug.assert(x===t),x=a,D=o}}(r);case 214:return function(e){var t=$t(e,e.condition,e.questionToken),r=$t(e,e.questionToken,e.whenTrue),n=$t(e,e.whenTrue,e.colonToken),i=$t(e,e.colonToken,e.whenFalse);be(e.condition),zt(t,!0),ye(e.questionToken),zt(r,!0),be(e.whenTrue),Jt(t,r),zt(n,!0),ye(e.colonToken),zt(i,!0),be(e.whenFalse),Jt(n,i)}(r);case 215:return function(e){ye(e.head),bt(e,e.templateSpans,262144)}(r);case 216:return function(e){Be(124,e.pos,kt,e),ye(e.asteriskToken),pt(e.expression)}(r);case 217:return function(e){Be(25,e.pos,Ct,e),be(e.expression)}(r);case 218:return function(e){or(e.name),Ke(e)}(r);case 219:return;case 221:return function(e){be(e.expression),e.type&&(Pt(),kt("as"),Pt(),ye(e.type))}(r);case 222:return function(e){be(e.expression),wt("!")}(r);case 223:return function(e){Lt(e.keywordToken,e.pos,Ct),Ct("."),ye(e.name)}(r);case 270:return function(e){ye(e.openingElement),bt(e,e.children,262144),ye(e.closingElement)}(r);case 271:return function(e){Ct("<"),Qe(e.tagName),mt(e,e.typeArguments),Pt(),ye(e.attributes),Ct("/>")}(r);case 274:return function(e){ye(e.openingFragment),bt(e,e.children,262144),ye(e.closingFragment)}(r);case 331:return function(e){be(e.expression)}(r);case 332:return function(e){xt(e,e.elements,528)}(r)}}function ke(t,r){e.Debug.assert(x===r||D===r),Ee(1,t,r)(t,D),e.Debug.assert(x===r||D===r)}function we(r){var n=!1,a=295===r.kind?r:void 0;if(!a||M!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c0)return!1;r=o}return!0}(t)?We:qe;yr?yr(t,t.statements,r):r(t),Mt(),Lt(19,t.statements.end,Ct,t)}function We(e){qe(e,!0)}function qe(e,t){var r=it(e.statements),n=f.getTextPos();we(e),0===r&&n===f.getTextPos()&&t?(Mt(),bt(e,e.statements,768),It()):bt(e,e.statements,1,r)}function Ke(t){e.forEach(t.members,ar),gt(t,t.decorators),ut(t,t.modifiers),kt("class"),t.name&&(Pt(),ve(t.name));var r=65536&e.getEmitFlags(t);r&&It(),ht(t,t.typeParameters),bt(t,t.heritageClauses,0),Pt(),Ct("{"),bt(t,t.members,129),Ct("}"),r&&Mt()}function He(e){Ct("{"),bt(e,e.elements,525136),Ct("}")}function Ge(e){e.propertyName&&(ye(e.propertyName),Pt(),Be(126,e.propertyName.end,kt,e),Pt()),ye(e.name)}function Qe(e){78===e.kind?be(e):ye(e)}function $e(t,r,n){var a=163969;1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],i))?(Lt(58,n,Ct,t),Pt(),a&=-130):Be(58,n,Ct,t),bt(t,r,a)}function Xe(t){bt(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function Ye(t){t.typeParameters&&bt(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&bt(t,e.factory.createNodeArray(t.parameters),33),t.type&&(Ft(),Pt(),Ct("*"),Pt(),ye(t.type))}function Ze(e){Ct("@"),ye(e)}function et(e){e&&(Pt(),B(e))}function tt(e){e&&(Pt(),Ct("{"),ye(e.type),Ct("}"))}function rt(e,t,r,n){if(e){var a=f.getTextPos();Nt('/// '),j&&j.sections.push({pos:a,end:f.getTextPos(),kind:"no-default-lib"}),Ft()}if(i&&i.moduleName&&(Nt('/// '),Ft()),i&&i.amdDependencies)for(var o=0,s=i.amdDependencies;o':'/// '),Ft()}for(var u=0,l=t;u'),j&&j.sections.push({pos:a,end:f.getTextPos(),kind:"reference",data:_.fileName}),Ft()}for(var d=0,p=r;d'),j&&j.sections.push({pos:a,end:f.getTextPos(),kind:"type",data:_.fileName}),Ft();for(var g=0,m=n;g'),j&&j.sections.push({pos:a,end:f.getTextPos(),kind:"lib",data:_.fileName}),Ft()}function nt(t){var r=t.statements;tr(t),e.forEach(t.statements,ir),we(t);var n=e.findIndex(r,function(t){return!e.isPrologueDirective(t)});!function(e){e.isDeclarationFile&&rt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),bt(t,r,1,-1===n?r.length:n),rr(t)}function it(t,r,n,i){for(var a=!!r,o=0;o=a.length||0===c;if(l&&32768&o)return A&&A(a),void(N&&N(a));if(15360&o&&(Ct(function(e){return n[15360&e][0]}(o)),l&&!u&&Cr(a.pos,!0)),A&&A(a),l)!(1&o)||R&&e.rangeIsOnSingleLine(r,i)?256&o&&!(524288&o)&&Pt():Ft();else{var _=0==(262144&o),d=_,f=Vt(r,a,o);f?(Ft(f),d=!1):256&o&&Pt(),128&o&&It();for(var g=void 0,m=void 0,h=!1,y=0;y0?(0==(131&o)&&(It(),h=!0),Ft(b),d=!1):g&&512&o&&Pt()}m=oe(v),d?Cr&&Cr(e.getCommentRange(v).pos):d=_,p=v.pos,t(v),h&&(Mt(),h=!1),g=v}16&o&&64&o&&a.hasTrailingComma&&Ct(","),g&&60&o&&g.end!==r.end&&!(1024&e.getEmitFlags(g))&&Sr(g.end),128&o&&Mt(),se(m);var x=qt(r,a,o);x?Ft(x):2097408&o&&Pt()}N&&N(a),15360&o&&(l&&!u&&Sr(a.end),Ct(function(e){return n[15360&e][1]}(o)))}}function Et(e,t){f.writeSymbol(e,t)}function Ct(e){f.writePunctuation(e)}function Tt(){f.writeTrailingSemicolon(";")}function kt(e){f.writeKeyword(e)}function wt(e){f.writeOperator(e)}function At(e){f.writeParameter(e)}function Nt(e){f.writeComment(e)}function Pt(){f.writeSpace(" ")}function Ot(e){f.writeProperty(e)}function Ft(e){void 0===e&&(e=1);for(var t=0;t0)}function It(){f.increaseIndent()}function Mt(){f.decreaseIndent()}function Lt(t,r,n,i){return W?Bt(t,n,r):function(t,r,n,i,a){if(W||t&&e.isInJsonFile(t))return a(r,n,i);var o=t&&t.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[r],u=c&&c.source||y;return i=Pr(u,c?c.pos:i),0==(128&s)&&i>=0&&Fr(u,i),i=a(r,n,i),c&&(i=c.end),0==(256&s)&&i>=0&&Fr(u,i),i}(i,t,n,r,Bt)}function Rt(t,r){P&&P(t),r(e.tokenToString(t.kind)),O&&O(t)}function Bt(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function jt(t,r,n){if(1&e.getEmitFlags(t))Pt();else if(R){var i=$t(t,r,n);i?Ft(i):Pt()}else Ft()}function Ut(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i0||o>0)&&a!==o&&(c||vr(a,s),(!c||a>=0&&0!=(512&n))&&(K=a),(!u||o>=0&&0!=(1024&n))&&(H=o,247===r.kind&&(G=o))),e.forEach(e.getSyntheticLeadingComments(r),gr),Z();var p=Ee(2,t,r);2048&n?($=!0,p(t,r),$=!1):p(t,r),Y(),e.forEach(e.getSyntheticTrailingComments(r),mr),(a>0||o>0)&&a!==o&&(K=l,H=_,G=d,!u&&s&&function(e){wr(e,Er)}(o)),Z(),e.Debug.assert(x===r||D===r)}function gr(e){(e.hasLeadingNewline||2===e.kind)&&f.writeLine(),hr(e),e.hasTrailingNewLine||2===e.kind?f.writeLine():f.writeSpace(" ")}function mr(e){f.isAtStartOfLine()||f.writeSpace(" "),hr(e),e.hasTrailingNewLine&&f.writeLine()}function hr(t){var r=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,f,0,r.length,I)}function yr(t,r,n){Y();var a,o,s=r.pos,c=r.end,u=e.getEmitFlags(t),l=$||c<0||0!=(1024&u);s<0||0!=(512&u)||(a=r,(o=e.emitDetachedComments(i.text,he(),f,Ar,a,I,$))&&(b?b.push(o):b=[o])),Z(),2048&u&&!$?($=!0,n(t),$=!1):n(t),Y(),l||(vr(r.end,!0),Q&&!f.isAtStartOfLine()&&f.writeLine()),Z()}function vr(e,t){Q=!1,t?kr(e,Dr):0===e&&kr(e,br)}function br(t,r,n,a,o){(function(t,r){return e.isRecognizedTripleSlashComment(i.text,t,r)})(t,r)&&Dr(t,r,n,a,o)}function xr(r,n){return!t.onlyPrintJsDocStyle||e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n)}function Dr(t,r,n,a,o){xr(i.text,t)&&(Q||(e.emitNewLineBeforeLeadingCommentOfPosition(he(),f,o,t),Q=!0),Or(t),e.writeCommentRange(i.text,he(),f,t,r,I),Or(r),a?f.writeLine():3===n&&f.writeSpace(" "))}function Sr(e){$||-1===e||vr(e,!0)}function Er(t,r,n,a){xr(i.text,t)&&(f.isAtStartOfLine()||f.writeSpace(" "),Or(t),e.writeCommentRange(i.text,he(),f,t,r,I),Or(r),a&&f.writeLine())}function Cr(e,t){$||(Y(),wr(e,t?Er:Tr),Z())}function Tr(t,r,n,a){Or(t),e.writeCommentRange(i.text,he(),f,t,r,I),Or(r),a?f.writeLine():f.writeSpace(" ")}function kr(t,r){!i||-1!==K&&t===K||(function(t){return void 0!==b&&e.last(b).nodePos===t}(t)?function(t){var r=e.last(b).detachedCommentEndPos;b.length-1?b.pop():b=void 0,e.forEachLeadingCommentRange(i.text,r,t,r)}(r):e.forEachLeadingCommentRange(i.text,t,r,t))}function wr(t,r){i&&(-1===H||t!==H&&t!==G)&&e.forEachTrailingCommentRange(i.text,t,r)}function Ar(t,r,n,a,o,s){xr(i.text,a)&&(Or(a),e.writeCommentRange(t,r,n,a,o,s),Or(o))}function Nr(t,r){e.Debug.assert(x===r||D===r);var n=Ee(3,t,r);if(e.isUnparsedSource(r)||e.isUnparsedPrepend(r))n(t,r);else if(e.isUnparsedNode(r)){var i=function(t){return void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0}(r.parent);i&&h&&h.appendSourceMap(f.getLine(),f.getColumn(),i,r.parent.sourceMapPath,r.parent.getLineAndCharacterOfPosition(r.pos),r.parent.getLineAndCharacterOfPosition(r.end)),n(t,r)}else{var a=e.getSourceMapRange(r),o=a.pos,s=a.end,c=a.source,u=void 0===c?y:c,l=e.getEmitFlags(r);330!==r.kind&&0==(16&l)&&o>=0&&Fr(u,Pr(u,o)),64&l?(W=!0,n(t,r),W=!1):n(t,r),330!==r.kind&&0==(32&l)&&s>=0&&Fr(u,s)}e.Debug.assert(x===r||D===r)}function Pr(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function Or(t){if(!(W||e.positionIsSynthesized(t)||Mr(y))){var r=e.getLineAndCharacterOfPosition(y,t),n=r.line,i=r.character;h.addMapping(f.getLine(),f.getColumn(),q,n,i,void 0)}}function Fr(e,t){if(e!==y){var r=y;Ir(e),Or(t),Ir(r)}else Or(t)}function Ir(e){W||(y=e,Mr(e)||(q=h.addSource(e.fileName),t.inlineSources&&h.setSourceContent(q,e.text)))}function Mr(t){return e.fileExtensionIs(t.fileName,".json")}}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=o,e.getTsBuildInfoEmitOutputFilePath=s,e.getOutputPathsForBundle=c,e.getOutputPathsFor=u,e.getOutputExtension=_,e.getOutputDeclarationFileName=p,e.getAllProjectOutputs=function(t,r){var n=g(),i=n.addOutput,a=n.getOutputs;if(e.outFile(t.options))m(t,i);else{for(var o=0,c=t.fileNames;o=4,m=(d+1+"").length;g&&(m=Math.max("...".length,m));for(var h="",y=c;y<=d;y++){h+=o.getNewLine(),g&&c+11})&&Qt(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(P.useDefineForClassFields&&0===d&&Qt(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),P.checkJs&&!P.allowJs&&Z.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),P.emitDeclarationOnly&&(e.getEmitDeclarations(P)||Qt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),P.noEmit&&Qt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),P.emitDecoratorMetadata&&!P.experimentalDecorators&&Qt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),P.jsxFactory?(P.reactNamespace&&Qt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(P.jsxFactory,d)||$t("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFactory)):P.reactNamespace&&!e.isIdentifierText(P.reactNamespace,d)&&$t("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,P.reactNamespace),P.jsxFragmentFactory&&(P.jsxFactory||Qt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),e.parseIsolatedEntityName(P.jsxFragmentFactory,d)||$t("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFragmentFactory)),!P.noEmit&&!P.suppressOutputPathCheck){var h=Qe(),y=new e.Set;e.forEachEmittedFile(h,function(e){P.emitDeclarationOnly||v(e.jsFilePath,y),v(e.declarationFilePath,y)})}function v(t,r){if(t){var n=Ke(t);if(me.has(n)){var i=void 0;P.configFilePath||(i=e.chainDiagnosticMessages(void 0,e.Diagnostics.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)),i=e.chainDiagnosticMessages(i,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),tr(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=G.useCaseSensitiveFileNames()?n:e.toFileNameLowerCase(n);r.has(a)?tr(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.add(a)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),Je;function Ve(t,r,n,i){e.performance.mark("beforeResolveModule");var a=K(t,r,n,i);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),a}function We(t,r,n){e.performance.mark("beforeResolveTypeReference");var i=H(t,r,n);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),i}function qe(t){if(e.containsPath(Y,t.fileName,!1)){var r=e.getBaseFileName(t.fileName);if("lib.d.ts"===r||"lib.es6.d.ts"===r)return 0;var n=e.removeSuffix(e.removePrefix(r,"lib."),".d.ts"),i=e.libs.indexOf(n);if(-1!==i)return i+1}return e.libs.length+2}function Ke(t){return e.toPath(t,ee,Ut)}function He(){if(void 0===E){var t=e.filter(D,function(t){return e.sourceFileMayBeEmitted(t,Je)});P.rootDir&&Jt(t,P.rootDir)?E=e.getNormalizedAbsolutePath(P.rootDir,ee):P.composite&&P.configFilePath?Jt(t,E=e.getDirectoryPath(e.normalizeSlashes(P.configFilePath))):E=r(e.mapDefined(t,function(e){return e.isDeclarationFile?void 0:e.fileName}),ee,Ut),E&&E[E.length-1]!==e.directorySeparator&&(E+=e.directorySeparator)}return E}function Ge(t,r,n){if(0===de&&!n.ambientModuleNames.length)return Ve(t,r,void 0,At(n.originalFileName));var i,a,o,s=I&&I.getSourceFile(r);if(s!==n&&n.resolvedModules){for(var c=[],u=0,l=t;u=0;){if(r.markUsed(o))return o;var s=n.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(t,i)}),directives:i}}function dt(e,t){return ft(e,t,R,pt)}function pt(t,r){return st(function(){var n=Ze().getEmitResolver(t,r);return e.getDeclarationDiagnostics(Qe(e.noop),n,t)||e.emptyArray})}function ft(t,r,n,i){var a,o=t?null===(a=n.perFile)||void 0===a?void 0:a.get(t.path):n.allDiagnostics;if(o)return o;var s=i(t,r);return t?(n.perFile||(n.perFile=new e.Map)).set(t.path,s):n.allDiagnostics=s,s}function gt(e,t){return e.isDeclarationFile?[]:dt(e,t)}function mt(t,r,n){xt(e.normalizePath(t),r,n,void 0)}function ht(e,t){return e.fileName===t.fileName}function yt(e,t){return 78===e.kind?78===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function vt(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if(P.importHelpers&&(P.isolatedModules||o)&&!t.isDeclarationFile){var s=e.factory.createStringLiteral(e.externalHelpersModuleNameText),c=e.factory.createImportDeclaration(void 0,void 0,void 0,s);e.addEmitFlags(c,67108864),e.setParent(s,c),e.setParent(c,t),r=[s]}for(var u=0,l=t.statements;u0),Object.defineProperties(o,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(v,h,t,r,Ke(t),_);return ge.add(v.path,t),Ct(b,r,l),fe.set(r,o.name),x.push(b),b}h&&(pe.set(y,h),fe.set(r,o.name))}if(Ct(h,r,l),h){if(V.set(r,z>0),h.fileName=t,h.path=r,h.resolvedPath=Ke(t),h.originalFileName=_,Et(t,h,a),G.useCaseSensitiveFileNames()){var D=e.toFileNameLowerCase(r),S=he.get(D);S?Dt(t,S,a):he.set(D,h)}$=$||h.hasNoDefaultLib&&!i,P.noResolve||(Mt(h,n),Lt(h)),P.noLib||Bt(h),zt(h),n?d.push(h):x.push(h)}return h}function Et(t,r,n){n&&r&&(w||(w=e.createMultiMap())).add(r.path,{referencedFileName:t,kind:n.kind,index:n.index,file:n.file.path})}function Ct(e,t,r){r?(me.set(r,e),me.set(t,e||!1)):me.set(t,e)}function Tt(e){var t=kt(e);return t&&wt(t,e)}function kt(t){if(ce&&ce.length&&!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json"))return At(t)}function wt(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!G.useCaseSensitiveFileNames())}function At(t){void 0===le&&(le=new e.Map,Nt(function(e,t){e&&Ke(P.configFilePath)!==t&&e.commandLine.fileNames.forEach(function(e){return le.set(Ke(e),t)})}));var r=le.get(Ke(t));return r&&It(r)}function Nt(e){return Ft(F,ce,function(t,r,n){var i=Ke(y((n?n.commandLine.projectReferences:F)[r]));return e(t,i)})}function Pt(t){if(e.isDeclarationFileName(t))return void 0===_e&&(_e=new e.Map,Nt(function(t){if(t){var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");_e.set(Ke(n),!0)}else e.forEach(t.commandLine.fileNames,function(r){if(!e.fileExtensionIs(r,".d.ts")&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,G.useCaseSensitiveFileNames());_e.set(Ke(n),r)}})}})),_e.get(Ke(t))}function Ot(e){return ye&&!!At(e)}function Ft(t,r,n,i){var a;return function t(r,n,i,o,s){if(s){var c=s(r,i);if(c)return c}return e.forEach(n,function(r,n){if(!e.contains(a,r)){var c=o(r,n,i);if(c)return c;if(r)return(a||(a=[])).push(r),t(r.commandLine.projectReferences,r.references,r,o,s)}})}(t,r,void 0,n,i)}function It(e){if(ue)return ue.get(e)||void 0}function Mt(r,n){e.forEach(r.referencedFiles,function(i,a){xt(t(i.fileName,r.fileName),n,!1,void 0,{kind:e.RefFileKind.ReferenceFile,index:a,file:r,pos:i.pos,end:i.end})})}function Lt(t){var r=e.map(t.typeReferenceDirectives,function(t){return e.toFileNameLowerCase(t.fileName)});if(r)for(var n=We(r,t.originalFileName,At(t.originalFileName)),i=0;iU,l=c&&!v(P,a)&&!P.noResolve&&ir&&(Z.add(e.createDiagnosticForNodeInSourceFile(P.configFile,p.elements[r],n,i,a,o)),s=!1)}}s&&Z.add(e.createCompilerDiagnostic(n,i,a,o))}function Ht(t,r,n,i){for(var a=!0,o=0,s=Gt();or?e.createDiagnosticForNodeInSourceFile(t||P.configFile,o.elements[r],n,i,a):e.createCompilerDiagnostic(n,i,a))}function Yt(t,r,n,i,a,o,s){var c=Zt();(!c||!er(c,t,r,n,i,a,o,s))&&Z.add(e.createCompilerDiagnostic(i,a,o,s))}function Zt(){if(void 0===W){W=null;var t=e.getTsConfigObjectLiteralExpression(P.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r0)for(var s=t.getTypeChecker(),c=0,u=r.imports;c0)for(var d=0,p=r.referencedFiles;d1&&x(b)}return o;function x(t){for(var n=0,i=t.declarations;n1?f.outputFiles[1]:void 0:f.outputFiles.length>0?f.outputFiles[0]:void 0;g?(e.Debug.assert(e.fileExtensionIs(g.name,".d.ts"),"File extension for signature expected to be dts",function(){return"Found: "+e.getAnyExtensionFromPath(g.name)+" for "+g.name+":: All output files: "+JSON.stringify(f.outputFiles.map(function(e){return e.name}))}),_=c(g.text),u&&_!==d&&function(t,r,i){var a;r?(r.forEach(function(t){var r;(r=n(t))&&(a||(a=new e.Set),a.add(r))}),i.set(t.resolvedPath,a||!1)):i.set(t.resolvedPath,!1)}(a,f.exportedModulesFromDeclarationEmit,u)):_=d}return o.set(a.resolvedPath,_),!d||_!==d}function _(t,r){if(!t.allFileNames){var n=r.getSourceFiles();t.allFileNames=n===e.emptyArray?e.emptyArray:n.map(function(e){return e.fileName})}return t.allFileNames}function d(t,r){return e.arrayFrom(e.mapDefinedIterator(t.referencedMap.entries(),function(e){var t=e[0];return e[1].has(r)?t:void 0}))}function p(t){return function(t){return e.some(t.moduleAugmentations,function(t){return e.isGlobalScopeAugmentation(t.parent)})}(t)||!e.isExternalModule(t)&&!function(t){for(var r=0,n=t.statements;r0;){var g=_.pop();if(!u.has(g)){var m=r.getSourceFileByPath(g);u.set(g,m),m&&l(t,r,m,i,a,o,s)&&_.push.apply(_,d(t,m.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(u.values(),function(e){return e}))}r.canReuseOldState=s,r.create=function(t,r,n){var i=new e.Map,a=t.getCompilerOptions().module!==e.ModuleKind.None?new e.Map:void 0,c=a?new e.Map:void 0,u=new e.Set,l=s(a,n);t.getTypeChecker();for(var _=0,d=t.getSourceFiles();_0;){var o=a.pop();if(!i.has(o)&&(i.set(o,!0),n(t,o)&&u(t,o))){var s=e.Debug.checkDefined(t.program).getSourceFileByPath(o);a.push.apply(a,e.BuilderState.getReferencedByPaths(t,s.resolvedPath))}}}e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);var c=new e.Set;e.forEachEntry(t.currentAffectedFilesExportedModulesMap,function(e,i){return e&&e.has(r.resolvedPath)&&l(t,i,c,n)})||e.forEachEntry(t.exportedModulesMap,function(e,i){return!t.currentAffectedFilesExportedModulesMap.has(i)&&e.has(r.resolvedPath)&&l(t,i,c,n)})}}(t,r,function(t,r){return function(t,r,n,i){if(c(t,r),!t.changedFilesSet.has(r)){var a=e.Debug.checkDefined(t.program),o=a.getSourceFileByPath(r);o&&(e.BuilderState.updateShapeSignature(t,a,o,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap),e.getEmitDeclarations(t.compilerOptions)&&b(t,r,0))}return!1}(t,r,n,i)});else if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;var a=e.Debug.checkDefined(t.program),o=a.getCompilerOptions();e.forEach(a.getSourceFiles(),function(r){return a.isSourceFileDefaultLibrary(r)&&!e.skipTypeChecking(r,o,a)&&c(t,r.resolvedPath)})}}function c(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function u(t,r){return e.Debug.checkDefined(t.currentAffectedFilesSignatures).get(r)!==e.Debug.checkDefined(t.fileInfos.get(r)).signature}function l(t,r,n,i){return e.forEachEntry(t.referencedMap,function(e,a){return e.has(r)&&_(t,a,n,i)})}function _(t,r,n,i){return!(!e.tryAddToSet(n,r)||!i(t,r)&&(e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap),!e.forEachEntry(t.currentAffectedFilesExportedModulesMap,function(e,a){return e&&e.has(r)&&_(t,a,n,i)})&&!e.forEachEntry(t.exportedModulesMap,function(e,a){return!t.currentAffectedFilesExportedModulesMap.has(a)&&e.has(r)&&_(t,a,n,i)})&&!e.forEachEntry(t.referencedMap,function(e,a){return e.has(r)&&!n.has(a)&&i(t,a)})))}function d(t,r,n,i,a){a?t.buildInfoEmitPending=!1:r===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(r.resolvedPath),void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(r.resolvedPath,n),i?(t.affectedFilesPendingEmitIndex++,t.buildInfoEmitPending=!0):t.affectedFilesIndex++)}function p(e,t,r){return d(e,r),{result:t,affected:r}}function f(e,t,r,n,i,a){return d(e,r,n,i,a),{result:t,affected:r}}function g(t,r,n){return e.concatenate(function(t,r,n){var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnotics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o),e.filterSemanticDiagnotics(o,t.compilerOptions)}(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function m(t,r){var n={},i=e.getOptionsNameMap().optionsNameMap;for(var a in t)e.hasProperty(t,a)&&(n[a]=h(i.get(a.toLowerCase()),t[a],r));return n.configFilePath&&(n.configFilePath=r(n.configFilePath)),n}function h(e,t,r){if(e)if("list"===e.type){if(e.element.isFilePath&&t.length)return t.map(r)}else if(e.isFilePath)return r(t);return t}function y(t,r){return e.Debug.assert(!!t.length),t.map(function(t){var n=v(t,r);n.reportsUnnecessary=t.reportsUnnecessary,n.reportDeprecated=t.reportsDeprecated,n.source=t.source,n.skippedOn=t.skippedOn;var i=t.relatedInformation;return n.relatedInformation=i?i.length?i.map(function(e){return v(e,r)}):e.emptyArray:void 0,n})}function v(e,t){var r=e.file;return a(a({},e),{file:r?t(r.resolvedPath):void 0})}function b(t,r,n){t.affectedFilesPendingEmit||(t.affectedFilesPendingEmit=[]),t.affectedFilesPendingEmitKind||(t.affectedFilesPendingEmitKind=new e.Map);var i=t.affectedFilesPendingEmitKind.get(r);t.affectedFilesPendingEmit.push(r),t.affectedFilesPendingEmitKind.set(r,i||n),void 0===t.affectedFilesPendingEmitIndex&&(t.affectedFilesPendingEmitIndex=0)}function x(t,r){if(t){var n=new e.Map;for(var i in t)e.hasProperty(t,i)&&n.set(r(i),new e.Set(t[i].map(r)));return n}}function D(t,r){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:n,getProgramOrUndefined:function(){return t.program},releaseProgram:function(){return t.program=void 0},getCompilerOptions:function(){return t.compilerOptions},getSourceFile:function(e){return n().getSourceFile(e)},getSourceFiles:function(){return n().getSourceFiles()},getOptionsDiagnostics:function(e){return n().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return n().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return r},getSyntacticDiagnostics:function(e,t){return n().getSyntacticDiagnostics(e,t)},getDeclarationDiagnostics:function(e,t){return n().getDeclarationDiagnostics(e,t)},getSemanticDiagnostics:function(e,t){return n().getSemanticDiagnostics(e,t)},emit:function(e,t,r,i,a){return n().emit(e,t,r,i,a)},emitBuildInfo:function(e,t){return n().emitBuildInfo(e,t)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return n().getCurrentDirectory()},close:e.noop};function n(){return e.Debug.checkDefined(t.program)}}(r=e.BuilderFileEmit||(e.BuilderFileEmit={}))[r.DtsOnly=0]="DtsOnly",r[r.Full=1]="Full",function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(t=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(t,r,n,i,a,o){var s,c,u;return void 0===t?(e.Debug.assert(void 0===r),s=n,e.Debug.assert(!!(u=i)),c=u.getProgram()):e.isArray(t)?(c=e.createProgram({rootNames:t,options:r,host:n,oldProgram:(u=i)&&u.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=n):(c=t,s=r,u=n,a=i),{host:s,newProgram:c,oldProgram:u,configFileParsingDiagnostics:a||e.emptyArray}},e.createBuilderProgram=function(r,a){var s=a.newProgram,c=a.host,u=a.oldProgram,l=a.configFileParsingDiagnostics,_=u&&u.getState();if(_&&s===_.program&&l===s.getConfigFileParsingDiagnostics())return s=void 0,_=void 0,u;var h,v=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),x=c.createHash||e.generateDjb2Hash,S=function(t,r,i){var a=e.BuilderState.create(t,r,i);a.program=t;var o=t.getCompilerOptions();a.compilerOptions=o,e.outFile(o)||(a.semanticDiagnosticsPerFile=new e.Map),a.changedFilesSet=new e.Set;var s=e.BuilderState.canReuseOldState(a.referencedMap,i),c=s?i.compilerOptions:void 0,u=s&&i.semanticDiagnosticsPerFile&&!!a.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(o,c);if(s){if(!i.currentChangedFilePath){var l=i.currentAffectedFilesSignatures;e.Debug.assert(!(i.affectedFiles||l&&l.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var _=i.changedFilesSet;u&&e.Debug.assert(!_||!e.forEachKey(_,function(e){return i.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),null==_||_.forEach(function(e){return a.changedFilesSet.add(e)}),!e.outFile(o)&&i.affectedFilesPendingEmit&&(a.affectedFilesPendingEmit=i.affectedFilesPendingEmit.slice(),a.affectedFilesPendingEmitKind=i.affectedFilesPendingEmitKind&&new e.Map(i.affectedFilesPendingEmitKind),a.affectedFilesPendingEmitIndex=i.affectedFilesPendingEmitIndex,a.seenAffectedFiles=new e.Set)}var d=a.referencedMap,p=s?i.referencedMap:void 0,f=u&&!o.skipLibCheck==!c.skipLibCheck,g=f&&!o.skipDefaultLibCheck==!c.skipDefaultLibCheck;return a.fileInfos.forEach(function(o,c){var l,_,m,h;if(!s||!(l=i.fileInfos.get(c))||l.version!==o.version||(m=_=d&&d.get(c))!==(h=p&&p.get(c))&&(void 0===m||void 0===h||m.size!==h.size||e.forEachKey(m,function(e){return!h.has(e)}))||_&&e.forEachKey(_,function(e){return!a.fileInfos.has(e)&&i.fileInfos.has(e)}))a.changedFilesSet.add(c);else if(u){var y=t.getSourceFileByPath(c);if(y.isDeclarationFile&&!f)return;if(y.hasNoDefaultLib&&!g)return;var v=i.semanticDiagnosticsPerFile.get(c);v&&(a.semanticDiagnosticsPerFile.set(c,i.hasReusableDiagnostic?function(t,r,i){if(!t.length)return e.emptyArray;var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(r.getCompilerOptions()),r.getCurrentDirectory()));return t.map(function(t){var i=n(t,r,o);i.reportsUnnecessary=t.reportsUnnecessary,i.reportsDeprecated=t.reportDeprecated,i.source=t.source,i.skippedOn=t.skippedOn;var a=t.relatedInformation;return i.relatedInformation=a?a.length?a.map(function(e){return n(e,r,o)}):e.emptyArray:void 0,i});function o(t){return e.toPath(t,a,i)}}(v,t,r):v),a.semanticDiagnosticsFromOldState||(a.semanticDiagnosticsFromOldState=new e.Set),a.semanticDiagnosticsFromOldState.add(c))}}),s&&e.forEachEntry(i.fileInfos,function(e,t){return e.affectsGlobalScope&&!a.fileInfos.has(t)})?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(a,t,void 0).forEach(function(e){return a.changedFilesSet.add(e.resolvedPath)}):c&&!e.outFile(o)&&e.compilerOptionsAffectEmit(o,c)&&(t.getSourceFiles().forEach(function(e){return b(a,e.resolvedPath,1)}),e.Debug.assert(!a.seenAffectedFiles||!a.seenAffectedFiles.size),a.seenAffectedFiles=a.seenAffectedFiles||new e.Set),a.buildInfoEmitPending=!!a.changedFilesSet.size,a}(s,v,_);s.getProgramBuildInfo=function(){return function(t,r){if(!e.outFile(t.compilerOptions)){var n=e.Debug.checkDefined(t.program).getCurrentDirectory(),i=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),n)),a={};t.fileInfos.forEach(function(e,r){var n=t.currentAffectedFilesSignatures&&t.currentAffectedFilesSignatures.get(r);a[T(r)]=void 0===n?e:{version:e.version,signature:n,affectsGlobalScope:e.affectsGlobalScope}});var o={fileInfos:a,options:m(t.compilerOptions,function(t){return T(e.getNormalizedAbsolutePath(t,n))})};if(t.referencedMap){for(var s={},c=0,u=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive);c1||47!==t.charCodeAt(0);if(a&&0!==t.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-z]\$\//)){if(-1===(n=t.indexOf(e.directorySeparator,n+1)))return!1;i=t.substring(r+i.length,n+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=n+1,s=2;s>0;s--)if(0===(o=t.indexOf(e.directorySeparator,o)+1))return!1;return!0}e.removeIgnoredPath=t,e.canWatchDirectory=r,e.createResolutionCache=function(n,i,a){var o,s,c,u=e.createMultiMap(),l=[],_=e.createMultiMap(),d=!1,p=[],f=[],g=[],m=e.memoize(function(){return n.getCurrentDirectory()}),h=n.getCachedDirectoryStructureHost(),y=new e.Map,v=e.createCacheWithRedirects(),b=e.createCacheWithRedirects(),x=e.createModuleResolutionCacheWithMaps(v,b,m(),n.getCanonicalFileName),D=new e.Map,S=e.createCacheWithRedirects(),E=[".ts",".tsx",".js",".jsx",".json"],C=new e.Map,T=new e.Map,k=i&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(i,m())),w=k&&n.toPath(k),A=void 0!==w?w.split(e.directorySeparator).length:0,N=new e.Map;return{startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:M,finishCachingPerDirectoryResolution:function(){c=void 0,M(),T.forEach(function(e,t){0===e.refCount&&(T.delete(t),e.watcher.close())}),d=!1},resolveModuleNames:function(t,r,n,i){return R({names:t,containingFile:r,redirectedReference:i,cache:y,perDirectoryCacheWithRedirects:v,loader:L,getResolutionWithResolvedFileName:P,shouldRetryResolution:function(t){return!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension)},reusedNames:n,logChanges:a})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){var r=y.get(n.toPath(t));return r&&r.get(e)},resolveTypeReferenceDirectives:function(t,r,n){return R({names:t,containingFile:r,redirectedReference:n,cache:D,perDirectoryCacheWithRedirects:S,loader:e.resolveTypeReferenceDirective,getResolutionWithResolvedFileName:O,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(t){if(e.fileExtensionIs(t,".json")){var r=n.getCurrentProgram();if(r){var i=r.getResolvedProjectReferenceByPath(t);i&&i.commandLine.fileNames.forEach(function(e){return $(n.toPath(e))})}}},removeResolutionsOfFile:$,hasChangedAutomaticTypeDirectiveNames:function(){return d},invalidateResolutionOfFile:function(t){$(t);var r=d;X(_.get(t),e.returnTrue)&&d&&!r&&n.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:Z,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(t){e.Debug.assert(c===t||void 0===c),c=t},createHasInvalidatedResolution:function(t){if(Z(),t)return s=void 0,e.returnTrue;var r=s;return s=void 0,function(e){return!!r&&r.has(e)||I(e)}},updateTypeRootsWatch:function(){var t=n.getCompilationSettings();if(t.types)te();else{var r=e.getEffectiveTypeRoots(t,{directoryExists:ne,getCurrentDirectory:m});r?e.mutateMap(N,e.arrayToMap(r,function(e){return n.toPath(e)}),{createNewValue:re,onDeleteValue:e.closeFileWatcher}):te()}},closeTypeRootsWatch:te,clear:function(){e.clearMap(T,e.closeFileWatcherOf),C.clear(),u.clear(),te(),y.clear(),D.clear(),_.clear(),l.length=0,p.length=0,f.length=0,g.length=0,M(),d=!1}};function P(e){return e.resolvedModule}function O(e){return e.resolvedTypeReferenceDirective}function F(t,r){return!(void 0===t||r.length<=t.length)&&e.startsWith(r,t)&&r[t.length]===e.directorySeparator}function I(e){if(!c)return!1;var t=c.get(e);return!!t&&!!t.length}function M(){v.clear(),b.clear(),S.clear(),u.forEach(W),u.clear()}function L(t,r,i,a,o){var s,c=e.resolveModuleName(t,r,i,a,x,o);if(!n.getGlobalCache)return c;var u=n.getGlobalCache();if(!(void 0===u||e.isExternalModuleNameRelative(t)||c.resolvedModule&&e.extensionIsTS(c.resolvedModule.extension))){var l=e.loadModuleFromGlobalCache(e.Debug.checkDefined(n.globalCacheResolutionModuleName)(t),n.projectName,i,a,u),_=l.resolvedModule,d=l.failedLookupLocations;if(_)return c.resolvedModule=_,(s=c.failedLookupLocations).push.apply(s,d),c}return c}function R(t){var r,i=t.names,a=t.containingFile,s=t.redirectedReference,c=t.cache,u=t.perDirectoryCacheWithRedirects,l=t.loader,_=t.getResolutionWithResolvedFileName,d=t.shouldRetryResolution,p=t.reusedNames,f=t.logChanges,g=n.toPath(a),m=c.get(g)||c.set(g,new e.Map).get(g),h=e.getDirectoryPath(g),y=u.getOrCreateMapOfCacheRedirects(s),v=y.get(h);v||(v=new e.Map,y.set(h,v));for(var b=[],x=n.getCompilationSettings(),D=f&&I(g),S=n.getCurrentProgram(),E=S&&S.getResolvedProjectReferenceToRedirect(a),C=E?!s||s.sourceFile.path!==E.sourceFile.path:!!s,T=new e.Map,k=0,w=i;kA+1?{dir:i.slice(0,A+1).join(e.directorySeparator),dirPath:n.slice(0,A+1).join(e.directorySeparator)}:{dir:k,dirPath:w,nonRecursive:!1}}return U(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,m())),e.getDirectoryPath(r))}function U(t,n){for(;e.pathContainsNodeModules(n);)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(e.isNodeModulesDirectory(n))return r(e.getDirectoryPath(n))?{dir:t,dirPath:n}:void 0;var i,a,o=!0;if(void 0!==w)for(;!F(n,w);){var s=e.getDirectoryPath(n);if(s===n)break;o=!1,i=n,a=t,n=s,t=e.getDirectoryPath(t)}return r(n)?{dir:a||t,dirPath:i||n,nonRecursive:o}:void 0}function z(t){return e.fileExtensionIsOneOf(t,E)}function J(t,r,i,a){if(r.refCount)r.refCount++,e.Debug.assertDefined(r.files);else{r.refCount=1,e.Debug.assert(0===e.length(r.files)),e.isExternalModuleNameRelative(t)?V(r):u.add(t,r);var o=a(r);o&&o.resolvedFileName&&_.add(n.toPath(o.resolvedFileName),r)}(r.files||(r.files=[])).push(i)}function V(t){e.Debug.assert(!!t.refCount);var r=t.failedLookupLocations;if(r.length){l.push(t);for(var i=!1,a=0,o=r;a1),C.set(d,g-1))),f===w?o=!0:H(f)}}o&&H(w)}}}function H(e){T.get(e).refCount--}function G(e,t,r){return n.watchDirectoryOfFailedLookupLocation(e,function(e){var r=n.toPath(e);h&&h.addOrDeleteFileOrDirectory(e,r),Y(r,t===r)},r?0:1)}function Q(e,t,r){var n=e.get(t);n&&(n.forEach(function(e){return K(e,t,r)}),e.delete(t))}function $(e){Q(y,e,P),Q(D,e,O)}function X(t,r){if(!t)return!1;for(var n=!1,i=0,a=t;i1&&r.sort(_),u.push.apply(u,r));var i=e.getDirectoryPath(t);if(i===t)return c=t,"break";c=t=i},p=e.getDirectoryPath(e.toPath(t,i,a));0!==o.size;){var f=l(p);if(p=c,"break"===f)break}if(o.size){var g=e.arrayFrom(o.values());g.length>1&&g.sort(_),u.push.apply(u,g)}return u}function f(t,r,n){for(var i in n)for(var a=0,o=n[i];a=u.length+l.length&&e.startsWith(r,u)&&e.endsWith(r,l)||!l&&r===e.removeTrailingDirectorySeparator(u)){var _=r.substr(u.length,r.length-l.length);return i.replace("*",_)}}else if(s===r||s===t)return i}}function g(t,r,n,i,a){var o,s=r.getCanonicalFileName,c=r.sourceDirectory;if(n.fileExists&&n.readFile){var u=function(t){var r,n=0,i=0,a=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(r||(r={}));for(var o=0,s=0,c=0;s>=0;)switch(s=t.indexOf("/",(o=s)+1),c){case 0:t.indexOf(e.nodeModulesPathPart,o)===o&&(n=o,i=s,c=1);break;case 1:case 2:1===c&&"@"===t.charAt(o+1)?c=2:(a=s,c=3);break;case 3:c=t.indexOf(e.nodeModulesPathPart,o)===o?1:3}return c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0}(t);if(u){var l=t;if(!a)for(var _=u.packageRootIndex,d=void 0;;){var p=D(_),g=p.moduleFileToTry,m=p.packageRootPath;if(m){l=m;break}if(d||(d=g),-1===(_=t.indexOf(e.directorySeparator,_+1))){o=void 0,o=e.removeFileExtension(d),l="/index"!==s(o.substring(u.fileNameIndex))||function(t,r){if(t.fileExists)for(var n=0,i=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]);n0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:l.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function p(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||o(t),watchFile:e.maybeBind(t,t.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function f(t,r){var n=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:e.memoize(function(){return t.getCurrentDirectory()}),getDefaultLibLocation:n,getDefaultLibFileName:function(t){return e.combinePaths(n(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,r,n,i,a){return t.readDirectory(e,r,n,i,a)},realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:function(e){return t.write(e+t.newLine)},createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,r,n){return t.writeFile(e,r,n)},createHash:e.maybeBind(t,t.createHash),createProgram:r||e.createEmitAndSemanticDiagnosticsBuilderProgram}}function g(t,r,n,i){void 0===t&&(t=e.sys);var a=function(e){return t.write(e+t.newLine)},o=f(t,r);return e.copyProperties(o,p(t,i)),o.afterProgramCreate=function(r){var i=r.getCompilerOptions(),s=e.getNewLineCharacter(i,function(){return t.newLine});_(r,n,a,function(t){return o.onWatchStatusChange(e.createCompilerDiagnostic(c(t),t),s,i,t)})},o}function m(t,r,n){r(n),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=r,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=a,e.createWatchStatusReporter=o,e.parseConfigFileWithSystem=function(t,r,n,i,a){var o=i;o.onUnRecoverableConfigFileDiagnostic=function(e){return m(i,a,e)};var s=e.getParsedCommandLineOfConfigFile(t,r,o,void 0,n);return o.onUnRecoverableConfigFileDiagnostic=void 0,s},e.getErrorCountForSummary=s,e.getWatchErrorSummaryDiagnosticMessage=c,e.getErrorSummaryText=u,e.listFiles=l,e.emitFilesAndReportErrors=_,e.emitFilesAndReportErrorsAndGetExitStatus=d,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=p,e.WatchType={ConfigFile:"Config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots"},e.createWatchFactory=function(t,r){var n=t.trace?r.extendedDiagnostics?e.WatchLogLevel.Verbose:r.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=n!==e.WatchLogLevel.None?function(e){return t.trace(e)}:e.noop,a=e.getWatchFactory(n,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=function(t,r,n){void 0===n&&(n=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize(function(){return t.getNewLine()});return{getSourceFile:function(n,i,a){var o;try{e.performance.mark("beforeIORead"),o=t.readFile(n,r().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(s){a&&a(s.message),o=""}return void 0!==o?e.createSourceFile(n,o,i):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:function(r,n,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,n,i,function(e,r,n){return t.writeFile(e,r,n)},function(e){return t.createDirectory(e)},function(e){return t.directoryExists(e)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(o){a&&a(o.message)}},getCurrentDirectory:e.memoize(function(){return t.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(r(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory)}},e.setGetSourceFileAsHashVersioned=function(t,r){var n=t.getSourceFile,a=r.createHash||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],o=0;oe?t:e}function u(t){return e.fileExtensionIs(t,".d.ts")}function l(e){return!!e&&!!e.buildOrder}function _(e){return l(e)?e.buildOrder:e}function d(t,r){return function(n){var i=r?"["+e.formatColorAndReset(e.getLocaleTimeString(t),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(t)+" - ";i+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(t.newLine+t.newLine),t.write(i)}}function p(t,r,n,i){var a=e.createProgramHost(t,r);return a.getModifiedTime=t.getModifiedTime?function(e){return t.getModifiedTime(e)}:e.returnUndefined,a.setModifiedTime=t.setModifiedTime?function(e,r){return t.setModifiedTime(e,r)}:e.noop,a.deleteFile=t.deleteFile?function(e){return t.deleteFile(e)}:e.noop,a.reportDiagnostic=n||e.createDiagnosticReporter(t),a.reportSolutionBuilderStatus=i||d(t),a.now=e.maybeBind(t,t.now),a}function f(t,r){return e.toPath(r,t.currentDirectory,t.getCanonicalFileName)}function g(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;var i=f(e,t);return r.set(t,i),i}function m(e){return!!e.options}function h(t,r,n){var i,a=t.configFileCache,o=a.get(n);if(o)return m(o)?o:void 0;var s,c=t.parseConfigFileHost,u=t.baseCompilerOptions,l=t.baseWatchOptions,_=t.extendedConfigCache,d=t.host;return d.getParsedCommandLine?(s=d.getParsedCommandLine(r))||(i=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,r)):(c.onUnRecoverableConfigFileDiagnostic=function(e){return i=e},s=e.getParsedCommandLineOfConfigFile(r,u,c,_,l),c.onUnRecoverableConfigFileDiagnostic=e.noop),a.set(n,s||i),s}function y(t,r){return e.resolveConfigFileProjectName(e.resolvePath(t.currentDirectory,r))}function v(t,r){for(var n,i,a=new e.Map,o=new e.Map,s=[],c=0,u=r;c0);var o={sourceFile:n.options.configFile,commandLine:n};i.directoryToModuleNameMap.setOwnMap(i.directoryToModuleNameMap.getOrCreateMapOfCacheRedirects(o)),i.moduleNameToDirectoryMap.setOwnMap(i.moduleNameToDirectoryMap.getOrCreateMapOfCacheRedirects(o))}i.directoryToModuleNameMap.setOwnOptions(n.options),i.moduleNameToDirectoryMap.setOwnOptions(n.options)}}(l,_,m),b=r.createProgram(m.fileNames,m.options,i,function(t,r,n){var i=t.compilerHost;if(!t.options.force)return t.builderPrograms.get(r)||e.readBuilderProgram(n.options,i)}(l,d,m),e.getConfigFileParsingDiagnostics(m),m.projectReferences),l.watch&&l.builderPrograms.set(d,b),S++}function N(e,t,r){var n;e.length?(n=I(l,d,b,m,e,t,r),x=n.buildResult,S=n.step):S++}function P(r){e.Debug.assertIsDefined(b),N(i(b.getConfigFileParsingDiagnostics(),b.getOptionsDiagnostics(r),b.getGlobalDiagnostics(r),b.getSyntacticDiagnostics(void 0,r)),t.SyntaxErrors,"Syntactic")}function M(r){N(e.Debug.checkDefined(b).getSemanticDiagnostics(void 0,r),t.TypeErrors,"Semantic")}function L(r,i,o){var s,_;e.Debug.assertIsDefined(b),e.Debug.assert(S===n.Emit),b.backupState();var p=[],g=e.emitFilesAndReportErrors(b,function(e){return(_||(_=[])).push(e)},void 0,void 0,function(e,t,r){return p.push({name:e,text:t,writeByteOrderMark:r})},i,!1,o).emitResult;if(_)return b.restoreState(),s=I(l,d,b,m,_,t.DeclarationEmitErrors,"Declaration file"),x=s.buildResult,S=s.step,{emitSkipped:!0,diagnostics:g.diagnostics};var h=l.host,y=l.compilerHost,v=t.DeclarationOutputUnchanged,D=a,E=!1,C=e.createDiagnosticCollection(),T=new e.Map;return p.forEach(function(n){var i,a=n.name,o=n.text,s=n.writeByteOrderMark;!E&&u(a)&&(h.fileExists(a)&&l.readFileWithCache(a)===o?i=h.getModifiedTime(a):(v&=~t.DeclarationOutputUnchanged,E=!0)),T.set(f(l,a),a),e.writeFile(r?{writeFile:r}:y,C,a,o,s),void 0!==i&&(D=c(i,D))}),U(C,T,D,E,p.length?p[0].name:e.getFirstProjectOutput(m,!h.useCaseSensitiveFileNames()),v),g}function B(r,a){e.Debug.assertIsDefined(b),e.Debug.assert(S===n.EmitBuildInfo);var o=b.emitBuildInfo(r,a);return o.diagnostics.length&&(Z(l,o.diagnostics),l.diagnostics.set(d,i(l.diagnostics.get(d),o.diagnostics)),x&=t.EmitErrors),o.emittedFiles&&l.writeFileName&&o.emittedFiles.forEach(function(e){return O(l,m,e)}),F(l,b,m),S=n.QueueReferencingProjects,o}function U(r,i,a,s,c,u){var _,p=r.getDiagnostics();if(p.length)return _=I(l,d,b,m,p,t.EmitErrors,"Emit"),x=_.buildResult,S=_.step,p;l.writeFileName&&i.forEach(function(e){return O(l,m,e)});var f=R(l,m,a,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,i);return l.diagnostics.delete(d),l.projectStatus.set(d,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:s?o:f,oldestOutputFileName:c}),F(l,b,m),S=n.QueueReferencingProjects,x=u,p}function z(i,o){if(e.Debug.assert(s===r.UpdateBundle),l.options.dry)return X(l,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,_),x=t.Success,void(S=n.QueueReferencingProjects);l.options.verbose&&X(l,e.Diagnostics.Updating_output_of_project_0,_);var c=l.compilerHost;l.projectCompilerOptions=m.options;var u=e.emitUsingBuildInfo(m,c,function(e){var t=y(l,e.path);return h(l,t,g(l,t))},o);if(e.isString(u))return X(l,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,_,$(l,u)),S=n.BuildInvalidatedProjectOfBundle,D=A(r.Build,l,_,d,p,m,v);e.Debug.assert(!!u.length);var b=e.createDiagnosticCollection(),E=new e.Map;return u.forEach(function(t){var r=t.name,n=t.text,a=t.writeByteOrderMark;E.set(f(l,r),r),e.writeFile(i?{writeFile:i}:c,b,r,n,a)}),{emitSkipped:!1,diagnostics:U(b,E,a,!1,u[0].name,t.DeclarationOutputUnchanged)}}function J(t,r,i,a){for(;S<=t&&So)}}}function N(t,r,n){return!(r.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!t.options.force&&0!==n.fileNames.length&&!e.getConfigFileParsingDiagnostics(n).length&&e.isIncrementalCompilation(n.options))}function P(t,n,i){if(t.projectPendingBuild.size&&!l(n)){if(t.currentInvalidatedProject)return e.arrayIsEqualTo(t.currentInvalidatedProject.buildOrder,n)?t.currentInvalidatedProject:void 0;for(var a=t.options,o=t.projectPendingBuild,s=0;ss&&(i=p,s=f)}if(!r.fileNames.length&&!e.canJsonReportNoInputFiles(r.raw))return{type:e.UpToDateStatusType.ContainerOnly};for(var m,y=e.getAllProjectOutputs(r,!l.useCaseSensitiveFileNames()),v="(none)",b=o,x="(none)",D=a,S=a,E=!1,C=0,T=y;CD&&(D=w,x=k),u(k)&&(S=c(S,l.getModifiedTime(k)||e.missingFileModifiedTime))}var A,N=!1,P=!1;if(r.projectReferences){t.projectStatus.set(n,{type:e.UpToDateStatusType.ComputingUpstream});for(var O=0,F=r.projectReferences;O=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&r214)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){var r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){var n=a(r[1],!1);if(0!==n)return{name:r[1],isScopeName:!0,result:n};var i=a(r[2],!1);return 0!==i?{name:r[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function o(t,r,n,i){var a=i?"Scope":"Package";switch(r){case 1:return"'"+t+"':: "+a+" name '"+n+"' cannot be empty";case 2:return"'"+t+"':: "+a+" name '"+n+"' should be less than 214 characters";case 3:return"'"+t+"':: "+a+" name '"+n+"' cannot start with '.'";case 4:return"'"+t+"':: "+a+" name '"+n+"' cannot start with '_'";case 5:return"'"+t+"':: "+a+" name '"+n+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}t.isTypingUpToDate=r,t.nodeCoreModuleList=["assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","http2","inspector","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"],t.nodeCoreModules=new e.Set(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=n,t.loadSafeList=function(t,r){var n=e.readConfigFile(r,function(e){return t.readFile(e)});return new e.Map(e.getEntries(n.config))},t.loadTypesMap=function(t,r){var n=e.readConfigFile(r,function(e){return t.readFile(e)});if(n.config)return new e.Map(e.getEntries(n.config.simpleMap))},t.discoverTypings=function(t,i,a,o,s,c,u,l,_){if(!u||!u.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var d=new e.Map;a=e.mapDefined(a,function(t){var r=e.normalizePath(t);if(e.hasJSFileExtension(r))return r});var p=[];u.include&&S(u.include,"Explicitly included types");var f=u.exclude||[],g=new e.Set(a.map(e.getDirectoryPath));g.add(o),g.forEach(function(t){E(e.combinePaths(t,"package.json"),p),E(e.combinePaths(t,"bower.json"),p),C(e.combinePaths(t,"bower_components"),p),C(e.combinePaths(t,"node_modules"),p)}),function(t){var r=e.mapDefined(t,function(t){if(e.hasJSFileExtension(t)){var r=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),n=e.removeMinAndVersionNumbers(r);return s.get(n)}});r.length&&S(r,"Inferred typings from file names"),e.some(t,function(t){return e.fileExtensionIs(t,".jsx")})&&(i&&i("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}(a),l&&S(e.deduplicate(l.map(n),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach(function(e,t){var n=_.get(t);d.has(t)&&void 0===d.get(t)&&void 0!==n&&r(e,n)&&d.set(t,e.typingLocation)});for(var m=0,h=f;m=r.end}function b(e,t,r,n){return Math.max(e,r)t)break;var u=c.getEnd();if(tt.end||e.pos===t.end)&&H(e,n)?r(e):void 0})}(r)}function R(t,r,n,i){var a=function a(o){if(B(o)&&1!==o.kind)return o;for(var s=o.getChildren(r),c=0;c=t||!H(u,r)||z(u)){var l=U(s,c,r);return l&&j(l,r)}return a(u)}}e.Debug.assert(void 0!==n||294===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var _=U(s,s.length,r);return _&&j(_,r)}(n||r);return e.Debug.assert(!(a&&z(a))),a}function B(t){return e.isToken(t)&&!z(t)}function j(e,t){if(B(e))return e;var r=e.getChildren(t),n=U(r,r.length,t);return n&&j(n,t)}function U(t,r,n){for(var i=r-1;i>=0;i--)if(z(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(H(t[i],n))return t[i]}function z(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function J(e,t,r){for(var n=e.kind,i=0;;){var a=R(e.getFullStart(),r);if(!a)return;if((e=a).kind===t){if(0===i)return e;i--}else e.kind===n&&i++}}function V(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function W(t,r,n){var i=n.getTypeAtLocation(t);return e.isOptionalChain(t.parent)&&(i=V(i,e.isOptionalChainRoot(t.parent),!0)),(e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(function(e){return!!e.typeParameters&&e.typeParameters.length>=r})}function q(t,r){for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=R(n.getFullStart(),r))&&28===n.kind&&(n=R(n.getFullStart(),r)),!n||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(!(n=J(n,18,r)))return;break;case 21:if(!(n=J(n,20,r)))return;break;case 23:if(!(n=J(n,22,r)))return;break;case 27:a++;break;case 38:case 78:case 10:case 8:case 9:case 109:case 94:case 111:case 93:case 137:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=R(n.getFullStart(),r)}}function K(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function H(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function G(e,t,r){var n=K(e,t,void 0);return!!n&&r===m.test(e.text.substring(n.pos,n.end))}function Q(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())}function $(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function X(e,t){return{span:e,newText:t}}function Y(e){return 148===e.kind}function Z(t,r){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return r.getCurrentDirectory()},readFile:e.maybeBind(r,r.readFile),useCaseSensitiveFileNames:e.maybeBind(r,r.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(r,r.getSymlinkCache)||t.getSymlinkCache,getGlobalTypingsCacheLocation:e.maybeBind(r,r.getGlobalTypingsCacheLocation),getSourceFiles:function(){return t.getSourceFiles()},redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)}}}function ee(e,t){return a(a({},Z(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function te(t,r,n,i,a){return e.factory.createImportDeclaration(void 0,void 0,t||r?e.factory.createImportClause(!!a,t,r&&r.length?e.factory.createNamedImports(r):void 0):void 0,"string"==typeof n?re(n,i):n)}function re(t,r){return e.factory.createStringLiteral(t,0===r)}function ne(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function ie(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,function(t){var r=e.getNameOfDeclaration(t);return r&&78===r.kind?r.escapedText:void 0})}function ae(t,r,n,i){var a=new e.Map;return function t(o){if(96&o.flags&&e.addToSeen(a,e.getSymbolId(o)))return e.firstDefined(o.declarations,function(a){return e.firstDefined(e.getAllSuperTypeNodes(a),function(a){var o=n.getTypeAtLocation(a),s=o&&o.symbol&&n.getPropertyOfType(o,r);return o&&s&&(e.firstDefined(n.getRootSymbols(s),i)||t(o.symbol))})})}(t)}function oe(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function se(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function ce(e){return e.declarations&&e.declarations.length>0&&159===e.declarations[0].kind}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=h,e.rangeContainsRangeExclusive=function(e,t){return y(e,t.pos)&&y(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=y,e.startEndContainsRange=v,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return b(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return b(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=b,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),rn.getStart(t)&&rn.getStart(t)},e.isInJSXText=function(t,r){var n=I(t,r);return!!e.isJsxText(n)||!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(29!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent))},e.isInsideJsxElement=function(e,t){return function(r){for(;r;)if(r.kind>=271&&r.kind<=280||11===r.kind||29===r.kind||31===r.kind||78===r.kind||19===r.kind||18===r.kind||43===r.kind)r=r.parent;else{if(270!==r.kind)return!1;if(t>r.getStart(e))return!0;r=r.parent}return!1}(I(e,t))},e.findPrecedingMatchingToken=J,e.removeOptionality=V,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=q(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==W(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=W,e.getPossibleTypeArgumentsInfo=q,e.isInComment=K,e.hasDocComment=function(t,r){var n=I(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t){var r=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t):0,n=[];return 8&r&&n.push("private"),16&r&&n.push("protected"),4&r&&n.push("public"),32&r&&n.push("static"),128&r&&n.push("abstract"),1&r&&n.push("export"),8192&r&&n.push("deprecated"),8388608&t.flags&&n.push("declare"),263===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 172===t.kind||200===t.kind?t.typeArguments:e.isFunctionLike(t)||249===t.kind||250===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=77},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)=2||!!e.noEmit},e.createModuleSpecifierResolutionHost=Z,e.getModuleSpecifierResolverHost=ee,e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?te(e,t,r,n):void 0},e.makeImport=te,e.makeStringLiteral=re,(g=e.QuotePreference||(e.QuotePreference={}))[g.Single=0]="Single",g[g.Double=1]="Double",e.quotePreferenceFromString=ne,e.getQuotePreference=function(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,e.isStringLiteral);return n?ne(n,t):1},e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=ie(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=ie,e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getPropertySymbolsFromBaseTypes=ae,e.isMemberSymbolInBaseType=function(e,t){return ae(e.parent,e.name,t,function(e){return!0})||!1},e.getParentNodeInSpan=function(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!oe(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return t.modifiers&&e.find(t.modifiers,function(e){return e.kind===r})},e.insertImports=function(t,r,n,i){var a=e.isArray(n)?n[0]:n,o=e.filter(r.statements,229===a.kind?e.isRequireVariableStatement:e.isAnyImportSyntax),s=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,u=s;ca&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(_e(" ",e.SymbolDisplayPartKind.space)),t.push(_e("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return c(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return c(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return c(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return c(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return c(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){i>a||(s(),i+=e.length,t.push(le(e,r)))},writeLine:function(){i>a||(i+=1,t.push(fe()),r=!0)},write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return n},increaseIndent:function(){n++},decreaseIndent:function(){n--},clear:u,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&r){var o=e.getIndentString(n);o&&(i+=o.length,t.push(_e(o,e.SymbolDisplayPartKind.space))),r=!1}}function c(e,r){i>a||(s(),i+=e.length,t.push(_e(e,r)))}function u(){t=[],r=!0,n=0,i=0}}();function le(t,r){return _e(t,function(t){var r=t.flags;return 3&r?ce(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r||32768&r||65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r||2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(r))}function _e(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function de(t){return _e(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function pe(t){return _e(t,e.SymbolDisplayPartKind.text)}function fe(){return _e("\n",e.SymbolDisplayPartKind.lineBreak)}function ge(e){try{return e(ue),ue.displayParts()}finally{ue.clear()}}function me(e){return 0!=(33554432&e.flags)}function he(e){return 0!=(2097152&e.flags)}function ye(e,t){void 0===t&&(t=!0);var r=e&&be(e);return r&&!t&&xe(r),r}function ve(t,r,n,i,a){var o;if(void 0===r&&(r=!0),n&&i&&e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent))(c=(s=i.getSymbolAtLocation(t.name))&&n.get(String(e.getSymbolId(s))))&&c.text!==(t.name||t.propertyName).getText()&&(o=e.setOriginalNode(e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,c,t.initializer),t));else if(n&&i&&e.isIdentifier(t)){var s,c;(c=(s=i.getSymbolAtLocation(t))&&n.get(String(e.getSymbolId(s))))&&(o=e.setOriginalNode(e.factory.createIdentifier(c.text),t))}return o||(o=be(t,n,i,a)),o&&!r&&xe(o),a&&o&&a(t,o),o}function be(t,r,n,i){var a=e.visitEachChild(t,r||n||i?function(e){return ve(e,!0,r,n,i)}:ye,e.nullTransformationContext);if(a===t){var o=e.isStringLiteral(t)?e.setOriginalNode(e.factory.createStringLiteralFromNode(t),t):e.isNumericLiteral(t)?e.setOriginalNode(e.factory.createNumericLiteral(t.text,t.numericLiteralFlags),t):e.factory.cloneNode(t);return e.setTextRange(o,t)}return a.parent=void 0,a}function xe(e){De(e),Se(e)}function De(e){Ee(e,512,Ce)}function Se(t){Ee(t,1024,e.getLastChild)}function Ee(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&Ee(i,r,n)}function Ce(e){return e.forEachChild(function(e){return e})}function Te(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,Ae(r,n,i,a,e.addSyntheticLeadingComment))}function ke(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,Ae(r,n,i,a,e.addSyntheticTrailingComment))}function we(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,Ae(r,n,i,a,e.addSyntheticLeadingComment))}function Ae(e,t,r,n,i){return function(a,o,s,c){3===s?(a+=2,o-=2):a+=2,i(e,r||s,t.text.slice(a,o),void 0!==n?n:c)}}function Ne(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);return-1===n&&(n=t.indexOf("."+r)),-1===n&&(n=t.indexOf('"'+r)),-1===n?-1:n+1}function Pe(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Oe(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Fe(e){return 168===e||169===e||170===e||161===e||163===e}function Ie(e){return 248===e||165===e||164===e||166===e||167===e}function Me(e){return 253===e}function Le(e){return 229===e||230===e||232===e||237===e||238===e||239===e||243===e||245===e||162===e||251===e||258===e||257===e||264===e||256===e||263===e}function Re(e,t){return je(e,e.fileExists,t)}function Be(e){try{return e()}catch(t){return}}function je(e,t){for(var r=[],n=2;n-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=ye,e.getSynthesizedDeepCloneWithRenames=ve,e.getSynthesizedDeepClones=function(t,r){return void 0===r&&(r=!0),t&&e.factory.createNodeArray(t.map(function(e){return ye(e,r)}),t.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=xe,e.suppressLeadingTrivia=De,e.suppressTrailingTrivia=Se,e.copyComments=function(e,t){var r=e.getSourceFile();!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i=0),o},e.copyLeadingComments=Te,e.copyTrailingComments=ke,e.copyTrailingAsLeadingComments=we,e.needsParentheses=function(t){return e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)},e.getContextualTypeFromParent=function(e,t){var r=e.parent;switch(r.kind){case 201:return t.getContextualType(r);case 213:var n=r.left,i=r.right;return Pe(r.operatorToken.kind)?t.getTypeAtLocation(e===i?n:i):t.getContextualType(e);case 281:return r.expression===e?Oe(r,t):void 0;default:return t.getContextualType(e)}},e.quote=function(t,r){var n=r.quotePreference||"auto",i=JSON.stringify(t);switch(n){case"auto":case"double":return i;case"single":return"'"+e.stripQuotes(i).replace("'","\\'").replace('\\"','"')+"'";default:return e.Debug.assertNever(n)}},e.isEqualityOperatorKind=Pe,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 215:case 202:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=Oe,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,t,r,n){var i=r.getTypeChecker(),a=!0,o=function(){a=!1},s=i.typeToTypeNode(e,t,void 0,{trackSymbol:function(e,t,r){a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:ee(r,n)});return a?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Fe,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=Ie,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Me,e.syntaxRequiresTrailingSemicolonOrASI=Le,e.syntaxMayBeASICandidate=e.or(Fe,Ie,Me,Le),e.positionIsASICandidate=function(t,r,n){var i=e.findAncestor(r,function(r){return r.end!==t?"quit":e.syntaxMayBeASICandidate(r.kind)});return!!i&&function(t,r){var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(Fe(t.kind)){if(n&&27===n.kind)return!1}else if(Me(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(Ie(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!Le(t.kind))return!1;if(232===t.kind)return!0;var a=L(t,e.findAncestor(t,function(e){return!e.parent}),r);return!a||19===a.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(a.getStart(r)).line}(i,n)},e.probablyUsesSemicolons=function(t){var r=0,n=0;return e.forEachChild(t,function i(a){if(Le(a.kind)){var o=a.getLastToken(t);o&&26===o.kind?r++:n++}return r+n>=5||e.forEachChild(a,i)}),0===r&&n<=1||r/n>.2},e.tryGetDirectories=function(e,t){return je(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,r,n,i,a){return je(t,t.readDirectory,r,n,i,a)||e.emptyArray},e.tryFileExists=Re,e.tryDirectoryExists=function(t,r){return Be(function(){return e.directoryProbablyExists(r,t)})||!1},e.tryAndIgnoreErrors=Be,e.tryIOAndConsumeErrors=je,e.findPackageJsons=function(t,r,n){var i=[];return e.forEachAncestorDirectory(t,function(t){if(t===n)return!0;var a=e.combinePaths(t,"package.json");Re(r,a)&&i.push(a)}),i},e.findPackageJson=function(t,r){var n;return e.forEachAncestorDirectory(t,function(t){return"node_modules"===t||!!(n=e.findConfigFile(t,function(e){return Re(r,e)},"package.json"))||void 0}),n},e.getPackageJsonsVisibleToFile=function(t,r){if(!r.fileExists)return[];var n=[];return e.forEachAncestorDirectory(e.getDirectoryPath(t),function(t){var i=e.combinePaths(t,"package.json");if(r.fileExists(i)){var a=Ue(i,r);a&&n.push(a)}}),n},e.createPackageJsonInfo=Ue,e.consumesNodeCoreModules=function(t){return e.some(t.imports,function(t){return e.JsTyping.nodeCoreModules.has(t.text)})},e.isInsideNodeModules=function(t){return e.contains(e.getPathComponents(t),"node_modules")},e.isDiagnosticWithLocation=ze,e.findDiagnosticForNode=function(t,r){var n=Q(t),i=e.binarySearchKey(r,n,e.identity,e.compareTextSpans);if(i>=0){var a=r[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,ze)}},e.getDiagnosticsWithinSpan=function(t,r){var n,i=e.binarySearchKey(r,t.start,function(e){return e.start},e.compareValues);for(i<0&&(i=~i);(null===(n=r[i-1])||void 0===n?void 0:n.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(r[i],ze);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=function(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)},e.mapOneOrMany=function(t,r,n){return void 0===n&&(n=e.identity),t?e.isArray(t)?n(e.map(t,r)):r(t,0):void 0},e.firstOrOnly=function(t){return e.isArray(t)?e.first(t):t},e.getNameForExportedSymbol=function(t,r){return"export="===t.escapedName||"default"===t.escapedName?e.firstDefined(t.declarations,function(t){return e.isExportAssignment(t)&&e.isIdentifier(t.expression)?t.expression.text:void 0})||e.codefix.moduleSymbolToValidIdentifier(function(t){var r;return e.Debug.checkDefined(t.parent,"Symbol parent was undefined. Flags: "+e.Debug.formatSymbolFlags(t.flags)+". Declarations: "+(null===(r=t.declarations)||void 0===r?void 0:r.map(function(t){var r=e.Debug.formatSyntaxKind(t.kind),n=e.isInJSFile(t),i=t.expression;return(n?"[JS]":"")+r+(i?" (expression: "+e.Debug.formatSyntaxKind(i.kind)+")":"")}).join(", "))+".")}(t),r):t.name},e.stringContainsAt=function(e,t,r){var n=t.length;if(n+r>e.length)return!1;for(var i=0;i=i.length){var v=r(o,u,e.lastOrUndefined(_));void 0!==v&&(g=v)}}while(1!==u);function b(){switch(u){case 43:case 67:t[l]||13!==o.reScanSlashToken()||(u=13);break;case 29:78===l&&h++;break;case 31:h>0&&h--;break;case 128:case 146:case 143:case 131:case 147:h>0&&!c&&(u=78);break;case 15:_.push(u);break;case 18:_.length>0&&_.push(u);break;case 19:if(_.length>0){var r=e.lastOrUndefined(_);15===r?17===(u=o.reScanTemplateToken(!1))?_.pop():e.Debug.assertEqual(u,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),_.pop())}break;default:if(!e.isKeyword(u))break;(24===l||e.isKeyword(l)&&e.isKeyword(u)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 134:case 145:case 132:case 123:return!0;default:return!1}}(l,u))&&(u=78)}}return{endOfLineState:g,spans:m}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s=0){var _=c-o;_>0&&n.push({length:_,classification:e.TokenClass.Whitespace})}n.push({length:u,classification:i(l)}),o=c+u}var d=r.length-o;return d>0&&n.push({length:d,classification:e.TokenClass.Whitespace}),{entries:n,finalLexState:t.endOfLineState}}(s(t,r,n),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([78,10,8,9,13,107,45,46,21,23,19,109,94],function(e){return e},function(){return!0});function r(t,r,n){switch(r){case 10:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 15===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function a(t){if(e.isKeyword(t))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 101:case 100:case 126:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 73:case 72:case 77:case 69:case 70:case 71:case 63:case 64:case 65:case 67:case 68:case 62:case 27:case 60:case 74:case 75:case 76:return!0;default:return!1}}(t)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(t))return 5;if(t>=18&&t<=77)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 78:default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 253:case 249:case 250:case 248:case 218:case 205:case 206:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild(function u(l){if(l&&e.textSpanIntersectsWith(a,l.pos,l.getFullWidth())){if(o(r,l.kind),e.isIdentifier(l)&&!e.nodeIsMissing(l)&&i.has(l.escapedText)){var _=t.getSymbolAtLocation(l),d=_&&c(_,e.getMeaningFromLocation(l),t);d&&function(t,r,n){var i=r-t;e.Debug.assert(i>0,"Classification had non-positive length of "+i),s.push(t),s.push(i),s.push(n)}(l.getStart(n),l.getEnd(),d)}l.forEachChild(u)}}),{spans:s,endOfLineState:0}}function c(t,r,n){var i=t.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&function(t){return e.some(t.declarations,function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)})}(t)?14:void 0:2097152&i?c(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0}function u(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function l(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i])*)(\/>)?)?/im.exec(a);if(!o)return!1;if(!o[3]||!(o[3]in e.commentPragmas))return!1;var s=t;d(s,o[1].length),l(s+=o[1].length,o[2].length,10),l(s+=o[2].length,o[3].length,21);for(var c=o[4],u=s+=o[3].length;;){var _=i.exec(c);if(!_)break;var p=s+_.index;p>u&&(d(u,p-u),u=p),l(u,_[1].length,22),u+=_[1].length,_[2].length&&(d(u,_[2].length),u+=_[2].length),l(u,_[3].length,5),u+=_[3].length,_[4].length&&(d(u,_[4].length),u+=_[4].length),l(u,_[5].length,24),u+=_[5].length}(s+=o[4].length)>u&&d(u,s-u),o[5]&&(l(s,o[5].length,10),s+=o[5].length);var f=t+n;return s=0),a>0){var o=n||h(t.kind,t);o&&l(i,a,o)}return!0}function h(t,r){if(e.isKeyword(t))return 3;if((29===t||31===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(62===t&&(246===n.kind||162===n.kind||159===n.kind||277===n.kind))return 5;if(213===n.kind||211===n.kind||212===n.kind||214===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&277===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(78===t){if(r)switch(r.parent.kind){case 249:return r.parent.name===r?11:void 0;case 158:return r.parent.name===r?15:void 0;case 250:return r.parent.name===r?13:void 0;case 252:return r.parent.name===r?12:void 0;case 253:return r.parent.name===r?14:void 0;case 159:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}return 2}}function y(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);sa.parameters.length)){var o=r.getParameterType(a,t.argumentIndex);return n=n||!!(4&o.flags),u(o,i)}}),isNewIdentifier:n}}(d,i):f()}case 258:case 264:case 269:return{kind:0,paths:p(t,r,a,o,i)};default:return f()}function f(){return{kind:2,types:u(e.getContextualTypeFromParent(r,i)),isNewIdentifier:!1}}}function c(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),function(t){return!(t.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(t.valueDeclaration))}),hasIndexSignature:e.hasIndexSignature(t)}}function u(t,r){return void 0===r&&(r=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,function(e){return u(e,r)}):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function l(e,t,r){return{name:e,kind:t,extension:r}}function _(e){return l(e,"directory",void 0)}function d(t,r,n){var i=function(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf("\\")),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),99)?void 0:e.createTextSpan(r+i,a)}(t,r);return n.map(function(e){return{name:e.name,kind:e.kind,extension:e.extension,span:i}})}function p(t,r,n,a,o){return d(r.text,r.getStart(t)+1,function(t,r,n,a,o){var s=e.normalizeSlashes(r.text),c=t.path,u=e.getDirectoryPath(c);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}(s)||!n.baseUrl&&(e.isRootedDiskPath(s)||e.isUrl(s))?function(t,r,n,a,o){var s=f(n);return n.rootDirs?function(t,r,n,a,o,s,c){var u=function(t,r,n,a){t=t.map(function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))});var o=e.firstDefined(t,function(t){return e.containsPath(t,n,r,a)?n.substr(t.length):void 0});return e.deduplicate(i(t.map(function(t){return e.combinePaths(t,o)}),[n]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,o.project||s.getCurrentDirectory(),n,!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()));return e.flatMap(u,function(e){return m(r,e,a,s,c)})}(n.rootDirs,t,r,s,n,a,o):m(t,r,s,a,o)}(s,u,n,a,c):function(t,r,n,i,a){var o=n.baseUrl,s=n.paths,c=[],u=f(n);if(o){var _=n.project||i.getCurrentDirectory(),d=e.normalizePath(e.combinePaths(_,o));m(t,d,u,i,void 0,c),s&&h(c,t,d,u.extensions,s,i)}for(var p=y(t),g=0,v=function(t,r,n){var i=n.getAmbientModules().map(function(t){return e.stripQuotes(t.name)}).filter(function(r){return e.startsWith(r,t)});if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map(function(t){return e.removePrefix(t,a)})}return i}(t,p,a);g=e.pos&&r<=e.end});if(s){var c=t.text.slice(s.pos,r),u=x.exec(c);if(u){var l=u[1],_=u[2],p=u[3],g=e.getDirectoryPath(t.path),h="path"===_?m(p,g,f(n,!0),i,t.path):"types"===_?b(i,n,g,y(p),f(n)):e.Debug.fail();return d(p,s.pos+l.length,h)}}}(r,i,c,u))&&n(p);if(e.isInString(r,i,a)){if(!a||!e.isStringLiteralLike(a))return;var p;return function(r,i,a,o,s,c){if(void 0!==r)switch(r.kind){case 0:return n(r.paths);case 1:return t.getCompletionEntriesFromSymbols(r.symbols,u=[],i,a,a,o,99,s,4,c),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,entries:u};case 2:var u=r.types.map(function(t){return{name:t.value,kindModifiers:"",kind:"string",sortText:"0",replacementSpan:e.getReplacementSpanForContextToken(i)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,entries:u};default:return e.Debug.assertNever(r)}}(p=s(r,a,i,o,c,u),a,r,o,l,_)}},r.getStringLiteralCompletionDetails=function(r,n,i,o,c,u,l,_){if(o&&e.isStringLiteralLike(o)){var d=s(n,o,i,c,u,l);return d&&function(r,n,i,o,s,c){switch(i.kind){case 0:return(u=e.find(i.paths,function(e){return e.name===r}))&&t.createCompletionDetails(r,a(u.extension),u.kind,[e.textPart(r)]);case 1:var u;return(u=e.find(i.symbols,function(e){return e.name===r}))&&t.createCompletionDetailsForSymbol(u,s,o,n,c);case 2:return e.find(i.types,function(e){return e.value===r})?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(i)}}(r,o,d,n,c,_)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(o||(o={}));var x=/^(\/\/\/\s*=t.pos;case 24:return 194===n;case 58:return 195===n;case 22:return 194===n;case 20:return 284===n||se(n);case 18:return 252===n;case 29:return 249===n||218===n||250===n||251===n||e.isFunctionLikeKind(n);case 123:return 162===n&&!e.isClassLike(r.parent);case 25:return 159===n||!!r.parent&&194===r.parent.kind;case 122:case 120:case 121:return 159===n&&!e.isConstructorDeclaration(r.parent);case 126:return 262===n||267===n||260===n;case 134:case 145:return!R(t);case 83:case 91:case 117:case 97:case 112:case 99:case 118:case 84:case 148:return!0;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(O(I(t))&&R(t))return!1;if(oe(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(I(t))||_e(t)))return!1;switch(I(t)){case 125:case 83:case 84:case 133:case 91:case 97:case 117:case 118:case 120:case 121:case 122:case 123:case 112:return!0;case 129:return e.isPropertyDeclaration(t.parent)}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==y||o>y.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(272===e.parent.kind)return 272!==N.parent.kind;if(273===e.parent.kind||271===e.parent.kind)return!!e.parent.parent&&270===e.parent.parent.kind}return!1}(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),a}(v))return void n("Returning an empty list because completion was requested in an invalid position.");var F=v.parent;if(24===v.kind||28===v.kind)switch(S=24===v.kind,E=28===v.kind,F.kind){case 198:if((e.isCallExpression(D=(x=F).expression)||e.isFunctionLike(D))&&D.end===v.pos&&D.getChildCount(i)&&21!==e.last(D.getChildren(i)).kind)return;break;case 156:D=F.left;break;case 253:D=F.name;break;case 192:case 223:D=F;break;default:return}else if(1===i.languageVariant){if(F&&198===F.kind&&(v=F,F=F.parent),d.parent===N)switch(d.kind){case 31:270!==d.parent.kind&&272!==d.parent.kind||(N=d);break;case 43:271===d.parent.kind&&(N=d)}switch(F.kind){case 273:43===v.kind&&(k=!0,N=v);break;case 213:if(!B(F))break;case 271:case 270:case 272:A=!0,29===v.kind&&(T=!0,N=v);break;case 277:switch(y.kind){case 62:w=!0;break;case 78:A=!0,F!==y.parent&&!F.initializer&&e.findChildOfKind(F,62,i)&&(w=y)}}}}var j=e.timestamp(),U=5,z=!1,J=0,V=[],W=[],q=[],K=u.getImportSuggestionsCache&&u.getImportSuggestionsCache(),H=ne();if(S||E)!function(){U=2;var t,r,n=e.isLiteralImportTypeNode(D),a=f||n&&!D.isTypeOf||e.isPartOfTypeNode(D.parent)||e.isPossiblyTypeArgumentPosition(v,i,l),o=e.isInRightSideOfInternalImportEqualsDeclaration(D);if(e.isEntityName(D)||n){var c=e.isModuleDeclaration(D.parent);c&&(z=!0);var u=l.getSymbolAtLocation(D);if(u&&1920&(u=e.skipAlias(u,l)).flags){var _=l.getExportsOfModule(u);e.Debug.assertEachIsDefined(_,"getExportsOfModule() should all be defined");for(var d=function(e){return l.isValidPropertyAccess(n?D:D.parent,e.name)},p=function(e){return ie(e)},g=c?function(e){return!!(1920&e.flags)&&!e.declarations.every(function(e){return e.parent===D.parent})}:o?function(e){return p(e)||d(e)}:a?p:d,m=0,h=_;m0&&(V=function(t,r){if(0===r.length)return t;for(var n=new e.Set,i=new e.Set,a=0,o=r;a"),kind:"class",kindModifiers:void 0,sortText:r.LocationPriority}]}}var k=[];if(d(t,i)){var A=b(c,k,void 0,f,t,n,i.target,a,u,s,m,o.isJsxIdentifierExpected,D,x,v,E);!function(t,n,i,a,o){e.getNameTable(t).forEach(function(t,s){if(t!==n){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:r.JavascriptIdentifiers,isFromUncheckedFile:!0}))}})}(t,f.pos,A,i.target,k)}else{if(!(_||c&&0!==c.length||0!==h))return;b(c,k,void 0,f,t,n,i.target,a,u,s,m,o.isJsxIdentifierExpected,D,x,v,E)}if(0!==h)for(var P=new e.Set(k.map(function(e){return e.name})),O=0,F=function(t,r){if(!r)return N(t);var n=t+7+1;return w[n]||(w[n]=N(t).filter(function(t){return!function(e){switch(e){case 125:case 128:case 154:case 131:case 133:case 91:case 153:case 116:case 135:case 117:case 136:case 137:case 138:case 139:case 140:case 143:case 144:case 120:case 121:case 122:case 141:case 146:case 147:case 148:case 150:case 151:return!0;default:return!1}}(e.stringToToken(t.name))}))}(h,!S&&e.isSourceFileJS(t));O=0&&!u(r,n[i],114);i--);return e.forEach(a(t.statement),function(e){s(t,e)&&u(r,e.getFirstToken(),80,85)}),r}function _(e){var t=c(e);if(t)switch(t.kind){case 234:case 235:case 236:case 232:case 233:return l(t);case 241:return d(t)}}function d(t){var r=[];return u(r,t.getFirstToken(),106),e.forEach(t.caseBlock.clauses,function(n){u(r,n.getFirstToken(),81,87),e.forEach(a(n),function(e){s(t,e)&&u(r,e.getFirstToken(),80)})}),r}function p(t,r){var n=[];return u(n,t.getFirstToken(),110),t.catchClause&&u(n,t.catchClause.getFirstToken(),82),t.finallyBlock&&u(n,e.findChildOfKind(t,95,r),95),n}function f(t,r){var i=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||294===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}(t);if(i){var a=[];return e.forEach(n(i),function(t){a.push(e.findChildOfKind(t,108,r))}),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,function(t){a.push(e.findChildOfKind(t,104,r))}),a}}function g(t,r){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),function(t){a.push(e.findChildOfKind(t,104,r))}),e.forEach(n(i.body),function(t){a.push(e.findChildOfKind(t,108,r))}),a}}function m(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach(function(e){u(n,e,129)}),e.forEachChild(r,function(t){h(t,function(t){e.isAwaitExpression(t)&&u(n,t.getFirstToken(),130)})}),n}}function h(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,function(e){return h(e,r)})}t.getDocumentHighlights=function(t,n,a,o,s){var c=e.getTouchingPropertyName(a,o);if(c.parent&&(e.isJsxOpeningElement(c.parent)&&c.parent.tagName===c||e.isJsxClosingElement(c.parent))){var y=c.parent.parent,v=[y.openingElement,y.closingElement].map(function(e){return r(e.tagName,a)});return[{fileName:a.fileName,highlightSpans:v}]}return function(t,r,n,i,a){var o=new e.Set(a.map(function(e){return e.fileName})),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(s){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return e.arrayFrom(c.entries(),function(t){var r=t[0],i=t[1];if(!o.has(r)){e.Debug.assert(n.redirectTargetsMap.has(r));var s=n.getSourceFile(r),c=e.find(a,function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s});e.Debug.assert(o.has(r=c.fileName))}return{fileName:r,highlightSpans:i}})}}(o,c,t,n,s)||function(t,n){var a=function(t,n){switch(t.kind){case 98:case 90:return e.isIfStatement(t.parent)?function(t,n){for(var i=function(t,r){for(var n=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);u(n,i[0],98);for(var a=i.length-1;a>=0&&!u(n,i[a],90);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,n),a=[],o=0;o=s.end;_--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(_))){l=!1;break}if(l){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,n):void 0;case 104:return s(t.parent,e.isReturnStatement,g);case 108:return s(t.parent,e.isThrowStatement,f);case 110:case 82:case 95:return s(82===t.kind?t.parent.parent:t.parent,e.isTryStatement,p);case 106:return s(t.parent,e.isSwitchStatement,d);case 81:case 87:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?s(t.parent.parent.parent,e.isSwitchStatement,d):void 0;case 80:case 85:return s(t.parent,e.isBreakOrContinueStatement,_);case 96:case 114:case 89:return s(t.parent,function(t){return e.isIterationStatement(t,!0)},l);case 132:return o(e.isConstructorDeclaration,[132]);case 134:case 145:return o(e.isAccessor,[134,145]);case 130:return s(t.parent,e.isAwaitExpression,m);case 129:return c(m(t));case 124:return c(function(t){var r=e.getContainingFunction(t);if(r){var n=[];return e.forEachChild(r,function(t){h(t,function(t){e.isYieldExpression(t)&&u(n,t.getFirstToken(),124)})}),n}}(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?c(e.mapDefined(function(t,r){var n=t.parent;switch(n.kind){case 254:case 294:case 227:case 281:case 282:return 128&r&&e.isClassDeclaration(t)?i(t.members,[t]):n.statements;case 165:case 164:case 248:return i(n.parameters,e.isClassLike(n.parent)?n.parent.members:[]);case 249:case 218:case 250:case 176:var a=n.members;if(92&r){var o=e.find(n.members,e.isConstructorDeclaration);if(o)return i(a,o.parameters)}else if(128&r)return i(a,[n]);return a;default:e.Debug.assertNever(n,"Invalid container kind.")}}(t.parent,e.modifierToFlag(a=t.kind)),function(t){return e.findModifier(t,a)})):void 0}var a;function o(r,i){return s(t.parent,r,function(t){return e.mapDefined(t.symbol.declarations,function(t){return r(t)?e.find(t.getChildren(n),function(t){return e.contains(i,t.kind)}):void 0})})}function s(e,t,r){return t(e)?c(r(e,n)):void 0}function c(e){return e&&e.map(function(e){return r(e,n)})}}(t,n);return a&&[{fileName:n.fileName,highlightSpans:a}]}(c,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(l||(l={})),function(e){function t(t,n,i){void 0===n&&(n="");var a=new e.Map,o=e.createGetCanonicalFileName(!!t);function s(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!0,o)}function c(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!1,o)}function u(t,r,n,o,s,c,u,l){var _=e.getOrUpdate(a,o,function(){return new e.Map}),d=_.get(r),p=6===l?100:n.target||1;if(!d&&i&&(f=i.getDocument(o,r))&&(e.Debug.assert(u),_.set(r,d={sourceFile:f,languageServiceRefCount:0})),d)d.sourceFile.version!==c&&(d.sourceFile=e.updateLanguageServiceSourceFile(d.sourceFile,s,c,s.getChangeRange(d.sourceFile.scriptSnapshot)),i&&i.setDocument(o,r,d.sourceFile)),u&&d.languageServiceRefCount++;else{var f=e.createLanguageServiceSourceFile(t,s,p,c,!1,l);i&&i.setDocument(o,r,f),_.set(r,d={sourceFile:f,languageServiceRefCount:1})}return e.Debug.assert(0!==d.languageServiceRefCount),d.sourceFile}function l(t,r){var n=e.Debug.checkDefined(a.get(r)),i=n.get(t);i.languageServiceRefCount--,e.Debug.assert(i.languageServiceRefCount>=0),0===i.languageServiceRefCount&&n.delete(t)}return{acquireDocument:function(t,i,a,c,u){return s(t,e.toPath(t,n,o),i,r(i),a,c,u)},acquireDocumentWithKey:s,updateDocument:function(t,i,a,s,u){return c(t,e.toPath(t,n,o),i,r(i),a,s,u)},updateDocumentWithKey:c,releaseDocument:function(t,i){return l(e.toPath(t,n,o),r(i))},releaseDocumentWithKey:l,getLanguageServiceRefCounts:function(t){return e.arrayFrom(a.entries(),function(e){var r=e[0],n=e[1].get(t);return[r,n&&n.languageServiceRefCount]})},reportStats:function(){var t=e.arrayFrom(a.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=a.get(e),r=[];return t.forEach(function(e,t){r.push({name:t,refCount:e.languageServiceRefCount})}),r.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:r}});return JSON.stringify(t,void 0,2)},getKeyForCompilationSettings:r}}function r(t){return e.sourceFileAffectingCompilerOptions.map(function(r){return e.getCompilerOptionValue(t,r)}).join("|")}e.createDocumentRegistry=function(e,r){return t(e,r)},e.createDocumentRegistryInternal=t}(l||(l={})),function(e){!function(t){function r(t,r){return e.forEach(294===t.kind?t.statements:t.body.statements,function(t){return r(t)||c(t)&&e.forEach(t.body&&t.body.statements,r)})}function n(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i=0&&!(c>n.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),99)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function D(t,r){var n=t.getSourceFile(),i=r.text,a=e.mapDefined(v(n,i,t),function(t){return t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,i)===r?c(t):void 0});return[{definition:{type:1,node:r},references:a}]}function S(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),E(e,e,t,r,n)}function E(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=x(t,r.text,e);a0;o--)x(t,i=n[o]);return[n.length-1,n[0]]}function x(e,t){var r=h(e,t);f(a,r),c.push(a),u.push(o),o=void 0,a=r}function D(){a.children&&(C(a.children,a),N(a.children)),a=c.pop(),o=u.pop()}function S(e,t,r){x(e,r),E(t),D()}function E(t){var r;if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 165:var i=t;S(i,i.body);for(var a=0,s=i.parameters;a0&&(x(z,L),e.forEachChild(z.right,E),D()):e.isFunctionExpression(z.right)||e.isArrowFunction(z.right)?S(t,z.right,L):(x(z,L),S(t,z.right,F.name),D()),void v(M);case 7:case 9:var R=t.arguments[1],U=b(t,L=7===O?t.arguments[0]:t.arguments[0].expression);return M=U[0],x(t,U[1]),x(t,e.setTextRange(e.factory.createIdentifier(R.text),R)),E(t.arguments[2]),D(),D(),void v(M);case 5:var z,J=(F=(z=t).left).expression;if(e.isIdentifier(J)&&"prototype"!==e.getElementOrPropertyAccessName(F)&&o&&o.has(J.text))return void(e.isFunctionExpression(z.right)||e.isArrowFunction(z.right)?S(t,z.right,J):e.isBindableStaticAccessExpression(F)&&(x(z,J),S(z.left,z.right,e.getNameOrArgument(F)),D()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(O)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,function(t){e.forEach(t.tags,function(t){e.isJSDocTypeAlias(t)&&m(t)})}),e.forEachChild(t,E)}}function C(t,r){var n=new e.Map;e.filterMutate(t,function(t,i){var a=t.name||e.getNameOfDeclaration(t.node),o=a&&d(a);if(!o)return!0;var s=n.get(o);if(!s)return n.set(o,t),!0;if(s instanceof Array){for(var c=0,u=s;c0)return W(n)}switch(t.kind){case 294:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 263:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 206:case 248:case 205:case 249:case 218:return 512&e.getSyntacticModifierFlags(t)?"default":J(t);case 165:return"constructor";case 169:return"new()";case 168:return"()";case 170:return"[]";default:return""}}function I(t){return{text:F(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:z(t.node),spans:L(t),nameSpan:t.name&&U(t.name),childItems:e.map(t.children,I)}}function M(t){return{text:F(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:z(t.node),spans:L(t),childItems:e.map(t.children,function(t){return{text:F(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:L(t),childItems:l,indent:0,bolded:!1,grayed:!1}})||l,indent:t.indent,bolded:!1,grayed:!1}}function L(e){var t=[U(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r0)return W(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return W(e.declarationNameToString(r.name));if(e.isBinaryExpression(r)&&62===r.operatorToken.kind)return d(r.left).replace(s,"");if(e.isPropertyAssignment(r))return d(r.name);if(512&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"";if(e.isCallExpression(r)){var n=V(r.expression);if(void 0!==n)return(n=W(n)).length>150?n+" callback":n+"("+W(e.mapDefined(r.arguments,function(t){return e.isStringLiteralLike(t)?t.getText(i):void 0}).join(", "))+") callback"}return""}function V(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=V(t.expression),n=t.name.text;return void 0===r?n:r+"."+n}}function W(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(l||(l={})),function(e){!function(t){function r(t,r){var n=e.isStringLiteral(r)&&r.text;return e.isString(n)&&e.some(t.moduleAugmentations,function(t){return e.isStringLiteral(t)&&t.text===n})}function n(t){return void 0!==t&&e.isStringLiteralLike(t)?t.text:void 0}function i(t){var r;if(0===t.length)return t;var n=function(t){for(var r,n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]},a=0,o=t;a0?g[0]:h[0],k=0===C.length?x?void 0:e.factory.createNamedImports(e.emptyArray):0===h.length?e.factory.createNamedImports(C):e.factory.updateNamedImports(h[0].importClause.namedBindings,C);f&&x&&k?(u.push(o(T,x,void 0)),u.push(o(null!==(r=h[0])&&void 0!==r?r:T,void 0,k))):u.push(o(T,x,k))}}else{var w;u.push(o(w=g[0],w.importClause.name,m[0].importClause.namedBindings))}}return u}function a(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=[],i=0,a=e;i...")}(t);case 274:return function(t){var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return c(n,"code",n,!1,"<>...")}(t);case 271:case 272:return function(e){if(0!==e.properties.length)return o(e.getStart(r),e.getEnd(),"code")}(t.attributes);case 215:case 14:return function(e){if(14!==e.kind||0!==e.text.length)return o(e.getStart(r),e.getEnd(),"code")}(t);case 194:return l(t,!1,!e.isBindingElement(t.parent),22);case 206:return function(t){if(!e.isBlock(t.body)&&!e.positionsAreOnSameLine(t.body.getFullStart(),t.body.getEnd(),r))return c(e.createTextSpanFromBounds(t.body.getFullStart(),t.body.getEnd()),"code",e.createTextSpanFromNode(t))}(t);case 200:return function(t){if(t.arguments.length){var n=e.findChildOfKind(t,20,r),i=e.findChildOfKind(t,21,r);if(n&&i&&!e.positionsAreOnSameLine(n.pos,i.pos,r))return s(n,i,t,r,!1,!0)}}(t)}var a;function u(t,r){return void 0===r&&(r=18),l(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function l(n,i,a,o,c){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===c&&(c=18===o?19:23);var u=e.findChildOfKind(t,o,r),l=e.findChildOfKind(t,c,r);return u&&l&&s(u,l,n,r,i,a)}}(i,t);_&&n.push(_),u--,e.isCallExpression(i)?(u++,g(i.expression),u--,i.arguments.forEach(g),null===(l=i.typeArguments)||void 0===l||l.forEach(g)):e.isIfStatement(i)&&i.elseStatement&&e.isIfStatement(i.elseStatement)?(g(i.expression),g(i.thenStatement),u++,g(i.elseStatement),u--):i.forEachChild(g),u++}}}(t,r,u),function(t,r){for(var i=[],a=0,o=t.getLineStarts();a1&&a.push(o(c,u,"comment"))}}function o(t,r,n){return c(e.createTextSpanFromBounds(t,r),n)}function s(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),c(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function c(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(l||(l={})),function(e){var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=h(e)),r}function i(i,a,o){var s=function(e,t){for(var r=e.length-t.length,n=function(r){if(E(t,function(t,n){return d(e.charCodeAt(n+r))===t}))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"==typeof a)return a.value}return-1}(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var _=0,p=n(i,o);_0)return r(t.substring,!0);if(a.characterSpans.length>0){var g=n(i,o),m=!!u(i,g,a,!1)||!u(i,g,a,!0)&&void 0;if(void 0!==m)return r(t.camelCase,m)}}}function a(e,t,r){if(E(t.totalTextChunk.text,function(e){return 32!==e&&42!==e})){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function _(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function d(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function p(e){return e>=48&&e<=57}function f(e){for(var t=[],r=0,n=0,i=0;i0&&(t.push(g(e.substr(r,n))),n=0);var a;return n>0&&t.push(g(e.substr(r,n))),t}function g(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:m(e)}}function m(e){return y(e,!1)}function h(e){return y(e,!0)}function y(t,r){for(var n=[],i=0,a=1;at.length)){for(var c=n.length-2,u=t.length-1;c>=0;c-=1,u-=1)s=o(s,a(t[u],n[c],i));return s}}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=m,e.breakIntoWordSpans=h}(l||(l={})),function(e){e.preProcessFile=function(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],u=0,l=!1;function _(){return a=o,18===(o=e.scanner.scan())?u++:19===o&&u--,o}function d(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function p(){c.push(d()),f()}function f(){0===u&&(l=!0)}function g(){if(24===a)return!1;var t=e.scanner.getToken();if(99===t){if(20===(t=_())){if(10===(t=_())||14===t)return p(),!0}else{if(10===t)return p(),!0;if(148===t&&e.scanner.lookAhead(function(){var t=e.scanner.scan();return 152!==t&&(41===t||18===t||78===t||e.isKeyword(t))})&&(t=_()),78===t||e.isKeyword(t))if(152===(t=_())){if(10===(t=_()))return p(),!0}else if(62===t){if(h(!0))return!0}else{if(27!==t)return!0;t=_()}if(18===t){for(t=_();19!==t&&1!==t;)t=_();19===t&&152===(t=_())&&10===(t=_())&&p()}else 41===t&&126===(t=_())&&(78===(t=_())||e.isKeyword(t))&&152===(t=_())&&10===(t=_())&&p()}return!0}return!1}function m(){var t=e.scanner.getToken();if(92===t){if(f(),148===(t=_())&&e.scanner.lookAhead(function(){var t=e.scanner.scan();return 41===t||18===t})&&(t=_()),18===t){for(t=_();19!==t&&1!==t;)t=_();19===t&&152===(t=_())&&10===(t=_())&&p()}else if(41===t)152===(t=_())&&10===(t=_())&&p();else if(99===t&&(148===(t=_())&&e.scanner.lookAhead(function(){var t=e.scanner.scan();return 78===t||e.isKeyword(t)})&&(t=_()),(78===t||e.isKeyword(t))&&62===(t=_())&&h(!0)))return!0;return!0}return!1}function h(t,r){void 0===r&&(r=!1);var n=t?_():e.scanner.getToken();return 142===n&&(20===(n=_())&&(10===(n=_())||r&&14===n)&&p(),!0)}function y(){var t=e.scanner.getToken();if(78===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=_()))return!0;if(10===(t=_())||14===t){if(27!==(t=_()))return!0;t=_()}if(22!==t)return!0;for(t=_();23!==t&&1!==t;)10!==t&&14!==t||p(),t=_();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),_();1!==e.scanner.getToken();)133===e.scanner.getToken()&&(138===_()&&10===_()&&(i||(i=[]),i.push({ref:d(),depth:u})),1)||g()||m()||n&&(h(!1,!0)||y())||_();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),l){if(i)for(var v=0,b=i;vt)break e;if(r(n,t,f)){if(e.isBlock(f)||e.isTemplateSpan(f)||e.isTemplateHead(f)||e.isTemplateTail(f)||p&&e.isTemplateHead(p)||e.isVariableDeclarationList(f)&&e.isVariableStatement(l)||e.isSyntaxList(f)&&e.isVariableDeclarationList(l)||e.isVariableDeclaration(f)&&e.isSyntaxList(l)&&1===_.length){l=f;break}e.isTemplateSpan(l)&&g&&e.isTemplateMiddleOrTemplateTail(g)&&b(f.getFullStart()-"${".length,g.getStart()+"}".length);var m=e.isSyntaxList(f)&&(18===(s=(o=p)&&o.kind)||22===s||20===s||272===s)&&u(g)&&!e.positionsAreOnSameLine(p.getStart(),g.getStart(),n),h=e.hasJSDocNodes(f)&&f.jsDoc[0].getStart(),y=m?p.getEnd():f.getStart(),v=m?g.getStart():f.getEnd();e.isNumber(h)&&b(h,v),b(y,v),(e.isStringLiteral(f)||e.isTemplateLiteral(f))&&b(y+1,v-1),l=f;break}if(d===_.length-1)break e}}return c;function b(r,n){if(r!==n){var i=e.createTextSpanFromBounds(r,n);(!c||!e.textSpansEqual(i,c.textSpan)&&e.textSpanIntersectsWithPosition(i,t))&&(c=a({textSpan:i},c&&{parent:c}))}}};var n=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function i(t){if(e.isSourceFile(t))return o(t.getChildAt(0).getChildren(),n);if(e.isMappedTypeNode(t)){var r=t.getChildren(),i=r[0],a=r.slice(1),u=e.Debug.checkDefined(a.pop());e.Debug.assertEqual(i.kind,18),e.Debug.assertEqual(u.kind,19);var l=o(a,function(e){return e===t.readonlyToken||141===e.kind||e===t.questionToken||57===e.kind});return[i,c(s(o(l,function(e){var t=e.kind;return 22===t||158===t||23===t}),function(e){return 58===e.kind})),u]}if(e.isPropertySignature(t))return s(a=o(t.getChildren(),function(r){return r===t.name||e.contains(t.modifiers,r)}),function(e){return 58===e.kind});if(e.isParameter(t)){var _=o(t.getChildren(),function(e){return e===t.dotDotDotToken||e===t.name});return s(o(_,function(e){return e===_[0]||e===t.questionToken}),function(e){return 62===e.kind})}return e.isBindingElement(t)?s(t.getChildren(),function(e){return 62===e.kind}):t.getChildren()}function o(e,t){for(var r,n=[],i=0,a=e;i0&&27===e.last(r).kind&&n++,n}(i);return 0!==a&&e.Debug.assertLessThan(a,o),{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(i,r)}}}function s(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var a=i,s=o(t,n);if(!s)return;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===s.list.pos,invocation:{kind:0,node:a},argumentsSpan:s.argumentsSpan,argumentIndex:s.argumentIndex,argumentCount:s.argumentCount}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?_(i,0,n):void 0;if(e.isTemplateHead(t)&&202===i.parent.kind){var c=i.parent;return e.Debug.assert(215===i.kind),_(c,e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var u=i;if(c=i.parent.parent,e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return _(c,function(t,r,n,i){return e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r)?e.isInsideTemplateLiteral(r,n,i)?0:t+2:t+1}(u.parent.templateSpans.indexOf(u),t,r,n),n)}if(e.isJsxOpeningLikeElement(i)){var l=i.attributes.pos,d=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(l,d-l),argumentIndex:0,argumentCount:1}}var p=e.getPossibleTypeArgumentsInfo(t,n);if(p){var f=p.called,g=p.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:f},argumentsSpan:e.createTextSpanFromBounds(f.getStart(n),t.end),argumentIndex:g,argumentCount:g+1}}}function c(t){return e.isBinaryExpression(t.parent)?c(t.parent):t}function u(t){return e.isBinaryExpression(t.left)?u(t.left)+1:2}function l(e,t){for(var r=0,n=0,i=e.getChildren();n=0&&i.length>a+1),i[a+1]}function f(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function g(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}function m(t,r,n,a,o,s){var c,u=n.isTypeParameterList,l=n.argumentCount,_=n.argumentsSpan,d=n.invocation,p=n.argumentIndex,m=g(d),h=2===d.kind?d.symbol:o.getSymbolAtLocation(f(d))||s&&(null===(c=r.declaration)||void 0===c?void 0:c.symbol),x=h?e.symbolToDisplayParts(o,h,s?a:void 0,void 0):e.emptyArray,D=e.map(t,function(t){return function(t,r,n,a,o,s){var c=(n?v:b)(t,a,o,s);return e.map(c,function(n){var s=n.isVariadic,c=n.parameters,u=n.suffix,l=i(r,n.prefix),_=i(u,function(t,r,n){return e.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)})}(t,o,a)),d=t.getDocumentationComment(a),p=t.getJsDocTags();return{isVariadic:s,prefixDisplayParts:l,suffixDisplayParts:_,separatorDisplayParts:y,parameters:c,documentation:d,tags:p}})}(t,x,u,o,m,a)});0!==p&&e.Debug.assertLessThan(p,l);for(var S=0,E=0,C=0;C1))for(var k=0,w=0,A=T;w=l){S=E+k;break}k++}E+=T.length}return e.Debug.assert(-1!==S),{items:e.flatMapToMutable(D,e.identity),applicableSpan:_,selectedItemIndex:S,argumentIndex:p,argumentCount:l}}function h(t,r,n,a,o){var s=e.symbolToDisplayParts(n,t),c=e.createPrinter({removeComments:!0}),u=r.map(function(e){return x(e,n,a,o,c)}),l=t.getDocumentationComment(n),_=t.getJsDocTags();return{isVariadic:!1,prefixDisplayParts:i(s,[e.punctuationPart(29)]),suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:y,parameters:u,documentation:l,tags:_}}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(r||(r={})),t.getSignatureHelpItems=function(t,r,n,i,l){var _=t.getTypeChecker(),d=e.findTokenOnLeftOfPosition(r,n);if(d){var p=!!i&&"characterTyped"===i.kind;if(!p||!e.isInString(r,n,d)&&!e.isInComment(r,n)){var y=function(t,r,n,i,a){for(var l=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",function(){return"Child: "+e.Debug.formatSyntaxKind(t.kind)+", parent: "+e.Debug.formatSyntaxKind(t.parent.kind)});var a=function(t,r,n,i){return function(t,r,n,i){var a=function(t,r,n){if(20===t.kind||27===t.kind){var i=t.parent;switch(i.kind){case 204:case 164:case 205:case 206:var a=o(t,r);if(!a)return;var s=a.argumentIndex,l=a.argumentCount,_=a.argumentsSpan,d=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return d&&{contextualType:d,argumentIndex:s,argumentCount:l,argumentsSpan:_};case 213:var p=c(i),f=n.getContextualType(p),g=20===t.kind?0:u(i)-1,m=u(p);return f&&{contextualType:f,argumentIndex:g,argumentCount:m,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}}(t,n,i);if(a){var s,l=a.argumentIndex,_=a.argumentCount,d=a.argumentsSpan,p=a.contextualType.getNonNullableType(),f=p.getCallSignatures();return 1!==f.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(f),node:t,symbol:(s=p.symbol,"__type"===s.name&&e.firstDefined(s.declarations,function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0})||s)},argumentsSpan:d,argumentIndex:l,argumentCount:_}}}(t,0,n,i)||s(t,r,n)}(t,r,n,i);if(a)return{value:a}},_=t;!e.isSourceFile(_)&&(a||!e.isBlock(_));_=_.parent){var d=l(_);if("object"==typeof d)return d.value}}(d,n,r,_,!!i&&"invoked"===i.kind);if(y){l.throwIfCancellationRequested();var v=function(t,r,n,i,o){var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!function(t,r,n){if(!e.isCallOrNewExpression(r))return!1;var i=r.getChildren(n);switch(t.kind){case 20:return e.contains(i,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(i,o);case 29:return a(t,n,r.expression);default:return!1}}(i,s.node,n))return;var u=r.getResolvedSignatureForSignatureHelp(s.node,l=[],c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var l,_=s.called;if(o&&!a(i,n,e.isIdentifier(_)?_.parent:_))return;if(0!==(l=e.getPossibleGenericSignatures(_,c,r)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var d=r.getSymbolAtLocation(_);return d&&{kind:1,symbol:d};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(y,_,r,d,p);return l.throwIfCancellationRequested(),v?_.runWithCancellationToken(l,function(e){return 0===v.kind?m(v.candidates,v.resolvedSignature,y,r,e):function(e,t,r,n){var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=n.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[h(e,c,n,g(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0}(v.symbol,y,r,e)}):e.isSourceFileJS(r)?function(t,r,n){if(2!==t.invocation.kind){var i=f(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),function(r){return e.firstDefined(r.getNamedDeclarations().get(a),function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,function(e){return m(a,a[0],t,r,e,!0)})})})}}(y,t,l):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(n||(n={})),t.getArgumentInfoForCompletions=function(e,t,r){var n=s(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var y=[e.punctuationPart(27),e.spacePart()];function v(t,r,n,a){var o=(t.target||t).typeParameters,s=e.createPrinter({removeComments:!0}),c=(o||e.emptyArray).map(function(e){return x(e,r,n,a,s)}),u=t.thisParameter?[r.symbolToParameterDeclaration(t.thisParameter,n,70246400)]:[];return r.getExpandedParameters(t).map(function(t){var o=e.factory.createNodeArray(i(u,e.map(t,function(e){return r.symbolToParameterDeclaration(e,n,70246400)}))),l=e.mapToDisplayParts(function(e){s.writeList(2576,o,a,e)});return{isVariadic:!1,parameters:c,prefix:[e.punctuationPart(29)],suffix:i([e.punctuationPart(31)],l)}})}function b(t,r,n,a){var o=r.hasEffectiveRestParameter(t),s=e.createPrinter({removeComments:!0}),c=e.mapToDisplayParts(function(i){if(t.typeParameters&&t.typeParameters.length){var o=e.factory.createNodeArray(t.typeParameters.map(function(e){return r.typeParameterToDeclaration(e,n,70246400)}));s.writeList(53776,o,a,i)}}),u=r.getExpandedParameters(t);return u.map(function(t){return{isVariadic:o&&(1===u.length||!!(32768&t[t.length-1].checkFlags)),parameters:t.map(function(t){return function(t,r,n,i,a){var o=e.mapToDisplayParts(function(e){var o=r.symbolToParameterDeclaration(t,n,70246400);a.writeNode(4,o,i,e)}),s=r.isOptionalParameter(t.valueDeclaration);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:o,isOptional:s}}(t,r,n,a,s)}),prefix:i(c,[e.punctuationPart(20)]),suffix:[e.punctuationPart(21)]}})}function x(t,r,n,i,a){var o=e.mapToDisplayParts(function(e){var o=r.typeParameterToDeclaration(t,n,70246400);a.writeNode(4,o,i,e)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:o,isOptional:!1}}}(e.SignatureHelp||(e.SignatureHelp={}))}(l||(l={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function r(t,r,n){var i=e.tryParseRawSourceMap(r);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(t,i,n)}e.getSourceMapper=function(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),n=t.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function t(r){if(e.isDeclarationFileName(r.fileName)&&c(r.fileName)){var n=s(r.fileName).getSourcePosition(r);return n&&n!==r?t(n)||n:void 0}},tryGetGeneratedPosition:function(i){if(!e.isDeclarationFileName(i.fileName)){var a=c(i.fileName);if(a){var o=t.getProgram();if(!o.isSourceOfProjectReferenceRedirect(a.fileName)){var u=o.getCompilerOptions(),l=e.outFile(u),_=l?e.removeFileExtension(l)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),r);if(void 0!==_){var d=s(_,i.fileName).getGeneratedPosition(i);return d===i?void 0:d}}}}},toLineColumnOffset:function(e,t){return u(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),a.clear()}};function o(t){return e.toPath(t,n,r)}function s(n,i){var s,c=o(n),l=a.get(c);if(l)return l;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(n,i);else if(t.readFile){var _=u(n);s=_&&e.getDocumentPositionMapper({getSourceFileLike:u,getCanonicalFileName:r,log:function(e){return t.log(e)}},n,e.getLineInfo(_.text,e.getLineStarts(_)),function(e){return!t.fileExists||t.fileExists(e)?t.readFile(e):void 0})}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var r=t.getProgram();if(r){var n=o(e),i=r.getSourceFileByPath(n);return i&&i.resolvedPath===n?i:void 0}}function u(r){return t.getSourceFileLike?t.getSourceFileLike(r):c(r)||function(r){var n=o(r),a=i.get(n);if(void 0!==a)return a||void 0;if(t.readFile&&(!t.fileExists||t.fileExists(n))){var s=t.readFile(n),c=!!s&&function(t,r){return{text:t,lineMap:void 0,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(n,c),c||void 0}i.set(n,!1)}(r)}},e.getDocumentPositionMapper=function(n,i,a,o){var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1])return r(n,e.base64decode(e.sys,c[1]),i);s=void 0}}var u=[];s&&u.push(s),u.push(i+".map");for(var l=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),_=0,d=u;_2)&&(t.arguments.length<2||e.some(t.arguments,function(t){return 103===t.kind||e.isIdentifier(t)&&"undefined"===t.text}))}(t)||e.hasPropertyAccessExpressionWithName(t,"catch"))}function s(e){switch(e.kind){case 248:case 205:case 206:t.set(c(e),!0);case 103:case 78:return!0;default:return!1}}function c(e){return e.pos.toString()+":"+e.end.toString()}e.computeSuggestionDiagnostics=function(a,o,s){o.getSemanticDiagnostics(a,s);var u,l=[],_=o.getTypeChecker();a.commonJsModuleIndicator&&(e.programContainsEs6Modules(o)||e.compilerOptionsIndicateEs6Modules(o.getCompilerOptions()))&&function(t){return t.statements.some(function(t){switch(t.kind){case 229:return t.declarationList.declarations.some(function(t){return!!t.initializer&&e.isRequireCall(r(t.initializer),!0)});case 230:var n=t.expression;if(!e.isBinaryExpression(n))return e.isRequireCall(n,!0);var i=e.getAssignmentDeclarationKind(n);return 1===i||2===i;default:return!1}})}(a)&&l.push(e.createDiagnosticForNode(e.isBinaryExpression(u=a.commonJsModuleIndicator)?u.left:u,e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var d=e.isSourceFileJS(a);if(t.clear(),function r(n){if(d)(function(t){var r,n,i,a;if(205===t.kind){if(e.isVariableDeclaration(t.parent)&&(null===(r=t.symbol.members)||void 0===r?void 0:r.size))return!0;var o=e.getDeclarationOfExpando(t),s=null==o?void 0:o.symbol;return!(!s||!(null===(n=s.exports)||void 0===n?void 0:n.size)&&!(null===(i=s.members)||void 0===i?void 0:i.size))}return 248===t.kind&&!!(null===(a=t.symbol.members)||void 0===a?void 0:a.size)})(n)&&l.push(e.createDiagnosticForNode(e.isVariableDeclaration(n.parent)?n.parent.name:n,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(n)&&n.parent===a&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){var o=n.declarationList.declarations[0].initializer;o&&e.isRequireCall(o,!0)&&l.push(e.createDiagnosticForNode(o,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(n)&&l.push(e.createDiagnosticForNode(n.name||n,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}e.isFunctionLikeDeclaration(n)&&function(r,n,a){(function(t,r){return!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&!!e.forEachReturnStatement(t.body,i)&&function(e,t){var r=t.getTypeAtLocation(e),n=t.getSignaturesOfType(r,0),i=n.length?t.getReturnTypeOfSignature(n[0]):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}(t,r)})(r,n)&&!t.has(c(r))&&a.push(e.createDiagnosticForNode(!r.name&&e.isVariableDeclaration(r.parent)&&e.isIdentifier(r.parent.name)?r.parent.name:r,e.Diagnostics.This_may_be_converted_to_an_async_function))}(n,_,l),n.forEachChild(r)}(a),e.getAllowSyntheticDefaultImports(o.getCompilerOptions()))for(var p=0,f=a.imports;p0?e.getNodeModifiers(t.declarations[0]):"",n=t&&16777216&t.flags?"optional":"";return r&&n?r+","+n:r||n},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(i,a,o,s,c,u,l){void 0===u&&(u=e.getMeaningFromLocation(c));var _,d,p,f,g=[],m=[],h=[],y=e.getCombinedLocalAndExportSymbolFlags(a),v=1&u?n(i,a,c):"",b=!1,x=107===c.kind&&e.isInExpressionContext(c),D=!1;if(107===c.kind&&!x)return{displayParts:[e.keywordPart(107)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==v||32&y||2097152&y){"getter"!==v&&"setter"!==v||(v="property");var S=void 0;if(_=x?i.getTypeAtLocation(c):i.getTypeOfSymbolAtLocation(a.exportSymbol||a,c),c.parent&&198===c.parent.kind){var E=c.parent.name;(E===c||E&&0===E.getFullWidth())&&(c=c.parent)}var C=void 0;if(e.isCallOrNewExpression(c)?C=c:(e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)||c.parent&&(e.isJsxOpeningLikeElement(c.parent)||e.isTaggedTemplateExpression(c.parent))&&e.isFunctionLike(a.valueDeclaration))&&(C=c.parent),C){S=i.getResolvedSignature(C);var T=201===C.kind||e.isCallExpression(C)&&105===C.expression.kind,k=T?_.getConstructSignatures():_.getCallSignatures();if(e.contains(k,S.target)||e.contains(k,S)||(S=k.length?k[0]:void 0),S){switch(T&&32&y?G(_.symbol,v="constructor"):2097152&y?(Q(v="alias"),g.push(e.spacePart()),T&&(g.push(e.keywordPart(102)),g.push(e.spacePart())),H(a)):G(a,v),v){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(e.punctuationPart(58)),g.push(e.spacePart()),16&e.getObjectFlags(_)||!_.symbol||(e.addRange(g,e.symbolToDisplayParts(i,_.symbol,s,void 0,5)),g.push(e.lineBreakPart())),T&&(g.push(e.keywordPart(102)),g.push(e.spacePart())),$(S,k,262144);break;default:$(S,k)}b=!0,D=k.length>1}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&y)||132===c.kind&&165===c.parent.kind){var w=c.parent;a.declarations&&e.find(a.declarations,function(e){return e===(132===c.kind?w.parent:w)})&&(k=165===w.kind?_.getNonNullableType().getConstructSignatures():_.getNonNullableType().getCallSignatures(),S=i.isImplementationOfOverload(w)?k[0]:i.getSignatureFromDeclaration(w),165===w.kind?G(_.symbol,v="constructor"):G(168!==w.kind||2048&_.symbol.flags||4096&_.symbol.flags?a:_.symbol,v),$(S,k),b=!0,D=k.length>1)}}if(32&y&&!b&&!x&&(q(),e.getDeclarationOfKind(a,218)?Q("local class"):g.push(e.keywordPart(83)),g.push(e.spacePart()),H(a),X(a,o)),64&y&&2&u&&(W(),g.push(e.keywordPart(117)),g.push(e.spacePart()),H(a),X(a,o)),524288&y&&2&u&&(W(),g.push(e.keywordPart(148)),g.push(e.spacePart()),H(a),X(a,o),g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),e.addRange(g,e.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(a),s,8388608))),384&y&&(W(),e.some(a.declarations,function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)})&&(g.push(e.keywordPart(84)),g.push(e.spacePart())),g.push(e.keywordPart(91)),g.push(e.spacePart()),H(a)),1536&y&&!x){W();var A=e.getDeclarationOfKind(a,253);g.push(e.keywordPart(A&&A.name&&78===A.name.kind?139:138)),g.push(e.spacePart()),H(a)}if(262144&y&&2&u)if(W(),g.push(e.punctuationPart(20)),g.push(e.textPart("type parameter")),g.push(e.punctuationPart(21)),g.push(e.spacePart()),H(a),a.parent)K(),H(a.parent,s),X(a.parent,s);else{var N=e.getDeclarationOfKind(a,158);if(void 0===N)return e.Debug.fail();(A=N.parent)&&(e.isFunctionLikeKind(A.kind)?(K(),S=i.getSignatureFromDeclaration(A),169===A.kind?(g.push(e.keywordPart(102)),g.push(e.spacePart())):168!==A.kind&&A.name&&H(A.symbol),e.addRange(g,e.signatureToDisplayParts(i,S,o,32))):251===A.kind&&(K(),g.push(e.keywordPart(148)),g.push(e.spacePart()),H(A.symbol),X(A.symbol,o)))}if(8&y&&(v="enum member",G(a,"enum member"),288===(A=a.declarations[0]).kind)){var P=i.getConstantValue(A);void 0!==P&&(g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),g.push(e.displayPart(e.getTextOfConstantValue(P),"number"==typeof P?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&a.flags){if(W(),!b){var O=i.getAliasedSymbol(a);if(O!==a&&O.declarations&&O.declarations.length>0){var F=O.declarations[0],I=e.getNameOfDeclaration(F);if(I){var M=e.isModuleWithStringLiteralName(F)&&e.hasSyntacticModifier(F,2),L="default"!==a.name&&!M,R=t(i,O,e.getSourceFileOfNode(F),F,I,u,L?a:O);g.push.apply(g,R.displayParts),g.push(e.lineBreakPart()),p=R.documentation,f=R.tags}}}switch(a.declarations[0].kind){case 256:g.push(e.keywordPart(92)),g.push(e.spacePart()),g.push(e.keywordPart(139));break;case 263:g.push(e.keywordPart(92)),g.push(e.spacePart()),g.push(e.keywordPart(a.declarations[0].isExportEquals?62:87));break;case 267:g.push(e.keywordPart(92));break;default:g.push(e.keywordPart(99))}g.push(e.spacePart()),H(a),e.forEach(a.declarations,function(t){if(257===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),g.push(e.keywordPart(142)),g.push(e.punctuationPart(20)),g.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),g.push(e.punctuationPart(21));else{var n=i.getSymbolAtLocation(r.moduleReference);n&&(g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),H(n,s))}return!0}})}if(!b)if(""!==v){if(_)if(x?(W(),g.push(e.keywordPart(107))):G(a,v),"property"===v||"JSX attribute"===v||3&y||"local var"===v||x){if(g.push(e.punctuationPart(58)),g.push(e.spacePart()),_.symbol&&262144&_.symbol.flags){var B=e.mapToDisplayParts(function(t){var r=i.typeParameterToDeclaration(_,s,70246400);V().writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(s)),t)});e.addRange(g,B)}else e.addRange(g,e.typeToDisplayParts(i,_,s));if(a.target&&a.target.tupleLabelDeclaration){var j=a.target.tupleLabelDeclaration;e.Debug.assertNode(j.name,e.isIdentifier),g.push(e.spacePart()),g.push(e.punctuationPart(20)),g.push(e.textPart(e.idText(j.name))),g.push(e.punctuationPart(21))}}else(16&y||8192&y||16384&y||131072&y||98304&y||"method"===v)&&(k=_.getNonNullableType().getCallSignatures()).length&&($(k[0],k),D=k.length>1)}else v=r(i,a,c);if(0!==m.length||D||(m=a.getContextualDocumentationComment(s,i)),0===m.length&&4&y&&a.parent&&e.forEach(a.parent.declarations,function(e){return 294===e.kind}))for(var U=0,z=a.declarations;U0))break}return 0!==h.length||D||(h=a.getJsDocTags()),0===m.length&&p&&(m=p),0===h.length&&f&&(h=f),{displayParts:g,documentation:m,symbolKind:v,tags:0===h.length?void 0:h};function V(){return d||(d=e.createPrinter({removeComments:!0})),d}function W(){g.length&&g.push(e.lineBreakPart()),q()}function q(){l&&(Q("alias"),g.push(e.spacePart()))}function K(){g.push(e.spacePart()),g.push(e.keywordPart(100)),g.push(e.spacePart())}function H(t,r){l&&t===a&&(t=l);var n=e.symbolToDisplayParts(i,t,r||o,void 0,7);e.addRange(g,n),16777216&a.flags&&g.push(e.punctuationPart(57))}function G(t,r){W(),r&&(Q(r),t&&!e.some(t.declarations,function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name})&&(g.push(e.spacePart()),H(t)))}function Q(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void g.push(e.textOrKeywordPart(t));default:return g.push(e.punctuationPart(20)),g.push(e.textOrKeywordPart(t)),void g.push(e.punctuationPart(21))}}function $(t,r,n){void 0===n&&(n=0),e.addRange(g,e.signatureToDisplayParts(i,t,s,32|n)),r.length>1&&(g.push(e.spacePart()),g.push(e.punctuationPart(20)),g.push(e.operatorPart(39)),g.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),g.push(e.spacePart()),g.push(e.textPart(2===r.length?"overload":"overloads")),g.push(e.punctuationPart(21))),m=t.getDocumentationComment(i),h=t.getJsDocTags(),r.length>1&&0===m.length&&0===h.length&&(m=r[0].getDocumentationComment(i),h=r[0].getJsDocTags())}function X(t,r){var n=e.mapToDisplayParts(function(n){var a=i.symbolToTypeParameterDeclarations(t,r,70246400);V().writeList(53776,a,e.getSourceFileOfNode(e.getParseTreeNode(r)),n)});e.addRange(g,n)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(l||(l={})),function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===a[s]&&(a[s]=o[s]);for(var c=0,u=e.transpileOptionValueCompilerOptions;c>=5;return r}(d,_),0,n),o[s]=(e.Debug.assert((31&(l=1+((c=d)>>(u=_)&31)))===l,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),c&~(31<=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,function(s){return d(r,o,t.SmartIndenter.getIndentationForNode(o,r,n,i.options),function(e,r,n){for(var i,a=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(r,e,i,n))return r.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,n),s,i,a,function(t,r){if(!t.length)return a;var n=t.filter(function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!n.length)return a;var i=0;return function(t){for(;;){if(i>=n.length)return!1;var r=n[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}};function a(){return!1}}(n.parseDiagnostics,r),n)})}function d(r,n,i,a,o,s,c,u,l){var _,d,f,g,m=s.options,h=s.getRules,y=s.host,v=new t.FormattingContext(l,c,m),b=-1,x=[];if(o.advance(),o.isOnToken()){var D=l.getLineAndCharacterOfPosition(n.getStart(l)).line,S=D;n.decorators&&(S=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line),function n(i,a,s,c,p,h){if(e.rangeOverlapsWithStartEnd(r,i.getStart(l),i.getEnd())){var y=C(i,s,p,h),v=a;for(e.forEachChild(i,function(e){S(e,-1,i,y,s,c,!1)},function(r){!function(r,n,a,s){e.Debug.assert(e.isNodeArray(r));var c=function(e,t){switch(e.kind){case 165:case 248:case 205:case 164:case 163:case 206:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 200:case 201:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 172:if(e.typeArguments===t)return 29;break;case 176:return 18}return 0}(n,r),u=s,_=a;if(0!==c)for(;o.isOnToken()&&!((h=o.readTokenInfo(n)).token.end>r.pos);)if(h.token.kind===c){_=l.getLineAndCharacterOfPosition(h.token.pos).line,E(h,n,s,n);var d=void 0;if(-1!==b)d=b;else{var p=e.getLineStartPositionForPosition(h.token.pos,l);d=t.SmartIndenter.findFirstNonWhitespaceColumn(p,h.token.pos,l,m)}u=C(n,a,d,m.indentSize)}else E(h,n,s,n);for(var f=-1,g=0;gi.end)break;11!==i.kind?E(x,i,y,i):o.advance()}if(!i.parent&&o.isOnEOF()){var D=o.readEOFTokenRange();D.end<=i.end&&_&&A(D,l.getLineAndCharacterOfPosition(D.pos).line,i,_,f,d,a,y)}}function S(a,s,c,u,_,d,p,f){var h=a.getStart(l),y=l.getLineAndCharacterOfPosition(h).line,x=y;a.decorators&&(x=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,l)).line);var D=-1;if(p&&e.rangeContainsRange(r,c)&&-1!==(D=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,l,m);if(s!==i||r===u){var _=t.SmartIndenter.getBaseIndentation(m);return _>u?_:u}}return-1}(h,a.end,_,r,s))&&(s=D),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.endh){S.token.pos>h&&o.skipToStartOf(a);break}E(S,i,u,i)}if(!o.isOnToken())return s;if(e.isToken(a)){var S=o.readTokenInfo(a);if(11!==a.kind)return e.Debug.assert(S.token.end===a.end,"Token end is child end"),E(S,i,u,a),s}var C=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(m,e)?m.indentSize:0;return o===r?{indentation:r===g?b:a.getIndentation(),delta:Math.min(m.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===g?{indentation:b,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,l)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,l)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,y,D,i,u,160===a.kind?y:d);if(n(a,v,y,x,C.indentation,C.delta),11===a.kind){var T={pos:a.getStart(),end:a.getEnd()};if(T.pos!==T.end){var k=c.getChildren(l),w=k[e.findIndex(k,function(e){return e.pos===a.pos})-1];if(w&&l.getLineAndCharacterOfPosition(T.end).line!==l.getLineAndCharacterOfPosition(w.end).line){var A=l.getLineAndCharacterOfPosition(T.pos).line===l.getLineAndCharacterOfPosition(w.end).line;P(T,C.indentation,A,!1,!0)}}}return v=i,f&&196===c.kind&&-1===s&&(s=C.indentation),s}function E(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine(),d=!1;t.leadingTrivia&&k(t.leadingTrivia,n,v,i);var p=0,f=e.rangeContainsRange(r,t.token),m=l.getLineAndCharacterOfPosition(t.token.pos);if(f){var h=u(t.token),y=_;if(p=w(t.token,m,n,v,i),!h)if(0===p){var x=y&&l.getLineAndCharacterOfPosition(y.end).line;d=c&&m.line!==x}else d=1===p}if(t.trailingTrivia&&k(t.trailingTrivia,n,v,i),d){var D=f&&!u(t.token)?i.getIndentationForToken(m.line,t.token.kind,a,!!s):-1,S=!0;if(t.leadingTrivia){var E=i.getIndentationForComment(t.token.kind,D,a);S=T(t.leadingTrivia,E,S,function(e){return N(e.pos,E,!1)})}-1!==D&&S&&(N(t.token.pos,D,1===p),g=m.line,b=D)}o.advance(),v=n}}(n,n,D,S,i,a)}if(!o.isOnToken()){var E=o.getCurrentLeadingTrivia();E&&(T(E,i,!1,function(e){return w(e,l.getLineAndCharacterOfPosition(e.pos),n,n,void 0)}),!1!==m.trimTrailingWhitespace&&O(l.getLineAndCharacterOfPosition(_?_.end:r.pos).line,l.getLineAndCharacterOfPosition(r.end).line+1,_))}return x;function C(r,n,i,a){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:function(t,a,s,c){return!c&&function(t,i,a){switch(i){case 18:case 19:case 21:case 90:case 114:case 59:return!1;case 43:case 31:switch(a.kind){case 272:case 273:case 271:return!1}break;case 22:case 23:if(189!==a.kind)return!1}return n!==t&&!(r.decorators&&i===function(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 249:return 83;case 250:return 117;case 248:return 97;case 252:return 252;case 166:return 134;case 167:return 145;case 164:if(t.asteriskToken)return 41;case 162:case 159:var r=e.getNameOfDeclaration(t);if(r)return r.kind}}(r))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e,n){t.SmartIndenter.shouldIndentChildNode(m,n,r,l)&&(i+=e?m.indentSize:-m.indentSize,a=t.SmartIndenter.shouldIndentChildNode(m,r)?m.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(m,r,e,l,!0)?a:0}}function T(t,n,i,a){for(var o=0,s=t;o0){var E=p(S,m);M(x,D.character,E)}else I(x,D.character)}}}else i||N(r.pos,n,!1)}function O(t,r,n){for(var i=t;io)){var s=F(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),I(s,o+1-s))}}}function F(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function I(t,r){r&&x.push(e.createTextChangeFromStartLength(t,r,""))}function M(t,r,n){(r||n)&&x.push(e.createTextChangeFromStartLength(t,r,n))}}function p(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var u=Math.floor(t/r.tabSize),l=t-u*r.tabSize,_=void 0;return a||(a=[]),void 0===a[u]?a[u]=_=e.repeatString("\t",u):_=a[u],l?_+e.repeatString(" ",l):_}t.createTextRangeWithKind=function(t,r,n){var i={pos:t,end:r,kind:n};return e.Debug.isDebugging&&Object.defineProperty(i,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(n)}}),i},function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.formatOnEnter=function(t,r,n){var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(a));)a--;return e.isLineBreak(r.text.charCodeAt(a))&&a--,_({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=function(e,t,r){return l(c(s(e,26,t)),t,r,3)},t.formatOnOpeningCurly=function(t,r,n){var i=s(t,18,r);if(!i)return[];var a=c(i.parent);return _({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=function(e,t,r){return l(c(s(e,19,t)),t,r,5)},t.formatDocument=function(e,t){return _({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,r,n,i){return _({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1)},t.formatNodeGivenIndentation=function(e,r,n,i,a,o){var s={pos:0,end:r.text.length};return t.getFormattingScanner(r.text,n,s.pos,s.end,function(t){return d(s,e,i,a,t,o,1,function(e){return!1},r)})},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(n||(n={})),t.getRangeOfEnclosingComment=function(t,r,n,i){void 0===i&&(i=e.getTokenAtPosition(t,r));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=r&&rr.end}var g=s(l,e,i),h=g.line===t.line||d(l,e,t.line,i);if(p){var y=m(e,i,u,!h);if(-1!==y)return y+n;if(-1!==(y=c(e,l,t,h,i,u)))return y+n}D(u,l,e,i,o)&&!h&&(n+=u.indentSize);var v=_(l,e,t.line,i);l=(e=l).parent,t=v?i.getLineAndCharacterOfPosition(e.getStart(i)):g}return n+a(u)}function s(e,t,r){var n=p(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return!e.isDeclaration(t)&&!e.isStatementButNotDeclaration(t)||294!==r.kind&&i?-1:y(n,a,o)}function u(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,r,n,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,r))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===n}function d(t,r,n,i){if(231===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,90,i);return e.Debug.assert(void 0!==a),l(a,i).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(t,r,n,i){switch(n.kind){case 172:return a(n.typeArguments);case 197:return a(n.properties);case 196:return a(n.elements);case 176:return a(n.members);case 248:case 205:case 206:case 164:case 163:case 168:case 165:case 174:case 169:return a(n.typeParameters)||a(n.parameters);case 249:case 218:case 250:case 251:case 326:return a(n.typeParameters);case 201:case 200:return a(n.typeArguments)||a(n.arguments);case 247:return a(n.declarations);case 261:case 265:return a(n.elements);case 193:case 194:return a(n.elements)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i=0&&r=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return y(a,n,i);a=l(t[o],n)}return-1}function y(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function v(t,r,n,i){for(var a=0,o=0,s=t;sn.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),_=t.getRangeOfEnclosingComment(n,r,c||null);if(_&&3===_.kind)return function(t,r,n,i){var a=e.getLineAndCharacterOfPosition(t,r).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=v(s,r,t,n),u=c.column;return 0===u?u:42===t.text.charCodeAt(s+c.character)?u-1:u}(n,r,i,_);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,n)}(n,r,i);if(27===c.kind&&213!==c.parent.kind){var p=function(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?h(i.list.getChildren(),i.listItemIndex-1,r,n):-1}(c,n,i);if(-1!==p)return p}var y=function(e,t,r){return t&&f(e,e,t,r)}(r,c.parent,n);return y&&!e.rangeContainsRange(y,c)?g(y,n,i)+i.indentSize:function(t,r,n,i,s,c){for(var _,d=n;d;){if(e.positionBelongsToNode(d,r,t)&&D(c,d,_,t,!0)){var p=l(d,t),f=u(n,d,i,t);return o(d,p,void 0,0!==f?s&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0,t,!0,c)}var g=m(d,t,c,!0);if(-1!==g)return g;_=d,d=d.parent}return a(c)}(n,r,c,d,s,i)},r.getIndentationForNode=function(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return o(e,i,t,0,r,!1,n)},r.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=_,r.childStartsOnTheSameLineWithElseInIfStatement=d,r.argumentStartsOnSameLineAsPreviousArgument=function(t,r,n,i){if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,function(e){return e.pos===r.pos});if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;if(n===e.getLineAndCharacterOfPosition(i,t.arguments[o-1].getEnd()).line)return!0}return!1},r.getContainingList=p,r.findFirstNonWhitespaceCharacterAndColumn=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=x,r.shouldIndentChildNode=D}((t=e.formatting||(e.formatting={})).SmartIndenter||(t.SmartIndenter={}))}(l||(l={})),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function n(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function o(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function s(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var c,u;function l(t,r){return e.skipTrivia(t,r,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"}(c=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include"}(u=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var _,d={leadingTriviaOption:c.Exclude,trailingTriviaOption:u.Exclude};function p(e,t,r,n){return{pos:f(e,t,n),end:g(e,r,n)}}function f(t,r,n){var i=n.leadingTriviaOption;if(i===c.Exclude)return r.getStart(t);if(i===c.StartLine)return e.getLineStartPositionForPosition(r.getStart(t),t);if(i===c.JSDoc){var a=e.getJSDocCommentRanges(r,t.text);if(null==a?void 0:a.length)return e.getLineStartPositionForPosition(a[0].pos,t)}var o=r.getFullStart(),s=r.getStart(t);if(o===s)return s;var u=e.getLineStartPositionForPosition(o,t);if(e.getLineStartPositionForPosition(s,t)===u)return i===c.IncludeAll?o:s;var _=o>0?1:0,d=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,u)+_,t);return d=l(t.text,d),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,d),t)}function g(t,r,n){var i=r.end,a=n.trailingTriviaOption;if(a===u.Exclude||e.isExpression(r)&&a!==u.Include)return i;var o=e.skipTrivia(t.text,i,!0);return o===i||a!==u.Include&&!e.isLineBreak(t.text.charCodeAt(o-1))?i:o}function m(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&197===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(_||(_={})),t.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var h,y,v=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=function(r){return new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext)},t.with=function(e,r){var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n=t.getLineAndCharacterOfPosition(u.range.end).line+2)break}if(t.statements.length&&(void 0===l&&(l=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),l",joiner:", "})},t.prototype.getOptionsForInsertNodeBefore=function(t,r,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(r)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(n?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,r,n){var a=e.firstOrUndefined(r.body.statements);a&&r.body.multiLine?this.insertNodeBefore(t,a,n):this.replaceConstructorBody(t,r,i([n],r.body.statements))},t.prototype.insertNodeAtConstructorEnd=function(t,r,n){var a=e.lastOrUndefined(r.body.statements);a&&r.body.multiLine?this.insertNodeAfter(t,a,n):this.replaceConstructorBody(t,r,i(r.body.statements,[n]))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.factory.createBlock(n,!0))},t.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=f(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtStartWorker=function(e,t,r){var n,i=null!==(n=this.guessIndentationFromExistingMembers(e,t))&&void 0!==n?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,x(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=x(r);a=0;n--){var i=r[n],a=i.span,o=i.newText;t=""+t.substring(0,a.start)+o+t.substring(e.textSpanEnd(a))}return t}function S(t){var n=e.visitEachChild(t,S,e.nullTransformationContext,E,S),i=e.nodeIsSynthesized(n)?n:Object.create(n);return e.setTextRangePosEnd(i,r(t),o(t)),i}function E(t,n,i,a,s){var c=e.visitNodes(t,n,i,a,s);if(!c)return c;var u=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(u,r(t),o(t)),u}function C(t,r){return!(e.isInComment(t,r)||e.isInString(t,r)||e.isInTemplateString(t,r)||e.isInJSXText(t,r))}function T(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(t,r,n),a=g(t,r,n);e.deleteRange(t,{pos:i,end:a})}function k(t,r,n,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,n)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!r.has(i),"Deleting a node twice"),r.add(i),t.deleteRange(n,{pos:b(n,i),end:o===a.length-1?g(n,i,{}):b(n,a[o+1])})):T(t,n,i)}t.ChangeTracker=v,t.getNewFileText=function(e,t,r,n){return h.newFileChangesWorker(void 0,t,e,r,n)},function(t){function r(t,r,n,a,o){var s=n.map(function(e){return 4===e?"":i(e,t,a).text}).join(a),c=e.createSourceFile("any file name",s,99,!0,r);return D(s,e.formatting.formatDocument(c,o))+a}function i(t,r,i){var a=function(t){var r=0,i=e.createTextWriter(t);function a(t,n){if(n||!function(t){return e.skipTrivia(t,0)===t.length}(t)){r=i.getTextPos();for(var a=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1));)a++;r-=a}}return{onEmitNode:function(e,t,i){t&&n(t,r),i(e,t),t&&s(t,r)},onBeforeEmitNodeArray:function(e){e&&n(e,r)},onAfterEmitNodeArray:function(e){e&&s(e,r)},onBeforeEmitToken:function(e){e&&n(e,r)},onAfterEmitToken:function(e){e&&s(e,r)},write:function(e){i.write(e),a(e,!1)},writeComment:function(e){i.writeComment(e)},writeKeyword:function(e){i.writeKeyword(e),a(e,!1)},writeOperator:function(e){i.writeOperator(e),a(e,!1)},writePunctuation:function(e){i.writePunctuation(e),a(e,!1)},writeTrailingSemicolon:function(e){i.writeTrailingSemicolon(e),a(e,!1)},writeParameter:function(e){i.writeParameter(e),a(e,!1)},writeProperty:function(e){i.writeProperty(e),a(e,!1)},writeSpace:function(e){i.writeSpace(e),a(e,!1)},writeStringLiteral:function(e){i.writeStringLiteral(e),a(e,!1)},writeSymbol:function(e,t){i.writeSymbol(e,t),a(e,!1)},writeLine:function(e){i.writeLine(e)},increaseIndent:function(){i.increaseIndent()},decreaseIndent:function(){i.decreaseIndent()},getText:function(){return i.getText()},rawWrite:function(e){i.rawWrite(e),a(e,!1)},writeLiteral:function(e){i.writeLiteral(e),a(e,!0)},getTextPos:function(){return i.getTextPos()},getLine:function(){return i.getLine()},getColumn:function(){return i.getColumn()},getIndent:function(){return i.getIndent()},isAtStartOfLine:function(){return i.isAtStartOfLine()},hasTrailingComment:function(){return i.hasTrailingComment()},hasTrailingWhitespace:function(){return i.hasTrailingWhitespace()},clear:function(){i.clear(),r=0}}}(i);return e.createPrinter({newLine:"\n"===i?1:0,neverAsciiEscape:!0,preserveSourceNewlines:!0},a).writeNode(4,t,r,a),{text:a.getText(),node:S(t)}}t.getTextChangesFromChanges=function(t,r,n,o){return e.mapDefined(e.group(t,function(e){return e.sourceFile.path}),function(t){for(var s=t[0].sourceFile,c=e.stableSort(t,function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end}),u=function(t){e.Debug.assert(c[t].range.end<=c[t+1].range.pos,"Changes overlap",function(){return JSON.stringify(c[t].range)+" and "+JSON.stringify(c[t+1].range)})},l=0;l0?{fileName:s.fileName,textChanges:d}:void 0})},t.newFileChanges=function(t,n,i,a,o){var s=r(t,e.getScriptKindFromFileName(n),i,a,o);return{fileName:n,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=r,t.getNonformattedText=i}(h||(h={})),t.applyChanges=D,t.isValidLocationToAddComment=C,function(t){function r(t,r,n){if(n.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else T(t,r,e.getAncestor(n,258))}t.deleteDeclaration=function(t,n,i,a){switch(a.kind){case 159:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?t.replaceNodeWithText(i,a,"()"):k(t,n,i,a);break;case 258:case 257:T(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?c.Exclude:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;case 195:var s=a.parent;194===s.kind&&a!==e.last(s.elements)?T(t,i,a):k(t,n,i,a);break;case 246:!function(t,r,n,i){var a=i.parent;if(284!==a.kind)if(1===a.declarations.length){var o=a.parent;switch(o.kind){case 236:case 235:t.replaceNode(n,i,e.factory.createObjectLiteralExpression());break;case 234:T(t,n,a);break;case 229:T(t,n,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}else k(t,r,n,i);else t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n))}(t,n,i,a);break;case 158:k(t,n,i,a);break;case 262:var l=a.parent;1===l.elements.length?r(t,i,l):k(t,n,i,a);break;case 260:r(t,i,a);break;case 26:T(t,i,a,{trailingTriviaOption:u.Exclude});break;case 97:T(t,i,a,{leadingTriviaOption:c.Exclude});break;case 249:case 248:T(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;default:e.isImportClause(a.parent)&&a.parent.name===a?function(t,r,n){if(n.namedBindings){var i=n.name.getStart(r),a=e.getTokenAtPosition(r,n.name.end);if(a&&27===a.kind){var o=e.skipTrivia(r.text,a.end,!1,!0);t.deleteRange(r,{pos:i,end:o})}else T(t,r,n.name)}else T(t,r,n.parent)}(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?k(t,n,i,a):T(t,i,a)}}}(y||(y={})),t.deleteNode=T}(e.textChanges||(e.textChanges={}))}(l||(l={})),function(e){!function(t){var r=e.createMultiMap(),n=new e.Map;function o(t){return e.isArray(t)?e.formatStringFromArgs(e.getLocaleSpecificMessage(t[0]),t.slice(1)):e.getLocaleSpecificMessage(t)}function s(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function u(e,t){return{changes:e,commands:t}}function l(t,r,n){for(var i=0,a=_(t);i1));o++);var u=i<2;return function(e){var t=e.fixId,r=e.fixAllDescription,n=c(e,["fixId","fixAllDescription"]);return u?n:a(a({},n),{fixId:t,fixAllDescription:r})}}(r,n))})},t.getAllFixes=function(t){return n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=u,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,r,n){var i=[];return u(e.textChanges.ChangeTracker.with(t,function(e){return l(t,r,function(t){return n(e,t,i)})}),0===i.length?void 0:i)},t.eachDiagnostic=l}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){var t,r;t=e.refactor||(e.refactor={}),r=new e.Map,t.registerRefactor=function(e,t){r.set(e,t)},t.getApplicableRefactors=function(t){return e.arrayFrom(e.flatMapIterator(r.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?void 0:e.getAvailableActions(t)}))},t.getEditsForRefactor=function(e,t,n){var i=r.get(t);return i&&i.getEditsForAction(e,n)}}(l||(l={})),function(e){!function(t){var r="addConvertToUnknownForNonOverlappingTypes",n=[e.Diagnostics.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.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.Debug.checkDefined(e.findAncestor(i,function(t){return e.isAsExpression(t)||e.isTypeAssertionExpression(t)}),"Expected to find an assertion expression"),o=e.isAsExpression(a)?e.factory.createAsExpression(a.expression,e.factory.createKeywordTypeNode(151)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(151),a.expression);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,a,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,r,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.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.code],getCodeActions:function(r){var n=r.sourceFile,i=e.textChanges.ChangeTracker.with(r,function(t){var r=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);t.insertNodeAtEndOfScope(n,n,r)});return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(l||(l={})),function(e){!function(t){var r="addMissingAsync",n=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function i(n,i,a,o){var s=a(function(t){return function(t,r,n,i){if(!i||!i.has(e.getNodeId(n))){null==i||i.add(e.getNodeId(n));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(n,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(256|e.getSyntacticModifierFlags(n))));t.replaceNode(r,n,a)}}(t,n.sourceFile,i,o)});return t.createCodeFixAction(r,s,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)}function a(t,r){if(r){var n=e.getTokenAtPosition(t,r.start);return e.findAncestor(n,function(n){return n.getStart(t)e.textSpanEnd(r)?"quit":(e.isArrowFunction(n)||e.isMethodDeclaration(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n))&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))})}}t.registerCodeFix({fixIds:[r],errorCodes:n,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,o=t.cancellationToken,s=t.span,c=e.find(t.program.getDiagnosticsProducingTypeChecker().getDiagnostics(r,o),function(t,r){return function(n){var i=n.start,a=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&s===r&&!!o&&e.some(o,function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})}}(s,n)),u=a(r,c&&c.relatedInformation&&e.find(c.relatedInformation,function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}));if(u)return[i(t,u,function(r){return e.textChanges.ChangeTracker.with(t,r)})]},getAllCodeActions:function(r){var o=r.sourceFile,s=new e.Set;return t.codeFixAll(r,n,function(t,n){var c=n.relatedInformation&&e.find(n.relatedInformation,function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),u=a(o,c);if(u)return i(r,u,function(e){return e(t),[]},s)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r="addMissingAwait",n=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],o=i([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,n],a);function s(r,n,i,a,s,c){var u=r.sourceFile,d=function(t,r,n,i,a){var s=function(t,r){if(e.isPropertyAccessExpression(t.parent)&&e.isIdentifier(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(e.isIdentifier(t))return{identifiers:[t],isCompleteFix:!0};if(e.isBinaryExpression(t)){for(var n=void 0,i=!0,a=0,o=[t.left,t.right];ae.textSpanEnd(n)?"quit":e.isExpression(r)&&e.textSpansEqual(n,e.createTextSpanFromNode(r,t))});return s&&function(t,r,n,i,a){var o=a.getDiagnosticsProducingTypeChecker().getDiagnostics(t,i);return e.some(o,function(t){var i=t.start,a=t.length,o=t.relatedInformation,s=t.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},n)&&s===r&&!!o&&e.some(o,function(t){return t.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}(t,r,n,i,a)&&l(s)?s:void 0}function l(t){return 32768&t.kind||!!e.findAncestor(t,function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t||e.isBlock(t)&&(248===t.parent.kind||205===t.parent.kind||206===t.parent.kind||164===t.parent.kind)})}function _(t,r,i,o,s,c){if(e.isBinaryExpression(s))for(var u=0,l=[s.left,s.right];u0)return[t.createCodeFixAction(r,a,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,function(e,t){return i(e,t.file,t.start,r.program,a)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r="addMissingDeclareProperty",n=[e.Diagnostics.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.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(e.isIdentifier(a)){var o=a.parent;162!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(r,133,o)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start)});if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Prefix_with_declare,r,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,function(e,t){return i(e,t.file,t.start,a)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r="addMissingInvocationForDecorator",n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(a.expression,void 0,void 0);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,a,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r="addNameToNamelessParameter",n=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n);if(!e.isIdentifier(i))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(i.kind));var a=i.parent;if(!e.isParameter(a))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind));var o=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createParameterDeclaration(void 0,a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,e.factory.createTypeReferenceNode(i,void 0),a.initializer);t.replaceNode(r,i,s)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,a,e.Diagnostics.Add_parameter_name,r,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r="annotateWithTypeFromJSDoc",n=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.tryCast(e.isParameter(n.parent)?n.parent.parent:n.parent,a)}function a(t){return function(t){return e.isFunctionLikeDeclaration(t)||246===t.kind||161===t.kind||162===t.kind}(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some(function(t){return!!e.getJSDocType(t)}))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);i.length&&t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r);a&&t.insertNodeBefore(r,e.first(n.parameters),e.factory.createToken(20));for(var o=0,s=n.parameters;o1?(t.delete(r,c),t.insertNodeAfter(r,l,u)):t.replaceNode(r,l,u)}}function _(n){var i=[];return n.members&&n.members.forEach(function(e,n){if("constructor"!==n){var a=s(e,void 0);a&&i.push.apply(i,a)}else t.delete(r,e.valueDeclaration.parent)}),n.exports&&n.exports.forEach(function(t){if("prototype"===t.name){var r=t.declarations[0];1===t.declarations.length&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&62===r.parent.operatorToken.kind&&e.isObjectLiteralExpression(r.parent.right)&&(n=s(r.parent.right.symbol,void 0))&&i.push.apply(i,n)}else{var n;(n=s(t,[e.factory.createToken(123)]))&&i.push.apply(i,n)}}),i;function s(n,i){var s=[];if(!(8192&n.flags||4096&n.flags))return s;var c,u,l=n.valueDeclaration,_=l.parent,d=_.right;if(u=d,!(e.isPropertyAccessExpression(c=l)?o(c)||e.isFunctionLike(u):e.every(c.properties,function(t){return!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t))})))return s;if(t.delete(r,_.parent&&230===_.parent.kind?_.parent:_),!d)return s.push(e.factory.createPropertyDeclaration([],i,n.name,void 0,void 0,void 0)),s;if(e.isPropertyAccessExpression(l)&&(e.isFunctionExpression(d)||e.isArrowFunction(d)))return f(s,d,l.name);if(e.isObjectLiteralExpression(d))return e.flatMap(d.properties,function(t){return e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)?s.concat(t):e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)?f(s,t.initializer,t.name):o(t)?s:[]});if(e.isSourceFileJS(r))return s;if(!e.isPropertyAccessExpression(l))return s;var p=e.factory.createPropertyDeclaration(void 0,i,l.name,void 0,void 0,d);return e.copyLeadingComments(_.parent,p,r),s.push(p),s;function f(t,n,o){return e.isFunctionExpression(n)?function(t,n,o){var s=e.concatenate(i,a(n,129)),c=e.factory.createMethodDeclaration(void 0,s,void 0,o,void 0,void 0,n.parameters,void 0,n.body);return e.copyLeadingComments(_,c,r),t.concat(c)}(t,n,o):function(t,n,o){var s,c=n.body;s=227===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var u=e.concatenate(i,a(n,129)),l=e.factory.createMethodDeclaration(void 0,u,void 0,o,void 0,void 0,n.parameters,void 0,s);return e.copyLeadingComments(_,l,r),t.concat(l)}(t,n,o)}}}}function a(t,r){return e.filter(t.modifiers,function(e){return e.kind===r})}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start,n.program.getTypeChecker())});return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_function_to_an_ES2015_class,r,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return i(t,r.file,r.start,e.program.getTypeChecker())})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r,n="convertToAsyncFunction",a=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],o=!0;function s(t,r,n,i,a){var o,s=e.getTokenAtPosition(r,n);if(o=e.isIdentifier(s)&&e.isVariableDeclaration(s.parent)&&s.parent.initializer&&e.isFunctionLikeDeclaration(s.parent.initializer)?s.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.isFunctionLikeDeclaration)){var _,p=new e.Map,f=e.isInJSFile(o),g=function(t,r){if(!t.body)return new e.Set;var n=new e.Set;return e.forEachChild(t.body,function t(i){c(i,r,"then")?(n.add(e.getNodeId(i)),e.forEach(i.arguments,t)):c(i,r,"catch")?(n.add(e.getNodeId(i)),e.forEachChild(i,t)):u(i,r)?n.add(e.getNodeId(i)):e.forEachChild(i,t)}),n}(o,i),h=function(t,r,n,i){var a=new e.Map,o=e.createMultiMap();return e.forEachChild(t,function t(s){if(e.isIdentifier(s)){var c=r.getSymbolAtLocation(s),u=c&&function(e,t){return e.valueDeclaration&&e.valueDeclaration.getSourceFile()===t}(c,i);if(c&&u){var _=m(r.getTypeAtLocation(s),r),d=e.getSymbolId(c).toString();if(!_||e.isFunctionLikeDeclaration(s.parent)||n.has(d)){if(s.parent&&(e.isParameter(s.parent)||e.isVariableDeclaration(s.parent)||e.isBindingElement(s.parent))){var p=s.text,f=o.get(p);if(f&&f.some(function(e){return e!==c})){var g=l(s,o);a.set(d,g.identifier),n.set(d,g),o.add(p,c)}else{var h=e.getSynthesizedDeepClone(s);n.set(d,x(h)),o.add(p,c)}}}else{var y=e.firstOrUndefined(_.parameters),v=y&&e.isParameter(y.valueDeclaration)&&e.tryCast(y.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),b=l(v,o);n.set(d,b),o.add(v.text,c)}}}else e.forEachChild(s,t)}),e.getSynthesizedDeepCloneWithRenames(t,!0,a,r)}(o,i,p,a.sourceFile),y=h.body&&e.isBlock(h.body)?(_=[],e.forEachReturnStatement(h.body,function(t){e.isReturnStatementWithFixablePromiseHandler(t)&&_.push(t)}),_):e.emptyArray,v={checker:i,synthNamesMap:p,setOfExpressionsToReturn:g,isInJSFile:f};if(y.length){t.insertLastModifierBefore(r,129,o);for(var b=function(n){e.forEachChild(n,function i(a){if(e.isCallExpression(a)){var o=d(a,v);t.replaceNodeWithNodes(r,n,o)}else e.isFunctionLike(a)||e.forEachChild(a,i)})},D=0,S=y;D0)return N;var P=m(a.checker.getTypeAtLocation(t),a.checker).getReturnType(),O=e.getSynthesizedDeepClone(E),F=a.checker.getPromisedTypeOfPromise(P)?e.factory.createAwaitExpression(O):O;if(S(i,a))return f(F,null===(l=i.typeArguments)||void 0===l?void 0:l[0]);var I=p(r,F,void 0);return r&&r.types.push(P),I;default:return _()}return e.emptyArray}function m(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function h(t,r,n){for(var i=[],a=0,o=r;a0)return}else e.isFunctionLike(a)||e.forEachChild(a,r)});return i}function y(t,r){var n,i=[];if(e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){return e.isIdentifier(r)?a(r):function(t,r,n){return void 0===r&&(r=e.emptyArray),void 0===n&&(n=[]),{kind:1,bindingPattern:t,elements:r,types:n}}(r,e.flatMap(r.elements,function(r){return e.isOmittedExpression(r)?[]:[t(r.name)]}))}(t.parameters[0].name)):e.isIdentifier(t)&&(n=a(t)),n&&(!("identifier"in n)||"undefined"!==n.identifier.text))return n;function a(t){var n,a=function(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}((n=t).original?n.original:n);return a&&r.synthNamesMap.get(e.getSymbolId(a).toString())||x(t,i)}}function v(t){return!t||(D(t)?!t.identifier.text:e.every(t.elements,v))}function b(e){return D(e)?e.identifier:e.bindingPattern}function x(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1}}function D(e){return 0===e.kind}function S(t,r){return!!t.original&&r.setOfExpressionsToReturn.has(e.getNodeId(t.original))}t.registerCodeFix({errorCodes:a,getCodeActions:function(r){o=!0;var i=e.textChanges.ChangeTracker.with(r,function(e){return s(e,r.sourceFile,r.span.start,r.program.getTypeChecker(),r)});return o?[t.createCodeFixAction(n,i,e.Diagnostics.Convert_to_async_function,n,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,a,function(t,r){return s(t,r.file,r.start,e.program.getTypeChecker(),e)})}}),function(e){e[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"}(r||(r={}))}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){function r(t,r,n,i){for(var a=0,o=t.imports;a1?[[a(n),o(n)],!0]:[[o(n)],!0]:[[a(n)],!1]}(_.arguments[0],r):void 0;return d?(i.replaceNodeWithNodes(t,n.parent,d[0]),d[1]):(i.replaceRangeWithText(t,e.createRange(u.getStart(t),_.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,u.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[p(void 0,o,r.right),f([e.factory.createExportSpecifier(o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!function(t,r,n){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.factory.createToken(92),e.factory.createToken(84)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.factory.createToken(92),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}}(r,t,n)}(t,n,i,s);return!1}(r,i,y,c,m)}default:return!1}}function a(e){return f(void 0,e)}function o(t){return f([e.factory.createExportSpecifier(void 0,"default")],t)}function s(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.add(e),e}function c(t){var r=e.createMultiMap();return u(t,function(e){return r.add(e.text,e)}),r}function u(t,r){e.isIdentifier(t)&&function(e){var t=e.parent;switch(t.kind){case 198:return t.name!==e;case 195:case 262:return t.propertyName!==e;default:return!0}}(t)&&r(t),t.forEachChild(function(e){return u(e,r)})}function l(t,r,n){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),e.getSynthesizedDeepClone(n.asteriskToken),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.parameters),e.getSynthesizedDeepClone(n.type),e.factory.converters.convertToFunctionBlock(e.getSynthesizedDeepClone(n.body)))}function _(t,r,n,i){return"default"===r?e.makeImport(e.factory.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[d(r,t)],n,i)}function d(t,r){return e.factory.createImportSpecifier(void 0!==t&&t!==r?e.factory.createIdentifier(t):void 0,e.factory.createIdentifier(r))}function p(t,r,n){return e.factory.createVariableStatement(t,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(r,void 0,void 0,n)],2))}function f(t,r){return e.factory.createExportDeclaration(void 0,void 0,!1,t&&e.factory.createNamedExports(t),void 0===r?void 0:e.factory.createStringLiteral(r))}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(a){var o=a.sourceFile,u=a.program,l=a.preferences,_=e.textChanges.ChangeTracker.with(a,function(t){if(function(t,r,a,o,u){var l={original:c(t),additional:new e.Set},_=function(t,r,i){var a=new e.Map;return n(t,function(t){var n=t.name,o=n.text,c=n.originalKeywordKind;!a.has(o)&&(void 0!==c&&e.isNonContextualKeyword(c)||r.resolveName(o,t,111551,!0))&&a.set(o,s("_"+o,i))}),a}(t,r,l);!function(t,r,i){n(t,function(n,a){if(!a){var o=n.name.text;i.replaceNode(t,n,e.factory.createIdentifier(r.get(o)||o))}})}(t,_,a);for(var d=!1,p=0,f=t.statements;p=e.ModuleKind.ES2015)return n?1:2;if(e.isInJSFile(t))return e.isExternalModule(t)?1:3;for(var i=0,a=t.statements;i"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(r,s,e.factory.createToken(84)),t.insertText(r,c.end," = "),t.insertText(r,u.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a,o=n.sourceFile,s=n.program,c=n.span,u=e.textChanges.ChangeTracker.with(n,function(e){a=i(e,o,c.start,s.getTypeChecker())});return a?[t.createCodeFixAction(r,u,a,r,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){i(t,r.file,r.start,e.program.getTypeChecker())})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){var t,r;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(n){var i=n.sourceFile,a=function(t,r){var n=e.getTokenAtPosition(t,r);return e.findAncestor(n,function(e){return 191===e.kind})}(i,n.span.start),o=e.textChanges.ChangeTracker.with(n,function(t){return function(t,r,n){if(n){for(var i=n.type,a=!1,o=!1;179===i.kind||180===i.kind||185===i.kind;)179===i.kind?a=!0:180===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(n,n.dotDotDotToken||(o?e.factory.createToken(25):void 0),n.name,n.questionToken||(a?e.factory.createToken(57):void 0),i);s!==n&&t.replaceNode(r,n,s)}}(t,i,a)});return[t.createCodeFixAction(r,o,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,r,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r="fixIncorrectNamedTupleSyntax"]})}(l||(l={})),function(e){!function(t){var r=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function n(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=a.parent;if(i!==e.Diagnostics.No_overload_matches_this_call.code&&i!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=n.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isIdentifierOrPrivateIdentifier(a),"Expected an identifier for spelling (property access)");var u=c.getTypeAtLocation(o.expression);32&o.flags&&(u=c.getNonNullableType(u)),s=c.getSuggestedSymbolForNonexistentProperty(a,u)}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var l=function(t,r,n){if(n&&e.isStringLiteralLike(n.moduleSpecifier)){var i=e.getResolvedModule(t,n.moduleSpecifier.text);return i?r.program.getSourceFile(i.resolvedFileName):void 0}}(t,n,e.findAncestor(a,e.isImportDeclaration));l&&l.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,l.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var _=e.findAncestor(a,e.isJsxOpeningLikeElement),d=c.getContextualTypeForArgumentAtIndex(_,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,d)}else{var p=e.getMeaningFromLocation(a),f=e.getTextOfNode(a);e.Debug.assert(void 0!==f,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,f,function(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t}(p))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function i(t,r,n,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(n.parent)){var s=i.valueDeclaration;e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(r,n,e.factory.createIdentifier(o)):t.replaceNode(r,n.parent,e.factory.createElementAccessExpression(n.parent.expression,e.factory.createStringLiteral(o)))}else t.replaceNode(r,n,e.factory.createIdentifier(o))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,o=n(a,r.span.start,r,r.errorCode);if(o){var s=o.node,c=o.suggestedSymbol,u=r.host.getCompilationSettings().target,l=e.textChanges.ChangeTracker.with(r,function(e){return i(e,a,s,c,u)});return[t.createCodeFixAction("spelling",l,[e.Diagnostics.Change_spelling_to_0,e.symbolName(c)],"fixSpelling",e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:["fixSpelling"],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,r){var a=n(r.file,r.start,e,r.code),o=e.host.getCompilationSettings().target;a&&i(t,e.sourceFile,a.node,a.suggestedSymbol,o)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r,n="returnValueCorrect",i=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function a(t,r,n){var i=t.createSymbol(4,r.escapedText);i.type=t.getTypeAtLocation(n);var a=e.createSymbolTable([i]);return t.createAnonymousType(void 0,a,[],[],void 0,void 0)}function o(t,n,i,o){if(n.body&&e.isBlock(n.body)&&1===e.length(n.body.statements)){var c=e.first(n.body.statements);if(e.isExpressionStatement(c)&&s(t,n,t.getTypeAtLocation(c.expression),i,o))return{declaration:n,kind:r.MissingReturnStatement,expression:c.expression,statement:c,commentSource:c.expression};if(e.isLabeledStatement(c)&&e.isExpressionStatement(c.statement)){var u=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(c.label,c.statement.expression)]);if(s(t,n,a(t,c.label,c.statement.expression),i,o))return e.isArrowFunction(n)?{declaration:n,kind:r.MissingParentheses,expression:u,statement:c,commentSource:c.statement.expression}:{declaration:n,kind:r.MissingReturnStatement,expression:u,statement:c,commentSource:c.statement.expression}}else if(e.isBlock(c)&&1===e.length(c.statements)){var l=e.first(c.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)&&(u=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]),s(t,n,a(t,l.label,l.statement.expression),i,o)))return{declaration:n,kind:r.MissingReturnStatement,expression:u,statement:c,commentSource:l}}}}function s(t,r,n,i,a){if(a){var o=t.getSignatureFromDeclaration(r);if(o){e.hasSyntacticModifier(r,256)&&(n=t.createPromiseType(n));var s=t.createSignature(r,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=t.createAnonymousType(void 0,e.createSymbolTable(),[s],[],void 0,void 0)}else n=t.getAnyType()}return t.isTypeAssignableTo(n,i)}function c(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(a.parent){var s=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(s&&s.body&&s.type&&e.rangeContainsRange(s.type,a)))return;return o(t,s,t.getTypeFromTypeNode(s.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!e.isCallExpression(s.parent)||!s.body)return;var c=s.parent.arguments.indexOf(s),u=t.getContextualTypeForArgumentAtIndex(s.parent,c);if(!u)return;return o(t,s,u,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var l=function(t){switch(t.kind){case 246:case 159:case 195:case 162:case 285:return t.initializer;case 277:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 286:case 161:case 288:case 328:case 322:return}}(a.parent);if(!l||!e.isFunctionLikeDeclaration(l)||!l.body)return;return o(t,l,t.getTypeAtLocation(a.parent),!0)}}}function u(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.probablyUsesSemicolons(r);t.replaceNode(r,i,e.factory.createReturnStatement(n),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function l(t,r,n,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(r,n.body,s)}function _(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function d(r,i,a){var o=e.textChanges.ChangeTracker.with(r,function(e){return u(e,r.sourceFile,i,a)});return t.createCodeFixAction(n,o,e.Diagnostics.Add_a_return_statement,"fixAddReturnStatement",e.Diagnostics.Add_all_missing_return_statement)}function p(r,i,a){var o=e.textChanges.ChangeTracker.with(r,function(e){return _(e,r.sourceFile,i,a)});return t.createCodeFixAction(n,o,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,"fixWrapTheBlockWithParen",e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!function(e){e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"}(r||(r={})),t.registerCodeFix({errorCodes:i,fixIds:["fixAddReturnStatement","fixRemoveBracesFromArrowFunctionBody","fixWrapTheBlockWithParen"],getCodeActions:function(i){var a=i.sourceFile,o=i.span.start,s=i.errorCode,u=c(i.program.getTypeChecker(),a,o,s);if(u)return u.kind===r.MissingReturnStatement?e.append([d(i,u.expression,u.statement)],e.isArrowFunction(u.declaration)?function(r,i,a,o){var s=e.textChanges.ChangeTracker.with(r,function(e){return l(e,r.sourceFile,i,a,o,!1)});return t.createCodeFixAction(n,s,e.Diagnostics.Remove_braces_from_arrow_function_body,"fixRemoveBracesFromArrowFunctionBody",e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(i,u.declaration,u.expression,u.commentSource):void 0):[p(i,u.declaration,u.expression)]},getAllCodeActions:function(r){return t.codeFixAll(r,i,function(t,n){var i=c(r.program.getTypeChecker(),n.file,n.start,n.code);if(i)switch(r.fixId){case"fixAddReturnStatement":u(t,n.file,i.expression,i.statement);break;case"fixRemoveBracesFromArrowFunctionBody":if(!e.isArrowFunction(i.declaration))return;l(t,n.file,i.declaration,i.expression,i.commentSource,!1);break;case"fixWrapTheBlockWithParen":if(!e.isArrowFunction(i.declaration))return;_(t,n.file,i.declaration,i.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r,n="addMissingMember",i=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code],a="addMissingMember";function o(t,r,n,i){var a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a)||e.isPrivateIdentifier(a)){var o=a.parent;if(e.isPropertyAccessExpression(o)){var s=e.skipConstraint(n.getTypeAtLocation(o.expression)),c=s.symbol;if(c&&c.declarations){var u=e.find(c.declarations,e.isClassLike);if(u||!e.isPrivateIdentifier(a)){var l=u||e.find(c.declarations,e.isInterfaceDeclaration);if(l&&!i.isSourceFileFromExternalLibrary(l.getSourceFile())){var _=(s.target||s)!==n.getDeclaredTypeOfSymbol(c);if(_&&(e.isPrivateIdentifier(a)||e.isInterfaceDeclaration(l)))return;var d=l.getSourceFile(),p=(_?32:0)|(e.startsWithUnderscore(a.text)?8:0),f=e.isSourceFileJS(d);return{kind:1,token:a,call:e.tryCast(o.parent,e.isCallExpression),modifierFlags:p,parentDeclaration:l,declSourceFile:d,isJSFile:f}}var g=e.find(c.declarations,e.isEnumDeclaration);return!g||e.isPrivateIdentifier(a)||i.isSourceFileFromExternalLibrary(g.getSourceFile())?void 0:{kind:0,token:a,parentDeclaration:g}}}}}}function s(t,r,n,i,a){var o=i.text;if(a){if(218===n.kind)return;var s=n.name.getText(),u=c(e.factory.createIdentifier(s),o);t.insertNodeAfter(r,n,u)}else if(e.isPrivateIdentifier(i)){var l=e.factory.createPropertyDeclaration(void 0,void 0,o,void 0,void 0,void 0),d=_(n);d?t.insertNodeAfter(r,d,l):t.insertNodeAtClassStart(r,n,l)}else{var p=e.getFirstConstructorWithBody(n);if(!p)return;var f=c(e.factory.createThis(),o);t.insertNodeAtConstructorEnd(r,p,f)}}function c(t,r){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(t,r),e.factory.createIdentifier("undefined")))}function u(t,r,n){var i;if(213===n.parent.parent.kind){var a=n.parent.parent,o=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(n.parent===a.left?a.right:a.left)));i=t.typeToTypeNode(o,r,void 0)}else{var s=t.getContextualType(n.parent);i=s?t.typeToTypeNode(s,void 0,void 0):void 0}return i||e.factory.createKeywordTypeNode(128)}function l(t,r,n,i,a,o){var s=e.factory.createPropertyDeclaration(void 0,o?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(o)):void 0,i,void 0,a,void 0),c=_(n);c?t.insertNodeAfter(r,c,s):t.insertNodeAtClassStart(r,n,s)}function _(t){for(var r,n=0,i=t.members;n=e.ModuleKind.ES2015&&o99)&&(s=e.textChanges.ChangeTracker.with(r,function(r){if(e.getTsConfigObjectLiteralExpression(i)){var n=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&n.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(r,i,n)}}),a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))),a.length?a:void 0}}})}(l||(l={})),function(e){!function(t){var r="fixPropertyAssignment",n=[e.Diagnostics.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.code];function i(t,r,n){t.replaceNode(r,n,e.factory.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isShorthandPropertyAssignment)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=a(n.sourceFile,n.span.start),s=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,o)});return[t.createCodeFixAction(r,s,[e.Diagnostics.Change_0_to_1,"=",":"],r,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return i(e,t.file,a(t.file,t.start))})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r="extendsInterfaceBecomesImplements",n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingClass(n).heritageClauses,a=i[0].getFirstToken();return 93===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.factory.createToken(116)),2===i.length&&93===i[0].token&&116===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.factory.createToken(27));for(var s=r.text,c=a.end;c":">","}":"}"};function o(t,r,n,i,o){var s=n.getText()[i];if(function(t){return e.hasProperty(a,t)}(s)){var c=o?a[s]:"{"+e.quote(s,r)+"}";t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r="unusedIdentifier",n="unusedIdentifier_prefix",i="unusedIdentifier_delete",a="unusedIdentifier_infer",o=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];function s(t,r,n){t.replaceNode(r,n.parent,e.factory.createKeywordTypeNode(151))}function c(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function u(t,r,n){t.delete(r,e.Debug.checkDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function l(t){return 99===t.kind?e.tryCast(t.parent,e.isImportDeclaration):void 0}function _(t,r){return e.isVariableDeclarationList(r.parent)&&e.first(r.parent.getChildren(t))===r}function d(e,t,r){e.delete(t,229===r.parent.kind?r.parent:r)}function p(t,r,n){e.forEach(n.elements,function(e){return t.delete(r,e)})}function f(t,r,n,i){r!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(135===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&function(e){switch(e.parent.kind){case 159:case 158:return!0;case 246:switch(e.parent.parent.parent.kind){case 236:case 235:return!0}}return!1}(i)&&(t.replaceNode(n,i,e.factory.createIdentifier("_"+i.text)),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach(function(r){e.isIdentifier(r.name)&&t.replaceNode(n,r.name,e.factory.createIdentifier("_"+r.name.text))})))}function g(t,r,n,i,a,o){!function(t,r,n,i,a,o){var s=t.parent;e.isParameter(s)?function(t,r,n,i,a,o){void 0===o&&(o=!1),function(t,r,n){var i=t.parent;switch(i.kind){case 164:var a=r.getSymbolAtLocation(i.name);if(e.isMemberSymbolInBaseType(a,r))return!1;case 165:case 248:return!0;case 205:case 206:var o=i.parameters,s=o.indexOf(t);return e.Debug.assert(-1!==s,"The parameter should already be in the list"),n?o.slice(s+1).every(function(e){return 78===e.name.kind&&!e.symbol.isReferenced}):s===o.length-1;case 167:return!1;default:return e.Debug.failBadSyntaxKind(i)}}(n,i,o)&&(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))?n.modifiers.forEach(function(e){t.deleteModifier(r,e)}):(t.delete(r,n),function(t,r,n,i,a){e.FindAllReferences.Core.eachSignatureCall(n.parent,i,a,function(e){var i=n.parent.parameters.indexOf(n);e.arguments.length>i&&t.delete(r,e.arguments[i])})}(t,r,n,a,i)))}(r,n,s,i,a,o):r.delete(n,e.isImportClause(s)?t:e.isComputedPropertyName(s)?s.parent:s)}(r,n,t,i,a,o),e.isIdentifier(r)&&function(t,r,n,i){e.FindAllReferences.Core.eachSymbolReferenceInFile(n,i,r,function(n){e.isPropertyAccessExpression(n.parent)&&n.parent.name===n&&(n=n.parent),e.isBinaryExpression(n.parent)&&e.isExpressionStatement(n.parent.parent)&&n.parent.left===n&&t.delete(r,n.parent.parent)})}(n,t,r,i)}t.registerCodeFix({errorCodes:o,getCodeActions:function(i){var o=i.errorCode,m=i.sourceFile,h=i.program,y=h.getTypeChecker(),v=h.getSourceFiles(),b=e.getTokenAtPosition(m,i.span.start);if(e.isJSDocTemplateTag(b))return[c(e.textChanges.ChangeTracker.with(i,function(e){return e.delete(m,b)}),e.Diagnostics.Remove_template_tag)];if(29===b.kind)return[c(C=e.textChanges.ChangeTracker.with(i,function(e){return u(e,m,b)}),e.Diagnostics.Remove_type_parameters)];var x=l(b);if(x)return[c(C=e.textChanges.ChangeTracker.with(i,function(e){return e.delete(m,x)}),[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(x)])];if(e.isObjectBindingPattern(b.parent)){if(e.isParameter(b.parent.parent)){var D=b.parent.elements,S=[D.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(D,function(e){return e.getText(m)}).join(", ")];return[c(e.textChanges.ChangeTracker.with(i,function(e){return p(e,m,b.parent)}),S)]}return[c(e.textChanges.ChangeTracker.with(i,function(e){return e.delete(m,b.parent.parent)}),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(_(m,b))return[c(e.textChanges.ChangeTracker.with(i,function(e){return d(e,m,b.parent)}),e.Diagnostics.Remove_variable_statement)];var E=[];if(135===b.kind){var C=e.textChanges.ChangeTracker.with(i,function(e){return s(e,m,b)}),T=e.cast(b.parent,e.isInferTypeNode).typeParameter.name.text;E.push(t.createCodeFixAction(r,C,[e.Diagnostics.Replace_infer_0_with_unknown,T],a,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var k=e.textChanges.ChangeTracker.with(i,function(e){return g(m,b,e,y,v,!1)});k.length&&(T=e.isComputedPropertyName(b.parent)?b.parent:b,E.push(c(k,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,T.getText(m)])))}var w=e.textChanges.ChangeTracker.with(i,function(e){return f(e,o,m,b)});return w.length&&E.push(t.createCodeFixAction(r,w,[e.Diagnostics.Prefix_0_with_an_underscore,b.getText(m)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),E},fixIds:[n,i,a],getAllCodeActions:function(r){var c=r.sourceFile,m=r.program,h=m.getTypeChecker(),y=m.getSourceFiles();return t.codeFixAll(r,o,function(t,o){var m=e.getTokenAtPosition(c,o.start);switch(r.fixId){case n:f(t,o.code,c,m);break;case i:if(135===m.kind)break;var v=l(m);v?t.delete(c,v):e.isJSDocTemplateTag(m)?t.delete(c,m):29===m.kind?u(t,c,m):e.isObjectBindingPattern(m.parent)?e.isParameter(m.parent.parent)?p(t,c,m.parent):t.delete(c,m.parent.parent):_(c,m)?d(t,c,m.parent):g(c,m,t,h,y,!0);break;case a:135===m.kind&&s(t,c,m);break;default:e.Debug.fail(JSON.stringify(r.fixId))}})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n),s=e.findAncestor(o,e.isStatement);if(s.getStart(r)!==o.getStart(r)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:n,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var u=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(u.kind){case 231:if(u.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.factory.createBlock(e.emptyArray))}case 233:case 234:return void t.delete(r,u)}if(e.isBlock(s.parent)){var l=n+i,_=e.Debug.checkDefined(function(e,t){for(var r,n=0,i=e;nM.length?B(E,g.getSignatureFromDeclaration(f[f.length-1]),b,y,o(E)):(e.Debug.assert(f.length===M.length,"Declarations and signatures should match count"),_(function(t,r,n,i,s){for(var c=t[0],u=t[0].minArgumentCount,l=!1,_=0,d=t;_=c.parameters.length&&(!e.signatureHasRestParameter(p)||e.signatureHasRestParameter(c))&&(c=p)}var f=c.parameters.length-(e.signatureHasRestParameter(c)?1:0),g=c.parameters.map(function(e){return e.name}),m=a(f,g,void 0,u,!1);if(l){var h=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(128)),y=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),g[f]||"rest",f>=u?e.factory.createToken(57):void 0,h,void 0);m.push(y)}return function(t,r,n,i,a,s,c){return e.factory.createMethodDeclaration(void 0,t,void 0,r,n?e.factory.createToken(57):void 0,void 0,a,void 0,o(c))}(i,r,n,0,m,0,s)}(M,y,D,b,E))))}}function B(t,i,a,o,c){var p=function(t,n,i,a,o,s,c,u,_){var p=t.program,f=p.getTypeChecker(),g=e.getEmitScriptTarget(p.getCompilerOptions()),m=f.signatureToSignatureDeclaration(i,164,a,1073742081|(0===n?268435456:0),r(t));if(m){var h=m.typeParameters,y=m.parameters,v=m.type;if(_){if(h){var b=e.sameMap(h,function(t){var r,n=t.constraint,i=t.default;return n&&(r=l(n,g))&&(n=r.typeNode,d(_,r.symbols)),i&&(r=l(i,g))&&(i=r.typeNode,d(_,r.symbols)),e.factory.updateTypeParameterDeclaration(t,t.name,n,i)});h!==b&&(h=e.setTextRange(e.factory.createNodeArray(b,h.hasTrailingComma),h))}var x=e.sameMap(y,function(t){var r=l(t.type,g),n=t.type;return r&&(n=r.typeNode,d(_,r.symbols)),e.factory.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,n,t.initializer)});if(y!==x&&(y=e.setTextRange(e.factory.createNodeArray(x,y.hasTrailingComma),y)),v){var D=l(v,g);D&&(v=D.typeNode,d(_,D.symbols))}}return e.factory.updateMethodDeclaration(m,void 0,o,m.asteriskToken,s,c?e.factory.createToken(57):void 0,h,y,v,u)}}(s,t,i,n,a,o,D,c,u);p&&_(p)}}function i(t,r,n,i,a,o,s){var c=t.typeToTypeNode(n,i,o,s);if(c&&e.isImportTypeNode(c)){var u=l(c,a);if(u)return d(r,u.symbols),u.typeNode}return c}function a(t,r,n,i,a){for(var o=[],s=0;s=i?e.factory.createToken(57):void 0,a?void 0:n&&n[s]||e.factory.createKeywordTypeNode(128),void 0);o.push(c)}return o}function o(t){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral("Method not implemented.",0===t)]))],!0)}function s(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(i){var a=u(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,l=n;s0)return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,r,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return i(e,t.file,t)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r="fixAddModuleReferTypeMissingTypeof",n=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(99===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(192===n.parent.kind,"Token parent should be an ImportType"),n.parent}function a(t,r,n){var i=e.factory.updateImportTypeNode(n,n.argument,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start),c=e.textChanges.ChangeTracker.with(n,function(e){return a(e,o,s)});return[t.createCodeFixAction(r,c,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return a(t,e.sourceFile,i(r.file,r.start))})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r="wrapJsxInFragment",n=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(t,r){var n=e.getTokenAtPosition(t,r).parent.parent;if((e.isBinaryExpression(n)||e.isBinaryExpression(n=n.parent))&&e.nodeIsMissing(n.operatorToken))return n}function a(t,r,n){var i=function(t){for(var r=[],n=t;;){if(e.isBinaryExpression(n)&&e.nodeIsMissing(n.operatorToken)&&27===n.operatorToken.kind){if(r.push(n.left),e.isJsxChild(n.right))return r.push(n.right),r;if(e.isBinaryExpression(n.right)){n=n.right;continue}return}return}}(n);i&&t.replaceNode(r,n,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.program.getCompilerOptions().jsx;if(2===o||3===o){var s=n.sourceFile,c=i(s,n.span.start);if(c){var u=e.textChanges.ChangeTracker.with(n,function(e){return a(e,s,c)});return[t.createCodeFixAction(r,u,e.Diagnostics.Wrap_in_JSX_fragment,r,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){var n=i(e.sourceFile,r.start);n&&a(t,e.sourceFile,n)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r="fixConvertToMappedObjectType",n=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code];function a(t,r){var n=e.getTokenAtPosition(t,r),i=e.cast(n.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(i.parent))return{indexSignature:i,container:e.isInterfaceDeclaration(i.parent)?i.parent:e.cast(i.parent.parent,e.isTypeAliasDeclaration)}}function o(t,r,n){var a,o=n.indexSignature,s=n.container,c=(e.isInterfaceDeclaration(s)?s.members:s.type.members).filter(function(t){return!e.isIndexSignatureDeclaration(t)}),u=e.first(o.parameters),l=e.factory.createTypeParameterDeclaration(e.cast(u.name,e.isIdentifier),u.type),_=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(o)?e.factory.createModifier(141):void 0,l,o.questionToken,o.type),d=e.factory.createIntersectionTypeNode(i(e.getAllSuperTypeNodes(s),[_],c.length?[e.factory.createTypeLiteralNode(c)]:e.emptyArray));t.replaceNode(r,s,e.factory.createTypeAliasDeclaration((a=s).decorators,a.modifiers,a.name,a.typeParameters,d))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,s=a(i,n.span.start);if(s){var c=e.textChanges.ChangeTracker.with(n,function(e){return o(e,i,s)}),u=e.idText(s.container.name);return[t.createCodeFixAction(r,c,[e.Diagnostics.Convert_0_to_mapped_object_type,u],r,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){var r=a(t.file,t.start);r&&o(e,t.file,r)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){var t,r;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions:function(n){var i=e.findAncestor(e.getTokenAtPosition(n.sourceFile,n.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(n,function(e){e.deleteRange(n.sourceFile,{pos:i.expression.end,end:i.end})});return[t.createCodeFixActionWithoutFixAll(r,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[r="removeAccidentalCallParentheses"]})}(l||(l={})),function(e){!function(t){var r="removeUnnecessaryAwait",n=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),function(e){return 130===e.kind}),a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(a){var o=a;if(e.isParenthesizedExpression(a.parent)){var s=e.getLeftmostExpression(a.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(a.parent.pos,r);c&&102!==c.kind&&(o=a.parent)}}t.replaceNode(r,o,a.expression)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span)});if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unnecessary_await,r,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return i(e,t.file,t)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var r=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],n="splitTypeOnlyImport";function i(t,r){return e.findAncestor(e.getTokenAtPosition(t,r.start),e.isImportDeclaration)}function a(t,r,n){if(r){var i=e.Debug.checkDefined(r.importClause);t.replaceNode(n.sourceFile,r,e.factory.updateImportDeclaration(r,r.decorators,r.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),r.moduleSpecifier)),t.insertNodeAfter(n.sourceFile,r,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),r.moduleSpecifier))}}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,function(e){return a(e,i(r.sourceFile,r.span),r)});if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Split_into_two_separate_import_declarations,n,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,r){a(t,i(e.sourceFile,r),e)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){var t,r;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code],getCodeActions:function(n){var i=n.sourceFile,a=function(t,r,n){var i=e.getTokenAtPosition(t,r),a=n.getTypeChecker().getSymbolAtLocation(i);if(a)return a.valueDeclaration.parent.parent}(i,n.span.start,n.program),o=e.textChanges.ChangeTracker.with(n,function(e){return function(e,t,r){if(r){var n=r.getStart();e.replaceRangeWithText(t,{pos:n,end:n+5},"let")}}(e,i,a)});return[t.createCodeFixAction(r,o,e.Diagnostics.Convert_const_to_let,r,e.Diagnostics.Convert_const_to_let)]},fixIds:[r="fixConvertConstToLet"]})}(l||(l={})),function(e){!function(t){var r="fixExpectedComma",n=[e.Diagnostics._0_expected.code];function i(t,r,n){var i=e.getTokenAtPosition(t,r);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(t,r,n){var i=n.node,a=e.factory.createToken(27);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start);if(s){var c=e.textChanges.ChangeTracker.with(n,function(e){return a(e,o,s)});return[t.createCodeFixAction(r,c,[e.Diagnostics.Change_0_to_1,";",","],r,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){var n=i(r.file,r.start);n&&a(t,e.sourceFile,n)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){function r(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),o=a.parent&&1&e.getSyntacticModifierFlags(a.parent)&&r?a.parent:e.getParentNodeInSpan(a,n,i);if(!o||!(e.isSourceFile(o.parent)||e.isModuleBlock(o.parent)&&e.isAmbientModule(o.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var s=e.isSourceFile(o.parent)?o.parent.symbol:o.parent.parent.symbol,c=e.getSyntacticModifierFlags(o),u=!!(512&c);if(!(1&c)||!u&&s.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};switch(o.kind){case 248:case 249:case 250:case 252:case 251:case 253:var l=o;return l.name&&e.isIdentifier(l.name)?{info:{exportNode:l,exportName:l.name,wasDefault:u,exportingModuleSymbol:s}}:void 0;case 229:var _=o;if(!(2&_.declarationList.flags)||1!==_.declarationList.declarations.length)return;var d=e.first(_.declarationList.declarations);if(!d.initializer)return;return e.Debug.assert(!u,"Can't have a default flag here"),e.isIdentifier(d.name)?{info:{exportNode:_,exportName:d.name,wasDefault:u,exportingModuleSymbol:s}}:void 0;default:return}}function n(t,r){return e.factory.createImportSpecifier(t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}t.registerRefactor("Convert export",{getAvailableActions:function(t){var n=r(t,"invoked"===t.triggerReason);if(!n)return e.emptyArray;if(void 0===n.error){var i=n.info.wasDefault?e.Diagnostics.Convert_default_export_to_named_export.message:e.Diagnostics.Convert_named_export_to_default_export.message;return[{name:"Convert export",description:i,actions:[{name:n.info.wasDefault?"Convert default export to named export":"Convert named export to default export",description:i}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:"Convert export",description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[{name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,notApplicableReason:n.error}]},{name:"Convert export",description:e.Diagnostics.Convert_named_export_to_default_export.message,actions:[{name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,notApplicableReason:n.error}]}]:e.emptyArray},getEditsForAction:function(t,i){return e.Debug.assert("Convert default export to named export"===i||"Convert named export to default export"===i,"Unexpected action name"),{edits:e.textChanges.ChangeTracker.with(t,function(i){var a,o,s,c,u,l;return o=t.file,s=t.program,c=e.Debug.checkDefined(null===(a=r(t))||void 0===a?void 0:a.info,"context must have info"),l=t.cancellationToken,function(t,r,n,i){var a=r.exportNode,o=r.exportName;if(r.wasDefault)n.delete(t,e.Debug.checkDefined(e.findModifier(a,87),"Should find a default keyword in modifier list"));else{var s=e.Debug.checkDefined(e.findModifier(a,92),"Should find an export keyword in modifier list");switch(a.kind){case 248:case 249:case 250:n.insertNodeAfter(t,s,e.factory.createToken(87));break;case 229:if(!e.FindAllReferences.Core.isSymbolReferencedInFile(o,i,t)){n.replaceNode(t,a,e.factory.createExportDefault(e.Debug.checkDefined(e.first(a.declarationList.declarations).initializer,"Initializer was previously known to be present")));break}case 252:case 251:case 253:n.deleteModifier(t,s),n.insertNodeAfter(t,a,e.factory.createExportDefault(e.factory.createIdentifier(o.text)));break;default:e.Debug.assertNever(a,"Unexpected exportNode kind "+a.kind)}}}(o,c,u=i,s.getTypeChecker()),void function(t,r,i,a){var o=r.wasDefault,s=r.exportName,c=r.exportingModuleSymbol,u=t.getTypeChecker(),l=e.Debug.checkDefined(u.getSymbolAtLocation(s),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,a,l,c,s.text,o,function(t){var r=t.getSourceFile();o?function(t,r,i,a){var o=r.parent;switch(o.kind){case 198:i.replaceNode(t,r,e.factory.createIdentifier(a));break;case 262:case 267:i.replaceNode(t,c=o,n(a,c.name.text));break;case 259:var s=o;e.Debug.assert(s.name===r,"Import clause name should match provided ref");var c=n(a,r.text),u=s.namedBindings;if(u)if(260===u.kind){i.deleteRange(t,{pos:r.getStart(t),end:u.getStart(t)});var l=e.isStringLiteral(s.parent.moduleSpecifier)?e.quotePreferenceFromString(s.parent.moduleSpecifier,t):1,_=e.makeImport(void 0,[n(a,r.text)],s.parent.moduleSpecifier,l);i.insertNodeAfter(t,s.parent,_)}else i.delete(t,r),i.insertNodeAtEndOfList(t,u.elements,c);else i.replaceNode(t,r,e.factory.createNamedImports([c]));break;default:e.Debug.failBadSyntaxKind(o)}}(r,t,i,s.text):function(t,r,n){var i,a=r.parent;switch(a.kind){case 198:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 262:var o=e.factory.createIdentifier(a.name.text);1===a.parent.elements.length?n.replaceNode(t,a.parent,o):(n.delete(t,a),n.insertNodeBefore(t,a.parent,o));break;case 267:n.replaceNode(t,a,e.factory.createExportSpecifier("default"===(i=a.name.text)?void 0:e.factory.createIdentifier("default"),e.factory.createIdentifier(i)));break;default:e.Debug.assertNever(a,"Unexpected parent kind "+a.kind)}}(r,t,i)})}(s,c,u,l)}),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(l||(l={})),function(e){!function(t){function r(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),o=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,i);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};if(!(o.getEnd()=d.pos?p.getEnd():d.getEnd()),g=_?function(e){for(;e.parent;){if(o(e)&&!o(e.parent))return e;e=e.parent}}(d):function(e,t){for(;e.parent;){if(o(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(d,f),m=g&&o(g)?function(t){if(a(t))return t;if(e.isVariableStatement(t)){var r=e.getSingleVariableOfVariableStatement(t),n=null==r?void 0:r.initializer;return n&&a(n)?n:void 0}return t.expression&&a(t.expression)?t.expression:void 0}(g):void 0;if(!m)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var h=i.getTypeChecker();return e.isConditionalExpression(m)?function(t,r){var n=t.condition,i=l(t.whenTrue);if(!i||r.isNullableType(r.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(n)||e.isIdentifier(n))&&u(n,i.expression))return{info:{finalExpression:i,occurrences:[n],expression:t}};if(e.isBinaryExpression(n)){var a=c(i.expression,n);return a?{info:{finalExpression:i,occurrences:a,expression:t}}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(m,h):function(t){if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var r=l(t.right);if(!r)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var n=c(r.expression,t.left);return n?{info:{finalExpression:r,occurrences:n,expression:t}}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(m)}}function c(t,r){for(var n=[];e.isBinaryExpression(r)&&55===r.operatorToken.kind;){var i=u(e.skipParentheses(t),e.skipParentheses(r.right));if(!i)break;n.push(i),t=i,r=r.left}var a=u(t,r);return a&&n.push(a),n.length>0?n:void 0}function u(t,r){return(e.isIdentifier(r)||e.isPropertyAccessExpression(r))&&function(t,r){for(;e.isCallExpression(t)||e.isPropertyAccessExpression(t);){var n=e.isPropertyAccessExpression(r)?r.name.getText():r.getText();if(e.isPropertyAccessExpression(t)&&t.name.getText()===n)break;t=t.expression}for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r);){if(t.name.getText()!==r.name.getText())return!1;t=t.expression,r=r.expression}return e.isIdentifier(t)&&e.isIdentifier(r)&&t.getText()===r.getText()}(t,r)?r:void 0}function l(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?l(t.left):!e.isPropertyAccessExpression(t)&&!e.isCallExpression(t)||e.isOptionalChain(t)?void 0:t}function _(t,r,n){if(e.isPropertyAccessExpression(r)||e.isCallExpression(r)){var i=_(t,r.expression,n),a=n.length>0?n[n.length-1]:void 0,o=(null==a?void 0:a.getText())===r.expression.getText();if(o&&n.pop(),e.isCallExpression(r))return e.factory.createCallChain(i,o?e.factory.createToken(28):r.questionDotToken,r.typeArguments,r.arguments);if(e.isPropertyAccessExpression(r))return e.factory.createPropertyAccessChain(i,o?e.factory.createToken(28):r.questionDotToken,r.name)}return r}t.registerRefactor(n,{getAvailableActions:function(t){var r=s(t,"invoked"===t.triggerReason);return r?r.error?t.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[{name:n,description:i,notApplicableReason:r.error}]}]:e.emptyArray:[{name:n,description:i,actions:[{name:n,description:i}]}]:e.emptyArray},getEditsForAction:function(t,r){var n=s(t);return n&&n.info?{edits:e.textChanges.ChangeTracker.with(t,function(r){return function(t,r,n,i,a){var o=i.finalExpression,s=i.occurrences,c=i.expression,u=s[s.length-1],l=_(r,o,s);l&&(e.isPropertyAccessExpression(l)||e.isCallExpression(l))&&(e.isBinaryExpression(c)?n.replaceNodeRange(t,u,o,l):e.isConditionalExpression(c)&&n.replaceNode(t,c,e.factory.createBinaryExpression(l,e.factory.createToken(60),c.whenFalse)))}(t.file,t.program.getTypeChecker(),r,e.Debug.checkDefined(n.info,"context must have info"))}),renameFilename:void 0,renameLocation:void 0}:void 0}})}((t=e.refactor||(e.refactor={})).convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))}(l||(l={})),function(e){var t;!function(r){var n="Convert overload list to single signature",i=e.Diagnostics.Convert_overload_list_to_single_signature.message;function a(e){switch(e.kind){case 163:case 164:case 168:case 165:case 169:case 248:return!0}return!1}function o(t,r,n){var i=e.getTokenAtPosition(t,r),o=e.findAncestor(i,a);if(o){var s=n.getTypeChecker(),c=o.symbol;if(c){var u=c.declarations;if(!(e.length(u)<=1)&&e.every(u,function(r){return e.getSourceFileOfNode(r)===t})&&a(u[0])){var l=u[0].kind;if(e.every(u,function(e){return e.kind===l})){var _=u;if(!e.some(_,function(t){return!!t.typeParameters||e.some(t.parameters,function(t){return!!t.decorators||!!t.modifiers||!e.isIdentifier(t.name)})})){var d=e.mapDefined(_,function(e){return s.getSignatureFromDeclaration(e)});if(e.length(d)===e.length(u)){var p=s.getReturnTypeOfSignature(d[0]);if(e.every(d,function(e){return s.getReturnTypeOfSignature(e)===p}))return _}}}}}}}t.registerRefactor(n,{getEditsForAction:function(t){var r=t.file,n=t.program,i=o(r,t.startPosition,n);if(i){var a=n.getTypeChecker(),s=i[i.length-1],c=s;switch(s.kind){case 163:c=e.factory.updateMethodSignature(s,s.modifiers,s.name,s.questionToken,s.typeParameters,u(i),s.type);break;case 164:c=e.factory.updateMethodDeclaration(s,s.decorators,s.modifiers,s.asteriskToken,s.name,s.questionToken,s.typeParameters,u(i),s.type,s.body);break;case 168:c=e.factory.updateCallSignature(s,s.typeParameters,u(i),s.type);break;case 165:c=e.factory.updateConstructorDeclaration(s,s.decorators,s.modifiers,u(i),s.body);break;case 169:c=e.factory.updateConstructSignature(s,s.typeParameters,u(i),s.type);break;case 248:c=e.factory.updateFunctionDeclaration(s,s.decorators,s.modifiers,s.asteriskToken,s.name,s.typeParameters,u(i),s.type,s.body);break;default:return e.Debug.failBadSyntaxKind(s,"Unhandled signature kind in overload list conversion refactoring")}if(c!==s)return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,function(e){e.replaceNodeRange(r,i[0],i[i.length-1],c)})}}function u(t){var r=t[t.length-1];return e.isFunctionLikeDeclaration(r)&&r.body&&(t=t.slice(0,t.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,l)))])}function l(t){var r=e.map(t.parameters,_);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,function(t){return!!e.length(e.getSyntheticLeadingComments(t))})?0:1)}function _(t){e.Debug.assert(e.isIdentifier(t.name));var r=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(128)),t),n=t.symbol&&t.symbol.getDocumentationComment(a);if(n){var i=e.displayPartsToString(n);i.length&&e.setSyntheticLeadingComments(r,[{text:"*\n"+i.split("\n").map(function(e){return" * "+e}).join("\n")+"\n ",kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return r}},getAvailableActions:function(t){return o(t.file,t.startPosition,t.program)?[{name:n,description:i,actions:[{name:n,description:i}]}]:e.emptyArray}})}((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(l||(l={})),function(e){var t;!function(r){var n,i,a,o;function s(t){var r=u(t.file,e.getRefactorContextSpan(t),"invoked"===t.triggerReason),n=r.targetRange;if(void 0===n)return r.errors&&0!==r.errors.length&&t.preferences.provideRefactorNotApplicableReason?[{name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[{description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),name:"function_extract_error",notApplicableReason:D(r.errors)}]},{name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[{description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),name:"constant_extract_error",notApplicableReason:D(r.errors)}]}]:e.emptyArray;var i=function(t,r){var n=d(t,r),i=n.readsAndWrites,a=i.functionErrorsPerScope,o=i.constantErrorsPerScope;return n.scopes.map(function(t,r){var n,i,s=function(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}(t),c=function(t){return e.isClassLike(t)?"readonly field":"constant"}(t),u=e.isFunctionLikeDeclaration(t)?function(t){switch(t.kind){case 165:return"constructor";case 205:case 248:return t.name?"function '"+t.name.text+"'":e.ANONYMOUS;case 206:return"arrow function";case 164:return"method '"+t.name.getText()+"'";case 166:return"'get "+t.name.getText()+"'";case 167:return"'set "+t.name.getText()+"'";default:throw e.Debug.assertNever(t,"Unexpected scope kind "+t.kind)}}(t):e.isClassLike(t)?function(e){return 249===e.kind?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}(t):function(e){return 254===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}(t);return 1===u?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[s,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===u?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[s,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[s,u]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,u])),0!==r||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:n,errors:a[r]},constantExtraction:{description:i,errors:o[r]}}})}(n,t);if(void 0===i)return e.emptyArray;for(var a,o,s=[],c=new e.Map,l=[],_=new e.Map,p=0,f=0,g=i;f0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(t)]);if(s||i.size){var l=e.visitNodes(u,function t(a){if(!c&&e.isReturnStatement(a)&&s){var u=g(r,n);return a.expression&&(o||(o="__return"),u.unshift(e.factory.createPropertyAssignment(o,e.visitNode(a.expression,t)))),e.factory.createReturnStatement(1===u.length?u[0].name:e.factory.createObjectLiteralExpression(u))}var l=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var _=i.get(e.getNodeId(a).toString()),d=_?e.getSynthesizedDeepClone(_):e.visitEachChild(a,t,e.nullTransformationContext);return c=l,d}).slice();if(s&&!a&&e.isStatement(t)){var _=g(r,n);l.push(e.factory.createReturnStatement(1===_.length?_[0].name:e.factory.createObjectLiteralExpression(_)))}return{body:e.factory.createBlock(l,!0),returnValueProperty:o}}return{body:e.factory.createBlock(u,!0),returnValueProperty:void 0}}(t,a,u,d,!!(o.facts&i.HasReturn)),F=O.body,I=O.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(F),e.isClassLike(r)){var M=S?[]:[e.factory.createModifier(120)];o.facts&i.InStaticRegion&&M.push(e.factory.createModifier(123)),o.facts&i.IsAsyncFunction&&M.push(e.factory.createModifier(129)),P=e.factory.createMethodDeclaration(void 0,M.length?M:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,E,void 0,w,C,c,F)}else P=e.factory.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.factory.createToken(129)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,E,w,C,c,F);var L=e.textChanges.ChangeTracker.fromContext(s),R=function(t,r){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray}(r),function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)})}((m(o.range)?e.last(o.range):o.range).end,r);R?L.insertNodeBefore(s.file,R,P,!0):L.insertNodeAtEndOfScope(s.file,r,P),b.writeFixes(L);var B=[],j=function(t,r,n){var a=e.factory.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,a)}return a}(r,o,D),U=e.factory.createCallExpression(j,A,T);if(o.facts&i.IsGenerator&&(U=e.factory.createYieldExpression(e.factory.createToken(41),U)),o.facts&i.IsAsyncFunction&&(U=e.factory.createAwaitExpression(U)),v(t)&&(U=e.factory.createJsxExpression(void 0,U)),a.length&&!u)if(e.Debug.assert(!I,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length)B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone((X=a[0]).name),void 0,e.getSynthesizedDeepClone(X.type),U)],X.parent.flags)));else{for(var z=[],J=[],V=a[0].parent.flags,W=!1,q=0,K=a;q0,"Found no members");for(var a=!0,o=0,s=i;ot)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n}(t.pos,r);m.insertNodeBefore(o.file,D,b,!0),m.replaceNode(o.file,t,x)}else{var S=e.factory.createVariableDeclaration(d,void 0,f,g),E=function(t,r){for(var n;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}}(t,r);if(E)m.insertNodeBefore(o.file,E,S),x=e.factory.createIdentifier(d),m.replaceNode(o.file,t,x);else if(230===t.parent.kind&&r===e.findAncestor(t,_)){var C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([S],2));m.replaceNode(o.file,t.parent,C)}else C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([S],2)),0===(D=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)_(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(y(i)){for(var a=void 0,o=0,s=i.statements;ot.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}(t,r)).pos?m.insertNodeAtTopOfFile(o.file,C,!1):m.insertNodeBefore(o.file,D,C,!1),230===t.parent.kind?m.delete(o.file,t.parent):(x=e.factory.createIdentifier(d),v(t)&&(x=e.factory.createJsxExpression(void 0,x)),m.replaceNode(o.file,t,x))}var T=m.getChanges(),k=t.getSourceFile().fileName;return{renameFilename:k,renameLocation:e.getRenameLocation(T,k,d,!0),edits:T}}(e.isExpression(c)?c:c.statements[0].expression,o[n],u[n],t.facts,r)}(n,t,o);e.Debug.fail("Unrecognized action name")}function u(t,r,a){void 0===a&&(a=!0);var o=r.length;if(0===o&&!a)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractEmpty)]};var s=0===o&&a,c=e.getTokenAtPosition(t,r.start),u=s?function(t){return e.findAncestor(t,function(t){return t.parent&&h(t)&&!e.isBinaryExpression(t.parent)})}(c):e.getParentNodeInSpan(c,t,r),_=e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),d=s?u:e.getParentNodeInSpan(_,t,r),p=[],f=i.None;if(!u||!d)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(u.parent!==d.parent)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(u!==d){if(!y(u.parent))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};for(var g=[],m=0,v=u.parent.statements;m=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else f|=i.UsesThis;break;case 206:e.forEachChild(a,function t(r){if(e.isThis(r))f|=i.UsesThis;else{if(e.isClassLike(r)||e.isFunctionLike(r)&&!e.isArrowFunction(r))return!1;e.forEachChild(r,t)}});case 249:case 248:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope));case 218:case 205:case 164:case 165:case 166:case 167:return!1}var l=u;switch(a.kind){case 231:case 244:u=0;break;case 227:a.parent&&244===a.parent.kind&&a.parent.finallyBlock===a&&(u=4);break;case 282:case 281:u|=1;break;default:e.isIterationStatement(a,!1)&&(u|=3)}switch(a.kind){case 186:case 107:f|=i.UsesThis;break;case 242:(c||(c=[])).push((_=a.label).escapedText),e.forEachChild(a,t),c.pop();break;case 238:case 237:var _;(_=a.label)?e.contains(c,_.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(238===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 210:f|=i.IsAsyncFunction;break;case 216:f|=i.IsGenerator;break;case 239:4&u?f|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}u=l}(t),o}}function l(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:void 0}function _(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function d(t,r){var a=r.file,o=function(t){var r=m(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(159===(r=r.parent).kind&&(r=e.findAncestor(r,function(t){return e.isFunctionLikeDeclaration(t)}).parent),_(r)&&(o.push(r),294===r.kind))return o}(t);return{scopes:o,readsAndWrites:function(t,r,a,o,s,c){var u,l,_=new e.Map,d=[],p=[],f=[],g=[],h=[],y=new e.Map,v=[],b=m(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===b){var x=t.range,D=e.first(x).getStart(),S=e.last(x).end;l=e.createFileDiagnostic(o,D,S-D,n.expressionExpected)}else 147456&s.getTypeAtLocation(b).flags&&(l=e.createDiagnosticForNode(b,n.uselessConstantType));for(var E=0,C=r;E=u)return m;if(w.set(m,u),h){for(var y=0,v=d;y0){for(var O=new e.Map,F=0,I=N;void 0!==I&&F=0)){var i=e.isIdentifier(n)?J(n):s.getSymbolAtLocation(n);if(i){var a=e.find(h,function(e){return e.symbol===i});if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();y.has(o)||(v.push(a),y.set(o,!0))}else u=u||a}e.forEachChild(n,r)}})}for(var j=function(r){var i=d[r];if(r>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=m(t.range)?t.range[0]:t.range;g[r].push(e.createDiagnosticForNode(a,n.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(d[r].usages.forEach(function(t){2===t.usage&&(s=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))}),e.Debug.assert(m(t.range)||0===v.length,"No variable declarations expected if something was extracted"),s&&!m(t.range)){var c=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[r].push(c),g[r].push(c)}else o&&r>0?(c=e.createDiagnosticForNode(o,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor),f[r].push(c),g[r].push(c)):u&&(c=e.createDiagnosticForNode(u,n.cannotExtractExportedEntity),f[r].push(c),g[r].push(c))},U=0;Un.pos});if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return{toMove:[i[a]],afterLast:i[a+1]};if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,function(e){return e.end>n.end},a);if(-1===s||!(0===s||i[s].getStart(r)=2&&e.every(t,function(t){return function(t,r){if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&!t.decorators&&e.isIdentifier(t.name)}(t,r)})}(t.parameters,r))return!1;switch(t.kind){case 248:return d(t)&&_(t,r);case 164:return _(t,r);case 165:return e.isClassDeclaration(t.parent)?d(t.parent)&&_(t,r):p(t.parent.parent)&&_(t,r);case 205:case 206:return p(t.parent)}return!1}(a,n)&&e.rangeContainsRange(a,i))||a.body&&e.rangeContainsRange(a.body,i)?void 0:a}function _(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function d(t){return!!t.name||!!e.findModifier(t,87)}function p(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function f(t){return t.length>0&&e.isThis(t[0].name)}function g(t){return f(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function m(t,r){var n=g(t.parameters),i=e.isRestParameter(e.last(n)),a=i?r.slice(0,n.length-1):r,o=e.map(a,function(t,r){var i,a,o=(i=h(n[r]),e.isIdentifier(a=t)&&e.getTextOfIdentifierOrLiteral(a)===i?e.factory.createShorthandPropertyAssignment(i):e.factory.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(o.name),e.isPropertyAssignment(o)&&e.suppressLeadingAndTrailingTrivia(o.initializer),e.copyComments(t,o),o});if(i&&r.length>=n.length){var s=r.slice(n.length-1),c=e.factory.createPropertyAssignment(h(e.last(n)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function h(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(n,{getEditsForAction:function(t,r){e.Debug.assert(r===n,"Unexpected action name");var _=t.file,d=t.program,p=t.cancellationToken,y=t.host,v=l(_,t.startPosition,d.getTypeChecker());if(v&&p){var b=function(t,r,n){var l=function(t){switch(t.kind){case 248:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,87),"Nameless function declaration should be a default export")];case 164:return[t.name];case 165:var r=e.Debug.checkDefined(e.findChildOfKind(t,132,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 218===t.parent.kind?[t.parent.parent.name,r]:[r];case 206:return[t.parent.name];case 205:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind "+t.kind)}}(t),_=e.isConstructorDeclaration(t)?function(t){switch(t.parent.kind){case 249:var r=t.parent;return r.name?[r.name]:[e.Debug.checkDefined(e.findModifier(r,87),"Nameless class declaration should be a default export")];case 218:var n=t.parent.parent,i=t.parent.name;return i?[i,n.name]:[n.name]}}(t):[],d=e.deduplicate(i(l,_),e.equateValues),p=r.getTypeChecker(),f=function(r){for(var n={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:n,valid:!0},d=e.map(l,g),p=e.map(_,g),f=e.isConstructorDeclaration(t),m=0,h=r;m0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}}}(n,r,i),o=l(0,n),s=o[0],c=o[1],u=o[2];if(s===n.length){var d=e.factory.createNoSubstitutionTemplateLiteral(c);return a(u,d),d}var p=[],f=e.factory.createTemplateHead(c);a(u,f);for(var g=s;g328});return n.kind<156?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<156?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function n(r,n,i,a){for(e.scanner.setTextPos(n);n=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild(function i(a){switch(a.kind){case 248:case 205:case 164:case 163:var o=a,s=n(o);if(s){var c=function(e){var r=t.get(e);return r||t.set(e,r=[]),r}(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 249:case 218:case 250:case 251:case 252:case 253:case 257:case 267:case 262:case 259:case 260:case 166:case 167:case 176:r(a),e.forEachChild(a,i);break;case 159:if(!e.hasSyntacticModifier(a,92))break;case 246:case 195:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 288:case 162:case 161:r(a);break;case 264:var _=a;_.exportClause&&(e.isNamedExports(_.exportClause)?e.forEach(_.exportClause.elements,i):i(_.exportClause.name));break;case 258:var d=a.importClause;d&&(d.name&&r(d.name),d.namedBindings&&(260===d.namedBindings.kind?r(d.namedBindings):e.forEach(d.namedBindings.elements,i)));break;case 213:0!==e.getAssignmentDeclarationKind(a)&&r(a);default:e.forEachChild(a,i)}}),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(r),h=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function y(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!v(n)){r=!1;break}if(r)return t;var i={};for(var n in t)e.hasProperty(t,n)&&(i[v(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]);return i}function v(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}e.toEditorSettings=y,e.displayPartsToString=function(t){return t?e.map(t,function(e){return e.text}).join(""):""},e.getDefaultCompilerOptions=function(){return{target:1,jsx:1}},e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var b=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var n=0,i=t.getScriptFileNames();n=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=T;var k=["getSyntacticDiagnostics","getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],w=i(k,["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"]);function A(t){var r=function(t){switch(t.kind){case 10:case 14:case 8:if(157===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 78:return!e.isObjectLiteralElement(t.parent)||197!==t.parent.parent.kind&&278!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}}(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function N(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion())return(o=n.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(n.types,function(n){return e.isObjectLiteralExpression(t.parent)&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?void 0:n.getProperty(a)});return i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a))?[o]:0===s.length?e.mapDefined(n.types,function(e){return e.getProperty(a)}):s}e.createLanguageService=function(t,r,n){var o,s;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),s=void 0===n?e.LanguageServiceMode.Semantic:"boolean"==typeof n?n?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:n;var c,u,l=new x(t),_=0,d=new C(t.getCancellationToken&&t.getCancellationToken()),p=t.getCurrentDirectory();function f(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(t.getLocalizedDiagnosticMessages());var g=e.hostUsesCaseSensitiveFileNames(t),m=e.createGetCanonicalFileName(g),h=e.getSourceMapper({useCaseSensitiveFileNames:function(){return g},getCurrentDirectory:function(){return p},getProgram:S,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:f});function v(e){var t=c.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '"+e+"'.");throw r.ProgramFiles=c.getSourceFiles().map(function(e){return e.fileName}),r}return t}function D(){var n,i;if(e.Debug.assert(s!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var a=t.getProjectVersion();if(a){if(u===a&&!(null===(n=t.hasChangedAutomaticTypeDirectiveNames)||void 0===n?void 0:n.call(t)))return;u=a}}var o=t.getTypeRootsVersion?t.getTypeRootsVersion():0;_!==o&&(f("TypeRoots version has changed; provide new program"),c=void 0,_=o);var l=new b(t,m),y=l.getRootFileNames(),v=t.hasInvalidatedResolution||e.returnFalse,x=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),D=l.getProjectReferences();if(!e.isProgramUptoDate(c,y,l.compilationSettings(),function(e,r){return t.getScriptVersion(r)},T,v,x,D)){var S=l.compilationSettings(),E={getSourceFile:function(t,r,n,i){return k(t,e.toPath(t,p,m),0,0,i)},getSourceFileByPath:k,getCancellationToken:function(){return d},getCanonicalFileName:m,useCaseSensitiveFileNames:function(){return g},getNewLine:function(){return e.getNewLineCharacter(S,function(){return e.getNewLineOrDefaultFromHost(t)})},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return p},fileExists:T,readFile:function(r){var n=e.toPath(r,p,m),i=l&&l.getEntryByPath(n);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(r)},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:function(r,n,i,a,o){return e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)},onReleaseOldSourceFile:function(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.resolvedPath,n)},hasInvalidatedResolution:v,hasChangedAutomaticTypeDirectiveNames:x,trace:e.maybeBind(t,t.trace),resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect)};null===(i=t.setCompilerHost)||void 0===i||i.call(t,E);var C=r.getKeyForCompilationSettings(S);return c=e.createProgram({rootNames:y,options:S,host:E,oldProgram:c,projectReferences:D}),l=void 0,h.clearCache(),void c.getTypeChecker()}function T(r){var n=e.toPath(r,p,m),i=l&&l.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function k(t,n,i,a,o){e.Debug.assert(void 0!==l,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var s=l&&l.getOrCreateEntryByPath(t,n);if(s){if(!o){var u=c&&c.getSourceFileByPath(n);if(u)return e.Debug.assertEqual(s.scriptKind,u.scriptKind,"Registered script kind should match new script kind."),r.updateDocumentWithKey(t,n,S,C,s.scriptSnapshot,s.version,s.scriptKind)}return r.acquireDocumentWithKey(t,n,S,C,s.scriptSnapshot,s.version,s.scriptKind)}}}function S(){if(s!==e.LanguageServiceMode.Syntactic)return D(),c;e.Debug.assert(void 0===c)}function E(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some(function(t){return e.normalizePath(t)===i})),D();var a=e.mapDefined(n,function(e){return c.getSourceFile(e)}),o=v(t);return e.DocumentHighlights.getDocumentHighlights(c,d,o,r,a)}function T(t,r,n,i){D();var a=n&&2===n.use?c.getSourceFiles().filter(function(e){return!c.isSourceFileDefaultLibrary(e)}):c.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(c,d,a,t,r,n,i)}function P(r){var n=e.getScriptKind(r,t);return 3===n||4===n}var O=new e.Map(e.getEntries(((o={})[18]=19,o[20]=21,o[22]=23,o[31]=29,o)));function F(r){var n;return e.Debug.assertEqual(r.type,"install package"),t.installPackage?t.installPackage({fileName:(n=r.file,e.toPath(n,p,m)),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`")}function I(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function M(t,r,n){for(var i=l.getCurrentSourceFile(t),a=[],o=I(i,r),s=o.lineStarts,c=o.firstLine,u=o.lastLine,_=n||!1,d=Number.MAX_VALUE,p=new e.Map,f=new RegExp(/\S/),g=e.isInsideJsxElement(i,s[c]),m=g?"{/*":"//",h=c;h<=u;h++){var y=i.text.substring(s[h],i.getLineEndOfPosition(s[h])),v=f.exec(y);v&&(d=Math.min(d,v.index),p.set(h.toString(),v.index),y.substr(v.index,m.length)!==m&&(_=void 0===n||n))}for(h=c;h<=u;h++){var b=p.get(h.toString());void 0!==b&&(g?a.push.apply(a,L(t,{pos:s[h]+d,end:i.getLineEndOfPosition(s[h])},_,g)):_?a.push({newText:m,span:{length:0,start:s[h]+d}}):i.text.substr(s[h]+b,m.length)===m&&a.push({newText:"",span:{length:m.length,start:s[h]+b}}))}return a}function L(t,r,n,i){for(var a,o=l.getCurrentSourceFile(t),s=[],c=o.text,u=!1,_=n||!1,d=[],p=r.pos,f=void 0!==i?i:e.isInsideJsxElement(o,p),g=f?"{/*":"/*",m=f?"*/}":"*/",h=f?"\\{\\/\\*":"\\/\\*",y=f?"\\*\\/\\}":"\\*\\/";p<=r.end;){var v=c.substr(p,g.length)===g?g.length:0,b=e.isInComment(o,p+v);if(b)f&&(b.pos--,b.end++),d.push(b.pos),3===b.kind&&d.push(b.end),u=!0,p=b.end+1;else{var x=c.substring(p,r.end).search("("+h+")|("+y+")");_=void 0!==n?n:_||!e.isTextWhiteSpaceLike(c,p,-1===x?r.end:p+x),p=-1===x?r.end+1:p+x+m.length}}if(_||!u){2!==(null===(a=e.isInComment(o,r.pos))||void 0===a?void 0:a.kind)&&e.insertSorted(d,r.pos,e.compareValues),e.insertSorted(d,r.end,e.compareValues);var D=d[0];c.substr(D,g.length)!==g&&s.push({newText:g,span:{length:0,start:D}});for(var S=1;S0?T-m.length:0,m.length)===m?m.length:0,s.push({newText:"",span:{length:g.length,start:T-v}})}return s}function R(t){var r=t.openingElement,n=t.parent;return!e.tagNamesAreEquivalent(r.tagName,t.closingElement.tagName)||e.isJsxElement(n)&&e.tagNamesAreEquivalent(r.tagName,n.openingElement.tagName)&&R(n)}function B(r,n,i,a,o){var s="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:s[0],endPosition:s[1],program:S(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:d,preferences:i,triggerReason:o}}O.forEach(function(e,t){return O.set(e.toString(),Number(t))});var j={dispose:function(){if(c){var n=r.getKeyForCompilationSettings(c.getCompilerOptions());e.forEach(c.getSourceFiles(),function(e){return r.releaseDocumentWithKey(e.resolvedPath,n)}),c=void 0}t=void 0},cleanupSemanticCache:function(){c=void 0},getSyntacticDiagnostics:function(e){return D(),c.getSyntacticDiagnostics(v(e),d).slice()},getSemanticDiagnostics:function(t){D();var r=v(t),n=c.getSemanticDiagnostics(r,d);if(!e.getEmitDeclarations(c.getCompilerOptions()))return n.slice();var a=c.getDeclarationDiagnostics(r,d);return i(n,a)},getSuggestionDiagnostics:function(t){return D(),e.computeSuggestionDiagnostics(v(t),c,d)},getCompilerOptionsDiagnostics:function(){return D(),i(c.getOptionsDiagnostics(d),c.getGlobalDiagnostics(d))},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(d,l.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r){return P(t)?(D(),e.getSemanticClassifications(c.getTypeChecker(),d,v(t),c.getClassifiableNames(),r)):[]},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(d,l.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r){return P(t)?(D(),e.getEncodedSemanticClassifications(c.getTypeChecker(),d,v(t),c.getClassifiableNames(),r)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(r,n,i){void 0===i&&(i=e.emptyOptions);var o=a(a({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return D(),e.Completions.getCompletionsAtPosition(t,c,f,v(r),n,o,i.triggerCharacter)},getCompletionEntryDetails:function(r,n,i,a,o,s){return void 0===s&&(s=e.emptyOptions),D(),e.Completions.getCompletionEntryDetails(c,f,v(r),n,{name:i,source:o},t,a&&e.formatting.getFormatContext(a,t),s,d)},getCompletionEntrySymbol:function(r,n,i,a,o){return void 0===o&&(o=e.emptyOptions),D(),e.Completions.getCompletionEntrySymbol(c,f,v(r),n,{name:i,source:a},t,o)},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;D();var a=v(t);return e.SignatureHelp.getSignatureHelpItems(c,a,r,i,d)},getQuickInfoAtPosition:function(t,r){D();var n=v(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=c.getTypeChecker(),o=function(t){return e.isNewExpression(t.parent)&&t.pos===t.parent.pos?t.parent.expression:t}(i),s=function(t,r){var n=A(t);if(n){var i=r.getContextualType(n.parent),a=i&&N(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)}(o,a);if(!s||a.isUnknownSymbol(s)){var u=function(t,r,n){switch(r.kind){case 78:return!e.isLabelName(r)&&!e.isTagName(r);case 198:case 156:return!e.isInComment(t,n);case 107:case 186:case 105:return!0;default:return!1}}(n,o,r)?a.getTypeAtLocation(o):void 0;return u&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,n),displayParts:a.runWithCancellationToken(d,function(t){return e.typeToDisplayParts(t,u,e.getContainerNode(o))}),documentation:u.symbol?u.symbol.getDocumentationComment(a):void 0,tags:u.symbol?u.symbol.getJsDocTags():void 0}}var l=a.runWithCancellationToken(d,function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,n,e.getContainerNode(o),o)}),_=l.displayParts,p=l.documentation,f=l.tags;return{kind:l.symbolKind,kindModifiers:e.SymbolDisplay.getSymbolModifiers(s),textSpan:e.createTextSpanFromNode(o,n),displayParts:_,documentation:p,tags:f}}},getDefinitionAtPosition:function(t,r){return D(),e.GoToDefinition.getDefinitionAtPosition(c,v(t),r)},getDefinitionAndBoundSpan:function(t,r){return D(),e.GoToDefinition.getDefinitionAndBoundSpan(c,v(t),r)},getImplementationAtPosition:function(t,r){return D(),e.FindAllReferences.getImplementationsAtPosition(c,d,c.getSourceFiles(),v(t),r)},getTypeDefinitionAtPosition:function(t,r){return D(),e.GoToDefinition.getTypeDefinitionAtPosition(c.getTypeChecker(),v(t),r)},getReferencesAtPosition:function(t,r){return D(),T(e.getTouchingPropertyName(v(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return D(),e.FindAllReferences.findReferencedSymbols(c,d,c.getSourceFiles(),v(t),r)},getOccurrencesAtPosition:function(t,r){return e.flatMap(E(t,r,[t]),function(e){return e.highlightSpans.map(function(t){return a(a({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})})})},getDocumentHighlights:E,getNameOrDottedNameSpan:function(t,r,n){var i=l.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 198:case 156:case 10:case 94:case 109:case 103:case 105:case 107:case 186:case 78:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(253!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(t,r){var n=l.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),D();var a=n?[v(n)]:c.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,c.getTypeChecker(),d,t,r,i)},getRenameInfo:function(t,r,n){return D(),e.Rename.getRenameInfo(c,v(t),r,n)},getSmartSelectionRange:function(t,r){return e.SmartSelectionRange.getSmartSelectionRange(r,l.getCurrentSourceFile(t))},findRenameLocations:function(t,r,n,i,o){D();var s=v(t),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(s,r));if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var u=c.parent.parent;return[u.openingElement,u.closingElement].map(function(t){var r=e.createTextSpanFromNode(t.tagName,s);return a({fileName:s.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,s,t.parent))})}return T(c,r,{findInStrings:n,findInComments:i,providePrefixAndSuffixTextForRename:o,use:2},function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,o||!1)})},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(l.getCurrentSourceFile(t),d)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(l.getCurrentSourceFile(t),d)},getOutliningSpans:function(t){var r=l.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,d)},getTodoComments:function(t,r){D();var n=v(t);d.throwIfCancellationRequested();var i,a,o,s=n.text,c=[];if(r.length>0&&!e.stringContains(n.fileName,"/node_modules/"))for(var u=(void 0,void 0,a="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",o="(?:"+e.map(r,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")",new RegExp(a+"("+o+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")),l=void 0;l=u.exec(s);){d.throwIfCancellationRequested(),e.Debug.assert(l.length===r.length+3);var _=l.index+l[1].length;if(e.isInComment(n,_)){for(var p=void 0,f=0;f=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||c.push({descriptor:p,message:l[2],position:_})}}return c},getBraceMatchingAtPosition:function(t,r){var n=l.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?O.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,n);return o?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(o,n)].sort(function(e,t){return e.start-t.start}):e.emptyArray},getIndentationAtPosition:function(t,r,n){var i=e.timestamp(),a=y(n),o=l.getCurrentSourceFile(t);f("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return f("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(r,n,i,a){var o=l.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,o,e.formatting.getFormatContext(y(a),t))},getFormattingEditsForDocument:function(r,n){return e.formatting.formatDocument(l.getCurrentSourceFile(r),e.formatting.getFormatContext(y(n),t))},getFormattingEditsAfterKeystroke:function(r,n,i,a){var o=l.getCurrentSourceFile(r),s=e.formatting.getFormatContext(y(a),t);if(!e.isInComment(o,n))switch(i){case"{":return e.formatting.formatOnOpeningCurly(n,o,s);case"}":return e.formatting.formatOnClosingCurly(n,o,s);case";":return e.formatting.formatOnSemicolon(n,o,s);case"\n":return e.formatting.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:function(r,n){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),l.getCurrentSourceFile(r),n)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=l.getCurrentSourceFile(t);if(e.isInString(i,r))return!1;if(e.isInsideJsxElementOrAttribute(i,r))return 123===n;if(e.isInTemplateString(i,r))return!1;switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return!0},getJsxClosingTagAtPosition:function(t,r){var n=l.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)?i.parent:void 0;return a&&R(a)?{newText:""}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=l.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,a,o,s){void 0===s&&(s=e.emptyOptions),D();var u=v(r),l=e.createTextSpanFromBounds(n,i),_=e.formatting.getFormatContext(o,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),function(r){return d.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:u,span:l,program:c,host:t,cancellationToken:d,formatContext:_,preferences:s})})},getCombinedCodeFix:function(r,n,i,a){void 0===a&&(a=e.emptyOptions),D(),e.Debug.assert("file"===r.type);var o=v(r.fileName),s=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:n,sourceFile:o,program:c,host:t,cancellationToken:d,formatContext:s,preferences:a})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map(function(e){return F(e)})):F(n)},organizeImports:function(r,n,i){void 0===i&&(i=e.emptyOptions),D(),e.Debug.assert("file"===r.type);var a=v(r.fileName),o=e.formatting.getFormatContext(n,t);return e.OrganizeImports.organizeImports(a,o,t,c,i)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(S(),r,n,t,e.formatting.getFormatContext(i,t),a,h)},getEmitOutput:function(r,n,i){D();var a=v(r),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(c,a,!!n,d,o,i)},getNonBoundSourceFile:function(e){return l.getCurrentSourceFile(e)},getProgram:S,getAutoImportProvider:function(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},getApplicableRefactors:function(t,r,n,i){void 0===n&&(n=e.emptyOptions),D();var a=v(t);return e.refactor.getApplicableRefactors(B(a,r,n,e.emptyOptions,i))},getEditsForRefactor:function(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),D();var s=v(t);return e.refactor.getEditsForRefactor(B(s,n,o,r),i,a)},toLineColumnOffset:h.toLineColumnOffset,getSourceMapper:function(){return h},clearSourceMapperCache:function(){return h.clearCache()},prepareCallHierarchy:function(t,r){D();var n=e.CallHierarchy.resolveCallHierarchyDeclaration(c,e.getTouchingPropertyName(v(t),r));return n&&e.mapOneOrMany(n,function(t){return e.CallHierarchy.createCallHierarchyItem(c,t)})},provideCallHierarchyIncomingCalls:function(t,r){D();var n=v(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getIncomingCalls(c,i,d):[]},provideCallHierarchyOutgoingCalls:function(t,r){D();var n=v(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getOutgoingCalls(c,i):[]},toggleLineComment:M,toggleMultilineComment:L,commentSelection:function(e,t){var r=I(l.getCurrentSourceFile(e),t);return r.firstLine===r.lastLine&&t.pos!==t.end?L(e,t,!0):M(e,t,!0)},uncommentSelection:function(t,r){var n=l.getCurrentSourceFile(t),i=[],a=r.pos,o=r.end;a===o&&(o+=e.isInsideJsxElement(n,a)?2:1);for(var s=a;s<=o;s++){var c=e.isInComment(n,s);if(c){switch(c.kind){case 2:i.push.apply(i,M(t,{end:c.end,pos:c.pos+1},!1));break;case 3:i.push.apply(i,L(t,{end:c.end,pos:c.pos+1},!1))}s=c.end+1}}return i}};switch(s){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:k.forEach(function(e){return j[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.PartialSemantic")}});break;case e.LanguageServiceMode.Syntactic:w.forEach(function(e){return j[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.Syntactic")}});break;default:e.Debug.assertNever(s)}return j},e.getNameTable=function(t){return t.nameTable||function(t){var r=t.nameTable=new e.Map;t.forEachChild(function t(n){if(e.isIdentifier(n)&&!e.isTagName(n)&&n.escapedText||e.isStringOrNumericLiteralLike(n)&&function(t){return e.isDeclarationName(t)||269===t.parent.kind||function(e){return e&&e.parent&&199===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}else e.isPrivateIdentifier(n)&&r.set(i=n.escapedText,void 0===r.get(i)?n.pos:-1);if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;ai){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(8388608&n.flags))return _(n)}function o(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function s(r,n){return o(r,e.findNextToken(n,n.parent,t))}function c(e,r){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?_(e):_(r)}function u(r){return _(e.findPrecedingToken(r.pos,t))}function l(r){return _(e.findNextToken(r,r.parent,t))}function _(r){if(r){var n=r.parent;switch(r.kind){case 229:return y(r.declarationList.declarations[0]);case 246:case 162:case 161:return y(r);case 159:return function t(r){if(e.isBindingPattern(r.name))return D(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(t,12)}(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):_(n.body)}(r);case 248:case 164:case 163:case 166:case 167:case 165:case 205:case 206:return function(e){if(e.body)return v(e)?o(e):_(e.body)}(r);case 227:if(e.isFunctionBlock(r))return g=(f=r).statements.length?f.statements[0]:f.getLastToken(),v(f.parent)?c(f.parent,g):_(g);case 254:return b(r);case 284:return b(r.block);case 230:return o(r.expression);case 239:return o(r.getChildAt(0),r.expression);case 233:return s(r,r.expression);case 232:return _(r.statement);case 245:return o(r.getChildAt(0));case 231:return s(r,r.expression);case 242:return _(r.statement);case 238:case 237:return o(r.getChildAt(0),r.label);case 234:return(p=r).initializer?x(p):p.condition?o(p.condition):p.incrementor?o(p.incrementor):void 0;case 235:return s(r,r.expression);case 236:return x(r);case 241:return s(r,r.expression);case 281:case 282:return _(r.statements[0]);case 244:return b(r.tryBlock);case 243:case 263:return o(r,r.expression);case 257:return o(r,r.moduleReference);case 258:case 264:return o(r,r.moduleSpecifier);case 253:if(1!==e.getModuleInstanceState(r))return;case 249:case 252:case 288:case 195:return o(r);case 240:return _(r.statement);case 160:return e.createTextSpanFromBounds(e.skipTrivia(t.text,(m=n.decorators).pos),m.end);case 193:case 194:return D(r);case 250:case 251:return;case 26:case 1:return c(e.findPrecedingToken(r.pos,t));case 27:return u(r);case 18:return function(r){switch(r.parent.kind){case 252:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 249:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 255:return c(r.parent.parent,r.parent.clauses[0])}return _(r.parent)}(r);case 19:return function(t){switch(t.parent.kind){case 254:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 252:case 249:return o(t);case 227:if(e.isFunctionBlock(t.parent))return o(t);case 284:return _(e.lastOrUndefined(t.parent.statements));case 255:var r=e.lastOrUndefined(t.parent.clauses);return r?_(e.lastOrUndefined(r.statements)):void 0;case 193:var n=t.parent;return _(e.lastOrUndefined(n.elements)||n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var i=t.parent;return o(e.lastOrUndefined(i.properties)||i)}return _(t.parent)}}(r);case 23:return function(t){switch(t.parent.kind){case 194:var r=t.parent;return o(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return o(e.lastOrUndefined(n.elements)||n)}return _(t.parent)}}(r);case 20:return function(e){return 232===e.parent.kind||200===e.parent.kind||201===e.parent.kind?u(e):204===e.parent.kind?l(e):_(e.parent)}(r);case 21:return function(e){switch(e.parent.kind){case 205:case 248:case 206:case 164:case 163:case 166:case 167:case 165:case 233:case 232:case 234:case 236:case 200:case 201:case 204:return u(e);default:return _(e.parent)}}(r);case 58:return function(t){return e.isFunctionLike(t.parent)||285===t.parent.kind||159===t.parent.kind?u(t):_(t.parent)}(r);case 31:case 29:return function(e){return 203===e.parent.kind?l(e):_(e.parent)}(r);case 114:return function(e){return 232===e.parent.kind?s(e,e.parent.expression):_(e.parent)}(r);case 90:case 82:case 95:return l(r);case 155:return function(e){return 236===e.parent.kind?l(e):_(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return S(r);if((78===r.kind||217===r.kind||285===r.kind||286===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(213===r.kind){var i=r.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(d=r.left))return S(d);if(62===i.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return o(r);if(27===i.kind)return _(d)}if(e.isExpressionNode(r))switch(n.kind){case 232:return u(r);case 160:return _(r.parent);case 234:case 236:return o(r);case 213:if(27===r.parent.operatorToken.kind)return o(r);break;case 206:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 285:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return _(r.parent.initializer);break;case 203:if(r.parent.type===r)return l(r.parent.type);break;case 246:case 159:var a=r.parent;if(a.initializer===r||a.type===r||e.isAssignmentOperator(r.kind))return u(r);break;case 213:var d;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(d=r.parent.left)&&r!==d)return u(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return u(r)}return _(r.parent)}}var p,f,g,m;function h(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function y(r){if(235===r.parent.parent.kind)return _(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?D(r.name):r.initializer||e.hasSyntacticModifier(r,1)||236===n.parent.kind?h(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?_(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function v(t){return e.hasSyntacticModifier(t,1)||249===t.parent.kind&&165!==t.kind}function b(r){switch(r.parent.kind){case 253:if(1!==e.getModuleInstanceState(r.parent))return;case 233:case 231:case 235:return c(r.parent,r.statements[0]);case 234:case 236:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return _(r.statements[0])}function x(e){if(247!==e.initializer.kind)return _(e.initializer);var t=e.initializer;return t.declarations.length>0?_(t.declarations[0]):void 0}function D(t){var r=e.forEach(t.elements,function(e){return 219!==e.kind?e:void 0});return r?_(r):195===t.parent.kind?o(t.parent):h(t.parent)}function S(t){e.Debug.assert(194!==t.kind&&193!==t.kind);var r=e.forEach(196===t.kind?t.elements:t.properties,function(e){return 219!==e.kind?e:void 0});return r?_(r):o(213===t.parent.kind?t.parent:t)}}}}(l||(l={})),function(e){e.transform=function(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,e.factory,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(l||(l={}));var l,_=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var r=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(null===r)return null;var n=JSON.parse(r);return e.createTextChangeRange(e.createTextSpan(n.span.start,n.span.length),n.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),n=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,function(t){var r=e.getProperty(i,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,function(t){return e.getProperty(i,t)})})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new r(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(t){return this.log(t.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=n;var o=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),this.directoryExists="directoryExists"in this.shimHost?function(e){return t.shimHost.directoryExists(e)}:void 0,this.realpath="realpath"in this.shimHost?function(e){return t.shimHost.realpath(e)}:void 0}return t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function s(e,t,r,n){return l(e,t,!0,r,n)}function l(r,n,i,a,o){try{var s=function(t,r,n,i){var a;i&&(t.log(r),a=e.timestamp());var o=n();if(i){var s=e.timestamp();if(t.log(r+" completed in "+(s-a)+" msec"),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(r,n,a,o);return i?JSON.stringify({result:s}):s}catch(c){return c instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(r,c),c.description=n,JSON.stringify({error:c}))}}e.CoreServicesShimHostAdapter=o;var d=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function p(t,r){return t.map(function(t){return function(t,r){return{message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}(t,r)})}e.realizeDiagnostics=p;var f=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return u(r,t),r.prototype.forwardJSONCall=function(e,t){return s(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,_&&_.CollectGarbage&&(_.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},r.prototype.realizeDiagnostics=function(t){return p(t,e.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+t+"', "+r+", "+n+")",function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))})},r.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+t+"', "+r+", "+n+")",function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))})},r.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+t+"', "+r+", "+n+")",function(){return g(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))})},r.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+t+"', "+r+", "+n+")",function(){return g(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))})},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return r.languageService.getQuickInfoAtPosition(e,t)})},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)})},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBreakpointStatementAtPosition(e,t)})},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t,r)})},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAtPosition(e,t)})},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAndBoundSpan(e,t)})},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getTypeDefinitionAtPosition(e,t)})},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return r.languageService.getImplementationAtPosition(e,t)})},r.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return n.languageService.getRenameInfo(e,t,r)})},r.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+t+")",function(){return r.languageService.getSmartSelectionRange(e,t)})},r.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+", "+i+")",function(){return a.languageService.findRenameLocations(e,t,r,n,i)})},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBraceMatchingAtPosition(e,t)})},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)})},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)})},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)})},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getReferencesAtPosition(e,t)})},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return r.languageService.findReferences(e,t)})},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getOccurrencesAtPosition(e,t)})},r.prototype.getDocumentHighlights=function(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+t+"', "+r+")",function(){var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,function(t){return e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o})})},r.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.getCompletionsAtPosition(e,t,r)})},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+r+"')",function(){var s=void 0===n?void 0:JSON.parse(n);return o.languageService.getCompletionEntryDetails(e,t,r,s,i,a)})},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+r+")",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)})},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)})},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+r+"')",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)})},r.prototype.getDocCommentTemplateAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)})},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNavigateToItems(e,t,r)})},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return r.languageService.getTodoComments(e,JSON.parse(t))})},r.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('"+e+"', "+t+")",function(){return r.languageService.prepareCallHierarchy(e,t)})},r.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+e+"', "+t+")",function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)})},r.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+e+"', "+t+")",function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)})},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){var r=t.languageService.getEmitOutput(e),n=r.diagnostics,i=c(r,["diagnostics"]);return a(a({},i),{diagnostics:t.realizeDiagnostics(n)})})},r.prototype.getEmitOutputObject=function(e){var t=this;return l(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},r.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('"+e+"', '"+JSON.stringify(t)+"')",function(){return r.languageService.toggleLineComment(e,t)})},r.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('"+e+"', '"+JSON.stringify(t)+"')",function(){return r.languageService.toggleMultilineComment(e,t)})},r.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('"+e+"', '"+JSON.stringify(t)+"')",function(){return r.languageService.commentSelection(e,t)})},r.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('"+e+"', '"+JSON.stringify(t)+"')",function(){return r.languageService.uncommentSelection(e,t)})},r}(d);function g(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var m=function(t){function r(r,n){var i=t.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return u(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),s(this.logger,"getEncodedLexicalClassifications",function(){return g(n.classifier.getEncodedLexicalClassifications(e,t,r))},this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,r,n):e.Debug.fail("Argument count mismatch")},t),e.updateVariableDeclaration=e.Debug.deprecate(function(t,r,n,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,r,n,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,r,t.exclamationToken,n,i):e.Debug.fail("Argument count mismatch")},t),e.createImportClause=e.Debug.deprecate(function(t,r,n){return void 0===n&&(n=!1),e.factory.createImportClause(n,t,r)},t),e.updateImportClause=e.Debug.deprecate(function(t,r,n,i){return e.factory.updateImportClause(t,i,r,n)},t),e.createExportDeclaration=e.Debug.deprecate(function(t,r,n,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(t,r,a,n,i)},t),e.updateExportDeclaration=e.Debug.deprecate(function(t,r,n,i,a,o){return e.factory.updateExportDeclaration(t,r,n,o,i,a)},t),e.createJSDocParamTag=e.Debug.deprecate(function(t,r,n,i){return e.factory.createJSDocParameterTag(void 0,t,r,n,!1,i)},t),e.createComma=e.Debug.deprecate(function(t,r){return e.factory.createComma(t,r)},t),e.createLessThan=e.Debug.deprecate(function(t,r){return e.factory.createLessThan(t,r)},t),e.createAssignment=e.Debug.deprecate(function(t,r){return e.factory.createAssignment(t,r)},t),e.createStrictEquality=e.Debug.deprecate(function(t,r){return e.factory.createStrictEquality(t,r)},t),e.createStrictInequality=e.Debug.deprecate(function(t,r){return e.factory.createStrictInequality(t,r)},t),e.createAdd=e.Debug.deprecate(function(t,r){return e.factory.createAdd(t,r)},t),e.createSubtract=e.Debug.deprecate(function(t,r){return e.factory.createSubtract(t,r)},t),e.createLogicalAnd=e.Debug.deprecate(function(t,r){return e.factory.createLogicalAnd(t,r)},t),e.createLogicalOr=e.Debug.deprecate(function(t,r){return e.factory.createLogicalOr(t,r)},t),e.createPostfixIncrement=e.Debug.deprecate(function(t){return e.factory.createPostfixIncrement(t)},t),e.createLogicalNot=e.Debug.deprecate(function(t){return e.factory.createLogicalNot(t)},t),e.createNode=e.Debug.deprecate(function(t,r,n){return void 0===r&&(r=0),void 0===n&&(n=0),e.setTextRangePosEnd(294===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):78===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):79===t?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseNode(t):e.parseBaseNodeFactory.createBaseTokenNode(t),r,n)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(t){var r=e.factory.cloneNode(t);return e.setTextRange(r,t),e.setParent(r,t.parent),r},{since:"4.0",warnAfter:"4.1",message:"Use `factory.cloneNode` instead and use `setCommentRange` or `setSourceMapRange` and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate(function(e){return 203===e.kind},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})}(l||(l={}))},SpAZ:function(e,t,r){"use strict";function n(e){return e}r.d(t,"a",function(){return n})},TQ3W:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("8Y7J");let i=(()=>{class e{transform(e,...t){return"de"===e?"Deutsch":"en"===e?"English":"es"===e?"Spanish":"ru"===e?"\u0420\u0443\u0441\u0441\u043a\u0438\u0439":"zh_CN"===e?"\u4e2d\u6587-\u7b80\u4f53":""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=n.Kb({name:"language",type:e,pure:!0}),e})()},TSSN:function(e,t,r){"use strict";r.d(t,"a",function(){return f}),r.d(t,"b",function(){return L}),r.d(t,"c",function(){return M}),r.d(t,"d",function(){return I});var n=r("8Y7J"),i=r("LRne"),a=r("7+OI"),o=r("cp0P"),s=r("GyhO"),c=r("NXyV"),u=r("IzEk"),l=r("UXun"),_=r("lJxs"),d=r("bOdf"),p=r("eIep");class f{}let g=(()=>{class e extends f{getTranslation(e){return Object(i.a)({})}}return e.\u0275fac=function(t){return m(t||e)},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})();const m=n.Qb(g);class h{}let y=(()=>{class e{handle(e){return e.key}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})();function v(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;let r,n,i,a=typeof e;if(a==typeof t&&"object"==a){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(n in i=Object.create(null),e){if(!v(e[n],t[n]))return!1;i[n]=!0}for(n in t)if(!(n in i)&&void 0!==t[n])return!1;return!0}if(!Array.isArray(t))return!1;if((r=e.length)==t.length){for(n=0;n{x(t[n])?n in e?r[n]=D(e[n],t[n]):Object.assign(r,{[n]:t[n]}):Object.assign(r,{[n]:t[n]})}),r}class S{}let E=(()=>{class e extends S{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!b(e)||!b(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(e,r)=>{let n=this.getValue(t,r);return b(n)?n:e}):e}}return e.\u0275fac=function(t){return C(t||e)},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})();const C=n.Qb(E);class T{}let k=(()=>{class e extends T{compile(e,t){return e}compileTranslations(e,t){return e}}return e.\u0275fac=function(t){return w(t||e)},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})();const w=n.Qb(k);class A{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.n,this.onLangChange=new n.n,this.onDefaultLangChange=new n.n}}const N=new n.r("USE_STORE"),P=new n.r("USE_DEFAULT_LANG"),O=new n.r("DEFAULT_LANGUAGE"),F=new n.r("USE_EXTEND");let I=(()=>{class e{constructor(e,t,r,i,a,o=!0,s=!1,c=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=i,this.missingTranslationHandler=a,this.useDefaultLang=o,this.isolate=s,this.extend=c,this.pending=!1,this._onTranslationChange=new n.n,this._onLangChange=new n.n,this._onDefaultLangChange=new n.n,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe(Object(u.a)(1)).subscribe(t=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Object(i.a)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe(Object(u.a)(1)).subscribe(t=>{this.changeLang(e)}),t):(this.changeLang(e),Object(i.a)(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Object(l.a)(1),Object(u.a)(1));return this.loadingTranslations=t.pipe(Object(_.a)(t=>this.compiler.compileTranslations(t,e)),Object(l.a)(1),Object(u.a)(1)),this.loadingTranslations.subscribe({next:t=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},t),this.translations[e]):t,this.updateLangs(),this.pending=!1},error:e=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?D(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(e=>{-1===this.langs.indexOf(e)&&this.langs.push(e)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let n;if(t instanceof Array){let n={},s=!1;for(let i of t)n[i]=this.getParsedResult(e,i,r),Object(a.a)(n[i])&&(s=!0);if(s){const e=t.map(e=>Object(a.a)(n[e])?n[e]:Object(i.a)(n[e]));return Object(o.a)(e).pipe(Object(_.a)(e=>{let r={};return e.forEach((e,n)=>{r[t[n]]=e}),r}))}return n}if(e&&(n=this.parser.interpolate(this.parser.getValue(e,t),r)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),void 0===n){let e={key:t,translateService:this};void 0!==r&&(e.interpolateParams=r),n=this.missingTranslationHandler.handle(e)}return void 0!==n?n:t}get(e,t){if(!b(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Object(d.a)(r=>(r=this.getParsedResult(r,e,t),Object(a.a)(r)?r:Object(i.a)(r))));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Object(a.a)(r)?r:Object(i.a)(r)}}getStreamOnTranslationChange(e,t){if(!b(e)||!e.length)throw new Error('Parameter "key" required');return Object(s.a)(Object(c.a)(()=>this.get(e,t)),this.onTranslationChange.pipe(Object(p.a)(r=>{const n=this.getParsedResult(r.translations,e,t);return"function"==typeof n.subscribe?n:Object(i.a)(n)})))}stream(e,t){if(!b(e)||!e.length)throw new Error('Parameter "key" required');return Object(s.a)(Object(c.a)(()=>this.get(e,t)),this.onLangChange.pipe(Object(p.a)(r=>{const n=this.getParsedResult(r.translations,e,t);return Object(a.a)(n)?n:Object(i.a)(n)})))}instant(e,t){if(!b(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Object(a.a)(r)){if(e instanceof Array){let t={};return e.forEach((r,n)=>{t[e[n]]=e[n]}),t}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(A),n.Sb(f),n.Sb(T),n.Sb(S),n.Sb(h),n.Sb(P),n.Sb(N),n.Sb(F),n.Sb(O))},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})(),M=(()=>{class e{constructor(e,t){this.translate=e,this._ref=t,this.value=""}updateValue(e,t,r){let n=t=>{this.value=void 0!==t?t:e,this.lastKey=e,this._ref.markForCheck()};if(r){let i=this.translate.getParsedResult(r,e,t);Object(a.a)(i.subscribe)?i.subscribe(n):n(i)}this.translate.get(e,t).subscribe(n)}transform(e,...t){if(!e||!e.length)return e;if(v(e,this.lastKey)&&v(t,this.lastParams))return this.value;let r;if(b(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let e=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(e)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"!=typeof t[0]||Array.isArray(t[0])||(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(t=>{this.lastKey&&t.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,t.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(t=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,t.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(I),n.Ub())},e.\u0275pipe=n.Kb({name:"translate",type:e,pure:!1}),e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})(),L=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:f,useClass:g},t.compiler||{provide:T,useClass:k},t.parser||{provide:S,useClass:E},t.missingTranslationHandler||{provide:h,useClass:y},A,{provide:N,useValue:t.isolate},{provide:P,useValue:t.useDefaultLang},{provide:F,useValue:t.extend},{provide:O,useValue:t.defaultLanguage},I]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:f,useClass:g},t.compiler||{provide:T,useClass:k},t.parser||{provide:S,useClass:E},t.missingTranslationHandler||{provide:h,useClass:y},{provide:N,useValue:t.isolate},{provide:P,useValue:t.useDefaultLang},{provide:F,useValue:t.extend},{provide:O,useValue:t.defaultLanguage},I]}}}return e.\u0275mod=n.Jb({type:e}),e.\u0275inj=n.Ib({factory:function(t){return new(t||e)}}),e})()},UXun:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("jtHE");function i(e,t,r){let i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:r},e=>e.lift(function({bufferSize:e=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:r,scheduler:i}){let a,o,s=0,c=!1,u=!1;return function(l){let _;s++,!a||c?(c=!1,a=new n.a(e,t,i),_=a.subscribe(this),o=l.subscribe({next(e){a.next(e)},error(e){c=!0,a.error(e)},complete(){u=!0,o=void 0,a.complete()}}),u&&(o=void 0)):_=a.subscribe(this),this.add(()=>{s--,_.unsubscribe(),_=void 0,o&&!u&&r&&0===s&&(o.unsubscribe(),o=void 0,a=void 0)})}}(i))}},UY0t:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("SoUf"),i=r("8Y7J");let a=(()=>{class e{transpile(e){return n.transpile(e,{module:n.ModuleKind.None,target:n.ScriptTarget.ES2015})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},Ub8T:function(e,t,r){"use strict";r.d(t,"a",function(){return s});var n=r("XNiG"),i=r("ScT/"),a=r("8Y7J"),o=r("BnXa");let s=(()=>{class e{constructor(e){this.localStorageService=e,this.gameOver$=new n.a,this.levels=i,this.currentLevelIndex=0;const t=e.loadSolvedLevels();for(let r=0;r!1===e.solved);if(e)return this.levels.indexOf(e)}checkOfGameOver(){this.levels.every(e=>e.solved)&&this.gameOver$.next()}previousLevel(){const e=this.currentLevelIndex-1;e>=0&&(this.currentLevelIndex=e)}}return e.\u0275fac=function(t){return new(t||e)(a.Sb(o.a))},e.\u0275prov=a.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},VDRc:function(e,t,r){"use strict";r.d(t,"d",function(){return J}),r.d(t,"a",function(){return D}),r.d(t,"c",function(){return g}),r.d(t,"b",function(){return O});var n=r("8Y7J"),i=r("/q54"),a=r("9gLZ"),o=(r("XNiG"),r("1G5W"));const s=["row","column","row-reverse","column-reverse"];function c(e){e=e?e.toLowerCase():"";let[t,r,n]=e.split(" ");return s.find(e=>e===t)||(t=s[0]),"inline"===r&&(r="inline"!==n?n:"",n="inline"),[t,l(r),!!n]}function u(e){let[t]=c(e);return t.indexOf("row")>-1}function l(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}let _=(()=>{class e extends i.h{buildStyles(e){return function(e){let[t,r,n]=c(e);return function(e,t=null,r=!1){return{display:r?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(t,r,n)}(e)}}return e.\u0275fac=function(t){return d(t||e)},e.\u0275prov=Object(n.Hb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const d=n.Qb(_),p=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let f=(()=>{class e extends i.b{constructor(e,t,r,n){super(e,r,t,n),this.DIRECTIVE_KEY="layout",this.styleCache=h,this.init()}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.l),n.Lb(i.i),n.Lb(_),n.Lb(i.f))},e.\u0275dir=n.Gb({type:e,features:[n.yb]}),e})(),g=(()=>{class e extends f{constructor(){super(...arguments),this.inputs=p}}return e.\u0275fac=function(t){return m(t||e)},e.\u0275dir=n.Gb({type:e,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[n.yb]}),e})();const m=n.Qb(g),h=new Map;function y(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(let r of t)if(null!=r)for(let t in r)r.hasOwnProperty(t)&&(e[t]=r[t]);return e}new Map,new Map,new Map,new Map;let v=(()=>{class e extends i.h{constructor(e){super(),this.layoutConfig=e}buildStyles(e,t){let[r,n,...i]=e.split(" "),a=i.join(" ");const o=t.direction.indexOf("column")>-1?"column":"row",s=u(o)?"max-width":"max-height",c=u(o)?"min-width":"min-height",l=String(a).indexOf("calc")>-1,_=l||"auto"===a,d=String(a).indexOf("%")>-1&&!l,p=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1;let f=l||p;r="0"==r?0:r,n="0"==n?0:n;const g=!r&&!n;let m={};const h={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":const e=!1!==this.layoutConfig.useColumnBasisZero;a="row"===o?"0%":e?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,a="auto";break;case"grow":a="100%";break;case"noshrink":n=0,a="auto";break;case"auto":break;case"none":r=0,n=0,a="auto";break;default:f||d||isNaN(a)||(a+="%"),"0%"===a&&(f=!0),"0px"===a&&(a="0%"),m=y(h,l?{"flex-grow":r,"flex-shrink":n,"flex-basis":f?a:"100%"}:{flex:`${r} ${n} ${f?a:"100%"}`})}return m.flex||m["flex-grow"]||(m=y(h,l?{"flex-grow":r,"flex-shrink":n,"flex-basis":a}:{flex:`${r} ${n} ${a}`})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(m[c]=g||f&&r?a:null,m[s]=g||!_&&n?a:null),m[c]||m[s]?t.hasWrap&&(m[l?"flex-basis":"flex"]=m[s]?l?m[s]:`${r} ${n} ${m[s]}`:l?m[c]:`${r} ${n} ${m[c]}`):m=y(h,l?{"flex-grow":r,"flex-shrink":n,"flex-basis":a}:{flex:`${r} ${n} ${a}`}),y(m,{"box-sizing":"border-box"})}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(i.e))},e.\u0275prov=Object(n.Hb)({factory:function(){return new e(Object(n.Sb)(i.e))},token:e,providedIn:"root"}),e})();const b=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let x=(()=>{class e extends i.b{constructor(e,t,r,n,i){super(e,n,t,i),this.layoutConfig=r,this.marshal=i,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Object(o.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Object(o.a)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){const t=e.value.split(" ");this.direction=t[0],this.wrap=void 0!==t[1]&&"wrap"===t[1],this.triggerUpdate()}updateWithValue(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const t=this.direction,r=t.startsWith("row"),n=this.wrap;r&&n?this.styleCache=T:r&&!n?this.styleCache=E:!r&&n?this.styleCache=k:r||n||(this.styleCache=C);const a=String(e).replace(";",""),o=Object(i.j)(a,this.flexGrow,this.flexShrink);this.addStyles(o.join(" "),{direction:t,hasWrap:n})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const t=Object(i.j)(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,t.join(" "))}}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.l),n.Lb(i.i),n.Lb(i.e),n.Lb(v),n.Lb(i.f))},e.\u0275dir=n.Gb({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[n.yb]}),e})(),D=(()=>{class e extends x{constructor(){super(...arguments),this.inputs=b}}return e.\u0275fac=function(t){return S(t||e)},e.\u0275dir=n.Gb({type:e,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[n.yb]}),e})();const S=n.Qb(D),E=new Map,C=new Map,T=new Map,k=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map;let w=(()=>{class e extends i.h{buildStyles(e,t){const r={},[n,i]=e.split(" ");switch(n){case"center":r["justify-content"]="center";break;case"space-around":r["justify-content"]="space-around";break;case"space-between":r["justify-content"]="space-between";break;case"space-evenly":r["justify-content"]="space-evenly";break;case"end":case"flex-end":r["justify-content"]="flex-end";break;case"start":case"flex-start":default:r["justify-content"]="flex-start"}switch(i){case"start":case"flex-start":r["align-items"]=r["align-content"]="flex-start";break;case"center":r["align-items"]=r["align-content"]="center";break;case"end":case"flex-end":r["align-items"]=r["align-content"]="flex-end";break;case"space-between":r["align-content"]="space-between",r["align-items"]="stretch";break;case"space-around":r["align-content"]="space-around",r["align-items"]="stretch";break;case"baseline":r["align-content"]="stretch",r["align-items"]="baseline";break;case"stretch":default:r["align-items"]=r["align-content"]="stretch"}return y(r,{display:t.inline?"inline-flex":"flex","flex-direction":t.layout,"box-sizing":"border-box","max-width":"stretch"===i?u(t.layout)?null:"100%":null,"max-height":"stretch"===i&&u(t.layout)?"100%":null})}}return e.\u0275fac=function(t){return A(t||e)},e.\u0275prov=Object(n.Hb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const A=n.Qb(w),N=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let P=(()=>{class e extends i.b{constructor(e,t,r,n){super(e,r,t,n),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(Object(o.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const t=this.layout||"row",r=this.inline;"row"===t&&r?this.styleCache=B:"row"!==t||r?"row-reverse"===t&&r?this.styleCache=U:"row-reverse"!==t||r?"column"===t&&r?this.styleCache=j:"column"!==t||r?"column-reverse"===t&&r?this.styleCache=z:"column-reverse"!==t||r||(this.styleCache=R):this.styleCache=M:this.styleCache=L:this.styleCache=I,this.addStyles(e,{layout:t,inline:r})}onLayoutChange(e){const t=e.value.split(" ");this.layout=t[0],this.inline=e.value.includes("inline"),s.find(e=>e===this.layout)||(this.layout="row"),this.triggerUpdate()}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.l),n.Lb(i.i),n.Lb(w),n.Lb(i.f))},e.\u0275dir=n.Gb({type:e,features:[n.yb]}),e})(),O=(()=>{class e extends P{constructor(){super(...arguments),this.inputs=N}}return e.\u0275fac=function(t){return F(t||e)},e.\u0275dir=n.Gb({type:e,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[n.yb]}),e})();const F=n.Qb(O),I=new Map,M=new Map,L=new Map,R=new Map,B=new Map,j=new Map,U=new Map,z=new Map;let J=(()=>{class e{}return e.\u0275mod=n.Jb({type:e}),e.\u0275inj=n.Ib({factory:function(t){return new(t||e)},imports:[[i.c,a.a]]}),e})()},VIrA:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("XNiG"),i=r("8Y7J");let a=(()=>{class e{constructor(){this.currentExercise={code:"",fruits:[],expectedFruits:[],minPositionLineNumber:0,positionColumnNumber:0},this.assertionChecked$=new n.a,this.exerciseChanged$=new n.a}newExercise(e){this.currentExercise=e,this.exerciseChanged$.next(e)}assertExerciseOutput(){const e=[];return{next:t=>e.push(t),complete:()=>{const t=this.canAcceptDeliveredFruits(e);this.assertionChecked$.next(t)}}}canAcceptDeliveredFruits(e){const t=this.currentExercise.expectedFruits;return e.length===t.length&&!e.some((e,r)=>e!==t[r])}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},VRyK:function(e,t,r){"use strict";r.d(t,"a",function(){return s});var n=r("HDdC"),i=r("z+Ro"),a=r("bHdf"),o=r("yCtX");function s(...e){let t=Number.POSITIVE_INFINITY,r=null,s=e[e.length-1];return Object(i.a)(s)?(r=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof s&&(t=e.pop()),null===r&&1===e.length&&e[0]instanceof n.a?e[0]:Object(a.a)(t)(Object(o.a)(e,r))}},WMd4:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("EY2u"),i=r("LRne"),a=r("z6cu");let o=(()=>{class e{constructor(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,r){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}}accept(e,t,r){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,r)}toObservable(){switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return Object(a.a)(this.error);case"C":return Object(n.b)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})()},XNiG:function(e,t,r){"use strict";r.d(t,"b",function(){return u}),r.d(t,"a",function(){return l});var n=r("HDdC"),i=r("7o/Q"),a=r("quSY"),o=r("9ppp"),s=r("Ylt2"),c=r("2QA8");class u extends i.a{constructor(e){super(e),this.destination=e}}let l=(()=>{class e extends n.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new u(this)}lift(e){const t=new _(this,this);return t.operator=e,t}next(e){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:t}=this,r=t.length,n=t.slice();for(let i=0;inew _(e,t),e})();class _ extends l{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):a.a.EMPTY}}},XoHu:function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,"a",function(){return n})},YTqg:function(e,t,r){"use strict";r.d(t,"a",function(){return l});var n=r("8Y7J"),i=r("TSSN"),a=r("iELJ"),o=r("SVse");function s(e,t){1&e&&(n.Ob(0,"p"),n.Ob(1,"a",14),n.Mb(2,"img",15),n.Nb(),n.Nb())}function c(e,t){1&e&&(n.Ob(0,"p"),n.Ob(1,"a",16),n.Mb(2,"img",17),n.Nb(),n.Nb())}function u(e,t){1&e&&(n.Ob(0,"p"),n.Ob(1,"a",16),n.Mb(2,"img",18),n.Nb(),n.Nb())}let l=(()=>{class e{constructor(e){this.translateService=e,this.currentLanguage=""}ngOnInit(){this.currentLanguage=this.translateService.currentLang}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(i.d))},e.\u0275cmp=n.Fb({type:e,selectors:[["app-game-over-dialog"]],decls:35,vars:21,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"innerHTML"],[4,"ngIf"],["href","https://twitter.com/intent/tweet/?text=I%20mastered%20rxjs-fruits!%20A%20great%20game%20to%20learn%20%23RxJS%20from%20%40BFreakout&url=https%3A%2F%2Fwww.rxjs-fruits.com","target","_blank","rel","noopener","aria-label","Share on Twitter",1,"resp-sharing-button__link"],[1,"resp-sharing-button","resp-sharing-button--twitter","resp-sharing-button--large"],["aria-hidden","true",1,"resp-sharing-button__icon","resp-sharing-button__icon--solidcircle"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24"],["d","M12 0C5.38 0 0 5.38 0 12s5.38 12 12 12 12-5.38 12-12S18.62 0 12 0zm5.26 9.38v.34c0 3.48-2.64 7.5-7.48 7.5-1.48 0-2.87-.44-4.03-1.2 1.37.17 2.77-.2 3.9-1.08-1.16-.02-2.13-.78-2.46-1.83.38.1.8.07 1.17-.03-1.2-.24-2.1-1.3-2.1-2.58v-.05c.35.2.75.32 1.18.33-.7-.47-1.17-1.28-1.17-2.2 0-.47.13-.92.36-1.3C7.94 8.85 9.88 9.9 12.06 10c-.04-.2-.06-.4-.06-.6 0-1.46 1.18-2.63 2.63-2.63.76 0 1.44.3 1.92.82.6-.12 1.95-.27 1.95-.27-.35.53-.72 1.66-1.24 2.04z"],["href","https://facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.rxjs-fruits.com","target","_blank","rel","noopener","aria-label","Share on Facebook",1,"resp-sharing-button__link"],[1,"resp-sharing-button","resp-sharing-button--facebook","resp-sharing-button--large"],["d","M12 0C5.38 0 0 5.38 0 12s5.38 12 12 12 12-5.38 12-12S18.62 0 12 0zm3.6 11.5h-2.1v7h-3v-7h-2v-2h2V8.34c0-1.1.35-2.82 2.65-2.82h2.35v2.3h-1.4c-.25 0-.6.13-.6.66V9.5h2.34l-.24 2z"],["mat-dialog-actions","","align","end"],["mat-dialog-close",""],["href","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9EGCC69448QCC&source=url","target","_blank"],["src","https://www.paypalobjects.com/de_DE/DE/i/btn/btn_donateCC_LG.gif","alt","Spenden mit dem PayPal-Button"],["href","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GK7WN5T3SAYS4&source=url","target","_blank"],["src","https://www.paypalobjects.com/en_US/DK/i/btn/btn_donateCC_LG.gif","alt","Spenden mit dem PayPal-Button"],["src","https://www.paypalobjects.com/zh_CN/CN/i/btn/btn_donateCC_LG.gif","alt","Spenden mit dem PayPal-Button"]],template:function(e,t){1&e&&(n.Ob(0,"h1",0),n.qc(1),n.bc(2,"translate"),n.Nb(),n.Ob(3,"div",1),n.Ob(4,"p"),n.qc(5),n.bc(6,"translate"),n.Nb(),n.Mb(7,"p",2),n.bc(8,"translate"),n.pc(9,s,3,0,"p",3),n.pc(10,c,3,0,"p",3),n.pc(11,u,3,0,"p",3),n.Ob(12,"p"),n.qc(13),n.bc(14,"translate"),n.Nb(),n.Ob(15,"p"),n.Ob(16,"a",4),n.Ob(17,"div",5),n.Ob(18,"div",6),n.Zb(),n.Ob(19,"svg",7),n.Mb(20,"path",8),n.Nb(),n.Nb(),n.qc(21,"Share on Twitter"),n.Nb(),n.Nb(),n.Yb(),n.Ob(22,"a",9),n.Ob(23,"div",10),n.Ob(24,"div",6),n.Zb(),n.Ob(25,"svg",7),n.Mb(26,"path",11),n.Nb(),n.Nb(),n.qc(27,"Share on Facebook"),n.Nb(),n.Nb(),n.Nb(),n.Yb(),n.Mb(28,"p",2),n.bc(29,"translate"),n.Mb(30,"p",2),n.bc(31,"translate"),n.Nb(),n.Ob(32,"div",12),n.Ob(33,"button",13),n.qc(34,"Ok"),n.Nb(),n.Nb()),2&e&&(n.Bb(1),n.rc(n.cc(2,9,"APP.GAMEOVERDIALOG.TITLE")),n.Bb(4),n.rc(n.cc(6,11,"APP.GAMEOVERDIALOG.SUBTITLE")),n.Bb(2),n.fc("innerHTML",n.cc(8,13,"APP.GAMEOVERDIALOG.DONATEMESSAGE"),n.jc),n.Bb(2),n.fc("ngIf","de"===t.currentLanguage),n.Bb(1),n.fc("ngIf","en"===t.currentLanguage),n.Bb(1),n.fc("ngIf","zh_CN"===t.currentLanguage),n.Bb(2),n.rc(n.cc(14,15,"APP.GAMEOVERDIALOG.PAYSHAREMESSAGE")),n.Bb(15),n.fc("innerHTML",n.cc(29,17,"APP.GAMEOVERDIALOG.CONTRIBUTEMESSAGE"),n.jc),n.Bb(2),n.fc("innerHTML",n.cc(31,19,"APP.GAMEOVERDIALOG.THANKYOU"),n.jc))},directives:[a.f,a.d,o.j,a.b,a.c],pipes:[i.c],styles:[".resp-sharing-button__icon[_ngcontent-%COMP%], .resp-sharing-button__link[_ngcontent-%COMP%]{display:inline-block}.resp-sharing-button__link[_ngcontent-%COMP%]{text-decoration:none;color:#fff;margin:.5em}.resp-sharing-button[_ngcontent-%COMP%]{border-radius:5px;transition:25ms ease-out;padding:.5em .75em;font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.resp-sharing-button__icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:1em;height:1em;margin-right:.4em;vertical-align:top}.resp-sharing-button--small[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin:0;vertical-align:middle}.resp-sharing-button__icon[_ngcontent-%COMP%]{stroke:#fff;fill:none}.resp-sharing-button__icon--solid[_ngcontent-%COMP%], .resp-sharing-button__icon--solidcircle[_ngcontent-%COMP%]{fill:#fff;stroke:none}.resp-sharing-button--twitter[_ngcontent-%COMP%]:hover{background-color:#2795e9}.resp-sharing-button--pinterest[_ngcontent-%COMP%]{background-color:#bd081c}.resp-sharing-button--pinterest[_ngcontent-%COMP%]:hover{background-color:#8c0615}.resp-sharing-button--facebook[_ngcontent-%COMP%]:hover{background-color:#2d4373}.resp-sharing-button--tumblr[_ngcontent-%COMP%]{background-color:#35465c}.resp-sharing-button--tumblr[_ngcontent-%COMP%]:hover{background-color:#222d3c}.resp-sharing-button--reddit[_ngcontent-%COMP%]{background-color:#5f99cf}.resp-sharing-button--reddit[_ngcontent-%COMP%]:hover{background-color:#3a80c1}.resp-sharing-button--google[_ngcontent-%COMP%]{background-color:#dd4b39}.resp-sharing-button--google[_ngcontent-%COMP%]:hover{background-color:#c23321}.resp-sharing-button--linkedin[_ngcontent-%COMP%]{background-color:#0077b5}.resp-sharing-button--linkedin[_ngcontent-%COMP%]:hover{background-color:#046293}.resp-sharing-button--email[_ngcontent-%COMP%]{background-color:#777}.resp-sharing-button--email[_ngcontent-%COMP%]:hover{background-color:#5e5e5e}.resp-sharing-button--xing[_ngcontent-%COMP%]{background-color:#1a7576}.resp-sharing-button--xing[_ngcontent-%COMP%]:hover{background-color:#114c4c}.resp-sharing-button--whatsapp[_ngcontent-%COMP%]{background-color:#25d366}.resp-sharing-button--whatsapp[_ngcontent-%COMP%]:hover{background-color:#1da851}.resp-sharing-button--hackernews[_ngcontent-%COMP%]{background-color:#f60}.resp-sharing-button--hackernews[_ngcontent-%COMP%]:focus, .resp-sharing-button--hackernews[_ngcontent-%COMP%]:hover{background-color:#fb6200}.resp-sharing-button--vk[_ngcontent-%COMP%]{background-color:#507299}.resp-sharing-button--vk[_ngcontent-%COMP%]:hover{background-color:#43648c}.resp-sharing-button--facebook[_ngcontent-%COMP%]{background-color:#3b5998;border-color:#3b5998}.resp-sharing-button--facebook[_ngcontent-%COMP%]:active, .resp-sharing-button--facebook[_ngcontent-%COMP%]:hover{background-color:#2d4373;border-color:#2d4373}.resp-sharing-button--twitter[_ngcontent-%COMP%]{background-color:#55acee;border-color:#55acee}.resp-sharing-button--twitter[_ngcontent-%COMP%]:active, .resp-sharing-button--twitter[_ngcontent-%COMP%]:hover{background-color:#2795e9;border-color:#2795e9}.mat-dialog-actions[align=end][_ngcontent-%COMP%]{justify-content:flex-end}.mat-dialog-actions[align=center][_ngcontent-%COMP%]{justify-content:center}"]}),e})()},Ylt2:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("quSY");class i extends n.a{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}},bHdf:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("5+tZ"),i=r("SpAZ");function a(e=Number.POSITIVE_INFINITY){return Object(n.a)(i.a,e)}},bOdf:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("5+tZ");function i(e,t){return Object(n.a)(e,t,1)}},c2HN:function(e,t,r){"use strict";function n(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}r.d(t,"a",function(){return n})},cUpR:function(e,t,r){"use strict";r.d(t,"a",function(){return R}),r.d(t,"b",function(){return P}),r.d(t,"c",function(){return M}),r.d(t,"d",function(){return x});var n=r("SVse"),i=r("8Y7J");class a extends n.r{constructor(){super()}supportsDOMEvents(){return!0}}class o extends a{static makeCurrent(){Object(n.v)(new o)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,r){return e.addEventListener(t,r,!1),()=>{e.removeEventListener(t,r,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==t?null:(r=t,s||(s=document.createElement("a")),s.setAttribute("href",r),"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname);var r}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Object(n.u)(document.cookie,e)}}let s,c=null;const u=new i.r("TRANSITION_ID"),l=[{provide:i.d,useFactory:function(e,t,r){return()=>{r.get(i.e).donePromise.then(()=>{const r=Object(n.t)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>r.remove(e))})}},deps:[u,n.c,i.s],multi:!0}];class _{static init(){Object(i.Y)(new _)}addToWindow(e){i.pb.getAngularTestability=(t,r=!0)=>{const n=e.findTestabilityInTree(t,r);if(null==n)throw new Error("Could not find testability for element.");return n},i.pb.getAllAngularTestabilities=()=>e.getAllTestabilities(),i.pb.getAllAngularRootElements=()=>e.getAllRootElements(),i.pb.frameworkStabilizers||(i.pb.frameworkStabilizers=[]),i.pb.frameworkStabilizers.push(e=>{const t=i.pb.getAllAngularTestabilities();let r=t.length,n=!1;const a=function(t){n=n||t,r--,0==r&&e(n)};t.forEach(function(e){e.whenStable(a)})})}findTestabilityInTree(e,t,r){if(null==t)return null;const i=e.getTestability(t);return null!=i?i:r?Object(n.t)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const d=new i.r("EventManagerPlugins");let p=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let n=0;n{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac}),e})(),m=(()=>{class e extends g{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const r=this._doc.createElement("style");r.textContent=e,this._styleNodes.add(t.appendChild(r))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Object(n.t)().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(n.c))},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac}),e})();const h={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},y=/%COMP%/g;function v(e,t,r){for(let n=0;n{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let x=(()=>{class e{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new D(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.R.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new S(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.R.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=v(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(p),i.Sb(m),i.Sb(i.c))},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac}),e})();class D{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(h[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,r){e&&e.insertBefore(t,r)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return t||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,r,n){if(n){t=n+":"+t;const i=h[n];i?e.setAttributeNS(i,t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}removeAttribute(e,t,r){if(r){const n=h[r];n?e.removeAttributeNS(n,t):e.removeAttribute(`${r}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,r,n){n&(i.H.DashCase|i.H.Important)?e.style.setProperty(t,r,n&i.H.Important?"important":""):e.style[t]=r}removeStyle(e,t,r){r&i.H.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,r){e[t]=r}setValue(e,t){e.nodeValue=t}listen(e,t,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,b(r)):this.eventManager.addEventListener(e,t,b(r))}}class S extends D{constructor(e,t,r,n){super(e),this.component=r;const i=v(n+"-"+r.id,r.styles,[]);t.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(y,n+"-"+r.id),this.hostAttr="_nghost-%COMP%".replace(y,n+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const r=super.createElement(e,t);return super.setAttribute(r,this.contentAttr,""),r}}class E extends D{constructor(e,t,r,n){super(e),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=v(n.id,n.styles,[]);for(let a=0;a{class e extends f{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(n.c))},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac}),e})();const T=["alt","control","meta","shift"],k={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},w={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},A={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let N=(()=>{class e extends f{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const a=e.parseEventName(r),o=e.eventCallback(a.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(n.t)().onAndCancel(t,a.domEventName,o))}static parseEventName(t){const r=t.toLowerCase().split("."),n=r.shift();if(0===r.length||"keydown"!==n&&"keyup"!==n)return null;const i=e._normalizeKey(r.pop());let a="";if(T.forEach(e=>{const t=r.indexOf(e);t>-1&&(r.splice(t,1),a+=e+".")}),a+=i,0!=r.length||0===i.length)return null;const o={};return o.domEventName=n,o.fullKey=a,o}static getEventFullKey(e){let t="",r=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&w.hasOwnProperty(t)&&(t=w[t]))}return k[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),T.forEach(n=>{n!=r&&(0,A[n])(e)&&(t+=n+".")}),t+=r,t}static eventCallback(t,r,n){return i=>{e.getEventFullKey(i)===t&&n.runGuarded(()=>r(i))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(n.c))},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac}),e})(),P=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Hb)({factory:function(){return Object(i.Sb)(F)},token:e,providedIn:"root"}),e})();function O(e){return new F(e.get(n.c))}let F=(()=>{class e extends P{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.J.NONE:return t;case i.J.HTML:return Object(i.eb)(t,"HTML")?Object(i.xb)(t):Object(i.cb)(this._doc,String(t)).toString();case i.J.STYLE:return Object(i.eb)(t,"Style")?Object(i.xb)(t):t;case i.J.SCRIPT:if(Object(i.eb)(t,"Script"))return Object(i.xb)(t);throw new Error("unsafe value used in a script context");case i.J.URL:return Object(i.ob)(t),Object(i.eb)(t,"URL")?Object(i.xb)(t):Object(i.db)(String(t));case i.J.RESOURCE_URL:if(Object(i.eb)(t,"ResourceURL"))return Object(i.xb)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return Object(i.fb)(e)}bypassSecurityTrustStyle(e){return Object(i.ib)(e)}bypassSecurityTrustScript(e){return Object(i.hb)(e)}bypassSecurityTrustUrl(e){return Object(i.jb)(e)}bypassSecurityTrustResourceUrl(e){return Object(i.gb)(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(n.c))},e.\u0275prov=Object(i.Hb)({factory:function(){return O(Object(i.Sb)(i.o))},token:e,providedIn:"root"}),e})();const I=[{provide:i.C,useValue:n.s},{provide:i.D,useValue:function(){o.makeCurrent(),_.init()},multi:!0},{provide:n.c,useFactory:function(){return Object(i.vb)(document),document},deps:[]}],M=Object(i.S)(i.X,"browser",I),L=[[],{provide:i.ab,useValue:"root"},{provide:i.m,useFactory:function(){return new i.m},deps:[]},{provide:d,useClass:C,multi:!0,deps:[n.c,i.A,i.C]},{provide:d,useClass:N,multi:!0,deps:[n.c]},[],{provide:x,useClass:x,deps:[p,m,i.c]},{provide:i.G,useExisting:x},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[n.c]},{provide:i.N,useClass:i.N,deps:[i.A]},{provide:p,useClass:p,deps:[d,i.A]},[]];let R=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:i.c,useValue:t.appId},{provide:u,useExisting:i.c},l]}}}return e.\u0275mod=i.Jb({type:e}),e.\u0275inj=i.Ib({factory:function(t){return new(t||e)(i.Sb(e,12))},providers:L,imports:[n.b,i.f]}),e})();"undefined"!=typeof window&&window},cgln:function(e,t,r){"use strict";r.d(t,"a",function(){return p});var n=r("AytR"),i=r("8Y7J"),a=r("SVse");let o=(()=>{class e{constructor(e,t){this.document=e,this.platformId=t,this.documentIsAccessible=Object(a.p)(this.platformId)}check(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))}get(e){if(this.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);const t=this.getCookieRegExp(e).exec(this.document.cookie);return this.safeDecodeURIComponent(t[1])}return""}getAll(){if(!this.documentIsAccessible)return{};const e={},t=this.document;return t.cookie&&""!==t.cookie&&t.cookie.split(";").forEach(t=>{const[r,n]=t.split("=");e[this.safeDecodeURIComponent(r.replace(/^ /,""))]=this.safeDecodeURIComponent(n)}),e}set(e,t,r,n,i,a,o){if(!this.documentIsAccessible)return;if("number"==typeof r||r instanceof Date||n||i||a||o)return void this.set(e,t,{expires:r,path:n,domain:i,secure:a,sameSite:o||"Lax"});let s=encodeURIComponent(e)+"="+encodeURIComponent(t)+";";const c=r||{};c.expires&&(s+="number"==typeof c.expires?"expires="+new Date((new Date).getTime()+1e3*c.expires*60*60*24).toUTCString()+";":"expires="+c.expires.toUTCString()+";"),c.path&&(s+="path="+c.path+";"),c.domain&&(s+="domain="+c.domain+";"),!1===c.secure&&"None"===c.sameSite&&(c.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),c.secure&&(s+="secure;"),c.sameSite||(c.sameSite="Lax"),s+="sameSite="+c.sameSite+";",this.document.cookie=s}delete(e,t,r,n,i="Lax"){if(!this.documentIsAccessible)return;const a=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:a,path:t,domain:r,secure:n,sameSite:i})}deleteAll(e,t,r,n="Lax"){if(!this.documentIsAccessible)return;const i=this.getAll();for(const a in i)i.hasOwnProperty(a)&&this.delete(a,e,t,r,n)}getCookieRegExp(e){const t=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch(t){return e}}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(a.c),i.Sb(i.C))},e.\u0275prov=Object(i.Hb)({factory:function(){return new e(Object(i.Sb)(a.c),Object(i.Sb)(i.C))},token:e,providedIn:"root"}),e})();var s=r("srUL");class c{constructor(){this.trackingIds=[],"undefined"!=typeof ga&&ga&&ga(()=>{ga.getAll().forEach(e=>{const t=e.get("trackingId");void 0!==t&&-1===this.trackingIds.indexOf(t)&&this.trackingIds.push(t)})})}}let u=(()=>{class e{constructor(e){this.angulartics2=e,this.dimensionsAndMetrics={};const t=new c;this.angulartics2.settings.gst=Object.assign(Object.assign({},t),this.angulartics2.settings.gst)}startTracking(){this.angulartics2.pageTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(e=>this.pageTrack(e.path)),this.angulartics2.eventTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(e=>this.eventTrack(e.action,e.properties)),this.angulartics2.exceptionTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(e=>this.exceptionTrack(e)),this.angulartics2.userTimings.pipe(this.angulartics2.filterDeveloperMode()).subscribe(e=>this.userTimings(this.convertTimings(e))),this.angulartics2.setUsername.pipe(this.angulartics2.filterDeveloperMode()).subscribe(e=>this.setUsername(e)),this.angulartics2.setUserProperties.pipe(this.angulartics2.filterDeveloperMode()).subscribe(e=>this.setUserProperties(e))}pageTrack(e){if("undefined"!=typeof gtag&>ag){const t=Object.assign({page_path:e,page_location:window.location.protocol+"//"+window.location.host+e},this.dimensionsAndMetrics);this.angulartics2.settings.gst.customMap&&(t.custom_map=this.angulartics2.settings.gst.customMap),this.angulartics2.settings.gst.userId&&(t.user_id=this.angulartics2.settings.gst.userId),this.angulartics2.settings.gst.anonymizeIp&&(t.anonymize_ip=this.angulartics2.settings.gst.anonymizeIp);for(const e of this.angulartics2.settings.gst.trackingIds)gtag("config",e,t)}}eventTrack(e,t={}){this.eventTrackInternal(e,Object.assign({event_category:t.category||"interaction",event_label:t.label,value:t.value,non_interaction:t.noninteraction},t.gstCustom))}exceptionTrack(e){void 0===e.fatal&&(console.log('No "fatal" provided, sending with fatal=true'),e.fatal=!0),e.exDescription=e.event?e.event.stack:e.description,this.eventTrack("exception",{gstCustom:Object.assign({description:e.exDescription,fatal:e.fatal},e.gstCustom)})}userTimings(e){e?this.eventTrackInternal("timing_complete",{name:e.name,value:e.value,event_category:e.category,event_label:e.label}):console.error('User timings - "properties" parameter is required to be set.')}convertTimings(e){return{name:e.timingVar,value:e.timingValue,category:e.timingCategory,label:e.timingLabel}}setUsername(e){this.angulartics2.settings.gst.userId=e,"undefined"!=typeof gtag&>ag&>ag("set",{user_id:"string"!=typeof e&&e?e.userId:e})}setUserProperties(e){this.setDimensionsAndMetrics(e)}setDimensionsAndMetrics(e){this.dimensionsAndMetrics=Object.assign(Object.assign({},this.dimensionsAndMetrics),e),Object.keys(this.dimensionsAndMetrics).forEach(e=>{null==this.dimensionsAndMetrics[e]&&delete this.dimensionsAndMetrics[e]}),"undefined"!=typeof gtag&>ag&>ag("set",this.dimensionsAndMetrics)}eventTrackInternal(e,t={}){this.cleanProperties(t),"undefined"!=typeof gtag&>ag&>ag("event",e,t)}cleanProperties(e){if(e.value){const t=parseInt(e.value,10);e.value=isNaN(t)?0:t}}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(s.a))},e.\u0275prov=Object(i.Hb)({factory:function(){return new e(Object(i.Sb)(s.a))},token:e,providedIn:"root"}),e})();var l=r("iInd"),_=r("TSSN");function d(e,t){if(1&e){const e=i.Pb();i.Ob(0,"div",1),i.Ob(1,"span",2),i.qc(2),i.bc(3,"translate"),i.Ob(4,"a",3),i.qc(5),i.bc(6,"translate"),i.Nb(),i.Nb(),i.Ob(7,"div",4),i.Ob(8,"a",5),i.Wb("click",function(){return i.ic(e),i.ac().refuseCookies()}),i.qc(9),i.bc(10,"translate"),i.Nb(),i.Ob(11,"a",6),i.Wb("click",function(){return i.ic(e),i.ac().allowCookies()}),i.qc(12),i.bc(13,"translate"),i.Nb(),i.Nb(),i.Nb()}2&e&&(i.Bb(2),i.sc(" ",i.cc(3,4,"APP.COOKIEBANNER.MESSAGE")," "),i.Bb(3),i.rc(i.cc(6,6,"APP.COOKIEBANNER.PRIVACYLINK")),i.Bb(4),i.rc(i.cc(10,8,"APP.COOKIEBANNER.BUTTONS.DENY")),i.Bb(3),i.rc(i.cc(13,10,"APP.COOKIEBANNER.BUTTONS.ALLOW")))}let p=(()=>{class e{constructor(e,t){this.angulartics=e,this.cookieService=t,this.isBannerOpen=!0,this.showBanner=!1}get expiresAllowDate(){return new Date((new Date).setFullYear((new Date).getFullYear()+99))}get expiresRefuseDate(){return new Date((new Date).setDate((new Date).getDate()+1))}ngOnInit(){this.cookieService.check("cookiesAllowed")&&!this.showBanner&&(this.isBannerOpen=!1,"true"===this.cookieService.get("cookiesAllowed")&&this.startTracking())}refuseCookies(){this.isBannerOpen=!1,this.cookieService.set("cookiesAllowed","false",this.expiresRefuseDate)}allowCookies(){this.isBannerOpen=!1,this.cookieService.set("cookiesAllowed","true",this.expiresAllowDate),this.startTracking()}startTracking(){n.a.production&&this.angulartics.startTracking()}}return e.\u0275fac=function(t){return new(t||e)(i.Lb(u),i.Lb(o))},e.\u0275cmp=i.Fb({type:e,selectors:[["app-cookie-banner"]],inputs:{showBanner:"showBanner"},features:[i.Ab([o])],decls:1,vars:1,consts:[["class","dialog",4,"ngIf"],[1,"dialog"],[1,"message"],["routerLink","/privacy","target","_blank",1,"link"],[1,"options"],[1,"button","button-deny",3,"click"],[1,"button","button-allow",3,"click"]],template:function(e,t){1&e&&i.pc(0,d,14,12,"div",0),2&e&&i.fc("ngIf",t.isBannerOpen)},directives:[a.j,l.c],pipes:[_.c],styles:[".dialog[_ngcontent-%COMP%]{bottom:1em;right:1em;padding:0;color:#fff;background-color:#000;position:fixed;overflow:hidden;box-sizing:border-box;font-size:16px;line-height:1.5em;display:flex;flex-wrap:nowrap;z-index:9999;max-width:24em;flex-direction:column;opacity:1;transition:opacity 1s ease}.message[_ngcontent-%COMP%]{margin:2em 2em 1.5em;display:block}.link[_ngcontent-%COMP%]{opacity:.8;display:inline-block;padding:.2em;cursor:pointer}.link[_ngcontent-%COMP%], link[_ngcontent-%COMP%]:hover{text-decoration:underline}link[_ngcontent-%COMP%]:visited{color:initial}a[_ngcontent-%COMP%]{background-color:transparent}.options[_ngcontent-%COMP%]{flex:1 0 auto;display:flex;align-items:center;align-content:space-between;color:#fff}.button-deny[_ngcontent-%COMP%]{color:#fff;display:block;padding:.4em .8em;text-decoration:none}.button-deny[_ngcontent-%COMP%]:first-child{background-color:transparent;border-color:transparent}.button-allow[_ngcontent-%COMP%]{margin-left:0;color:#000;background-color:#f1d600;border-color:transparent;display:block;padding:.4em .8em}.button-allow[_ngcontent-%COMP%]:hover{background-color:#fffc26}.button[_ngcontent-%COMP%]:hover{text-decoration:underline}.button[_ngcontent-%COMP%]{flex:1;font-size:.9em;font-weight:700;border-width:2px;border-style:solid;text-align:center;white-space:nowrap;cursor:pointer}"]}),e})()},cp0P:function(e,t,r){"use strict";r.d(t,"a",function(){return c});var n=r("HDdC"),i=r("DH7j"),a=r("lJxs"),o=r("XoHu"),s=r("Cfvw");function c(...e){if(1===e.length){const t=e[0];if(Object(i.a)(t))return u(t,null);if(Object(o.a)(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return u(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return u(e=1===e.length&&Object(i.a)(e[0])?e[0]:e,null).pipe(Object(a.a)(e=>t(...e)))}return u(e,null)}function u(e,t){return new n.a(r=>{const n=e.length;if(0===n)return void r.complete();const i=new Array(n);let a=0,o=0;for(let c=0;c{l||(l=!0,o++),i[c]=e},error:e=>r.error(e),complete:()=>{a++,a!==n&&l||(o===n&&r.next(t?t.reduce((e,t,r)=>(e[t]=i[r],e),{}):i),r.complete())}}))}})}},dJsq:function(e,t,r){"use strict";r.d(t,"a",function(){return y}),r.d(t,"b",function(){return D}),r.d(t,"c",function(){return S});var n=r("8Y7J"),i=r("2Vo4"),a=r("EY2u"),o=r("z6cu"),s=r("1uah"),c=r("Cfvw"),u=r("eNwd"),l=r("pLZG"),_=r("lJxs"),d=r("IzEk"),p=r("eIep"),f=r("vkgz"),g=r("JIr8"),m=r("SVse"),h=r("cUpR");const y=new n.r("HIGHLIGHT_OPTIONS");let v=(()=>{class e{constructor(e,t,r){this._options=r,this._ready=new i.a(null),this.ready=this._ready.asObservable().pipe(Object(l.a)(e=>!!e),Object(_.a)(e=>e),Object(d.a)(1)),Object(m.p)(t)&&e.defaultView.hljs?this._ready.next(e.defaultView.hljs):this._loadLibrary().pipe(Object(p.a)(t=>this._options&&this._options.lineNumbersLoader?(e.defaultView.hljs=t,this.loadLineNumbers().pipe(Object(f.a)(()=>this._ready.next(t)))):(this._ready.next(t),a.a)),Object(g.a)(e=>(console.error("[HLJS] ",e),a.a))).subscribe()}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return Object(o.a)("The full library and the core library were imported, only one of them should be imported!");if(this._options.fullLibraryLoader&&this._options.languages)return Object(o.a)("The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return Object(o.a)("The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return Object(o.a)("The core library was not imported!");if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe(Object(p.a)(e=>this._loadLanguages(e)))}return Object(o.a)("Highlight.js library was not imported!")}_loadLanguages(e){const t=Object.entries(this._options.languages).map(([t,r])=>b(r()).pipe(Object(f.a)(r=>e.registerLanguage(t,r))));return Object(s.a)(...t).pipe(Object(_.a)(()=>e))}loadCoreLibrary(){return b(this._options.coreLibraryLoader())}loadFullLibrary(){return b(this._options.fullLibraryLoader())}loadLineNumbers(){return b(this._options.lineNumbersLoader())}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(m.c),n.Sb(n.C),n.Sb(y,8))},e.\u0275prov=Object(n.Hb)({factory:function(){return new e(Object(n.Sb)(m.c),Object(n.Sb)(n.C),Object(n.Sb)(y,8))},token:e,providedIn:"root"}),e})();const b=e=>Object(c.a)(e).pipe(Object(l.a)(e=>!!e&&!!e.default),Object(_.a)(e=>e.default));let x=(()=>{class e{constructor(e,t){this._loader=e,this._hljs=null,e.ready.pipe().subscribe(e=>{this._hljs=e,t&&t.config&&(e.configure(t.config),e.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))})}get hljs(){return this._hljs}highlight(e,t,r,n){return this._loader.ready.pipe(Object(_.a)(i=>i.highlight(e,t,r,n)))}highlightAuto(e,t){return this._loader.ready.pipe(Object(_.a)(r=>r.highlightAuto(e,t)))}fixMarkup(e){return this._loader.ready.pipe(Object(_.a)(t=>t.fixMarkup(e)))}highlightBlock(e){return this._loader.ready.pipe(Object(_.a)(t=>t.highlightBlock(e)))}configure(e){return this._loader.ready.pipe(Object(_.a)(t=>t.configure(e)))}initHighlighting(){return this._loader.ready.pipe(Object(_.a)(e=>e.initHighlighting()))}registerLanguage(e,t){return this._loader.ready.pipe(Object(f.a)(r=>r.registerLanguage(e,t)))}listLanguages(){return this._loader.ready.pipe(Object(_.a)(e=>e.listLanguages()))}getLanguage(e){return this._loader.ready.pipe(Object(_.a)(t=>t.getLanguage(e)))}lineNumbersBlock(e){return this._loader.ready.pipe(Object(l.a)(e=>!!e.lineNumbersBlock),Object(f.a)(t=>t.lineNumbersBlock(e)))}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(v),n.Sb(y,8))},e.\u0275prov=Object(n.Hb)({factory:function(){return new e(Object(n.Sb)(v),Object(n.Sb)(y,8))},token:e,providedIn:"root"}),e})(),D=(()=>{class e{constructor(e,t,r,i){this._hljs=t,this._sanitizer=r,this._options=i,this.highlighted=new n.n,this._nativeElement=e.nativeElement}ngOnChanges(e){this.code&&e.code&&void 0!==e.code.currentValue&&e.code.currentValue!==e.code.previousValue&&this.highlightElement(this.code,this.languages)}highlightElement(e,t){this.setTextContent(e),this._hljs.highlightAuto(e,t).subscribe(e=>{this.setInnerHTML(e.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(e)})}addLineNumbers(){this.destroyLineNumbersObserver(),u.a.schedule(()=>{this._hljs.lineNumbersBlock(this._nativeElement).subscribe(),this._lineNumbersObs=new MutationObserver(()=>{this._nativeElement.firstElementChild&&"TABLE"===this._nativeElement.firstElementChild.tagName.toUpperCase()&&this._nativeElement.classList.add("hljs-line-numbers"),this.destroyLineNumbersObserver()}),this._lineNumbersObs.observe(this._nativeElement,{childList:!0})})}destroyLineNumbersObserver(){this._lineNumbersObs&&(this._lineNumbersObs.disconnect(),this._lineNumbersObs=null)}setTextContent(e){u.a.schedule(()=>this._nativeElement.textContent=e)}setInnerHTML(e){u.a.schedule(()=>this._nativeElement.innerHTML=this._sanitizer.sanitize(n.J.HTML,e)||"")}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.l),n.Lb(x),n.Lb(h.b),n.Lb(y,8))},e.\u0275dir=n.Gb({type:e,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(e,t){2&e&&n.Db("hljs",!0)},inputs:{code:["highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},features:[n.zb]}),e})(),S=(()=>{class e{}return e.\u0275mod=n.Jb({type:e}),e.\u0275inj=n.Ib({factory:function(t){return new(t||e)}}),e})()},eIep:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("lJxs"),i=r("Cfvw"),a=r("zx2A");function o(e,t){return"function"==typeof t?r=>r.pipe(o((r,a)=>Object(i.a)(e(r,a)).pipe(Object(n.a)((e,n)=>t(r,e,a,n))))):t=>t.lift(new s(e))}class s{constructor(e){this.project=e}call(e,t){return t.subscribe(new c(e,this.project))}}class c extends a.b{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const r=this.index++;try{t=this.project(e,r)}catch(n){return void this.destination.error(n)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const r=new a.a(this),n=this.destination;n.add(r),this.innerSubscription=Object(a.c)(e,r),this.innerSubscription!==r&&n.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}},eNwd:function(e,t,r){"use strict";r.d(t,"a",function(){return s});var n=r("3N8a");class i extends n.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,r=0){return null!==r&&r>0?super.requestAsyncId(e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,r=0){if(null!==r&&r>0||null===r&&this.delay>0)return super.recycleAsyncId(e,t,r);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}var a=r("IjjT");class o extends a.a{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let r,n=-1,i=t.length;e=e||t.shift();do{if(r=e.execute(e.state,e.delay))break}while(++n=0}var m=r("z+Ro");function h(e){const{index:t,period:r,subscriber:n}=e;if(n.next(t),!n.closed){if(-1===r)return n.complete();e.index=t+1,this.schedule(e,r)}}function y(e,t=l.a){return r=()=>function(e=0,t,r){let n=-1;return g(t)?n=Number(t)<1?1:Number(t):Object(m.a)(t)&&(r=t),Object(m.a)(r)||(r=l.a),new s.a(t=>{const i=g(e)?e:+e-r.now();return r.schedule(h,i,{index:0,period:n,subscriber:t})})}(e,t),function(e){return e.lift(new d(r))};var r}var v=r("pLZG"),b=r("1G5W"),x=r("JX91");r("7o/Q"),r("eIep"),r("UXun");var D=r("SVse");let S;try{S="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ot){S=!1}let E,C,T,k=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Object(D.p)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!S)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(i.C))},e.\u0275prov=Object(i.Hb)({factory:function(){return new e(Object(i.Sb)(i.C))},token:e,providedIn:"root"}),e})(),w=(()=>{class e{}return e.\u0275mod=i.Jb({type:e}),e.\u0275inj=i.Ib({factory:function(t){return new(t||e)}}),e})();function A(e){return function(){if(null==E&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>E=!0}))}finally{E=E||!1}return E}()?e:!!e.capture}function N(){if(null==C){if("object"!=typeof document||!document)return C=!1,C;if("scrollBehavior"in document.documentElement.style)C=!0;else{const e=Element.prototype.scrollTo;C=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return C}var P=r("9gLZ");let O=(()=>{class e{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new a.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new s.a(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(y(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(o.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Object(v.a)(e=>!e||r.indexOf(e)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,n)=>{this._scrollableContainsElement(n,e)&&t.push(n)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=Object(n.d)(t),i=e.getElementRef().nativeElement;do{if(r==i)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const e=this._getWindow();return Object(c.a)(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(i.A),i.Sb(k),i.Sb(D.c,8))},e.\u0275prov=Object(i.Hb)({factory:function(){return new e(Object(i.Sb)(i.A),Object(i.Sb)(k),Object(i.Sb)(D.c,8))},token:e,providedIn:"root"}),e})(),F=(()=>{class e{constructor(e,t,r){this._platform=e,this._change=new a.a,this._changeListener=e=>{this._change.next(e)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const e=this._getWindow();e.addEventListener("resize",this._changeListener),e.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,n=r.getBoundingClientRect();return{top:-n.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-n.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(y(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(k),i.Sb(i.A),i.Sb(D.c,8))},e.\u0275prov=Object(i.Hb)({factory:function(){return new e(Object(i.Sb)(k),Object(i.Sb)(i.A),Object(i.Sb)(D.c,8))},token:e,providedIn:"root"}),e})(),I=(()=>{class e{}return e.\u0275mod=i.Jb({type:e}),e.\u0275inj=i.Ib({factory:function(t){return new(t||e)}}),e})(),M=(()=>{class e{}return e.\u0275mod=i.Jb({type:e}),e.\u0275inj=i.Ib({factory:function(t){return new(t||e)},imports:[[P.a,w,I],P.a,I]}),e})();class L{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class R extends L{constructor(e,t,r,n){super(),this.component=e,this.viewContainerRef=t,this.injector=r,this.componentFactoryResolver=n}}class B extends L{constructor(e,t,r){super(),this.templateRef=e,this.viewContainerRef=t,this.context=r}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class j extends L{constructor(e){super(),this.element=e instanceof i.l?e.nativeElement:e}}class U{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof R?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof B?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof j?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class z extends U{constructor(e,t,r,n,i){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=r,this._defaultInjector=n,this.attachDomPortal=e=>{const t=e.element,r=this._document.createComment("dom-portal");t.parentNode.insertBefore(r,t),this.outletElement.appendChild(t),super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(t,r)})},this._document=i}attachComponentPortal(e){const t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(e.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),r}attachTemplatePortal(e){let t=e.viewContainerRef,r=t.createEmbeddedView(e.templateRef,e.context);return r.rootNodes.forEach(e=>this.outletElement.appendChild(e)),r.detectChanges(),this.setDisposeFn(()=>{let e=t.indexOf(r);-1!==e&&t.remove(e)}),r}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let J=(()=>{class e extends U{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.n,this.attachDomPortal=e=>{const t=e.element,r=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(r,t),this._getRootNode().appendChild(t),super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(t,r)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),n=t.createComponent(r,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return e.\u0275fac=function(t){return new(t||e)(i.Lb(i.j),i.Lb(i.Q),i.Lb(D.c))},e.\u0275dir=i.Gb({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.yb]}),e})(),V=(()=>{class e{}return e.\u0275mod=i.Jb({type:e}),e.\u0275inj=i.Ib({factory:function(t){return new(t||e)}}),e})();var W=r("VRyK"),q=r("IzEk");r("GJmQ");const K=N();class H{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Object(n.c)(-this._previousScrollPosition.left),e.style.top=Object(n.c)(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,t=e.style,r=this._document.body.style,n=t.scrollBehavior||"",i=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),K&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),K&&(t.scrollBehavior=n,r.scrollBehavior=i)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class G{constructor(e,t,r,n){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=r,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Q{enable(){}disable(){}attach(){}}function $(e,t){return t.some(t=>e.bottomt.bottom||e.rightt.right)}function X(e,t){return t.some(t=>e.topt.bottom||e.leftt.right)}class Y{constructor(e,t,r,n){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this._config=n,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();$(e,[{width:t,height:r,bottom:r,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Z=(()=>{class e{constructor(e,t,r,n){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new Q,this.close=e=>new G(this._scrollDispatcher,this._ngZone,this._viewportRuler,e),this.block=()=>new H(this._viewportRuler,this._document),this.reposition=e=>new Y(this._scrollDispatcher,this._viewportRuler,this._ngZone,e),this._document=n}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(O),i.Sb(F),i.Sb(i.A),i.Sb(D.c))},e.\u0275prov=Object(i.Hb)({factory:function(){return new e(Object(i.Sb)(O),Object(i.Sb)(F),Object(i.Sb)(i.A),Object(i.Sb)(D.c))},token:e,providedIn:"root"}),e})();class ee{constructor(e){if(this.scrollStrategy=new Q,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const r of t)void 0!==e[r]&&(this[r]=e[r])}}}class te{constructor(e,t,r,n,i){this.offsetX=r,this.offsetY=n,this.panelClass=i,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}class re{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let ne=(()=>{class e{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(D.c))},e.\u0275prov=Object(i.Hb)({factory:function(){return new e(Object(i.Sb)(D.c))},token:e,providedIn:"root"}),e})(),ie=(()=>{class e extends ne{constructor(e){super(e),this._keydownListener=e=>{const t=this._attachedOverlays;for(let r=t.length-1;r>-1;r--)if(t[r]._keydownEvents.observers.length>0){t[r]._keydownEvents.next(e);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(D.c))},e.\u0275prov=Object(i.Hb)({factory:function(){return new e(Object(i.Sb)(D.c))},token:e,providedIn:"root"}),e})(),ae=(()=>{class e extends ne{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._clickListener=e=>{const t=e.composedPath?e.composedPath()[0]:e.target,r=this._attachedOverlays.slice();for(let n=r.length-1;n>-1;n--){const i=r[n];if(!(i._outsidePointerEvents.observers.length<1)&&i.hasAttached()){if(i.overlayElement.contains(t))break;i._outsidePointerEvents.next(e)}}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(D.c),i.Sb(k))},e.\u0275prov=Object(i.Hb)({factory:function(){return new e(Object(i.Sb)(D.c),Object(i.Sb)(k))},token:e,providedIn:"root"}),e})();const oe=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let se=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||oe){const e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let t=0;tthis._backdropClick.next(e),this._keydownEvents=new a.a,this._outsidePointerEvents=new a.a,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Object(q.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Object(n.c)(this._config.width),e.height=Object(n.c)(this._config.height),e.minWidth=Object(n.c)(this._config.minWidth),e.minHeight=Object(n.c)(this._config.minHeight),e.maxWidth=Object(n.c)(this._config.maxWidth),e.maxHeight=Object(n.c)(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e,t=this._backdropElement;if(!t)return;let r=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",r),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",r)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(r,500))}_toggleClasses(e,t,r){const i=e.classList;Object(n.a)(t).forEach(e=>{e&&(r?i.add(e):i.remove(e))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(Object(b.a)(Object(W.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}const ue=/([A-Za-z%]+)$/;class le{constructor(e,t,r,n,i){this._viewportRuler=t,this._document=r,this._platform=n,this._overlayContainer=i,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new a.a,this._resizeSubscription=u.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const e=this._originRect,t=this._overlayRect,r=this._viewportRect,n=[];let i;for(let a of this._preferredPositions){let o=this._getOriginPoint(e,a),s=this._getOverlayPoint(o,t,a),c=this._getOverlayFit(s,t,r,a);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,o);this._canFitWithFlexibleDimensions(c,s,r)?n.push({position:a,origin:o,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(o,a)}):(!i||i.overlayFit.visibleAreat&&(t=n,e=r)}return this._isPushed=!1,void this._applyPosition(e.position,e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&_e(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t){let r,n;if("center"==t.originX)r=e.left+e.width/2;else{const n=this._isRtl()?e.right:e.left,i=this._isRtl()?e.left:e.right;r="start"==t.originX?n:i}return n="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,{x:r,y:n}}_getOverlayPoint(e,t,r){let n,i;return n="center"==r.overlayX?-t.width/2:"start"===r.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,i="center"==r.overlayY?-t.height/2:"top"==r.overlayY?0:-t.height,{x:e.x+n,y:e.y+i}}_getOverlayFit(e,t,r,n){const i=pe(t);let{x:a,y:o}=e,s=this._getOffset(n,"x"),c=this._getOffset(n,"y");s&&(a+=s),c&&(o+=c);let u=0-o,l=o+i.height-r.height,_=this._subtractOverflows(i.width,0-a,a+i.width-r.width),d=this._subtractOverflows(i.height,u,l),p=_*d;return{visibleArea:p,isCompletelyWithinViewport:i.width*i.height===p,fitsInViewportVertically:d===i.height,fitsInViewportHorizontally:_==i.width}}_canFitWithFlexibleDimensions(e,t,r){if(this._hasFlexibleDimensions){const n=r.bottom-t.y,i=r.right-t.x,a=de(this._overlayRef.getConfig().minHeight),o=de(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=o&&o<=i;return(e.fitsInViewportVertically||null!=a&&a<=n)&&s}return!1}_pushOverlayOnScreen(e,t,r){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const n=pe(t),i=this._viewportRect,a=Math.max(e.x+n.width-i.width,0),o=Math.max(e.y+n.height-i.height,0),s=Math.max(i.top-r.top-e.y,0),c=Math.max(i.left-r.left-e.x,0);let u=0,l=0;return u=n.width<=i.width?c||-a:e.xn&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.y-n/2)}if("end"===t.overlayX&&!n||"start"===t.overlayX&&n)u=r.width-e.x+this._viewportMargin,s=e.x-this._viewportMargin;else if("start"===t.overlayX&&!n||"end"===t.overlayX&&n)c=e.x,s=r.right-e.x;else{const t=Math.min(r.right-e.x+r.left,e.x),n=this._lastBoundingBoxSize.width;s=2*t,c=e.x-t,s>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=e.x-n/2)}return{top:a,left:c,bottom:o,right:u,width:s,height:i}}_setBoundingBoxStyles(e,t){const r=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(r.height=Math.min(r.height,this._lastBoundingBoxSize.height),r.width=Math.min(r.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const e=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=Object(n.c)(r.height),i.top=Object(n.c)(r.top),i.bottom=Object(n.c)(r.bottom),i.width=Object(n.c)(r.width),i.left=Object(n.c)(r.left),i.right=Object(n.c)(r.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",e&&(i.maxHeight=Object(n.c)(e)),a&&(i.maxWidth=Object(n.c)(a))}this._lastBoundingBoxSize=r,_e(this._boundingBox.style,i)}_resetBoundingBoxStyles(){_e(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){_e(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const r={},i=this._hasExactPosition(),a=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){const n=this._viewportRuler.getViewportScrollPosition();_e(r,this._getExactOverlayY(t,e,n)),_e(r,this._getExactOverlayX(t,e,n))}else r.position="static";let s="",c=this._getOffset(t,"x"),u=this._getOffset(t,"y");c&&(s+=`translateX(${c}px) `),u&&(s+=`translateY(${u}px)`),r.transform=s.trim(),o.maxHeight&&(i?r.maxHeight=Object(n.c)(o.maxHeight):a&&(r.maxHeight="")),o.maxWidth&&(i?r.maxWidth=Object(n.c)(o.maxWidth):a&&(r.maxWidth="")),_e(this._pane.style,r)}_getExactOverlayY(e,t,r){let i={top:"",bottom:""},a=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,r));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return a.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(a.y+this._overlayRect.height)+"px":i.top=Object(n.c)(a.y),i}_getExactOverlayX(e,t,r){let i,a={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,r)),i=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===i?a.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":a.left=Object(n.c)(o.x),a}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),r=this._scrollables.map(e=>e.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:X(e,r),isOriginOutsideView:$(e,r),isOverlayClipped:X(t,r),isOverlayOutsideView:$(t,r)}}_subtractOverflows(e,...t){return t.reduce((e,t)=>e-Math.max(t,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,r=this._viewportRuler.getViewportScrollPosition();return{top:r.top+this._viewportMargin,left:r.left+this._viewportMargin,right:r.left+e-this._viewportMargin,bottom:r.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Object(n.a)(e).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof i.l)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,r=e.height||0;return{top:e.y,bottom:e.y+r,left:e.x,right:e.x+t,height:r,width:t}}}function _e(e,t){for(let r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function de(e){if("number"!=typeof e&&null!=e){const[t,r]=e.split(ue);return r&&"px"!==r?null:parseFloat(t)}return e||null}function pe(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}class fe{constructor(e,t,r,n,i,a,o){this._preferredPositions=[],this._positionStrategy=new le(r,n,i,a,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,t),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(e){this._positionStrategy.withScrollableContainers(e)}withFallbackPosition(e,t,r,n){const i=new te(e,t,r,n);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}withOffsetX(e){return this._positionStrategy.withDefaultOffsetX(e),this}withOffsetY(e){return this._positionStrategy.withDefaultOffsetY(e),this}withLockedPosition(e){return this._positionStrategy.withLockedPosition(e),this}withPositions(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(e){return this._positionStrategy.setOrigin(e),this}}class ge{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,r=this._overlayRef.getConfig(),{width:n,height:i,maxWidth:a,maxHeight:o}=r,s=!("100%"!==n&&"100vw"!==n||a&&"100%"!==a&&"100vw"!==a),c=!("100%"!==i&&"100vh"!==i||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,r=t.style;t.classList.remove("cdk-global-overlay-wrapper"),r.justifyContent=r.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let me=(()=>{class e{constructor(e,t,r,n){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=n}global(){return new ge}connectedTo(e,t,r){return new fe(t,r,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new le(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(F),i.Sb(D.c),i.Sb(k),i.Sb(se))},e.\u0275prov=Object(i.Hb)({factory:function(){return new e(Object(i.Sb)(F),Object(i.Sb)(D.c),Object(i.Sb)(k),Object(i.Sb)(se))},token:e,providedIn:"root"}),e})(),he=0,ye=(()=>{class e{constructor(e,t,r,n,i,a,o,s,c,u,l){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=n,this._keyboardDispatcher=i,this._injector=a,this._ngZone=o,this._document=s,this._directionality=c,this._location=u,this._outsideClickDispatcher=l}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),n=this._createPortalOutlet(r),i=new ee(e);return i.direction=i.direction||this._directionality.value,new ce(n,t,r,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+he++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(i.g)),new z(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(Z),i.Sb(se),i.Sb(i.j),i.Sb(me),i.Sb(ie),i.Sb(i.s),i.Sb(i.A),i.Sb(D.c),i.Sb(P.b),i.Sb(D.f),i.Sb(ae))},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac}),e})();const ve={provide:new i.r("cdk-connected-overlay-scroll-strategy"),deps:[ye],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let be=(()=>{class e{}return e.\u0275mod=i.Jb({type:e}),e.\u0275inj=i.Ib({factory:function(t){return new(t||e)},providers:[ye,ve],imports:[[P.a,V,M],M]}),e})();r("vkgz"),r("Kj3r"),r("lJxs");let xe=(()=>{class e{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function(e){try{return e.frameElement}catch(ot){return null}}((r=e).ownerDocument&&r.ownerDocument.defaultView||window);var r;if(t){if(-1===Se(t))return!1;if(!this.isVisible(t))return!1}let n=e.nodeName.toLowerCase(),i=Se(e);return e.hasAttribute("contenteditable")?-1!==i:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){let t=e.nodeName.toLowerCase(),r="input"===t&&e.type;return"text"===r||"password"===r||"select"===t||"textarea"===t}(e))&&("audio"===n?!!e.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){let t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||De(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(k))},e.\u0275prov=Object(i.Hb)({factory:function(){return new e(Object(i.Sb)(k))},token:e,providedIn:"root"}),e})();function De(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Se(e){if(!De(e))return null;const t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class Ee{constructor(e,t,r,n,i=!1){this._element=e,this._checker=t,this._ngZone=r,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,i||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement()))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);for(let r=0;r=0;r--){let e=t[r].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[r]):null;if(e)return e}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Object(q.a)(1)).subscribe(e)}}let Ce=(()=>{class e{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new Ee(e,this._checker,this._ngZone,this._document,t)}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(xe),i.Sb(i.A),i.Sb(D.c))},e.\u0275prov=Object(i.Hb)({factory:function(){return new e(Object(i.Sb)(xe),Object(i.Sb)(i.A),Object(i.Sb)(D.c))},token:e,providedIn:"root"}),e})();"undefined"!=typeof Element&∈const Te=new i.r("cdk-focus-monitor-default-options"),ke=A({passive:!0,capture:!0});let we=(()=>{class e{constructor(e,t,r,n){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=e=>{if(!this._lastTouchTarget){const t=function(e){return 0===e.buttons}(e)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=e=>{!function(e){const t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}(e)?(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Ae(e),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)):this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard")},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=e=>{const t=Ae(e),r="focus"===e.type?this._onFocus:this._onBlur;for(let n=t;n;n=n.parentElement)r.call(this,e,n)},this._document=r,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(e,t=!1){const r=Object(n.d)(e);if(!this._platform.isBrowser||1!==r.nodeType)return Object(o.a)(null);const i=function(e){if(function(){if(null==T){const e="undefined"!=typeof document?document.head:null;T=!(!e||!e.createShadowRoot&&!e.attachShadow)}return T}()){const t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return t&&(s.checkChildren=!0),s.subject;const c={checkChildren:t,subject:new a.a,rootNode:i};return this._elementInfo.set(r,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){const t=Object(n.d)(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const i=Object(n.d)(e);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([e,r])=>this._originChanged(e,t,r)):(this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,t,r){r?e.classList.add(t):e.classList.remove(t)}_getFocusOrigin(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}_setClasses(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}_setOriginForCurrentEventQueue(e){this._ngZone.runOutsideAngular(()=>{this._origin=e,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(e){const t=Ae(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}_onFocus(e,t){const r=this._elementInfo.get(t);r&&(r.checkChildren||t===Ae(e))&&this._originChanged(t,this._getFocusOrigin(e),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,ke),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,ke)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const e=this._getDocument(),t=this._getWindow();e.addEventListener("keydown",this._documentKeydownListener,ke),e.addEventListener("mousedown",this._documentMousedownListener,ke),e.addEventListener("touchstart",this._documentTouchstartListener,ke),t.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const e=this._rootNodeFocusListenerCount.get(t);e>1?this._rootNodeFocusListenerCount.set(t,e-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ke),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ke),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){const e=this._getDocument(),t=this._getWindow();e.removeEventListener("keydown",this._documentKeydownListener,ke),e.removeEventListener("mousedown",this._documentMousedownListener,ke),e.removeEventListener("touchstart",this._documentTouchstartListener,ke),t.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,n)=>{(n===e||r.checkChildren&&n.contains(e))&&t.push([n,r])}),t}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(i.A),i.Sb(k),i.Sb(D.c,8),i.Sb(Te,8))},e.\u0275prov=Object(i.Hb)({factory:function(){return new e(Object(i.Sb)(i.A),Object(i.Sb)(k),Object(i.Sb)(D.c,8),Object(i.Sb)(Te,8))},token:e,providedIn:"root"}),e})();function Ae(e){return e.composedPath?e.composedPath()[0]:e.target}let Ne=(()=>{class e{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,n=(r&&r.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");const t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(k),i.Sb(D.c))},e.\u0275prov=Object(i.Hb)({factory:function(){return new e(Object(i.Sb)(k),Object(i.Sb)(D.c))},token:e,providedIn:"root"}),e})();const Pe=new i.P("11.2.3");r("omvX");const Oe=new i.P("11.2.3"),Fe=new i.r("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Ie,Me=(()=>{class e{constructor(e,t,r){this._hasDoneGlobalChecks=!1,this._document=r,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=t,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Object(i.W)()&&!this._isTestEnv()}_isTestEnv(){const e=this._getWindow();return e&&(e.__karma__||e.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Oe.full!==Pe.full&&console.warn("The Angular Material version ("+Oe.full+") does not match the Angular CDK version ("+Pe.full+").\nPlease ensure the versions of these two packages exactly match.")}}return e.\u0275mod=i.Jb({type:e}),e.\u0275inj=i.Ib({factory:function(t){return new(t||e)(i.Sb(Ne),i.Sb(Fe,8),i.Sb(D.c))},imports:[[P.a],P.a]}),e})();try{Ie="undefined"!=typeof Intl}catch(ot){Ie=!1}var Le=r("NXyV"),Re=r("GS7A");function Be(e,t){}class je{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const Ue={dialogContainer:Object(Re.j)("dialogContainer",[Object(Re.g)("void, exit",Object(Re.h)({opacity:0,transform:"scale(0.7)"})),Object(Re.g)("enter",Object(Re.h)({transform:"none"})),Object(Re.i)("* => enter",Object(Re.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(Re.h)({transform:"none",opacity:1}))),Object(Re.i)("* => void, * => exit",Object(Re.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(Re.h)({opacity:0})))])};let ze=(()=>{class e extends U{constructor(e,t,r,n,a,o){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=r,this._config=a,this._focusMonitor=o,this._animationStateChanged=new i.n,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=e=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(e)),this._ariaLabelledBy=a.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=this._document.activeElement,r=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==r&&!r.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}}return e.\u0275fac=function(t){return new(t||e)(i.Lb(i.l),i.Lb(Ce),i.Lb(i.h),i.Lb(D.c,8),i.Lb(je),i.Lb(we))},e.\u0275dir=i.Gb({type:e,viewQuery:function(e,t){if(1&e&&i.vc(J,3),2&e){let e;i.gc(e=i.Xb())&&(t._portalOutlet=e.first)}},features:[i.yb]}),e})(),Je=(()=>{class e extends ze{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(t){return Ve(t||e)},e.\u0275cmp=i.Fb({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&i.nc("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(i.Rb("id",t._id),i.Cb("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.oc("@dialogContainer",t._state))},features:[i.yb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.pc(0,Be,0,0,"ng-template",0)},directives:[J],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Ue.dialogContainer]}}),e})();const Ve=i.Qb(Je);let We=0;class qe{constructor(e,t,r="mat-dialog-"+We++){this._overlayRef=e,this._containerInstance=t,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new a.a,this._afterClosed=new a.a,this._beforeClosed=new a.a,this._state=0,t._id=r,t._animationStateChanged.pipe(Object(v.a)(e=>"opened"===e.state),Object(q.a)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(Object(v.a)(e=>"closed"===e.state),Object(q.a)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),e.keydownEvents().pipe(Object(v.a)(e=>27===e.keyCode&&!this.disableClose&&!function(e,...t){return t.length?t.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}(e))).subscribe(e=>{e.preventDefault(),Ke(this,"keyboard")}),e.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Ke(this,"mouse")})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Object(v.a)(e=>"closing"===e.state),Object(q.a)(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(e){let t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(e="",t=""){return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}addPanelClass(e){return this._overlayRef.addPanelClass(e),this}removePanelClass(e){return this._overlayRef.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Ke(e,t,r){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(r)}const He=new i.r("MatDialogData"),Ge=new i.r("mat-dialog-default-options"),Qe=new i.r("mat-dialog-scroll-strategy"),$e={provide:Qe,deps:[ye],useFactory:function(e){return()=>e.scrollStrategies.block()}};let Xe=(()=>{class e{constructor(e,t,r,n,i,o,s,c,u){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=n,this._overlayContainer=i,this._dialogRefConstructor=s,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new a.a,this._afterOpenedAtThisLevel=new a.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(Le.a)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Object(x.a)(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new je)).id&&this.getDialogById(t.id);const r=this._createOverlay(t),n=this._attachDialogContainer(r,t),i=this._attachDialogContent(e,n,r,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(i),i.afterClosed().subscribe(()=>this._removeOpenDialog(i)),this.afterOpened.next(i),n._initializeWithAttachedContent(),i}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new ee({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const r=i.s.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:je,useValue:t}]}),n=new R(this._dialogContainerType,t.viewContainerRef,r,t.componentFactoryResolver);return e.attach(n).instance}_attachDialogContent(e,t,r,n){const a=new this._dialogRefConstructor(r,t,n.id);if(e instanceof i.M)t.attachTemplatePortal(new B(e,null,{$implicit:n.data,dialogRef:a}));else{const r=this._createInjector(n,a,t),i=t.attachComponentPortal(new R(e,n.viewContainerRef,r));a.componentInstance=i.instance}return a.updateSize(n.width,n.height).updatePosition(n.position),a}_createInjector(e,t,r){const n=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||n&&n.get(P.b,null)||a.push({provide:P.b,useValue:{value:e.direction,change:Object(o.a)()}}),i.s.create({parent:n||this._injector,providers:a})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){let n=t[r];n===e||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return e.\u0275fac=function(t){return new(t||e)(i.Lb(ye),i.Lb(i.s),i.Lb(void 0),i.Lb(void 0),i.Lb(se),i.Lb(void 0),i.Lb(i.O),i.Lb(i.O),i.Lb(i.r))},e.\u0275dir=i.Gb({type:e}),e})(),Ye=(()=>{class e extends Xe{constructor(e,t,r,n,i,a,o){super(e,t,n,a,o,i,qe,Je,He)}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(ye),i.Sb(i.s),i.Sb(D.f,8),i.Sb(Ge,8),i.Sb(Qe),i.Sb(e,12),i.Sb(se))},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac}),e})(),Ze=0,et=(()=>{class e{constructor(e,t,r){this.dialogRef=e,this._elementRef=t,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=it(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}_onButtonClick(e){Ke(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return e.\u0275fac=function(t){return new(t||e)(i.Lb(qe,8),i.Lb(i.l),i.Lb(Ye))},e.\u0275dir=i.Gb({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.Wb("click",function(e){return t._onButtonClick(e)}),2&e&&i.Cb("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[i.zb]}),e})(),tt=(()=>{class e{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+Ze++}ngOnInit(){this._dialogRef||(this._dialogRef=it(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return e.\u0275fac=function(t){return new(t||e)(i.Lb(qe,8),i.Lb(i.l),i.Lb(Ye))},e.\u0275dir=i.Gb({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Rb("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e})(),rt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Gb({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e})(),nt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Gb({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e})();function it(e,t){let r=e.nativeElement.parentElement;for(;r&&!r.classList.contains("mat-dialog-container");)r=r.parentElement;return r?t.find(e=>e.id===r.id):null}let at=(()=>{class e{}return e.\u0275mod=i.Jb({type:e}),e.\u0275inj=i.Ib({factory:function(t){return new(t||e)},providers:[Ye,$e],imports:[[be,V,Me],Me]}),e})()},iInd:function(e,t,r){"use strict";r.d(t,"a",function(){return te}),r.d(t,"b",function(){return Dr}),r.d(t,"c",function(){return Sr}),r.d(t,"d",function(){return Mr}),r.d(t,"e",function(){return Cr});var n=r("SVse"),i=r("8Y7J"),a=r("Cfvw"),o=r("LRne"),s=r("2Vo4"),c=r("z+Ro"),u=r("DH7j"),l=r("7o/Q");class _ extends l.a{notifyNext(e,t,r,n,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class d extends l.a{constructor(e,t,r){super(),this.parent=e,this.outerValue=t,this.outerIndex=r,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var p=r("SeVD"),f=r("HDdC");function g(e,t,r,n,i=new d(e,r,n)){if(!i.closed)return t instanceof f.a?t.subscribe(i):Object(p.a)(t)(i)}var m=r("yCtX");const h={};class y{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new v(e,this.resultSelector))}}class v extends _{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(h),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let r=0;r{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})();var x=r("GyhO"),D=r("NXyV"),S=r("EY2u"),E=r("EQ5u"),C=r("XNiG"),T=r("lJxs"),k=r("eIep"),w=r("IzEk"),A=r("JX91");function N(e,t){let r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new P(e,t,r))}}class P{constructor(e,t,r=!1){this.accumulator=e,this.seed=t,this.hasSeed=r}call(e,t){return t.subscribe(new O(e,this.accumulator,this.seed,this.hasSeed))}}class O extends l.a{constructor(e,t,r,n){super(e),this.accumulator=t,this._seed=r,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let r;try{r=this.accumulator(this.seed,e,t)}catch(n){this.destination.error(n)}this.seed=r,this.destination.next(r)}}var F=r("pLZG"),I=r("JIr8"),M=r("bOdf"),L=r("BFxc");function R(e=U){return t=>t.lift(new B(e))}class B{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new j(e,this.errorFactory))}}class j extends l.a{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function U(){return new b}function z(e=null){return t=>t.lift(new J(e))}class J{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new V(e,this.defaultValue))}}class V extends l.a{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var W=r("SpAZ");function q(e,t){const r=arguments.length>=2;return n=>n.pipe(e?Object(F.a)((t,r)=>e(t,r,n)):W.a,Object(w.a)(1),r?z(t):R(()=>new b))}var K=r("5+tZ"),H=r("vkgz"),G=r("x+ZX"),Q=r("quSY");class ${constructor(e){this.callback=e}call(e,t){return t.subscribe(new X(e,this.callback))}}class X extends l.a{constructor(e,t){super(e),this.add(new Q.a(t))}}var Y=r("bHdf");class Z{constructor(e,t){this.id=e,this.url=t}}class ee extends Z{constructor(e,t,r="imperative",n=null){super(e,t),this.navigationTrigger=r,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class te extends Z{constructor(e,t,r){super(e,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class re extends Z{constructor(e,t,r){super(e,t),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ne extends Z{constructor(e,t,r){super(e,t),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ie extends Z{constructor(e,t,r,n){super(e,t),this.urlAfterRedirects=r,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ae extends Z{constructor(e,t,r,n){super(e,t),this.urlAfterRedirects=r,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class oe extends Z{constructor(e,t,r,n,i){super(e,t),this.urlAfterRedirects=r,this.state=n,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class se extends Z{constructor(e,t,r,n){super(e,t),this.urlAfterRedirects=r,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ce extends Z{constructor(e,t,r,n){super(e,t),this.urlAfterRedirects=r,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ue{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class le{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _e{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class de{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pe{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fe{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ge{constructor(e,t,r){this.routerEvent=e,this.position=t,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class me{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function he(e){return new me(e)}function ye(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function ve(e,t,r){const n=r.path.split("/");if(n.length>e.length)return null;if("full"===r.pathMatch&&(t.hasChildren()||n.lengthn[t]===e)}return e===t}function De(e){return Array.prototype.concat.apply([],e)}function Se(e){return e.length>0?e[e.length-1]:null}function Ee(e,t){for(const r in e)e.hasOwnProperty(r)&&t(e[r],r)}function Ce(e){return Object(i.rb)(e)?e:Object(i.sb)(e)?Object(a.a)(Promise.resolve(e)):Object(o.a)(e)}function Te(e,t,r){return r?function(e,t){return be(e,t)}(e.queryParams,t.queryParams)&&ke(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(r=>xe(e[r],t[r]))}(e.queryParams,t.queryParams)&&we(e.root,t.root)}function ke(e,t){if(!Fe(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children){if(!e.children[r])return!1;if(!ke(e.children[r],t.children[r]))return!1}return!0}function we(e,t){return Ae(e,t,t.segments)}function Ae(e,t,r){if(e.segments.length>r.length)return!!Fe(e.segments.slice(0,r.length),r)&&!t.hasChildren();if(e.segments.length===r.length){if(!Fe(e.segments,r))return!1;for(const r in t.children){if(!e.children[r])return!1;if(!we(e.children[r],t.children[r]))return!1}return!0}{const n=r.slice(0,e.segments.length),i=r.slice(e.segments.length);return!!Fe(e.segments,n)&&!!e.children.primary&&Ae(e.children.primary,t,i)}}class Ne{constructor(e,t,r){this.root=e,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=he(this.queryParams)),this._queryParamMap}toString(){return Le.serialize(this)}}class Pe{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Ee(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Re(this)}}class Oe{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=he(this.parameters)),this._parameterMap}toString(){return We(this)}}function Fe(e,t){return e.length===t.length&&e.every((e,r)=>e.path===t[r].path)}class Ie{}class Me{parse(e){const t=new Qe(e);return new Ne(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`/${Be(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const r=e[t];return Array.isArray(r)?r.map(e=>`${Ue(t)}=${Ue(e)}`).join("&"):`${Ue(t)}=${Ue(r)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Le=new Me;function Re(e){return e.segments.map(e=>We(e)).join("/")}function Be(e,t){if(!e.hasChildren())return Re(e);if(t){const t=e.children.primary?Be(e.children.primary,!1):"",r=[];return Ee(e.children,(e,t)=>{"primary"!==t&&r.push(`${t}:${Be(e,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function(e,t){let r=[];return Ee(e.children,(e,n)=>{"primary"===n&&(r=r.concat(t(e,n)))}),Ee(e.children,(e,n)=>{"primary"!==n&&(r=r.concat(t(e,n)))}),r}(e,(t,r)=>"primary"===r?[Be(e.children.primary,!1)]:[`${r}:${Be(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${Re(e)}/${t[0]}`:`${Re(e)}/(${t.join("//")})`}}function je(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ue(e){return je(e).replace(/%3B/gi,";")}function ze(e){return je(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Je(e){return decodeURIComponent(e)}function Ve(e){return Je(e.replace(/\+/g,"%20"))}function We(e){return`${ze(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${ze(e)}=${ze(t[e])}`).join("")}`;var t}const qe=/^[^\/()?;=#]+/;function Ke(e){const t=e.match(qe);return t?t[0]:""}const He=/^[^=?&#]+/,Ge=/^[^?&#]+/;class Qe{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Pe([],{}):new Pe([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(r.primary=new Pe(e,t)),r}parseSegment(){const e=Ke(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Oe(Je(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Ke(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const e=Ke(this.remaining);e&&(r=e,this.capture(r))}e[Je(t)]=Je(r)}parseQueryParam(e){const t=function(e){const t=e.match(He);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Ge);return t?t[0]:""}(this.remaining);e&&(r=e,this.capture(r))}const n=Ve(t),i=Ve(r);if(e.hasOwnProperty(n)){let t=e[n];Array.isArray(t)||(t=[t],e[n]=t),t.push(i)}else e[n]=i}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Ke(this.remaining),n=this.remaining[r.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let i;r.indexOf(":")>-1?(i=r.substr(0,r.indexOf(":")),this.capture(i),this.capture(":")):e&&(i="primary");const a=this.parseChildren();t[i]=1===Object.keys(a).length?a.primary:new Pe([],a),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class $e{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Xe(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Xe(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Ye(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Ye(e,this._root).map(e=>e.value)}}function Xe(e,t){if(e===t.value)return t;for(const r of t.children){const t=Xe(e,r);if(t)return t}return null}function Ye(e,t){if(e===t.value)return[t];for(const r of t.children){const n=Ye(e,r);if(n.length)return n.unshift(t),n}return[]}class Ze{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function et(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class tt extends $e{constructor(e,t){super(e),this.snapshot=t,st(this,e)}toString(){return this.snapshot.toString()}}function rt(e,t){const r=function(e,t){const r=new at([],{},{},"",{},"primary",t,null,e.root,-1,{});return new ot("",new Ze(r,[]))}(e,t),n=new s.a([new Oe("",{})]),i=new s.a({}),a=new s.a({}),o=new s.a({}),c=new s.a(""),u=new nt(n,i,o,c,a,"primary",t,r.root);return u.snapshot=r.root,new tt(new Ze(u,[]),r)}class nt{constructor(e,t,r,n,i,a,o,s){this.url=e,this.params=t,this.queryParams=r,this.fragment=n,this.data=i,this.outlet=a,this.component=o,this._futureSnapshot=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(T.a)(e=>he(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(T.a)(e=>he(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function it(e,t="emptyOnly"){const r=e.pathFromRoot;let n=0;if("always"!==t)for(n=r.length-1;n>=1;){const e=r[n],t=r[n-1];if(e.routeConfig&&""===e.routeConfig.path)n--;else{if(t.component)break;n--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(r.slice(n))}class at{constructor(e,t,r,n,i,a,o,s,c,u,l){this.url=e,this.params=t,this.queryParams=r,this.fragment=n,this.data=i,this.outlet=a,this.component=o,this.routeConfig=s,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=he(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=he(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ot extends $e{constructor(e,t){super(t),this.url=e,st(this,t)}toString(){return ct(this._root)}}function st(e,t){t.value._routerState=e,t.children.forEach(t=>st(e,t))}function ct(e){const t=e.children.length>0?` { ${e.children.map(ct).join(", ")} } `:"";return`${e.value}${t}`}function ut(e){if(e.snapshot){const t=e.snapshot,r=e._futureSnapshot;e.snapshot=r,be(t.queryParams,r.queryParams)||e.queryParams.next(r.queryParams),t.fragment!==r.fragment&&e.fragment.next(r.fragment),be(t.params,r.params)||e.params.next(r.params),function(e,t){if(e.length!==t.length)return!1;for(let r=0;rbe(e.parameters,n[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||lt(e.parent,t.parent))}function _t(e,t,r){if(r&&e.shouldReuseRoute(t.value,r.value.snapshot)){const n=r.value;n._futureSnapshot=t.value;const i=function(e,t,r){return t.children.map(t=>{for(const n of r.children)if(e.shouldReuseRoute(t.value,n.value.snapshot))return _t(e,t,n);return _t(e,t)})}(e,t,r);return new Ze(n,i)}{const r=e.retrieve(t.value);if(r){const e=r.route;return dt(t,e),e}{const r=new nt(new s.a((n=t.value).url),new s.a(n.params),new s.a(n.queryParams),new s.a(n.fragment),new s.a(n.data),n.outlet,n.component,n),i=t.children.map(t=>_t(e,t));return new Ze(r,i)}}var n}function dt(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let r=0;r{a[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new Ne(r.root===e?t:mt(r.root,e,t),a,i)}function mt(e,t,r){const n={};return Ee(e.children,(e,i)=>{n[i]=e===t?r:mt(e,t,r)}),new Pe(e.segments,n)}class ht{constructor(e,t,r){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=r,e&&r.length>0&&pt(r[0]))throw new Error("Root segment cannot have matrix parameters");const n=r.find(ft);if(n&&n!==Se(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class yt{constructor(e,t,r){this.segmentGroup=e,this.processChildren=t,this.index=r}}function vt(e,t,r){if(e||(e=new Pe([],{})),0===e.segments.length&&e.hasChildren())return bt(e,t,r);const n=function(e,t,r){let n=0,i=t;const a={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return a;const t=e.segments[i],o=r[n];if(ft(o))break;const s=`${o}`,c=n0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!Et(s,c,t))return a;n+=2}else{if(!Et(s,{},t))return a;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}(e,t,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof r&&(r=[r]),null!==r&&(i[n]=vt(e.children[n],t,r))}),Ee(e.children,(e,t)=>{void 0===n[t]&&(i[t]=e)}),new Pe(e.segments,i)}}function xt(e,t,r){const n=e.segments.slice(0,t);let i=0;for(;i{"string"==typeof e&&(e=[e]),null!==e&&(t[r]=xt(new Pe([],{}),0,e))}),t}function St(e){const t={};return Ee(e,(e,r)=>t[r]=`${e}`),t}function Et(e,t,r){return e==r.path&&be(t,r.parameters)}class Ct{constructor(e,t,r,n){this.routeReuseStrategy=e,this.futureState=t,this.currState=r,this.forwardEvent=n}activate(e){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,e),ut(this.futureState.root),this.activateChildRoutes(t,r,e)}deactivateChildRoutes(e,t,r){const n=et(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,n[t],r),delete n[t]}),Ee(n,(e,t)=>{this.deactivateRouteAndItsChildren(e,r)})}deactivateRoutes(e,t,r){const n=e.value,i=t?t.value:null;if(n===i)if(n.component){const i=r.getContext(n.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,r);else i&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const r=t.getContext(e.value.outlet);if(r&&r.outlet){const t=r.outlet.detach(),n=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:n})}}deactivateRouteAndOutlet(e,t){const r=t.getContext(e.value.outlet),n=r&&e.value.component?r.children:t,i=et(e);for(const a of Object.keys(i))this.deactivateRouteAndItsChildren(i[a],n);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}activateChildRoutes(e,t,r){const n=et(t);e.children.forEach(e=>{this.activateRoutes(e,n[e.value.outlet],r),this.forwardEvent(new fe(e.value.snapshot))}),e.children.length&&this.forwardEvent(new de(e.value.snapshot))}activateRoutes(e,t,r){const n=e.value,i=t?t.value:null;if(ut(n),n===i)if(n.component){const i=r.getOrCreateContext(n.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,r);else if(n.component){const t=r.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const e=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),Tt(e.route)}else{const r=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(n.snapshot),i=r?r.module.componentFactoryResolver:null;t.attachRef=null,t.route=n,t.resolver=i,t.outlet&&t.outlet.activateWith(n,i),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,r)}}function Tt(e){ut(e.value),e.children.forEach(Tt)}class kt{constructor(e,t){this.routes=e,this.module=t}}function wt(e){return"function"==typeof e}function At(e){return e instanceof Ne}const Nt=Symbol("INITIAL_VALUE");function Pt(){return Object(k.a)(e=>function(...e){let t,r;return Object(c.a)(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(u.a)(e[0])&&(e=e[0]),Object(m.a)(e,r).lift(new y(t))}(e.map(e=>e.pipe(Object(w.a)(1),Object(A.a)(Nt)))).pipe(N((e,t)=>{let r=!1;return t.reduce((e,n,i)=>{if(e!==Nt)return e;if(n===Nt&&(r=!0),!r){if(!1===n)return n;if(i===t.length-1||At(n))return n}return e},e)},Nt),Object(F.a)(e=>e!==Nt),Object(T.a)(e=>At(e)?e:!0===e),Object(w.a)(1)))}let Ot=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Fb({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i.Mb(0,"router-outlet")},directives:function(){return[Cr]},encapsulation:2}),e})();function Ft(e,t=""){for(let r=0;rRt(e)===t);return r.push(...e.filter(e=>Rt(e)!==t)),r}const jt={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ut(e,t,r){var n;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||r.length>0)?Object.assign({},jt):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(t.matcher||ve)(r,e,t);if(!i)return Object.assign({},jt);const a={};Ee(i.posParams,(e,t)=>{a[t]=e.path});const o=i.consumed.length>0?Object.assign(Object.assign({},a),i.consumed[i.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o,positionalParamSegments:null!==(n=i.posParams)&&void 0!==n?n:{}}}function zt(e,t,r,n,i="corrected"){if(r.length>0&&function(e,t,r){return r.some(r=>Jt(e,t,r)&&"primary"!==Rt(r))}(e,r,n)){const i=new Pe(t,function(e,t,r,n){const i={};i.primary=n,n._sourceSegment=e,n._segmentIndexShift=t.length;for(const a of r)if(""===a.path&&"primary"!==Rt(a)){const r=new Pe([],{});r._sourceSegment=e,r._segmentIndexShift=t.length,i[Rt(a)]=r}return i}(e,t,n,new Pe(r,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===r.length&&function(e,t,r){return r.some(r=>Jt(e,t,r))}(e,r,n)){const a=new Pe(e.segments,function(e,t,r,n,i,a){const o={};for(const s of n)if(Jt(e,r,s)&&!i[Rt(s)]){const r=new Pe([],{});r._sourceSegment=e,r._segmentIndexShift="legacy"===a?e.segments.length:t.length,o[Rt(s)]=r}return Object.assign(Object.assign({},i),o)}(e,t,r,n,e.children,i));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:r}}const a=new Pe(e.segments,e.children);return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:r}}function Jt(e,t,r){return(!(e.hasChildren()||t.length>0)||"full"!==r.pathMatch)&&""===r.path}function Vt(e,t,r,n){return!!(Rt(e)===n||"primary"!==n&&Jt(t,r,e))&&("**"===e.path||Ut(t,e,r).matched)}function Wt(e,t,r){return 0===t.length&&!e.children[r]}class qt{constructor(e){this.segmentGroup=e||null}}class Kt{constructor(e){this.urlTree=e}}function Ht(e){return new f.a(t=>t.error(new qt(e)))}function Gt(e){return new f.a(t=>t.error(new Kt(e)))}function Qt(e){return new f.a(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class $t{constructor(e,t,r,n,a){this.configLoader=t,this.urlSerializer=r,this.urlTree=n,this.config=a,this.allowRedirects=!0,this.ngModule=e.get(i.y)}apply(){const e=zt(this.urlTree.root,[],[],this.config).segmentGroup,t=new Pe(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,"primary").pipe(Object(T.a)(e=>this.createUrlTree(Xt(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(I.a)(e=>{if(e instanceof Kt)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof qt)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Object(T.a)(t=>this.createUrlTree(Xt(t),e.queryParams,e.fragment))).pipe(Object(I.a)(e=>{if(e instanceof qt)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,r){const n=e.segments.length>0?new Pe([],{primary:e}):e;return new Ne(n,t,r)}expandSegmentGroup(e,t,r,n){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,t,r).pipe(Object(T.a)(e=>new Pe([],e))):this.expandSegment(e,r,t,r.segments,n,!0)}expandChildren(e,t,r){const n=[];for(const i of Object.keys(r.children))"primary"===i?n.unshift(i):n.push(i);return Object(a.a)(n).pipe(Object(M.a)(n=>{const i=r.children[n],a=Bt(t,n);return this.expandSegmentGroup(e,a,i,n).pipe(Object(T.a)(e=>({segment:e,outlet:n})))}),N((e,t)=>(e[t.outlet]=t.segment,e),{}),function(e,t){const r=arguments.length>=2;return n=>n.pipe(e?Object(F.a)((t,r)=>e(t,r,n)):W.a,Object(L.a)(1),r?z(t):R(()=>new b))}())}expandSegment(e,t,r,n,i,s){return Object(a.a)(r).pipe(Object(M.a)(a=>this.expandSegmentAgainstRoute(e,t,r,a,n,i,s).pipe(Object(I.a)(e=>{if(e instanceof qt)return Object(o.a)(null);throw e}))),q(e=>!!e),Object(I.a)((e,r)=>{if(e instanceof b||"EmptyError"===e.name){if(Wt(t,n,i))return Object(o.a)(new Pe([],{}));throw new qt(t)}throw e}))}expandSegmentAgainstRoute(e,t,r,n,i,a,o){return Vt(n,t,i,a)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(e,t,n,i,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,r,n,i,a):Ht(t):Ht(t)}expandSegmentAgainstRouteUsingRedirect(e,t,r,n,i,a){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,n,a):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,n,i,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,r,n){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Gt(i):this.lineralizeSegments(r,i).pipe(Object(K.a)(r=>{const i=new Pe(r,{});return this.expandSegment(e,i,t,r,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,n,i,a){const{matched:o,consumedSegments:s,lastChild:c,positionalParamSegments:u}=Ut(t,n,i);if(!o)return Ht(t);const l=this.applyRedirectCommands(s,n.redirectTo,u);return n.redirectTo.startsWith("/")?Gt(l):this.lineralizeSegments(n,l).pipe(Object(K.a)(n=>this.expandSegment(e,t,r,n.concat(i.slice(c)),a,!1)))}matchSegmentAgainstRoute(e,t,r,n,i){if("**"===r.path)return r.loadChildren?(r._loadedConfig?Object(o.a)(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(Object(T.a)(e=>(r._loadedConfig=e,new Pe(n,{})))):Object(o.a)(new Pe(n,{}));const{matched:a,consumedSegments:s,lastChild:c}=Ut(t,r,n);if(!a)return Ht(t);const u=n.slice(c);return this.getChildConfig(e,r,n).pipe(Object(K.a)(e=>{const n=e.module,a=e.routes,{segmentGroup:c,slicedSegments:l}=zt(t,s,u,a),_=new Pe(c.segments,c.children);if(0===l.length&&_.hasChildren())return this.expandChildren(n,a,_).pipe(Object(T.a)(e=>new Pe(s,e)));if(0===a.length&&0===l.length)return Object(o.a)(new Pe(s,{}));const d=Rt(r)===i;return this.expandSegment(n,_,a,l,d?"primary":i,!0).pipe(Object(T.a)(e=>new Pe(s.concat(e.segments),e.children)))}))}getChildConfig(e,t,r){return t.children?Object(o.a)(new kt(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(o.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,r).pipe(Object(K.a)(r=>r?this.configLoader.load(e.injector,t).pipe(Object(T.a)(e=>(t._loadedConfig=e,e))):function(e){return new f.a(t=>t.error(ye(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Object(o.a)(new kt([],e))}runCanLoadGuards(e,t,r){const n=t.canLoad;if(!n||0===n.length)return Object(o.a)(!0);const i=n.map(n=>{const i=e.get(n);let a;if(function(e){return e&&wt(e.canLoad)}(i))a=i.canLoad(t,r);else{if(!wt(i))throw new Error("Invalid CanLoad guard");a=i(t,r)}return Ce(a)});return Object(o.a)(i).pipe(Pt(),Object(H.a)(e=>{if(!At(e))return;const t=ye(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),Object(T.a)(e=>!0===e))}lineralizeSegments(e,t){let r=[],n=t.root;for(;;){if(r=r.concat(n.segments),0===n.numberOfChildren)return Object(o.a)(r);if(n.numberOfChildren>1||!n.children.primary)return Qt(e.redirectTo);n=n.children.primary}}applyRedirectCommands(e,t,r){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,r)}applyRedirectCreatreUrlTree(e,t,r,n){const i=this.createSegmentGroup(e,t.root,r,n);return new Ne(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const r={};return Ee(e,(e,n)=>{if("string"==typeof e&&e.startsWith(":")){const i=e.substring(1);r[n]=t[i]}else r[n]=e}),r}createSegmentGroup(e,t,r,n){const i=this.createSegments(e,t.segments,r,n);let a={};return Ee(t.children,(t,i)=>{a[i]=this.createSegmentGroup(e,t,r,n)}),new Pe(i,a)}createSegments(e,t,r,n){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,n):this.findOrReturn(t,r))}findPosParam(e,t,r){const n=r[t.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return n}findOrReturn(e,t){let r=0;for(const n of t){if(n.path===e.path)return t.splice(r),n;r++}return e}}function Xt(e){const t={};for(const r of Object.keys(e.children)){const n=Xt(e.children[r]);(n.segments.length>0||n.hasChildren())&&(t[r]=n)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new Pe(e.segments.concat(t.segments),t.children)}return e}(new Pe(e.segments,t))}class Yt{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Zt{constructor(e,t){this.component=e,this.route=t}}function er(e,t,r){const n=e._root;return rr(n,t?t._root:null,r,[n.value])}function tr(e,t,r){const n=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(n?n.module.injector:r).get(e)}function rr(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){const a=et(t);return e.children.forEach(e=>{!function(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){const a=e.value,o=t?t.value:null,s=r?r.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){const c=function(e,t,r){if("function"==typeof r)return r(e,t);switch(r){case"pathParamsChange":return!Fe(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Fe(e.url,t.url)||!be(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lt(e,t)||!be(e.queryParams,t.queryParams);case"paramsChange":default:return!lt(e,t)}}(o,a,a.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Yt(n)):(a.data=o.data,a._resolvedData=o._resolvedData),rr(e,t,a.component?s?s.children:null:r,n,i),c&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new Zt(s.outlet.component,o))}else o&&nr(t,s,i),i.canActivateChecks.push(new Yt(n)),rr(e,null,a.component?s?s.children:null:r,n,i)}(e,a[e.value.outlet],r,n.concat([e.value]),i),delete a[e.value.outlet]}),Ee(a,(e,t)=>nr(e,r.getContext(t),i)),i}function nr(e,t,r){const n=et(e),i=e.value;Ee(n,(e,n)=>{nr(e,i.component?t?t.children.getContext(n):null:t,r)}),r.canDeactivateChecks.push(new Zt(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}class ir{}function ar(e){return new f.a(t=>t.error(e))}class or{constructor(e,t,r,n,i,a){this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=n,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=a}recognize(){const e=zt(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;const r=new at([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Ze(r,t),i=new ot(this.url,n);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(e){const t=e.value,r=it(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,r)}processChildren(e,t){const r=[];for(const i of Object.keys(t.children)){const n=t.children[i],a=Bt(e,i),o=this.processSegmentGroup(a,n,i);if(null===o)return null;r.push(...o)}const n=function(e){const t=[];for(const r of e){if(!sr(r)){t.push(r);continue}const e=t.find(e=>r.value.routeConfig===e.value.routeConfig);void 0!==e?e.children.push(...r.children):t.push(r)}return t}(r);return n.sort((e,t)=>"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,r,n){for(const i of e){const e=this.processSegmentAgainstRoute(i,t,r,n);if(null!==e)return e}return Wt(t,r,n)?[]:null}processSegmentAgainstRoute(e,t,r,n){if(e.redirectTo||!Vt(e,t,r,n))return null;let i,a=[],o=[];if("**"===e.path){const n=r.length>0?Se(r).parameters:{};i=new at(r,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,lr(e),Rt(e),e.component,e,cr(t),ur(t)+r.length,_r(e))}else{const n=Ut(t,e,r);if(!n.matched)return null;a=n.consumedSegments,o=r.slice(n.lastChild),i=new at(a,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,lr(e),Rt(e),e.component,e,cr(t),ur(t)+a.length,_r(e))}const s=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:c,slicedSegments:u}=zt(t,a,o,s.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const e=this.processChildren(s,c);return null===e?null:[new Ze(i,e)]}if(0===s.length&&0===u.length)return[new Ze(i,[])];const l=Rt(e)===n,_=this.processSegment(s,c,u,l?"primary":n);return null===_?null:[new Ze(i,_)]}}function sr(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function cr(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function ur(e){let t=e,r=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,r+=t._segmentIndexShift?t._segmentIndexShift:0;return r-1}function lr(e){return e.data||{}}function _r(e){return e.resolve||{}}function dr(e){return Object(k.a)(t=>{const r=e(t);return r?Object(a.a)(r).pipe(Object(T.a)(()=>t)):Object(o.a)(t)})}class pr extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const fr=new i.r("ROUTES");class gr{constructor(e,t,r,n){this.loader=e,this.compiler=t,this.onLoadStartListener=r,this.onLoadEndListener=n}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const r=this.loadModuleFactory(t.loadChildren).pipe(Object(T.a)(r=>{this.onLoadEndListener&&this.onLoadEndListener(t);const n=r.create(e);return new kt(De(n.injector.get(fr,void 0,i.q.Self|i.q.Optional)).map(Lt),n)}),Object(I.a)(e=>{throw t._loader$=void 0,e}));return t._loader$=new E.a(r,()=>new C.a).pipe(Object(G.a)()),t._loader$}loadModuleFactory(e){return"string"==typeof e?Object(a.a)(this.loader.load(e)):Ce(e()).pipe(Object(K.a)(e=>e instanceof i.w?Object(o.a)(e):Object(a.a)(this.compiler.compileModuleAsync(e))))}}class mr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new hr,this.attachRef=null}}class hr{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new mr,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class yr{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function vr(e){throw e}function br(e,t,r){return t.parse("/")}function xr(e,t){return Object(o.a)(null)}let Dr=(()=>{class e{constructor(e,t,r,n,a,o,c,u){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=n,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new C.a,this.errorHandler=vr,this.malformedUriErrorHandler=br,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:xr,afterPreactivation:xr},this.urlHandlingStrategy=new yr,this.routeReuseStrategy=new pr,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=a.get(i.y),this.console=a.get(i.Z);const l=a.get(i.A);this.isNgZoneEnabled=l instanceof i.A&&i.A.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new Ne(new Pe([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new gr(o,c,e=>this.triggerEvent(new ue(e)),e=>this.triggerEvent(new le(e))),this.routerState=rt(this.currentUrlTree,this.rootComponentType),this.transitions=new s.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(Object(F.a)(e=>0!==e.id),Object(T.a)(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Object(k.a)(e=>{let r=!1,n=!1;return Object(o.a)(e).pipe(Object(H.a)(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(k.a)(e=>{const r=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||r)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(o.a)(e).pipe(Object(k.a)(e=>{const r=this.transitions.getValue();return t.next(new ee(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==this.transitions.getValue()?S.a:Promise.resolve(e)}),(n=this.ngModule.injector,i=this.configLoader,a=this.urlSerializer,s=this.config,Object(k.a)(e=>function(e,t,r,n,i){return new $t(e,t,r,n,i).apply()}(n,i,a,e.extractedUrl,s).pipe(Object(T.a)(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t}))))),Object(H.a)(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,r,n,i){return Object(K.a)(a=>function(e,t,r,n,i="emptyOnly",a="legacy"){try{const s=new or(e,t,r,n,i,a).recognize();return null===s?ar(new ir):Object(o.a)(s)}catch(s){return ar(s)}}(e,t,a.urlAfterRedirects,r(a.urlAfterRedirects),n,i).pipe(Object(T.a)(e=>Object.assign(Object.assign({},a),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(H.a)(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects);const r=new ie(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(r)}));var n,i,a,s;if(r&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:r,extractedUrl:n,source:i,restoredState:a,extras:s}=e,c=new ee(r,this.serializeUrl(n),i,a);t.next(c);const u=rt(n,this.rootComponentType).snapshot;return Object(o.a)(Object.assign(Object.assign({},e),{targetSnapshot:u,urlAfterRedirects:n,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),S.a}),dr(e=>{const{targetSnapshot:t,id:r,extractedUrl:n,rawUrl:i,extras:{skipLocationChange:a,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:r,appliedUrlTree:n,rawUrlTree:i,skipLocationChange:!!a,replaceUrl:!!o})}),Object(H.a)(e=>{const t=new ae(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(T.a)(e=>Object.assign(Object.assign({},e),{guards:er(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return Object(K.a)(r=>{const{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:c}}=r;return 0===c.length&&0===s.length?Object(o.a)(Object.assign(Object.assign({},r),{guardsResult:!0})):function(e,t,r,n){return Object(a.a)(e).pipe(Object(K.a)(e=>function(e,t,r,n,i){const a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!a||0===a.length)return Object(o.a)(!0);const s=a.map(a=>{const o=tr(a,t,i);let s;if(function(e){return e&&wt(e.canDeactivate)}(o))s=Ce(o.canDeactivate(e,t,r,n));else{if(!wt(o))throw new Error("Invalid CanDeactivate guard");s=Ce(o(e,t,r,n))}return s.pipe(q())});return Object(o.a)(s).pipe(Pt())}(e.component,e.route,r,t,n)),q(e=>!0!==e,!0))}(c,n,i,e).pipe(Object(K.a)(r=>r&&"boolean"==typeof r?function(e,t,r,n){return Object(a.a)(t).pipe(Object(M.a)(t=>Object(x.a)(function(e,t){return null!==e&&t&&t(new _e(e)),Object(o.a)(!0)}(t.route.parent,n),function(e,t){return null!==e&&t&&t(new pe(e)),Object(o.a)(!0)}(t.route,n),function(e,t,r){const n=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>Object(D.a)(()=>{const i=t.guards.map(i=>{const a=tr(i,t.node,r);let o;if(function(e){return e&&wt(e.canActivateChild)}(a))o=Ce(a.canActivateChild(n,e));else{if(!wt(a))throw new Error("Invalid CanActivateChild guard");o=Ce(a(n,e))}return o.pipe(q())});return Object(o.a)(i).pipe(Pt())}));return Object(o.a)(i).pipe(Pt())}(e,t.path,r),function(e,t,r){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return Object(o.a)(!0);const i=n.map(n=>Object(D.a)(()=>{const i=tr(n,t,r);let a;if(function(e){return e&&wt(e.canActivate)}(i))a=Ce(i.canActivate(t,e));else{if(!wt(i))throw new Error("Invalid CanActivate guard");a=Ce(i(t,e))}return a.pipe(q())}));return Object(o.a)(i).pipe(Pt())}(e,t.route,r))),q(e=>!0!==e,!0))}(n,s,e,t):Object(o.a)(r)),Object(T.a)(e=>Object.assign(Object.assign({},r),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),Object(H.a)(e=>{if(At(e.guardsResult)){const t=ye(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new oe(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Object(F.a)(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const r=new re(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(r),e.resolve(!1),!1}return!0}),dr(e=>{if(e.guards.canActivateChecks.length)return Object(o.a)(e).pipe(Object(H.a)(e=>{const t=new se(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(k.a)(e=>{let r=!1;return Object(o.a)(e).pipe((n=this.paramsInheritanceStrategy,i=this.ngModule.injector,Object(K.a)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return Object(o.a)(e);let s=0;return Object(a.a)(r).pipe(Object(M.a)(e=>function(e,t,r,n){return function(e,t,r,n){const i=Object.keys(e);if(0===i.length)return Object(o.a)({});const s={};return Object(a.a)(i).pipe(Object(K.a)(i=>function(e,t,r,n){const i=tr(e,t,n);return Ce(i.resolve?i.resolve(t,r):i(t,r))}(e[i],t,r,n).pipe(Object(H.a)(e=>{s[i]=e}))),Object(L.a)(1),Object(K.a)(()=>Object.keys(s).length===i.length?Object(o.a)(s):S.a))}(e._resolve,e,t,n).pipe(Object(T.a)(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),it(e,r).resolve),null)))}(e.route,t,n,i)),Object(H.a)(()=>s++),Object(L.a)(1),Object(K.a)(t=>s===r.length?Object(o.a)(e):S.a))})),Object(H.a)({next:()=>r=!0,complete:()=>{if(!r){const r=new re(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(r),e.resolve(!1)}}}));var n,i}),Object(H.a)(e=>{const t=new ce(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),dr(e=>{const{targetSnapshot:t,id:r,extractedUrl:n,rawUrl:i,extras:{skipLocationChange:a,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:r,appliedUrlTree:n,rawUrlTree:i,skipLocationChange:!!a,replaceUrl:!!o})}),Object(T.a)(e=>{const t=function(e,t,r){const n=_t(e,t._root,r?r._root:void 0);return new tt(n,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Object(H.a)(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(s=this.rootContexts,c=this.routeReuseStrategy,u=e=>this.triggerEvent(e),Object(T.a)(e=>(new Ct(c,e.targetRouterState,e.currentRouterState,u).activate(s),e))),Object(H.a)({next(){r=!0},complete(){r=!0}}),(i=()=>{if(!r&&!n){this.resetUrlToCurrentUrlTree();const r=new re(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(r),e.resolve(!1)}this.currentNavigation=null},e=>e.lift(new $(i))),Object(I.a)(r=>{if(n=!0,(i=r)&&i.ngNavigationCancelingError){const n=At(r.url);n||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const i=new re(e.id,this.serializeUrl(e.extractedUrl),r.message);t.next(i),n?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(r.url,this.rawUrlTree);this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const n=new ne(e.id,this.serializeUrl(e.extractedUrl),r);t.next(n);try{e.resolve(this.errorHandler(r))}catch(a){e.reject(a)}}var i;return S.a}));var i,s,c,u}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:r,urlTree:n}=t,i={replaceUrl:!0};if(r){const e=Object.assign({},r);delete e.navigationId,0!==Object.keys(e).length&&(i.state=e)}this.scheduleNavigation(n,e,r,i)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const r=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&r&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Ft(e),this.config=e.map(Lt),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:n,fragment:i,queryParamsHandling:a,preserveFragment:o}=t,s=r||this.routerState.root,c=o?this.currentUrlTree.fragment:i;let u=null;switch(a){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,r,n,i){if(0===r.length)return gt(t.root,t.root,t,n,i);const a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ht(!0,0,e);let t=0,r=!1;const n=e.reduce((e,n,i)=>{if("object"==typeof n&&null!=n){if(n.outlets){const t={};return Ee(n.outlets,(e,r)=>{t[r]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(n.segmentPath)return[...e,n.segmentPath]}return"string"!=typeof n?[...e,n]:0===i?(n.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?r=!0:".."===n?t++:""!=n&&e.push(n))}),e):[...e,n]},[]);return new ht(r,t,n)}(r);if(a.toRoot())return gt(t.root,new Pe([],{}),t,n,i);const o=function(e,t,r){if(e.isAbsolute)return new yt(t.root,!0,0);if(-1===r.snapshot._lastPathIndex){const e=r.snapshot._urlSegment;return new yt(e,e===t.root,0)}const n=pt(e.commands[0])?0:1;return function(e,t,r){let n=e,i=t,a=r;for(;a>i;){if(a-=i,n=n.parent,!n)throw new Error("Invalid number of '../'");i=n.segments.length}return new yt(n,!1,i-a)}(r.snapshot._urlSegment,r.snapshot._lastPathIndex+n,e.numberOfDoubleDots)}(a,t,e),s=o.processChildren?bt(o.segmentGroup,o.index,a.commands):vt(o.segmentGroup,o.index,a.commands);return gt(o.segmentGroup,s,t,n,i)}(s,this.currentUrlTree,e,u,c)}navigateByUrl(e,t={skipLocationChange:!1}){const r=At(e)?e:this.parseUrl(e),n=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t{const n=e[r];return null!=n&&(t[r]=n),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new te(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,r,n,i){if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),o="imperative"!==t&&"imperative"===(null==a?void 0:a.source),s=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===e.toString();if(o&&s)return Promise.resolve(!0);let c,u,l;i?(c=i.resolve,u=i.reject,l=i.promise):l=new Promise((e,t)=>{c=e,u=t});const _=++this.navigationId;return this.setTransition({id:_,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:n,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,r,n){const i=this.urlSerializer.serialize(e);n=n||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object.assign(Object.assign({},n),{navigationId:r})):this.location.go(i,"",Object.assign(Object.assign({},n),{navigationId:r}))}resetStateAndUrl(e,t,r){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(i.O),i.Sb(Ie),i.Sb(hr),i.Sb(n.f),i.Sb(i.s),i.Sb(i.x),i.Sb(i.i),i.Sb(void 0))},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac}),e})(),Sr=(()=>{class e{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=[],this.onChanges=new C.a,this.subscription=e.events.subscribe(e=>{e instanceof te&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,n,i){if(0!==e||t||r||n||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const a={skipLocationChange:Er(this.skipLocationChange),replaceUrl:Er(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Er(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(i.Lb(Dr),i.Lb(nt),i.Lb(n.g))},e.\u0275dir=i.Gb({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.Wb("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(i.Rb("href",t.href,i.kc),i.Cb("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[i.zb]}),e})();function Er(e){return""===e||!!e}let Cr=(()=>{class e{constructor(e,t,r,n,a){this.parentContexts=e,this.location=t,this.resolver=r,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.n,this.deactivateEvents=new i.n,this.name=n||"primary",e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const r=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,i=new Tr(e,n,this.location.injector);this.activated=this.location.createComponent(r,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(i.Lb(hr),i.Lb(i.Q),i.Lb(i.j),i.Tb("name"),i.Lb(i.h))},e.\u0275dir=i.Gb({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class Tr{constructor(e,t,r){this.route=e,this.childContexts=t,this.parent=r}get(e,t){return e===nt?this.route:e===hr?this.childContexts:this.parent.get(e,t)}}class kr{}class wr{preload(e,t){return Object(o.a)(null)}}let Ar=(()=>{class e{constructor(e,t,r,n,i){this.router=e,this.injector=n,this.preloadingStrategy=i,this.loader=new gr(t,r,t=>e.triggerEvent(new ue(t)),t=>e.triggerEvent(new le(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(F.a)(e=>e instanceof te),Object(M.a)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(i.y);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const n of t)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const e=n._loadedConfig;r.push(this.processRoutes(e.module,e.routes))}else n.loadChildren&&!n.canLoad?r.push(this.preloadConfig(e,n)):n.children&&r.push(this.processRoutes(e,n.children));return Object(a.a)(r).pipe(Object(Y.a)(),Object(T.a)(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?Object(o.a)(t._loadedConfig):this.loader.load(e.injector,t)).pipe(Object(K.a)(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(Dr),i.Sb(i.x),i.Sb(i.i),i.Sb(i.s),i.Sb(kr))},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac}),e})(),Nr=(()=>{class e{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof ee?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof te&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof ge&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new ge(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(Dr),i.Sb(n.o),i.Sb(void 0))},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac}),e})();const Pr=new i.r("ROUTER_CONFIGURATION"),Or=new i.r("ROUTER_FORROOT_GUARD"),Fr=[n.f,{provide:Ie,useClass:Me},{provide:Dr,useFactory:function(e,t,r,i,a,o,s,c={},u,l){const _=new Dr(null,e,t,r,i,a,o,De(s));if(u&&(_.urlHandlingStrategy=u),l&&(_.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(c,_),c.enableTracing){const e=Object(n.t)();_.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return _},deps:[Ie,hr,n.f,i.s,i.x,i.i,fr,Pr,[class{},new i.B],[class{},new i.B]]},hr,{provide:nt,useFactory:function(e){return e.routerState.root},deps:[Dr]},{provide:i.x,useClass:i.L},Ar,wr,class{preload(e,t){return t().pipe(Object(I.a)(()=>Object(o.a)(null)))}},{provide:Pr,useValue:{enableTracing:!1}}];function Ir(){return new i.z("Router",Dr)}let Mr=(()=>{class e{constructor(e,t){}static forRoot(t,r){return{ngModule:e,providers:[Fr,jr(t),{provide:Or,useFactory:Br,deps:[[Dr,new i.B,new i.K]]},{provide:Pr,useValue:r||{}},{provide:n.g,useFactory:Rr,deps:[n.m,[new i.p(n.a),new i.B],Pr]},{provide:Nr,useFactory:Lr,deps:[Dr,n.o,Pr]},{provide:kr,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:wr},{provide:i.z,multi:!0,useFactory:Ir},[Ur,{provide:i.d,multi:!0,useFactory:zr,deps:[Ur]},{provide:Vr,useFactory:Jr,deps:[Ur]},{provide:i.b,multi:!0,useExisting:Vr}]]}}static forChild(t){return{ngModule:e,providers:[jr(t)]}}}return e.\u0275mod=i.Jb({type:e}),e.\u0275inj=i.Ib({factory:function(t){return new(t||e)(i.Sb(Or,8),i.Sb(Dr,8))}}),e})();function Lr(e,t,r){return r.scrollOffset&&t.setOffset(r.scrollOffset),new Nr(e,t,r)}function Rr(e,t,r={}){return r.useHash?new n.d(e,t):new n.l(e,t)}function Br(e){return"guarded"}function jr(e){return[{provide:i.a,multi:!0,useValue:e},{provide:fr,multi:!0,useValue:e}]}let Ur=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new C.a}appInitializer(){return this.injector.get(n.e,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),r=this.injector.get(Dr),n=this.injector.get(Pr);return"disabled"===n.initialNavigation?(r.setUpLocationChangeListener(),e(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?Object(o.a)(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),r.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(Pr),r=this.injector.get(Ar),n=this.injector.get(Nr),a=this.injector.get(Dr),o=this.injector.get(i.g);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||a.initialNavigation(),r.setUpPreloading(),n.init(),a.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return e.\u0275fac=function(t){return new(t||e)(i.Sb(i.s))},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac}),e})();function zr(e){return e.appInitializer.bind(e)}function Jr(e){return e.bootstrapListener.bind(e)}const Vr=new i.r("Router Initializer")},izN1:function(e,t){function r(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id="izN1"},jBAD:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return GameComponent});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("mrSG"),rxjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("XNiG"),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("LRne"),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("EY2u"),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("Cfvw"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("VRyK"),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("1uah"),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("cp0P"),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("3E0/"),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("pLZG"),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("IzEk"),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("bOdf"),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("GJmQ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("vkgz"),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("02Lk"),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("lJxs"),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("/uUt"),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("zP0r"),rxjs_operators__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("BFxc"),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("kagm"),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("/d8p"),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("un/a"),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("JIr8"),gsap__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("z/o8"),_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("8ok5"),_game_over_dialog_game_over_dialog_component__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("YTqg"),property_watch_decorator__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("R1az"),property_watch_decorator__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(property_watch_decorator__WEBPACK_IMPORTED_MODULE_26__),_angular_core__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("8Y7J"),_shared_level_service__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("Ub8T"),_ngx_translate_core__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("TSSN"),_angular_router__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("iInd"),_shared_exercise_service__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("VIrA"),_shared_local_storage_service__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("BnXa"),_shared_console_service__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("mM0U"),_shared_cheating_detection_service__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("Q1aD"),_shared_confetti_service__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("099V"),_shared_typescript_service__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("UY0t"),_shared_color_mixer_service__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("Dsyz"),_shared_sound_service__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("+Ohx"),_angular_common_http__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("IheW"),_angular_material_dialog__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("iELJ"),_angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("VDRc"),_angular_common__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("SVse"),_angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("ura0"),_angular_forms__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("s7LF"),_cookie_banner_cookie_banner_component__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("cgln"),_shared_init_directive__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("DRc/"),_shared_language_pipe__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("TQ3W");const _c0=["board"],_c1=["conveyorbelt"],_c2=["bottle"],_c3=["funnel"],_c4=["liquid"];function GameComponent_div_25_span_2_Template(e,t){if(1&e){const e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Pb();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"span",47),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){_angular_core__WEBPACK_IMPORTED_MODULE_27__.ic(e);const r=t.$implicit;return _angular_core__WEBPACK_IMPORTED_MODULE_27__.ac(2).goToExercise(r)}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()}if(2&e){const e=t.$implicit,r=_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac(2);_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngClass",r.levelStateStyle(e))("title",e.title),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(e.number)}}function GameComponent_div_25_Template(e,t){if(1&e){const e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Pb();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"div",43),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(1,"div",44),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(2,GameComponent_div_25_span_2_Template,2,3,"span",45),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(3,"div",46),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return _angular_core__WEBPACK_IMPORTED_MODULE_27__.ic(e),_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac().resetAllStates()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(4),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(5,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()}if(2&e){const e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngForOf",e.levelService.levels),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(5,2,"APP.LABELRESET"))}}function GameComponent_div_28_li_8_Template(e,t){if(1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"li"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(3,"uppercase"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e){const e=t.$implicit,r=t.index,n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac(2);_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.tc(" ",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,2,_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(3,4,"APP.FRUITS."+e))," ",n.assertFruitPipeIcon(r)," ")}}function GameComponent_div_28_p_9_Template(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"p",54),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,1,"APP.ISTOOMUCHFRUITS")))}function GameComponent_div_28_p_10_Template(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"p",55),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,1,"APP.ISNOFRUITSINCOMING")))}function GameComponent_div_28_p_11_Template(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"p",56),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,1,"APP.ISTOOLITTLEFRUITS")))}function GameComponent_div_28_p_12_Template(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"p",57),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.sc("",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,1,"APP.ISNOACTIVATESUBSCRIBE")," "))}function GameComponent_div_28_Template(e,t){if(1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"div",48),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(1,"h3"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(3,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(4,"p",22),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(5,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(6,"uppercase"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(7,"ol"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(8,GameComponent_div_28_li_8_Template,4,6,"li",49),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(9,GameComponent_div_28_p_9_Template,3,3,"p",50),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(10,GameComponent_div_28_p_10_Template,3,3,"p",51),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(11,GameComponent_div_28_p_11_Template,3,3,"p",52),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(12,GameComponent_div_28_p_12_Template,3,3,"p",53),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e){const e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac();_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngClass",e.recipeAnimationStyle()),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.sc("\ud83e\uddfe ",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(3,8,"APP.RECIPETITLE"),""),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(5,10,_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(6,12,"EXERCISES."+e.levelService.currentLevel.title+".RECIPEDESCRIPTION")),_angular_core__WEBPACK_IMPORTED_MODULE_27__.jc),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(4),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngForOf",e.currentExercise.expectedFruits),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",e.isTooMuchFruits),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",e.isNoFruitsIncoming),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",e.isTooLittleFruits),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",e.isNoActivateSubscribe)}}function GameComponent_button_33_Template(e,t){if(1&e){const e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Pb();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"button",58),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return _angular_core__WEBPACK_IMPORTED_MODULE_27__.ic(e),_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac().cancel()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Zb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(3,"svg",59),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(4,"g"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(5,"path",60),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()}2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.sc("",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,1,"APP.CANCELBUTTON")," "))}function GameComponent_button_34_Template(e,t){if(1&e){const e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Pb();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"button",61),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return _angular_core__WEBPACK_IMPORTED_MODULE_27__.ic(e),_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac().run()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Zb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(3,"svg",59),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(4,"g"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(5,"path",62),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()}if(2&e){const e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac();_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("disabled",e.isCheatingDetected),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.sc("",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,2,"APP.STARTBUTTON")," ")}}function GameComponent_span_45_span_1_Template(e,t){if(1&e){const e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Pb();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"span",65),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){_angular_core__WEBPACK_IMPORTED_MODULE_27__.ic(e);const r=t.$implicit;return _angular_core__WEBPACK_IMPORTED_MODULE_27__.ac(2).changeLanguage(r)}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"language"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()}if(2&e){const e=t.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.sc(" ",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,1,e)," ")}}function GameComponent_span_45_Template(e,t){if(1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"span",63),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(1,GameComponent_span_45_span_1_Template,3,3,"span",64),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e){const e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngForOf",e.translate.getLangs())}}function GameComponent_img_54_Template(e,t){if(1&e){const e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Pb();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"img",66),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("appInit",function(){_angular_core__WEBPACK_IMPORTED_MODULE_27__.ic(e);const r=t.$implicit;return _angular_core__WEBPACK_IMPORTED_MODULE_27__.ac().startFruitAnimation(r.id)}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()}if(2&e){const e=t.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("id",e.id)("src",e.url,_angular_core__WEBPACK_IMPORTED_MODULE_27__.kc)}}function GameComponent_div_63_Template(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"div",67),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.sc(" ",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,1,"APP.OUTPUT")," "))}function GameComponent_img_64_Template(e,t){1&e&&_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(0,"img",68)}let GameComponent=(()=>{class GameComponent{constructor(e,t,r,n,i,a,o,s,c,u,l,_,d,p){this.levelService=e,this.translate=t,this.router=r,this.exerciseService=n,this.localStorageService=i,this.consoleService=a,this.cheatingDetectionService=o,this.confettiService=s,this.typescriptService=c,this.colorMixerService=u,this.soundService=l,this.monacoLoader=_,this.httpClient=d,this.dialog=p,this.editorOptions={theme:"vs-dark",language:"typescript",fontSize:19,minimap:{enabled:!1},fixedOverflowWidgets:!0},this.currentBottleHeight=100,this.lastFruitColor="",this.liquidAnimationTimeline=gsap__WEBPACK_IMPORTED_MODULE_23__.a.timeline(),this.fruitAnimationTimelines=[],this.code="",this.isRunActive=!1,this.isLevelsWrapperOpen=!1,this.isLanguageOptionsOpen=!1,this.clickedByToggle=!1,this.fruits=[],this.fruitsInPipe=[],this.isNextExerciseAvailable=!1,this.isTooMuchFruits=!1,this.isNoFruitsIncoming=!1,this.isTooLittleFruits=!1,this.isNoActivateSubscribe=!1,this.isCheatingDetected=!1,this.currentExercise={code:"",expectedFruits:[],fruits:[],minPositionLineNumber:0,positionColumnNumber:0},this.isErrorInConsole=!1,this.soundIconPath=""}ngOnInit(){const e=this.localStorageService.loadSoundSettings();this.soundIconPath=e.imagePath,this.soundService.volume=e.volume,this.soundService.isMute=e.isMute,this.translate.addLangs(["en","de","ru","zh_CN","es"]),this.translate.setDefaultLang("en"),this.translate.onLangChange.subscribe(()=>{this.localStorageService.saveLanguage(this.translate.currentLang)});const t=this.localStorageService.loadSelectedLanguage();if(t)this.translate.use(t);else{const e=this.translate.getBrowserLang();this.translate.use(e.match(/en|de|ru|zh_CN|es/)?e:"en")}this.exerciseService.exerciseChanged$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.a)(0)).subscribe({next:e=>{this.currentExercise=e,this.code=this.localStorageService.loadCode(this.levelService.currentLevel.title)||e.code,this.changeMonacoSettings()}}),this.exerciseService.assertionChecked$.subscribe({next:e=>{this.isNextExerciseAvailable=e,!1===e&&this.isRunActive&&0===this.fruitsInPipe.length?(this.isNoFruitsIncoming=!0,this.cancel()):!1===e&&this.isRunActive&&this.currentExercise.expectedFruits.length>this.fruitsInPipe.length&&(this.isTooLittleFruits=!0)}}),this.monacoLoader.isMonacoLoaded$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(e=>!0===e),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(1)).subscribe({next:()=>{this.httpClient.get("assets/rx6.d.ts",{responseType:"text"}).subscribe({next:e=>{window.monaco.languages.typescript.typescriptDefaults.addExtraLib(e,"")}}),this.setupMonacoSettings(),this.changeMonacoSettings()}}),this.levelService.gameOver$.subscribe({next:()=>{this.confettiService.start(),this.dialog.open(_game_over_dialog_game_over_dialog_component__WEBPACK_IMPORTED_MODULE_25__.a).afterClosed().subscribe(()=>this.confettiService.stop())}}),this.consoleService.showWelcomeMessage()}previousLevelStyle(){return{disabled:0===this.levelService.currentLevelIndex}}nextLevelStyle(){return{disabled:this.levelService.levels.length===this.levelService.currentLevel.number}}levelStateStyle(e){return{current:this.levelService.isCurrentLevel(e),solved:e.solved}}buttonAnimationStyle(){return{animated:this.isNextExerciseAvailable,nextButtonAnimation:this.isNextExerciseAvailable}}recipeAnimationStyle(){let e=!1;for(let t=0;t{confirm(e)&&(this.localStorageService.clearAll(),location.reload())})}changeLanguage(e){this.translate.use(e)}assertFruitPipeIcon(e){return 0===this.fruitsInPipe.length||void 0===this.fruitsInPipe[e]?"":this.currentExercise.expectedFruits[e]===this.fruitsInPipe[e]?"\u2714":"\u274c"}setupMonacoSettings(){setTimeout(()=>{this.editor.editor.onDidChangeCursorPosition(e=>{const t=this.currentExercise.minPositionLineNumber;e.position.lineNumber{const t=this.currentExercise.minPositionLineNumber;this.editor.editor.deltaDecorations([],[{range:new monaco.Range(1,1,t-1,100),options:{inlineClassName:"myInlineDecoration"}}]),this.editor.editor.getModel().getLineCount(){var e,t,r;const n=this.currentExercise.minPositionLineNumber;null===(e=this.editor.editor)||void 0===e||e.setPosition({lineNumber:n+1,column:this.currentExercise.positionColumnNumber}),null===(t=this.editor.editor)||void 0===t||t.deltaDecorations([],[{range:new monaco.Range(1,1,n-1,100),options:{inlineClassName:"myInlineDecoration"}}]),null===(r=this.editor.editor)||void 0===r||r.focus()},0)}run(){this.fruits=[],this.fruitsInPipe=[],this.isTooMuchFruits=!1,this.isNoFruitsIncoming=!1,this.isTooLittleFruits=!1,this.isNoActivateSubscribe=!1,this.isErrorInConsole=!1,this.isRunActive=!0,this.consoleService.showWelcomeMessage(),this.code.includes("conveyorBelt.subscribe()")&&1===this.levelService.currentLevel.number?this.runIntroductoryLevel():this.code.includes("subscribe(")&&this.levelService.currentLevel.number>1?this.runLevelWithUserCode():(this.isNoActivateSubscribe=!0,this.cancel())}runIntroductoryLevel(){this.startConveyorBeltAnimation(),this.isNextExerciseAvailable=!0}runLevelWithUserCode(){this.startConveyorBeltAnimation();const e=new rxjs__WEBPACK_IMPORTED_MODULE_1__.a;try{this.observeConveyorBelt(e.asObservable()),this.executeCode(function(t){e.next(t)})}catch(t){this.notifyAboutErrorInCode(t)}finally{e.complete()}}observeConveyorBelt(e){e.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(e=>Object(rxjs__WEBPACK_IMPORTED_MODULE_2__.a)(e).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.a)(1e3))),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)(()=>this.isRunActive),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(e=>console.log("Into the pipe: "+e)),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(e=>this.pushFruitToPipe(e)),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(e=>this.addFruitToView(e))).subscribe(this.exerciseService.assertExerciseOutput())}pushFruitToPipe(e){this.fruitsInPipe.push(e),this.fruitsInPipe.length>this.currentExercise.expectedFruits.length&&(this.isTooMuchFruits=!0)}executeCode(toConveyorBelt){const EMPTY=rxjs__WEBPACK_IMPORTED_MODULE_3__.a,from=rxjs__WEBPACK_IMPORTED_MODULE_4__.a,distinct=rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a,map=rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a,take=rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a,filter=rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a,tap=rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a,skip=rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a,merge=rxjs__WEBPACK_IMPORTED_MODULE_5__.a,takeLast=rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a,skipLast=rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.a,repeat=rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.a,takeWhile=rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a,retry=rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.a,catchError=rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.a,distinctUntilChanged=rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a,zip=rxjs__WEBPACK_IMPORTED_MODULE_6__.a,concatMap=rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a,forkJoin=rxjs__WEBPACK_IMPORTED_MODULE_7__.a,transpiledCode=this.typescriptService.transpile(this.code);eval(transpiledCode)}notifyAboutErrorInCode(e){this.consoleService.showRandomErrorImage(),this.resetCurrentState(),console.error(e),this.isErrorInConsole=!0}addFruitToView(e){let t="";switch(e){case"apple":t="fruit-apple-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-Apple.svg"});break;case"dirty-apple":t="fruit-dirty-apple-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-dirty-Apple.svg"});break;case"old-apple":t="fruit-dirty-apple-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-old-Apple.svg"});break;case"banana":t="fruit-banana-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-Banana.svg"});break;case"dirty-banana":t="fruit-dirty-banana-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-dirty-Banana.svg"});break;case"old-banana":t="fruit-dirty-banana-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-old-Banana.svg"});break;case"cherry":t="fruit-cherry-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-Cherry.svg"});break;case"dirty-cherry":t="fruit-dirty-cherry-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-dirty-Cherry.svg"});break;case"old-cherry":t="fruit-dirty-cherry-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-old-Cherry.svg"})}}startFruitAnimation(e){const t=document.getElementById(e);e="#"+e;const r=this.conveyorBelt.nativeElement.offsetTop-t.offsetHeight,n=this.funnel.nativeElement.offsetTop,i=this.liquid.nativeElement.offsetLeft,a=gsap__WEBPACK_IMPORTED_MODULE_23__.a.timeline();this.fruitAnimationTimelines.push(a),a.to(e,0,{y:r}),a.to(e,{duration:3,x:i,ease:"none"}).call(()=>this.soundService.playSmashFruitSound(this.isRunActive)),a.to(e,{duration:1,y:n,ease:"bounce.out"}),a.to(e,{x:0,y:0,visibility:"hidden"}).call(()=>{this.isRunActive&&this.animateLiquid(e)})}animateLiquid(e){const t=this.liquid.nativeElement.contentDocument.getElementById("line"),r=this.bottle.nativeElement.contentDocument.getElementById("full"),n=this.bottle.nativeElement.contentDocument.getElementById("fill-rect"),i=this.board.nativeElement.offsetHeight/2,a=i-i/100*10;this.liquidAnimationTimeline.set(t,{stroke:this.getCurrentFruitColor(e)}),this.liquidAnimationTimeline.to(t,{duration:1,attr:{y2:a}},"-=0.8").call(()=>this.soundService.playPouringLiquidSound(this.isRunActive)),this.liquidAnimationTimeline.to(r,{duration:1,fill:this.getMixedFruitColor(e)},"-=0.5").call(()=>{const e=this.bottle.nativeElement.contentDocument.getElementsByClassName("st2");Array.from(e).forEach(e=>e.style.fill=r.style.fill)}),this.liquidAnimationTimeline.to(n,{duration:1,attr:{height:this.calcCurrentBottleHeight()}},"-=0.5"),this.liquidAnimationTimeline.to(t,{duration:.5,attr:{y1:a}},"-=0.5"),this.liquidAnimationTimeline.set(t,{duration:0,attr:{y1:10,y2:10}})}getMixedFruitColor(e){const t=this.getCurrentFruitColor(e);let r="";return this.lastFruitColor?(r=this.colorMixerService.mix(t,this.lastFruitColor),this.lastFruitColor=r):this.lastFruitColor=t,r||t}getCurrentFruitColor(e){return e.includes("dirty")?"#814f00":e.includes("old")?"#088A08":e.includes("apple")?"#F8C301":e.includes("banana")?"#FDD3A3":e.includes("cherry")?"#E83B57":void 0}calcCurrentBottleHeight(){return this.currentBottleHeight=this.currentBottleHeight-100/this.currentExercise.expectedFruits.length,this.currentBottleHeight<0&&(this.currentBottleHeight=0),this.currentBottleHeight+"%"}startConveyorBeltAnimation(){const e=this.conveyorBelt.nativeElement.contentDocument.querySelectorAll("[id^=wheel]");void 0===this.conveyorBeltAnimationTimeline?(this.conveyorBeltAnimationTimeline=gsap__WEBPACK_IMPORTED_MODULE_23__.a.timeline(),this.conveyorBeltAnimationTimeline.to(e,{duration:3,rotation:360,transformOrigin:"center",ease:"none",repeat:-1},0)):this.conveyorBeltAnimationTimeline.play(),this.soundService.playConveyorBeltSound()}stopAllAnimations(){var e;null===(e=this.conveyorBeltAnimationTimeline)||void 0===e||e.pause(),this.liquidAnimationTimeline.progress(0,!0).clear(),this.fruitAnimationTimelines.forEach(e=>e.progress(0,!0).clear()),this.fruitAnimationTimelines=[],this.soundService.stopAll()}resetBottleHeight(){this.currentBottleHeight=100,this.bottle.nativeElement.contentDocument.getElementById("fill-rect").setAttribute("height","100%")}nextExercise(e){this.resetCurrentState(),this.levelService.nextLevel(e),this.router.navigate([this.levelService.currentLevel.urlPath])}previousExercise(){this.resetCurrentState(),this.levelService.previousLevel(),this.router.navigate([this.levelService.currentLevel.urlPath])}goToExercise(e){this.resetCurrentState(),this.levelService.currentLevel=e,this.router.navigate([e.urlPath])}cancel(){this.fruits=[],this.isRunActive=!1,this.lastFruitColor="",this.stopAllAnimations(),this.resetBottleHeight()}resetCurrentState(){this.fruitsInPipe=[],this.fruits=[],this.isTooMuchFruits=!1,this.isNoFruitsIncoming=!1,this.isTooLittleFruits=!1,this.isNoActivateSubscribe=!1,this.isNextExerciseAvailable=!1,this.isErrorInConsole=!1,this.isRunActive=!1,this.lastFruitColor="",this.stopAllAnimations(),this.resetBottleHeight()}changeSound(){const e=this.soundService.changeSound(this.isRunActive);this.localStorageService.saveSoundSettings(e),this.soundIconPath=e.imagePath}}return GameComponent.\u0275fac=function(e){return new(e||GameComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_level_service__WEBPACK_IMPORTED_MODULE_28__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_ngx_translate_core__WEBPACK_IMPORTED_MODULE_29__.d),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_angular_router__WEBPACK_IMPORTED_MODULE_30__.b),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_exercise_service__WEBPACK_IMPORTED_MODULE_31__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_local_storage_service__WEBPACK_IMPORTED_MODULE_32__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_console_service__WEBPACK_IMPORTED_MODULE_33__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_cheating_detection_service__WEBPACK_IMPORTED_MODULE_34__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_confetti_service__WEBPACK_IMPORTED_MODULE_35__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_typescript_service__WEBPACK_IMPORTED_MODULE_36__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_color_mixer_service__WEBPACK_IMPORTED_MODULE_37__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_sound_service__WEBPACK_IMPORTED_MODULE_38__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_24__.b),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_angular_common_http__WEBPACK_IMPORTED_MODULE_39__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_angular_material_dialog__WEBPACK_IMPORTED_MODULE_40__.a))},GameComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Fb({type:GameComponent,selectors:[["app-game"]],viewQuery:function(e,t){if(1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.vc(_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_24__.a,1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.vc(_c0,3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.vc(_c1,3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.vc(_c2,3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.vc(_c3,3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.vc(_c4,3)),2&e){let e;_angular_core__WEBPACK_IMPORTED_MODULE_27__.gc(e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Xb())&&(t.editor=e.first),_angular_core__WEBPACK_IMPORTED_MODULE_27__.gc(e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Xb())&&(t.board=e.first),_angular_core__WEBPACK_IMPORTED_MODULE_27__.gc(e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Xb())&&(t.conveyorBelt=e.first),_angular_core__WEBPACK_IMPORTED_MODULE_27__.gc(e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Xb())&&(t.bottle=e.first),_angular_core__WEBPACK_IMPORTED_MODULE_27__.gc(e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Xb())&&(t.funnel=e.first),_angular_core__WEBPACK_IMPORTED_MODULE_27__.gc(e=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Xb())&&(t.liquid=e.first)}},decls:66,vars:39,consts:[["fxLayout","",3,"click"],["fxFlex","60%",1,"task"],["fxLayout","","fxLayoutAlign","space-between"],["fyLayout",""],["src","assets/Rx_Logo_S.png","alt","RxJS Logo",1,"logo"],[1,"title"],["id","level-counter"],[1,"arrow","left",3,"ngClass","click"],["id","level-indicator",3,"click"],["id","labelLevel"],[1,"caret"],[1,"arrow","right",3,"ngClass","click"],["id","levelsWrapper","class","tooltip",4,"ngIf"],[1,"instructions"],["fxLayout","",2,"height","50%"],["class","recipe",3,"ngClass",4,"ngIf"],[3,"options","ngModel","ngModelChange"],["fyLayout","","fxLayoutAlign","end"],["id","cancelButton",3,"click",4,"ngIf"],["id","startButton",3,"disabled","click",4,"ngIf"],["id","nextButton",3,"ngClass","disabled","click"],["fxLayout","row","fxLayoutAlign","center",1,"credits"],[3,"innerHTML"],["id","language"],[1,"toggle",3,"click"],["class","tooltip","style","display: block;",4,"ngIf"],[1,"small-button"],["routerLink","/privacy","target","_blank",1,"link"],["fxFlex","40%",1,"board"],["board",""],[1,"board__elements"],["alt","sound-icon",1,"sound-icon",3,"src","click"],[3,"id","src","appInit",4,"ngFor","ngForOf"],["id","conveyor-belt","data",_angular_core__WEBPACK_IMPORTED_MODULE_27__.uc`assets/conveyor-belt.svg`,"type","image/svg+xml"],["conveyorbelt",""],["id","liquid","data",_angular_core__WEBPACK_IMPORTED_MODULE_27__.uc`assets/liquid.svg`,"type","image/svg+xml",1,"element","element--liquid"],["liquid",""],["id","funnel","data",_angular_core__WEBPACK_IMPORTED_MODULE_27__.uc`assets/funnel.svg`,"type","image/svg+xml",1,"element","element--funnel"],["funnel",""],["id","bottle","data",_angular_core__WEBPACK_IMPORTED_MODULE_27__.uc`assets/bottle.svg`,"type","image/svg+xml",1,"element","element--bottle"],["bottle",""],["class","element element--output",4,"ngIf"],["class","element element--cheating-detected","src","assets/images/anti-cheat/no-no.gif","alt","no cheating please",4,"ngIf"],["id","levelsWrapper",1,"tooltip"],["id","levels"],["class","level-marker",3,"ngClass","title","click",4,"ngFor","ngForOf"],["id","labelReset",3,"click"],[1,"level-marker",3,"ngClass","title","click"],[1,"recipe",3,"ngClass"],[4,"ngFor","ngForOf"],["id","isTooMuchFruits",4,"ngIf"],["id","isNoFruitsIncoming",4,"ngIf"],["id","isTooLittleFruits",4,"ngIf"],["id","isNoActivateSubscribe",4,"ngIf"],["id","isTooMuchFruits"],["id","isNoFruitsIncoming"],["id","isTooLittleFruits"],["id","isNoActivateSubscribe"],["id","cancelButton",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24","width","24","viewBox","0 0 24 24"],["id","path1","transform","rotate(0,12,12) translate(0,0) scale(0.75,0.75) ","fill","#FFF5F5","d","M9.9000245,6.000003L6.0000001,9.8999988 12.100037,16.000007 6.0000001,22.100002 9.9000245,25.999997 16,19.900018 22.100037,25.999997 26,22.100002 19.900024,16.000007 26,9.8999988 22.100037,6.000003 16,12.099997z M16,0C24.799988,0 32,7.2000005 32,16.000007 32,24.800016 24.799988,32.000001 16,32.000001 7.2000123,32.000001 8.3946347E-08,24.800016 0,16.000007 8.3946347E-08,7.2000005 7.2000123,0 16,0z"],["id","startButton",3,"disabled","click"],["transform","rotate(0,12,12) translate(0,0) scale(0.75,0.75)","fill","#FFF5F5","d","M12.5,9.2999878L22,16 12.5,22.700012z M16,3.1000061C8.9000244,3.1000061 3.1000061,8.8999939 3.1000061,16 3.1000061,23.100006 8.9000244,28.899994 16,28.899994 23.100037,28.899994 28.900024,23.100006 28.900024,16 28.900024,8.8999939 23.100037,3.1000061 16,3.1000061z M16,0C24.799988,0 32,7.2000122 32,16 32,24.799988 24.799988,32 16,32 7.2000122,32 0,24.799988 0,16 0,7.2000122 7.2000122,0 16,0z"],[1,"tooltip",2,"display","block"],["class","language-marker",3,"click",4,"ngFor","ngForOf"],[1,"language-marker",3,"click"],[3,"id","src","appInit"],[1,"element","element--output"],["src","assets/images/anti-cheat/no-no.gif","alt","no cheating please",1,"element","element--cheating-detected"]],template:function(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"div",0),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return t.closeTooltipWrapper()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(1,"div",1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(2,"div",2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(3,"div",3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(4,"img",4),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(5,"h1",5),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(6,"RxJS-fruits"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(7,"div",6),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(8,"span",7),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return t.previousExercise()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(9,"\u25c0"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(10,"span",8),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return t.toggleLevelsWrapper()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(11,"span",9),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(12),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(13,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(14,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(15),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(16,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(17),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(18,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(19,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(20),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(21,"span",10),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(22,"\u25be"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(23,"span",11),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return t.nextExercise(!1)}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(24,"\u25b6"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(25,GameComponent_div_25_Template,6,4,"div",12),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(26,"router-outlet",13),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(27,"div",14),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(28,GameComponent_div_28_Template,13,14,"div",15),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(29,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(30,"uppercase"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(31,"ngx-monaco-editor",16),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("ngModelChange",function(e){return t.code=e}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(32,"div",17),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(33,GameComponent_button_33_Template,6,3,"button",18),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(34,GameComponent_button_34_Template,6,4,"button",19),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(35,"button",20),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return t.nextExercise(!0)}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(36),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(37,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(38,"div",21),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(39,"span",22),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(40,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(41,"span",23),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(42,"span",24),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return t.toggleLanguageOptions()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(43),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(44,"language"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(45,GameComponent_span_45_Template,2,1,"span",25),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(46,"span",26),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(47,"a",27),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(48),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(49,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(50,"div",28,29),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(52,"div",30),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(53,"img",31),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return t.changeSound()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(54,GameComponent_img_54_Template,1,2,"img",32),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(55,"object",33,34),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(57,"object",35,36),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(59,"object",37,38),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(61,"object",39,40),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(63,GameComponent_div_63_Template,3,3,"div",41),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(64,GameComponent_img_64_Template,1,0,"img",42),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(65,"app-cookie-banner")),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(8),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngClass",t.previousLevelStyle()),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(4),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(13,23,"APP.LEVEL")),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(t.levelService.currentLevel.number),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(18,25,"APP.LABELLEVEL")),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(t.levelService.levels.length),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngClass",t.nextLevelStyle()),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",t.isLevelsWrapperOpen),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(29,27,_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(30,29,"EXERCISES."+t.levelService.currentLevel.title+".RECIPEDESCRIPTION"))),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("options",t.editorOptions)("ngModel",t.code),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",t.isRunActive),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",!t.isRunActive),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngClass",t.buttonAnimationStyle())("disabled",!t.isNextExerciseAvailable),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(37,31,"APP.NEXTBUTTON")),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(40,33,"APP.CREDITS"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.jc),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(4),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(44,35,t.translate.currentLang)),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",t.isLanguageOptionsOpen),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(49,37,"APP.PRIVACYBUTTON")),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(5),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("src",t.soundIconPath,_angular_core__WEBPACK_IMPORTED_MODULE_27__.kc),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngForOf",t.fruits),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(9),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",t.isErrorInConsole),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",t.isCheatingDetected))},directives:[_angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_41__.c,_angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_41__.a,_angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_41__.b,_angular_common__WEBPACK_IMPORTED_MODULE_42__.h,_angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_43__.a,_angular_common__WEBPACK_IMPORTED_MODULE_42__.j,_angular_router__WEBPACK_IMPORTED_MODULE_30__.e,_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_24__.a,_angular_forms__WEBPACK_IMPORTED_MODULE_44__.d,_angular_forms__WEBPACK_IMPORTED_MODULE_44__.e,_angular_router__WEBPACK_IMPORTED_MODULE_30__.c,_angular_common__WEBPACK_IMPORTED_MODULE_42__.i,_cookie_banner_cookie_banner_component__WEBPACK_IMPORTED_MODULE_45__.a,_shared_init_directive__WEBPACK_IMPORTED_MODULE_46__.a],pipes:[_ngx_translate_core__WEBPACK_IMPORTED_MODULE_29__.c,_angular_common__WEBPACK_IMPORTED_MODULE_42__.n,_shared_language_pipe__WEBPACK_IMPORTED_MODULE_47__.a],styles:['ngx-monaco-editor{width:70%;height:100%}.instructions{margin-left:40px;margin-right:10px}.task{z-index:1;background-color:#0b7c99;padding:2em}.board{background-color:#384b64;height:100vh;width:50vw;display:inline-block;position:relative;overflow:hidden}.board__elements{position:relative;height:100%;width:100%}.element{position:absolute;left:0;right:0;margin-left:auto;margin-right:auto}.element--bottle{bottom:0;height:10vw}.element--funnel{top:50%;height:8vw}.element--liquid{top:50%;height:50%}.element--output{background-color:#000;color:red;top:50%;padding:10px;margin-top:10px;border-radius:10px;width:50%;text-align:center}.element--cheating-detected{top:40%}img[src^="assets/Fruit"]{position:absolute;top:0;right:0;bottom:0;left:0}#conveyor-belt{width:60vw;height:5vw;left:-25vw;top:10vh;position:absolute}img[src="assets/Fruit-Apple.svg"],img[src="assets/Fruit-dirty-Apple.svg"],img[src="assets/Fruit-old-Apple.svg"]{width:10%}img[src="assets/Fruit-Cherry.svg"],img[src="assets/Fruit-dirty-Cherry.svg"],img[src="assets/Fruit-old-Cherry.svg"]{width:5%}img[src="assets/Fruit-Banana.svg"],img[src="assets/Fruit-dirty-Banana.svg"],img[src="assets/Fruit-old-Banana.svg"]{width:8%}.sound-icon{width:3%;margin:10px;cursor:pointer}.title{margin:.5rem 10px 0;font-size:30px;display:inline}.logo{width:20%;vertical-align:bottom}.nextButtonAnimation{-webkit-animation:tada 1s,pulse 2s 2s infinite;animation:tada 1s,pulse 2s 2s infinite}button{display:inline-block;padding:.4em 2em;margin-top:.5em;margin-left:.5em;background-color:#82267b;border:none;border-radius:4px;font-family:PT Sans,sans-serif;font-size:16px;line-height:24px;color:#fff;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}button:active{outline:none}button:not(.disabled):hover{background-color:#571a52}button[disabled]{opacity:.5}button svg{vertical-align:middle}#cancelButton{background-color:#8b0000}#cancelButton:hover{background-color:#610101}#level-counter{position:relative;display:inline-block;height:30px;margin-top:.5rem;font-size:15px;-webkit-user-select:none;-moz-user-select:none;user-select:none}#level-indicator,.arrow{float:left;height:30px;background-color:hsla(0,0%,100%,.2)}#level-indicator{display:inline-block;width:160px;line-height:30px;text-align:center;padding:.25em .4em 0;cursor:pointer}#level-indicator:hover,.arrow:not(.disabled):hover{background-color:hsla(0,0%,100%,.4)}#labelLevel{margin-left:5px}.caret{margin-left:2px}.arrow,.caret{display:inline-block}.arrow{font-family:Comic Sans MS;padding:.25em .4em 0;cursor:pointer}.arrow.left{border-right:1px solid hsla(0,0%,100%,.2);border-radius:4px 0 0 4px}.arrow.right{border-left:1px solid hsla(0,0%,100%,.2);border-radius:0 4px 4px 0}.arrow.left:not(.disabled):hover,.arrow.right:not(.disabled):hover{border-color:transparent}.arrow.disabled{opacity:.5}#levelsWrapper{top:34px;right:25px;max-width:160px;padding:1em .5em;margin-top:12px;z-index:80}#levelsWrapper:after{left:calc(50% - 12px)}.tooltip{position:absolute;display:inline-block;padding:0 1em 1em;background-color:#2c3e50;border-radius:4px;font-size:12px;line-height:1.5;z-index:60}.tooltip:after{content:"";position:absolute;top:-12px;left:12px;width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid #2c3e50}#levels{display:flex;flex-wrap:wrap;justify-content:center}#labelReset{margin-top:1em}#labelReset,.level-marker{text-align:center;cursor:pointer}.level-marker{display:inline-block;width:30px;height:30px;margin:2px;line-height:26px;background-color:hsla(0,0%,100%,.2);border:2px solid transparent;border-radius:50%}.level-marker.current,.level-marker:hover{border-color:hsla(0,0%,100%,.5)}.level-marker.solved{background-color:#228b24;background-color:#5da449}.recipe{padding:10px;margin-right:10px;border-radius:10px;font-size:14px;width:30%;overflow:auto}.recipe,code.help{background-color:hsla(0,0%,100%,.2)}code.help{padding:0 2px;font-family:Source Code Pro,monospace;font-weight:900;color:hsla(0,0%,100%,.8);white-space:nowrap;cursor:pointer;border-bottom:1px solid hsla(0,0%,100%,.7)}.codeTooltip{visibility:collapse;padding:1em .5em}a{color:hsla(0,0%,100%,.7)}a:hover{color:#fff}.credits{margin-top:3.5em;line-height:1.5em;text-align:center;font-size:12px;color:hsla(0,0%,100%,.4)}.credits-link,.credits-text{margin-left:5px}.credits-link{margin-right:5px}#language{position:relative;margin-left:10px}#language .toggle{display:inline-block;padding:1px 8px;background-color:hsla(0,0%,100%,.2);border-radius:3px;color:hsla(0,0%,100%,.7);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}#language .toggle:hover{background-color:hsla(0,0%,100%,.3)}#language .tooltip{display:none;bottom:30px;left:0;width:200px;padding:1em;z-index:80}#language .tooltip:after{top:auto;bottom:-12px;border:12px solid transparent;border-top-color:#2c3e50;border-bottom:none}#language .tooltip a{padding:0 2px;font-weight:900;color:hsla(0,0%,100%,.7);white-space:nowrap}#language .tooltip a:hover{color:#fff}.language-marker{width:30px;height:30px;margin:2px;line-height:26px;text-align:center;cursor:pointer}.language-marker.current,.language-marker:hover{color:#fff;text-decoration:underline}.small-button{display:inline-block;padding:1px 8px;background-color:hsla(0,0%,100%,.2);border-radius:3px;color:hsla(0,0%,100%,.7);cursor:pointer;margin-left:5px}.small-button>a{text-decoration:none}.small-button:hover{background-color:hsla(0,0%,100%,.3)}'],encapsulation:2}),Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)([Object(property_watch_decorator__WEBPACK_IMPORTED_MODULE_26__.OnChange)(function(e){this.isRunActive&&this.cancel(),e&&this.localStorageService.saveCode(this.levelService.currentLevel.title,e),this.isCheatingDetected=this.cheatingDetectionService.analyseCode(e)})],GameComponent.prototype,"code",void 0),GameComponent})()},jZKg:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("HDdC"),i=r("quSY");function a(e,t){return new n.a(r=>{const n=new i.a;let a=0;return n.add(t.schedule(function(){a!==e.length?(r.next(e[a++]),r.closed||n.add(this.schedule())):r.complete()})),n})}},jtHE:function(e,t,r){"use strict";r.d(t,"a",function(){return m});var n=r("XNiG"),i=r("3N8a");class a extends i.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,r=0){return null!==r&&r>0||null===r&&this.delay>0?super.requestAsyncId(e,t,r):e.flush(this)}}var o=r("IjjT");class s extends o.a{}const c=new s(a);var u=r("quSY"),l=r("7o/Q"),_=r("WMd4");class d extends l.a{constructor(e,t,r=0){super(e),this.scheduler=t,this.delay=r}static dispatch(e){const{notification:t,destination:r}=e;t.observe(r),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(d.dispatch,this.delay,new p(e,this.destination)))}_next(e){this.scheduleMessage(_.a.createNext(e))}_error(e){this.scheduleMessage(_.a.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(_.a.createComplete()),this.unsubscribe()}}class p{constructor(e,t){this.notification=e,this.destination=t}}var f=r("9ppp"),g=r("Ylt2");class m extends n.a{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,r){super(),this.scheduler=r,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new h(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,r=t?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,i=r.length;let a;if(this.closed)throw new f.a;if(this.isStopped||this.hasError?a=u.a.EMPTY:(this.observers.push(e),a=new g.a(this,e)),n&&e.add(e=new d(e,n)),t)for(let o=0;ot&&(a=Math.max(a,i-t)),a>0&&n.splice(0,a),n}}class h{constructor(e,t){this.time=e,this.value=t}}},kJWO:function(e,t,r){"use strict";r.d(t,"a",function(){return n});const n=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kagm:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("7o/Q"),i=r("4I5i");function a(e){return t=>t.lift(new o(e))}class o{constructor(e){if(this._skipCount=e,this._skipCount<0)throw new i.a}call(e,t){return t.subscribe(0===this._skipCount?new n.a(e):new s(e,this._skipCount))}}class s extends n.a{constructor(e,t){super(e),this._skipCount=t,this._count=0,this._ring=new Array(t)}_next(e){const t=this._skipCount,r=this._count++;if(r{class e{constructor(){this.setupConsoleImage()}setupConsoleImage(){console.image=(e,t)=>{t=t||1;const r=new Image;r.onload=()=>{const n=(i=r.height*t,{string:"+",style:`font-size: 1px; padding: 0 ${Math.floor(r.width*t/2)}px; line-height: ${i}px;`});var i;console.log(`%c${n.string}`,`${n.style}background: url(${e}); background-size: ${r.width*t}px ${r.height*t}px; color: transparent;`)},r.src=e}}showRandomErrorImage(){const e=Math.floor(15*Math.random());e<8?console.image(`${window.location.origin}/assets/images/exceptions/${e}.jpg`):e>7&&console.image(`${window.location.origin}/assets/images/exceptions/${e}.gif`)}showWelcomeMessage(){console.clear();const e="\n _____ _ _____ __ _ _ \n| __ \\ | |/ ____| / _| (_) | \n| |__) |__ __ | | (___ ______| |_ _ __ _ _ _| |_ ___ \n| _ / \\ \\/ / | |\\___ \\______| _| '__| | | | | __/ __|\n| | \\ \\ > < |__| |____) | | | | | | |_| | | |_\\__ \\\n|_| \\_\\/_/\\_\\____/|_____/ |_| |_| \\__,_|_|\\__|___/\n\nDebug your pipe with the tap-operator:\n\nfruits.pipe(\n tap(fruit => console.log('before: ' + fruit)),\n ...\n tap(fruit => console.log('after: ' + fruit))\n)\n ";console.info?console.info(e):console.log(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},mrSG:function(e,t,r){"use strict";function n(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o}r.d(t,"a",function(){return n})},n6bG:function(e,t,r){"use strict";function n(e){return"function"==typeof e}r.d(t,"a",function(){return n})},nOaX:function(e,t,r){"use strict";r.d(t,"a",function(){return fe});var n,i,a,o,s,c,u,l,_=r("pc+1"),d={},p=180/Math.PI,f=Math.PI/180,g=Math.atan2,m=/([A-Z])/g,h=/(?:left|right|width|margin|padding|x)/i,y=/[\s,\(]\S/,v={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},b=function(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},x=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},D=function(e,t){return t.set(t.t,t.p,e?Math.round(1e4*(t.s+t.c*e))/1e4+t.u:t.b,t)},S=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},E=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},C=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},T=function(e,t,r){return e.style[t]=r},k=function(e,t,r){return e.style.setProperty(t,r)},w=function(e,t,r){return e._gsap[t]=r},A=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},N=function(e,t,r,n,i){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(i,a)},P=function(e,t,r,n,i){var a=e._gsap;a[t]=r,a.renderTransform(i,a)},O="transform",F=O+"Origin",I=function(e,t){var r=i.createElementNS?i.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):i.createElement(e);return r.style?r:i.createElement(e)},M=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(m,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,R(r)||r,1)||""},L="O,Moz,ms,Ms,Webkit".split(","),R=function(e,t,r){var n=(t||s).style,i=5;if(e in n&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(L[i]+e in n););return i<0?null:(3===i?"ms":i>=0?L[i]:"")+e},B=function(){"undefined"!=typeof window&&window.document&&(n=window,a=(i=n.document).documentElement,s=I("div")||{style:{}},c=I("div"),O=R(O),F=O+"Origin",s.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",l=!!R("perspective"),o=1)},j=function e(t){var r,n=I("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,o=this.nextSibling,s=this.style.cssText;if(a.appendChild(n),n.appendChild(this),this.style.display="block",t)try{r=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=e}catch(c){}else this._gsapBBox&&(r=this._gsapBBox());return i&&(o?i.insertBefore(this,o):i.appendChild(this)),a.removeChild(n),this.style.cssText=s,r},U=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},z=function(e){var t;try{t=e.getBBox()}catch(r){t=j.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===j||(t=j.call(e,!0)),!t||t.width||t.x||t.y?t:{x:+U(e,["x","cx","x1"])||0,y:+U(e,["y","cy","y1"])||0,width:0,height:0}},J=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!z(e))},V=function(e,t){if(t){var r=e.style;t in d&&t!==F&&(t=O),r.removeProperty?("ms"!==t.substr(0,2)&&"webkit"!==t.substr(0,6)||(t="-"+t),r.removeProperty(t.replace(m,"-$1").toLowerCase())):r.removeAttribute(t)}},W=function(e,t,r,n,i,a){var o=new _.b(e._pt,t,r,0,1,a?C:E);return e._pt=o,o.b=n,o.e=i,e._props.push(r),o},q={deg:1,rad:1,turn:1},K=function e(t,r,n,a){var o,c,u,l,p=parseFloat(n)||0,f=(n+"").trim().substr((p+"").length)||"px",g=s.style,m=h.test(r),y="svg"===t.tagName.toLowerCase(),v=(y?"client":"offset")+(m?"Width":"Height"),b="px"===a,x="%"===a;return a===f||!p||q[a]||q[f]?p:("px"!==f&&!b&&(p=e(t,r,n,"px")),l=t.getCTM&&J(t),!x&&"%"!==f||!d[r]&&!~r.indexOf("adius")?(g[m?"width":"height"]=100+(b?f:a),c=~r.indexOf("adius")||"em"===a&&t.appendChild&&!y?t:t.parentNode,l&&(c=(t.ownerSVGElement||{}).parentNode),c&&c!==i&&c.appendChild||(c=i.body),(u=c._gsap)&&x&&u.width&&m&&u.time===_.u.time?Object(_.s)(p/u.width*100):((x||"%"===f)&&(g.position=M(t,"position")),c===t&&(g.position="static"),c.appendChild(s),o=s[v],c.removeChild(s),g.position="absolute",m&&x&&((u=Object(_.g)(c)).time=_.u.time,u.width=c[v]),Object(_.s)(b?o*p/100:o&&p?100/o*p:0))):(o=l?t.getBBox()[m?"width":"height"]:t[v],Object(_.s)(x?p/o*100:p/100*o)))},H=function(e,t,r,n){var i;return o||B(),t in v&&"transform"!==t&&~(t=v[t]).indexOf(",")&&(t=t.split(",")[0]),d[t]&&"transform"!==t?(i=ie(e,n),i="transformOrigin"!==t?i[t]:ae(M(e,F))+" "+i.zOrigin+"px"):(!(i=e.style[t])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=X[t]&&X[t](e,t,r)||M(e,t)||Object(_.h)(e,t)||("opacity"===t?1:0)),r&&!~(i+"").trim().indexOf(" ")?K(e,t,i,r)+r:i},G=function(e,t,r,n){if(!r||"none"===r){var i=R(t,e,1),a=i&&M(e,i,1);a&&a!==r?(t=i,r=a):"borderColor"===t&&(r=M(e,"borderTopColor"))}var o,s,c,u,l,d,p,f,g,m,h,y,v=new _.b(this._pt,e.style,t,0,1,_.q),b=0,x=0;if(v.b=r,v.e=n,r+="","auto"==(n+="")&&(e.style[t]=n,n=M(e,t)||n,e.style[t]=r),o=[r,n],Object(_.d)(o),n=o[1],c=(r=o[0]).match(_.n)||[],(n.match(_.n)||[]).length){for(;s=_.n.exec(n);)p=s[0],g=n.substring(b,s.index),l?l=(l+1)%5:"rgba("!==g.substr(-5)&&"hsla("!==g.substr(-5)||(l=1),p!==(d=c[x++]||"")&&(u=parseFloat(d)||0,h=d.substr((u+"").length),(y="="===p.charAt(1)?+(p.charAt(0)+"1"):0)&&(p=p.substr(2)),f=parseFloat(p),m=p.substr((f+"").length),b=_.n.lastIndex-m.length,m||(m=m||_.e.units[t]||h,b===n.length&&(n+=m,v.e+=m)),h!==m&&(u=K(e,t,d,m)||0),v._pt={_next:v._pt,p:g||1===x?g:",",s:u,c:y?y*f:f-u,m:l&&l<4||"zIndex"===t?Math.round:0});v.c=b-1;)d[r=o[i]]&&(n=1,r="transformOrigin"===r?F:O),V(a,r);n&&(V(a,O),s&&(s.svg&&a.removeAttribute("transform"),ie(a,1),s.uncache=1))}},X={clearProps:function(e,t,r,n,i){if("isFromStart"!==i.data){var a=e._pt=new _.b(e._pt,t,r,0,0,$);return a.u=n,a.pr=-10,a.tween=i,e._props.push(r),1}}},Y=[1,0,0,1,0,0],Z={},ee=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},te=function(e){var t=M(e,O);return ee(t)?Y:t.substr(7).match(_.m).map(_.s)},re=function(e,t){var r,n,i,o,s=e._gsap||Object(_.g)(e),c=e.style,u=te(e);return s.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=e.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Y:u:(u!==Y||e.offsetParent||e===a||s.svg||(i=c.display,c.display="block",(r=e.parentNode)&&e.offsetParent||(o=1,n=e.nextSibling,a.appendChild(e)),u=te(e),i?c.display=i:V(e,"display"),o&&(n?r.insertBefore(e,n):r?r.appendChild(e):a.removeChild(e))),t&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},ne=function(e,t,r,n,i,a){var o,s,c,u=e._gsap,l=i||re(e,!0),_=u.xOrigin||0,d=u.yOrigin||0,p=u.xOffset||0,f=u.yOffset||0,g=l[0],m=l[1],h=l[2],y=l[3],v=l[4],b=l[5],x=t.split(" "),D=parseFloat(x[0])||0,S=parseFloat(x[1])||0;r?l!==Y&&(s=g*y-m*h)&&(c=D*(-m/s)+S*(g/s)-(g*b-m*v)/s,D=D*(y/s)+S*(-h/s)+(h*b-y*v)/s,S=c):(D=(o=z(e)).x+(~x[0].indexOf("%")?D/100*o.width:D),S=o.y+(~(x[1]||x[0]).indexOf("%")?S/100*o.height:S)),n||!1!==n&&u.smooth?(u.xOffset=p+((v=D-_)*g+(b=S-d)*h)-v,u.yOffset=f+(v*m+b*y)-b):u.xOffset=u.yOffset=0,u.xOrigin=D,u.yOrigin=S,u.smooth=!!n,u.origin=t,u.originIsAbsolute=!!r,e.style[F]="0px 0px",a&&(W(a,u,"xOrigin",_,D),W(a,u,"yOrigin",d,S),W(a,u,"xOffset",p,u.xOffset),W(a,u,"yOffset",f,u.yOffset)),e.setAttribute("data-svg-origin",D+" "+S)},ie=function(e,t){var r=e._gsap||new _.a(e);if("x"in r&&!t&&!r.uncache)return r;var n,i,a,o,s,c,u,d,m,h,y,v,b,x,D,S,E,C,T,k,w,A,N,P,I,L,R,B,j,U,z,V,W=e.style,q=r.scaleX<0,K=M(e,F)||"0";return n=i=a=c=u=d=m=h=y=0,o=s=1,r.svg=!(!e.getCTM||!J(e)),x=re(e,r.svg),r.svg&&(P=!r.uncache&&e.getAttribute("data-svg-origin"),ne(e,P||K,!!P||r.originIsAbsolute,!1!==r.smooth,x)),v=r.xOrigin||0,b=r.yOrigin||0,x!==Y&&(C=x[0],T=x[1],k=x[2],w=x[3],n=A=x[4],i=N=x[5],6===x.length?(o=Math.sqrt(C*C+T*T),s=Math.sqrt(w*w+k*k),c=C||T?g(T,C)*p:0,(m=k||w?g(k,w)*p+c:0)&&(s*=Math.cos(m*f)),r.svg&&(n-=v-(v*C+b*k),i-=b-(v*T+b*w))):(U=x[7],R=x[8],B=x[9],z=x[11],n=x[12],i=x[13],a=x[14],u=(D=g(V=x[6],j=x[10]))*p,D&&(P=A*(S=Math.cos(-D))+R*(E=Math.sin(-D)),I=N*S+B*E,L=V*S+j*E,R=A*-E+R*S,B=N*-E+B*S,j=V*-E+j*S,z=U*-E+z*S,A=P,N=I,V=L),d=(D=g(-k,j))*p,D&&(S=Math.cos(-D),z=w*(E=Math.sin(-D))+z*S,C=P=C*S-R*E,T=I=T*S-B*E,k=L=k*S-j*E),c=(D=g(T,C))*p,D&&(P=C*(S=Math.cos(D))+T*(E=Math.sin(D)),I=A*S+N*E,T=T*S-C*E,N=N*S-A*E,C=P,A=I),u&&Math.abs(u)+Math.abs(c)>359.9&&(u=c=0,d=180-d),o=Object(_.s)(Math.sqrt(C*C+T*T+k*k)),s=Object(_.s)(Math.sqrt(N*N+V*V)),D=g(A,N),m=Math.abs(D)>2e-4?D*p:0,y=z?1/(z<0?-z:z):0),r.svg&&(P=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!ee(M(e,O)),P&&e.setAttribute("transform",P))),Math.abs(m)>90&&Math.abs(m)<270&&(q?(o*=-1,m+=c<=0?180:-180,c+=c<=0?180:-180):(s*=-1,m+=m<=0?180:-180)),r.x=n-((r.xPercent=n&&(r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-n)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+"px",r.y=i-((r.yPercent=i&&(r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+"px",r.z=a+"px",r.scaleX=Object(_.s)(o),r.scaleY=Object(_.s)(s),r.rotation=Object(_.s)(c)+"deg",r.rotationX=Object(_.s)(u)+"deg",r.rotationY=Object(_.s)(d)+"deg",r.skewX=m+"deg",r.skewY=h+"deg",r.transformPerspective=y+"px",(r.zOrigin=parseFloat(K.split(" ")[2])||0)&&(W[F]=ae(K)),r.xOffset=r.yOffset=0,r.force3D=_.e.force3D,r.renderTransform=r.svg?ue:l?ce:se,r.uncache=0,r},ae=function(e){return(e=e.split(" "))[0]+" "+e[1]},oe=function(e,t,r){var n=Object(_.v)(t);return Object(_.s)(parseFloat(t)+parseFloat(K(e,"x",r+"px",n)))+n},se=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,ce(e,t)},ce=function(e,t){var r=t||this,n=r.xPercent,i=r.yPercent,a=r.x,o=r.y,s=r.z,c=r.rotation,u=r.rotationY,l=r.rotationX,_=r.skewX,d=r.skewY,p=r.scaleX,g=r.scaleY,m=r.transformPerspective,h=r.force3D,y=r.target,v=r.zOrigin,b="",x="auto"===h&&e&&1!==e||!0===h;if(v&&("0deg"!==l||"0deg"!==u)){var D,S=parseFloat(u)*f,E=Math.sin(S),C=Math.cos(S);S=parseFloat(l)*f,D=Math.cos(S),a=oe(y,a,E*D*-v),o=oe(y,o,-Math.sin(S)*-v),s=oe(y,s,C*D*-v+v)}"0px"!==m&&(b+="perspective("+m+") "),(n||i)&&(b+="translate("+n+"%, "+i+"%) "),(x||"0px"!==a||"0px"!==o||"0px"!==s)&&(b+="0px"!==s||x?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+") "),"0deg"!==c&&(b+="rotate("+c+") "),"0deg"!==u&&(b+="rotateY("+u+") "),"0deg"!==l&&(b+="rotateX("+l+") "),"0deg"===_&&"0deg"===d||(b+="skew("+_+", "+d+") "),1===p&&1===g||(b+="scale("+p+", "+g+") "),y.style[O]=b||"translate(0, 0)"},ue=function(e,t){var r,n,i,a,o,s=t||this,c=s.xPercent,u=s.yPercent,l=s.x,d=s.y,p=s.rotation,g=s.skewX,m=s.skewY,h=s.scaleX,y=s.scaleY,v=s.target,b=s.xOrigin,x=s.yOrigin,D=s.xOffset,S=s.yOffset,E=s.forceCSS,C=parseFloat(l),T=parseFloat(d);p=parseFloat(p),g=parseFloat(g),(m=parseFloat(m))&&(g+=m=parseFloat(m),p+=m),p||g?(p*=f,g*=f,r=Math.cos(p)*h,n=Math.sin(p)*h,i=Math.sin(p-g)*-y,a=Math.cos(p-g)*y,g&&(m*=f,o=Math.tan(g-m),i*=o=Math.sqrt(1+o*o),a*=o,m&&(o=Math.tan(m),r*=o=Math.sqrt(1+o*o),n*=o)),r=Object(_.s)(r),n=Object(_.s)(n),i=Object(_.s)(i),a=Object(_.s)(a)):(r=h,a=y,n=i=0),(C&&!~(l+"").indexOf("px")||T&&!~(d+"").indexOf("px"))&&(C=K(v,"x",l,"px"),T=K(v,"y",d,"px")),(b||x||D||S)&&(C=Object(_.s)(C+b-(b*r+x*i)+D),T=Object(_.s)(T+x-(b*n+x*a)+S)),(c||u)&&(o=v.getBBox(),C=Object(_.s)(C+c/100*o.width),T=Object(_.s)(T+u/100*o.height)),v.setAttribute("transform",o="matrix("+r+","+n+","+i+","+a+","+C+","+T+")"),E&&(v.style[O]=o)},le=function(e,t,r,n,i,a){var o,s,c=Object(_.j)(i),u=parseFloat(i)*(c&&~i.indexOf("rad")?p:1),l=a?u*a:u-n,d=n+l+"deg";return c&&("short"===(o=i.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===o&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===o&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=s=new _.b(e._pt,t,r,n,l,x),s.e=d,s.u="deg",e._props.push(r),s},_e=function(e,t,r){var n,a,o,s,u,l,p,f=c.style,g=r._gsap;for(a in f.cssText=getComputedStyle(r).cssText+";position:absolute;display:block;",f[O]=t,i.body.appendChild(c),n=ie(c,1),d)(o=g[a])!==(s=n[a])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(a)<0&&(u=Object(_.v)(o)!==(p=Object(_.v)(s))?K(r,a,o,p):parseFloat(o),l=parseFloat(s),e._pt=new _.b(e._pt,g,a,u,l-u,b),e._pt.u=p||0,e._props.push(a));i.body.removeChild(c)};Object(_.f)("padding,margin,Width,Radius",function(e,t){var r="Top",n="Right",i="Bottom",a="Left",o=(t<3?[r,n,i,a]:[r+a,r+n,i+n,i+a]).map(function(r){return t<2?e+r:"border"+r+e});X[t>1?"border"+e:e]=function(e,t,r,n,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return H(e,t,r)}),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(n+"").split(" "),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var de,pe,fe={name:"css",register:B,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,i){var a,s,c,u,l,p,f,g,m,h,x,E,C,T,k,w,A,N,P,F=this._props,I=e.style,M=r.vars.startAt;for(f in o||B(),t)if("autoRound"!==f&&(s=t[f],!_.o[f]||!Object(_.c)(f,t,r,n,e,i)))if(p=X[f],"function"==(l=typeof s)&&(l=typeof(s=s.call(r,n,e,i))),"string"===l&&~s.indexOf("random(")&&(s=Object(_.r)(s)),p)p(this,e,f,s,r)&&(k=1);else if("--"===f.substr(0,2))a=(getComputedStyle(e).getPropertyValue(f)+"").trim(),s+="",g=Object(_.v)(a),(m=Object(_.v)(s))?g!==m&&(a=K(e,f,a,m)+m):g&&(s+=g),this.add(I,"setProperty",a,s,n,i,0,0,f);else if("undefined"!==l){if(M&&f in M?(a="function"==typeof M[f]?M[f].call(r,n,e,i):M[f],f in _.e.units&&!Object(_.v)(a)&&(a+=_.e.units[f]),"="===(a+"").charAt(1)&&(a=H(e,f))):a=H(e,f),u=parseFloat(a),(h="string"===l&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),c=parseFloat(s),f in v&&("autoAlpha"===f&&(1===u&&"hidden"===H(e,"visibility")&&c&&(u=0),W(this,I,"visibility",u?"inherit":"hidden",c?"inherit":"hidden",!c)),"scale"!==f&&"transform"!==f&&~(f=v[f]).indexOf(",")&&(f=f.split(",")[0])),x=f in d)if(E||((C=e._gsap).renderTransform&&!t.parseTransform||ie(e,t.parseTransform),T=!1!==t.smoothOrigin&&C.smooth,(E=this._pt=new _.b(this._pt,I,O,0,1,C.renderTransform,C,0,-1)).dep=1),"scale"===f)this._pt=new _.b(this._pt,C,"scaleY",C.scaleY,h?h*c:c-C.scaleY),F.push("scaleY",f),f+="X";else{if("transformOrigin"===f){A=void 0,N=void 0,P=void 0,P=(A=(w=s).split(" "))[1]||"50%","top"!==(N=A[0])&&"bottom"!==N&&"left"!==P&&"right"!==P||(w=N,N=P,P=w),A[0]=Q[N]||N,A[1]=Q[P]||P,s=A.join(" "),C.svg?ne(e,s,0,T,0,this):((m=parseFloat(s.split(" ")[2])||0)!==C.zOrigin&&W(this,C,"zOrigin",C.zOrigin,m),W(this,I,f,ae(a),ae(s)));continue}if("svgOrigin"===f){ne(e,s,1,T,0,this);continue}if(f in Z){le(this,C,f,u,s,h);continue}if("smoothOrigin"===f){W(this,C,"smooth",C.smooth,s);continue}if("force3D"===f){C[f]=s;continue}if("transform"===f){_e(this,s,e);continue}}else f in I||(f=R(f)||f);if(x||(c||0===c)&&(u||0===u)&&!y.test(s)&&f in I)c||(c=0),(g=(a+"").substr((u+"").length))!==(m=Object(_.v)(s)||(f in _.e.units?_.e.units[f]:g))&&(u=K(e,f,a,m)),this._pt=new _.b(this._pt,x?C:I,f,u,h?h*c:c-u,x||"px"!==m&&"zIndex"!==f||!1===t.autoRound?b:S),this._pt.u=m||0,g!==m&&(this._pt.b=a,this._pt.r=D);else if(f in I)G.call(this,e,f,a,s);else{if(!(f in e)){Object(_.l)(f,s);continue}this.add(e,f,e[f],s,n,i)}F.push(f)}k&&Object(_.t)(this)},get:H,aliases:v,getSetter:function(e,t,r){var n=v[t];return n&&n.indexOf(",")<0&&(t=n),t in d&&t!==F&&(e._gsap.x||H(e,"x"))?r&&u===r?"scale"===t?A:w:(u=r||{})&&("scale"===t?N:P):e.style&&!Object(_.k)(e.style[t])?T:~t.indexOf("-")?k:Object(_.i)(e,t)},core:{_removeProperty:V,_getMatrix:re}};_.w.utils.checkPrefix=R,de="rotation,rotationX,rotationY,skewX,skewY",pe=Object(_.f)("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+de+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){d[e]=1}),Object(_.f)(de,function(e){_.e.units[e]="deg",Z[e]=1}),v[pe[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+de,Object(_.f)("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");v[t[1]]=pe[t[0]]}),Object(_.f)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){_.e.units[e]="px"}),_.w.registerPlugin(fe)},ngJS:function(e,t,r){"use strict";r.d(t,"a",function(){return n});const n=e=>t=>{for(let r=0,n=e.length;r{const r=e.offset,n=r==u,_=n&&l||{};Object.keys(e).forEach(r=>{let n=r,c=e[r];if("offset"!==r)switch(n=t.normalizePropertyName(n,s),c){case a.l:c=i[r];break;case a.a:c=o[r];break;default:c=t.normalizeStyleValue(r,n,c,s)}_[n]=c}),n||c.push(_),l=_,u=r}),s.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${s.join(e)}`)}return c}function u(e,t,r,n){switch(t){case"start":e.onStart(()=>n(r&&l(r,"start",e)));break;case"done":e.onDone(()=>n(r&&l(r,"done",e)));break;case"destroy":e.onDestroy(()=>n(r&&l(r,"destroy",e)))}}function l(e,t,r){const n=r.totalTime,i=_(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==n?e.totalTime:n,!!r.disabled),a=e._data;return null!=a&&(i._data=a),i}function _(e,t,r,n,i="",a=0,o){return{element:e,triggerName:t,fromState:r,toState:n,phaseName:i,totalTime:a,disabled:!!o}}function d(e,t,r){let n;return e instanceof Map?(n=e.get(t),n||e.set(t,n=r)):(n=e[t],n||(n=e[t]=r)),n}function p(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let f=(e,t)=>!1,g=(e,t)=>!1,m=(e,t,r)=>[];const h=o();(h||"undefined"!=typeof Element)&&(f=(e,t)=>e.contains(t),g=(()=>{if(h||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,r)=>t.apply(e,[r]):g}})(),m=(e,t,r)=>{let n=[];if(r){const r=e.querySelectorAll(t);for(let e=0;e{const n=r.replace(/([a-z])([A-Z])/g,"$1-$2");t[n]=e[r]}),t}let C=(()=>{class e{validateStyleProperty(e){return b(e)}matchesElement(e,t){return x(e,t)}containsElement(e,t){return D(e,t)}query(e,t,r){return S(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,n,i,o=[],s){return new a.d(r,n)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})(),T=(()=>{class e{}return e.NOOP=new C,e})();function k(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:w(parseFloat(t[1]),t[2])}function w(e,t){switch(t){case"s":return 1e3*e;default:return e}}function A(e,t,r){return e.hasOwnProperty("duration")?e:function(e,t,r){let n,i=0,a="";if("string"==typeof e){const r=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===r)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};n=w(parseFloat(r[1]),r[2]);const o=r[3];null!=o&&(i=w(parseFloat(o),r[4]));const s=r[5];s&&(a=s)}else n=e;if(!r){let r=!1,a=t.length;n<0&&(t.push("Duration values below 0 are not allowed for this animation step."),r=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),r=!0),r&&t.splice(a,0,`The provided timing value "${e}" is invalid.`)}return{duration:n,delay:i,easing:a}}(e,t,r)}function N(e,t={}){return Object.keys(e).forEach(r=>{t[r]=e[r]}),t}function P(e,t,r={}){if(t)for(let n in e)r[n]=e[n];else N(e,r);return r}function O(e,t,r){return r?t+":"+r+";":""}function F(e){let t="";for(let r=0;r{const i=J(n);r&&!r.hasOwnProperty(n)&&(r[n]=e.style[i]),e.style[i]=t[n]}),o()&&F(e))}function M(e,t){e.style&&(Object.keys(t).forEach(t=>{const r=J(t);e.style[r]=""}),o()&&F(e))}function L(e){return Array.isArray(e)?1==e.length?e[0]:Object(a.f)(e):e}const R=new RegExp("{{\\s*(.+?)\\s*}}","g");function B(e){let t=[];if("string"==typeof e){let r;for(;r=R.exec(e);)t.push(r[1]);R.lastIndex=0}return t}function j(e,t,r){const n=e.toString(),i=n.replace(R,(e,n)=>{let i=t[n];return t.hasOwnProperty(n)||(r.push(`Please provide a value for the animation param ${n}`),i=""),i.toString()});return i==n?e:i}function U(e){const t=[];let r=e.next();for(;!r.done;)t.push(r.value),r=e.next();return t}const z=/-+([a-z0-9])/g;function J(e){return e.replace(z,(...e)=>e[1].toUpperCase())}function V(e,t){return 0===e||0===t}function W(e,t,r){const n=Object.keys(r);if(n.length&&t.length){let a=t[0],o=[];if(n.forEach(e=>{a.hasOwnProperty(e)||o.push(e),a[e]=r[e]}),o.length)for(var i=1;ifunction(e,t,r){if(":"==e[0]){const n=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(e,r);if("function"==typeof n)return void t.push(n);e=n}const n=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return r.push(`The provided transition expression "${e}" is not supported`),t;const i=n[1],a=n[2],o=n[3];t.push($(i,o)),"<"!=a[0]||"*"==i&&"*"==o||t.push($(o,i))}(e,r,t)):r.push(e),r}const G=new Set(["true","1"]),Q=new Set(["false","0"]);function $(e,t){const r=G.has(e)||Q.has(e),n=G.has(t)||Q.has(t);return(i,a)=>{let o="*"==e||e==i,s="*"==t||t==a;return!o&&r&&"boolean"==typeof i&&(o=i?G.has(e):Q.has(e)),!s&&n&&"boolean"==typeof a&&(s=a?G.has(t):Q.has(t)),o&&s}}const X=new RegExp("s*:selfs*,?","g");function Y(e,t,r){return new Z(e).build(t,r)}class Z{constructor(e){this._driver=e}build(e,t){const r=new ee(t);return this._resetContextStyleTimingState(r),q(this,L(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let r=t.queryCount=0,n=t.depCount=0;const i=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const r=e,n=r.name;n.toString().split(/\s*,\s*/).forEach(e=>{r.name=e,i.push(this.visitState(r,t))}),r.name=n}else if(1==e.type){const i=this.visitTransition(e,t);r+=i.queryCount,n+=i.depCount,a.push(i)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:i,transitions:a,queryCount:r,depCount:n,options:null}}visitState(e,t){const r=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(r.containsDynamicStyles){const i=new Set,a=n||{};if(r.styles.forEach(e=>{if(te(e)){const t=e;Object.keys(t).forEach(e=>{B(t[e]).forEach(e=>{a.hasOwnProperty(e)||i.add(e)})})}}),i.size){const r=U(i.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${r.join(", ")}`)}}return{type:0,name:e.name,style:r,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const r=q(this,L(e.animation),t);return{type:1,matchers:H(e.expr,t.errors),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:re(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>q(this,e,t)),options:re(e.options)}}visitGroup(e,t){const r=t.currentTime;let n=0;const i=e.steps.map(e=>{t.currentTime=r;const i=q(this,e,t);return n=Math.max(n,t.currentTime),i});return t.currentTime=n,{type:3,steps:i,options:re(e.options)}}visitAnimate(e,t){const r=function(e,t){let r=null;if(e.hasOwnProperty("duration"))r=e;else if("number"==typeof e)return ne(A(e,t).duration,0,"");const n=e;if(n.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=ne(0,0,"");return e.dynamic=!0,e.strValue=n,e}return r=r||A(n,t),ne(r.duration,r.delay,r.easing)}(e.timings,t.errors);let n;t.currentAnimateTimings=r;let i=e.styles?e.styles:Object(a.h)({});if(5==i.type)n=this.visitKeyframes(i,t);else{let i=e.styles,o=!1;if(!i){o=!0;const e={};r.easing&&(e.easing=r.easing),i=Object(a.h)(e)}t.currentTime+=r.duration+r.delay;const s=this.visitStyle(i,t);s.isEmptyStep=o,n=s}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}}visitStyle(e,t){const r=this._makeStyleAst(e,t);return this._validateStyleAst(r,t),r}_makeStyleAst(e,t){const r=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==a.a?r.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):r.push(e)}):r.push(e.styles);let n=!1,i=null;return r.forEach(e=>{if(te(e)){const t=e,r=t.easing;if(r&&(i=r,delete t.easing),!n)for(let e in t)if(t[e].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:r,easing:i,offset:e.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(e,t){const r=t.currentAnimateTimings;let n=t.currentTime,i=t.currentTime;r&&i>0&&(i-=r.duration+r.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(r=>{if(!this._driver.validateStyleProperty(r))return void t.errors.push(`The provided animation property "${r}" is not a supported CSS property for animations`);const a=t.collectedStyles[t.currentQuerySelector],o=a[r];let s=!0;o&&(i!=n&&i>=o.startTime&&n<=o.endTime&&(t.errors.push(`The CSS property "${r}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${n}ms"`),s=!1),i=o.startTime),s&&(a[r]={startTime:i,endTime:n}),t.options&&function(e,t,r){const n=t.params||{},i=B(e);i.length&&i.forEach(e=>{n.hasOwnProperty(e)||r.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[r],t.options,t.errors)})})}visitKeyframes(e,t){const r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;let n=0;const i=[];let a=!1,o=!1,s=0;const c=e.steps.map(e=>{const r=this._makeStyleAst(e,t);let c=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(te(e)&&e.hasOwnProperty("offset")){const r=e;t=parseFloat(r.offset),delete r.offset}});else if(te(e)&&e.hasOwnProperty("offset")){const r=e;t=parseFloat(r.offset),delete r.offset}return t}(r.styles),u=0;return null!=c&&(n++,u=r.offset=c),o=o||u<0||u>1,a=a||u0&&n{const a=l>0?n==_?1:l*n:i[n],o=a*f;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=a,r.styles.push(e)}),r}visitReference(e,t){return{type:8,animation:q(this,L(e.animation),t),options:re(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:re(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:re(e.options)}}visitQuery(e,t){const r=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;const[i,a]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(X,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=r.length?r+" "+i:i,d(t.collectedStyles,t.currentQuerySelector,{});const o=q(this,L(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:i,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:re(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:A(e.timings,t.errors,!0);return{type:12,animation:q(this,L(e.animation),t),timings:r,options:null}}}class ee{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function te(e){return!Array.isArray(e)&&"object"==typeof e}function re(e){var t;return e?(e=N(e)).params&&(e.params=(t=e.params)?N(t):null):e={},e}function ne(e,t,r){return{duration:e,delay:t,easing:r}}function ie(e,t,r,n,i,a,o=null,s=!1){return{type:1,element:e,keyframes:t,preStyleProps:r,postStyleProps:n,duration:i,delay:a,totalTime:i+a,easing:o,subTimeline:s}}class ae{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const oe=new RegExp(":enter","g"),se=new RegExp(":leave","g");function ce(e,t,r,n,i,a={},o={},s,c,u=[]){return(new ue).buildKeyframes(e,t,r,n,i,a,o,s,c,u)}class ue{buildKeyframes(e,t,r,n,i,a,o,s,c,u=[]){c=c||new ae;const l=new _e(e,t,c,n,i,u,[]);l.options=s,l.currentTimeline.setStyles([a],null,l.errors,s),q(this,r,l);const _=l.timelines.filter(e=>e.containsAnimation());if(_.length&&Object.keys(o).length){const e=_[_.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,l.errors,s)}return _.length?_.map(e=>e.buildKeyframes()):[ie(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const r=t.subInstructions.consume(t.element);if(r){const n=t.createSubContext(e.options),i=t.currentTimeline.currentTime,a=this._visitSubInstructions(r,n,n.options);i!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){const r=t.createSubContext(e.options);r.transformIntoNewTimeline(),this.visitReference(e.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,r){let n=t.currentTimeline.currentTime;const i=null!=r.duration?k(r.duration):null,a=null!=r.delay?k(r.delay):null;return 0!==i&&e.forEach(e=>{const r=t.appendInstructionToTimeline(e,i,a);n=Math.max(n,r.duration+r.delay)}),n}visitReference(e,t){t.updateOptions(e.options,!0),q(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const r=t.subContextCount;let n=t;const i=e.options;if(i&&(i.params||i.delay)&&(n=t.createSubContext(i),n.transformIntoNewTimeline(),null!=i.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=le);const e=k(i.delay);n.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>q(this,e,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>r&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const r=[];let n=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?k(e.options.delay):0;e.steps.forEach(a=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),q(this,a,o),n=Math.max(n,o.currentTimeline.currentTime),r.push(o.currentTimeline)}),r.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const r=e.strValue;return A(t.params?j(r,t.params,t.errors):r,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const r=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),n.snapshotCurrentStyles());const i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(r.duration),this.visitStyle(i,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const r=t.currentTimeline,n=t.currentAnimateTimings;!n&&r.getCurrentStyleProperties().length&&r.forwardFrame();const i=n&&n.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(i):r.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const r=t.currentAnimateTimings,n=t.currentTimeline.duration,i=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(e=>{a.forwardTime((e.offset||0)*i),a.setStyles(e.styles,e.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+i),t.previousNode=e}visitQuery(e,t){const r=t.currentTimeline.currentTime,n=e.options||{},i=n.delay?k(n.delay):0;i&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=le);let a=r;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=o.length;let s=null;o.forEach((r,n)=>{t.currentQueryIndex=n;const o=t.createSubContext(e.options,r);i&&o.delayNextStep(i),r===t.element&&(s=o.currentTimeline),q(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),s&&(t.currentTimeline.mergeTimelineCollectedStyles(s),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const r=t.parentContext,n=t.currentTimeline,i=e.timings,a=Math.abs(i.duration),o=a*(t.currentQueryTotal-1);let s=a*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=o-s;break;case"full":s=r.currentStaggerTime}const c=t.currentTimeline;s&&c.delayNextStep(s);const u=c.currentTime;q(this,e.animation,t),t.previousNode=e,r.currentStaggerTime=n.currentTime-u+(n.startTime-r.currentTimeline.startTime)}}const le={};class _e{constructor(e,t,r,n,i,a,o,s){this._driver=e,this.element=t,this.subInstructions=r,this._enterClassName=n,this._leaveClassName=i,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=le,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new de(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const r=e;let n=this.options;null!=r.duration&&(n.duration=k(r.duration)),null!=r.delay&&(n.delay=k(r.delay));const i=r.params;if(i){let e=n.params;e||(e=this.options.params={}),Object.keys(i).forEach(r=>{t&&e.hasOwnProperty(r)||(e[r]=j(i[r],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const r=e.params={};Object.keys(t).forEach(e=>{r[e]=t[e]})}}return e}createSubContext(e=null,t,r){const n=t||this.element,i=new _e(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=le,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,r){const n={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+e.delay,easing:""},i=new pe(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(i),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,r,n,i,a){let o=[];if(n&&o.push(this.element),e.length>0){e=(e=e.replace(oe,"."+this._enterClassName)).replace(se,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=r);0!==r&&(t=r<0?t.slice(t.length+r,t.length):t.slice(0,r)),o.push(...t)}return i||0!=o.length||a.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class de{constructor(e,t,r,n){this._driver=e,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new de(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||a.a,this._currentKeyframe[e]=a.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,r,n){t&&(this._previousKeyframe.easing=t);const i=n&&n.params||{},o=function(e,t){const r={};let n;return e.forEach(e=>{"*"===e?(n=n||Object.keys(t),n.forEach(e=>{r[e]=a.a})):P(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(o).forEach(e=>{const t=j(o[e],i,r);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:a.a),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const r=this._styleSummary[t],n=e._styleSummary[t];(!r||n.time>r.time)&&this._updateStyle(t,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((i,o)=>{const s=P(i,!0);Object.keys(s).forEach(r=>{const n=s[r];n==a.l?e.add(r):n==a.a&&t.add(r)}),r||(s.offset=o/this.duration),n.push(s)});const i=e.size?U(e.values()):[],o=t.size?U(t.values()):[];if(r){const e=n[0],t=N(e);e.offset=0,t.offset=1,n=[e,t]}return ie(this.element,n,i,o,this.duration,this.startTime,this.easing,!1)}}class pe extends de{constructor(e,t,r,n,i,a,o=!1){super(e,t,a.delay),this.element=t,this.keyframes=r,this.preStyleProps=n,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:r,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],a=r+t,o=t/a,s=P(e[0],!1);s.offset=0,i.push(s);const c=P(e[0],!1);c.offset=fe(o),i.push(c);const u=e.length-1;for(let n=1;n<=u;n++){let o=P(e[n],!1);o.offset=fe((t+o.offset*r)/a),i.push(o)}r=a,t=0,n="",e=i}return ie(this.element,e,this.preStyleProps,this.postStyleProps,r,t,n,!0)}}function fe(e,t=3){const r=Math.pow(10,t-1);return Math.round(e*r)/r}class ge{}class me extends ge{normalizePropertyName(e,t){return J(e)}normalizeStyleValue(e,t,r,n){let i="";const a=r.toString().trim();if(he[t]&&0!==r&&"0"!==r)if("number"==typeof r)i="px";else{const t=r.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&n.push(`Please provide a CSS unit value for ${e}:${r}`)}return a+i}}const he=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function ye(e,t,r,n,i,a,o,s,c,u,l,_,d){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:r,fromStyles:a,toState:n,toStyles:o,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:_,errors:d}}const ve={};class be{constructor(e,t,r){this._triggerName=e,this.ast=t,this._stateStyles=r}match(e,t,r,n){return function(e,t,r,n,i){return e.some(e=>e(t,r,n,i))}(this.ast.matchers,e,t,r,n)}buildStyles(e,t,r){const n=this._stateStyles["*"],i=this._stateStyles[e],a=n?n.buildStyles(t,r):{};return i?i.buildStyles(t,r):a}build(e,t,r,n,i,a,o,s,c,u){const l=[],_=this.ast.options&&this.ast.options.params||ve,p=this.buildStyles(r,o&&o.params||ve,l),f=s&&s.params||ve,g=this.buildStyles(n,f,l),m=new Set,h=new Map,y=new Map,v="void"===n,b={params:Object.assign(Object.assign({},_),f)},x=u?[]:ce(e,t,this.ast.animation,i,a,p,g,b,c,l);let D=0;if(x.forEach(e=>{D=Math.max(e.duration+e.delay,D)}),l.length)return ye(t,this._triggerName,r,n,v,p,g,[],[],h,y,D,l);x.forEach(e=>{const r=e.element,n=d(h,r,{});e.preStyleProps.forEach(e=>n[e]=!0);const i=d(y,r,{});e.postStyleProps.forEach(e=>i[e]=!0),r!==t&&m.add(r)});const S=U(m.values());return ye(t,this._triggerName,r,n,v,p,g,x,S,h,y,D)}}class xe{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const r={},n=N(this.defaultParams);return Object.keys(e).forEach(t=>{const r=e[t];null!=r&&(n[t]=r)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const i=e;Object.keys(i).forEach(e=>{let a=i[e];a.length>1&&(a=j(a,n,t)),r[e]=a})}}),r}}class De{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new xe(e.style,e.options&&e.options.params||{})}),Se(this.states,"true","1"),Se(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new be(e,t,this.states))}),this.fallbackTransition=new be(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,r,n){return this.transitionFactories.find(i=>i.match(e,t,r,n))||null}matchStyles(e,t,r){return this.fallbackTransition.buildStyles(e,t,r)}}function Se(e,t,r){e.hasOwnProperty(t)?e.hasOwnProperty(r)||(e[r]=e[t]):e.hasOwnProperty(r)&&(e[t]=e[r])}const Ee=new ae;class Ce{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(e,t){const r=[],n=Y(this._driver,t,r);if(r.length)throw new Error(`Unable to build the animation due to the following errors: ${r.join("\n")}`);this._animations[e]=n}_buildPlayer(e,t,r){const n=e.element,i=c(0,this._normalizer,0,e.keyframes,t,r);return this._driver.animate(n,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,r={}){const n=[],i=this._animations[e];let o;const c=new Map;if(i?(o=ce(this._driver,t,i,"ng-enter","ng-leave",{},{},r,Ee,n),o.forEach(e=>{const t=d(c,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),o=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);c.forEach((e,t)=>{Object.keys(e).forEach(r=>{e[r]=this._driver.computeStyle(t,r,a.a)})});const u=s(o.map(e=>{const t=c.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,r,n){const i=_(t,"","","");return u(this._getPlayer(e),r,i,n),()=>{}}command(e,t,r,n){if("register"==r)return void this.register(e,n[0]);if("create"==r)return void this.create(e,t,n[0]||{});const i=this._getPlayer(e);switch(r){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e)}}}const Te=[],ke={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},we={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Ae{constructor(e,t=""){this.namespaceId=t;const r=e&&e.hasOwnProperty("value");if(this.value=null!=(n=r?e.value:e)?n:null,r){const t=N(e);delete t.value,this.options=t}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(r=>{null==e[r]&&(e[r]=t[r])})}}}const Ne=new Ae("void");class Pe{constructor(e,t,r){this.id=e,this.hostElement=t,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Be(t,this._hostClassName)}listen(e,t,r,n){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${r}" because the animation trigger "${t}" doesn't exist!`);if(null==r||0==r.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(i=r)&&"done"!=i)throw new Error(`The provided animation trigger event "${r}" for the animation trigger "${t}" is not supported!`);var i;const a=d(this._elementListeners,e,[]),o={name:t,phase:r,callback:n};a.push(o);const s=d(this._engine.statesByElement,e,{});return s.hasOwnProperty(t)||(Be(e,"ng-trigger"),Be(e,"ng-trigger-"+t),s[t]=Ne),()=>{this._engine.afterFlush(()=>{const e=a.indexOf(o);e>=0&&a.splice(e,1),this._triggers[t]||delete s[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,r,n=!0){const i=this._getTrigger(t),a=new Fe(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Be(e,"ng-trigger"),Be(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let s=o[t];const c=new Ae(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&s&&c.absorbOptions(s.options),o[t]=c,s||(s=Ne),"void"!==c.value&&s.value===c.value){if(!function(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!=n.length)return!1;for(let i=0;i{M(e,r),I(e,n)})}return}const u=d(this._engine.playersByElement,e,[]);u.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let l=i.matchTransition(s.value,c.value,e,c.params),_=!1;if(!l){if(!n)return;l=i.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:l,fromState:s,toState:c,player:a,isFallbackTransition:_}),_||(Be(e,"ng-animate-queued"),a.onStart(()=>{je(e,"ng-animate-queued")})),a.onDone(()=>{let t=this.players.indexOf(a);t>=0&&this.players.splice(t,1);const r=this._engine.playersByElement.get(e);if(r){let e=r.indexOf(a);e>=0&&r.splice(e,1)}}),this.players.push(a),u.push(a),a}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,r)=>{delete t[e]}),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const r=this._engine.driver.query(e,".ng-trigger",!0);r.forEach(e=>{if(e.__ng_removed)return;const r=this._engine.fetchNamespacesByElement(e);r.size?r.forEach(r=>r.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,r,n){const i=this._engine.statesByElement.get(e);if(i){const a=[];if(Object.keys(i).forEach(t=>{if(this._triggers[t]){const r=this.trigger(e,t,"void",n);r&&a.push(r)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),r&&s(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(t&&r){const n=new Set;t.forEach(t=>{const i=t.name;if(n.has(i))return;n.add(i);const a=this._triggers[i].fallbackTransition,o=r[i]||Ne,s=new Ae("void"),c=new Fe(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:a,fromState:o,toState:s,player:c,isFallbackTransition:!0})})}}removeNode(e,t){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(r.totalAnimations){const t=r.players.length?r.playersByQueriedElement.get(e):[];if(t&&t.length)n=!0;else{let t=e;for(;t=t.parentNode;)if(r.statesByElement.get(t)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)r.markElementAsRemoved(this.id,e,!1,t);else{const n=e.__ng_removed;n&&n!==ke||(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}insertNode(e,t){Be(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(r=>{const n=r.player;if(n.destroyed)return;const i=r.element,a=this._elementListeners.get(i);a&&a.forEach(t=>{if(t.name==r.triggerName){const n=_(i,r.triggerName,r.fromState.value,r.toState.value);n._data=e,u(r.player,t.phase,n,t.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(r)}),this._queue=[],t.sort((e,t)=>{const r=e.transition.ast.depCount,n=t.transition.ast.depCount;return 0==r||0==n?r-n:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Oe{constructor(e,t,r){this.bodyNode=e,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const r=new Pe(e,t,this);return t.parentNode?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,t){const r=this._namespaceList.length-1;if(r>=0){let n=!1;for(let i=r;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),n=!0;break}n||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,t)),r}registerTrigger(e,t,r){let n=this._namespaceLookup[e];n&&n.register(t,r)&&this.totalAnimations++}destroy(e,t){if(!e)return;const r=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(r);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>r.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,r=this.statesByElement.get(e);if(r){const e=Object.keys(r);for(let n=0;n=0&&this.collectedLeaveElements.splice(e,1)}if(e){const n=this._fetchNamespace(e);n&&n.insertNode(t,r)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Be(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),je(e,"ng-animate-disabled"))}removeNode(e,t,r,n){if(Ie(t)){const i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n),r){const r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n)}}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,r,n){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:n,hasAnimation:r,removedBeforeQueried:!1}}listen(e,t,r,n,i){return Ie(t)?this._fetchNamespace(e).listen(t,r,n,i):()=>{}}_buildInstruction(e,t,r,n,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,n,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return s(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=ke,t.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;re()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?s(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const r=new ae,n=[],i=new Map,o=[],c=new Map,u=new Map,l=new Map,_=new Set;this.disabledNodes.forEach(e=>{_.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let r=0;r{const r="ng-enter"+h++;m.set(t,r),e.forEach(e=>Be(e,r))});const y=[],v=new Set,b=new Set;for(let a=0;av.add(e)):b.add(e))}const x=new Map,D=Re(f,Array.from(v));D.forEach((e,t)=>{const r="ng-leave"+h++;x.set(t,r),e.forEach(e=>Be(e,r))}),e.push(()=>{g.forEach((e,t)=>{const r=m.get(t);e.forEach(e=>je(e,r))}),D.forEach((e,t)=>{const r=x.get(t);e.forEach(e=>je(e,r))}),y.forEach(e=>{this.processLeaveNode(e)})});const S=[],E=[];for(let a=this._namespaceList.length-1;a>=0;a--)this._namespaceList[a].drainQueuedTransitions(t).forEach(e=>{const t=e.player,i=e.element;if(S.push(t),this.collectedEnterElements.length){const e=i.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const a=!p||!this.driver.containsElement(p,i),s=x.get(i),_=m.get(i),f=this._buildInstruction(e,r,_,s,a);if(f.errors&&f.errors.length)E.push(f);else{if(a)return t.onStart(()=>M(i,f.fromStyles)),t.onDestroy(()=>I(i,f.toStyles)),void n.push(t);if(e.isFallbackTransition)return t.onStart(()=>M(i,f.fromStyles)),t.onDestroy(()=>I(i,f.toStyles)),void n.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),r.append(i,f.timelines),o.push({instruction:f,player:t,element:i}),f.queriedElements.forEach(e=>d(c,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const r=Object.keys(e);if(r.length){let e=u.get(t);e||u.set(t,e=new Set),r.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const r=Object.keys(e);let n=l.get(t);n||l.set(t,n=new Set),r.forEach(e=>n.add(e))})}});if(E.length){const e=[];E.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),S.forEach(e=>e.destroy()),this.reportError(e)}const C=new Map,T=new Map;o.forEach(e=>{const t=e.element;r.has(t)&&(T.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))}),n.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{d(C,t,[]).push(e),e.destroy()})});const k=y.filter(e=>Je(e,u,l)),w=new Map;Le(w,this.driver,b,l,a.a).forEach(e=>{Je(e,u,l)&&k.push(e)});const A=new Map;g.forEach((e,t)=>{Le(A,this.driver,new Set(e),u,a.l)}),k.forEach(e=>{const t=w.get(e),r=A.get(e);w.set(e,Object.assign(Object.assign({},t),r))});const N=[],P=[],O={};o.forEach(e=>{const{element:t,player:a,instruction:o}=e;if(r.has(t)){if(_.has(t))return a.onDestroy(()=>I(t,o.toStyles)),a.disabled=!0,a.overrideTotalTime(o.totalTime),void n.push(a);let e=O;if(T.size>1){let r=t;const n=[];for(;r=r.parentNode;){const t=T.get(r);if(t){e=t;break}n.push(r)}n.forEach(t=>T.set(t,e))}const r=this._buildAnimation(a.namespaceId,o,C,i,A,w);if(a.setRealPlayer(r),e===O)N.push(a);else{const t=this.playersByElement.get(e);t&&t.length&&(a.parentPlayer=s(t)),n.push(a)}}else M(t,o.fromStyles),a.onDestroy(()=>I(t,o.toStyles)),P.push(a),_.has(t)&&n.push(a)}),P.forEach(e=>{const t=i.get(e.element);if(t&&t.length){const r=s(t);e.setRealPlayer(r)}}),n.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let a=0;a!e.destroyed);n.length?Ue(this,e,n):this.processLeaveNode(e)}return y.length=0,N.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),N}elementContainsData(e,t){let r=!1;const n=t.__ng_removed;return n&&n.setForRemoval&&(r=!0),this.playersByElement.has(t)&&(r=!0),this.playersByQueriedElement.has(t)&&(r=!0),this.statesByElement.has(t)&&(r=!0),this._fetchNamespace(e).elementContainsData(t)||r}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,r,n,i){let a=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(a=t)}else{const t=this.playersByElement.get(e);if(t){const e=!i||"void"==i;t.forEach(t=>{t.queued||(e||t.triggerName==n)&&a.push(t)})}}return(r||n)&&(a=a.filter(e=>!(r&&r!=e.namespaceId||n&&n!=e.triggerName))),a}_beforeAnimationBuild(e,t,r){const n=t.element,i=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,s=e!==n,c=d(r,e,[]);this._getPreviousPlayers(e,s,i,a,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)})}M(n,t.fromStyles)}_buildAnimation(e,t,r,n,i,o){const u=t.triggerName,l=t.element,_=[],p=new Set,f=new Set,g=t.timelines.map(t=>{const s=t.element;p.add(s);const d=s.__ng_removed;if(d&&d.removedBeforeQueried)return new a.d(t.duration,t.delay);const g=s!==l,m=function(e){const t=[];return ze(e,t),t}((r.get(s)||Te).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===s),h=i.get(s),y=o.get(s),v=c(0,this._normalizer,0,t.keyframes,h,y),b=this._buildPlayer(t,v,m);if(t.subTimeline&&n&&f.add(s),g){const t=new Fe(e,u,s);t.setRealPlayer(b),_.push(t)}return b});_.forEach(e=>{d(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,r){let n;if(e instanceof Map){if(n=e.get(t),n){if(n.length){const e=n.indexOf(r);n.splice(e,1)}0==n.length&&e.delete(t)}}else if(n=e[t],n){if(n.length){const e=n.indexOf(r);n.splice(e,1)}0==n.length&&delete e[t]}return n}(this.playersByQueriedElement,e.element,e))}),p.forEach(e=>Be(e,"ng-animating"));const m=s(g);return m.onDestroy(()=>{p.forEach(e=>je(e,"ng-animating")),I(l,t.toStyles)}),f.forEach(e=>{d(n,e,[]).push(m)}),m}_buildPlayer(e,t,r){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,r):new a.d(e.duration,e.delay)}}class Fe{constructor(e,t,r){this.namespaceId=e,this.triggerName=t,this.element=r,this._player=new a.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(r=>u(e,t,void 0,r))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){d(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Ie(e){return e&&1===e.nodeType}function Me(e,t){const r=e.style.display;return e.style.display=null!=t?t:"none",r}function Le(e,t,r,n,i){const a=[];r.forEach(e=>a.push(Me(e)));const o=[];n.forEach((r,n)=>{const a={};r.forEach(e=>{const r=a[e]=t.computeStyle(n,e,i);r&&0!=r.length||(n.__ng_removed=we,o.push(n))}),e.set(n,a)});let s=0;return r.forEach(e=>Me(e,a[s++])),o}function Re(e,t){const r=new Map;if(e.forEach(e=>r.set(e,[])),0==t.length)return r;const n=new Set(t),i=new Map;function a(e){if(!e)return 1;let t=i.get(e);if(t)return t;const o=e.parentNode;return t=r.has(o)?o:n.has(o)?1:a(o),i.set(e,t),t}return t.forEach(e=>{const t=a(e);1!==t&&r.get(t).push(e)}),r}function Be(e,t){if(e.classList)e.classList.add(t);else{let r=e.$$classes;r||(r=e.$$classes={}),r[t]=!0}}function je(e,t){if(e.classList)e.classList.remove(t);else{let r=e.$$classes;r&&delete r[t]}}function Ue(e,t,r){s(r).onDone(()=>e.processLeaveNode(t))}function ze(e,t){for(let r=0;ri.add(e)):t.set(e,n),r.delete(e),!0}class Ve{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Oe(e,t,r),this._timelineEngine=new Ce(e,t,r),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,r,n,i){const a=e+"-"+n;let o=this._triggerCache[a];if(!o){const e=[],t=Y(this._driver,i,e);if(e.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new De(e,t)}(n,t),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,n,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,r,n){this._transitionEngine.insertNode(e,t,r,n)}onRemove(e,t,r,n){this._transitionEngine.removeNode(e,t,n||!1,r)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,r,n){if("@"==r.charAt(0)){const[e,i]=p(r);this._timelineEngine.command(e,t,i,n)}else this._transitionEngine.trigger(e,t,r,n)}listen(e,t,r,n,i){if("@"==r.charAt(0)){const[e,n]=p(r);return this._timelineEngine.listen(e,t,n,i)}return this._transitionEngine.listen(e,t,r,n,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function We(e,t){let r=null,n=null;return Array.isArray(t)&&t.length?(r=Ke(t[0]),t.length>1&&(n=Ke(t[t.length-1]))):t&&(r=Ke(t)),r||n?new qe(e,r,n):null}let qe=(()=>{class e{constructor(t,r,n){this._element=t,this._startStyles=r,this._endStyles=n,this._state=0;let i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&I(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(I(this._element,this._initialStyles),this._endStyles&&(I(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(M(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(M(this._element,this._endStyles),this._endStyles=null),I(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Ke(e){let t=null;const r=Object.keys(e);for(let n=0;nthis._handleCallback(e)}apply(){!function(e,t){const r=et(e,"").trim();r.length&&(function(e,t){let r=0;for(let n=0;n=this._delay&&r>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Ye(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const r=et(e,"").split(","),n=Xe(r,t);n>=0&&(r.splice(n,1),Ze(e,"",r.join(",")))}(this._element,this._name))}}function Qe(e,t,r){Ze(e,"PlayState",r,$e(e,t))}function $e(e,t){const r=et(e,"");return r.indexOf(",")>0?Xe(r.split(","),t):Xe([r],t)}function Xe(e,t){for(let r=0;r=0)return r;return-1}function Ye(e,t,r){r?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Ze(e,t,r,n){const i="animation"+t;if(null!=n){const t=e.style[i];if(t.length){const e=t.split(",");e[n]=r,r=e.join(",")}}e.style[i]=r}function et(e,t){return e.style["animation"+t]||""}class tt{constructor(e,t,r,n,i,a,o,s){this.element=e,this.keyframes=t,this.animationName=r,this._duration=n,this._delay=i,this._finalStyles=o,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=n+i,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Ge(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(r=>{"offset"!=r&&(e[r]=t?this._finalStyles[r]:K(this.element,r))})}this.currentSnapshot=e}}class rt extends a.d{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=E(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class nt{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(e){return b(e)}matchesElement(e,t){return x(e,t)}containsElement(e,t){return D(e,t)}query(e,t,r){return S(e,t,r)}computeStyle(e,t,r){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,r){r=r.map(e=>E(e));let n=`@keyframes ${t} {\n`,i="";r.forEach(e=>{i=" ";const t=parseFloat(e.offset);n+=`${i}${100*t}% {\n`,i+=" ",Object.keys(e).forEach(t=>{const r=e[t];switch(t){case"offset":return;case"easing":return void(r&&(n+=`${i}animation-timing-function: ${r};\n`));default:return void(n+=`${i}${t}: ${r};\n`)}}),n+=`${i}}\n`}),n+="}\n";const a=document.createElement("style");return a.textContent=n,a}animate(e,t,r,n,i,a=[],o){const s=a.filter(e=>e instanceof tt),c={};V(r,n)&&s.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>c[e]=t[e])});const u=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(r=>{"offset"!=r&&"easing"!=r&&(t[r]=e[r])})}),t}(t=W(e,t,c));if(0==r)return new rt(e,u);const l="gen_css_kf_"+this._count++,_=this.buildKeyframeElement(e,l,t);document.querySelector("head").appendChild(_);const d=We(e,t),p=new tt(e,t,l,r,n,i,u,d);return p.onDestroy(()=>{var e;(e=_).parentNode.removeChild(e)}),p}}class it{constructor(e,t,r,n){this.element=e,this.keyframes=t,this.options=r,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,r){return e.animate(t,r)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:K(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class at{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ot().toString()),this._cssKeyframesDriver=new nt}validateStyleProperty(e){return b(e)}matchesElement(e,t){return x(e,t)}containsElement(e,t){return D(e,t)}query(e,t,r){return S(e,t,r)}computeStyle(e,t,r){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,r,n,i,a=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,r,n,i,a);const s={duration:r,delay:n,fill:0==n?"both":"forwards"};i&&(s.easing=i);const c={},u=a.filter(e=>e instanceof it);V(r,n)&&u.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>c[e]=t[e])});const l=We(e,t=W(e,t=t.map(e=>P(e,!1)),c));return new it(e,t,s,l)}}function ot(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var st=r("SVse");let ct=(()=>{class e extends a.b{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:n.R.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?Object(a.f)(e):e;return _t(this._renderer,null,t,"register",[r]),new ut(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(n.G),n.Sb(st.c))},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})();class ut extends a.c{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new lt(this._id,e,t||{},this._renderer)}}class lt{constructor(e,t,r,n){this.id=e,this.element=t,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return _t(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function _t(e,t,r,n,i){return e.setProperty(t,`@@${r}:${n}`,i)}let dt=(()=>{class e{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const r=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(r);return e||(e=new pt("",r,this.engine),this._rendererCache.set(r,e)),e}const n=t.id,i=t.id+"-"+this._currentId;this._currentId++,this.engine.register(i,e);const a=t=>{Array.isArray(t)?t.forEach(a):this.engine.registerTrigger(n,i,e,t.name,t)};return t.data.animation.forEach(a),new ft(this,i,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,r]=e;t(r)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(n.G),n.Sb(Ve),n.Sb(n.A))},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})();class pt{constructor(e,t,r){this.namespaceId=e,this.delegate=t,this.engine=r,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,r,n=!0){this.delegate.insertBefore(e,t,r),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate,r)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,r,n){this.delegate.setAttribute(e,t,r,n)}removeAttribute(e,t,r){this.delegate.removeAttribute(e,t,r)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,r,n){this.delegate.setStyle(e,t,r,n)}removeStyle(e,t,r){this.delegate.removeStyle(e,t,r)}setProperty(e,t,r){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!r):this.delegate.setProperty(e,t,r)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,r){return this.delegate.listen(e,t,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class ft extends pt{constructor(e,t,r,n){super(t,r,n),this.factory=e,this.namespaceId=t}setProperty(e,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,t.substr(1),r):this.delegate.setProperty(e,t,r)}listen(e,t,r){if("@"==t.charAt(0)){const n=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let i=t.substr(1),a="";return"@"!=i.charAt(0)&&([i,a]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(i)),this.engine.listen(this.namespaceId,n,i,a,e=>{this.factory.scheduleListenerCallback(e._data||-1,r,e)})}return this.delegate.listen(e,t,r)}}let gt=(()=>{class e extends Ve{constructor(e,t,r){super(e.body,t,r)}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(st.c),n.Sb(T),n.Sb(ge))},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})();const mt=new n.r("AnimationModuleType"),ht=[{provide:T,useFactory:function(){return"function"==typeof ot()?new at:new nt}},{provide:mt,useValue:"BrowserAnimations"},{provide:a.b,useClass:ct},{provide:ge,useFactory:function(){return new me}},{provide:Ve,useClass:gt},{provide:n.G,useFactory:function(e,t,r){return new dt(e,t,r)},deps:[i.d,Ve,n.A]}];let yt=(()=>{class e{}return e.\u0275mod=n.Jb({type:e}),e.\u0275inj=n.Ib({factory:function(t){return new(t||e)},providers:ht,imports:[i.a]}),e})()},pLZG:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("7o/Q");function i(e,t){return function(r){return r.lift(new a(e,t))}}class a{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.predicate,this.thisArg))}}class o extends n.a{constructor(e,t,r){super(e),this.predicate=t,this.thisArg=r,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}t&&this.destination.next(e)}}},"pc+1":function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}r.d(t,"a",function(){return zt}),r.d(t,"b",function(){return dr}),r.d(t,"w",function(){return mr}),r.d(t,"v",function(){return it}),r.d(t,"h",function(){return De}),r.d(t,"m",function(){return Z}),r.d(t,"n",function(){return ee}),r.d(t,"j",function(){return J}),r.d(t,"k",function(){return q}),r.d(t,"q",function(){return or}),r.d(t,"p",function(){return re}),r.d(t,"f",function(){return Se}),r.d(t,"t",function(){return _r}),r.d(t,"d",function(){return kt}),r.d(t,"r",function(){return ft}),r.d(t,"c",function(){return Ht}),r.d(t,"o",function(){return ge}),r.d(t,"u",function(){return wt}),r.d(t,"e",function(){return F}),r.d(t,"s",function(){return Ee}),r.d(t,"l",function(){return ce}),r.d(t,"i",function(){return nr}),r.d(t,"g",function(){return xe});var a,o,s,c,u,l,_,d,p,f,g,m,h,y,v,b,x,D,S,E,C,T,k,w,A,N,P,O,F={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},I={duration:.5,overwrite:!1,delay:0},M=1e8,L=2*Math.PI,R=L/4,B=0,j=Math.sqrt,U=Math.cos,z=Math.sin,J=function(e){return"string"==typeof e},V=function(e){return"function"==typeof e},W=function(e){return"number"==typeof e},q=function(e){return void 0===e},K=function(e){return"object"==typeof e},H=function(e){return!1!==e},G=function(){return"undefined"!=typeof window},Q=function(e){return V(e)||J(e)},$="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},X=Array.isArray,Y=/(?:-?\.?\d|\.)+/gi,Z=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ee=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,te=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,re=/[+-]=-?[.\d]+/,ne=/[#\-+.]*\b[a-z\d-=+%.]+/gi,ie=/[\d.+\-=]+(?:e[-+]\d*)*/i,ae={},oe={},se=function(e){return(oe=Fe(e,ae))&&mr},ce=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},ue=function(e,t){return!t&&console.warn(e)},le=function(e,t){return e&&(ae[e]=t)&&oe&&(oe[e]=t)||ae},_e=function(){return 0},de={},pe=[],fe={},ge={},me={},he=30,ye=[],ve="",be=function(e){var t,r,n=e[0];if(K(n)||V(n)||(e=[e]),!(t=(n._gsap||{}).harness)){for(r=ye.length;r--&&!ye[r].targetTest(n););t=ye[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new zt(e[r],t)))||e.splice(r,1);return e},xe=function(e){return e._gsap||be(st(e))[0]._gsap},De=function(e,t,r){return(r=e[t])&&V(r)?e[t]():q(r)&&e.getAttribute&&e.getAttribute(t)||r},Se=function(e,t){return(e=e.split(",")).forEach(t)||e},Ee=function(e){return Math.round(1e5*e)/1e5||0},Ce=function(e,t){for(var r=t.length,n=0;e.indexOf(t[n])<0&&++ne._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},Ue=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},ze=function e(t){return!t||t._ts&&e(t.parent)},Je=function(e){return e._repeat?Ve(e._tTime,e=e.duration()+e._rDelay)*e:0},Ve=function(e,t){var r=Math.floor(e/=t);return e&&r===e?r-1:r},We=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},qe=function(e){return e._end=Ee(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},Ke=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=Ee(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),qe(e),r._dirty||je(r,e)),e},He=function(e,t){var r;if((t._time||t._initted&&!t._dur)&&(r=We(e.rawTime(),t),(!t._dur||nt(0,t.totalDuration(),r)-t._tTime>1e-8)&&t.render(r,!0)),je(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-1e-8}},Ge=function(e,t,r,n){return t.parent&&Be(t),t._start=Ee(r+t._delay),t._end=Ee(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),function(e,t,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var a,o=e[n];if(i)for(a=t[i];o&&o[i]>a;)o=o._prev;o?(t._next=o._next,o._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=o,t.parent=t._dp=e}(e,t,"_first","_last",e._sort?"_start":0),e._recent=t,n||He(e,t),e},Qe=function(e,t){return(ae.ScrollTrigger||ce("scrollTrigger",t))&&ae.ScrollTrigger.create(t,e)},$e=function(e,t,r,n){return Gt(e,t),e._initted?!r&&e._pt&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&_!==wt.frame?(pe.push(e),e._lazy=[t,n],1):void 0:1},Xe=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||e(r))},Ye=function(e,t,r,n){var i=e._repeat,a=Ee(t)||0,o=e._tTime/e._tDur;return o&&!n&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:Ee(a*(i+1)+e._rDelay*i):a,o&&!n?Ke(e,e._tTime=e._tDur*o):e.parent&&qe(e),r||je(e.parent,e),e},Ze=function(e){return e instanceof Vt?je(e):Ye(e,e._dur)},et={_start:0,endTime:_e},tt=function e(t,r){var n,i,a=t.labels,o=t._recent||et,s=t.duration()>=M?o.endTime(!1):t._dur;return J(r)&&(isNaN(r)||r in a)?"<"===(n=r.charAt(0))||">"===n?("<"===n?o._start:o.endTime(o._repeat>=0))+(parseFloat(r.substr(1))||0):(n=r.indexOf("="))<0?(r in a||(a[r]=s),a[r]):(i=+(r.charAt(n-1)+r.substr(n+1)),n>1?e(t,r.substr(0,n-1))+i:s+i):null==r?s:+r},rt=function(e,t){return e||0===e?t(e):t},nt=function(e,t,r){return rt?t:r},it=function(e){if("string"!=typeof e)return"";var t=ie.exec(e);return t?e.substr(t.index+t[0].length):""},at=[].slice,ot=function(e,t){return e&&K(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&K(e[0]))&&!e.nodeType&&e!==s},st=function(e,t){return!J(e)||t||!c&&At()?X(e)?function(e,t,r){return void 0===r&&(r=[]),e.forEach(function(e){var n;return J(e)&&!t||ot(e,1)?(n=r).push.apply(n,st(e)):r.push(e)})||r}(e,t):ot(e)?at.call(e,0):e?[e]:[]:at.call(u.querySelectorAll(e),0)},ct=function(e){return e.sort(function(){return.5-Math.random()})},ut=function(e){if(V(e))return e;var t=K(e)?e:{each:e},r=Lt(t.ease),n=t.from||0,i=parseFloat(t.base)||0,a={},o=n>0&&n<1,s=isNaN(n)||o,c=t.axis,u=n,l=n;return J(n)?u=l={center:.5,edges:.5,end:1}[n]||0:!o&&s&&(u=n[0],l=n[1]),function(e,o,_){var d,p,f,g,m,h,y,v,b,x=(_||t).length,D=a[x];if(!D){if(!(b="auto"===t.grid?0:(t.grid||[1,M])[1])){for(y=-M;y<(y=_[b++].getBoundingClientRect().left)&&by&&(y=m),mx?x-1:c?"y"===c?x/b:b:Math.max(b,x/b))||0)*("edges"===n?-1:1),D.b=x<0?i-x:i,D.u=it(t.amount||t.each)||0,r=r&&x<0?It(r):r}return x=(D[e]-D.min)/D.max||0,Ee(D.b+(r?r(x):x)*D.v)+D.u}},lt=function(e){var t=e<1?Math.pow(10,(e+"").length-2):1;return function(r){var n=Math.round(parseFloat(r)/e)*e*t;return(n-n%1)/t+(W(r)?0:it(r))}},_t=function(e,t){var r,n,i=X(e);return!i&&K(e)&&(r=i=e.radius||M,e.values?(e=st(e.values),(n=!W(e[0]))&&(r*=r)):e=lt(e.increment)),rt(t,i?V(e)?function(t){return n=e(t),Math.abs(n-t)<=r?n:t}:function(t){for(var i,a,o=parseFloat(n?t.x:t),s=parseFloat(n?t.y:0),c=M,u=0,l=e.length;l--;)(i=n?(i=e[l].x-o)*i+(a=e[l].y-s)*a:Math.abs(e[l]-o))(i=Math.abs(i))&&(a=n,s=i);return a},ht=function(e,t,r){var n,i,a=e.vars,o=a[t];if(o)return n=a[t+"Params"],i=a.callbackScope||e,r&&pe.length&&ke(),n?o.apply(i,n):o.call(i)},yt=function(e){return Be(e),e.progress()<1&&ht(e,"onInterrupt"),e},vt=function(e){var t=(e=!e.name&&e.default||e).name,r=V(e),n=t&&!r&&e.init?function(){this._props=[]}:e,i={init:_e,render:sr,add:Kt,kill:ur,modifier:cr,rawVars:0},a={targetTest:0,get:0,getSetter:nr,aliases:{},register:0};if(At(),e!==n){if(ge[t])return;Pe(n,Pe(Me(e,i),a)),Fe(n.prototype,Fe(i,Me(e,a))),ge[n.prop=t]=n,e.targetTest&&(ye.push(n),de[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}le(t,n),e.register&&e.register(mr,n,dr)},bt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},xt=function(e,t,r){return 255*(6*(e=e<0?e+1:e>1?e-1:e)<1?t+(r-t)*e*6:e<.5?r:3*e<2?t+(r-t)*(2/3-e)*6:t)+.5|0},Dt=function(e,t,r){var n,i,a,o,s,c,u,l,_,d,p=e?W(e)?[e>>16,e>>8&255,255&e]:0:bt.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),bt[e])p=bt[e];else if("#"===e.charAt(0)){if(e.length<6&&(n=e.charAt(1),i=e.charAt(2),a=e.charAt(3),e="#"+n+n+i+i+a+a+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&255,255&p,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]}else if("hsl"===e.substr(0,3))if(p=d=e.match(Y),t){if(~e.indexOf("="))return p=e.match(Z),r&&p.length<4&&(p[3]=1),p}else o=+p[0]%360/360,s=+p[1]/100,n=2*(c=+p[2]/100)-(i=c<=.5?c*(s+1):c+s-c*s),p.length>3&&(p[3]*=1),p[0]=xt(o+1/3,n,i),p[1]=xt(o,n,i),p[2]=xt(o-1/3,n,i);else p=e.match(Y)||bt.transparent;p=p.map(Number)}return t&&!d&&(n=p[0]/255,i=p[1]/255,a=p[2]/255,c=((u=Math.max(n,i,a))+(l=Math.min(n,i,a)))/2,u===l?o=s=0:(_=u-l,s=c>.5?_/(2-u-l):_/(u+l),o=u===n?(i-a)/_+(ix&&(S+=o-D),((r=(i=(E+=o)-S)-T)>0||s)&&(a=++h.frame,y=i-1e3*h.time,h.time=i/=1e3,T+=r+(r>=C?4:C-r),n=1),s||(f=g(e)),n)for(v=0;v=t&&v--},_listeners:k=[]}),At=function(){return!p&&wt.wake()},Nt={},Pt=/^[\d.\-M][\d.\-,\s]/,Ot=/["']/g,Ft=function(e){for(var t,r,n,i={},a=e.substr(1,e.length-3).split(":"),o=a[0],s=1,c=a.length;s1&&o.config?o.config.apply(null,~e.indexOf("{")?[Ft(a[1])]:(t=e,r=t.indexOf("(")+1,n=t.indexOf(")"),i=t.indexOf("(",r),t.substring(r,~i&&i=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/L*(Math.asin(1/i)||0),s=function(e){return 1===e?1:i*Math.pow(2,-10*e)*z((e-o)*a)+1},c="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:Bt(s);return a=L/a,c.config=function(r,n){return e(t,r,n)},c},Ut=function e(t,r){void 0===r&&(r=1.70158);var n=function(e){return e?--e*e*((r+1)*e+r)+1:0},i="out"===t?n:"in"===t?function(e){return 1-n(1-e)}:Bt(n);return i.config=function(r){return e(t,r)},i};Se("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;Rt(e+",Power"+(r-1),t?function(e){return Math.pow(e,r)}:function(e){return e},function(e){return 1-Math.pow(1-e,r)},function(e){return e<.5?Math.pow(2*e,r)/2:1-Math.pow(2*(1-e),r)/2})}),Nt.Linear.easeNone=Nt.none=Nt.Linear.easeIn,Rt("Elastic",jt("in"),jt("out"),jt()),A=7.5625,P=1/(N=2.75),Rt("Bounce",function(e){return 1-O(1-e)},O=function(e){return e0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Ye(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(At(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Ke(this,e),!r._dp||r.parent||He(r,this);r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&Ge(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&1e-8===Math.abs(this._zTime)||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),we(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Je(this))%this._dur||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+Je(this),t):this.duration()?Math.min(1,this._time/this._dur):this.ratio},t.iteration=function(e,t){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*r,t):this._repeat?Ve(this._tTime,r)+1:1},t.timeScale=function(e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var t=this.parent&&this._ts?We(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,Ue(this.totalTime(nt(-this._delay,this._tDur,t),!0))},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(At(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=1e-8)&&1e-8!==Math.abs(this._zTime)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=e;var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Ge(t,this,e-this._delay),this}return this._start},t.endTime=function(e){return this._start+(H(e)?this.totalDuration():this.duration())/Math.abs(this._ts)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?We(t.rawTime(e),this):this._tTime:this._tTime},t.globalTime=function(e){for(var t=this,r=arguments.length?e:t.rawTime();t;)r=t._start+r/(t._ts||1),t=t._dp;return r},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Ze(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){return arguments.length?(this._rDelay=e,Ze(this)):this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(tt(this,e),H(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,H(t))},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,r=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=r&&e1?(t?(n[e]=t,r&&(n[e+"Params"]=r),"onUpdate"===e&&(this._onUpdate=t)):delete n[e],this):n[e]},t.then=function(e){var t=this;return new Promise(function(r){var n=V(e)?e:Ne,i=function(){var e=t.then;t.then=null,V(n)&&(n=n(t))&&(n.then||n===t)&&(t.then=e),r(n),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?i():t._prom=i})},t.kill=function(){yt(this)},e}();Pe(Jt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Vt=function(e){function t(t,r){var i;return void 0===t&&(t={}),(i=e.call(this,t,r)||this).labels={},i.smoothChildTiming=!!t.smoothChildTiming,i.autoRemoveChildren=!!t.autoRemoveChildren,i._sort=H(t.sortChildren),i.parent&&He(i.parent,n(i)),t.scrollTrigger&&Qe(n(i),t.scrollTrigger),i}i(t,e);var r=t.prototype;return r.to=function(e,t,r){return new Yt(e,Te(arguments,0,this),tt(this,W(t)?arguments[3]:r)),this},r.from=function(e,t,r){return new Yt(e,Te(arguments,1,this),tt(this,W(t)?arguments[3]:r)),this},r.fromTo=function(e,t,r,n){return new Yt(e,Te(arguments,2,this),tt(this,W(t)?arguments[4]:n)),this},r.set=function(e,t,r){return t.duration=0,t.parent=this,Le(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Yt(e,t,tt(this,r),1),this},r.call=function(e,t,r){return Ge(this,Yt.delayedCall(0,e,t),tt(this,r))},r.staggerTo=function(e,t,r,n,i,a,o){return r.duration=t,r.stagger=r.stagger||n,r.onComplete=a,r.onCompleteParams=o,r.parent=this,new Yt(e,r,tt(this,i)),this},r.staggerFrom=function(e,t,r,n,i,a,o){return r.runBackwards=1,Le(r).immediateRender=H(r.immediateRender),this.staggerTo(e,t,r,n,i,a,o)},r.staggerFromTo=function(e,t,r,n,i,a,o,s){return n.startAt=r,Le(n).immediateRender=H(n.immediateRender),this.staggerTo(e,t,n,i,a,o,s)},r.render=function(e,t,r){var n,i,a,s,c,u,l,_,d,p,f,g,m=this._time,h=this._dirty?this.totalDuration():this._tDur,y=this._dur,v=this!==o&&e>h-1e-8&&e>=0?h:e<1e-8?0:e,b=this._zTime<0!=e<0&&(this._initted||!y);if(v!==this._tTime||r||b){if(m!==this._time&&y&&(v+=this._time-m,e+=this._time-m),n=v,d=this._start,u=!(_=this._ts),b&&(y||(m=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(f=this._yoyo,c=y+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*c+e,t,r);if(n=Ee(v%c),v===h?(s=this._repeat,n=y):((s=~~(v/c))&&s===v/c&&(n=y,s--),n>y&&(n=y)),p=Ve(this._tTime,c),!m&&this._tTime&&p!==s&&(p=s),f&&1&s&&(n=y-n,g=1),s!==p&&!this._lock){var x=f&&1&p,D=x===(f&&1&s);if(st)for(n=e._first;n&&n._start<=r;){if(!n._dur&&"isPause"===n.data&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if(!n._dur&&"isPause"===n.data&&n._start=0)&&!t&&ht(this,"onStart"),n>=m&&e>=0)for(i=this._first;i;){if(a=i._next,(i._act||n>=i._start)&&i._ts&&l!==i){if(i.parent!==this)return this.render(e,t,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,t,r),n!==this._time||!this._ts&&!u){l=0,a&&(v+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var S=e<0?e:n;i;){if(a=i._prev,(i._act||S<=i._end)&&i._ts&&l!==i){if(i.parent!==this)return this.render(e,t,r);if(i.render(i._ts>0?(S-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(S-i._start)*i._ts,t,r),n!==this._time||!this._ts&&!u){l=0,a&&(v+=this._zTime=S?-1e-8:1e-8);break}}i=a}}if(l&&!t&&(this.pause(),l.render(n>=m?0:-1e-8)._zTime=n>=m?1:-1,this._ts))return this._start=d,qe(this),this.render(e,t,r);this._onUpdate&&!t&&ht(this,"onUpdate",!0),(v===h&&h>=this.totalDuration()||!v&&m)&&(d!==this._start&&Math.abs(_)===Math.abs(this._ts)||this._lock||((e||!y)&&(v===h&&this._ts>0||!v&&this._ts<0)&&Be(this,1),t||e<0&&!m||!v&&!m||(ht(this,v===h?"onComplete":"onReverseComplete",!0),this._prom&&!(v0)&&this._prom())))}return this},r.add=function(e,t){var r=this;if(W(t)||(t=tt(this,t)),!(e instanceof Jt)){if(X(e))return e.forEach(function(e){return r.add(e,t)}),this;if(J(e))return this.addLabel(e,t);if(!V(e))return this;e=Yt.delayedCall(0,e)}return this!==e?Ge(this,e,t):this},r.getChildren=function(e,t,r,n){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===r&&(r=!0),void 0===n&&(n=-M);for(var i=[],a=this._first;a;)a._start>=n&&(a instanceof Yt?t&&i.push(a):(r&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,r)))),a=a._next;return i},r.getById=function(e){for(var t=this.getChildren(1,1,1),r=t.length;r--;)if(t[r].vars.id===e)return t[r]},r.remove=function(e){return J(e)?this.removeLabel(e):V(e)?this.killTweensOf(e):(Re(this,e),e===this._recent&&(this._recent=this._last),je(this))},r.totalTime=function(t,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ee(wt.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,r),this._forcing=0,this):this._tTime},r.addLabel=function(e,t){return this.labels[e]=tt(this,t),this},r.removeLabel=function(e){return delete this.labels[e],this},r.addPause=function(e,t,r){var n=Yt.delayedCall(0,t||_e,r);return n.data="isPause",this._hasPause=1,Ge(this,n,tt(this,e))},r.removePause=function(e){var t=this._first;for(e=tt(this,e);t;)t._start===e&&"isPause"===t.data&&Be(t),t=t._next},r.killTweensOf=function(e,t,r){for(var n=this.getTweensOf(e,r),i=n.length;i--;)Wt!==n[i]&&n[i].kill(e,t);return this},r.getTweensOf=function(e,t){for(var r,n=[],i=st(e),a=this._first,o=W(t);a;)a instanceof Yt?Ce(a._targets,i)&&(o?(!Wt||a._initted&&a._ts)&&a.globalTime(0)<=t&&a.globalTime(a.totalDuration())>t:!t||a.isActive())&&n.push(a):(r=a.getTweensOf(i,t)).length&&n.push.apply(n,r),a=a._next;return n},r.tweenTo=function(e,t){t=t||{};var r=this,n=tt(r,e),i=t.startAt,a=t.onStart,o=t.onStartParams,s=t.immediateRender,c=Yt.to(r,Pe({ease:"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:t.duration||Math.abs((n-(i&&"time"in i?i.time:r._time))/r.timeScale())||1e-8,onStart:function(){r.pause();var e=t.duration||Math.abs((n-r._time)/r.timeScale());c._dur!==e&&Ye(c,e,0,1).render(c._time,!0,!0),a&&a.apply(c,o||[])}},t));return s?c.render(0):c},r.tweenFromTo=function(e,t,r){return this.tweenTo(t,Pe({startAt:{time:tt(this,e)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(e){return void 0===e&&(e=this._time),mt(this,tt(this,e))},r.previousLabel=function(e){return void 0===e&&(e=this._time),mt(this,tt(this,e),1)},r.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},r.shiftChildren=function(e,t,r){void 0===r&&(r=0);for(var n,i=this._first,a=this.labels;i;)i._start>=r&&(i._start+=e,i._end+=e),i=i._next;if(t)for(n in a)a[n]>=r&&(a[n]+=e);return je(this)},r.invalidate=function(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return e.prototype.invalidate.call(this)},r.clear=function(e){void 0===e&&(e=!0);for(var t,r=this._first;r;)t=r._next,this.remove(r),r=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),je(this)},r.totalDuration=function(e){var t,r,n,i=0,a=this,s=a._last,c=M;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-e:e));if(a._dirty){for(n=a.parent;s;)t=s._prev,s._dirty&&s.totalDuration(),(r=s._start)>c&&a._sort&&s._ts&&!a._lock?(a._lock=1,Ge(a,s,r-s._delay,1)._lock=0):c=r,r<0&&s._ts&&(i-=r,(!n&&!a._dp||n&&n.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-Infinity),c=0),s._end>i&&s._ts&&(i=s._end),s=t;Ye(a,a===o&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},t.updateRoot=function(e){if(o._ts&&(we(o,We(e,o)),_=wt.frame),wt.frame>=he){he+=F.autoSleep||120;var t=o._first;if((!t||!t._ts)&&F.autoSleep&&wt._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||wt.sleep()}}},t}(Jt);Pe(Vt.prototype,{_lock:0,_hasPause:0,_forcing:0});var Wt,qt=function(e,t,r,n,i,a,o){var s,c,u,l,_,d,p,f,g=new dr(this._pt,e,t,0,1,or,null,i),m=0,h=0;for(g.b=r,g.e=n,r+="",(p=~(n+="").indexOf("random("))&&(n=ft(n)),a&&(a(f=[r,n],e,t),r=f[0],n=f[1]),c=r.match(te)||[];s=te.exec(n);)l=s[0],_=n.substring(m,s.index),u?u=(u+1)%5:"rgba("===_.substr(-5)&&(u=1),l!==c[h++]&&(d=parseFloat(c[h-1])||0,g._pt={_next:g._pt,p:_||1===h?_:",",s:d,c:"="===l.charAt(1)?parseFloat(l.substr(2))*("-"===l.charAt(0)?-1:1):parseFloat(l)-d,m:u&&u<4?Math.round:0},m=te.lastIndex);return g.c=m0)w||(t._startAt=0);else if(A&&!(r<0&&N))return void(r&&(t._zTime=r))}else if(T&&A)if(N)!w&&(t._startAt=0);else if(r&&(x=!1),s=Pe({overwrite:!1,data:"isFromStart",lazy:x&&H(D),immediateRender:x,stagger:0,parent:O},n),m&&(s[d.prop]=m),Be(t._startAt=Yt.set(P,s)),x){if(!r)return}else e(t._startAt,1e-8);for(t._pt=0,D=A&&H(D)||D&&!A,i=0;i")});else{if(d=w.length,g=x?ut(x):_e,K(x))for(p in x)~$t.indexOf(p)&&(m||(m={}),m[p]=x[p]);for(l=0;lp-1e-8&&e>=0?p:e<1e-8?0:e;if(f){if(g!==this._tTime||!e||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=e<0){if(n=g,l=this.timeline,this._repeat){if(o=f+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*o+e,t,r);if(n=Ee(g%o),g===p?(a=this._repeat,n=f):((a=~~(g/o))&&a===g/o&&(n=f,a--),n>f&&(n=f)),(c=this._yoyo&&1&a)&&(_=this._yEase,n=f-n),s=Ve(this._tTime,o),n===d&&!r&&this._initted)return this;a!==s&&(l&&this._yEase&&Mt(l,c),!this.vars.repeatRefresh||c||this._lock||(this._lock=r=1,this.render(Ee(o*a),!0).invalidate()._lock=0))}if(!this._initted){if($e(this,e<0?e:n,r,t))return this._tTime=0,this;if(f!==this._dur)return this.render(e,t,r)}for(this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=u=(_||this._ease)(n/f),this._from&&(this.ratio=u=1-u),n&&!d&&!t&&ht(this,"onStart"),i=this._pt;i;)i.r(u,i.d),i=i._next;l&&l.render(e<0?e:!n&&c?-1e-8:l._dur*u,t,r)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(e<0&&this._startAt&&this._startAt.render(e,!0,r),ht(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!t&&this.parent&&ht(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(e<0&&this._startAt&&!this._onUpdate&&this._startAt.render(e,!0,!0),(e||!f)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Be(this,1),t||e<0&&!d||!g&&!d||(ht(this,g===p?"onComplete":"onReverseComplete",!0),this._prom&&!(g0)&&this._prom()))}}else!function(e,t,r,n){var i,a,o,s=e.ratio,c=t<0||!t&&(!e._start&&Xe(e)||(e._ts<0||e._dp._ts<0)&&"isFromStart"!==e.data&&"isStart"!==e.data)?0:1,u=e._rDelay,l=0;if(u&&e._repeat&&(l=nt(0,e._tDur,t),a=Ve(l,u),o=Ve(e._tTime,u),e._yoyo&&1&a&&(c=1-c),a!==o&&(s=1-c,e.vars.repeatRefresh&&e._initted&&e.invalidate())),c!==s||n||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&$e(e,t,n,r))return;for(o=e._zTime,e._zTime=t||(r?1e-8:0),r||(r=t&&!o),e.ratio=c,e._from&&(c=1-c),e._time=0,e._tTime=l,r||ht(e,"onStart"),i=e._pt;i;)i.r(c,i.d),i=i._next;e._startAt&&t<0&&e._startAt.render(t,!0,!0),e._onUpdate&&!r&&ht(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&ht(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===c&&(c&&Be(e,1),r||(ht(e,c?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)}(this,e,t,r);return this},r.targets=function(){return this._targets},r.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),e.prototype.invalidate.call(this)},r.kill=function(e,t){if(void 0===t&&(t="all"),!(e||t&&"all"!==t))return this._lazy=this._pt=0,this.parent?yt(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Wt&&!0!==Wt.vars.overwrite)._first||yt(this),this.parent&&r!==this.timeline.totalDuration()&&Ye(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,a,o,s,c,u,l=this._targets,_=e?st(e):l,d=this._ptLookup,p=this._pt;if((!t||"all"===t)&&function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0}(l,_))return"all"===t&&(this._pt=0),yt(this);for(n=this._op=this._op||[],"all"!==t&&(J(t)&&(s={},Se(t,function(e){return s[e]=1}),t=s),t=function(e,t){var r,n,i,a,o=e[0]?xe(e[0]).harness:0,s=o&&o.aliases;if(!s)return t;for(n in r=Fe({},t),s)if(n in r)for(i=(a=s[n].split(",")).length;i--;)r[a[i]]=r[n];return r}(l,t)),u=l.length;u--;)if(~_.indexOf(l[u]))for(s in i=d[u],"all"===t?(n[u]=t,o=i,a={}):(a=n[u]=n[u]||{},o=t),o)(c=i&&i[s])&&("kill"in c.d&&!0!==c.d.kill(s)||Re(this,c,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&p&&yt(this),this},t.to=function(e,r){return new t(e,r,arguments[2])},t.from=function(e,r){return new t(e,Te(arguments,1))},t.delayedCall=function(e,r,n,i){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},t.fromTo=function(e,r,n){return new t(e,Te(arguments,2))},t.set=function(e,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(e,r)},t.killTweensOf=function(e,t,r){return o.killTweensOf(e,t,r)},t}(Jt);Pe(Yt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Se("staggerTo,staggerFrom,staggerFromTo",function(e){Yt[e]=function(){var t=new Vt,r=at.call(arguments,0);return r.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,r)}});var Zt=function(e,t,r){return e[t]=r},er=function(e,t,r){return e[t](r)},tr=function(e,t,r,n){return e[t](n.fp,r)},rr=function(e,t,r){return e.setAttribute(t,r)},nr=function(e,t){return V(e[t])?er:q(e[t])&&e.setAttribute?rr:Zt},ir=function(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4,t)},ar=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},or=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(1===e&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round(1e4*(r.s+r.c*e))/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},sr=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},cr=function(e,t,r,n){for(var i,a=this._pt;a;)i=a._next,a.p===n&&a.modifier(e,t,r),a=i},ur=function(e){for(var t,r,n=this._pt;n;)r=n._next,n.p===e&&!n.op||n.op===e?Re(this,n,"_pt"):n.dep||(t=1),n=r;return!t},lr=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},_r=function(e){for(var t,r,n,i,a=e._pt;a;){for(t=a._next,r=n;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:i)?a._prev._next=a:n=a,(a._next=r)?r._prev=a:i=a,a=t}e._pt=n},dr=function(){function e(e,t,r,n,i,a,o,s,c){this.t=t,this.s=n,this.c=i,this.p=r,this.r=a||ir,this.d=o||this,this.set=s||Zt,this.pr=c||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,r){this.mSet=this.mSet||this.set,this.set=lr,this.m=e,this.mt=r,this.tween=t},e}();Se(ve+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return de[e]=1}),ae.TweenMax=ae.TweenLite=Yt,ae.TimelineLite=ae.TimelineMax=Vt,o=new Vt({sortChildren:!1,defaults:I,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),F.stringFilter=kt;var pr={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r1){var n=e.map(function(e){return mr.quickSetter(e,t,r)}),i=n.length;return function(e){for(var t=i;t--;)n[t](e)}}var a=ge[t],o=xe(e=e[0]||{}),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var n=new a;d._pt=0,n.init(e,r?t+r:t,d,0,[e]),n.render(1,n),d._pt&&sr(1,d)}:o.set(e,s);return a?c:function(t){return c(e,s,r?t+r:t,o,1)}},isTweening:function(e){return o.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Lt(e.ease,I.ease)),Ie(I,e||{})},config:function(e){return Ie(F,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.defaults,i=e.extendTimeline;(e.plugins||"").split(",").forEach(function(e){return e&&!ge[e]&&!ae[e]&&ue(t+" effect requires "+e+" plugin.")}),me[t]=function(e,t,i){return r(st(e),Pe(t||{},n),i)},i&&(Vt.prototype[t]=function(e,r,n){return this.add(me[t](e,K(r)?r:(n=r)&&{},this),n)})},registerEase:function(e,t){Nt[e]=Lt(t)},parseEase:function(e,t){return arguments.length?Lt(e,t):Nt},getById:function(e){return o.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var r,n,i=new Vt(e);for(i.smoothChildTiming=H(e.smoothChildTiming),o.remove(i),i._dp=0,i._time=i._tTime=o._time,r=o._first;r;)n=r._next,!t&&!r._dur&&r instanceof Yt&&r.vars.onComplete===r._targets[0]||Ge(i,r,r._start-r._delay),r=n;return Ge(o,i,0),i},utils:{wrap:function e(t,r,n){var i=r-t;return X(t)?pt(t,e(0,t.length),r):rt(n,function(e){return(i+(e-t)%i)%i+t})},wrapYoyo:function e(t,r,n){var i=r-t,a=2*i;return X(t)?pt(t,e(0,t.length-1),r):rt(n,function(e){return t+((e=(a+(e-t)%a)%a||0)>i?a-e:e)})},distribute:ut,random:dt,snap:_t,normalize:function(e,t,r){return gt(e,t,0,1,r)},getUnit:it,clamp:function(e,t,r){return rt(r,function(r){return nt(e,t,r)})},splitColor:Dt,toArray:st,mapRange:gt,pipe:function(){for(var e=arguments.length,t=new Array(e),r=0;r{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let s=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:r,_ctorUnsubscribe:s,_unsubscribe:u,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof e)r.remove(this);else if(null!==r)for(let e=0;ee.concat(t instanceof o?t.errors:t),[])}},s7LF:function(e,t,r){"use strict";r.d(t,"a",function(){return se}),r.d(t,"b",function(){return m}),r.d(t,"c",function(){return c}),r.d(t,"d",function(){return O}),r.d(t,"e",function(){return ae});var n=r("8Y7J"),i=r("SVse"),a=r("cp0P"),o=r("Cfvw"),s=r("lJxs");const c=new n.r("NgValueAccessor"),u={provide:c,useExisting:Object(n.U)(()=>l),multi:!0};let l=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.F),n.Lb(n.l))},e.\u0275dir=n.Gb({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&n.Wb("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[n.Ab([u])]}),e})();const _={provide:c,useExisting:Object(n.U)(()=>p),multi:!0},d=new n.r("CompositionEventMode");let p=(()=>{class e{constructor(e,t,r){this._renderer=e,this._elementRef=t,this._compositionMode=r,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Object(i.t)()?Object(i.t)().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.F),n.Lb(n.l),n.Lb(d,8))},e.\u0275dir=n.Gb({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&n.Wb("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[n.Ab([_])]}),e})();function f(e){return null==e||0===e.length}function g(e){return null!=e&&"number"==typeof e.length}const m=new n.r("NgValidators"),h=new n.r("NgAsyncValidators"),y=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[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])?)*$/;class v{static min(e){return t=>{if(f(t.value)||f(e))return null;const r=parseFloat(t.value);return!isNaN(r)&&r{if(f(t.value)||f(e))return null;const r=parseFloat(t.value);return!isNaN(r)&&r>e?{max:{max:e,actual:t.value}}:null}}static required(e){return f(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return f(e.value)||y.test(e.value)?null:{email:!0}}static minLength(e){return t=>f(t.value)||!g(t.value)?null:t.value.lengthg(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}static pattern(e){if(!e)return v.nullValidator;let t,r;return"string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),t=new RegExp(r)):(r=e.toString(),t=e),e=>{if(f(e.value))return null;const n=e.value;return t.test(n)?null:{pattern:{requiredPattern:r,actualValue:n}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(b);return 0==t.length?null:function(e){return D(S(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(b);return 0==t.length?null:function(e){const r=S(e,t).map(x);return Object(a.a)(r).pipe(Object(s.a)(D))}}}function b(e){return null!=e}function x(e){const t=Object(n.sb)(e)?Object(o.a)(e):e;return Object(n.rb)(t),t}function D(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function S(e,t){return t.map(t=>t(e))}function E(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function C(e){return null!=e?v.compose(E(e)):null}function T(e){return null!=e?v.composeAsync(E(e)):null}function k(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}let w=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=C(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=T(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=n.Gb({type:e}),e})(),A=(()=>{class e extends w{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return N(t||e)},e.\u0275dir=n.Gb({type:e,features:[n.yb]}),e})();const N=n.Qb(A);class P extends w{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let O=(()=>{class e extends class{constructor(e){this._cd=e}is(e){var t,r;return!!(null===(r=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===r?void 0:r[e])}}{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(P,2))},e.\u0275dir=n.Gb({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&n.Db("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[n.yb]}),e})();const F={provide:c,useExisting:Object(n.U)(()=>I),multi:!0};let I=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.F),n.Lb(n.l))},e.\u0275dir=n.Gb({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&n.Wb("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[n.Ab([F])]}),e})();const M={provide:c,useExisting:Object(n.U)(()=>R),multi:!0};let L=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=n.Hb({token:e,factory:e.\u0275fac}),e})(),R=(()=>{class e{constructor(e,t,r,n){this._renderer=e,this._elementRef=t,this._registry=r,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(P),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.F),n.Lb(n.l),n.Lb(L),n.Lb(n.s))},e.\u0275dir=n.Gb({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&n.Wb("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.Ab([M])]}),e})();const B={provide:c,useExisting:Object(n.U)(()=>j),multi:!0};let j=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.F),n.Lb(n.l))},e.\u0275dir=n.Gb({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&n.Wb("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[n.Ab([B])]}),e})();const U={provide:c,useExisting:Object(n.U)(()=>z),multi:!0};let z=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const r=function(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",r)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.F),n.Lb(n.l))},e.\u0275dir=n.Gb({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&n.Wb("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.Ab([U])]}),e})();const J={provide:c,useExisting:Object(n.U)(()=>V),multi:!0};let V=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const r=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(r.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const r=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function q(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const K=[l,j,I,z,V,R];function H(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function G(e){return(Y(e)?e.validators:e)||null}function Q(e){return Array.isArray(e)?C(e):e||null}function $(e,t){return(Y(t)?t.asyncValidators:e)||null}function X(e){return Array.isArray(e)?T(e):e||null}function Y(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Z{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=Q(this._rawValidators),this._composedAsyncValidatorFn=X(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=Q(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=X(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const t=x(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,r){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let n=e;return t.forEach(e=>{n=n instanceof te?n.controls.hasOwnProperty(e)?n.controls[e]:null:n instanceof re&&n.at(e)||null}),n}(this,e)}getError(e,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new n.n,this.statusChanges=new n.n}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Y(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ee extends Z{constructor(e=null,t,r){super(G(t),$(r,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!r})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){H(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){H(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class te extends Z{constructor(e,t,r){super(G(t),$(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!r})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(r=>{this._throwIfControlMissing(r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((r,n)=>{r.reset(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,r)=>(e[r]=t instanceof ee?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&e(r,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const r=this.controls[t];if(this.contains(t)&&e(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(e,t){let r=e;return this._forEachChild((e,n)=>{r=t(r,e,n)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,r)=>{if(void 0===e[r])throw new Error(`Must supply a value for form control with name: '${r}'.`)})}}class re extends Z{constructor(e,t,r){super(G(t),$(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!r})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,r)=>{this._throwIfControlMissing(r),this.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((e,r)=>{this.at(r)&&this.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((r,n)=>{r.reset(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof ee?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,r)=>{e(t,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,r)=>{if(void 0===e[r])throw new Error(`Must supply a value for form control at index: ${r}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const ne={provide:P,useExisting:Object(n.U)(()=>ae)},ie=(()=>Promise.resolve(null))();let ae=(()=>{class e extends P{constructor(e,t,r,i){super(),this.control=new ee,this._registered=!1,this.update=new n.n,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=function(e,t){if(!t)return null;let r,n,i;return Array.isArray(t),t.forEach(e=>{var t;e.constructor===p?r=e:(t=e,K.some(e=>t.constructor===e)?n=e:i=e)}),i||n||r||null}(0,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;const r=e.model;return!!r.isFirstChange()||!Object.is(t,r.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){var e,t;(function(e,t,r){const n=function(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(k(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const i=function(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(k(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);{const r=()=>e.updateValueAndValidity();W(t._rawValidators,r),W(t._rawAsyncValidators,r)}})(e=this.control,t=this),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(r=>{e._pendingValue=r,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&q(e,t)})}(e,t),function(e,t){const r=(e,r)=>{t.valueAccessor.writeValue(e),r&&t.viewToModelUpdate(e)};e.registerOnChange(r),t._registerOnDestroy(()=>{e._unregisterOnChange(r)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&q(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const r=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(r),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(r)})}}(e,t),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){ie.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=""===t||t&&"false"!==t;ie.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(A,9),n.Lb(m,10),n.Lb(h,10),n.Lb(c,10))},e.\u0275dir=n.Gb({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.Ab([ne]),n.yb,n.zb]}),e})(),oe=(()=>{class e{}return e.\u0275mod=n.Jb({type:e}),e.\u0275inj=n.Ib({factory:function(t){return new(t||e)}}),e})(),se=(()=>{class e{}return e.\u0275mod=n.Jb({type:e}),e.\u0275inj=n.Ib({factory:function(t){return new(t||e)},providers:[L],imports:[oe]}),e})()},srUL:function(e,t,r){"use strict";r.d(t,"a",function(){return f}),r.d(t,"b",function(){return h});var n=r("8Y7J"),i=r("2Vo4"),a=r("jtHE"),o=r("pLZG"),s=r("lJxs"),c=r("3E0/"),u=r("SVse"),l=r("iInd");class _{constructor(){this.pageTracking={autoTrackVirtualPages:!0,basePath:"",excludedRoutes:[],clearIds:!1,clearHash:!1,clearQueryParams:!1,idsRegExp:/^\d+$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/},this.developerMode=!1,this.ga={},this.appInsights={},this.gtm={},this.gst={}}}const d=new n.r("ANGULARTICS2");class p{trackLocation(e){return new i.a({url:"/"})}prepareExternalUrl(e){return e}}let f=(()=>{class e{constructor(e,t){this.tracker=e,this.pageTrack=new a.a(10),this.eventTrack=new a.a(10),this.exceptionTrack=new a.a(10),this.setAlias=new a.a(10),this.setUsername=new a.a(10),this.setUserProperties=new a.a(10),this.setUserPropertiesOnce=new a.a(10),this.setSuperProperties=new a.a(10),this.setSuperPropertiesOnce=new a.a(10),this.userTimings=new a.a(10);const r=new _;this.settings=Object.assign(Object.assign({},r),t.settings),this.settings.pageTracking=Object.assign(Object.assign({},r.pageTracking),t.settings.pageTracking),this.tracker.trackLocation(this.settings).subscribe(e=>this.trackUrlChange(e.url))}filterDeveloperMode(){return Object(o.a)((e,t)=>!this.settings.developerMode)}trackUrlChange(e){if(this.settings.pageTracking.autoTrackVirtualPages&&!this.matchesExcludedRoute(e)){const t=this.clearUrl(e);let r;r=this.settings.pageTracking.basePath.length?this.settings.pageTracking.basePath+t:this.tracker.prepareExternalUrl(t),this.pageTrack.next({path:r})}}matchesExcludedRoute(e){for(const t of this.settings.pageTracking.excludedRoutes)if(t instanceof RegExp&&t.test(e)||-1!==e.indexOf(t))return!0;return!1}clearUrl(e){return this.settings.pageTracking.clearIds||this.settings.pageTracking.clearQueryParams||this.settings.pageTracking.clearHash?e.split("/").map(e=>this.settings.pageTracking.clearQueryParams?e.split("?")[0]:e).map(e=>this.settings.pageTracking.clearHash?e.split("#")[0]:e).filter(e=>!this.settings.pageTracking.clearIds||!e.match(this.settings.pageTracking.idsRegExp)).join("/"):e}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(p),n.Sb(d))},e.\u0275prov=Object(n.Hb)({factory:function(){return new e(Object(n.Sb)(p),Object(n.Sb)(d))},token:e,providedIn:"root"}),e})(),g=(()=>{class e{constructor(e,t){this.router=e,this.location=t}trackLocation(e){return this.router.events.pipe(Object(o.a)(e=>e instanceof l.a),Object(o.a)(()=>!e.developerMode),Object(s.a)(e=>({url:e.urlAfterRedirects})),Object(c.a)(0))}prepareExternalUrl(e){return this.location.prepareExternalUrl(e)}}return e.\u0275fac=function(t){return new(t||e)(n.Sb(l.b),n.Sb(u.f))},e.\u0275prov=Object(n.Hb)({factory:function(){return new e(Object(n.Sb)(l.b),Object(n.Sb)(u.f))},token:e,providedIn:"root"}),e})(),m=(()=>{class e{}return e.\u0275mod=n.Jb({type:e}),e.\u0275inj=n.Ib({factory:function(t){return new(t||e)}}),e})(),h=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[{provide:d,useValue:{settings:t}},{provide:p,useClass:g},f]}}}return e.\u0275mod=n.Jb({type:e}),e.\u0275inj=n.Ib({factory:function(t){return new(t||e)},imports:[[m]]}),e})()},"un/a":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("7o/Q");function i(e=-1){return t=>t.lift(new a(e,t))}class a{constructor(e,t){this.count=e,this.source=t}call(e,t){return t.subscribe(new o(e,this.count,this.source))}}class o extends n.a{constructor(e,t,r){super(e),this.count=t,this.source=r}error(e){if(!this.isStopped){const{source:t,count:r}=this;if(0===r)return super.error(e);r>-1&&(this.count=r-1),t.subscribe(this._unsubscribeAndRecycle())}}}},ura0:function(e,t,r){"use strict";r.d(t,"b",function(){return l}),r.d(t,"a",function(){return c});var n=r("8Y7J"),i=r("SVse"),a=r("/q54");r("8LU1"),r("1G5W"),r("cUpR"),new Map;let o=(()=>{class e extends a.b{constructor(e,t,r,n,a,o,s){super(e,null,t,r),this.ngClassInstance=s,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new i.h(n,a,e,o)),this.init(),this.setValue("","")}set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.l),n.Lb(a.i),n.Lb(a.f),n.Lb(n.t),n.Lb(n.u),n.Lb(n.F),n.Lb(i.h,10))},e.\u0275dir=n.Gb({type:e,inputs:{klass:["class","klass"]},features:[n.yb]}),e})();const s=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let c=(()=>{class e extends o{constructor(){super(...arguments),this.inputs=s}}return e.\u0275fac=function(t){return u(t||e)},e.\u0275dir=n.Gb({type:e,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[n.yb]}),e})();const u=n.Qb(c);new WeakMap;let l=(()=>{class e{}return e.\u0275mod=n.Jb({type:e}),e.\u0275inj=n.Ib({factory:function(t){return new(t||e)},imports:[[a.c]]}),e})()},uzYf:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("8Y7J");let i=(()=>{class e{constructor(e){this.hostElement=e.nativeElement}onMouseEnter(){const e=this.hostElement.getBoundingClientRect();this.appTooltip.style.visibility="visible",this.appTooltip.style.top=e.y+32+"px",this.appTooltip.style.left=e.x+"px"}onMouseLeave(){this.appTooltip.style.visibility="collapse"}}return e.\u0275fac=function(t){return new(t||e)(n.Lb(n.l))},e.\u0275dir=n.Gb({type:e,selectors:[["code","appTooltip",""]],hostBindings:function(e,t){1&e&&n.Wb("mouseenter",function(){return t.onMouseEnter()})("mouseleave",function(){return t.onMouseLeave()})},inputs:{appTooltip:"appTooltip"}}),e})()},vkgz:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("7o/Q");function i(){}var a=r("n6bG");function o(e,t,r){return function(n){return n.lift(new s(e,t,r))}}class s{constructor(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}call(e,t){return t.subscribe(new c(e,this.nextOrObserver,this.error,this.complete))}}class c extends n.a{constructor(e,t,r,n){super(e),this._tapNext=i,this._tapError=i,this._tapComplete=i,this._tapError=r||i,this._tapComplete=n||i,Object(a.a)(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||i,this._tapError=t.error||i,this._tapComplete=t.complete||i)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}},"x+ZX":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("7o/Q");function i(){return function(e){return e.lift(new a(e))}}class a{constructor(e){this.connectable=e}call(e,t){const{connectable:r}=this;r._refCount++;const n=new o(e,r),i=t.subscribe(n);return n.closed||(n.connection=r.connect()),i}}class o extends n.a{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:r}=this,n=e._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}},xgIS:function(e,t,r){"use strict";r.d(t,"a",function(){return s});var n=r("HDdC"),i=r("DH7j"),a=r("n6bG"),o=r("lJxs");function s(e,t,r,u){return Object(a.a)(r)&&(u=r,r=void 0),u?s(e,t,r).pipe(Object(o.a)(e=>Object(i.a)(e)?u(...e):u(e))):new n.a(n=>{c(e,t,function(e){n.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},n,r)})}function c(e,t,r,n,i){let a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const n=e;e.addEventListener(t,r,i),a=()=>n.removeEventListener(t,r,i)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const n=e;e.on(t,r),a=()=>n.off(t,r)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const n=e;e.addListener(t,r),a=()=>n.removeListener(t,r)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let a=0,o=e.length;at.schedule(a,0,{error:e,subscriber:r}):t=>t.error(e))}function a({error:e,subscriber:t}){t.error(e)}},zP0r:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("7o/Q");function i(e){return t=>t.lift(new a(e))}class a{constructor(e){this.total=e}call(e,t){return t.subscribe(new o(e,this.total))}}class o extends n.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}},zUnb:function(e,t,r){"use strict";r.r(t);var n=r("cUpR"),i=r("8Y7J"),a=r("s7LF"),o=r("IheW"),s=r("iInd"),c=r("jBAD");class u{constructor(){this.fruits=[],this.expectedFruits=[],this.code="const conveyorBelt = EMPTY;\n",this.minPositionLineNumber=2,this.positionColumnNumber=1}}var l=r("VIrA"),_=r("TSSN"),d=r("SVse"),p=r("dJsq"),f=r("uzYf");function g(e,t){if(1&e&&(i.Ob(0,"div"),i.Ob(1,"p"),i.qc(2,"Willkommen bei RxJS-fruits. Hier schreibst du JavaScript / TypeScript Code, um deinen Fruchtsaft zu mixen!"),i.Nb(),i.Ob(3,"p"),i.qc(4,"Die Basis von "),i.Ob(5,"b"),i.qc(6,"Reactive Extensions"),i.Nb(),i.qc(7," ist das "),i.Ob(8,"code",5),i.qc(9,"Observable"),i.Nb(),i.qc(10,". Es ist ein Gegenst\xfcck von einem Array. Anstatt die Daten zu behalten, gibt es diese als Datenstr\xf6me an interessierte Abonnenten weiter. "),i.Ob(11,"a",6),i.qc(12,"(Mehr Infos zum Observable)"),i.Nb(),i.Nb(),i.Ob(13,"p"),i.qc(14,"Ein Observable ist somit erst aktiv, wenn es mit der "),i.Ob(15,"code",5),i.qc(16,"subscribe"),i.Nb(),i.qc(17,"-Funktion abonniert wird. "),i.Ob(18,"a",7),i.qc(19,"(Mehr Infos zu Subscription)"),i.Nb(),i.Nb(),i.Nb()),2&e){i.ac();const e=i.hc(9),t=i.hc(15);i.Bb(8),i.fc("appTooltip",e),i.Bb(7),i.fc("appTooltip",t)}}function m(e,t){if(1&e&&(i.Ob(0,"div"),i.Ob(1,"p"),i.qc(2,"Welcome to RxJS-fruits, where you write JavaScript / TypeScript code to mix your fruit juice!"),i.Nb(),i.Ob(3,"p"),i.qc(4,"The basis of "),i.Ob(5,"b"),i.qc(6,"Reactive Extensions"),i.Nb(),i.qc(7," is the "),i.Ob(8,"code",5),i.qc(9,"Observable"),i.Nb(),i.qc(10,". It is a counterpart of an array. Instead of that Retaining data it streams the data to interested subscribers. "),i.Ob(11,"a",6),i.qc(12,"(More information about the Observable)"),i.Nb(),i.Nb(),i.Ob(13,"p"),i.qc(14,"An Observable is therefore only active if it is subscribed to with the "),i.Ob(15,"code",5),i.qc(16,"subscribe"),i.Nb(),i.qc(17,"-function. "),i.Ob(18,"a",7),i.qc(19,"(More information about Subscription)"),i.Nb(),i.Nb(),i.Nb()),2&e){i.ac();const e=i.hc(9),t=i.hc(15);i.Bb(8),i.fc("appTooltip",e),i.Bb(7),i.fc("appTooltip",t)}}function h(e,t){if(1&e&&(i.Ob(0,"div"),i.Ob(1,"p"),i.qc(2,"\u6b22\u8fce\u6765\u5230 RxJS-fruits\uff0c\u5728\u8fd9\u91cc\u7f16\u5199 JavaScript/TypeScript \u4ee3\u7801\u5236\u4f5c\u679c\u6c41\uff01"),i.Nb(),i.Ob(3,"p"),i.Ob(4,"b"),i.qc(5,"Reactive Extensions"),i.Nb(),i.qc(6," \u7684\u57fa\u7840\u662f "),i.Ob(7,"code",5),i.qc(8,"Observable"),i.Nb(),i.qc(9,"\u3002 \u5b83\u662f\u6570\u7ec4\u7684\u526f\u672c\uff0c\u4f46\u5e76\u4e0d\u662f\u56fa\u5b9a\u7684\u6570\u636e\uff0c\u800c\u662f\u5c06\u6570\u636e\u6d41\u4f20\u8f93\u5230\u5bf9\u5176\u611f\u5174\u8da3\u7684\u8ba2\u9605\u8005\u3002 "),i.Ob(10,"a",6),i.qc(11,"\uff08\u66f4\u591a\u5173\u4e8e Observable \u7684\u4fe1\u606f\uff09"),i.Nb(),i.Nb(),i.Ob(12,"p"),i.qc(13,"\u56e0\u6b64\uff0c\u4e00\u4e2a Observable \u5bf9\u8c61\u53ea\u6709\u5728\u4f7f\u7528 "),i.Ob(14,"code",5),i.qc(15,"subscribe"),i.Nb(),i.qc(16,"-function \u65f6\u624d\u4f1a\u88ab\u6fc0\u6d3b\u3002 "),i.Ob(17,"a",7),i.qc(18,"\uff08\u66f4\u591a\u5173\u4e8e Subscription \u7684\u4fe1\u606f\uff09"),i.Nb(),i.Nb(),i.Nb()),2&e){i.ac();const e=i.hc(9),t=i.hc(15);i.Bb(7),i.fc("appTooltip",e),i.Bb(7),i.fc("appTooltip",t)}}function y(e,t){if(1&e&&(i.Ob(0,"div"),i.Ob(1,"p"),i.qc(2,"\u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 RxJS-fruits, \u0433\u0434\u0435 \u0432\u044b \u043f\u0438\u0448\u0438\u0442\u0435 JavaScript / TypeScript \u043a\u043e\u0434 \u0447\u0442\u043e\u0431\u044b \u0441\u043c\u0435\u0448\u0430\u0442\u044c \u0432\u0430\u0448 \u0444\u0440\u0443\u043a\u0442\u043e\u0432\u044b\u0439 \u0441\u043e\u043a!"),i.Nb(),i.Ob(3,"p"),i.qc(4,"\u041e\u0441\u043d\u043e\u0432\u043e\u0439 "),i.Ob(5,"b"),i.qc(6,"Reactive Extensions"),i.Nb(),i.qc(7," \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f "),i.Ob(8,"code",5),i.qc(9,"Observable"),i.Nb(),i.qc(10,". \u042d\u0442\u043e \u0430\u043d\u0430\u043b\u043e\u0433 \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044f \u0434\u0430\u043d\u043d\u044b\u0435, \u043e\u043d \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0430\u043c. "),i.Ob(11,"a",6),i.qc(12,"(\u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e Observable)"),i.Nb(),i.Nb(),i.Ob(13,"p"),i.qc(14,"\u041f\u043e\u044d\u0442\u043e\u043c\u0443 Observable \u0430\u043a\u0442\u0438\u0432\u0435\u043d, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043e\u043d \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e "),i.Ob(15,"code",5),i.qc(16,"subscribe"),i.Nb(),i.qc(17,"-function. "),i.Ob(18,"a",7),i.qc(19,"(\u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e Subscription)"),i.Nb(),i.Nb(),i.Nb()),2&e){i.ac();const e=i.hc(9),t=i.hc(15);i.Bb(8),i.fc("appTooltip",e),i.Bb(7),i.fc("appTooltip",t)}}function v(e,t){if(1&e&&(i.Ob(0,"div"),i.Ob(1,"p"),i.qc(2,"\xa1Bienvenido a RxJS-fruits!, donde escribes c\xf3digo JavaScript / TypeScript para hacer jugo de frutas"),i.Nb(),i.Ob(3,"p"),i.qc(4,"La base de las "),i.Ob(5,"b"),i.qc(6,"Extensiones Reactivas"),i.Nb(),i.qc(7," es el "),i.Ob(8,"code",5),i.qc(9,"Observable"),i.Nb(),i.qc(10,". Es una contraparte de una arreglo o matr\xedz. En lugar de esos datos de retenci\xf3n, transmite los datos a los suscriptores interesados. "),i.Ob(11,"a",7),i.qc(12,"(M\xe1s informaci\xf3n sobre Subscription)"),i.Nb(),i.Nb(),i.Nb()),2&e){i.ac();const e=i.hc(9);i.Bb(8),i.fc("appTooltip",e)}}let b=(()=>{class e{constructor(e,t){this.exerciseService=e,this.translateService=t,this.exerciseTitle="subscribe",this.observableCode="\n const observable = new Observable(subscriber => {\n subscriber.next(1);\n subscriber.next(2);\n subscriber.next(3);\n }).subscribe(x => console.log(x));\n\n // Logs:\n // 1\n // 2\n // 3\n ",this.subscribeCode="\nobservable.subscribe();\n ",this.currentLanguage=""}ngOnInit(){this.exerciseService.newExercise(new u),this.currentLanguage=this.translateService.currentLang,this.onLangChangeSubscription=this.translateService.onLangChange.subscribe({next:()=>{this.currentLanguage=this.translateService.currentLang}})}ngOnDestroy(){this.onLangChangeSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(i.Lb(l.a),i.Lb(_.d))},e.\u0275cmp=i.Fb({type:e,selectors:[["app-subscribe"]],decls:20,vars:11,consts:[[4,"ngIf"],[1,"tooltip","codeTooltip"],["tooltipObservableCode",""],[3,"highlight"],["tooltipSubscribeCode",""],[1,"help",3,"appTooltip"],["href","https://rxjs.dev/guide/observable","target","_blank"],["href","https://rxjs.dev/guide/subscription","target","_blank"]],template:function(e,t){1&e&&(i.Ob(0,"h3"),i.qc(1),i.bc(2,"translate"),i.Nb(),i.pc(3,g,20,2,"div",0),i.pc(4,m,20,2,"div",0),i.pc(5,h,19,2,"div",0),i.pc(6,y,20,2,"div",0),i.pc(7,v,13,1,"div",0),i.Ob(8,"div",1,2),i.Ob(10,"pre"),i.qc(11," "),i.Mb(12,"code",3),i.qc(13,"\n "),i.Nb(),i.Nb(),i.Ob(14,"div",1,4),i.Ob(16,"pre"),i.qc(17," "),i.Mb(18,"code",3),i.qc(19,"\n "),i.Nb(),i.Nb()),2&e&&(i.Bb(1),i.tc("",i.cc(2,9,"EXERCISES.EXERCISETITLE"),": ",t.exerciseTitle,""),i.Bb(2),i.fc("ngIf","de"===t.currentLanguage),i.Bb(1),i.fc("ngIf","en"===t.currentLanguage),i.Bb(1),i.fc("ngIf","zh_CN"===t.currentLanguage),i.Bb(1),i.fc("ngIf","ru"===t.currentLanguage),i.Bb(1),i.fc("ngIf","es"===t.currentLanguage),i.Bb(5),i.fc("highlight",t.observableCode),i.Bb(6),i.fc("highlight",t.subscribeCode))},directives:[d.j,p.b,f.a],pipes:[_.c],styles:[""]}),e})();var x=r("BnXa"),D=r("VDRc"),S=r("cgln");function E(e,t){1&e&&(i.Ob(0,"div"),i.Ob(1,"h1"),i.qc(2,"Datenschutzerkl\xe4rung"),i.Nb(),i.Ob(3,"h2"),i.qc(4,"1. Datenschutz auf einen Blick"),i.Nb(),i.Ob(5,"h3"),i.qc(6,"Allgemeine Hinweise"),i.Nb(),i.Ob(7,"p"),i.qc(8,"Die folgenden Hinweise geben einen einfachen \xdcberblick dar\xfcber, was mit Ihren personenbezogenen Daten passiert, wenn Sie diese Website besuchen. Personenbezogene Daten sind alle Daten, mit denen Sie pers\xf6nlich identifiziert werden k\xf6nnen. Ausf\xfchrliche Informationen zum Thema Datenschutz entnehmen Sie unserer unter diesem Text aufgef\xfchrten Datenschutzerkl\xe4rung."),i.Nb(),i.Ob(9,"h3"),i.qc(10,"Datenerfassung auf dieser Website"),i.Nb(),i.Ob(11,"p"),i.Ob(12,"strong"),i.qc(13,"Wer ist verantwortlich f\xfcr die Datenerfassung auf dieser Website?"),i.Nb(),i.Nb(),i.Ob(14,"p"),i.qc(15,"Die Datenverarbeitung auf dieser Website erfolgt durch den Websitebetreiber. Die Kontakt E-Mail Adresse lautet: gregor.biswanger@web-enliven.de."),i.Nb(),i.Ob(16,"p"),i.Ob(17,"strong"),i.qc(18,"Wie erfassen wir Ihre Daten?"),i.Nb(),i.Nb(),i.Ob(19,"p"),i.qc(20,"Ihre Daten werden zum einen dadurch erhoben, dass Sie uns diese mitteilen. Hierbei kann es sich z.\xa0B. um Daten handeln, die Sie in ein Kontaktformular eingeben."),i.Nb(),i.Ob(21,"p"),i.qc(22,"Andere Daten werden automatisch oder nach Ihrer Einwilligung beim Besuch der Website durch unsere IT-Systeme erfasst. Das sind vor allem technische Daten (z.\xa0B. Internetbrowser, Betriebssystem oder Uhrzeit des Seitenaufrufs). Die Erfassung dieser Daten erfolgt automatisch, sobald Sie diese Website betreten."),i.Nb(),i.Ob(23,"p"),i.Ob(24,"strong"),i.qc(25,"Wof\xfcr nutzen wir Ihre Daten?"),i.Nb(),i.Nb(),i.Ob(26,"p"),i.qc(27,"Ein Teil der Daten wird erhoben, um eine fehlerfreie Bereitstellung der Website zu gew\xe4hrleisten. Andere Daten k\xf6nnen zur Analyse Ihres Nutzerverhaltens verwendet werden."),i.Nb(),i.Ob(28,"p"),i.Ob(29,"strong"),i.qc(30,"Welche Rechte haben Sie bez\xfcglich Ihrer Daten?"),i.Nb(),i.Nb(),i.Ob(31,"p"),i.qc(32,"Sie haben jederzeit das Recht, unentgeltlich Auskunft \xfcber Herkunft, Empf\xe4nger und Zweck Ihrer gespeicherten personenbezogenen Daten zu erhalten. Sie haben au\xdferdem ein Recht, die Berichtigung oder L\xf6schung dieser Daten zu verlangen. Wenn Sie eine Einwilligung zur Datenverarbeitung erteilt haben, k\xf6nnen Sie diese Einwilligung jederzeit f\xfcr die Zukunft widerrufen. Au\xdferdem haben Sie das Recht, unter bestimmten Umst\xe4nden die Einschr\xe4nkung der Verarbeitung Ihrer personenbezogenen Daten zu verlangen. Des Weiteren steht Ihnen ein Beschwerderecht bei der zust\xe4ndigen Aufsichtsbeh\xf6rde zu. "),i.Nb(),i.Ob(33,"p"),i.qc(34,"Hierzu sowie zu weiteren Fragen zum Thema Datenschutz k\xf6nnen Sie sich jederzeit unter der im Impressum angegebenen Adresse an uns wenden."),i.Nb(),i.Ob(35,"h3"),i.qc(36,"Analyse-Tools und Tools von Drittanbietern"),i.Nb(),i.Ob(37,"p"),i.qc(38,"Beim Besuch dieser Website kann Ihr Surf-Verhalten statistisch ausgewertet werden. Das geschieht vor allem mit Cookies und mit sogenannten Analyseprogrammen."),i.Nb(),i.Ob(39,"p"),i.qc(40,"Detaillierte Informationen zu diesen Analyseprogrammen finden Sie in der folgenden Datenschutzerkl\xe4rung. "),i.Nb(),i.Ob(41,"h2"),i.qc(42,"2. Hosting und Content Delivery Networks (CDN)"),i.Nb(),i.Ob(43,"h3"),i.qc(44,"Externes Hosting"),i.Nb(),i.Ob(45,"p"),i.qc(46,"Die Seite wird auf GitHub-Pages gehostet. GitHub Pages ist ein Dienst von GitHub Inc. (88 Colin P. Kelly Jr. St. San Francisco, CA 94107, USA). Die personenbezogenen Daten, die auf dieser Website erfasst werden, werden auf den Servern des Hosters gespeichert. Hierbei kann es sich v. a. um IP-Adressen, Kontaktanfragen, Meta- und Kommunikationsdaten, Vertragsdaten, Kontaktdaten, Namen, Webseitenzugriffe und sonstige Daten, die \xfcber eine Website generiert werden, handeln."),i.Nb(),i.Ob(47,"p"),i.qc(48,"Der Einsatz des Hosters erfolgt zum Zwecke der Vertragserf\xfcllung gegen\xfcber unseren potenziellen und bestehenden Kunden (Art. 6 Abs. 1 lit. b DSGVO) und im Interesse einer sicheren, schnellen und effizienten Bereitstellung unseres Online-Angebots durch einen professionellen Anbieter (Art. 6 Abs. 1 lit. f DSGVO). "),i.Nb(),i.Ob(49,"p"),i.qc(50,"Unser Hoster wird Ihre Daten nur insoweit verarbeiten, wie dies zur Erf\xfcllung seiner Leistungspflichten erforderlich ist und unsere Weisungen in Bezug auf diese Daten befolgen."),i.Nb(),i.Ob(51,"h2"),i.qc(52,"3. Allgemeine Hinweise und Pflichtinformationen"),i.Nb(),i.Ob(53,"h3"),i.qc(54,"Datenschutz"),i.Nb(),i.Ob(55,"p"),i.qc(56,"Die Betreiber dieser Seiten nehmen den Schutz Ihrer pers\xf6nlichen Daten sehr ernst. Wir behandeln Ihre personenbezogenen Daten vertraulich und entsprechend der gesetzlichen Datenschutzvorschriften sowie dieser Datenschutzerkl\xe4rung."),i.Nb(),i.Ob(57,"p"),i.qc(58,"Wenn Sie diese Website benutzen, werden verschiedene personenbezogene Daten erhoben. Personenbezogene Daten sind Daten, mit denen Sie pers\xf6nlich identifiziert werden k\xf6nnen. Die vorliegende Datenschutzerkl\xe4rung erl\xe4utert, welche Daten wir erheben und wof\xfcr wir sie nutzen. Sie erl\xe4utert auch, wie und zu welchem Zweck das geschieht."),i.Nb(),i.Ob(59,"p"),i.qc(60,"Wir weisen darauf hin, dass die Daten\xfcbertragung im Internet (z.\xa0B. bei der Kommunikation per E-Mail) Sicherheitsl\xfccken aufweisen kann. Ein l\xfcckenloser Schutz der Daten vor dem Zugriff durch Dritte ist nicht m\xf6glich."),i.Nb(),i.Ob(61,"h3"),i.qc(62,"Hinweis zur verantwortlichen Stelle"),i.Nb(),i.Ob(63,"p"),i.qc(64,"Die verantwortliche Stelle f\xfcr die Datenverarbeitung auf dieser Website ist:"),i.Nb(),i.Ob(65,"p"),i.qc(66,"Gregor Biswanger"),i.Mb(67,"br"),i.qc(68," Konrad-St\xf6r Str. 17"),i.Mb(69,"br"),i.qc(70," 90455 N\xfcrnberg"),i.Nb(),i.Ob(71,"p"),i.qc(72,"E-Mail: gregor.biswanger@web-enliven.de"),i.Nb(),i.Ob(73,"p"),i.qc(74,"Verantwortliche Stelle ist die nat\xfcrliche oder juristische Person, die allein oder gemeinsam mit anderen \xfcber die Zwecke und Mittel der Verarbeitung von personenbezogenen Daten (z.\xa0B. Namen, E-Mail-Adressen o. \xc4.) entscheidet."),i.Nb(),i.Ob(75,"h3"),i.qc(76,"Externe Links"),i.Nb(),i.Ob(77,"p"),i.qc(78,"Diese Website enth\xe4lt Links zu externen Websites mit unterschiedlichen Datenschutzbestimmungen. Wir \xfcbernehmen keine Verantwortung f\xfcr die Richtigkeit, Rechtm\xe4\xdfigkeit oder den Inhalt der externen Website oder f\xfcr die nachfolgenden Links. Wenden Sie sich an die externe Website, um Antworten auf Fragen zum Inhalt zu erhalten."),i.Nb(),i.Ob(79,"h3"),i.qc(80,"Widerruf Ihrer Einwilligung zur Datenverarbeitung"),i.Nb(),i.Ob(81,"p"),i.qc(82,"Viele Datenverarbeitungsvorg\xe4nge sind nur mit Ihrer ausdr\xfccklichen Einwilligung m\xf6glich. Sie k\xf6nnen eine bereits erteilte Einwilligung jederzeit widerrufen. Dazu reicht eine formlose Mitteilung per E-Mail an uns. Die Rechtm\xe4\xdfigkeit der bis zum Widerruf erfolgten Datenverarbeitung bleibt vom Widerruf unber\xfchrt."),i.Nb(),i.Ob(83,"h3"),i.qc(84,"Widerspruchsrecht gegen die Datenerhebung in besonderen F\xe4llen sowie gegen Direktwerbung (Art. 21 DSGVO) "),i.Nb(),i.Ob(85,"p"),i.qc(86,"WENN DIE DATENVERARBEITUNG AUF GRUNDLAGE VON ART. 6 ABS. 1 LIT. E ODER F DSGVO ERFOLGT, HABEN SIE JEDERZEIT DAS RECHT, AUS GR\xdcNDEN, DIE SICH AUS IHRER BESONDEREN SITUATION ERGEBEN, GEGEN DIE VERARBEITUNG IHRER PERSONENBEZOGENEN DATEN WIDERSPRUCH EINZULEGEN; DIES GILT AUCH F\xdcR EIN AUF DIESE BESTIMMUNGEN GEST\xdcTZTES PROFILING. DIE JEWEILIGE RECHTSGRUNDLAGE, AUF DENEN EINE VERARBEITUNG BERUHT, ENTNEHMEN SIE DIESER DATENSCHUTZERKL\xc4RUNG. WENN SIE WIDERSPRUCH EINLEGEN, WERDEN WIR IHRE BETROFFENEN PERSONENBEZOGENEN DATEN NICHT MEHR VERARBEITEN, ES SEI DENN, WIR K\xd6NNEN ZWINGENDE SCHUTZW\xdcRDIGE GR\xdcNDE F\xdcR DIE VERARBEITUNG NACHWEISEN, DIE IHRE INTERESSEN, RECHTE UND FREIHEITEN \xdcBERWIEGEN ODER DIE VERARBEITUNG DIENT DER GELTENDMACHUNG, AUS\xdcBUNG ODER VERTEIDIGUNG VON RECHTSANSPR\xdcCHEN (WIDERSPRUCH NACH ART. 21 ABS. 1 DSGVO)."),i.Nb(),i.Ob(87,"p"),i.qc(88,"WERDEN IHRE PERSONENBEZOGENEN DATEN VERARBEITET, UM DIREKTWERBUNG ZU BETREIBEN, SO HABEN SIE DAS RECHT, JEDERZEIT WIDERSPRUCH GEGEN DIE VERARBEITUNG SIE BETREFFENDER PERSONENBEZOGENER DATEN ZUM ZWECKE DERARTIGER WERBUNG EINZULEGEN; DIES GILT AUCH F\xdcR DAS PROFILING, SOWEIT ES MIT SOLCHER DIREKTWERBUNG IN VERBINDUNG STEHT. WENN SIE WIDERSPRECHEN, WERDEN IHRE PERSONENBEZOGENEN DATEN ANSCHLIESSEND NICHT MEHR ZUM ZWECKE DER DIREKTWERBUNG VERWENDET (WIDERSPRUCH NACH ART. 21 ABS. 2 DSGVO)."),i.Nb(),i.Ob(89,"h3"),i.qc(90,"Beschwerderecht bei der zust\xe4ndigen Aufsichtsbeh\xf6rde"),i.Nb(),i.Ob(91,"p"),i.qc(92,"Im Falle von Verst\xf6\xdfen gegen die DSGVO steht den Betroffenen ein Beschwerderecht bei einer Aufsichtsbeh\xf6rde, insbesondere in dem Mitgliedstaat ihres gew\xf6hnlichen Aufenthalts, ihres Arbeitsplatzes oder des Orts des mutma\xdflichen Versto\xdfes zu. Das Beschwerderecht besteht unbeschadet anderweitiger verwaltungsrechtlicher oder gerichtlicher Rechtsbehelfe."),i.Nb(),i.Ob(93,"h3"),i.qc(94,"Recht auf Daten\xfcbertragbarkeit"),i.Nb(),i.Ob(95,"p"),i.qc(96,"Sie haben das Recht, Daten, die wir auf Grundlage Ihrer Einwilligung oder in Erf\xfcllung eines Vertrags automatisiert verarbeiten, an sich oder an einen Dritten in einem g\xe4ngigen, maschinenlesbaren Format aush\xe4ndigen zu lassen. Sofern Sie die direkte \xdcbertragung der Daten an einen anderen Verantwortlichen verlangen, erfolgt dies nur, soweit es technisch machbar ist."),i.Nb(),i.Ob(97,"h3"),i.qc(98,"SSL- bzw. TLS-Verschl\xfcsselung"),i.Nb(),i.Ob(99,"p"),i.qc(100,"Diese Seite nutzt aus Sicherheitsgr\xfcnden und zum Schutz der \xdcbertragung vertraulicher Inhalte, wie zum Beispiel Bestellungen oder Anfragen, die Sie an uns als Seitenbetreiber senden, eine SSL- bzw. TLS-Verschl\xfcsselung. Eine verschl\xfcsselte Verbindung erkennen Sie daran, dass die Adresszeile des Browsers von \u201ehttp://\u201c auf \u201ehttps://\u201c wechselt und an dem Schloss-Symbol in Ihrer Browserzeile."),i.Nb(),i.Ob(101,"p"),i.qc(102,"Wenn die SSL- bzw. TLS-Verschl\xfcsselung aktiviert ist, k\xf6nnen die Daten, die Sie an uns \xfcbermitteln, nicht von Dritten mitgelesen werden."),i.Nb(),i.Ob(103,"h3"),i.qc(104,"Auskunft, L\xf6schung und Berichtigung"),i.Nb(),i.Ob(105,"p"),i.qc(106,"Sie haben im Rahmen der geltenden gesetzlichen Bestimmungen jederzeit das Recht auf unentgeltliche Auskunft \xfcber Ihre gespeicherten personenbezogenen Daten, deren Herkunft und Empf\xe4nger und den Zweck der Datenverarbeitung und ggf. ein Recht auf Berichtigung oder L\xf6schung dieser Daten. Hierzu sowie zu weiteren Fragen zum Thema personenbezogene Daten k\xf6nnen Sie sich jederzeit unter der im Impressum angegebenen Adresse an uns wenden."),i.Nb(),i.Ob(107,"h3"),i.qc(108,"Recht auf Einschr\xe4nkung der Verarbeitung"),i.Nb(),i.Ob(109,"p"),i.qc(110,"Sie haben das Recht, die Einschr\xe4nkung der Verarbeitung Ihrer personenbezogenen Daten zu verlangen. Hierzu k\xf6nnen Sie sich jederzeit unter der im Impressum angegebenen Adresse an uns wenden. Das Recht auf Einschr\xe4nkung der Verarbeitung besteht in folgenden F\xe4llen:"),i.Nb(),i.Ob(111,"ul"),i.Ob(112,"li"),i.qc(113,"Wenn Sie die Richtigkeit Ihrer bei uns gespeicherten personenbezogenen Daten bestreiten, ben\xf6tigen wir in der Regel Zeit, um dies zu \xfcberpr\xfcfen. F\xfcr die Dauer der Pr\xfcfung haben Sie das Recht, die Einschr\xe4nkung der Verarbeitung Ihrer personenbezogenen Daten zu verlangen."),i.Nb(),i.Ob(114,"li"),i.qc(115,"Wenn die Verarbeitung Ihrer personenbezogenen Daten unrechtm\xe4\xdfig geschah/geschieht, k\xf6nnen Sie statt der L\xf6schung die Einschr\xe4nkung der Datenverarbeitung verlangen."),i.Nb(),i.Ob(116,"li"),i.qc(117,"Wenn wir Ihre personenbezogenen Daten nicht mehr ben\xf6tigen, Sie sie jedoch zur Aus\xfcbung, Verteidigung oder Geltendmachung von Rechtsanspr\xfcchen ben\xf6tigen, haben Sie das Recht, statt der L\xf6schung die Einschr\xe4nkung der Verarbeitung Ihrer personenbezogenen Daten zu verlangen."),i.Nb(),i.Ob(118,"li"),i.qc(119,"Wenn Sie einen Widerspruch nach Art. 21 Abs. 1 DSGVO eingelegt haben, muss eine Abw\xe4gung zwischen Ihren und unseren Interessen vorgenommen werden. Solange noch nicht feststeht, wessen Interessen \xfcberwiegen, haben Sie das Recht, die Einschr\xe4nkung der Verarbeitung Ihrer personenbezogenen Daten zu verlangen. "),i.Nb(),i.Nb(),i.Ob(120,"p"),i.qc(121,"Wenn Sie die Verarbeitung Ihrer personenbezogenen Daten eingeschr\xe4nkt haben, d\xfcrfen diese Daten \u2013 von ihrer Speicherung abgesehen \u2013 nur mit Ihrer Einwilligung oder zur Geltendmachung, Aus\xfcbung oder Verteidigung von Rechtsanspr\xfcchen oder zum Schutz der Rechte einer anderen nat\xfcrlichen oder juristischen Person oder aus Gr\xfcnden eines wichtigen \xf6ffentlichen Interesses der Europ\xe4ischen Union oder eines Mitgliedstaats verarbeitet werden."),i.Nb(),i.Ob(122,"h2"),i.qc(123,"4. Soziale Medien"),i.Nb(),i.Ob(124,"h3"),i.qc(125,"Facebook Plugins (Like & Share-Button)"),i.Nb(),i.Ob(126,"p"),i.qc(127,"Auf dieser Website sind Plugins des sozialen Netzwerks Facebook integriert. Anbieter dieses Dienstes ist die Facebook Ireland Limited, 4 Grand Canal Square, Dublin 2, Irland. Die erfassten Daten werden nach Aussage von Facebook jedoch auch in die USA und in andere Drittl\xe4nder \xfcbertragen."),i.Nb(),i.Ob(128,"p"),i.qc(129,"Die Facebook Plugins erkennen Sie an dem Facebook-Logo oder dem \u201eLike-Button\u201c (\u201eGef\xe4llt mir\u201c) auf dieser Website. Eine \xdcbersicht \xfcber die Facebook Plugins finden Sie hier: "),i.Ob(130,"a",6),i.qc(131,"https://developers.facebook.com/docs/plugins/?locale=de_DE"),i.Nb(),i.qc(132,"."),i.Nb(),i.Ob(133,"p"),i.qc(134,"Wenn Sie diese Website besuchen, wird \xfcber das Plugin eine direkte Verbindung zwischen Ihrem Browser und dem Facebook-Server hergestellt. Facebook erh\xe4lt dadurch die Information, dass Sie mit Ihrer IP-Adresse diese Website besucht haben. Wenn Sie den Facebook \u201eLike-Button\u201c anklicken w\xe4hrend Sie in Ihrem Facebook-Account eingeloggt sind, k\xf6nnen Sie die Inhalte dieser Website auf Ihrem Facebook-Profil verlinken. Dadurch kann Facebook den Besuch dieser Website Ihrem Benutzerkonto zuordnen. Wir weisen darauf hin, dass wir als Anbieter der Seiten keine Kenntnis vom Inhalt der \xfcbermittelten Daten sowie deren Nutzung durch Facebook erhalten. Weitere Informationen hierzu finden Sie in der Datenschutzerkl\xe4rung von Facebook unter: "),i.Ob(135,"a",7),i.qc(136,"https://de-de.facebook.com/privacy/explanation"),i.Nb(),i.qc(137,"."),i.Nb(),i.Ob(138,"p"),i.qc(139,"Wenn Sie nicht w\xfcnschen, dass Facebook den Besuch dieser Website Ihrem Facebook-Nutzerkonto zuordnen kann, loggen Sie sich bitte aus Ihrem Facebook-Benutzerkonto aus."),i.Nb(),i.Ob(140,"p"),i.qc(141,"Die Verwendung der Facebook Plugins erfolgt auf Grundlage von Art. 6 Abs. 1 lit. f DSGVO. Der Websitebetreiber hat ein berechtigtes Interesse an einer m\xf6glichst umfangreichen Sichtbarkeit in den Sozialen Medien. Sofern eine entsprechende Einwilligung abgefragt wurde, erfolgt die Verarbeitung ausschlie\xdflich auf Grundlage von Art. 6 Abs. 1 lit. a DSGVO; die Einwilligung ist jederzeit widerrufbar."),i.Nb(),i.Ob(142,"h3"),i.qc(143,"Twitter Plugin"),i.Nb(),i.Ob(144,"p"),i.qc(145,"Auf dieser Website sind Funktionen des Dienstes Twitter eingebunden. Diese Funktionen werden angeboten durch die Twitter Inc., 1355 Market Street, Suite 900, San Francisco, CA 94103, USA. Durch das Benutzen von Twitter und der Funktion \u201eRe-Tweet\u201c werden die von Ihnen besuchten Websites mit Ihrem Twitter-Account verkn\xfcpft und anderen Nutzern bekannt gegeben. Dabei werden auch Daten an Twitter \xfcbertragen. Wir weisen darauf hin, dass wir als Anbieter der Seiten keine Kenntnis vom Inhalt der \xfcbermittelten Daten sowie deren Nutzung durch Twitter erhalten. Weitere Informationen hierzu finden Sie in der Datenschutzerkl\xe4rung von Twitter unter: "),i.Ob(146,"a",8),i.qc(147,"https://twitter.com/de/privacy"),i.Nb(),i.qc(148,"."),i.Nb(),i.Ob(149,"p"),i.qc(150,"Die Verwendung des Twitter-Plugins erfolgt auf Grundlage von Art. 6 Abs. 1 lit. f DSGVO. Der Websitebetreiber hat ein berechtigtes Interesse an einer m\xf6glichst umfangreichen Sichtbarkeit in den Sozialen Medien. Sofern eine entsprechende Einwilligung abgefragt wurde, erfolgt die Verarbeitung ausschlie\xdflich auf Grundlage von Art. 6 Abs. 1 lit. a DSGVO; die Einwilligung ist jederzeit widerrufbar."),i.Nb(),i.Ob(151,"p"),i.qc(152,"Ihre Datenschutzeinstellungen bei Twitter k\xf6nnen Sie in den Konto-Einstellungen unter "),i.Ob(153,"a",9),i.qc(154,"https://twitter.com/account/settings"),i.Nb(),i.qc(155," \xe4ndern."),i.Nb(),i.Ob(156,"h2"),i.qc(157,"5. Plugins und Tools"),i.Nb(),i.Ob(158,"h3"),i.qc(159,"Google Web Fonts"),i.Nb(),i.Ob(160,"p"),i.qc(161,"Diese Seite nutzt zur einheitlichen Darstellung von Schriftarten so genannte Web Fonts, die von Google bereitgestellt werden. Beim Aufruf einer Seite l\xe4dt Ihr Browser die ben\xf6tigten Web Fonts in ihren Browsercache, um Texte und Schriftarten korrekt anzuzeigen."),i.Nb(),i.Ob(162,"p"),i.qc(163,"Zu diesem Zweck muss der von Ihnen verwendete Browser Verbindung zu den Servern von Google aufnehmen. Hierdurch erlangt Google Kenntnis dar\xfcber, dass \xfcber Ihre IP-Adresse diese Website aufgerufen wurde. Die Nutzung von Google WebFonts erfolgt auf Grundlage von Art. 6 Abs. 1 lit. f DSGVO. Der Webseitenbetreiber hat ein berechtigtes Interesse an der einheitlichen Darstellung des Schriftbildes auf seiner Webseite. Sofern eine entsprechende Einwilligung abgefragt wurde (z. B. eine Einwilligung zur Speicherung von Cookies), erfolgt die Verarbeitung ausschlie\xdflich auf Grundlage von Art. 6 Abs. 1 lit. a DSGVO; die Einwilligung ist jederzeit widerrufbar."),i.Nb(),i.Ob(164,"p"),i.qc(165,"Wenn Ihr Browser Web Fonts nicht unterst\xfctzt, wird eine Standardschrift von Ihrem Computer genutzt."),i.Nb(),i.Ob(166,"p"),i.qc(167,"Weitere Informationen zu Google Web Fonts finden Sie unter "),i.Ob(168,"a",10),i.qc(169,"https://developers.google.com/fonts/faq"),i.Nb(),i.qc(170," und in der Datenschutzerkl\xe4rung von Google: "),i.Ob(171,"a",11),i.qc(172,"https://policies.google.com/privacy?hl=de"),i.Nb(),i.qc(173,"."),i.Nb(),i.Ob(174,"h3"),i.qc(175,"Google Analytics"),i.Nb(),i.Ob(176,"p"),i.qc(177,"Nur wenn Sie das Tracking akzeptieren: Verwenden wir Google Analytics, um Besucher zu z\xe4hlen und den Verkehr auf dieser Website zu analysieren (mit IP-Anonymisierung)."),i.Nb(),i.Nb())}function C(e,t){1&e&&(i.Ob(0,"div"),i.Ob(1,"h1"),i.qc(2,"Data protection"),i.Nb(),i.Ob(3,"h2"),i.qc(4,"1. Data protection at a glance"),i.Nb(),i.Ob(5,"h3"),i.qc(6,"General information"),i.Nb(),i.Ob(7,"p"),i.qc(8,"The following information provides a simple overview of what happens to your personal data when you visit this website. Personal data are all data with which you can be personally identified. You can find detailed information on the subject of data protection in our data protection declaration below this text."),i.Nb(),i.Ob(9,"h3"),i.qc(10,"Data collection on this website"),i.Nb(),i.Ob(11,"p"),i.Ob(12,"strong"),i.qc(13,"Who is responsible for data collection on this website?"),i.Nb(),i.Nb(),i.Ob(14,"p"),i.qc(15,"The data processing on this website is carried out by the website operator. The contact email address is: gregor.biswanger@web-enliven.de."),i.Nb(),i.Ob(16,"p"),i.Ob(17,"strong"),i.qc(18,"How do we collect your data?"),i.Nb(),i.Nb(),i.Ob(19,"p"),i.qc(20,"On the one hand, your data is collected by you communicating it to us. This can be, for. For example, it is data that you enter in a contact form."),i.Nb(),i.Ob(21,"p"),i.qc(22,"Other data is automatically collected by our IT systems or with your consent when you visit the website. This is primarily technical data (e.g. internet browser, operating system or time of the page visit). This data is recorded automatically as soon as you enter this website."),i.Nb(),i.Ob(23,"p"),i.Ob(24,"strong"),i.qc(25,"What do we use your data for?"),i.Nb(),i.Nb(),i.Ob(26,"p"),i.qc(27,"Part of the data is collected to ensure that the website is provided correctly. Other data can be used to analyze your user behavior."),i.Nb(),i.Ob(28,"p"),i.Ob(29,"strong"),i.qc(30,"What rights do you have regarding your data?"),i.Nb(),i.Nb(),i.Ob(31,"p"),i.qc(32,"You have the right to receive information about the origin, recipient and purpose of your stored personal data free of charge at any time. You also have the right to request that this data be corrected or deleted. If you have given your consent to data processing, you can revoke this consent at any time for the future. You also have the right to request that the processing of your personal data be restricted in certain circumstances. You also have the right to lodge a complaint with the responsible supervisory authority."),i.Nb(),i.Ob(33,"p"),i.qc(34,"You can contact us at any time at the address given in the imprint if you have any further questions about data protection."),i.Nb(),i.Ob(35,"h3"),i.qc(36,"Analysis tools and third party tools"),i.Nb(),i.Ob(37,"p"),i.qc(38,"When you visit this website, your surfing behavior can be statistically evaluated. This is done primarily with cookies and with so-called analysis programs."),i.Nb(),i.Ob(39,"p"),i.qc(40,"Detailed information on these analysis programs can be found in the following data protection declaration."),i.Nb(),i.Ob(41,"h2"),i.qc(42,"2. Hosting and Content Delivery Networks (CDN)"),i.Nb(),i.Ob(43,"h3"),i.qc(44,"External hosting"),i.Nb(),i.Ob(45,"p"),i.qc(46,"The site is hosted on GitHub pages. GitHub Pages is a service of GitHub Inc. (88 Colin P. Kelly Jr. St. San Francisco, CA 94107, USA). The personal data collected on this website is stored on the hoster's servers. This can v. a. are IP addresses, contact requests, meta and communication data, contract data, contact details, names, website access and other data that are generated via a website."),i.Nb(),i.Ob(47,"p"),i.qc(48,"The host is used for the purpose of fulfilling the contract with our potential and existing customers (Art. 6 Para. 1 lit. b GDPR) and in the interest of a safe, fast and efficient provision of our online offer by a professional provider (Art. 6 Para 1 lit.f GDPR)."),i.Nb(),i.Ob(49,"p"),i.qc(50,"Our hoster will only process your data to the extent necessary to fulfill its performance obligations and to follow our instructions in relation to this data."),i.Nb(),i.Ob(51,"h2"),i.qc(52,"3. General information and mandatory information"),i.Nb(),i.Ob(53,"h3"),i.qc(54,"Privacy"),i.Nb(),i.Ob(55,"p"),i.qc(56,"The operators of these pages take the protection of your personal data very seriously. We treat your personal data confidentially and in accordance with the statutory data protection regulations and this data protection declaration."),i.Nb(),i.Ob(57,"p"),i.qc(58,"When you use this website, various personal data are collected. Personal data is data with which you can be personally identified. This data protection declaration explains what data we collect and what we use it for. It also explains how and for what purpose this is done."),i.Nb(),i.Ob(59,"p"),i.qc(60,"We would like to point out that data transmission over the Internet (e.g. when communicating by email) can have security gaps. It is not possible to completely protect data from third-party access."),i.Nb(),i.Ob(61,"h3"),i.qc(62,"Information about the responsible body"),i.Nb(),i.Ob(63,"p"),i.qc(64,"The responsible body for data processing on this website is:"),i.Nb(),i.Ob(65,"p"),i.qc(66,"Gregor Biswanger"),i.Mb(67,"br"),i.qc(68," Konrad-St\xf6r Str. 17"),i.Mb(69,"br"),i.qc(70," 90455 Nuremberg - Germany"),i.Nb(),i.Ob(71,"p"),i.qc(72,"E-Mail: gregor.biswanger@web-enliven.de"),i.Nb(),i.Ob(73,"p"),i.qc(74,"The responsible body is the natural or legal person who, alone or together with others, decides on the purposes and means of processing personal data (e.g. names, e-mail addresses, etc.)."),i.Nb(),i.Ob(75,"h3"),i.qc(76,"External links"),i.Nb(),i.Ob(77,"p"),i.qc(78,"This website contains links to external websites with different data protection regulations. We accept no responsibility for the correctness, legality or content of the external website or for the links below. Contact the external website for answers to questions about the content."),i.Nb(),i.Ob(79,"h3"),i.qc(80,"Revocation of your consent to data processing"),i.Nb(),i.Ob(81,"p"),i.qc(82,"Many data processing operations are only possible with your express consent. You can withdraw your consent at any time. An informal notification by email to us is sufficient. The legality of the data processing carried out before the revocation remains unaffected by the revocation."),i.Nb(),i.Ob(83,"h3"),i.qc(84,"Right to object to data collection in special cases and direct advertising (Art. 21 GDPR)"),i.Nb(),i.Ob(85,"p"),i.qc(86,"IF DATA PROCESSING IS BASED ON ART. 6 ABS. 1 LIT. E OR F GDPR, YOU HAVE THE RIGHT TO OBJECT TO THE PROCESSING OF YOUR PERSONAL DATA AT ANY TIME FOR REASONS FOR YOUR SPECIAL SITUATION; THIS ALSO APPLIES TO PROFILING BASED ON THESE PROVISIONS. THE RELEVANT LEGAL BASIS ON WHICH PROCESSING IS BASED IS TAKEN FROM THIS PRIVACY STATEMENT. IF YOU SUBJECT, WE WILL NO LESS PROCESS YOUR PERSONAL DATA, UNLESS WE CAN PROVIDE OBLIGATORY PROTECTIVE REASONS FOR THE PROCESSING THAT PROVIDES YOUR INTERESTS, RIGHTS AND DISCLAIMER, AND THE PROTECTED PROPERTY OPPOSITION UNDER ART. 21 (1) GDPR)."),i.Nb(),i.Ob(87,"p"),i.qc(88,"IF YOUR PERSONAL DATA IS PROCESSED TO OPERATE DIRECT ADVERTISING, YOU HAVE THE RIGHT TO OBJECT AT ANY TIME TO PROCESS YOUR PERSONAL DATA FOR THE PURPOSE OF SUCH ADVERTISING; THIS IS ALSO APPLICABLE TO PROFILING, AS FAR AS IT IS CONNECTED WITH SUCH DIRECT ADVERTISING. IF YOU OBJECT, YOUR PERSONAL DATA WILL NO LONGER BE USED FOR THE PURPOSE OF DIRECT ADVERTISING (OBLIGATION UNDER ART. 21 (2) GDPR)."),i.Nb(),i.Ob(89,"h3"),i.qc(90,"Beschwerderecht bei der zust\xe4ndigen Aufsichtsbeh\xf6rde"),i.Nb(),i.Ob(91,"p"),i.qc(92,"Right to lodge a complaint with the competent supervisory authority In the event of violations of the GDPR, the data subject has the right to lodge a complaint with a supervisory authority, in particular in the member state of their habitual residence, their place of work or the place of the alleged violation. The right to lodge a complaint is without prejudice to other administrative or judicial remedies."),i.Nb(),i.Ob(93,"h3"),i.qc(94,"Right to data portability"),i.Nb(),i.Ob(95,"p"),i.qc(96,"You have the right to have data that we process automatically based on your consent or in fulfillment of a contract handed over to you or to a third party in a common, machine-readable format. If you request the direct transfer of the data to another person responsible, this will only take place if it is technically feasible."),i.Nb(),i.Ob(97,"h3"),i.qc(98,"SSL or TLS encryption"),i.Nb(),i.Ob(99,"p"),i.qc(100,'For security reasons and to protect the transmission of confidential content, such as orders or inquiries that you send to us as the website operator, this page uses SSL or TLS encryption. You can recognize an encrypted connection by the fact that the address line of the browser changes from "http: //" to "https: //" and by the lock symbol in your browser line.'),i.Nb(),i.Ob(101,"p"),i.qc(102,"If SSL or TLS encryption is activated, the data that you transmit to us cannot be read by third parties."),i.Nb(),i.Ob(103,"h3"),i.qc(104,"Information, deletion and correction"),i.Nb(),i.Ob(105,"p"),i.qc(106,"Within the framework of the applicable legal provisions, you have the right to free information about your stored personal data, its origin and recipient and the purpose of data processing and, if necessary, the right to have this data corrected or deleted. You can contact us at any time at the address given in the imprint if you have any further questions on the subject of personal data."),i.Nb(),i.Ob(107,"h3"),i.qc(108,"Right to restriction of processing"),i.Nb(),i.Ob(109,"p"),i.qc(110,"You have the right to request that the processing of your personal data be restricted. You can contact us at any time at the address given in the imprint. The right to restrict processing exists in the following cases:"),i.Nb(),i.Ob(111,"ul"),i.Ob(112,"li"),i.qc(113,"If you contest the accuracy of your personal data stored by us, we usually need time to check this. For the duration of the examination, you have the right to request that the processing of your personal data be restricted."),i.Nb(),i.Ob(114,"li"),i.qc(115,"If the processing of your personal data happened / happens unlawfully, you can request the restriction of the data processing instead of the deletion."),i.Nb(),i.Ob(116,"li"),i.qc(117,"If we no longer need your personal data, but you need it to exercise, defend or assert legal claims, you have the right to request that the processing of your personal data be restricted instead of being deleted."),i.Nb(),i.Ob(118,"li"),i.qc(119,"If you have filed an objection in accordance with Art. 21 Para. 1 GDPR, you and our interests must be weighed up. As long as it is not clear whose interests outweigh the rights, you have the right to request that the processing of your personal data be restricted."),i.Nb(),i.Nb(),i.Ob(120,"p"),i.qc(121,"If you have restricted the processing of your personal data, this data - apart from its storage - may only be obtained with your consent or to assert, exercise or defend legal claims or to protect the rights of another natural or legal person or for reasons of important public interest the European Union or a Member State."),i.Nb(),i.Ob(122,"h2"),i.qc(123,"4. Social media"),i.Nb(),i.Ob(124,"h3"),i.qc(125,"Facebook plugins (Like & Share button)"),i.Nb(),i.Ob(126,"p"),i.qc(127,"Plugins from the social network Facebook are integrated on this website. This service is provided by Facebook Ireland Limited, 4 Grand Canal Square, Dublin 2, Ireland. According to Facebook, however, the data collected is also transferred to the USA and other third countries."),i.Nb(),i.Ob(128,"p"),i.qc(129,"You can recognize the Facebook plugins by the Facebook logo or the \u201cLike\u201d button on this website. An overview of the Facebook plugins can be found here: "),i.Ob(130,"a",12),i.qc(131,"https://developers.facebook.com/docs/plugins/?locale=de_DE"),i.Nb(),i.qc(132,"."),i.Nb(),i.Ob(133,"p"),i.qc(134,'When you visit this website, the plugin establishes a direct connection between your browser and the Facebook server. Facebook receives the information that you have visited this website with your IP address. If you click the Facebook "Like" button while you are logged into your Facebook account, you can link the content of this website to your Facebook profile. This enables Facebook to associate your visit to this website with your user account. We would like to point out that, as the provider of the website, we have no knowledge of the content of the data transmitted or how it is used by Facebook. You can find further information on this in Facebook\'s data protection declaration at: '),i.Ob(135,"a",13),i.qc(136,"https://en-en.facebook.com/privacy/explanation"),i.Nb(),i.qc(137,"."),i.Nb(),i.Ob(138,"p"),i.qc(139,"If you do not want Facebook to be able to assign your visit to this website to your Facebook user account, please log out of your Facebook user account."),i.Nb(),i.Ob(140,"p"),i.qc(141,"The Facebook plugins are used on the basis of Art. 6 Para. 1 lit. f GDPR. The website operator has a legitimate interest in the greatest possible visibility in social media. If a corresponding consent has been requested, the processing takes place exclusively on the basis of Art. 6 Para. 1 lit. a GDPR; the consent can be revoked at any time."),i.Nb(),i.Ob(142,"h3"),i.qc(143,"Twitter plugin"),i.Nb(),i.Ob(144,"p"),i.qc(145,'Functions of the Twitter service are integrated on this website. These functions are offered by Twitter Inc., 1355 Market Street, Suite 900, San Francisco, CA 94103, USA. By using Twitter and the "Re-Tweet" function, the websites you visit are linked to your Twitter account and made known to other users. This data is also transmitted to Twitter. We would like to point out that, as the provider of the website, we have no knowledge of the content of the data transmitted or how it is used by Twitter. Further information can be found in Twitter\'s data protection declaration at: '),i.Ob(146,"a",14),i.qc(147,"https://twitter.com/en/privacy"),i.Nb(),i.qc(148,"."),i.Nb(),i.Ob(149,"p"),i.qc(150,"The Twitter plug-in is used on the basis of Art. 6 Para. 1 lit. f GDPR. The website operator has a legitimate interest in the greatest possible visibility in social media. If a corresponding consent has been requested, the processing takes place exclusively on the basis of Art. 6 Para. 1 lit. a GDPR; the consent can be revoked at any time."),i.Nb(),i.Ob(151,"p"),i.qc(152,"You can change your data protection settings on Twitter in the account settings at "),i.Ob(153,"a",9),i.qc(154,"https://twitter.com/account/settings"),i.Nb(),i.qc(155," change."),i.Nb(),i.Ob(156,"h2"),i.qc(157,"5. Plugins and tools"),i.Nb(),i.Ob(158,"h3"),i.qc(159,"Google Web Fonts"),i.Nb(),i.Ob(160,"p"),i.qc(161,"This page uses so-called web fonts provided by Google for the uniform display of fonts. When you call up a page, your browser loads the required web fonts into your browser cache in order to display texts and fonts correctly."),i.Nb(),i.Ob(162,"p"),i.qc(163,"For this purpose, the browser you are using must connect to the Google servers. This gives Google knowledge that this website was accessed via your IP address. Google WebFonts are used on the basis of Art. 6 Para. 1 lit. f GDPR. The website operator has a legitimate interest in the uniform representation of the typeface on his website. If a corresponding consent has been requested (e.g. consent to the storage of cookies), the processing takes place exclusively on the basis of Art. 6 Para. 1 lit. a GDPR; the consent can be revoked at any time."),i.Nb(),i.Ob(164,"p"),i.qc(165,"If your browser does not support web fonts, a standard font will be used by your computer."),i.Nb(),i.Ob(166,"p"),i.qc(167,"Further information about Google Web Fonts can be found at "),i.Ob(168,"a",10),i.qc(169,"https://developers.google.com/fonts/faq"),i.Nb(),i.qc(170," and in Google's data protection declaration: "),i.Ob(171,"a",15),i.qc(172,"https://policies.google.com/privacy?hl=en"),i.Nb(),i.qc(173,"."),i.Nb(),i.Ob(174,"h3"),i.qc(175,"Google Analytics"),i.Nb(),i.Ob(176,"p"),i.qc(177,"Only if you accept the tracking: We use Google Analytics to count visitors and analyze the traffic on this website (with IP anonymization)."),i.Nb(),i.Nb())}const T=[{path:"",component:c.a,children:[{path:"",redirectTo:"subscribe",pathMatch:"full"},{path:"subscribe",component:b},{path:"subscribe-next",loadChildren:()=>r.e(16).then(r.bind(null,"olly")).then(e=>e.SubscribeNextModule)},{path:"distinct",loadChildren:()=>r.e(5).then(r.bind(null,"Vwex")).then(e=>e.DistinctModule)},{path:"take",loadChildren:()=>r.e(18).then(r.bind(null,"S4iM")).then(e=>e.TakeModule)},{path:"filter",loadChildren:()=>r.e(8).then(r.bind(null,"xp0b")).then(e=>e.FilterModule)},{path:"map",loadChildren:()=>r.e(9).then(r.bind(null,"7Qxo")).then(e=>e.MapModule)},{path:"filter-map-take",loadChildren:()=>r.e(7).then(r.bind(null,"lrJ0")).then(e=>e.FilterMapTakeModule)},{path:"distinctuntilchanged",loadChildren:()=>r.e(6).then(r.bind(null,"eyxc")).then(e=>e.DistinctuntilchangedModule)},{path:"skip",loadChildren:()=>r.e(14).then(r.bind(null,"KdnK")).then(e=>e.SkipModule)},{path:"skip-take-map",loadChildren:()=>r.e(13).then(r.bind(null,"zcjo")).then(e=>e.SkipTakeMapModule)},{path:"merge",loadChildren:()=>r.e(10).then(r.bind(null,"LCGD")).then(e=>e.MergeModule)},{path:"take-last",loadChildren:()=>r.e(17).then(r.bind(null,"0/Qz")).then(e=>e.TakeLastModule)},{path:"skip-last",loadChildren:()=>r.e(12).then(r.bind(null,"lJ+N")).then(e=>e.SkipLastModule)},{path:"skiplast-skip-merge",loadChildren:()=>r.e(15).then(r.bind(null,"7rQJ")).then(e=>e.SkiplastSkipMergeModule)},{path:"zip-concatmap",loadChildren:()=>r.e(19).then(r.bind(null,"Gw2Q")).then(e=>e.ZipConcatmapModule)},{path:"repeat",loadChildren:()=>r.e(11).then(r.bind(null,"ydX6")).then(e=>e.RepeatModule)}]},{path:"privacy",component:(()=>{class e{constructor(e,t){this.localStorageService=e,this.translate=t,this.currentLanguage=""}ngOnInit(){this.translate.addLangs(["en","de"]),this.translate.setDefaultLang("en");const e=this.localStorageService.loadSelectedLanguage();if(e)this.translate.use(e);else{const e=this.translate.getBrowserLang();this.translate.use(e.match(/en|de/)?e:"en")}this.currentLanguage=this.translate.currentLang}}return e.\u0275fac=function(t){return new(t||e)(i.Lb(x.a),i.Lb(_.d))},e.\u0275cmp=i.Fb({type:e,selectors:[["app-privacy"]],decls:8,vars:2,consts:[[1,"privacy"],["fxLayout",""],["src","assets/Rx_Logo_S.png","alt","RxJS Logo",1,"logo"],[1,"title"],[4,"ngIf"],["showBanner","true"],["href","https://developers.facebook.com/docs/plugins/?locale=de_DE","target","_blank","rel","noopener noreferrer"],["href","https://de-de.facebook.com/privacy/explanation","target","_blank","rel","noopener noreferrer"],["href","https://twitter.com/de/privacy","target","_blank","rel","noopener noreferrer"],["href","https://twitter.com/account/settings","target","_blank","rel","noopener noreferrer"],["href","https://developers.google.com/fonts/faq","target","_blank","rel","noopener noreferrer"],["href","https://policies.google.com/privacy?hl=de","target","_blank","rel","noopener noreferrer"],["href","https://developers.facebook.com/docs/plugins/?locale=en_EN","target","_blank","rel","noopener noreferrer"],["href","https://en-us.facebook.com/privacy/explanation","target","_blank","rel","noopener noreferrer"],["href","https://twitter.com/en/privacy","target","_blank","rel","noopener noreferrer"],["href","https://policies.google.com/privacy?hl=en","target","_blank","rel","noopener noreferrer"]],template:function(e,t){1&e&&(i.Ob(0,"div",0),i.Ob(1,"div",1),i.Mb(2,"img",2),i.Ob(3,"h1",3),i.qc(4,"RxJS-fruits"),i.Nb(),i.Nb(),i.pc(5,E,178,0,"div",4),i.pc(6,C,178,0,"div",4),i.Nb(),i.Mb(7,"app-cookie-banner",5)),2&e&&(i.Bb(5),i.fc("ngIf","de"===t.currentLanguage),i.Bb(1),i.fc("ngIf","de"!==t.currentLanguage))},directives:[D.c,d.j,S.a],styles:[".title[_ngcontent-%COMP%]{margin:.5rem 10px 0;font-size:30px;display:inline;vertical-align:middle}.logo[_ngcontent-%COMP%]{width:5%;vertical-align:bottom}.privacy[_ngcontent-%COMP%]{margin:50px 150px}"]}),e})()},{path:"**",component:(()=>{class e{constructor(e){this.router=e}goToHomepage(){this.router.navigate([""])}ngOnDestroy(){document.defaultView.location.reload()}}return e.\u0275fac=function(t){return new(t||e)(i.Lb(s.b))},e.\u0275cmp=i.Fb({type:e,selectors:[["app-not-found"]],decls:10,vars:0,consts:[[1,"page",3,"click"],[1,"not-found"]],template:function(e,t){1&e&&(i.Ob(0,"div",0),i.Wb("click",function(){return t.goToHomepage()}),i.Ob(1,"h1"),i.qc(2,"LOOKS LIKE THIS PAGE GOT LOST IN THE MATRIX."),i.Nb(),i.Ob(3,"h3"),i.qc(4,"YOU TAKE THE BLUE PILL, THE STORY ENDS, YOU END UP ON OUR HOMEPAGE, AND BELIEVE WHATEVER YOU WANT TO BELIEVE."),i.Mb(5,"br"),i.qc(6," YOU TAKE THE RED PILL, YOU STAY IN WONDERLAND, AND I SHOW YOU HOW DEEP YOUR PREPS CAN GO."),i.Nb(),i.Ob(7,"div",1),i.Ob(8,"span"),i.qc(9,"404"),i.Nb(),i.Nb(),i.Nb())},styles:["html{background:url(/assets/images/404/matrix-red-blue.jpg) no-repeat 50% fixed;background-size:cover}body{background-color:transparent;color:#00ff41;cursor:pointer}h1,h3{text-align:center}h3{margin-left:5%;margin-right:5%}span{font-size:52pt;vertical-align:middle}.not-found{display:flex;align-items:center;justify-content:center;width:100%;height:50%}.page{width:100%;height:100%}"],encapsulation:2}),e})()}];let k=(()=>{class e{}return e.\u0275mod=i.Jb({type:e}),e.\u0275inj=i.Ib({factory:function(t){return new(t||e)},imports:[[s.d.forRoot(T,{relativeLinkResolution:"legacy"})],s.d]}),e})(),w=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Fb({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(e,t){1&e&&i.Mb(0,"router-outlet")},directives:[s.e],styles:[""]}),e})();var A=r("PCNd");class N{constructor(e,t="/assets/i18n/",r=".json"){this.http=e,this.prefix=t,this.suffix=r}getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}}function P(e){return new N(e)}let O=(()=>{class e{}return e.\u0275mod=i.Jb({type:e}),e.\u0275inj=i.Ib({factory:function(t){return new(t||e)},imports:[[o.b,_.b.forRoot({loader:{provide:_.a,useFactory:P,deps:[o.a]}})],_.b]}),e})();var F=r("8ok5"),I=r("/q54"),M=r("ura0");r("8LU1"),new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let L=(()=>{class e{}return e.\u0275mod=i.Jb({type:e}),e.\u0275inj=i.Ib({factory:function(t){return new(t||e)},imports:[[I.c]]}),e})();new i.P("11.0.0-beta.33");let R=(()=>{class e{constructor(e,t){Object(d.q)(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(t,r=[]){return{ngModule:e,providers:t.serverLoaded?[{provide:I.e,useValue:Object.assign(Object.assign({},I.d),t)},{provide:I.a,useValue:r,multi:!0},{provide:I.g,useValue:!0}]:[{provide:I.e,useValue:Object.assign(Object.assign({},I.d),t)},{provide:I.a,useValue:r,multi:!0}]}}}return e.\u0275mod=i.Jb({type:e}),e.\u0275inj=i.Ib({factory:function(t){return new(t||e)(i.Sb(I.g),i.Sb(i.C))},imports:[[D.d,M.b,L],D.d,M.b,L]}),e})();var B=r("srUL"),j=r("omvX"),U=r("iELJ");let z=(()=>{class e{}return e.\u0275mod=i.Jb({type:e,bootstrap:[w]}),e.\u0275inj=i.Ib({factory:function(t){return new(t||e)},imports:[[n.a,a.a,F.c,R,o.b,k,A.a,O,B.b.forRoot({gst:{trackingIds:["UA-163429136-1"],anonymizeIp:!0}}),j.b,U.e]]}),e})();var J=r("AytR"),V=r("z/o8"),W=r("nOaX");V.a.registerPlugin(W.a),J.a.production&&Object(i.T)(),n.c().bootstrapModule(z).catch(e=>console.error(e))},zn8P:function(e,t){function r(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id="zn8P"},zx2A:function(e,t,r){"use strict";r.d(t,"a",function(){return o}),r.d(t,"b",function(){return s}),r.d(t,"c",function(){return c});var n=r("7o/Q"),i=r("HDdC"),a=r("SeVD");class o extends n.a{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class s extends n.a{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function c(e,t){if(!t.closed)return e instanceof i.a?e.subscribe(t):Object(a.a)(e)(t)}}},[[0,0]]]); \ No newline at end of file diff --git a/docs/main-es5.3c0232a55522f86c271f.js b/docs/main-es5.3c0232a55522f86c271f.js new file mode 100644 index 0000000..4f5503b --- /dev/null +++ b/docs/main-es5.3c0232a55522f86c271f.js @@ -0,0 +1 @@ +(function(){var _templateObject,_templateObject2,_templateObject3,_templateObject4;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(i,n.prototype),i}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _createForOfIteratorHelper(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.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)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return 0===e?Object(i.b)():t.lift(new o(e<0?-1:e-1,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.count=t,this.source=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.count,this.source))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).count=r,a.source=i,a}return _createClass(n,[{key:"complete",value:function(){if(!this.isStopped){var e=this.source,t=this.count;if(0===t)return _get2(_getPrototypeOf(n.prototype),"complete",this).call(this);t>-1&&(this.count=t-1),e.subscribe(this._unsubscribeAndRecycle())}}}]),n}(r.a)},"/q54":function(e,t,n){"use strict";n.d(t,"c",function(){return f}),n.d(t,"d",function(){return m}),n.d(t,"e",function(){return h}),n.d(t,"g",function(){return y}),n.d(t,"a",function(){return v}),n.d(t,"b",function(){return C}),n.d(t,"i",function(){return W}),n.d(t,"h",function(){return q}),n.d(t,"j",function(){return K}),n.d(t,"f",function(){return G});var r=n("8Y7J"),i=n("SVse"),a=n("XNiG"),o=n("2Vo4"),s=n("HDdC"),c=n("VRyK"),u=(n("7Hc7"),n("LRne"),n("xgIS"),n("pLZG")),l=(n("lJxs"),n("Kj3r"),n("eIep"),n("1G5W"),n("IzEk"),n("vkgz")),_={provide:r.b,useFactory:function(e,t){return function(){if(Object(i.p)(t)){var n=Array.from(e.querySelectorAll("[class*=".concat(d,"]"))),r=/\bflex-layout-.+?\b/g;n.forEach(function(e){e.classList.contains("".concat(d,"ssr"))&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(r,"")})}}},deps:[i.c,r.C],multi:!0},d="flex-layout-",f=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275mod=r.Jb({type:e}),e.\u0275inj=r.Ib({factory:function(t){return new(t||e)},providers:[_]}),e}(),p=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;_classCallCheck(this,e),this.matches=t,this.mediaQuery=n,this.mqAlias=r,this.suffix=i,this.priority=a,this.property=""}return _createClass(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),g=function(){var e=function(){function e(){_classCallCheck(this,e),this.stylesheet=new Map}return _createClass(e,[{key:"addStyleToElement",value:function(e,t,n){var r=this.stylesheet.get(e);r?r.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(e,t){var n=this.stylesheet.get(e),r="";if(n){var i=n.get(t);"number"!=typeof i&&"string"!=typeof i||(r=i+"")}return r}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Hb)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),m={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},h=new r.r("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return m}}),y=new r.r("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),v=new r.r("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function b(e,t){return e=e?e.clone():new p,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var x=["row","column","row-reverse","column-reverse"];function D(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var C=function(){var e=function(){function e(t,n,r,i){_classCallCheck(this,e),this.elementRef=t,this.styleBuilder=n,this.styler=r,this.marshal=i,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new a.a,this.styleCache=new Map}return _createClass(e,[{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(e){var t=this;Object.keys(e).forEach(function(n){if(-1!==t.inputs.indexOf(n)){var r=n.split(".").slice(1).join(".");t.setValue(e[n].currentValue,r)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}},{key:"addStyles",value:function(e,t){var n=this.styleBuilder,r=n.shouldCache,i=this.styleCache.get(e);i&&r||(i=n.buildStyles(e,t),r&&this.styleCache.set(e,i)),this.mru=Object.assign({},i),this.applyStyleToElement(i),n.sideEffect(e,i,t)}},{key:"clearStyles",value:function(){var e=this;Object.keys(this.mru).forEach(function(t){e.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var n=this.styler.getFlowDirection(e),r=_slicedToArray(n,2),i=r[0],a=r[1];if(!a&&t){var o=function(e){var t=function(e){var t=_slicedToArray((e=e?e.toLowerCase():"").split(" "),3),n=t[0],r=t[1],i=t[2];return x.find(function(e){return e===n})||(n=x[0]),"inline"===r&&(r="inline"!==i?i:"",i="inline"),[n,D(r),!!i]}(e),n=_slicedToArray(t,3);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(n[0],n[1],n[2])}(i);this.styler.applyStyleToElements(o,[e])}return i.trim()}return"row"}},{key:"hasWrap",value:function(e){return this.styler.hasWrap(e)}},{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(n,e,t)}},{key:"setValue",value:function(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}},{key:"updateWithValue",value:function(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}]),e}();return e.\u0275fac=function(e){r.Vb()},e.\u0275dir=r.Gb({type:e,features:[r.zb]}),e}(),S=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],k="(orientation: portrait) and (max-width: 599.98px)",E="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",T="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",w="(orientation: portrait) and (min-width: 840px)",A="(orientation: landscape) and (min-width: 1280px)",N={HANDSET:"".concat(k,", (orientation: landscape) and (max-width: 959.98px)"),TABLET:"".concat(E," , ").concat(T),WEB:"".concat(w,", ").concat(A," "),HANDSET_PORTRAIT:"".concat(k),TABLET_PORTRAIT:"".concat(E," "),WEB_PORTRAIT:"".concat(w),HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:"".concat(T),WEB_LANDSCAPE:"".concat(A)},P=[{alias:"handset",priority:2e3,mediaQuery:N.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:N.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:N.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:N.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:N.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:N.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:N.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:N.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:N.WEB_PORTRAIT,overlapping:!0}],O=/(\.|-|_)/g;function F(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}var I=new r.r("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=Object(r.V)(v),t=Object(r.V)(h),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r={};return e.forEach(function(e){r[e.alias]=e}),n.forEach(function(e){r[e.alias]?function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]&&arguments[1];if(e&&e.length){var r=this._observable$.pipe(Object(u.a)(function(t){return!n||e.indexOf(t.mediaQuery)>-1})),i=new s.a(function(n){var r=t.registerQuery(e);if(r.length){var i=r.pop();r.forEach(function(e){n.next(e)}),t.source.next(i)}n.complete()});return Object(c.a)(i,r)}return this._observable$}},{key:"registerQuery",value:function(e){var t=this,n=Array.isArray(e)?e:[e],r=[];return function(e,t){var n=e.filter(function(e){return!j[e]});if(n.length>0){var r=n.join(", ");try{var i=t.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(t.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(r," {.fx-query-test{ }}\n"))),t.head.appendChild(i),n.forEach(function(e){return j[e]=i})}catch(a){console.error(a)}}}(n,this._document),n.forEach(function(e){var n=function(n){t._zone.run(function(){return t.source.next(new p(n.matches,e))})},i=t.registry.get(e);i||((i=t.buildMQL(e)).addListener(n),t.pendingRemoveListenerFns.push(function(){return i.removeListener(n)}),t.registry.set(e,i)),i.matches&&r.push(new p(!0,e))}),r}},{key:"ngOnDestroy",value:function(){for(var e;e=this.pendingRemoveListenerFns.pop();)e()}},{key:"buildMQL",value:function(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(e,Object(i.p)(this._platformId))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Sb(r.A),r.Sb(r.C),r.Sb(i.c))},e.\u0275prov=Object(r.Hb)({factory:function(){return new e(Object(r.Sb)(r.A),Object(r.Sb)(r.C),Object(r.Sb)(i.c))},token:e,providedIn:"root"}),e}(),j={},U={alias:"print",mediaQuery:"print",priority:1e3},z=function(){var e=function(){function e(t,n,r){_classCallCheck(this,e),this.breakpoints=t,this.layoutConfig=n,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new J,this.deactivations=[]}return _createClass(e,[{key:"withPrintQuery",value:function(e){return[].concat(_toConsumableArray(e),["print"])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith("print")}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var e=this;return this.printAlias.map(function(t){return e.breakpoints.findByAlias(t)}).filter(function(e){return null!==e})}},{key:"getEventBreakpoints",value:function(e){var t=e.mediaQuery,n=this.breakpoints.findByQuery(t);return(n?[].concat(_toConsumableArray(this.printBreakPoints),[n]):this.printBreakPoints).sort(M)}},{key:"updateEvent",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),b(e,t)}},{key:"registerBeforeAfterPrintHooks",value:function(e){var t=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){t.isPrinting||(t.isPrintingBeforeAfterEvent=!0,t.startPrinting(e,t.getEventBreakpoints(new p(!0,"print"))),e.updateStyles())},r=function(){t.isPrintingBeforeAfterEvent=!1,t.isPrinting&&(t.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(r)}}},{key:"interceptEvents",value:function(e){var t=this;return this.registerBeforeAfterPrintHooks(e),function(n){t.isPrintEvent(n)?n.matches&&!t.isPrinting?(t.startPrinting(e,t.getEventBreakpoints(n)),e.updateStyles()):n.matches||!t.isPrinting||t.isPrintingBeforeAfterEvent||(t.stopPrinting(e),e.updateStyles()):t.collectActivations(n)}}},{key:"blockPropagation",value:function(){var e=this;return function(t){return!(e.isPrinting||e.isPrintEvent(t))}}},{key:"startPrinting",value:function(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}},{key:"stopPrinting",value:function(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort(M))}}},{key:"ngOnDestroy",value:function(){var e=this;this.beforePrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("beforeprint",t)}),this.afterPrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("afterprint",t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Sb(R),r.Sb(h),r.Sb(i.c))},e.\u0275prov=Object(r.Hb)({factory:function(){return new e(Object(r.Sb)(R),Object(r.Sb)(h),Object(r.Sb)(i.c))},token:e,providedIn:"root"}),e}(),J=function(){function e(){_classCallCheck(this,e),this.printBreakpoints=[]}return _createClass(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push(U),e.sort(M),e.forEach(function(e){return t.addBreakpoint(e)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(e){e&&void 0===this.printBreakpoints.find(function(t){return t.mediaQuery===e.mediaQuery})&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith("print")}(e)?[e].concat(_toConsumableArray(this.printBreakpoints)):[].concat(_toConsumableArray(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function V(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+t]=n;break;case"flex-direction":n=n||"row",e["-webkit-flex-direction"]=n,e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(+n)?"0":n}}return e}var W=function(){var e=function(){function e(t,n,r,i){_classCallCheck(this,e),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=r,this.layoutConfig=i}return _createClass(e,[{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r={};"string"==typeof t&&(r[t]=n,t=r),r=this.layoutConfig.disableVendorPrefixes?t:V(t),this._applyMultiValueStyleToElement(r,e)}},{key:"applyStyleToElements",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=this.layoutConfig.disableVendorPrefixes?e:V(e);n.forEach(function(e){t._applyMultiValueStyleToElement(r,e)})}},{key:"getFlowDirection",value:function(e){var t=this.lookupStyle(e,"flex-direction");return[t||"row",this.lookupInlineStyle(e,"flex-direction")||Object(i.q)(this._platformId)&&this._serverModuleLoaded?t:""]}},{key:"hasWrap",value:function(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}},{key:"lookupAttributeValue",value:function(e,t){return e.getAttribute(t)||""}},{key:"lookupInlineStyle",value:function(e,t){return Object(i.p)(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}},{key:"lookupStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="";return e&&((r=this.lookupInlineStyle(e,t))||(Object(i.p)(this._platformId)?n||(r=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(e,t)))),r?r.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(e,t){var n=this;Object.keys(e).sort().forEach(function(r){var a=e[r],o=Array.isArray(a)?a:[a];o.sort();var s,c=_createForOfIteratorHelper(o);try{for(c.s();!(s=c.n()).done;){var u=s.value;u=u?u+"":"",Object(i.p)(n._platformId)||!n._serverModuleLoaded?Object(i.p)(n._platformId)?t.style.setProperty(r,u):n._setServerStyle(t,r,u):n._serverStylesheet.addStyleToElement(t,r,u)}}catch(l){c.e(l)}finally{c.f()}})}},{key:"_setServerStyle",value:function(e,t,n){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var r=this._readStyleAttribute(e);r[t]=n||"",this._writeStyleAttribute(e,r)}},{key:"_getServerStyle",value:function(e,t){return this._readStyleAttribute(e)[t]||""}},{key:"_readStyleAttribute",value:function(e){var t={},n=e.getAttribute("style");if(n)for(var r=n.split(/;+/g),i=0;i0){var o=a.indexOf(":");if(-1===o)throw new Error("Invalid CSS style: ".concat(a));t[a.substr(0,o).trim()]=a.substr(o+1).trim()}}return t}},{key:"_writeStyleAttribute",value:function(e,t){var n="";for(var r in t)t[r]&&(n+=r+":"+t[r]+";");e.setAttribute("style",n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Sb(g),r.Sb(y),r.Sb(r.C),r.Sb(h))},e.\u0275prov=Object(r.Hb)({factory:function(){return new e(Object(r.Sb)(g),Object(r.Sb)(y),Object(r.Sb)(r.C),Object(r.Sb)(h))},token:e,providedIn:"root"}),e}(),q=function(){function e(){_classCallCheck(this,e),this.shouldCache=!0}return _createClass(e,[{key:"sideEffect",value:function(e,t,n){}}]),e}();function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",r=[t,n,e],i=e.indexOf("calc");if(i>0){r[2]=H(e.substring(i).trim());var a=e.substr(0,i).trim().split(" ");2==a.length&&(r[0]=a[0],r[1]=a[1])}else if(0==i)r[2]=H(e.trim());else{var o=e.split(" ");r=3===o.length?o:[t,n,e]}return r}function H(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var G=function(){var e=function(){function e(t,n,r){_classCallCheck(this,e),this.matchMedia=t,this.breakpoints=n,this.hook=r,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new a.a,this.observeActivations()}return _createClass(e,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(e){var t=this.findByQuery(e.mediaQuery);t&&((e=b(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(M),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(M),this.updateStyles()))}},{key:"init",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];Q(this.updateMap,e,t,n),Q(this.clearMap,e,t,r),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,i)}},{key:"getValue",value:function(e,t,n){var r=this.elementMap.get(e);if(r){var i=void 0!==n?r.get(n):this.getActivatedValues(r,t);if(i)return i.get(t)}}},{key:"hasValue",value:function(e,t){var n=this.elementMap.get(e);if(n){var r=this.getActivatedValues(n,t);if(r)return void 0!==r.get(t)||!1}return!1}},{key:"setValue",value:function(e,t,n,r){var i=this.elementMap.get(e);if(i){var a=(i.get(r)||new Map).set(t,n);i.set(r,a),this.elementMap.set(e,i)}else i=(new Map).set(r,(new Map).set(t,n)),this.elementMap.set(e,i);var o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe(Object(u.a)(function(n){return n.element===e&&n.key===t}))}},{key:"updateStyles",value:function(){var e=this;this.elementMap.forEach(function(t,n){var r=new Set(e.elementKeyMap.get(n)),i=e.getActivatedValues(t);i&&i.forEach(function(t,i){e.updateElement(n,i,t),r.delete(i)}),r.forEach(function(r){if(i=e.getActivatedValues(t,r)){var a=i.get(r);e.updateElement(n,r,a)}else e.clearElement(n,r)})})}},{key:"clearElement",value:function(e,t){var n=this.clearMap.get(e);if(n){var r=n.get(t);r&&(r(),this.subject.next({element:e,key:t,value:""}))}}},{key:"updateElement",value:function(e,t,n){var r=this.updateMap.get(e);if(r){var i=r.get(t);i&&(i(n),this.subject.next({element:e,key:t,value:n}))}}},{key:"releaseElement",value:function(e){var t=this.watcherMap.get(e);t&&(t.forEach(function(e){return e.unsubscribe()}),this.watcherMap.delete(e));var n=this.elementMap.get(e);n&&(n.forEach(function(e,t){return n.delete(t)}),this.elementMap.delete(e))}},{key:"triggerUpdate",value:function(e,t){var n=this,r=this.elementMap.get(e);if(r){var i=this.getActivatedValues(r,t);i&&(t?this.updateElement(e,t,i.get(t)):i.forEach(function(t,r){return n.updateElement(e,r,t)}))}}},{key:"buildElementKeyMap",value:function(e,t){var n=this.elementKeyMap.get(e);n||(n=new Set,this.elementKeyMap.set(e,n)),n.add(t)}},{key:"watchExtraTriggers",value:function(e,t,n){var r=this;if(n&&n.length){var i=this.watcherMap.get(e);if(i||(i=new Map,this.watcherMap.set(e,i)),!i.get(t)){var a=Object(c.a).apply(void 0,_toConsumableArray(n)).subscribe(function(){var n=r.getValue(e,t);r.updateElement(e,t,n)});i.set(t,a)}}}},{key:"findByQuery",value:function(e){return this.breakpoints.findByQuery(e)}},{key:"getActivatedValues",value:function(e,t){for(var n=0;nthis.confetti.frameInterval)&&(this.context.clearRect(0,0,window.innerWidth,window.innerHeight),this.updateParticles(),this.drawParticles(this.context),this.lastFrameTime=e-t%this.confetti.frameInterval),this.animationTimer=requestAnimationFrame(this.runAnimation.bind(this))}}},{key:"start",value:function(e,t,n){var r=window.innerWidth,i=window.innerHeight;window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,this.confetti.frameInterval)};var a=document.getElementById("confetti-canvas");null===a?((a=document.createElement("canvas")).setAttribute("id","confetti-canvas"),a.setAttribute("style","display:block;z-index:900;pointer-events:none;position:fixed;top:0"),document.body.prepend(a),a.width=r,a.height=i,window.addEventListener("resize",function(){a.width=window.innerWidth,a.height=window.innerHeight},!0),this.context=a.getContext("2d")):null===this.context&&(this.context=a.getContext("2d"));var o=this.confetti.maxCount;if(t)if(n)if(t===n)o=this.particles.length+n;else{if(t>n){var s=t;t=n,n=s}o=this.particles.length+(Math.random()*(n-t)+t|0)}else o=this.particles.length+t;else n&&(o=this.particles.length+n);for(;this.particles.lengtht+20||e.x<-20||e.y>n)&&(this.streamingConfetti&&this.particles.length<=this.confetti.maxCount?this.resetParticle(e,t,n):(this.particles.splice(r,1),r--))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},1:function(e,t){},"1G5W":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("zx2A");function i(e){return function(t){return t.lift(new a(e))}}var a=function(){function e(t){_classCallCheck(this,e),this.notifier=t}return _createClass(e,[{key:"call",value:function(e,t){var n=new o(e),i=Object(r.c)(this.notifier,new r.a(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).seenValue=!1,r}return _createClass(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(r.b)},"1uah":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("yCtX"),i=n("DH7j"),a=n("7o/Q"),o=n("Lhse"),s=n("zx2A");function c(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]||Object.create(null);return _classCallCheck(this,n),(i=t.call(this,e)).resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}return _createClass(n,[{key:"_next",value:function(e){var t=this.iterators;Object(i.a)(e)?t.push(new d(e)):t.push("function"==typeof e[o.a]?new _(e[o.a]()):new f(this.destination,this,e))}},{key:"_complete",value:function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;nthis.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),e}(),f=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).parent=r,a.observable=i,a.stillUnsubscribed=!0,a.buffer=[],a.isComplete=!1,a}return _createClass(n,[{key:o.a,value:function(){return this}},{key:"next",value:function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(e){this.buffer.push(e),this.parent.checkIterators()}},{key:"subscribe",value:function(){return Object(s.c)(this.observable,new s.a(this))}}]),n}(s.b)},2:function(e,t){},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("XNiG"),i=n("9ppp"),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._value=e,r}return _createClass(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=_get2(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value}},{key:"next",value:function(e){_get2(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}}]),n}(r.a)},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},3:function(e,t){},"3E0/":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("D0XW"),i=n("7o/Q"),a=n("WMd4");function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.a,i=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new s(i,n))}}var s=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.delay,this.scheduler))}}]),e}(),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).delay=r,a.scheduler=i,a.queue=[],a.active=!1,a.errored=!1,a}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new u(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(a.a.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,r=e.scheduler,i=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var a=Math.max(0,n[0].time-r.now());this.schedule(e,a)}else this.unsubscribe(),t.active=!1}}]),n}(i.a),u=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n}},"3N8a":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i.pending=!1,i}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,r=!1;try{this.work(e)}catch(i){r=!0,n=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){return this}}]),n}(n("quSY").a))},4:function(e,t){},"4I5i":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},5:function(e,t){},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("lJxs"),i=n("Cfvw"),a=n("zx2A");function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(a){return a.pipe(o(function(n,a){return Object(i.a)(e(n,a)).pipe(Object(r.a)(function(e,r){return t(n,e,a,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new s(e,n))})}var s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.project,this.concurrent))}}]),e}(),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.concurrent=a,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(a.b)},6:function(e,t){},7:function(e,t){},"7+OI":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("HDdC");function i(e){return!!e&&(e instanceof r.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},"7Hc7":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=1,i=Promise.resolve(),a={};function o(e){return e in a&&(delete a[e],!0)}var s=function(e){var t=r++;return a[t]=!0,i.then(function(){return o(t)&&e()}),t},c=function(e){o(e)},u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i}return _createClass(n,[{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?_get2(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=s(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return _get2(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,r);0===e.actions.length&&(c(t),e.scheduled=void 0)}}]),n}(n("3N8a").a),l=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function o(e){return Array.isArray(e)?e:[e]}function s(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function c(e){return e instanceof r.l?e.nativeElement:e}},"8Y7J":function(e,t,n){"use strict";n.d(t,"a",function(){return rn}),n.d(t,"b",function(){return bc}),n.d(t,"c",function(){return gc}),n.d(t,"d",function(){return fc}),n.d(t,"e",function(){return pc}),n.d(t,"f",function(){return fu}),n.d(t,"g",function(){return ru}),n.d(t,"h",function(){return vs}),n.d(t,"i",function(){return Pc}),n.d(t,"j",function(){return Vo}),n.d(t,"k",function(){return Cc}),n.d(t,"l",function(){return Ho}),n.d(t,"m",function(){return Dr}),n.d(t,"n",function(){return Hs}),n.d(t,"o",function(){return ua}),n.d(t,"p",function(){return kn}),n.d(t,"q",function(){return O}),n.d(t,"r",function(){return nn}),n.d(t,"s",function(){return Sa}),n.d(t,"t",function(){return ds}),n.d(t,"u",function(){return ps}),n.d(t,"v",function(){return Dc}),n.d(t,"w",function(){return As}),n.d(t,"x",function(){return au}),n.d(t,"y",function(){return ws}),n.d(t,"z",function(){return Yc}),n.d(t,"A",function(){return Ic}),n.d(t,"B",function(){return En}),n.d(t,"C",function(){return vc}),n.d(t,"D",function(){return yc}),n.d(t,"E",function(){return Qs}),n.d(t,"F",function(){return Xo}),n.d(t,"G",function(){return Qo}),n.d(t,"H",function(){return Er}),n.d(t,"I",function(){return Zo}),n.d(t,"J",function(){return pr}),n.d(t,"K",function(){return Tn}),n.d(t,"L",function(){return cu}),n.d(t,"M",function(){return ks}),n.d(t,"N",function(){return zc}),n.d(t,"O",function(){return an}),n.d(t,"P",function(){return $o}),n.d(t,"Q",function(){return Ps}),n.d(t,"R",function(){return R}),n.d(t,"S",function(){return Zc}),n.d(t,"T",function(){return Qc}),n.d(t,"U",function(){return g}),n.d(t,"V",function(){return bn}),n.d(t,"W",function(){return Gc}),n.d(t,"X",function(){return _u}),n.d(t,"Y",function(){return Vc}),n.d(t,"Z",function(){return xc}),n.d(t,"ab",function(){return _a}),n.d(t,"bb",function(){return Po}),n.d(t,"cb",function(){return dr}),n.d(t,"db",function(){return Qn}),n.d(t,"eb",function(){return Bn}),n.d(t,"fb",function(){return Un}),n.d(t,"gb",function(){return Wn}),n.d(t,"hb",function(){return Jn}),n.d(t,"ib",function(){return zn}),n.d(t,"jb",function(){return Vn}),n.d(t,"kb",function(){return To}),n.d(t,"lb",function(){return lu}),n.d(t,"mb",function(){return wo}),n.d(t,"nb",function(){return Ao}),n.d(t,"ob",function(){return jn}),n.d(t,"pb",function(){return J}),n.d(t,"qb",function(){return Ia}),n.d(t,"rb",function(){return Xa}),n.d(t,"sb",function(){return Ga}),n.d(t,"tb",function(){return Qa}),n.d(t,"ub",function(){return Eo}),n.d(t,"vb",function(){return Se}),n.d(t,"wb",function(){return d}),n.d(t,"xb",function(){return Rn}),n.d(t,"yb",function(){return Ea}),n.d(t,"zb",function(){return ve}),n.d(t,"Ab",function(){return Uo}),n.d(t,"Bb",function(){return di}),n.d(t,"Cb",function(){return Ra}),n.d(t,"Db",function(){return lo}),n.d(t,"Eb",function(){return sc}),n.d(t,"Fb",function(){return $}),n.d(t,"Gb",function(){return oe}),n.d(t,"Hb",function(){return D}),n.d(t,"Ib",function(){return C}),n.d(t,"Jb",function(){return re}),n.d(t,"Kb",function(){return se}),n.d(t,"Lb",function(){return Ua}),n.d(t,"Mb",function(){return Ka}),n.d(t,"Nb",function(){return qa}),n.d(t,"Ob",function(){return Wa}),n.d(t,"Pb",function(){return Ha}),n.d(t,"Qb",function(){return $t}),n.d(t,"Rb",function(){return xo}),n.d(t,"Sb",function(){return vn}),n.d(t,"Tb",function(){return en}),n.d(t,"Ub",function(){return dc}),n.d(t,"Vb",function(){return za}),n.d(t,"Wb",function(){return Ya}),n.d(t,"Xb",function(){return cc}),n.d(t,"Yb",function(){return ht}),n.d(t,"Zb",function(){return mt}),n.d(t,"ac",function(){return no}),n.d(t,"bc",function(){return qs}),n.d(t,"cc",function(){return Ks}),n.d(t,"dc",function(){return ao}),n.d(t,"ec",function(){return io}),n.d(t,"fc",function(){return Ja}),n.d(t,"gc",function(){return ac}),n.d(t,"hc",function(){return ja}),n.d(t,"ic",function(){return We}),n.d(t,"jc",function(){return gr}),n.d(t,"kc",function(){return mr}),n.d(t,"lc",function(){return ie}),n.d(t,"mc",function(){return uo}),n.d(t,"nc",function(){return Za}),n.d(t,"oc",function(){return Do}),n.d(t,"pc",function(){return Ba}),n.d(t,"qc",function(){return ho}),n.d(t,"rc",function(){return yo}),n.d(t,"sc",function(){return vo}),n.d(t,"tc",function(){return bo}),n.d(t,"uc",function(){return hr}),n.d(t,"vc",function(){return oc});var r=n("XNiG"),i=n("quSY"),a=n("HDdC"),o=n("VRyK"),s=n("EQ5u"),c=n("x+ZX");function u(){return new r.a}function l(e){for(var t in e)if(e[t]===l)return t;throw Error("Could not find renamed property on target object.")}function _(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function d(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(d).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function f(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var p=l({__forward_ref__:l});function g(e){return e.__forward_ref__=g,e.toString=function(){return d(this())},e}function m(e){return h(e)?e():e}function h(e){return"function"==typeof e&&e.hasOwnProperty(p)&&e.__forward_ref__===g}var y=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,r))).code=e,i}return n}(_wrapNativeSuper(Error));function v(e){return"string"==typeof e?e:null==e?"":String(e)}function b(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():v(e)}function x(e,t){var n=t?" in ".concat(t):"";throw new y("201","No provider for ".concat(b(e)," found").concat(n))}function D(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function C(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function S(e){return k(e,w)||k(e,N)}function k(e,t){return e.hasOwnProperty(t)?e[t]:null}function E(e){return e&&(e.hasOwnProperty(A)||e.hasOwnProperty(P))?e[A]:null}var T,w=l({"\u0275prov":l}),A=l({"\u0275inj":l}),N=l({ngInjectableDef:l}),P=l({ngInjectorDef:l}),O=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function F(e){var t=T;return T=e,t}function I(e,t,n){var r=S(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&O.Optional?null:void 0!==t?t:void x(d(e),"Injector")}function M(e){return{toString:e}.toString()}var L=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),R=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),B="undefined"!=typeof globalThis&&globalThis,j="undefined"!=typeof window&&window,U="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,z="undefined"!=typeof global&&global,J=B||z||j||U,V={},W=[],q=l({"\u0275cmp":l}),K=l({"\u0275dir":l}),H=l({"\u0275pipe":l}),G=l({"\u0275mod":l}),Q=l({"\u0275loc":l}),X=l({"\u0275fac":l}),Y=l({__NG_ELEMENT_ID__:l}),Z=0;function $(e){return M(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===L.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||W,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||R.Emulated,id:"c",styles:e.styles||W,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,a=e.pipes;return n.id+=Z++,n.inputs=ae(e.inputs,t),n.outputs=ae(e.outputs),i&&i.forEach(function(e){return e(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(ee)}:null,n.pipeDefs=a?function(){return("function"==typeof a?a():a).map(te)}:null,n})}function ee(e){return ce(e)||function(e){return e[K]||null}(e)}function te(e){return function(e){return e[H]||null}(e)}var ne={};function re(e){var t={type:e.type,bootstrap:e.bootstrap||W,declarations:e.declarations||W,imports:e.imports||W,exports:e.exports||W,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&M(function(){ne[e.id]=e.type}),t}function ie(e,t){return M(function(){var n=ue(e,!0);n.declarations=t.declarations||W,n.imports=t.imports||W,n.exports=t.exports||W})}function ae(e,t){if(null==e)return V;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],a=i;Array.isArray(i)&&(a=i[1],i=i[0]),n[i]=r,t&&(t[i]=a)}return n}var oe=$;function se(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ce(e){return e[q]||null}function ue(e,t){var n=e[G]||null;if(!n&&!0===t)throw new Error("Type ".concat(d(e)," does not have '\u0275mod' property."));return n}function le(e){return Array.isArray(e)&&"object"==typeof e[1]}function _e(e){return Array.isArray(e)&&!0===e[1]}function de(e){return 0!=(8&e.flags)}function fe(e){return 2==(2&e.flags)}function pe(e){return 1==(1&e.flags)}function ge(e){return null!==e.template}function me(e,t){return e.hasOwnProperty(X)?e[X]:null}var he,ye=function(){function e(t,n,r){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function ve(){return be}function be(e){return e.type.prototype.ngOnChanges&&(e.setInput=De),xe}function xe(){var e=Ce(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===V)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function De(e,t,n,r){var i=Ce(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:V,current:null}),a=i.current||(i.current={}),o=i.previous,s=this.declaredInputs[n],c=o[s];a[s]=new ye(c&&c.currentValue,t,o===V),e[r]=t}function Ce(e){return e.__ngSimpleChanges__||null}function Se(e){he=e}function ke(){return void 0!==he?he:"undefined"!=typeof document?document:void 0}function Ee(e){return!!e.listen}ve.ngInherit=!0;var Te={createRenderer:function(e,t){return ke()}};function we(e){for(;Array.isArray(e);)e=e[0];return e}function Ae(e,t){return we(t[e])}function Ne(e,t){return we(t[e.index])}function Pe(e,t){return e.data[t]}function Oe(e,t){return e[t]}function Fe(e,t){var n=t[e];return le(n)?n:n[0]}function Ie(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Me(e){return 4==(4&e[2])}function Le(e){return 128==(128&e[2])}function Re(e,t){return null==t?null:e[t]}function Be(e){e[18]=0}function je(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var Ue={lFrame:ut(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function ze(){return Ue.bindingsEnabled}function Je(){return Ue.lFrame.lView}function Ve(){return Ue.lFrame.tView}function We(e){Ue.lFrame.contextLView=e}function qe(){for(var e=Ke();null!==e&&64===e.type;)e=e.parent;return e}function Ke(){return Ue.lFrame.currentTNode}function He(e,t){var n=Ue.lFrame;n.currentTNode=e,n.isParent=t}function Ge(){return Ue.lFrame.isParent}function Qe(){Ue.lFrame.isParent=!1}function Xe(){return Ue.isInCheckNoChangesMode}function Ye(e){Ue.isInCheckNoChangesMode=e}function Ze(){return Ue.lFrame.bindingIndex}function $e(){return Ue.lFrame.bindingIndex++}function et(e){var t=Ue.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function tt(e){Ue.lFrame.currentDirectiveIndex=e}function nt(e){var t=Ue.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function rt(){return Ue.lFrame.currentQueryIndex}function it(e){Ue.lFrame.currentQueryIndex=e}function at(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ot(e,t,n){if(n&O.SkipSelf){for(var r=t,i=e;!(null!==(r=r.parent)||n&O.Host||(r=at(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}var a=Ue.lFrame=ct();return a.currentTNode=t,a.lView=e,!0}function st(e){var t=ct(),n=e[1];Ue.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ct(){var e=Ue.lFrame,t=null===e?null:e.child;return null===t?ut(e):t}function ut(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function lt(){var e=Ue.lFrame;return Ue.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var _t=lt;function dt(){var e=lt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ft(){return Ue.lFrame.selectedIndex}function pt(e){Ue.lFrame.selectedIndex=e}function gt(){var e=Ue.lFrame;return Pe(e.tView,e.selectedIndex)}function mt(){Ue.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function ht(){Ue.lFrame.currentNamespace=null}function yt(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[s]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,a.call(o)):a.call(o)}var St=function e(t,n,r){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function kt(e,t,n){for(var r=Ee(e),i=0;it){o=a-1;break}}}for(;a>16,r=t;n>0;)r=r[15],n--;return r}var Ft=!0;function It(e){var t=Ft;return Ft=e,t}var Mt=0;function Lt(e,t){var n=Bt(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Rt(r.data,e),Rt(t,null),Rt(r.blueprint,null));var i=jt(e,t),a=e.injectorIndex;if(Nt(i))for(var o=Pt(i),s=Ot(i,t),c=s[1].data,u=0;u<8;u++)t[a+u]=s[o+u]|c[o+u];return t[a+8]=i,a}function Rt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Bt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function jt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,i=t;null!==i;){var a=i[1],o=a.type;if(null===(r=2===o?a.declTNode:1===o?i[6]:null))return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Ut(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Y)&&(r=n[Y]),null==r&&(r=n[Y]=Mt++);var i=255&r;t.data[e+(i>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:O.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(Y)?e[Y]:void 0;return"number"==typeof t?t>=0?255&t:qt:t}(n);if("function"==typeof a){if(!ot(t,e,r))return r&O.Host?zt(i,n,r):Jt(t,n,r,i);try{var o=a();if(null!=o||r&O.Optional)return o;x(n)}finally{_t()}}else if("number"==typeof a){var s=null,c=Bt(e,t),u=-1,l=r&O.Host?t[16][6]:null;for((-1===c||r&O.SkipSelf)&&(-1!==(u=-1===c?jt(e,t):t[c+8])&&Xt(r,!1)?(s=t[1],c=Pt(u),t=Ot(u,t)):c=-1);-1!==c;){var _=t[1];if(Qt(a,c,_.data)){var d=Kt(c,t,n,s,r,l);if(d!==Wt)return d}-1!==(u=t[c+8])&&Xt(r,t[1].data[c+8]===l)&&Qt(a,c,t)?(s=_,c=Pt(u),t=Ot(u,t)):c=-1}}}return Jt(t,n,r,i)}var Wt={};function qt(){return new Yt(qe(),Je())}function Kt(e,t,n,r,i,a){var o=t[1],s=o.data[e+8],c=Ht(s,o,n,null==r?fe(s)&&Ft:r!=o&&0!=(3&s.type),i&O.Host&&a===s);return null!==c?Gt(t,o,c,s):Wt}function Ht(e,t,n,r,i){for(var a=e.providerIndexes,o=t.data,s=1048575&a,c=e.directiveStart,u=a>>20,l=i?s+u:e.directiveEnd,_=r?s:s+u;_=c&&d.type===n)return _}if(i){var f=o[c];if(f&&ge(f)&&f.type===n)return c}return null}function Gt(e,t,n,r){var i=e[n],a=t.data;if(i instanceof St){var o=i;o.resolving&&function(e,t){throw new y("200","Circular dependency in DI detected for ".concat(e))}(b(a[n]));var s=It(o.canSeeViewProviders);o.resolving=!0;var c=o.injectImpl?F(o.injectImpl):null;ot(e,r,O.Default);try{i=e[n]=o.factory(void 0,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnChanges,a=r.ngOnInit,o=r.ngDoCheck;if(i){var s=be(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,a),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,a[n],t)}finally{null!==c&&F(c),It(s),o.resolving=!1,_t()}}return i}function Qt(e,t,n){return!!(n[t+(e>>5)]&1<=e.length?e.push(n):e.splice(t,0,n)}function un(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ln(e,t){for(var n=[],r=0;r=0)return e[1|n]}function dn(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var a=r+(i-r>>1),o=e[a<<1];if(t===o)return a<<1;o>t?i=a:r=a+1}return~(i<<1)}(e,t)}var fn,pn={},gn=/\n/gm,mn=l({provide:String,useValue:l});function hn(e){var t=fn;return fn=e,t}function yn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O.Default;if(void 0===fn)throw new Error("inject() must be called from an injection context");return null===fn?I(e,void 0,t):fn.get(e,t&O.Optional?null:void 0,t)}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O.Default;return(T||yn)(m(e),t)}var bn=vn;function xn(e){for(var t=[],n=0;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();rr.hasOwnProperty(t)&&!$n.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(_r(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),ur=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lr=/([^\#-~ |!])/g;function _r(e){return e.replace(/&/g,"&").replace(ur,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(lr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function dr(e,t){var n=null;try{Zn=Zn||function(e){var t=new Kn(e);return function(){try{return!!(new window.DOMParser).parseFromString(An(""),"text/html")}catch(e){return!1}}()?new qn(t):t}(e);var r=t?String(t):"";n=Zn.getInertBodyElement(r);var i=5,a=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=a,a=n.innerHTML,n=Zn.getInertBodyElement(r)}while(r!==a);return An((new cr).sanitizeChildren(fr(n)||n))}finally{if(n)for(var o=fr(n)||n;o.firstChild;)o.removeChild(o.firstChild)}}function fr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var pr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function gr(e){var t=yr();return t?Nn(t.sanitize(pr.HTML,e)||""):Bn(e,"HTML")?Nn(Rn(e)):dr(ke(),v(e))}function mr(e){var t=yr();return t?t.sanitize(pr.URL,e)||"":Bn(e,"URL")?Rn(e):Qn(v(e))}function hr(e){return function(e){var t;return(null===(t=wn())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function yr(){var e=Je();return e&&e[12]}function vr(e){return e.ngDebugContext}function br(e){return e.ngOriginalError}function xr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&(e[r-1][4]=i[4]);var o=un(e,10+t);Xr(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Lr(e,t){if(!(256&t[2])){var n=t[11];Ee(n)&&n.destroyNode&&Xr(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Rr(e[1],e);for(;t;){var n=null;if(le(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)le(t)&&Rr(t[1],t),t=t[3];null===t&&(t=e),le(t)&&Rr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Rr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[i=u]():r[i=-u].unsubscribe(),a+=2}else{var l=r[i=n[a+1]];n[a].call(l)}if(null!==r){for(var _=i+1;_a?"":i[l+1].toLowerCase();var d=8&r?_:null;if(d&&-1!==ei(d,u,0)||2&r&&u!==_){if(ai(r))return!1;o=!0}}}}else{if(!o&&!ai(r)&&!ai(c))return!1;if(o&&ai(c))continue;o=!1,r=c|1&r}}return ai(r)||o}function ai(e){return 0==(1&e)}function oi(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var a=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+s+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""===i||ai(o)||(t+=ui(a,i),i=""),r=o,a=a||!ai(r);n++}return""!==i&&(t+=ui(a,i)),t}var _i={};function di(e){fi(Ve(),Je(),ft()+e,Xe())}function fi(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&vt(t,i,n)}else{var a=e.preOrderHooks;null!==a&&bt(t,a,0,n)}pt(n)}function pi(e,t){return e<<17|t<<2}function gi(e){return e>>17&32767}function mi(e){return 2|e}function hi(e){return(131068&e)>>2}function yi(e,t){return-131069&e|t<<2}function vi(e){return 1|e}function bi(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r20&&fi(e,t,20,Xe()),n(r,i)}finally{pt(a)}}function wi(e,t,n){ze()&&(function(e,t,n,r){var i=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||Lt(n,t),Cr(r,t);for(var o=n.initialInputs,s=i;s2&&void 0!==arguments[2]?arguments[2]:Ne,r=t.localNames;if(null!==r)for(var i=t.index+1,a=0;a0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=c&&s.push(c),s.push(r,i,o)}}function Ri(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Bi(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function ji(e,t,n){if(n){if(t.exportAs)for(var r=0;r0&&Hi(n)}}function Hi(e){for(var t=Ar(e);null!==t;t=Nr(t))for(var n=10;n0&&Hi(r)}var a=e[1].components;if(null!==a)for(var o=0;o0&&Hi(s)}}function Gi(e,t){var n=Fe(t,e),r=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:pn;if(t===pn){var n=new Error("NullInjectorError: No provider for ".concat(d(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),_a=new nn("Set Injector scope."),da={},fa={},pa=[];function ga(){return void 0===ca&&(ca=new la),ca}function ma(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new ha(e,n,t||ga(),r)}var ha=function(){function e(t,n,r){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&sn(n,function(e){return i.processProvider(e,t,n)}),sn([t],function(e){return i.processInjectorType(e,[],o)}),this.records.set(ua,ba(void 0,this));var s=this.records.get(_a);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof t?null:d(t))}return _createClass(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O.Default;this.assertNotDestroyed();var r,i=hn(this);try{if(!(n&O.SkipSelf)){var a=this.records.get(e);if(void 0===a){var o=("function"==typeof(r=e)||"object"==typeof r&&r instanceof nn)&&S(e);a=o&&this.injectableDefInScope(o)?ba(ya(e),da):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&O.Self?ga():this.parent).get(e,t=n&O.Optional&&t===pn?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(d(e)),i)throw s;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=d(t);if(Array.isArray(t))i=t.map(d).join(" -> ");else if("object"==typeof t){var a=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):d(s)))}i="{".concat(a.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(gn,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{hn(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(d(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=m(e)))return!1;var i=E(e),a=null==i&&e.ngModule||void 0,o=void 0===a?e:a,s=-1!==n.indexOf(o);if(void 0!==a&&(i=E(a)),null==i)return!1;if(null!=i.imports&&!s){var c;n.push(o);try{sn(i.imports,function(e){r.processInjectorType(e,t,n)&&(void 0===c&&(c=[]),c.push(e))})}finally{}if(void 0!==c)for(var u=function(e){var t=c[e],n=t.ngModule,i=t.providers;sn(i,function(e){return r.processProvider(e,n,i||pa)})},l=0;l0){var n=ln(t,"?");throw new Error("Can't resolve all parameters for ".concat(d(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[w]||e[N]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function va(e,t,n){var r,i;if(Da(e)){var a=m(e);return me(a)||ya(a)}if(xa(e))r=function(){return m(e.useValue)};else if((i=e)&&i.useFactory)r=function(){return e.useFactory.apply(e,_toConsumableArray(xn(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return vn(m(e.useExisting))};else{var o=m(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return me(o)||ya(o);r=function(){return _construct(o,_toConsumableArray(xn(e.deps)))}}return r}function ba(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function xa(e){return null!==e&&"object"==typeof e&&mn in e}function Da(e){return"function"==typeof e}var Ca=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=ma(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},Sa=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ca(e,t,""):Ca(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=pn,e.NULL=new la,e.\u0275prov=D({token:e,providedIn:"any",factory:function(){return vn(ua)}}),e.__NG_ELEMENT_ID__=-1,e}();function ka(e,t){yt(Ie(e)[1],qe())}function Ea(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,r=[e];t;){var i=void 0;if(ge(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var a=e;a.inputs=Ta(e.inputs),a.declaredInputs=Ta(e.declaredInputs),a.outputs=Ta(e.outputs);var o=i.hostBindings;o&&Na(e,o);var s=i.viewQuery,c=i.contentQueries;if(s&&wa(e,s),c&&Aa(e,c),_(e.inputs,i.inputs),_(e.declaredInputs,i.declaredInputs),_(e.outputs,i.outputs),ge(i)&&i.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(i.data.animation)}}var l=i.features;if(l)for(var d=0;d=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=wt(i.hostAttrs,n=wt(n,i.hostAttrs))}}(r)}function Ta(e){return e===V?{}:e===W?[]:e}function wa(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function Aa(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function Na(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var Pa=null;function Oa(){if(!Pa){var e=J.Symbol;if(e&&e.iterator)Pa=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:O.Default,n=Je();return null===n?vn(e,t):Vt(qe(),n,m(e),t)}function za(){throw new Error("invalid")}function Ja(e,t,n){var r=Je();return La(r,$e(),t)&&Ii(Ve(),gt(),r,e,t,r[11],n,!1),Ja}function Va(e,t,n,r,i){var a=i?"class":"style";aa(e,n,t.inputs[a],a,r)}function Wa(e,t,n,r){var i=Je(),a=Ve(),o=20+e,s=i[11],c=i[o]=Fr(s,t,Ue.lFrame.currentNamespace),u=a.firstCreatePass?function(e,t,n,r,i,a,o){var s=t.consts,c=Di(t,e,2,i,Re(s,a));return Mi(t,n,c,Re(s,o)),null!==c.attrs&&sa(c,c.attrs,!1),null!==c.mergedAttrs&&sa(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,a,i,0,t,n,r):a.data[o];He(u,!0);var l=u.mergedAttrs;null!==l&&kt(s,c,l);var _=u.classes;null!==_&&$r(s,c,_);var d=u.styles;null!==d&&Zr(s,c,d),64!=(64&u.flags)&&qr(a,i,c,u),0===Ue.lFrame.elementDepthCount&&Cr(c,i),Ue.lFrame.elementDepthCount++,pe(u)&&(wi(a,i,u),function(e,t,n){if(de(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=Je(),a=Ve(),o=qe();return $a(a,i,i[11],o,e,t,n,r),Ya}function Za(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=qe(),a=Je(),o=Ve();return $a(o,a,ra(nt(o.data),i,a),i,e,t,n,r),Za}function $a(e,t,n,r,i,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,c=pe(r),u=e.firstCreatePass&&na(e),l=ta(t),_=!0;if(3&r.type){var d=Ne(r,t),f=s?s(d):V,p=f.target||d,g=l.length,m=s?function(e){return s(we(e[r.index])).target}:r.index;if(Ee(n)){var h=null;if(!s&&c&&(h=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var a=0;ac?s[c]:null}"string"==typeof o&&(a+=2)}return null}(e,t,i,r.index)),null!==h)(h.__ngLastListenerFn__||h).__ngNextListenerFn__=a,h.__ngLastListenerFn__=a,_=!1;else{a=to(r,t,a,!1);var y=n.listen(f.name||p,i,a);l.push(a,y),u&&u.push(i,m,g,g+1)}}else a=to(r,t,a,!0),p.addEventListener(i,a,o),l.push(a),u&&u.push(i,m,g,o)}else a=to(r,t,a,!1);var v,b=r.outputs;if(_&&null!==b&&(v=b[i])){var x=v.length;if(x)for(var D=0;D0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Ue.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ue.lFrame.contextLView))[8]}(e)}function ro(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=Je(),i=Ve(),a=Di(i,20+e,16,null,n||null);null===a.projection&&(a.projection=t),Qe(),64!=(64&a.flags)&&function(e,t,n){Yr(t[11],0,t,n,Br(e,n,t),Vr(n.parent||t[6],n,t))}(i,r,a)}var oo=[];function so(e,t,n,r,i){for(var a=e[n+1],o=null===t,s=r?gi(a):hi(a),c=!1;0!==s&&(!1===c||o);){var u=e[s+1];co(e[s],t)&&(c=!0,e[s+1]=r?vi(u):mi(u)),s=r?gi(u):hi(u)}c&&(e[n+1]=r?mi(a):vi(a))}function co(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&dn(e,t)>=0}function uo(e,t,n){return _o(e,t,n,!1),uo}function lo(e,t){return _o(e,t,null,!0),lo}function _o(e,t,n,r){var i=Je(),a=Ve(),o=et(2);a.firstUpdatePass&&function(e,t,n,r){var i=e.data;if(null===i[n+1]){var a=i[ft()],o=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(e.flags&(t?16:32))})(a,r)&&null===t&&!o&&(t=!1),t=function(e,t,n,r){var i=nt(e),a=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=po(n=fo(null,e,t,n,r),t.attrs,r),a=null);else{var o=t.directiveStylingLast;if(-1===o||e[o]!==i)if(n=fo(i,e,t,n,r),null===a){var s=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==hi(r))return e[gi(r)]}(e,t,r);void 0!==s&&Array.isArray(s)&&function(e,t,n,r){e[gi(n?t.classBindings:t.styleBindings)]=r}(e,t,r,s=po(s=fo(null,e,t,s[1],r),t.attrs,r))}else a=function(e,t,n){for(var r,i=t.directiveEnd,a=1+t.directiveStylingLast;a0)&&(l=!0)}else u=n;if(i)if(0!==c){var d=gi(e[s+1]);e[r+1]=pi(d,s),0!==d&&(e[d+1]=yi(e[d+1],r)),e[s+1]=131071&e[s+1]|r<<17}else e[r+1]=pi(s,0),0!==s&&(e[s+1]=yi(e[s+1],r)),s=r;else e[r+1]=pi(c,0),0===s?s=r:e[c+1]=yi(e[c+1],r),c=r;l&&(e[r+1]=mi(e[r+1])),so(e,u,r,!0),so(e,u,r,!1),function(e,t,n,r,i){var a=i?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&dn(a,t)>=0&&(n[r+1]=vi(n[r+1]))}(t,u,e,r,a),o=pi(s,c),a?t.classBindings=o:t.styleBindings=o}(i,a,t,n,o,r)}}(a,e,o,r),t!==_i&&La(i,o,t)&&function(e,t,n,r,i,a,o,s){if(3&t.type){var c=e.data,u=c[s+1];mo(1==(1&u)?go(c,t,n,i,hi(u),o):void 0)||(mo(a)||2==(2&u)&&(a=go(c,null,n,i,s,o)),function(e,t,n,r,i){var a=Ee(e);if(t)i?a?e.addClass(n,r):n.classList.add(r):a?e.removeClass(n,r):n.classList.remove(r);else{var o=-1===r.indexOf("-")?void 0:Er.DashCase;if(null==i)a?e.removeStyle(n,r,o):n.style.removeProperty(r);else{var s="string"==typeof i&&i.endsWith("!important");s&&(i=i.slice(0,-10),o|=Er.Important),a?e.setStyle(n,r,i,o):n.style.setProperty(r,i,s?"important":"")}}}(r,o,Ae(ft(),n),i,a))}}(a,a.data[ft()],i,i[11],e,i[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=d(Rn(e)))),e}(t,n),r,o)}function fo(e,t,n,r,i){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s=0?r[1|o]=a:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(r,o=~o,i,a))}return void 0===e?null:e}function go(e,t,n,r,i,a){for(var o,s=null===t;i>0;){var c=e[i],u=Array.isArray(c),l=u?c[1]:c,_=null===l,d=n[i+1];d===_i&&(d=_?oo:void 0);var f=_?_n(d,r):l===r?d:void 0;if(u&&!mo(f)&&(f=_n(c,r)),mo(f)&&(o=f,s))return o;var p=e[i+1];i=s?gi(p):hi(p)}if(null!==t){var g=a?t.residualClasses:t.residualStyles;null!=g&&(o=_n(g,r))}return o}function mo(e){return void 0!==e}function ho(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Je(),r=Ve(),i=e+20,a=r.firstCreatePass?Di(r,i,1,t,null):r.data[i],o=n[i]=function(e,t){return Ee(e)?e.createText(t):e.createTextNode(t)}(n[11],t);qr(r,n,o,a),He(a,!1)}function yo(e){return vo("",e,""),yo}function vo(e,t,n){var r=Je(),i=function(e,t,n,r){return La(e,$e(),n)?t+v(n)+r:_i}(r,e,t,n);return i!==_i&&oa(r,ft(),i),vo}function bo(e,t,n,r,i){var a=Je(),o=function(e,t,n,r,i,a){var o=function(e,t,n,r){var i=La(e,t,n);return La(e,t+1,r)||i}(e,Ze(),n,i);return et(2),o?t+v(n)+r+v(i)+a:_i}(a,e,t,n,r,i);return o!==_i&&oa(a,ft(),o),bo}function xo(e,t,n){var r=Je();return La(r,$e(),t)&&Ii(Ve(),gt(),r,e,t,r[11],n,!0),xo}function Do(e,t,n){var r=Je();if(La(r,$e(),t)){var i=Ve(),a=gt();Ii(i,a,r,e,t,ra(nt(i.data),a,r),n,!0)}return Do}var Co=void 0,So=["en",[["a","p"],["AM","PM"],Co],[["AM","PM"],Co,Co],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Co,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Co,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Co,"{1} 'at' {0}",Co],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],ko={};function Eo(e,t,n){"string"!=typeof t&&(n=t,t=e[Po.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),ko[t]=e,n&&(ko[t][Po.ExtraData]=n)}function To(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=No(t);if(n)return n;var r=t.split("-")[0];if(n=No(r))return n;if("en"===r)return So;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function wo(e){return To(e)[Po.CurrencyCode]||null}function Ao(e){return To(e)[Po.PluralCase]}function No(e){return e in ko||(ko[e]=J.ng&&J.ng.common&&J.ng.common.locales&&J.ng.common.locales[e]),ko[e]}var Po=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function Oo(e){var t;null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function Fo(e,t,n,r,i){if(e=m(e),Array.isArray(e))for(var a=0;a>20;if(Da(e)||!e.multi){var p=new St(u,i,Ua),g=Lo(c,t,i?_:_+f,d);-1===g?(Ut(Lt(l,s),o,c),Io(o,e,t.length),t.push(c),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(p),s.push(p)):(n[g]=p,s[g]=p)}else{var h=Lo(c,t,_+f,d),y=Lo(c,t,_,_+f),v=h>=0&&n[h],b=y>=0&&n[y];if(i&&!b||!i&&!v){Ut(Lt(l,s),o,c);var x=function(e,t,n,r,i){var a=new St(e,n,Ua);return a.multi=[],a.index=t,a.componentProviders=0,Mo(a,i,r&&!n),a}(i?Bo:Ro,n.length,i,r,u);!i&&b&&(n[y].providerFactory=x),Io(o,e,t.length,0),t.push(c),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(x),s.push(x)}else Io(o,e,h>-1?h:y,Mo(n[i?y:h],u,!i&&r));!i&&r&&b&&n[y].componentProviders++}}}function Io(e,t,n,r){var i=Da(t);if(i||t.useClass){var a=(t.useClass||t).prototype.ngOnDestroy;if(a){var o=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var s=o.indexOf(n);-1===s?o.push(n,[r,a]):o[s+1].push(r,a)}else o.push(n,a)}}}function Mo(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Lo(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=Ve();if(r.firstCreatePass){var i=ge(e);Fo(n,r.data,r.blueprint,i,!0),Fo(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}var zo=function e(){_classCallCheck(this,e)},Jo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(d(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Vo=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new Jo,e}();function Wo(){}function qo(e,t){return new Ho(Ne(e,t))}var Ko=function(){return qo(qe(),Je())},Ho=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Ko,e}();function Go(e){return e instanceof Ho?e.nativeElement:e}var Qo=function e(){_classCallCheck(this,e)},Xo=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Yo()},e}(),Yo=function(){var e=Je(),t=Fe(qe().index,e);return function(e){return e[11]}(le(t)?t:e)},Zo=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=D({token:e,providedIn:"root",factory:function(){return null}}),e}(),$o=function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},es=new $o("11.2.4"),ts=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return Ia(e)}},{key:"create",value:function(e){return new rs(e)}}]),e}(),ns=function(e,t){return t},rs=function(){function e(t){_classCallCheck(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ns}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var a=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=t[n.index];if(null!==a&&r.push(we(a)),_e(a))for(var o=10;o-1&&(Mr(e,n),un(t,n))}this._attachedToViewContainer=!1}Lr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Oi(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Xi(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Yi(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){Ye(!0);try{Yi(e,t,n)}finally{Ye(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Xr(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),hs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e))._view=e,r}return _createClass(n,[{key:"detectChanges",value:function(){Zi(this._view)}},{key:"checkNoChanges",value:function(){!function(e){Ye(!0);try{Zi(e)}finally{Ye(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(ms),ys=bs,vs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=ys,e.__ChangeDetectorRef__=!0,e}();function bs(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&fe(e)){var r=Fe(e.index,t);return new ms(r,r)}return 47&e.type?new ms(t[16],t):null}(qe(),Je(),e)}var xs=[new cs],Ds=new ds([new ts]),Cs=new ps(xs),Ss=function(){return Ts(qe(),Je())},ks=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Ss,e}(),Es=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this))._declarationLView=e,a._declarationTContainer=r,a.elementRef=i,a}return _createClass(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=xi(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),Si(t,n,e),new ms(n)}}]),n}(ks);function Ts(e,t){return 4&e.type?new Es(t,e,qo(e,t)):null}var ws=function e(){_classCallCheck(this,e)},As=function e(){_classCallCheck(this,e)},Ns=function(){return Ms(qe(),Je())},Ps=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Ns,e}(),Os=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this))._lContainer=e,a._hostTNode=r,a._hostLView=i,a}return _createClass(n,[{key:"element",get:function(){return qo(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Yt(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=jt(this._hostTNode,this._hostLView);if(Nt(e)){var t=Ot(e,this._hostLView),n=Pt(e);return new Yt(t[1].data[n+8],t)}return new Yt(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Fs(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var a=n||this.parentInjector;if(!i&&null==e.ngModule&&a){var o=a.get(ws,null);o&&(i=o)}var s=e.create(a,r,void 0,i);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var r=e._lView,i=r[1];if(_e(r[3])){var a=this.indexOf(e);if(-1!==a)this.detach(a);else{var o=r[3],s=new n(o,o[6],o[3]);s.detach(s.indexOf(e))}}var c=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,r){var i=10+r,a=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(Ps);function Fs(e){return e[8]}function Is(e){return e[8]||(e[8]=[])}function Ms(e,t){var n,r=t[e.index];if(_e(r))n=r;else{var i;if(8&e.type)i=we(r);else{var a=t[11];i=a.createComment("");var o=Ne(e,t);jr(a,Jr(a,o),i,function(e,t){return Ee(e)?e.nextSibling(t):t.nextSibling}(a,o),!1)}t[e.index]=n=qi(r,t,i,e),Qi(t,n)}return new Os(n,e,t)}var Ls={},Rs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).ngModule=e,r}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=ce(e);return new Us(t,this.ngModule)}}]),n}(Vo);function Bs(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var js=new nn("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Sr}}),Us=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(li).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return _createClass(n,[{key:"inputs",get:function(){return Bs(this.componentDef.inputs)}},{key:"outputs",get:function(){return Bs(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,r){var i,a,o=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var a=e.get(n,Ls,i);return a!==Ls||r===Ls?a:t.get(n,r,i)}}}(e,r.injector):e,s=o.get(Qo,Te),c=o.get(Zo,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",_=n?function(e,t,n){if(Ee(e))return e.selectRootElement(t,n===R.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(u,n,this.componentDef.encapsulation):Fr(s.createRenderer(null,this.componentDef),l,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:Sr,clean:ea,playerHandler:null,flags:0},p=Pi(0,null,null,1,0,null,null,null,null,null),g=xi(null,p,f,d,null,null,s,u,c,o);st(g);try{var m=function(e,t,n,r,i,a){var o=n[1];n[20]=e;var s=Di(o,20,2,"#host",null),c=s.mergedAttrs=t.hostAttrs;null!==c&&(sa(s,c,!0),null!==e&&(kt(i,e,c),null!==s.classes&&$r(i,e,s.classes),null!==s.styles&&Zr(i,e,s.styles)));var u=r.createRenderer(e,t),l=xi(n,Ni(t),null,t.onPush?64:16,n[20],s,r,u,null,null);return o.firstCreatePass&&(Ut(Lt(s,n),o,t.type),Bi(o,s),Ui(s,n.length,1)),Qi(n,l),n[20]=l}(_,this.componentDef,g,s,u);if(_)if(n)kt(u,_,["ng-version",es.full]);else{var h=function(e){for(var t=[],n=[],r=1,i=2;r0&&$r(u,_,v.join(" "))}if(a=Pe(p,20),void 0!==t)for(var b=a.projection=[],x=0;x1&&void 0!==arguments[1]?arguments[1]:Sa.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O.Default;return e===Sa||e===ws||e===ua?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(ws),Ws=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r,i,a;return _classCallCheck(this,n),(r=t.call(this)).moduleType=e,null!==ue(e)&&(i=e,a=new Set,function e(t){var n=ue(t,!0),r=n.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(d(t)," vs ").concat(d(t.name)))}(r,Js.get(r),t),Js.set(r,t));var i,o=_createForOfIteratorHelper(kr(n.imports));try{for(o.s();!(i=o.n()).done;){var s=i.value;a.has(s)||(a.add(s),e(s))}}catch(c){o.e(c)}finally{o.f()}}(i)),r}return _createClass(n,[{key:"create",value:function(e){return new Vs(this.moduleType,e)}}]),n}(As);function qs(e,t){var n,r=Ve(),i=e+20;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new y("302","The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var a=n.factory||(n.factory=me(n.type)),o=F(Ua);try{var s=It(!1),c=a();return It(s),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(r,Je(),i,c),c}finally{F(o)}}function Ks(e,t,n){var r=e+20,i=Je(),a=Oe(i,r);return function(e,t){return Fa.isWrapped(t)&&(t=Fa.unwrap(t),e[Ze()]=_i),t}(i,function(e,t){return e[1].data[t].pure}(i,r)?function(e,t,n,r,i,a){var o=t+n;return La(e,o,i)?function(e,t,n){return e[t]=n}(e,o+1,a?r.call(a,i):r(i)):function(e,t){var n=e[t];return n===_i?void 0:n}(e,o+1)}(i,function(){var e=Ue.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),t,a.transform,n,a):a.transform(n))}var Hs=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=r,e}return _createClass(n,[{key:"emit",value:function(e){_get2(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var a,o=function(e){return null},s=function(){return null};e&&"object"==typeof e?(a=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(a=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var c=_get2(_getPrototypeOf(n.prototype),"subscribe",this).call(this,a,o,s);return e instanceof i.a&&e.add(c),c}}]),n}(r.a);function Gs(){return this._results[Oa()]()}var Qs=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Oa(),r=e.prototype;r[n]||(r[n]=Gs)}return _createClass(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Hs)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){this.dirty=!1;var n=on(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],a=0;a2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,e),this.predicate=t,this.flags=n,this.read=r},$s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)r.push(o[s/2]);else{for(var u=a[s+1],l=t[-c],_=10;_0&&void 0!==arguments[0]?arguments[0]:O.Default,t=bs(!0);if(null!=t||e&O.Optional)return t;x("ChangeDetectorRef")}var fc=new nn("Application Initializer"),pc=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this.appInits=t,this.resolve=Wo,this.reject=Wo,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return _createClass(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(vn(Ic))},e.\u0275prov=D({token:e,factory:e.\u0275fac}),e}(),Jc=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,qc.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return qc.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac}),e}();function Vc(e){qc=e}var Wc,qc=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Kc=!0,Hc=!1;function Gc(){return Hc=!0,Kc}function Qc(){if(Hc)throw new Error("Cannot enable prod mode after platform setup.");Kc=!1}var Xc=new nn("AllowMultipleToken"),Yc=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function Zc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new nn(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=$c();if(!a||a.injector.get(Xc,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var o=n.concat(t).concat({provide:i,useValue:!0},{provide:_a,useValue:"platform"});!function(e){if(Wc&&!Wc.destroyed&&!Wc.injector.get(Xc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Wc=e.get(eu);var t=e.get(yc,null);t&&t.forEach(function(e){return e()})}(Sa.create({providers:o,name:r}))}return function(e){var t=$c();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function $c(){return Wc&&!Wc.destroyed?Wc:null}var eu=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,a=(n=t?t.ngZone:void 0,r={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new Uc:("zone.js"===n?void 0:n)||new Ic({enableLongStackTrace:Gc(),shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})),o=[{provide:Ic,useValue:a}];return a.run(function(){var t=Sa.create({providers:o,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Dr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(function(){var e=a.onError.subscribe({next:function(e){r.handleError(e)}});n.onDestroy(function(){iu(i._modules,n),e.unsubscribe()})}),function(e,t,r){try{var a=((o=n.injector.get(pc)).runInitializers(),o.donePromise.then(function(){return Oo(n.injector.get(Dc,"en-US")||"en-US"),i._moduleDoBootstrap(n),n}));return Ga(a)?a.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):a}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var o}(r,a)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=tu({},n);return function(e,t,n){var r=new Ws(n);return Promise.resolve(r)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,r)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(ru);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(d(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(vn(Sa))},e.\u0275prov=D({token:e,factory:e.\u0275fac}),e}();function tu(e,t){return Array.isArray(t)?t.reduce(tu,e):Object.assign(Object.assign({},e),t)}var nu,ru=((nu=function(){function e(t,n,r,i,l){var _=this;_classCallCheck(this,e),this._zone=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){_._zone.run(function(){_.tick()})}});var d=new a.a(function(e){_._stable=_._zone.isStable&&!_._zone.hasPendingMacrotasks&&!_._zone.hasPendingMicrotasks,_._zone.runOutsideAngular(function(){e.next(_._stable),e.complete()})}),f=new a.a(function(e){var t;_._zone.runOutsideAngular(function(){t=_._zone.onStable.subscribe(function(){Ic.assertNotInAngularZone(),Fc(function(){_._stable||_._zone.hasPendingMacrotasks||_._zone.hasPendingMicrotasks||(_._stable=!0,e.next(!0))})})});var n=_._zone.onUnstable.subscribe(function(){Ic.assertInAngularZone(),_._stable&&(_._stable=!1,_._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(d,f.pipe(function(e){return Object(c.a)()((t=u,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,s.b);return r.source=e,r.subjectFactory=n,r})(e));var t}))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof zo?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(ws),a=n.create(Sa.NULL,[],t||n.selector,i),o=a.location.nativeElement,s=a.injector.get(zc,null),c=s&&a.injector.get(Jc);return s&&c&&c.registerApplication(o,s),a.onDestroy(function(){r.detachView(a.hostView),iu(r.components,a),c&&c.unregisterApplication(o)}),this._loadComponent(a),a}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;iu(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(bc,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||nu)(vn(Ic),vn(Sa),vn(Dr),vn(Vo),vn(pc))},nu.\u0275prov=D({token:nu,factory:nu.\u0275fac}),nu);function iu(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var au=function e(){_classCallCheck(this,e)},ou=function e(){_classCallCheck(this,e)},su={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},cu=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||su}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,r=_slicedToArray(e.split("#"),2),i=r[0],a=r[1];return void 0===a&&(a="default"),n("zn8P")(i).then(function(e){return e[a]}).then(function(e){return uu(e,i,a)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),r=t[0],i=t[1],a="NgFactory";return void 0===i&&(i="default",a=""),n("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[i+a]}).then(function(e){return uu(e,r,i)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(vn(Pc),vn(ou,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac}),e}();function uu(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var lu=function(e){return null},_u=Zc(null,"core",[{provide:vc,useValue:"unknown"},{provide:eu,deps:[Sa]},{provide:Jc,deps:[]},{provide:xc,deps:[]}]),du=[{provide:ru,useClass:ru,deps:[Ic,Sa,Dr,Vo,pc]},{provide:js,deps:[Ic],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:pc,useClass:pc,deps:[[new En,fc]]},{provide:Pc,useClass:Pc,deps:[]},mc,{provide:ds,useFactory:function(){return Ds},deps:[]},{provide:ps,useFactory:function(){return Cs},deps:[]},{provide:Dc,useFactory:function(e){return Oo(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new kn(Dc),new En,new Tn]]},{provide:Cc,useValue:"USD"}],fu=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275mod=re({type:e}),e.\u0275inj=C({factory:function(t){return new(t||e)(vn(ru))},providers:du}),e}()},"8ok5":function(e,t,n){"use strict";function r(e,t,n,r){var i,a=arguments.length,o=a<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 s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function i(e,t){return function(n,r){t(n,r,e)}}function a(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}n.d(t,"a",function(){return h}),n.d(t,"b",function(){return m}),n.d(t,"c",function(){return y});var o,s,c,u,l=n("8Y7J"),_=n("2Vo4"),d=(n("XNiG"),n("1G5W"),n("pLZG")),f=n("IzEk"),p=n("s7LF"),g=["editor"],m=((o=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.ngZone=t,this.monacoPathConfig=n,this.isMonacoLoaded$=new _.a(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?t.run(function(){return r.isMonacoLoaded$.next(!0)}):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}return _createClass(e,[{key:"monacoPath",set:function(e){e&&(this._monacoPath=e)}},{key:"loadMonaco",value:function(){var e=this,t=function(){var t=e._monacoPath;window.amdRequire=window.require,e.nodeRequire&&(window.require=e.nodeRequire,t=window.require("path").resolve(window.__dirname,e._monacoPath)),window.amdRequire.config({paths:{vs:t}}),window.amdRequire(["vs/editor/editor.main"],function(){e.ngZone.run(function(){return e.isMonacoLoaded$.next(!0)})})};if(window.amdRequire)return t();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);var n=document.createElement("script");n.type="text/javascript",n.src="".concat(this._monacoPath,"/loader.js"),n.addEventListener("load",t),document.body.appendChild(n)}},{key:"addElectronFixScripts",value:function(){var e=document.createElement("script"),t=document.createTextNode("self.module = undefined;"),n=document.createTextNode("self.process.browser = true;");e.appendChild(t),e.appendChild(n),document.body.appendChild(e)}}]),e}()).\u0275fac=function(e){return new(e||o)(l.Sb(l.A),l.Sb("MONACO_PATH",8))},o.\u0275prov=Object(l.Hb)({factory:function(){return new o(Object(l.Sb)(l.A),Object(l.Sb)("MONACO_PATH",8))},token:o,providedIn:"root"}),o=r([i(1,Object(l.B)()),i(1,Object(l.p)("MONACO_PATH")),a("design:paramtypes",[l.A,String])],o)),h=((u=s=function(){function e(t){_classCallCheck(this,e),this.monacoLoader=t,this.init=new l.n,this.propagateChange=function(e){}}return _createClass(e,[{key:"model",get:function(){return this.editor&&this.editor.getModel()}},{key:"modelMarkers",get:function(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}},{key:"ngOnInit",value:function(){var e=this;this.monacoLoader.isMonacoLoaded$.pipe(Object(d.a)(function(e){return e}),Object(f.a)(1)).subscribe(function(){e.initEditor()})}},{key:"ngOnChanges",value:function(e){if(this.editor&&e.options&&!e.options.firstChange){var t=e.options.currentValue,n=t.language,r=t.theme,i=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);i0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.inclusive=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.predicate,this.inclusive))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).predicate=r,a.inclusive=i,a.index=0,a}return _createClass(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(r){return void n.error(r)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(r.a)},GS7A:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return f}),n.d(t,"e",function(){return s}),n.d(t,"f",function(){return c}),n.d(t,"g",function(){return l}),n.d(t,"h",function(){return u}),n.d(t,"i",function(){return _}),n.d(t,"j",function(){return o}),n.d(t,"k",function(){return p}),n.d(t,"l",function(){return g});var r=function e(){_classCallCheck(this,e)},i=function e(){_classCallCheck(this,e)},a="*";function o(e,t){return{type:7,name:e,definitions:t,options:{}}}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function u(e){return{type:6,styles:e,offset:null}}function l(e,t,n){return{type:0,name:e,styles:t,options:n}}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function d(e){Promise.resolve(null).then(e)}var f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;d(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),p=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var r=0,i=0,a=0,o=this.players.length;0==o?d(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++r==o&&n._onFinish()}),e.onDestroy(function(){++i==o&&n._onDestroy()}),e.onStart(function(){++a==o&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),g="!"},GyhO:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("LRne"),i=n("bHdf");function a(){return Object(i.a)(1)(Object(r.a).apply(void 0,arguments))}},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r,i=n("7o/Q"),a=n("2QA8"),o=n("gRHU"),s=n("kJWO"),c=n("SpAZ"),u=n("2fFW"),l=((r=function(){function e(t){_classCallCheck(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return _createClass(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var r=this.operator,s=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[a.a])return e[a.a]()}return e||t||n?new i.a(e,t,n):new i.a(o.a)}(e,t,n);if(s.add(r?r.call(s,this.source):this.source||u.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),u.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){u.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,r=t.destination,a=t.isStopped;if(n||a)return!1;e=r&&r instanceof i.a?r:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=_(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}},r,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:s.a,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0){var r=e.slice(0,t),i=r.toLowerCase(),a=e.slice(t+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(a):n.headers.set(i,[a])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var r=t[e],i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(e,i))})}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,_toConsumableArray(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var a=this.headers.get(t);if(!a)return;0===(a=a.filter(function(e){return-1===i.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),f=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return p(e)}},{key:"encodeValue",value:function(e){return p(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function p(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var g=function(){function e(){var t,n,r,i=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=a.encoder||new f,a.fromString){if(a.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=a.fromString,n=this.encoder,r=new Map,t.length>0&&t.replace(/^\?/,"").split("&").forEach(function(e){var t=e.indexOf("="),i=_slicedToArray(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),a=i[0],o=i[1],s=r.get(a)||[];s.push(o),r.set(a,s)}),r)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(e){var t=a.fromObject[e];i.map.set(e,Array.isArray(t)?t:[t])})):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var r=e[n];Array.isArray(r)?r.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:r,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function m(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function h(e){return"undefined"!=typeof Blob&&e instanceof Blob}function y(e){return"undefined"!=typeof FormData&&e instanceof FormData}var v=function(){function e(t,n,r,i){var a;if(_classCallCheck(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,a=i):a=r,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.params&&(this.params=a.params)),this.headers||(this.headers=new d),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,a=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,c=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},c)),t.setParams&&(u=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},u)),new e(n,r,a,{params:u,headers:c,reportProgress:s,responseType:i,withCredentials:o})}}]),e}(),b=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),x=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},D=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,r)).type=b.ResponseHeader,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(x),C=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,r)).type=b.Response,e.body=void 0!==r.body?r.body:null,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(x),S=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),r.error=e.error||null,r}return n}(x);function k(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var E=function(){var e=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,r,a,u=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof v?n=e:(r=l.headers instanceof d?l.headers:new d(l.headers),l.params&&(a=l.params instanceof g?l.params:new g({fromObject:l.params})),n=new v(e,t,void 0!==l.body?l.body:null,{headers:r,params:a,reportProgress:l.reportProgress,responseType:l.responseType||"json",withCredentials:l.withCredentials}));var _=Object(i.a)(n).pipe(Object(o.a)(function(e){return u.handler.handle(e)}));if(e instanceof v||"events"===l.observe)return _;var f=_.pipe(Object(s.a)(function(e){return e instanceof C}));switch(l.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return f.pipe(Object(c.a)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return f.pipe(Object(c.a)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return f.pipe(Object(c.a)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return f.pipe(Object(c.a)(function(e){return e.body}))}case"response":return f;default:throw new Error("Unreachable: unhandled observe type ".concat(l.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new g).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,k(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,k(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,k(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Sb(l))},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac}),e}(),T=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),w=new r.r("HTTP_INTERCEPTORS"),A=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac}),e}(),N=/^\)\]\}',?\n/,P=function e(){_classCallCheck(this,e)},O=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac}),e}(),F=function(){var e=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new a.a(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var a=e.responseType.toLowerCase();r.responseType="json"!==a?a:"text"}var o=e.serializeBody(),s=null,c=function(){if(null!==s)return s;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new d(r.getAllResponseHeaders()),a=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new D({headers:i,status:t,statusText:n,url:a})},u=function(){var t=c(),i=t.headers,a=t.status,o=t.statusText,s=t.url,u=null;204!==a&&(u=void 0===r.response?r.responseText:r.response),0===a&&(a=u?200:0);var l=a>=200&&a<300;if("json"===e.responseType&&"string"==typeof u){var _=u;u=u.replace(N,"");try{u=""!==u?JSON.parse(u):null}catch(d){u=_,l&&(l=!1,u={error:d,text:u})}}l?(n.next(new C({body:u,headers:i,status:a,statusText:o,url:s||void 0})),n.complete()):n.error(new S({error:u,headers:i,status:a,statusText:o,url:s||void 0}))},l=function(e){var t=c().url,i=new S({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(i)},_=!1,f=function(t){_||(n.next(c()),_=!0);var i={type:b.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},p=function(e){var t={type:b.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",u),r.addEventListener("error",l),r.addEventListener("timeout",l),r.addEventListener("abort",l),e.reportProgress&&(r.addEventListener("progress",f),null!==o&&r.upload&&r.upload.addEventListener("progress",p)),r.send(o),n.next({type:b.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("abort",l),r.removeEventListener("load",u),r.removeEventListener("timeout",l),e.reportProgress&&(r.removeEventListener("progress",f),null!==o&&r.upload&&r.upload.removeEventListener("progress",p)),r.readyState!==r.DONE&&r.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Sb(P))},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac}),e}(),I=new r.r("XSRF_COOKIE_NAME"),M=new r.r("XSRF_HEADER_NAME"),L=function e(){_classCallCheck(this,e)},R=function(){var e=function(){function e(t,n,r){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(u.u)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Sb(u.c),r.Sb(r.C),r.Sb(I))},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac}),e}(),B=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Sb(L),r.Sb(M))},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac}),e}(),j=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(w,[]);this.chain=t.reduceRight(function(e,t){return new T(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Sb(_),r.Sb(r.s))},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac}),e}(),U=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:B,useClass:A}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:I,useValue:t.cookieName}:[],t.headerName?{provide:M,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275mod=r.Jb({type:e}),e.\u0275inj=r.Ib({factory:function(t){return new(t||e)},providers:[B,{provide:w,useExisting:B,multi:!0},{provide:L,useClass:R},{provide:I,useValue:"XSRF-TOKEN"},{provide:M,useValue:"X-XSRF-TOKEN"}]}),e}(),z=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275mod=r.Jb({type:e}),e.\u0275inj=r.Ib({factory:function(t){return new(t||e)},providers:[E,{provide:l,useClass:j},F,{provide:_,useExisting:F},O,{provide:P,useExisting:O}],imports:[[U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},IjjT:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;return _classCallCheck(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==_assertThisInitialized2(i)?n.delegate.now():a()})).actions=[],i.active=!1,i.scheduled=void 0,i}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,r):_get2(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,r)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(r)},IzEk:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7o/Q"),i=n("4I5i"),a=n("EY2u");function o(e){return function(t){return 0===e?Object(a.b)():t.lift(new s(e))}}var s=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new i.a}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.total))}}]),e}(),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return _createClass(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(r.a)},JIr8:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("zx2A");function i(e){return function(t){var n=new a(e),r=t.lift(n);return n.caught=r}}var a=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.selector,this.caught))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).selector=r,a.caught=i,a}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void _get2(_getPrototypeOf(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new r.a(this);this.add(i);var a=Object(r.c)(t,i);a!==i&&this.add(a)}}}]),n}(r.b)},JX91:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("GyhO"),i=n("z+Ro");function a(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:i.a;return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.dueTime=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).dueTime=r,a.scheduler=i,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return _createClass(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(r.a);function c(e){e.debouncedNext()}},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("z+Ro"),i=n("yCtX"),a=n("jZKg");function o(){for(var e=arguments.length,t=new Array(e),n=0;n1}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},R1az:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnChange=function(e){var t=Symbol(),n=Symbol();return function(r,i){var a="string"==typeof e?r[e]:e;if(!a)throw new Error("Cannot find method "+e+" in class "+r.constructor.name);Object.defineProperty(r,i,{set:function(e){var r=this;if(this[n]=void 0===this[n],this[n]||this[t]!==e){var i=this[t];this[t]=e,a.call(this,this[t],{firstChange:this[n],previousValue:i,currentValue:this[t],isFirstChange:function(){return r[n]}})}},get:function(){return this[t]}})}}},SVse:function(e,t,n){"use strict";n.d(t,"a",function(){return b}),n.d(t,"b",function(){return U}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return D}),n.d(t,"e",function(){return _}),n.d(t,"f",function(){return C}),n.d(t,"g",function(){return y}),n.d(t,"h",function(){return P}),n.d(t,"i",function(){return F}),n.d(t,"j",function(){return M}),n.d(t,"k",function(){return B}),n.d(t,"l",function(){return x}),n.d(t,"m",function(){return u}),n.d(t,"n",function(){return j}),n.d(t,"o",function(){return W}),n.d(t,"p",function(){return J}),n.d(t,"q",function(){return V}),n.d(t,"r",function(){return s}),n.d(t,"s",function(){return z}),n.d(t,"t",function(){return a}),n.d(t,"u",function(){return N}),n.d(t,"v",function(){return o});var r=n("8Y7J"),i=null;function a(){return i}function o(e){i||(i=e)}var s=function e(){_classCallCheck(this,e)},c=new r.r("DocumentToken"),u=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Hb)({factory:l,token:e,providedIn:"platform"}),e}();function l(){return Object(r.Sb)(d)}var _=new r.r("Location Initialized"),d=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r._init(),r}return _createClass(n,[{key:"_init",value:function(){this.location=a().getLocation(),this._history=a().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return a().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){a().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){a().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){f()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){f()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}}]),n}(u);return e.\u0275fac=function(t){return new(t||e)(r.Sb(c))},e.\u0275prov=Object(r.Hb)({factory:p,token:e,providedIn:"platform"}),e}();function f(){return!!window.history.pushState}function p(){return new d(Object(r.Sb)(c))}function g(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function h(e){return e&&"?"!==e[0]?"?"+e:e}var y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Hb)({factory:v,token:e,providedIn:"root"}),e}();function v(e){var t=Object(r.Sb)(c).location;return new x(Object(r.Sb)(u),t&&t.origin||"")}var b=new r.r("appBaseHref"),x=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;if(_classCallCheck(this,n),(i=t.call(this))._platformLocation=e,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=r,_possibleConstructorReturn(i)}return _createClass(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return g(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+h(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+h(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+h(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(r.Sb(u),r.Sb(b,8))},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac}),e}(),D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",null!=r&&(i._baseHref=r),i}return _createClass(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=g(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+h(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+h(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(r.Sb(u),r.Sb(b,8))},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac}),e}(),C=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._subject=new r.n,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=m(k(a)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+h(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,k(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+h(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+h(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Sb(y),r.Sb(u))},e.normalizeQueryParams=h,e.joinWithSlash=g,e.stripTrailingSlash=m,e.\u0275prov=Object(r.Hb)({factory:S,token:e,providedIn:"root"}),e}();function S(){return new C(Object(r.Sb)(y),Object(r.Sb)(u))}function k(e){return e.replace(/\/index.html$/,"")}var E=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),T=r.nb,w=function e(){_classCallCheck(this,e)},A=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).locale=e,r}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(T(t||this.locale)(e)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}]),n}(w);return e.\u0275fac=function(t){return new(t||e)(r.Sb(r.v))},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac}),e}();function N(e,t){t=encodeURIComponent(t);var n,r=_createForOfIteratorHelper(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,a=i.indexOf("="),o=_slicedToArray(-1==a?[i,""]:[i.slice(0,a),i.slice(a+1)],2),s=o[0],c=o[1];if(s.trim()===t)return decodeURIComponent(c)}}catch(u){r.e(u)}finally{r.f()}return null}var P=function(){var e=function(){function e(t,n,r,i){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.qb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Object(r.wb)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Lb(r.t),r.Lb(r.u),r.Lb(r.l),r.Lb(r.F))},e.\u0275dir=r.Gb({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),O=function(){function e(t,n,r,i){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),F=function(){var e=function(){function e(t,n,r){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var a=t._viewContainer.createEmbeddedView(t._template,new O(null,t._ngForOf,-1,-1),null===i?void 0:i),o=new I(e,a);n.push(o)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var c=new I(e,s);n.push(c)}});for(var r=0;r0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0;for(var n=0,r=e;n>1);switch(r(n(e[c]),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function y(e,t,n,r,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===r||r<0?0:r,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=n;o<=s;)c=t(c,e[o],o),o++;return c}}return n}e.Map=t("Map","tryGetNativeMap","createMapShim"),e.Set=t("Set","tryGetNativeSet","createSetShim"),e.getIterator=n,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.createMap=function(){return new e.Map},e.createMapFromTemplate=function(t){var n=new e.Map;for(var r in t)v.call(t,r)&&n.set(r,t[r]);return n},e.length=function(e){return e?e.length:0},e.forEach=function(e,t){if(e)for(var n=0;n=0;n--){var r=t(e[n],n);if(r)return r}},e.firstDefined=function(e,t){if(void 0!==e)for(var n=0;n=0;n--){var r=e[n];if(t(r,n))return r}},e.findIndex=function(e,t,n){for(var r=n||0;r=0;r--)if(t(e[r],r))return r;return-1},e.findMap=function(t,n){for(var r=0;r0&&e.Debug.assertGreaterThanOrEqual(r(n[o],n[o-1]),0);t:for(var s=a;as&&e.Debug.assertGreaterThanOrEqual(r(t[a],t[a-1]),0),r(n[o],t[a])){case-1:i.push(n[o]);continue e;case 0:continue e;case 1:continue t}}return i},e.sum=function(e,t){for(var n=0,r=0,i=e;rt?1:0}function j(e,t){return L(e,t)}e.toFileNameLowerCase=I,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.memoizeOne=function(t){var n=new e.Map;return function(e){var r=typeof e+":"+e,i=n.get(r);return void 0!==i||n.has(r)||(i=t(e),n.set(r,i)),i}},e.compose=function(e,t,n,r,i){if(i){for(var a=[],o=0;o0?1:0}function i(){return function(t,n){return r(t,n,e)};function e(e,n){return t(e.toUpperCase(),n.toUpperCase())||t(e,n)}function t(e,t){return et?1:0}}}();function V(e,t,n){for(var r=new Array(t.length+1),i=new Array(t.length+1),a=n+1,o=0;o<=t.length;o++)r[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=o>n?o-n:1,u=t.length>n+o?n+o:t.length;i[0]=o;for(var l=o,_=1;_n)return;var f=r;r=i,i=f}var p=r[t.length];return p>n?void 0:p}function W(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function q(e,t){for(var n=t;n=n.length+r.length&&G(t,n)&&W(t,r)}function X(e,t,n,r){for(var i=0,a=e[r];ii&&(i=c.prefix.length,r=s)}return r},e.startsWith=G,e.removePrefix=function(e,t){return G(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,n){return void 0===n&&(n=N),G(n(e),n(t))?e.substring(t.length):void 0},e.and=function(e,t){return function(n){return e(n)&&t(n)}},e.or=function(){for(var e=[],t=0;t=e}function d(t,r){return!!_(t)||(l[r]={level:t,assertion:n[r]},n[r]=e.noop,!1)}function f(e,t){var n=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||f),n}function p(e,t,n,r){e||(t=t?"False expression: "+t:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"==typeof n?n:n())),f(t,r||p))}function g(e,t,n){null==e&&f(t,n||g)}function m(e,t,n){return g(e,t,n||m),e}function h(e,t,n){for(var r=0,i=e;r0&&0===i[0][0]?i[0][1]:"0";if(r){for(var a="",o=t,s=0,c=i;st)break;0!==f&&f&t&&(a=a+(a?"|":"")+l,o&=~f)}if(0===o)return a}else for(var _=0,d=i;_r)for(var i=0,o=e.getOwnKeys(l);i=c.level&&(n[s]=c,l[s]=void 0)}},n.shouldAssert=_,n.fail=f,n.failBadSyntaxKind=function e(t,n,r){return f((n||"Unexpected node.")+"\r\nNode "+x(t.kind)+" was unexpected.",r||e)},n.assert=p,n.assertEqual=function e(t,n,r,i,a){t!==n&&f("Expected "+t+" === "+n+". "+(r?i?r+" "+i:r:""),a||e)},n.assertLessThan=function e(t,n,r,i){t>=n&&f("Expected "+t+" < "+n+". "+(r||""),i||e)},n.assertLessThanOrEqual=function e(t,n,r){t>n&&f("Expected "+t+" <= "+n,r||e)},n.assertGreaterThanOrEqual=function e(t,n,r){t= "+n,r||e)},n.assertIsDefined=g,n.checkDefined=m,n.assertDefined=m,n.assertEachIsDefined=h,n.checkEachDefined=y,n.assertEachDefined=y,n.assertNever=function t(n,r,i){return void 0===r&&(r="Illegal value:"),f(r+" "+("object"==typeof n&&e.hasProperty(n,"kind")&&e.hasProperty(n,"pos")&&x?"SyntaxKind: "+x(n.kind):JSON.stringify(n)),i||t)},n.assertEachNode=function t(n,r,i,a){d(1,"assertEachNode")&&p(void 0===r||e.every(n,r),i||"Unexpected node.",function(){return"Node array did not pass test '"+v(r)+"'."},a||t)},n.assertNode=function e(t,n,r,i){d(1,"assertNode")&&p(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",function(){return"Node "+x(t.kind)+" did not pass test '"+v(n)+"'."},i||e)},n.assertNotNode=function e(t,n,r,i){d(1,"assertNotNode")&&p(void 0===t||void 0===n||!n(t),r||"Unexpected node.",function(){return"Node "+x(t.kind)+" should not have passed test '"+v(n)+"'."},i||e)},n.assertOptionalNode=function e(t,n,r,i){d(1,"assertOptionalNode")&&p(void 0===n||void 0===t||n(t),r||"Unexpected node.",function(){return"Node "+x(t.kind)+" did not pass test '"+v(n)+"'."},i||e)},n.assertOptionalToken=function e(t,n,r,i){d(1,"assertOptionalToken")&&p(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",function(){return"Node "+x(t.kind)+" was not a '"+x(n)+"' token."},i||e)},n.assertMissingNode=function e(t,n,r){d(1,"assertMissingNode")&&p(void 0===t,n||"Unexpected node.",function(){return"Node "+x(t.kind)+" was unexpected'."},r||e)},n.getFunctionName=v,n.formatSymbol=function(t){return"{ name: "+e.unescapeLeadingUnderscores(t.escapedName)+"; flags: "+E(t.flags)+"; declarations: "+e.map(t.declarations,function(e){return x(e.kind)})+" }"},n.formatEnum=b,n.formatSyntaxKind=x,n.formatNodeFlags=D,n.formatModifierFlags=C,n.formatTransformFlags=S,n.formatEmitFlags=k,n.formatSymbolFlags=E,n.formatTypeFlags=T,n.formatObjectFlags=w;var A,N=!1;function P(e){return function(){if(O(),!A)throw new Error("Debugging helpers could not be loaded.");return A}().formatControlFlowGraph(e)}function O(){if(!N){Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return E(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return T(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?w(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var t=0,n=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];t=0;return _?function(e,t,n,r){var i=F(e,!0,t,n,r);return function(){throw new TypeError(i)}}(t,s,l,n.message):d?function(e,t,n,r){var i=!1;return function(){i||(u.warn(F(e,!1,t,n,r)),i=!0)}}(t,s,l,n.message):e.noop}(v(t),n),t)}}(e.Debug||(e.Debug={}))}(l||(l={})),function(e){e.timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}}(l||(l={})),function(e){!function(t){var n,r,i,a="function"==typeof onProfilerEvent&&!0===onProfilerEvent.profiler?onProfilerEvent:function(){},o=!1,s=0;function c(t,n,r){var i=0;return{enter:function(){1==++i&&u(n)},exit:function(){0==--i?(u(r),l(t,n,r)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}function u(t){o&&(r.set(t,e.timestamp()),n.set(t,(n.get(t)||0)+1),a(t))}function l(t,n,a){if(o){var c=a&&r.get(a)||e.timestamp(),u=n&&r.get(n)||s;i.set(t,(i.get(t)||0)+(c-u))}}t.createTimerIf=function(e,n,r,i){return e?c(n,r,i):t.nullTimer},t.createTimer=c,t.nullTimer={enter:e.noop,exit:e.noop},t.mark=u,t.measure=l,t.getCount=function(e){return n&&n.get(e)||0},t.getDuration=function(e){return i&&i.get(e)||0},t.forEachMeasure=function(e){i.forEach(function(t,n){e(n,t)})},t.enable=function(){n=new e.Map,r=new e.Map,i=new e.Map,o=!0,s=e.timestamp()},t.disable=function(){o=!1}}(e.performance||(e.performance={}))}(l||(l={})),function(e){var t,r,i={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{var a=null!==(t=process.env.TS_ETW_MODULE_PATH)&&void 0!==t?t:"./node_modules/@microsoft/typescript-etw";r=n("izN1")(a)}catch(o){r=void 0}e.perfLogger=r&&r.logEvent?r:i}(l||(l={})),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,n=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,r=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i=/^(0|[1-9]\d*)$/,a=function(){function t(t,i,a,s,c){if(void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"==typeof t){var u=e.Debug.checkDefined(o(t),"Invalid version");t=u.major,i=u.minor,a=u.patch,s=u.prerelease,c=u.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||n.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||r.test(c),"Invalid argument: build"),this.major=t,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return t.tryParse=function(e){var n=o(e);if(n)return new t(n.major,n.minor,n.patch,n.prerelease,n.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,n){if(t===n)return 0;if(0===t.length)return 0===n.length?0:1;if(0===n.length)return-1;for(var r=Math.min(t.length,n.length),a=0;a|>=|=)?\s*([a-z0-9-+.*]+)$/i;function f(e){for(var t=[],n=0,r=e.trim().split(c);n=",r.version)),h(i.major)||n.push(h(i.minor)?y("<",i.version.increment("major")):h(i.patch)?y("<",i.version.increment("minor")):y("<=",i.version)),!0)}function m(e,t,n){var r=p(t);if(!r)return!1;var i=r.version,o=r.minor,s=r.patch;if(h(r.major))"<"!==e&&">"!==e||n.push(y("<",a.zero));else switch(e){case"~":n.push(y(">=",i)),n.push(y("<",i.increment(h(o)?"major":"minor")));break;case"^":n.push(y(">=",i)),n.push(y("<",i.increment(i.major>0||h(o)?"major":i.minor>0||h(s)?"minor":"patch")));break;case"<":case">=":n.push(y(e,i));break;case"<=":case">":n.push(h(o)?y("<="===e?"<":">=",i.increment("major")):h(s)?y("<="===e?"<":">=",i.increment("minor")):y(e,i));break;case"=":case void 0:h(o)||h(s)?(n.push(y(">=",i)),n.push(y("<",i.increment(h(o)?"major":"minor")))):n.push(y("=",i));break;default:return!1}return!0}function h(e){return"*"===e||"x"===e||"X"===e}function y(e,t){return{operator:e,operand:t}}function v(e,t){for(var n=0,r=t;n":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(n)}}function x(t){return e.map(t,D).join(" ")}function D(e){return""+e.operator+e.operand}}(l||(l={})),function(e){var t,n,r,i,a,o,s,c,u,l,_,d,f,p,g,m,h,y,v,b,x,D,C,S,k,E,T,w,A,N,P,O,F,I,M,L,R,B,j,U,z,J,V,W,q,K,H,G,Q,X,Y,Z,$,ee,te,ne,re,ie,ae,oe,se,ce,ue;(ue=e.SyntaxKind||(e.SyntaxKind={}))[ue.Unknown=0]="Unknown",ue[ue.EndOfFileToken=1]="EndOfFileToken",ue[ue.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",ue[ue.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",ue[ue.NewLineTrivia=4]="NewLineTrivia",ue[ue.WhitespaceTrivia=5]="WhitespaceTrivia",ue[ue.ShebangTrivia=6]="ShebangTrivia",ue[ue.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",ue[ue.NumericLiteral=8]="NumericLiteral",ue[ue.BigIntLiteral=9]="BigIntLiteral",ue[ue.StringLiteral=10]="StringLiteral",ue[ue.JsxText=11]="JsxText",ue[ue.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",ue[ue.RegularExpressionLiteral=13]="RegularExpressionLiteral",ue[ue.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",ue[ue.TemplateHead=15]="TemplateHead",ue[ue.TemplateMiddle=16]="TemplateMiddle",ue[ue.TemplateTail=17]="TemplateTail",ue[ue.OpenBraceToken=18]="OpenBraceToken",ue[ue.CloseBraceToken=19]="CloseBraceToken",ue[ue.OpenParenToken=20]="OpenParenToken",ue[ue.CloseParenToken=21]="CloseParenToken",ue[ue.OpenBracketToken=22]="OpenBracketToken",ue[ue.CloseBracketToken=23]="CloseBracketToken",ue[ue.DotToken=24]="DotToken",ue[ue.DotDotDotToken=25]="DotDotDotToken",ue[ue.SemicolonToken=26]="SemicolonToken",ue[ue.CommaToken=27]="CommaToken",ue[ue.QuestionDotToken=28]="QuestionDotToken",ue[ue.LessThanToken=29]="LessThanToken",ue[ue.LessThanSlashToken=30]="LessThanSlashToken",ue[ue.GreaterThanToken=31]="GreaterThanToken",ue[ue.LessThanEqualsToken=32]="LessThanEqualsToken",ue[ue.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",ue[ue.EqualsEqualsToken=34]="EqualsEqualsToken",ue[ue.ExclamationEqualsToken=35]="ExclamationEqualsToken",ue[ue.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",ue[ue.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",ue[ue.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",ue[ue.PlusToken=39]="PlusToken",ue[ue.MinusToken=40]="MinusToken",ue[ue.AsteriskToken=41]="AsteriskToken",ue[ue.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",ue[ue.SlashToken=43]="SlashToken",ue[ue.PercentToken=44]="PercentToken",ue[ue.PlusPlusToken=45]="PlusPlusToken",ue[ue.MinusMinusToken=46]="MinusMinusToken",ue[ue.LessThanLessThanToken=47]="LessThanLessThanToken",ue[ue.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",ue[ue.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",ue[ue.AmpersandToken=50]="AmpersandToken",ue[ue.BarToken=51]="BarToken",ue[ue.CaretToken=52]="CaretToken",ue[ue.ExclamationToken=53]="ExclamationToken",ue[ue.TildeToken=54]="TildeToken",ue[ue.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",ue[ue.BarBarToken=56]="BarBarToken",ue[ue.QuestionToken=57]="QuestionToken",ue[ue.ColonToken=58]="ColonToken",ue[ue.AtToken=59]="AtToken",ue[ue.QuestionQuestionToken=60]="QuestionQuestionToken",ue[ue.BacktickToken=61]="BacktickToken",ue[ue.EqualsToken=62]="EqualsToken",ue[ue.PlusEqualsToken=63]="PlusEqualsToken",ue[ue.MinusEqualsToken=64]="MinusEqualsToken",ue[ue.AsteriskEqualsToken=65]="AsteriskEqualsToken",ue[ue.AsteriskAsteriskEqualsToken=66]="AsteriskAsteriskEqualsToken",ue[ue.SlashEqualsToken=67]="SlashEqualsToken",ue[ue.PercentEqualsToken=68]="PercentEqualsToken",ue[ue.LessThanLessThanEqualsToken=69]="LessThanLessThanEqualsToken",ue[ue.GreaterThanGreaterThanEqualsToken=70]="GreaterThanGreaterThanEqualsToken",ue[ue.GreaterThanGreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanGreaterThanEqualsToken",ue[ue.AmpersandEqualsToken=72]="AmpersandEqualsToken",ue[ue.BarEqualsToken=73]="BarEqualsToken",ue[ue.BarBarEqualsToken=74]="BarBarEqualsToken",ue[ue.AmpersandAmpersandEqualsToken=75]="AmpersandAmpersandEqualsToken",ue[ue.QuestionQuestionEqualsToken=76]="QuestionQuestionEqualsToken",ue[ue.CaretEqualsToken=77]="CaretEqualsToken",ue[ue.Identifier=78]="Identifier",ue[ue.PrivateIdentifier=79]="PrivateIdentifier",ue[ue.BreakKeyword=80]="BreakKeyword",ue[ue.CaseKeyword=81]="CaseKeyword",ue[ue.CatchKeyword=82]="CatchKeyword",ue[ue.ClassKeyword=83]="ClassKeyword",ue[ue.ConstKeyword=84]="ConstKeyword",ue[ue.ContinueKeyword=85]="ContinueKeyword",ue[ue.DebuggerKeyword=86]="DebuggerKeyword",ue[ue.DefaultKeyword=87]="DefaultKeyword",ue[ue.DeleteKeyword=88]="DeleteKeyword",ue[ue.DoKeyword=89]="DoKeyword",ue[ue.ElseKeyword=90]="ElseKeyword",ue[ue.EnumKeyword=91]="EnumKeyword",ue[ue.ExportKeyword=92]="ExportKeyword",ue[ue.ExtendsKeyword=93]="ExtendsKeyword",ue[ue.FalseKeyword=94]="FalseKeyword",ue[ue.FinallyKeyword=95]="FinallyKeyword",ue[ue.ForKeyword=96]="ForKeyword",ue[ue.FunctionKeyword=97]="FunctionKeyword",ue[ue.IfKeyword=98]="IfKeyword",ue[ue.ImportKeyword=99]="ImportKeyword",ue[ue.InKeyword=100]="InKeyword",ue[ue.InstanceOfKeyword=101]="InstanceOfKeyword",ue[ue.NewKeyword=102]="NewKeyword",ue[ue.NullKeyword=103]="NullKeyword",ue[ue.ReturnKeyword=104]="ReturnKeyword",ue[ue.SuperKeyword=105]="SuperKeyword",ue[ue.SwitchKeyword=106]="SwitchKeyword",ue[ue.ThisKeyword=107]="ThisKeyword",ue[ue.ThrowKeyword=108]="ThrowKeyword",ue[ue.TrueKeyword=109]="TrueKeyword",ue[ue.TryKeyword=110]="TryKeyword",ue[ue.TypeOfKeyword=111]="TypeOfKeyword",ue[ue.VarKeyword=112]="VarKeyword",ue[ue.VoidKeyword=113]="VoidKeyword",ue[ue.WhileKeyword=114]="WhileKeyword",ue[ue.WithKeyword=115]="WithKeyword",ue[ue.ImplementsKeyword=116]="ImplementsKeyword",ue[ue.InterfaceKeyword=117]="InterfaceKeyword",ue[ue.LetKeyword=118]="LetKeyword",ue[ue.PackageKeyword=119]="PackageKeyword",ue[ue.PrivateKeyword=120]="PrivateKeyword",ue[ue.ProtectedKeyword=121]="ProtectedKeyword",ue[ue.PublicKeyword=122]="PublicKeyword",ue[ue.StaticKeyword=123]="StaticKeyword",ue[ue.YieldKeyword=124]="YieldKeyword",ue[ue.AbstractKeyword=125]="AbstractKeyword",ue[ue.AsKeyword=126]="AsKeyword",ue[ue.AssertsKeyword=127]="AssertsKeyword",ue[ue.AnyKeyword=128]="AnyKeyword",ue[ue.AsyncKeyword=129]="AsyncKeyword",ue[ue.AwaitKeyword=130]="AwaitKeyword",ue[ue.BooleanKeyword=131]="BooleanKeyword",ue[ue.ConstructorKeyword=132]="ConstructorKeyword",ue[ue.DeclareKeyword=133]="DeclareKeyword",ue[ue.GetKeyword=134]="GetKeyword",ue[ue.InferKeyword=135]="InferKeyword",ue[ue.IsKeyword=136]="IsKeyword",ue[ue.KeyOfKeyword=137]="KeyOfKeyword",ue[ue.ModuleKeyword=138]="ModuleKeyword",ue[ue.NamespaceKeyword=139]="NamespaceKeyword",ue[ue.NeverKeyword=140]="NeverKeyword",ue[ue.ReadonlyKeyword=141]="ReadonlyKeyword",ue[ue.RequireKeyword=142]="RequireKeyword",ue[ue.NumberKeyword=143]="NumberKeyword",ue[ue.ObjectKeyword=144]="ObjectKeyword",ue[ue.SetKeyword=145]="SetKeyword",ue[ue.StringKeyword=146]="StringKeyword",ue[ue.SymbolKeyword=147]="SymbolKeyword",ue[ue.TypeKeyword=148]="TypeKeyword",ue[ue.UndefinedKeyword=149]="UndefinedKeyword",ue[ue.UniqueKeyword=150]="UniqueKeyword",ue[ue.UnknownKeyword=151]="UnknownKeyword",ue[ue.FromKeyword=152]="FromKeyword",ue[ue.GlobalKeyword=153]="GlobalKeyword",ue[ue.BigIntKeyword=154]="BigIntKeyword",ue[ue.OfKeyword=155]="OfKeyword",ue[ue.QualifiedName=156]="QualifiedName",ue[ue.ComputedPropertyName=157]="ComputedPropertyName",ue[ue.TypeParameter=158]="TypeParameter",ue[ue.Parameter=159]="Parameter",ue[ue.Decorator=160]="Decorator",ue[ue.PropertySignature=161]="PropertySignature",ue[ue.PropertyDeclaration=162]="PropertyDeclaration",ue[ue.MethodSignature=163]="MethodSignature",ue[ue.MethodDeclaration=164]="MethodDeclaration",ue[ue.Constructor=165]="Constructor",ue[ue.GetAccessor=166]="GetAccessor",ue[ue.SetAccessor=167]="SetAccessor",ue[ue.CallSignature=168]="CallSignature",ue[ue.ConstructSignature=169]="ConstructSignature",ue[ue.IndexSignature=170]="IndexSignature",ue[ue.TypePredicate=171]="TypePredicate",ue[ue.TypeReference=172]="TypeReference",ue[ue.FunctionType=173]="FunctionType",ue[ue.ConstructorType=174]="ConstructorType",ue[ue.TypeQuery=175]="TypeQuery",ue[ue.TypeLiteral=176]="TypeLiteral",ue[ue.ArrayType=177]="ArrayType",ue[ue.TupleType=178]="TupleType",ue[ue.OptionalType=179]="OptionalType",ue[ue.RestType=180]="RestType",ue[ue.UnionType=181]="UnionType",ue[ue.IntersectionType=182]="IntersectionType",ue[ue.ConditionalType=183]="ConditionalType",ue[ue.InferType=184]="InferType",ue[ue.ParenthesizedType=185]="ParenthesizedType",ue[ue.ThisType=186]="ThisType",ue[ue.TypeOperator=187]="TypeOperator",ue[ue.IndexedAccessType=188]="IndexedAccessType",ue[ue.MappedType=189]="MappedType",ue[ue.LiteralType=190]="LiteralType",ue[ue.NamedTupleMember=191]="NamedTupleMember",ue[ue.ImportType=192]="ImportType",ue[ue.ObjectBindingPattern=193]="ObjectBindingPattern",ue[ue.ArrayBindingPattern=194]="ArrayBindingPattern",ue[ue.BindingElement=195]="BindingElement",ue[ue.ArrayLiteralExpression=196]="ArrayLiteralExpression",ue[ue.ObjectLiteralExpression=197]="ObjectLiteralExpression",ue[ue.PropertyAccessExpression=198]="PropertyAccessExpression",ue[ue.ElementAccessExpression=199]="ElementAccessExpression",ue[ue.CallExpression=200]="CallExpression",ue[ue.NewExpression=201]="NewExpression",ue[ue.TaggedTemplateExpression=202]="TaggedTemplateExpression",ue[ue.TypeAssertionExpression=203]="TypeAssertionExpression",ue[ue.ParenthesizedExpression=204]="ParenthesizedExpression",ue[ue.FunctionExpression=205]="FunctionExpression",ue[ue.ArrowFunction=206]="ArrowFunction",ue[ue.DeleteExpression=207]="DeleteExpression",ue[ue.TypeOfExpression=208]="TypeOfExpression",ue[ue.VoidExpression=209]="VoidExpression",ue[ue.AwaitExpression=210]="AwaitExpression",ue[ue.PrefixUnaryExpression=211]="PrefixUnaryExpression",ue[ue.PostfixUnaryExpression=212]="PostfixUnaryExpression",ue[ue.BinaryExpression=213]="BinaryExpression",ue[ue.ConditionalExpression=214]="ConditionalExpression",ue[ue.TemplateExpression=215]="TemplateExpression",ue[ue.YieldExpression=216]="YieldExpression",ue[ue.SpreadElement=217]="SpreadElement",ue[ue.ClassExpression=218]="ClassExpression",ue[ue.OmittedExpression=219]="OmittedExpression",ue[ue.ExpressionWithTypeArguments=220]="ExpressionWithTypeArguments",ue[ue.AsExpression=221]="AsExpression",ue[ue.NonNullExpression=222]="NonNullExpression",ue[ue.MetaProperty=223]="MetaProperty",ue[ue.SyntheticExpression=224]="SyntheticExpression",ue[ue.TemplateSpan=225]="TemplateSpan",ue[ue.SemicolonClassElement=226]="SemicolonClassElement",ue[ue.Block=227]="Block",ue[ue.EmptyStatement=228]="EmptyStatement",ue[ue.VariableStatement=229]="VariableStatement",ue[ue.ExpressionStatement=230]="ExpressionStatement",ue[ue.IfStatement=231]="IfStatement",ue[ue.DoStatement=232]="DoStatement",ue[ue.WhileStatement=233]="WhileStatement",ue[ue.ForStatement=234]="ForStatement",ue[ue.ForInStatement=235]="ForInStatement",ue[ue.ForOfStatement=236]="ForOfStatement",ue[ue.ContinueStatement=237]="ContinueStatement",ue[ue.BreakStatement=238]="BreakStatement",ue[ue.ReturnStatement=239]="ReturnStatement",ue[ue.WithStatement=240]="WithStatement",ue[ue.SwitchStatement=241]="SwitchStatement",ue[ue.LabeledStatement=242]="LabeledStatement",ue[ue.ThrowStatement=243]="ThrowStatement",ue[ue.TryStatement=244]="TryStatement",ue[ue.DebuggerStatement=245]="DebuggerStatement",ue[ue.VariableDeclaration=246]="VariableDeclaration",ue[ue.VariableDeclarationList=247]="VariableDeclarationList",ue[ue.FunctionDeclaration=248]="FunctionDeclaration",ue[ue.ClassDeclaration=249]="ClassDeclaration",ue[ue.InterfaceDeclaration=250]="InterfaceDeclaration",ue[ue.TypeAliasDeclaration=251]="TypeAliasDeclaration",ue[ue.EnumDeclaration=252]="EnumDeclaration",ue[ue.ModuleDeclaration=253]="ModuleDeclaration",ue[ue.ModuleBlock=254]="ModuleBlock",ue[ue.CaseBlock=255]="CaseBlock",ue[ue.NamespaceExportDeclaration=256]="NamespaceExportDeclaration",ue[ue.ImportEqualsDeclaration=257]="ImportEqualsDeclaration",ue[ue.ImportDeclaration=258]="ImportDeclaration",ue[ue.ImportClause=259]="ImportClause",ue[ue.NamespaceImport=260]="NamespaceImport",ue[ue.NamedImports=261]="NamedImports",ue[ue.ImportSpecifier=262]="ImportSpecifier",ue[ue.ExportAssignment=263]="ExportAssignment",ue[ue.ExportDeclaration=264]="ExportDeclaration",ue[ue.NamedExports=265]="NamedExports",ue[ue.NamespaceExport=266]="NamespaceExport",ue[ue.ExportSpecifier=267]="ExportSpecifier",ue[ue.MissingDeclaration=268]="MissingDeclaration",ue[ue.ExternalModuleReference=269]="ExternalModuleReference",ue[ue.JsxElement=270]="JsxElement",ue[ue.JsxSelfClosingElement=271]="JsxSelfClosingElement",ue[ue.JsxOpeningElement=272]="JsxOpeningElement",ue[ue.JsxClosingElement=273]="JsxClosingElement",ue[ue.JsxFragment=274]="JsxFragment",ue[ue.JsxOpeningFragment=275]="JsxOpeningFragment",ue[ue.JsxClosingFragment=276]="JsxClosingFragment",ue[ue.JsxAttribute=277]="JsxAttribute",ue[ue.JsxAttributes=278]="JsxAttributes",ue[ue.JsxSpreadAttribute=279]="JsxSpreadAttribute",ue[ue.JsxExpression=280]="JsxExpression",ue[ue.CaseClause=281]="CaseClause",ue[ue.DefaultClause=282]="DefaultClause",ue[ue.HeritageClause=283]="HeritageClause",ue[ue.CatchClause=284]="CatchClause",ue[ue.PropertyAssignment=285]="PropertyAssignment",ue[ue.ShorthandPropertyAssignment=286]="ShorthandPropertyAssignment",ue[ue.SpreadAssignment=287]="SpreadAssignment",ue[ue.EnumMember=288]="EnumMember",ue[ue.UnparsedPrologue=289]="UnparsedPrologue",ue[ue.UnparsedPrepend=290]="UnparsedPrepend",ue[ue.UnparsedText=291]="UnparsedText",ue[ue.UnparsedInternalText=292]="UnparsedInternalText",ue[ue.UnparsedSyntheticReference=293]="UnparsedSyntheticReference",ue[ue.SourceFile=294]="SourceFile",ue[ue.Bundle=295]="Bundle",ue[ue.UnparsedSource=296]="UnparsedSource",ue[ue.InputFiles=297]="InputFiles",ue[ue.JSDocTypeExpression=298]="JSDocTypeExpression",ue[ue.JSDocAllType=299]="JSDocAllType",ue[ue.JSDocUnknownType=300]="JSDocUnknownType",ue[ue.JSDocNullableType=301]="JSDocNullableType",ue[ue.JSDocNonNullableType=302]="JSDocNonNullableType",ue[ue.JSDocOptionalType=303]="JSDocOptionalType",ue[ue.JSDocFunctionType=304]="JSDocFunctionType",ue[ue.JSDocVariadicType=305]="JSDocVariadicType",ue[ue.JSDocNamepathType=306]="JSDocNamepathType",ue[ue.JSDocComment=307]="JSDocComment",ue[ue.JSDocTypeLiteral=308]="JSDocTypeLiteral",ue[ue.JSDocSignature=309]="JSDocSignature",ue[ue.JSDocTag=310]="JSDocTag",ue[ue.JSDocAugmentsTag=311]="JSDocAugmentsTag",ue[ue.JSDocImplementsTag=312]="JSDocImplementsTag",ue[ue.JSDocAuthorTag=313]="JSDocAuthorTag",ue[ue.JSDocDeprecatedTag=314]="JSDocDeprecatedTag",ue[ue.JSDocClassTag=315]="JSDocClassTag",ue[ue.JSDocPublicTag=316]="JSDocPublicTag",ue[ue.JSDocPrivateTag=317]="JSDocPrivateTag",ue[ue.JSDocProtectedTag=318]="JSDocProtectedTag",ue[ue.JSDocReadonlyTag=319]="JSDocReadonlyTag",ue[ue.JSDocCallbackTag=320]="JSDocCallbackTag",ue[ue.JSDocEnumTag=321]="JSDocEnumTag",ue[ue.JSDocParameterTag=322]="JSDocParameterTag",ue[ue.JSDocReturnTag=323]="JSDocReturnTag",ue[ue.JSDocThisTag=324]="JSDocThisTag",ue[ue.JSDocTypeTag=325]="JSDocTypeTag",ue[ue.JSDocTemplateTag=326]="JSDocTemplateTag",ue[ue.JSDocTypedefTag=327]="JSDocTypedefTag",ue[ue.JSDocPropertyTag=328]="JSDocPropertyTag",ue[ue.SyntaxList=329]="SyntaxList",ue[ue.NotEmittedStatement=330]="NotEmittedStatement",ue[ue.PartiallyEmittedExpression=331]="PartiallyEmittedExpression",ue[ue.CommaListExpression=332]="CommaListExpression",ue[ue.MergeDeclarationMarker=333]="MergeDeclarationMarker",ue[ue.EndOfDeclarationMarker=334]="EndOfDeclarationMarker",ue[ue.SyntheticReferenceExpression=335]="SyntheticReferenceExpression",ue[ue.Count=336]="Count",ue[ue.FirstAssignment=62]="FirstAssignment",ue[ue.LastAssignment=77]="LastAssignment",ue[ue.FirstCompoundAssignment=63]="FirstCompoundAssignment",ue[ue.LastCompoundAssignment=77]="LastCompoundAssignment",ue[ue.FirstReservedWord=80]="FirstReservedWord",ue[ue.LastReservedWord=115]="LastReservedWord",ue[ue.FirstKeyword=80]="FirstKeyword",ue[ue.LastKeyword=155]="LastKeyword",ue[ue.FirstFutureReservedWord=116]="FirstFutureReservedWord",ue[ue.LastFutureReservedWord=124]="LastFutureReservedWord",ue[ue.FirstTypeNode=171]="FirstTypeNode",ue[ue.LastTypeNode=192]="LastTypeNode",ue[ue.FirstPunctuation=18]="FirstPunctuation",ue[ue.LastPunctuation=77]="LastPunctuation",ue[ue.FirstToken=0]="FirstToken",ue[ue.LastToken=155]="LastToken",ue[ue.FirstTriviaToken=2]="FirstTriviaToken",ue[ue.LastTriviaToken=7]="LastTriviaToken",ue[ue.FirstLiteralToken=8]="FirstLiteralToken",ue[ue.LastLiteralToken=14]="LastLiteralToken",ue[ue.FirstTemplateToken=14]="FirstTemplateToken",ue[ue.LastTemplateToken=17]="LastTemplateToken",ue[ue.FirstBinaryOperator=29]="FirstBinaryOperator",ue[ue.LastBinaryOperator=77]="LastBinaryOperator",ue[ue.FirstStatement=229]="FirstStatement",ue[ue.LastStatement=245]="LastStatement",ue[ue.FirstNode=156]="FirstNode",ue[ue.FirstJSDocNode=298]="FirstJSDocNode",ue[ue.LastJSDocNode=328]="LastJSDocNode",ue[ue.FirstJSDocTagNode=310]="FirstJSDocTagNode",ue[ue.LastJSDocTagNode=328]="LastJSDocTagNode",ue[ue.FirstContextualKeyword=125]="FirstContextualKeyword",ue[ue.LastContextualKeyword=155]="LastContextualKeyword",(ce=e.NodeFlags||(e.NodeFlags={}))[ce.None=0]="None",ce[ce.Let=1]="Let",ce[ce.Const=2]="Const",ce[ce.NestedNamespace=4]="NestedNamespace",ce[ce.Synthesized=8]="Synthesized",ce[ce.Namespace=16]="Namespace",ce[ce.OptionalChain=32]="OptionalChain",ce[ce.ExportContext=64]="ExportContext",ce[ce.ContainsThis=128]="ContainsThis",ce[ce.HasImplicitReturn=256]="HasImplicitReturn",ce[ce.HasExplicitReturn=512]="HasExplicitReturn",ce[ce.GlobalAugmentation=1024]="GlobalAugmentation",ce[ce.HasAsyncFunctions=2048]="HasAsyncFunctions",ce[ce.DisallowInContext=4096]="DisallowInContext",ce[ce.YieldContext=8192]="YieldContext",ce[ce.DecoratorContext=16384]="DecoratorContext",ce[ce.AwaitContext=32768]="AwaitContext",ce[ce.ThisNodeHasError=65536]="ThisNodeHasError",ce[ce.JavaScriptFile=131072]="JavaScriptFile",ce[ce.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",ce[ce.HasAggregatedChildData=524288]="HasAggregatedChildData",ce[ce.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",ce[ce.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",ce[ce.JSDoc=4194304]="JSDoc",ce[ce.Ambient=8388608]="Ambient",ce[ce.InWithStatement=16777216]="InWithStatement",ce[ce.JsonFile=33554432]="JsonFile",ce[ce.TypeCached=67108864]="TypeCached",ce[ce.Deprecated=134217728]="Deprecated",ce[ce.BlockScoped=3]="BlockScoped",ce[ce.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",ce[ce.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",ce[ce.ContextFlags=25358336]="ContextFlags",ce[ce.TypeExcludesFlags=40960]="TypeExcludesFlags",ce[ce.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags",(se=e.ModifierFlags||(e.ModifierFlags={}))[se.None=0]="None",se[se.Export=1]="Export",se[se.Ambient=2]="Ambient",se[se.Public=4]="Public",se[se.Private=8]="Private",se[se.Protected=16]="Protected",se[se.Static=32]="Static",se[se.Readonly=64]="Readonly",se[se.Abstract=128]="Abstract",se[se.Async=256]="Async",se[se.Default=512]="Default",se[se.Const=2048]="Const",se[se.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",se[se.Deprecated=8192]="Deprecated",se[se.HasComputedFlags=536870912]="HasComputedFlags",se[se.AccessibilityModifier=28]="AccessibilityModifier",se[se.ParameterPropertyModifier=92]="ParameterPropertyModifier",se[se.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",se[se.TypeScriptModifier=2270]="TypeScriptModifier",se[se.ExportDefault=513]="ExportDefault",se[se.All=11263]="All",(oe=e.JsxFlags||(e.JsxFlags={}))[oe.None=0]="None",oe[oe.IntrinsicNamedElement=1]="IntrinsicNamedElement",oe[oe.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",oe[oe.IntrinsicElement=3]="IntrinsicElement",(ae=e.RelationComparisonResult||(e.RelationComparisonResult={}))[ae.Succeeded=1]="Succeeded",ae[ae.Failed=2]="Failed",ae[ae.Reported=4]="Reported",ae[ae.ReportsUnmeasurable=8]="ReportsUnmeasurable",ae[ae.ReportsUnreliable=16]="ReportsUnreliable",ae[ae.ReportsMask=24]="ReportsMask",(ie=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[ie.None=0]="None",ie[ie.Auto=1]="Auto",ie[ie.Loop=2]="Loop",ie[ie.Unique=3]="Unique",ie[ie.Node=4]="Node",ie[ie.KindMask=7]="KindMask",ie[ie.ReservedInNestedScopes=8]="ReservedInNestedScopes",ie[ie.Optimistic=16]="Optimistic",ie[ie.FileLevel=32]="FileLevel",(re=e.TokenFlags||(e.TokenFlags={}))[re.None=0]="None",re[re.PrecedingLineBreak=1]="PrecedingLineBreak",re[re.PrecedingJSDocComment=2]="PrecedingJSDocComment",re[re.Unterminated=4]="Unterminated",re[re.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",re[re.Scientific=16]="Scientific",re[re.Octal=32]="Octal",re[re.HexSpecifier=64]="HexSpecifier",re[re.BinarySpecifier=128]="BinarySpecifier",re[re.OctalSpecifier=256]="OctalSpecifier",re[re.ContainsSeparator=512]="ContainsSeparator",re[re.UnicodeEscape=1024]="UnicodeEscape",re[re.ContainsInvalidEscape=2048]="ContainsInvalidEscape",re[re.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",re[re.NumericLiteralFlags=1008]="NumericLiteralFlags",re[re.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(ne=e.FlowFlags||(e.FlowFlags={}))[ne.Unreachable=1]="Unreachable",ne[ne.Start=2]="Start",ne[ne.BranchLabel=4]="BranchLabel",ne[ne.LoopLabel=8]="LoopLabel",ne[ne.Assignment=16]="Assignment",ne[ne.TrueCondition=32]="TrueCondition",ne[ne.FalseCondition=64]="FalseCondition",ne[ne.SwitchClause=128]="SwitchClause",ne[ne.ArrayMutation=256]="ArrayMutation",ne[ne.Call=512]="Call",ne[ne.ReduceLabel=1024]="ReduceLabel",ne[ne.Referenced=2048]="Referenced",ne[ne.Shared=4096]="Shared",ne[ne.Label=12]="Label",ne[ne.Condition=96]="Condition",(te=e.CommentDirectiveType||(e.CommentDirectiveType={}))[te.ExpectError=0]="ExpectError",te[te.Ignore=1]="Ignore",e.OperationCanceledException=function(){},(ee=e.RefFileKind||(e.RefFileKind={}))[ee.Import=0]="Import",ee[ee.ReferenceFile=1]="ReferenceFile",ee[ee.TypeReferenceDirective=2]="TypeReferenceDirective",($=e.StructureIsReused||(e.StructureIsReused={}))[$.Not=0]="Not",$[$.SafeModules=1]="SafeModules",$[$.Completely=2]="Completely",(Z=e.ExitStatus||(e.ExitStatus={}))[Z.Success=0]="Success",Z[Z.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",Z[Z.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",Z[Z.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",Z[Z.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",Z[Z.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(Y=e.UnionReduction||(e.UnionReduction={}))[Y.None=0]="None",Y[Y.Literal=1]="Literal",Y[Y.Subtype=2]="Subtype",(X=e.ContextFlags||(e.ContextFlags={}))[X.None=0]="None",X[X.Signature=1]="Signature",X[X.NoConstraints=2]="NoConstraints",X[X.Completions=4]="Completions",X[X.SkipBindingPatterns=8]="SkipBindingPatterns",(Q=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[Q.None=0]="None",Q[Q.NoTruncation=1]="NoTruncation",Q[Q.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",Q[Q.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",Q[Q.UseStructuralFallback=8]="UseStructuralFallback",Q[Q.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",Q[Q.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",Q[Q.UseFullyQualifiedType=64]="UseFullyQualifiedType",Q[Q.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",Q[Q.SuppressAnyReturnType=256]="SuppressAnyReturnType",Q[Q.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",Q[Q.MultilineObjectLiterals=1024]="MultilineObjectLiterals",Q[Q.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",Q[Q.UseTypeOfFunction=4096]="UseTypeOfFunction",Q[Q.OmitParameterModifiers=8192]="OmitParameterModifiers",Q[Q.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",Q[Q.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",Q[Q.NoTypeReduction=536870912]="NoTypeReduction",Q[Q.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",Q[Q.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",Q[Q.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",Q[Q.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",Q[Q.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",Q[Q.AllowEmptyTuple=524288]="AllowEmptyTuple",Q[Q.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",Q[Q.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",Q[Q.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",Q[Q.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",Q[Q.IgnoreErrors=70221824]="IgnoreErrors",Q[Q.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",Q[Q.InTypeAlias=8388608]="InTypeAlias",Q[Q.InInitialEntityName=16777216]="InInitialEntityName",Q[Q.InReverseMappedType=33554432]="InReverseMappedType",(G=e.TypeFormatFlags||(e.TypeFormatFlags={}))[G.None=0]="None",G[G.NoTruncation=1]="NoTruncation",G[G.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",G[G.UseStructuralFallback=8]="UseStructuralFallback",G[G.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",G[G.UseFullyQualifiedType=64]="UseFullyQualifiedType",G[G.SuppressAnyReturnType=256]="SuppressAnyReturnType",G[G.MultilineObjectLiterals=1024]="MultilineObjectLiterals",G[G.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",G[G.UseTypeOfFunction=4096]="UseTypeOfFunction",G[G.OmitParameterModifiers=8192]="OmitParameterModifiers",G[G.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",G[G.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",G[G.NoTypeReduction=536870912]="NoTypeReduction",G[G.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",G[G.AddUndefined=131072]="AddUndefined",G[G.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",G[G.InArrayType=524288]="InArrayType",G[G.InElementType=2097152]="InElementType",G[G.InFirstTypeArgument=4194304]="InFirstTypeArgument",G[G.InTypeAlias=8388608]="InTypeAlias",G[G.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",G[G.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask",(H=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[H.None=0]="None",H[H.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",H[H.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",H[H.AllowAnyNodeKind=4]="AllowAnyNodeKind",H[H.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",H[H.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(K=e.SymbolAccessibility||(e.SymbolAccessibility={}))[K.Accessible=0]="Accessible",K[K.NotAccessible=1]="NotAccessible",K[K.CannotBeNamed=2]="CannotBeNamed",(q=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[q.UnionOrIntersection=0]="UnionOrIntersection",q[q.Spread=1]="Spread",(W=e.TypePredicateKind||(e.TypePredicateKind={}))[W.This=0]="This",W[W.Identifier=1]="Identifier",W[W.AssertsThis=2]="AssertsThis",W[W.AssertsIdentifier=3]="AssertsIdentifier",(V=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[V.Unknown=0]="Unknown",V[V.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",V[V.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",V[V.NumberLikeType=3]="NumberLikeType",V[V.BigIntLikeType=4]="BigIntLikeType",V[V.StringLikeType=5]="StringLikeType",V[V.BooleanType=6]="BooleanType",V[V.ArrayLikeType=7]="ArrayLikeType",V[V.ESSymbolType=8]="ESSymbolType",V[V.Promise=9]="Promise",V[V.TypeWithCallSignature=10]="TypeWithCallSignature",V[V.ObjectType=11]="ObjectType",(J=e.SymbolFlags||(e.SymbolFlags={}))[J.None=0]="None",J[J.FunctionScopedVariable=1]="FunctionScopedVariable",J[J.BlockScopedVariable=2]="BlockScopedVariable",J[J.Property=4]="Property",J[J.EnumMember=8]="EnumMember",J[J.Function=16]="Function",J[J.Class=32]="Class",J[J.Interface=64]="Interface",J[J.ConstEnum=128]="ConstEnum",J[J.RegularEnum=256]="RegularEnum",J[J.ValueModule=512]="ValueModule",J[J.NamespaceModule=1024]="NamespaceModule",J[J.TypeLiteral=2048]="TypeLiteral",J[J.ObjectLiteral=4096]="ObjectLiteral",J[J.Method=8192]="Method",J[J.Constructor=16384]="Constructor",J[J.GetAccessor=32768]="GetAccessor",J[J.SetAccessor=65536]="SetAccessor",J[J.Signature=131072]="Signature",J[J.TypeParameter=262144]="TypeParameter",J[J.TypeAlias=524288]="TypeAlias",J[J.ExportValue=1048576]="ExportValue",J[J.Alias=2097152]="Alias",J[J.Prototype=4194304]="Prototype",J[J.ExportStar=8388608]="ExportStar",J[J.Optional=16777216]="Optional",J[J.Transient=33554432]="Transient",J[J.Assignment=67108864]="Assignment",J[J.ModuleExports=134217728]="ModuleExports",J[J.All=67108863]="All",J[J.Enum=384]="Enum",J[J.Variable=3]="Variable",J[J.Value=111551]="Value",J[J.Type=788968]="Type",J[J.Namespace=1920]="Namespace",J[J.Module=1536]="Module",J[J.Accessor=98304]="Accessor",J[J.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",J[J.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",J[J.ParameterExcludes=111551]="ParameterExcludes",J[J.PropertyExcludes=0]="PropertyExcludes",J[J.EnumMemberExcludes=900095]="EnumMemberExcludes",J[J.FunctionExcludes=110991]="FunctionExcludes",J[J.ClassExcludes=899503]="ClassExcludes",J[J.InterfaceExcludes=788872]="InterfaceExcludes",J[J.RegularEnumExcludes=899327]="RegularEnumExcludes",J[J.ConstEnumExcludes=899967]="ConstEnumExcludes",J[J.ValueModuleExcludes=110735]="ValueModuleExcludes",J[J.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",J[J.MethodExcludes=103359]="MethodExcludes",J[J.GetAccessorExcludes=46015]="GetAccessorExcludes",J[J.SetAccessorExcludes=78783]="SetAccessorExcludes",J[J.TypeParameterExcludes=526824]="TypeParameterExcludes",J[J.TypeAliasExcludes=788968]="TypeAliasExcludes",J[J.AliasExcludes=2097152]="AliasExcludes",J[J.ModuleMember=2623475]="ModuleMember",J[J.ExportHasLocal=944]="ExportHasLocal",J[J.BlockScoped=418]="BlockScoped",J[J.PropertyOrAccessor=98308]="PropertyOrAccessor",J[J.ClassMember=106500]="ClassMember",J[J.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",J[J.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",J[J.Classifiable=2885600]="Classifiable",J[J.LateBindingContainer=6256]="LateBindingContainer",(z=e.EnumKind||(e.EnumKind={}))[z.Numeric=0]="Numeric",z[z.Literal=1]="Literal",(U=e.CheckFlags||(e.CheckFlags={}))[U.Instantiated=1]="Instantiated",U[U.SyntheticProperty=2]="SyntheticProperty",U[U.SyntheticMethod=4]="SyntheticMethod",U[U.Readonly=8]="Readonly",U[U.ReadPartial=16]="ReadPartial",U[U.WritePartial=32]="WritePartial",U[U.HasNonUniformType=64]="HasNonUniformType",U[U.HasLiteralType=128]="HasLiteralType",U[U.ContainsPublic=256]="ContainsPublic",U[U.ContainsProtected=512]="ContainsProtected",U[U.ContainsPrivate=1024]="ContainsPrivate",U[U.ContainsStatic=2048]="ContainsStatic",U[U.Late=4096]="Late",U[U.ReverseMapped=8192]="ReverseMapped",U[U.OptionalParameter=16384]="OptionalParameter",U[U.RestParameter=32768]="RestParameter",U[U.DeferredType=65536]="DeferredType",U[U.HasNeverType=131072]="HasNeverType",U[U.Mapped=262144]="Mapped",U[U.StripOptional=524288]="StripOptional",U[U.Synthetic=6]="Synthetic",U[U.Discriminant=192]="Discriminant",U[U.Partial=48]="Partial",(j=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",j.Constructor="__constructor",j.New="__new",j.Index="__index",j.ExportStar="__export",j.Global="__global",j.Missing="__missing",j.Type="__type",j.Object="__object",j.JSXAttributes="__jsxAttributes",j.Class="__class",j.Function="__function",j.Computed="__computed",j.Resolving="__resolving__",j.ExportEquals="export=",j.Default="default",j.This="this",(B=e.NodeCheckFlags||(e.NodeCheckFlags={}))[B.TypeChecked=1]="TypeChecked",B[B.LexicalThis=2]="LexicalThis",B[B.CaptureThis=4]="CaptureThis",B[B.CaptureNewTarget=8]="CaptureNewTarget",B[B.SuperInstance=256]="SuperInstance",B[B.SuperStatic=512]="SuperStatic",B[B.ContextChecked=1024]="ContextChecked",B[B.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",B[B.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",B[B.CaptureArguments=8192]="CaptureArguments",B[B.EnumValuesComputed=16384]="EnumValuesComputed",B[B.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",B[B.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",B[B.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",B[B.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",B[B.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",B[B.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",B[B.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",B[B.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",B[B.AssignmentsMarked=8388608]="AssignmentsMarked",B[B.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",B[B.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",B[B.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",(R=e.TypeFlags||(e.TypeFlags={}))[R.Any=1]="Any",R[R.Unknown=2]="Unknown",R[R.String=4]="String",R[R.Number=8]="Number",R[R.Boolean=16]="Boolean",R[R.Enum=32]="Enum",R[R.BigInt=64]="BigInt",R[R.StringLiteral=128]="StringLiteral",R[R.NumberLiteral=256]="NumberLiteral",R[R.BooleanLiteral=512]="BooleanLiteral",R[R.EnumLiteral=1024]="EnumLiteral",R[R.BigIntLiteral=2048]="BigIntLiteral",R[R.ESSymbol=4096]="ESSymbol",R[R.UniqueESSymbol=8192]="UniqueESSymbol",R[R.Void=16384]="Void",R[R.Undefined=32768]="Undefined",R[R.Null=65536]="Null",R[R.Never=131072]="Never",R[R.TypeParameter=262144]="TypeParameter",R[R.Object=524288]="Object",R[R.Union=1048576]="Union",R[R.Intersection=2097152]="Intersection",R[R.Index=4194304]="Index",R[R.IndexedAccess=8388608]="IndexedAccess",R[R.Conditional=16777216]="Conditional",R[R.Substitution=33554432]="Substitution",R[R.NonPrimitive=67108864]="NonPrimitive",R[R.AnyOrUnknown=3]="AnyOrUnknown",R[R.Nullable=98304]="Nullable",R[R.Literal=2944]="Literal",R[R.Unit=109440]="Unit",R[R.StringOrNumberLiteral=384]="StringOrNumberLiteral",R[R.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",R[R.DefinitelyFalsy=117632]="DefinitelyFalsy",R[R.PossiblyFalsy=117724]="PossiblyFalsy",R[R.Intrinsic=67359327]="Intrinsic",R[R.Primitive=131068]="Primitive",R[R.StringLike=132]="StringLike",R[R.NumberLike=296]="NumberLike",R[R.BigIntLike=2112]="BigIntLike",R[R.BooleanLike=528]="BooleanLike",R[R.EnumLike=1056]="EnumLike",R[R.ESSymbolLike=12288]="ESSymbolLike",R[R.VoidLike=49152]="VoidLike",R[R.DisjointDomains=67238908]="DisjointDomains",R[R.UnionOrIntersection=3145728]="UnionOrIntersection",R[R.StructuredType=3670016]="StructuredType",R[R.TypeVariable=8650752]="TypeVariable",R[R.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",R[R.InstantiablePrimitive=4194304]="InstantiablePrimitive",R[R.Instantiable=63176704]="Instantiable",R[R.StructuredOrInstantiable=66846720]="StructuredOrInstantiable",R[R.ObjectFlagsType=3899393]="ObjectFlagsType",R[R.Simplifiable=25165824]="Simplifiable",R[R.Substructure=66584576]="Substructure",R[R.Narrowable=133970943]="Narrowable",R[R.NotPrimitiveUnion=66994211]="NotPrimitiveUnion",R[R.IncludesMask=71041023]="IncludesMask",R[R.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",R[R.IncludesNonWideningType=4194304]="IncludesNonWideningType",R[R.IncludesWildcard=8388608]="IncludesWildcard",R[R.IncludesEmptyObject=16777216]="IncludesEmptyObject",(L=e.ObjectFlags||(e.ObjectFlags={}))[L.Class=1]="Class",L[L.Interface=2]="Interface",L[L.Reference=4]="Reference",L[L.Tuple=8]="Tuple",L[L.Anonymous=16]="Anonymous",L[L.Mapped=32]="Mapped",L[L.Instantiated=64]="Instantiated",L[L.ObjectLiteral=128]="ObjectLiteral",L[L.EvolvingArray=256]="EvolvingArray",L[L.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",L[L.ContainsSpread=1024]="ContainsSpread",L[L.ReverseMapped=2048]="ReverseMapped",L[L.JsxAttributes=4096]="JsxAttributes",L[L.MarkerType=8192]="MarkerType",L[L.JSLiteral=16384]="JSLiteral",L[L.FreshLiteral=32768]="FreshLiteral",L[L.ArrayLiteral=65536]="ArrayLiteral",L[L.ObjectRestType=131072]="ObjectRestType",L[L.PrimitiveUnion=262144]="PrimitiveUnion",L[L.ContainsWideningType=524288]="ContainsWideningType",L[L.ContainsObjectOrArrayLiteral=1048576]="ContainsObjectOrArrayLiteral",L[L.NonInferrableType=2097152]="NonInferrableType",L[L.IsGenericObjectTypeComputed=4194304]="IsGenericObjectTypeComputed",L[L.IsGenericObjectType=8388608]="IsGenericObjectType",L[L.IsGenericIndexTypeComputed=16777216]="IsGenericIndexTypeComputed",L[L.IsGenericIndexType=33554432]="IsGenericIndexType",L[L.CouldContainTypeVariablesComputed=67108864]="CouldContainTypeVariablesComputed",L[L.CouldContainTypeVariables=134217728]="CouldContainTypeVariables",L[L.ContainsIntersections=268435456]="ContainsIntersections",L[L.IsNeverIntersectionComputed=268435456]="IsNeverIntersectionComputed",L[L.IsNeverIntersection=536870912]="IsNeverIntersection",L[L.ClassOrInterface=3]="ClassOrInterface",L[L.RequiresWidening=1572864]="RequiresWidening",L[L.PropagatingFlags=3670016]="PropagatingFlags",(M=e.VarianceFlags||(e.VarianceFlags={}))[M.Invariant=0]="Invariant",M[M.Covariant=1]="Covariant",M[M.Contravariant=2]="Contravariant",M[M.Bivariant=3]="Bivariant",M[M.Independent=4]="Independent",M[M.VarianceMask=7]="VarianceMask",M[M.Unmeasurable=8]="Unmeasurable",M[M.Unreliable=16]="Unreliable",M[M.AllowsStructuralFallback=24]="AllowsStructuralFallback",(I=e.ElementFlags||(e.ElementFlags={}))[I.Required=1]="Required",I[I.Optional=2]="Optional",I[I.Rest=4]="Rest",I[I.Variadic=8]="Variadic",I[I.Variable=12]="Variable",(F=e.JsxReferenceKind||(e.JsxReferenceKind={}))[F.Component=0]="Component",F[F.Function=1]="Function",F[F.Mixed=2]="Mixed",(O=e.SignatureKind||(e.SignatureKind={}))[O.Call=0]="Call",O[O.Construct=1]="Construct",(P=e.SignatureFlags||(e.SignatureFlags={}))[P.None=0]="None",P[P.HasRestParameter=1]="HasRestParameter",P[P.HasLiteralTypes=2]="HasLiteralTypes",P[P.IsInnerCallChain=4]="IsInnerCallChain",P[P.IsOuterCallChain=8]="IsOuterCallChain",P[P.IsUntypedSignatureInJSFile=16]="IsUntypedSignatureInJSFile",P[P.PropagatingFlags=19]="PropagatingFlags",P[P.CallChainFlags=12]="CallChainFlags",(N=e.IndexKind||(e.IndexKind={}))[N.String=0]="String",N[N.Number=1]="Number",(A=e.TypeMapKind||(e.TypeMapKind={}))[A.Simple=0]="Simple",A[A.Array=1]="Array",A[A.Function=2]="Function",A[A.Composite=3]="Composite",A[A.Merged=4]="Merged",(w=e.InferencePriority||(e.InferencePriority={}))[w.NakedTypeVariable=1]="NakedTypeVariable",w[w.SpeculativeTuple=2]="SpeculativeTuple",w[w.HomomorphicMappedType=4]="HomomorphicMappedType",w[w.PartialHomomorphicMappedType=8]="PartialHomomorphicMappedType",w[w.MappedTypeConstraint=16]="MappedTypeConstraint",w[w.ContravariantConditional=32]="ContravariantConditional",w[w.ReturnType=64]="ReturnType",w[w.LiteralKeyof=128]="LiteralKeyof",w[w.NoConstraints=256]="NoConstraints",w[w.AlwaysStrict=512]="AlwaysStrict",w[w.MaxValue=1024]="MaxValue",w[w.PriorityImpliesCombination=208]="PriorityImpliesCombination",w[w.Circularity=-1]="Circularity",(T=e.InferenceFlags||(e.InferenceFlags={}))[T.None=0]="None",T[T.NoDefault=1]="NoDefault",T[T.AnyDefault=2]="AnyDefault",T[T.SkippedGenericFunction=4]="SkippedGenericFunction",(E=e.Ternary||(e.Ternary={}))[E.False=0]="False",E[E.Maybe=1]="Maybe",E[E.True=-1]="True",(k=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[k.None=0]="None",k[k.ExportsProperty=1]="ExportsProperty",k[k.ModuleExports=2]="ModuleExports",k[k.PrototypeProperty=3]="PrototypeProperty",k[k.ThisProperty=4]="ThisProperty",k[k.Property=5]="Property",k[k.Prototype=6]="Prototype",k[k.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",k[k.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",k[k.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(t=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,n){void 0===n&&(n=!0);var r=t[e.category];return n?r.toLowerCase():r},(S=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[S.Classic=1]="Classic",S[S.NodeJs=2]="NodeJs",(C=e.WatchFileKind||(e.WatchFileKind={}))[C.FixedPollingInterval=0]="FixedPollingInterval",C[C.PriorityPollingInterval=1]="PriorityPollingInterval",C[C.DynamicPriorityPolling=2]="DynamicPriorityPolling",C[C.UseFsEvents=3]="UseFsEvents",C[C.UseFsEventsOnParentDirectory=4]="UseFsEventsOnParentDirectory",(D=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[D.UseFsEvents=0]="UseFsEvents",D[D.FixedPollingInterval=1]="FixedPollingInterval",D[D.DynamicPriorityPolling=2]="DynamicPriorityPolling",(x=e.PollingWatchKind||(e.PollingWatchKind={}))[x.FixedInterval=0]="FixedInterval",x[x.PriorityInterval=1]="PriorityInterval",x[x.DynamicPriority=2]="DynamicPriority",(b=e.ModuleKind||(e.ModuleKind={}))[b.None=0]="None",b[b.CommonJS=1]="CommonJS",b[b.AMD=2]="AMD",b[b.UMD=3]="UMD",b[b.System=4]="System",b[b.ES2015=5]="ES2015",b[b.ES2020=6]="ES2020",b[b.ESNext=99]="ESNext",(v=e.JsxEmit||(e.JsxEmit={}))[v.None=0]="None",v[v.Preserve=1]="Preserve",v[v.React=2]="React",v[v.ReactNative=3]="ReactNative",(y=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[y.Remove=0]="Remove",y[y.Preserve=1]="Preserve",y[y.Error=2]="Error",(h=e.NewLineKind||(e.NewLineKind={}))[h.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",h[h.LineFeed=1]="LineFeed",(m=e.ScriptKind||(e.ScriptKind={}))[m.Unknown=0]="Unknown",m[m.JS=1]="JS",m[m.JSX=2]="JSX",m[m.TS=3]="TS",m[m.TSX=4]="TSX",m[m.External=5]="External",m[m.JSON=6]="JSON",m[m.Deferred=7]="Deferred",(g=e.ScriptTarget||(e.ScriptTarget={}))[g.ES3=0]="ES3",g[g.ES5=1]="ES5",g[g.ES2015=2]="ES2015",g[g.ES2016=3]="ES2016",g[g.ES2017=4]="ES2017",g[g.ES2018=5]="ES2018",g[g.ES2019=6]="ES2019",g[g.ES2020=7]="ES2020",g[g.ESNext=99]="ESNext",g[g.JSON=100]="JSON",g[g.Latest=99]="Latest",(p=e.LanguageVariant||(e.LanguageVariant={}))[p.Standard=0]="Standard",p[p.JSX=1]="JSX",(f=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[f.None=0]="None",f[f.Recursive=1]="Recursive",(d=e.CharacterCodes||(e.CharacterCodes={}))[d.nullCharacter=0]="nullCharacter",d[d.maxAsciiCharacter=127]="maxAsciiCharacter",d[d.lineFeed=10]="lineFeed",d[d.carriageReturn=13]="carriageReturn",d[d.lineSeparator=8232]="lineSeparator",d[d.paragraphSeparator=8233]="paragraphSeparator",d[d.nextLine=133]="nextLine",d[d.space=32]="space",d[d.nonBreakingSpace=160]="nonBreakingSpace",d[d.enQuad=8192]="enQuad",d[d.emQuad=8193]="emQuad",d[d.enSpace=8194]="enSpace",d[d.emSpace=8195]="emSpace",d[d.threePerEmSpace=8196]="threePerEmSpace",d[d.fourPerEmSpace=8197]="fourPerEmSpace",d[d.sixPerEmSpace=8198]="sixPerEmSpace",d[d.figureSpace=8199]="figureSpace",d[d.punctuationSpace=8200]="punctuationSpace",d[d.thinSpace=8201]="thinSpace",d[d.hairSpace=8202]="hairSpace",d[d.zeroWidthSpace=8203]="zeroWidthSpace",d[d.narrowNoBreakSpace=8239]="narrowNoBreakSpace",d[d.ideographicSpace=12288]="ideographicSpace",d[d.mathematicalSpace=8287]="mathematicalSpace",d[d.ogham=5760]="ogham",d[d._=95]="_",d[d.$=36]="$",d[d._0=48]="_0",d[d._1=49]="_1",d[d._2=50]="_2",d[d._3=51]="_3",d[d._4=52]="_4",d[d._5=53]="_5",d[d._6=54]="_6",d[d._7=55]="_7",d[d._8=56]="_8",d[d._9=57]="_9",d[d.a=97]="a",d[d.b=98]="b",d[d.c=99]="c",d[d.d=100]="d",d[d.e=101]="e",d[d.f=102]="f",d[d.g=103]="g",d[d.h=104]="h",d[d.i=105]="i",d[d.j=106]="j",d[d.k=107]="k",d[d.l=108]="l",d[d.m=109]="m",d[d.n=110]="n",d[d.o=111]="o",d[d.p=112]="p",d[d.q=113]="q",d[d.r=114]="r",d[d.s=115]="s",d[d.t=116]="t",d[d.u=117]="u",d[d.v=118]="v",d[d.w=119]="w",d[d.x=120]="x",d[d.y=121]="y",d[d.z=122]="z",d[d.A=65]="A",d[d.B=66]="B",d[d.C=67]="C",d[d.D=68]="D",d[d.E=69]="E",d[d.F=70]="F",d[d.G=71]="G",d[d.H=72]="H",d[d.I=73]="I",d[d.J=74]="J",d[d.K=75]="K",d[d.L=76]="L",d[d.M=77]="M",d[d.N=78]="N",d[d.O=79]="O",d[d.P=80]="P",d[d.Q=81]="Q",d[d.R=82]="R",d[d.S=83]="S",d[d.T=84]="T",d[d.U=85]="U",d[d.V=86]="V",d[d.W=87]="W",d[d.X=88]="X",d[d.Y=89]="Y",d[d.Z=90]="Z",d[d.ampersand=38]="ampersand",d[d.asterisk=42]="asterisk",d[d.at=64]="at",d[d.backslash=92]="backslash",d[d.backtick=96]="backtick",d[d.bar=124]="bar",d[d.caret=94]="caret",d[d.closeBrace=125]="closeBrace",d[d.closeBracket=93]="closeBracket",d[d.closeParen=41]="closeParen",d[d.colon=58]="colon",d[d.comma=44]="comma",d[d.dot=46]="dot",d[d.doubleQuote=34]="doubleQuote",d[d.equals=61]="equals",d[d.exclamation=33]="exclamation",d[d.greaterThan=62]="greaterThan",d[d.hash=35]="hash",d[d.lessThan=60]="lessThan",d[d.minus=45]="minus",d[d.openBrace=123]="openBrace",d[d.openBracket=91]="openBracket",d[d.openParen=40]="openParen",d[d.percent=37]="percent",d[d.plus=43]="plus",d[d.question=63]="question",d[d.semicolon=59]="semicolon",d[d.singleQuote=39]="singleQuote",d[d.slash=47]="slash",d[d.tilde=126]="tilde",d[d.backspace=8]="backspace",d[d.formFeed=12]="formFeed",d[d.byteOrderMark=65279]="byteOrderMark",d[d.tab=9]="tab",d[d.verticalTab=11]="verticalTab",(_=e.Extension||(e.Extension={})).Ts=".ts",_.Tsx=".tsx",_.Dts=".d.ts",_.Js=".js",_.Jsx=".jsx",_.Json=".json",_.TsBuildInfo=".tsbuildinfo",(l=e.TransformFlags||(e.TransformFlags={}))[l.None=0]="None",l[l.ContainsTypeScript=1]="ContainsTypeScript",l[l.ContainsJsx=2]="ContainsJsx",l[l.ContainsESNext=4]="ContainsESNext",l[l.ContainsES2020=8]="ContainsES2020",l[l.ContainsES2019=16]="ContainsES2019",l[l.ContainsES2018=32]="ContainsES2018",l[l.ContainsES2017=64]="ContainsES2017",l[l.ContainsES2016=128]="ContainsES2016",l[l.ContainsES2015=256]="ContainsES2015",l[l.ContainsGenerator=512]="ContainsGenerator",l[l.ContainsDestructuringAssignment=1024]="ContainsDestructuringAssignment",l[l.ContainsTypeScriptClassSyntax=2048]="ContainsTypeScriptClassSyntax",l[l.ContainsLexicalThis=4096]="ContainsLexicalThis",l[l.ContainsRestOrSpread=8192]="ContainsRestOrSpread",l[l.ContainsObjectRestOrSpread=16384]="ContainsObjectRestOrSpread",l[l.ContainsComputedPropertyName=32768]="ContainsComputedPropertyName",l[l.ContainsBlockScopedBinding=65536]="ContainsBlockScopedBinding",l[l.ContainsBindingPattern=131072]="ContainsBindingPattern",l[l.ContainsYield=262144]="ContainsYield",l[l.ContainsAwait=524288]="ContainsAwait",l[l.ContainsHoistedDeclarationOrCompletion=1048576]="ContainsHoistedDeclarationOrCompletion",l[l.ContainsDynamicImport=2097152]="ContainsDynamicImport",l[l.ContainsClassFields=4194304]="ContainsClassFields",l[l.ContainsPossibleTopLevelAwait=8388608]="ContainsPossibleTopLevelAwait",l[l.HasComputedFlags=536870912]="HasComputedFlags",l[l.AssertTypeScript=1]="AssertTypeScript",l[l.AssertJsx=2]="AssertJsx",l[l.AssertESNext=4]="AssertESNext",l[l.AssertES2020=8]="AssertES2020",l[l.AssertES2019=16]="AssertES2019",l[l.AssertES2018=32]="AssertES2018",l[l.AssertES2017=64]="AssertES2017",l[l.AssertES2016=128]="AssertES2016",l[l.AssertES2015=256]="AssertES2015",l[l.AssertGenerator=512]="AssertGenerator",l[l.AssertDestructuringAssignment=1024]="AssertDestructuringAssignment",l[l.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",l[l.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",l[l.NodeExcludes=536870912]="NodeExcludes",l[l.ArrowFunctionExcludes=547309568]="ArrowFunctionExcludes",l[l.FunctionExcludes=547313664]="FunctionExcludes",l[l.ConstructorExcludes=547311616]="ConstructorExcludes",l[l.MethodOrAccessorExcludes=538923008]="MethodOrAccessorExcludes",l[l.PropertyExcludes=536875008]="PropertyExcludes",l[l.ClassExcludes=536905728]="ClassExcludes",l[l.ModuleExcludes=546379776]="ModuleExcludes",l[l.TypeExcludes=-2]="TypeExcludes",l[l.ObjectLiteralExcludes=536922112]="ObjectLiteralExcludes",l[l.ArrayLiteralOrCallOrNewExcludes=536879104]="ArrayLiteralOrCallOrNewExcludes",l[l.VariableDeclarationListExcludes=537018368]="VariableDeclarationListExcludes",l[l.ParameterExcludes=536870912]="ParameterExcludes",l[l.CatchClauseExcludes=536887296]="CatchClauseExcludes",l[l.BindingPatternExcludes=536879104]="BindingPatternExcludes",l[l.PropertyNamePropagatingFlags=4096]="PropertyNamePropagatingFlags",(u=e.EmitFlags||(e.EmitFlags={}))[u.None=0]="None",u[u.SingleLine=1]="SingleLine",u[u.AdviseOnEmitNode=2]="AdviseOnEmitNode",u[u.NoSubstitution=4]="NoSubstitution",u[u.CapturesThis=8]="CapturesThis",u[u.NoLeadingSourceMap=16]="NoLeadingSourceMap",u[u.NoTrailingSourceMap=32]="NoTrailingSourceMap",u[u.NoSourceMap=48]="NoSourceMap",u[u.NoNestedSourceMaps=64]="NoNestedSourceMaps",u[u.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",u[u.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",u[u.NoTokenSourceMaps=384]="NoTokenSourceMaps",u[u.NoLeadingComments=512]="NoLeadingComments",u[u.NoTrailingComments=1024]="NoTrailingComments",u[u.NoComments=1536]="NoComments",u[u.NoNestedComments=2048]="NoNestedComments",u[u.HelperName=4096]="HelperName",u[u.ExportName=8192]="ExportName",u[u.LocalName=16384]="LocalName",u[u.InternalName=32768]="InternalName",u[u.Indented=65536]="Indented",u[u.NoIndentation=131072]="NoIndentation",u[u.AsyncFunctionBody=262144]="AsyncFunctionBody",u[u.ReuseTempVariableScope=524288]="ReuseTempVariableScope",u[u.CustomPrologue=1048576]="CustomPrologue",u[u.NoHoisting=2097152]="NoHoisting",u[u.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",u[u.Iterator=8388608]="Iterator",u[u.NoAsciiEscaping=16777216]="NoAsciiEscaping",u[u.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",u[u.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",u[u.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",(c=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[c.Extends=1]="Extends",c[c.Assign=2]="Assign",c[c.Rest=4]="Rest",c[c.Decorate=8]="Decorate",c[c.Metadata=16]="Metadata",c[c.Param=32]="Param",c[c.Awaiter=64]="Awaiter",c[c.Generator=128]="Generator",c[c.Values=256]="Values",c[c.Read=512]="Read",c[c.Spread=1024]="Spread",c[c.SpreadArrays=2048]="SpreadArrays",c[c.Await=4096]="Await",c[c.AsyncGenerator=8192]="AsyncGenerator",c[c.AsyncDelegator=16384]="AsyncDelegator",c[c.AsyncValues=32768]="AsyncValues",c[c.ExportStar=65536]="ExportStar",c[c.ImportStar=131072]="ImportStar",c[c.ImportDefault=262144]="ImportDefault",c[c.MakeTemplateObject=524288]="MakeTemplateObject",c[c.ClassPrivateFieldGet=1048576]="ClassPrivateFieldGet",c[c.ClassPrivateFieldSet=2097152]="ClassPrivateFieldSet",c[c.CreateBinding=4194304]="CreateBinding",c[c.FirstEmitHelper=1]="FirstEmitHelper",c[c.LastEmitHelper=4194304]="LastEmitHelper",c[c.ForOfIncludes=256]="ForOfIncludes",c[c.ForAwaitOfIncludes=32768]="ForAwaitOfIncludes",c[c.AsyncGeneratorIncludes=12288]="AsyncGeneratorIncludes",c[c.AsyncDelegatorIncludes=53248]="AsyncDelegatorIncludes",c[c.SpreadIncludes=1536]="SpreadIncludes",(s=e.EmitHint||(e.EmitHint={}))[s.SourceFile=0]="SourceFile",s[s.Expression=1]="Expression",s[s.IdentifierName=2]="IdentifierName",s[s.MappedTypeParameter=3]="MappedTypeParameter",s[s.Unspecified=4]="Unspecified",s[s.EmbeddedStatement=5]="EmbeddedStatement",s[s.JsxAttributeValue=6]="JsxAttributeValue",(o=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[o.Parentheses=1]="Parentheses",o[o.TypeAssertions=2]="TypeAssertions",o[o.NonNullAssertions=4]="NonNullAssertions",o[o.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",o[o.Assertions=6]="Assertions",o[o.All=15]="All",(a=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[a.None=0]="None",a[a.InParameters=1]="InParameters",a[a.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(i=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",i.EmitHelpers="emitHelpers",i.NoDefaultLib="no-default-lib",i.Reference="reference",i.Type="type",i.Lib="lib",i.Prepend="prepend",i.Text="text",i.Internal="internal",(r=e.ListFormat||(e.ListFormat={}))[r.None=0]="None",r[r.SingleLine=0]="SingleLine",r[r.MultiLine=1]="MultiLine",r[r.PreserveLines=2]="PreserveLines",r[r.LinesMask=3]="LinesMask",r[r.NotDelimited=0]="NotDelimited",r[r.BarDelimited=4]="BarDelimited",r[r.AmpersandDelimited=8]="AmpersandDelimited",r[r.CommaDelimited=16]="CommaDelimited",r[r.AsteriskDelimited=32]="AsteriskDelimited",r[r.DelimitersMask=60]="DelimitersMask",r[r.AllowTrailingComma=64]="AllowTrailingComma",r[r.Indented=128]="Indented",r[r.SpaceBetweenBraces=256]="SpaceBetweenBraces",r[r.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",r[r.Braces=1024]="Braces",r[r.Parenthesis=2048]="Parenthesis",r[r.AngleBrackets=4096]="AngleBrackets",r[r.SquareBrackets=8192]="SquareBrackets",r[r.BracketsMask=15360]="BracketsMask",r[r.OptionalIfUndefined=16384]="OptionalIfUndefined",r[r.OptionalIfEmpty=32768]="OptionalIfEmpty",r[r.Optional=49152]="Optional",r[r.PreferNewLine=65536]="PreferNewLine",r[r.NoTrailingNewLine=131072]="NoTrailingNewLine",r[r.NoInterveningComments=262144]="NoInterveningComments",r[r.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",r[r.SingleElement=1048576]="SingleElement",r[r.SpaceAfterList=2097152]="SpaceAfterList",r[r.Modifiers=262656]="Modifiers",r[r.HeritageClauses=512]="HeritageClauses",r[r.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",r[r.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",r[r.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",r[r.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",r[r.UnionTypeConstituents=516]="UnionTypeConstituents",r[r.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",r[r.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",r[r.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",r[r.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",r[r.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",r[r.CommaListElements=528]="CommaListElements",r[r.CallExpressionArguments=2576]="CallExpressionArguments",r[r.NewExpressionArguments=18960]="NewExpressionArguments",r[r.TemplateExpressionSpans=262144]="TemplateExpressionSpans",r[r.SingleLineBlockStatements=768]="SingleLineBlockStatements",r[r.MultiLineBlockStatements=129]="MultiLineBlockStatements",r[r.VariableDeclarationList=528]="VariableDeclarationList",r[r.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",r[r.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",r[r.ClassHeritageClauses=0]="ClassHeritageClauses",r[r.ClassMembers=129]="ClassMembers",r[r.InterfaceMembers=129]="InterfaceMembers",r[r.EnumMembers=145]="EnumMembers",r[r.CaseBlockClauses=129]="CaseBlockClauses",r[r.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",r[r.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",r[r.JsxElementAttributes=262656]="JsxElementAttributes",r[r.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",r[r.HeritageClauseTypes=528]="HeritageClauseTypes",r[r.SourceFileStatements=131073]="SourceFileStatements",r[r.Decorators=2146305]="Decorators",r[r.TypeArguments=53776]="TypeArguments",r[r.TypeParameters=53776]="TypeParameters",r[r.Parameters=2576]="Parameters",r[r.IndexSignatureParameters=8848]="IndexSignatureParameters",r[r.JSDocComment=33]="JSDocComment",(n=e.PragmaKindFlags||(e.PragmaKindFlags={}))[n.None=0]="None",n[n.TripleSlashXML=1]="TripleSlashXML",n[n.SingleLine=2]="SingleLine",n[n.MultiLine=4]="MultiLine",n[n.All=7]="All",n[n.Default=7]="Default",e.commentPragmas={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}],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}}}(l||(l={})),function(e){function t(e){for(var t=5381,n=0;n0;++a===t.length&&(c=4,g="linux"===process.platform||"darwin"===process.platform,m=u.platform(),y="win32"!==m&&"win64"!==m&&!N((l=__filename,l.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t}))),b=p&&("win32"===process.platform||"darwin"===process.platform),D=v({pollingWatchFile:f(function(e,t,n){var i;return s.watchFile(e,{persistent:!0,interval:n},a),{close:function(){return s.unwatchFile(e,a)}};function a(n,a){var o=0==+a.mtime||i===r.Deleted;if(0==+n.mtime){if(o)return;i=r.Deleted}else if(o)i=r.Created;else{if(+n.mtime==+a.mtime)return;i=r.Changed}t(e,i)}},y),getModifiedTime:F,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatch:function(t,n,i,a,o,c){var u,l,_;g&&(l=t.substr(t.lastIndexOf(e.directorySeparator)),_=l.slice(e.directorySeparator.length));var d=A(t,n)?p():y();return{close:function(){d.close(),d=void 0}};function f(n){e.sysLog("sysLog:: "+t+":: Changing watcher to "+(n===p?"Present":"Missing")+"FileSystemEntryWatcher"),i("rename",""),d&&(d.close(),d=n())}function p(){void 0===u&&(u=b?{persistent:!0,recursive:!!a}:{persistent:!0});try{var n=s.watch(t,u,g?m:i);return n.on("error",function(){return f(y)}),n}catch(r){return e.sysLog("sysLog:: "+t+":: Changing to fsWatchFile"),C(t,h(i),o,c)}}function m(e,r){return"rename"!==e||r&&r!==_&&r.lastIndexOf(l)!==r.length-l.length||A(t,n)?i(e,r):f(y)}function y(){return C(t,function(e,i){i===r.Created&&A(t,n)&&f(p)},o,c)}},useCaseSensitiveFileNames:y,fileExists:N,fsSupportsRecursiveFsWatch:b,directoryExists:P,getAccessibleSortedChildDirectories:function(e){return w(e).directories},realpath:O,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY}),C=D.watchFile,S=D.watchDirectory,k={args:process.argv.slice(2),newLine:u.EOL,useCaseSensitiveFileNames:y,write:function(e){process.stdout.write(e)},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:function(t,n){e.perfLogger.logStartReadFile(t);var r=function(e,t){var n;try{n=s.readFileSync(e)}catch(o){return}var r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(var i=0;i=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")}(t);return e.perfLogger.logStopReadFile(),r},writeFile:function(t,n,r){var i;e.perfLogger.logEvent("WriteFile: "+t),r&&(n="\ufeff"+n);try{i=s.openSync(t,"w"),s.writeSync(i,n,void 0,"utf8")}finally{void 0!==i&&s.closeSync(i)}},watchFile:C,watchDirectory:S,resolvePath:function(e){return c.resolve(e)},fileExists:N,directoryExists:P,createDirectory:function(e){if(!k.directoryExists(e))try{s.mkdirSync(e)}catch(t){if("EEXIST"!==t.code)throw t}},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:function(e){return w(e).directories.slice()},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(t,n,r,i,a){return e.matchFiles(t,n,r,i,y,process.cwd(),a,w,O)},getModifiedTime:F,setModifiedTime:function(e,t){try{s.utimesSync(e,t,t)}catch(n){return}},deleteFile:function(e){try{return s.unlinkSync(e)}catch(t){return}},createHash:i?I:t,createSHA256Hash:i?I:void 0,getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=s.statSync(e);if(t.isFile())return t.size}catch(M){}return 0},exit:function(e){E(function(){return process.exit(e)})},enableCPUProfiler:function(e,t){if(a)return t(),!1;var r=n(7);if(!r||!r.Session)return t(),!1;var i=new r.Session;return i.connect(),i.post("Profiler.enable",function(){i.post("Profiler.start",function(){a=i,_=e,t()})}),!0},disableCPUProfiler:E,realpath:O,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||e.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{n(6).install()}catch(M){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){process.stdout.write("\x1bc")},setBlocking:function(){process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:T,base64decode:function(e){return T(e,"base64").toString("utf8")},base64encode:function(e){return T(e).toString("base64")},require:function(t,r){try{var i=e.resolveJSModule(r,t,k);return{module:n("izN1")(i),modulePath:i,error:void 0}}catch(a){return{module:void 0,modulePath:void 0,error:a}}}};return k;function E(t){if(a&&"stopping"!==a){var n=a;return a.post("Profiler.stop",function(r,i){var u=i.profile;if(!r){try{s.statSync(_).isDirectory()&&(_=c.join(_,(new Date).toISOString().replace(/:/g,"-")+"+P"+process.pid+".cpuprofile"))}catch(D){}try{s.mkdirSync(c.dirname(_),{recursive:!0})}catch(l){}s.writeFileSync(_,JSON.stringify(function(t){for(var n=0,r=new e.Map,i=e.normalizeSlashes(__dirname),a="file://"+(1===e.getRootLength(i)?"":"/")+i,s=0,c=t.nodes;s0}function a(e){return 0!==l(e)}function o(e){return/^\.\.?($|[\\/])/.test(e)}function s(t,n){return t.length>n.length&&e.endsWith(t,n)}function c(e){return e.length>0&&n(e.charCodeAt(e.length-1))}function u(e){return e>=97&&e<=122||e>=65&&e<=90}function l(t){if(!t)return 0;var n=t.charCodeAt(0);if(47===n||92===n){if(t.charCodeAt(1)!==n)return 1;var r=t.indexOf(47===n?e.directorySeparator:"\\",2);return r<0?t.length:r+1}if(u(n)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf("://");if(-1!==a){var o=a+"://".length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var c=t.slice(0,a),l=t.slice(o,s);if("file"===c&&(""===l||"localhost"===l)&&u(t.charCodeAt(s+1))){var _=function(e,t){var n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){var r=e.charCodeAt(t+2);if(97===r||65===r)return t+3}return-1}(t,s+2);if(-1!==_){if(47===t.charCodeAt(_))return~(_+1);if(_===t.length)return~_}}return~(s+1)}return~t.length}return 0}function _(e){var t=l(e);return t<0?~t:t}function d(t){var n=_(t=y(t));return n===t.length?t:(t=k(t)).slice(0,Math.max(n,t.lastIndexOf(e.directorySeparator)))}function f(t,n,r){if(_(t=y(t))===t.length)return"";var i=(t=k(t)).slice(Math.max(_(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==n&&void 0!==r?g(i,n,r):void 0;return a?i.slice(0,i.length-a.length):i}function p(t,n,r){if(e.startsWith(n,".")||(n="."+n),t.length>=n.length&&46===t.charCodeAt(t.length-n.length)){var i=t.slice(t.length-n.length);if(r(i,n))return i}}function g(t,n,r){if(n)return function(e,t,n){if("string"==typeof t)return p(e,t,n)||"";for(var r=0,i=t;r=0?i.substring(a):""}function m(t,n){return void 0===n&&(n=""),function(t,n){var r=t.substring(0,n),a=t.substring(n).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),i([r],a)}(t=b(n,t),_(t))}function h(t){return 0===t.length?"":(t[0]&&E(t[0]))+t.slice(1).join(e.directorySeparator)}function y(n){return n.replace(t,e.directorySeparator)}function v(t){if(!e.some(t))return[];for(var n=[t[0]],r=1;r1){if(".."!==n[n.length-1]){n.pop();continue}}else if(n[0])continue;n.push(i)}}return n}function b(e){for(var t=[],n=1;n0&&t===e.length},e.pathIsAbsolute=a,e.pathIsRelative=o,e.hasExtension=function(t){return e.stringContains(f(t),".")},e.fileExtensionIs=s,e.fileExtensionIsOneOf=function(e,t){for(var n=0,r=t;n0==_(n)>0,"Paths must either both be absolute or both be relative"),h(N(t,n,"boolean"==typeof r&&r?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,"function"==typeof r?r:e.identity))}function O(t,n,i,a,o){var s=N(x(i,t),x(i,n),e.equateStringsCaseSensitive,a),c=s[0];if(o&&r(c)){var u=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=u+c}return h(s)}e.comparePathsCaseSensitive=function(t,n){return A(t,n,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,n){return A(t,n,e.compareStringsCaseInsensitive)},e.comparePaths=function(t,n,r,i){return"string"==typeof r?(t=b(r,t),n=b(r,n)):"boolean"==typeof r&&(i=r),A(t,n,e.getStringComparer(i))},e.containsPath=function(t,n,r,i){if("string"==typeof r?(t=b(r,t),n=b(r,n)):"boolean"==typeof r&&(i=r),void 0===t||void 0===n)return!1;if(t===n)return!0;var a=v(m(t)),o=v(m(n));if(o.length type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"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:t(1068,e.DiagnosticCategory.Error,"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:t(1069,e.DiagnosticCategory.Error,"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:t(1070,e.DiagnosticCategory.Error,"_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:t(1071,e.DiagnosticCategory.Error,"_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:t(1079,e.DiagnosticCategory.Error,"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:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_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:t(1091,e.DiagnosticCategory.Error,"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:t(1092,e.DiagnosticCategory.Error,"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:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"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:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"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:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"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:t(1105,e.DiagnosticCategory.Error,"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."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"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:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"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:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"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:t(1116,e.DiagnosticCategory.Error,"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_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"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:t(1119,e.DiagnosticCategory.Error,"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:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"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:t(1148,e.DiagnosticCategory.Error,"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:t(1149,e.DiagnosticCategory.Error,"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."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"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:t(1163,e.DiagnosticCategory.Error,"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:t(1164,e.DiagnosticCategory.Error,"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:t(1165,e.DiagnosticCategory.Error,"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_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a 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:t(1168,e.DiagnosticCategory.Error,"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:t(1169,e.DiagnosticCategory.Error,"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:t(1170,e.DiagnosticCategory.Error,"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:t(1171,e.DiagnosticCategory.Error,"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:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"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:t(1187,e.DiagnosticCategory.Error,"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:t(1188,e.DiagnosticCategory.Error,"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:t(1189,e.DiagnosticCategory.Error,"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:t(1190,e.DiagnosticCategory.Error,"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:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"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:t(1195,e.DiagnosticCategory.Error,"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:t(1196,e.DiagnosticCategory.Error,"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:t(1197,e.DiagnosticCategory.Error,"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:t(1198,e.DiagnosticCategory.Error,"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:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"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:t(1202,e.DiagnosticCategory.Error,"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:t(1203,e.DiagnosticCategory.Error,"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_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"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."),All_files_must_be_modules_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"All_files_must_be_modules_when_the_isolatedModules_flag_is_provided_1208","All files must be modules when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"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:t(1212,e.DiagnosticCategory.Error,"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:t(1213,e.DiagnosticCategory.Error,"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:t(1214,e.DiagnosticCategory.Error,"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:t(1215,e.DiagnosticCategory.Error,"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:t(1216,e.DiagnosticCategory.Error,"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:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"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:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"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:t(1227,e.DiagnosticCategory.Error,"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:t(1228,e.DiagnosticCategory.Error,"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:t(1229,e.DiagnosticCategory.Error,"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:t(1230,e.DiagnosticCategory.Error,"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_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"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_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"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:t(1237,e.DiagnosticCategory.Error,"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:t(1238,e.DiagnosticCategory.Error,"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:t(1239,e.DiagnosticCategory.Error,"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:t(1240,e.DiagnosticCategory.Error,"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:t(1241,e.DiagnosticCategory.Error,"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:t(1242,e.DiagnosticCategory.Error,"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:t(1243,e.DiagnosticCategory.Error,"_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:t(1244,e.DiagnosticCategory.Error,"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:t(1245,e.DiagnosticCategory.Error,"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:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"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:t(1248,e.DiagnosticCategory.Error,"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:t(1249,e.DiagnosticCategory.Error,"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:t(1250,e.DiagnosticCategory.Error,"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:t(1251,e.DiagnosticCategory.Error,"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:t(1252,e.DiagnosticCategory.Error,"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."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"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:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_rest_element_must_be_last_in_a_tuple_type:t(1256,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_tuple_type_1256","A rest element must be last in a tuple type."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation:t(1258,e.DiagnosticCategory.Error,"Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation_1258","Definite assignment assertions can only be used along with a type annotation."),Module_0_can_only_be_default_imported_using_the_1_flag:t(1259,e.DiagnosticCategory.Error,"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:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"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:t(1262,e.DiagnosticCategory.Error,"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."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"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:t(1308,e.DiagnosticCategory.Error,"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."),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:t(1312,e.DiagnosticCategory.Error,"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:t(1313,e.DiagnosticCategory.Error,"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:t(1314,e.DiagnosticCategory.Error,"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:t(1315,e.DiagnosticCategory.Error,"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:t(1316,e.DiagnosticCategory.Error,"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:t(1317,e.DiagnosticCategory.Error,"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:t(1318,e.DiagnosticCategory.Error,"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:t(1319,e.DiagnosticCategory.Error,"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:t(1320,e.DiagnosticCategory.Error,"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:t(1321,e.DiagnosticCategory.Error,"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:t(1322,e.DiagnosticCategory.Error,"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_esnext_commonjs_amd_system_or_umd:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"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:t(1328,e.DiagnosticCategory.Error,"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:t(1329,e.DiagnosticCategory.Error,"_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:t(1330,e.DiagnosticCategory.Error,"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:t(1331,e.DiagnosticCategory.Error,"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:t(1332,e.DiagnosticCategory.Error,"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:t(1333,e.DiagnosticCategory.Error,"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:t(1334,e.DiagnosticCategory.Error,"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:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:t(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"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:t(1339,e.DiagnosticCategory.Error,"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:t(1340,e.DiagnosticCategory.Error,"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}')'?"),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'esnext' or 'system'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"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:t(1346,e.DiagnosticCategory.Error,"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:t(1347,e.DiagnosticCategory.Error,"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:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"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:t(1351,e.DiagnosticCategory.Error,"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:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"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:t(1354,e.DiagnosticCategory.Error,"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:t(1355,e.DiagnosticCategory.Error,"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:t(1356,e.DiagnosticCategory.Error,"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:t(1357,e.DiagnosticCategory.Error,"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:t(1358,e.DiagnosticCategory.Error,"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:t(1359,e.DiagnosticCategory.Error,"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."),Did_you_mean_to_parenthesize_this_function_type:t(1360,e.DiagnosticCategory.Error,"Did_you_mean_to_parenthesize_this_function_type_1360","Did you mean to parenthesize this function type?"),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_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:t(1362,e.DiagnosticCategory.Error,"_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:t(1363,e.DiagnosticCategory.Error,"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:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"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:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(1368,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_1368","Specify emit/checking behavior for imports that are only used for types"),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),Only_ECMAScript_imports_may_use_import_type:t(1370,e.DiagnosticCategory.Error,"Only_ECMAScript_imports_may_use_import_type_1370","Only ECMAScript imports may use 'import type'."),This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is__1371","This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),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:t(1375,e.DiagnosticCategory.Error,"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:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_t_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"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:t(1380,e.DiagnosticCategory.Error,"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:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:t(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"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:t(1386,e.DiagnosticCategory.Error,"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:t(1387,e.DiagnosticCategory.Error,"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:t(1388,e.DiagnosticCategory.Error,"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."),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"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:t(2201,e.DiagnosticCategory.Error,"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:t(2202,e.DiagnosticCategory.Error,"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:t(2203,e.DiagnosticCategory.Error,"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:t(2204,e.DiagnosticCategory.Error,"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:t(2205,e.DiagnosticCategory.Error,"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),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"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:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"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:t(2308,e.DiagnosticCategory.Error,"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:t(2309,e.DiagnosticCategory.Error,"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:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"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:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"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:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"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:t(2320,e.DiagnosticCategory.Error,"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:t(2321,e.DiagnosticCategory.Error,"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:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"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:t(2325,e.DiagnosticCategory.Error,"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:t(2326,e.DiagnosticCategory.Error,"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:t(2327,e.DiagnosticCategory.Error,"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:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"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:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"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:t(2335,e.DiagnosticCategory.Error,"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:t(2336,e.DiagnosticCategory.Error,"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:t(2337,e.DiagnosticCategory.Error,"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:t(2338,e.DiagnosticCategory.Error,"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:t(2339,e.DiagnosticCategory.Error,"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:t(2340,e.DiagnosticCategory.Error,"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:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"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:t(2344,e.DiagnosticCategory.Error,"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:t(2345,e.DiagnosticCategory.Error,"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}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"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:t(2348,e.DiagnosticCategory.Error,"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:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"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:t(2351,e.DiagnosticCategory.Error,"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:t(2352,e.DiagnosticCategory.Error,"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:t(2353,e.DiagnosticCategory.Error,"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:t(2354,e.DiagnosticCategory.Error,"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_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"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:t(2357,e.DiagnosticCategory.Error,"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:t(2358,e.DiagnosticCategory.Error,"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_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"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:t(2363,e.DiagnosticCategory.Error,"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:t(2364,e.DiagnosticCategory.Error,"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:t(2365,e.DiagnosticCategory.Error,"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:t(2366,e.DiagnosticCategory.Error,"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_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"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:t(2370,e.DiagnosticCategory.Error,"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:t(2371,e.DiagnosticCategory.Error,"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:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"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:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"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:t(2384,e.DiagnosticCategory.Error,"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:t(2385,e.DiagnosticCategory.Error,"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:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"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:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"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:t(2395,e.DiagnosticCategory.Error,"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:t(2396,e.DiagnosticCategory.Error,"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:t(2397,e.DiagnosticCategory.Error,"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:t(2398,e.DiagnosticCategory.Error,"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:t(2399,e.DiagnosticCategory.Error,"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:t(2400,e.DiagnosticCategory.Error,"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."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"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:t(2403,e.DiagnosticCategory.Error,"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:t(2404,e.DiagnosticCategory.Error,"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:t(2405,e.DiagnosticCategory.Error,"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:t(2406,e.DiagnosticCategory.Error,"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:t(2407,e.DiagnosticCategory.Error,"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:t(2408,e.DiagnosticCategory.Error,"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:t(2409,e.DiagnosticCategory.Error,"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:t(2410,e.DiagnosticCategory.Error,"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'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"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:t(2416,e.DiagnosticCategory.Error,"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:t(2417,e.DiagnosticCategory.Error,"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:t(2418,e.DiagnosticCategory.Error,"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}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"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:t(2422,e.DiagnosticCategory.Error,"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:t(2423,e.DiagnosticCategory.Error,"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:t(2425,e.DiagnosticCategory.Error,"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:t(2426,e.DiagnosticCategory.Error,"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:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"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:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"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:t(2432,e.DiagnosticCategory.Error,"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:t(2433,e.DiagnosticCategory.Error,"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:t(2434,e.DiagnosticCategory.Error,"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:t(2435,e.DiagnosticCategory.Error,"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:t(2436,e.DiagnosticCategory.Error,"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:t(2437,e.DiagnosticCategory.Error,"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:t(2438,e.DiagnosticCategory.Error,"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:t(2439,e.DiagnosticCategory.Error,"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:t(2440,e.DiagnosticCategory.Error,"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:t(2441,e.DiagnosticCategory.Error,"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:t(2442,e.DiagnosticCategory.Error,"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:t(2443,e.DiagnosticCategory.Error,"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:t(2444,e.DiagnosticCategory.Error,"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:t(2445,e.DiagnosticCategory.Error,"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:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"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:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"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:t(2459,e.DiagnosticCategory.Error,"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:t(2460,e.DiagnosticCategory.Error,"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:t(2461,e.DiagnosticCategory.Error,"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:t(2462,e.DiagnosticCategory.Error,"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:t(2463,e.DiagnosticCategory.Error,"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:t(2464,e.DiagnosticCategory.Error,"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:t(2465,e.DiagnosticCategory.Error,"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:t(2466,e.DiagnosticCategory.Error,"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:t(2467,e.DiagnosticCategory.Error,"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:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"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:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),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:t(2475,e.DiagnosticCategory.Error,"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:t(2476,e.DiagnosticCategory.Error,"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:t(2477,e.DiagnosticCategory.Error,"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:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"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:t(2481,e.DiagnosticCategory.Error,"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:t(2483,e.DiagnosticCategory.Error,"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:t(2484,e.DiagnosticCategory.Error,"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:t(2487,e.DiagnosticCategory.Error,"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:t(2488,e.DiagnosticCategory.Error,"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:t(2489,e.DiagnosticCategory.Error,"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:t(2490,e.DiagnosticCategory.Error,"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:t(2491,e.DiagnosticCategory.Error,"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:t(2492,e.DiagnosticCategory.Error,"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:t(2493,e.DiagnosticCategory.Error,"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:t(2494,e.DiagnosticCategory.Error,"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:t(2495,e.DiagnosticCategory.Error,"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:t(2496,e.DiagnosticCategory.Error,"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:t(2497,e.DiagnosticCategory.Error,"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:t(2498,e.DiagnosticCategory.Error,"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:t(2499,e.DiagnosticCategory.Error,"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:t(2500,e.DiagnosticCategory.Error,"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:t(2501,e.DiagnosticCategory.Error,"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:t(2502,e.DiagnosticCategory.Error,"_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:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"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:t(2505,e.DiagnosticCategory.Error,"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:t(2506,e.DiagnosticCategory.Error,"_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:t(2507,e.DiagnosticCategory.Error,"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:t(2508,e.DiagnosticCategory.Error,"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:t(2509,e.DiagnosticCategory.Error,"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:t(2510,e.DiagnosticCategory.Error,"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:t(2511,e.DiagnosticCategory.Error,"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:t(2512,e.DiagnosticCategory.Error,"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:t(2513,e.DiagnosticCategory.Error,"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."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"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:t(2516,e.DiagnosticCategory.Error,"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:t(2517,e.DiagnosticCategory.Error,"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:t(2518,e.DiagnosticCategory.Error,"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:t(2519,e.DiagnosticCategory.Error,"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:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses 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:t(2522,e.DiagnosticCategory.Error,"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:t(2523,e.DiagnosticCategory.Error,"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:t(2524,e.DiagnosticCategory.Error,"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:t(2525,e.DiagnosticCategory.Error,"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:t(2526,e.DiagnosticCategory.Error,"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:t(2527,e.DiagnosticCategory.Error,"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:t(2528,e.DiagnosticCategory.Error,"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:t(2529,e.DiagnosticCategory.Error,"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:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"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:t(2537,e.DiagnosticCategory.Error,"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:t(2538,e.DiagnosticCategory.Error,"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:t(2539,e.DiagnosticCategory.Error,"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:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"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:t(2543,e.DiagnosticCategory.Error,"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:t(2544,e.DiagnosticCategory.Error,"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:t(2545,e.DiagnosticCategory.Error,"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:t(2547,e.DiagnosticCategory.Error,"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:t(2548,e.DiagnosticCategory.Error,"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:t(2549,e.DiagnosticCategory.Error,"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_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"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:t(2552,e.DiagnosticCategory.Error,"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:t(2553,e.DiagnosticCategory.Error,"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:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"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:t(2559,e.DiagnosticCategory.Error,"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:t(2560,e.DiagnosticCategory.Error,"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:t(2561,e.DiagnosticCategory.Error,"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:t(2562,e.DiagnosticCategory.Error,"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:t(2563,e.DiagnosticCategory.Error,"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:t(2564,e.DiagnosticCategory.Error,"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:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"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:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:t(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:t(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"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:t(2575,e.DiagnosticCategory.Error,"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_is_a_static_member_of_type_1:t(2576,e.DiagnosticCategory.Error,"Property_0_is_a_static_member_of_type_1_2576","Property '{0}' is a static member of type '{1}'"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"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_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2583,e.DiagnosticCategory.Error,"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 es2015 or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"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:t(2585,e.DiagnosticCategory.Error,"_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."),Enum_type_0_circularly_references_itself:t(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:t(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"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:t(2589,e.DiagnosticCategory.Error,"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:t(2590,e.DiagnosticCategory.Error,"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_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_th_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @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_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_an_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @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_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using '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:t(2595,e.DiagnosticCategory.Error,"_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:t(2596,e.DiagnosticCategory.Error,"_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:t(2597,e.DiagnosticCategory.Error,"_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:t(2598,e.DiagnosticCategory.Error,"_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_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"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:t(2603,e.DiagnosticCategory.Error,"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:t(2604,e.DiagnosticCategory.Error,"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."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"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:t(2607,e.DiagnosticCategory.Error,"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:t(2608,e.DiagnosticCategory.Error,"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:t(2609,e.DiagnosticCategory.Error,"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:t(2610,e.DiagnosticCategory.Error,"_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:t(2611,e.DiagnosticCategory.Error,"_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:t(2612,e.DiagnosticCategory.Error,"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:t(2613,e.DiagnosticCategory.Error,"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:t(2614,e.DiagnosticCategory.Error,"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:t(2615,e.DiagnosticCategory.Error,"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:t(2616,e.DiagnosticCategory.Error,"_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:t(2617,e.DiagnosticCategory.Error,"_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:t(2618,e.DiagnosticCategory.Error,"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:t(2619,e.DiagnosticCategory.Error,"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:t(2620,e.DiagnosticCategory.Error,"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:t(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Element_at_index_0_is_variadic_in_one_type_but_not_in_the_other:t(2622,e.DiagnosticCategory.Error,"Element_at_index_0_is_variadic_in_one_type_but_not_in_the_other_2622","Element at index {0} is variadic in one type but not in the other."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"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:t(2651,e.DiagnosticCategory.Error,"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:t(2652,e.DiagnosticCategory.Error,"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:t(2653,e.DiagnosticCategory.Error,"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}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"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:t(2659,e.DiagnosticCategory.Error,"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:t(2660,e.DiagnosticCategory.Error,"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:t(2661,e.DiagnosticCategory.Error,"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:t(2662,e.DiagnosticCategory.Error,"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:t(2663,e.DiagnosticCategory.Error,"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:t(2664,e.DiagnosticCategory.Error,"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:t(2665,e.DiagnosticCategory.Error,"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:t(2666,e.DiagnosticCategory.Error,"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:t(2667,e.DiagnosticCategory.Error,"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:t(2668,e.DiagnosticCategory.Error,"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:t(2669,e.DiagnosticCategory.Error,"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:t(2670,e.DiagnosticCategory.Error,"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:t(2671,e.DiagnosticCategory.Error,"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:t(2672,e.DiagnosticCategory.Error,"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:t(2673,e.DiagnosticCategory.Error,"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:t(2674,e.DiagnosticCategory.Error,"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:t(2675,e.DiagnosticCategory.Error,"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:t(2676,e.DiagnosticCategory.Error,"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:t(2677,e.DiagnosticCategory.Error,"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:t(2678,e.DiagnosticCategory.Error,"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:t(2679,e.DiagnosticCategory.Error,"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:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"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:t(2684,e.DiagnosticCategory.Error,"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:t(2685,e.DiagnosticCategory.Error,"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:t(2686,e.DiagnosticCategory.Error,"_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:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_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:t(2693,e.DiagnosticCategory.Error,"_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:t(2694,e.DiagnosticCategory.Error,"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:t(2695,e.DiagnosticCategory.Error,"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:t(2696,e.DiagnosticCategory.Error,"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:t(2697,e.DiagnosticCategory.Error,"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:t(2698,e.DiagnosticCategory.Error,"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:t(2699,e.DiagnosticCategory.Error,"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:t(2700,e.DiagnosticCategory.Error,"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:t(2701,e.DiagnosticCategory.Error,"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:t(2702,e.DiagnosticCategory.Error,"_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:t(2703,e.DiagnosticCategory.Error,"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:t(2704,e.DiagnosticCategory.Error,"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:t(2705,e.DiagnosticCategory.Error,"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:t(2706,e.DiagnosticCategory.Error,"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:t(2707,e.DiagnosticCategory.Error,"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:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"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:t(2710,e.DiagnosticCategory.Error,"_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:t(2711,e.DiagnosticCategory.Error,"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:t(2712,e.DiagnosticCategory.Error,"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:t(2713,e.DiagnosticCategory.Error,"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:t(2714,e.DiagnosticCategory.Error,"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:t(2715,e.DiagnosticCategory.Error,"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:t(2716,e.DiagnosticCategory.Error,"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:t(2717,e.DiagnosticCategory.Error,"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:t(2718,e.DiagnosticCategory.Error,"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:t(2719,e.DiagnosticCategory.Error,"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:t(2720,e.DiagnosticCategory.Error,"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:t(2721,e.DiagnosticCategory.Error,"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:t(2722,e.DiagnosticCategory.Error,"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:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),Module_0_has_no_exported_member_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"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:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"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:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"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:t(2731,e.DiagnosticCategory.Error,"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:t(2732,e.DiagnosticCategory.Error,"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:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"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:t(2735,e.DiagnosticCategory.Error,"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:t(2736,e.DiagnosticCategory.Error,"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:t(2737,e.DiagnosticCategory.Error,"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:t(2738,e.DiagnosticCategory.Message,"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:t(2739,e.DiagnosticCategory.Error,"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:t(2740,e.DiagnosticCategory.Error,"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:t(2741,e.DiagnosticCategory.Error,"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:t(2742,e.DiagnosticCategory.Error,"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:t(2743,e.DiagnosticCategory.Error,"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:t(2744,e.DiagnosticCategory.Error,"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:t(2745,e.DiagnosticCategory.Error,"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:t(2746,e.DiagnosticCategory.Error,"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:t(2747,e.DiagnosticCategory.Error,"_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_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_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:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"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:t(2758,e.DiagnosticCategory.Error,"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:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"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:t(2762,e.DiagnosticCategory.Error,"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:t(2763,e.DiagnosticCategory.Error,"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:t(2764,e.DiagnosticCategory.Error,"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:t(2765,e.DiagnosticCategory.Error,"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:t(2766,e.DiagnosticCategory.Error,"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:t(2767,e.DiagnosticCategory.Error,"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:t(2768,e.DiagnosticCategory.Error,"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:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"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:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it__2774","This condition will always return true since the 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:t(2775,e.DiagnosticCategory.Error,"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:t(2776,e.DiagnosticCategory.Error,"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:t(2777,e.DiagnosticCategory.Error,"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:t(2778,e.DiagnosticCategory.Error,"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:t(2779,e.DiagnosticCategory.Error,"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:t(2780,e.DiagnosticCategory.Error,"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:t(2781,e.DiagnosticCategory.Error,"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:t(2782,e.DiagnosticCategory.Message,"_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:t(2783,e.DiagnosticCategory.Error,"_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:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_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:t(2787,e.DiagnosticCategory.Error,"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:t(2788,e.DiagnosticCategory.Error,"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:t(2789,e.DiagnosticCategory.Error,"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:t(2790,e.DiagnosticCategory.Error,"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:t(2791,e.DiagnosticCategory.Error,"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_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"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:t(4002,e.DiagnosticCategory.Error,"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:t(4004,e.DiagnosticCategory.Error,"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:t(4006,e.DiagnosticCategory.Error,"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:t(4008,e.DiagnosticCategory.Error,"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:t(4010,e.DiagnosticCategory.Error,"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:t(4012,e.DiagnosticCategory.Error,"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:t(4014,e.DiagnosticCategory.Error,"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:t(4016,e.DiagnosticCategory.Error,"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:t(4019,e.DiagnosticCategory.Error,"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:t(4020,e.DiagnosticCategory.Error,"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:t(4021,e.DiagnosticCategory.Error,"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:t(4022,e.DiagnosticCategory.Error,"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:t(4023,e.DiagnosticCategory.Error,"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:t(4024,e.DiagnosticCategory.Error,"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:t(4025,e.DiagnosticCategory.Error,"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:t(4026,e.DiagnosticCategory.Error,"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:t(4027,e.DiagnosticCategory.Error,"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:t(4028,e.DiagnosticCategory.Error,"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:t(4029,e.DiagnosticCategory.Error,"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:t(4030,e.DiagnosticCategory.Error,"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:t(4031,e.DiagnosticCategory.Error,"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:t(4032,e.DiagnosticCategory.Error,"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:t(4033,e.DiagnosticCategory.Error,"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:t(4034,e.DiagnosticCategory.Error,"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:t(4035,e.DiagnosticCategory.Error,"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:t(4036,e.DiagnosticCategory.Error,"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:t(4037,e.DiagnosticCategory.Error,"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:t(4038,e.DiagnosticCategory.Error,"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:t(4039,e.DiagnosticCategory.Error,"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:t(4040,e.DiagnosticCategory.Error,"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:t(4041,e.DiagnosticCategory.Error,"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:t(4042,e.DiagnosticCategory.Error,"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:t(4043,e.DiagnosticCategory.Error,"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:t(4044,e.DiagnosticCategory.Error,"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:t(4045,e.DiagnosticCategory.Error,"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:t(4046,e.DiagnosticCategory.Error,"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:t(4047,e.DiagnosticCategory.Error,"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:t(4048,e.DiagnosticCategory.Error,"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:t(4049,e.DiagnosticCategory.Error,"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:t(4050,e.DiagnosticCategory.Error,"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:t(4051,e.DiagnosticCategory.Error,"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:t(4052,e.DiagnosticCategory.Error,"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:t(4053,e.DiagnosticCategory.Error,"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:t(4054,e.DiagnosticCategory.Error,"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:t(4055,e.DiagnosticCategory.Error,"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:t(4056,e.DiagnosticCategory.Error,"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:t(4057,e.DiagnosticCategory.Error,"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:t(4058,e.DiagnosticCategory.Error,"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:t(4059,e.DiagnosticCategory.Error,"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:t(4060,e.DiagnosticCategory.Error,"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:t(4061,e.DiagnosticCategory.Error,"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:t(4062,e.DiagnosticCategory.Error,"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:t(4063,e.DiagnosticCategory.Error,"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:t(4064,e.DiagnosticCategory.Error,"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:t(4065,e.DiagnosticCategory.Error,"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:t(4066,e.DiagnosticCategory.Error,"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:t(4067,e.DiagnosticCategory.Error,"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:t(4068,e.DiagnosticCategory.Error,"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:t(4069,e.DiagnosticCategory.Error,"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:t(4070,e.DiagnosticCategory.Error,"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:t(4071,e.DiagnosticCategory.Error,"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:t(4072,e.DiagnosticCategory.Error,"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:t(4073,e.DiagnosticCategory.Error,"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:t(4074,e.DiagnosticCategory.Error,"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:t(4075,e.DiagnosticCategory.Error,"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:t(4076,e.DiagnosticCategory.Error,"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:t(4077,e.DiagnosticCategory.Error,"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:t(4078,e.DiagnosticCategory.Error,"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:t(4081,e.DiagnosticCategory.Error,"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:t(4082,e.DiagnosticCategory.Error,"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:t(4083,e.DiagnosticCategory.Error,"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}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"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:t(4091,e.DiagnosticCategory.Error,"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:t(4092,e.DiagnosticCategory.Error,"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:t(4094,e.DiagnosticCategory.Error,"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:t(4095,e.DiagnosticCategory.Error,"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:t(4096,e.DiagnosticCategory.Error,"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:t(4097,e.DiagnosticCategory.Error,"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:t(4098,e.DiagnosticCategory.Error,"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:t(4099,e.DiagnosticCategory.Error,"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:t(4100,e.DiagnosticCategory.Error,"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:t(4101,e.DiagnosticCategory.Error,"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:t(4102,e.DiagnosticCategory.Error,"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:t(4103,e.DiagnosticCategory.Error,"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:t(4104,e.DiagnosticCategory.Error,"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:t(4105,e.DiagnosticCategory.Error,"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:t(4106,e.DiagnosticCategory.Error,"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:t(4107,e.DiagnosticCategory.Error,"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:t(4108,e.DiagnosticCategory.Error,"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:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"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:t(5009,e.DiagnosticCategory.Error,"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:t(5010,e.DiagnosticCategory.Error,"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:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"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:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"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:t(5042,e.DiagnosticCategory.Error,"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:t(5047,e.DiagnosticCategory.Error,"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:t(5048,e.DiagnosticCategory.Error,"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:t(5051,e.DiagnosticCategory.Error,"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:t(5052,e.DiagnosticCategory.Error,"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:t(5053,e.DiagnosticCategory.Error,"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:t(5054,e.DiagnosticCategory.Error,"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:t(5055,e.DiagnosticCategory.Error,"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:t(5056,e.DiagnosticCategory.Error,"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:t(5057,e.DiagnosticCategory.Error,"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:t(5058,e.DiagnosticCategory.Error,"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:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"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:t(5062,e.DiagnosticCategory.Error,"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:t(5063,e.DiagnosticCategory.Error,"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:t(5064,e.DiagnosticCategory.Error,"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:t(5065,e.DiagnosticCategory.Error,"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:t(5066,e.DiagnosticCategory.Error,"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:t(5067,e.DiagnosticCategory.Error,"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:t(5068,e.DiagnosticCategory.Error,"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:t(5069,e.DiagnosticCategory.Error,"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_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"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:t(5074,e.DiagnosticCategory.Error,"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:t(5075,e.DiagnosticCategory.Error,"_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:t(5076,e.DiagnosticCategory.Error,"_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:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"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:t(5080,e.DiagnosticCategory.Error,"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:t(5081,e.DiagnosticCategory.Error,"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:t(5082,e.DiagnosticCategory.Error,"_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:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"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:t(5086,e.DiagnosticCategory.Error,"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:t(5087,e.DiagnosticCategory.Error,"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:t(5088,e.DiagnosticCategory.Error,"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."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"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:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"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:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"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:t(6008,e.DiagnosticCategory.Message,"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:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"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:t(6011,e.DiagnosticCategory.Message,"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:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"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:t(6020,e.DiagnosticCategory.Message,"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:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"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:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"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:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"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:t(6055,e.DiagnosticCategory.Message,"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:t(6056,e.DiagnosticCategory.Message,"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:t(6058,e.DiagnosticCategory.Message,"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:t(6059,e.DiagnosticCategory.Error,"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:t(6060,e.DiagnosticCategory.Message,"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:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"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:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"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:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"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:t(6074,e.DiagnosticCategory.Message,"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:t(6075,e.DiagnosticCategory.Message,"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:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"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:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"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:t(6083,e.DiagnosticCategory.Message,"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:t(6084,e.DiagnosticCategory.Message,"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:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"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:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"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:t(6091,e.DiagnosticCategory.Message,"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:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"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:t(6094,e.DiagnosticCategory.Message,"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_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"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:t(6101,e.DiagnosticCategory.Message,"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:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"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:t(6105,e.DiagnosticCategory.Message,"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:t(6106,e.DiagnosticCategory.Message,"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:t(6107,e.DiagnosticCategory.Message,"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:t(6108,e.DiagnosticCategory.Message,"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:t(6109,e.DiagnosticCategory.Message,"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:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"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:t(6115,e.DiagnosticCategory.Message,"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:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"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:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"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:t(6123,e.DiagnosticCategory.Message,"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:t(6124,e.DiagnosticCategory.Message,"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:t(6125,e.DiagnosticCategory.Message,"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:t(6126,e.DiagnosticCategory.Message,"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:t(6127,e.DiagnosticCategory.Message,"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:t(6128,e.DiagnosticCategory.Message,"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:t(6130,e.DiagnosticCategory.Message,"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:t(6131,e.DiagnosticCategory.Error,"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:t(6132,e.DiagnosticCategory.Message,"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:t(6133,e.DiagnosticCategory.Error,"_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:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"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:t(6137,e.DiagnosticCategory.Error,"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:t(6138,e.DiagnosticCategory.Error,"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:t(6139,e.DiagnosticCategory.Message,"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:t(6140,e.DiagnosticCategory.Error,"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:t(6141,e.DiagnosticCategory.Message,"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:t(6142,e.DiagnosticCategory.Error,"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:t(6144,e.DiagnosticCategory.Message,"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:t(6145,e.DiagnosticCategory.Message,"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:t(6146,e.DiagnosticCategory.Message,"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:t(6147,e.DiagnosticCategory.Message,"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:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"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:t(6152,e.DiagnosticCategory.Message,"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:t(6153,e.DiagnosticCategory.Message,"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:t(6154,e.DiagnosticCategory.Message,"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:t(6155,e.DiagnosticCategory.Message,"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:t(6156,e.DiagnosticCategory.Message,"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:t(6157,e.DiagnosticCategory.Message,"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:t(6158,e.DiagnosticCategory.Message,"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:t(6159,e.DiagnosticCategory.Message,"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:t(6160,e.DiagnosticCategory.Message,"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:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"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:t(6167,e.DiagnosticCategory.Message,"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:t(6168,e.DiagnosticCategory.Message,"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:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"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:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"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:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"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:t(6191,e.DiagnosticCategory.Message,"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:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"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:t(6195,e.DiagnosticCategory.Message,"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:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"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:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"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:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused"),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"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:t(6207,e.DiagnosticCategory.Message,"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:t(6208,e.DiagnosticCategory.Message,"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:t(6209,e.DiagnosticCategory.Message,"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:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"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:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"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:t(6214,e.DiagnosticCategory.Message,"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:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"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:t(6219,e.DiagnosticCategory.Message,"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:t(6220,e.DiagnosticCategory.Message,"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:t(6221,e.DiagnosticCategory.Message,"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:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling:t(6226,e.DiagnosticCategory.Message,"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'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority:t(6227,e.DiagnosticCategory.Message,"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'."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6228,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6228","Synchronously call callbacks and update the state of directory watchers on platforms that don't support recursive watching natively."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"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:t(6230,e.DiagnosticCategory.Error,"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:t(6231,e.DiagnosticCategory.Error,"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:t(6232,e.DiagnosticCategory.Error,"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:t(6233,e.DiagnosticCategory.Error,"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:t(6234,e.DiagnosticCategory.Error,"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:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Projects_to_reference:t(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"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:t(6305,e.DiagnosticCategory.Error,"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:t(6306,e.DiagnosticCategory.Error,"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:t(6307,e.DiagnosticCategory.Error,"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:t(6308,e.DiagnosticCategory.Error,"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:t(6309,e.DiagnosticCategory.Error,"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:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"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:t(6353,e.DiagnosticCategory.Message,"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:t(6354,e.DiagnosticCategory.Message,"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:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"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:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:t(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"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:t(6363,e.DiagnosticCategory.Message,"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:t(6364,e.DiagnosticCategory.Message,"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:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:t(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6368,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6368","Build all projects, including those that appear to be up to date"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"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:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"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:t(6372,e.DiagnosticCategory.Message,"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:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"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:t(6375,e.DiagnosticCategory.Message,"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:t(6376,e.DiagnosticCategory.Message,"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:t(6377,e.DiagnosticCategory.Error,"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}'"),Enable_incremental_compilation:t(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"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:t(6381,e.DiagnosticCategory.Message,"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:t(6382,e.DiagnosticCategory.Message,"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:t(6383,e.DiagnosticCategory.Message,"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:t(6384,e.DiagnosticCategory.Message,"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:t(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated",void 0,void 0,!0),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"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:t(6501,e.DiagnosticCategory.Message,"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:t(6502,e.DiagnosticCategory.Message,"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:t(6503,e.DiagnosticCategory.Message,"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:t(6504,e.DiagnosticCategory.Error,"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?"),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"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:t(7009,e.DiagnosticCategory.Error,"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:t(7010,e.DiagnosticCategory.Error,"_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:t(7011,e.DiagnosticCategory.Error,"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."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"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:t(7014,e.DiagnosticCategory.Error,"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:t(7015,e.DiagnosticCategory.Error,"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:t(7016,e.DiagnosticCategory.Error,"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:t(7017,e.DiagnosticCategory.Error,"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:t(7018,e.DiagnosticCategory.Error,"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:t(7019,e.DiagnosticCategory.Error,"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:t(7020,e.DiagnosticCategory.Error,"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:t(7022,e.DiagnosticCategory.Error,"_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:t(7023,e.DiagnosticCategory.Error,"_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:t(7024,e.DiagnosticCategory.Error,"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:t(7025,e.DiagnosticCategory.Error,"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:t(7026,e.DiagnosticCategory.Error,"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:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"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:t(7032,e.DiagnosticCategory.Error,"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:t(7033,e.DiagnosticCategory.Error,"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:t(7034,e.DiagnosticCategory.Error,"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_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @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:t(7036,e.DiagnosticCategory.Error,"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:t(7037,e.DiagnosticCategory.Message,"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:t(7038,e.DiagnosticCategory.Message,"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:t(7039,e.DiagnosticCategory.Error,"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:t(7040,e.DiagnosticCategory.Error,"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:t(7041,e.DiagnosticCategory.Error,"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:t(7042,e.DiagnosticCategory.Error,"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:t(7043,e.DiagnosticCategory.Suggestion,"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:t(7044,e.DiagnosticCategory.Suggestion,"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:t(7045,e.DiagnosticCategory.Suggestion,"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:t(7046,e.DiagnosticCategory.Suggestion,"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:t(7047,e.DiagnosticCategory.Suggestion,"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:t(7048,e.DiagnosticCategory.Suggestion,"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:t(7049,e.DiagnosticCategory.Suggestion,"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:t(7050,e.DiagnosticCategory.Suggestion,"_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:t(7051,e.DiagnosticCategory.Error,"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:t(7052,e.DiagnosticCategory.Error,"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:t(7053,e.DiagnosticCategory.Error,"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:t(7054,e.DiagnosticCategory.Error,"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:t(7055,e.DiagnosticCategory.Error,"_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."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"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:t(8002,e.DiagnosticCategory.Error,"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:t(8003,e.DiagnosticCategory.Error,"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:t(8004,e.DiagnosticCategory.Error,"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:t(8005,e.DiagnosticCategory.Error,"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:t(8006,e.DiagnosticCategory.Error,"_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:t(8008,e.DiagnosticCategory.Error,"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:t(8009,e.DiagnosticCategory.Error,"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:t(8010,e.DiagnosticCategory.Error,"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:t(8011,e.DiagnosticCategory.Error,"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:t(8012,e.DiagnosticCategory.Error,"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:t(8013,e.DiagnosticCategory.Error,"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:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"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:t(8021,e.DiagnosticCategory.Error,"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:t(8022,e.DiagnosticCategory.Error,"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:t(8023,e.DiagnosticCategory.Error,"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:t(8024,e.DiagnosticCategory.Error,"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:t(8025,e.DiagnosticCategory.Error,"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:t(8026,e.DiagnosticCategory.Error,"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:t(8027,e.DiagnosticCategory.Error,"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:t(8028,e.DiagnosticCategory.Error,"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:t(8029,e.DiagnosticCategory.Error,"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:t(8030,e.DiagnosticCategory.Error,"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:t(8031,e.DiagnosticCategory.Error,"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:t(8032,e.DiagnosticCategory.Error,"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:t(8033,e.DiagnosticCategory.Error,"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:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(9005,e.DiagnosticCategory.Error,"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:t(9006,e.DiagnosticCategory.Error,"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:t(17e3,e.DiagnosticCategory.Error,"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:t(17001,e.DiagnosticCategory.Error,"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:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"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:t(17005,e.DiagnosticCategory.Error,"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:t(17006,e.DiagnosticCategory.Error,"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:t(17007,e.DiagnosticCategory.Error,"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:t(17008,e.DiagnosticCategory.Error,"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:t(17009,e.DiagnosticCategory.Error,"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:t(17010,e.DiagnosticCategory.Error,"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:t(17011,e.DiagnosticCategory.Error,"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:t(17012,e.DiagnosticCategory.Error,"_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:t(17013,e.DiagnosticCategory.Error,"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:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"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:t(17016,e.DiagnosticCategory.Error,"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:t(17017,e.DiagnosticCategory.Error,"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:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"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:t(18003,e.DiagnosticCategory.Error,"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_ES6_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"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:t(80003,e.DiagnosticCategory.Suggestion,"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:t(80004,e.DiagnosticCategory.Suggestion,"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:t(80005,e.DiagnosticCategory.Suggestion,"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:t(80006,e.DiagnosticCategory.Suggestion,"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:t(80007,e.DiagnosticCategory.Suggestion,"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:t(80008,e.DiagnosticCategory.Suggestion,"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."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:t(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:t(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"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:t(95031,e.DiagnosticCategory.Message,"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:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"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:t(95037,e.DiagnosticCategory.Message,"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:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"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:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Allow_accessing_UMD_globals_from_modules:t(95076,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_95076","Allow accessing UMD globals from modules."),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"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:t(95098,e.DiagnosticCategory.Message,"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:t(95099,e.DiagnosticCategory.Message,"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:t(95100,e.DiagnosticCategory.Message,"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:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:t(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:t(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:t(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"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:t(95113,e.DiagnosticCategory.Message,"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:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"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:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"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:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"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:t(18006,e.DiagnosticCategory.Error,"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:t(18007,e.DiagnosticCategory.Error,"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:t(18009,e.DiagnosticCategory.Error,"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:t(18010,e.DiagnosticCategory.Error,"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:t(18011,e.DiagnosticCategory.Error,"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:t(18012,e.DiagnosticCategory.Error,"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:t(18013,e.DiagnosticCategory.Error,"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:t(18014,e.DiagnosticCategory.Error,"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:t(18015,e.DiagnosticCategory.Error,"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:t(18016,e.DiagnosticCategory.Error,"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:t(18017,e.DiagnosticCategory.Error,"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:t(18018,e.DiagnosticCategory.Error,"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:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier"),A_method_cannot_be_named_with_a_private_identifier:t(18022,e.DiagnosticCategory.Error,"A_method_cannot_be_named_with_a_private_identifier_18022","A method cannot be named with a private identifier."),An_accessor_cannot_be_named_with_a_private_identifier:t(18023,e.DiagnosticCategory.Error,"An_accessor_cannot_be_named_with_a_private_identifier_18023","An accessor cannot be named with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"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:t(18026,e.DiagnosticCategory.Error,"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:t(18027,e.DiagnosticCategory.Error,"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:t(18028,e.DiagnosticCategory.Error,"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:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"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:t(18031,e.DiagnosticCategory.Error,"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:t(18032,e.DiagnosticCategory.Error,"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."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"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:t(18035,e.DiagnosticCategory.Error,"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.")}}(l||(l={})),function(e){var t;function n(e){return e>=78}e.tokenIsIdentifierOrKeyword=n,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||n(e)};var r=((t={abstract:125,any:128,as:126,asserts:127,bigint:154,boolean:131,break:80,case:81,catch:82,class:83,continue:85,const:84}).constructor=132,t.debugger=86,t.declare=133,t.default=87,t.delete=88,t.do=89,t.else=90,t.enum=91,t.export=92,t.extends=93,t.false=94,t.finally=95,t.for=96,t.from=152,t.function=97,t.get=134,t.if=98,t.implements=116,t.import=99,t.in=100,t.infer=135,t.instanceof=101,t.interface=117,t.is=136,t.keyof=137,t.let=118,t.module=138,t.namespace=139,t.never=140,t.new=102,t.null=103,t.number=143,t.object=144,t.package=119,t.private=120,t.protected=121,t.public=122,t.readonly=141,t.require=142,t.global=153,t.return=104,t.set=145,t.static=123,t.string=146,t.super=105,t.switch=106,t.symbol=147,t.this=107,t.throw=108,t.true=109,t.try=110,t.type=148,t.typeof=111,t.undefined=149,t.unique=150,t.unknown=151,t.var=112,t.void=113,t.while=114,t.with=115,t.yield=124,t.async=129,t.await=130,t.of=155,t),i=new e.Map(e.getEntries(r)),o=new e.Map(e.getEntries(a(a({},r),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,">":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":62,"+=":63,"-=":64,"*=":65,"**=":66,"/=":67,"%=":68,"<<=":69,">>=":70,">>>=":71,"&=":72,"|=":73,"^=":77,"||=":74,"&&=":75,"??=":76,"@":59,"`":61}))),s=[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],c=[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],u=[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],l=[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],_=[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],d=[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],f=/^\s*\/\/\/?\s*@(ts-expect-error|ts-ignore)/,p=/^\s*(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function g(e,t){if(e=2?_:1===t?u:s)}e.isUnicodeIdentifierStart=m;var h,y=(h=[],o.forEach(function(e,t){h[e]=t}),h);function v(e){for(var t=new Array,n=0,r=0;n127&&E(i)&&(t.push(r),r=n)}}return t.push(r),t}function b(t,n,r,i,a){(n<0||n>=t.length)&&(a?n=n<0?0:n>=t.length?t.length-1:n:e.Debug.fail("Bad line number. Line: "+n+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,v(i)):"unknown")));var o=t[n]+r;return a?o>t[n+1]?t[n+1]:"string"==typeof i&&o>i.length?i.length:o:(n=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function E(e){return 10===e||13===e||8232===e||8233===e}function T(e){return e>=48&&e<=57}function w(e){return T(e)||e>=65&&e<=70||e>=97&&e<=102}function A(e){return e>=48&&e<=55}e.tokenToString=function(e){return y[e]},e.stringToToken=function(e){return o.get(e)},e.computeLineStarts=v,e.getPositionOfLineAndCharacter=function(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):b(x(e),t,n,e.text,r)},e.computePositionOfLineAndCharacter=b,e.getLineStarts=x,e.computeLineAndCharacterOfPosition=D,e.computeLineOfPosition=C,e.getLinesBetweenPositions=function(e,t,n){if(t===n)return 0;var r=x(e),i=Math.min(t,n),a=i===n,o=a?t:n,s=C(r,i),c=C(r,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,t){return D(x(e),t)},e.isWhiteSpaceLike=S,e.isWhiteSpaceSingleLine=k,e.isLineBreak=E,e.isOctalDigit=A,e.couldStartTrivia=function(e,t){var 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}},e.skipTrivia=function(t,n,r,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(n))return n;for(;;){var a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)return n;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(i)break;if(47===t.charCodeAt(n+1)){for(n+=2;n127&&S(a)){n++;continue}}return n}};var N="<<<<<<<".length;function P(t,n){if(e.Debug.assert(n>=0),0===n||E(t.charCodeAt(n-1))){var r=t.charCodeAt(n);if(n+N=0&&n127&&S(g)){_&&E(g)&&(l=!0),n++;continue}break e}}return _&&(f=i(s,c,u,l,a,f)),f}function R(e,t,n,r,i){return L(!0,e,t,!1,n,r,i)}function B(e,t,n,r,i){return L(!0,e,t,!0,n,r,i)}function j(e,t,n,r,i,a){return a||(a=[]),a.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),a}function U(e){var t=F.exec(e);if(t)return t[0]}function z(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&m(e,t)}function J(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 g(e,t>=2?d:1===t?l:c)}(e,t)}e.isShebangTrivia=I,e.scanShebangTrivia=M,e.forEachLeadingCommentRange=function(e,t,n,r){return L(!1,e,t,!1,n,r)},e.forEachTrailingCommentRange=function(e,t,n,r){return L(!1,e,t,!0,n,r)},e.reduceEachLeadingCommentRange=R,e.reduceEachTrailingCommentRange=B,e.getLeadingCommentRanges=function(e,t){return R(e,t,j,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return B(e,t,j,void 0,void 0)},e.getShebang=U,e.isIdentifierStart=z,e.isIdentifierPart=J,e.isIdentifierText=function(e,t,n){var r=V(e,0);if(!z(r,t))return!1;for(var i=W(r);i115},isReservedWord:function(){return m>=80&&m<=115},isUnterminated:function(){return 0!=(4&y)},getCommentDirectives:function(){return v},getNumericLiteralFlags:function(){return 1008&y},getTokenFlags:function(){return y},reScanGreaterToken:function(){if(31===m){if(62===b.charCodeAt(l))return 62===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=71):(l+=2,m=49):61===b.charCodeAt(l+1)?(l+=2,m=70):(l++,m=48);if(61===b.charCodeAt(l))return l++,m=33}return m},reScanAsteriskEqualsToken:function(){return e.Debug.assert(65===m,"'reScanAsteriskEqualsToken' should only be called on a '*='"),l=g+1,m=62},reScanSlashToken:function(){if(43===m||67===m){for(var n=g+1,r=!1,i=!1;;){if(n>=_){y|=4,C(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=b.charCodeAt(n);if(E(a)){y|=4,C(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===a&&!i){n++;break}91===a?i=!0:92===a?r=!0:93===a&&(i=!1)}n++}for(;n<_&&J(b.charCodeAt(n),t);)n++;h=b.substring(g,l=n),m=13}return m},reScanTemplateToken:function(t){return e.Debug.assert(19===m,"'reScanTemplateToken' should only be called on a '}'"),l=g,m=H(t)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return l=g,m=H(!0)},scanJsxIdentifier:function(){if(n(m))for(;l<_;)if(45!==b.charCodeAt(l)){var e=l;if(h+=$(),l===e)break}else h+="-",l++;return m},scanJsxAttributeValue:oe,reScanJsxAttributeValue:function(){return l=g=d,oe()},reScanJsxToken:function(){return l=g=d,m=ae()},reScanLessThanToken:function(){return 47===m?(l=g+1,m=29):m},reScanQuestionToken:function(){return e.Debug.assert(60===m,"'reScanQuestionToken' should only be called on a '??'"),l=g+1,m=57},scanJsxToken:ae,scanJsDocToken:function(){if(d=g=l,y=0,l>=_)return m=1;var e=V(b,l);switch(l+=W(e),e){case 9:case 11:case 12:case 32:for(;l<_&&k(b.charCodeAt(l));)l++;return m=5;case 64:return m=59;case 13:10===b.charCodeAt(l)&&l++;case 10:return y|=1,m=4;case 42:return m=41;case 123:return m=18;case 125:return m=19;case 91:return m=22;case 93:return m=23;case 60:return m=29;case 62:return m=31;case 61:return m=62;case 44:return m=27;case 46:return m=24;case 96:return m=61;case 92:l--;var n=Z();if(n>=0&&z(n,t))return l+=3,y|=8,h=X()+$(),m=ee();var r=Y();return r>=0&&z(r,t)?(l+=6,y|=1024,h=String.fromCharCode(r)+$(),m=ee()):(l++,m=0)}if(z(e,t)){for(var i=e;l<_&&J(i=V(b,l),t)||45===b.charCodeAt(l);)l+=W(i);return h=b.substring(g,l),92===i&&(h+=$()),m=ee()}return m=0},scan:re,getText:function(){return b},clearCommentDirectives:function(){v=void 0},setText:ce,setScriptTarget:function(e){t=e},setLanguageVariant:function(e){a=e},setOnError:function(e){s=e},setTextPos:ue,setInJSDocType:function(e){x+=e?1:-1},tryScan:function(e){return se(e,!1)},lookAhead:function(e){return se(e,!0)},scanRange:function(e,t,n){var r=_,i=l,a=d,o=g,s=m,c=h,u=y,f=v;ce(b,e,t);var p=n();return _=r,l=i,d=a,g=o,m=s,h=c,y=u,v=f,p}};return e.Debug.isDebugging&&Object.defineProperty(D,"__debugShowCurrentPositionInText",{get:function(){var e=D.getText();return e.slice(0,D.getStartPos())+"\u2551"+e.slice(D.getStartPos())}}),D;function C(e,t,n){if(void 0===t&&(t=l),s){var r=l;l=t,s(e,n||0),l=r}}function N(){for(var t=l,n=!1,r=!1,i="";;){var a=b.charCodeAt(l);if(95!==a){if(!T(a))break;n=!0,r=!1,l++}else y|=512,n?(n=!1,r=!0,i+=b.substring(t,l)):C(r?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),t=++l}return 95===b.charCodeAt(l-1)&&C(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),i+b.substring(t,l)}function F(){var t,n,r=l,i=N();46===b.charCodeAt(l)&&(l++,t=N());var a,o=l;if(69===b.charCodeAt(l)||101===b.charCodeAt(l)){l++,y|=16,43!==b.charCodeAt(l)&&45!==b.charCodeAt(l)||l++;var s=l,c=N();c?(n=b.substring(o,s)+c,o=l):C(e.Diagnostics.Digit_expected)}if(512&y?(a=i,t&&(a+="."+t),n&&(a+=n)):a=b.substring(r,o),void 0!==t||16&y)return L(r,void 0===t&&!!(16&y)),{type:8,value:""+ +a};h=a;var u=ne();return L(r),{type:u,value:h}}function L(n,r){if(z(V(b,l),t)){var i=l,a=$().length;1===a&&"n"===b[i]?C(r?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,n,i-n+1):(C(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),l=i)}}function R(){for(var e=l;A(b.charCodeAt(l));)l++;return+b.substring(e,l)}function B(e,t){var n=U(e,!1,t);return n?parseInt(n,16):-1}function j(e,t){return U(e,!0,t)}function U(t,n,r){for(var i=[],a=!1,o=!1;i.length=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),l++,o=!1}}return i.length=_){r+=b.substring(i,l),y|=4,C(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(l);if(a===n){r+=b.substring(i,l),l++;break}if(92!==a||t){if(E(a)&&!t){r+=b.substring(i,l),y|=4,C(e.Diagnostics.Unterminated_string_literal);break}l++}else r+=b.substring(i,l),r+=G(),i=l}return r}function H(t){for(var n,r=96===b.charCodeAt(l),i=++l,a="";;){if(l>=_){a+=b.substring(i,l),y|=4,C(e.Diagnostics.Unterminated_template_literal),n=r?14:17;break}var o=b.charCodeAt(l);if(96===o){a+=b.substring(i,l),l++,n=r?14:17;break}if(36===o&&l+1<_&&123===b.charCodeAt(l+1)){a+=b.substring(i,l),l+=2,n=r?15:16;break}92!==o?13!==o?l++:(a+=b.substring(i,l),++l<_&&10===b.charCodeAt(l)&&l++,a+="\n",i=l):(a+=b.substring(i,l),a+=G(t),i=l)}return e.Debug.assert(void 0!==n),h=a,n}function G(t){var n=l;if(++l>=_)return C(e.Diagnostics.Unexpected_end_of_text),"";var r=b.charCodeAt(l);switch(l++,r){case 48:return t&&l<_&&T(b.charCodeAt(l))?(l++,y|=2048,b.substring(n,l)):"\0";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(t)for(var i=l;i=0?String.fromCharCode(n):(C(e.Diagnostics.Hexadecimal_digit_expected),"")}function X(){var t=j(1,!1),n=t?parseInt(t,16):-1,r=!1;return n<0?(C(e.Diagnostics.Hexadecimal_digit_expected),r=!0):n>1114111&&(C(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),l>=_?(C(e.Diagnostics.Unexpected_end_of_text),r=!0):125===b.charCodeAt(l)?l++:(C(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":K(n)}function Y(){if(l+5<_&&117===b.charCodeAt(l+1)){var e=l;l+=2;var t=B(4,!1);return l=e,t}return-1}function Z(){if(t>=2&&117===V(b,l+1)&&123===V(b,l+2)){var e=l;l+=3;var n=j(1,!1),r=n?parseInt(n,16):-1;return l=e,r}return-1}function $(){for(var e="",n=l;l<_;){var r=V(b,l);if(J(r,t))l+=W(r);else{if(92!==r)break;if((r=Z())>=0&&J(r,t)){l+=3,y|=8,e+=X(),n=l;continue}if(!((r=Y())>=0&&J(r,t)))break;y|=1024,e+=b.substring(n,l),e+=K(r),n=l+=6}}return e+b.substring(n,l)}function ee(){var e=h.length;if(e>=2&&e<=11){var t=h.charCodeAt(0);if(t>=97&&t<=122){var n=i.get(h);if(void 0!==n)return m=n}}return m=78}function te(t){for(var n="",r=!1,i=!1;;){var a=b.charCodeAt(l);if(95!==a){if(r=!0,!T(a)||a-48>=t)break;n+=b[l],l++,i=!1}else y|=512,r?(r=!1,i=!0):C(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++}return 95===b.charCodeAt(l-1)&&C(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),n}function ne(){if(110===b.charCodeAt(l))return h+="n",384&y&&(h=e.parsePseudoBigInt(h)+"n"),l++,9;var t=128&y?parseInt(h.slice(2),2):256&y?parseInt(h.slice(2),8):+h;return h=""+t,8}function re(){var n;d=l,y=0;for(var i=!1;;){if(g=l,l>=_)return m=1;var o=V(b,l);if(35===o&&0===l&&I(b,l)){if(l=M(b,l),r)continue;return m=6}switch(o){case 10:case 13:if(y|=1,r){l++;continue}return 13===o&&l+1<_&&10===b.charCodeAt(l+1)?l+=2:l++,m=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(r){l++;continue}for(;l<_&&k(b.charCodeAt(l));)l++;return m=5;case 33:return 61===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=37):(l+=2,m=35):(l++,m=53);case 34:case 39:return h=q(),m=10;case 96:return m=H(!1);case 37:return 61===b.charCodeAt(l+1)?(l+=2,m=68):(l++,m=44);case 38:return 38===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=75):(l+=2,m=55):61===b.charCodeAt(l+1)?(l+=2,m=72):(l++,m=50);case 40:return l++,m=20;case 41:return l++,m=21;case 42:if(61===b.charCodeAt(l+1))return l+=2,m=65;if(42===b.charCodeAt(l+1))return 61===b.charCodeAt(l+2)?(l+=3,m=66):(l+=2,m=42);if(l++,x&&!i&&1&y){i=!0;continue}return m=41;case 43:return 43===b.charCodeAt(l+1)?(l+=2,m=45):61===b.charCodeAt(l+1)?(l+=2,m=63):(l++,m=39);case 44:return l++,m=27;case 45:return 45===b.charCodeAt(l+1)?(l+=2,m=46):61===b.charCodeAt(l+1)?(l+=2,m=64):(l++,m=40);case 46:return T(b.charCodeAt(l+1))?(h=F().value,m=8):46===b.charCodeAt(l+1)&&46===b.charCodeAt(l+2)?(l+=3,m=25):(l++,m=24);case 47:if(47===b.charCodeAt(l+1)){for(l+=2;l<_&&!E(b.charCodeAt(l));)l++;if(v=ie(v,b.slice(g,l),f,g),r)continue;return m=2}if(42===b.charCodeAt(l+1)){42===b.charCodeAt(l+=2)&&47!==b.charCodeAt(l+1)&&(y|=2);for(var s=!1,c=g;l<_;){var u=b.charCodeAt(l);if(42===u&&47===b.charCodeAt(l+1)){l+=2,s=!0;break}l++,E(u)&&(c=l,y|=1)}if(v=ie(v,b.slice(c,l),p,c),s||C(e.Diagnostics.Asterisk_Slash_expected),r)continue;return s||(y|=4),m=3}return 61===b.charCodeAt(l+1)?(l+=2,m=67):(l++,m=43);case 48:if(l+2<_&&(88===b.charCodeAt(l+1)||120===b.charCodeAt(l+1)))return l+=2,(h=j(1,!0))||(C(e.Diagnostics.Hexadecimal_digit_expected),h="0"),h="0x"+h,y|=64,m=ne();if(l+2<_&&(66===b.charCodeAt(l+1)||98===b.charCodeAt(l+1)))return l+=2,(h=te(2))||(C(e.Diagnostics.Binary_digit_expected),h="0"),h="0b"+h,y|=128,m=ne();if(l+2<_&&(79===b.charCodeAt(l+1)||111===b.charCodeAt(l+1)))return l+=2,(h=te(8))||(C(e.Diagnostics.Octal_digit_expected),h="0"),h="0o"+h,y|=256,m=ne();if(l+1<_&&A(b.charCodeAt(l+1)))return h=""+R(),y|=32,m=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n=F(),h=n.value,m=n.type;case 58:return l++,m=58;case 59:return l++,m=26;case 60:if(P(b,l)){if(l=O(b,l,C),r)continue;return m=7}return 60===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=69):(l+=2,m=47):61===b.charCodeAt(l+1)?(l+=2,m=32):1===a&&47===b.charCodeAt(l+1)&&42!==b.charCodeAt(l+2)?(l+=2,m=30):(l++,m=29);case 61:if(P(b,l)){if(l=O(b,l,C),r)continue;return m=7}return 61===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=36):(l+=2,m=34):62===b.charCodeAt(l+1)?(l+=2,m=38):(l++,m=62);case 62:if(P(b,l)){if(l=O(b,l,C),r)continue;return m=7}return l++,m=31;case 63:return 46!==b.charCodeAt(l+1)||T(b.charCodeAt(l+2))?63===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=76):(l+=2,m=60):(l++,m=57):(l+=2,m=28);case 91:return l++,m=22;case 93:return l++,m=23;case 94:return 61===b.charCodeAt(l+1)?(l+=2,m=77):(l++,m=52);case 123:return l++,m=18;case 124:if(P(b,l)){if(l=O(b,l,C),r)continue;return m=7}return 124===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=74):(l+=2,m=56):61===b.charCodeAt(l+1)?(l+=2,m=73):(l++,m=51);case 125:return l++,m=19;case 126:return l++,m=54;case 64:return l++,m=59;case 92:var D=Z();if(D>=0&&z(D,t))return l+=3,y|=8,h=X()+$(),m=ee();var S=Y();return S>=0&&z(S,t)?(l+=6,y|=1024,h=String.fromCharCode(S)+$(),m=ee()):(C(e.Diagnostics.Invalid_character),l++,m=0);case 35:if(0!==l&&"!"===b[l+1])return C(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),l++,m=0;if(l++,z(o=b.charCodeAt(l),t)){for(l++;l<_&&J(o=b.charCodeAt(l),t);)l++;h=b.substring(g,l),92===o&&(h+=$())}else h="#",C(e.Diagnostics.Invalid_character);return m=79;default:if(z(o,t)){for(l+=W(o);l<_&&J(o=V(b,l),t);)l+=W(o);return h=b.substring(g,l),92===o&&(h+=$()),m=ee()}if(k(o)){l+=W(o);continue}if(E(o)){y|=1,l+=W(o);continue}return C(e.Diagnostics.Invalid_character),l+=W(o),m=0}}}function ie(t,n,r,i){var a=function(e,t){var n=t.exec(e);if(n)switch(n[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}(n,r);return void 0===a?t:e.append(t,{range:{pos:i,end:l},type:a})}function ae(){if(d=g=l,l>=_)return m=1;var t=b.charCodeAt(l);if(60===t)return 47===b.charCodeAt(l+1)?(l+=2,m=30):(l++,m=29);if(123===t)return l++,m=18;for(var n=0,r=-1;l<_&&(k(t)||(r=l),123!==(t=b.charCodeAt(l)));){if(60===t){if(P(b,l))return l=O(b,l,C),m=7;break}62===t&&C(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,l,1),125===t&&C(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,l,1),r>0&&r++,E(t)&&0===n?n=-1:S(t)||(n=l),l++}return h=b.substring(d,-1===r?l:r),-1===n?12:11}function oe(){switch(d=l,b.charCodeAt(l)){case 34:case 39:return h=q(!0),m=10;default:return re()}}function se(e,t){var n=l,r=d,i=g,a=m,o=h,s=y,c=e();return c&&!t||(l=n,d=r,g=i,m=a,h=o,y=s),c}function ce(e,t,n){b=e||"",_=void 0===n?b.length:t+n,ue(t||0)}function ue(t){e.Debug.assert(t>=0),l=t,d=t,g=t,m=0,h=void 0,y=0}};var V=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r=e.charCodeAt(t);if(r>=55296&&r<=56319&&n>t+1){var i=e.charCodeAt(t+1);if(i>=56320&&i<=57343)return 1024*(r-55296)+i-56320+65536}return r}};function W(e){return e>=65536?2:1}var q=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var n=Math.floor((t-65536)/1024)+55296;return String.fromCharCode(n,(t-65536)%1024+56320)};function K(e){return q(e)}e.utf16EncodeAsString=K}(l||(l={})),function(e){function t(e){return e.start+e.length}function n(e){return 0===e.length}function r(e,t){var n=a(e,t);return n&&0===n.length?void 0:n}function i(e,t,n,r){return n<=e+t&&n+r>=e}function a(e,n){var r=Math.max(e.start,n.start),i=Math.min(t(e),t(n));return r<=i?s(r,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function u(t){return!!X(t)&&e.every(t.elements,l)}function l(t){return!!e.isOmittedExpression(t)||u(t.name)}function _(t){for(var n=t.parent;e.isBindingElement(n.parent);)n=n.parent.parent;return n.parent}function d(t,n){e.isBindingElement(t)&&(t=_(t));var r=n(t);return 246===t.kind&&(t=t.parent),t&&247===t.kind&&(r|=n(t),t=t.parent),t&&229===t.kind&&(r|=n(t)),r}function f(e){return 0==(8&e.flags)}function p(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function g(e){return p(e.escapedText)}function m(t){var n=t.parent.parent;if(n){if(ae(n))return h(n);switch(n.kind){case 229:if(n.declarationList&&n.declarationList.declarations[0])return h(n.declarationList.declarations[0]);break;case 230:var r=n.expression;switch(213===r.kind&&62===r.operatorToken.kind&&(r=r.left),r.kind){case 198:return r.name;case 199:var i=r.argumentExpression;if(e.isIdentifier(i))return i}break;case 204:return h(n.expression);case 242:if(ae(n.statement)||te(n.statement))return h(n.statement)}}}function h(t){var n=x(t);return n&&e.isIdentifier(n)?n:void 0}function y(e){return e.name||m(e)}function v(e){return!!e.name}function b(t){switch(t.kind){case 78:return t;case 328:case 322:var n=t.name;if(156===n.kind)return n.right;break;case 200:case 213:var r=t;switch(e.getAssignmentDeclarationKind(r)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}case 327:return y(t);case 321:return m(t);case 263:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 199:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function x(t){if(void 0!==t)return b(t)||(e.isFunctionExpression(t)||e.isClassExpression(t)?D(t):void 0)}function D(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function C(t,n){if(t.name){if(e.isIdentifier(t.name)){var r=t.name.escapedText;return A(t.parent,n).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===r})}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=A(t.parent,n).filter(e.isJSDocParameterTag);if(i=156}function B(e){return 8<=e&&e<=14}function j(e){return 14<=e&&e<=17}function U(t){return e.isPropertyDeclaration(t)&&e.isPrivateIdentifier(t.name)}function z(e){switch(e){case 125:case 129:case 84:case 133:case 87:case 92:case 122:case 120:case 121:case 141:case 123:return!0}return!1}function J(t){return!!(92&e.modifierToFlag(t))}function V(e){return e&&q(e.kind)}function W(e){switch(e){case 248:case 164:case 165:case 166:case 167:case 205:case 206:return!0;default:return!1}}function q(e){switch(e){case 163:case 168:case 309:case 169:case 170:case 173:case 304:case 174:return!0;default:return W(e)}}function K(e){var t=e.kind;return 165===t||162===t||164===t||166===t||167===t||170===t||226===t}function H(e){return e&&(249===e.kind||218===e.kind)}function G(e){var t=e.kind;return 169===t||168===t||161===t||163===t||170===t}function Q(e){var t=e.kind;return 285===t||286===t||287===t||164===t||166===t||167===t}function X(e){if(e){var t=e.kind;return 194===t||193===t}return!1}function Y(e){switch(e.kind){case 193:case 197:return!0}return!1}function Z(e){switch(e.kind){case 194:case 196:return!0}return!1}function $(e){switch(e){case 198:case 199:case 201:case 200:case 270:case 271:case 274:case 202:case 196:case 204:case 197:case 218:case 205:case 78:case 13:case 8:case 9:case 10:case 14:case 215:case 94:case 103:case 107:case 109:case 105:case 222:case 223:case 99:return!0;default:return!1}}function ee(e){switch(e){case 211:case 212:case 207:case 208:case 209:case 210:case 203:return!0;default:return $(e)}}function te(e){return function(e){switch(e){case 214:case 216:case 206:case 213:case 217:case 221:case 219:case 332:case 331:return!0;default:return ee(e)}}(M(e).kind)}function ne(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function re(e){return 248===e||268===e||249===e||250===e||251===e||252===e||253===e||258===e||257===e||264===e||263===e||256===e}function ie(e){return 238===e||237===e||245===e||232===e||230===e||228===e||235===e||236===e||234===e||231===e||242===e||239===e||241===e||243===e||244===e||229===e||233===e||240===e||330===e||334===e||333===e}function ae(t){return 158===t.kind?t.parent&&326!==t.parent.kind||e.isInJSFile(t):206===(n=t.kind)||195===n||249===n||218===n||165===n||252===n||288===n||267===n||248===n||205===n||166===n||259===n||257===n||262===n||250===n||277===n||164===n||163===n||253===n||256===n||260===n||266===n||159===n||285===n||162===n||161===n||167===n||286===n||251===n||158===n||246===n||327===n||320===n||328===n;var n}function oe(e){return e.kind>=310&&e.kind<=328}e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)},e.getDefaultLibFileName=function(e){switch(e.target){case 99:return"lib.esnext.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"}},e.textSpanEnd=t,e.textSpanIsEmpty=n,e.textSpanContainsPosition=function(e,n){return n>=e.start&&n=e.pos&&t<=e.end},e.textSpanContainsTextSpan=function(e,n){return n.start>=e.start&&t(n)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==r(e,t)},e.textSpanOverlap=r,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,n){return i(e.start,e.length,t,n)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,n){return n<=t(e)&&n>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return n(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(n){if(0===n.length)return e.unchangedTextChangeRange;if(1===n.length)return n[0];for(var r=n[0],i=r.span.start,a=t(r.span),o=i+r.newLength,u=1;u=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=p,e.idText=g,e.symbolName=function(e){return e.valueDeclaration&&U(e.valueDeclaration)?g(e.valueDeclaration.name):p(e.escapedName)},e.nodeHasName=function t(n,r){return!(!v(n)||!e.isIdentifier(n.name)||g(n.name)!==g(r))||!(!e.isVariableStatement(n)||!e.some(n.declarationList.declarations,function(e){return t(e,r)}))},e.getNameOfJSDocTypedef=y,e.isNamedDeclaration=v,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=x,e.getAssignedName=D,e.getJSDocParameterTags=S,e.getJSDocParameterTagsNoCache=function(e){return C(e,!0)},e.getJSDocTypeParameterTags=function(e){return k(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return k(e,!0)},e.hasJSDocParameterTags=function(t){return!!P(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return P(t,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(t){return O(t,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(t){return P(t,e.isJSDocClassTag)},e.getJSDocPublicTag=function(t){return P(t,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(t){return P(t,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(t){return P(t,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(t){return P(t,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(t){return P(t,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(t){return P(t,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(t){return P(t,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(t){return P(t,e.isJSDocReadonlyTag,!0)},e.getJSDocDeprecatedTag=function(t){return P(t,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(t){return P(t,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(t){return P(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return P(t,e.isJSDocThisTag)},e.getJSDocReturnTag=E,e.getJSDocTemplateTag=function(t){return P(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=T,e.getJSDocType=w,e.getJSDocReturnType=function(t){var n=E(t);if(n&&n.typeExpression)return n.typeExpression.type;var r=T(t);if(r&&r.typeExpression){var i=r.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=N,e.getJSDocTagsNoCache=function(e){return A(e,!0)},e.getAllJSDocTags=O,e.getAllJSDocTagsOfKind=function(e,t){return N(e).filter(function(e){return e.kind===t})},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(307===t.parent.kind),e.flatMap(t.parent.tags,function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0});if(t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var n=e.getJSDocTypeParameterDeclarations(t);if(n.length)return n;var r=w(t);if(r&&e.isFunctionTypeNode(r)&&r.typeParameters)return r.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0},e.isIdentifierOrPrivateIdentifier=function(e){return 78===e.kind||79===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 167===e.kind||166===e.kind},e.isPropertyAccessChain=function(t){return e.isPropertyAccessExpression(t)&&!!(32&t.flags)},e.isElementAccessChain=function(t){return e.isElementAccessExpression(t)&&!!(32&t.flags)},e.isCallChain=function(t){return e.isCallExpression(t)&&!!(32&t.flags)},e.isOptionalChain=F,e.isOptionalChainRoot=I,e.isExpressionOfOptionalChainRoot=function(e){return I(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!F(e.parent)||I(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 213===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments},e.skipPartiallyEmittedExpressions=M,e.isNonNullChain=function(t){return e.isNonNullExpression(t)&&!!(32&t.flags)},e.isBreakOrContinueStatement=function(e){return 238===e.kind||237===e.kind},e.isNamedExportBindings=function(e){return 266===e.kind||265===e.kind},e.isUnparsedTextLike=L,e.isUnparsedNode=function(e){return L(e)||289===e.kind||293===e.kind},e.isJSDocPropertyLikeTag=function(e){return 328===e.kind||322===e.kind},e.isNode=function(e){return R(e.kind)},e.isNodeKind=R,e.isToken=function(e){return e.kind>=0&&e.kind<=155},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=B,e.isLiteralExpression=function(e){return B(e.kind)},e.isTemplateLiteralKind=j,e.isTemplateLiteralToken=function(e){return j(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 262:case 267:return e.parent.parent.isTypeOnly;case 260:return e.parent.isTypeOnly;case 259:return e.isTypeOnly;default:return!1}},e.isStringTextContainingNode=function(e){return 10===e.kind||j(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isPrivateIdentifierPropertyDeclaration=U,e.isPrivateIdentifierPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)},e.isModifierKind=z,e.isParameterPropertyModifier=J,e.isClassMemberModifier=function(e){return J(e)||123===e},e.isModifier=function(e){return z(e.kind)},e.isEntityName=function(e){var t=e.kind;return 156===t||78===t},e.isPropertyName=function(e){var t=e.kind;return 78===t||79===t||10===t||8===t||157===t},e.isBindingName=function(e){var t=e.kind;return 78===t||193===t||194===t},e.isFunctionLike=V,e.isFunctionLikeDeclaration=function(e){return e&&W(e.kind)},e.isFunctionLikeKind=q,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&V(t.parent)},e.isClassElement=K,e.isClassLike=H,e.isAccessor=function(e){return e&&(166===e.kind||167===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 164:case 166:case 167:return!0;default:return!1}},e.isTypeElement=G,e.isClassOrTypeElement=function(e){return G(e)||K(e)},e.isObjectLiteralElementLike=Q,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 173:case 174:return!0}return!1},e.isBindingPattern=X,e.isAssignmentPattern=function(e){var t=e.kind;return 196===t||197===t},e.isArrayBindingElement=function(e){var t=e.kind;return 195===t||219===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 246:case 159:case 195:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return Y(e)||Z(e)},e.isObjectBindingOrAssignmentPattern=Y,e.isArrayBindingOrAssignmentPattern=Z,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 198===t||156===t||192===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 198===t||156===t},e.isCallLikeExpression=function(e){switch(e.kind){case 272:case 271:case 200:case 201:case 202:case 160:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 200===e.kind||201===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 215===t||14===t},e.isLeftHandSideExpression=function(e){return $(M(e).kind)},e.isUnaryExpression=function(e){return ee(M(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 212:return!0;case 211:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=te,e.isAssertionExpression=function(e){var t=e.kind;return 203===t||221===t},e.isNotEmittedOrPartiallyEmittedNode=function(t){return e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t)},e.isIterationStatement=function e(t,n){switch(t.kind){case 234:case 235:case 236:case 232:case 233:return!0;case 242:return n&&e(t.statement,n)}return!1},e.isScopeMarker=ne,e.hasScopeMarker=function(t){return e.some(t,ne)},e.needsScopeMarker=function(t){return!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t))},e.isExternalModuleIndicator=function(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)},e.isForInOrOfStatement=function(e){return 235===e.kind||236===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||te(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||te(t)},e.isModuleBody=function(e){var t=e.kind;return 254===t||253===t||78===t},e.isNamespaceBody=function(e){var t=e.kind;return 254===t||253===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 78===t||253===t},e.isNamedImportBindings=function(e){var t=e.kind;return 261===t||260===t},e.isModuleOrEnumDeclaration=function(e){return 253===e.kind||252===e.kind},e.isDeclaration=ae,e.isDeclarationStatement=function(e){return re(e.kind)},e.isStatementButNotDeclaration=function(e){return ie(e.kind)},e.isStatement=function(t){var n=t.kind;return ie(n)||re(n)||function(t){return 227===t.kind&&(void 0===t.parent||244!==t.parent.kind&&284!==t.parent.kind)&&!e.isFunctionBlock(t)}(t)},e.isStatementOrBlock=function(e){var t=e.kind;return ie(t)||re(t)||227===t},e.isModuleReference=function(e){var t=e.kind;return 269===t||156===t||78===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 107===t||78===t||198===t},e.isJsxChild=function(e){var t=e.kind;return 270===t||280===t||271===t||11===t||274===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 277===t||279===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||280===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 272===t||271===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 281===t||282===t},e.isJSDocNode=function(e){return e.kind>=298&&e.kind<=328},e.isJSDocCommentContainingNode=function(t){return 307===t.kind||306===t.kind||oe(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=oe,e.isSetAccessor=function(e){return 167===e.kind},e.isGetAccessor=function(e){return 166===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 246:case 159:case 195:case 161:case 162:case 285:case 288:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 277===e.kind||279===e.kind||Q(e)},e.isTypeReferenceType=function(e){return 172===e.kind||220===e.kind},e.guessIndentation=function(t){for(var n=1073741823,r=0,i=t;r=0);var r=e.getLineStarts(n),i=n.text;if(t+1===r.length)return i.length-1;var a=r[t],o=r[t+1]-1;for(e.Debug.assert(e.isLineBreak(i.charCodeAt(o)));a<=o&&e.isLineBreak(i.charCodeAt(o));)o--;return o}function _(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function d(e){return!_(e)}function f(e,t,n){if(void 0===t||0===t.length)return e;for(var r=0;r0?h(t._children[0],n,r):e.skipTrivia((n||u(t)).text,t.pos)}function y(e,t,n){return void 0===n&&(n=!1),v(e.text,t,n)}function v(t,n,r){if(void 0===r&&(r=!1),_(n))return"";var i=t.substring(r?n.pos:e.skipTrivia(t,n.pos),n.end);return function(t){return!!s(t,e.isJSDocTypeExpression)}(n)&&(i=i.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),i}function b(e,t){return void 0===t&&(t=!1),y(u(e),e,t)}function x(e){return e.pos}function D(e){var t=e.emitNode;return t&&t.flags||0}function C(e){var t=bt(e);return 246===t.kind&&284===t.parent.kind}function S(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||E(t))}function k(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function E(e){return!!(1024&e.flags)}function T(e){return S(e)&&w(e)}function w(t){switch(t.parent.kind){case 294:return e.isExternalModule(t.parent);case 254:return S(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function A(t,n){switch(t.kind){case 294:case 255:case 284:case 253:case 234:case 235:case 236:case 165:case 164:case 166:case 167:case 248:case 205:case 206:return!0;case 227:return!e.isFunctionLike(n)}return!1}function N(t){switch(t.kind){case 168:case 169:case 163:case 170:case 173:case 174:case 304:case 249:case 218:case 250:case 251:case 326:case 248:case 164:case 165:case 166:case 167:case 205:case 206:return!0;default:return e.assertType(t),!1}}function P(e){switch(e.kind){case 258:case 257:return!0;default:return!1}}function O(e){return e&&0!==c(e)?b(e):"(Missing)"}function F(t){switch(t.kind){case 78:case 79:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 157:return lt(t.expression)?e.escapeLeadingUnderscores(t.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(t)}}function I(t){switch(t.kind){case 107:return"this";case 79:case 78:return 0===c(t)?e.idText(t):b(t);case 156:return I(t.left)+"."+I(t.right);case 198:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?I(t.expression)+"."+I(t.name):e.Debug.assertNever(t.name);default:return e.Debug.assertNever(t)}}function M(e,t,n,r,i,a,o){var s=R(e,t);return sr(e,s.start,s.length,n,r,i,a,o)}function L(t,n){var r=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);r.scan();var i=r.getTokenPos();return e.createTextSpanFromBounds(i,r.getTextPos())}function R(t,n){var r=n;switch(n.kind){case 294:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):L(t,i);case 246:case 195:case 249:case 218:case 250:case 253:case 252:case 288:case 248:case 205:case 164:case 166:case 167:case 251:case 162:case 161:r=n.name;break;case 206:return function(t,n){var r=e.skipTrivia(t.text,n.pos);if(n.body&&227===n.body.kind){var i=e.getLineAndCharacterOfPosition(t,n.body.pos).line;if(i0?n.statements[0].pos:n.end)}if(void 0===r)return L(t,n.pos);e.Debug.assert(!e.isJSDoc(r));var o=_(r),s=o||e.isJsxText(n)?r.pos:e.skipTrivia(t.text,r.pos);return o?(e.Debug.assert(s===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(s===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(s>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(s<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(s,r.end)}function B(e){return 6===e.scriptKind}function j(t){return!!(2&e.getCombinedNodeFlags(t))}function U(e){return 200===e.kind&&99===e.expression.kind}function z(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function J(e){return 230===e.kind&&10===e.expression.kind}function V(e){return!!(1048576&D(e))}function W(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||o(e,t)},e.optionsHaveModuleResolutionChanges=o,e.findAncestor=s,e.forEachAncestor=function(t,n){for(;;){var r=n(t);if("quit"===r)return;if(void 0!==r)return r;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var n=e.entries(),r=n.next();!r.done;r=n.next()){var i=r.value,a=t(i[1],i[0]);if(a)return a}},e.forEachKey=function(e,t){for(var n=e.keys(),r=n.next();!r.done;r=n.next()){var i=t(r.value);if(i)return i}},e.copyEntries=function(e,t){e.forEach(function(e,n){t.set(n,e)})},e.usingSingleLineStringWriter=function(e){var t=r.getText();try{return e(r),r.getText()}finally{r.clear(),r.writeKeyword(t)}},e.getFullWidth=c,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,n,r){t.resolvedModules||(t.resolvedModules=new e.Map),t.resolvedModules.set(n,r)},e.setResolvedTypeReferenceDirective=function(t,n,r){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=new e.Map),t.resolvedTypeReferenceDirectiveNames.set(n,r)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&((n=e.packageId)===(r=t.packageId)||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version);var n,r},e.packageIdToString=function(e){var t=e.name,n=e.subModuleName;return(n?t+"/"+n:t)+"@"+e.version},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},e.hasChangesInResolutions=function(t,n,r,i){e.Debug.assert(t.length===n.length);for(var a=0;a=0),e.getLineStarts(n)[t]},e.nodePosToString=function(t){var n=u(t),r=e.getLineAndCharacterOfPosition(n,t.pos);return n.fileName+"("+(r.line+1)+","+(r.character+1)+")"},e.getEndLinePosition=l,e.isFileLevelUniqueName=function(e,t,n){return!(n&&n(t)||e.identifiers.has(t))},e.nodeIsMissing=_,e.nodeIsPresent=d,e.insertStatementsAfterStandardPrologue=function(e,t){return f(e,t,J)},e.insertStatementsAfterCustomPrologue=function(e,t){return f(e,t,g)},e.insertStatementAfterStandardPrologue=function(e,t){return p(e,t,J)},e.insertStatementAfterCustomPrologue=function(e,t){return p(e,t,g)},e.isRecognizedTripleSlashComment=function(t,n,r){if(47===t.charCodeAt(n+1)&&n+2=e.ModuleKind.ES2015)&&n.noImplicitUseStrict))},e.isBlockScope=A,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 320:case 327:case 309:return!0;default:return e.assertType(t),N(t)}},e.isDeclarationWithTypeParameterChildren=N,e.isAnyImportSyntax=P,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 258:case 257:case 229:case 249:case 248:case 253:case 251:case 250:case 252:return!0;default:return!1}},e.isAnyImportOrReExport=function(t){return P(t)||e.isExportDeclaration(t)},e.getEnclosingBlockScopeContainer=function(e){return s(e.parent,function(e){return A(e,e.parent)})},e.declarationNameToString=O,e.getNameFromIndexInfo=function(e){return e.declaration?O(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 157===e.kind&&!lt(e.expression)},e.getTextOfPropertyName=F,e.entityNameToString=I,e.createDiagnosticForNode=function(e,t,n,r,i,a){return M(u(e),e,t,n,r,i,a)},e.createDiagnosticForNodeArray=function(t,n,r,i,a,o,s){var c=e.skipTrivia(t.text,n.pos);return sr(t,c,n.end-c,r,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=M,e.createDiagnosticForNodeFromMessageChain=function(e,t,n){var r=u(e),i=R(r,e);return{file:r,start:i.start,length:i.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}},e.createDiagnosticForRange=function(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}},e.getSpanOfTokenAtPosition=L,e.getErrorSpanForNode=R,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=B,e.isEnumConst=function(t){return!!(2048&e.getCombinedModifierFlags(t))},e.isDeclarationReadonly=function(t){return!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent))},e.isVarConst=j,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 200===e.kind&&105===e.expression.kind},e.isImportCall=U,e.isImportMeta=function(t){return e.isMetaProperty(t)&&99===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=z,e.isPrologueDirective=J,e.isCustomPrologue=V,e.isHoistedFunction=function(t){return V(t)&&e.isFunctionDeclaration(t)},e.isHoistedVariableStatement=function(t){return V(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,W)},e.getLeadingCommentRangesOfNode=function(t,n){return 11!==t.kind?e.getLeadingCommentRanges(n.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,n){var r=159===t.kind||158===t.kind||205===t.kind||206===t.kind||204===t.kind?e.concatenate(e.getTrailingCommentRanges(n,t.pos),e.getLeadingCommentRanges(n,t.pos)):e.getLeadingCommentRanges(n,t.pos);return e.filter(r,function(e){return 42===n.charCodeAt(e.pos+1)&&42===n.charCodeAt(e.pos+2)&&47!==n.charCodeAt(e.pos+3)})},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var q=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var K,H,G,Q,X=/^(\/\/\/\s*/;function Y(t){if(171<=t.kind&&t.kind<=192)return!0;switch(t.kind){case 128:case 151:case 143:case 154:case 146:case 131:case 147:case 144:case 149:case 140:return!0;case 113:return 209!==t.parent.kind;case 220:return!An(t);case 158:return 189===t.parent.kind||184===t.parent.kind;case 78:(156===t.parent.kind&&t.parent.right===t||198===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(78===t.kind||156===t.kind||198===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 156:case 198:case 107:var n=t.parent;if(175===n.kind)return!1;if(192===n.kind)return!n.isTypeOf;if(171<=n.kind&&n.kind<=192)return!0;switch(n.kind){case 220:return!An(n);case 158:case 326:return t===n.constraint;case 162:case 161:case 159:case 246:return t===n.type;case 248:case 205:case 206:case 165:case 164:case 163:case 166:case 167:return t===n.type;case 168:case 169:case 170:case 203:return t===n.type;case 200:case 201:return e.contains(n.typeArguments,t);case 202:return!1}}return!1}function Z(e){if(e)switch(e.kind){case 195:case 288:case 159:case 285:case 162:case 161:case 286:case 246:return!0}return!1}function $(e){return 247===e.parent.kind&&229===e.parent.parent.kind}function ee(e,t,n){return e.properties.filter(function(e){if(285===e.kind){var r=F(e.name);return t===r||!!n&&n===r}return!1})}function te(t){if(t&&t.statements.length)return e.tryCast(t.statements[0].expression,e.isObjectLiteralExpression)}function ne(t,n){var r=te(t);return r?ee(r,n):e.emptyArray}function re(t,n){for(e.Debug.assert(294!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 157:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 160:159===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 206:if(!n)continue;case 248:case 205:case 253:case 162:case 161:case 164:case 163:case 165:case 166:case 167:case 168:case 169:case 170:case 252:case 294:return t}}}function ie(e){var t=e.kind;return(198===t||199===t)&&105===e.expression.kind}function ae(t,n,r){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 249:return!0;case 162:return 249===n.kind;case 166:case 167:case 164:return void 0!==t.body&&249===n.kind;case 159:return void 0!==n.body&&(165===n.kind||164===n.kind||167===n.kind)&&249===r.kind}return!1}function oe(e,t,n){return void 0!==e.decorators&&ae(e,t,n)}function se(e,t,n){return oe(e,t,n)||ce(e,t)}function ce(t,n){switch(t.kind){case 249:return e.some(t.members,function(e){return se(e,t,n)});case 164:case 167:return e.some(t.parameters,function(e){return oe(e,t,n)});default:return!1}}function ue(e){var t=e.parent;return(272===t.kind||271===t.kind||273===t.kind)&&t.tagName===e}function le(e){switch(e.kind){case 105:case 103:case 109:case 94:case 13:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 221:case 203:case 222:case 204:case 205:case 218:case 206:case 209:case 207:case 208:case 211:case 212:case 213:case 214:case 217:case 215:case 219:case 270:case 271:case 274:case 216:case 210:case 223:return!0;case 156:for(;156===e.parent.kind;)e=e.parent;return 175===e.parent.kind||ue(e);case 78:if(175===e.parent.kind||ue(e))return!0;case 8:case 9:case 10:case 14:case 107:return _e(e);default:return!1}}function _e(e){var t=e.parent;switch(t.kind){case 246:case 159:case 162:case 161:case 288:case 285:case 195:return t.initializer===e;case 230:case 231:case 232:case 233:case 239:case 240:case 241:case 281:case 243:return t.expression===e;case 234:return t.initializer===e&&247!==t.initializer.kind||t.condition===e||t.incrementor===e;case 235:case 236:return t.initializer===e&&247!==t.initializer.kind||t.expression===e;case 203:case 221:case 225:case 157:return e===t.expression;case 160:case 280:case 279:case 287:return!0;case 220:return t.expression===e&&An(t);case 286:return t.objectAssignmentInitializer===e;default:return le(t)}}function de(e){for(;156===e.kind||78===e.kind;)e=e.parent;return 175===e.kind}function fe(e){return 257===e.kind&&269===e.moduleReference.kind}function pe(e){return ge(e)}function ge(e){return!!e&&!!(131072&e.flags)}function me(t,n){if(200!==t.kind)return!1;var r=t.expression,i=t.arguments;return 78===r.kind&&"require"===r.escapedText&&1===i.length&&(!n||e.isStringLiteralLike(i[0]))}function he(t,n){return e.isVariableDeclaration(t)&&!!t.initializer&&me(t.initializer,n)}function ye(t){return e.isBinaryExpression(t)||Qn(t)||e.isIdentifier(t)||e.isCallExpression(t)}function ve(t){return ge(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&Nn(t.name)&&xe(t.name,t.initializer.left)?t.initializer.right:t.initializer}function be(t,n){if(e.isCallExpression(t)){var r=Ze(t.expression);return 205===r.kind||206===r.kind?t:void 0}return 205===t.kind||218===t.kind||206===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||n)?t:void 0}function xe(t,n){if(mt(t)&&mt(n))return ht(t)===ht(n);if(e.isIdentifier(t)&&we(n)&&(107===n.expression.kind||e.isIdentifier(n.expression)&&("window"===n.expression.escapedText||"self"===n.expression.escapedText||"global"===n.expression.escapedText))){var r=Fe(n);return e.isPrivateIdentifier(r)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),xe(t,r)}return!(!we(t)||!we(n))&&Me(t)===Me(n)&&xe(t.expression,n.expression)}function De(e){for(;wn(e,!0);)e=e.right;return e}function Ce(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Se(t){return e.isIdentifier(t)&&"module"===t.escapedText}function ke(t){return(e.isPropertyAccessExpression(t)||Ae(t))&&Se(t.expression)&&"exports"===Me(t)}function Ee(t){var n=function(t){if(e.isCallExpression(t)){if(!Te(t))return 0;var n=t.arguments[0];return Ce(n)||ke(n)?8:Ne(n)&&"prototype"===Me(n)?9:7}return 62!==t.operatorToken.kind||!Qn(t.left)||(r=De(t),e.isVoidExpression(r)&&e.isNumericLiteral(r.expression)&&"0"===r.expression.text)?0:Oe(t.left.expression,!0)&&"prototype"===Me(t.left)&&e.isObjectLiteralExpression(Re(t))?6:Le(t.left);var r}(t);return 5===n||ge(t)?n:0}function Te(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&<(t.arguments[1])&&Oe(t.arguments[0],!0)}function we(t){return e.isPropertyAccessExpression(t)||Ae(t)}function Ae(t){return e.isElementAccessExpression(t)&&(lt(t.argumentExpression)||pt(t.argumentExpression))}function Ne(t,n){return e.isPropertyAccessExpression(t)&&(!n&&107===t.expression.kind||e.isIdentifier(t.name)&&Oe(t.expression,!0))||Pe(t,n)}function Pe(e,t){return Ae(e)&&(!t&&107===e.expression.kind||Nn(e.expression)||Ne(e.expression,!0))}function Oe(e,t){return Nn(e)||Ne(e,t)}function Fe(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function Ie(t){if(e.isPropertyAccessExpression(t))return t.name;var n=Ze(t.argumentExpression);return e.isNumericLiteral(n)||e.isStringLiteralLike(n)?n:t}function Me(t){var n=Ie(t);if(n){if(e.isIdentifier(n))return n.escapedText;if(e.isStringLiteralLike(n)||e.isNumericLiteral(n))return e.escapeLeadingUnderscores(n.text)}if(e.isElementAccessExpression(t)&&pt(t.argumentExpression))return yt(e.idText(t.argumentExpression.name))}function Le(t){if(107===t.expression.kind)return 4;if(ke(t))return 2;if(Oe(t.expression,!0)){if(On(t.expression))return 3;for(var n=t;!e.isIdentifier(n.expression);)n=n.expression;var r=n.expression;if(("exports"===r.escapedText||"module"===r.escapedText&&"exports"===Me(n))&&Ne(t))return 1;if(Oe(t,!0)||e.isElementAccessExpression(t)&&ft(t))return 5}return 0}function Re(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function Be(t){switch(t.parent.kind){case 258:case 264:return t.parent;case 269:return t.parent.parent;case 200:return U(t.parent)||me(t.parent,!1)?t.parent:void 0;case 190:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function je(e){return 327===e.kind||320===e.kind||321===e.kind}function Ue(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Ee(t.expression)&&e.isBinaryExpression(t.expression.right)&&(56===t.expression.right.operatorToken.kind||60===t.expression.right.operatorToken.kind)?t.expression.right.right:void 0}function ze(e){switch(e.kind){case 229:var t=Je(e);return t&&t.initializer;case 162:case 285:return e.initializer}}function Je(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function Ve(t){return e.isModuleDeclaration(t)&&t.body&&253===t.body.kind?t.body:void 0}function We(t){var n=t.parent;return 285===n.kind||263===n.kind||162===n.kind||230===n.kind&&198===t.kind||Ve(n)||e.isBinaryExpression(t)&&62===t.operatorToken.kind?n:n.parent&&(Je(n.parent)===t||e.isBinaryExpression(n)&&62===n.operatorToken.kind)?n.parent:n.parent&&n.parent.parent&&(Je(n.parent.parent)||ze(n.parent.parent)===t||Ue(n.parent.parent))?n.parent.parent:void 0}function qe(t){var n=Ke(t);return n&&e.isFunctionLike(n)?n:void 0}function Ke(t){var n=He(t);return Ue(n)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&62===t.expression.operatorToken.kind?De(t.expression):void 0}(n)||ze(n)||Je(n)||Ve(n)||n}function He(t){return e.Debug.checkDefined(s(t.parent,e.isJSDoc)).parent}function Ge(t){var n=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!n&&305===n.kind}function Qe(e){for(var t=e.parent;;){switch(t.kind){case 213:var n=t.operatorToken.kind;return kn(n)&&t.left===e?62===n||Sn(n)?1:2:0;case 211:case 212:var r=t.operator;return 45===r||46===r?2:0;case 235:case 236:return t.initializer===e?1:0;case 204:case 196:case 217:case 222:e=t;break;case 286:if(t.name!==e)return 0;e=t.parent;break;case 285:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function Xe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function Ye(e){return Xe(e,204)}function Ze(t){return e.skipOuterExpressions(t,1)}function $e(t){return Nn(t)||e.isClassExpression(t)}function et(e){return $e(tt(e))}function tt(t){return e.isExportAssignment(t)?t.expression:t.right}function nt(t){var n=rt(t);if(n&&ge(t)){var r=e.getJSDocAugmentsTag(t);if(r)return r.class}return n}function rt(e){var t=ot(e.heritageClauses,93);return t&&t.types.length>0?t.types[0]:void 0}function it(t){if(ge(t))return e.getJSDocImplementsTags(t).map(function(e){return e.class});var n=ot(t.heritageClauses,116);return null==n?void 0:n.types}function at(e){var t=ot(e.heritageClauses,93);return t?t.types:void 0}function ot(e,t){if(e)for(var n=0,r=e;n0&&e.every(t.declarationList.declarations,function(e){return he(e,n)})},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===y(t,e).charCodeAt(0)},e.getDeclarationOfExpando=function(t){if(t.parent){var n,r;if(e.isVariableDeclaration(t.parent)&&t.parent.initializer===t){if(!ge(t)&&!j(t.parent))return;n=t.parent.name,r=t.parent}else if(e.isBinaryExpression(t.parent)){var i=t.parent,a=t.parent.operatorToken.kind;if(62===a&&i.right===t)r=n=i.left;else if(!(56!==a&&60!==a||(e.isVariableDeclaration(i.parent)&&i.parent.initializer===i?(n=i.parent.name,r=i.parent):e.isBinaryExpression(i.parent)&&62===i.parent.operatorToken.kind&&i.parent.right===i&&(r=n=i.parent.left),n&&Oe(n)&&xe(n,i.left))))return}if(n&&be(t,On(n)))return r}},e.isAssignmentDeclaration=ye,e.getEffectiveInitializer=ve,e.getDeclaredExpandoInitializer=function(e){var t=ve(e);return t&&be(t,On(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind){var n=On(t.parent.left);return be(t.parent.right,n)||function(t,n,r){var i=e.isBinaryExpression(n)&&(56===n.operatorToken.kind||60===n.operatorToken.kind)&&be(n.right,r);if(i&&xe(t,n.left))return i}(t.parent.left,t.parent.right,n)}if(t&&e.isCallExpression(t)&&Te(t)){var r=function(t,n){return e.forEach(t.properties,function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&be(t.initializer,n)})}(t.arguments[2],"prototype"===t.arguments[1].text);if(r)return r}},e.getExpandoInitializer=be,e.isDefaultedExpandoInitializer=function(t){var n=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind?t.parent.left:void 0;return n&&be(t.right,On(n))&&Nn(n)&&xe(n,t.left)},e.getNameOfExpando=function(t){if(e.isBinaryExpression(t.parent)){var n=56!==t.parent.operatorToken.kind&&60!==t.parent.operatorToken.kind||!e.isBinaryExpression(t.parent.parent)?t.parent:t.parent.parent;if(62===n.operatorToken.kind&&e.isIdentifier(n.left))return n.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.getRightMostAssignedExpression=De,e.isExportsIdentifier=Ce,e.isModuleIdentifier=Se,e.isModuleExportsAccessExpression=ke,e.getAssignmentDeclarationKind=Ee,e.isBindableObjectDefinePropertyCall=Te,e.isLiteralLikeAccess=we,e.isLiteralLikeElementAccess=Ae,e.isBindableStaticAccessExpression=Ne,e.isBindableStaticElementAccessExpression=Pe,e.isBindableStaticNameExpression=Oe,e.getNameOrArgument=Fe,e.getElementOrPropertyAccessArgumentExpressionOrName=Ie,e.getElementOrPropertyAccessName=Me,e.getAssignmentDeclarationPropertyAccessKind=Le,e.getInitializerOfBinaryExpression=Re,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===Ee(t)},e.isSpecialPropertyDeclaration=function(t){return ge(t)&&t.parent&&230===t.parent.kind&&(!e.isElementAccessExpression(t)||Ae(t))&&!!e.getJSDocTypeTag(t.parent)},e.setValueDeclaration=function(e,t){var n=e.valueDeclaration;(!n||(!(8388608&t.flags)||8388608&n.flags)&&ye(n)&&!ye(t)||n.kind!==t.kind&&k(n))&&(e.valueDeclaration=t)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var n=t.valueDeclaration;return 248===n.kind||e.isVariableDeclaration(n)&&n.initializer&&e.isFunctionLike(n.initializer)},e.importFromModuleSpecifier=function(t){return Be(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=Be,e.getExternalModuleName=function(t){switch(t.kind){case 258:case 264:return t.moduleSpecifier;case 257:return 269===t.moduleReference.kind?t.moduleReference.expression:void 0;case 192:return z(t)?t.argument.literal:void 0;default:return e.Debug.assertNever(t)}},e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 258:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 257:return t;case 264:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 258===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(t,n){var r;return t.name&&(r=n(t))||t.namedBindings&&(r=e.isNamespaceImport(t.namedBindings)?n(t.namedBindings):e.forEach(t.namedBindings.elements,n))?r:void 0},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 159:case 164:case 163:case 286:case 285:case 162:case 161:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(t){var n=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):void 0,r=e.tryCast(n&&n.name,e.isIdentifier);return!!r&&"new"===r.escapedText},e.isJSDocTypeAlias=je,e.isTypeAlias=function(t){return je(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=ze,e.getSingleVariableOfVariableStatement=Je,e.getJSDocCommentsAndTags=function(t,n){var r;Z(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(r=e.append(r,e.last(t.initializer.jsDoc)));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(r=e.append(r,e.last(i.jsDoc))),159===i.kind){r=e.addRange(r,(n?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(158===i.kind){r=e.addRange(r,(n?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=We(i)}return r||e.emptyArray},e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var n=t.name.escapedText,r=qe(t);if(r){var i=e.find(r.parameters,function(e){return 78===e.name.kind&&e.name.escapedText===n});return i&&i.symbol}}},e.getHostSignatureFromJSDoc=qe,e.getEffectiveJSDocHost=Ke,e.getJSDocHost=He,e.getTypeParameterFromJsDoc=function(t){var n=t.name.escapedText,r=t.parent.parent.parent.typeParameters;return r&&e.find(r,function(e){return e.name.escapedText===n})},e.hasRestParameter=function(t){var n=e.lastOrUndefined(t.parameters);return!!n&&Ge(n)},e.isRestParameter=Ge,e.hasTypeArguments=function(e){return!!e.typeArguments},(Q=e.AssignmentKind||(e.AssignmentKind={}))[Q.None=0]="None",Q[Q.Definite=1]="Definite",Q[Q.Compound=2]="Compound",e.getAssignmentTargetKind=Qe,e.isAssignmentTarget=function(e){return 0!==Qe(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 227:case 229:case 240:case 231:case 241:case 255:case 281:case 282:case 242:case 234:case 235:case 236:case 232:case 233:case 244:case 284:return!0}return!1},e.isValueSignatureDeclaration=function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)},e.walkUpParenthesizedTypes=function(e){return Xe(e,185)},e.walkUpParenthesizedExpressions=Ye,e.skipParentheses=Ze,e.isDeleteTarget=function(e){return(198===e.kind||199===e.kind)&&(e=Ye(e.parent))&&207===e.kind},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.getDeclarationFromName=function(t){var n=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(n))return n.parent;case 78:if(e.isDeclaration(n))return n.name===t?n:void 0;if(e.isQualifiedName(n)){var r=n.parent;return e.isJSDocParameterTag(r)&&r.name===n?r:void 0}var i=n.parent;return e.isBinaryExpression(i)&&0!==Ee(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 79:return e.isDeclaration(n)&&n.name===t?n:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return lt(t)&&157===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 162:case 161:case 164:case 163:case 166:case 167:case 288:case 285:case 198:return t.name===e;case 156:return t.right===e;case 195:case 262:return t.propertyName===e;case 267:case 277:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return 257===t.kind||256===t.kind||259===t.kind&&!!t.name||260===t.kind||266===t.kind||262===t.kind||267===t.kind||263===t.kind&&et(t)||e.isBinaryExpression(t)&&2===Ee(t)&&et(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind&&$e(t.parent.right)||286===t.kind||285===t.kind&&$e(t.initializer)},e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 259:case 262:case 260:case 267:case 263:case 257:return t.parent;case 156:do{t=t.parent}while(156===t.parent.kind);return e(t)}},e.isAliasableExpression=$e,e.exportAssignmentIsAlias=et,e.getExportAssignmentExpression=tt,e.getPropertyAssignmentAliasLikeExpression=function(e){return 286===e.kind?e.name:285===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=nt,e.getClassExtendsHeritageElement=rt,e.getEffectiveImplementsTypeNodes=it,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?at(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(nt(t)),it(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=at,e.getHeritageClause=ot,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=st,e.isContextualKeyword=ct,e.isNonContextualKeyword=ut,e.isFutureReservedKeyword=function(e){return 116<=e&&e<=124},e.isStringANonContextualKeyword=function(t){var n=e.stringToToken(t);return void 0!==n&&ut(n)},e.isStringAKeyword=function(t){var n=e.stringToToken(t);return void 0!==n&&st(n)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!ct(t)},e.isTrivia=function(e){return 2<=e&&e<=7},(G=e.FunctionFlags||(e.FunctionFlags={}))[G.Normal=0]="Normal",G[G.Generator=1]="Generator",G[G.Async=2]="Async",G[G.Invalid=4]="Invalid",G[G.AsyncGenerator=3]="AsyncGenerator",e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 248:case 205:case 164:e.asteriskToken&&(t|=1);case 206:dn(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 248:case 205:case 206:case 164:return void 0!==e.body&&void 0===e.asteriskToken&&dn(e,256)}return!1},e.isStringOrNumericLiteralLike=lt,e.isSignedNumericLiteral=_t,e.hasDynamicName=dt,e.isDynamicName=ft,e.isWellKnownSymbolSyntactically=pt,e.getPropertyNameForPropertyNameNode=gt,e.isPropertyNameLiteral=mt,e.getTextOfIdentifierOrLiteral=ht,e.getEscapedTextOfIdentifierOrLiteral=function(t){return e.isIdentifierOrPrivateIdentifier(t)?t.escapedText:e.escapeLeadingUnderscores(t.text)},e.getPropertyNameForUniqueESSymbol=function(t){return"__@"+e.getSymbolId(t)+"@"+t.escapedName},e.getPropertyNameForKnownSymbolName=yt,e.getSymbolNameForPrivateIdentifier=function(t,n){return"__#"+e.getSymbolId(t)+"@"+n},e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isESSymbolIdentifier=vt,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 159===bt(e).kind},e.getRootDeclaration=bt,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 165===t||205===t||248===t||206===t||164===t||166===t||167===t||253===t||294===t},e.nodeIsSynthesized=xt,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},(H=e.Associativity||(e.Associativity={}))[H.Left=0]="Left",H[H.Right=1]="Right",e.getExpressionAssociativity=function(e){var t=Ct(e);return Dt(e.kind,t,201===e.kind&&void 0!==e.arguments)},e.getOperatorAssociativity=Dt,e.getExpressionPrecedence=function(e){var t=Ct(e);return St(e.kind,t,201===e.kind&&void 0!==e.arguments)},e.getOperator=Ct,(K=e.OperatorPrecedence||(e.OperatorPrecedence={}))[K.Comma=0]="Comma",K[K.Spread=1]="Spread",K[K.Yield=2]="Yield",K[K.Assignment=3]="Assignment",K[K.Conditional=4]="Conditional",K[K.Coalesce=4]="Coalesce",K[K.LogicalOR=5]="LogicalOR",K[K.LogicalAND=6]="LogicalAND",K[K.BitwiseOR=7]="BitwiseOR",K[K.BitwiseXOR=8]="BitwiseXOR",K[K.BitwiseAND=9]="BitwiseAND",K[K.Equality=10]="Equality",K[K.Relational=11]="Relational",K[K.Shift=12]="Shift",K[K.Additive=13]="Additive",K[K.Multiplicative=14]="Multiplicative",K[K.Exponentiation=15]="Exponentiation",K[K.Unary=16]="Unary",K[K.Update=17]="Update",K[K.LeftHandSide=18]="LeftHandSide",K[K.Member=19]="Member",K[K.Primary=20]="Primary",K[K.Highest=20]="Highest",K[K.Lowest=0]="Lowest",K[K.Invalid=-1]="Invalid",e.getOperatorPrecedence=St,e.getBinaryOperatorPrecedence=kt,e.createDiagnosticCollection=function(){var t=[],n=[],r=new e.Map,i=!1;return{add:function(a){var o;a.file?(o=r.get(a.file.fileName))||(r.set(a.file.fileName,o=[]),e.insertSorted(n,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t),e.insertSorted(o,a,lr)},lookup:function(n){var i;if(i=n.file?r.get(n.file.fileName):t){var a=e.binarySearch(i,n,e.identity,_r);return a>=0?i[a]:void 0}},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return r.get(i)||[];var a=e.flatMapToMutable(n,function(e){return r.get(e)});return t.length?(a.unshift.apply(a,t),a):a},reattachFileDiagnostics:function(t){e.forEach(r.get(t.fileName),function(e){return e.file=t})}}};var Et=/\$\{/g;e.hasInvalidEscape=function(t){return t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,function(e){return!!e.literal.templateFlags}))};var Tt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,wt=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,At=/[\\`]/g,Nt=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085"}));function Pt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Ot(e,t,n){if(0===e.charCodeAt(0)){var r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Nt.get(e)||Pt(e.charCodeAt(0))}function Ft(e,t){return e.replace(96===t?At:39===t?wt:Tt,Ot)}e.escapeString=Ft;var It=/[^\u0000-\u007F]/g;function Mt(e,t){return e=Ft(e,t),It.test(e)?e.replace(It,function(e){return Pt(e.charCodeAt(0))}):e}e.escapeNonAsciiString=Mt;var Lt=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Rt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Bt=new e.Map(e.getEntries({'"':""","'":"'"}));function jt(e){return 0===e.charCodeAt(0)?"�":Bt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Ut(e,t){return e.replace(39===t?Rt:Lt,jt)}e.escapeJsxAttributeString=Ut,e.stripQuotes=function(e){var t,n=e.length;return n>=2&&e.charCodeAt(0)===e.charCodeAt(n-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,n-1):e},e.isIntrinsicJsxName=function(t){var n=t.charCodeAt(0);return n>=97&&n<=122||e.stringContains(t,"-")};var zt=[""," "];function Jt(e){return void 0===zt[e]&&(zt[e]=Jt(e-1)+zt[1]),zt[e]}function Vt(){return zt[1].length}function Wt(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function qt(e,t,n){return t.moduleName||Kt(e,t.fileName,n&&n.fileName)}function Kt(t,n,r){var i=function(e){return t.getCanonicalFileName(e)},a=e.toPath(r?e.getDirectoryPath(r):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(n,t.getCurrentDirectory()),s=Kr(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return r?e.ensurePathIsNonModuleName(s):s}function Ht(e,t,n,r,i){var a=t.declarationDir||t.outDir;return Kr(a?Yt(e,a,n,r,i):e)+".d.ts"}function Gt(e){return e.outFile||e.out}function Qt(e,t,n){return!(t.getCompilerOptions().noEmitForJsFiles&&pe(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&!(B(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&(n||!t.isSourceOfProjectReferenceRedirect(e.fileName))}function Xt(e,t,n){return Yt(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}function Yt(t,n,r,i,a){var o=e.getNormalizedAbsolutePath(t,r);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(n,o)}function Zt(t,n,r){t.length>e.getRootLength(t)&&!r(t)&&(Zt(e.getDirectoryPath(t),n,r),n(t))}function $t(t,n){return e.computeLineOfPosition(t,n)}function en(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&tn(e.parameters[0]);return e.parameters[t?1:0]}}function tn(e){return nn(e.name)}function nn(e){return!!e&&78===e.kind&&rn(e)}function rn(e){return 107===e.originalKeywordKind}function an(t){if(ge(t)||!e.isFunctionDeclaration(t)){var n=t.type;return n||!ge(t)?n:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function on(e,t,n,r){sn(e,t,n.pos,r)}function sn(e,t,n,r){r&&r.length&&n!==r[0].pos&&$t(e,n)!==$t(e,r[0].pos)&&t.writeLine()}function cn(e,t,n,r,i,a,o,s){if(r&&r.length>0){i&&n.writeSpace(" ");for(var c=!1,u=0,l=r;u=0&&e.kind<=155?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|xn(e)),!t||4096&e.modifierFlagsCache||!n&&!ge(e)||!e.parent||(e.modifierFlagsCache|=4096|bn(e)),-536875009&e.modifierFlagsCache)}function yn(e){return hn(e,!0)}function vn(e){return hn(e,!1)}function bn(t){var n=0;return t.parent&&!e.isParameter(t)&&(ge(t)&&(e.getJSDocPublicTagNoCache(t)&&(n|=4),e.getJSDocPrivateTagNoCache(t)&&(n|=8),e.getJSDocProtectedTagNoCache(t)&&(n|=16),e.getJSDocReadonlyTagNoCache(t)&&(n|=64)),e.getJSDocDeprecatedTagNoCache(t)&&(n|=8192)),n}function xn(e){var t=Dn(e.modifiers);return(4&e.flags||78===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function Dn(e){var t=0;if(e)for(var n=0,r=e;n=62&&e<=77}function En(e){var t=Tn(e);return t&&!t.isImplements?t.class:void 0}function Tn(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:116===t.parent.token}:void 0}function wn(t,n){return e.isBinaryExpression(t)&&(n?62===t.operatorToken.kind:kn(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function An(e){return void 0!==En(e)}function Nn(e){return 78===e.kind||Pn(e)}function Pn(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&Nn(t.expression)}function On(e){return Ne(e)&&"prototype"===Me(e)}e.getIndentString=Jt,e.getIndentSize=Vt,e.createTextWriter=function(t){var n,r,i,a,o,s=!1;function c(t){var r=e.computeLineStarts(t);r.length>1?(a=a+r.length-1,o=n.length-t.length+e.last(r),i=o-n.length==0):i=!1}function u(e){e&&e.length&&(i&&(e=Jt(r)+e,i=!1),n+=e,c(e))}function l(e){e&&(s=!1),u(e)}function _(){n="",r=0,i=!0,a=0,o=0,s=!1}return _(),{write:l,rawWrite:function(e){void 0!==e&&(n+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(e){i&&!e||(a++,o=(n+=t).length,i=!0,s=!1)},increaseIndent:function(){r++},decreaseIndent:function(){r--},getIndent:function(){return r},getTextPos:function(){return n.length},getLine:function(){return a},getColumn:function(){return i?r*Vt():n.length-o},getText:function(){return n},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!n.length&&e.isWhiteSpaceLike(n.charCodeAt(n.length-1))},clear:_,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:function(e,t){return l(e)},writeTrailingSemicolon:l,writeComment:function(e){e&&(s=!0),u(e)},getTextPosWithWriteLine:function(){return i?n.length:n.length+t.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return a(a({},e),{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){n(),e.writeLiteral(t)},writeStringLiteral:function(t){n(),e.writeStringLiteral(t)},writeSymbol:function(t,r){n(),e.writeSymbol(t,r)},writePunctuation:function(t){n(),e.writePunctuation(t)},writeKeyword:function(t){n(),e.writeKeyword(t)},writeOperator:function(t){n(),e.writeOperator(t)},writeParameter:function(t){n(),e.writeParameter(t)},writeSpace:function(t){n(),e.writeSpace(t)},writeProperty:function(t){n(),e.writeProperty(t)},writeComment:function(t){n(),e.writeComment(t)},writeLine:function(){n(),e.writeLine()},increaseIndent:function(){n(),e.increaseIndent()},decreaseIndent:function(){n(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=Wt,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(Wt(t))},e.getResolvedExternalModuleName=qt,e.getExternalModuleNameFromDeclaration=function(e,t,n){var r=t.getExternalModuleFileFromDeclaration(n);if(r&&!r.isDeclarationFile)return qt(e,r)},e.getExternalModuleNameFromPath=Kt,e.getOwnEmitOutputFilePath=function(e,t,n){var r=t.getCompilerOptions();return Kr(r.outDir?Xt(e,t,r.outDir):e)+n},e.getDeclarationEmitOutputFilePath=function(e,t){return Ht(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})},e.getDeclarationEmitOutputFilePathWorker=Ht,e.outFile=Gt,e.getSourceFilesToEmit=function(t,n,r){var i=t.getCompilerOptions();if(Gt(i)){var a=pr(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(n){return(o||!e.isExternalModule(n))&&Qt(n,t,r)})}var s=void 0===n?t.getSourceFiles():[n];return e.filter(s,function(e){return Qt(e,t,r)})},e.sourceFileMayBeEmitted=Qt,e.getSourceFilePathInNewDir=Xt,e.getSourceFilePathInNewDirWorker=Yt,e.writeFile=function(t,n,r,i,a,o){t.writeFile(r,i,a,function(t){n.add(cr(e.Diagnostics.Could_not_write_file_0_Colon_1,r,t))},o)},e.writeFileEnsuringDirectories=function(t,n,r,i,a,o){try{i(t,n,r)}catch(s){Zt(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,n,r)}},e.getLineOfLocalPosition=function(t,n){var r=e.getLineStarts(t);return e.computeLineOfPosition(r,n)},e.getLineOfLocalPositionFromLineMap=$t,e.getFirstConstructorWithBody=function(t){return e.find(t.members,function(t){return e.isConstructorDeclaration(t)&&d(t.body)})},e.getSetAccessorValueParameter=en,e.getSetAccessorTypeAnnotationNode=function(e){var t=en(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var n=t.parameters[0];if(tn(n))return n}},e.parameterIsThisKeyword=tn,e.isThisIdentifier=nn,e.identifierIsThisKeyword=rn,e.getAllAccessorDeclarations=function(t,n){var r,i,a,o;return dt(n)?(r=n,166===n.kind?a=n:167===n.kind?o=n:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(t){e.isAccessor(t)&&dn(t,32)===dn(n,32)&>(t.name)===gt(n.name)&&(r?i||(i=t):r=t,166!==t.kind||a||(a=t),167!==t.kind||o||(o=t))}),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=an,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(ge(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(307===t.parent.kind&&t.parent.tags.some(je))}(t)?t.typeParameters:void 0})},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=en(e);return t&&an(t)},e.emitNewLineBeforeLeadingComments=on,e.emitNewLineBeforeLeadingCommentsOfPosition=sn,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,n,r){n!==r&&$t(e,n)!==$t(e,r)&&t.writeLine()},e.emitComments=cn,e.emitDetachedComments=function(t,n,r,i,a,o,s){var c,u;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),function(e){return m(t,e.pos)})):c=e.getLeadingCommentRanges(t,a.pos),c){for(var l=[],_=void 0,d=0,f=c;d=g+2)break}l.push(p),_=p}l.length&&(g=$t(n,e.last(l).end),$t(n,e.skipTrivia(t,a.pos))>=g+2&&(on(n,r,a,c),cn(t,n,r,l,!1,!0,o,i),u={nodePos:a.pos,detachedCommentEndPos:e.last(l).end}))}return u},e.writeCommentRange=function(t,n,r,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(n,i),c=n.length,u=void 0,l=i,_=s.line;l0){var p=f%Vt(),g=Jt((f-p)/Vt());for(r.rawWrite(g);p;)r.rawWrite(" "),p--}else r.rawWrite("")}un(t,a,r,o,l,d),l=d}else r.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=function(e){return 0!==yn(e)},e.hasSyntacticModifiers=function(e){return 0!==vn(e)},e.hasEffectiveModifier=_n,e.hasSyntacticModifier=dn,e.hasStaticModifier=fn,e.hasEffectiveReadonlyModifier=pn,e.getSelectedEffectiveModifierFlags=gn,e.getSelectedSyntacticModifierFlags=mn,e.getEffectiveModifierFlags=yn,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return hn(e,!0,!0)},e.getSyntacticModifierFlags=vn,e.getEffectiveModifierFlagsNoCache=function(e){return xn(e)|bn(e)},e.getSyntacticModifierFlagsNoCache=xn,e.modifiersToFlags=Dn,e.modifierToFlag=Cn,e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=Sn,e.isLogicalOrCoalescingAssignmentExpression=function(e){return Sn(e.operatorToken.kind)},e.isAssignmentOperator=kn,e.tryGetClassExtendingExpressionWithTypeArguments=En,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Tn,e.isAssignmentExpression=wn,e.isDestructuringAssignment=function(e){if(wn(e,!0)){var t=e.left.kind;return 197===t||196===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=An,e.isEntityNameExpression=Nn,e.getFirstIdentifier=function(e){switch(e.kind){case 78:return e;case 156:do{e=e.left}while(78!==e.kind);return e;case 198:do{e=e.expression}while(78!==e.kind);return e}},e.isDottedName=function e(t){return 78===t.kind||107===t.kind||105===t.kind||198===t.kind&&e(t.expression)||204===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=Pn,e.tryGetPropertyAccessOrIdentifierToString=function t(n){if(e.isPropertyAccessExpression(n)){var r=t(n.expression);if(void 0!==r)return r+"."+I(n.name)}else if(e.isIdentifier(n))return e.unescapeLeadingUnderscores(n.escapedText)},e.isPrototypeAccess=On,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 156===e.parent.kind&&e.parent.right===e||198===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 197===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 196===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){if(function(t){return t&&e.length(t.declarations)>0&&dn(t.declarations[0],512)}(t))for(var n=0,r=t.declarations;n>6|192),n.push(63&a|128)):a<65536?(n.push(a>>12|224),n.push(a>>6&63|128),n.push(63&a|128)):a<131072?(n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return n}(t),s=0,c=o.length;s>4,r=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],s+1>=c?r=i=64:s+2>=c&&(i=64),a+=In.charAt(o[s]>>2)+In.charAt(n)+In.charAt(r)+In.charAt(i),s+=3;return a}function Ln(t,n){return void 0===n&&(n=t),e.Debug.assert(n>=t||-1===n),{pos:t,end:n}}function Rn(e,t){return Ln(t,e.end)}function Bn(e){return e.decorators&&e.decorators.length>0?Rn(e,e.decorators.end):e}function jn(e,t,n){return Un(zn(e,n,!1),t.end,n)}function Un(t,n,r){return 0===e.getLinesBetweenPositions(r,t,n)}function zn(t,n,r){return Xr(t.pos)?-1:e.skipTrivia(n.text,t.pos,!1,r)}function Jn(e){return void 0!==e.initializer}function Vn(e){return 33554432&e.flags?e.checkFlags:0}function Wn(t){var n=t.parent;if(!n)return 0;switch(n.kind){case 204:return Wn(n);case 212:case 211:var r=n.operator;return 45===r||46===r?o():0;case 213:var i=n.operatorToken;return n.left===t&&kn(i.kind)?62===i.kind?1:o():0;case 198:return n.name!==t?0:Wn(n);case 285:var a=Wn(n.parent);return t===n.name?function(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}(a):a;case 286:return t===n.objectAssignmentInitializer?0:Wn(n.parent);case 196:return Wn(n);default:return 0}function o(){return n.parent&&230===function(e){for(;204===e.kind;)e=e.parent;return e}(n.parent).kind?1:2}}function qn(e,t,n){var r=n.onDeleteValue,i=n.onExistingValue;e.forEach(function(n,a){var o=t.get(a);void 0===o?(e.delete(a),r(n,a)):i&&i(n,o,a)})}function Kn(e){if(32&e.flags){var t=Hn(e);return!!t&&dn(t,128)}return!1}function Hn(t){return e.find(t.declarations,e.isClassLike)}function Gn(e){return 3899393&e.flags?e.objectFlags:0}function Qn(e){return 198===e.kind||199===e.kind}function Xn(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function Yn(t,n){this.flags=n,e.Debug.isDebugging&&(this.checker=t)}function Zn(t,n){this.flags=n,e.Debug.isDebugging&&(this.checker=t)}function $n(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}function er(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}function tr(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.flowNode=void 0}function nr(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||function(e){return e}}function rr(t,n,r){return void 0===r&&(r=0),t.replace(/{(\d+)}/g,function(t,i){return""+e.Debug.checkDefined(n[+i+r])})}function ir(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function ar(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function or(t,n){var r=n.fileName||"",i=n.text.length;e.Debug.assertEqual(t.fileName,r),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:n,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o4&&(a=rr(a,arguments,4)),{file:t,start:n,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function cr(e){var t=ir(e);return arguments.length>1&&(t=rr(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function ur(e){return e.file?e.file.path:void 0}function lr(t,n){return _r(t,n)||function(t,n){return t.relatedInformation||n.relatedInformation?t.relatedInformation&&n.relatedInformation?e.compareValues(t.relatedInformation.length,n.relatedInformation.length)||e.forEach(t.relatedInformation,function(e,t){return lr(e,n.relatedInformation[t])})||0:t.relatedInformation?-1:1:0}(t,n)||0}function _r(t,n){return e.compareStringsCaseSensitive(ur(t),ur(n))||e.compareValues(t.start,n.start)||e.compareValues(t.length,n.length)||e.compareValues(t.code,n.code)||dr(t.messageText,n.messageText)||0}function dr(t,n){if("string"==typeof t&&"string"==typeof n)return e.compareStringsCaseSensitive(t,n);if("string"==typeof t)return-1;if("string"==typeof n)return 1;var r=e.compareStringsCaseSensitive(t.messageText,n.messageText);if(r)return r;if(!t.next&&!n.next)return 0;if(!t.next)return-1;if(!n.next)return 1;for(var i=Math.min(t.next.length,n.next.length),a=0;an.next.length?1:0}function fr(e){return e.target||0}function pr(t){return"number"==typeof t.module?t.module:fr(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function gr(e){return!(!e.declaration&&!e.composite)}function mr(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function hr(e,t){return t.strictFlag?mr(e,t.name):e[t.name]}function yr(e){for(var t=!1,n=0;n>4&3,l=(15&o)<<4|s>>2&15,_=(3&s)<<6|63&c;0===l&&0!==s?r.push(u):0===_&&0!==c?r.push(u,l):r.push(u,l,_),i+=4}return function(e){for(var t="",n=0,r=e.length;n0?Rn(e,e.modifiers.end):Bn(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,n){return Ln(t,t+e.tokenToString(n).length)},e.rangeIsOnSingleLine=function(e,t){return jn(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,n){return Un(zn(e,n,!1),zn(t,n,!1),n)},e.rangeEndPositionsAreOnSameLine=function(e,t,n){return Un(e.end,t.end,n)},e.rangeStartIsOnSameLineAsRangeEnd=jn,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,n){return Un(e.end,zn(t,n,!1),n)},e.getLinesBetweenRangeEndAndRangeStart=function(t,n,r,i){var a=zn(n,r,i);return e.getLinesBetweenPositions(r,t.end,a)},e.getLinesBetweenRangeEndPositions=function(t,n,r){return e.getLinesBetweenPositions(r,t.end,n.end)},e.isNodeArrayMultiLine=function(e,t){return!Un(e.pos,e.end,t)},e.positionsAreOnSameLine=Un,e.getStartPositionOfRange=zn,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(t,n,r,i){var a=e.skipTrivia(r.text,t,!1,i),o=function(t,n,r){for(void 0===n&&(n=0);t-- >n;)if(!e.isWhiteSpaceLike(r.text.charCodeAt(t)))return t}(a,n,r);return e.getLinesBetweenPositions(r,null!=o?o:n,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(t,n,r,i){var a=e.skipTrivia(r.text,t,!1,i);return e.getLinesBetweenPositions(r,t,Math.min(n,a))},e.isDeclarationNameOfEnumOrNamespace=function(t){var n=e.getParseTreeNode(t);if(n)switch(n.parent.kind){case 252:case 253:return n===n.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,Jn)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=Vn,e.getDeclarationModifierFlagsFromSymbol=function(t){if(t.valueDeclaration){var n=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?n:-29&n}if(6&Vn(t)){var r=t.checkFlags;return(1024&r?8:256&r?4:16)|(2048&r?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===Wn(e)},e.isWriteAccess=function(e){return 0!==Wn(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Fn||(Fn={})),e.compareDataObjects=function e(t,n){if(!t||!n||Object.keys(t).length!==Object.keys(n).length)return!1;for(var r in t)if("object"==typeof t[r]){if(!e(t[r],n[r]))return!1}else if("function"!=typeof t[r]&&t[r]!==n[r])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=qn,e.mutateMap=function(e,t,n){qn(e,t,n);var r=n.createNewValue;t.forEach(function(t,n){e.has(n)||e.set(n,r(n,t))})},e.isAbstractConstructorType=function(e){return!!(16&Gn(e))&&!!e.symbol&&Kn(e.symbol)},e.isAbstractConstructorSymbol=Kn,e.getClassLikeDeclarationOfSymbol=Hn,e.getObjectFlags=Gn,e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(t,n){return!!e.forEachAncestorDirectory(t,function(e){return!!n(e)||void 0})},e.isUMDExportSymbol=function(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var n=t.moduleSpecifier;return e.isStringLiteral(n)?n.text:b(n)},e.getLastChild=function(t){var n;return e.forEachChild(t,function(e){d(e)&&(n=e)},function(e){for(var t=e.length-1;t>=0;t--)if(d(e[t])){n=e[t];break}}),n},e.addToSeen=function(e,t,n){return void 0===n&&(n=!0),t=String(t),!e.has(t)&&(e.set(t,n),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=171&&e<=192||128===e||151===e||143===e||154===e||144===e||131===e||146===e||147===e||113===e||149===e||140===e||220===e||299===e||300===e||301===e||302===e||303===e||304===e||305===e},e.isAccessExpression=Qn,e.getNameOfAccessExpression=function(t){return 198===t.kind?t.name:(e.Debug.assert(199===t.kind),t.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 261===e.kind||265===e.kind},e.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 212:e=e.operand;continue;case 213:e=e.left;continue;case 214:e=e.condition;continue;case 202:e=e.tag;continue;case 200:if(t)return e;case 221:case 199:case 198:case 222:case 331:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return $n},getTokenConstructor:function(){return er},getIdentifierConstructor:function(){return tr},getPrivateIdentifierConstructor:function(){return $n},getSourceFileConstructor:function(){return $n},getSymbolConstructor:function(){return Xn},getTypeConstructor:function(){return Yn},getSignatureConstructor:function(){return Zn},getSourceMapSourceConstructor:function(){return nr}},e.setObjectAllocator=function(t){e.objectAllocator=t},e.formatStringFromArgs=rr,e.setLocalizedDiagnosticMessages=function(t){e.localizedDiagnosticMessages=t},e.getLocaleSpecificMessage=ir,e.createDetachedDiagnostic=function(t,n,r,i){e.Debug.assertGreaterThanOrEqual(n,0),e.Debug.assertGreaterThanOrEqual(r,0);var a=ir(i);return arguments.length>4&&(a=rr(a,arguments,4)),{file:void 0,start:n,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:t}},e.attachFileToDiagnostics=function(e,t){for(var n=[],r=0,i=e;r2&&(n=rr(n,arguments,2)),n},e.createCompilerDiagnostic=cr,e.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},e.chainDiagnosticMessages=function(e,t){var n=ir(t);return arguments.length>2&&(n=rr(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,t){for(var n=e;n.next;)n=n.next[0];n.next=[t]},e.compareDiagnostics=lr,e.compareDiagnosticsSkipRelatedInformation=_r,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getEmitScriptTarget=fr,e.getEmitModuleKind=pr,e.getEmitModuleResolutionKind=function(t){var n=t.moduleResolution;return void 0===n&&(n=pr(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),n},e.hasJsonModuleEmitEnabled=function(t){switch(pr(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ESNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!gr(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var n=pr(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop||n===e.ModuleKind.System},e.getEmitDeclarations=gr,e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=mr,e.compilerOptionsAffectSemanticDiagnostics=function(t,n){return n!==t&&e.semanticDiagnosticsOptionDeclarations.some(function(e){return!$r(hr(n,e),hr(t,e))})},e.compilerOptionsAffectEmit=function(t,n){return n!==t&&e.affectsEmitOptionDeclarations.some(function(e){return!$r(hr(n,e),hr(t,e))})},e.getCompilerOptionValue=hr,e.hasZeroOrOneAsteriskCharacter=yr,e.createSymlinkCache=vr,e.discoverProbableSymlinks=function(t,n,r){for(var i=vr(),a=0,o=e.flatten(e.mapDefined(t,function(t){return t.resolvedModules&&e.compact(e.arrayFrom(e.mapIterator(t.resolvedModules.values(),function(e){return e&&e.originalPath&&e.resolvedFileName!==e.originalPath?[e.resolvedFileName,e.originalPath]:void 0})))}));a0;)c+=")?",d--;return c}}(t,n,r,Ar[r])})}function Or(e){return!/[.*?]/.test(e)}function Fr(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Ir(t,n,r,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Pr(r,o,"files"),function(e){return"^"+e+"$"}),includeFilePattern:Nr(r,o,"files"),includeDirectoryPattern:Nr(r,o,"directories"),excludePattern:Nr(n,o,"exclude"),basePaths:Lr(t,r,i)}}function Mr(e,t){return new RegExp(e,t?"":"i")}function Lr(t,n,r){var i=[t];if(n){for(var a=[],o=0,s=n;o=0;r--)if(e.fileExtensionIs(t,n[r]))return Wr(r,n);return 0},e.adjustExtensionPriority=Wr,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var qr=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function Kr(e){for(var t=0,n=qr;t=0)}function Yr(e){return".ts"===e||".tsx"===e||".d.ts"===e}function Zr(t){return e.find(qr,function(n){return e.fileExtensionIs(t,n)})}function $r(t,n){return t===n||"object"==typeof t&&null!==t&&"object"==typeof n&&null!==n&&e.equalOwnProperties(t,n,$r)}function ei(e,t){return e.pos=t,e}function ti(e,t){return e.end=t,e}function ni(e,t,n){return ti(ei(e,t),n)}function ri(e,t){return e&&t&&(e.parent=t),e}e.removeFileExtension=Kr,e.tryRemoveExtension=Hr,e.removeExtension=Gr,e.changeExtension=function(t,n){return e.changeAnyExtension(t,n,qr,!1)},e.tryParsePattern=Qr,e.positionIsSynthesized=Xr,e.extensionIsTS=Yr,e.resolutionExtensionIsTSOrJson=function(e){return Yr(e)||".json"===e},e.extensionFromPath=function(t){var n=Zr(t);return void 0!==n?n:e.Debug.fail("File "+t+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==Zr(e)},e.tryGetExtensionFromPath=Zr,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(t,n){for(var r=[],i=0,a=t;ii&&(i=o)}return{min:r,max:i}},e.rangeOfNode=function(e){return{pos:h(e),end:e.end}},e.rangeOfTypeParameters=function(e){return{pos:e.pos-1,end:e.end+1}},e.skipTypeChecking=function(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||n.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=$r,e.parsePseudoBigInt=function(e){var 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:for(var n=e.length-1,r=0;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var u=c>>>4,l=e.charCodeAt(s),_=(l<=57?l-48:10+l-(l<=70?65:97))<<(15&c);o[u]|=_;var d=_>>>16;d&&(o[u+1]|=d)}for(var f="",p=o.length-1,g=!0;g;){var m=0;for(g=!1,u=p;u>=0;u--){var h=m<<16|o[u],y=h/10|0;o[u]=y,m=h-10*y,y&&!g&&(p=u,g=!0)}f=m+f}return f},e.pseudoBigIntToString=function(e){var t=e.base10Value;return(e.negative&&"0"!==t?"-":"")+t},e.isValidTypeOnlyAliasUseSite=function(e){return!!(8388608&e.flags)||de(e)||function(e){if(78!==e.kind)return!1;var t=s(e.parent,function(e){switch(e.kind){case 283:return!0;case 198:case 220:return!1;default:return"quit"}});return 116===(null==t?void 0:t.token)||250===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;78===e.kind||198===e.kind;)e=e.parent;if(157!==e.kind)return!1;if(dn(e.parent,128))return!0;var t=e.parent.parent.kind;return 250===t||176===t}(e)||!le(e)},e.typeOnlyDeclarationIsExport=function(e){return 267===e.kind},e.isIdentifierTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)},e.arrayIsHomogeneous=function(t,n){if(void 0===n&&(n=e.equateValues),t.length<2)return!0;for(var r=t[0],i=1,a=t.length;i3)return!0;var u=e.getExpressionPrecedence(c);switch(e.compareValues(u,o)){case-1:return!(!i&&1===s&&216===r.kind);case 1:return!1;case 0:if(i)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if(function(e){return 41===e||51===e||50===e||52===e}(t))return!1;if(39===t){var l=a?n(a):0;if(e.isLiteralKind(l)&&l===n(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(r,i,a,o)?t.createParenthesizedExpression(i):i}function i(n){var r=e.skipPartiallyEmittedExpressions(n);return e.isLeftHandSideExpression(r)&&(201!==r.kind||r.arguments)?n:e.setTextRange(t.createParenthesizedExpression(n),n)}function a(n){var r=e.skipPartiallyEmittedExpressions(n);return e.getExpressionPrecedence(r)>e.getOperatorPrecedence(213,27)?n:e.setTextRange(t.createParenthesizedExpression(n),n)}function o(e){return 183===e.kind?t.createParenthesizedType(e):e}function s(e){switch(e.kind){case 181:case 182:case 173:case 174:return t.createParenthesizedType(e)}return o(e)}function c(n,r){return 0===r&&e.isFunctionOrConstructorTypeNode(n)&&n.typeParameters?t.createParenthesizedType(n):n}},e.nullParenthesizerRules={parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,n){return n},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(t){return e.cast(t,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(t){return e.cast(t,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeTypeArguments:function(t){return t&&e.cast(t,e.isNodeArray)}}}(l||(l={})),function(e){e.createNodeConverters=function(t){return{convertToFunctionBlock:function(n,r){if(e.isBlock(n))return n;var i=t.createReturnStatement(n);e.setTextRange(i,n);var a=t.createBlock([i],r);return e.setTextRange(a,n),a},convertToFunctionExpression:function(n){if(!n.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var r=t.createFunctionExpression(n.modifiers,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body);return e.setOriginalNode(r,n),e.setTextRange(r,n),e.getStartsOnNewLine(n)&&e.setStartsOnNewLine(r,!0),r},convertToArrayAssignmentElement:n,convertToObjectAssignmentElement:r,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function n(n){if(e.isBindingElement(n)){if(n.dotDotDotToken)return e.Debug.assertNode(n.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadElement(n.name),n),n);var r=s(n.name);return n.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(r,n.initializer),n),n):r}return e.cast(n,e.isExpression)}function r(n){if(e.isBindingElement(n)){if(n.dotDotDotToken)return e.Debug.assertNode(n.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(n.name),n),n);if(n.propertyName){var r=s(n.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(n.propertyName,n.initializer?t.createAssignment(r,n.initializer):r),n),n)}return e.Debug.assertNode(n.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(n.name,n.initializer),n),n)}return e.cast(n,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 194:case 196:return o(e);case 193:case 197:return a(e)}}function a(n){return e.isObjectBindingPattern(n)?e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(n.elements,r)),n),n):e.cast(n,e.isObjectLiteralExpression)}function o(r){return e.isArrayBindingPattern(r)?e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(r.elements,n)),r),r):e.cast(r,e.isArrayLiteralExpression)}function s(t){return e.isBindingPattern(t)?i(t):e.cast(t,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}}(l||(l={})),function(e){var t,n,r=0;function a(n,a){var p=8&n?o:s,g=e.memoize(function(){return 1&n?e.nullParenthesizerRules:e.createParenthesizerRules(w)}),m=e.memoize(function(){return 2&n?e.nullNodeConverters:e.createNodeConverters(w)}),h=e.memoizeOne(function(e){return function(t,n){return wt(t,e,n)}}),v=e.memoizeOne(function(e){return function(t){return Et(e,t)}}),b=e.memoizeOne(function(e){return function(t){return Tt(t,e)}}),x=e.memoizeOne(function(e){return function(){return function(e){return N(e)}(e)}}),D=e.memoizeOne(function(e){return function(t){return Kn(e,t)}}),C=e.memoizeOne(function(e){return function(t,n){return function(e,t,n){return t.type!==n?p(Kn(e,n),t):t}(e,t,n)}}),S=e.memoizeOne(function(e){return function(t,n){return or(e,t,n)}}),k=e.memoizeOne(function(e){return function(t,n,r){return function(e,t,n,r){return void 0===n&&(n=Yn(t)),t.tagName!==n||t.comment!==r?p(or(e,n,r),t):t}(e,t,n,r)}}),E=e.memoizeOne(function(e){return function(t,n,r){return sr(e,t,n,r)}}),T=e.memoizeOne(function(e){return function(t,n,r,i){return function(e,t,n,r,i){return void 0===n&&(n=Yn(t)),t.tagName!==n||t.typeExpression!==r||t.comment!==i?p(sr(e,n,r,i),t):t}(e,t,n,r,i)}}),w={get parenthesizer(){return g()},get converters(){return m()},createNodeArray:A,createNumericLiteral:V,createBigIntLiteral:W,createStringLiteral:K,createStringLiteralFromNode:function(t){var n=q(e.getTextOfIdentifierOrLiteral(t),void 0);return n.textSourceNode=t,n},createRegularExpressionLiteral:H,createLiteralLikeNode:function(e,t){switch(e){case 8:return V(t,0);case 9:return W(t);case 10:return K(t,void 0);case 11:return gr(t,!1);case 12:return gr(t,!0);case 13:return H(t);case 14:return Ot(e,t,void 0,0)}},createIdentifier:X,updateIdentifier:function(t,n){return t.typeArguments!==n?p(X(e.idText(t),n),t):t},createTempVariable:Y,createLoopVariable:function(){return Q("",2)},createUniqueName:function(t,n){return void 0===n&&(n=0),e.Debug.assert(!(7&n),"Argument out of range: flags"),e.Debug.assert(32!=(48&n),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Q(t,3|n)},getGeneratedNameForNode:Z,createPrivateIdentifier:function(t){e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t);var n=a.createBasePrivateIdentifierNode(79);return n.escapedText=e.escapeLeadingUnderscores(t),n.transformFlags|=4194304,n},createToken:ee,createSuper:function(){return ee(105)},createThis:te,createNull:function(){return ee(103)},createTrue:ne,createFalse:re,createModifier:ie,createModifiersFromModifierFlags:ae,createQualifiedName:oe,updateQualifiedName:function(e,t,n){return e.left!==t||e.right!==n?p(oe(t,n),e):e},createComputedPropertyName:se,updateComputedPropertyName:function(e,t){return e.expression!==t?p(se(t),e):e},createTypeParameterDeclaration:ce,updateTypeParameterDeclaration:function(e,t,n,r){return e.name!==t||e.constraint!==n||e.default!==r?p(ce(t,n,r),e):e},createParameterDeclaration:ue,updateParameterDeclaration:le,createDecorator:_e,updateDecorator:function(e,t){return e.expression!==t?p(_e(t),e):e},createPropertySignature:de,updatePropertySignature:fe,createPropertyDeclaration:pe,updatePropertyDeclaration:ge,createMethodSignature:me,updateMethodSignature:he,createMethodDeclaration:ye,updateMethodDeclaration:ve,createConstructorDeclaration:be,updateConstructorDeclaration:xe,createGetAccessorDeclaration:De,updateGetAccessorDeclaration:Ce,createSetAccessorDeclaration:Se,updateSetAccessorDeclaration:ke,createCallSignature:Ee,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?M(Ee(t,n,r),e):e},createConstructSignature:Te,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?M(Te(t,n,r),e):e},createIndexSignature:we,updateIndexSignature:Ae,createKeywordTypeNode:function(e){return ee(e)},createTypePredicateNode:Ne,updateTypePredicateNode:function(e,t,n,r){return e.assertsModifier!==t||e.parameterName!==n||e.type!==r?p(Ne(t,n,r),e):e},createTypeReferenceNode:Pe,updateTypeReferenceNode:function(e,t,n){return e.typeName!==t||e.typeArguments!==n?p(Pe(t,n),e):e},createFunctionTypeNode:Oe,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?M(Oe(t,n,r),e):e},createConstructorTypeNode:Fe,updateConstructorTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?M(Fe(t,n,r),e):e},createTypeQueryNode:Ie,updateTypeQueryNode:function(e,t){return e.exprName!==t?p(Ie(t),e):e},createTypeLiteralNode:Me,updateTypeLiteralNode:function(e,t){return e.members!==t?p(Me(t),e):e},createArrayTypeNode:Le,updateArrayTypeNode:function(e,t){return e.elementType!==t?p(Le(t),e):e},createTupleTypeNode:Re,updateTupleTypeNode:function(e,t){return e.elements!==t?p(Re(t),e):e},createNamedTupleMember:Be,updateNamedTupleMember:function(e,t,n,r,i){return e.dotDotDotToken!==t||e.name!==n||e.questionToken!==r||e.type!==i?p(Be(t,n,r,i),e):e},createOptionalTypeNode:je,updateOptionalTypeNode:function(e,t){return e.type!==t?p(je(t),e):e},createRestTypeNode:Ue,updateRestTypeNode:function(e,t){return e.type!==t?p(Ue(t),e):e},createUnionTypeNode:function(e){return ze(181,e)},updateUnionTypeNode:function(e,t){return Je(e,t)},createIntersectionTypeNode:function(e){return ze(182,e)},updateIntersectionTypeNode:function(e,t){return Je(e,t)},createConditionalTypeNode:Ve,updateConditionalTypeNode:function(e,t,n,r,i){return e.checkType!==t||e.extendsType!==n||e.trueType!==r||e.falseType!==i?p(Ve(t,n,r,i),e):e},createInferTypeNode:We,updateInferTypeNode:function(e,t){return e.typeParameter!==t?p(We(t),e):e},createImportTypeNode:qe,updateImportTypeNode:function(e,t,n,r,i){return void 0===i&&(i=e.isTypeOf),e.argument!==t||e.qualifier!==n||e.typeArguments!==r||e.isTypeOf!==i?p(qe(t,n,r,i),e):e},createParenthesizedType:Ke,updateParenthesizedType:function(e,t){return e.type!==t?p(Ke(t),e):e},createThisTypeNode:function(){var e=N(186);return e.transformFlags=1,e},createTypeOperatorNode:He,updateTypeOperatorNode:function(e,t){return e.type!==t?p(He(e.operator,t),e):e},createIndexedAccessTypeNode:Ge,updateIndexedAccessTypeNode:function(e,t,n){return e.objectType!==t||e.indexType!==n?p(Ge(t,n),e):e},createMappedTypeNode:Qe,updateMappedTypeNode:function(e,t,n,r,i){return e.readonlyToken!==t||e.typeParameter!==n||e.questionToken!==r||e.type!==i?p(Qe(t,n,r,i),e):e},createLiteralTypeNode:Xe,updateLiteralTypeNode:function(e,t){return e.literal!==t?p(Xe(t),e):e},createObjectBindingPattern:Ye,updateObjectBindingPattern:function(e,t){return e.elements!==t?p(Ye(t),e):e},createArrayBindingPattern:Ze,updateArrayBindingPattern:function(e,t){return e.elements!==t?p(Ze(t),e):e},createBindingElement:$e,updateBindingElement:function(e,t,n,r,i){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==r||e.initializer!==i?p($e(t,n,r,i),e):e},createArrayLiteralExpression:tt,updateArrayLiteralExpression:function(e,t){return e.elements!==t?p(tt(t,e.multiLine),e):e},createObjectLiteralExpression:nt,updateObjectLiteralExpression:function(e,t){return e.properties!==t?p(nt(t,e.multiLine),e):e},createPropertyAccessExpression:4&n?function(t,n){return e.setEmitFlags(rt(t,n),131072)}:rt,updatePropertyAccessExpression:function(t,n,r){return e.isPropertyAccessChain(t)?at(t,n,t.questionDotToken,e.cast(r,e.isIdentifier)):t.expression!==n||t.name!==r?p(rt(n,r),t):t},createPropertyAccessChain:4&n?function(t,n,r){return e.setEmitFlags(it(t,n,r),131072)}:it,updatePropertyAccessChain:at,createElementAccessExpression:ot,updateElementAccessExpression:function(t,n,r){return e.isElementAccessChain(t)?ct(t,n,t.questionDotToken,r):t.expression!==n||t.argumentExpression!==r?p(ot(n,r),t):t},createElementAccessChain:st,updateElementAccessChain:ct,createCallExpression:ut,updateCallExpression:function(t,n,r,i){return e.isCallChain(t)?_t(t,n,t.questionDotToken,r,i):t.expression!==n||t.typeArguments!==r||t.arguments!==i?p(ut(n,r,i),t):t},createCallChain:lt,updateCallChain:_t,createNewExpression:dt,updateNewExpression:function(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?p(dt(t,n,r),e):e},createTaggedTemplateExpression:ft,updateTaggedTemplateExpression:function(e,t,n,r){return e.tag!==t||e.typeArguments!==n||e.template!==r?p(ft(t,n,r),e):e},createTypeAssertion:pt,updateTypeAssertion:gt,createParenthesizedExpression:mt,updateParenthesizedExpression:ht,createFunctionExpression:yt,updateFunctionExpression:vt,createArrowFunction:bt,updateArrowFunction:xt,createDeleteExpression:Dt,updateDeleteExpression:function(e,t){return e.expression!==t?p(Dt(t),e):e},createTypeOfExpression:Ct,updateTypeOfExpression:function(e,t){return e.expression!==t?p(Ct(t),e):e},createVoidExpression:St,updateVoidExpression:function(e,t){return e.expression!==t?p(St(t),e):e},createAwaitExpression:kt,updateAwaitExpression:function(e,t){return e.expression!==t?p(kt(t),e):e},createPrefixUnaryExpression:Et,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?p(Et(e.operator,t),e):e},createPostfixUnaryExpression:Tt,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?p(Tt(t,e.operator),e):e},createBinaryExpression:wt,updateBinaryExpression:function(e,t,n,r){return e.left!==t||e.operatorToken!==n||e.right!==r?p(wt(t,n,r),e):e},createConditionalExpression:At,updateConditionalExpression:function(e,t,n,r,i,a){return e.condition!==t||e.questionToken!==n||e.whenTrue!==r||e.colonToken!==i||e.whenFalse!==a?p(At(t,n,r,i,a),e):e},createTemplateExpression:Nt,updateTemplateExpression:function(e,t,n){return e.head!==t||e.templateSpans!==n?p(Nt(t,n),e):e},createTemplateHead:function(e,t,n){return Pt(15,e,t,n)},createTemplateMiddle:function(e,t,n){return Pt(16,e,t,n)},createTemplateTail:function(e,t,n){return Pt(17,e,t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Pt(14,e,t,n)},createTemplateLiteralLikeNode:Ot,createYieldExpression:Ft,updateYieldExpression:function(e,t,n){return e.expression!==n||e.asteriskToken!==t?p(Ft(t,n),e):e},createSpreadElement:It,updateSpreadElement:function(e,t){return e.expression!==t?p(It(t),e):e},createClassExpression:Mt,updateClassExpression:Lt,createOmittedExpression:function(){return et(219)},createExpressionWithTypeArguments:Rt,updateExpressionWithTypeArguments:function(e,t,n){return e.expression!==t||e.typeArguments!==n?p(Rt(t,n),e):e},createAsExpression:Bt,updateAsExpression:jt,createNonNullExpression:Ut,updateNonNullExpression:zt,createNonNullChain:Jt,updateNonNullChain:Vt,createMetaProperty:Wt,updateMetaProperty:function(e,t){return e.name!==t?p(Wt(e.keywordToken,t),e):e},createTemplateSpan:qt,updateTemplateSpan:function(e,t,n){return e.expression!==t||e.literal!==n?p(qt(t,n),e):e},createSemicolonClassElement:function(){var e=N(226);return e.transformFlags|=256,e},createBlock:Kt,updateBlock:function(e,t){return e.statements!==t?p(Kt(t,e.multiLine),e):e},createVariableStatement:Ht,updateVariableStatement:Gt,createEmptyStatement:Qt,createExpressionStatement:Xt,updateExpressionStatement:function(e,t){return e.expression!==t?p(Xt(t),e):e},createIfStatement:Yt,updateIfStatement:function(e,t,n,r){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==r?p(Yt(t,n,r),e):e},createDoStatement:Zt,updateDoStatement:function(e,t,n){return e.statement!==t||e.expression!==n?p(Zt(t,n),e):e},createWhileStatement:$t,updateWhileStatement:function(e,t,n){return e.expression!==t||e.statement!==n?p($t(t,n),e):e},createForStatement:en,updateForStatement:function(e,t,n,r,i){return e.initializer!==t||e.condition!==n||e.incrementor!==r||e.statement!==i?p(en(t,n,r,i),e):e},createForInStatement:tn,updateForInStatement:function(e,t,n,r){return e.initializer!==t||e.expression!==n||e.statement!==r?p(tn(t,n,r),e):e},createForOfStatement:nn,updateForOfStatement:function(e,t,n,r,i){return e.awaitModifier!==t||e.initializer!==n||e.expression!==r||e.statement!==i?p(nn(t,n,r,i),e):e},createContinueStatement:rn,updateContinueStatement:function(e,t){return e.label!==t?p(rn(t),e):e},createBreakStatement:an,updateBreakStatement:function(e,t){return e.label!==t?p(an(t),e):e},createReturnStatement:on,updateReturnStatement:function(e,t){return e.expression!==t?p(on(t),e):e},createWithStatement:sn,updateWithStatement:function(e,t,n){return e.expression!==t||e.statement!==n?p(sn(t,n),e):e},createSwitchStatement:cn,updateSwitchStatement:function(e,t,n){return e.expression!==t||e.caseBlock!==n?p(cn(t,n),e):e},createLabeledStatement:un,updateLabeledStatement:ln,createThrowStatement:_n,updateThrowStatement:function(e,t){return e.expression!==t?p(_n(t),e):e},createTryStatement:dn,updateTryStatement:function(e,t,n,r){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==r?p(dn(t,n,r),e):e},createDebuggerStatement:function(){return N(245)},createVariableDeclaration:fn,updateVariableDeclaration:function(e,t,n,r,i){return e.name!==t||e.type!==r||e.exclamationToken!==n||e.initializer!==i?p(fn(t,n,r,i),e):e},createVariableDeclarationList:pn,updateVariableDeclarationList:function(e,t){return e.declarations!==t?p(pn(t,e.flags),e):e},createFunctionDeclaration:gn,updateFunctionDeclaration:mn,createClassDeclaration:hn,updateClassDeclaration:yn,createInterfaceDeclaration:vn,updateInterfaceDeclaration:bn,createTypeAliasDeclaration:xn,updateTypeAliasDeclaration:Dn,createEnumDeclaration:Cn,updateEnumDeclaration:Sn,createModuleDeclaration:kn,updateModuleDeclaration:En,createModuleBlock:Tn,updateModuleBlock:function(e,t){return e.statements!==t?p(Tn(t),e):e},createCaseBlock:wn,updateCaseBlock:function(e,t){return e.clauses!==t?p(wn(t),e):e},createNamespaceExportDeclaration:An,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?p(An(t),e):e},createImportEqualsDeclaration:Nn,updateImportEqualsDeclaration:Pn,createImportDeclaration:On,updateImportDeclaration:Fn,createImportClause:In,updateImportClause:function(e,t,n,r){return e.isTypeOnly!==t||e.name!==n||e.namedBindings!==r?p(In(t,n,r),e):e},createNamespaceImport:Mn,updateNamespaceImport:function(e,t){return e.name!==t?p(Mn(t),e):e},createNamespaceExport:Ln,updateNamespaceExport:function(e,t){return e.name!==t?p(Ln(t),e):e},createNamedImports:Rn,updateNamedImports:function(e,t){return e.elements!==t?p(Rn(t),e):e},createImportSpecifier:Bn,updateImportSpecifier:function(e,t,n){return e.propertyName!==t||e.name!==n?p(Bn(t,n),e):e},createExportAssignment:jn,updateExportAssignment:Un,createExportDeclaration:zn,updateExportDeclaration:Jn,createNamedExports:Vn,updateNamedExports:function(e,t){return e.elements!==t?p(Vn(t),e):e},createExportSpecifier:Wn,updateExportSpecifier:function(e,t,n){return e.propertyName!==t||e.name!==n?p(Wn(t,n),e):e},createMissingDeclaration:function(){return P(268,void 0,void 0)},createExternalModuleReference:qn,updateExternalModuleReference:function(e,t){return e.expression!==t?p(qn(t),e):e},get createJSDocAllType(){return x(299)},get createJSDocUnknownType(){return x(300)},get createJSDocNonNullableType(){return D(302)},get updateJSDocNonNullableType(){return C(302)},get createJSDocNullableType(){return D(301)},get updateJSDocNullableType(){return C(301)},get createJSDocOptionalType(){return D(303)},get updateJSDocOptionalType(){return C(303)},get createJSDocVariadicType(){return D(305)},get updateJSDocVariadicType(){return C(305)},get createJSDocNamepathType(){return D(306)},get updateJSDocNamepathType(){return C(306)},createJSDocFunctionType:Hn,updateJSDocFunctionType:function(e,t,n){return e.parameters!==t||e.type!==n?p(Hn(t,n),e):e},createJSDocTypeLiteral:Gn,updateJSDocTypeLiteral:function(e,t,n){return e.jsDocPropertyTags!==t||e.isArrayType!==n?p(Gn(t,n),e):e},createJSDocTypeExpression:Qn,updateJSDocTypeExpression:function(e,t){return e.type!==t?p(Qn(t),e):e},createJSDocSignature:Xn,updateJSDocSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?p(Xn(t,n,r),e):e},createJSDocTemplateTag:$n,updateJSDocTemplateTag:function(e,t,n,r,i){return void 0===t&&(t=Yn(e)),e.tagName!==t||e.constraint!==n||e.typeParameters!==r||e.comment!==i?p($n(t,n,r,i),e):e},createJSDocTypedefTag:er,updateJSDocTypedefTag:function(e,t,n,r,i){return void 0===t&&(t=Yn(e)),e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?p(er(t,n,r,i),e):e},createJSDocParameterTag:tr,updateJSDocParameterTag:function(e,t,n,r,i,a,o){return void 0===t&&(t=Yn(e)),e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?p(tr(t,n,r,i,a,o),e):e},createJSDocPropertyTag:nr,updateJSDocPropertyTag:function(e,t,n,r,i,a,o){return void 0===t&&(t=Yn(e)),e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?p(nr(t,n,r,i,a,o),e):e},createJSDocCallbackTag:rr,updateJSDocCallbackTag:function(e,t,n,r,i){return void 0===t&&(t=Yn(e)),e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?p(rr(t,n,r,i),e):e},createJSDocAugmentsTag:ir,updateJSDocAugmentsTag:function(e,t,n,r){return void 0===t&&(t=Yn(e)),e.tagName!==t||e.class!==n||e.comment!==r?p(ir(t,n,r),e):e},createJSDocImplementsTag:ar,updateJSDocImplementsTag:function(e,t,n,r){return void 0===t&&(t=Yn(e)),e.tagName!==t||e.class!==n||e.comment!==r?p(ar(t,n,r),e):e},get createJSDocTypeTag(){return E(325)},get updateJSDocTypeTag(){return T(325)},get createJSDocReturnTag(){return E(323)},get updateJSDocReturnTag(){return T(323)},get createJSDocThisTag(){return E(324)},get updateJSDocThisTag(){return T(324)},get createJSDocEnumTag(){return E(321)},get updateJSDocEnumTag(){return T(321)},get createJSDocAuthorTag(){return S(313)},get updateJSDocAuthorTag(){return k(313)},get createJSDocClassTag(){return S(315)},get updateJSDocClassTag(){return k(315)},get createJSDocPublicTag(){return S(316)},get updateJSDocPublicTag(){return k(316)},get createJSDocPrivateTag(){return S(317)},get updateJSDocPrivateTag(){return k(317)},get createJSDocProtectedTag(){return S(318)},get updateJSDocProtectedTag(){return k(318)},get createJSDocReadonlyTag(){return S(319)},get updateJSDocReadonlyTag(){return k(319)},get createJSDocDeprecatedTag(){return S(314)},get updateJSDocDeprecatedTag(){return k(314)},createJSDocUnknownTag:cr,updateJSDocUnknownTag:function(e,t,n){return e.tagName!==t||e.comment!==n?p(cr(t,n),e):e},createJSDocComment:ur,updateJSDocComment:function(e,t,n){return e.comment!==t||e.tags!==n?p(ur(t,n),e):e},createJsxElement:lr,updateJsxElement:function(e,t,n,r){return e.openingElement!==t||e.children!==n||e.closingElement!==r?p(lr(t,n,r),e):e},createJsxSelfClosingElement:_r,updateJsxSelfClosingElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?p(_r(t,n,r),e):e},createJsxOpeningElement:dr,updateJsxOpeningElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?p(dr(t,n,r),e):e},createJsxClosingElement:fr,updateJsxClosingElement:function(e,t){return e.tagName!==t?p(fr(t),e):e},createJsxFragment:pr,createJsxText:gr,updateJsxText:function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?p(gr(t,n),e):e},createJsxOpeningFragment:function(){var e=N(275);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){var e=N(276);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,n,r){return e.openingFragment!==t||e.children!==n||e.closingFragment!==r?p(pr(t,n,r),e):e},createJsxAttribute:mr,updateJsxAttribute:function(e,t,n){return e.name!==t||e.initializer!==n?p(mr(t,n),e):e},createJsxAttributes:hr,updateJsxAttributes:function(e,t){return e.properties!==t?p(hr(t),e):e},createJsxSpreadAttribute:yr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?p(yr(t),e):e},createJsxExpression:vr,updateJsxExpression:function(e,t){return e.expression!==t?p(vr(e.dotDotDotToken,t),e):e},createCaseClause:br,updateCaseClause:function(e,t,n){return e.expression!==t||e.statements!==n?p(br(t,n),e):e},createDefaultClause:xr,updateDefaultClause:function(e,t){return e.statements!==t?p(xr(t),e):e},createHeritageClause:Dr,updateHeritageClause:function(e,t){return e.types!==t?p(Dr(e.token,t),e):e},createCatchClause:Cr,updateCatchClause:function(e,t,n){return e.variableDeclaration!==t||e.block!==n?p(Cr(t,n),e):e},createPropertyAssignment:Sr,updatePropertyAssignment:function(e,t,n){return e.name!==t||e.initializer!==n?(r=Sr(t,n),(i=e).decorators&&(r.decorators=i.decorators),i.modifiers&&(r.modifiers=i.modifiers),i.questionToken&&(r.questionToken=i.questionToken),i.exclamationToken&&(r.exclamationToken=i.exclamationToken),p(r,i)):e;var r,i},createShorthandPropertyAssignment:kr,updateShorthandPropertyAssignment:function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?(r=kr(t,n),(i=e).decorators&&(r.decorators=i.decorators),i.modifiers&&(r.modifiers=i.modifiers),i.equalsToken&&(r.equalsToken=i.equalsToken),i.questionToken&&(r.questionToken=i.questionToken),i.exclamationToken&&(r.exclamationToken=i.exclamationToken),p(r,i)):e;var r,i},createSpreadAssignment:Er,updateSpreadAssignment:function(e,t){return e.expression!==t?p(Er(t),e):e},createEnumMember:Tr,updateEnumMember:function(e,t,n){return e.name!==t||e.initializer!==n?p(Tr(t,n),e):e},createSourceFile:function(e,t,n){var r=a.createBaseSourceFileNode(294);return r.statements=A(e),r.endOfFileToken=t,r.flags|=n,r.fileName="",r.text="",r.languageVersion=0,r.languageVariant=0,r.scriptKind=0,r.isDeclarationFile=!1,r.hasNoDefaultLib=!1,r.transformFlags|=d(r.statements)|_(r.endOfFileToken),r},updateSourceFile:function(t,n,r,i,o,s,c){return void 0===r&&(r=t.isDeclarationFile),void 0===i&&(i=t.referencedFiles),void 0===o&&(o=t.typeReferenceDirectives),void 0===s&&(s=t.hasNoDefaultLib),void 0===c&&(c=t.libReferenceDirectives),t.statements!==n||t.isDeclarationFile!==r||t.referencedFiles!==i||t.typeReferenceDirectives!==o||t.hasNoDefaultLib!==s||t.libReferenceDirectives!==c?p(function(t,n,r,i,o,s,c){var u=a.createBaseSourceFileNode(294);for(var l in t)"emitNode"!==l&&!e.hasProperty(u,l)&&e.hasProperty(t,l)&&(u[l]=t[l]);return u.flags|=t.flags,u.statements=A(n),u.endOfFileToken=t.endOfFileToken,u.isDeclarationFile=r,u.referencedFiles=i,u.typeReferenceDirectives=o,u.hasNoDefaultLib=s,u.libReferenceDirectives=c,u.transformFlags=d(u.statements)|_(u.endOfFileToken),u}(t,n,r,i,o,s,c),t):t},createBundle:wr,updateBundle:function(t,n,r){return void 0===r&&(r=e.emptyArray),t.sourceFiles!==n||t.prepends!==r?p(wr(n,r),t):t},createUnparsedSource:function(t,n,r){var i=N(296);return i.prologues=t,i.syntheticReferences=n,i.texts=r,i.fileName="",i.text="",i.referencedFiles=e.emptyArray,i.libReferenceDirectives=e.emptyArray,i.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(i,t)},i},createUnparsedPrologue:function(e){return Ar(289,e)},createUnparsedPrepend:function(e,t){var n=Ar(290,e);return n.texts=t,n},createUnparsedTextLike:function(e,t){return Ar(t?292:291,e)},createUnparsedSyntheticReference:function(e){var t=N(293);return t.data=e.data,t.section=e,t},createInputFiles:function(){var e=N(297);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t,n){void 0===t&&(t=!1);var r=N(224);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){var t=N(329);return t._children=e,t},createNotEmittedStatement:function(t){var n=N(330);return n.original=t,e.setTextRange(n,t),n},createPartiallyEmittedExpression:Nr,updatePartiallyEmittedExpression:Pr,createCommaListExpression:Fr,updateCommaListExpression:function(e,t){return e.elements!==t?p(Fr(t),e):e},createEndOfDeclarationMarker:function(e){var t=N(334);return t.emitNode={},t.original=e,t},createMergeDeclarationMarker:function(e){var t=N(333);return t.emitNode={},t.original=e,t},createSyntheticReferenceExpression:Ir,updateSyntheticReferenceExpression:function(e,t,n){return e.expression!==t||e.thisArg!==n?p(Ir(t,n),e):e},cloneNode:Mr,get createComma(){return h(27)},get createAssignment(){return h(62)},get createLogicalOr(){return h(56)},get createLogicalAnd(){return h(55)},get createBitwiseOr(){return h(51)},get createBitwiseXor(){return h(52)},get createBitwiseAnd(){return h(50)},get createStrictEquality(){return h(36)},get createStrictInequality(){return h(37)},get createEquality(){return h(34)},get createInequality(){return h(35)},get createLessThan(){return h(29)},get createLessThanEquals(){return h(32)},get createGreaterThan(){return h(31)},get createGreaterThanEquals(){return h(33)},get createLeftShift(){return h(47)},get createRightShift(){return h(48)},get createUnsignedRightShift(){return h(49)},get createAdd(){return h(39)},get createSubtract(){return h(40)},get createMultiply(){return h(41)},get createDivide(){return h(43)},get createModulo(){return h(44)},get createExponent(){return h(42)},get createPrefixPlus(){return v(39)},get createPrefixMinus(){return v(40)},get createPrefixIncrement(){return v(45)},get createPrefixDecrement(){return v(46)},get createBitwiseNot(){return v(54)},get createLogicalNot(){return v(53)},get createPostfixIncrement(){return b(45)},get createPostfixDecrement(){return b(46)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return ut(yt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,Kt(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return ut(bt(void 0,void 0,t?[t]:[],void 0,void 0,Kt(e,!0)),void 0,n?[n]:[])},createVoidZero:Lr,createExportDefault:function(e){return jn(void 0,void 0,!1,e)},createExternalModuleExport:function(e){return zn(void 0,void 0,!1,Vn([Wn(void 0,e)]))},createTypeCheck:function(e,t){return"undefined"===t?w.createStrictEquality(e,Lr()):w.createStrictEquality(Ct(e),K(t))},createMethodCall:Rr,createGlobalMethodCall:Br,createFunctionBindCall:function(e,t,n){return Rr(e,"bind",i([t],n))},createFunctionCallCall:function(e,t,n){return Rr(e,"call",i([t],n))},createFunctionApplyCall:function(e,t,n){return Rr(e,"apply",[t,n])},createArraySliceCall:function(e,t){return Rr(e,"slice",void 0===t?[]:[Xr(t)])},createArrayConcatCall:function(e,t){return Rr(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return Br("Object","defineProperty",[e,Xr(t),n])},createPropertyDescriptor:function(t,n){var r=[];jr(r,"enumerable",Xr(t.enumerable)),jr(r,"configurable",Xr(t.configurable));var i=jr(r,"writable",Xr(t.writable));i=jr(r,"value",t.value)||i;var a=jr(r,"get",t.get);return a=jr(r,"set",t.set)||a,e.Debug.assert(!(i&&a),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),nt(r,!n)},createCallBinding:function(t,n,r,i){void 0===i&&(i=!1);var a,o,s=e.skipOuterExpressions(t,15);return e.isSuperProperty(s)?(a=te(),o=s):e.isSuperKeyword(s)?(a=te(),o=void 0!==r&&r<2?e.setTextRange(X("_super"),s):s):4096&e.getEmitFlags(s)?(a=Lr(),o=g().parenthesizeLeftSideOfAccess(s)):e.isPropertyAccessExpression(s)?Ur(s.expression,i)?(a=Y(n),o=rt(e.setTextRange(w.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s):e.isElementAccessExpression(s)?Ur(s.expression,i)?(a=Y(n),o=ot(e.setTextRange(w.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s):(a=Lr(),o=g().parenthesizeLeftSideOfAccess(t)),{target:o,thisArg:a}},inlineExpressions:function(t){return t.length>10?Fr(t):e.reduceLeft(t,w.createComma)},getInternalName:function(e,t,n){return zr(e,t,n,49152)},getLocalName:function(e,t,n){return zr(e,t,n,16384)},getExportName:Jr,getDeclarationName:function(e,t,n){return zr(e,t,n)},getNamespaceMemberName:Vr,getExternalModuleOrNamespaceExportName:function(t,n,r,i){return t&&e.hasSyntacticModifier(n,1)?Vr(t,zr(n),r,i):Jr(n,r,i)},restoreOuterExpressions:function t(n,r,i){return void 0===i&&(i=15),!n||!e.isOuterExpression(n,i)||e.isParenthesizedExpression(a=n)&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a))&&!e.some(e.getSyntheticLeadingComments(a))&&!e.some(e.getSyntheticTrailingComments(a))?r:function(e,t){switch(e.kind){case 204:return ht(e,t);case 203:return gt(e,e.type,t);case 221:return jt(e,t,e.type);case 222:return zt(e,t);case 331:return Pr(e,t)}}(n,t(n.expression,r));var a},restoreEnclosingLabel:function t(n,r,i){if(!r)return n;var a=ln(r,r.label,e.isLabeledStatement(r.statement)?t(n,r.statement):n);return i&&i(r),a},createUseStrictPrologue:Wr,copyPrologue:function(e,t,n,r){return Kr(e,t,qr(e,t,n),r)},copyStandardPrologue:qr,copyCustomPrologue:Kr,ensureUseStrict:function(t){return e.findUseStrictPrologue(t)?t:e.setTextRange(A(i([Wr()],t)),t)},liftToBlock:function(t){return e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||Kt(t)},mergeLexicalEnvironment:function(t,n){if(!e.some(n))return t;var r=Hr(t,e.isPrologueDirective,0),a=Hr(t,e.isHoistedFunction,r),o=Hr(t,e.isHoistedVariableStatement,a),s=Hr(n,e.isPrologueDirective,0),c=Hr(n,e.isHoistedFunction,s),u=Hr(n,e.isHoistedVariableStatement,c),l=Hr(n,e.isCustomPrologue,u);e.Debug.assert(l===n.length,"Expected declarations to be valid standard or custom prologues");var _=e.isNodeArray(t)?t.slice():t;if(l>u&&_.splice.apply(_,i([o,0],n.slice(u,l))),u>c&&_.splice.apply(_,i([a,0],n.slice(c,u))),c>s&&_.splice.apply(_,i([r,0],n.slice(s,c))),s>0)if(0===r)_.splice.apply(_,i([0,0],n.slice(0,s)));else{for(var d=new e.Map,f=0;f=0;f--){var p=n[f];d.has(p.expression.text)||_.unshift(p)}}return e.isNodeArray(t)?e.setTextRange(A(_,t.hasTrailingComma),t):t},updateModifiers:function(t,n){var r;return"number"==typeof n&&(n=ae(n)),e.isParameter(t)?le(t,t.decorators,n,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isPropertySignature(t)?fe(t,n,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?ge(t,t.decorators,n,t.name,null!==(r=t.questionToken)&&void 0!==r?r:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?he(t,n,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?ve(t,t.decorators,n,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?xe(t,t.decorators,n,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Ce(t,t.decorators,n,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?ke(t,t.decorators,n,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Ae(t,t.decorators,n,t.parameters,t.type):e.isFunctionExpression(t)?vt(t,n,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?xt(t,n,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?Lt(t,t.decorators,n,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?Gt(t,n,t.declarationList):e.isFunctionDeclaration(t)?mn(t,t.decorators,n,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?yn(t,t.decorators,n,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?bn(t,t.decorators,n,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?Dn(t,t.decorators,n,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Sn(t,t.decorators,n,t.name,t.members):e.isModuleDeclaration(t)?En(t,t.decorators,n,t.name,t.body):e.isImportEqualsDeclaration(t)?Pn(t,t.decorators,n,t.name,t.moduleReference):e.isImportDeclaration(t)?Fn(t,t.decorators,n,t.importClause,t.moduleSpecifier):e.isExportAssignment(t)?Un(t,t.decorators,n,t.expression):e.isExportDeclaration(t)?Jn(t,t.decorators,n,t.isTypeOnly,t.exportClause,t.moduleSpecifier):e.Debug.assertNever(t)}};return w;function A(t,n){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t))return void 0===t.transformFlags&&f(t),t;var r=t.length,i=r>=1&&r<=4?t.slice():t;return e.setTextRangePosEnd(i,-1,-1),i.hasTrailingComma=!!n,f(i),i}function N(e){return a.createBaseNode(e)}function P(e,t,n){var r=N(e);return r.decorators=Gr(t),r.modifiers=Gr(n),r.transformFlags|=d(r.decorators)|d(r.modifiers),r.symbol=void 0,r.localSymbol=void 0,r.locals=void 0,r.nextContainer=void 0,r}function O(t,n,r,i){var a=P(t,n,r);if(i=Qr(i),a.name=i,i)switch(a.kind){case 164:case 166:case 167:case 162:case 285:if(e.isIdentifier(i)){a.transformFlags|=l(i);break}default:a.transformFlags|=_(i)}return a}function F(e,t,n,r,i){var a=O(e,t,n,r);return a.typeParameters=Gr(i),a.transformFlags|=d(a.typeParameters),i&&(a.transformFlags|=1),a}function I(e,t,n,r,i,a,o){var s=F(e,t,n,r,i);return s.parameters=A(a),s.type=o,s.transformFlags|=d(s.parameters)|_(s.type),o&&(s.transformFlags|=1),s}function M(e,t){return t.typeArguments&&(e.typeArguments=t.typeArguments),p(e,t)}function L(e,t,n,r,i,a,o,s){var c=I(e,t,n,r,i,a,o);return c.body=s,c.transformFlags|=-8388609&_(c.body),s||(c.transformFlags|=1),c}function R(e,t){return t.exclamationToken&&(e.exclamationToken=t.exclamationToken),t.typeArguments&&(e.typeArguments=t.typeArguments),M(e,t)}function B(e,t,n,r,i,a){var o=F(e,t,n,r,i);return o.heritageClauses=Gr(a),o.transformFlags|=d(o.heritageClauses),o}function j(e,t,n,r,i,a,o){var s=B(e,t,n,r,i,a);return s.members=A(o),s.transformFlags|=d(s.members),s}function U(e,t,n,r,i){var a=O(e,t,n,r);return a.initializer=i,a.transformFlags|=_(a.initializer),a}function z(e,t,n,r,i,a){var o=U(e,t,n,r,a);return o.type=i,o.transformFlags|=_(i),i&&(o.transformFlags|=1),o}function J(e,t){var n=$(e);return n.text=t,n}function V(e,t){void 0===t&&(t=0);var n=J(8,"number"==typeof e?e+"":e);return n.numericLiteralFlags=t,384&t&&(n.transformFlags|=256),n}function W(t){var n=J(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return n.transformFlags|=4,n}function q(e,t){var n=J(10,e);return n.singleQuote=t,n}function K(e,t,n){var r=q(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=256),r}function H(e){return J(13,e)}function G(t,n){void 0===n&&t&&(n=e.stringToToken(t)),78===n&&(n=void 0);var r=a.createBaseIdentifierNode(78);return r.originalKeywordKind=n,r.escapedText=e.escapeLeadingUnderscores(t),r}function Q(e,t){var n=G(e,void 0);return n.autoGenerateFlags=t,n.autoGenerateId=r,r++,n}function X(e,t,n){var r=G(e,n);return t&&(r.typeArguments=A(t)),130===r.originalKeywordKind&&(r.transformFlags|=8388608),r}function Y(e,t){var n=1;t&&(n|=8);var r=Q("",n);return e&&e(r),r}function Z(t,n){void 0===n&&(n=0),e.Debug.assert(!(7&n),"Argument out of range: flags");var r=Q(t&&e.isIdentifier(t)?e.idText(t):"",4|n);return r.original=t,r}function $(e){return a.createBaseTokenNode(e)}function ee(t){e.Debug.assert(t>=0&&t<=155,"Invalid token"),e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(78!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var n=$(t),r=0;switch(t){case 129:r=96;break;case 122:case 120:case 121:case 141:case 125:case 133:case 84:case 128:case 143:case 154:case 140:case 144:case 146:case 131:case 147:case 113:case 151:case 149:r=1;break;case 123:case 105:r=256;break;case 107:r=4096}return r&&(n.transformFlags|=r),n}function te(){return ee(107)}function ne(){return ee(109)}function re(){return ee(94)}function ie(e){return ee(e)}function ae(e){var t=[];return 1&e&&t.push(ie(92)),2&e&&t.push(ie(133)),512&e&&t.push(ie(87)),2048&e&&t.push(ie(84)),4&e&&t.push(ie(122)),8&e&&t.push(ie(120)),16&e&&t.push(ie(121)),128&e&&t.push(ie(125)),32&e&&t.push(ie(123)),64&e&&t.push(ie(141)),256&e&&t.push(ie(129)),t}function oe(e,t){var n=N(156);return n.left=e,n.right=Qr(t),n.transformFlags|=_(n.left)|l(n.right),n}function se(e){var t=N(157);return t.expression=g().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=33024|_(t.expression),t}function ce(e,t,n){var r=O(158,void 0,void 0,e);return r.constraint=t,r.default=n,r.transformFlags=1,r}function ue(t,n,r,i,a,o,s){var c=z(159,t,n,i,o,s&&g().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=r,c.questionToken=a,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=_(c.dotDotDotToken)|_(c.questionToken),a&&(c.transformFlags|=1),92&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=2048),(s||r)&&(c.transformFlags|=256)),c}function le(e,t,n,r,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.dotDotDotToken!==r||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?p(ue(t,n,r,i,a,o,s),e):e}function _e(e){var t=N(160);return t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=2049|_(t.expression),t}function de(e,t,n,r){var i=O(161,void 0,e,t);return i.type=r,i.questionToken=n,i.transformFlags=1,i}function fe(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==i?p(de(t,n,r,i),e):e}function pe(t,n,r,i,a,o){var s=z(162,t,n,r,a,o);return s.questionToken=i&&e.isQuestionToken(i)?i:void 0,s.exclamationToken=i&&e.isExclamationToken(i)?i:void 0,s.transformFlags|=_(s.questionToken)|_(s.exclamationToken)|4194304,(e.isComputedPropertyName(s.name)||e.hasStaticModifier(s)&&s.initializer)&&(s.transformFlags|=2048),(i||2&e.modifiersToFlags(s.modifiers))&&(s.transformFlags|=1),s}function ge(t,n,r,i,a,o,s){return t.decorators!==n||t.modifiers!==r||t.name!==i||t.questionToken!==(void 0!==a&&e.isQuestionToken(a)?a:void 0)||t.exclamationToken!==(void 0!==a&&e.isExclamationToken(a)?a:void 0)||t.type!==o||t.initializer!==s?p(pe(n,r,i,a,o,s),t):t}function me(e,t,n,r,i,a){var o=I(163,void 0,e,t,r,i,a);return o.questionToken=n,o.transformFlags=1,o}function he(e,t,n,r,i,a,o){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o?M(me(t,n,r,i,a,o),e):e}function ye(t,n,r,i,a,o,s,c,u){var l=L(164,t,n,i,o,s,c,u);return l.asteriskToken=r,l.questionToken=a,l.transformFlags|=_(l.asteriskToken)|_(l.questionToken)|256,a&&(l.transformFlags|=1),256&e.modifiersToFlags(l.modifiers)?l.transformFlags|=r?32:64:r&&(l.transformFlags|=512),l}function ve(e,t,n,r,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==r||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?R(ye(t,n,r,i,a,o,s,c,u),e):e}function be(e,t,n,r){var i=L(165,e,t,void 0,void 0,n,void 0,r);return i.transformFlags|=256,i}function xe(e,t,n,r,i){return e.decorators!==t||e.modifiers!==n||e.parameters!==r||e.body!==i?R(be(t,n,r,i),e):e}function De(e,t,n,r,i,a){return L(166,e,t,n,void 0,r,i,a)}function Ce(e,t,n,r,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.parameters!==i||e.type!==a||e.body!==o?R(De(t,n,r,i,a,o),e):e}function Se(e,t,n,r,i){return L(167,e,t,n,void 0,r,void 0,i)}function ke(e,t,n,r,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.parameters!==i||e.body!==a?R(Se(t,n,r,i,a),e):e}function Ee(e,t,n){var r=I(168,void 0,void 0,void 0,e,t,n);return r.transformFlags=1,r}function Te(e,t,n){var r=I(169,void 0,void 0,void 0,e,t,n);return r.transformFlags=1,r}function we(e,t,n,r){var i=I(170,e,t,void 0,void 0,n,r);return i.transformFlags=1,i}function Ae(e,t,n,r,i){return e.parameters!==r||e.type!==i||e.decorators!==t||e.modifiers!==n?M(we(t,n,r,i),e):e}function Ne(e,t,n){var r=N(171);return r.assertsModifier=e,r.parameterName=Qr(t),r.type=n,r.transformFlags=1,r}function Pe(e,t){var n=N(172);return n.typeName=Qr(e),n.typeArguments=t&&g().parenthesizeTypeArguments(A(t)),n.transformFlags=1,n}function Oe(e,t,n){var r=I(173,void 0,void 0,void 0,e,t,n);return r.transformFlags=1,r}function Fe(e,t,n){var r=I(174,void 0,void 0,void 0,e,t,n);return r.transformFlags=1,r}function Ie(e){var t=N(175);return t.exprName=e,t.transformFlags=1,t}function Me(e){var t=N(176);return t.members=A(e),t.transformFlags=1,t}function Le(e){var t=N(177);return t.elementType=g().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function Re(e){var t=N(178);return t.elements=A(e),t.transformFlags=1,t}function Be(e,t,n,r){var i=N(191);return i.dotDotDotToken=e,i.name=t,i.questionToken=n,i.type=r,i.transformFlags=1,i}function je(e){var t=N(179);return t.type=g().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function Ue(e){var t=N(180);return t.type=e,t.transformFlags=1,t}function ze(e,t){var n=N(e);return n.types=g().parenthesizeConstituentTypesOfUnionOrIntersectionType(t),n.transformFlags=1,n}function Je(e,t){return e.types!==t?p(ze(e.kind,t),e):e}function Ve(e,t,n,r){var i=N(183);return i.checkType=g().parenthesizeMemberOfConditionalType(e),i.extendsType=g().parenthesizeMemberOfConditionalType(t),i.trueType=n,i.falseType=r,i.transformFlags=1,i}function We(e){var t=N(184);return t.typeParameter=e,t.transformFlags=1,t}function qe(e,t,n,r){void 0===r&&(r=!1);var i=N(192);return i.argument=e,i.qualifier=t,i.typeArguments=n&&g().parenthesizeTypeArguments(n),i.isTypeOf=r,i.transformFlags=1,i}function Ke(e){var t=N(185);return t.type=e,t.transformFlags=1,t}function He(e,t){var n=N(187);return n.operator=e,n.type=g().parenthesizeMemberOfElementType(t),n.transformFlags=1,n}function Ge(e,t){var n=N(188);return n.objectType=g().parenthesizeMemberOfElementType(e),n.indexType=t,n.transformFlags=1,n}function Qe(e,t,n,r){var i=N(189);return i.readonlyToken=e,i.typeParameter=t,i.questionToken=n,i.type=r,i.transformFlags=1,i}function Xe(e){var t=N(190);return t.literal=e,t.transformFlags=1,t}function Ye(e){var t=N(193);return t.elements=A(e),t.transformFlags|=131328|d(t.elements),8192&t.transformFlags&&(t.transformFlags|=16416),t}function Ze(e){var t=N(194);return t.elements=A(e),t.transformFlags|=131328|d(t.elements),t}function $e(t,n,r,i){var a=U(195,void 0,void 0,r,i);return a.propertyName=Qr(n),a.dotDotDotToken=t,a.transformFlags|=256|_(a.dotDotDotToken),a.propertyName&&(a.transformFlags|=e.isIdentifier(a.propertyName)?l(a.propertyName):_(a.propertyName)),t&&(a.transformFlags|=8192),a}function et(e){return N(e)}function tt(e,t){var n=et(196);return n.elements=g().parenthesizeExpressionsOfCommaDelimitedList(A(e)),n.multiLine=t,n.transformFlags|=d(n.elements),n}function nt(e,t){var n=et(197);return n.properties=A(e),n.multiLine=t,n.transformFlags|=d(n.properties),n}function rt(t,n){var r=et(198);return r.expression=g().parenthesizeLeftSideOfAccess(t),r.name=Qr(n),r.transformFlags=_(r.expression)|(e.isIdentifier(r.name)?l(r.name):_(r.name)),e.isSuperKeyword(t)&&(r.transformFlags|=96),r}function it(t,n,r){var i=et(198);return i.flags|=32,i.expression=g().parenthesizeLeftSideOfAccess(t),i.questionDotToken=n,i.name=Qr(r),i.transformFlags|=8|_(i.expression)|_(i.questionDotToken)|(e.isIdentifier(i.name)?l(i.name):_(i.name)),i}function at(t,n,r,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),t.expression!==n||t.questionDotToken!==r||t.name!==i?p(it(n,r,i),t):t}function ot(t,n){var r=et(199);return r.expression=g().parenthesizeLeftSideOfAccess(t),r.argumentExpression=Xr(n),r.transformFlags|=_(r.expression)|_(r.argumentExpression),e.isSuperKeyword(t)&&(r.transformFlags|=96),r}function st(e,t,n){var r=et(199);return r.flags|=32,r.expression=g().parenthesizeLeftSideOfAccess(e),r.questionDotToken=t,r.argumentExpression=Xr(n),r.transformFlags|=_(r.expression)|_(r.questionDotToken)|_(r.argumentExpression)|8,r}function ct(t,n,r,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),t.expression!==n||t.questionDotToken!==r||t.argumentExpression!==i?p(st(n,r,i),t):t}function ut(t,n,r){var i=et(200);return i.expression=g().parenthesizeLeftSideOfAccess(t),i.typeArguments=Gr(n),i.arguments=g().parenthesizeExpressionsOfCommaDelimitedList(A(r)),i.transformFlags|=_(i.expression)|d(i.typeArguments)|d(i.arguments),i.typeArguments&&(i.transformFlags|=1),e.isImportKeyword(i.expression)?i.transformFlags|=2097152:e.isSuperProperty(i.expression)&&(i.transformFlags|=4096),i}function lt(t,n,r,i){var a=et(200);return a.flags|=32,a.expression=g().parenthesizeLeftSideOfAccess(t),a.questionDotToken=n,a.typeArguments=Gr(r),a.arguments=g().parenthesizeExpressionsOfCommaDelimitedList(A(i)),a.transformFlags|=_(a.expression)|_(a.questionDotToken)|d(a.typeArguments)|d(a.arguments)|8,a.typeArguments&&(a.transformFlags|=1),e.isSuperProperty(a.expression)&&(a.transformFlags|=4096),a}function _t(t,n,r,i,a){return e.Debug.assert(!!(32&t.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),t.expression!==n||t.questionDotToken!==r||t.typeArguments!==i||t.arguments!==a?p(lt(n,r,i,a),t):t}function dt(e,t,n){var r=et(201);return r.expression=g().parenthesizeExpressionOfNew(e),r.typeArguments=Gr(t),r.arguments=n?g().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,r.transformFlags|=_(r.expression)|d(r.typeArguments)|d(r.arguments)|8,r.typeArguments&&(r.transformFlags|=1),r}function ft(t,n,r){var i=et(202);return i.tag=g().parenthesizeLeftSideOfAccess(t),i.typeArguments=Gr(n),i.template=r,i.transformFlags|=_(i.tag)|d(i.typeArguments)|_(i.template)|256,i.typeArguments&&(i.transformFlags|=1),e.hasInvalidEscape(i.template)&&(i.transformFlags|=32),i}function pt(e,t){var n=et(203);return n.expression=g().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=_(n.expression)|_(n.type)|1,n}function gt(e,t,n){return e.type!==t||e.expression!==n?p(pt(t,n),e):e}function mt(e){var t=et(204);return t.expression=e,t.transformFlags=_(t.expression),t}function ht(e,t){return e.expression!==t?p(mt(t),e):e}function yt(t,n,r,i,a,o,s){var c=L(205,void 0,t,r,i,a,o,s);return c.asteriskToken=n,c.transformFlags|=_(c.asteriskToken),c.typeParameters&&(c.transformFlags|=1),256&e.modifiersToFlags(c.modifiers)?c.transformFlags|=c.asteriskToken?32:64:c.asteriskToken&&(c.transformFlags|=512),c}function vt(e,t,n,r,i,a,o,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?R(yt(t,n,r,i,a,o,s),e):e}function bt(t,n,r,i,a,o){var s=L(206,void 0,t,void 0,n,r,i,g().parenthesizeConciseBodyOfArrowFunction(o));return s.equalsGreaterThanToken=null!=a?a:ee(38),s.transformFlags|=256|_(s.equalsGreaterThanToken),256&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=64),s}function xt(e,t,n,r,i,a,o){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?R(bt(t,n,r,i,a,o),e):e}function Dt(e){var t=et(207);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=_(t.expression),t}function Ct(e){var t=et(208);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=_(t.expression),t}function St(e){var t=et(209);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=_(t.expression),t}function kt(e){var t=et(210);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=524384|_(t.expression),t}function Et(e,t){var n=et(211);return n.operator=e,n.operand=g().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=_(n.operand),n}function Tt(e,t){var n=et(212);return n.operator=t,n.operand=g().parenthesizeOperandOfPostfixUnary(e),n.transformFlags=_(n.operand),n}function wt(t,n,r){var i,a=et(213),o="number"==typeof(i=n)?ee(i):i,s=o.kind;return a.left=g().parenthesizeLeftSideOfBinary(s,t),a.operatorToken=o,a.right=g().parenthesizeRightSideOfBinary(s,a.left,r),a.transformFlags|=_(a.left)|_(a.operatorToken)|_(a.right),60===s?a.transformFlags|=8:62===s?e.isObjectLiteralExpression(a.left)?a.transformFlags|=1312:e.isArrayLiteralExpression(a.left)&&(a.transformFlags|=1280):42===s||66===s?a.transformFlags|=128:e.isLogicalOrCoalescingAssignmentOperator(s)&&(a.transformFlags|=4),a}function At(e,t,n,r,i){var a=et(214);return a.condition=g().parenthesizeConditionOfConditionalExpression(e),a.questionToken=null!=t?t:ee(57),a.whenTrue=g().parenthesizeBranchOfConditionalExpression(n),a.colonToken=null!=r?r:ee(58),a.whenFalse=g().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=_(a.condition)|_(a.questionToken)|_(a.whenTrue)|_(a.colonToken)|_(a.whenFalse),a}function Nt(e,t){var n=et(215);return n.head=e,n.templateSpans=A(t),n.transformFlags|=_(n.head)|d(n.templateSpans)|256,n}function Pt(n,r,i,a){void 0===a&&(a=0),e.Debug.assert(!(-2049&a),"Unsupported template flags.");var o=void 0;if(void 0!==i&&i!==r&&"object"==typeof(o=function(n,r){switch(t||(t=e.createScanner(99,!1,0)),n){case 14:t.setText("`"+r+"`");break;case 15:t.setText("`"+r+"${");break;case 16:t.setText("}"+r+"${");break;case 17:t.setText("}"+r+"`")}var i,a=t.scan();if(23===a&&(a=t.reScanTemplateToken(!1)),t.isUnterminated())return t.setText(void 0),u;switch(a){case 14:case 15:case 16:case 17:i=t.getTokenValue()}return void 0===i||1!==t.scan()?(t.setText(void 0),u):(t.setText(void 0),i)}(n,i)))return e.Debug.fail("Invalid raw text");if(void 0===r){if(void 0===o)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");r=o}else void 0!==o&&e.Debug.assert(r===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return Ot(n,r,i,a)}function Ot(e,t,n,r){var i=$(e);return i.text=t,i.rawText=n,i.templateFlags=2048&r,i.transformFlags|=256,i.templateFlags&&(i.transformFlags|=32),i}function Ft(t,n){e.Debug.assert(!t||!!n,"A `YieldExpression` with an asteriskToken must have an expression.");var r=et(216);return r.expression=n&&g().parenthesizeExpressionForDisallowedComma(n),r.asteriskToken=t,r.transformFlags|=_(r.expression)|_(r.asteriskToken)|262432,r}function It(e){var t=et(217);return t.expression=g().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=8448|_(t.expression),t}function Mt(e,t,n,r,i,a){var o=j(218,e,t,n,r,i,a);return o.transformFlags|=256,o}function Lt(e,t,n,r,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?p(Mt(t,n,r,i,a,o),e):e}function Rt(e,t){var n=N(220);return n.expression=g().parenthesizeLeftSideOfAccess(e),n.typeArguments=t&&g().parenthesizeTypeArguments(t),n.transformFlags|=_(n.expression)|d(n.typeArguments)|256,n}function Bt(e,t){var n=et(221);return n.expression=e,n.type=t,n.transformFlags|=_(n.expression)|_(n.type)|1,n}function jt(e,t,n){return e.expression!==t||e.type!==n?p(Bt(t,n),e):e}function Ut(e){var t=et(222);return t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|_(t.expression),t}function zt(t,n){return e.isNonNullChain(t)?Vt(t,n):t.expression!==n?p(Ut(n),t):t}function Jt(e){var t=et(222);return t.flags|=32,t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|_(t.expression),t}function Vt(t,n){return e.Debug.assert(!!(32&t.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),t.expression!==n?p(Jt(n),t):t}function Wt(t,n){var r=et(223);switch(r.keywordToken=t,r.name=n,r.transformFlags|=_(r.name),t){case 102:r.transformFlags|=256;break;case 99:r.transformFlags|=4;break;default:return e.Debug.assertNever(t)}return r}function qt(e,t){var n=N(225);return n.expression=e,n.literal=t,n.transformFlags|=_(n.expression)|_(n.literal)|256,n}function Kt(e,t){var n=N(227);return n.statements=A(e),n.multiLine=t,n.transformFlags|=d(n.statements),n}function Ht(t,n){var r=P(229,void 0,t);return r.declarationList=e.isArray(n)?pn(n):n,r.transformFlags|=_(r.declarationList),2&e.modifiersToFlags(r.modifiers)&&(r.transformFlags=1),r}function Gt(e,t,n){return e.modifiers!==t||e.declarationList!==n?p(Ht(t,n),e):e}function Qt(){return N(228)}function Xt(e){var t=N(230);return t.expression=g().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=_(t.expression),t}function Yt(e,t,n){var r=N(231);return r.expression=e,r.thenStatement=Yr(t),r.elseStatement=Yr(n),r.transformFlags|=_(r.expression)|_(r.thenStatement)|_(r.elseStatement),r}function Zt(e,t){var n=N(232);return n.statement=Yr(e),n.expression=t,n.transformFlags|=_(n.statement)|_(n.expression),n}function $t(e,t){var n=N(233);return n.expression=e,n.statement=Yr(t),n.transformFlags|=_(n.expression)|_(n.statement),n}function en(e,t,n,r){var i=N(234);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=Yr(r),i.transformFlags|=_(i.initializer)|_(i.condition)|_(i.incrementor)|_(i.statement),i}function tn(e,t,n){var r=N(235);return r.initializer=e,r.expression=t,r.statement=Yr(n),r.transformFlags|=_(r.initializer)|_(r.expression)|_(r.statement),r}function nn(e,t,n,r){var i=N(236);return i.awaitModifier=e,i.initializer=t,i.expression=g().parenthesizeExpressionForDisallowedComma(n),i.statement=Yr(r),i.transformFlags|=_(i.awaitModifier)|_(i.initializer)|_(i.expression)|_(i.statement)|256,e&&(i.transformFlags|=32),i}function rn(e){var t=N(237);return t.label=Qr(e),t.transformFlags|=1048576|_(t.label),t}function an(e){var t=N(238);return t.label=Qr(e),t.transformFlags|=1048576|_(t.label),t}function on(e){var t=N(239);return t.expression=e,t.transformFlags|=1048608|_(t.expression),t}function sn(e,t){var n=N(240);return n.expression=e,n.statement=Yr(t),n.transformFlags|=_(n.expression)|_(n.statement),n}function cn(e,t){var n=N(241);return n.expression=g().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=_(n.expression)|_(n.caseBlock),n}function un(e,t){var n=N(242);return n.label=Qr(e),n.statement=Yr(t),n.transformFlags|=_(n.label)|_(n.statement),n}function ln(e,t,n){return e.label!==t||e.statement!==n?p(un(t,n),e):e}function _n(e){var t=N(243);return t.expression=e,t.transformFlags|=_(t.expression),t}function dn(e,t,n){var r=N(244);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=_(r.tryBlock)|_(r.catchClause)|_(r.finallyBlock),r}function fn(e,t,n,r){var i=z(246,void 0,void 0,e,n,r&&g().parenthesizeExpressionForDisallowedComma(r));return i.exclamationToken=t,i.transformFlags|=_(i.exclamationToken),t&&(i.transformFlags|=1),i}function pn(e,t){void 0===t&&(t=0);var n=N(247);return n.flags|=3&t,n.declarations=A(e),n.transformFlags|=1048576|d(n.declarations),3&t&&(n.transformFlags|=65792),n}function gn(t,n,r,i,a,o,s,c){var u=L(248,t,n,i,a,o,s,c);return u.asteriskToken=r,!u.body||2&e.modifiersToFlags(u.modifiers)?u.transformFlags=1:(u.transformFlags|=1048576|_(u.asteriskToken),256&e.modifiersToFlags(u.modifiers)?u.transformFlags|=u.asteriskToken?32:64:u.asteriskToken&&(u.transformFlags|=512)),u}function mn(e,t,n,r,i,a,o,s,c){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==r||e.name!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?R(gn(t,n,r,i,a,o,s,c),e):e}function hn(t,n,r,i,a,o){var s=j(249,t,n,r,i,a,o);return 2&e.modifiersToFlags(s.modifiers)?s.transformFlags=1:(s.transformFlags|=256,2048&s.transformFlags&&(s.transformFlags|=1)),s}function yn(e,t,n,r,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?p(hn(t,n,r,i,a,o),e):e}function vn(e,t,n,r,i,a){var o=B(250,e,t,n,r,i);return o.members=A(a),o.transformFlags=1,o}function bn(e,t,n,r,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?p(vn(t,n,r,i,a,o),e):e}function xn(e,t,n,r,i){var a=F(251,e,t,n,r);return a.type=i,a.transformFlags=1,a}function Dn(e,t,n,r,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.typeParameters!==i||e.type!==a?p(xn(t,n,r,i,a),e):e}function Cn(e,t,n,r){var i=O(252,e,t,n);return i.members=A(r),i.transformFlags|=1|d(i.members),i.transformFlags&=-8388609,i}function Sn(e,t,n,r,i){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.members!==i?p(Cn(t,n,r,i),e):e}function kn(t,n,r,i,a){void 0===a&&(a=0);var o=P(253,t,n);return o.flags|=1044&a,o.name=r,o.body=i,2&e.modifiersToFlags(o.modifiers)?o.transformFlags=1:o.transformFlags|=_(o.name)|_(o.body)|1,o.transformFlags&=-8388609,o}function En(e,t,n,r,i){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.body!==i?p(kn(t,n,r,i,e.flags),e):e}function Tn(e){var t=N(254);return t.statements=A(e),t.transformFlags|=d(t.statements),t}function wn(e){var t=N(255);return t.clauses=A(e),t.transformFlags|=d(t.clauses),t}function An(e){var t=O(256,void 0,void 0,e);return t.transformFlags=1,t}function Nn(t,n,r,i){var a=O(257,t,n,r);return a.moduleReference=i,a.transformFlags|=_(a.moduleReference),e.isExternalModuleReference(a.moduleReference)||(a.transformFlags|=1),a.transformFlags&=-8388609,a}function Pn(e,t,n,r,i){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.moduleReference!==i?p(Nn(t,n,r,i),e):e}function On(e,t,n,r){var i=P(258,e,t);return i.importClause=n,i.moduleSpecifier=r,i.transformFlags|=_(i.importClause)|_(i.moduleSpecifier),i.transformFlags&=-8388609,i}function Fn(e,t,n,r,i){return e.decorators!==t||e.modifiers!==n||e.importClause!==r||e.moduleSpecifier!==i?p(On(t,n,r,i),e):e}function In(e,t,n){var r=N(259);return r.isTypeOnly=e,r.name=t,r.namedBindings=n,r.transformFlags|=_(r.name)|_(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-8388609,r}function Mn(e){var t=N(260);return t.name=e,t.transformFlags|=_(t.name),t.transformFlags&=-8388609,t}function Ln(e){var t=N(266);return t.name=e,t.transformFlags|=4|_(t.name),t.transformFlags&=-8388609,t}function Rn(e){var t=N(261);return t.elements=A(e),t.transformFlags|=d(t.elements),t.transformFlags&=-8388609,t}function Bn(e,t){var n=N(262);return n.propertyName=e,n.name=t,n.transformFlags|=_(n.propertyName)|_(n.name),n.transformFlags&=-8388609,n}function jn(e,t,n,r){var i=P(263,e,t);return i.isExportEquals=n,i.expression=n?g().parenthesizeRightSideOfBinary(62,void 0,r):g().parenthesizeExpressionOfExportDefault(r),i.transformFlags|=_(i.expression),i.transformFlags&=-8388609,i}function Un(e,t,n,r){return e.decorators!==t||e.modifiers!==n||e.expression!==r?p(jn(t,n,e.isExportEquals,r),e):e}function zn(e,t,n,r,i){var a=P(264,e,t);return a.isTypeOnly=n,a.exportClause=r,a.moduleSpecifier=i,a.transformFlags|=_(a.exportClause)|_(a.moduleSpecifier),a.transformFlags&=-8388609,a}function Jn(e,t,n,r,i,a){return e.decorators!==t||e.modifiers!==n||e.isTypeOnly!==r||e.exportClause!==i||e.moduleSpecifier!==a?p(zn(t,n,r,i,a),e):e}function Vn(e){var t=N(265);return t.elements=A(e),t.transformFlags|=d(t.elements),t.transformFlags&=-8388609,t}function Wn(e,t){var n=N(267);return n.propertyName=Qr(e),n.name=Qr(t),n.transformFlags|=_(n.propertyName)|_(n.name),n.transformFlags&=-8388609,n}function qn(e){var t=N(269);return t.expression=e,t.transformFlags|=_(t.expression),t.transformFlags&=-8388609,t}function Kn(e,t){var n=N(e);return n.type=t,n}function Hn(e,t){return I(304,void 0,void 0,void 0,void 0,e,t)}function Gn(e,t){void 0===t&&(t=!1);var n=N(308);return n.jsDocPropertyTags=Gr(e),n.isArrayType=t,n}function Qn(e){var t=N(298);return t.type=e,t}function Xn(e,t,n){var r=N(309);return r.typeParameters=Gr(e),r.parameters=A(t),r.type=n,r}function Yn(t){var n=c(t.kind);return t.tagName.escapedText===e.escapeLeadingUnderscores(n)?t.tagName:X(n)}function Zn(e,t,n){var r=N(e);return r.tagName=t,r.comment=n,r}function $n(e,t,n,r){var i=Zn(326,null!=e?e:X("template"),r);return i.constraint=t,i.typeParameters=A(n),i}function er(t,n,r,i){var a=Zn(327,null!=t?t:X("typedef"),i);return a.typeExpression=n,a.fullName=r,a.name=e.getJSDocTypeAliasName(r),a}function tr(e,t,n,r,i,a){var o=Zn(322,null!=e?e:X("param"),a);return o.typeExpression=r,o.name=t,o.isNameFirst=!!i,o.isBracketed=n,o}function nr(e,t,n,r,i,a){var o=Zn(328,null!=e?e:X("prop"),a);return o.typeExpression=r,o.name=t,o.isNameFirst=!!i,o.isBracketed=n,o}function rr(t,n,r,i){var a=Zn(320,null!=t?t:X("callback"),i);return a.typeExpression=n,a.fullName=r,a.name=e.getJSDocTypeAliasName(r),a}function ir(e,t,n){var r=Zn(311,null!=e?e:X("augments"),n);return r.class=t,r}function ar(e,t,n){var r=Zn(312,null!=e?e:X("implements"),n);return r.class=t,r}function or(e,t,n){return Zn(e,null!=t?t:X(c(e)),n)}function sr(e,t,n,r){var i=Zn(e,null!=t?t:X(c(e)),r);return i.typeExpression=n,i}function cr(e,t){return Zn(310,e,t)}function ur(e,t){var n=N(307);return n.comment=e,n.tags=Gr(t),n}function lr(e,t,n){var r=N(270);return r.openingElement=e,r.children=A(t),r.closingElement=n,r.transformFlags|=_(r.openingElement)|d(r.children)|_(r.closingElement)|2,r}function _r(e,t,n){var r=N(271);return r.tagName=e,r.typeArguments=Gr(t),r.attributes=n,r.transformFlags|=_(r.tagName)|d(r.typeArguments)|_(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function dr(e,t,n){var r=N(272);return r.tagName=e,r.typeArguments=Gr(t),r.attributes=n,r.transformFlags|=_(r.tagName)|d(r.typeArguments)|_(r.attributes)|2,t&&(r.transformFlags|=1),r}function fr(e){var t=N(273);return t.tagName=e,t.transformFlags|=2|_(t.tagName),t}function pr(e,t,n){var r=N(274);return r.openingFragment=e,r.children=A(t),r.closingFragment=n,r.transformFlags|=_(r.openingFragment)|d(r.children)|_(r.closingFragment)|2,r}function gr(e,t){var n=N(11);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function mr(e,t){var n=N(277);return n.name=e,n.initializer=t,n.transformFlags|=_(n.name)|_(n.initializer)|2,n}function hr(e){var t=N(278);return t.properties=A(e),t.transformFlags|=2|d(t.properties),t}function yr(e){var t=N(279);return t.expression=e,t.transformFlags|=2|_(t.expression),t}function vr(e,t){var n=N(280);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=_(n.dotDotDotToken)|_(n.expression)|2,n}function br(e,t){var n=N(281);return n.expression=g().parenthesizeExpressionForDisallowedComma(e),n.statements=A(t),n.transformFlags|=_(n.expression)|d(n.statements),n}function xr(e){var t=N(282);return t.statements=A(e),t.transformFlags=d(t.statements),t}function Dr(t,n){var r=N(283);switch(r.token=t,r.types=A(n),r.transformFlags|=d(r.types),t){case 93:r.transformFlags|=256;break;case 116:r.transformFlags|=1;break;default:return e.Debug.assertNever(t)}return r}function Cr(t,n){var r=N(284);return t=e.isString(t)?fn(t,void 0,void 0,void 0):t,r.variableDeclaration=t,r.block=n,r.transformFlags|=_(r.variableDeclaration)|_(r.block),t||(r.transformFlags|=16),r}function Sr(e,t){var n=O(285,void 0,void 0,e);return n.initializer=g().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=_(n.name)|_(n.initializer),n}function kr(e,t){var n=O(286,void 0,void 0,e);return n.objectAssignmentInitializer=t&&g().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=256|_(n.objectAssignmentInitializer),n}function Er(e){var t=N(287);return t.expression=g().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=16416|_(t.expression),t}function Tr(e,t){var n=N(288);return n.name=Qr(e),n.initializer=t&&g().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=_(n.name)|_(n.initializer)|1,n}function wr(t,n){void 0===n&&(n=e.emptyArray);var r=N(295);return r.prepends=n,r.sourceFiles=t,r}function Ar(e,t){var n=N(e);return n.data=t,n}function Nr(t,n){var r=N(331);return r.expression=t,r.original=n,r.transformFlags|=1|_(r.expression),e.setTextRange(r,n),r}function Pr(e,t){return e.expression!==t?p(Nr(t,e.original),e):e}function Or(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(e.isCommaListExpression(t))return t.elements;if(e.isBinaryExpression(t)&&e.isCommaToken(t.operatorToken))return[t.left,t.right]}return t}function Fr(t){var n=N(332);return n.elements=A(e.sameFlatMap(t,Or)),n.transformFlags|=d(n.elements),n}function Ir(e,t){var n=N(335);return n.expression=e,n.thisArg=t,n.transformFlags|=_(n.expression)|_(n.thisArg),n}function Mr(t){if(void 0===t)return t;var n=e.isSourceFile(t)?a.createBaseSourceFileNode(294):e.isIdentifier(t)?a.createBaseIdentifierNode(78):e.isPrivateIdentifier(t)?a.createBasePrivateIdentifierNode(79):e.isNodeKind(t.kind)?a.createBaseNode(t.kind):a.createBaseTokenNode(t.kind);for(var r in n.flags|=-9&t.flags,n.transformFlags=t.transformFlags,y(n,t),t)!n.hasOwnProperty(r)&&t.hasOwnProperty(r)&&(n[r]=t[r]);return n}function Lr(){return St(V("0"))}function Rr(e,t,n){return ut(rt(e,t),void 0,n)}function Br(e,t,n){return Rr(X(e),t,n)}function jr(e,t,n){return!!n&&(e.push(Sr(t,n)),!0)}function Ur(t,n){var r=e.skipParentheses(t);switch(r.kind){case 78:return n;case 107:case 8:case 9:case 10:return!1;case 196:return 0!==r.elements.length;case 197:return r.properties.length>0;default:return!0}}function zr(t,n,r,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange(Mr(a),a),a.parent);return i|=e.getEmitFlags(a),r||(i|=48),n||(i|=1536),i&&e.setEmitFlags(o,i),o}return Z(t)}function Jr(e,t,n){return zr(e,t,n,8192)}function Vr(t,n,r,i){var a=rt(t,e.nodeIsSynthesized(n)?n:Mr(n));e.setTextRange(a,n);var o=0;return i||(o|=48),r||(o|=1536),o&&e.setEmitFlags(a,o),a}function Wr(){return e.startOnNewLine(Xt(K("use strict")))}function qr(t,n,r){e.Debug.assert(0===n.length,"Prologue directives should be at the first statement in the target statements array");for(var i,a=!1,o=0,s=t.length;o=171&&e<=192)return-2;switch(e){case 200:case 201:case 196:return 536879104;case 253:return 546379776;case 159:return 536870912;case 206:return 547309568;case 205:case 248:return 547313664;case 247:return 537018368;case 249:case 218:return 536905728;case 165:return 547311616;case 162:return 536875008;case 164:case 166:case 167:return 538923008;case 128:case 143:case 154:case 140:case 146:case 144:case 131:case 147:case 113:case 158:case 161:case 163:case 168:case 169:case 170:case 250:case 251:return-2;case 197:return 536922112;case 284:return 536887296;case 193:case 194:return 536879104;case 203:case 221:case 331:case 204:case 105:return 536870912;case 198:case 199:default:return 536870912}}e.getTransformFlagsSubtreeExclusions=p;var g,m=e.createBaseNodeFactory();function h(e){return e.flags|=8,e}function y(t,n){if(t.original=n,n){var r=n.emitNode;r&&(t.emitNode=function(t,n){var r=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers,_=t.startsOnNewLine;if(n||(n={}),i&&(n.leadingComments=e.addRange(i.slice(),n.leadingComments)),a&&(n.trailingComments=e.addRange(a.slice(),n.trailingComments)),r&&(n.flags=r),o&&(n.commentRange=o),s&&(n.sourceMapRange=s),c&&(n.tokenSourceMapRanges=function(e,t){for(var n in t||(t=[]),e)t[n]=e[n];return t}(c,n.tokenSourceMapRanges)),void 0!==u&&(n.constantValue=u),l)for(var d=0,f=l;d0&&(o[u-c]=l)}c>0&&(o.length-=c)}},e.ignoreSourceNewlines=function(e){return t(e).flags|=134217728,e}}(l||(l={})),function(e){function t(e){for(var t=[],n=1;n=2?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"assign"),void 0,i):(t.requestEmitHelper(e.assignHelper),n.createCallExpression(r("__assign"),void 0,i))},createAwaitHelper:function(i){return t.requestEmitHelper(e.awaitHelper),n.createCallExpression(r("__await"),void 0,[i])},createAsyncGeneratorHelper:function(i,a){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(i.emitNode||(i.emitNode={})).flags|=786432,n.createCallExpression(r("__asyncGenerator"),void 0,[a?n.createThis():n.createVoidZero(),n.createIdentifier("arguments"),i])},createAsyncDelegatorHelper:function(i){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),n.createCallExpression(r("__asyncDelegator"),void 0,[i])},createAsyncValuesHelper:function(i){return t.requestEmitHelper(e.asyncValues),n.createCallExpression(r("__asyncValues"),void 0,[i])},createRestHelper:function(i,a,o,s){t.requestEmitHelper(e.restHelper);for(var c=[],u=0,l=0;l= 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 };'},e.metadataHelper={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 };'},e.paramHelper={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 };"},e.assignHelper={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 };"},e.awaitHelper={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); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],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"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\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 };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],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: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={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 };'},e.restHelper={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 };'},e.awaiterHelper={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 };'},e.extendsHelper={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 extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"},e.templateObjectHelper={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 };'},e.readHelper={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 };'},e.spreadHelper={name:"typescript:spread",importName:"__spread",scoped:!1,dependencies:[e.readHelper],text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"},e.spreadArraysHelper={name:"typescript:spreadArrays",importName:"__spreadArrays",scoped:!1,text:"\n var __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n };"},e.valuesHelper={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 };'},e.generatorHelper={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 (_) 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 };'},e.createBindingHelper={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 Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));"},e.setModuleDefaultHelper={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 });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],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 };'},e.importDefaultHelper={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 };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],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 };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {\n if (!privateMap.has(receiver)) {\n throw new TypeError("attempted to get private field on non-instance");\n }\n return privateMap.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {\n if (!privateMap.has(receiver)) {\n throw new TypeError("attempted to set private field on non-instance");\n }\n privateMap.set(receiver, value);\n return value;\n };'},e.getAllUnscopedEmitHelpers=function(){return n||(n=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadHelper,e.spreadArraysHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.createBindingHelper,e.setModuleDefaultHelper],function(e){return e.name}))},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:t(o(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(o(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")}}(l||(l={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isIdentifier=function(e){return 78===e.kind},e.isQualifiedName=function(e){return 156===e.kind},e.isComputedPropertyName=function(e){return 157===e.kind},e.isPrivateIdentifier=function(e){return 79===e.kind},e.isSuperKeyword=function(e){return 105===e.kind},e.isImportKeyword=function(e){return 99===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isTypeParameterDeclaration=function(e){return 158===e.kind},e.isParameter=function(e){return 159===e.kind},e.isDecorator=function(e){return 160===e.kind},e.isPropertySignature=function(e){return 161===e.kind},e.isPropertyDeclaration=function(e){return 162===e.kind},e.isMethodSignature=function(e){return 163===e.kind},e.isMethodDeclaration=function(e){return 164===e.kind},e.isConstructorDeclaration=function(e){return 165===e.kind},e.isGetAccessorDeclaration=function(e){return 166===e.kind},e.isSetAccessorDeclaration=function(e){return 167===e.kind},e.isCallSignatureDeclaration=function(e){return 168===e.kind},e.isConstructSignatureDeclaration=function(e){return 169===e.kind},e.isIndexSignatureDeclaration=function(e){return 170===e.kind},e.isTypePredicateNode=function(e){return 171===e.kind},e.isTypeReferenceNode=function(e){return 172===e.kind},e.isFunctionTypeNode=function(e){return 173===e.kind},e.isConstructorTypeNode=function(e){return 174===e.kind},e.isTypeQueryNode=function(e){return 175===e.kind},e.isTypeLiteralNode=function(e){return 176===e.kind},e.isArrayTypeNode=function(e){return 177===e.kind},e.isTupleTypeNode=function(e){return 178===e.kind},e.isNamedTupleMember=function(e){return 191===e.kind},e.isOptionalTypeNode=function(e){return 179===e.kind},e.isRestTypeNode=function(e){return 180===e.kind},e.isUnionTypeNode=function(e){return 181===e.kind},e.isIntersectionTypeNode=function(e){return 182===e.kind},e.isConditionalTypeNode=function(e){return 183===e.kind},e.isInferTypeNode=function(e){return 184===e.kind},e.isParenthesizedTypeNode=function(e){return 185===e.kind},e.isThisTypeNode=function(e){return 186===e.kind},e.isTypeOperatorNode=function(e){return 187===e.kind},e.isIndexedAccessTypeNode=function(e){return 188===e.kind},e.isMappedTypeNode=function(e){return 189===e.kind},e.isLiteralTypeNode=function(e){return 190===e.kind},e.isImportTypeNode=function(e){return 192===e.kind},e.isObjectBindingPattern=function(e){return 193===e.kind},e.isArrayBindingPattern=function(e){return 194===e.kind},e.isBindingElement=function(e){return 195===e.kind},e.isArrayLiteralExpression=function(e){return 196===e.kind},e.isObjectLiteralExpression=function(e){return 197===e.kind},e.isPropertyAccessExpression=function(e){return 198===e.kind},e.isElementAccessExpression=function(e){return 199===e.kind},e.isCallExpression=function(e){return 200===e.kind},e.isNewExpression=function(e){return 201===e.kind},e.isTaggedTemplateExpression=function(e){return 202===e.kind},e.isTypeAssertionExpression=function(e){return 203===e.kind},e.isParenthesizedExpression=function(e){return 204===e.kind},e.isFunctionExpression=function(e){return 205===e.kind},e.isArrowFunction=function(e){return 206===e.kind},e.isDeleteExpression=function(e){return 207===e.kind},e.isTypeOfExpression=function(e){return 208===e.kind},e.isVoidExpression=function(e){return 209===e.kind},e.isAwaitExpression=function(e){return 210===e.kind},e.isPrefixUnaryExpression=function(e){return 211===e.kind},e.isPostfixUnaryExpression=function(e){return 212===e.kind},e.isBinaryExpression=function(e){return 213===e.kind},e.isConditionalExpression=function(e){return 214===e.kind},e.isTemplateExpression=function(e){return 215===e.kind},e.isYieldExpression=function(e){return 216===e.kind},e.isSpreadElement=function(e){return 217===e.kind},e.isClassExpression=function(e){return 218===e.kind},e.isOmittedExpression=function(e){return 219===e.kind},e.isExpressionWithTypeArguments=function(e){return 220===e.kind},e.isAsExpression=function(e){return 221===e.kind},e.isNonNullExpression=function(e){return 222===e.kind},e.isMetaProperty=function(e){return 223===e.kind},e.isSyntheticExpression=function(e){return 224===e.kind},e.isPartiallyEmittedExpression=function(e){return 331===e.kind},e.isCommaListExpression=function(e){return 332===e.kind},e.isTemplateSpan=function(e){return 225===e.kind},e.isSemicolonClassElement=function(e){return 226===e.kind},e.isBlock=function(e){return 227===e.kind},e.isVariableStatement=function(e){return 229===e.kind},e.isEmptyStatement=function(e){return 228===e.kind},e.isExpressionStatement=function(e){return 230===e.kind},e.isIfStatement=function(e){return 231===e.kind},e.isDoStatement=function(e){return 232===e.kind},e.isWhileStatement=function(e){return 233===e.kind},e.isForStatement=function(e){return 234===e.kind},e.isForInStatement=function(e){return 235===e.kind},e.isForOfStatement=function(e){return 236===e.kind},e.isContinueStatement=function(e){return 237===e.kind},e.isBreakStatement=function(e){return 238===e.kind},e.isReturnStatement=function(e){return 239===e.kind},e.isWithStatement=function(e){return 240===e.kind},e.isSwitchStatement=function(e){return 241===e.kind},e.isLabeledStatement=function(e){return 242===e.kind},e.isThrowStatement=function(e){return 243===e.kind},e.isTryStatement=function(e){return 244===e.kind},e.isDebuggerStatement=function(e){return 245===e.kind},e.isVariableDeclaration=function(e){return 246===e.kind},e.isVariableDeclarationList=function(e){return 247===e.kind},e.isFunctionDeclaration=function(e){return 248===e.kind},e.isClassDeclaration=function(e){return 249===e.kind},e.isInterfaceDeclaration=function(e){return 250===e.kind},e.isTypeAliasDeclaration=function(e){return 251===e.kind},e.isEnumDeclaration=function(e){return 252===e.kind},e.isModuleDeclaration=function(e){return 253===e.kind},e.isModuleBlock=function(e){return 254===e.kind},e.isCaseBlock=function(e){return 255===e.kind},e.isNamespaceExportDeclaration=function(e){return 256===e.kind},e.isImportEqualsDeclaration=function(e){return 257===e.kind},e.isImportDeclaration=function(e){return 258===e.kind},e.isImportClause=function(e){return 259===e.kind},e.isNamespaceImport=function(e){return 260===e.kind},e.isNamespaceExport=function(e){return 266===e.kind},e.isNamedImports=function(e){return 261===e.kind},e.isImportSpecifier=function(e){return 262===e.kind},e.isExportAssignment=function(e){return 263===e.kind},e.isExportDeclaration=function(e){return 264===e.kind},e.isNamedExports=function(e){return 265===e.kind},e.isExportSpecifier=function(e){return 267===e.kind},e.isMissingDeclaration=function(e){return 268===e.kind},e.isNotEmittedStatement=function(e){return 330===e.kind},e.isSyntheticReference=function(e){return 335===e.kind},e.isMergeDeclarationMarker=function(e){return 333===e.kind},e.isEndOfDeclarationMarker=function(e){return 334===e.kind},e.isExternalModuleReference=function(e){return 269===e.kind},e.isJsxElement=function(e){return 270===e.kind},e.isJsxSelfClosingElement=function(e){return 271===e.kind},e.isJsxOpeningElement=function(e){return 272===e.kind},e.isJsxClosingElement=function(e){return 273===e.kind},e.isJsxFragment=function(e){return 274===e.kind},e.isJsxOpeningFragment=function(e){return 275===e.kind},e.isJsxClosingFragment=function(e){return 276===e.kind},e.isJsxAttribute=function(e){return 277===e.kind},e.isJsxAttributes=function(e){return 278===e.kind},e.isJsxSpreadAttribute=function(e){return 279===e.kind},e.isJsxExpression=function(e){return 280===e.kind},e.isCaseClause=function(e){return 281===e.kind},e.isDefaultClause=function(e){return 282===e.kind},e.isHeritageClause=function(e){return 283===e.kind},e.isCatchClause=function(e){return 284===e.kind},e.isPropertyAssignment=function(e){return 285===e.kind},e.isShorthandPropertyAssignment=function(e){return 286===e.kind},e.isSpreadAssignment=function(e){return 287===e.kind},e.isEnumMember=function(e){return 288===e.kind},e.isUnparsedPrepend=function(e){return 290===e.kind},e.isSourceFile=function(e){return 294===e.kind},e.isBundle=function(e){return 295===e.kind},e.isUnparsedSource=function(e){return 296===e.kind},e.isJSDocTypeExpression=function(e){return 298===e.kind},e.isJSDocAllType=function(e){return 299===e.kind},e.isJSDocUnknownType=function(e){return 300===e.kind},e.isJSDocNullableType=function(e){return 301===e.kind},e.isJSDocNonNullableType=function(e){return 302===e.kind},e.isJSDocOptionalType=function(e){return 303===e.kind},e.isJSDocFunctionType=function(e){return 304===e.kind},e.isJSDocVariadicType=function(e){return 305===e.kind},e.isJSDocNamepathType=function(e){return 306===e.kind},e.isJSDoc=function(e){return 307===e.kind},e.isJSDocTypeLiteral=function(e){return 308===e.kind},e.isJSDocSignature=function(e){return 309===e.kind},e.isJSDocAugmentsTag=function(e){return 311===e.kind},e.isJSDocAuthorTag=function(e){return 313===e.kind},e.isJSDocClassTag=function(e){return 315===e.kind},e.isJSDocCallbackTag=function(e){return 320===e.kind},e.isJSDocPublicTag=function(e){return 316===e.kind},e.isJSDocPrivateTag=function(e){return 317===e.kind},e.isJSDocProtectedTag=function(e){return 318===e.kind},e.isJSDocReadonlyTag=function(e){return 319===e.kind},e.isJSDocDeprecatedTag=function(e){return 314===e.kind},e.isJSDocEnumTag=function(e){return 321===e.kind},e.isJSDocParameterTag=function(e){return 322===e.kind},e.isJSDocReturnTag=function(e){return 323===e.kind},e.isJSDocThisTag=function(e){return 324===e.kind},e.isJSDocTypeTag=function(e){return 325===e.kind},e.isJSDocTemplateTag=function(e){return 326===e.kind},e.isJSDocTypedefTag=function(e){return 327===e.kind},e.isJSDocUnknownTag=function(e){return 310===e.kind},e.isJSDocPropertyTag=function(e){return 328===e.kind},e.isJSDocImplementsTag=function(e){return 312===e.kind},e.isSyntaxList=function(e){return 329===e.kind}}(l||(l={})),function(e){function t(t,n,r,i){if(e.isComputedPropertyName(r))return e.setTextRange(t.createElementAccessExpression(n,r.expression),i);var a=e.setTextRange(e.isIdentifierOrPrivateIdentifier(r)?t.createPropertyAccessExpression(n,r):t.createElementAccessExpression(n,r),r);return e.getOrCreateEmitNode(a).flags|=64,a}function n(t,n){var r=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(r,e.getParseTreeNode(n)),r}function r(t,i,a){if(e.isQualifiedName(i)){var o=r(t,i.left,a),s=t.createIdentifier(e.idText(i.right));return s.escapedText=i.right.escapedText,t.createPropertyAccessExpression(o,s)}return n(e.idText(i),a)}function a(e,t,i,a){return t?r(e,t,a):e.createPropertyAccessExpression(n(i,a),"createElement")}function o(t,n){return e.isIdentifier(n)?t.createStringLiteralFromNode(n):e.isComputedPropertyName(n)?e.setParent(e.setTextRange(t.cloneNode(n.expression),n.expression),n.expression.parent):e.setParent(e.setTextRange(t.cloneNode(n),n),n.parent)}function s(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function c(e,t){switch(void 0===t&&(t=15),e.kind){case 204:return 0!=(1&t);case 203:case 221:return 0!=(2&t);case 222:return 0!=(4&t);case 331:return 0!=(8&t)}return!1}function u(e,t){for(void 0===t&&(t=15);c(e,t);)e=e.expression;return e}function l(t){return e.setStartsOnNewLine(t,!0)}function _(t){var n=e.getOriginalNode(t,e.isSourceFile),r=n&&n.emitNode;return r&&r.externalHelpersModuleName}function d(t,n,r,i,a){if(r.importHelpers&&e.isEffectiveExternalModule(n,r)){var o=_(n);if(o)return o;var s=e.getEmitModuleKind(r),c=(i||r.esModuleInterop&&a)&&s!==e.ModuleKind.System&&s0)if(o||_.push(t.createNull()),s.length>1)for(var d=0,f=s;d0)if(c.length>1)for(var f=0,p=c;f=e.ModuleKind.ES2015&&u<=e.ModuleKind.ESNext){var l=e.getEmitHelpers(r);if(l){for(var _=[],f=0,p=l;ft.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})});break;case"jsx":case"jsxfrag":return;default:e.Debug.fail("Unhandled pragma kind")}})}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(t||(t={})),function(e){e[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse"}(n||(n={})),e.parseBaseNodeFactory={createBaseSourceFileNode:function(t){return new(s||(s=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(a||(a=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(o||(o=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(i||(i=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(t){return new(r||(r=e.objectAllocator.getNodeConstructor()))(t,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=d,e.forEachChild=f,e.forEachChildRecursively=function(t,n,r){for(var i=[t];i.length;){var a=i.pop(),o=c(a,s(a));if(o)return o}return;function s(e){var t=[];return f(e,n,n),t;function n(e){t.unshift(e)}}function c(t,a){for(var o=0,s=a;o=0;u--){var l=c[u];if(_=n(l,t)){if("skip"===_)continue;return _}i.push(l)}}else{var _;if(i.push(c),_=n(c,t)){if("skip"===_)continue;return _}}}}},e.createSourceFile=function(t,n,r,i,a){var o;return void 0===i&&(i=!1),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(t),o=c.parseSourceFile(t,n,r,void 0,i,100===r?6:a),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),o},e.parseIsolatedEntityName=function(e,t){return c.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return c.parseJsonText(e,t)},e.isExternalModule=p,e.updateSourceFile=function(e,t,n,r){void 0===r&&(r=!1);var i=u.updateSourceFile(e,t,n,r);return i.flags|=3145728&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,n){var r=c.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&c.fixupParentReferences(r.jsDoc),r},e.parseJSDocTypeExpressionForTests=function(e,t,n){return c.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)},function(t){var n,r,i,a,o,s=e.createScanner(99,!0);function c(e){return T++,e}var l,_,y,v,b,x,D,C,k,E,T,w,A,N,P,O,F,I=e.createNodeFactory(11,{createBaseSourceFileNode:function(e){return c(new o(e,0,0))},createBaseIdentifierNode:function(e){return c(new i(e,0,0))},createBasePrivateIdentifierNode:function(e){return c(new a(e,0,0))},createBaseTokenNode:function(e){return c(new r(e,0,0))},createBaseNode:function(e){return c(new n(e,0,0))}}),M=!0,L=!1;function R(t,n,r,i,a){void 0===r&&(r=2),void 0===a&&(a=!1),B(t,n,r,i,6),_=F,ve();var o,s,c=pe();if(1===me())o=Be([],c,c),s=Me();else{var u=void 0;switch(me()){case 22:u=dr();break;case 109:case 94:case 103:u=Me();break;case 40:u=Te(function(){return 8===ve()&&58!==ve()})?zn():pr();break;case 8:case 10:if(Te(function(){return 58!==ve()})){u=kt();break}default:u=pr()}var l=I.createExpressionStatement(u);je(l,c),o=Be([l],c),s=Ie(1,e.Diagnostics.Unexpected_token)}var d=G(t,2,6,!1,o,s,_);a&&H(d),d.nodeCount=T,d.identifierCount=N,d.identifiers=w,d.parseDiagnostics=e.attachFileToDiagnostics(D,d),C&&(d.jsDocDiagnostics=e.attachFileToDiagnostics(C,d));var f=d;return j(),f}function B(t,c,u,d,f){switch(n=e.objectAllocator.getNodeConstructor(),r=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getPrivateIdentifierConstructor(),o=e.objectAllocator.getSourceFileConstructor(),l=e.normalizePath(t),y=c,v=u,k=d,b=f,x=e.getLanguageVariant(f),D=[],P=0,w=new e.Map,A=new e.Map,N=0,T=0,_=0,M=!0,b){case 1:case 2:F=131072;break;case 6:F=33685504;break;default:F=0}L=!1,s.setText(y),s.setOnError(fe),s.setScriptTarget(v),s.setLanguageVariant(x)}function j(){s.clearCommentDirectives(),s.setText(""),s.setOnError(void 0),y=void 0,v=void 0,k=void 0,b=void 0,x=void 0,_=0,D=void 0,C=void 0,P=0,w=void 0,O=void 0,M=!0}function U(t,n,r){var i=g(l);i&&(F|=8388608),_=F,ve();var a=_t(0,Ar);e.Debug.assert(1===me());var o=K(Me()),c=G(l,t,r,i,a,o,_);return m(c,y),h(c,function(t,n,r){D.push(e.createDetachedDiagnostic(l,t,n,r))}),c.commentDirectives=s.getCommentDirectives(),c.nodeCount=T,c.identifierCount=N,c.identifiers=w,c.parseDiagnostics=e.attachFileToDiagnostics(D,c),C&&(c.jsDocDiagnostics=e.attachFileToDiagnostics(C,c)),n&&H(c),c}function z(e,t){return t?K(e):e}t.parseSourceFile=function(t,n,r,i,a,o){if(void 0===a&&(a=!1),6===(o=e.ensureScriptKind(t,o))){var s=R(t,n,r,i,a);return e.convertToObjectWorker(s,s.parseDiagnostics,!1,void 0,void 0),s.referencedFiles=e.emptyArray,s.typeReferenceDirectives=e.emptyArray,s.libReferenceDirectives=e.emptyArray,s.amdDependencies=e.emptyArray,s.hasNoDefaultLib=!1,s.pragmas=e.emptyMap,s}B(t,n,r,i,o);var c=U(r,a,o);return j(),c},t.parseIsolatedEntityName=function(e,t){B("",e,t,void 0,1),ve();var n=bt(!0),r=1===me()&&!D.length;return j(),r?n:void 0},t.parseJsonText=R;var J,V,W,q=!1;function K(t){e.Debug.assert(!t.jsDoc);var n=e.mapDefined(e.getJSDocCommentRanges(t,y),function(e){return W.parseJSDocComment(t,e.pos,e.end-e.pos)});return n.length&&(t.jsDoc=n),q&&(q=!1,t.flags|=134217728),t}function H(t){e.setParentRecursive(t,!0)}function G(t,n,r,i,a,o,c){var l=I.createSourceFile(a,o,c);return e.setTextRangePosWidth(l,0,y.length),function(t){t.externalModuleIndicator=e.forEach(t.statements,bi)||function(e){return 2097152&e.flags?xi(e):void 0}(t)}(l),!i&&p(l)&&8388608&l.transformFlags&&(l=function(t){var n=k,r=u.createSyntaxCursor(t);k={currentNode:function(e){var t=r.currentNode(e);return M&&t&&f(t)&&(t.intersectsChange=!0),t}};var i=[],a=D;D=[];for(var o=0,c=p(t.statements,0),l=function(){var n=t.statements[o],r=t.statements[c];e.addRange(i,t.statements,o,c),o=g(t.statements,c);var u=e.findIndex(a,function(e){return e.start>=n.pos}),l=u>=0?e.findIndex(a,function(e){return e.start>=r.pos},u):-1;u>=0&&e.addRange(D,a,u,l>=0?l:void 0),Ee(function(){var e=F;for(F|=32768,s.setTextPos(r.pos),ve();1!==me();){var n=s.getStartPos(),a=dt(0,Ar);if(i.push(a),n===s.getStartPos()&&ve(),o>=0){var c=t.statements[o];if(a.end===c.pos)break;a.end>c.pos&&(o=g(t.statements,o+1))}}F=e},2),c=o>=0?p(t.statements,o):-1};-1!==c;)l();if(o>=0){var _=t.statements[o];e.addRange(i,t.statements,o);var d=e.findIndex(a,function(e){return e.start>=_.pos});d>=0&&e.addRange(D,a,d)}return k=n,I.updateSourceFile(t,e.setTextRange(I.createNodeArray(i),t.statements));function f(e){return!(32768&e.flags||!(8388608&e.transformFlags))}function p(e,t){for(var n=t;n115}function Ne(){return 78===me()||(124!==me()||!ae())&&(130!==me()||!ce())&&me()>115}function Pe(t,n,r){return void 0===r&&(r=!0),me()===t?(r&&ve(),!0):(n?ue(n):ue(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function Oe(e){return me()===e&&(ve(),!0)}function Fe(e){if(me()===e)return Me()}function Ie(t,n,r){return Fe(t)||Ue(t,!1,n||e.Diagnostics._0_expected,r||e.tokenToString(t))}function Me(){var e=pe(),t=me();return ve(),je(I.createToken(t),e)}function Le(){return 26===me()||19===me()||1===me()||s.hasPrecedingLineBreak()}function Re(){return Le()?(26===me()&&ve(),!0):Pe(26)}function Be(t,n,r,i){var a=I.createNodeArray(t,i);return e.setTextRangePosEnd(a,n,null!=r?r:s.getStartPos()),a}function je(t,n,r){return e.setTextRangePosEnd(t,n,null!=r?r:s.getStartPos()),F&&(t.flags|=F),L&&(L=!1,t.flags|=65536),t}function Ue(t,n,r,i){n?le(s.getStartPos(),0,r,i):r&&ue(r,i);var a=pe();return je(78===t?I.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?I.createTemplateLiteralLikeNode(t,"","",void 0):8===t?I.createNumericLiteral("",void 0):10===t?I.createStringLiteral("",void 0):268===t?I.createMissingDeclaration():I.createToken(t),a)}function ze(e){var t=w.get(e);return void 0===t&&w.set(e,t=e),t}function Je(t,n,r){if(N++,t){var i=pe(),a=me(),o=ze(s.getTokenValue());return he(),je(I.createIdentifier(o,void 0,a),i)}if(79===me())return ue(r||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Je(!0);var c=1===me(),u=s.isReservedWord(),l=s.getTokenText();return Ue(78,c,n||(u?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected),l)}function Ve(e){return Je(Ae(),void 0,e)}function We(e,t){return Je(Ne(),e,t)}function qe(t){return Je(e.tokenIsIdentifierOrKeyword(me()),t)}function Ke(){return e.tokenIsIdentifierOrKeyword(me())||10===me()||8===me()}function He(){return function(e){if(10===me()||8===me()){var t=kt();return t.text=ze(t.text),t}return 22===me()?function(){var e=pe();Pe(22);var t=ne(wn);return Pe(23),je(I.createComputedPropertyName(t),e)}():79===me()?Ge():qe()}()}function Ge(){var e,t,n=pe(),r=I.createPrivateIdentifier((e=s.getTokenText(),void 0===(t=A.get(e))&&A.set(e,t=e),t));return ve(),je(r,n)}function Qe(e){return me()===e&&we(Ye)}function Xe(){return ve(),!s.hasPrecedingLineBreak()&&et()}function Ye(){switch(me()){case 84:return 91===ve();case 92:return ve(),87===me()?Te(tt):148===me()?Te($e):Ze();case 87:return tt();case 123:case 134:case 145:return ve(),et();default:return Xe()}}function Ze(){return 41!==me()&&126!==me()&&18!==me()&&et()}function $e(){return ve(),Ze()}function et(){return 22===me()||18===me()||41===me()||25===me()||Ke()}function tt(){return ve(),83===me()||97===me()||117===me()||125===me()&&Te(Dr)||129===me()&&Te(Cr)}function nt(t,n){if(ft(t))return!0;switch(t){case 0:case 1:case 3:return!(26===me()&&n)&&Tr();case 2:return 81===me()||87===me();case 4:return Te(Gt);case 5:return Te(Gr)||26===me()&&!n;case 6:return 22===me()||Ke();case 12:switch(me()){case 22:case 41:case 25:case 24:return!0;default:return Ke()}case 18:return Ke();case 9:return 22===me()||25===me()||Ke();case 7:return 18===me()?Te(rt):n?Ne()&&!st():En()&&!st();case 8:return Lr();case 10:return 27===me()||25===me()||Lr();case 19:return Ne();case 15:switch(me()){case 27:case 24:return!0}case 11:return 25===me()||Tn();case 16:return Lt(!1);case 17:return Lt(!0);case 20:case 21:return 27===me()||fn();case 22:return ci();case 23:return e.tokenIsIdentifierOrKeyword(me());case 13:return e.tokenIsIdentifierOrKeyword(me())||18===me();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function rt(){if(e.Debug.assert(18===me()),19===ve()){var t=ve();return 27===t||18===t||93===t||116===t}return!0}function it(){return ve(),Ne()}function at(){return ve(),e.tokenIsIdentifierOrKeyword(me())}function ot(){return ve(),e.tokenIsIdentifierOrKeywordOrGreaterThan(me())}function st(){return(116===me()||93===me())&&Te(ct)}function ct(){return ve(),Tn()}function ut(){return ve(),fn()}function lt(e){if(1===me())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===me();case 3:return 19===me()||81===me()||87===me();case 7:return 18===me()||93===me()||116===me();case 8:return!!Le()||!!Bn(me())||38===me();case 19:return 31===me()||20===me()||18===me()||93===me()||116===me();case 11:return 21===me()||26===me();case 15:case 21:case 10:return 23===me();case 17:case 16:case 18:return 21===me()||23===me();case 20:return 27!==me();case 22:return 18===me()||19===me();case 13:return 31===me()||43===me();case 14:return 29===me()&&Te(pi);default:return!1}}function _t(e,t){var n=P;P|=1<=0)}function ht(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function yt(){var e=Be([],pe());return e.isMissingList=!0,e}function vt(e,t,n,r){if(Pe(n)){var i=mt(e,t);return Pe(r),i}return yt()}function bt(e,t){for(var n=pe(),r=e?qe(t):We(t),i=pe();Oe(24);){if(29===me()){r.jsdocDotPos=i;break}i=pe(),r=je(I.createQualifiedName(r,Dt(e,!1)),n)}return r}function xt(e,t){return je(I.createQualifiedName(e,t),e.pos)}function Dt(t,n){if(s.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(me())&&Te(xr))return Ue(78,!0,e.Diagnostics.Identifier_expected);if(79===me()){var r=Ge();return n?r:Ue(78,!0,e.Diagnostics.Identifier_expected)}return t?qe():We()}function Ct(t){var n=pe();return je(I.createTemplateExpression(function(t){t&&De();var n=Et(me());return e.Debug.assert(15===n.kind,"Template head has wrong token kind"),n}(t),function(e){var t,n=pe(),r=[];do{t=St(e),r.push(t)}while(16===t.literal.kind);return Be(r,n)}(t)),n)}function St(t){var n=pe();return je(I.createTemplateSpan(ne(wn),function(t){return 19===me()?(function(e){E=s.reScanTemplateToken(e)}(t),n=Et(me()),e.Debug.assert(16===n.kind||17===n.kind,"Template fragment has wrong token kind"),n):Ie(17,e.Diagnostics._0_expected,e.tokenToString(19));var n}(t)),n)}function kt(){return Et(me())}function Et(t){var n=pe(),r=e.isTemplateLiteralKind(t)?I.createTemplateLiteralLikeNode(t,s.getTokenValue(),function(e){var t=14===e||17===e,n=s.getTokenText();return n.substring(1,n.length-(s.isUnterminated()?0:t?1:2))}(t),2048&s.getTokenFlags()):8===t?I.createNumericLiteral(s.getTokenValue(),s.getNumericLiteralFlags()):10===t?I.createStringLiteral(s.getTokenValue(),void 0,s.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?I.createLiteralLikeNode(t,s.getTokenValue()):e.Debug.fail();return s.hasExtendedUnicodeEscape()&&(r.hasExtendedUnicodeEscape=!0),s.isUnterminated()&&(r.isUnterminated=!0),ve(),je(r,n)}function Tt(){return bt(!0,e.Diagnostics.Type_expected)}function wt(){if(!s.hasPrecedingLineBreak()&&29===Ce())return vt(20,Cn,29,31)}function At(){var e=pe();return je(I.createTypeReferenceNode(Tt(),wt()),e)}function Nt(t){switch(t.kind){case 172:return e.nodeIsMissing(t.typeName);case 173:case 174:return!!t.parameters.isMissingList||Nt(t.type);case 185:return Nt(t.type);default:return!1}}function Pt(){var e=pe();return ve(),je(I.createThisTypeNode(),e)}function Ot(){var e,t=pe();return 107!==me()&&102!==me()||(e=qe(),Pe(58)),je(I.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Ft(),void 0),t)}function Ft(){s.setInJSDocType(!0);var e=pe();if(Oe(138)){var t=I.createJSDocNamepathType(void 0);e:for(;;)switch(me()){case 19:case 1:case 27:case 5:break e;default:be()}return s.setInJSDocType(!1),je(t,e)}var n=Oe(25),r=xn();return s.setInJSDocType(!1),n&&(r=je(I.createJSDocVariadicType(r),e)),62===me()?(ve(),je(I.createJSDocOptionalType(r),e)):r}function It(){var e,t,n=pe(),r=We();Oe(93)&&(fn()||!Tn()?e=Cn():t=Jn());var i=Oe(62)?Cn():void 0,a=I.createTypeParameterDeclaration(r,e,i);return a.expression=t,je(a,n)}function Mt(){if(29===me())return vt(19,It,29,31)}function Lt(t){return 25===me()||Lr()||e.isModifierKind(me())||59===me()||fn(!t)}function Rt(){return jt(!0)}function Bt(){return jt(!1)}function jt(t){var n=pe(),r=ge();if(107===me())return z(je(I.createParameterDeclaration(void 0,void 0,void 0,Je(!0),void 0,kn(),void 0),n),r);var i=t?re(Yr):Yr(),a=M;M=!1;var o=$r(),s=z(je(I.createParameterDeclaration(i,o,Fe(25),function(t){var n=Rr(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(n)&&!e.some(t)&&e.isModifierKind(me())&&ve(),n}(o),Fe(57),kn(),An()),n),r);return M=a,s}function Ut(t,n){if(function(t,n){return 38===t?(Pe(t),!0):!!Oe(58)||!(!n||38!==me())&&(ue(e.Diagnostics._0_expected,e.tokenToString(58)),ve(),!0)}(t,n))return xn()}function zt(e){var t=ae(),n=ce();Y(!!(1&e)),$(!!(2&e));var r=32&e?mt(17,Ot):mt(16,n?Rt:Bt);return Y(t),$(n),r}function Jt(e){if(!Pe(20))return yt();var t=zt(e);return Pe(21),t}function Vt(){Oe(27)||Re()}function Wt(e){var t=pe(),n=ge();169===e&&Pe(102);var r=Mt(),i=Jt(4),a=Ut(58,!0);return Vt(),z(je(168===e?I.createCallSignature(r,i,a):I.createConstructSignature(r,i,a),t),n)}function qt(){return 22===me()&&Te(Kt)}function Kt(){if(ve(),25===me()||23===me())return!0;if(e.isModifierKind(me())){if(ve(),Ne())return!0}else{if(!Ne())return!1;ve()}return 58===me()||27===me()||57===me()&&(ve(),58===me()||27===me()||23===me())}function Ht(e,t,n,r){var i=vt(16,Bt,22,23),a=kn();return Vt(),z(je(I.createIndexSignature(n,r,i,a),e),t)}function Gt(){if(20===me()||29===me())return!0;for(var t=!1;e.isModifierKind(me());)t=!0,ve();return 22===me()||(Ke()&&(t=!0,ve()),!!t&&(20===me()||29===me()||57===me()||58===me()||27===me()||Le()))}function Qt(){if(20===me()||29===me())return Wt(168);if(102===me()&&Te(Xt))return Wt(169);var e=pe(),t=ge(),n=$r();return qt()?Ht(e,t,void 0,n):function(e,t,n){var r,i=He(),a=Fe(57);if(20===me()||29===me()){var o=Mt(),s=Jt(4),c=Ut(58,!0);r=I.createMethodSignature(n,i,a,o,s,c)}else c=kn(),r=I.createPropertySignature(n,i,a,c),62===me()&&(r.initializer=An());return Vt(),z(je(r,e),t)}(e,t,n)}function Xt(){return ve(),20===me()||29===me()}function Yt(){return 24===ve()}function Zt(){switch(ve()){case 20:case 29:case 24:return!0}return!1}function $t(){var e;return Pe(18)?(e=_t(4,Qt),Pe(19)):e=yt(),e}function en(){return ve(),39===me()||40===me()?141===ve():(141===me()&&ve(),22===me()&&it()&&100===ve())}function tn(){var t=pe();if(Oe(25))return je(I.createRestTypeNode(Cn()),t);var n=Cn();if(e.isJSDocNullableType(n)&&n.pos===n.type.pos){var r=I.createOptionalTypeNode(n.type);return e.setTextRange(r,n),r.flags=n.flags,r}return n}function nn(){return 58===ve()||57===me()&&58===ve()}function rn(){return 25===me()?e.tokenIsIdentifierOrKeyword(ve())&&nn():e.tokenIsIdentifierOrKeyword(me())&&nn()}function an(){if(Te(rn)){var e=pe(),t=ge(),n=Fe(25),r=qe(),i=Fe(57);Pe(58);var a=tn();return z(je(I.createNamedTupleMember(n,r,i,a),e),t)}return tn()}function on(){var e=pe(),t=ge(),n=Oe(102),r=Mt(),i=Jt(4),a=Ut(38,!1);return z(je(n?I.createConstructorTypeNode(r,i,a):I.createFunctionTypeNode(r,i,a),e),t)}function sn(){var e=Me();return 24===me()?void 0:e}function cn(e){var t=pe();e&&ve();var n=109===me()||94===me()||103===me()?Me():Et(me());return e&&(n=je(I.createPrefixUnaryExpression(40,n),t)),je(I.createLiteralTypeNode(n),t)}function un(){return ve(),99===me()}function ln(){_|=1048576;var e=pe(),t=Oe(111);Pe(99),Pe(20);var n=Cn();Pe(21);var r=Oe(24)?Tt():void 0,i=wt();return je(I.createImportTypeNode(n,r,i,t),e)}function _n(){return ve(),8===me()||9===me()}function dn(){switch(me()){case 128:case 151:case 146:case 143:case 154:case 147:case 131:case 149:case 140:case 144:return we(sn)||At();case 65:s.reScanAsteriskEqualsToken();case 41:return n=pe(),ve(),je(I.createJSDocAllType(),n);case 60:s.reScanQuestionToken();case 57:return function(){var e=pe();return ve(),27===me()||19===me()||21===me()||31===me()||62===me()||51===me()?je(I.createJSDocUnknownType(),e):je(I.createJSDocNullableType(Cn()),e)}();case 97:return function(){var e=pe(),t=ge();if(Te(fi)){ve();var n=Jt(36),r=Ut(58,!1);return z(je(I.createJSDocFunctionType(n,r),e),t)}return je(I.createTypeReferenceNode(qe(),void 0),e)}();case 53:return function(){var e=pe();return ve(),je(I.createJSDocNonNullableType(dn()),e)}();case 14:case 10:case 8:case 9:case 109:case 94:case 103:return cn();case 40:return Te(_n)?cn(!0):At();case 113:return Me();case 107:var e=Pt();return 136!==me()||s.hasPrecedingLineBreak()?e:(t=e,ve(),je(I.createTypePredicateNode(void 0,t,Cn()),t.pos));case 111:return Te(un)?ln():function(){var e=pe();return Pe(111),je(I.createTypeQueryNode(bt(!0)),e)}();case 18:return Te(en)?function(){var e,t=pe();Pe(18),141!==me()&&39!==me()&&40!==me()||141!==(e=Me()).kind&&Pe(141),Pe(22);var n,r=function(){var e=pe(),t=qe();Pe(100);var n=Cn();return je(I.createTypeParameterDeclaration(t,n,void 0),e)}();Pe(23),57!==me()&&39!==me()&&40!==me()||57!==(n=Me()).kind&&Pe(57);var i=kn();return Re(),Pe(19),je(I.createMappedTypeNode(e,r,n,i),t)}():function(){var e=pe();return je(I.createTypeLiteralNode($t()),e)}();case 22:return function(){var e=pe();return je(I.createTupleTypeNode(vt(21,an,22,23)),e)}();case 20:return function(){var e=pe();Pe(20);var t=Cn();return Pe(21),je(I.createParenthesizedType(t),e)}();case 99:return ln();case 127:return Te(xr)?function(){var e=pe(),t=Ie(127),n=107===me()?Pt():We(),r=Oe(136)?Cn():void 0;return je(I.createTypePredicateNode(t,n,r),e)}():At();default:return At()}var t,n}function fn(e){switch(me()){case 128:case 151:case 146:case 143:case 154:case 131:case 141:case 147:case 150:case 113:case 149:case 103:case 107:case 111:case 140:case 18:case 22:case 29:case 51:case 50:case 102:case 10:case 8:case 9:case 109:case 94:case 144:case 41:case 57:case 53:case 25:case 135:case 99:case 127:return!0;case 97:return!e;case 40:return!e&&Te(_n);case 20:return!e&&Te(pn);default:return Ne()}}function pn(){return ve(),21===me()||Lt(!1)||fn()}function gn(){var e,t=me();switch(t){case 137:case 150:case 141:return function(e){var t=pe();return Pe(e),je(I.createTypeOperatorNode(e,gn()),t)}(t);case 135:return e=pe(),Pe(135),je(I.createInferTypeNode(function(){var e=pe();return je(I.createTypeParameterDeclaration(We(),void 0,void 0),e)}()),e)}return function(){for(var e=pe(),t=dn();!s.hasPrecedingLineBreak();)switch(me()){case 53:ve(),t=je(I.createJSDocNonNullableType(t),e);break;case 57:if(Te(ut))return t;ve(),t=je(I.createJSDocNullableType(t),e);break;case 22:if(Pe(22),fn()){var n=Cn();Pe(23),t=je(I.createIndexedAccessTypeNode(t,n),e)}else Pe(23),t=je(I.createArrayTypeNode(t),e);break;default:return t}return t}()}function mn(t){if(vn()){var n=on();return de(n,e.isFunctionTypeNode(n)?t?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),n}}function hn(e,t,n){var r=pe(),i=51===e,a=Oe(e),o=a&&mn(i)||t();if(me()===e||a){for(var s=[o];Oe(e);)s.push(mn(i)||t());o=je(n(Be(s,r)),r)}return o}function yn(){return hn(50,gn,I.createIntersectionTypeNode)}function vn(){return 29===me()||!(20!==me()||!Te(bn))||102===me()}function bn(){if(ve(),21===me()||25===me())return!0;if(function(){if(e.isModifierKind(me())&&$r(),Ne()||107===me())return ve(),!0;if(22===me()||18===me()){var t=D.length;return Rr(),t===D.length}return!1}()){if(58===me()||27===me()||57===me()||62===me())return!0;if(21===me()&&(ve(),38===me()))return!0}return!1}function xn(){var e=pe(),t=Ne()&&we(Dn),n=Cn();return t?je(I.createTypePredicateNode(void 0,t,n),e):n}function Dn(){var e=We();if(136===me()&&!s.hasPrecedingLineBreak())return ve(),e}function Cn(){return ee(40960,Sn)}function Sn(e){if(vn())return on();var t=pe(),n=hn(51,yn,I.createUnionTypeNode);if(!e&&!s.hasPrecedingLineBreak()&&Oe(93)){var r=Sn(!0);Pe(57);var i=Sn();Pe(58);var a=Sn();return je(I.createConditionalTypeNode(n,r,i,a),t)}return n}function kn(){return Oe(58)?Cn():void 0}function En(){switch(me()){case 107:case 105:case 103:case 109:case 94:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 97:case 83:case 102:case 43:case 67:case 78:return!0;case 99:return Te(Zt);default:return Ne()}}function Tn(){if(En())return!0;switch(me()){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 45:case 46:case 29:case 130:case 124:case 79:return!0;default:return!(oe()&&100===me()||!(e.getBinaryOperatorPrecedence(me())>0))||Ne()}}function wn(){var e=se();e&&Z(!1);for(var t,n=pe(),r=Nn();t=Fe(27);)r=Un(r,t,Nn(),n);return e&&Z(!0),r}function An(){return Oe(62)?Nn():void 0}function Nn(){if(124===me()&&(ae()||Te(Sr)))return function(){var e=pe();return ve(),s.hasPrecedingLineBreak()||41!==me()&&!Tn()?je(I.createYieldExpression(void 0,void 0),e):je(I.createYieldExpression(Fe(41),Nn()),e)}();var t=function(){var e=20===me()||29===me()||129===me()?Te(On):38===me()?1:0;if(0!==e)return 1===e?Mn(!0):we(Fn)}()||function(){if(129===me()&&1===Te(In)){var e=pe(),t=ei();return Pn(e,Rn(0),t)}}();if(t)return t;var n=pe(),r=Rn(0);return 78===r.kind&&38===me()?Pn(n,r,void 0):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(xe())?Un(r,Me(),Nn(),n):function(t,n){var r,i=Fe(57);return i?je(I.createConditionalExpression(t,i,ee(20480,Nn),r=Ie(58),e.nodeIsPresent(r)?Nn():Ue(78,!1,e.Diagnostics._0_expected,e.tokenToString(58))),n):t}(r,n)}function Pn(t,n,r){e.Debug.assert(38===me(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=I.createParameterDeclaration(void 0,void 0,void 0,n,void 0,void 0,void 0);je(i,n.pos);var a=Be([i],i.pos,i.end),o=Ie(38),s=Ln(!!r);return K(je(I.createArrowFunction(r,void 0,a,void 0,o,s),t))}function On(){if(129===me()){if(ve(),s.hasPrecedingLineBreak())return 0;if(20!==me()&&29!==me())return 0}var t=me(),n=ve();if(20===t){if(21===n)switch(ve()){case 38:case 58:case 18:return 1;default:return 0}if(22===n||18===n)return 2;if(25===n)return 1;if(e.isModifierKind(n)&&129!==n&&Te(it))return 1;if(!Ne()&&107!==n)return 0;switch(ve()){case 58:return 1;case 57:return ve(),58===me()||27===me()||62===me()||21===me()?1:0;case 27:case 62:case 21:return 2}return 0}return e.Debug.assert(29===t),Ne()?1===x?Te(function(){var e=ve();if(93===e)switch(ve()){case 62:case 31:return!1;default:return!0}else if(27===e)return!0;return!1})?1:0:2:0}function Fn(){var t=s.getTokenPos();if(!(null==O?void 0:O.has(t))){var n=Mn(!1);return n||(O||(O=new e.Set)).add(t),n}}function In(){if(129===me()){if(ve(),s.hasPrecedingLineBreak()||38===me())return 0;var e=Rn(0);if(!s.hasPrecedingLineBreak()&&78===e.kind&&38===me())return 1}return 0}function Mn(t){var n,r=pe(),i=ge(),a=ei(),o=e.some(a,e.isAsyncModifier)?2:0,s=Mt();if(Pe(20)){if(n=zt(o),!Pe(21)&&!t)return}else{if(!t)return;n=yt()}var c=Ut(58,!1);if(!c||t||!Nt(c)){var u=c&&e.isJSDocFunctionType(c);if(t||38===me()||!u&&18===me()){var l=me(),_=Ie(38),d=38===l||18===l?Ln(e.some(a,e.isAsyncModifier)):We();return z(je(I.createArrowFunction(a,s,n,c,_,d),r),i)}}}function Ln(e){if(18===me())return yr(e?2:0);if(26!==me()&&97!==me()&&83!==me()&&Tr()&&(18===me()||97===me()||83===me()||59===me()||!Tn()))return yr(16|(e?2:0));var t=M;M=!1;var n=e?re(Nn):ee(32768,Nn);return M=t,n}function Rn(e){var t=pe();return jn(e,Jn(),t)}function Bn(e){return 100===e||155===e}function jn(t,n,r){for(;;){xe();var i=e.getBinaryOperatorPrecedence(me());if(!(42===me()?i>=t:i>t))break;if(100===me()&&oe())break;if(126===me()){if(s.hasPrecedingLineBreak())break;ve(),a=n,o=Cn(),n=je(I.createAsExpression(a,o),a.pos)}else n=Un(n,Me(),Rn(i),r)}var a,o;return n}function Un(e,t,n,r){return je(I.createBinaryExpression(e,t,n),r)}function zn(){var e=pe();return je(I.createPrefixUnaryExpression(me(),ye(Vn)),e)}function Jn(){if(function(){switch(me()){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 130:return!1;case 29:if(1!==x)return!1;default:return!0}}()){var t=pe(),n=Wn();return 42===me()?jn(e.getBinaryOperatorPrecedence(me()),n,t):n}var r=me(),i=Vn();if(42===me()){t=e.skipTrivia(y,i.pos);var a=i.end;203===i.kind?_e(t,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):_e(t,a,e.Diagnostics.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,e.tokenToString(r))}return i}function Vn(){switch(me()){case 39:case 40:case 54:case 53:return zn();case 88:return e=pe(),je(I.createDeleteExpression(ye(Vn)),e);case 111:return function(){var e=pe();return je(I.createTypeOfExpression(ye(Vn)),e)}();case 113:return function(){var e=pe();return je(I.createVoidExpression(ye(Vn)),e)}();case 29:return function(){var e=pe();Pe(29);var t=Cn();Pe(31);var n=Vn();return je(I.createTypeAssertion(t,n),e)}();case 130:if(130===me()&&(ce()||Te(Sr)))return function(){var e=pe();return je(I.createAwaitExpression(ye(Vn)),e)}();default:return Wn()}var e}function Wn(){if(45===me()||46===me()){var t=pe();return je(I.createPrefixUnaryExpression(me(),ye(qn)),t)}if(1===x&&29===me()&&Te(ot))return Hn(!0);var n=qn();if(e.Debug.assert(e.isLeftHandSideExpression(n)),(45===me()||46===me())&&!s.hasPrecedingLineBreak()){var r=me();return ve(),je(I.createPostfixUnaryExpression(n,r),n.pos)}return n}function qn(){var t,n=pe();return 99===me()?Te(Xt)?(_|=1048576,t=Me()):Te(Yt)?(ve(),ve(),t=je(I.createMetaProperty(99,qe()),n),_|=2097152):t=Kn():t=105===me()?function(){var t=pe(),n=Me();if(29===me()){var r=pe();void 0!==we(cr)&&_e(r,pe(),e.Diagnostics.super_may_not_use_type_arguments)}return 20===me()||24===me()||22===me()?n:(Ie(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),je(I.createPropertyAccessExpression(n,Dt(!0,!0)),t))}():Kn(),or(n,t)}function Kn(){return rr(pe(),ur(),!0)}function Hn(t,n){var r,i=pe(),a=function(e){var t=pe();if(Pe(29),31===me())return ke(),je(I.createJsxOpeningFragment(),t);var n,r=Xn(),i=si(),a=function(){var e=pe();return je(I.createJsxAttributes(_t(13,Zn)),e)}();return 31===me()?(ke(),n=I.createJsxOpeningElement(r,i,a)):(Pe(43),e?Pe(31):(Pe(31,void 0,!1),ke()),n=I.createJsxSelfClosingElement(r,i,a)),je(n,t)}(t);if(272===a.kind){var o=Qn(a),s=function(e){var t=pe();Pe(30);var n=Xn();return e?Pe(31):(Pe(31,void 0,!1),ke()),je(I.createJsxClosingElement(n),t)}(t);S(a.tagName,s.tagName)||de(s,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(y,a.tagName)),r=je(I.createJsxElement(a,o,s),i)}else 275===a.kind?r=je(I.createJsxFragment(a,Qn(a),function(t){var n=pe();return Pe(30),e.tokenIsIdentifierOrKeyword(me())&&de(Xn(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),t?Pe(31):(Pe(31,void 0,!1),ke()),je(I.createJsxJsxClosingFragment(),n)}(t)),i):(e.Debug.assert(271===a.kind),r=a);if(t&&29===me()){var c=void 0===n?r.pos:n,u=we(function(){return Hn(!0,c)});if(u){var l=Ue(27,!1);return e.setTextRangePosWidth(l,u.pos,0),_e(e.skipTrivia(y,c),u.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),je(I.createBinaryExpression(r,l,u),i)}}return r}function Gn(t,n){switch(n){case 1:if(e.isJsxOpeningFragment(t))de(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var r=t.tagName;_e(e.skipTrivia(y,r.pos),r.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(y,t.tagName))}return;case 30:case 7:return;case 11:case 12:return i=pe(),a=I.createJsxText(s.getTokenValue(),12===E),E=s.scanJsxToken(),je(a,i);case 18:return Yn(!1);case 29:return Hn(!1);default:return e.Debug.assertNever(n)}var i,a}function Qn(e){var t=[],n=pe(),r=P;for(P|=16384;;){var i=Gn(e,E=s.reScanJsxToken());if(!i)break;t.push(i)}return P=r,Be(t,n)}function Xn(){var e=pe();Se();for(var t=107===me()?Me():qe();Oe(24);)t=je(I.createPropertyAccessExpression(t,Dt(!0,!1)),e);return t}function Yn(e){var t,n,r=pe();if(Pe(18))return 19!==me()&&(t=Fe(25),n=wn()),e?Pe(19):Pe(19,void 0,!1)&&ke(),je(I.createJsxExpression(t,n),r)}function Zn(){if(18===me())return function(){var e=pe();Pe(18),Pe(25);var t=wn();return Pe(19),je(I.createJsxSpreadAttribute(t),e)}();Se();var e=pe();return je(I.createJsxAttribute(qe(),62!==me()?void 0:10===(E=s.scanJsxAttributeValue())?kt():Yn(!0)),e)}function $n(){return ve(),e.tokenIsIdentifierOrKeyword(me())||22===me()||ir()}function er(t){if(32&t.flags)return!0;if(e.isNonNullExpression(t)){for(var n=t.expression;e.isNonNullExpression(n)&&!(32&n.flags);)n=n.expression;if(32&n.flags){for(;e.isNonNullExpression(t);)t.flags|=32,t=t.expression;return!0}}return!1}function tr(t,n,r){var i=Dt(!0,!0),a=r||er(n),o=a?I.createPropertyAccessChain(n,r,i):I.createPropertyAccessExpression(n,i);return a&&e.isPrivateIdentifier(o.name)&&de(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),je(o,t)}function nr(t,n,r){var i;if(23===me())i=Ue(78,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=ne(wn);e.isStringOrNumericLiteralLike(a)&&(a.text=ze(a.text)),i=a}return Pe(23),je(r||er(n)?I.createElementAccessChain(n,r,i):I.createElementAccessExpression(n,i),t)}function rr(t,n,r){for(;;){var i=void 0,a=!1;if(r&&28===me()&&Te($n)?(i=Ie(28),a=e.tokenIsIdentifierOrKeyword(me())):a=Oe(24),a)n=tr(t,n,i);else if(i||53!==me()||s.hasPrecedingLineBreak())if(!i&&se()||!Oe(22)){if(!ir())return n;n=ar(t,n,i,void 0)}else n=nr(t,n,i);else ve(),n=je(I.createNonNullExpression(n),t)}}function ir(){return 14===me()||15===me()}function ar(e,t,n,r){var i=I.createTaggedTemplateExpression(t,r,14===me()?(De(),kt()):Ct(!0));return(n||32&t.flags)&&(i.flags|=32),i.questionDotToken=n,je(i,e)}function or(t,n){for(;;){n=rr(t,n,!0);var r=Fe(28);if(29===me()||47===me()){var i=we(cr);if(i){if(ir()){n=ar(t,n,r,i);continue}var a=sr();n=je(r||er(n)?I.createCallChain(n,r,i,a):I.createCallExpression(n,i,a),t);continue}}else if(20===me()){a=sr(),n=je(r||er(n)?I.createCallChain(n,r,void 0,a):I.createCallExpression(n,void 0,a),t);continue}if(r){var o=Ue(78,!1,e.Diagnostics.Identifier_expected);n=je(I.createPropertyAccessChain(n,r,o),t)}break}return n}function sr(){Pe(20);var e=mt(11,_r);return Pe(21),e}function cr(){if(29===Ce()){ve();var e=mt(20,Cn);if(Pe(31))return e&&function(){switch(me()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}}()?e:void 0}}function ur(){switch(me()){case 8:case 9:case 10:case 14:return kt();case 107:case 105:case 103:case 109:case 94:return Me();case 20:return function(){var e=pe(),t=ge();Pe(20);var n=ne(wn);return Pe(21),z(je(I.createParenthesizedExpression(n),e),t)}();case 22:return dr();case 18:return pr();case 129:if(!Te(Cr))break;return gr();case 83:return ri(pe(),ge(),void 0,void 0,218);case 97:return gr();case 102:return function(){var t=pe();if(Pe(102),Oe(24)){var n=qe();return je(I.createMetaProperty(102,n),t)}for(var r,i,a=pe(),o=ur();;){o=rr(a,o,!1),r=we(cr),ir()&&(e.Debug.assert(!!r,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=ar(a,o,void 0,r),r=void 0);break}return 20===me()?i=sr():r&&_e(t,s.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),je(I.createNewExpression(o,r,i),t)}();case 43:case 67:if(13===(E=s.reScanSlashToken()))return kt();break;case 15:return Ct(!1)}return We(e.Diagnostics.Expression_expected)}function lr(){return 25===me()?function(){var e=pe();Pe(25);var t=Nn();return je(I.createSpreadElement(t),e)}():27===me()?je(I.createOmittedExpression(),pe()):Nn()}function _r(){return ee(20480,lr)}function dr(){var e=pe();Pe(22);var t=s.hasPrecedingLineBreak(),n=mt(15,lr);return Pe(23),je(I.createArrayLiteralExpression(n,t),e)}function fr(){var e=pe(),t=ge();if(Fe(25)){var n=Nn();return z(je(I.createSpreadAssignment(n),e),t)}var r=Yr(),i=$r();if(Qe(134))return Hr(e,t,r,i,166);if(Qe(145))return Hr(e,t,r,i,167);var a,o=Fe(41),s=Ne(),c=He(),u=Fe(57),l=Fe(53);if(o||20===me()||29===me())return Wr(e,t,r,i,o,c,u,l);if(s&&58!==me()){var _=Fe(62),d=_?ne(Nn):void 0;(a=I.createShorthandPropertyAssignment(c,d)).equalsToken=_}else{Pe(58);var f=ne(Nn);a=I.createPropertyAssignment(c,f)}return a.decorators=r,a.modifiers=i,a.questionToken=u,a.exclamationToken=l,z(je(a,e),t)}function pr(){var t=pe(),n=s.getTokenPos();Pe(18);var r=s.hasPrecedingLineBreak(),i=mt(12,fr,!0);if(!Pe(19)){var a=e.lastOrUndefined(D);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(l,n,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return je(I.createObjectLiteralExpression(i,r),t)}function gr(){var t=se();t&&Z(!1);var n=pe(),r=ge(),i=$r();Pe(97);var a=Fe(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?te(40960,mr):o?te(8192,mr):s?re(mr):mr(),u=Mt(),l=Jt(o|s),_=Ut(58,!1),d=yr(o|s);return t&&Z(!0),z(je(I.createFunctionExpression(i,a,c,u,l,_,d),n),r)}function mr(){return Ae()?Ve():void 0}function hr(t,n){var r=pe(),i=s.getTokenPos();if(Pe(18,n)||t){var a=s.hasPrecedingLineBreak(),o=_t(1,Ar);if(!Pe(19)){var c=e.lastOrUndefined(D);c&&c.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(c,e.createDetachedDiagnostic(l,i,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return je(I.createBlock(o,a),r)}return o=yt(),je(I.createBlock(o,void 0),r)}function yr(e,t){var n=ae();Y(!!(1&e));var r=ce();$(!!(2&e));var i=M;M=!1;var a=se();a&&Z(!1);var o=hr(!!(16&e),t);return a&&Z(!0),M=i,Y(n),$(r),o}function vr(e){var t=pe();Pe(238===e?80:85);var n=Le()?void 0:We();return Re(),je(238===e?I.createBreakStatement(n):I.createContinueStatement(n),t)}function br(){return 81===me()?function(){var e=pe();Pe(81);var t=ne(wn);Pe(58);var n=_t(3,Ar);return je(I.createCaseClause(t,n),e)}():function(){var e=pe();Pe(87),Pe(58);var t=_t(3,Ar);return je(I.createDefaultClause(t),e)}()}function xr(){return ve(),e.tokenIsIdentifierOrKeyword(me())&&!s.hasPrecedingLineBreak()}function Dr(){return ve(),83===me()&&!s.hasPrecedingLineBreak()}function Cr(){return ve(),97===me()&&!s.hasPrecedingLineBreak()}function Sr(){return ve(),(e.tokenIsIdentifierOrKeyword(me())||8===me()||9===me()||10===me())&&!s.hasPrecedingLineBreak()}function kr(){for(;;)switch(me()){case 112:case 118:case 84:case 97:case 83:case 91:return!0;case 117:case 148:return ve(),!s.hasPrecedingLineBreak()&&Ne();case 138:case 139:return ve(),!s.hasPrecedingLineBreak()&&(Ne()||10===me());case 125:case 129:case 133:case 120:case 121:case 122:case 141:if(ve(),s.hasPrecedingLineBreak())return!1;continue;case 153:return ve(),18===me()||78===me()||92===me();case 99:return ve(),10===me()||41===me()||18===me()||e.tokenIsIdentifierOrKeyword(me());case 92:var t=ve();if(148===t&&(t=Te(ve)),62===t||41===t||18===t||87===t||126===t)return!0;continue;case 123:ve();continue;default:return!1}}function Er(){return Te(kr)}function Tr(){switch(me()){case 59:case 26:case 18:case 112:case 118:case 97:case 83:case 91:case 98:case 89:case 114:case 96:case 85:case 80:case 104:case 115:case 106:case 108:case 110:case 86:case 82:case 95:return!0;case 99:return Er()||Te(Zt);case 84:case 92:return Er();case 129:case 133:case 117:case 138:case 139:case 148:case 153:return!0;case 122:case 120:case 121:case 123:case 141:return Er()||!Te(xr);default:return Tn()}}function wr(){return ve(),Ne()||18===me()||22===me()}function Ar(){switch(me()){case 26:return t=pe(),Pe(26),je(I.createEmptyStatement(),t);case 18:return hr(!1);case 112:return Jr(pe(),ge(),void 0,void 0);case 118:if(Te(wr))return Jr(pe(),ge(),void 0,void 0);break;case 97:return Vr(pe(),ge(),void 0,void 0);case 83:return ni(pe(),ge(),void 0,void 0);case 98:return function(){var e=pe();Pe(98),Pe(20);var t=ne(wn);Pe(21);var n=Ar(),r=Oe(90)?Ar():void 0;return je(I.createIfStatement(t,n,r),e)}();case 89:return function(){var e=pe();Pe(89);var t=Ar();Pe(114),Pe(20);var n=ne(wn);return Pe(21),Oe(26),je(I.createDoStatement(t,n),e)}();case 114:return function(){var e=pe();Pe(114),Pe(20);var t=ne(wn);Pe(21);var n=Ar();return je(I.createWhileStatement(t,n),e)}();case 96:return function(){var e=pe();Pe(96);var t,n,r=Fe(130);if(Pe(20),26!==me()&&(t=112===me()||118===me()||84===me()?Ur(!0):te(4096,wn)),r?Pe(155):Oe(155)){var i=ne(Nn);Pe(21),n=I.createForOfStatement(r,t,i,Ar())}else if(Oe(100))i=ne(wn),Pe(21),n=I.createForInStatement(t,i,Ar());else{Pe(26);var a=26!==me()&&21!==me()?ne(wn):void 0;Pe(26);var o=21!==me()?ne(wn):void 0;Pe(21),n=I.createForStatement(t,a,o,Ar())}return je(n,e)}();case 85:return vr(237);case 80:return vr(238);case 104:return function(){var e=pe();Pe(104);var t=Le()?void 0:ne(wn);return Re(),je(I.createReturnStatement(t),e)}();case 115:return function(){var e=pe();Pe(115),Pe(20);var t=ne(wn);Pe(21);var n=te(16777216,Ar);return je(I.createWithStatement(t,n),e)}();case 106:return function(){var e=pe();Pe(106),Pe(20);var t=ne(wn);Pe(21);var n=function(){var e=pe();Pe(18);var t=_t(2,br);return Pe(19),je(I.createCaseBlock(t),e)}();return je(I.createSwitchStatement(t,n),e)}();case 108:return function(){var e=pe();Pe(108);var t=s.hasPrecedingLineBreak()?void 0:ne(wn);return void 0===t&&(N++,t=je(I.createIdentifier(""),pe())),Re(),je(I.createThrowStatement(t),e)}();case 110:case 82:case 95:return function(){var e=pe();Pe(110);var t,n=hr(!1),r=82===me()?function(){var e,t=pe();Pe(82),Oe(20)?(e=jr(),Pe(21)):e=void 0;var n=hr(!1);return je(I.createCatchClause(e,n),t)}():void 0;return r&&95!==me()||(Pe(95),t=hr(!1)),je(I.createTryStatement(n,r,t),e)}();case 86:return function(){var e=pe();return Pe(86),Re(),je(I.createDebuggerStatement(),e)}();case 59:return Pr();case 129:case 117:case 148:case 138:case 139:case 133:case 84:case 91:case 92:case 99:case 120:case 121:case 122:case 125:case 123:case 141:case 153:if(Er())return Pr()}var t;return function(){var t,n=pe(),r=ge(),i=20===me(),a=ne(wn);return e.isIdentifier(a)&&Oe(58)?t=I.createLabeledStatement(a,Ar()):(Re(),t=I.createExpressionStatement(a),i&&(r=!1)),z(je(t,n),r)}()}function Nr(e){return 133===e.kind}function Pr(){var t=e.some(Te(function(){return Yr(),$r()}),Nr);if(t){var n=te(8388608,function(){var e=ft(P);if(e)return pt(e)});if(n)return n}var r=pe(),i=ge(),a=Yr(),o=$r();if(t){for(var s=0,c=o;s=0),e.Debug.assert(t<=a),e.Debug.assert(a<=i.length),d(i,t)){var o,c,u,_=[];return s.scanRange(t+3,r-5,function(){var e,n,r,l,d=1,g=t-Math.max(i.lastIndexOf("\n",t),0)+4;function m(t){e||(e=g),_.push(t),g+=t.length}for(be();L(5););L(4)&&(d=0,g=0);e:for(;;){switch(me()){case 59:0===d||1===d?(p(_),(l=v(g))&&(o?o.push(l):(o=[l],c=l.pos),u=l.end),d=0,e=void 0):m(s.getTokenText());break;case 4:_.push(s.getTokenText()),d=0,g=0;break;case 41:var h=s.getTokenText();1===d||2===d?(d=2,m(h)):(d=1,g+=h.length);break;case 5:var y=s.getTokenText();2===d?_.push(y):void 0!==e&&g+y.length>e&&_.push(y.slice(e-g-1)),g+=y.length;break;case 1:break e;default:d=2,m(s.getTokenText())}be()}return f(_),p(_),n=_.length?_.join(""):void 0,r=o&&Be(o,c,u),je(I.createJSDocComment(n,r),t,a)})}function f(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function p(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function g(){for(;;){if(be(),1===me())return!0;if(5!==me()&&4!==me())return!1}}function m(){if(5!==me()&&4!==me()||!Te(g))for(;5===me()||4===me();)be()}function h(){if((5===me()||4===me())&&Te(g))return"";for(var e=s.hasPrecedingLineBreak(),t=!1,n="";e&&41===me()||5===me()||4===me();)n+=s.getTokenText(),4===me()?(e=!0,t=!0,n=""):41===me()&&(e=!1),be();return t?n:""}function v(t){e.Debug.assert(59===me());var r=s.getTokenPos();be();var i,a=R(void 0),c=h();switch(a.escapedText){case"author":i=function(e,t,n,r){var i=we(function(){return function(){var e=[],t=!1,n=!1,r=s.getToken();e:for(;;){switch(r){case 78:case 5:case 24:case 59:e.push(s.getTokenText());break;case 29:if(t||n)return;t=!0,e.push(s.getTokenText());break;case 31:if(!t||n)return;n=!0,e.push(s.getTokenText()),s.setTextPos(s.getTokenPos()+1);break e;case 4:case 1:break e}r=be()}if(t&&n)return 0===e.length?void 0:e.join("")}()});if(!i){var a=pe();return je(I.createJSDocAuthorTag(t,b(e,a,n,r)),e,a)}var o=i;if(Te(function(){return 4!==ve()})){var c=x(n);c&&(o+=c)}return je(I.createJSDocAuthorTag(t,o),e)}(r,a,t,c);break;case"implements":i=function(e,t,n,r){var i=T(),a=pe();return je(I.createJSDocImplementsTag(t,i,b(e,a,n,r)),e,a)}(r,a,t,c);break;case"augments":case"extends":i=function(e,t,n,r){var i=T(),a=pe();return je(I.createJSDocAugmentsTag(t,i,b(e,a,n,r)),e,a)}(r,a,t,c);break;case"class":case"constructor":i=w(r,I.createJSDocClassTag,a,t,c);break;case"public":i=w(r,I.createJSDocPublicTag,a,t,c);break;case"private":i=w(r,I.createJSDocPrivateTag,a,t,c);break;case"protected":i=w(r,I.createJSDocProtectedTag,a,t,c);break;case"readonly":i=w(r,I.createJSDocReadonlyTag,a,t,c);break;case"deprecated":q=!0,i=w(r,I.createJSDocDeprecatedTag,a,t,c);break;case"this":i=function(e,t,r,i){var a=n(!0);m();var o=pe();return je(I.createJSDocThisTag(t,a,b(e,o,r,i)),e,o)}(r,a,t,c);break;case"enum":i=function(e,t,r,i){var a=n(!0);m();var o=pe();return je(I.createJSDocEnumTag(t,a,b(e,o,r,i)),e,o)}(r,a,t,c);break;case"arg":case"argument":case"param":return k(r,a,2,t);case"return":case"returns":i=function(t,n,r,i){e.some(o,e.isJSDocReturnTag)&&_e(n.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var a=C(),c=pe();return je(I.createJSDocReturnTag(n,a,b(t,c,r,i)),t,c)}(r,a,t,c);break;case"template":i=function(t,r,i,a){var o=18===me()?n():void 0,s=function(){var t,n,r=pe(),i=[];do{m(),i.push((t=pe(),n=R(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),je(I.createTypeParameterDeclaration(n,void 0,void 0),t))),h()}while(L(27));return Be(i,r)}(),c=pe();return je(I.createJSDocTemplateTag(r,o,s,b(t,c,i,a)),t,c)}(r,a,t,c);break;case"type":i=E(r,a,t,c);break;case"typedef":i=function(t,n,r,i){var a,o=C();h();var s=A();m();var c,u=x(r);if(!o||S(o.type)){for(var _=void 0,d=void 0,f=void 0,p=!1;_=we(function(){return O(r)});)if(p=!0,325===_.kind){if(d){ue(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var g=e.lastOrUndefined(D);g&&e.addRelatedInfo(g,e.createDetachedDiagnostic(l,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}d=_}else f=e.append(f,_);if(p){var y=I.createJSDocTypeLiteral(f,o&&177===o.type.kind);c=(o=d&&d.typeExpression&&!S(d.typeExpression.type)?d.typeExpression:je(y,t)).end}}return c=c||void 0!==u?pe():(null!==(a=null!=s?s:o)&&void 0!==a?a:n).end,u||(u=b(t,c,r,i)),je(I.createJSDocTypedefTag(n,o,s,u),t,c)}(r,a,t,c);break;case"callback":i=function(t,n,r,i){var a=A();m();var o=x(r),s=function(t){for(var n,r,i=pe();n=we(function(){return F(4,t)});)r=e.append(r,n);return Be(r||[],i)}(r),c=we(function(){if(L(59)){var e=v(r);if(e&&323===e.kind)return e}}),u=je(I.createJSDocSignature(void 0,s,c),t),l=pe();return o||(o=b(t,l,r,i)),je(I.createJSDocCallbackTag(n,u,a,o),t,l)}(r,a,t,c);break;default:i=function(e,t,n,r){var i=pe();return je(I.createJSDocUnknownTag(t,b(e,i,n,r)),e,i)}(r,a,t,c)}return i}function b(e,t,n,r){return r||(n+=t-e),x(n,r.slice(n))}function x(t,n){var r,i=[],a=0;function o(e){r||(r=t),i.push(e),t+=e.length}void 0!==n&&(""!==n&&o(n),a=1);var c=me();e:for(;;){switch(c){case 4:a=0,i.push(s.getTokenText()),t=0;break;case 59:if(3===a){i.push(s.getTokenText());break}s.setTextPos(s.getTextPos()-1);case 1:break e;case 5:if(2===a||3===a)o(s.getTokenText());else{var u=s.getTokenText();void 0!==r&&t+u.length>r&&i.push(u.slice(r-t)),t+=u.length}break;case 18:a=2,Te(function(){return 59===be()&&e.tokenIsIdentifierOrKeyword(be())&&"link"===s.getTokenText()})&&(o(s.getTokenText()),be(),o(s.getTokenText()),be()),o(s.getTokenText());break;case 61:a=3===a?2:3,o(s.getTokenText());break;case 41:if(0===a){a=1,t+=1;break}default:3!==a&&(a=2),o(s.getTokenText())}c=be()}return f(i),p(i),0===i.length?void 0:i.join("")}function C(){return h(),18===me()?n():void 0}function S(t){switch(t.kind){case 144:return!0;case 177:return S(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function k(t,n,r,i){var a=C(),o=!a;h();var c=function(){var t=L(22);t&&m();var n=L(61),r=function(){var e=R();for(Oe(22)&&Pe(23);Oe(24);){var t=R();Oe(22)&&Pe(23),e=xt(e,t)}return e}();return n&&(function(e){if(61===me())return t=pe(),n=me(),be(),je(I.createToken(n),t);var t,n}()||Ue(61,!1,e.Diagnostics._0_expected,e.tokenToString(61))),t&&(m(),Fe(62)&&wn(),Pe(23)),{name:r,isBracketed:t}}(),u=c.name,l=c.isBracketed;m(),o&&(a=C());var _=x(i+s.getStartPos()-t),d=4!==r&&function(t,n,r,i){if(t&&S(t.type)){for(var a=pe(),o=void 0,s=void 0;o=we(function(){return F(r,i,n)});)322!==o.kind&&328!==o.kind||(s=e.append(s,o));if(s){var c=je(I.createJSDocTypeLiteral(s,177===t.type.kind),a);return je(I.createJSDocTypeExpression(c),a)}}}(a,u,r,i);return d&&(a=d,o=!0),je(1===r?I.createJSDocPropertyTag(n,u,l,a,o,_):I.createJSDocParameterTag(n,u,l,a,o,_),t)}function E(t,r,i,a){e.some(o,e.isJSDocTypeTag)&&_e(r.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var c=n(!0),u=pe(),l=void 0!==i&&void 0!==a?b(t,u,i,a):void 0;return je(I.createJSDocTypeTag(r,c,l),t,u)}function T(){var e=Oe(18),t=pe(),n=function(){for(var e=pe(),t=R();Oe(24);){var n=R();t=je(I.createPropertyAccessExpression(t,n),e)}return t}(),r=si(),i=je(I.createExpressionWithTypeArguments(n,r),t);return e&&Pe(19),i}function w(e,t,n,r,i){var a=pe();return je(t(n,b(e,a,r,i)),e,a)}function A(t){var n=s.getTokenPos();if(e.tokenIsIdentifierOrKeyword(me())){var r=R();if(Oe(24)){var i=A(!0);return je(I.createModuleDeclaration(void 0,void 0,r,i,t?4:void 0),n)}return t&&(r.isInJSDocNamespace=!0),r}}function P(t,n){for(;!e.isIdentifier(t)||!e.isIdentifier(n);){if(e.isIdentifier(t)||e.isIdentifier(n)||t.right.escapedText!==n.right.escapedText)return!1;t=t.left,n=n.left}return t.escapedText===n.escapedText}function O(e){return F(1,e)}function F(t,n,r){for(var i=!0,a=!1;;)switch(be()){case 59:if(i){var o=M(t,n);return!(o&&(322===o.kind||328===o.kind)&&4!==t&&r&&(e.isIdentifier(o.name)||!P(r,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 78:i=!1;break;case 1:return!1}}function M(t,n){e.Debug.assert(59===me());var r=s.getStartPos();be();var i,a=R();switch(m(),a.escapedText){case"type":return 1===t&&E(r,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&k(r,a,t,n)}function L(e){return me()===e&&(be(),!0)}function R(t){if(!e.tokenIsIdentifierOrKeyword(me()))return Ue(78,!t,t||e.Diagnostics.Identifier_expected);N++;var n=s.getTokenPos(),r=s.getTextPos(),i=me(),a=ze(s.getTokenValue()),o=je(I.createIdentifier(a,void 0,i),n,r);return be(),o}}t.parseJSDocTypeExpressionForTests=function(t,r,i){B("file.js",t,99,void 0,1),s.setText(t,r,i),E=s.scan();var a=n(),o=G("file.js",99,1,!1,[],I.createToken(1),0),c=e.attachFileToDiagnostics(D,o);return C&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(C,o)),j(),a?{jsDocTypeExpression:a,diagnostics:c}:void 0},t.parseJSDocTypeExpression=n,t.parseIsolatedJSDocComment=function(t,n,r){B("",t,99,void 0,1);var i=te(4194304,function(){return a(n,r)}),o=e.attachFileToDiagnostics(D,{languageVariant:0,text:t});return j(),i?{jsDoc:i,diagnostics:o}:void 0},t.parseJSDocComment=function(t,n,r){var i=E,o=D.length,s=L,c=te(4194304,function(){return a(n,r)});return e.setParent(c,t),131072&F&&(C||(C=[]),C.push.apply(C,D)),E=i,D.length=o,L=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(r||(r={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(i||(i={}))}(W=t.JSDocParser||(t.JSDocParser={}))}(c||(c={})),function(t){function n(t,n,i,o,s,c){return void(n?l(t):u(t));function u(t){var n="";if(c&&r(t)&&(n=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),e.setTextRangePosEnd(t,t.pos+i,t.end+i),c&&r(t)&&e.Debug.assert(n===s.substring(t.pos,t.end)),f(t,u,l),e.hasJSDocNodes(t))for(var _=0,d=t.jsDoc;_=n,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end);var o=Math.min(t.pos,i),s=t.end>=r?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}function a(t,n){if(n){var r=t.pos,i=function(t){e.Debug.assert(t.pos>=r),r=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;a=i.pos&&(i=a),nn),!0)}),r){var a=function(t){for(;;){var n=e.getLastChild(t);if(!n)return t;t=n}}(r);a.pos>i.pos&&(i=a)}return i}function s(t,n,r,i){var a=t.text;if(r&&(e.Debug.assert(a.length-r.span.length+r.newLength===n.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,r.span.start),s=n.substr(0,r.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(r.span),a.length),u=n.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),n.length);e.Debug.assert(c===u)}}function u(t){var n=t.statements,r=0;e.Debug.assert(r=t.pos&&e=t.pos&&e0&&i<=1;i++){var a=o(t,r);e.Debug.assert(a.pos<=r),r=Math.max(0,a.pos-1)}var s=e.createTextSpanFromBounds(r,e.textSpanEnd(n.span));return e.createTextChangeRange(s,n.newLength+(n.span.start-r))}(t,l);s(t,r,m,_),e.Debug.assert(m.span.start<=l.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(l.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(l)));var h=e.textChangeRangeNewSpan(m).length-m.span.length;!function(t,r,o,s,c,u,l,_){return void d(t);function d(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)n(t,!1,c,u,l,_);else{var g=t.end;if(g>=r){if(t.intersectsChange=!0,t._children=void 0,i(t,r,o,s,c),f(t,d,p),e.hasJSDocNodes(t))for(var m=0,h=t.jsDoc;mo)n(t,!0,c,u,l,_);else{var a=t.end;if(a>=r){t.intersectsChange=!0,t._children=void 0,i(t,r,o,s,c);for(var f=0,p=t;fi){h();var m={range:{pos:p.pos+a,end:p.end+a},type:g};u=e.append(u,m),c&&e.Debug.assert(o.substring(p.pos,p.end)===s.substring(m.range.pos,m.range.end))}}return h(),u;function h(){l||(l=!0,u?n&&u.push.apply(u,n):u=n)}}(t.commentDirectives,y.commentDirectives,m.span.start,e.textSpanEnd(m.span),h,p,r,_),y},t.createSyntaxCursor=u,function(e){e[e.Value=-1]="Value"}(l||(l={}))}(u||(u={})),e.isDeclarationFileName=g,e.processCommentPragmas=m,e.processPragmasIntoFields=h;var y=new e.Map;function v(e){if(y.has(e))return y.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return y.set(e,t),t}var b=/^\/\/\/\s*<(\S+)\s.*?\/>/im,x=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function D(t,n,r){var i=2===n.kind&&b.exec(r);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,u=o.args;c=n.length)break;var o=a;if(34===n.charCodeAt(o)){for(a++;a32;)a++;i.push(n.substring(o,a))}}c(i)}else s.push(n)}}function m(t,n,r,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[n])?(a[i.name]=void 0,n++):"boolean"===i.type?"false"===s?(a[i.name]=!1,n++):("true"===s&&n++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&n++);else if(t[n]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(r.optionTypeMismatchDiagnostic,i.name,R(i))),"null"!==t[n])switch(i.type){case"number":a[i.name]=parseInt(t[n]),n++;break;case"boolean":var s;a[i.name]="false"!==(s=t[n]),"false"!==s&&"true"!==s||n++;break;case"string":a[i.name]=t[n]||"",n++;break;case"list":var c=d(i,t[n],o);a[i.name]=c||[],c&&n++;break;default:a[i.name]=_(i,t[n],o),n++}else a[i.name]=void 0,n++;return n}function h(e,t){return y(s,e,t)}function y(e,t,n){void 0===n&&(n=!1),t=t.toLowerCase();var r=e(),i=r.optionsNameMap;if(n){var a=r.shortOptionNames.get(t);void 0!==a&&(t=a)}return i.get(t)}e.libs=r.map(function(e){return e[0]}),e.libMap=new e.Map(r),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_UseFsEvents_UseFsEventsOnParentDirectory},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Generates_a_CPU_profile},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us}],e.optionDeclarations=i(e.commonOptionsWithBuild,[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing},{name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT},{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,esnext:e.ModuleKind.ESNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:new e.Map(e.getEntries({preserve:1,"react-native":3,react:2})),affectsSourceFile:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files,transpileOptionValue:void 0},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation,transpileOptionValue:void 0},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_file_to_store_incremental_compilation_information,transpileOptionValue:void 0},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs,transpileOptionValue:void 0},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule,transpileOptionValue:!0},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime,transpileOptionValue:void 0},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts,transpileOptionValue:!0},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files,transpileOptionValue:!0},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_solution_searching_for_this_project},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_loading_referenced_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported,transpileOptionValue:void 0},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files,transpileOptionValue:void 0},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_class_fields_with_Define_instead_of_Set},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}]),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsSemanticDiagnostics}),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsEmit}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics}),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter(function(t){return e.hasProperty(t,"transpileOptionValue")}),e.buildOpts=i(e.commonOptionsWithBuild,[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],e.createOptionNameMap=o,e.getOptionsNameMap=s,e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=c,e.createCompilerDiagnosticForInvalidCustomType=u,e.parseCustomTypeOption=_,e.parseListTypeOption=d,e.parseCommandLineWorker=g,e.compilerOptionsDidYouMeanDiagnostics={getOptionsNameMap:s,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=function(t,n){return g(e.compilerOptionsDidYouMeanDiagnostics,t,n)},e.getOptionFromName=h;var v={getOptionsNameMap:function(){return n||(n=o(e.buildOpts))},optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function b(t,n){var r=e.parseJsonText(t,n);return{config:M(r,r.parseDiagnostics),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function x(t,n){var r=D(t,n);return e.isString(r)?e.parseJsonText(t,r):{parseDiagnostics:[r]}}function D(t,n){var r;try{r=n(t)}catch(i){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,i.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):r}function C(t){return e.arrayToMap(t,f)}e.parseBuildCommand=function(t){var n=g(v,t),r=n.watchOptions,i=n.fileNames,a=n.errors,o=n.options;return 0===i.length&&i.push("."),o.clean&&o.force&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:r,projects:i,errors:a}},e.getDiagnosticText=function(t){for(var n=[],r=1;r=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,i(s,[l]).join(" -> "))),{raw:t||M(n,c)};var _=t?function(t,n,r,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=ie(t.compilerOptions,r,a,i),c=oe(t.typeAcquisition||t.typingOptions,r,a,i),u=function(e,t,n){return se(F(),e,t,void 0,P,n)}(t.watchOptions,r,a);if(t.compileOnSave=function(t,n,r){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=ce(e.compileOnSaveCommandLineOption,t.compileOnSave,n,r);return"boolean"==typeof i&&i}(t,r,a),t.extends)if(e.isString(t.extends)){var l=i?Q(i,r):r;o=ne(t.extends,n,l,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,watchOptions:u,typeAcquisition:c,extendedConfigPath:o}}(t,r,a,o,c):function(t,n,r,i,a){var o,s,c,u,l=re(i),_={onSetValidOptionKeyValueInParent:function(t,n,a){var u;switch(t){case"compilerOptions":u=l;break;case"watchOptions":u=c||(c={});break;case"typeAcquisition":u=o||(o=ae(i));break;case"typingOptions":u=s||(s=ae(i));break;default:e.Debug.fail("Unknown option")}u[n.name]=ue(n,r,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,l){switch(o){case"extends":var _=i?Q(i,r):r;return void(u=ne(c,n,_,a,function(n,r){return e.createDiagnosticForNodeInSourceFile(t,l,n,r)}))}},onSetUnknownOptionKeyValueInRoot:function(n,r,i,o){"excludes"===n&&a.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},d=L(t,a,!0,(void 0===N&&(N={name:void 0,type:"object",elementOptions:C([{name:"compilerOptions",type:"object",elementOptions:O(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:F(),extraKeyDiagnostics:P},{name:"typingOptions",type:"object",elementOptions:I(),extraKeyDiagnostics:k},{name:"typeAcquisition",type:"object",elementOptions:I(),extraKeyDiagnostics:k},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])}),N),_);return o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:ae(i)),{raw:d,options:l,watchOptions:c,typeAcquisition:o,extendedConfigPath:u}}(n,r,a,o,c);if(_.extendedConfigPath){s=s.concat([l]);var d=function(t,n,r,i,a,o,s){var c,u,l,_,d=r.useCaseSensitiveFileNames?n:e.toFileNameLowerCase(n);if(s&&(u=s.get(d)))l=u.extendedResult,_=u.extendedConfig;else{if(!(l=x(n,function(e){return r.readFile(e)})).parseDiagnostics.length){var f=e.getDirectoryPath(n);if(ee(_=te(void 0,l,r,f,e.getBaseFileName(n),a,o,s))){var p=e.convertToRelativePath(f,i,e.identity),g=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(p,t)},m=function(t){h[t]&&(h[t]=e.map(h[t],g))},h=_.raw;m("include"),m("exclude"),m("files")}}s&&s.set(d,{extendedResult:l,extendedConfig:_})}if(t&&(t.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(c=t.extendedSourceFiles).push.apply(c,l.extendedSourceFiles)),!l.parseDiagnostics.length)return _;o.push.apply(o,l.parseDiagnostics)}(n,_.extendedConfigPath,r,a,s,c,u);if(d&&ee(d)){var f=d.raw,p=_.raw,g=function(e){var t=p[e]||f[e];t&&(p[e]=t)};g("include"),g("exclude"),g("files"),void 0===p.compileOnSave&&(p.compileOnSave=f.compileOnSave),_.options=e.assign({},d.options,_.options),_.watchOptions=_.watchOptions&&d.watchOptions?e.assign({},d.watchOptions,_.watchOptions):_.watchOptions||d.watchOptions}}return _}function ne(t,n,r,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,r);return n.fileExists(o)||e.endsWith(o,".json")||n.fileExists(o+=".json")?o:void i.push(a(e.Diagnostics.File_0_not_found,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(r,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},n,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,t))}function re(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function ie(t,n,r,i){var a=re(i);return se(O(),t,n,a,e.compilerOptionsDidYouMeanDiagnostics,r),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function ae(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function oe(e,t,n,r){var i=ae(r),a=c(e);return se(I(),a,t,i,k,n),i}function se(t,n,r,i,a,o){if(n){for(var s in n){var c=t.get(s);c?(i||(i={}))[c.name]=ce(c,n[s],r,o):o.push(p(s,a,e.createCompilerDiagnostic))}return i}}function ce(t,n,r,i){if(B(t,n)){var a=t.type;return"list"===a&&e.isArray(n)?function(t,n,r,i){return e.filter(e.map(n,function(e){return ce(t.element,e,r,i)}),function(e){return!!e})}(t,n,r,i):e.isString(a)?le(t,r,n):_e(t,n,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,R(t)))}function ue(t,n,r){if(!G(r)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(r,function(e){return ue(i.element,n,e)}),function(e){return!!e}):r}return e.isString(t.type)?le(t,n,r):t.type.get(e.isString(r)?r.toLowerCase():r)}}function le(t,n,r){return t.isFilePath&&""===(r=e.getNormalizedAbsolutePath(r,n))&&(r="."),r}function _e(e,t,n){if(!G(t)){var r=t.toLowerCase(),i=e.type.get(r);if(void 0!==i)return i;n.push(u(e))}}function de(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.convertToObject=M,e.convertToObjectWorker=L,e.convertToTSConfig=function(t,n,r){var i=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),o=e.map(e.filter(t.fileNames,t.configFileSpecs&&t.configFileSpecs.validatedIncludeSpecs?function(t,n,r,i){if(!n)return function(e){return!0};var a=e.getFileMatcherPatterns(t,r,n,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,i.useCaseSensitiveFileNames),s=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,i.useCaseSensitiveFileNames);return s?o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)}:o?function(e){return o.test(e)}:function(e){return!0}}(n,t.configFileSpecs.validatedIncludeSpecs,t.configFileSpecs.validatedExcludeSpecs,r):function(e){return!0}),function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(n,r.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),i)}),s=V(t.options,{configFilePath:e.getNormalizedAbsolutePath(n,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),c=t.watchOptions&&W(t.watchOptions,E());return a(a({compilerOptions:a(a({},j(s)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:c&&j(c),references:e.map(t.projectReferences,function(e){return a(a({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})}),files:e.length(o)?o:void 0},t.configFileSpecs?{include:U(t.configFileSpecs.validatedIncludeSpecs),exclude:t.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.generateTSConfig=function(t,n,r){var i=V(e.extend(t,e.defaultInitCompilerOptions));return function(){for(var t=e.createMultiMap(),c=0,u=e.optionDeclarations;c0)for(var b=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var r=d.filter(function(t){return e.endsWith(t,".json")}),a=e.map(e.getRegularExpressionsForWildcards(r,n,"files"),function(e){return"^"+e+"$"});o=a?a.map(function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)}):e.emptyArray}if(-1!==e.findIndex(o,function(e){return e.test(t)})){var _=s(t);c.has(_)||l.has(_)||l.set(_,t)}return"continue"}if(function(t,n,r,i,a){for(var o=e.getExtensionPriority(t,i),s=e.adjustExtensionPriority(o,i),c=0;ci&&(i=u),1===i)return i}return i}break;case 254:var l=0;return e.forEachChild(t,function(t){var r=o(t,n);switch(r){case 0:return;case 2:return void(l=2);case 1:return l=1,!0;default:e.Debug.assertNever(r)}}),l;case 253:return r(t,n);case 78:if(t.isInJSDocNamespace)return 0}return 1}(t,n);return n.set(i,a),a}function s(t,n){for(var r=t.propertyName||t.name,i=t.parent;i;){if(e.isBlock(i)||e.isModuleBlock(i)||e.isSourceFile(i)){for(var a=void 0,s=0,c=i.statements;sa)&&(a=l),1===a)return a}}if(void 0!==a)return a}i=i.parent}return 1}function c(t){return e.Debug.attachFlowNodeDebugInfo(t),t}(n=e.ModuleInstanceState||(e.ModuleInstanceState={}))[n.NonInstantiated=0]="NonInstantiated",n[n.Instantiated=1]="Instantiated",n[n.ConstEnumOnly=2]="ConstEnumOnly",e.getModuleInstanceState=r,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(t||(t={}));var u=function(){var t,n,o,s,u,f,p,g,m,h,y,v,b,x,D,C,S,k,E,T,w,A,N,P,O=0,F={flags:1},I={flags:1};function M(n,r,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(n)||t,n,r,i,a,o)}return function(r,i){t=r,o=e.getEmitScriptTarget(n=i),A=function(t,n){return!(!e.getStrictOptionValue(n,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,i),P=new e.Set,O=0,N=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(F),e.Debug.attachFlowNodeDebugInfo(I),t.locals||(Fe(t),t.symbolCount=O,t.classifiableNames=P,function(){if(m){for(var n=u,r=g,i=p,a=s,o=y,l=0,d=m;l=229&&t.kind<=245&&!n.allowUnreachableCode&&(t.flowNode=y),t.kind){case 233:!function(e){var t=fe(e,Z()),n=Y(),r=Y();te(t,y),y=t,_e(e.expression,n,r),y=oe(n),de(e.statement,r,t),te(t,y),y=oe(r)}(t);break;case 232:!function(e){var t=Z(),n=fe(e,Y()),r=Y();te(t,y),y=t,de(e.statement,r,n),te(n,y),y=oe(n),_e(e.expression,t,r),y=oe(r)}(t);break;case 234:!function(e){var t=fe(e,Z()),n=Y(),r=Y();Fe(e.initializer),te(t,y),y=t,_e(e.condition,n,r),y=oe(n),de(e.statement,r,t),Fe(e.incrementor),te(t,y),y=oe(r)}(t);break;case 235:case 236:!function(e){var t=fe(e,Z()),n=Y();Fe(e.expression),te(t,y),y=t,236===e.kind&&Fe(e.awaitModifier),te(n,y),Fe(e.initializer),247!==e.initializer.kind&&me(e.initializer),de(e.statement,n,t),te(t,y),y=oe(n)}(t);break;case 231:!function(e){var t=Y(),n=Y(),r=Y();_e(e.expression,t,n),y=oe(t),Fe(e.thenStatement),te(r,y),y=oe(n),Fe(e.elseStatement),te(r,y),y=oe(r)}(t);break;case 239:case 243:!function(e){Fe(e.expression),239===e.kind&&(T=!0,x&&te(x,y)),y=F}(t);break;case 238:case 237:!function(e){if(Fe(e.label),e.label){var t=function(e){for(var t=E;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,pe(e,t.breakTarget,t.continueTarget))}else pe(e,v,b)}(t);break;case 244:!function(t){var n=x,r=S,i=Y(),a=Y(),o=Y();if(t.finallyBlock&&(x=a),te(o,y),S=o,Fe(t.tryBlock),te(i,y),t.catchClause&&(y=oe(o),te(o=Y(),y),S=o,Fe(t.catchClause),te(i,y)),x=n,S=r,t.finallyBlock){var s=Y();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),y=s,Fe(t.finallyBlock),1&y.flags?y=F:(x&&a.antecedents&&te(x,$(s,a.antecedents,y)),S&&o.antecedents&&te(S,$(s,o.antecedents,y)),y=i.antecedents?$(s,i.antecedents,y):F)}else y=oe(i)}(t);break;case 241:!function(t){var n=Y();Fe(t.expression);var r=v,i=k;v=n,k=y,Fe(t.caseBlock),te(n,y);var a=e.forEach(t.caseBlock.clauses,function(e){return 282===e.kind});t.possiblyExhaustive=!a&&!n.antecedents,a||te(n,re(k,t,0,0)),v=r,k=i,y=oe(n)}(t);break;case 255:!function(e){for(var t=e.clauses,r=K(e.parent.expression),i=F,a=0;a=0;)switch(t=n.expr[r],n.state[r]){case 0:e.setParent(t,s);var i=A;Le(t);var a=s;s=t,u(1,i,a);break;case 1:if(55===(c=t.operatorToken.kind)||56===c||60===c||e.isLogicalOrCoalescingAssignmentOperator(c)){if(ue(t)){var o=Y();he(t,o,o),y=oe(o)}else he(t,D,C);l()}else u(2),_(t.left);break;case 2:u(3),_(t.operatorToken);break;case 3:u(4),_(t.right);break;case 4:var c;e.isAssignmentOperator(c=t.operatorToken.kind)&&!e.isAssignmentTarget(t)&&(me(t.left),62===c&&199===t.left.kind&&X(t.left.expression)&&(y=ie(256,y,t))),l();break;default:return e.Debug.fail("Invalid state "+n.state[r]+" for bindBinaryExpressionFlow")}function u(e,t,i){n.state[r]=e,void 0!==t&&(n.inStrictMode[r]=t),void 0!==i&&(n.parent[r]=i)}function l(){void 0!==n.inStrictMode[r]&&(A=n.inStrictMode[r],s=n.parent[r]),r--}function _(t){t&&e.isBinaryExpression(t)?(r++,n.expr[r]=t,n.state[r]=0,n.inStrictMode[r]=void 0,n.parent[r]=void 0):Fe(t)}}(t);break;case 207:!function(e){W(e),198===e.expression.kind&&me(e.expression)}(t);break;case 214:!function(e){var t=Y(),n=Y(),r=Y();_e(e.condition,t,n),y=oe(t),Fe(e.questionToken),Fe(e.whenTrue),te(r,y),y=oe(n),Fe(e.colonToken),Fe(e.whenFalse),te(r,y),y=oe(r)}(t);break;case 246:!function(t){W(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&ye(t)}(t);break;case 198:case 199:!function(t){e.isOptionalChain(t)?xe(t):W(t)}(t);break;case 200:!function(t){if(e.isOptionalChain(t))xe(t);else{var n=e.skipParentheses(t.expression);205===n.kind||206===n.kind?(V(t.typeArguments),V(t.arguments),Fe(t.expression)):(W(t),105===t.expression.kind&&(y=ae(y,t)))}if(198===t.expression.kind){var r=t.expression;e.isIdentifier(r.name)&&X(r.expression)&&e.isPushOrUnshiftIdentifier(r.name)&&(y=ie(256,y,t))}}(t);break;case 222:!function(t){e.isOptionalChain(t)?xe(t):W(t)}(t);break;case 327:case 320:case 321:!function(t){e.setParent(t.tagName,t),321!==t.kind&&t.fullName&&(e.setParent(t.fullName,t),e.setParentRecursive(t.fullName,!1))}(t);break;case 294:J(t.statements),Fe(t.endOfFileToken);break;case 227:case 254:J(t.statements);break;default:W(t)}Ie(t)}function K(t){switch(t.kind){case 78:case 107:case 198:case 199:return G(t);case 200:return function(e){if(e.arguments)for(var t=0,n=e.arguments;t155){var r=s;s=t;var i=De(t);0===i?q(t):function(t,n){var r=u,i=f,a=p;if(1&n?(206!==t.kind&&(f=u),u=p=t,32&n&&(u.locals=e.createSymbolTable()),Ce(u)):2&n&&((p=t).locals=void 0),4&n){var o=y,s=v,l=b,_=x,d=S,g=E,m=T,D=16&n&&!e.hasSyntacticModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);D||(y=c({flags:2}),144&n&&(y.node=t)),x=D||165===t.kind||e.isInJSFile&&(248===t.kind||205===t.kind)?Y():void 0,S=void 0,v=void 0,b=void 0,E=void 0,T=!1,q(t),t.flags&=-2817,!(1&y.flags)&&8&n&&e.nodeIsPresent(t.body)&&(t.flags|=256,T&&(t.flags|=512),t.endFlowNode=y),294===t.kind&&(t.flags|=w),x&&(te(x,y),y=oe(x),(165===t.kind||e.isInJSFile&&(248===t.kind||205===t.kind))&&(t.returnFlowNode=y)),D||(y=o),v=s,b=l,x=_,S=d,E=g,T=m}else 64&n?(h=!1,q(t),t.flags=h?128|t.flags:-129&t.flags):q(t);u=r,f=i,p=a}(t,i),s=r}else r=s,1===t.kind&&(s=t),Ie(t),s=r;A=n}}function Ie(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var n=0,r=t.jsDoc;n=116&&n.originalKeywordKind<=124?t.bindDiagnostics.push(M(n,function(n){return e.getContainingClass(n)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(n),e.declarationNameToString(n))):130===n.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(n)?t.bindDiagnostics.push(M(n,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(n))):32768&n.flags&&t.bindDiagnostics.push(M(n,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(n))):124===n.originalKeywordKind&&8192&n.flags&&t.bindDiagnostics.push(M(n,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(n))))}(r);case 105:r.flowNode=y;break;case 79:return function(n){"#constructor"===n.escapedText&&(t.parseDiagnostics.length||t.bindDiagnostics.push(M(n,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(n))))}(r);case 198:case 199:var a=r;y&&H(a)&&(a.flowNode=y),e.isSpecialPropertyDeclaration(a)&&function(t){107===t.expression.kind?Ue(t):e.isBindableStaticAccessExpression(t)&&294===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?Ve(t,t.parent):We(t))}(a),e.isInJSFile(a)&&t.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(a)&&!d(p,"module")&&U(t.locals,void 0,a.expression,134217729,111550);break;case 213:switch(e.getAssignmentDeclarationKind(r)){case 1:je(r);break;case 2:!function(n){if(Be(n)){var r=e.getRightMostAssignedExpression(n.right);if(!(e.isEmptyObjectLiteral(r)||u===t&&_(t,r))){var i=e.exportAssignmentIsAlias(n)?2097152:1049092,a=U(t.symbol.exports,t.symbol,n,67108864|i,0);e.setValueDeclaration(a,n)}}}(r);break;case 3:Ve(r.left,r);break;case 6:!function(t){e.setParent(t.left,t),e.setParent(t.right,t),Ge(t.left.expression,t.left,!1,!0)}(r);break;case 4:Ue(r);break;case 5:!function(n){var r=Qe(n.left.expression,u)||Qe(n.left.expression,p);(e.isInJSFile(n)||e.isFunctionSymbol(r))&&(e.setParent(n.left,n),e.setParent(n.right,n),e.isIdentifier(n.left.expression)&&u===t&&_(t,n.left.expression)?je(n):e.hasDynamicName(n)?(Te(n,67108868,"__computed"),Je(n,qe(r,n.left.expression,He(n.left),!1,!1))):We(e.cast(n.left,e.isBindableStaticNameExpression)))}(r);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(t){A&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Ae(t,t.left)}(r);case 284:return function(e){A&&e.variableDeclaration&&Ae(e,e.variableDeclaration.name)}(r);case 207:return function(n){if(A&&78===n.expression.kind){var r=e.getErrorSpanForNode(t,n.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,r.start,r.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(r);case 8:return function(n){A&&32&n.numericLiteralFlags&&t.bindDiagnostics.push(M(n,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(r);case 212:return function(e){A&&Ae(e,e.operand)}(r);case 211:return function(e){A&&(45!==e.operator&&46!==e.operator||Ae(e,e.operand))}(r);case 240:return function(t){A&&Pe(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(r);case 242:return function(t){A&&n.target>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Pe(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(r);case 186:return void(h=!0);case 171:break;case 158:return function(t){if(e.isJSDocTemplateTag(t.parent)){var n=e.find(t.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),U(n.locals,void 0,t,262144,526824)):Se(t,262144,526824)}else if(184===t.parent.kind){var r=function(t){var n=e.findAncestor(t,function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t});return n&&n.parent}(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),U(r.locals,void 0,t,262144,526824)):Te(t,262144,B(t))}else Se(t,262144,526824)}(r);case 159:return Ze(r);case 246:return Ye(r);case 195:return r.flowNode=y,Ye(r);case 162:case 161:return function(e){return $e(e,4|(e.questionToken?16777216:0),0)}(r);case 285:case 286:return $e(r,4,0);case 288:return $e(r,8,900095);case 168:case 169:case 170:return Se(r,131072,0);case 164:case 163:return $e(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:103359);case 248:return function(n){t.isDeclarationFile||8388608&n.flags||e.isAsyncFunction(n)&&(w|=2048),Ne(n),A?(function(n){if(o<2&&294!==p.kind&&253!==p.kind&&!e.isFunctionLike(p)){var r=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,r.start,r.length,function(n){return e.getContainingClass(n)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(n)))}}(n),we(n,16,110991)):Se(n,16,110991)}(r);case 165:return Se(r,16384,0);case 166:return $e(r,32768,46015);case 167:return $e(r,65536,78783);case 173:case 304:case 309:case 174:return function(t){var n=L(131072,B(t));R(n,t,131072);var r=L(2048,"__type");R(r,t,2048),r.members=e.createSymbolTable(),r.members.set(n.escapedName,n)}(r);case 176:case 308:case 189:return function(e){return Te(e,2048,"__type")}(r);case 315:return function(t){W(t);var n=e.getHostSignatureFromJSDoc(t);n&&164!==n.kind&&R(n.symbol,n,32)}(r);case 197:return function(n){var r;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(r||(r={})),A&&!e.isAssignmentTarget(n))for(var i=new e.Map,a=0,o=n.properties;a1&&2097152&b.flags&&(t=e.createSymbolTable()).set("export=",b),E(t),h=function(t){var n=e.findIndex(t,function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)});if(n>=0){var r=t[n],i=e.mapDefined(r.exportClause.elements,function(n){if(!n.propertyName){var r=e.indicesOf(t),i=e.filter(r,function(r){return e.nodeHasName(t[r],n.name)});if(e.length(i)&&e.every(i,function(e){return D(t[e])})){for(var a=0,o=i;a1){var r=e.filter(t,function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause});t=i(r,[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(n,function(t){return e.cast(t.exportClause,e.isNamedExports).elements})),void 0)])}var a=e.filter(t,function(t){return e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)});if(e.length(a)>1){var o=e.group(a,function(t){return e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"});if(o.length!==a.length)for(var s=function(n){n.length>1&&(t=i(e.filter(t,function(e){return-1===n.indexOf(e)}),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(n,function(t){return e.cast(t.exportClause,e.isNamedExports).elements})),n[0].moduleSpecifier)]))},c=0,u=o;c0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===r?r="_default":"export="===r&&(r="_exports"),e.isIdentifierText(r,V)&&!e.isStringANonContextualKeyword(r)?r:"_"+r.replace(/[^a-zA-Z0-9]/g,"_")}function $(e,t){var r=O(e);return n.remappedSymbolNames.has(r)?n.remappedSymbolNames.get(r):(t=Z(e,t),n.remappedSymbolNames.set(r,t),t)}}(t,n,u)})}};function n(n,r,i,a){e.Debug.assert(void 0===n||0==(8&n.flags));var o={enclosingDeclaration:n,flags:r||0,tracker:i&&i.trackSymbol?i:{trackSymbol:e.noop,moduleResolverHost:134217728&r?{getCommonSourceDirectory:t.getCommonSourceDirectory?function(){return t.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return t.getSourceFiles()},getCurrentDirectory:function(){return t.getCurrentDirectory()},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return t.fileExists(e)}}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},s=a(o);return o.encounteredError?void 0:s}function o(t){return t.truncating?t.truncating:t.truncating=t.approximateLength>(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function s(t,n){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var i=8388608&n.flags;if(n.flags&=-8388609,!t)return 262144&n.flags?(n.approximateLength+=3,e.factory.createKeywordTypeNode(128)):void(n.encounteredError=!0);if(536870912&n.flags||(t=Vs(t)),1&t.flags)return n.approximateLength+=3,e.factory.createKeywordTypeNode(128);if(2&t.flags)return e.factory.createKeywordTypeNode(151);if(4&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(8&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(143);if(64&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(154);if(16&t.flags)return n.approximateLength+=7,e.factory.createKeywordTypeNode(131);if(1024&t.flags&&!(1048576&t.flags)){var a=vi(t.symbol),c=S(a,n,788968);return wo(a)===t?c:B(c,e.factory.createTypeReferenceNode(e.symbolName(t.symbol),void 0))}if(1056&t.flags)return S(t.symbol,n,788968);if(128&t.flags)return n.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&n.flags)),16777216));if(256&t.flags){var g=t.value;return n.approximateLength+=(""+g).length,e.factory.createLiteralTypeNode(g<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-g)):e.factory.createNumericLiteral(g))}if(2048&t.flags)return n.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value));if(512&t.flags)return n.approximateLength+=t.intrinsicName.length,e.factory.createLiteralTypeNode("true"===t.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&t.flags){if(!(1048576&n.flags)){if(zi(t.symbol,n.enclosingDeclaration))return n.approximateLength+=6,S(t.symbol,n,111551);n.tracker.reportInaccessibleUniqueSymbolError&&n.tracker.reportInaccessibleUniqueSymbolError()}return n.approximateLength+=13,e.factory.createTypeOperatorNode(150,e.factory.createKeywordTypeNode(147))}if(16384&t.flags)return n.approximateLength+=4,e.factory.createKeywordTypeNode(113);if(32768&t.flags)return n.approximateLength+=9,e.factory.createKeywordTypeNode(149);if(65536&t.flags)return n.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&t.flags)return n.approximateLength+=5,e.factory.createKeywordTypeNode(140);if(4096&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(67108864&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(144);if($u(t))return 4194304&n.flags&&(n.encounteredError||32768&n.flags||(n.encounteredError=!0),n.tracker.reportInaccessibleThisError&&n.tracker.reportInaccessibleThisError()),n.approximateLength+=4,e.factory.createThisTypeNode();if(!i&&t.aliasSymbol&&(16384&n.flags||Ui(t.aliasSymbol,n.enclosingDeclaration))){var m=_(t.aliasTypeArguments,n);return!Oi(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?S(t.aliasSymbol,n,788968,m):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),m)}var h=e.getObjectFlags(t);if(4&h)return e.Debug.assert(!!(524288&t.flags)),t.node?M(t,R):R(t);if(262144&t.flags||3&h){if(262144&t.flags&&e.contains(n.inferTypeParameters,t))return n.approximateLength+=e.symbolName(t.symbol).length+6,e.factory.createInferTypeNode(p(t,n,void 0));if(4&n.flags&&262144&t.flags&&!Ui(t.symbol,n.enclosingDeclaration)){var y=E(t,n);return n.approximateLength+=e.idText(y).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(y)),void 0)}return t.symbol?S(t.symbol,n,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(3145728&t.flags){var v=1048576&t.flags?function(e){for(var t=[],n=0,r=0;r0?1048576&t.flags?e.factory.createUnionTypeNode(b):e.factory.createIntersectionTypeNode(b):void(n.encounteredError||262144&n.flags||(n.encounteredError=!0))}if(48&h)return e.Debug.assert(!!(524288&t.flags)),I(t);if(4194304&t.flags){var x=t.type;n.approximateLength+=6;var D=s(x,n);return e.factory.createTypeOperatorNode(137,D)}if(8388608&t.flags){var C=s(t.objectType,n);return D=s(t.indexType,n),n.approximateLength+=2,e.factory.createIndexedAccessTypeNode(C,D)}if(16777216&t.flags){var k=s(t.checkType,n),T=n.inferTypeParameters;n.inferTypeParameters=t.root.inferTypeParameters;var w=s(t.extendsType,n);n.inferTypeParameters=T;var A=F(_l(t)),N=F(dl(t));return n.approximateLength+=15,e.factory.createConditionalTypeNode(k,w,A,N)}return 33554432&t.flags?s(t.baseType,n):e.Debug.fail("Should be unreachable.");function F(e){var t,r,i;return 1048576&e.flags?(null===(t=n.visitedTypes)||void 0===t?void 0:t.has(Eu(e)))?(131072&n.flags||(n.encounteredError=!0,null===(i=null===(r=n.tracker)||void 0===r?void 0:r.reportCyclicStructureError)||void 0===i||i.call(r)),u(n)):M(e,function(e){return s(e,n)}):s(e,n)}function I(t){var r,i=t.id,a=t.symbol;if(a){if(Sh(a.valueDeclaration)){var o=t===vo(a)?788968:111551;return S(a,n,o)}if(32&a.flags&&!Xa(a)&&!(218===a.valueDeclaration.kind&&2048&n.flags)||896&a.flags||function(){var t,r=!!(8192&a.flags)&&e.some(a.declarations,function(t){return e.hasSyntacticModifier(t,32)}),o=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,function(e){return 294===e.parent.kind||254===e.parent.kind}));if(r||o)return(!!(4096&n.flags)||(null===(t=n.visitedTypes)||void 0===t?void 0:t.has(i)))&&(!(8&n.flags)||zi(a,n.enclosingDeclaration))}())return S(a,n,111551);if(null===(r=n.visitedTypes)||void 0===r?void 0:r.has(i)){var s=function(t){if(t.symbol&&2048&t.symbol.flags){var n=e.walkUpParenthesizedTypes(t.symbol.declarations[0].parent);if(251===n.kind)return yi(n)}}(t);return s?S(s,n,788968):u(n)}return M(t,L)}return L(t)}function M(t,r){var i,a=t.id,o=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags,s=4&e.getObjectFlags(t)&&t.node?"N"+P(t.node):t.symbol?(o?"+":"")+O(t.symbol):void 0;if(n.visitedTypes||(n.visitedTypes=new e.Set),s&&!n.symbolDepth&&(n.symbolDepth=new e.Map),s){if((i=n.symbolDepth.get(s)||0)>10)return u(n);n.symbolDepth.set(s,i+1)}n.visitedTypes.add(a);var c=r(t);return n.visitedTypes.delete(a),s&&n.symbolDepth.set(s,i),c}function L(t){if(bs(t)||t.containsError)return function(t){e.Debug.assert(!!(524288&t.flags));var r,i=t.declaration.readonlyToken?e.factory.createToken(t.declaration.readonlyToken.kind):void 0,a=t.declaration.questionToken?e.factory.createToken(t.declaration.questionToken.kind):void 0;r=gs(t)?e.factory.createTypeOperatorNode(137,s(ms(t),n)):s(ds(t),n);var o=p(_s(t),n,r),c=s(fs(t),n),u=e.factory.createMappedTypeNode(i,o,a,c);return n.approximateLength+=10,e.setEmitFlags(u,1)}(t);var r=xs(t);if(!r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){if(!r.callSignatures.length&&!r.constructSignatures.length)return n.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length)return f(r.callSignatures[0],173,n);if(1===r.constructSignatures.length&&!r.callSignatures.length)return f(r.constructSignatures[0],174,n)}var i=n.flags;n.flags|=4194304;var a=function(t){if(o(n))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var r=[],i=0,a=t.callSignatures;i0&&(h=_(r.slice(x,(t.target.typeParameters||e.emptyArray).length),n)),D=n.flags,n.flags|=16;var y=S(t.symbol,n,788968,h);return n.flags=D,u?B(u,y):y}if(r.length>0){var v=Uc(t),b=_(r.slice(0,v),n);if(b){if(t.target.labeledElementDeclarations)for(var x=0;x2)return[s(t[0],n),e.factory.createTypeReferenceNode("... "+(t.length-2)+" more ...",void 0),s(t[t.length-1],n)]}for(var i=64&n.flags?void 0:e.createUnderscoreEscapedMultiMap(),a=[],c=0,u=0,l=t;u0)),a}function b(t,n){var r;return 524384&Lb(t).flags&&(r=e.factory.createNodeArray(e.map(so(t),function(e){return g(e,n)}))),r}function x(t,n,r){var i;e.Debug.assert(t&&0<=n&&n1?g(a,a.length-1,1):void 0,c=i||x(a,0,n),u=C(a[0],n);!(67108864&n.flags)&&e.getEmitModuleResolutionKind(J)===e.ModuleResolutionKind.NodeJs&&u.indexOf("/node_modules/")>=0&&(n.encounteredError=!0,n.tracker.reportLikelyUnsafeImportRequiredError&&n.tracker.reportLikelyUnsafeImportRequiredError(u));var l=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(u));if(n.tracker.trackExternalModuleSymbolOfImportTypeNode&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]),n.approximateLength+=u.length+10,!s||e.isEntityName(s))return s&&((f=e.isIdentifier(s)?s:s.right).typeArguments=void 0),e.factory.createImportTypeNode(l,s,c,o);var _=D(s);return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(l,_.objectType.typeName,c,o),_.indexType)}var d=g(a,a.length-1,0);if(e.isIndexedAccessTypeNode(d))return d;if(o)return e.factory.createTypeQueryNode(d);var f,p=(f=e.isIdentifier(d)?d:d.right).typeArguments;return f.typeArguments=void 0,e.factory.createTypeReferenceNode(d,p);function g(t,r,a){var o,s=r===t.length-1?i:x(t,r,n),c=t[r],u=t[r-1];if(0===r)n.flags|=16777216,o=ua(c,n),n.approximateLength+=(o?o.length:0)+1,n.flags^=16777216;else if(u&&fi(u)){var l=fi(u);e.forEachEntry(l,function(t,n){if(Ci(t,c)&&!Uo(n)&&"export="!==n)return o=e.unescapeLeadingUnderscores(n),!0})}if(o||(o=ua(c,n)),n.approximateLength+=o.length+1,!(16&n.flags)&&u&&Ko(u)&&Ko(u).get(c.escapedName)&&Ci(Ko(u).get(c.escapedName),c)){var _=g(t,r-1,a);return e.isIndexedAccessTypeNode(_)?e.factory.createIndexedAccessTypeNode(_,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(_,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)))}var d=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);return d.symbol=c,r>a?(_=g(t,r-1,a),e.isEntityName(_)?e.factory.createQualifiedName(_,d):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")):d}}function k(e,t,n){var r=kr(t.enclosingDeclaration,e,788968,void 0,e,!1);return!(!r||262144&r.flags&&r===n.symbol)}function E(t,n){var r;if(4&n.flags&&n.typeParameterNames){var i=n.typeParameterNames.get(Eu(t));if(i)return i}var a=T(t.symbol,n,788968,!0);if(!(78&a.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&n.flags){for(var o=a.escapedText,s=0,c=o;(null===(r=n.typeParameterNamesByText)||void 0===r?void 0:r.has(c))||k(c,n,t);)c=o+"_"+ ++s;c!==o&&(a=e.factory.createIdentifier(c,a.typeArguments)),(n.typeParameterNames||(n.typeParameterNames=new e.Map)).set(Eu(t),a),(n.typeParameterNamesByText||(n.typeParameterNamesByText=new e.Set)).add(a.escapedText)}return a}function T(t,n,r,i){var a=y(t,n,r);return!i||1===a.length||n.encounteredError||65536&n.flags||(n.encounteredError=!0),function t(r,i){var a=x(r,i,n),o=r[i];0===i&&(n.flags|=16777216);var s=ua(o,n);0===i&&(n.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(t(r,i-1),c):c}(a,a.length-1)}function w(t,n,r){var i=y(t,n,r);return function t(r,i){var a=x(r,i,n),o=r[i];0===i&&(n.flags|=16777216);var s=ua(o,n);0===i&&(n.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,Gi))return e.factory.createStringLiteral(C(o,n));var u=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),V):e.isIdentifierStart(c,V);if(0===i||u){var l=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return l.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(r,i-1),l):l}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var _=void 0;return e.isSingleOrDoubleQuote(c)?_=e.factory.createStringLiteral(s.substring(1,s.length-1).replace(/\\./g,function(e){return e.substring(1)}),39===c):""+ +s===s&&(_=e.factory.createNumericLiteral(+s)),_||((_=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(r,i-1),_)}(i,i.length-1)}function A(t){var n=e.getNameOfDeclaration(t);return!!n&&e.isStringLiteral(n)}function N(t){var n=e.getNameOfDeclaration(t);return!!(n&&e.isStringLiteral(n)&&(n.singleQuote||!e.nodeIsSynthesized(n)&&e.startsWith(e.getTextOfNode(n,!1),"'")))}function F(t,n){var r=!!e.length(t.declarations)&&e.every(t.declarations,N);return function(t,n,r){var i=vr(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,J.target)||Mg(a)?Mg(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):I(a):e.factory.createStringLiteral(a,!!r)}if(8192&i.flags)return e.factory.createComputedPropertyName(w(i.symbol,n,111551))}}(t,n,r)||(e.isKnownSymbol(t)?e.factory.createComputedPropertyName(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("Symbol"),t.escapedName.substr(3))):I(e.unescapeLeadingUnderscores(t.escapedName),!!e.length(t.declarations)&&e.every(t.declarations,A),r))}function I(t,n,r){return e.isIdentifierText(t,J.target)?e.factory.createIdentifier(t):!n&&Mg(t)&&+t>=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!r)}function M(t,n){return t.declarations&&e.find(t.declarations,function(t){return!(!e.getEffectiveTypeAnnotationNode(t)||n&&!e.findAncestor(t,function(e){return e===n}))})}function L(t,n){return!(4&e.getObjectFlags(n))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=uc(n.target.typeParameters)}function R(t,n,r,i,a,o){if(n!==Ce&&i){var c=M(r,i);if(c&&!e.isFunctionLikeDeclaration(c)){var u=e.getEffectiveTypeAnnotationNode(c);if(Rl(u)===n&&L(u,n)){var l=B(t,u,a,o);if(l)return l}}}var _=t.flags;8192&n.flags&&n.symbol===r&&(t.flags|=1048576);var d=s(n,t);return t.flags=_,d}function B(n,i,a,o){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var c=!1,u=e.getSourceFileOfNode(i),l=e.visitNode(i,function r(i){var l,_,d;if(e.isJSDocAllType(i)||306===i.kind)return e.factory.createKeywordTypeNode(128);if(e.isJSDocUnknownType(i))return e.factory.createKeywordTypeNode(151);if(e.isJSDocNullableType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createKeywordTypeNode(149)]);if(e.isJSDocNonNullableType(i))return e.visitNode(i.type,r);if(e.isJSDocVariadicType(i))return e.factory.createArrayTypeNode(e.visitNode(i.type,r));if(e.isJSDocTypeLiteral(i))return e.factory.createTypeLiteralNode(e.map(i.jsDocPropertyTags,function(t){var a=e.isIdentifier(t.name)?t.name:t.name.right,o=ha(Rl(i),a.escapedText),c=o&&t.typeExpression&&Rl(t.typeExpression.type)!==o?s(o,n):void 0;return e.factory.createPropertySignature(void 0,a,t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.factory.createToken(57):void 0,c||t.typeExpression&&e.visitNode(t.typeExpression.type,r)||e.factory.createKeywordTypeNode(128))}));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(128),i);if((e.isExpressionWithTypeArguments(i)||e.isTypeReferenceNode(i))&&e.isJSDocIndexSignature(i))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,e.visitNode(i.typeArguments[0],r))],e.visitNode(i.typeArguments[1],r))]);if(e.isJSDocFunctionType(i))return e.isJSDocConstructSignature(i)?e.factory.createConstructorTypeNode(e.visitNodes(i.typeParameters,r),e.mapDefined(i.parameters,function(t,n){return t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(d=t.type):e.factory.createParameterDeclaration(void 0,void 0,m(t),h(t,n),t.questionToken,e.visitNode(t.type,r),void 0)}),e.visitNode(d||i.type,r)||e.factory.createKeywordTypeNode(128)):e.factory.createFunctionTypeNode(e.visitNodes(i.typeParameters,r),e.map(i.parameters,function(t,n){return e.factory.createParameterDeclaration(void 0,void 0,m(t),h(t,n),t.questionToken,e.visitNode(t.type,r),void 0)}),e.visitNode(i.type,r)||e.factory.createKeywordTypeNode(128));if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(!L(i,Rl(i))||Zc(i)||ye===Wc(Vc(i),788968,!0)))return e.setOriginalNode(s(Rl(i),n),i);if(e.isLiteralImportTypeNode(i))return e.factory.updateImportTypeNode(i,e.factory.updateLiteralTypeNode(i.argument,function(r,i){if(o){if(n.tracker&&n.tracker.moduleResolverHost){var a=Zx(r);if(a){var s=e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),c=e.getResolvedExternalModuleName({getCanonicalFileName:s,getCurrentDirectory:function(){return n.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return n.tracker.moduleResolverHost.getCommonSourceDirectory()}},a);return e.factory.createStringLiteral(c)}}}else if(n.tracker&&n.tracker.trackExternalModuleSymbolOfImportTypeNode){var u=ai(i,i,void 0);u&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(u)}return i}(i,i.argument.literal)),i.qualifier,e.visitNodes(i.typeArguments,r,e.isTypeNode),i.isTypeOf);if(e.isEntityName(i)||e.isEntityNameExpression(i)){var f=e.getFirstIdentifier(i);if(e.isInJSFile(i)&&(e.isExportsIdentifier(f)||e.isModuleExportsAccessExpression(f.parent)||e.isQualifiedName(f.parent)&&e.isModuleIdentifier(f.parent.left)&&e.isExportsIdentifier(f.parent.right)))return c=!0,i;var p=ni(f,67108863,!0,!0);if(p&&(0!==Wi(p,n.enclosingDeclaration,67108863,!1).accessibility?c=!0:(null===(_=null===(l=n.tracker)||void 0===l?void 0:l.trackSymbol)||void 0===_||_.call(l,p,n.enclosingDeclaration,67108863),null==a||a(p)),e.isIdentifier(i))){var g=262144&p.flags?E(wo(p),n):e.factory.cloneNode(i);return g.symbol=p,e.setEmitFlags(e.setOriginalNode(g,i),16777216)}}return u&&e.isTupleTypeNode(i)&&e.getLineAndCharacterOfPosition(u,i.pos).line===e.getLineAndCharacterOfPosition(u,i.end).line&&e.setEmitFlags(i,1),e.visitEachChild(i,r,e.nullTransformationContext);function m(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):void 0)}function h(t,n){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":m(t)?"args":"arg"+n}});if(!c)return l===i?e.setTextRange(e.factory.cloneNode(i),i):l}}(),ne=e.createSymbolTable(),re=lr(4,"undefined");re.declarations=[];var ie=lr(1536,"globalThis",8);ie.exports=ne,ie.declarations=[],ne.set(ie.escapedName,ie);var ae,oe=lr(4,"arguments"),se=lr(4,"require"),ce={getNodeCount:function(){return e.sum(t.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(t.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(t.getSourceFiles(),"symbolCount")+v},getTypeCount:function(){return y},getInstantiationCount:function(){return x},getRelationCacheSizes:function(){return{assignable:$n.size,identity:tr.size,subtype:Yn.size,strictSubtype:Zn.size}},isUndefinedSymbol:function(e){return e===re},isArgumentsSymbol:function(e){return e===oe},isUnknownSymbol:function(e){return e===ye},getMergedSymbol:hi,getDiagnostics:rx,getGlobalDiagnostics:function(){return ix(),Hn.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(t,n){var r=e.getParseTreeNode(n);return r?function(t,n){if(t=t.exportSymbol||t,78===n.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),e.isExpressionNode(n)&&!e.isAssignmentTarget(n))){var r=Wy(n);if(Si(br(n).resolvedSymbol)===t)return r}return eo(t)}(t,r):Ce},getSymbolsOfParameterPropertyDeclaration:function(t,n){var r=e.getParseTreeNode(t,e.isParameter);return void 0===r?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(t,n){var r=t.parent.parent,i=Dr(t.parent.locals,n,111551),a=Dr(Ko(r.symbol),n,111551);return i&&a?[i,a]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(r,e.escapeLeadingUnderscores(n))},getDeclaredTypeOfSymbol:wo,getPropertiesOfType:ks,getPropertyOfType:function(t,n){return Gs(t,e.escapeLeadingUnderscores(n))},getPrivateIdentifierPropertyOfType:function(t,n,r){var i=e.getParseTreeNode(r);if(i){var a=bm(e.escapeLeadingUnderscores(n),i);return a?xm(t,a):void 0}},getTypeOfPropertyOfType:function(t,n){return ha(t,e.escapeLeadingUnderscores(n))},getIndexInfoOfType:$s,getSignaturesOfType:Xs,getIndexTypeOfType:ec,getBaseTypes:mo,getBaseTypeOfLiteralType:wd,getWidenedType:sf,getTypeFromTypeNode:function(t){var n=e.getParseTreeNode(t,e.isTypeNode);return n?Rl(n):Ce},getParameterType:Bh,getPromisedTypeOfPromise:fv,getAwaitedType:function(e){return gv(e)},getReturnTypeOfSignature:hc,isNullableType:lm,getNullableType:Wd,getNonNullableType:Kd,getNonOptionalType:Qd,getTypeArguments:jc,typeToTypeNode:te.typeToTypeNode,indexInfoToIndexSignatureDeclaration:te.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:te.signatureToSignatureDeclaration,symbolToEntityName:te.symbolToEntityName,symbolToExpression:te.symbolToExpression,symbolToTypeParameterDeclarations:te.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:te.symbolToParameterDeclaration,typeParameterToDeclaration:te.typeParameterToDeclaration,getSymbolsInScope:function(t,n){var r=e.getParseTreeNode(t);return r?function(t,n){if(16777216&t.flags)return[];var r=e.createSymbolTable(),i=!1;return function(){for(;t;){switch(t.locals&&!xr(t)&&o(t.locals,n),t.kind){case 294:if(!e.isExternalOrCommonJsModule(t))break;case 253:o(yi(t).exports,2623475&n);break;case 252:o(yi(t).exports,8&n);break;case 218:t.name&&a(t.symbol,n);case 249:case 250:i||o(Ko(yi(t)),788968&n);break;case 205:t.name&&a(t.symbol,n)}e.introducesArgumentsExoticObject(t)&&a(oe,n),i=e.hasSyntacticModifier(t,32),t=t.parent}o(ne,n)}(),r.delete("this"),rc(r);function a(t,n){if(e.getCombinedLocalAndExportSymbolFlags(t)&n){var i=t.escapedName;r.has(i)||r.set(i,t)}}function o(e,t){t&&e.forEach(function(e){a(e,t)})}}(r,n):[]},getSymbolAtLocation:function(t){var n=e.getParseTreeNode(t);return n?_x(n,!0):void 0},getShorthandAssignmentValueSymbol:function(t){var n=e.getParseTreeNode(t);return n?function(e){if(e&&286===e.kind)return ni(e.name,2208703)}(n):void 0},getExportSpecifierLocalTargetSymbol:function(t){var n=e.getParseTreeNode(t,e.isExportSpecifier);return n?function(e){return e.parent.parent.moduleSpecifier?Jr(e.parent.parent,e):ni(e.propertyName||e.name,2998271)}(n):void 0},getExportSymbolOfSymbol:function(e){return hi(e.exportSymbol||e)},getTypeAtLocation:function(t){var n=e.getParseTreeNode(t);return n?dx(n):Ce},getTypeOfAssignmentPattern:function(t){var n=e.getParseTreeNode(t,e.isAssignmentPattern);return n&&fx(n)||Ce},getPropertySymbolOfDestructuringAssignment:function(t){var n=e.getParseTreeNode(t,e.isIdentifier);return n?function(t){var n=fx(e.cast(t.parent.parent,e.isAssignmentPattern));return n&&Gs(n,t.escapedText)}(n):void 0},signatureToString:function(t,n,r,i){return Zi(t,e.getParseTreeNode(n),r,i)},typeToString:function(t,n,r){return $i(t,e.getParseTreeNode(n),r)},symbolToString:function(t,n,r,i){return Yi(t,e.getParseTreeNode(n),r,i)},typePredicateToString:function(t,n,r){return ia(t,e.getParseTreeNode(n),r)},writeSignature:function(t,n,r,i,a){return Zi(t,e.getParseTreeNode(n),r,i,a)},writeType:function(t,n,r,i){return $i(t,e.getParseTreeNode(n),r,i)},writeSymbol:function(t,n,r,i,a){return Yi(t,e.getParseTreeNode(n),r,i,a)},writeTypePredicate:function(t,n,r,i){return ia(t,e.getParseTreeNode(n),r,i)},getAugmentedPropertiesOfType:hx,getRootSymbols:function t(n){var r=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(vr(t).containingType.types,function(e){return Gs(e,t.escapedName)});if(33554432&t.flags){var n=t.leftSpread,r=t.syntheticOrigin;return n?[n,t.rightSpread]:r?[r]:e.singleElementArray(function(e){for(var t,n=e;n=vr(n).target;)t=n;return t}(t))}}(n);return r?e.flatMap(r,t):[n]},getContextualType:function(t,n){var r=e.getParseTreeNode(t,e.isExpression);if(r){var i=e.findAncestor(r,e.isCallLikeExpression),a=i&&br(i).resolvedSignature;if(4&n&&i){var o=r;do{br(o).skipDirectInference=!0,o=o.parent}while(o&&o!==i);br(i).resolvedSignature=void 0}var s=Dg(r,n);if(4&n&&i){o=r;do{br(o).skipDirectInference=void 0,o=o.parent}while(o&&o!==i);br(i).resolvedSignature=a}return s}},getContextualTypeForObjectLiteralElement:function(t){var n=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return n?gg(n):void 0},getContextualTypeForArgumentAtIndex:function(t,n){var r=e.getParseTreeNode(t,e.isCallLikeExpression);return r&&dg(r,n)},getContextualTypeForJsxAttribute:function(t){var n=e.getParseTreeNode(t,e.isJsxAttributeLike);return n&&hg(n)},isContextSensitive:f_,getFullyQualifiedName:ti,getResolvedSignature:function(e,t,n){return ue(e,t,n,0)},getResolvedSignatureForSignatureHelp:function(e,t,n){return ue(e,t,n,16)},getExpandedParameters:es,hasEffectiveRestParameter:Vh,getConstantValue:function(t){var n=e.getParseTreeNode(t,Bx);return n?jx(n):void 0},isValidPropertyAccess:function(t,n){var r=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!r&&function(e,t){switch(e.kind){case 198:return Im(e,105===e.expression.kind,t,sf(Hy(e.expression)));case 156:return Im(e,!1,t,sf(Hy(e.left)));case 192:return Im(e,!1,t,Rl(e))}}(r,e.escapeLeadingUnderscores(n))},isValidPropertyAccessForCompletions:function(t,n,r){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&function(e,t,n){return Im(e,198===e.kind&&105===e.expression.kind,n.escapedName,t)}(i,n,r)},getSignatureFromDeclaration:function(t){var n=e.getParseTreeNode(t,e.isFunctionLike);return n?_c(n):void 0},isImplementationOfOverload:function(t){var n=e.getParseTreeNode(t,e.isFunctionLike);return n?Px(n):void 0},getImmediateAliasedSymbol:Bg,getAliasedSymbol:Gr,getEmitResolver:function(e,t){return rx(e,t),ee},getExportsOfModule:_i,getExportsAndPropertiesOfModule:function(t){var n=_i(t),r=ci(t);return r!==t&&e.addRange(n,ks(eo(r))),n},getSymbolWalker:e.createGetSymbolWalker(function(e){return bc(e)||be},mc,hc,mo,xs,eo,zf,Zs,Ts,e.getFirstIdentifier,jc),getAmbientModules:function(){return lt||(lt=[],ne.forEach(function(e,t){c.test(t)&<.push(e)})),lt},getJsxIntrinsicTagNamesAt:function(t){var n=qg(T.IntrinsicElements,t);return n?ks(n):e.emptyArray},isOptionalParameter:function(t){var n=e.getParseTreeNode(t,e.isParameter);return!!n&&oc(n)},tryGetMemberInModuleExports:function(t,n){return di(e.escapeLeadingUnderscores(t),n)},tryGetMemberInModuleExportsAndProperties:function(t,n){return function(t,n){var r=di(t,n);if(r)return r;var i=ci(n);if(i!==n){var a=eo(i);return 131068&a.flags||1&e.getObjectFlags(a)||Sd(a)?void 0:Gs(a,t)}}(e.escapeLeadingUnderscores(t),n)},tryFindAmbientModuleWithoutAugmentations:function(e){return ac(e,!1)},getApparentType:Bs,getUnionType:Pu,isTypeAssignableTo:C_,createAnonymousType:Mi,createSignature:Xo,createSymbol:lr,createIndexInfo:Ac,getAnyType:function(){return be},getStringType:function(){return Pe},getNumberType:function(){return Oe},createPromiseType:Yh,createArrayType:pu,getElementTypeOfArrayType:bd,getBooleanType:function(){return Be},getFalseType:function(e){return e?Ie:Me},getTrueType:function(e){return e?Le:Re},getVoidType:function(){return Ue},getUndefinedType:function(){return Ee},getNullType:function(){return Ae},getESSymbolType:function(){return je},getNeverType:function(){return ze},getOptionalType:function(){return we},isSymbolAccessible:Wi,isArrayType:hd,isTupleType:Fd,isArrayLikeType:xd,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some(function(t){var n=t.name&&Uu(t.name),r=n&&Bo(n)?Vo(n):void 0,i=void 0===r?void 0:ha(e,r);return!!i&&Td(i)&&!C_(dx(t),i)})},getAllPossiblePropertiesOfTypes:function(t){var n=Pu(t);if(!(1048576&n.flags))return hx(n);for(var r=e.createSymbolTable(),i=0,a=t;i>",0,be),an=Xo(void 0,void 0,void 0,e.emptyArray,be,void 0,0,0),on=Xo(void 0,void 0,void 0,e.emptyArray,Ce,void 0,0,0),sn=Xo(void 0,void 0,void 0,e.emptyArray,be,void 0,0,0),cn=Xo(void 0,void 0,void 0,e.emptyArray,Je,void 0,0,0),un=Ac(Pe,!0),ln=new e.Map,_n={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},dn=sb(be,be,be),fn=sb(be,be,ke),pn=sb(ze,be,Ee),gn={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Jt||(Jt=au("AsyncIterator",3,e))||nt},getGlobalIterableType:function(e){return zt||(zt=au("AsyncIterable",1,e))||nt},getGlobalIterableIteratorType:function(e){return Vt||(Vt=au("AsyncIterableIterator",1,e))||nt},getGlobalGeneratorType:function(e){return Wt||(Wt=au("AsyncGenerator",3,e))||nt},resolveIterationType:gv,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},mn={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Lt||(Lt=au("Iterator",3,e))||nt},getGlobalIterableType:lu,getGlobalIterableIteratorType:function(e){return Rt||(Rt=au("IterableIterator",1,e))||nt},getGlobalGeneratorType:function(e){return Bt||(Bt=au("Generator",3,e))||nt},resolveIterationType:function(e,t){return e},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},hn=new e.Map,yn=!1,vn=new e.Map,bn=0,xn=0,Dn=0,Cn=!1,Sn=0,kn=Ol(""),En=Ol(0),Tn=Ol({negative:!1,base10Value:"0"}),wn=[],An=[],Nn=[],Pn=0,On=[],Fn=[],In=[],Mn=[],Ln=[],Rn=[],Bn=[],jn=[],Un=[],zn=[],Jn=[],Vn=[],Wn=[],qn=[],Kn=[],Hn=e.createDiagnosticCollection(),Gn=e.createDiagnosticCollection(),Qn=new e.Map(e.getEntries({string:Pe,number:Oe,bigint:Fe,boolean:Be,symbol:je,undefined:Ee})),Xn=Pu(e.arrayFrom(C.keys(),Ol)),Yn=new e.Map,Zn=new e.Map,$n=new e.Map,er=new e.Map,tr=new e.Map,nr=new e.Map,rr=e.createSymbolTable();return rr.set(re.escapedName,re),function(){for(var n=0,r=t.getSourceFiles();n=5||e.some(o.relatedInformation,function(t){return 0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i)}))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,u=i||e.emptyArray;c1)}function vr(e){if(33554432&e.flags)return e;var t=O(e);return Fn[t]||(Fn[t]=new A)}function br(e){var t=P(e);return In[t]||(In[t]=new N)}function xr(t){return 294===t.kind&&!e.isExternalOrCommonJsModule(t)}function Dr(t,n,r){if(r){var i=hi(t.get(n));if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&r)return i;if(2097152&i.flags){var a=Gr(i);if(a===ye||a.flags&r)return i}}}}function Cr(n,r){var i=e.getSourceFileOfNode(n),a=e.getSourceFileOfNode(r),o=e.getEnclosingBlockScopeContainer(n);if(i!==a){if(W&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(J)||Jf(r)||8388608&n.flags)return!0;if(u(r,n))return!0;var s=t.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(n.pos<=r.pos&&(!e.isPropertyDeclaration(n)||!e.isThisProperty(r.parent)||n.initializer||n.exclamationToken)){if(195===n.kind){var c=e.getAncestor(r,195);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(n,e.isBindingElement)||n.post.end)&&void 0===e.findAncestor(n,function(n){if(n===t)return"quit";switch(n.kind){case 206:return!0;case 162:return!r||!(e.isPropertyDeclaration(t)&&n.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&n.parent===t.parent.parent)||"quit";case 227:switch(n.parent.kind){case 166:case 164:case 167:return!0;default:return!1}default:return!1}})}}function Sr(t,n,r){var i=e.getEmitScriptTarget(J),a=n;if(e.isParameter(r)&&a.body&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=br(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,function(e){return s(e.name)||!!e.initializer&&s(e.initializer)})||!1),!o.declarationRequiresScopeChange}return!1;function s(t){switch(t.kind){case 206:case 205:case 248:case 165:return!1;case 164:case 166:case 167:case 285:return s(t.name);case 162:return e.hasStaticModifier(t)?i<99||!J.useDefineForClassFields:s(t.name);default:return e.isNullishCoalesce(t)||e.isOptionalChain(t)?i<7:e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)?i<4:!e.isTypeNode(t)&&(e.forEachChild(t,s)||!1)}}}function kr(e,t,n,r,i,a,o,s){return void 0===o&&(o=!1),Er(e,t,n,r,i,a,o,Dr,s)}function Er(t,n,r,i,a,o,s,c,u){var l,_,d,f,p,g,m=t,h=!1,y=t,v=!1;e:for(;t;){if(t.locals&&!xr(t)&&(l=c(t.locals,n,r))){var b=!0;if(e.isFunctionLike(t)&&_&&_!==t.body?(r&l.flags&788968&&307!==_.kind&&(b=!!(262144&l.flags)&&(_===t.type||159===_.kind||158===_.kind)),r&l.flags&3&&(Sr(l,t,_)?b=!1:1&l.flags&&(b=159===_.kind||_===t.type&&!!e.findAncestor(l.valueDeclaration,e.isParameter)))):183===t.kind&&(b=_===t.trueType),b)break e;l=void 0}switch(h=h||Tr(t,_),t.kind){case 294:if(!e.isExternalOrCommonJsModule(t))break;v=!0;case 253:var x=yi(t).exports||U;if(294===t.kind||e.isModuleDeclaration(t)&&8388608&t.flags&&!e.isGlobalScopeAugmentation(t)){if(l=x.get("default")){var D=e.getLocalSymbolForExportDefault(l);if(D&&l.flags&r&&D.escapedName===n)break e;l=void 0}var C=x.get(n);if(C&&2097152===C.flags&&(e.getDeclarationOfKind(C,267)||e.getDeclarationOfKind(C,266)))break}if("default"!==n&&(l=c(x,n,2623475&r))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||l.declarations.some(e.isJSDocTypeAlias))break e;l=void 0}break;case 252:if(l=c(yi(t).exports,n,8&r))break e;break;case 162:if(!e.hasSyntacticModifier(t,32)){var S=Ei(t.parent);S&&S.locals&&c(S.locals,n,111551&r)&&(f=t)}break;case 249:case 218:case 250:if(l=c(yi(t).members||U,n,788968&r)){if(!Nr(l,t)){l=void 0;break}if(_&&e.hasSyntacticModifier(_,32))return void or(y,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(218===t.kind&&32&r){var k=t.name;if(k&&n===k.escapedText){l=t.symbol;break e}}break;case 220:if(_===t.expression&&93===t.parent.token){var E=t.parent.parent;if(e.isClassLike(E)&&(l=c(yi(E).members,n,788968&r)))return void(i&&or(y,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 157:if((e.isClassLike(g=t.parent.parent)||250===g.kind)&&(l=c(yi(g).members,n,788968&r)))return void or(y,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 206:if(J.target>=2)break;case 164:case 165:case 166:case 167:case 248:if(3&r&&"arguments"===n){l=oe;break e}break;case 205:if(3&r&&"arguments"===n){l=oe;break e}if(16&r){var T=t.name;if(T&&n===T.escapedText){l=t.symbol;break e}}break;case 160:t.parent&&159===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||249===t.parent.kind)&&(t=t.parent);break;case 327:case 320:case 321:t=e.getJSDocHost(t);break;case 159:_&&(_===t.initializer||_===t.name&&e.isBindingPattern(_))&&(p||(p=t));break;case 195:_&&(_===t.initializer||_===t.name&&e.isBindingPattern(_))&&159===(P=e.getRootDeclaration(t)).kind&&(p||(p=t))}wr(t)&&(d=t),_=t,t=t.parent}if(!o||!l||d&&l===d.symbol||(l.isReferenced|=r),!l){if(_&&(e.Debug.assert(294===_.kind),_.commonJsModuleIndicator&&"exports"===n&&r&_.symbol.flags))return _.symbol;s||(l=c(ne,n,r))}if(!l&&m&&e.isInJSFile(m)&&m.parent&&e.isRequireCall(m.parent,!1))return se;if(l){if(i){if(f&&(99!==J.target||!J.useDefineForClassFields))return void or(y,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(f.name),Ar(a));if(y&&(2&r||(32&r||384&r)&&111551==(111551&r))){var w=Si(l);(2&w.flags||32&w.flags||384&w.flags)&&function(t,n){if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),!(67108881&t.flags&&32&t.flags)){var r=e.find(t.declarations,function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||252===t.kind});if(void 0===r)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&r.flags||Cr(r,n))){var i=void 0,a=e.declarationNameToString(e.getNameOfDeclaration(r));2&t.flags?i=or(n,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,a):32&t.flags?i=or(n,e.Diagnostics.Class_0_used_before_its_declaration,a):256&t.flags?i=or(n,e.Diagnostics.Enum_0_used_before_its_declaration,a):(e.Debug.assert(!!(128&t.flags)),J.preserveConstEnums&&(i=or(n,e.Diagnostics.Enum_0_used_before_its_declaration,a))),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_here,a))}}}(w,y)}if(l&&v&&111551==(111551&r)&&!(4194304&m.flags)){var A=hi(l);e.length(A.declarations)&&e.every(A.declarations,function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports})&&cr(!J.allowUmdGlobalAccess,y,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(n))}if(l&&p&&!h&&111551==(111551&r)){var N=hi(Ho(l)),P=e.getRootDeclaration(p);N===yi(p)?or(y,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(p.name)):N.valueDeclaration&&N.valueDeclaration.pos>p.pos&&P.parent.locals&&c(P.parent.locals,N.escapedName,r)===N&&or(y,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(p.name),e.declarationNameToString(y))}l&&y&&111551&r&&2097152&l.flags&&function(t,n,r){if(!e.isValidTypeOnlyAliasUseSite(r)){var i=Yr(t);if(i){var a=e.typeOnlyDeclarationIsExport(i),o=a?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,s=a?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,c=e.unescapeLeadingUnderscores(n);e.addRelatedInfo(or(r,o,c),e.createDiagnosticForNode(i,s,c))}}}(l,n,y)}return l}if(i&&(!y||!(function(t,n,r){if(!e.isIdentifier(t)||t.escapedText!==n||ox(t)||Jf(t))return!1;for(var i=e.getThisContainer(t,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=yi(a.parent);if(!o)break;if(Gs(eo(o),n))return or(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Ar(r),Yi(o)),!0;if(a===i&&!e.hasSyntacticModifier(a,32)&&Gs(wo(o).thisType,n))return or(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Ar(r)),!0}a=a.parent}return!1}(y,n,a)||Pr(y)||function(t,n,r){var i=1920|(e.isInJSFile(t)?111551:0);if(r===i){var a=Hr(kr(t,n,788968&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(Gs(wo(a),s))return or(o,e.Diagnostics.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,e.unescapeLeadingUnderscores(n),e.unescapeLeadingUnderscores(s)),!0}return or(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(n)),!0}}return!1}(y,n,r)||function(t,n){return!(!Fr(n)||267!==t.parent.kind||(or(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,n),0))}(y,n)||function(t,n,r){if(111551&r){if(Fr(n))return or(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(n)),!0;var i=Hr(kr(t,n,788544,void 0,void 0,!1));if(i&&!(1024&i.flags))return or(t,function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(n)?e.Diagnostics._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:e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(n)),!0}return!1}(y,n,r)||function(t,n,r){if(111127&r){if(Hr(kr(t,n,1024,void 0,void 0,!1)))return or(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(n)),!0}else if(788544&r&&Hr(kr(t,n,1536,void 0,void 0,!1)))return or(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(n)),!0;return!1}(y,n,r)||function(t,n,r){if(788584&r){var i=Hr(kr(t,n,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return or(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(n)),!0}return!1}(y,n,r)))){var O=void 0;if(u&&Pn<10&&(O=Nm(m,n,r))){var F=Yi(O),I=or(y,u,Ar(a),F);O.valueDeclaration&&e.addRelatedInfo(I,e.createDiagnosticForNode(O.valueDeclaration,e.Diagnostics._0_is_declared_here,F))}O||or(y,i,Ar(a)),Pn++}}function Tr(t,n){return 206!==t.kind&&205!==t.kind?e.isTypeQueryNode(t)||(e.isFunctionLikeDeclaration(t)||162===t.kind&&!e.hasSyntacticModifier(t,32))&&(!n||n!==t.name):!(n&&n===t.name||!t.asteriskToken&&!e.hasSyntacticModifier(t,256)&&e.getImmediatelyInvokedFunctionExpression(t))}function wr(e){switch(e.kind){case 248:case 249:case 250:case 252:case 251:case 253:return!0;default:return!1}}function Ar(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function Nr(t,n){for(var r=0,i=t.declarations;r=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",c=r.exports.get("export=").valueDeclaration,u=or(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Yi(r),s);e.addRelatedInfo(u,e.createDiagnosticForNode(c,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,s))}else!function(t,n){var r,i;if(null===(r=t.exports)||void 0===r?void 0:r.has(n.symbol.escapedName))or(n.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Yi(t),Yi(n.symbol));else{var a=or(n.name,e.Diagnostics.Module_0_has_no_default_export,Yi(t)),o=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(o){var s=e.find(o.declarations,function(t){var n,r;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(r=null===(n=ii(t,t.moduleSpecifier))||void 0===n?void 0:n.exports)||void 0===r?void 0:r.has("default")))});s&&e.addRelatedInfo(a,e.createDiagnosticForNode(s,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(r,t);return Qr(t,i,void 0,!1),i}}(t,n);case 260:return function(e,t){var n=e.parent.parent.moduleSpecifier,r=ii(e,n),i=ui(r,n,t,!1);return Qr(e,r,i,!1),i}(t,n);case 266:return function(e,t){var n=e.parent.moduleSpecifier,r=n&&ii(e,n),i=n&&ui(r,n,t,!1);return Qr(e,r,i,!1),i}(t,n);case 262:return function(e,t){var n=Jr(e.parent.parent.parent,e,t);return Qr(e,void 0,n,!1),n}(t,n);case 267:return Vr(t,901119,n);case 263:case 213:return function(t,n){var r=Wr(e.isExportAssignment(t)?t.expression:t.right,n);return Qr(t,void 0,r,!1),r}(t,n);case 256:return function(e,t){var n=ci(e.parent.symbol,t);return Qr(e,void 0,n,!1),n}(t,n);case 286:return ni(t.name,901119,!0,n);case 285:return function(e,t){return Wr(e.initializer,t)}(t,n);case 198:return function(t,n){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind)return Wr(t.parent.right,n)}(t,n);default:return e.Debug.fail()}}function Kr(e,t){return void 0===t&&(t=901119),!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function Hr(e,t){return!t&&Kr(e)?Gr(e):e}function Gr(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var n=vr(t);if(n.target)n.target===ve&&(n.target=ye);else{n.target=ve;var r=Lr(t);if(!r)return e.Debug.fail();var i=qr(r);n.target===ve?n.target=i||ye:or(r,e.Diagnostics.Circular_definition_of_import_alias_0,Yi(t))}return n.target}function Qr(t,n,r,i){if(!t)return!1;var a=yi(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return vr(a).typeOnlyDeclaration=t,!0;var o=vr(a);return Xr(o,n,i)||Xr(o,r,i)}function Xr(t,n,r){var i,a,o;if(n&&(void 0===t.typeOnlyDeclaration||r&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=n.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:n,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:vr(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function Yr(e){if(2097152&e.flags)return vr(e).typeOnlyDeclaration||void 0}function Zr(e){var t=yi(e),n=Gr(t);n&&(n===ye||111551&n.flags&&!Ax(n)&&!Yr(t))&&$r(t)}function $r(t){var n=vr(t);if(!n.referenced){n.referenced=!0;var r=Lr(t);if(!r)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(r)){var i=Hr(t);(i===ye||111551&i.flags)&&Ay(r.moduleReference)}}}function ei(t,n){return 78===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),78===t.kind||156===t.parent.kind?ni(t,1920,!1,n):(e.Debug.assert(257===t.parent.kind),ni(t,901119,!1,n))}function ti(e,t){return e.parent?ti(e.parent,t)+"."+Yi(e):Yi(e,t,void 0,20)}function ni(t,n,r,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&n:0);if(78===t.kind){var c=n===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:Uf(e.getFirstIdentifier(t)),u=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,n){if(Xc(t.parent)){var r=function(t){if(!e.findAncestor(t,function(t){return e.isJSDocNode(t)||4194304&t.flags?e.isJSDocTypeAlias(t):"quit"})){var n=e.getJSDocHost(t);if(e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&3===e.getAssignmentDeclarationKind(n.expression)&&(r=yi(n.expression.left)))return ri(r);if((e.isObjectLiteralMethod(n)||e.isPropertyAssignment(n))&&e.isBinaryExpression(n.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent)&&(r=yi(n.parent.parent.left)))return ri(r);var r,i=e.getEffectiveJSDocHost(t);if(i&&e.isFunctionLike(i))return(r=yi(i))&&r.valueDeclaration}}(t.parent);if(r)return kr(r,t.escapedText,n,void 0,t,!0)}}(t,n):void 0;if(!(o=hi(kr(a||t,t.escapedText,n,r||u?void 0:c,t,!0))))return hi(u)}else{if(156!==t.kind&&198!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var l=156===t.kind?t.right:t.name,_=ni(156===t.kind?t.left:t.expression,s,r,!1,a);if(!_||e.nodeIsMissing(l))return;if(_===ye)return _;if(e.isInJSFile(t)&&_.valueDeclaration&&e.isVariableDeclaration(_.valueDeclaration)&&_.valueDeclaration.initializer&&Nh(_.valueDeclaration.initializer)){var d=_.valueDeclaration.initializer.arguments[0],f=ii(d,d);if(f){var p=ci(f);p&&(_=p)}}if(!(o=hi(Dr(fi(_),l.escapedText,n))))return void(r||or(l,e.Diagnostics.Namespace_0_has_no_exported_member_1,ti(_),e.declarationNameToString(l)))}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(2097152&o.flags||263===t.parent.kind)&&Qr(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&n||i?o:Gr(o)}}function ri(t){var n=t.parent.valueDeclaration;if(n)return(e.isAssignmentDeclaration(n)?e.getAssignedExpandoInitializer(n):e.hasOnlyExpressionInitializer(n)?e.getDeclaredExpandoInitializer(n):void 0)||n}function ii(t,n,r){var i=e.getEmitModuleResolutionKind(J)===e.ModuleResolutionKind.Classic;return ai(t,n,r?void 0:i?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations)}function ai(t,n,r,i){return void 0===i&&(i=!1),e.isStringLiteralLike(n)?oi(t,n.text,r,n,i):void 0}function oi(n,r,i,a,o){void 0===o&&(o=!1),e.startsWith(r,"@types/")&&or(a,e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(r,"@types/"),r);var s=ac(r,!0);if(s)return s;var c=e.getSourceFileOfNode(n),u=e.getResolvedModule(c,r),l=u&&e.getResolutionDiagnostic(J,u),_=u&&!l&&t.getSourceFile(u.resolvedFileName);if(_)return _.symbol?(u.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(u.extension)&&si(!1,a,u,r),hi(_.symbol)):void(i&&or(a,e.Diagnostics.File_0_is_not_a_module,_.fileName));if(_t){var d=e.findBestPatternMatch(_t,function(e){return e.pattern},r);if(d)return hi(dt&&dt.get(r)||d.symbol)}if(u&&!e.resolutionExtensionIsTSOrJson(u.extension)&&void 0===l||l===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?or(a,e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,r,u.resolvedFileName):si(X&&!!i,a,u,r);else if(i){if(u){var f=t.getProjectReferenceRedirect(u.resolvedFileName);if(f)return void or(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,f,u.resolvedFileName)}if(l)or(a,l,r,u.resolvedFileName);else{var p=e.tryExtractTSExtension(r);p?or(a,e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,p,e.removeExtension(r,p)):!J.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(J)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(J)?or(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r):or(a,i,r)}}}function si(t,n,r,i){var a,o=r.packageId,s=r.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,p().has(e.getTypesPackageName(a))?e.chainDiagnosticMessages(void 0,e.Diagnostics.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.name,e.mangleScopedPackageName(o.name)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;cr(t,n,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function ci(t,n){if(null==t?void 0:t.exports){var r=function(t,n){if(!t||t===ye||t===n||1===n.exports.size||2097152&t.flags)return t;var r=vr(t);if(r.cjsExportMerged)return r.cjsExportMerged;var i=33554432&t.flags?t:fr(t);return i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable()),n.exports.forEach(function(e,t){"export="!==t&&i.exports.set(t,i.exports.has(t)?pr(i.exports.get(t),e):e)}),vr(i).cjsExportMerged=i,r.cjsExportMerged=i}(hi(Hr(t.exports.get("export="),n)),hi(t));return hi(r)||t}}function ui(t,n,r,i){var a=ci(t,r);if(!r&&a){if(!(i||1539&a.flags||e.getDeclarationOfKind(a,294)))return or(n,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,W>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop"),a;if(J.esModuleInterop){var o=n.parent;if(e.isImportDeclaration(o)&&e.getNamespaceDeclarationNode(o)||e.isImportCall(o)){var s=eo(a),c=Qs(s,0);if(c&&c.length||(c=Qs(s,1)),c&&c.length){var u=Ah(s,a,t),l=lr(a.flags,a.escapedName);l.declarations=a.declarations?a.declarations.slice():[],l.parent=a.parent,l.target=a,l.originatingImport=o,a.valueDeclaration&&(l.valueDeclaration=a.valueDeclaration),a.constEnumOnlyModule&&(l.constEnumOnlyModule=!0),a.members&&(l.members=new e.Map(a.members)),a.exports&&(l.exports=new e.Map(a.exports));var _=xs(u);return l.type=Mi(l,_.members,e.emptyArray,e.emptyArray,_.stringIndexInfo,_.numberIndexInfo),l}}}}return a}function li(e){return void 0!==e.exports.get("export=")}function _i(e){return rc(pi(e))}function di(e,t){var n=pi(t);if(n)return n.get(e)}function fi(e){return 6256&e.flags?qo(e,"resolvedExports"):1536&e.flags?pi(e):e.exports||U}function pi(e){var t=vr(e);return t.resolvedExports||(t.resolvedExports=mi(e))}function gi(t,n,r,i){n&&n.forEach(function(n,a){if("default"!==a){var o=t.get(a);if(o){if(r&&i&&o&&Hr(o)!==Hr(n)){var s=r.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,n),r&&i&&r.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}})}function mi(t){var n=[];return function t(r){if(r&&r.exports&&e.pushIfUnique(n,r)){var i=new e.Map(r.exports),a=r.exports.get("__export");if(a){for(var o=e.createSymbolTable(),s=new e.Map,c=0,u=a.declarations;c=l?u.substr(0,l-"...".length)+"...":u}function ea(e,t){var n=na(e.symbol)?$i(e,e.symbol.valueDeclaration):$i(e),r=na(t.symbol)?$i(t,t.symbol.valueDeclaration):$i(t);return n===r&&(n=ta(e),r=ta(t)),[n,r]}function ta(e){return $i(e,void 0,64)}function na(t){return t&&t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!f_(t.valueDeclaration)}function ra(e){return void 0===e&&(e=0),814775659&e}function ia(t,n,r,i){return void 0===r&&(r=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===t.kind||3===t.kind?e.factory.createToken(127):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&te.typeToTypeNode(t.type,n,70222336|ra(r))),o=e.createPrinter({removeComments:!0}),s=n&&e.getSourceFileOfNode(n);return o.writeNode(4,a,s,i),i}}function aa(e){return 8===e?"private":16===e?"protected":"public"}function oa(t){return t&&t.parent&&254===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function sa(t){return 294===t.kind||e.isAmbientModule(t)}function ca(t,n){var r=vr(t).nameType;if(r){if(384&r.flags){var i=""+r.value;return e.isIdentifierText(i,J.target)||Mg(i)?Mg(i)&&e.startsWith(i,"-")?"["+i+"]":i:'"'+e.escapeString(i,34)+'"'}if(8192&r.flags)return"["+ua(r.symbol,n)+"]"}}function ua(t,n){if(n&&"default"===t.escapedName&&!(16384&n.flags)&&(!(16777216&n.flags)||!t.declarations||n.enclosingDeclaration&&e.findAncestor(t.declarations[0],sa)!==e.findAncestor(n.enclosingDeclaration,sa)))return"default";if(t.declarations&&t.declarations.length){var r=e.firstDefined(t.declarations,function(t){return e.getNameOfDeclaration(t)?t:void 0}),i=r&&e.getNameOfDeclaration(r);if(r&&i){if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(t))){var a=vr(t).nameType;if(a&&384&a.flags){var o=ca(t,n);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(r||(r=t.declarations[0]),r.parent&&246===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(r.kind){case 218:case 205:case 206:return!n||n.encounteredError||131072&n.flags||(n.encounteredError=!0),218===r.kind?"(Anonymous class)":"(Anonymous function)"}}var s=ca(t,n);return void 0!==s?s:e.symbolName(t)}function la(t){if(t){var n=br(t);return void 0===n.isVisible&&(n.isVisible=!!function(){switch(t.kind){case 320:case 327:case 321:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 195:return la(t.parent.parent);case 246:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 253:case 249:case 250:case 251:case 248:case 252:case 257:if(e.isExternalModuleAugmentation(t))return!0;var n=ma(t);return 1&e.getCombinedModifierFlags(t)||257!==t.kind&&294!==n.kind&&8388608&n.flags?la(n):xr(n);case 162:case 161:case 166:case 167:case 164:case 163:if(e.hasEffectiveModifier(t,24))return!1;case 165:case 169:case 168:case 170:case 159:case 254:case 173:case 174:case 176:case 172:case 177:case 178:case 181:case 182:case 185:case 191:return la(t.parent);case 259:case 260:case 262:return!1;case 158:case 294:case 256:return!0;case 263:default:return!1}}()),n.isVisible}return!1}function _a(t,n){var r,i,a;return t.parent&&263===t.parent.kind?r=kr(t,t.escapedText,2998271,void 0,t,!1):267===t.parent.kind&&(r=Vr(t.parent,2998271)),r&&((a=new e.Set).add(O(r)),function t(r){e.forEach(r,function(r){var o=Mr(r)||r;if(n?br(r).isVisible=!0:e.pushIfUnique(i=i||[],o),e.isInternalModuleImportEqualsDeclaration(r)){var s=kr(r,e.getFirstIdentifier(r.moduleReference).escapedText,901119,void 0,void 0,!1);s&&a&&e.tryAddToSet(a,O(s))&&t(s.declarations)}})}(r.declarations)),i}function da(e,t){var n=fa(e,t);if(n>=0){for(var r=wn.length,i=n;i=0;n--){if(pa(wn[n],Nn[n]))return-1;if(wn[n]===e&&Nn[n]===t)return n}return-1}function pa(t,n){switch(n){case 0:return!!vr(t).type;case 5:return!!br(t).resolvedEnumType;case 2:return!!vr(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!t.resolvedTypeArguments;case 7:return!!t.baseTypesResolved}return e.Debug.assertNever(n)}function ga(){return wn.pop(),Nn.pop(),An.pop()}function ma(t){return e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 246:case 247:case 262:case 261:case 260:case 259:return!1;default:return!0}}).parent}function ha(e,t){var n=Gs(e,t);return n?eo(n):void 0}function ya(e){return e&&0!=(1&e.flags)}function va(e){var t=yi(e);return t&&vr(t).type||wa(e,!1)}function ba(t,n,r){if(131072&(t=yp(t,function(e){return!(98304&e.flags)})).flags)return Ze;if(1048576&t.flags)return bp(t,function(e){return ba(e,n,r)});var i=Pu(e.map(n,Uu));if(Yu(t)||Zu(i)){if(131072&i.flags)return t;var a=Gt||(Gt=iu("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return a?Jc(a,[t,i]):Ce}for(var o=e.createSymbolTable(),s=0,c=ks(t);s=2?(i=be,du(lu(!0),[i])):St;var c=e.map(a,function(t){return e.isOmittedExpression(t)?be:ja(t,n,r)}),u=e.findLastIndex(a,function(t){return!(t===s||e.isOmittedExpression(t)||Ng(t))},a.length-1)+1,l=bu(c,e.map(a,function(e,t){return e===s?4:t>=u?2:1}));return n&&((l=Rc(l)).pattern=t,l.objectFlags|=1048576),l}(t,n,r)}function za(e,t){return Ja(wa(e,!0),e,t)}function Ja(t,n,r){return t?(r&&_f(n,t),8192&t.flags&&(e.isBindingElement(n)||!n.type)&&t.symbol!==yi(n)&&(t=je),sf(t)):(t=e.isParameter(n)&&n.dotDotDotToken?St:be,r&&(Va(n)||lf(n,t)),t)}function Va(t){var n=e.getRootDeclaration(t);return cv(159===n.kind?n.parent:n)}function Wa(t){var n=e.getEffectiveTypeAnnotationNode(t);if(n)return Rl(n)}function qa(t){if(t)return 166===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function Ka(e){var t=qa(e);return t&&Rl(t)}function Ha(e){return gc(_c(e))}function Ga(t){var n=vr(t);return n.type||(n.type=function(t){if(!da(t,0))return Ce;var n=Qa(t);return ga()||(n=be,X&&or(e.getDeclarationOfKind(t,166),e.Diagnostics._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,Yi(t))),n}(t))}function Qa(t){var n=e.getDeclarationOfKind(t,166),r=e.getDeclarationOfKind(t,167);if(n&&e.isInJSFile(n)){var i=ka(n);if(i)return i}return Ka(n)||Ka(r)||(n&&n.body?ey(n):(r?cv(r)||cr(X,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Yi(t)):(e.Debug.assert(!!n,"there must exist a getter as we are current checking either setter or getter in this function"),cv(n)||cr(X,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Yi(t))),be))}function Xa(t){var n=po(vo(t));return 8650752&n.flags?n:2097152&n.flags?e.find(n.types,function(e){return!!(8650752&e.flags)}):void 0}function Ya(t){var n=vr(t),r=n;if(!n.type){var i=t.valueDeclaration&&e.getDeclarationOfExpando(t.valueDeclaration);if(i){var a=kh(t,yi(i));a&&(t=n=a)}r.type=n.type=function(t){var n=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return be;if(n&&(213===n.kind||e.isAccessExpression(n)&&213===n.parent.kind))return Ia(t);if(512&t.flags&&n&&e.isSourceFile(n)&&n.commonJsModuleIndicator){var r=ci(t);if(r!==t){if(!da(t,0))return Ce;var i=hi(t.exports.get("export=")),a=Ia(i,i===r?void 0:r);return ga()?a:$a(t)}}var o=Ni(16,t);if(32&t.flags){var s=Xa(t);return s?Bu([o,s]):o}return K&&16777216&t.flags?qd(o):o}(t)}return n.type}function Za(e){var t=vr(e);return t.type||(t.type=Eo(e))}function $a(t){var n=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(n)?(or(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Yi(t)),Ce):(X&&(159!==n.kind||n.initializer)&&or(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Yi(t)),be)}function eo(t){var n=e.getCheckFlags(t);return 65536&n?function(t){var n=vr(t);return n.type||(e.Debug.assertIsDefined(n.deferralParent),e.Debug.assertIsDefined(n.deferralConstituents),n.type=1048576&n.deferralParent.flags?Pu(n.deferralConstituents):Bu(n.deferralConstituents)),n.type}(t):1&n?function(e){var t=vr(e);if(!t.type){if(!da(e,0))return t.type=Ce;var n=c_(eo(t.target),t.mapper);ga()||(n=$a(e)),t.type=n}return t.type}(t):262144&n?function(t){if(!t.type){if(!da(t,0))return t.mappedType.containsError=!0,Ce;var n=c_(fs(t.mappedType.target||t.mappedType),t.mapper),r=K&&16777216&t.flags&&!gy(n,49152)?qd(n):524288&t.checkFlags?tp(n,524288):n;ga()||(or(_,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Yi(t),$i(t.mappedType)),r=Ce),t.type=r,t.mapper=void 0}return t.type}(t):8192&n?function(e){return Ef(e.propertyType,e.mappedType,e.constraintType)}(t):7&t.flags?function(t){var n=vr(t);if(!n.type){var r=function(t){if(4194304&t.flags)return(n=wo(vi(t))).typeParameters?Lc(n,e.map(n.typeParameters,function(e){return be})):n;var n;if(t===se)return be;if(134217728&t.flags){var r=yi(e.getSourceFileOfNode(t.valueDeclaration)),i=e.createSymbolTable();return i.set("exports",r),Mi(t,i,e.emptyArray,e.emptyArray,void 0,void 0)}var a,o=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(o)){if(!o.type)return be;var s=dx(o.type);return ya(s)||s===ke?s:Ce}if(e.isSourceFile(o)&&e.isJsonSourceFile(o))return o.statements.length?sf(Ad(Hy(o.statements[0].expression))):Ze;if(!da(t,0))return 512&t.flags&&!(67108864&t.flags)?Ya(t):$a(t);if(263===o.kind)a=Ja(Ay(o.expression),o);else if(e.isBinaryExpression(o)||e.isInJSFile(o)&&(e.isCallExpression(o)||(e.isPropertyAccessExpression(o)||e.isBindableStaticElementAccessExpression(o))&&e.isBinaryExpression(o.parent)))a=Ia(t);else if(e.isPropertyAccessExpression(o)||e.isElementAccessExpression(o)||e.isIdentifier(o)||e.isStringLiteralLike(o)||e.isNumericLiteral(o)||e.isClassDeclaration(o)||e.isFunctionDeclaration(o)||e.isMethodDeclaration(o)&&!e.isObjectLiteralMethod(o)||e.isMethodSignature(o)||e.isSourceFile(o)){if(9136&t.flags)return Ya(t);a=e.isBinaryExpression(o.parent)?Ia(t):Wa(o)||be}else if(e.isPropertyAssignment(o))a=Wa(o)||Ly(o);else if(e.isJsxAttribute(o))a=Wa(o)||Jg(o);else if(e.isShorthandPropertyAssignment(o))a=Wa(o)||My(o.name,0);else if(e.isObjectLiteralMethod(o))a=Wa(o)||Ry(o,0);else if(e.isParameter(o)||e.isPropertyDeclaration(o)||e.isPropertySignature(o)||e.isVariableDeclaration(o)||e.isBindingElement(o)||e.isJSDocPropertyLikeTag(o))a=za(o,!0);else if(e.isEnumDeclaration(o))a=Ya(t);else if(e.isEnumMember(o))a=Za(t);else{if(!e.isAccessor(o))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(o.kind)+" for "+e.Debug.formatSymbol(t));a=Qa(t)}return ga()?a:512&t.flags&&!(67108864&t.flags)?Ya(t):$a(t)}(t);n.type||(n.type=r)}return n.type}(t):9136&t.flags?Ya(t):8&t.flags?Za(t):98304&t.flags?Ga(t):2097152&t.flags?function(e){var t=vr(e);if(!t.type){var n=Gr(e);t.type=111551&n.flags?eo(n):Ce}return t.type}(t):Ce}function to(t,n){return void 0!==t&&void 0!==n&&0!=(4&e.getObjectFlags(t))&&t.target===n}function no(t){return 4&e.getObjectFlags(t)?t.target:t}function ro(t,n){return function t(r){if(7&e.getObjectFlags(r)){var i=no(r);return i===n||e.some(mo(i),t)}return!!(2097152&r.flags)&&e.some(r.types,t)}(t)}function io(t,n){for(var r=0,i=n;r0)return!0;if(8650752&e.flags){var t=Os(e);return!!t&&co(t)}return!1}function lo(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function _o(t,n,r){var i=e.length(n),a=e.isInJSFile(r);return e.filter(Xs(t,1),function(t){return(a||i>=uc(t.typeParameters))&&i<=e.length(t.typeParameters)})}function fo(t,n,r){var i=_o(t,n,r),a=e.map(n,Rl);return e.sameMap(i,function(t){return e.some(t.typeParameters)?xc(t,a,e.isInJSFile(r)):t})}function po(t){if(!t.resolvedBaseConstructorType){var n=e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration),r=lo(t);if(!r)return t.resolvedBaseConstructorType=Ee;if(!da(t,1))return Ce;var i=Hy(r.expression);if(n&&r!==n&&(e.Debug.assert(!n.typeArguments),Hy(n.expression)),2621440&i.flags&&xs(i),!ga())return or(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Yi(t.symbol)),t.resolvedBaseConstructorType=Ce;if(!(1&i.flags||i===Ne||uo(i))){var a=or(r.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,$i(i));if(262144&i.flags){var o=Oc(i),s=ke;if(o){var c=Xs(o,1);c[0]&&(s=hc(c[0]))}e.addRelatedInfo(a,e.createDiagnosticForNode(i.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Yi(i.symbol),$i(s)))}return t.resolvedBaseConstructorType=Ce}t.resolvedBaseConstructorType=i}return t.resolvedBaseConstructorType}function go(t,n){or(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,$i(n,void 0,2))}function mo(t){if(!t.baseTypesResolved){if(da(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[ho(t)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var n=Bs(po(t));if(!(2621441&n.flags))return t.resolvedBaseTypes=e.emptyArray;var r,i=lo(t),a=n.symbol?wo(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var n=t.length-1,r=jc(e);return t[n].symbol!==r[n].symbol}return!0}(a))r=zc(i,n.symbol);else if(1&n.flags)r=n;else{var o=fo(n,i.typeArguments,i);if(!o.length)return or(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;r=hc(o[0])}if(r===Ce)return t.resolvedBaseTypes=e.emptyArray;var s=Vs(r);if(!yo(s)){var c=Hs(void 0,r),u=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,$i(s));return Hn.add(e.createDiagnosticForNodeFromMessageChain(i.expression,u)),t.resolvedBaseTypes=e.emptyArray}if(t===s||ro(s,t))return or(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,$i(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[s]}(t),64&t.symbol.flags&&function(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var n=0,r=t.symbol.declarations;n0)return;for(var i=1;i1&&(r=void 0===r?i:-1);for(var a=0,o=t[i];a1){var l=s.thisParameter,_=e.forEach(c,function(e){return e.thisParameter});_&&(l=$d(_,Bu(e.mapDefined(c,function(e){return e.thisParameter&&eo(e.thisParameter)})))),(u=Zo(s,c)).thisParameter=l}(n||(n=[])).push(u)}}}}if(!e.length(n)&&-1!==r){for(var d=t[void 0!==r?r:0],f=d.slice(),p=function(t){if(t!==d){var n=t[0];if(e.Debug.assert(!!n,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(f=n.typeParameters&&e.some(f,function(e){return!!e.typeParameters})?void 0:e.map(f,function(t){return function(t,n){var r=t.declaration,i=function(e,t){for(var n=zh(e),r=zh(t),i=n>=r?e:t,a=i===e?t:e,o=i===e?n:r,s=Vh(e)||Vh(t),c=s&&!Vh(i),u=new Array(o+(c?1:0)),l=0;l=Jh(i)&&l>=Jh(a),p=l>=n?void 0:Mh(e,l),g=l>=r?void 0:Mh(t,l),m=lr(1|(f&&!d?16777216:0),(p===g?p:p?g?void 0:p:g)||"arg"+l);m.type=d?pu(_):_,u[l]=m}if(c){var h=lr(1,"args");h.type=pu(Bh(a,o)),u[o]=h}return u}(t,n),a=function(e,t){return e&&t?$d(e,Bu([eo(e),eo(t)])):e||t}(t.thisParameter,n.thisParameter),o=Math.max(t.minArgumentCount,n.minArgumentCount),s=Xo(r,t.typeParameters||n.typeParameters,a,i,void 0,void 0,o,19&(t.flags|n.flags));return s.unionSignatures=e.concatenate(t.unionSignatures||[t],[n]),s}(t,n)})))return"break"}},g=0,m=t;g0}),r=e.map(t,co);if(n>0&&n===e.countWhere(r,function(e){return e})){var i=r.indexOf(!0);r[i]=!1}return r}function us(t,n){for(var r=function(n){t&&!e.every(t,function(e){return!gd(e,n,!1,!1,!1,v_)})||(t=e.append(t,n))},i=0,a=n;i=_&&o<=d){var f=d?Cc(l,lc(a,l.typeParameters,_,i)):Yo(l);f.typeParameters=t.localTypeParameters,f.resolvedReturnType=t,s.push(f)}}return s}(l)),t.constructSignatures=i}}}(t):32&t.objectFlags&&function(t){var n,r,i=e.createSymbolTable();Ii(t,U,e.emptyArray,e.emptyArray,void 0,void 0);var a=_s(t),o=ds(t),s=fs(t.target||t),c=Bs(ms(t)),u=hs(t),l=Z?128:8576;if(gs(t)){for(var _=0,d=ks(c);_0&&(_=e.map(_,function(e){var t=Yo(e);return t.resolvedReturnType=function(e,t,n,r){for(var i=[],a=0;a=50)return or(_,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),n=!0,t.immediateBaseConstraint=it;E++;var r=function(e){if(262144&e.flags){var t=Oc(e);return e.isThisType||!t?t:i(t)}if(3145728&e.flags){for(var n=e.types,r=[],a=0,o=n;a=7))||Ze:528&n.flags?xt:12288&n.flags?su(V>=2):67108864&n.flags?Ze:4194304&n.flags?Ge:2&n.flags&&!K?Ze:n}function js(e){return Vs(Bs(Vs(e)))}function Us(t,n){for(var r,i,a,o=1048576&t.flags,s=o?0:16777216,c=4,u=0,l=0,_=t.types;l<_.length;l++)if(!((S=Bs(_[l]))===Ce||131072&S.flags)){var d=(C=Gs(S,n))?e.getDeclarationModifierFlagsFromSymbol(C):0;if(C){if(o?s|=16777216&C.flags:s&=C.flags,r){if(C!==r){i||(i=new e.Map).set(O(r),r);var f=O(C);i.has(f)||i.set(f,C)}}else r=C;u|=(_y(C)?8:0)|(24&d?0:256)|(16&d?512:0)|(8&d?1024:0)|(32&d?2048:0),om(C)||(c=2)}else if(o){var p=!Uo(n)&&(Mg(n)&&$s(S,1)||$s(S,0));p?(u|=32|(p.isReadonly?8:0),a=e.append(a,Fd(S)?Ld(S)||Ee:p.type)):Mf(S)?(u|=32,a=e.append(a,Ee)):u|=16}}if(r&&!(o&&(i||48&u)&&1536&u)){if(!(i||16&u||a))return r;for(var g,m,h,y,v=[],b=!1,x=0,D=i?e.arrayFrom(i.values()):[r];x2?(k.checkFlags|=65536,k.deferralParent=t,k.deferralConstituents=v):k.type=o?Pu(v):Bu(v),k}}function zs(t,n){var r=t.propertyCache||(t.propertyCache=e.createSymbolTable()),i=r.get(n);return i||(i=Us(t,n))&&r.set(n,i),i}function Js(t,n){var r=zs(t,n);return!r||16&e.getCheckFlags(r)?void 0:r}function Vs(t){return 1048576&t.flags&&268435456&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var n=e.sameMap(t.types,Vs);if(n===t.types)return t;var r=Pu(n);return 1048576&r.flags&&(r.resolvedReducedType=r),r}(t)):2097152&t.flags?(268435456&t.objectFlags||(t.objectFlags|=268435456|(e.some(Ss(t),Ws)?536870912:0)),536870912&t.objectFlags?ze:t):t}function Ws(e){return qs(e)||Ks(e)}function qs(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&eo(t).flags))}function Ks(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function Hs(t,n){if(536870912&e.getObjectFlags(n)){var r=e.find(Ss(n),qs);if(r)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,$i(n,void 0,536870912),Yi(r));var i=e.find(Ss(n),Ks);if(i)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,$i(n,void 0,536870912),Yi(i))}return t}function Gs(e,t){if(524288&(e=js(e)).flags){var n=xs(e),r=n.members.get(t);if(r&&ki(r))return r;var i=n===rt?pt:n.callSignatures.length?gt:n.constructSignatures.length?mt:void 0;if(i){var a=Cs(i,t);if(a)return a}return Cs(ft,t)}if(3145728&e.flags)return Js(e,t)}function Qs(t,n){if(3670016&t.flags){var r=xs(t);return 0===n?r.callSignatures:r.constructSignatures}return e.emptyArray}function Xs(e,t){return Qs(js(e),t)}function Ys(e,t){if(3670016&e.flags){var n=xs(e);return 0===t?n.stringIndexInfo:n.numberIndexInfo}}function Zs(e,t){var n=Ys(e,t);return n&&n.type}function $s(e,t){return Ys(js(e),t)}function ec(e,t){return Zs(js(e),t)}function tc(t,n){if(Zd(t)){for(var r=[],i=0,a=ks(t);i=0),r>=Jh(n,!0)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function sc(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var n=t.typeExpression;return t.isBracketed||!!n&&303===n.type.kind}function cc(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function uc(t){var n,r=0;if(t)for(var i=0;i=r&&o<=a){for(var s=t?t.slice():[],c=o;cu.arguments.length&&!p||ic(d)||(o=i.length)}if(!(166!==t.kind&&167!==t.kind||Jo(t)||c&&s)){var g=166===t.kind?167:166,m=e.getDeclarationOfKind(yi(t),g);m&&(s=(n=gD(m))&&n.symbol)}var h=165===t.kind?vo(hi(t.parent.symbol)):void 0,y=h?h.localTypeParameters:nc(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,n){if(e.isJSDocSignature(t)||!fc(t))return!1;var r=e.lastOrUndefined(t.parameters),i=r?e.getJSDocParameterTags(r):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0}),o=lr(3,"args",32768);return o.type=a?pu(Rl(a.type)):St,a&&n.pop(),n.push(o),!0}(t,i))&&(a|=1),r.resolvedSignature=Xo(t,y,s,i,void 0,void 0,o,a)}return r.resolvedSignature}function dc(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var n=e.getJSDocTypeTag(t),r=n&&n.typeExpression&&Km(Rl(n.typeExpression));return r&&Sc(r)}}function fc(t){var n=br(t);return void 0===n.containsArgumentsReference&&(n.containsArgumentsReference=!!(8192&n.flags)||function t(n){if(!n)return!1;switch(n.kind){case 78:return"arguments"===n.escapedText&&e.isExpressionNode(n);case 162:case 164:case 166:case 167:return 157===n.name.kind&&t(n.name);default:return!e.nodeStartsNewLexicalEnvironment(n)&&!e.isPartOfTypeNode(n)&&!!e.forEachChild(n,t)}}(t.body)),n.containsArgumentsReference}function pc(t){if(!t)return e.emptyArray;for(var n=[],r=0;r0&&i.body){var a=t.declarations[r-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}n.push(_c(i))}}return n}function gc(e){if(e.thisParameter)return eo(e.thisParameter)}function mc(t){if(!t.resolvedTypePredicate){if(t.target){var n=mc(t.target);t.resolvedTypePredicate=n?cc((o=n).kind,o.parameterName,o.parameterIndex,c_(o.type,t.mapper)):rn}else if(t.unionSignatures)t.resolvedTypePredicate=function(e){for(var t,n=[],r=0,i=e;r=0}function bc(e){if(B(e)){var t=eo(e.parameters[e.parameters.length-1]),n=Fd(t)?Ld(t):t;return n&&ec(n,1)}}function xc(e,t,n,r){var i=Dc(e,lc(t,e.typeParameters,uc(e.typeParameters),n));if(r){var a=Hm(hc(i));if(a){var o=Yo(a);o.typeParameters=r;var s=Yo(i);return s.resolvedReturnType=Ec(o),s}}return i}function Dc(t,n){var r=t.instantiations||(t.instantiations=new e.Map),i=Ic(n),a=r.get(i);return a||r.set(i,a=Cc(t,n)),a}function Cc(e,t){return $l(e,function(e,t){return Jl(e.typeParameters,t)}(e,t),!0)}function Sc(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return $l(e,Hl(e.typeParameters),!0)}(e)):e}function kc(t){var n=t.typeParameters;if(n){var r=Hl(n);return $l(t,Jl(n,e.map(n,function(e){return c_(Os(e),r)||ke})),!0)}return t}function Ec(t){if(!t.isolatedSignatureType){var n=t.declaration?t.declaration.kind:0,r=165===n||169===n||174===n,i=Ni(16);i.members=U,i.properties=e.emptyArray,i.callSignatures=r?e.emptyArray:[t],i.constructSignatures=r?[t]:e.emptyArray,t.isolatedSignatureType=i}return t.isolatedSignatureType}function Tc(e){return e.members.get("__index")}function wc(t,n){var r=1===n?143:146,i=Tc(t);if(i)for(var a=0,o=i.declarations;a1&&(t+=":"+a),r+=a}return t}function Mc(t,n){for(var r=0,i=0,a=t;ii.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(or(t,o===i.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,$i(r,void 0,2),o,i.length),!s)return Ce}return 172===t.kind&&hu(t,e.length(t.typeArguments)!==i.length)?Bc(r,t,void 0):Lc(r,e.concatenate(r.outerTypeParameters,lc(eu(t),i,o,s)))}return Yc(t,n)?r:Ce}function Jc(t,n){var r=wo(t),i=vr(t),a=i.typeParameters,o=Ic(n),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=c_(r,Jl(a,lc(n,a,uc(a),e.isInJSFile(t.valueDeclaration))))),s}function Vc(t){switch(t.kind){case 172:return t.typeName;case 220:var n=t.expression;if(e.isEntityNameExpression(n))return n}}function Wc(e,t,n){return e&&ni(e,t,n)||ye}function qc(t,n){if(n===ye)return Ce;if(96&(n=function(t){var n=t.valueDeclaration;if(n&&e.isInJSFile(n)&&!(524288&t.flags)&&!e.getExpandoInitializer(n,!1)){var r=e.isVariableDeclaration(n)?e.getDeclaredExpandoInitializer(n):e.getAssignedExpandoInitializer(n);if(r){var i=yi(r);if(i)return kh(i,t)}}}(n)||n).flags)return zc(t,n);if(524288&n.flags)return function(t,n){var r=wo(n),i=vr(n).typeParameters;if(i){var a=e.length(t.typeArguments),o=uc(i);return ai.length?(or(t,o===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Yi(n),o,i.length),Ce):Jc(n,eu(t))}return Yc(t,n)?r:Ce}(t,n);var r=Ao(n);return r?Yc(t,n)?Nl(r):Ce:111551&n.flags&&Xc(t)?function(t,n){var r=br(t);if(!r.resolvedJSDocType){var i=eo(n),a=i;if(n.valueDeclaration){var o=e.getRootDeclaration(n.valueDeclaration),s=!1;if(e.isVariableDeclaration(o)&&o.initializer){for(var c=o.initializer;e.isPropertyAccessExpression(c);)c=c.expression;s=e.isCallExpression(c)&&e.isRequireCall(c,!0)&&!!i.symbol}i.symbol&&(s||192===t.kind&&t.qualifier)&&(a=qc(t,i.symbol))}r.resolvedJSDocType=a}return r.resolvedJSDocType}(t,n)||(Wc(Vc(t),788968),eo(n)):Ce}function Kc(e,t){if(3&t.flags||t===e)return e;var n=Eu(e)+">"+Eu(t),r=ge.get(n);if(r)return r;var i=Ti(33554432);return i.baseType=e,i.substitute=t,ge.set(n,i),i}function Hc(e){return 178===e.kind&&1===e.elements.length}function Gc(e,t,n){return Hc(t)&&Hc(n)?Gc(e,t.elements[0],n.elements[0]):ul(Rl(t))===e?Rl(n):void 0}function Qc(t,n){for(var r;n&&!e.isStatement(n)&&307!==n.kind;){var i=n.parent;if(183===i.kind&&n===i.trueType){var a=Gc(t,i.checkType,i.extendsType);a&&(r=e.append(r,a))}n=i}return r?Kc(t,Bu(e.append(r,t))):t}function Xc(e){return!!(4194304&e.flags)&&(172===e.kind||192===e.kind)}function Yc(t,n){return!t.typeArguments||(or(t,e.Diagnostics.Type_0_is_not_generic,n?Yi(n):t.typeName?e.declarationNameToString(t.typeName):u),!1)}function Zc(t){if(e.isIdentifier(t.typeName)){var n=t.typeArguments;switch(t.typeName.escapedText){case"String":return Yc(t),Pe;case"Number":return Yc(t),Oe;case"Boolean":return Yc(t),Be;case"Void":return Yc(t),Ue;case"Undefined":return Yc(t),Ee;case"Null":return Yc(t),Ae;case"Function":case"function":return Yc(t),pt;case"array":return n&&n.length||X?void 0:St;case"promise":return n&&n.length||X?void 0:Yh(be);case"Object":if(n&&2===n.length){if(e.isJSDocIndexSignature(t)){var r=Rl(n[0]),i=Ac(Rl(n[1]),!1);return Mi(void 0,U,e.emptyArray,e.emptyArray,r===Pe?i:void 0,r===Oe?i:void 0)}return be}return Yc(t),X?void 0:be}}}function $c(t){var n=br(t);if(!n.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return n.resolvedSymbol=ye,n.resolvedType=Ay(t.parent.expression);var r=void 0,i=void 0;Xc(t)&&((i=Zc(t))||((r=Wc(Vc(t),788968,!0))===ye?r=Wc(Vc(t),900095):Wc(Vc(t),788968),i=qc(t,r))),i||(i=qc(t,r=Wc(Vc(t),788968))),n.resolvedSymbol=r,n.resolvedType=i}return n.resolvedType}function eu(t){return e.map(t.typeArguments,Rl)}function tu(e){var t=br(e);return t.resolvedType||(t.resolvedType=Nl(sf(Hy(e.exprName)))),t.resolvedType}function nu(t,n){function r(e){for(var t=0,n=e.declarations;t=0)return bp(n[o],function(r){return Cu(t,e.replaceElement(n,o,r))});if(e.findIndex(n,function(e,n){return!(!(8&t.elementFlags[n])||58982400&e.flags||bs(e))})<0)return Lc(t,n);for(var s,c=[],u=[],l=[],_=-1,d=function(o){var s=n[o],c=t.elementFlags[o];8&c?58982400&s.flags||bs(s)?g(s,8,null===(r=t.labeledElementDeclarations)||void 0===r?void 0:r[o]):Fd(s)?e.forEach(jc(s),function(e,t){var n;return g(e,s.target.elementFlags[t],null===(n=s.target.labeledElementDeclarations)||void 0===n?void 0:n[t])}):g(xd(s)&&ec(s,1)||Ce,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]):g(s,c,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},f=0;f=0){for(var r=_;ri.fixedLength?function(e){var t=Ld(e);return t&&pu(t)}(t)||bu(e.emptyArray):bu(jc(t).slice(n,a),i.elementFlags.slice(n,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(n,a))}function ku(t){return Pu(e.append(e.arrayOf(t.target.fixedLength,function(e){return Ol(""+e)}),Wu(t.target.readonly?yt:ht)))}function Eu(e){return e.id}function Tu(t,n){return e.binarySearch(t,n,Eu,e.compareValues)>=0}function wu(t,n){var r=e.binarySearch(t,n,Eu,e.compareValues);return r<0&&(t.splice(~r,0,n),!0)}function Au(t,n,r){var i=r.flags;if(1048576&i)return Nu(t,n,r.types);if(!(131072&i))if(n|=71041023&i,66846720&i&&(n|=262144),r===De&&(n|=8388608),!K&&98304&i)524288&e.getObjectFlags(r)||(n|=4194304);else{var a=t.length,o=a&&r.id>t[a-1].id?~a:e.binarySearch(t,r,Eu,e.compareValues);o<0&&t.splice(~o,0,r)}return n}function Nu(e,t,n){for(var r=0,i=n;r0;){var i=t[--r];(128&i.flags&&4&n||256&i.flags&&8&n||2048&i.flags&&64&n||8192&i.flags&&4096&n||Pl(i)&&Tu(t,i.regularType))&&e.orderedRemoveItemAt(t,r)}}(a,o);break;case 2:if(!function(t,n){var r=t.length;if(0===r||function(e){var t=e[0];if(1024&t.flags){for(var n=vi(t.symbol),r=1;r0;)for(var o=t[--i],s=0,c=t;s(n?25e6:1e6))return or(_,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1;if(a++,K_(o,u,Zn)&&(!(1&e.getObjectFlags(no(o)))||!(1&e.getObjectFlags(no(u)))||S_(o,u))){e.orderedRemoveItemAt(t,i);break}}}return!0}(a,!(262144&o)))return Ce}if(0===a.length)return 65536&o?4194304&o?Ae:Ne:32768&o?4194304&o?Ee:Te:ze}return Fu(a,(66994211&o?0:262144)|(2097152&o?268435456:0),r,i)}function Ou(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Fu(e,t,n,r){if(0===e.length)return ze;if(1===e.length)return e[0];var i=Ic(e),a=_e.get(i);return a||(a=Ti(1048576),_e.set(i,a),a.objectFlags=t|Mc(e,98304),a.types=e,a.aliasSymbol=n,a.aliasTypeArguments=r),a}function Iu(e,t,n){var r=n.flags;return 2097152&r?Mu(e,t,n.types):(J_(n)?16777216&t||(t|=16777216,e.set(n.id.toString(),n)):(3&r?n===De&&(t|=8388608):!K&&98304&r||e.has(n.id.toString())||(109440&n.flags&&109440&t&&(t|=67108864),e.set(n.id.toString(),n)),t|=71041023&r),t)}function Mu(e,t,n){for(var r=0,i=n;r0;){var i=t[--r];(4&i.flags&&128&n||8&i.flags&&256&n||64&i.flags&&2048&n||4096&i.flags&&8192&n)&&e.orderedRemoveItemAt(t,r)}}(o,a),16777216&a&&524288&a&&e.orderedRemoveItemAt(o,e.findIndex(o,J_)),0===o.length)return ke;if(1===o.length)return o[0];var s=Ic(o),c=de.get(s);if(!c){if(1048576&a)if(function(t){var n,r=e.findIndex(t,function(t){return!!(262144&e.getObjectFlags(t))});if(r<0)return!1;for(var i=r+1;i=1e5)return or(_,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),Ce;var u=e.findIndex(o,function(e){return 0!=(1048576&e.flags)});c=Pu(e.map(o[u].types,function(t){return Bu(e.replaceElement(o,u,t))}),1,n,r)}else c=function(e,t,n){var r=Ti(2097152);return r.objectFlags=Mc(e,98304),r.types=e,r.aliasSymbol=t,r.aliasTypeArguments=n,r}(o,n,r);de.set(s,c)}return c}function ju(e,t){var n=Ti(4194304);return n.type=e,n.stringsOnly=t,n}function Uu(t){return e.isPrivateIdentifier(t)?ze:e.isIdentifier(t)?Ol(e.unescapeLeadingUnderscores(t.escapedText)):Nl(e.isComputedPropertyName(t)?Lg(t):Hy(t))}function zu(t,n){if(!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var r=vr(Ho(t)).nameType;if(!r&&!e.isKnownSymbol(t))if("default"===t.escapedName)r=Ol("default");else{var i=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);r=i&&Uu(i)||Ol(e.symbolName(t))}if(r&&r.flags&n)return r}return ze}function Ju(t,n){return Pu(e.map(ks(t),function(e){return zu(e,n)}))}function Vu(e){var t=$s(e,1);return t!==un?t:void 0}function Wu(t,n,r){return void 0===n&&(n=Z),1048576&(t=Vs(t)).flags?Bu(e.map(t.types,function(e){return Wu(e,n,r)})):2097152&t.flags?Pu(e.map(t.types,function(e){return Wu(e,n,r)})):58982400&t.flags||Id(t)?function(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=ju(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=ju(e,!1))}(t,n):32&e.getObjectFlags(t)?yp(ds(t),function(e){return!(r&&5&e.flags)}):t===De?De:2&t.flags?ze:131073&t.flags?Ge:n?!r&&$s(t,0)?Pe:Ju(t,128):!r&&$s(t,0)?Pu([Pe,Oe,Ju(t,8192)]):Vu(t)?Pu([Oe,Ju(t,8320)]):Ju(t,8576)}function qu(t){if(Z)return t;var n=Ht||(Ht=iu("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return n?Jc(n,[t,Pe]):Pe}function Ku(t){return!X&&(!!(16384&e.getObjectFlags(t))||(1048576&t.flags?e.every(t.types,Ku):2097152&t.flags?e.some(t.types,Ku):!!(63176704&t.flags)&&Ku(Ms(t))))}function Hu(t,n){var r=n&&199===n.kind?n:void 0;return Bo(t)?Vo(t):r&&Rm(r.argumentExpression,t,!1)?e.getPropertyNameForKnownSymbolName(e.idText(r.argumentExpression.name)):n&&e.isPropertyName(n)?e.getPropertyNameForPropertyNameNode(n):void 0}function Gu(t,n){return!(8208&n.flags)||!e.isCallLikeExpression(e.findAncestor(t,function(t){return!e.isAccessExpression(t)})||t.parent)&&e.every(n.declarations,function(t){return!e.isFunctionLike(t)||!!(134217728&e.getCombinedNodeFlags(t))})}function Qu(t,n,r,i,a,o,s,c){var u,l,_=o&&199===o.kind?o:void 0,d=o&&e.isPrivateIdentifier(o)?void 0:Hu(r,o);if(void 0!==d){var f=Gs(n,d);if(f){if(c&&o&&134217728&(null===(u=f.valueDeclaration)||void 0===u?void 0:u.flags)&&Gu(o,f)&&cr(!1,null!==(l=null==_?void 0:_.argumentExpression)&&void 0!==l?l:e.isIndexedAccessTypeNode(o)?o.indexType:o,e.Diagnostics._0_is_deprecated,d),_){if(Fm(f,_,107===_.expression.kind),dy(_,f,e.getAssignmentTargetKind(_)))return void or(_.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Yi(f));if(4&s&&(br(o).resolvedSymbol=f),Dm(_,f))return xe}var p=eo(f);return _&&1!==e.getAssignmentTargetKind(_)?Up(_,p):p}if(hp(n,Fd)&&Mg(d)&&+d>=0){if(o&&hp(n,function(e){return!e.target.hasRestElement})&&!(8&s)){var g=Xu(o);Fd(n)?or(g,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,$i(n),Uc(n),e.unescapeLeadingUnderscores(d)):or(g,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(d),$i(n))}return D($s(n,1)),bp(n,function(e){return Ld(e)||Ee})}}if(!(98304&r.flags)&&my(r,12716)){if(131073&n.flags)return n;var m=$s(n,0),h=my(r,296)&&$s(n,1)||m;if(h)return 1&s&&h===m?void(_&&or(_,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,$i(r),$i(t))):o&&!my(r,12)?(or(g=Xu(o),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,$i(r)),h.type):(D(h),h.type);if(131072&r.flags)return ze;if(Ku(n))return be;if(_&&!yy(n)){if(n.symbol===ie&&void 0!==d&&ie.exports.has(d)&&418&ie.exports.get(d).flags)or(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(d),$i(n));else if(X&&!J.suppressImplicitAnyIndexErrors&&!a)if(void 0!==d&&Em(d,n))or(_,e.Diagnostics.Property_0_is_a_static_member_of_type_1,d,$i(n));else if(ec(n,1))or(_.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var y=void 0;if(void 0!==d&&(y=Am(d,n)))void 0!==y&&or(_.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,d,$i(n),y);else{var v=function(t,n,r){var i=e.isAssignmentTarget(n)?"set":"get";if(function(e){var n=Cs(t,e);if(n){var i=Km(eo(n));return!!i&&Jh(i)>=1&&C_(r,Bh(i,0))}return!1}(i)){var a=e.tryGetPropertyAccessOrIdentifierToString(n.expression);return void 0===a?a=i:a+="."+i,a}}(n,_,r);if(void 0!==v)or(_,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,$i(n),v);else{var b=void 0;if(1024&r.flags)b=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+$i(r)+"]",$i(n));else if(8192&r.flags){var x=ti(r.symbol,_);b=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+x+"]",$i(n))}else 128&r.flags||256&r.flags?b=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,$i(n)):12&r.flags&&(b=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,$i(r),$i(n)));b=e.chainDiagnosticMessages(b,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,$i(i),$i(n)),Hn.add(e.createDiagnosticForNodeFromMessageChain(_,b))}}}return}}return Ku(n)?be:(o&&(g=Xu(o),384&r.flags?or(g,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,$i(n)):12&r.flags?or(g,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,$i(n),$i(r)):or(g,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,$i(r))),ya(r)?r:void 0);function D(t){t&&t.isReadonly&&_&&(e.isAssignmentTarget(_)||e.isDeleteTarget(_))&&or(_,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,$i(n))}}function Xu(e){return 199===e.kind?e.argumentExpression:188===e.kind?e.indexType:157===e.kind?e.expression:e}function Yu(t){return 3145728&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|(e.some(t.types,Yu)?8388608:0)),!!(8388608&t.objectFlags)):!!(58982400&t.flags)||bs(t)||Id(t)}function Zu(t){return 3145728&t.flags?(16777216&t.objectFlags||(t.objectFlags|=16777216|(e.some(t.types,Zu)?33554432:0)),!!(33554432&t.objectFlags)):!!(63176704&t.flags)}function $u(e){return!!(262144&e.flags&&e.isThisType)}function el(t,n){return 8388608&t.flags?function(t,n){var r=n?"simplifiedForWriting":"simplifiedForReading";if(t[r])return t[r]===at?t:t[r];t[r]=at;var i=function(e){return 33554432&e.flags?e.substitute:e}(el(t.objectType,n)),a=el(t.indexType,n),o=function(t,n,r){if(1048576&n.flags){var i=e.map(n.types,function(e){return el(il(t,e),r)});return r?Bu(i):Pu(i)}}(i,a,n);if(o)return t[r]=o;if(!(63176704&a.flags)){var s=tl(i,a,n);if(s)return t[r]=s}if(Id(i)&&296&a.flags){var c=Bd(i,8&a.flags?0:i.target.fixedLength,0,n);if(c)return t[r]=c}return t[r]=bs(i)?bp(rl(i,t.indexType),function(e){return el(e,n)}):t}(t,n):16777216&t.flags?function(e,t){var n=e.checkType,r=e.extendsType,i=_l(e),a=dl(e);if(131072&a.flags&&ul(i)===ul(n)){if(1&n.flags||C_(__(n),__(r)))return el(i,t);if(nl(n,r))return ze}else if(131072&i.flags&&ul(a)===ul(n)){if(!(1&n.flags)&&C_(__(n),__(r)))return ze;if(1&n.flags||nl(n,r))return el(a,t)}return e}(t,n):t}function tl(t,n,r){if(3145728&t.flags){var i=e.map(t.types,function(e){return el(il(e,n),r)});return 2097152&t.flags||r?Bu(i):Pu(i)}}function nl(e,t){return!!(131072&Pu([as(e,t),ze]).flags)}function rl(e,t){var n=Jl([_s(e)],[t]),r=Gl(e.mapper,n);return c_(fs(e),r)}function il(e,t,n,r,i){return ol(e,t,n,0,r,i)||(n?Ce:ke)}function al(e,t){return hp(e,function(e){if(384&e.flags){var n=Vo(e);if(Mg(n)){var r=+n;return r>=0&&r=5e6)return or(_,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ce;x++,D++,k++;var r=function(t,n){var r=t.flags;if(262144&r)return Vl(t,n);if(524288&r){var i=t.objectFlags;if(52&i){if(4&i&&!t.node){var a=t.resolvedTypeArguments,o=Ul(a,n);return o!==a?Du(t.target,o):t}return function(t,n){var r=64&t.objectFlags?t.target:t,i=4&t.objectFlags?t.node:t.symbol.declarations[0],a=br(i),o=a.outerTypeParameters;if(!o){var s=ao(i,!0);if(Sh(i)){var c=nc(i);s=e.addRange(s,c)}o=s||e.emptyArray,o=(4&r.objectFlags||2048&r.symbol.flags)&&!r.aliasTypeArguments?e.filter(o,function(e){return t_(e,i)}):o,a.outerTypeParameters=o,o.length&&(a.instantiations=new e.Map,a.instantiations.set(Ic(o),r))}if(o.length){var u=Gl(t.mapper,n),l=e.map(o,function(e){return Vl(e,u)}),_=Ic(l),d=a.instantiations.get(_);if(!d){var f=Jl(o,l);d=4&r.objectFlags?Bc(t.target,t.node,f):32&r.objectFlags?r_(r,f):o_(r,f),a.instantiations.set(_,d)}return d}return t}(t,n)}return t}if(3145728&r){var s=t.types,c=Ul(s,n);return c===s?t:2097152&r?Bu(c,t.aliasSymbol,Ul(t.aliasTypeArguments,n)):Pu(c,1,t.aliasSymbol,Ul(t.aliasTypeArguments,n))}if(4194304&r)return Wu(c_(t.type,n));if(8388608&r)return il(c_(t.objectType,n),c_(t.indexType,n),void 0,t.aliasSymbol,Ul(t.aliasTypeArguments,n));if(16777216&r)return s_(t,Gl(t.mapper,n));if(33554432&r){var u=c_(t.baseType,n);if(8650752&u.flags)return Kc(u,c_(t.substitute,n));var l=c_(t.substitute,n);return 3&l.flags||C_(__(u),__(l))?u:l}return t}(t,n);return k--,r}function u_(e,t){k--;var n=c_(e,t);return k++,n}function l_(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=c_(e,Ye))}function __(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=c_(e,Xe),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function d_(e,t){return e&&Ac(c_(e.type,t),e.isReadonly,e.declaration)}function f_(t){switch(e.Debug.assert(164!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 205:case 206:case 164:case 248:return p_(t);case 197:return e.some(t.properties,f_);case 196:return e.some(t.elements,f_);case 214:return f_(t.whenTrue)||f_(t.whenFalse);case 213:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(f_(t.left)||f_(t.right));case 285:return f_(t.initializer);case 204:return f_(t.expression);case 278:return e.some(t.properties,f_)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,f_);case 277:var n=t.initializer;return!!n&&f_(n);case 280:var r=t.expression;return!!r&&f_(r)}return!1}function p_(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!ka(t))&&(g_(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&227!==t.body.kind&&f_(t.body)}(t))}function g_(t){if(!t.typeParameters){if(e.some(t.parameters,function(t){return!e.getEffectiveTypeAnnotationNode(t)}))return!0;if(206!==t.kind){var n=e.firstOrUndefined(t.parameters);if(!n||!e.parameterIsThisKeyword(n))return!0}}return!1}function m_(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||Tg(t)||e.isObjectLiteralMethod(t))&&p_(t)}function h_(t){if(524288&t.flags){var n=xs(t);if(n.constructSignatures.length||n.callSignatures.length){var r=Ni(16,t.symbol);return r.members=n.members,r.properties=n.properties,r.callSignatures=e.emptyArray,r.constructSignatures=e.emptyArray,r}}else if(2097152&t.flags)return Bu(e.map(t.types,h_));return t}function y_(e,t){return K_(e,t,tr)}function v_(e,t){return K_(e,t,tr)?-1:0}function b_(e,t){return K_(e,t,$n)?-1:0}function x_(e,t){return K_(e,t,Yn)?-1:0}function D_(e,t){return K_(e,t,Yn)}function C_(e,t){return K_(e,t,$n)}function S_(t,n){return 1048576&t.flags?e.every(t.types,function(e){return S_(e,n)}):1048576&n.flags?e.some(n.types,function(e){return S_(t,e)}):58982400&t.flags?S_(Os(t)||ke,n):n===ft?!!(67633152&t.flags):n===pt?!!(524288&t.flags)&&$f(t):ro(t,no(n))}function k_(e,t){return K_(e,t,er)}function E_(e,t){return k_(e,t)||k_(t,e)}function T_(e,t,n,r,i,a){return Q_(e,t,$n,n,r,i,a)}function w_(e,t,n,r,i,a){return A_(e,t,$n,n,r,i,a,void 0)}function A_(e,t,n,r,i,a,o,s){return!!K_(e,t,n)||(!r||!P_(i,e,t,n,a,o,s))&&Q_(e,t,n,r,a,o,s)}function N_(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,N_))}function P_(t,n,r,i,o,c,u){if(!t||N_(r))return!1;if(!Q_(n,r,i,void 0)&&function(t,n,r,i,a,o,s){for(var c=Xs(n,0),u=Xs(n,1),l=0,_=[u,c];l<_.length;l++){var d=_[l];if(e.some(d,function(e){var t=hc(e);return!(131073&t.flags)&&Q_(t,r,i,void 0)})){var f=s||{};return T_(n,r,t,a,o,f),e.addRelatedInfo(f.errors[f.errors.length-1],e.createDiagnosticForNode(t,d===u?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(t,n,r,i,o,c,u))return!0;switch(t.kind){case 280:case 204:return P_(t.expression,n,r,i,o,c,u);case 213:switch(t.operatorToken.kind){case 62:case 27:return P_(t.right,n,r,i,o,c,u)}break;case 197:return function(t,n,r,i,a,o){return!(131068&r.flags)&&I_(function(t){var n,r,i,a;return s(this,function(o){switch(o.label){case 0:if(!e.length(t.properties))return[2];n=0,r=t.properties,o.label=1;case 1:if(!(n1,y=yp(g,Sd),v=yp(g,function(e){return!Sd(e)});if(h){if(y!==ze){var b=bu(Vg(_,0));l=I_(function(t,n){var r,i,a,o,c;return s(this,function(s){switch(s.label){case 0:if(!e.length(t.children))return[2];r=0,i=0,s.label=1;case 1:return i_:Jh(t)>_))return 0;t.typeParameters&&t.typeParameters!==n.typeParameters&&(t=Qm(t,n=(l=n).typeParameters?l.canonicalSignatureCache||(l.canonicalSignatureCache=function(t){return xc(t,e.map(t.typeParameters,function(e){return e.target&&!Ts(e.target)?e.target:e}),e.isInJSFile(t.declaration))}(l)):l,void 0,s));var d=zh(t),f=qh(t),p=qh(n);if((f||p)&&c_(f||p,c),f&&p&&d!==_)return 0;var g=n.declaration?n.declaration.kind:0,m=!(3&r)&&H&&164!==g&&163!==g&&165!==g,h=-1,y=gc(t);if(y&&y!==Ue){var v=gc(n);if(v){if(!(C=!m&&s(y,v,!1)||s(v,y,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;h&=C}}for(var b=f||p?Math.min(d,_):Math.max(d,_),x=f||p?b-1:-1,D=0;D=Jh(t)&&D0||yx(c));if(p&&!function(e,t,n){for(var r=0,i=ks(e);r0&&B(hc(g[0]),u,!1)||h.length>0&&B(hc(h[0]),u,!1)?M(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,$i(c),$i(u)):M(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,$i(c),$i(u))}return 0}var y=0,v=O();if(1048576&c.flags?y=r===er?z(c,u,i&&!(131068&c.flags),s):function(e,t,n,r){for(var i=-1,a=e.types,o=0;o0;if(_&&x--,524288&(r=t.aliasSymbol?t:r).flags&&524288&s.flags){var d=l;R(r,s,i),l!==d&&(_=!!l)}if(524288&r.flags&&131068&s.flags)!function(t,n){var r=na(t.symbol)?$i(t,t.symbol.valueDeclaration):$i(t),i=na(n.symbol)?$i(n,n.symbol.valueDeclaration):$i(n);(vt===t&&Pe===n||bt===t&&Oe===n||xt===t&&Be===n||su(!1)===t&&je===n)&&M(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,r)}(r,s);else if(r.symbol&&524288&r.flags&&ft===r)M(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(u&&2097152&s.flags){var f=s.types,p=qg(T.IntrinsicAttributes,a),g=qg(T.IntrinsicClassAttributes,a);if(p!==Ce&&g!==Ce&&(e.contains(f,p)||e.contains(f,g)))return c}else l=Hs(l,n);if(!o&&_)return m=[r,s],c;L(o,r,s)}}}function j(e,t){for(var n=-1,r=0,i=e.types;r25)return 0;for(var c=new Array(i.length),u=new e.Set,l=0;l5?M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,$i(t),$i(n),e.map(m.slice(0,4),function(e){return Yi(e)}).join(", "),m.length-4):M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,$i(t),$i(n),e.map(m,function(e){return Yi(e)}).join(", ")),s&&l&&x++)}(t,n,w,T),0;if(Mf(n))for(var A=0,N=H(ks(t),s);A0||Xs(t,r=1).length>0)return e.find(n.types,function(e){return Xs(e,r).length>0})}(t,n)||function(t,n){for(var r,i=0,a=0,o=n.types;a=i&&(r=s,i=u)}else Ed(c)&&1>=i&&(r=s,i=1)}return r}(t,n)}function Z_(t,n,r,i,a){for(var o=t.types.map(function(e){}),s=0,c=n;s0&&e.every(n.properties,function(e){return!!(16777216&e.flags)})}return!!(2097152&t.flags)&&e.every(t.types,$_)}function ed(t,n,r){var i=Lc(t,e.map(t.typeParameters,function(e){return e===n?r:e}));return i.objectFlags|=8192,i}function td(e){var t=vr(e);return nd(t.typeParameters,t,function(n,r,i){var a=Jc(e,Ul(t.typeParameters,Wl(r,i)));return a.aliasTypeArgumentsContainsMarker=!0,a})}function nd(t,n,r){void 0===t&&(t=e.emptyArray);var i=n.variances;if(!i){n.variances=e.emptyArray,i=[];for(var a=function(e){var t=!1,a=!1,o=tn;tn=function(e){return e?a=!0:t=!0};var s=r(n,e,st),c=r(n,e,ct),u=(C_(c,s)?1:0)|(C_(s,c)?2:0);3===u&&C_(r(n,e,nn),s)&&(u=4),tn=o,(t||a)&&(t&&(u|=8),a&&(u|=16)),i.push(u)},o=0,s=t;o":r+="-"+o.id}return r}function sd(e,t,n,r){if(r===tr&&e.id>t.id){var i=e;e=t,t=i}var a=n?":"+n:"";if(ad(e)&&ad(t)){var o=[];return od(e,o)+","+od(t,o)+a}return e.id+","+t.id+a}function cd(t,n){if(!(6&e.getCheckFlags(t)))return n(t);for(var r=0,i=t.containingType.types;r=5&&524288&t.flags){if(!Lf(t)){var i=t.symbol;if(i)for(var a=0,o=0;o=5)return!0}if(e.getObjectFlags(t)&&t.node){var s=t.target;for(a=0,o=0;o=5)return!0}}if(r>=5&&8388608&t.flags)for(s=dd(t),a=0,o=0;o=5)return!0}return!1}function dd(e){for(var t=e;8388608&t.flags;)t=t.objectType;return t}function fd(e,t){return 0!==pd(e,t,v_)}function pd(t,n,r){if(t===n)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(n)))return 0;if(i){if(Lb(t)!==Lb(n))return 0}else if((16777216&t.flags)!=(16777216&n.flags))return 0;return _y(t)!==_y(n)?0:r(eo(t),eo(n))}function gd(t,n,r,i,a,o){if(t===n)return-1;if(!function(e,t,n){var r=zh(e),i=zh(t),a=Jh(e),o=Jh(t),s=Vh(e),c=Vh(t);return r===i&&a===o&&s===c||!!(n&&a<=o)}(t,n,r))return 0;if(e.length(t.typeParameters)!==e.length(n.typeParameters))return 0;if(n.typeParameters){for(var s=Jl(t.typeParameters,n.typeParameters),c=0;c-1&&(kr(o,o.name.escapedText,788968,void 0,o.name.escapedText,!0)||o.name.originalKeywordKind&&e.isTypeNodeKind(o.name.originalKeywordKind))){var s="arg"+o.parent.parameters.indexOf(o);return void cr(X,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}a=t.dotDotDotToken?X?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:X?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 195:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!X)return;break;case 304:return void or(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 248:case 164:case 163:case 166:case 167:case 205:case 206:if(X&&!t.name)return void or(t,3===r?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=X?3===r?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 189:return void(X&&or(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=X?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}cr(X,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function _f(t,r,i){!(n&&X&&524288&e.getObjectFlags(r))||i&&wg(t)||uf(r)||lf(t,r,i)}function df(e,t,n){var r=zh(e),i=zh(t),a=Wh(e),o=Wh(t),s=o?i-1:i,c=a?s:Math.min(r,s),u=gc(e);if(u){var l=gc(t);l&&n(u,l)}for(var _=0;_0)for(var D=0,C=n;De.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength0&&4&t.target.elementFlags[a-1]?jc(t)[a-1]:void 0,d=12&n.target.combinedFlags?_?Rd(n):Math.min(Rd(t),Rd(n)):0,f=_?0:d;for(u=0;u1){var n=e.filter(t,Lf);if(n.length){var r=Pu(n,2);return e.concatenate(e.filter(t,function(e){return!Lf(e)}),[r])}}return t}(t.candidates),a=!!(r=Ts(t.typeParameter))&&gy(16777216&r.flags?As(r):r,4325372),o=!a&&t.topLevel&&(t.isFixed||!Cf(hc(n),t.typeParameter)),s=a?e.sameMap(i,Nl):o?e.sameMap(i,Ad):i;return sf(208&t.priority?Pu(s,2):function(t){if(!K)return md(t);var n=e.filter(t,function(e){return!(98304&e.flags)});return n.length?Wd(md(n),98304&Ud(t)):Pu(t,2)}(s))}(r,a):void 0;if(r.contraCandidates){var s=function(t){return 208&t.priority?Bu(t.contraCandidates):e.reduceLeft(t.contraCandidates,function(e,t){return D_(t,e)?t:e})}(r);i=!o||131072&o.flags||!D_(o,s)?s:o}else if(o)i=o;else if(1&t.flags)i=Je;else{var c=Rs(r.typeParameter);c&&(i=c_(c,Ql(function(t,n){return ql(function(r){return e.findIndex(t.inferences,function(e){return e.typeParameter===r})>=n?ke:r})}(t,n),t.nonFixingMapper)))}}else i=Af(r);r.inferredType=i||Bf(!!(2&t.flags));var u=Ts(r.typeParameter);if(u){var l=c_(u,t.nonFixingMapper);i&&t.compareTypes(i,Go(l,i))||(r.inferredType=i=l)}}return r.inferredType}function Bf(e){return e?be:ke}function jf(e){for(var t=[],n=0;n=0&&n.parameterIndex=r&&c-1){var l=a.filter(function(e){return void 0!==e}),_=c0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return Rl(n.parameters[0].type);var r=e.getJSDocThisTag(t);return r&&r.typeExpression?Rl(r.typeExpression):void 0}(r);if(!a){var o=function(t){return 205===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent)?t.parent.left.expression.expression:164===t.kind&&197===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.left.expression:205===t.kind&&285===t.parent.kind&&197===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.left.expression:205===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.arguments[0].expression:e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.arguments[0].expression:void 0}(r);if(i&&o){var s=Hy(o).symbol;s&&s.members&&16&s.flags&&(a=wo(s).thisType)}else Sh(r)&&(a=wo(hi(r.symbol)).thisType);a||(a=ag(r))}if(a)return Up(t,a)}if(e.isClassLike(r.parent)){var c=yi(r.parent);return Up(t,e.hasSyntacticModifier(r,32)?eo(c):wo(c).thisType)}if(e.isSourceFile(r)){if(r.commonJsModuleIndicator){var u=yi(r);return u&&eo(u)}if(r.externalModuleIndicator)return Ee;if(n)return eo(ie)}}function tg(t,n){return!!e.findAncestor(t,function(t){return e.isFunctionLikeDeclaration(t)?"quit":159===t.kind&&t.parent===n})}function ng(t){var n,r=200===t.parent.kind&&t.parent.expression===t,i=e.getSuperContainer(t,!0),a=i,o=!1;if(!r)for(;a&&206===a.kind;)a=e.getSuperContainer(a,!0),o=V<2;if(!function(t){return!(!t||(r?165!==t.kind:!e.isClassLike(t.parent)&&197!==t.parent.kind||(e.hasSyntacticModifier(t,32)?164!==t.kind&&163!==t.kind&&166!==t.kind&&167!==t.kind:164!==t.kind&&163!==t.kind&&166!==t.kind&&167!==t.kind&&162!==t.kind&&161!==t.kind&&165!==t.kind)))}(a)){var s=e.findAncestor(t,function(e){return e===a?"quit":157===e.kind});return s&&157===s.kind?or(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?or(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):a&&a.parent&&(e.isClassLike(a.parent)||197===a.parent.kind)?or(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):or(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Ce}if(r||165!==i.kind||Zp(t,a,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),n=e.hasSyntacticModifier(a,32)||r?512:256,br(t).flags|=n,164===a.kind&&e.hasSyntacticModifier(a,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?br(a).flags|=4096:br(a).flags|=2048),o&&Qp(t.parent,a),197===a.parent.kind)return V<2?(or(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ce):be;var c=a.parent;if(!e.getClassExtendsHeritageElement(c))return or(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Ce;var u=wo(yi(c)),l=u&&mo(u)[0];return l?165===a.kind&&tg(t,a)?(or(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Ce):512===n?po(u):Go(l,u.thisType):Ce}function rg(t){return 4&e.getObjectFlags(t)&&t.target===Ct?jc(t)[0]:void 0}function ig(t){return bp(t,function(t){return 2097152&t.flags?e.forEach(t.types,rg):rg(t)})}function ag(t){if(206!==t.kind){if(m_(t)){var n=Ag(t);if(n){var r=n.thisParameter;if(r)return eo(r)}}var i=e.isInJSFile(t);if(Y||i){var a=function(e){return 164!==e.kind&&166!==e.kind&&167!==e.kind||197!==e.parent.kind?205===e.kind&&285===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=vg(a),s=a,c=o;c;){var u=ig(c);if(u)return c_(u,bf(Cg(a)));if(285!==s.parent.kind)break;c=vg(s=s.parent.parent)}return sf(o?Kd(o):Ay(a))}var l=e.walkUpParenthesizedExpressions(t.parent);if(213===l.kind&&62===l.operatorToken.kind){var _=l.left;if(e.isAccessExpression(_)){var d=_.expression;if(i&&e.isIdentifier(d)){var f=e.getSourceFileOfNode(l);if(f.commonJsModuleIndicator&&zf(d)===f.symbol)return}return sf(Ay(d))}}}}}function og(t){var n=t.parent;if(m_(n)){var r=e.getImmediatelyInvokedFunctionExpression(n);if(r&&r.arguments){var i=ih(r),a=n.parameters.indexOf(t);if(t.dotDotDotToken)return Zm(i,a,i.length,be,void 0,0);var o=br(r),s=o.resolvedSignature;o.resolvedSignature=an;var c=a=0?void 0:eo(o);if(Fd(t)){var s=Ld(t);if(s&&Mg(n)&&+n>=0)return s}return Mg(n)&&pg(t,1)||pg(t,0)}var c},!0)}function pg(e,t){return bp(e,function(e){return Zs(e,t)},!0)}function gg(e,t){var n=vg(e.parent,t);if(n){if(!Jo(e)){var r=fg(n,yi(e).escapedName);if(r)return r}return Fg(e.name)&&pg(n,1)||pg(n,0)}}function mg(e,t){return e&&(fg(e,""+t)||ab(1,e,Ee,void 0,!1))}function hg(t){if(e.isJsxAttribute(t)){var n=vg(t.parent);if(!n||ya(n))return;return fg(n,t.name.escapedText)}return Dg(t.parent)}function yg(e){switch(e.kind){case 10:case 8:case 9:case 14:case 109:case 94:case 103:case 78:case 149:return!0;case 198:case 204:return yg(e.expression);case 280:return!e.expression||yg(e.expression)}return!1}function vg(t,n){var r=bg(e.isObjectLiteralMethod(t)?function(t,n){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(16777216&t.flags))return gg(t,n)}(t,n):Dg(t,n),t,n);if(r&&!(n&&2&n&&8650752&r.flags)){var i=bp(r,Bs,!0);if(1048576&i.flags){if(e.isObjectLiteralExpression(t))return function(t,n){return Z_(n,e.map(e.filter(t.properties,function(e){return!!e.symbol&&285===e.kind&&yg(e.initializer)&&Qf(n,e.symbol.escapedName)}),function(e){return[function(){return Hy(e.initializer)},e.symbol.escapedName]}),C_,n)}(t,i);if(e.isJsxAttributes(t))return function(t,n){return Z_(n,e.map(e.filter(t.properties,function(e){return!!e.symbol&&277===e.kind&&Qf(n,e.symbol.escapedName)&&(!e.initializer||yg(e.initializer))}),function(e){return[e.initializer?function(){return Hy(e.initializer)}:function(){return Le},e.symbol.escapedName]}),C_,n)}(t,i)}return i}}function bg(t,n,r){if(t&&gy(t,63176704)){var i=Cg(n);if(i&&e.some(i.inferences,Uy)){if(r&&1&r)return xg(t,i.nonFixingMapper);if(i.returnMapper)return xg(t,i.returnMapper)}}return t}function xg(t,n){return 63176704&t.flags?c_(t,n):1048576&t.flags?Pu(e.map(t.types,function(e){return xg(e,n)}),0):2097152&t.flags?Bu(e.map(t.types,function(e){return xg(e,n)})):t}function Dg(t,n){if(16777216&t.flags);else{if(t.contextualType)return t.contextualType;var r=t.parent;switch(r.kind){case 246:case 159:case 162:case 161:case 195:return function(t,n){var r=t.parent;if(e.hasInitializer(r)&&t===r.initializer){var i=sg(r);if(i)return i;if(!(8&n)&&e.isBindingPattern(r.name))return Ua(r.name,!0,!1)}}(t,n);case 206:case 239:return function(t){var n=e.getContainingFunction(t);if(n){var r=lg(n);if(r){var i=e.getFunctionFlags(n);if(1&i){var a=_b(r,2&i?2:1,void 0);if(!a)return;r=a.returnType}if(2&i){var o=bp(r,gv);return o&&Pu([o,Zh(o)])}return r}}}(t);case 216:return function(t){var n=e.getContainingFunction(t);if(n){var r=e.getFunctionFlags(n),i=lg(n);if(i)return t.asteriskToken?i:Eb(0,i,0!=(2&r))}}(r);case 210:return function(e,t){var n=Dg(e,t);if(n){var r=gv(n);return r&&Pu([r,Zh(r)])}}(r,n);case 200:if(99===r.expression.kind)return Pe;case 201:return _g(r,t);case 203:case 221:return e.isConstTypeReference(r.type)?function(t){if(e.isCallLikeExpression(t.parent))return _g(t.parent,t)}(r):Rl(r.type);case 213:return function(t,n){var r=t.parent,i=r.left,a=r.right;switch(r.operatorToken.kind){case 62:case 75:case 74:case 76:if(t!==a)return;var o=function(t){var n=e.getAssignmentDeclarationKind(t);switch(n){case 0:return!0;case 5:case 1:case 6:case 3:if(t.left.symbol){var r=t.left.symbol.valueDeclaration;if(!r)return!1;var i=e.cast(t.left,e.isAccessExpression),a=e.getEffectiveTypeAnnotationNode(r);if(a)return Rl(a);if(e.isIdentifier(i.expression)){var o=i.expression,s=kr(o,o.escapedText,111551,void 0,o.escapedText,!0);if(s){if(u=s.valueDeclaration&&e.getEffectiveTypeAnnotationNode(s.valueDeclaration)){var c=e.getElementOrPropertyAccessName(i);if(void 0!==c)return(l=fg(Rl(u),c))||!1}return!1}}return!e.isInJSFile(r)}return!0;case 2:case 4:if(!t.symbol)return!0;var u,l;if(t.symbol.valueDeclaration&&(u=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration))&&(l=Rl(u)))return l;if(2===n)return!1;var _=e.cast(t.left,e.isAccessExpression);if(!e.isObjectLiteralMethod(e.getThisContainer(_.expression,!1)))return!1;var d=$p(_.expression),f=e.getElementOrPropertyAccessName(_);return void 0!==f&&d&&fg(d,f)||!1;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(n)}}(r);if(!o)return;return!0===o?Wy(i):o;case 56:case 60:var s=Dg(r,n);return t===a&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(r))?Wy(i):s;case 55:case 27:return t===a?Dg(r,n):void 0;default:return}}(t,n);case 285:case 286:return gg(r,n);case 287:return vg(r.parent,n);case 196:var i=r;return mg(vg(i,n),e.indexOfNode(i.elements,t));case 214:return function(e,t){var n=e.parent;return e===n.whenTrue||e===n.whenFalse?Dg(n,t):void 0}(t,n);case 225:return e.Debug.assert(215===r.parent.kind),function(e,t){if(202===e.parent.kind)return _g(e.parent,t)}(r.parent,t);case 204:var a=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return a?Rl(a.typeExpression.type):Dg(r,n);case 280:return function(t){var n=t.parent;return e.isJsxAttributeLike(n)?Dg(t):e.isJsxElement(n)?function(e,t){var n=vg(e.openingElement.tagName),r=Qg(Hg(e));if(n&&!ya(n)&&r&&""!==r){var i=L_(e.children),a=i.indexOf(t),o=fg(n,r);return o&&(1===i.length?o:bp(o,function(e){return xd(e)?il(e,Ol(a)):e},!0))}}(n,t):void 0}(r);case 277:case 279:return hg(r);case 272:case 271:return function(t,n){return e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==n?t.parent.contextualType:dg(t,0)}(r,n)}}}function Cg(t){var n=e.findAncestor(t,function(e){return!!e.inferenceContext});return n&&n.inferenceContext}function Sg(t,n){return 0!==eh(n)?function(e,t){var n=Hh(e,ke);n=kg(t,Hg(t),n);var r=qg(T.IntrinsicAttributes,t);return r!==Ce&&(n=as(r,n)),n}(t,n):function(t,n){var r=Hg(n),i=Gg(T.ElementAttributesPropertyNameContainer,r),a=void 0===i?Hh(t,ke):""===i?hc(t):function(e,t){if(e.unionSignatures){for(var n=[],r=0,i=e.unionSignatures;r=2)return Lc(o,c=lc([s,r],o.typeParameters,2,e.isInJSFile(t)));if(e.length(o.aliasTypeArguments)>=2){var c=lc([s,r],o.aliasTypeArguments,2,e.isInJSFile(t));return Jc(o.aliasSymbol,c)}}return r}function Eg(t,n){var r=Xs(t,0);if(1===r.length){var i=r[0];if(!function(t,n){for(var r=0;r1&&or(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Qg(e){return Gg(T.ElementChildrenAttributeNameContainer,e)}function Xg(t,n){if(4&t.flags)return[an];if(128&t.flags){var r=Yg(t,n);return r?[xh(n,r)]:(or(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+T.IntrinsicElements),e.emptyArray)}var i=Bs(t),a=Xs(i,1);return 0===a.length&&(a=Xs(i,0)),0===a.length&&1048576&i.flags&&(a=rs(e.map(i.types,function(e){return Xg(e,n)}))),a}function Yg(t,n){var r=qg(T.IntrinsicElements,n);if(r!==Ce){var i=Gs(r,e.escapeLeadingUnderscores(t.value));return i?eo(i):ec(r,0)||void 0}return be}function Zg(t){e.Debug.assert(zg(t.tagName));var n=br(t);if(!n.resolvedJsxElementAttributesType){var r=Kg(t);return n.resolvedJsxElementAttributesType=1&n.jsxFlags?eo(r):2&n.jsxFlags?ec(wo(r),0):Ce}return n.resolvedJsxElementAttributesType}function $g(e){var t=qg(T.ElementClass,e);if(t!==Ce)return t}function em(e){return qg(T.Element,e)}function tm(e){var t=em(e);if(t)return Pu([t,Ae])}function nm(t){var n,r=e.isJsxOpeningLikeElement(t);r&&function(t){oD(t,t.typeArguments);for(var n=new e.Map,r=0,i=t.attributes.properties;r=0)return _>=Jh(r)&&(Vh(r)||_s)return!1;if(o||a>=c)return!0;for(var d=a;d=i&&n.length<=r}function Km(e){return Gm(e,0,!1)}function Hm(e){return Gm(e,0,!1)||Gm(e,1,!1)}function Gm(e,t,n){if(524288&e.flags){var r=xs(e);if(n||0===r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){if(0===t&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===t&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function Qm(t,n,r,i){var a=pf(t.typeParameters,t,0,i),o=Wh(n),s=r&&(o&&262144&o.flags?r.nonFixingMapper:r.mapper);return df(s?$l(n,s):n,t,function(e,t){Of(a.inferences,e,t)}),r||ff(n,t,function(e,t){Of(a.inferences,e,t,64)}),xc(t,jf(a),e.isInJSFile(n.declaration))}function Xm(t,n,r,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,n,r){var i=Sg(t,e),a=wy(e.attributes,i,r,n);return Of(r.inferences,a,i),jf(r)}(t,n,i,a);if(160!==t.kind){var o=Dg(t,e.every(n.typeParameters,function(e){return!!Rs(e)})?8:0);if(o){var s=Cg(t),c=c_(o,bf(function(t,n){return void 0===n&&(n=0),t&&gf(e.map(t.inferences,vf),t.signature,t.flags|n,t.compareTypes)}(s,1))),u=Km(c),l=u&&u.typeParameters?Ec(Dc(u,u.typeParameters)):c,_=hc(n);Of(a.inferences,l,_,64);var d=pf(n.typeParameters,n,a.flags),f=c_(o,s&&s.returnMapper);Of(d.inferences,f,_),a.returnMapper=e.some(d.inferences,Uy)?bf(function(t){var n=e.filter(t.inferences,Uy);return n.length?gf(e.map(n,vf),t.signature,t.flags,t.compareTypes):void 0}(d)):void 0}}var p=qh(n),g=p?Math.min(zh(n)-1,r.length):r.length;if(p&&262144&p.flags){var m=e.find(a.inferences,function(e){return e.typeParameter===p});m&&(m.impliedArity=e.findIndex(r,zm,g)<0?r.length-g:void 0)}var h=gc(n);if(h){var y=nh(t),v=y?Hy(y):Ue;Of(a.inferences,v,h)}for(var b=0;b=r-1&&zm(_=t[r-1]))return Ym(224===_.kind?_.type:wy(_.expression,i,a,o));for(var s=[],c=[],u=[],l=n;l_&&(_=y)}}if(!l)return!0;for(var v=1/0,b=0,x=i;b0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=Jm(i);if(a>=0){for(var o=i.slice(0,a),s=function(t){var n=i[t],r=217===n.kind&&(xn?Hy(n.expression):Ay(n.expression));r&&Fd(r)?e.forEach(jc(r),function(e,t){var i,a=r.target.elementFlags[t],s=rh(n,4&a?pu(e):e,!!(12&a),null===(i=r.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)}):o.push(n)},c=a;cs&&(s=f),u-1;u<=o&&v&&u--;var b=h||v?h&&v?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:h?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:e.Diagnostics.Expected_0_arguments_but_got_1_or_more:e.Diagnostics.Expected_0_arguments_but_got_1;if(i&&Jh(i)>u&&i.declaration){var x=i.declaration.parameters[i.thisParameter?u+1:u];x&&(m=e.createDiagnosticForNode(x,e.isBindingPattern(x.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(x)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,x.name?e.isBindingPattern(x.name)?void 0:e.idText(e.getFirstIdentifier(x.name)):u))}if(au&&C?r.indexOf(C):Math.min(o,r.length-1)))}}else g=e.factory.createNodeArray(r.slice(o));var S=e.first(g).pos,k=e.last(g).end;k===S&&k++,e.setTextRangePosEnd(g,S,k);var E=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),g,b,y,u);return m?e.addRelatedInfo(E,m):E}function uh(t,r,i,a,o,s){var c,u=202===t.kind,l=160===t.kind,_=e.isJsxOpeningLikeElement(t),d=!i&&n;l||(c=t.typeArguments,(u||_||105!==t.expression.kind)&&e.forEach(c,Xb));var f=i||[];if(function(t,n,r){var i,a,o,s,c=0,u=-1;e.Debug.assert(!n.length);for(var l=0,_=t;l<_.length;l++){var d=_[l],f=d.declaration&&yi(d.declaration),p=d.declaration&&d.declaration.parent;a&&f!==a?(o=c=n.length,i=p):i&&p===i?o+=1:(i=p,o=c),a=f,j(d)?(s=++u,c++):s=o,n.splice(s,0,r?$o(d,r):d)}}(r,f,o),!f.length)return d&&Hn.add(sh(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Um(t);var p,g,m,h,y=ih(t),v=1===f.length&&!f[0].typeParameters,b=l||v||!e.some(y,f_)?0:4,x=!!(16&a)&&200===t.kind&&t.arguments.hasTrailingComma;if(f.length>1&&(h=V(f,Yn,x)),h||(h=V(f,$n,x)),h)return h;if(d)if(p)if(1===p.length||p.length>3){var D,C=p[p.length-1];p.length>3&&(D=e.chainDiagnosticMessages(D,e.Diagnostics.The_last_overload_gave_the_following_error),D=e.chainDiagnosticMessages(D,e.Diagnostics.No_overload_matches_this_call));var S=th(t,y,C,$n,0,!0,function(){return D});if(S)for(var k=0,E=S;k3&&e.addRelatedInfo(T,e.createDiagnosticForNode(C.declaration,e.Diagnostics.The_last_overload_is_declared_here)),Hn.add(T)}else e.Debug.fail("No error for last overload signature")}else{for(var w=[],A=0,N=Number.MAX_VALUE,P=0,O=0,F=function(n){var r=th(t,y,n,$n,0,!0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,O+1,f.length,Zi(n))});r?(r.length<=N&&(N=r.length,P=O),A=Math.max(A,r.length),w.push(r)):e.Debug.fail("No error for 3 or fewer overload signatures"),O++},I=0,M=p;I1?w[P]:e.flatten(w);e.Debug.assert(L.length>0,"No errors reported for 3 or fewer overload signatures");var R=e.chainDiagnosticMessages(e.map(L,function(e){return"string"==typeof e.messageText?e:e.messageText}),e.Diagnostics.No_overload_matches_this_call),U=e.flatMap(L,function(e){return e.relatedInformation});if(e.every(L,function(e){return e.start===L[0].start&&e.length===L[0].length&&e.file===L[0].file})){var z=L[0];Hn.add({file:z.file,start:z.start,length:z.length,code:R.code,category:R.category,messageText:R,relatedInformation:U})}else Hn.add(e.createDiagnosticForNodeFromMessageChain(t,R,U))}else if(g)Hn.add(ch(t,[g],y));else if(m)$m(m,t.typeArguments,!0,s);else{var J=e.filter(r,function(e){return qm(e,c)});0===J.length?Hn.add(function(t,n,r){var i=r.length;if(1===n.length){var a=uc((_=n[0]).typeParameters),o=e.length(_.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,ai?c=Math.min(c,d):o0),Zb(t),i||1===n.length||n.some(function(e){return!!e.typeParameters})?function(t,n,r){var i=function(e,t){for(var n=-1,r=-1,i=0;i=t)return i;o>r&&(r=o,n=i)}return n}(n,void 0===ae?r.length:ae),a=n[i],o=a.typeParameters;if(!o)return a;var s=Bm(t)?t.typeArguments:void 0,c=s?Cc(a,function(e,t,n){for(var r=e.map(dx);r.length>t.length;)r.pop();for(;r.length=0&&or(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=um(t.expression);if(a===Je)return cn;if((a=Bs(a))===Ce)return Um(t);if(ya(a))return t.typeArguments&&or(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),jm(t);var o=Xs(a,1);if(o.length){if(!function(t,n){if(!n||!n.declaration)return!0;var r=n.declaration,i=e.getSelectedEffectiveModifierFlags(r,24);if(!i||165!==r.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),o=wo(r.parent.symbol);if(!cx(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=dx(s);if(mh(r.parent.symbol,c))return!0}return 8&i&&or(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,$i(o)),16&i&&or(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,$i(o)),!1}return!0}(t,o[0]))return Um(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,128)?(or(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Um(t)):uh(t,o,n,r,0)}var c=Xs(a,0);if(c.length){var u=uh(t,c,n,r,0);return X||(u.declaration&&!Sh(u.declaration)&&hc(u)!==Ue&&or(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),gc(u)===Ue&&or(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),u}return yh(t.expression,a,1),Um(t)}function mh(t,n){var r=mo(n);if(!e.length(r))return!1;var i=r[0];if(2097152&i.flags){for(var a=cs(i.types),o=0,s=0,c=i.types;s0;if(1048576&n.flags){for(var c=!1,u=0,l=n.types;u=r-1)return n===r-1?a:pu(il(a,Oe));for(var o=[],s=[],c=[],u=n;u0)return t.parameters.length-1+a}}return!n&&16&t.flags?0:t.minArgumentCount}function Vh(e){if(B(e)){var t=eo(e.parameters[e.parameters.length-1]);return!Fd(t)||t.target.hasRestElement}return!1}function Wh(e){if(B(e)){var t=eo(e.parameters[e.parameters.length-1]);if(!Fd(t))return t;if(t.target.hasRestElement)return Su(t,t.target.fixedLength)}}function qh(e){var t=Wh(e);return!t||hd(t)||ya(t)||0!=(131072&Vs(t).flags)?void 0:t}function Kh(e){return Hh(e,ze)}function Hh(e,t){return e.parameters.length>0?Bh(e,0):t}function Gh(t,n){t.typeParameters=n.typeParameters,n.thisParameter&&(!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=$d(n.thisParameter,void 0)),Qh(t.thisParameter,eo(n.thisParameter)));for(var r=t.parameters.length-(B(t)?1:0),i=0;i0&&(r=Pu(l,2)):u=ze;var _=function(t,n){var r=[],i=[],a=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,function(t){var o,s=t.expression?Hy(t.expression,n):Te;if(e.pushIfUnique(r,ny(t,s,be,a)),t.asteriskToken){var c=_b(s,a?19:17,t.expression);o=c&&c.nextType}else o=Dg(t);o&&e.pushIfUnique(i,o)}),{yieldTypes:r,nextTypes:i}}(t,n),d=_.yieldTypes,f=_.nextTypes;i=e.some(d)?Pu(d,2):void 0,a=e.some(f)?Bu(f):void 0}else{var p=oy(t,n);if(!p)return 2&o?$h(t,ze):ze;if(0===p.length)return 2&o?$h(t,Ue):Ue;r=Pu(p,2)}if(r||i||a){if(i&&_f(t,i,3),r&&_f(t,r,1),a&&_f(t,a,2),r&&Ed(r)||i&&Ed(i)||a&&Ed(a)){var g=wg(t),m=g?g===_c(t)?c?void 0:r:bg(hc(g),t):void 0;c?(i=Od(i,m,0,s),r=Od(r,m,1,s),a=Od(a,m,2,s)):r=function(e,t,n){return e&&Ed(e)&&(e=Pd(e,t?n?fv(t):t:void 0)),e}(r,m,s)}i&&(i=sf(i)),r&&(r=sf(r)),a&&(a=sf(a))}return c?ty(i||ze,r||u,a||ug(2,t)||ke,s):s?Yh(r||u):r||u}function ty(e,t,n,r){var i=r?gn:mn,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||ke,t=i.resolveIterationType(t,void 0)||ke,n=i.resolveIterationType(n,void 0)||ke,a===nt){var o=i.getGlobalIterableIteratorType(!1),s=o!==nt?gb(o,i):void 0,c=s?s.nextType:Ee;return C_(t,s?s.returnType:be)&&C_(c,n)?o!==nt?du(o,[e]):(i.getGlobalIterableIteratorType(!0),Ze):(i.getGlobalGeneratorType(!0),Ze)}return du(a,[e,t,n])}function ny(t,n,r,i){var a=t.expression||t,o=t.asteriskToken?ib(i?19:17,n,r,a):n;return i?gv(o,a,t.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function ry(e,t,n,r){var i=0;if(r){for(var a=t;a=0;)switch(t=i.expr[a],i.state[a]){case 0:if(e.isInJSFile(t)&&e.getAssignedExpandoInitializer(t)){c(Hy(t.right,n));break}if(Ey(t),62===(o=t.operatorToken.kind)&&(197===t.left.kind||196===t.left.kind)){c(Dy(t.left,Hy(t.right,n),n,107===t.right.kind));break}u(1),l(t.left);break;case 1:var o;i.leftType[a]=s=r,55!==(o=t.operatorToken.kind)&&56!==o&&60!==o||eb(s,t.left),u(2),l(t.right);break;case 2:var s;c(Ty(t.left,t.operatorToken,t.right,s=i.leftType[a],r,t));break;default:return e.Debug.fail("Invalid state "+i.state[a]+" for checkBinaryExpression")}return r;function c(e){r=e,a--}function u(e){i.state[a]=e}function l(t){e.isBinaryExpression(t)?(a++,i.expr[a]=t,i.state[a]=0,i.leftType[a]=void 0):r=Hy(t,n)}}function Ey(t){var n=t.left,r=t.operatorToken,i=t.right;60===r.kind&&(!e.isBinaryExpression(n)||56!==n.operatorToken.kind&&55!==n.operatorToken.kind||TD(n,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(n.operatorToken.kind),e.tokenToString(r.kind)),!e.isBinaryExpression(i)||56!==i.operatorToken.kind&&55!==i.operatorToken.kind||TD(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(r.kind)))}function Ty(t,r,i,a,o,s){var c,u,l=r.kind;switch(l){case 41:case 42:case 65:case 66:case 43:case 67:case 44:case 68:case 40:case 64:case 47:case 69:case 48:case 70:case 49:case 71:case 51:case 73:case 52:case 77:case 50:case 72:if(a===Je||o===Je)return Je;a=gm(a,t),o=gm(o,i);var _=void 0;if(528&a.flags&&528&o.flags&&void 0!==(_=function(e){switch(e){case 51:case 73:return 56;case 52:case 77:return 37;case 50:case 72:return 55;default:return}}(r.kind)))return or(s||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(_)),Oe;var d,f=uy(t,a,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),p=uy(i,o,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(my(a,3)&&my(o,3)||!gy(a,2112)&&!gy(o,2112))d=Oe;else if(D(a,o)){switch(l){case 49:case 71:E();break;case 42:case 66:V<3&&or(s,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}d=Fe}else E(D),d=Ce;return f&&p&&S(d),d;case 39:case 63:if(a===Je||o===Je)return Je;my(a,132)||my(o,132)||(a=gm(a,t),o=gm(o,i));var g=void 0;return my(a,296,!0)&&my(o,296,!0)?g=Oe:my(a,2112,!0)&&my(o,2112,!0)?g=Fe:my(a,132,!0)||my(o,132,!0)?g=Pe:(ya(a)||ya(o))&&(g=a===Ce||o===Ce?Ce:be),g&&!C(l)?g:g?(63===l&&S(g),g):(E(function(e,t){return my(e,2543)&&my(t,2543)}),be);case 29:case 31:case 32:case 33:return C(l)&&(a=wd(gm(a,t)),o=wd(gm(o,i)),k(function(e,t){return k_(e,t)||k_(t,e)||C_(e,Qe)&&C_(t,Qe)})),Be;case 34:case 35:case 36:case 37:return k(function(e,t){return Sy(e,t)||Sy(t,e)}),Be;case 101:return function(t,n,r,i){return r===Je||i===Je?Je:(!ya(r)&&hy(r,131068)&&or(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),ya(i)||yx(i)||D_(i,pt)||or(n,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Be)}(t,i,a,o);case 100:return function(t,n,r,i){return r===Je||i===Je?Je:(r=gm(r,t),i=gm(i,n),hy(r,12716)||my(r,4456448)||or(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),hy(i,126091264)||or(n,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Be)}(t,i,a,o);case 55:case 75:var m=4194304&ep(a)?Pu([(u=K?a:wd(o),bp(u,Vd)),o]):a;return 75===l&&S(o),m;case 56:case 74:var h=8388608&ep(a)?Pu([Jd(a),o],2):a;return 74===l&&S(o),h;case 60:case 76:var y=262144&ep(a)?Pu([Kd(a),o],2):a;return 76===l&&S(o),y;case 62:var v=e.isBinaryExpression(t.parent)?e.getAssignmentDeclarationKind(t.parent):0;return function(t,n){if(2===t)for(var r=0,i=Ds(n);r1&&t.charCodeAt(n-1)>=48&&t.charCodeAt(n-1)<=57;)n--;for(var r=t.slice(0,n),i=1;;i++){var a=r+i;if(!zy(e,a))return a}}function Vy(e){var t=Km(e);if(t&&!t.typeParameters)return hc(t)}function Wy(t){var n=qy(t);if(n)return n;if(67108864&t.flags&&Zt){var r=Zt[P(t)];if(r)return r}var i=Sn,a=Hy(t);return Sn!==i&&((Zt||(Zt=[]))[P(t)]=a,e.setNodeFlags(t,67108864|t.flags)),a}function qy(t){var n=e.skipParentheses(t);if(!e.isCallExpression(n)||105===n.expression.kind||e.isRequireCall(n,!0)||wh(n)){if(e.isAssertionExpression(n)&&!e.isConstTypeReference(n.type))return Rl(n.type);if(8===t.kind||10===t.kind||109===t.kind||94===t.kind)return Hy(t)}else{var r=e.isCallChain(n)?function(e){var t=Hy(e.expression),n=Yd(t,e.expression),r=Vy(t);return r&&Xd(r,e,n!==t)}(n):Vy(um(n.expression));if(r)return r}}function Ky(e){var t=br(e);if(t.contextFreeType)return t.contextFreeType;var n=e.contextualType;e.contextualType=be;try{return t.contextFreeType=Hy(e,4)}finally{e.contextualType=n}}function Hy(t,i,a){var o=_;_=t,D=0;var s=By(t,function(t,i,a){var o=t.kind;if(r)switch(o){case 218:case 205:case 206:r.throwIfCancellationRequested()}switch(o){case 78:return function(t){var n=zf(t);if(n===ye)return Ce;if(n===oe){var r=e.getContainingFunction(t);return V<2&&(206===r.kind?or(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(r,256)&&or(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),br(r).flags|=8192,eo(n)}t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t||Gp(n,t);var i=Si(n),a=i.valueDeclaration;if(a&&134217728&e.getCombinedNodeFlags(a)&&Gu(t.parent,i)&&cr(!1,t,e.Diagnostics._0_is_deprecated,t.escapedText),32&i.flags)if(249===a.kind&&e.nodeIsDecorated(a))for(r=e.getContainingClass(t);void 0!==r;){if(r===a&&r.name!==t){br(a).flags|=16777216,br(t).flags|=33554432;break}r=e.getContainingClass(r)}else if(218===a.kind)for(r=e.getThisContainer(t,!1);294!==r.kind;){if(r.parent===a){162===r.kind&&e.hasSyntacticModifier(r,32)&&(br(a).flags|=16777216,br(t).flags|=33554432);break}r=e.getThisContainer(r,!1)}!function(t,n){if(!(V>=2||0==(34&n.flags)||e.isSourceFile(n.valueDeclaration)||284===n.valueDeclaration.parent.kind)){for(var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration),i=function(t,n){return!!e.findAncestor(t,function(t){return t===n?"quit":e.isFunctionLike(t)})}(t.parent,r),a=r,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}if(o){if(i){var s=!0;if(e.isForStatement(r)&&(_=e.getAncestor(n.valueDeclaration,247))&&_.parent===r){var c=function(t,n){return e.findAncestor(t,function(e){return e===n?"quit":e===n.initializer||e===n.condition||e===n.incrementor||e===n.statement})}(t.parent,r);if(c){var u=br(c);u.flags|=131072;var l=u.capturedBlockScopeBindings||(u.capturedBlockScopeBindings=[]);e.pushIfUnique(l,n),c===r.initializer&&(s=!1)}}s&&(br(a).flags|=65536)}var _;e.isForStatement(r)&&(_=e.getAncestor(n.valueDeclaration,247))&&_.parent===r&&function(t,n){for(var r=t;204===r.parent.kind;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(211===r.parent.kind||212===r.parent.kind){var a=r.parent;i=45===a.operator||46===a.operator}return!!i&&!!e.findAncestor(r,function(e){return e===n?"quit":e===n.statement})}(t,r)&&(br(n.valueDeclaration).flags|=4194304),br(n.valueDeclaration).flags|=524288}i&&(br(n.valueDeclaration).flags|=262144)}}(t,n);var o=Hp(eo(i),t),s=e.getAssignmentTargetKind(t);if(s){if(!(3&i.flags||e.isInJSFile(t)&&512&i.flags))return or(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Yi(n)),Ce;if(_y(i))return or(t,3&i.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant:e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Yi(n)),Ce}var c=2097152&i.flags;if(3&i.flags){if(1===s)return o}else{if(!c)return o;a=e.find(n.declarations,L)}if(!a)return o;for(var u=159===e.getRootDeclaration(a).kind,l=zp(a),_=zp(t),d=_!==l,f=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&op(t.parent.parent),p=134217728&n.flags;_!==l&&(205===_.kind||206===_.kind||e.isObjectLiteralOrClassExpressionMethod(_))&&(Wp(i)||u&&!Jp(i));)_=zp(_);var g=u||c||d||f||p||e.isBindingElement(a)||o!==xe&&o!==kt&&(!K||0!=(16387&o.flags)||Jf(t)||267===t.parent.kind)||222===t.parent.kind||246===a.kind&&a.exclamationToken||8388608&a.flags,m=Up(t,o,g?u?function(e,t){if(da(t.symbol,2)){var n=K&&159===t.kind&&t.initializer&&32768&zd(e)&&!(32768&zd(Hy(t.initializer)));return ga(),n?tp(e,524288):e}return $a(t.symbol),e}(o,a):o:o===xe||o===kt?Ee:qd(o),_,!g);if(Pp(t)||o!==xe&&o!==kt){if(!g&&!(32768&zd(o))&&32768&zd(m))return or(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,Yi(n)),o}else if(m===xe||m===kt)return X&&(or(e.getNameOfDeclaration(a),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Yi(n),$i(m)),or(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Yi(n),$i(m))),Hv(m);return s?wd(m):m}(t);case 107:return $p(t);case 105:return ng(t);case 103:return Ne;case 14:case 10:return Al(Ol(t.text));case 8:return ND(t),Al(Ol(+t.text));case 9:return function(t){!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&V<7&&TD(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)}(t),Al(function(t){return Ol({negative:!1,base10Value:e.parsePseudoBigInt(t.text)})}(t));case 109:return Le;case 94:return Ie;case 215:return function(t){return e.forEach(t.templateSpans,function(t){gy(Hy(t.expression),12288)&&or(t.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)}),Pe}(t);case 13:return Dt;case 196:return Pg(t,i,a);case 197:return function(t,n){var r=e.isAssignmentTarget(t);!function(t,n){for(var r=new e.Map,i=0,a=t.properties;i0&&(s=Sl(s,M(),t.symbol,g,l),o=[],a=e.createSymbolTable(),h=!1,y=!1),!jg(w=Vs(Hy(k.expression))))return or(k,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Ce;i&&Wg(w,i,k),s=Sl(s,w,t.symbol,g,l),D=o.length;continue}e.Debug.assert(166===k.kind||167===k.kind),Zb(k)}!T||8576&T.flags?a.set(E.escapedName,E):C_(T,He)&&(C_(T,Oe)?y=!0:h=!0,r&&(m=!0)),o.push(E)}if(u&&287!==t.parent.kind)for(var F=0,I=ks(c);F0&&(s=Sl(s,M(),t.symbol,g,l),o=[],a=e.createSymbolTable(),h=!1,y=!1),bp(s,function(e){return e===Ze?M():e})):M();function M(){var n=h?Rg(t,D,o,0):void 0,i=y?Rg(t,D,o,1):void 0,s=Mi(t.symbol,a,e.emptyArray,e.emptyArray,n,i);return s.objectFlags|=1048704|g,p&&(s.objectFlags|=16384),m&&(s.objectFlags|=512),r&&(s.pattern=t),s}}(t,i);case 198:return hm(t);case 156:return ym(t);case 199:return function(e){return 32&e.flags?function(e){var t=Hy(e.expression),n=Yd(t,e.expression);return Xd(Lm(e,gm(n,e.expression)),e,n!==t)}(e):Lm(e,um(e.expression))}(t);case 200:if(99===t.expression.kind)return function(t){if(sD(t.arguments)||function(t){if(W===e.ModuleKind.ES2015)return TD(t,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd);if(t.typeArguments)return TD(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var n=t.arguments;1!==n.length?TD(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):(rD(n),e.isSpreadElement(n[0])&&TD(n[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element))}(t),0===t.arguments.length)return $h(t,be);for(var n=t.arguments[0],r=Ay(n),i=1;i0&&(s=Sl(s,S(),i.symbol,l,!1),o=e.createSymbolTable()),ya(m=Vs(Ay(p.expression,n)))&&(c=!0),jg(m)?(s=Sl(s,m,i.symbol,l,!1),a&&Wg(m,a,p)):r=r?Bu([r,m]):m}c||o.size>0&&(s=Sl(s,S(),i.symbol,l,!1));var y=270===t.parent.kind?t.parent:void 0;if(y&&y.openingElement===t&&y.children.length>0){var v=Vg(y,n);if(!c&&_&&""!==_){u&&or(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(_));var b=vg(t.attributes),x=b&&fg(b,_),D=lr(33554436,_);D.type=1===v.length?v[0]:x&&mp(x,Cd)?bu(v):pu(Pu(v)),D.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(_),void 0,void 0),e.setParent(D.valueDeclaration,i),D.valueDeclaration.symbol=D;var C=e.createSymbolTable();C.set(_,D),s=Sl(s,Mi(i.symbol,C,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,l,!1)}}return c?be:r&&s!==$e?Bu([r,s]):r||(s===$e?S():s);function S(){l|=$;var t=Mi(i.symbol,o,e.emptyArray,e.emptyArray,void 0,void 0);return t.objectFlags|=1048704|l,t}}(t.parent,n)}(t,i);case 272:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ce}(t,i,a),i);return yy(s)&&function(t,n){198===t.parent.kind&&t.parent.expression===t||199===t.parent.kind&&t.parent.expression===t||(78===t.kind||156===t.kind)&&ux(t)||175===t.parent.kind&&t.parent.exprName===t||267===t.parent.kind||or(t,e.Diagnostics.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),J.isolatedModules&&(e.Debug.assert(!!(128&n.symbol.flags)),8388608&n.symbol.valueDeclaration.flags&&or(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided))}(t,s),_=o,s}function Gy(t){t.expression&&kD(t.expression,e.Diagnostics.Type_expected),Xb(t.constraint),Xb(t.default);var r=To(yi(t));Os(r),function(e){return Ls(e)!==at}(r)||or(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,$i(r));var i=Ts(r),a=Rs(r);i&&a&&T_(a,Go(c_(i,Wl(r,a)),a),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),n&&Pb(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function Qy(t){tD(t),Gv(t);var n=e.getContainingFunction(t);e.hasSyntacticModifier(t,92)&&(165===n.kind&&e.nodeIsPresent(n.body)||or(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),165===n.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&or(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),t.questionToken&&e.isBindingPattern(t.name)&&n.body&&or(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==n.parameters.indexOf(t)&&or(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),165!==n.kind&&169!==n.kind&&174!==n.kind||or(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),206===n.kind&&or(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),166!==n.kind&&167!==n.kind||or(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||C_(Vs(eo(t.symbol)),Et)||or(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Xy(t,n,r){for(var i=0,a=t.elements;i=2||!e.hasRestParameter(t)||8388608&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===oe.escapedName&&ar("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(t);var i=e.getEffectiveReturnTypeNode(t);if(X&&!i)switch(t.kind){case 169:or(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 168:or(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(i){var a=e.getFunctionFlags(t);if(1==(5&a)){var o=Rl(i);if(o===Ue)or(i,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=Eb(0,o,0!=(2&a))||be;T_(ty(s,Eb(1,o,0!=(2&a))||s,Eb(2,o,0!=(2&a))||ke,!!(2&a)),o,i)}}else 2==(3&a)&&function(t,n){var r=Rl(n);if(V>=2){if(r===Ce)return;var i=cu(!0);if(i!==nt&&!to(r,i))return void or(n,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,$i(gv(r)||Ue))}else{if(function(t){yv(t&&e.getEntityNameFromTypeNode(t))}(n),r===Ce)return;var a=e.getEntityNameFromTypeNode(n);if(void 0===a)return void or(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,$i(r));var o=ni(a,111551,!0),s=o?eo(o):Ce;if(s===Ce)return void(78===a.kind&&"Promise"===a.escapedText&&no(r)===cu(!1)?or(n,e.Diagnostics.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):or(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)));var c=It||(It=au("PromiseConstructorLike",0,!0))||Ze;if(c===Ze)return void or(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a));if(!T_(s,c,n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var u=a&&e.getFirstIdentifier(a),l=Dr(t.locals,u.escapedText,111551);if(l)return void or(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a))}pv(r,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t,i)}170!==t.kind&&304!==t.kind&&Ev(t)}}function Zy(t){for(var n=new e.Map,r=0,i=t.members;r0&&n.declarations[0]!==t)return}var r=Tc(yi(t));if(r)for(var i=!1,a=!1,o=0,s=r.declarations;o=0)return void(n&&or(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Kn.push(t.id);var s=gv(o,n,r,i);if(Kn.pop(),!s)return;return a.awaitedTypeOfType=s}if(!function(e){var t=ha(e,"then");return!!t&&Xs(tp(t,2097152),0).length>0}(t))return a.awaitedTypeOfType=t;if(n){if(!r)return e.Debug.fail();or(n,r,i)}}function hv(t){var n=Ch(t);Eh(n,t);var r=hc(n);if(!(1&r.flags)){var i,a,o=bh(t);switch(t.parent.kind){case 249:i=Pu([eo(yi(t.parent)),Ue]);break;case 159:i=Ue,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 162:i=Ue,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 164:case 166:case 167:i=Pu([fu(dx(t.parent)),Ue]);break;default:return e.Debug.fail()}T_(r,i,t,o,function(){return a})}}function yv(t){if(t){var n=e.getFirstIdentifier(t),r=kr(n,n.escapedText,2097152|(78===t.kind?788968:1920),void 0,void 0,!0);r&&2097152&r.flags&&ki(r)&&!Ax(Gr(r))&&!Yr(r)&&$r(r)}}function vv(t){var n=bv(t);n&&e.isEntityName(n)&&yv(n)}function bv(e){if(e)switch(e.kind){case 182:case 181:return xv(e.types);case 183:return xv([e.trueType,e.falseType]);case 185:case 191:return bv(e.type);case 172:return e.typeName}}function xv(t){for(var n,r=0,i=t;r=e.ModuleKind.ES2015)&&(zv(t,n,"require")||zv(t,n,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var r=ma(t);294===r.kind&&e.isExternalOrCommonJsModule(r)&&ar("noEmit",n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(n),e.declarationNameToString(n))}}function Kv(t,n){if(!(V>=4)&&zv(t,n,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var r=ma(t);294===r.kind&&e.isExternalOrCommonJsModule(r)&&2048&r.flags&&ar("noEmit",n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(n),e.declarationNameToString(n))}}function Hv(e){return e===xe?be:e===kt?St:e}function Gv(t){var n;if(Cv(t),e.isBindingElement(t)||Xb(t.type),t.name){if(157===t.name.kind&&(Lg(t.name),t.initializer&&Ay(t.initializer)),195===t.kind){193===t.parent.kind&&V<99&&$x(t,4),t.propertyName&&157===t.propertyName.kind&&Lg(t.propertyName);var r=t.parent.parent,i=va(r),a=t.propertyName||t.name;if(i&&!e.isBindingPattern(a)){var o=Uu(a);if(Bo(o)){var s=Gs(i,Vo(o));s&&(Fm(s,void 0,!1),sm(r,!!r.initializer&&105===r.initializer.kind,i,s))}}}if(e.isBindingPattern(t.name)&&(194===t.name.kind&&V<2&&J.downlevelIteration&&$x(t,512),e.forEach(t.name.elements,Xb)),t.initializer&&159===e.getRootDeclaration(t).kind&&e.nodeIsMissing(e.getContainingFunction(t).body))or(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(t.name)){var c=t.initializer&&235!==t.parent.parent.kind,u=0===t.name.elements.length;if(c||u){var l=za(t);if(c){var _=Ay(t.initializer);K&&u?mm(_,t):w_(_,za(t),t,t.initializer)}u&&(e.isArrayBindingPattern(t.name)?ib(65,l,Ee,t):K&&mm(l,t))}}else{var d=yi(t),f=Hv(eo(d));if(t===d.valueDeclaration){var p=e.getEffectiveInitializer(t);p&&(e.isInJSFile(t)&&e.isObjectLiteralExpression(p)&&(0===p.properties.length||e.isPrototypeAccess(t.name))&&(null===(n=d.exports)||void 0===n?void 0:n.size)||235===t.parent.parent.kind||w_(Ay(p),f,t,p,void 0)),d.declarations.length>1&&e.some(d.declarations,function(n){return n!==t&&e.isVariableLike(n)&&!Xv(n,t)})&&or(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var g=Hv(za(t));f===Ce||g===Ce||y_(f,g)||67108864&d.flags||Qv(d.valueDeclaration,f,t,g),t.initializer&&w_(Ay(t.initializer),g,t,t.initializer,void 0),Xv(t,d.valueDeclaration)||or(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}162!==t.kind&&161!==t.kind&&(_v(t),246!==t.kind&&195!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(246!==t.kind||t.initializer)){var n=yi(t);if(1&n.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var r=kr(t,t.name.escapedText,3,void 0,void 0,!1);if(r&&r!==n&&2&r.flags&&3&am(r)){var i=e.getAncestor(r.valueDeclaration,247),a=229===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(227===a.kind&&e.isFunctionLike(a.parent)||254===a.kind||253===a.kind||294===a.kind)){var o=Yi(r);or(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),qv(t,t.name),Kv(t,t.name),V<99&&zv(t,t.name,"WeakMap")&&qn.push(t))}}}function Qv(t,n,r,i){var a=e.getNameOfDeclaration(r),o=162===r.kind||161===r.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,s=e.declarationNameToString(a),c=or(a,o,s,$i(n),$i(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function Xv(t,n){return 159===t.kind&&246===n.kind||246===t.kind&&159===n.kind||e.hasQuestionToken(t)===e.hasQuestionToken(n)&&e.getSelectedEffectiveModifierFlags(t,504)===e.getSelectedEffectiveModifierFlags(n,504)}function Yv(t){return function(t){if(235!==t.parent.parent.kind&&236!==t.parent.parent.kind)if(8388608&t.flags)vD(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return TD(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return TD(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(229!==t.parent.parent.kind||!t.type||t.initializer||8388608&t.flags))return TD(t.exclamationToken,e.Diagnostics.Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation);var n=e.getEmitModuleKind(J);n=1&&Yv(t.declarations[0])}function rb(e){return ib(e.awaitModifier?15:13,um(e.expression),Ee,e.expression)}function ib(e,t,n,r){return ya(t)?t:ab(e,t,n,r,!0)||be}function ab(t,n,r,i,a){var o=0!=(2&t);if(n!==ze){var s=V>=2,c=!s&&J.downlevelIteration;if(s||c||o){var u=_b(n,t,s?i:void 0);if(a&&u){var l=8&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&t?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;l&&T_(r,u.nextType,i,l)}if(u||s)return u&&u.yieldType}var _=n,d=!1,f=!1;if(4&t){if(1048576&_.flags){var p=n.types,g=e.filter(p,function(e){return!(132&e.flags)});g!==p&&(_=Pu(g,2))}else 132&_.flags&&(_=ze);if((f=_!==n)&&(V<1&&i&&(or(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),d=!0),131072&_.flags))return Pe}if(!xd(_)){if(i&&!d){var m=ob(t,0,n,void 0),h=4&t&&!f?c?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:m?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:c?[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:m?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type,!0],y=h[0];ur(i,h[1]&&!!dv(_),y,$i(_))}return f?Pe:void 0}var v=ec(_,1);return f&&v?132&v.flags?Pe:Pu([v,Pe],2):v}yb(i,n,o)}function ob(e,t,n,r){if(!ya(n)){var i=_b(n,e,r);return i&&i[R(t)]}}function sb(e,t,n){if(void 0===e&&(e=ze),void 0===t&&(t=ze),void 0===n&&(n=ke),67359327&e.flags&&180227&t.flags&&180227&n.flags){var r=Ic([e,t,n]),i=ln.get(r);return i||ln.set(r,i={yieldType:e,returnType:t,nextType:n}),i}return{yieldType:e,returnType:t,nextType:n}}function cb(t){for(var n,r,i,a=0,o=t;ar)return!1;for(var u=0;u1)return kD(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);n=!0}else{if(e.Debug.assert(116===o.token),r)return kD(o,e.Diagnostics.implements_clause_already_seen);r=!0}cD(o)}})(t)||iD(t.typeParameters,n)}(t),Cv(t),t.name&&(Pb(t.name,e.Diagnostics.Class_name_cannot_be_0),qv(t,t.name),Kv(t,t.name),8388608&t.flags||(r=t.name,1===V&&"Object"===r.escapedText&&W>o;case 49:return a>>>o;case 47:return a<1)for(var o=0,s=r;o=229&&i<=245&&t.flowNode&&!Lp(t.flowNode)&&cr(!1===J.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected),i){case 158:return Gy(t);case 159:return Qy(t);case 162:return ev(t);case 161:return function(t){return e.isPrivateIdentifier(t.name)&&or(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),ev(t)}(t);case 173:case 174:case 168:case 169:case 170:return Yy(t);case 164:case 163:return function(t){hD(t)||lD(t.name),e.isPrivateIdentifier(t.name)&&or(t,e.Diagnostics.A_method_cannot_be_named_with_a_private_identifier),kv(t),e.hasSyntacticModifier(t,128)&&164===t.kind&&t.body&&or(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name))}(t);case 165:return function(t){Yy(t),function(t){var n=e.isInJSFile(t)?e.getJSDocTypeParameterDeclarations(t):void 0,r=t.typeParameters||n&&e.firstOrUndefined(n);if(r){var i=r.pos===r.end?r.pos:e.skipTrivia(e.getSourceFileOfNode(t).text,r.pos);return ED(t,i,r.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(t)||function(t){var n=e.getEffectiveReturnTypeNode(t);n&&TD(n,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(t),Xb(t.body);var r=yi(t);if(t===e.getDeclarationOfKind(r,t.kind)&&lv(r),!e.nodeIsMissing(t.body)&&n){var i=t.parent;if(e.getClassExtendsHeritageElement(i)){Qp(t.parent,i);var a=Yp(i),o=Xp(t.body);if(o){if(a&&or(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==J.target||!J.useDefineForClassFields)&&(e.some(t.parent.members,function(t){return!!e.isPrivateIdentifierPropertyDeclaration(t)||162===t.kind&&!e.hasSyntacticModifier(t,32)&&!!t.initializer})||e.some(t.parameters,function(t){return e.hasSyntacticModifier(t,92)}))){for(var s=void 0,c=0,u=t.body.statements;c=0)B(r)&&i.parameterIndex===r.parameters.length-1?or(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&T_(i.type,eo(r.parameters[i.parameterIndex]),t.type,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)});else if(a){for(var o=!1,s=0,c=n.parameters;s0),r.length>1&&or(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Sv(t.class.expression),a=e.getClassExtendsHeritageElement(n);if(a){var o=Sv(a.expression);o&&i.escapedText!==o.escapedText&&or(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else or(n,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 312:return function(t){var n=e.getEffectiveJSDocHost(t);n&&(e.isClassDeclaration(n)||e.isClassExpression(n))||or(n,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 327:case 320:case 321:return function(t){t.typeExpression||or(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&Pb(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Xb(t.typeExpression)}(t);case 326:return function(e){Xb(e.constraint);for(var t=0,n=e.typeParameters;t-1&&r1){var i=e.isEnumConst(t);e.forEach(r.declarations,function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==i&&or(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var a=!1;e.forEach(r.declarations,function(t){if(252!==t.kind)return!1;if(!t.members.length)return!1;var n=t.members[0];n.initializer||(a?or(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)})}}}(t);case 253:return function(t){if(n){var r=e.isGlobalScopeAugmentation(t),i=8388608&t.flags;r&&!i&&or(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var a=e.isAmbientModule(t);if(Hb(t,a?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;tD(t)||i||10!==t.name.kind||TD(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&(qv(t,t.name),Kv(t,t.name)),_v(t);var o=yi(t);if(512&o.flags&&!i&&o.declarations.length>1&&F(t,!!J.preserveConstEnums||!!J.isolatedModules)){var s=function(t){for(var n=0,r=t.declarations;n=e.ModuleKind.ES2015&&!(8388608&t.flags)&&TD(t,e.Diagnostics.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)}(t);case 264:return function(t){if(!Hb(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!tD(t)&&e.hasEffectiveModifiers(t)&&kD(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),t.moduleSpecifier&&t.exportClause&&e.isNamedExports(t.exportClause)&&e.length(t.exportClause.elements)&&0===V&&$x(t,4194304),function(t){var n;t.isTypeOnly&&265!==(null===(n=t.exportClause)||void 0===n?void 0:n.kind)&&TD(t,e.Diagnostics.Only_named_exports_may_use_export_type)}(t),!t.moduleSpecifier||Wb(t)))if(t.exportClause&&!e.isNamespaceExport(t.exportClause)){e.forEach(t.exportClause.elements,Gb);var n=254===t.parent.kind&&e.isAmbientModule(t.parent.parent);294===t.parent.kind||n||!n&&254===t.parent.kind&&!t.moduleSpecifier&&8388608&t.flags||or(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var r=ii(t,t.moduleSpecifier);r&&li(r)?or(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Yi(r)):t.exportClause&&qb(t.exportClause),W!==e.ModuleKind.System&&W=e.ModuleKind.ES2015?TD(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):W===e.ModuleKind.System&&TD(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else or(t,t.isExportEquals?e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace:e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 228:case 245:return void AD(t);case 268:!function(e){Cv(e)}(t)}}(t),_=i}}function Yb(t){e.isInJSFile(t)||TD(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Zb(t){var n=br(e.getSourceFileOfNode(t));if(!(1&n.flags)){n.deferredNodes=n.deferredNodes||new e.Map;var r=P(t);n.deferredNodes.set(r,t)}}function $b(t){var n=_;switch(_=t,D=0,t.kind){case 200:case 201:case 202:case 160:case 272:jm(t);break;case 205:case 206:case 164:case 163:!function(t){e.Debug.assert(164!==t.kind||e.isObjectLiteralMethod(t));var n=e.getFunctionFlags(t),r=yc(t);if(sy(t,r),t.body)if(e.getEffectiveReturnTypeNode(t)||hc(_c(t)),227===t.body.kind)Xb(t.body);else{var i=Hy(t.body),a=r&&wb(r,n);a&&w_(2==(3&n)?pv(i,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,a,t.body,t.body)}}(t);break;case 166:case 167:tv(t);break;case 218:!function(t){e.forEach(t.members,Xb),Ev(t)}(t);break;case 271:!function(e){nm(e),jm(e)}(t);break;case 270:!function(e){nm(e.openingElement),zg(e.closingElement.tagName)?Kg(e.closingElement):Hy(e.closingElement.tagName),Vg(e)}(t)}_=n}function ex(n){e.performance.mark("beforeCheck"),function(n){var r=br(n);if(!(1&r.flags)){if(e.skipTypeChecking(n,J,t))return;!function(t){8388608&t.flags&&function(t){for(var n=0,r=t.statements;n0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),ex),Hn.getDiagnostics()}(n)}finally{r=void 0}}function ix(){if(!n)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function ax(e){switch(e.kind){case 158:case 249:case 250:case 251:case 252:case 327:case 320:case 321:return!0;case 259:return e.isTypeOnly;case 262:case 267:return e.parent.parent.isTypeOnly;default:return!1}}function ox(e){for(;156===e.parent.kind;)e=e.parent;return 172===e.parent.kind}function sx(t,n){for(var r;(t=e.getContainingClass(t))&&!(r=n(t)););return r}function cx(e,t){return!!sx(e,function(e){return e===t})}function ux(e){return void 0!==function(e){for(;156===e.parent.kind;)e=e.parent;return 257===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:263===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function lx(t){if(e.isDeclarationName(t))return yi(t.parent);if(e.isInJSFile(t)&&198===t.parent.kind&&t.parent===t.parent.parent.left&&!e.isPrivateIdentifier(t)){var n=function(t){switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return yi(t.parent);case 4:case 2:case 5:return yi(t.parent.parent)}}(t);if(n)return n}if(263===t.parent.kind&&e.isEntityNameExpression(t)){var r=ni(t,2998271,!0);if(r&&r!==ye)return r}else if(!e.isPropertyAccessExpression(t)&&!e.isPrivateIdentifier(t)&&ux(t)){var i=e.getAncestor(t,257);return e.Debug.assert(void 0!==i),ei(t,!0)}if(!e.isPropertyAccessExpression(t)&&!e.isPrivateIdentifier(t)){var a=function(t){for(var n=t.parent;e.isQualifiedName(n);)t=n,n=n.parent;if(n&&192===n.kind&&n.qualifier===t)return n}(t);if(a){Rl(a);var o=br(t).resolvedSymbol;return o===ye?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;if(function(e){for(;198===e.parent.kind;)e=e.parent;return 220===e.parent.kind}(t)){var s=0;220===t.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?ni(t,s):void 0;if(c)return c}if(322===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(158===t.parent.kind&&326===t.parent.parent.kind){e.Debug.assert(!e.isInJSFile(t));var u=e.getTypeParameterFromJsDoc(t.parent);return u&&u.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;if(78===t.kind){if(e.isJSXTagName(t)&&zg(t)){var l=Kg(t.parent);return l===ye?void 0:l}return ni(t,111551,!1,!0)}if(198===t.kind||156===t.kind){var _=br(t);return _.resolvedSymbol||(198===t.kind?hm(t):ym(t)),_.resolvedSymbol}}else if(ox(t))return ni(t,s=172===t.parent.kind?788968:1920,!1,!0);return 171===t.parent.kind?ni(t,1):void 0}function _x(t,n){if(294===t.kind)return e.isExternalModule(t)?hi(t.symbol):void 0;var r=t.parent,i=r.parent;if(!(16777216&t.flags)){if(M(t)){var a=yi(r);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?Bg(a):a}if(e.isLiteralComputedPropertyDeclarationName(t))return yi(r.parent);if(78===t.kind){if(ux(t))return lx(t);if(195===r.kind&&193===i.kind&&t===r.propertyName){var o=Gs(dx(i),t.escapedText);if(o)return o}}switch(t.kind){case 78:case 79:case 198:case 156:return lx(t);case 107:var s=e.getThisContainer(t,!1);if(e.isFunctionLike(s)){var c=_c(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(t))return Hy(t).symbol;case 186:return Il(t).symbol;case 105:return Hy(t).symbol;case 132:var u=t.parent;return u&&165===u.kind?u.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(258===t.parent.kind||264===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJSFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return ii(t,t,n);if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===t)return yi(r);case 8:var l=e.isElementAccessExpression(r)?r.argumentExpression===t?Wy(r.expression):void 0:e.isLiteralTypeNode(r)&&e.isIndexedAccessTypeNode(i)?Rl(i.objectType):void 0;return l&&Gs(l,e.escapeLeadingUnderscores(t.text));case 87:case 97:case 38:case 83:return yi(t.parent);case 192:return e.isLiteralImportTypeNode(t)?_x(t.argument.literal,n):void 0;case 92:return e.isExportAssignment(t.parent)?e.Debug.checkDefined(t.parent.symbol):void 0;default:return}}}function dx(t){if(16777216&t.flags)return Ce;var n,r,i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),a=i&&vo(yi(i.class));if(e.isPartOfTypeNode(t)){var o=Rl(t);return a?Go(o,a.thisType):o}if(e.isExpressionNode(t))return px(t);if(a&&!i.isImplements){var s=e.firstOrUndefined(mo(a));return s?Go(s,a.thisType):Ce}if(ax(t))return wo(r=yi(t));if(78===(n=t).kind&&ax(n.parent)&&e.getNameOfDeclaration(n.parent)===n)return(r=_x(t))?wo(r):Ce;if(e.isDeclaration(t))return eo(r=yi(t));if(M(t))return(r=_x(t))?eo(r):Ce;if(e.isBindingPattern(t))return wa(t.parent,!0)||Ce;if(ux(t)&&(r=_x(t))){var c=wo(r);return c!==Ce?c:eo(r)}return Ce}function fx(t){if(e.Debug.assert(197===t.kind||196===t.kind),236===t.parent.kind)return Dy(t,rb(t.parent)||Ce);if(213===t.parent.kind)return Dy(t,Wy(t.parent.right)||Ce);if(285===t.parent.kind){var n=e.cast(t.parent.parent,e.isObjectLiteralExpression);return by(n,fx(n)||Ce,e.indexOfNode(n.properties,t.parent))}var r=e.cast(t.parent,e.isArrayLiteralExpression),i=fx(r)||Ce,a=ib(65,i,Ee,t.parent)||Ce;return xy(r,i,r.elements.indexOf(t),a)}function px(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Nl(Wy(t))}function gx(t){var n=yi(t.parent);return e.hasSyntacticModifier(t,32)?eo(n):wo(n)}function mx(t){var n=t.name;switch(n.kind){case 78:return Ol(e.idText(n));case 8:case 10:return Ol(n.text);case 157:var r=Lg(n);return my(r,12288)?r:Pe;default:return e.Debug.fail("Unsupported property name.")}}function hx(t){t=Bs(t);var n=e.createSymbolTable(ks(t)),r=Xs(t,0).length?gt:Xs(t,1).length?mt:void 0;return r&&e.forEach(ks(r),function(e){n.has(e.escapedName)||n.set(e.escapedName,e)}),Fi(n)}function yx(t){return e.typeHasCallOrConstructSignatures(t,ce)}function vx(t){if(e.isGeneratedIdentifier(t))return!1;var n=e.getParseTreeNode(t,e.isIdentifier);if(!n)return!1;var r=n.parent;return!(!r||(e.isPropertyAccessExpression(r)||e.isPropertyAssignment(r))&&r.name===n||Kx(n)!==oe)}function bx(t){var n=ii(t.parent,t);if(!n||e.isShorthandAmbientModuleSymbol(n))return!0;var r=li(n),i=vr(n=ci(n));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=r?!!(111551&n.flags):e.forEachEntry(pi(n),function(e){return(e=Hr(e))&&!!(111551&e.flags)})),i.exportsSomeValue}function xx(t,n){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var i=Kx(r,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(r));if(i){if(1048576&i.flags){var a=hi(i.exportSymbol);if(!n&&944&a.flags&&!(3&a.flags))return;i=a}var o=vi(i);if(o){if(512&o.flags&&294===o.valueDeclaration.kind){var s=o.valueDeclaration;return s!==e.getSourceFileOfNode(r)?void 0:s}return e.findAncestor(r.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&yi(t)===o})}}}}function Dx(t){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var r=Kx(n);if(Kr(r,111551)&&!Yr(r))return Lr(r)}}function Cx(t){if(418&t.flags&&!e.isSourceFile(t.valueDeclaration)){var n=vr(t);if(void 0===n.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(r)||function(t){return e.isBindingElement(t.valueDeclaration)&&284===e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind}(t)){var i=br(t.valueDeclaration);if(kr(r.parent,t.escapedName,111551,void 0,void 0,!1))n.isDeclarationWithCollidingName=!0;else if(262144&i.flags){var a=524288&i.flags,o=e.isIterationStatement(r,!1),s=227===r.kind&&e.isIterationStatement(r.parent,!1);n.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||a&&(o||s))}else n.isDeclarationWithCollidingName=!1}}return n.isDeclarationWithCollidingName}return!1}function Sx(t){if(!e.isGeneratedIdentifier(t)){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var r=Kx(n);if(r&&Cx(r))return r.valueDeclaration}}}function kx(t){var n=e.getParseTreeNode(t,e.isDeclaration);if(n){var r=yi(n);if(r)return Cx(r)}return!1}function Ex(t){switch(t.kind){case 257:return wx(yi(t)||ye);case 259:case 260:case 262:case 267:var n=yi(t)||ye;return wx(n)&&!Yr(n);case 264:var r=t.exportClause;return!!r&&(e.isNamespaceExport(r)||e.some(r.elements,Ex));case 263:return!t.expression||78!==t.expression.kind||wx(yi(t)||ye)}return!1}function Tx(t){var n=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===n||294!==n.parent.kind||!e.isInternalModuleImportEqualsDeclaration(n))&&wx(yi(n))&&n.moduleReference&&!e.nodeIsMissing(n.moduleReference)}function wx(e){var t=Gr(e);return t===ye||!!(111551&t.flags)&&(J.preserveConstEnums||!Ax(t))}function Ax(e){return vy(e)||!!e.constEnumOnlyModule}function Nx(t,n){if(Rr(t)){var r=yi(t);if(r&&vr(r).referenced)return!0;var i=vr(r).target;if(i&&1&e.getEffectiveModifierFlags(t)&&111551&i.flags&&(J.preserveConstEnums||!Ax(i)))return!0}return!!n&&!!e.forEachChild(t,function(e){return Nx(e,n)})}function Px(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var n=pc(yi(t));return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function Ox(t){return!(!K||oc(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,92))}function Fx(t){return K&&oc(t)&&!t.initializer&&e.hasSyntacticModifier(t,92)}function Ix(t){var n=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!n)return!1;var r=yi(n);return!!(r&&16&r.flags)&&!!e.forEachEntry(fi(r),function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)})}function Mx(t){var n=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!n)return e.emptyArray;var r=yi(n);return r&&ks(eo(r))||e.emptyArray}function Lx(e){return br(e).flags||0}function Rx(e){return jb(e.parent),br(e).enumMemberValue}function Bx(e){switch(e.kind){case 288:case 198:case 199:return!0}return!1}function jx(t){if(288===t.kind)return Rx(t);var n=br(t).resolvedSymbol;if(n&&8&n.flags){var r=n.valueDeclaration;if(e.isEnumConst(r.parent))return Rx(r)}}function Ux(e){return!!(524288&e.flags)&&Xs(e,0).length>0}function zx(t,n){var r,i=e.getParseTreeNode(t,e.isEntityName);if(!i)return e.TypeReferenceSerializationKind.Unknown;if(n&&!(n=e.getParseTreeNode(n)))return e.TypeReferenceSerializationKind.Unknown;var a=ni(i,111551,!0,!0,n),o=(null===(r=null==a?void 0:a.declarations)||void 0===r?void 0:r.every(e.isTypeOnlyImportOrExportDeclaration))||!1,s=a&&2097152&a.flags?Gr(a):a,c=ni(i,788968,!0,!1,n);if(s&&s===c){var u=uu(!1);if(u&&s===u)return e.TypeReferenceSerializationKind.Promise;var l=eo(s);if(l&&uo(l))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!c)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var _=wo(c);return _===Ce?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&_.flags?e.TypeReferenceSerializationKind.ObjectType:my(_,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:my(_,528)?e.TypeReferenceSerializationKind.BooleanType:my(_,296)?e.TypeReferenceSerializationKind.NumberLikeType:my(_,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:my(_,132)?e.TypeReferenceSerializationKind.StringLikeType:Fd(_)?e.TypeReferenceSerializationKind.ArrayLikeType:my(_,12288)?e.TypeReferenceSerializationKind.ESSymbolType:Ux(_)?e.TypeReferenceSerializationKind.TypeWithCallSignature:hd(_)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function Jx(t,n,r,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(128);var s=yi(o),c=!s||133120&s.flags?Ce:Ad(eo(s));return 8192&c.flags&&c.symbol===s&&(r|=1048576),a&&(c=qd(c)),te.typeToTypeNode(c,n,1024|r,i)}function Vx(t,n,r,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(128);var o=_c(a);return te.typeToTypeNode(hc(o),n,1024|r,i)}function Wx(t,n,r,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(128);var o=sf(px(a));return te.typeToTypeNode(o,n,1024|r,i)}function qx(t){return ne.has(e.escapeLeadingUnderscores(t))}function Kx(t,n){var r=br(t).resolvedSymbol;if(r)return r;var i=t;if(n){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=ma(a))}return kr(i,t.escapedText,3257279,void 0,void 0,!0)}function Hx(t){if(!e.isGeneratedIdentifier(t)){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var r=Kx(n);if(r)return Si(r).valueDeclaration}}}function Gx(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&Pl(eo(yi(t)))}function Qx(t,n){return function(t,n,r){var i=1024&t.flags?te.symbolToExpression(t.symbol,111551,n,void 0,r):t===Le?e.factory.createTrue():t===Ie&&e.factory.createFalse();if(i)return i;var a=t.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}(eo(yi(t)),t,n)}function Xx(t){return t?(ir(t),e.getSourceFileOfNode(t).localJsxFactory||en):en}function Yx(t){if(t){var n=e.getSourceFileOfNode(t);if(n){if(n.localJsxFragmentFactory)return n.localJsxFragmentFactory;var r=n.pragmas.get("jsxfrag"),i=e.isArray(r)?r[0]:r;if(i)return n.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,V),n.localJsxFragmentFactory}}if(J.jsxFragmentFactory)return e.parseIsolatedEntityName(J.jsxFragmentFactory,V)}function Zx(t){var n=253===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),r=ai(n,n,void 0);if(r)return e.getDeclarationOfKind(r,294)}function $x(t,n){if((o&n)!==n&&J.importHelpers){var r=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(r,J)&&!(8388608&t.flags)){var i=(l||(l=oi(r,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||ye),l);if(i!==ye)for(var a=n&~o,s=1;s<=4194304;s<<=1)if(a&s){var c=eD(s);Dr(i.exports,e.escapeLeadingUnderscores(c),111551)||or(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c)}o|=n}}}function eD(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__spreadArrays";case 4096:return"__await";case 8192:return"__asyncGenerator";case 16384:return"__asyncDelegator";case 32768:return"__asyncValues";case 65536:return"__exportStar";case 131072:return"__importStar";case 262144:return"__importDefault";case 524288:return"__makeTemplateObject";case 1048576:return"__classPrivateFieldGet";case 2097152:return"__classPrivateFieldSet";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function tD(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 164!==t.kind||e.nodeIsPresent(t.body)?kD(t,e.Diagnostics.Decorators_are_not_valid_here):kD(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(166===t.kind||167===t.kind){var n=e.getAllAccessorDeclarations(t.parent.members,t);if(n.firstAccessor.decorators&&t===n.secondAccessor)return kD(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||function(t){var n,r,i,a,o=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 166:case 167:case 165:case 162:case 161:case 164:case 163:case 170:case 253:case 258:case 257:case 264:case 263:case 205:case 206:case 159:return!1;default:if(254===t.parent.kind||294===t.parent.kind)return!1;switch(t.kind){case 248:return nD(t,129);case 249:return nD(t,125);case 250:case 229:case 251:return!0;case 252:return nD(t,84);default:return e.Debug.fail(),!1}}}(t)?kD(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==o)return o;for(var s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function rD(t,n){return void 0===n&&(n=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&ED(t[0],t.end-",".length,",".length,n)}function iD(t,n){if(t&&0===t.length){var r=t.pos-"<".length;return ED(n,r,e.skipTrivia(n.text,t.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function aD(t){var n=e.getSourceFileOfNode(t);return tD(t)||iD(t.typeParameters,n)||function(t){for(var n=!1,r=t.length,i=0;i=3){var n=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(n){var r=e.filter(t.parameters,function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)});if(e.length(r)){e.forEach(r,function(t){e.addRelatedInfo(or(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(n,e.Diagnostics.use_strict_directive_used_here))});var a=r.map(function(t,n){return e.createDiagnosticForNode(t,0===n?e.Diagnostics.Non_simple_parameter_declared_here:e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,i([or(n,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a)),!0}}}return!1}(t)}function oD(t,n){return rD(n)||function(t,n){if(n&&0===n.length){var r=e.getSourceFileOfNode(t),i=n.pos-"<".length;return ED(r,i,e.skipTrivia(r.text,n.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,n)}function sD(t){return function(t){if(t)for(var n=0,r=t;n1)return kD(a.declarations[1],n=235===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement);var s=o[0];if(s.initializer)return TD(s.name,n=235===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer);if(s.type)return TD(s,n=235===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function gD(t){if(t.parameters.length===(166===t.kind?1:2))return e.getThisParameter(t)}function mD(t,n){if(function(t){return e.isDynamicName(t)&&!jo(t)}(t))return TD(t,n)}function hD(t){if(aD(t))return!0;if(164===t.kind){if(197===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||129!==e.first(t.modifiers).kind))return kD(t,e.Diagnostics.Modifiers_cannot_appear_here);if(dD(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(fD(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return ED(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(_D(t))return!0}if(e.isClassLike(t.parent)){if(8388608&t.flags)return mD(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(164===t.kind&&!t.body)return mD(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(250===t.parent.kind)return mD(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(176===t.parent.kind)return mD(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function yD(t){return e.isStringOrNumericLiteralLike(t)||211===t.kind&&40===t.operator&&8===t.operand.kind}function vD(t){var n,r=t.initializer;if(r){var i=!(yD(r)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&yD(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&Ay(t).flags)}(r)||109===r.kind||94===r.kind||(n=r,9===n.kind||211===n.kind&&40===n.operator&&9===n.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return TD(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return TD(r,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!a||i)return TD(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function bD(t){if(78===t.kind){if("__esModule"===e.idText(t))return o=e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules,!SD(e.getSourceFileOfNode(a=t))&&(ar("noEmit",a,o,void 0,void 0,void 0),!0)}else for(var n=0,r=t.elements;n0}function kD(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!SD(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Hn.add(e.createFileDiagnostic(o,s.start,s.length,n,r,i,a)),!0}return!1}function ED(t,n,r,i,a,o,s){var c=e.getSourceFileOfNode(t);return!SD(c)&&(Hn.add(e.createFileDiagnostic(c,n,r,i,a,o,s)),!0)}function TD(t,n,r,i,a){return!SD(e.getSourceFileOfNode(t))&&(Hn.add(e.createDiagnosticForNode(t,n,r,i,a)),!0)}function wD(t){return 250!==t.kind&&251!==t.kind&&258!==t.kind&&257!==t.kind&&264!==t.kind&&263!==t.kind&&256!==t.kind&&!e.hasSyntacticModifier(t,515)&&kD(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function AD(t){if(8388608&t.flags){if(!br(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return br(t).hasReportedStatementInAmbientContext=kD(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(227===t.parent.kind||254===t.parent.kind||294===t.parent.kind){var n=br(t.parent);if(!n.hasReportedStatementInAmbientContext)return n.hasReportedStatementInAmbientContext=kD(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function ND(t){if(32&t.numericLiteralFlags){var n=void 0;if(V>=1?n=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,190)?n=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,288)&&(n=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),n){var r=e.isPrefixUnaryExpression(t.parent)&&40===t.parent.operator;return TD(r?t.parent:t,n,(r?"-":"")+"0o"+t.text)}}return function(t){if(!(16&t.numericLiteralFlags||t.text.length<=15||-1!==t.text.indexOf("."))){var n=+e.getTextOfNode(t);n<=Math.pow(2,53)-1&&n+1>n||sr(!1,e.createDiagnosticForNode(t,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}}(t),!1}function PD(t,n,r,i){if(1048576&n.flags&&2621440&t.flags){var a=ks(t);if(a){var o=Xf(a,n);if(o)return Z_(n,e.map(o,function(e){return[function(){return eo(e)},e.escapedName]}),r,void 0,i)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(T||(T={})),e.signatureHasRestParameter=B,e.signatureHasLiteralTypes=j}(l||(l={})),function(e){var t=e.or(e.isTypeNode,e.isTypeParameterDeclaration);function n(t,n,r,i){if(void 0===t||void 0===n)return t;var a,o=n(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||c)(o):o,e.Debug.assertNode(a,r),a):void 0}function r(t,n,r,i,a){if(void 0===t||void 0===n)return t;var o,s,c=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>c-i)&&(a=c-i);var u=-1,l=-1;(i>0||a=2&&(s=function(t,n){for(var r,i=0;i0&&f<=155||186===f)return o;var p=u.factory;switch(f){case 78:return p.updateIdentifier(o,l(o.typeArguments,c,t));case 156:return p.updateQualifiedName(o,d(o.left,c,e.isEntityName),d(o.right,c,e.isIdentifier));case 157:return p.updateComputedPropertyName(o,d(o.expression,c,e.isExpression));case 158:return p.updateTypeParameterDeclaration(o,d(o.name,c,e.isIdentifier),d(o.constraint,c,e.isTypeNode),d(o.default,c,e.isTypeNode));case 159:return p.updateParameterDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.dotDotDotToken,_,e.isToken),d(o.name,c,e.isBindingName),d(o.questionToken,_,e.isToken),d(o.type,c,e.isTypeNode),d(o.initializer,c,e.isExpression));case 160:return p.updateDecorator(o,d(o.expression,c,e.isExpression));case 161:return p.updatePropertySignature(o,l(o.modifiers,c,e.isToken),d(o.name,c,e.isPropertyName),d(o.questionToken,_,e.isToken),d(o.type,c,e.isTypeNode));case 162:return p.updatePropertyDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isPropertyName),d(o.questionToken||o.exclamationToken,_,e.isToken),d(o.type,c,e.isTypeNode),d(o.initializer,c,e.isExpression));case 163:return p.updateMethodSignature(o,l(o.modifiers,c,e.isModifier),d(o.name,c,e.isPropertyName),d(o.questionToken,_,e.isToken),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 164:return p.updateMethodDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.asteriskToken,_,e.isToken),d(o.name,c,e.isPropertyName),d(o.questionToken,_,e.isToken),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),s(o.body,c,u,d));case 165:return p.updateConstructorDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),a(o.parameters,c,u,l),s(o.body,c,u,d));case 166:return p.updateGetAccessorDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isPropertyName),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),s(o.body,c,u,d));case 167:return p.updateSetAccessorDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isPropertyName),a(o.parameters,c,u,l),s(o.body,c,u,d));case 168:return p.updateCallSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 169:return p.updateConstructSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 170:return p.updateIndexSignature(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 171:return p.updateTypePredicateNode(o,d(o.assertsModifier,c),d(o.parameterName,c),d(o.type,c,e.isTypeNode));case 172:return p.updateTypeReferenceNode(o,d(o.typeName,c,e.isEntityName),l(o.typeArguments,c,e.isTypeNode));case 173:return p.updateFunctionTypeNode(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 174:return p.updateConstructorTypeNode(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),d(o.type,c,e.isTypeNode));case 175:return p.updateTypeQueryNode(o,d(o.exprName,c,e.isEntityName));case 176:return p.updateTypeLiteralNode(o,l(o.members,c,e.isTypeElement));case 177:return p.updateArrayTypeNode(o,d(o.elementType,c,e.isTypeNode));case 178:return p.updateTupleTypeNode(o,l(o.elements,c,e.isTypeNode));case 179:return p.updateOptionalTypeNode(o,d(o.type,c,e.isTypeNode));case 180:return p.updateRestTypeNode(o,d(o.type,c,e.isTypeNode));case 181:return p.updateUnionTypeNode(o,l(o.types,c,e.isTypeNode));case 182:return p.updateIntersectionTypeNode(o,l(o.types,c,e.isTypeNode));case 183:return p.updateConditionalTypeNode(o,d(o.checkType,c,e.isTypeNode),d(o.extendsType,c,e.isTypeNode),d(o.trueType,c,e.isTypeNode),d(o.falseType,c,e.isTypeNode));case 184:return p.updateInferTypeNode(o,d(o.typeParameter,c,e.isTypeParameterDeclaration));case 192:return p.updateImportTypeNode(o,d(o.argument,c,e.isTypeNode),d(o.qualifier,c,e.isEntityName),r(o.typeArguments,c,e.isTypeNode),o.isTypeOf);case 191:return p.updateNamedTupleMember(o,n(o.dotDotDotToken,c,e.isToken),n(o.name,c,e.isIdentifier),n(o.questionToken,c,e.isToken),n(o.type,c,e.isTypeNode));case 185:return p.updateParenthesizedType(o,d(o.type,c,e.isTypeNode));case 187:return p.updateTypeOperatorNode(o,d(o.type,c,e.isTypeNode));case 188:return p.updateIndexedAccessTypeNode(o,d(o.objectType,c,e.isTypeNode),d(o.indexType,c,e.isTypeNode));case 189:return p.updateMappedTypeNode(o,d(o.readonlyToken,_,e.isToken),d(o.typeParameter,c,e.isTypeParameterDeclaration),d(o.questionToken,_,e.isToken),d(o.type,c,e.isTypeNode));case 190:return p.updateLiteralTypeNode(o,d(o.literal,c,e.isExpression));case 193:return p.updateObjectBindingPattern(o,l(o.elements,c,e.isBindingElement));case 194:return p.updateArrayBindingPattern(o,l(o.elements,c,e.isArrayBindingElement));case 195:return p.updateBindingElement(o,d(o.dotDotDotToken,_,e.isToken),d(o.propertyName,c,e.isPropertyName),d(o.name,c,e.isBindingName),d(o.initializer,c,e.isExpression));case 196:return p.updateArrayLiteralExpression(o,l(o.elements,c,e.isExpression));case 197:return p.updateObjectLiteralExpression(o,l(o.properties,c,e.isObjectLiteralElementLike));case 198:return 32&o.flags?p.updatePropertyAccessChain(o,d(o.expression,c,e.isExpression),d(o.questionDotToken,_,e.isToken),d(o.name,c,e.isIdentifier)):p.updatePropertyAccessExpression(o,d(o.expression,c,e.isExpression),d(o.name,c,e.isIdentifierOrPrivateIdentifier));case 199:return 32&o.flags?p.updateElementAccessChain(o,d(o.expression,c,e.isExpression),d(o.questionDotToken,_,e.isToken),d(o.argumentExpression,c,e.isExpression)):p.updateElementAccessExpression(o,d(o.expression,c,e.isExpression),d(o.argumentExpression,c,e.isExpression));case 200:return 32&o.flags?p.updateCallChain(o,d(o.expression,c,e.isExpression),d(o.questionDotToken,_,e.isToken),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression)):p.updateCallExpression(o,d(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression));case 201:return p.updateNewExpression(o,d(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression));case 202:return p.updateTaggedTemplateExpression(o,d(o.tag,c,e.isExpression),r(o.typeArguments,c,e.isExpression),d(o.template,c,e.isTemplateLiteral));case 203:return p.updateTypeAssertion(o,d(o.type,c,e.isTypeNode),d(o.expression,c,e.isExpression));case 204:return p.updateParenthesizedExpression(o,d(o.expression,c,e.isExpression));case 205:return p.updateFunctionExpression(o,l(o.modifiers,c,e.isModifier),d(o.asteriskToken,_,e.isToken),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),s(o.body,c,u,d));case 206:return p.updateArrowFunction(o,l(o.modifiers,c,e.isModifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),d(o.equalsGreaterThanToken,_,e.isToken),s(o.body,c,u,d));case 207:return p.updateDeleteExpression(o,d(o.expression,c,e.isExpression));case 208:return p.updateTypeOfExpression(o,d(o.expression,c,e.isExpression));case 209:return p.updateVoidExpression(o,d(o.expression,c,e.isExpression));case 210:return p.updateAwaitExpression(o,d(o.expression,c,e.isExpression));case 211:return p.updatePrefixUnaryExpression(o,d(o.operand,c,e.isExpression));case 212:return p.updatePostfixUnaryExpression(o,d(o.operand,c,e.isExpression));case 213:return p.updateBinaryExpression(o,d(o.left,c,e.isExpression),d(o.operatorToken,_,e.isToken),d(o.right,c,e.isExpression));case 214:return p.updateConditionalExpression(o,d(o.condition,c,e.isExpression),d(o.questionToken,_,e.isToken),d(o.whenTrue,c,e.isExpression),d(o.colonToken,_,e.isToken),d(o.whenFalse,c,e.isExpression));case 215:return p.updateTemplateExpression(o,d(o.head,c,e.isTemplateHead),l(o.templateSpans,c,e.isTemplateSpan));case 216:return p.updateYieldExpression(o,d(o.asteriskToken,_,e.isToken),d(o.expression,c,e.isExpression));case 217:return p.updateSpreadElement(o,d(o.expression,c,e.isExpression));case 218:return p.updateClassExpression(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isClassElement));case 220:return p.updateExpressionWithTypeArguments(o,d(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode));case 221:return p.updateAsExpression(o,d(o.expression,c,e.isExpression),d(o.type,c,e.isTypeNode));case 222:return 32&o.flags?p.updateNonNullChain(o,d(o.expression,c,e.isExpression)):p.updateNonNullExpression(o,d(o.expression,c,e.isExpression));case 223:return p.updateMetaProperty(o,d(o.name,c,e.isIdentifier));case 225:return p.updateTemplateSpan(o,d(o.expression,c,e.isExpression),d(o.literal,c,e.isTemplateMiddleOrTemplateTail));case 227:return p.updateBlock(o,l(o.statements,c,e.isStatement));case 229:return p.updateVariableStatement(o,l(o.modifiers,c,e.isModifier),d(o.declarationList,c,e.isVariableDeclarationList));case 230:return p.updateExpressionStatement(o,d(o.expression,c,e.isExpression));case 231:return p.updateIfStatement(o,d(o.expression,c,e.isExpression),d(o.thenStatement,c,e.isStatement,p.liftToBlock),d(o.elseStatement,c,e.isStatement,p.liftToBlock));case 232:return p.updateDoStatement(o,d(o.statement,c,e.isStatement,p.liftToBlock),d(o.expression,c,e.isExpression));case 233:return p.updateWhileStatement(o,d(o.expression,c,e.isExpression),d(o.statement,c,e.isStatement,p.liftToBlock));case 234:return p.updateForStatement(o,d(o.initializer,c,e.isForInitializer),d(o.condition,c,e.isExpression),d(o.incrementor,c,e.isExpression),d(o.statement,c,e.isStatement,p.liftToBlock));case 235:return p.updateForInStatement(o,d(o.initializer,c,e.isForInitializer),d(o.expression,c,e.isExpression),d(o.statement,c,e.isStatement,p.liftToBlock));case 236:return p.updateForOfStatement(o,d(o.awaitModifier,_,e.isToken),d(o.initializer,c,e.isForInitializer),d(o.expression,c,e.isExpression),d(o.statement,c,e.isStatement,p.liftToBlock));case 237:return p.updateContinueStatement(o,d(o.label,c,e.isIdentifier));case 238:return p.updateBreakStatement(o,d(o.label,c,e.isIdentifier));case 239:return p.updateReturnStatement(o,d(o.expression,c,e.isExpression));case 240:return p.updateWithStatement(o,d(o.expression,c,e.isExpression),d(o.statement,c,e.isStatement,p.liftToBlock));case 241:return p.updateSwitchStatement(o,d(o.expression,c,e.isExpression),d(o.caseBlock,c,e.isCaseBlock));case 242:return p.updateLabeledStatement(o,d(o.label,c,e.isIdentifier),d(o.statement,c,e.isStatement,p.liftToBlock));case 243:return p.updateThrowStatement(o,d(o.expression,c,e.isExpression));case 244:return p.updateTryStatement(o,d(o.tryBlock,c,e.isBlock),d(o.catchClause,c,e.isCatchClause),d(o.finallyBlock,c,e.isBlock));case 246:return p.updateVariableDeclaration(o,d(o.name,c,e.isBindingName),d(o.exclamationToken,_,e.isToken),d(o.type,c,e.isTypeNode),d(o.initializer,c,e.isExpression));case 247:return p.updateVariableDeclarationList(o,l(o.declarations,c,e.isVariableDeclaration));case 248:return p.updateFunctionDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.asteriskToken,_,e.isToken),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),a(o.parameters,c,u,l),d(o.type,c,e.isTypeNode),s(o.body,c,u,d));case 249:return p.updateClassDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isClassElement));case 250:return p.updateInterfaceDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isTypeElement));case 251:return p.updateTypeAliasDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),d(o.type,c,e.isTypeNode));case 252:return p.updateEnumDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),l(o.members,c,e.isEnumMember));case 253:return p.updateModuleDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),d(o.body,c,e.isModuleBody));case 254:return p.updateModuleBlock(o,l(o.statements,c,e.isStatement));case 255:return p.updateCaseBlock(o,l(o.clauses,c,e.isCaseOrDefaultClause));case 256:return p.updateNamespaceExportDeclaration(o,d(o.name,c,e.isIdentifier));case 257:return p.updateImportEqualsDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.name,c,e.isIdentifier),d(o.moduleReference,c,e.isModuleReference));case 258:return p.updateImportDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.importClause,c,e.isImportClause),d(o.moduleSpecifier,c,e.isExpression));case 259:return p.updateImportClause(o,o.isTypeOnly,d(o.name,c,e.isIdentifier),d(o.namedBindings,c,e.isNamedImportBindings));case 260:return p.updateNamespaceImport(o,d(o.name,c,e.isIdentifier));case 266:return p.updateNamespaceExport(o,d(o.name,c,e.isIdentifier));case 261:return p.updateNamedImports(o,l(o.elements,c,e.isImportSpecifier));case 262:return p.updateImportSpecifier(o,d(o.propertyName,c,e.isIdentifier),d(o.name,c,e.isIdentifier));case 263:return p.updateExportAssignment(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),d(o.expression,c,e.isExpression));case 264:return p.updateExportDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),o.isTypeOnly,d(o.exportClause,c,e.isNamedExportBindings),d(o.moduleSpecifier,c,e.isExpression));case 265:return p.updateNamedExports(o,l(o.elements,c,e.isExportSpecifier));case 267:return p.updateExportSpecifier(o,d(o.propertyName,c,e.isIdentifier),d(o.name,c,e.isIdentifier));case 269:return p.updateExternalModuleReference(o,d(o.expression,c,e.isExpression));case 270:return p.updateJsxElement(o,d(o.openingElement,c,e.isJsxOpeningElement),l(o.children,c,e.isJsxChild),d(o.closingElement,c,e.isJsxClosingElement));case 271:return p.updateJsxSelfClosingElement(o,d(o.tagName,c,e.isJsxTagNameExpression),l(o.typeArguments,c,e.isTypeNode),d(o.attributes,c,e.isJsxAttributes));case 272:return p.updateJsxOpeningElement(o,d(o.tagName,c,e.isJsxTagNameExpression),l(o.typeArguments,c,e.isTypeNode),d(o.attributes,c,e.isJsxAttributes));case 273:return p.updateJsxClosingElement(o,d(o.tagName,c,e.isJsxTagNameExpression));case 274:return p.updateJsxFragment(o,d(o.openingFragment,c,e.isJsxOpeningFragment),l(o.children,c,e.isJsxChild),d(o.closingFragment,c,e.isJsxClosingFragment));case 277:return p.updateJsxAttribute(o,d(o.name,c,e.isIdentifier),d(o.initializer,c,e.isStringLiteralOrJsxExpression));case 278:return p.updateJsxAttributes(o,l(o.properties,c,e.isJsxAttributeLike));case 279:return p.updateJsxSpreadAttribute(o,d(o.expression,c,e.isExpression));case 280:return p.updateJsxExpression(o,d(o.expression,c,e.isExpression));case 281:return p.updateCaseClause(o,d(o.expression,c,e.isExpression),l(o.statements,c,e.isStatement));case 282:return p.updateDefaultClause(o,l(o.statements,c,e.isStatement));case 283:return p.updateHeritageClause(o,l(o.types,c,e.isExpressionWithTypeArguments));case 284:return p.updateCatchClause(o,d(o.variableDeclaration,c,e.isVariableDeclaration),d(o.block,c,e.isBlock));case 285:return p.updatePropertyAssignment(o,d(o.name,c,e.isPropertyName),d(o.initializer,c,e.isExpression));case 286:return p.updateShorthandPropertyAssignment(o,d(o.name,c,e.isIdentifier),d(o.objectAssignmentInitializer,c,e.isExpression));case 287:return p.updateSpreadAssignment(o,d(o.expression,c,e.isExpression));case 288:return p.updateEnumMember(o,d(o.name,c,e.isPropertyName),d(o.initializer,c,e.isExpression));case 294:return p.updateSourceFile(o,i(o.statements,c,u));case 331:return p.updatePartiallyEmittedExpression(o,d(o.expression,c,e.isExpression));case 332:return p.updateCommaListExpression(o,l(o.elements,c,e.isExpression));default:return o}}}}(l||(l={})),function(e){e.createSourceMapGenerator=function(t,n,r,i,o){var c,u,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,_=l.enter,d=l.exit,f=[],p=[],g=new e.Map,m=[],h="",y=0,v=0,b=0,x=0,D=0,C=0,S=!1,k=0,E=0,T=0,w=0,A=0,N=0,P=!1,O=!1,F=!1;return{getSources:function(){return f},addSource:I,setSourceContent:M,addName:L,addMapping:R,appendSourceMap:function(t,n,r,i,o,s){e.Debug.assert(t>=k,"generatedLine cannot backtrack"),e.Debug.assert(n>=0,"generatedCharacter cannot be negative"),_();for(var c,u=[],l=a(r.mappings),f=l.next();!f.done;f=l.next()){var p=f.value;if(s&&(p.generatedLine>s.line||p.generatedLine===s.line&&p.generatedCharacter>s.character))break;if(!o||!(p.generatedLine=k,"generatedLine cannot backtrack"),e.Debug.assert(n>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===r||r>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),_(),(function(e,t){return!P||k!==e||E!==t}(t,n)||function(e,t,n){return void 0!==e&&void 0!==t&&void 0!==n&&T===e&&(w>t||w===t&&A>n)}(r,i,a))&&(B(),k=t,E=n,O=!1,F=!1,P=!0),void 0!==r&&void 0!==i&&void 0!==a&&(T=r,w=i,A=a,O=!0,void 0!==o&&(N=o,F=!0)),d()}function B(){if(P&&(!S||y!==k||v!==E||b!==T||x!==w||D!==A||C!==N)){if(_(),y=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(r))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return d("Invalid character in VLQ"),-1;n=0!=(32&o),a|=(31&o)<>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(t){t<0?t=1+(-t<<1):t<<=1;var n,r="";do{var i=31&t;(t>>=5)>0&&(i|=32),r+=String.fromCharCode((n=i)>=0&&n<26?65+n:n>=26&&n<52?97+n-26:n>=52&&n<62?48+n-52:62===n?43:63===n?47:e.Debug.fail(n+": not a base64 value"))}while(t>0);return r}function c(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function u(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,n){return e.Debug.assert(t.sourceIndex===n.sourceIndex),e.compareValues(t.sourcePosition,n.sourcePosition)}function _(t,n){return e.compareValues(t.generatedPosition,n.generatedPosition)}function d(e){return e.sourcePosition}function f(e){return e.generatedPosition}e.getLineInfo=function(e,t){return{getLineCount:function(){return t.length},getLineText:function(n){return e.substring(t[n],t[n+1])}}},e.tryGetSourceMappingURL=function(e){for(var r=e.getLineCount()-1;r>=0;r--){var i=e.getLineText(r),a=t.exec(i);if(a)return a[1];if(!i.match(n))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(n){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,n,r){var i,s,p,g=e.getDirectoryPath(r),m=n.sourceRoot?e.getNormalizedAbsolutePath(n.sourceRoot,g):g,h=e.getNormalizedAbsolutePath(n.file,g),y=t.getSourceFileLike(h),v=n.sources.map(function(t){return e.getNormalizedAbsolutePath(t,m)}),b=new e.Map(v.map(function(e,n){return[t.getCanonicalFileName(e),n]}));return{getSourcePosition:function(t){var n=S();if(!e.some(n))return t;var r=e.binarySearchKey(n,t.pos,f,e.compareValues);r<0&&(r=~r);var i=n[r];return void 0!==i&&c(i)?{fileName:v[i.sourceIndex],pos:i.sourcePosition}:t},getGeneratedPosition:function(n){var r=b.get(t.getCanonicalFileName(n.fileName));if(void 0===r)return n;var i=C(r);if(!e.some(i))return n;var a=e.binarySearchKey(i,n.pos,d,e.compareValues);a<0&&(a=~a);var o=i[a];return void 0===o||o.sourceIndex!==r?n:{fileName:h,pos:o.generatedPosition}}};function x(r){var i,a,s=void 0!==y?e.getPositionOfLineAndCharacter(y,r.generatedLine,r.generatedCharacter,!0):-1;if(o(r)){var c=t.getSourceFileLike(v[r.sourceIndex]);i=n.sources[r.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,r.sourceLine,r.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:r.sourceIndex,sourcePosition:a,nameIndex:r.nameIndex}}function D(){if(void 0===i){var r=a(n.mappings),o=e.arrayFrom(r,x);void 0!==r.error?(t.log&&t.log("Encountered error while decoding sourcemap: "+r.error),i=e.emptyArray):i=o}return i}function C(t){if(void 0===p){for(var n=[],r=0,i=D();r0&&i!==r.elements.length||!!(r.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!r(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&function(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,n)}(t.importClause.namedBindings))}function a(t,n,r){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i=63&&e<=77},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 63:return 39;case 64:return 40;case 65:return 41;case 66:return 42;case 67:return 43;case 68:return 44;case 69:return 47;case 70:return 48;case 71:return 49;case 72:return 50;case 73:return 51;case 77:return 52;case 74:return 56;case 75:return 55;case 76:return 60}},e.addPrologueDirectivesAndInitialSuperCall=function(t,n,r,i){if(n.body){var a=n.body.statements,o=t.copyPrologue(a,r,!1,i);if(o===a.length)return o;var s=e.findIndex(a,function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)},o);if(s>-1){for(var c=o;c<=s;c++)r.push(e.visitNode(a[c],i,e.isStatement));return s+1}return o}return 0},e.getProperties=function(t,n,r){return e.filter(t.members,function(t){return function(t,n,r){return e.isPropertyDeclaration(t)&&(!!t.initializer||!n)&&e.hasStaticModifier(t)===r}(t,n,r)})},e.isInitializedProperty=function(e){return 162===e.kind&&void 0!==e.initializer}}(l||(l={})),function(e){function t(n,r){var i=e.getTargetOfBindingOrAssignmentElement(n);return e.isBindingOrAssignmentPattern(i)?function(n,r){for(var i=0,a=e.getElementsOfBindingOrAssignmentPattern(n);i=1)||24576&p.transformFlags||24576&e.getTargetOfBindingOrAssignmentElement(p).transformFlags||e.isComputedPropertyName(g)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);var m=i(t,s,g);e.isComputedPropertyName(g)&&(l=e.append(l,m.argumentExpression)),r(t,p,m,p)}else u=e.append(u,e.visitNode(p,t.visitor))}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o)}(t,n,l,o,s):e.isArrayBindingOrAssignmentPattern(l)?function(t,n,i,o,s){var c,u,l=e.getElementsOfBindingOrAssignmentPattern(i),_=l.length;t.level<1&&t.downlevelIteration?o=a(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(o,_>0&&e.getRestIndicatorOfBindingOrAssignmentElement(l[_-1])?void 0:_),s),!1,s):(1!==_&&(t.level<1||0===_)||e.every(l,e.isOmittedExpression))&&(o=a(t,o,!e.isDeclarationBindingElement(n)||0!==_,s));for(var d=0;d<_;d++){var f=l[d];if(t.level>=1)if(16384&f.transformFlags){var p=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(p),u=e.append(u,[p,f]),c=e.append(c,t.createArrayBindingOrAssignmentElement(p))}else c=e.append(c,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f))d===_-1&&(g=t.context.factory.createArraySliceCall(o,d),r(t,f,g,f));else{var g=t.context.factory.createElementAccessExpression(o,d);r(t,f,g,f)}}}if(c&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(c),o,s,i),u)for(var m=0,h=u;m0)return!0;var n=e.getFirstConstructorWithBody(t);return!!n&&e.forEach(n.parameters,B)}(t)&&(r|=2),e.childIsDecorated(t)&&(r|=4),Se(t)?r|=8:function(t){return ke(t)&&e.hasSyntacticModifier(t,512)}(t)?r|=32:Ee(t)&&(r|=16),x<=1&&7&r&&(r|=128),r}(i,e.getProperties(i,!0,!0));128&a&&t.startLexicalEnvironment();var o=i.name||(5&a?d.getGeneratedNameForNode(i):void 0),s=2&a?function(n,r){var i=e.moveRangePastDecorators(n),a=function(n){if(16777216&y.getNodeCheckFlags(n)){0==(1&u)&&(u|=1,t.enableSubstitution(78),l=[]);var r=d.createUniqueName(n.name&&!e.isGeneratedIdentifier(n.name)?e.idText(n.name):"default");return l[e.getOriginalNodeId(n)]=r,h(r),r}}(n),o=d.getLocalName(n,!1,!0),s=e.visitNodes(n.heritageClauses,T,e.isHeritageClause),c=z(n),_=d.createClassExpression(void 0,void 0,r,void 0,s,c);e.setOriginalNode(_,n),e.setTextRange(_,i);var f=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(o,void 0,void 0,a?d.createAssignment(a,_):_)],1));return e.setOriginalNode(f,n),e.setTextRange(f,i),e.setCommentRange(f,n),f}(i,o):function(t,n,r){var i=128&r?void 0:e.visitNodes(t.modifiers,M,e.isModifier),a=d.createClassDeclaration(void 0,i,n,void 0,e.visitNodes(t.heritageClauses,T,e.isHeritageClause),z(t)),o=e.getEmitFlags(t);return 1&r&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}(i,o,a),c=[s];if(q(c,i,!1),q(c,i,!0),function(t,n){var r=function(t){var n=W(t,t,function(t){var n=t.decorators,r=V(e.getFirstConstructorWithBody(t));if(n||r)return{decorators:n,parameters:r}}(t));if(n){var r=l&&l[e.getOriginalNodeId(t)],i=d.getLocalName(t,!1,!0),a=f().createDecorateHelper(n,i),o=d.createAssignment(i,r?d.createAssignment(r,a):a);return e.setEmitFlags(o,1536),e.setSourceMapRange(o,e.moveRangePastDecorators(t)),o}}(n);r&&t.push(e.setOriginalNode(d.createExpressionStatement(r),n))}(c,i),128&a){var _=e.createTokenRange(e.skipTrivia(n.text,i.members.end),19),p=d.getInternalName(i),g=d.createPartiallyEmittedExpression(p);e.setTextRangeEnd(g,_.end),e.setEmitFlags(g,1536);var m=d.createReturnStatement(g);e.setTextRangePos(m,_.pos),e.setEmitFlags(m,1920),c.push(m),e.insertStatementsAfterStandardPrologue(c,t.endLexicalEnvironment());var v=d.createImmediatelyInvokedArrowFunction(c);e.setEmitFlags(v,33554432);var b=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(d.getLocalName(i,!1,!1),void 0,void 0,v)]));e.setOriginalNode(b,i),e.setCommentRange(b,i),e.setSourceMapRange(b,e.moveRangePastDecorators(i)),e.startOnNewLine(b),c=[b]}return 8&a?we(c,i):(128&a||2&a)&&(32&a?c.push(d.createExportDefault(d.getLocalName(i,!1,!0))):16&a&&c.push(d.createExternalModuleExport(d.getLocalName(i,!1,!0)))),c.length>1&&(c.push(d.createEndOfDeclarationMarker(i)),e.setEmitFlags(s,4194304|e.getEmitFlags(s))),e.singleOrMany(c)}(o);case 218:return function(n){if(!U(n))return e.visitEachChild(n,T,t);var r=d.createClassExpression(void 0,void 0,n.name,void 0,e.visitNodes(n.heritageClauses,T,e.isHeritageClause),z(n));return e.setOriginalNode(r,n),e.setTextRange(r,n),r}(o);case 283:return function(n){if(116!==n.token)return e.visitEachChild(n,T,t)}(o);case 220:return function(t){return d.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,T,e.isLeftHandSideExpression),void 0)}(o);case 164:return function(n){if(ae(n)){var r=d.updateMethodDeclaration(n,void 0,e.visitNodes(n.modifiers,M,e.isModifier),n.asteriskToken,ie(n),void 0,void 0,e.visitParameterList(n.parameters,T,t),void 0,e.visitFunctionBody(n.body,T,t));return r!==n&&(e.setCommentRange(r,n),e.setSourceMapRange(r,e.moveRangePastDecorators(n))),r}}(o);case 166:return function(n){if(ue(n)){var r=d.updateGetAccessorDeclaration(n,void 0,e.visitNodes(n.modifiers,M,e.isModifier),ie(n),e.visitParameterList(n.parameters,T,t),void 0,e.visitFunctionBody(n.body,T,t)||d.createBlock([]));return r!==n&&(e.setCommentRange(r,n),e.setSourceMapRange(r,e.moveRangePastDecorators(n))),r}}(o);case 167:return function(n){if(ue(n)){var r=d.updateSetAccessorDeclaration(n,void 0,e.visitNodes(n.modifiers,M,e.isModifier),ie(n),e.visitParameterList(n.parameters,T,t),e.visitFunctionBody(n.body,T,t)||d.createBlock([]));return r!==n&&(e.setCommentRange(r,n),e.setSourceMapRange(r,e.moveRangePastDecorators(n))),r}}(o);case 248:return function(n){if(!ae(n))return d.createNotEmittedStatement(n);var r=d.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,M,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,T,t),void 0,e.visitFunctionBody(n.body,T,t)||d.createBlock([]));if(Se(n)){var i=[r];return we(i,n),i}return r}(o);case 205:return function(n){return ae(n)?d.updateFunctionExpression(n,e.visitNodes(n.modifiers,M,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,T,t),void 0,e.visitFunctionBody(n.body,T,t)||d.createBlock([])):d.createOmittedExpression()}(o);case 206:return function(n){return d.updateArrowFunction(n,e.visitNodes(n.modifiers,M,e.isModifier),void 0,e.visitParameterList(n.parameters,T,t),void 0,n.equalsGreaterThanToken,e.visitFunctionBody(n.body,T,t))}(o);case 159:return function(t){if(!e.parameterIsThisKeyword(t)){var n=d.updateParameterDeclaration(t,void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,T,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,T,e.isExpression));return n!==t&&(e.setCommentRange(n,t),e.setTextRange(n,e.moveRangePastModifiers(t)),e.setSourceMapRange(n,e.moveRangePastModifiers(t)),e.setEmitFlags(n.name,32)),n}}(o);case 204:return function(r){var i=e.skipOuterExpressions(r.expression,-7);if(e.isAssertionExpression(i)){var a=e.visitNode(r.expression,T,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(a,n))?d.updateParenthesizedExpression(r,a):d.createPartiallyEmittedExpression(a,r)}return e.visitEachChild(r,T,t)}(o);case 203:case 221:return function(t){var n=e.visitNode(t.expression,T,e.isExpression);return d.createPartiallyEmittedExpression(n,t)}(o);case 200:return function(t){return d.updateCallExpression(t,e.visitNode(t.expression,T,e.isExpression),void 0,e.visitNodes(t.arguments,T,e.isExpression))}(o);case 201:return function(t){return d.updateNewExpression(t,e.visitNode(t.expression,T,e.isExpression),void 0,e.visitNodes(t.arguments,T,e.isExpression))}(o);case 202:return function(t){return d.updateTaggedTemplateExpression(t,e.visitNode(t.tag,T,e.isExpression),void 0,e.visitNode(t.template,T,e.isExpression))}(o);case 222:return function(t){var n=e.visitNode(t.expression,T,e.isLeftHandSideExpression);return d.createPartiallyEmittedExpression(n,t)}(o);case 252:return function(t){if(!function(t){return!e.isEnumConst(t)||v.preserveConstEnums||v.isolatedModules}(t))return d.createNotEmittedStatement(t);var r=[],o=2,s=ge(r,t);s&&(D===e.ModuleKind.System&&a===n||(o|=512));var c=Pe(t),u=Oe(t),l=e.hasSyntacticModifier(t,1)?d.getExternalModuleOrNamespaceExportName(i,t,!1,!0):d.getLocalName(t,!1,!0),_=d.createLogicalOr(l,d.createAssignment(l,d.createObjectLiteralExpression()));if(de(t)){var f=d.getLocalName(t,!1,!0);_=d.createAssignment(f,_)}var g=d.createExpressionStatement(d.createCallExpression(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,function(t,n){var r=i;i=n;var a=[];p();var o=e.map(t.members,_e);return e.insertStatementsAfterStandardPrologue(a,m()),e.addRange(a,o),i=r,d.createBlock(e.setTextRange(d.createNodeArray(a),t.members),!0)}(t,u)),void 0,[_]));return e.setOriginalNode(g,t),s&&(e.setSyntheticLeadingComments(g,void 0),e.setSyntheticTrailingComments(g,void 0)),e.setTextRange(g,t),e.addEmitFlags(g,o),r.push(g),r.push(d.createEndOfDeclarationMarker(t)),r}(o);case 229:return function(n){if(Se(n)){var r=e.getInitializedVariables(n.declarationList);if(0===r.length)return;return e.setTextRange(d.createExpressionStatement(d.inlineExpressions(e.map(r,le))),n)}return e.visitEachChild(n,T,t)}(o);case 246:return function(t){return d.updateVariableDeclaration(t,e.visitNode(t.name,T,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,T,e.isExpression))}(o);case 253:return me(o);case 257:return Ce(o);case 271:return function(t){return d.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,T,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,T,e.isJsxAttributes))}(o);case 272:return function(t){return d.updateJsxOpeningElement(t,e.visitNode(t.tagName,T,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,T,e.isJsxAttributes))}(o);default:return e.visitEachChild(o,T,t)}}function R(n){var r=e.getStrictOptionValue(v,"alwaysStrict")&&!(e.isExternalModule(n)&&D>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(n);return d.updateSourceFile(n,e.visitLexicalEnvironment(n.statements,A,t,0,r))}function B(e){return void 0!==e.decorators&&e.decorators.length>0}function j(e){return!!(2048&e.transformFlags)}function U(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,j)||e.some(t.members,j)}function z(t){var n=[],r=e.getFirstConstructorWithBody(t),i=r&&e.filter(r.parameters,function(t){return e.isParameterPropertyDeclaration(t,r)});if(i)for(var a=0,o=i;a0&&e.parameterIsThisKeyword(r[0]),a=i?1:0,o=i?r.length-1:r.length,s=0;s0?162===n.kind?d.createVoidZero():d.createNull():void 0,s=f().createDecorateHelper(r,i,a,o);return e.setTextRange(s,e.moveRangePastDecorators(n)),e.setEmitFlags(s,1536),s}}function H(t){return e.visitNode(t.expression,T,e.isExpression)}function G(t,n){var r;if(t){r=[];for(var i=0,a=t;ic&&(a||e.addRange(_,e.visitNodes(r.body.statements,y,e.isStatement,c,d-c)),c=d)}return N(_,o,s.createThis()),r&&e.addRange(_,e.visitNodes(r.body.statements,y,e.isStatement,c)),_=s.mergeLexicalEnvironment(_,u()),e.setTextRange(s.createBlock(e.setTextRange(s.createNodeArray(_),r?r.body.statements:n.members),!0),r?r.body:void 0)}(n,i,r);return c?e.startOnNewLine(e.setOriginalNode(e.setTextRange(s.createConstructorDeclaration(void 0,void 0,null!=o?o:[],c),i||n),i)):void 0}(n,r);return h&&g.push(h),e.addRange(g,e.visitNodes(n.members,b,e.isClassElement)),e.setTextRange(s.createNodeArray(g),n.members)}function A(n){return!(!e.isPropertyDeclaration(n)||e.hasStaticModifier(n))&&(t.getCompilerOptions().useDefineForClassFields?f<99:e.isInitializedProperty(n)||p&&e.isPrivateIdentifierPropertyDeclaration(n))}function N(t,n,r){for(var i=0,a=n;i=0;--t){var n,r=h[t];if(r&&(n=r.get(e.escapedText)))return n}}function I(n){var r=s.getGeneratedNameForNode(n),i=F(n.name);if(!i)return e.visitEachChild(n,y,t);var a=n.expression;return(e.isThisProperty(n)||e.isSuperProperty(n)||!e.isSimpleCopiableExpression(n.expression))&&(a=s.createTempVariable(c,!0),O().push(s.createBinaryExpression(a,62,n.expression))),s.createPropertyAccessExpression(s.createParenthesizedExpression(s.createObjectLiteralExpression([s.createSetAccessorDeclaration(void 0,void 0,"value",[s.createParameterDeclaration(void 0,void 0,void 0,r,void 0,void 0,void 0)],s.createBlock([s.createExpressionStatement(E(i,a,r,62))]))])),"value")}function M(t){var n=e.getTargetOfBindingOrAssignmentElement(t);if(n&&e.isPrivateIdentifierPropertyAccessExpression(n)){var r=I(n);return e.isAssignmentExpression(t)?s.updateBinaryExpression(t,r,t.operatorToken,e.visitNode(t.right,y,e.isExpression)):e.isSpreadElement(t)?s.updateSpreadElement(t,r):r}return e.visitNode(t,v)}function L(t){if(e.isPropertyAssignment(t)){var n=e.getTargetOfBindingOrAssignmentElement(t);if(n&&e.isPrivateIdentifierPropertyAccessExpression(n)){var r=e.getInitializerOfBindingOrAssignmentElement(t),i=I(n);return s.updatePropertyAssignment(t,e.visitNode(t.name,y),r?s.createAssignment(i,e.visitNode(r,y)):i)}return s.updatePropertyAssignment(t,e.visitNode(t.name,y),e.visitNode(t.initializer,v))}return e.visitNode(t,y)}}}(l||(l={})),function(e){var t,n;function r(t,n,r,i){var a=0!=(4096&n.getNodeCheckFlags(r)),o=[];return i.forEach(function(n,r){var i=e.unescapeLeadingUnderscores(r),s=[];s.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4)))),a&&s.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4),t.createIdentifier("v"))))),o.push(t.createPropertyAssignment(i,t.createObjectLiteralExpression(s)))}),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(o,!0)]))],2))}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis"}(n||(n={})),e.transformES2017=function(t){var n,a,o,s,c=t.factory,u=t.getEmitHelperFactory,l=t.resumeLexicalEnvironment,_=t.endLexicalEnvironment,d=t.hoistVariableDeclaration,f=t.getEmitResolver(),p=t.getCompilerOptions(),g=e.getEmitScriptTarget(p),m=0,h=[],y=0,v=t.onEmitNode,b=t.onSubstituteNode;return t.onEmitNode=function(t,r,i){if(1&n&&function(e){var t=e.kind;return 249===t||165===t||164===t||166===t||167===t}(r)){var a=6144&f.getNodeCheckFlags(r);if(a!==m){var o=m;return m=a,v(t,r,i),void(m=o)}}else if(n&&h[e.getNodeId(r)])return o=m,m=0,v(t,r,i),void(m=o);v(t,r,i)},t.onSubstituteNode=function(t,n){return n=b(t,n),1===t&&m?function(t){switch(t.kind){case 198:return U(t);case 199:return z(t);case 200:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?U(n):z(n);return c.createCallExpression(c.createPropertyAccessExpression(r,"call"),void 0,i([c.createThis()],t.arguments))}return t}(t)}return t}(n):n},e.chainBundle(t,function(n){if(n.isDeclarationFile)return n;x(1,!1),x(2,!e.isEffectiveStrictModeSourceFile(n,p));var r=e.visitEachChild(n,E,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r});function x(e,t){y=t?y|e:y&~e}function D(e){return 0!=(y&e)}function C(){return D(2)}function S(e,t,n){var r=e&~y;if(r){x(r,!0);var i=t(n);return x(r,!1),i}return t(n)}function k(n){return e.visitEachChild(n,E,t)}function E(n){if(0==(64&n.transformFlags))return n;switch(n.kind){case 129:return;case 210:return function(n){return D(1)?e.setOriginalNode(e.setTextRange(c.createYieldExpression(void 0,e.visitNode(n.expression,E,e.isExpression)),n),n):e.visitEachChild(n,E,t)}(n);case 164:return S(3,w,n);case 248:return S(3,A,n);case 205:return S(3,N,n);case 206:return S(1,P,n);case 198:return o&&e.isPropertyAccessExpression(n)&&105===n.expression.kind&&o.add(n.name.escapedText),e.visitEachChild(n,E,t);case 199:return o&&105===n.expression.kind&&(s=!0),e.visitEachChild(n,E,t);case 166:case 167:case 165:case 249:case 218:return S(3,k,n);default:return e.visitEachChild(n,E,t)}}function T(n){if(e.isNodeWithPossibleHoistedDeclaration(n))switch(n.kind){case 229:return function(n){if(F(n.declarationList)){var r=I(n.declarationList,!1);return r?c.createExpressionStatement(r):void 0}return e.visitEachChild(n,E,t)}(n);case 234:return function(t){var n=t.initializer;return c.updateForStatement(t,F(n)?I(n,!1):e.visitNode(t.initializer,E,e.isForInitializer),e.visitNode(t.condition,E,e.isExpression),e.visitNode(t.incrementor,E,e.isExpression),e.visitNode(t.statement,T,e.isStatement,c.liftToBlock))}(n);case 235:return function(t){return c.updateForInStatement(t,F(t.initializer)?I(t.initializer,!0):e.visitNode(t.initializer,E,e.isForInitializer),e.visitNode(t.expression,E,e.isExpression),e.visitNode(t.statement,T,e.isStatement,c.liftToBlock))}(n);case 236:return function(t){return c.updateForOfStatement(t,e.visitNode(t.awaitModifier,E,e.isToken),F(t.initializer)?I(t.initializer,!0):e.visitNode(t.initializer,E,e.isForInitializer),e.visitNode(t.expression,E,e.isExpression),e.visitNode(t.statement,T,e.isStatement,c.liftToBlock))}(n);case 284:return function(n){var r,i=new e.Set;if(O(n.variableDeclaration,i),i.forEach(function(t,n){a.has(n)&&(r||(r=new e.Set(a)),r.delete(n))}),r){var o=a;a=r;var s=e.visitEachChild(n,T,t);return a=o,s}return e.visitEachChild(n,T,t)}(n);case 227:case 241:case 255:case 281:case 282:case 244:case 232:case 233:case 231:case 240:case 242:return e.visitEachChild(n,T,t);default:return e.Debug.assertNever(n,"Unhandled node.")}return E(n)}function w(n){return c.updateMethodDeclaration(n,void 0,e.visitNodes(n.modifiers,E,e.isModifier),n.asteriskToken,n.name,void 0,void 0,e.visitParameterList(n.parameters,E,t),void 0,2&e.getFunctionFlags(n)?B(n):e.visitFunctionBody(n.body,E,t))}function A(n){return c.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,E,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,E,t),void 0,2&e.getFunctionFlags(n)?B(n):e.visitFunctionBody(n.body,E,t))}function N(n){return c.updateFunctionExpression(n,e.visitNodes(n.modifiers,E,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,E,t),void 0,2&e.getFunctionFlags(n)?B(n):e.visitFunctionBody(n.body,E,t))}function P(n){return c.updateArrowFunction(n,e.visitNodes(n.modifiers,E,e.isModifier),void 0,e.visitParameterList(n.parameters,E,t),void 0,n.equalsGreaterThanToken,2&e.getFunctionFlags(n)?B(n):e.visitFunctionBody(n.body,E,t))}function O(t,n){var r=t.name;if(e.isIdentifier(r))n.add(r.escapedText);else for(var i=0,a=r.elements;i=2&&6144&f.getNodeCheckFlags(i);if(P&&(0==(1&n)&&(n|=1,t.enableSubstitution(200),t.enableSubstitution(198),t.enableSubstitution(199),t.enableEmitNotification(249),t.enableEmitNotification(164),t.enableEmitNotification(166),t.enableEmitNotification(167),t.enableEmitNotification(165),t.enableEmitNotification(229)),o.size)){var F=r(c,f,i,o);h[e.getNodeId(F)]=!0,e.insertStatementsAfterStandardPrologue(A,[F])}var I=c.createBlock(A,!0);e.setTextRange(I,i.body),P&&s&&(4096&f.getNodeCheckFlags(i)?e.addEmitHelper(I,e.advancedAsyncSuperHelper):2048&f.getNodeCheckFlags(i)&&e.addEmitHelper(I,e.asyncSuperHelper)),D=I}return a=v,m||(o=S,s=k),D}function j(t,n){return e.isBlock(t)?c.updateBlock(t,e.visitNodes(t.statements,T,e.isStatement,n)):c.converters.convertToFunctionBlock(e.visitNode(t,T,e.isConciseBody))}function U(t){return 105===t.expression.kind?e.setTextRange(c.createPropertyAccessExpression(c.createUniqueName("_super",48),t.name),t):t}function z(t){return 105===t.expression.kind?function(t,n){return e.setTextRange(4096&m?c.createPropertyAccessExpression(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[t]),"value"):c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[t]),n)}(t.argumentExpression,t):t}},e.createSuperAccessVariableStatement=r}(l||(l={})),function(e){var t,n;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"}(n||(n={})),e.transformES2018=function(t){var n=t.factory,r=t.getEmitHelperFactory,a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),u=t.getCompilerOptions(),l=e.getEmitScriptTarget(u),_=t.onEmitNode;t.onEmitNode=function(t,n,r){if(1&f&&function(e){var t=e.kind;return 249===t||165===t||164===t||166===t||167===t}(n)){var i=6144&c.getNodeCheckFlags(n);if(i!==b){var a=b;return b=i,_(t,n,r),void(b=a)}}else if(f&&D[e.getNodeId(n)])return a=b,b=0,_(t,n,r),void(b=a);_(t,n,r)};var d=t.onSubstituteNode;t.onSubstituteNode=function(t,r){return r=d(t,r),1===t&&b?function(t){switch(t.kind){case 198:return K(t);case 199:return H(t);case 200:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var a=e.isPropertyAccessExpression(r)?K(r):H(r);return n.createCallExpression(n.createPropertyAccessExpression(a,"call"),void 0,i([n.createThis()],t.arguments))}return t}(t)}return t}(r):r};var f,p,g,m,h,y,v=!1,b=0,x=0,D=[];return e.chainBundle(t,function(r){if(r.isDeclarationFile)return r;g=r;var i=function(r){var i=C(2,e.isEffectiveStrictModeSourceFile(r,u)?0:1);v=!1;var a=e.visitEachChild(r,E,t),o=e.concatenate(a.statements,m&&[n.createVariableStatement(void 0,n.createVariableDeclarationList(m))]),s=n.updateSourceFile(a,e.setTextRange(n.createNodeArray(o),r.statements));return S(i),s}(r);return e.addEmitHelpers(i,t.readEmitHelpers()),g=void 0,m=void 0,i});function C(e,t){var n=x;return x=3&(x&~e|t),n}function S(e){x=e}function k(t){m=e.append(m,n.createVariableDeclaration(t))}function E(e){return P(e,!1)}function T(e){return P(e,!0)}function w(e){if(129!==e.kind)return e}function A(e,t,n,r){if(function(e,t){return x!==(x&~e|t)}(n,r)){var i=C(n,r),a=e(t);return S(i),a}return e(t)}function N(n){return e.visitEachChild(n,E,t)}function P(a,o){if(0==(32&a.transformFlags))return a;switch(a.kind){case 210:return function(i){return 2&p&&1&p?e.setOriginalNode(e.setTextRange(n.createYieldExpression(void 0,r().createAwaitHelper(e.visitNode(i.expression,E,e.isExpression))),i),i):e.visitEachChild(i,E,t)}(a);case 216:return function(i){if(2&p&&1&p){if(i.asteriskToken){var a=e.visitNode(e.Debug.assertDefined(i.expression),E,e.isExpression);return e.setOriginalNode(e.setTextRange(n.createYieldExpression(void 0,r().createAwaitHelper(n.updateYieldExpression(i,i.asteriskToken,e.setTextRange(r().createAsyncDelegatorHelper(e.setTextRange(r().createAsyncValuesHelper(a),a)),a)))),i),i)}return e.setOriginalNode(e.setTextRange(n.createYieldExpression(void 0,M(i.expression?e.visitNode(i.expression,E,e.isExpression):n.createVoidZero())),i),i)}return e.visitEachChild(i,E,t)}(a);case 239:return function(r){return 2&p&&1&p?n.updateReturnStatement(r,M(r.expression?e.visitNode(r.expression,E,e.isExpression):n.createVoidZero())):e.visitEachChild(r,E,t)}(a);case 242:return function(r){if(2&p){var i=e.unwrapInnermostStatementOfLabel(r);return 236===i.kind&&i.awaitModifier?I(i,r):n.restoreEnclosingLabel(e.visitNode(i,E,e.isStatement,n.liftToBlock),r)}return e.visitEachChild(r,E,t)}(a);case 197:return function(i){if(16384&i.transformFlags){var a=function(t){for(var r,i=[],a=0,o=t;a1){for(var s=1;s=2&&6144&c.getNodeCheckFlags(i);if(g){0==(1&f)&&(f|=1,t.enableSubstitution(200),t.enableSubstitution(198),t.enableSubstitution(199),t.enableEmitNotification(249),t.enableEmitNotification(164),t.enableEmitNotification(166),t.enableEmitNotification(167),t.enableEmitNotification(165),t.enableEmitNotification(229));var m=e.createSuperAccessVariableStatement(n,c,i,h);D[e.getNodeId(m)]=!0,e.insertStatementsAfterStandardPrologue(s,[m])}s.push(p),e.insertStatementsAfterStandardPrologue(s,o());var v=n.updateBlock(i.body,s);return g&&y&&(4096&c.getNodeCheckFlags(i)?e.addEmitHelper(v,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(i)&&e.addEmitHelper(v,e.asyncSuperHelper)),h=_,y=d,v}function W(t){var r;a();var i=0,s=[],c=null!==(r=e.visitNode(t.body,E,e.isConciseBody))&&void 0!==r?r:n.createBlock([]);e.isBlock(c)&&(i=n.copyPrologue(c.statements,s,!1,E)),e.addRange(s,q(void 0,t));var u=o();if(i>0||e.some(s)||e.some(u)){var l=n.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,u),e.addRange(s,l.statements.slice(i)),n.updateBlock(l,e.setTextRange(n.createNodeArray(s),l.statements))}return c}function q(r,i){for(var a=0,o=i.parameters;a=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);r;){if(r===i||r===t)return!1;if(e.isClassElement(r)&&r.parent===t)return!0;r=r.parent}return!1}(n,t)))return e.setTextRange(u.getGeneratedNameForNode(e.getNameOfDeclaration(n)),t)}return t}(t);case 107:return function(t){return 1&c&&16&a?e.setTextRange(u.createUniqueName("_this",48),t):t}(t)}return t}(n):e.isIdentifier(n)?function(t){if(2&c&&!e.isInternalName(t)){var n=e.getParseTreeNode(t,e.isIdentifier);if(n&&function(e){switch(e.parent.kind){case 195:case 249:case 252:case 246:return e.parent.name===e&&m.isDeclarationWithCollidingName(e.parent)}return!1}(n))return e.setTextRange(u.getGeneratedNameForNode(n),t)}return t}(n):n},e.chainBundle(t,function(i){if(i.isDeclarationFile)return i;n=i,r=i.text;var s=function(t){var n=b(8064,64),r=[],i=[];_();var a=u.copyPrologue(t.statements,r,!1,C);return e.addRange(i,e.visitNodes(t.statements,C,e.isStatement,a)),o&&i.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(o))),u.mergeLexicalEnvironment(r,f()),L(r,t),x(n,0,0),u.updateSourceFile(t,e.setTextRange(u.createNodeArray(e.concatenate(r,i)),t.statements))}(i);return e.addEmitHelpers(s,t.readEmitHelpers()),n=void 0,r=void 0,o=void 0,a=0,s});function b(e,t){var n=a;return a=16383&(a&~e|t),n}function x(e,t,n){a=-16384&(a&~t|n)|e}function D(e){return 0!=(8192&a)&&239===e.kind&&!e.expression}function C(r){return function(t){return 0!=(256&t.transformFlags)||void 0!==s||8192&a&&function(t){return 1048576&t.transformFlags&&(e.isReturnStatement(t)||e.isIfStatement(t)||e.isWithStatement(t)||e.isSwitchStatement(t)||e.isCaseBlock(t)||e.isCaseClause(t)||e.isDefaultClause(t)||e.isTryStatement(t)||e.isCatchClause(t)||e.isLabeledStatement(t)||e.isIterationStatement(t,!1)||e.isBlock(t))}(t)||e.isIterationStatement(t,!1)&&ue(t)||0!=(33554432&e.getEmitFlags(t))}(r)?function(r){switch(r.kind){case 123:return;case 249:return function(t){var n=u.createVariableDeclaration(u.getLocalName(t,!0),void 0,void 0,T(t));e.setOriginalNode(n,t);var r=[],i=u.createVariableStatement(void 0,u.createVariableDeclarationList([n]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),r.push(i),e.hasSyntacticModifier(t,1)){var a=e.hasSyntacticModifier(t,512)?u.createExportDefault(u.getLocalName(t)):u.createExternalModuleExport(u.getLocalName(t));e.setOriginalNode(a,i),r.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(r.push(u.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(r)}(r);case 218:return function(e){return T(e)}(r);case 159:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,void 0,u.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(r);case 248:return function(n){var r=s;s=void 0;var i=b(16286,65),o=e.visitParameterList(n.parameters,C,t),c=W(n),l=16384&a?u.getLocalName(n):n.name;return x(i,49152,0),s=r,u.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,C,e.isModifier),n.asteriskToken,l,void 0,o,void 0,c)}(r);case 206:return function(n){4096&n.transformFlags&&(a|=32768);var r=s;s=void 0;var i=b(15232,66),o=u.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(n.parameters,C,t),void 0,W(n));return e.setTextRange(o,n),e.setOriginalNode(o,n),e.setEmitFlags(o,8),32768&a&&Oe(),x(i,0,0),s=r,o}(r);case 205:return function(n){var r=262144&e.getEmitFlags(n)?b(16278,69):b(16286,65),i=s;s=void 0;var o=e.visitParameterList(n.parameters,C,t),c=W(n),l=16384&a?u.getLocalName(n):n.name;return x(r,49152,0),s=i,u.updateFunctionExpression(n,void 0,n.asteriskToken,l,void 0,o,void 0,c)}(r);case 246:return G(r);case 78:return E(r);case 247:return function(n){if(3&n.flags||131072&n.transformFlags){3&n.flags&&Pe();var r=e.flatMap(n.declarations,1&n.flags?H:G),i=u.createVariableDeclarationList(r);return e.setOriginalNode(i,n),e.setTextRange(i,n),e.setCommentRange(i,n),131072&n.transformFlags&&(e.isBindingPattern(n.declarations[0].name)||e.isBindingPattern(e.last(n.declarations).name))&&e.setSourceMapRange(i,function(t){for(var n=-1,r=-1,i=0,a=t;i0?(e.insertStatementAfterCustomPrologue(n,e.setEmitFlags(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(r,C,t,0,u.getGeneratedNameForNode(r)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(n,e.setEmitFlags(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(r),e.visitNode(a,C,e.isExpression))),1048576)),!0)}function I(t,n,r,i){i=e.visitNode(i,C,e.isExpression);var a=u.createIfStatement(u.createTypeCheck(u.cloneNode(r),"undefined"),e.setEmitFlags(e.setTextRange(u.createBlock([u.createExpressionStatement(e.setEmitFlags(e.setTextRange(u.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(u.cloneNode(r),r),r.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),n),1536))]),n),1953));e.startOnNewLine(a),e.setTextRange(a,n),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function M(n,r,i){var a=[],o=e.lastOrUndefined(r.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(o,i))return!1;var s=78===o.name.kind?e.setParent(e.setTextRange(u.cloneNode(o.name),o.name),o.name.parent):u.createTempVariable(void 0);e.setEmitFlags(s,48);var c=78===o.name.kind?u.cloneNode(o.name):s,l=r.parameters.length-1,_=u.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(s,void 0,void 0,u.createArrayLiteralExpression([]))])),o),1048576));var d=u.createForStatement(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(_,void 0,void 0,u.createNumericLiteral(l))]),o),e.setTextRange(u.createLessThan(_,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),o),e.setTextRange(u.createPostfixIncrement(_),o),u.createBlock([e.startOnNewLine(e.setTextRange(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(c,0===l?_:u.createSubtract(_,u.createNumericLiteral(l))),u.createElementAccessExpression(u.createIdentifier("arguments"),_))),o))]));return e.setEmitFlags(d,1048576),e.startOnNewLine(d),a.push(d),78!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(o,C,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(n,a),!0}function L(e,t){return!!(32768&a&&206!==t.kind)&&(R(e,t,u.createThis()),!0)}function R(t,n,r){Oe();var i=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_this",48),void 0,void 0,r)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,n),e.insertStatementAfterCustomPrologue(t,i)}function B(t,n,r){if(16384&a){var i=void 0;switch(n.kind){case 206:return t;case 164:case 166:case 167:i=u.createVoidZero();break;case 165:i=u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor");break;case 248:case 205:i=u.createConditionalExpression(u.createLogicalAnd(e.setEmitFlags(u.createThis(),4),u.createBinaryExpression(e.setEmitFlags(u.createThis(),4),101,u.getLocalName(n))),void 0,u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor"),void 0,u.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(n)}var o=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),r&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function j(t){return e.setTextRange(u.createEmptyStatement(),t)}function U(n,r,i){var a,o=e.getCommentRange(r),s=e.getSourceMapRange(r),c=V(r,r,void 0,i),l=e.visitNode(r.name,C,e.isPropertyName);if(!e.isPrivateIdentifier(l)&&t.getCompilerOptions().useDefineForClassFields){var _=e.isComputedPropertyName(l)?l.expression:e.isIdentifier(l)?u.createStringLiteral(e.unescapeLeadingUnderscores(l.escapedText)):l;a=u.createObjectDefinePropertyCall(n,_,u.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var d=e.createMemberAccessForPropertyName(u,n,l,r.name);a=u.createAssignment(d,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var f=e.setTextRange(u.createExpressionStatement(a),r);return e.setOriginalNode(f,r),e.setCommentRange(f,o),e.setEmitFlags(f,48),f}function z(t,n,r){var i=u.createExpressionStatement(J(t,n,r,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(n.firstAccessor)),i}function J(t,n,r,i){var a=n.firstAccessor,o=n.getAccessor,s=n.setAccessor,c=e.setParent(e.setTextRange(u.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var l=e.visitNode(a.name,C,e.isPropertyName);if(e.isPrivateIdentifier(l))return e.Debug.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");var _=e.createExpressionForPropertyName(u,l);e.setEmitFlags(_,1552),e.setSourceMapRange(_,a.name);var d=[];if(o){var f=V(o,void 0,void 0,r);e.setSourceMapRange(f,e.getSourceMapRange(o)),e.setEmitFlags(f,512);var p=u.createPropertyAssignment("get",f);e.setCommentRange(p,e.getCommentRange(o)),d.push(p)}if(s){var g=V(s,void 0,void 0,r);e.setSourceMapRange(g,e.getSourceMapRange(s)),e.setEmitFlags(g,512);var m=u.createPropertyAssignment("set",g);e.setCommentRange(m,e.getCommentRange(s)),d.push(m)}d.push(u.createPropertyAssignment("enumerable",o||s?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));var h=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[c,_,u.createObjectLiteralExpression(d,!0)]);return i&&e.startOnNewLine(h),h}function V(n,r,i,o){var c=s;s=void 0;var l=o&&e.isClassLike(o)&&!e.hasSyntacticModifier(n,32)?b(16286,73):b(16286,65),_=e.visitParameterList(n.parameters,C,t),d=W(n);return 16384&a&&!i&&(248===n.kind||205===n.kind)&&(i=u.getGeneratedNameForNode(n)),x(l,49152,0),s=c,e.setOriginalNode(e.setTextRange(u.createFunctionExpression(void 0,n.asteriskToken,i,void 0,_,void 0,d),r),n)}function W(t){var r,i,a,o=!1,s=!1,c=[],l=[],_=t.body;if(d(),e.isBlock(_)&&(a=u.copyStandardPrologue(_.statements,c,!1),a=u.copyCustomPrologue(_.statements,l,a,C,e.isHoistedFunction),a=u.copyCustomPrologue(_.statements,l,a,C,e.isHoistedVariableStatement)),o=O(l,t)||o,o=M(l,t,!1)||o,e.isBlock(_))a=u.copyCustomPrologue(_.statements,l,a,C),r=_.statements,e.addRange(l,e.visitNodes(_.statements,C,e.isStatement,a)),!o&&_.multiLine&&(o=!0);else{e.Debug.assert(206===t.kind),r=e.moveRangeEnd(_,-1);var p=t.equalsGreaterThanToken;e.nodeIsSynthesized(p)||e.nodeIsSynthesized(_)||(e.rangeEndIsOnSameLineAsRangeStart(p,_,n)?s=!0:o=!0);var g=e.visitNode(_,C,e.isExpression),m=u.createReturnStatement(g);e.setTextRange(m,_),e.moveSyntheticComments(m,_),e.setEmitFlags(m,1440),l.push(m),i=_}if(u.mergeLexicalEnvironment(c,f()),B(c,t,!1),L(c,t),e.some(c)&&(o=!0),l.unshift.apply(l,c),e.isBlock(_)&&e.arrayIsEqualTo(l,_.statements))return _;var h=u.createBlock(e.setTextRange(u.createNodeArray(l),r),o);return e.setTextRange(h,t.body),!o&&s&&e.setEmitFlags(h,1),i&&e.setTokenSourceMapRange(h,19,i),e.setOriginalNode(h,t.body),h}function q(n,r){if(!r)switch(n.expression.kind){case 204:return u.updateParenthesizedExpression(n,q(n.expression,!1));case 213:return u.updateParenthesizedExpression(n,K(n.expression,!1))}return e.visitEachChild(n,C,t)}function K(n,r){return e.isDestructuringAssignment(n)?e.flattenDestructuringAssignment(n,C,t,0,r):e.visitEachChild(n,C,t)}function H(n){return e.isBindingPattern(n.name)?G(n):!n.initializer&&function(e){var t=m.getNodeCheckFlags(e),n=262144&t,r=524288&t;return!(0!=(64&a)||n&&r&&0!=(512&a))&&0==(4096&a)&&(!m.isDeclarationWithCollidingName(e)||r&&!n&&0==(6144&a))}(n)?u.updateVariableDeclaration(n,n.name,void 0,void 0,u.createVoidZero()):e.visitEachChild(n,C,t)}function G(n){var r,i=b(32,0);return r=e.isBindingPattern(n.name)?e.flattenDestructuringBinding(n,C,t,0,void 0,0!=(32&i)):e.visitEachChild(n,C,t),x(i,0,0),r}function Q(t){s.labels.set(e.idText(t.label),!0)}function X(t){s.labels.set(e.idText(t.label),!1)}function Y(n,r,i,o,c){var l=b(n,r),d=function(n,r,i,o){if(!ue(n)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var l=o?o(n,r,void 0,i):u.restoreEnclosingLabel(e.visitEachChild(n,C,t),r,s&&X);return s&&(s.allowedNonLabeledJumps=c),l}var d=function(t){var n;switch(t.kind){case 234:case 235:case 236:var r=t.initializer;r&&247===r.kind&&(n=r)}var i=[],a=[];if(n&&3&e.getCombinedNodeFlags(n))for(var o=se(t),c=0,u=n.declarations;c=80&&n<=115)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}}(l||(l={})),function(e){var t,n,r,a,o;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(n||(n={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(r||(r={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(a||(a={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(o||(o={})),e.transformGenerators=function(t){var n,r,a,o,s,c,u,l,_,d,f=t.factory,p=t.getEmitHelperFactory,g=t.resumeLexicalEnvironment,m=t.endLexicalEnvironment,h=t.hoistFunctionDeclaration,y=t.hoistVariableDeclaration,v=t.getCompilerOptions(),b=e.getEmitScriptTarget(v),x=t.getEmitResolver(),D=t.onSubstituteNode;t.onSubstituteNode=function(t,i){return i=D(t,i),1===t?function(t){return e.isIdentifier(t)?function(t){if(!e.isGeneratedIdentifier(t)&&n&&n.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=x.getReferencedValueDeclaration(i);if(a){var o=r[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(f.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t):t}(i):i};var C,S,k,E,T,w,A,N,P,O,F,I,M=1,L=0,R=0;return e.chainBundle(t,function(n){if(n.isDeclarationFile||0==(512&n.transformFlags))return n;var r=e.visitEachChild(n,B,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r});function B(n){var r=n.transformFlags;return o?function(n){switch(n.kind){case 232:case 233:return function(n){return o?(oe(),n=e.visitEachChild(n,B,t),ce(),n):e.visitEachChild(n,B,t)}(n);case 241:return function(n){return o&&ne({kind:2,isScript:!0,breakLabel:-1}),n=e.visitEachChild(n,B,t),o&&ue(),n}(n);case 242:return function(n){return o&&ne({kind:4,isScript:!0,labelText:e.idText(n.label),breakLabel:-1}),n=e.visitEachChild(n,B,t),o&&le(),n}(n);default:return j(n)}}(n):a?j(n):e.isFunctionLikeDeclaration(n)&&n.asteriskToken?function(t){switch(t.kind){case 248:return U(t);case 205:return z(t);default:return e.Debug.failBadSyntaxKind(t)}}(n):512&r?e.visitEachChild(n,B,t):n}function j(n){switch(n.kind){case 248:return U(n);case 205:return z(n);case 166:case 167:return function(n){var r=a,i=o;return a=!1,o=!1,n=e.visitEachChild(n,B,t),a=r,o=i,n}(n);case 229:return function(t){if(262144&t.transformFlags)G(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var n=0,r=t.declarationList.declarations;n0?f.inlineExpressions(e.map(s,Q)):void 0,e.visitNode(n.condition,B,e.isExpression),e.visitNode(n.incrementor,B,e.isExpression),e.visitNode(n.statement,B,e.isStatement,f.liftToBlock))}else n=e.visitEachChild(n,B,t);return o&&ce(),n}(n);case 235:return function(n){o&&oe();var r=n.initializer;if(e.isVariableDeclarationList(r)){for(var i=0,a=r.declarations;i0)return ve(r,n)}return e.visitEachChild(n,B,t)}(n);case 237:return function(n){if(o){var r=me(n.label&&e.idText(n.label));if(r>0)return ve(r,n)}return e.visitEachChild(n,B,t)}(n);case 239:return function(t){return function(t,n){return e.setTextRange(f.createReturnStatement(f.createArrayLiteralExpression(t?[ye(2),t]:[ye(2)])),n)}(e.visitNode(t.expression,B,e.isExpression),t)}(n);default:return 262144&n.transformFlags?function(n){switch(n.kind){case 213:return function(n){var r=e.getExpressionAssociativity(n);switch(r){case 0:return function(n){return X(n.right)?e.isLogicalOperator(n.operatorToken.kind)?function(t){var n=ee(),r=$();return De(r,e.visitNode(t.left,B,e.isExpression),t.left),55===t.operatorToken.kind?ke(n,r,t.left):Se(n,r,t.left),De(r,e.visitNode(t.right,B,e.isExpression),t.right),te(n),r}(n):27===n.operatorToken.kind?V(n):f.updateBinaryExpression(n,Z(e.visitNode(n.left,B,e.isExpression)),n.operatorToken,e.visitNode(n.right,B,e.isExpression)):e.visitEachChild(n,B,t)}(n);case 1:return function(n){var r=n.left,i=n.right;if(X(i)){var a=void 0;switch(r.kind){case 198:a=f.updatePropertyAccessExpression(r,Z(e.visitNode(r.expression,B,e.isLeftHandSideExpression)),r.name);break;case 199:a=f.updateElementAccessExpression(r,Z(e.visitNode(r.expression,B,e.isLeftHandSideExpression)),Z(e.visitNode(r.argumentExpression,B,e.isExpression)));break;default:a=e.visitNode(r,B,e.isExpression)}var o=n.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(f.createAssignment(a,e.setTextRange(f.createBinaryExpression(Z(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,B,e.isExpression)),n)),n):f.updateBinaryExpression(n,a,n.operatorToken,e.visitNode(i,B,e.isExpression))}return e.visitEachChild(n,B,t)}(n);default:return e.Debug.assertNever(r)}}(n);case 332:return function(t){for(var n=[],r=0,i=t.elements;r0&&(Ee(1,[f.createExpressionStatement(f.inlineExpressions(n))]),n=[]),n.push(e.visitNode(a,B,e.isExpression)))}return f.inlineExpressions(n)}(n);case 214:return function(n){if(X(n.whenTrue)||X(n.whenFalse)){var r=ee(),i=ee(),a=$();return ke(r,e.visitNode(n.condition,B,e.isExpression),n.condition),De(a,e.visitNode(n.whenTrue,B,e.isExpression),n.whenTrue),Ce(i),te(r),De(a,e.visitNode(n.whenFalse,B,e.isExpression),n.whenFalse),te(i),a}return e.visitEachChild(n,B,t)}(n);case 216:return function(t){var n=ee(),r=e.visitNode(t.expression,B,e.isExpression);return t.asteriskToken?function(e,t){Ee(7,[e],t)}(0==(8388608&e.getEmitFlags(t.expression))?e.setTextRange(p().createValuesHelper(r),t):r,t):function(e,t){Ee(6,[e],t)}(r,t),te(n),function(t){return e.setTextRange(f.createCallExpression(f.createPropertyAccessExpression(E,"sent"),void 0,[]),t)}(t)}(n);case 196:return function(e){return W(e.elements,void 0,void 0,e.multiLine)}(n);case 197:return function(t){var n=t.properties,r=t.multiLine,i=Y(n),a=$();De(a,f.createObjectLiteralExpression(e.visitNodes(n,B,e.isObjectLiteralElementLike,0,i),r));var o=e.reduceLeft(n,function(n,i){X(i)&&n.length>0&&(xe(f.createExpressionStatement(f.inlineExpressions(n))),n=[]);var o=e.createExpressionForObjectLiteralElementLike(f,t,i,a),s=e.visitNode(o,B,e.isExpression);return s&&(r&&e.startOnNewLine(s),n.push(s)),n},[],i);return o.push(r?e.startOnNewLine(e.setParent(e.setTextRange(f.cloneNode(a),a),a.parent)):a),f.inlineExpressions(o)}(n);case 199:return function(n){return X(n.argumentExpression)?f.updateElementAccessExpression(n,Z(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),e.visitNode(n.argumentExpression,B,e.isExpression)):e.visitEachChild(n,B,t)}(n);case 200:return function(n){if(!e.isImportCall(n)&&e.forEach(n.arguments,X)){var r=f.createCallBinding(n.expression,y,b,!0),i=r.thisArg;return e.setOriginalNode(e.setTextRange(f.createFunctionApplyCall(Z(e.visitNode(r.target,B,e.isLeftHandSideExpression)),i,W(n.arguments)),n),n)}return e.visitEachChild(n,B,t)}(n);case 201:return function(n){if(e.forEach(n.arguments,X)){var r=f.createCallBinding(f.createPropertyAccessExpression(n.expression,"bind"),y),i=r.thisArg;return e.setOriginalNode(e.setTextRange(f.createNewExpression(f.createFunctionApplyCall(Z(e.visitNode(r.target,B,e.isExpression)),i,W(n.arguments,f.createVoidZero())),void 0,[]),n),n)}return e.visitEachChild(n,B,t)}(n);default:return e.visitEachChild(n,B,t)}}(n):1049088&n.transformFlags?e.visitEachChild(n,B,t):n}}function U(n){if(n.asteriskToken)n=e.setOriginalNode(e.setTextRange(f.createFunctionDeclaration(void 0,n.modifiers,void 0,n.name,void 0,e.visitParameterList(n.parameters,B,t),void 0,J(n.body)),n),n);else{var r=a,i=o;a=!1,o=!1,n=e.visitEachChild(n,B,t),a=r,o=i}return a?void h(n):n}function z(n){if(n.asteriskToken)n=e.setOriginalNode(e.setTextRange(f.createFunctionExpression(void 0,void 0,n.name,void 0,e.visitParameterList(n.parameters,B,t),void 0,J(n.body)),n),n);else{var r=a,i=o;a=!1,o=!1,n=e.visitEachChild(n,B,t),a=r,o=i}return n}function J(t){var n=[],r=a,i=o,p=s,h=c,y=u,v=l,b=_,x=d,D=M,T=C,w=S,A=k,N=E;a=!0,o=!1,s=void 0,c=void 0,u=void 0,l=void 0,_=void 0,d=void 0,M=1,C=void 0,S=void 0,k=void 0,E=f.createTempVariable(void 0),g();var P=f.copyPrologue(t.statements,n,!1,B);q(t.statements,P);var O=Te();return e.insertStatementsAfterStandardPrologue(n,m()),n.push(f.createReturnStatement(O)),a=r,o=i,s=p,c=h,u=y,l=v,_=b,d=x,M=D,C=T,S=w,k=A,E=N,e.setTextRange(f.createBlock(n,t.multiLine),t)}function V(t){var n=[];return r(t.left),r(t.right),f.inlineExpressions(n);function r(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(r(t.left),r(t.right)):(X(t)&&n.length>0&&(Ee(1,[f.createExpressionStatement(f.inlineExpressions(n))]),n=[]),n.push(e.visitNode(t,B,e.isExpression)))}}function W(t,n,r,a){var o,s=Y(t);if(s>0){o=$();var c=e.visitNodes(t,B,e.isExpression,0,s);De(o,f.createArrayLiteralExpression(n?i([n],c):c)),n=void 0}var u=e.reduceLeft(t,function(t,r){if(X(r)&&t.length>0){var s=void 0!==o;o||(o=$()),De(o,s?f.createArrayConcatCall(o,[f.createArrayLiteralExpression(t,a)]):f.createArrayLiteralExpression(n?i([n],t):t,a)),n=void 0,t=[]}return t.push(e.visitNode(r,B,e.isExpression)),t},[],s);return o?f.createArrayConcatCall(o,[f.createArrayLiteralExpression(u,a)]):e.setTextRange(f.createArrayLiteralExpression(n?i([n],u):u,a),r)}function q(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r0?Ce(n,t):xe(t)}(i);case 238:return function(t){var n=ge(t.label?e.idText(t.label):void 0);n>0?Ce(n,t):xe(t)}(i);case 239:return function(t){!function(e,t){Ee(8,[e],t)}(e.visitNode(t.expression,B,e.isExpression),t)}(i);case 240:return function(t){var n,r,i;X(t)?(n=Z(e.visitNode(t.expression,B,e.isExpression)),r=ee(),i=ee(),te(r),ne({kind:1,expression:n,startLabel:r,endLabel:i}),K(t.statement),e.Debug.assert(1===ae()),te(re().endLabel)):xe(e.visitNode(t,B,e.isStatement))}(i);case 241:return function(t){if(X(t.caseBlock)){for(var n=t.caseBlock,r=n.clauses.length,i=(ne({kind:2,isScript:!1,breakLabel:p=ee()}),p),a=Z(e.visitNode(t.expression,B,e.isExpression)),o=[],s=-1,c=0;c0)break;_.push(f.createCaseClause(e.visitNode(u.expression,B,e.isExpression),[ve(o[c],u.expression)]))}else d++;_.length&&(xe(f.createSwitchStatement(a,f.createCaseBlock(_))),l+=_.length,_=[]),d>0&&(l+=d,d=0)}for(Ce(s>=0?o[s]:i),c=0;c0)break;c.push(Q(l))}c.length&&(xe(f.createExpressionStatement(f.inlineExpressions(c))),s+=c.length,c=[])}}function Q(t){return e.setSourceMapRange(f.createAssignment(e.setSourceMapRange(f.cloneNode(t.name),t.name),e.visitNode(t.initializer,B,e.isExpression)),t)}function X(e){return!!e&&0!=(262144&e.transformFlags)}function Y(e){for(var t=e.length,n=0;n=0;n--){var r=l[n];if(!de(r))break;if(r.labelText===e)return!0}return!1}function ge(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(de(n=l[t])&&n.labelText===e)return n.breakLabel;if(_e(n)&&pe(e,t-1))return n.breakLabel}else for(t=l.length-1;t>=0;t--){var n;if(_e(n=l[t]))return n.breakLabel}return 0}function me(e){if(l)if(e){for(var t=l.length-1;t>=0;t--)if(fe(n=l[t])&&pe(e,t-1))return n.continueLabel}else for(t=l.length-1;t>=0;t--){var n;if(fe(n=l[t]))return n.continueLabel}return 0}function he(e){if(void 0!==e&&e>0){void 0===d&&(d=[]);var t=f.createNumericLiteral(-1);return void 0===d[e]?d[e]=[t]:d[e].push(t),t}return f.createOmittedExpression()}function ye(t){var n=f.createNumericLiteral(t);return e.addSyntheticTrailingComment(n,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(t)),n}function ve(t,n){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(f.createReturnStatement(f.createArrayLiteralExpression([ye(3),he(t)])),n)}function be(){Ee(0)}function xe(e){e?Ee(1,[e]):be()}function De(e,t,n){Ee(2,[e,t],n)}function Ce(e,t){Ee(3,[e],t)}function Se(e,t,n){Ee(4,[e,t],n)}function ke(e,t,n){Ee(5,[e,t],n)}function Ee(e,t,n){void 0===C&&(C=[],S=[],k=[]),void 0===_&&te(ee());var r=C.length;C[r]=e,S[r]=t,k[r]=n}function Te(){L=0,R=0,T=void 0,w=!1,A=!1,N=void 0,P=void 0,O=void 0,F=void 0,I=void 0;var t=function(){if(C){for(var t=0;t0)),524288))}function we(e){(function(e){if(!A)return!0;if(!_||!d)return!1;for(var t=0;t<_.length;t++)if(_[t]===e&&d[t])return!0;return!1})(e)&&(Ne(e),I=void 0,Fe(void 0,void 0)),P&&N&&Ae(!1),function(){if(void 0!==d&&void 0!==T)for(var e=0;e=0;t--)P=[f.createWithStatement(I[t].expression,f.createBlock(P))];if(F){var n=F.startLabel,r=F.catchLabel,i=F.finallyLabel,a=F.endLabel;P.unshift(f.createExpressionStatement(f.createCallExpression(f.createPropertyAccessExpression(f.createPropertyAccessExpression(E,"trys"),"push"),void 0,[f.createArrayLiteralExpression([he(n),he(r),he(i),he(a)])]))),F=void 0}e&&P.push(f.createExpressionStatement(f.createAssignment(f.createPropertyAccessExpression(E,"label"),f.createNumericLiteral(R+1))))}N.push(f.createCaseClause(f.createNumericLiteral(R),P||[])),P=void 0}function Ne(e){if(_)for(var t=0;t<_.length;t++)_[t]===e&&(P&&(Ae(!w),w=!1,A=!1,R++),void 0===T&&(T=[]),void 0===T[R]?T[R]=[t]:T[R].push(t))}function Pe(t){if(Ne(t),function(e){if(s)for(;L=2?2:0)),t),t))}else i&&e.isDefaultImport(t)&&(n=e.append(n,r.createVariableStatement(void 0,r.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(r.createVariableDeclaration(r.cloneNode(i.name),void 0,void 0,r.getGeneratedNameForNode(t)),t),t)],d>=2?2:0))));if(j(t)){var o=e.getOriginalNodeId(t);x[o]=U(x[o],t)}else n=U(n,t);return e.singleOrMany(n)}(t);case 257:return function(t){var n;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),f!==e.ModuleKind.AMD?n=e.hasSyntacticModifier(t,1)?e.append(n,e.setOriginalNode(e.setTextRange(r.createExpressionStatement(G(t.name,L(t))),t),t)):e.append(n,e.setOriginalNode(e.setTextRange(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(t.name),void 0,void 0,L(t))],d>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(n=e.append(n,e.setOriginalNode(e.setTextRange(r.createExpressionStatement(G(r.getExportName(t),r.getLocalName(t))),t),t))),j(t)){var i=e.getOriginalNodeId(t);x[i]=z(x[i],t)}else n=z(n,t);return e.singleOrMany(n)}(t);case 264:return function(t){if(t.moduleSpecifier){var n=r.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var i=[];f!==e.ModuleKind.AMD&&i.push(e.setOriginalNode(e.setTextRange(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(n,void 0,void 0,L(t))])),t),t));for(var o=0,s=t.exportClause.elements;o(e.isExportName(t)?1:0);return!1}function F(t,n){var i,o=r.createUniqueName("resolve"),s=r.createUniqueName("reject"),c=[r.createParameterDeclaration(void 0,void 0,void 0,o),r.createParameterDeclaration(void 0,void 0,void 0,s)],l=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([t||r.createOmittedExpression()]),o,s]))]);d>=2?i=r.createArrowFunction(void 0,void 0,c,void 0,void 0,l):(i=r.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,l),n&&e.setEmitFlags(i,8));var _=r.createNewExpression(r.createIdentifier("Promise"),void 0,[i]);return u.esModuleInterop?r.createCallExpression(r.createPropertyAccessExpression(_,r.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):_}function I(t,n){var i,o=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,[]),s=r.createCallExpression(r.createIdentifier("require"),void 0,t?[t]:[]);return u.esModuleInterop&&(s=a().createImportStarHelper(s)),d>=2?i=r.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(i=r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(s)])),n&&e.setEmitFlags(i,8)),r.createCallExpression(r.createPropertyAccessExpression(o,"then"),void 0,[i])}function M(t,n){return!u.esModuleInterop||67108864&e.getEmitFlags(t)?n:e.getImportNeedsImportStarHelper(t)?a().createImportStarHelper(n):e.getImportNeedsImportDefaultHelper(t)?a().createImportDefaultHelper(n):n}function L(t){var n=e.getExternalModuleNameLiteral(r,t,m,_,l,u),i=[];return n&&i.push(n),r.createCallExpression(r.createIdentifier("require"),void 0,i)}function R(t,n,i){var a=Y(t);if(a){for(var o=e.isExportName(t)?n:r.createAssignment(t,n),s=0,c=a;se.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var n=t.exportClause.name,i=r.getGeneratedNameForNode(n),a=r.createImportDeclaration(void 0,void 0,r.createImportClause(!1,void 0,r.createNamespaceImport(i)),t.moduleSpecifier);e.setOriginalNode(a,t.exportClause);var s=r.createExportDeclaration(void 0,void 0,!1,r.createNamedExports([r.createExportSpecifier(i,n)]));return e.setOriginalNode(s,t),[a,s]}(t)}return t}}}(l||(l={})),function(e){function t(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)?n:e.isSetAccessor(t)||e.isGetAccessor(t)?function(n){return{diagnosticMessage:167===t.kind?e.hasSyntacticModifier(t,32)?n.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.hasSyntacticModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,errorNode:t.name,typeName:t.name}}:e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?function(n){var r;switch(t.kind){case 169:r=n.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 168:r=n.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 170:r=n.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 164:case 163:r=e.hasSyntacticModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:249===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:n.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 248:r=n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:r,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?n:function(n){var r=function(n){switch(t.parent.kind){case 165:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 169:case 174:return n.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 168:return n.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 170:return n.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 164:case 163:return e.hasSyntacticModifier(t.parent,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:249===t.parent.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 248:case 173:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 167:case 166:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: "+e.SyntaxKind[t.parent.kind])}}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?function(){var n;switch(t.parent.kind){case 249:n=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 250:n=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 189:n=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 174:case 169:n=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 168:n=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 164:case 163:n=e.hasSyntacticModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:249===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 173:case 248:n=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 251:n=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:n,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?function(){return{diagnosticMessage:e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&116===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}:e.isImportEqualsDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}:e.isTypeAliasDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}:e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[t.kind]);function n(n){var r=function(n){return 246===t.kind||195===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:162===t.kind||198===t.kind||161===t.kind||159===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.hasSyntacticModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:249===t.parent.kind||159===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=function(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(n){return e.isSetAccessor(n)||e.isGetAccessor(n)?function(t){var r=function(t){return e.hasSyntacticModifier(n,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:249===n.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}:e.isMethodSignature(n)||e.isMethodDeclaration(n)?function(t){var r=function(t){return e.hasSyntacticModifier(n,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:249===n.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}:t(n)},e.createGetSymbolAccessibilityDiagnosticForNode=t}(l||(l={})),function(e){function t(t,n){var r=n.text.substring(t.pos,t.end);return e.stringContains(r,"@internal")}function n(n,r){var i=e.getParseTreeNode(n);if(i&&159===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=r.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,n.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,n.pos,!1,!0));return c&&c.length&&t(e.last(c),r)}var u=i&&e.getLeadingCommentRangesOfNode(i,r);return!!e.forEach(u,function(e){return t(e,r)})}function r(t){var r,c,u,l,_,d,f,p,g,m,h,y=function(){return e.Debug.fail("Diagnostic emitted without context")},v=y,b=!0,x=!1,D=!1,C=!1,S=!1,k=t.factory,E=t.getEmitHost(),T={trackSymbol:function(e,t,n){262144&e.flags||(F(w.isSymbolAccessible(e,t,n,!0)),O(w.getTypeReferenceDirectivesForSymbol(e,n)))},reportInaccessibleThisError:function(){f&&t.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(f),"this"))},reportInaccessibleUniqueSymbolError:function(){f&&t.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(f),"unique symbol"))},reportCyclicStructureError:function(){f&&t.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,e.declarationNameToString(f)))},reportPrivateInBaseOfClassExpression:function(n){f&&t.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,n))},reportLikelyUnsafeImportRequiredError:function(n){f&&t.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,e.declarationNameToString(f),n))},moduleResolverHost:E,trackReferencedAmbientModule:function(t,n){var r=w.getTypeReferenceDirectivesForSymbol(n,67108863);if(e.length(r))return O(r);var i=e.getSourceFileOfNode(t);g.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){x||(d||(d=[])).push(e)},reportNonlocalAugmentation:function(n,r,i){for(var a=e.find(r.declarations,function(t){return e.getSourceFileOfNode(t)===n}),o=0,s=e.filter(i.declarations,function(t){return e.getSourceFileOfNode(t)!==n});o0?e.parameters[0].type:void 0}e.getDeclarationDiagnostics=function(t,n,i){var a=t.getCompilerOptions();return e.transformNodes(n,t,e.factory,a,i?[i]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[r],!1).diagnostics},e.isInternalDeclaration=n,e.transformDeclarations=r}(l||(l={})),function(e){var t,n;function r(t,n,r){if(r)return e.emptyArray;var i=t.jsx,a=e.getEmitScriptTarget(t),o=e.getEmitModuleKind(t),c=[];return e.addRange(c,n&&e.map(n.before,s)),c.push(e.transformTypeScript),c.push(e.transformClassFields),2===i&&c.push(e.transformJsx),a<99&&c.push(e.transformESNext),a<7&&c.push(e.transformES2020),a<6&&c.push(e.transformES2019),a<5&&c.push(e.transformES2018),a<4&&c.push(e.transformES2017),a<3&&c.push(e.transformES2016),a<2&&(c.push(e.transformES2015),c.push(e.transformGenerators)),c.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}(o)),a<1&&c.push(e.transformES5),e.addRange(c,n&&e.map(n.after,s)),c}function a(t){var n=[];return n.push(e.transformDeclarations),e.addRange(n,t&&e.map(t.afterDeclarations,c)),n}function o(t,n){return function(r){var i=t(r);return"function"==typeof i?n(r,i):function(t){return function(n){return e.isBundle(n)?t.transformBundle(n):t.transformSourceFile(n)}}(i)}}function s(t){return o(t,e.chainBundle)}function c(e){return o(e,function(e,t){return t})}function u(e,t){return t}function l(e,t,n){n(e,t)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(n||(n={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,t,n){return{scriptTransformers:r(e,t,n),declarationTransformers:a(t)}},e.noEmitSubstitution=u,e.noEmitNotification=l,e.transformNodes=function(t,n,r,a,o,s,c){for(var _,d,f,p,g=new Array(336),m=0,h=[],y=[],v=[],b=[],x=0,D=!1,C=u,S=l,k=0,E=[],T={factory:r,getCompilerOptions:function(){return a},getEmitResolver:function(){return t},getEmitHost:function(){return n},getEmitHelperFactory:e.memoize(function(){return e.createEmitHelperFactory(T)}),startLexicalEnvironment:function(){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!D,"Lexical environment is suspended."),h[x]=_,y[x]=d,v[x]=f,b[x]=m,x++,_=void 0,d=void 0,f=void 0,m=0},suspendLexicalEnvironment:function(){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!D,"Lexical environment is already suspended."),D=!0},resumeLexicalEnvironment:function(){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(D,"Lexical environment is not suspended."),D=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!D,"Lexical environment is suspended."),_||d||f){if(d&&(t=i(d)),_){var n=r.createVariableStatement(void 0,r.createVariableDeclarationList(_));e.setEmitFlags(n,1048576),t?t.push(n):t=[n]}f&&(t=t?i(t,f):i(f))}return x--,_=h[x],d=y[x],f=v[x],m=b[x],0===x&&(h=[],y=[],v=[],b=[]),t},setLexicalEnvironmentFlags:function(e,t){m=t?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(t){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed.");var n=e.setEmitFlags(r.createVariableDeclaration(t),64);_?_.push(n):_=[n],1&m&&(m|=2)},hoistFunctionDeclaration:function(t){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),d?d.push(t):d=[t]},addInitializationStatement:function(t){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),f?f.push(t):f=[t]},requestEmitHelper:function t(n){if(e.Debug.assert(k>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(k<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!n.scoped,"Cannot request a scoped emit helper."),n.dependencies)for(var r=0,i=n.dependencies;r0,"Cannot modify the transformation context during initialization."),e.Debug.assert(k<2,"Cannot modify the transformation context after transformation has completed.");var t=p;return p=void 0,t},enableSubstitution:function(t){e.Debug.assert(k<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=1},enableEmitNotification:function(t){e.Debug.assert(k<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=2},isSubstitutionEnabled:F,isEmitNotificationEnabled:I,get onSubstituteNode(){return C},set onSubstituteNode(t){e.Debug.assert(k<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),C=t},get onEmitNode(){return S},set onEmitNode(t){e.Debug.assert(k<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),S=t},addDiagnostic:function(e){E.push(e)}},w=0,A=o;w"],e[8192]=["[","]"],e}(),a={pos:-1,end:-1};function o(t,n,r,i,a,o){void 0===i&&(i=!1);var c=e.isArray(r)?r:e.getSourceFilesToEmit(t,r,i),l=t.getCompilerOptions();if(e.outFile(l)){var _=t.getPrependNodes();if(c.length||_.length){var d=e.factory.createBundle(c,_);if(g=n(u(d,t,i),d))return g}}else{if(!a)for(var f=0,p=c;f"),Pt(),ye(e.type),nn(e)}(n);case 304:return function(e){Tt("function"),yt(e,e.parameters),kt(":"),ye(e.type)}(n);case 174:return function(e){tn(e),Tt("new"),Pt(),ht(e,e.typeParameters),yt(e,e.parameters),Pt(),kt("=>"),Pt(),ye(e.type),nn(e)}(n);case 175:return function(e){Tt("typeof"),Pt(),ye(e.exprName)}(n);case 176:return function(t){kt("{");var n=1&e.getEmitFlags(t)?768:32897;bt(t,t.members,524288|n),kt("}")}(n);case 177:return function(e){ye(e.elementType),kt("["),kt("]")}(n);case 178:return function(t){Be(22,t.pos,kt,t);var n=1&e.getEmitFlags(t)?528:657;bt(t,t.elements,524288|n),Be(23,t.elements.end,kt,t)}(n);case 179:return function(e){ye(e.type),kt("?")}(n);case 181:return function(e){bt(e,e.types,516)}(n);case 182:return function(e){bt(e,e.types,520)}(n);case 183:return function(e){ye(e.checkType),Pt(),Tt("extends"),Pt(),ye(e.extendsType),Pt(),kt("?"),Pt(),ye(e.trueType),Pt(),kt(":"),Pt(),ye(e.falseType)}(n);case 184:return function(e){Tt("infer"),Pt(),ye(e.typeParameter)}(n);case 185:return function(e){kt("("),ye(e.type),kt(")")}(n);case 220:return function(e){be(e.expression),mt(e,e.typeArguments)}(n);case 186:return void Tt("this");case 187:return function(e){Bt(e.operator,Tt),Pt(),ye(e.type)}(n);case 188:return function(e){ye(e.objectType),kt("["),ye(e.indexType),kt("]")}(n);case 189:return function(t){var n=e.getEmitFlags(t);kt("{"),1&n?Pt():(Ft(),It()),t.readonlyToken&&(ye(t.readonlyToken),141!==t.readonlyToken.kind&&Tt("readonly"),Pt()),kt("["),De(3,t.typeParameter),kt("]"),t.questionToken&&(ye(t.questionToken),57!==t.questionToken.kind&&kt("?")),kt(":"),Pt(),ye(t.type),Et(),1&n?Pt():(Ft(),Mt()),kt("}")}(n);case 190:return function(e){be(e.literal)}(n);case 192:return function(e){e.isTypeOf&&(Tt("typeof"),Pt()),Tt("import"),kt("("),ye(e.argument),kt(")"),e.qualifier&&(kt("."),ye(e.qualifier)),mt(e,e.typeArguments)}(n);case 299:return void kt("*");case 300:return void kt("?");case 301:return function(e){kt("?"),ye(e.type)}(n);case 302:return function(e){kt("!"),ye(e.type)}(n);case 303:return function(e){ye(e.type),kt("=")}(n);case 180:case 305:return function(e){kt("..."),ye(e.type)}(n);case 191:return function(e){ye(e.dotDotDotToken),ye(e.name),ye(e.questionToken),Be(58,e.name.end,kt,e),Pt(),ye(e.type)}(n);case 193:return function(e){kt("{"),bt(e,e.elements,525136),kt("}")}(n);case 194:return function(e){kt("["),bt(e,e.elements,524880),kt("]")}(n);case 195:return function(e){ye(e.dotDotDotToken),e.propertyName&&(ye(e.propertyName),kt(":"),Pt()),ye(e.name),_t(e.initializer,e.name.end,e)}(n);case 225:return function(e){be(e.expression),ye(e.literal)}(n);case 226:return void Et();case 227:return function(e){Ie(e,!e.multiLine&&Yt(e))}(n);case 229:return function(e){ut(e,e.modifiers),ye(e.declarationList),Et()}(n);case 228:return Me(!1);case 230:return function(t){be(t.expression),(!e.isJsonSourceFile(i)||e.nodeIsSynthesized(t.expression))&&Et()}(n);case 231:return function(e){var t=Be(98,e.pos,Tt,e);Pt(),Be(20,t,kt,e),be(e.expression),Be(21,e.expression.end,kt,e),pt(e,e.thenStatement),e.elseStatement&&(jt(e,e.thenStatement,e.elseStatement),Be(90,e.thenStatement.end,Tt,e),231===e.elseStatement.kind?(Pt(),ye(e.elseStatement)):pt(e,e.elseStatement))}(n);case 232:return function(t){Be(89,t.pos,Tt,t),pt(t,t.statement),e.isBlock(t.statement)&&!R?Pt():jt(t,t.statement,t.expression),Le(t,t.statement.end),Et()}(n);case 233:return function(e){Le(e,e.pos),pt(e,e.statement)}(n);case 234:return function(e){var t=Be(96,e.pos,Tt,e);Pt();var n=Be(20,t,kt,e);Re(e.initializer),n=Be(26,e.initializer?e.initializer.end:n,kt,e),ft(e.condition),n=Be(26,e.condition?e.condition.end:n,kt,e),ft(e.incrementor),Be(21,e.incrementor?e.incrementor.end:n,kt,e),pt(e,e.statement)}(n);case 235:return function(e){var t=Be(96,e.pos,Tt,e);Pt(),Be(20,t,kt,e),Re(e.initializer),Pt(),Be(100,e.initializer.end,Tt,e),Pt(),be(e.expression),Be(21,e.expression.end,kt,e),pt(e,e.statement)}(n);case 236:return function(e){var t=Be(96,e.pos,Tt,e);Pt(),function(e){e&&(ye(e),Pt())}(e.awaitModifier),Be(20,t,kt,e),Re(e.initializer),Pt(),Be(155,e.initializer.end,Tt,e),Pt(),be(e.expression),Be(21,e.expression.end,kt,e),pt(e,e.statement)}(n);case 237:return function(e){Be(85,e.pos,Tt,e),dt(e.label),Et()}(n);case 238:return function(e){Be(80,e.pos,Tt,e),dt(e.label),Et()}(n);case 239:return function(e){Be(104,e.pos,Tt,e),ft(e.expression),Et()}(n);case 240:return function(e){var t=Be(115,e.pos,Tt,e);Pt(),Be(20,t,kt,e),be(e.expression),Be(21,e.expression.end,kt,e),pt(e,e.statement)}(n);case 241:return function(e){var t=Be(106,e.pos,Tt,e);Pt(),Be(20,t,kt,e),be(e.expression),Be(21,e.expression.end,kt,e),Pt(),ye(e.caseBlock)}(n);case 242:return function(e){ye(e.label),Be(58,e.label.end,kt,e),Pt(),ye(e.statement)}(n);case 243:return function(e){Be(108,e.pos,Tt,e),ft(e.expression),Et()}(n);case 244:return function(e){Be(110,e.pos,Tt,e),Pt(),ye(e.tryBlock),e.catchClause&&(jt(e,e.tryBlock,e.catchClause),ye(e.catchClause)),e.finallyBlock&&(jt(e,e.catchClause||e.tryBlock,e.finallyBlock),Be(95,(e.catchClause||e.tryBlock).end,Tt,e),Pt(),ye(e.finallyBlock))}(n);case 245:return function(e){Lt(86,e.pos,Tt),Et()}(n);case 246:return function(e){ye(e.name),ye(e.exclamationToken),lt(e.type),_t(e.initializer,e.type?e.type.end:e.name.end,e)}(n);case 247:return function(t){Tt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),Pt(),bt(t,t.declarations,528)}(n);case 248:return function(e){je(e)}(n);case 249:return function(e){Ke(e)}(n);case 250:return function(e){gt(e,e.decorators),ut(e,e.modifiers),Tt("interface"),Pt(),ye(e.name),ht(e,e.typeParameters),bt(e,e.heritageClauses,512),Pt(),kt("{"),bt(e,e.members,129),kt("}")}(n);case 251:return function(e){gt(e,e.decorators),ut(e,e.modifiers),Tt("type"),Pt(),ye(e.name),ht(e,e.typeParameters),Pt(),kt("="),Pt(),ye(e.type),Et()}(n);case 252:return function(e){ut(e,e.modifiers),Tt("enum"),Pt(),ye(e.name),Pt(),kt("{"),bt(e,e.members,145),kt("}")}(n);case 253:return function(e){ut(e,e.modifiers),1024&~e.flags&&(Tt(16&e.flags?"namespace":"module"),Pt()),ye(e.name);var t=e.body;if(!t)return Et();for(;253===t.kind;)kt("."),ye(t.name),t=t.body;Pt(),ye(t)}(n);case 254:return function(t){tn(t),e.forEach(t.statements,an),Ie(t,Yt(t)),nn(t)}(n);case 255:return function(e){Be(18,e.pos,kt,e),bt(e,e.clauses,129),Be(19,e.clauses.end,kt,e,!0)}(n);case 256:return function(e){var t=Be(92,e.pos,Tt,e);Pt(),t=Be(126,t,Tt,e),Pt(),t=Be(139,t,Tt,e),Pt(),ye(e.name),Et()}(n);case 257:return function(e){ut(e,e.modifiers),Be(99,e.modifiers?e.modifiers.end:e.pos,Tt,e),Pt(),ye(e.name),Pt(),Be(62,e.name.end,kt,e),Pt(),function(e){78===e.kind?be(e):ye(e)}(e.moduleReference),Et()}(n);case 258:return function(e){ut(e,e.modifiers),Be(99,e.modifiers?e.modifiers.end:e.pos,Tt,e),Pt(),e.importClause&&(ye(e.importClause),Pt(),Be(152,e.importClause.end,Tt,e),Pt()),be(e.moduleSpecifier),Et()}(n);case 259:return function(e){e.isTypeOnly&&(Be(148,e.pos,Tt,e),Pt()),ye(e.name),e.name&&e.namedBindings&&(Be(27,e.name.end,kt,e),Pt()),ye(e.namedBindings)}(n);case 260:return function(e){var t=Be(41,e.pos,kt,e);Pt(),Be(126,t,Tt,e),Pt(),ye(e.name)}(n);case 266:return function(e){var t=Be(41,e.pos,kt,e);Pt(),Be(126,t,Tt,e),Pt(),ye(e.name)}(n);case 261:return function(e){He(e)}(n);case 262:return function(e){Ge(e)}(n);case 263:return function(e){var t=Be(92,e.pos,Tt,e);Pt(),e.isExportEquals?Be(62,t,wt,e):Be(87,t,Tt,e),Pt(),be(e.expression),Et()}(n);case 264:return function(e){var t=Be(92,e.pos,Tt,e);Pt(),e.isTypeOnly&&(t=Be(148,t,Tt,e),Pt()),e.exportClause?ye(e.exportClause):t=Be(41,t,kt,e),e.moduleSpecifier&&(Pt(),Be(152,e.exportClause?e.exportClause.end:t,Tt,e),Pt(),be(e.moduleSpecifier)),Et()}(n);case 265:return function(e){He(e)}(n);case 267:return function(e){Ge(e)}(n);case 268:return;case 269:return function(e){Tt("require"),kt("("),be(e.expression),kt(")")}(n);case 11:return function(e){p.writeLiteral(e.text)}(n);case 272:case 275:return function(t){if(kt("<"),e.isJsxOpeningElement(t)){var n=Ht(t.tagName,t);Qe(t.tagName),mt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&Pt(),ye(t.attributes),Gt(t.attributes,t),Jt(n)}kt(">")}(n);case 273:case 276:return function(t){kt("")}(n);case 277:return function(e){ye(e.name),function(e,t,n,r){n&&(t("="),r(n))}(0,kt,e.initializer,xe)}(n);case 278:return function(e){bt(e,e.properties,262656)}(n);case 279:return function(e){kt("{..."),be(e.expression),kt("}")}(n);case 280:return function(e){e.expression&&(kt("{"),ye(e.dotDotDotToken),be(e.expression),kt("}"))}(n);case 281:return function(e){Be(81,e.pos,Tt,e),Pt(),be(e.expression),Xe(e,e.statements,e.expression.end)}(n);case 282:return function(e){var t=Be(87,e.pos,Tt,e);Xe(e,e.statements,t)}(n);case 283:return function(e){Pt(),Bt(e.token,Tt),Pt(),bt(e,e.types,528)}(n);case 284:return function(e){var t=Be(82,e.pos,Tt,e);Pt(),e.variableDeclaration&&(Be(20,t,kt,e),ye(e.variableDeclaration),Be(21,e.variableDeclaration.end,kt,e),Pt()),ye(e.block)}(n);case 285:return function(t){ye(t.name),kt(":"),Pt();var n=t.initializer;En&&0==(512&e.getEmitFlags(n))&&En(e.getCommentRange(n).pos),be(n)}(n);case 286:return function(e){ye(e.name),e.objectAssignmentInitializer&&(Pt(),kt("="),Pt(),be(e.objectAssignmentInitializer))}(n);case 287:return function(e){e.expression&&(Be(25,e.pos,kt,e),be(e.expression))}(n);case 288:return function(e){ye(e.name),_t(e.initializer,e.name.end,e)}(n);case 322:case 328:return $e((r=n).tagName),tt(r.typeExpression),Pt(),r.isBracketed&&kt("["),ye(r.name),r.isBracketed&&kt("]"),void et(r.comment);case 323:case 325:case 324:case 321:return $e((a=n).tagName),tt(a.typeExpression),void et(a.comment);case 312:case 311:return function(e){$e(e.tagName),Pt(),kt("{"),ye(e.class),kt("}"),et(e.comment)}(n);case 326:return function(e){$e(e.tagName),tt(e.constraint),Pt(),bt(e,e.typeParameters,528),et(e.comment)}(n);case 327:return function(e){$e(e.tagName),e.typeExpression&&(298===e.typeExpression.kind?tt(e.typeExpression):(Pt(),kt("{"),B("Object"),e.typeExpression.isArrayType&&(kt("["),kt("]")),kt("}"))),e.fullName&&(Pt(),ye(e.fullName)),et(e.comment),e.typeExpression&&308===e.typeExpression.kind&&Ye(e.typeExpression)}(n);case 320:return function(e){$e(e.tagName),e.name&&(Pt(),ye(e.name)),et(e.comment),Ze(e.typeExpression)}(n);case 309:return Ze(n);case 308:return Ye(n);case 315:case 310:return function(e){$e(e.tagName),et(e.comment)}(n);case 307:return function(e){if(B("/**"),e.comment)for(var t=0,n=e.comment.split(/\r\n?|\n/g);t=1&&!e.isJsonSourceFile(i)?64:0;bt(t,t.properties,526226|a|r),n&&Mt()}(n);case 198:return function(t){var n=e.cast(be(t.expression),e.isExpression),r=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),i=Xt(t,t.expression,r),a=Xt(t,r,t.name);zt(i,!1),28===r.kind||!function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var n=en(t,!0,!1);return!t.numericLiteralFlags&&!e.stringContains(n,e.tokenToString(24))}if(e.isAccessExpression(t)){var r=e.getConstantValue(t);return"number"==typeof r&&isFinite(r)&&Math.floor(r)===r}}(n)||p.hasTrailingComment()||p.hasTrailingWhitespace()||kt("."),t.questionDotToken?ye(r):Be(r.kind,t.expression.end,kt,t),zt(a,!1),ye(t.name),Jt(i,a)}(n);case 199:return function(e){be(e.expression),ye(e.questionDotToken),Be(22,e.expression.end,kt,e),be(e.argumentExpression),Be(23,e.argumentExpression.end,kt,e)}(n);case 200:return function(e){be(e.expression),ye(e.questionDotToken),mt(e,e.typeArguments),xt(e,e.arguments,2576)}(n);case 201:return function(e){Be(102,e.pos,Tt,e),Pt(),be(e.expression),mt(e,e.typeArguments),xt(e,e.arguments,18960)}(n);case 202:return function(e){be(e.tag),mt(e,e.typeArguments),Pt(),be(e.template)}(n);case 203:return function(e){kt("<"),ye(e.type),kt(">"),be(e.expression)}(n);case 204:return function(e){var t=Be(20,e.pos,kt,e),n=Ht(e.expression,e);be(e.expression),Gt(e.expression,e),Jt(n),Be(21,e.expression?e.expression.end:t,kt,e)}(n);case 205:return function(e){sn(e.name),je(e)}(n);case 206:return function(e){gt(e,e.decorators),ut(e,e.modifiers),ze(e,Fe)}(n);case 207:return function(e){Be(88,e.pos,Tt,e),Pt(),be(e.expression)}(n);case 208:return function(e){Be(111,e.pos,Tt,e),Pt(),be(e.expression)}(n);case 209:return function(e){Be(113,e.pos,Tt,e),Pt(),be(e.expression)}(n);case 210:return function(e){Be(130,e.pos,Tt,e),Pt(),be(e.expression)}(n);case 211:return function(e){Bt(e.operator,wt),function(e){var t=e.operand;return 211===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&Pt(),be(e.operand)}(n);case 212:return function(e){be(e.operand),Bt(e.operator,wt)}(n);case 213:return function(t){for(var n=[t],r=[0],i=0;i>=0;)switch(t=n[i],r[i]){case 0:c(t.left);break;case 1:var a=27!==t.operatorToken.kind,o=Xt(t,t.left,t.operatorToken),s=Xt(t,t.operatorToken,t.right);zt(o,a),Sn(t.operatorToken.pos),Rt(t.operatorToken,100===t.operatorToken.kind?Tt:wt),En(t.operatorToken.end,!0),zt(s,!0),c(t.right);break;case 2:Jt(o=Xt(t,t.left,t.operatorToken),s=Xt(t,t.operatorToken,t.right)),i--;break;default:return e.Debug.fail("Invalid state "+r[i]+" for emitBinaryExpressionWorker")}function c(t){r[i]++;var a=x,o=D;x=t,D=void 0;var s=Ce(0,1,t);s===Ee&&e.isBinaryExpression(t)?(i++,r[i]=0,n[i]=t):s(1,t),e.Debug.assert(x===t),x=a,D=o}}(n);case 214:return function(e){var t=Xt(e,e.condition,e.questionToken),n=Xt(e,e.questionToken,e.whenTrue),r=Xt(e,e.whenTrue,e.colonToken),i=Xt(e,e.colonToken,e.whenFalse);be(e.condition),zt(t,!0),ye(e.questionToken),zt(n,!0),be(e.whenTrue),Jt(t,n),zt(r,!0),ye(e.colonToken),zt(i,!0),be(e.whenFalse),Jt(r,i)}(n);case 215:return function(e){ye(e.head),bt(e,e.templateSpans,262144)}(n);case 216:return function(e){Be(124,e.pos,Tt,e),ye(e.asteriskToken),ft(e.expression)}(n);case 217:return function(e){Be(25,e.pos,kt,e),be(e.expression)}(n);case 218:return function(e){sn(e.name),Ke(e)}(n);case 219:return;case 221:return function(e){be(e.expression),e.type&&(Pt(),Tt("as"),Pt(),ye(e.type))}(n);case 222:return function(e){be(e.expression),wt("!")}(n);case 223:return function(e){Lt(e.keywordToken,e.pos,kt),kt("."),ye(e.name)}(n);case 270:return function(e){ye(e.openingElement),bt(e,e.children,262144),ye(e.closingElement)}(n);case 271:return function(e){kt("<"),Qe(e.tagName),mt(e,e.typeArguments),Pt(),ye(e.attributes),kt("/>")}(n);case 274:return function(e){ye(e.openingFragment),bt(e,e.children,262144),ye(e.closingFragment)}(n);case 331:return function(e){be(e.expression)}(n);case 332:return function(e){xt(e,e.elements,528)}(n)}}function Te(t,n){e.Debug.assert(x===n||D===n),Se(1,t,n)(t,D),e.Debug.assert(x===n||D===n)}function we(n){var r=!1,a=295===n.kind?n:void 0;if(!a||M!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c0)return!1;n=o}return!0}(t)?We:qe;vn?vn(t,t.statements,n):n(t),Mt(),Lt(19,t.statements.end,kt,t)}function We(e){qe(e,!0)}function qe(e,t){var n=it(e.statements),r=p.getTextPos();we(e),0===n&&r===p.getTextPos()&&t?(Mt(),bt(e,e.statements,768),It()):bt(e,e.statements,1,n)}function Ke(t){e.forEach(t.members,on),gt(t,t.decorators),ut(t,t.modifiers),Tt("class"),t.name&&(Pt(),ve(t.name));var n=65536&e.getEmitFlags(t);n&&It(),ht(t,t.typeParameters),bt(t,t.heritageClauses,0),Pt(),kt("{"),bt(t,t.members,129),kt("}"),n&&Mt()}function He(e){kt("{"),bt(e,e.elements,525136),kt("}")}function Ge(e){e.propertyName&&(ye(e.propertyName),Pt(),Be(126,e.propertyName.end,Tt,e),Pt()),ye(e.name)}function Qe(e){78===e.kind?be(e):ye(e)}function Xe(t,n,r){var a=163969;1===n.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n[0])||e.rangeStartPositionsAreOnSameLine(t,n[0],i))?(Lt(58,r,kt,t),Pt(),a&=-130):Be(58,r,kt,t),bt(t,n,a)}function Ye(t){bt(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function Ze(t){t.typeParameters&&bt(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&bt(t,e.factory.createNodeArray(t.parameters),33),t.type&&(Ft(),Pt(),kt("*"),Pt(),ye(t.type))}function $e(e){kt("@"),ye(e)}function et(e){e&&(Pt(),B(e))}function tt(e){e&&(Pt(),kt("{"),ye(e.type),kt("}"))}function nt(e,t,n,r){if(e){var a=p.getTextPos();Nt('/// '),j&&j.sections.push({pos:a,end:p.getTextPos(),kind:"no-default-lib"}),Ft()}if(i&&i.moduleName&&(Nt('/// '),Ft()),i&&i.amdDependencies)for(var o=0,s=i.amdDependencies;o':'/// '),Ft()}for(var u=0,l=t;u'),j&&j.sections.push({pos:a,end:p.getTextPos(),kind:"reference",data:_.fileName}),Ft()}for(var d=0,f=n;d'),j&&j.sections.push({pos:a,end:p.getTextPos(),kind:"type",data:_.fileName}),Ft();for(var g=0,m=r;g'),j&&j.sections.push({pos:a,end:p.getTextPos(),kind:"lib",data:_.fileName}),Ft()}function rt(t){var n=t.statements;tn(t),e.forEach(t.statements,an),we(t);var r=e.findIndex(n,function(t){return!e.isPrologueDirective(t)});!function(e){e.isDeclarationFile&&nt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),bt(t,n,1,-1===r?n.length:r),nn(t)}function it(t,n,r,i){for(var a=!!n,o=0;o=a.length||0===c;if(l&&32768&o)return A&&A(a),void(N&&N(a));if(15360&o&&(kt(function(e){return r[15360&e][0]}(o)),l&&!u&&En(a.pos,!0)),A&&A(a),l)!(1&o)||R&&e.rangeIsOnSingleLine(n,i)?256&o&&!(524288&o)&&Pt():Ft();else{var _=0==(262144&o),d=_,p=Vt(n,a,o);p?(Ft(p),d=!1):256&o&&Pt(),128&o&&It();for(var g=void 0,m=void 0,h=!1,y=0;y0?(0==(131&o)&&(It(),h=!0),Ft(b),d=!1):g&&512&o&&Pt()}m=oe(v),d?En&&En(e.getCommentRange(v).pos):d=_,f=v.pos,t(v),h&&(Mt(),h=!1),g=v}16&o&&64&o&&a.hasTrailingComma&&kt(","),g&&60&o&&g.end!==n.end&&!(1024&e.getEmitFlags(g))&&Sn(g.end),128&o&&Mt(),se(m);var x=qt(n,a,o);x?Ft(x):2097408&o&&Pt()}N&&N(a),15360&o&&(l&&!u&&Sn(a.end),kt(function(e){return r[15360&e][1]}(o)))}}function St(e,t){p.writeSymbol(e,t)}function kt(e){p.writePunctuation(e)}function Et(){p.writeTrailingSemicolon(";")}function Tt(e){p.writeKeyword(e)}function wt(e){p.writeOperator(e)}function At(e){p.writeParameter(e)}function Nt(e){p.writeComment(e)}function Pt(){p.writeSpace(" ")}function Ot(e){p.writeProperty(e)}function Ft(e){void 0===e&&(e=1);for(var t=0;t0)}function It(){p.increaseIndent()}function Mt(){p.decreaseIndent()}function Lt(t,n,r,i){return W?Bt(t,r,n):function(t,n,r,i,a){if(W||t&&e.isInJsonFile(t))return a(n,r,i);var o=t&&t.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[n],u=c&&c.source||y;return i=On(u,c?c.pos:i),0==(128&s)&&i>=0&&In(u,i),i=a(n,r,i),c&&(i=c.end),0==(256&s)&&i>=0&&In(u,i),i}(i,t,r,n,Bt)}function Rt(t,n){P&&P(t),n(e.tokenToString(t.kind)),O&&O(t)}function Bt(t,n,r){var i=e.tokenToString(t);return n(i),r<0?r:r+i.length}function jt(t,n,r){if(1&e.getEmitFlags(t))Pt();else if(R){var i=Xt(t,n,r);i?Ft(i):Pt()}else Ft()}function Ut(t){for(var n=t.split(/\r\n?|\n/g),r=e.guessIndentation(n),i=0,a=n;i0||o>0)&&a!==o&&(c||bn(a,s),(!c||a>=0&&0!=(512&r))&&(K=a),(!u||o>=0&&0!=(1024&r))&&(H=o,247===n.kind&&(G=o))),e.forEach(e.getSyntheticLeadingComments(n),mn),$();var f=Se(2,t,n);2048&r?(X=!0,f(t,n),X=!1):f(t,n),Z(),e.forEach(e.getSyntheticTrailingComments(n),hn),(a>0||o>0)&&a!==o&&(K=l,H=_,G=d,!u&&s&&function(e){An(e,kn)}(o)),$(),e.Debug.assert(x===n||D===n)}function mn(e){(e.hasLeadingNewline||2===e.kind)&&p.writeLine(),yn(e),e.hasTrailingNewLine||2===e.kind?p.writeLine():p.writeSpace(" ")}function hn(e){p.isAtStartOfLine()||p.writeSpace(" "),yn(e),e.hasTrailingNewLine&&p.writeLine()}function yn(t){var n=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(t),r=3===t.kind?e.computeLineStarts(n):void 0;e.writeCommentRange(n,r,p,0,n.length,I)}function vn(t,n,r){Z();var a,o,s=n.pos,c=n.end,u=e.getEmitFlags(t),l=X||c<0||0!=(1024&u);s<0||0!=(512&u)||(a=n,(o=e.emitDetachedComments(i.text,he(),p,Nn,a,I,X))&&(b?b.push(o):b=[o])),$(),2048&u&&!X?(X=!0,r(t),X=!1):r(t),Z(),l||(bn(n.end,!0),Q&&!p.isAtStartOfLine()&&p.writeLine()),$()}function bn(e,t){Q=!1,t?wn(e,Cn):0===e&&wn(e,xn)}function xn(t,n,r,a,o){(function(t,n){return e.isRecognizedTripleSlashComment(i.text,t,n)})(t,n)&&Cn(t,n,r,a,o)}function Dn(n,r){return!t.onlyPrintJsDocStyle||e.isJSDocLikeText(n,r)||e.isPinnedComment(n,r)}function Cn(t,n,r,a,o){Dn(i.text,t)&&(Q||(e.emitNewLineBeforeLeadingCommentOfPosition(he(),p,o,t),Q=!0),Fn(t),e.writeCommentRange(i.text,he(),p,t,n,I),Fn(n),a?p.writeLine():3===r&&p.writeSpace(" "))}function Sn(e){X||-1===e||bn(e,!0)}function kn(t,n,r,a){Dn(i.text,t)&&(p.isAtStartOfLine()||p.writeSpace(" "),Fn(t),e.writeCommentRange(i.text,he(),p,t,n,I),Fn(n),a&&p.writeLine())}function En(e,t){X||(Z(),An(e,t?kn:Tn),$())}function Tn(t,n,r,a){Fn(t),e.writeCommentRange(i.text,he(),p,t,n,I),Fn(n),a?p.writeLine():p.writeSpace(" ")}function wn(t,n){!i||-1!==K&&t===K||(function(t){return void 0!==b&&e.last(b).nodePos===t}(t)?function(t){var n=e.last(b).detachedCommentEndPos;b.length-1?b.pop():b=void 0,e.forEachLeadingCommentRange(i.text,n,t,n)}(n):e.forEachLeadingCommentRange(i.text,t,n,t))}function An(t,n){i&&(-1===H||t!==H&&t!==G)&&e.forEachTrailingCommentRange(i.text,t,n)}function Nn(t,n,r,a,o,s){Dn(i.text,a)&&(Fn(a),e.writeCommentRange(t,n,r,a,o,s),Fn(o))}function Pn(t,n){e.Debug.assert(x===n||D===n);var r=Se(3,t,n);if(e.isUnparsedSource(n)||e.isUnparsedPrepend(n))r(t,n);else if(e.isUnparsedNode(n)){var i=function(t){return void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0}(n.parent);i&&h&&h.appendSourceMap(p.getLine(),p.getColumn(),i,n.parent.sourceMapPath,n.parent.getLineAndCharacterOfPosition(n.pos),n.parent.getLineAndCharacterOfPosition(n.end)),r(t,n)}else{var a=e.getSourceMapRange(n),o=a.pos,s=a.end,c=a.source,u=void 0===c?y:c,l=e.getEmitFlags(n);330!==n.kind&&0==(16&l)&&o>=0&&In(u,On(u,o)),64&l?(W=!0,r(t,n),W=!1):r(t,n),330!==n.kind&&0==(32&l)&&s>=0&&In(u,s)}e.Debug.assert(x===n||D===n)}function On(t,n){return t.skipTrivia?t.skipTrivia(n):e.skipTrivia(t.text,n)}function Fn(t){if(!(W||e.positionIsSynthesized(t)||Ln(y))){var n=e.getLineAndCharacterOfPosition(y,t),r=n.line,i=n.character;h.addMapping(p.getLine(),p.getColumn(),q,r,i,void 0)}}function In(e,t){if(e!==y){var n=y;Mn(e),Fn(t),Mn(n)}else Fn(t)}function Mn(e){W||(y=e,Ln(e)||(q=h.addSource(e.fileName),t.inlineSources&&h.setSourceContent(q,e.text)))}function Ln(t){return e.fileExtensionIs(t.fileName,".json")}}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=o,e.getTsBuildInfoEmitOutputFilePath=s,e.getOutputPathsForBundle=c,e.getOutputPathsFor=u,e.getOutputExtension=_,e.getOutputDeclarationFileName=f,e.getAllProjectOutputs=function(t,n){var r=g(),i=r.addOutput,a=r.getOutputs;if(e.outFile(t.options))m(t,i);else{for(var o=0,c=t.fileNames;o=4,m=(d+1+"").length;g&&(m=Math.max("...".length,m));for(var h="",y=c;y<=d;y++){h+=o.getNewLine(),g&&c+11})&&Qt(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(P.useDefineForClassFields&&0===d&&Qt(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),P.checkJs&&!P.allowJs&&$.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),P.emitDeclarationOnly&&(e.getEmitDeclarations(P)||Qt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),P.noEmit&&Qt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),P.emitDecoratorMetadata&&!P.experimentalDecorators&&Qt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),P.jsxFactory?(P.reactNamespace&&Qt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(P.jsxFactory,d)||Xt("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFactory)):P.reactNamespace&&!e.isIdentifierText(P.reactNamespace,d)&&Xt("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,P.reactNamespace),P.jsxFragmentFactory&&(P.jsxFactory||Qt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),e.parseIsolatedEntityName(P.jsxFragmentFactory,d)||Xt("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFragmentFactory)),!P.noEmit&&!P.suppressOutputPathCheck){var h=Qe(),y=new e.Set;e.forEachEmittedFile(h,function(e){P.emitDeclarationOnly||v(e.jsFilePath,y),v(e.declarationFilePath,y)})}function v(t,n){if(t){var r=Ke(t);if(me.has(r)){var i=void 0;P.configFilePath||(i=e.chainDiagnosticMessages(void 0,e.Diagnostics.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)),i=e.chainDiagnosticMessages(i,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),tn(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=G.useCaseSensitiveFileNames()?r:e.toFileNameLowerCase(r);n.has(a)?tn(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):n.add(a)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),Je;function Ve(t,n,r,i){e.performance.mark("beforeResolveModule");var a=K(t,n,r,i);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),a}function We(t,n,r){e.performance.mark("beforeResolveTypeReference");var i=H(t,n,r);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),i}function qe(t){if(e.containsPath(Z,t.fileName,!1)){var n=e.getBaseFileName(t.fileName);if("lib.d.ts"===n||"lib.es6.d.ts"===n)return 0;var r=e.removeSuffix(e.removePrefix(n,"lib."),".d.ts"),i=e.libs.indexOf(r);if(-1!==i)return i+1}return e.libs.length+2}function Ke(t){return e.toPath(t,ee,Ut)}function He(){if(void 0===S){var t=e.filter(D,function(t){return e.sourceFileMayBeEmitted(t,Je)});P.rootDir&&Jt(t,P.rootDir)?S=e.getNormalizedAbsolutePath(P.rootDir,ee):P.composite&&P.configFilePath?Jt(t,S=e.getDirectoryPath(e.normalizeSlashes(P.configFilePath))):S=n(e.mapDefined(t,function(e){return e.isDeclarationFile?void 0:e.fileName}),ee,Ut),S&&S[S.length-1]!==e.directorySeparator&&(S+=e.directorySeparator)}return S}function Ge(t,n,r){if(0===de&&!r.ambientModuleNames.length)return Ve(t,n,void 0,At(r.originalFileName));var i,a,o,s=I&&I.getSourceFile(n);if(s!==r&&r.resolvedModules){for(var c=[],u=0,l=t;u=0;){if(n.markUsed(o))return o;var s=r.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(t,i)}),directives:i}}function dt(e,t){return pt(e,t,R,ft)}function ft(t,n){return st(function(){var r=$e().getEmitResolver(t,n);return e.getDeclarationDiagnostics(Qe(e.noop),r,t)||e.emptyArray})}function pt(t,n,r,i){var a,o=t?null===(a=r.perFile)||void 0===a?void 0:a.get(t.path):r.allDiagnostics;if(o)return o;var s=i(t,n);return t?(r.perFile||(r.perFile=new e.Map)).set(t.path,s):r.allDiagnostics=s,s}function gt(e,t){return e.isDeclarationFile?[]:dt(e,t)}function mt(t,n,r){xt(e.normalizePath(t),n,r,void 0)}function ht(e,t){return e.fileName===t.fileName}function yt(e,t){return 78===e.kind?78===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function vt(t){if(!t.imports){var n,r,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if(P.importHelpers&&(P.isolatedModules||o)&&!t.isDeclarationFile){var s=e.factory.createStringLiteral(e.externalHelpersModuleNameText),c=e.factory.createImportDeclaration(void 0,void 0,void 0,s);e.addEmitFlags(c,67108864),e.setParent(s,c),e.setParent(c,t),n=[s]}for(var u=0,l=t.statements;u0),Object.defineProperties(o,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(v,h,t,n,Ke(t),_);return ge.add(v.path,t),kt(b,n,l),pe.set(n,o.name),x.push(b),b}h&&(fe.set(y,h),pe.set(n,o.name))}if(kt(h,n,l),h){if(V.set(n,z>0),h.fileName=t,h.path=n,h.resolvedPath=Ke(t),h.originalFileName=_,St(t,h,a),G.useCaseSensitiveFileNames()){var D=e.toFileNameLowerCase(n),C=he.get(D);C?Dt(t,C,a):he.set(D,h)}X=X||h.hasNoDefaultLib&&!i,P.noResolve||(Mt(h,r),Lt(h)),P.noLib||Bt(h),zt(h),r?d.push(h):x.push(h)}return h}function St(t,n,r){r&&n&&(w||(w=e.createMultiMap())).add(n.path,{referencedFileName:t,kind:r.kind,index:r.index,file:r.file.path})}function kt(e,t,n){n?(me.set(n,e),me.set(t,e||!1)):me.set(t,e)}function Et(e){var t=Tt(e);return t&&wt(t,e)}function Tt(t){if(ce&&ce.length&&!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json"))return At(t)}function wt(t,n){var r=e.outFile(t.commandLine.options);return r?e.changeExtension(r,".d.ts"):e.getOutputDeclarationFileName(n,t.commandLine,!G.useCaseSensitiveFileNames())}function At(t){void 0===le&&(le=new e.Map,Nt(function(e,t){e&&Ke(P.configFilePath)!==t&&e.commandLine.fileNames.forEach(function(e){return le.set(Ke(e),t)})}));var n=le.get(Ke(t));return n&&It(n)}function Nt(e){return Ft(F,ce,function(t,n,r){var i=Ke(y((r?r.commandLine.projectReferences:F)[n]));return e(t,i)})}function Pt(t){if(e.isDeclarationFileName(t))return void 0===_e&&(_e=new e.Map,Nt(function(t){if(t){var n=e.outFile(t.commandLine.options);if(n){var r=e.changeExtension(n,".d.ts");_e.set(Ke(r),!0)}else e.forEach(t.commandLine.fileNames,function(n){if(!e.fileExtensionIs(n,".d.ts")&&!e.fileExtensionIs(n,".json")){var r=e.getOutputDeclarationFileName(n,t.commandLine,G.useCaseSensitiveFileNames());_e.set(Ke(r),n)}})}})),_e.get(Ke(t))}function Ot(e){return ye&&!!At(e)}function Ft(t,n,r,i){var a;return function t(n,r,i,o,s){if(s){var c=s(n,i);if(c)return c}return e.forEach(r,function(n,r){if(!e.contains(a,n)){var c=o(n,r,i);if(c)return c;if(n)return(a||(a=[])).push(n),t(n.commandLine.projectReferences,n.references,n,o,s)}})}(t,n,void 0,r,i)}function It(e){if(ue)return ue.get(e)||void 0}function Mt(n,r){e.forEach(n.referencedFiles,function(i,a){xt(t(i.fileName,n.fileName),r,!1,void 0,{kind:e.RefFileKind.ReferenceFile,index:a,file:n,pos:i.pos,end:i.end})})}function Lt(t){var n=e.map(t.typeReferenceDirectives,function(t){return e.toFileNameLowerCase(t.fileName)});if(n)for(var r=We(n,t.originalFileName,At(t.originalFileName)),i=0;iU,l=c&&!v(P,a)&&!P.noResolve&&in&&($.add(e.createDiagnosticForNodeInSourceFile(P.configFile,f.elements[n],r,i,a,o)),s=!1)}}s&&$.add(e.createCompilerDiagnostic(r,i,a,o))}function Ht(t,n,r,i){for(var a=!0,o=0,s=Gt();on?e.createDiagnosticForNodeInSourceFile(t||P.configFile,o.elements[n],r,i,a):e.createCompilerDiagnostic(r,i,a))}function Zt(t,n,r,i,a,o,s){var c=$t();(!c||!en(c,t,n,r,i,a,o,s))&&$.add(e.createCompilerDiagnostic(i,a,o,s))}function $t(){if(void 0===W){W=null;var t=e.getTsConfigObjectLiteralExpression(P.configFile);if(t)for(var n=0,r=e.getPropertyAssignment(t,"compilerOptions");n0)for(var s=t.getTypeChecker(),c=0,u=n.imports;c0)for(var d=0,f=n.referencedFiles;d1&&x(b)}return o;function x(t){for(var r=0,i=t.declarations;r1?p.outputFiles[1]:void 0:p.outputFiles.length>0?p.outputFiles[0]:void 0;g?(e.Debug.assert(e.fileExtensionIs(g.name,".d.ts"),"File extension for signature expected to be dts",function(){return"Found: "+e.getAnyExtensionFromPath(g.name)+" for "+g.name+":: All output files: "+JSON.stringify(p.outputFiles.map(function(e){return e.name}))}),_=c(g.text),u&&_!==d&&function(t,n,i){var a;n?(n.forEach(function(t){var n;(n=r(t))&&(a||(a=new e.Set),a.add(n))}),i.set(t.resolvedPath,a||!1)):i.set(t.resolvedPath,!1)}(a,p.exportedModulesFromDeclarationEmit,u)):_=d}return o.set(a.resolvedPath,_),!d||_!==d}function _(t,n){if(!t.allFileNames){var r=n.getSourceFiles();t.allFileNames=r===e.emptyArray?e.emptyArray:r.map(function(e){return e.fileName})}return t.allFileNames}function d(t,n){return e.arrayFrom(e.mapDefinedIterator(t.referencedMap.entries(),function(e){var t=e[0];return e[1].has(n)?t:void 0}))}function f(t){return function(t){return e.some(t.moduleAugmentations,function(t){return e.isGlobalScopeAugmentation(t.parent)})}(t)||!e.isExternalModule(t)&&!function(t){for(var n=0,r=t.statements;n0;){var g=_.pop();if(!u.has(g)){var m=n.getSourceFileByPath(g);u.set(g,m),m&&l(t,n,m,i,a,o,s)&&_.push.apply(_,d(t,m.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(u.values(),function(e){return e}))}n.canReuseOldState=s,n.create=function(t,n,r){var i=new e.Map,a=t.getCompilerOptions().module!==e.ModuleKind.None?new e.Map:void 0,c=a?new e.Map:void 0,u=new e.Set,l=s(a,r);t.getTypeChecker();for(var _=0,d=t.getSourceFiles();_0;){var o=a.pop();if(!i.has(o)&&(i.set(o,!0),r(t,o)&&u(t,o))){var s=e.Debug.checkDefined(t.program).getSourceFileByPath(o);a.push.apply(a,e.BuilderState.getReferencedByPaths(t,s.resolvedPath))}}}e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);var c=new e.Set;e.forEachEntry(t.currentAffectedFilesExportedModulesMap,function(e,i){return e&&e.has(n.resolvedPath)&&l(t,i,c,r)})||e.forEachEntry(t.exportedModulesMap,function(e,i){return!t.currentAffectedFilesExportedModulesMap.has(i)&&e.has(n.resolvedPath)&&l(t,i,c,r)})}}(t,n,function(t,n){return function(t,n,r,i){if(c(t,n),!t.changedFilesSet.has(n)){var a=e.Debug.checkDefined(t.program),o=a.getSourceFileByPath(n);o&&(e.BuilderState.updateShapeSignature(t,a,o,e.Debug.checkDefined(t.currentAffectedFilesSignatures),r,i,t.currentAffectedFilesExportedModulesMap),e.getEmitDeclarations(t.compilerOptions)&&b(t,n,0))}return!1}(t,n,r,i)});else if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;var a=e.Debug.checkDefined(t.program),o=a.getCompilerOptions();e.forEach(a.getSourceFiles(),function(n){return a.isSourceFileDefaultLibrary(n)&&!e.skipTypeChecking(n,o,a)&&c(t,n.resolvedPath)})}}function c(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function u(t,n){return e.Debug.checkDefined(t.currentAffectedFilesSignatures).get(n)!==e.Debug.checkDefined(t.fileInfos.get(n)).signature}function l(t,n,r,i){return e.forEachEntry(t.referencedMap,function(e,a){return e.has(n)&&_(t,a,r,i)})}function _(t,n,r,i){return!(!e.tryAddToSet(r,n)||!i(t,n)&&(e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap),!e.forEachEntry(t.currentAffectedFilesExportedModulesMap,function(e,a){return e&&e.has(n)&&_(t,a,r,i)})&&!e.forEachEntry(t.exportedModulesMap,function(e,a){return!t.currentAffectedFilesExportedModulesMap.has(a)&&e.has(n)&&_(t,a,r,i)})&&!e.forEachEntry(t.referencedMap,function(e,a){return e.has(n)&&!r.has(a)&&i(t,a)})))}function d(t,n,r,i,a){a?t.buildInfoEmitPending=!1:n===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(n.resolvedPath),void 0!==r&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(n.resolvedPath,r),i?(t.affectedFilesPendingEmitIndex++,t.buildInfoEmitPending=!0):t.affectedFilesIndex++)}function f(e,t,n){return d(e,n),{result:t,affected:n}}function p(e,t,n,r,i,a){return d(e,n,r,i,a),{result:t,affected:n}}function g(t,n,r){return e.concatenate(function(t,n,r){var i=n.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnotics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(n,r);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o),e.filterSemanticDiagnotics(o,t.compilerOptions)}(t,n,r),e.Debug.checkDefined(t.program).getProgramDiagnostics(n))}function m(t,n){var r={},i=e.getOptionsNameMap().optionsNameMap;for(var a in t)e.hasProperty(t,a)&&(r[a]=h(i.get(a.toLowerCase()),t[a],n));return r.configFilePath&&(r.configFilePath=n(r.configFilePath)),r}function h(e,t,n){if(e)if("list"===e.type){if(e.element.isFilePath&&t.length)return t.map(n)}else if(e.isFilePath)return n(t);return t}function y(t,n){return e.Debug.assert(!!t.length),t.map(function(t){var r=v(t,n);r.reportsUnnecessary=t.reportsUnnecessary,r.reportDeprecated=t.reportsDeprecated,r.source=t.source,r.skippedOn=t.skippedOn;var i=t.relatedInformation;return r.relatedInformation=i?i.length?i.map(function(e){return v(e,n)}):e.emptyArray:void 0,r})}function v(e,t){var n=e.file;return a(a({},e),{file:n?t(n.resolvedPath):void 0})}function b(t,n,r){t.affectedFilesPendingEmit||(t.affectedFilesPendingEmit=[]),t.affectedFilesPendingEmitKind||(t.affectedFilesPendingEmitKind=new e.Map);var i=t.affectedFilesPendingEmitKind.get(n);t.affectedFilesPendingEmit.push(n),t.affectedFilesPendingEmitKind.set(n,i||r),void 0===t.affectedFilesPendingEmitIndex&&(t.affectedFilesPendingEmitIndex=0)}function x(t,n){if(t){var r=new e.Map;for(var i in t)e.hasProperty(t,i)&&r.set(n(i),new e.Set(t[i].map(n)));return r}}function D(t,n){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:r,getProgramOrUndefined:function(){return t.program},releaseProgram:function(){return t.program=void 0},getCompilerOptions:function(){return t.compilerOptions},getSourceFile:function(e){return r().getSourceFile(e)},getSourceFiles:function(){return r().getSourceFiles()},getOptionsDiagnostics:function(e){return r().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return r().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return n},getSyntacticDiagnostics:function(e,t){return r().getSyntacticDiagnostics(e,t)},getDeclarationDiagnostics:function(e,t){return r().getDeclarationDiagnostics(e,t)},getSemanticDiagnostics:function(e,t){return r().getSemanticDiagnostics(e,t)},emit:function(e,t,n,i,a){return r().emit(e,t,n,i,a)},emitBuildInfo:function(e,t){return r().emitBuildInfo(e,t)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return r().getCurrentDirectory()},close:e.noop};function r(){return e.Debug.checkDefined(t.program)}}(n=e.BuilderFileEmit||(e.BuilderFileEmit={}))[n.DtsOnly=0]="DtsOnly",n[n.Full=1]="Full",function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(t=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(t,n,r,i,a,o){var s,c,u;return void 0===t?(e.Debug.assert(void 0===n),s=r,e.Debug.assert(!!(u=i)),c=u.getProgram()):e.isArray(t)?(c=e.createProgram({rootNames:t,options:n,host:r,oldProgram:(u=i)&&u.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=r):(c=t,s=n,u=r,a=i),{host:s,newProgram:c,oldProgram:u,configFileParsingDiagnostics:a||e.emptyArray}},e.createBuilderProgram=function(n,a){var s=a.newProgram,c=a.host,u=a.oldProgram,l=a.configFileParsingDiagnostics,_=u&&u.getState();if(_&&s===_.program&&l===s.getConfigFileParsingDiagnostics())return s=void 0,_=void 0,u;var h,v=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),x=c.createHash||e.generateDjb2Hash,C=function(t,n,i){var a=e.BuilderState.create(t,n,i);a.program=t;var o=t.getCompilerOptions();a.compilerOptions=o,e.outFile(o)||(a.semanticDiagnosticsPerFile=new e.Map),a.changedFilesSet=new e.Set;var s=e.BuilderState.canReuseOldState(a.referencedMap,i),c=s?i.compilerOptions:void 0,u=s&&i.semanticDiagnosticsPerFile&&!!a.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(o,c);if(s){if(!i.currentChangedFilePath){var l=i.currentAffectedFilesSignatures;e.Debug.assert(!(i.affectedFiles||l&&l.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var _=i.changedFilesSet;u&&e.Debug.assert(!_||!e.forEachKey(_,function(e){return i.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),null==_||_.forEach(function(e){return a.changedFilesSet.add(e)}),!e.outFile(o)&&i.affectedFilesPendingEmit&&(a.affectedFilesPendingEmit=i.affectedFilesPendingEmit.slice(),a.affectedFilesPendingEmitKind=i.affectedFilesPendingEmitKind&&new e.Map(i.affectedFilesPendingEmitKind),a.affectedFilesPendingEmitIndex=i.affectedFilesPendingEmitIndex,a.seenAffectedFiles=new e.Set)}var d=a.referencedMap,f=s?i.referencedMap:void 0,p=u&&!o.skipLibCheck==!c.skipLibCheck,g=p&&!o.skipDefaultLibCheck==!c.skipDefaultLibCheck;return a.fileInfos.forEach(function(o,c){var l,_,m,h;if(!s||!(l=i.fileInfos.get(c))||l.version!==o.version||(m=_=d&&d.get(c))!==(h=f&&f.get(c))&&(void 0===m||void 0===h||m.size!==h.size||e.forEachKey(m,function(e){return!h.has(e)}))||_&&e.forEachKey(_,function(e){return!a.fileInfos.has(e)&&i.fileInfos.has(e)}))a.changedFilesSet.add(c);else if(u){var y=t.getSourceFileByPath(c);if(y.isDeclarationFile&&!p)return;if(y.hasNoDefaultLib&&!g)return;var v=i.semanticDiagnosticsPerFile.get(c);v&&(a.semanticDiagnosticsPerFile.set(c,i.hasReusableDiagnostic?function(t,n,i){if(!t.length)return e.emptyArray;var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(n.getCompilerOptions()),n.getCurrentDirectory()));return t.map(function(t){var i=r(t,n,o);i.reportsUnnecessary=t.reportsUnnecessary,i.reportsDeprecated=t.reportDeprecated,i.source=t.source,i.skippedOn=t.skippedOn;var a=t.relatedInformation;return i.relatedInformation=a?a.length?a.map(function(e){return r(e,n,o)}):e.emptyArray:void 0,i});function o(t){return e.toPath(t,a,i)}}(v,t,n):v),a.semanticDiagnosticsFromOldState||(a.semanticDiagnosticsFromOldState=new e.Set),a.semanticDiagnosticsFromOldState.add(c))}}),s&&e.forEachEntry(i.fileInfos,function(e,t){return e.affectsGlobalScope&&!a.fileInfos.has(t)})?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(a,t,void 0).forEach(function(e){return a.changedFilesSet.add(e.resolvedPath)}):c&&!e.outFile(o)&&e.compilerOptionsAffectEmit(o,c)&&(t.getSourceFiles().forEach(function(e){return b(a,e.resolvedPath,1)}),e.Debug.assert(!a.seenAffectedFiles||!a.seenAffectedFiles.size),a.seenAffectedFiles=a.seenAffectedFiles||new e.Set),a.buildInfoEmitPending=!!a.changedFilesSet.size,a}(s,v,_);s.getProgramBuildInfo=function(){return function(t,n){if(!e.outFile(t.compilerOptions)){var r=e.Debug.checkDefined(t.program).getCurrentDirectory(),i=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),r)),a={};t.fileInfos.forEach(function(e,n){var r=t.currentAffectedFilesSignatures&&t.currentAffectedFilesSignatures.get(n);a[E(n)]=void 0===r?e:{version:e.version,signature:r,affectsGlobalScope:e.affectsGlobalScope}});var o={fileInfos:a,options:m(t.compilerOptions,function(t){return E(e.getNormalizedAbsolutePath(t,r))})};if(t.referencedMap){for(var s={},c=0,u=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive);c1||47!==t.charCodeAt(0);if(a&&0!==t.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-z]\$\//)){if(-1===(r=t.indexOf(e.directorySeparator,r+1)))return!1;i=t.substring(n+i.length,r+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=r+1,s=2;s>0;s--)if(0===(o=t.indexOf(e.directorySeparator,o)+1))return!1;return!0}e.removeIgnoredPath=t,e.canWatchDirectory=n,e.createResolutionCache=function(r,i,a){var o,s,c,u=e.createMultiMap(),l=[],_=e.createMultiMap(),d=!1,f=[],p=[],g=[],m=e.memoize(function(){return r.getCurrentDirectory()}),h=r.getCachedDirectoryStructureHost(),y=new e.Map,v=e.createCacheWithRedirects(),b=e.createCacheWithRedirects(),x=e.createModuleResolutionCacheWithMaps(v,b,m(),r.getCanonicalFileName),D=new e.Map,C=e.createCacheWithRedirects(),S=[".ts",".tsx",".js",".jsx",".json"],k=new e.Map,E=new e.Map,T=i&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(i,m())),w=T&&r.toPath(T),A=void 0!==w?w.split(e.directorySeparator).length:0,N=new e.Map;return{startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:M,finishCachingPerDirectoryResolution:function(){c=void 0,M(),E.forEach(function(e,t){0===e.refCount&&(E.delete(t),e.watcher.close())}),d=!1},resolveModuleNames:function(t,n,r,i){return R({names:t,containingFile:n,redirectedReference:i,cache:y,perDirectoryCacheWithRedirects:v,loader:L,getResolutionWithResolvedFileName:P,shouldRetryResolution:function(t){return!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension)},reusedNames:r,logChanges:a})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){var n=y.get(r.toPath(t));return n&&n.get(e)},resolveTypeReferenceDirectives:function(t,n,r){return R({names:t,containingFile:n,redirectedReference:r,cache:D,perDirectoryCacheWithRedirects:C,loader:e.resolveTypeReferenceDirective,getResolutionWithResolvedFileName:O,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(t){if(e.fileExtensionIs(t,".json")){var n=r.getCurrentProgram();if(n){var i=n.getResolvedProjectReferenceByPath(t);i&&i.commandLine.fileNames.forEach(function(e){return X(r.toPath(e))})}}},removeResolutionsOfFile:X,hasChangedAutomaticTypeDirectiveNames:function(){return d},invalidateResolutionOfFile:function(t){X(t);var n=d;Y(_.get(t),e.returnTrue)&&d&&!n&&r.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:$,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(t){e.Debug.assert(c===t||void 0===c),c=t},createHasInvalidatedResolution:function(t){if($(),t)return s=void 0,e.returnTrue;var n=s;return s=void 0,function(e){return!!n&&n.has(e)||I(e)}},updateTypeRootsWatch:function(){var t=r.getCompilationSettings();if(t.types)te();else{var n=e.getEffectiveTypeRoots(t,{directoryExists:re,getCurrentDirectory:m});n?e.mutateMap(N,e.arrayToMap(n,function(e){return r.toPath(e)}),{createNewValue:ne,onDeleteValue:e.closeFileWatcher}):te()}},closeTypeRootsWatch:te,clear:function(){e.clearMap(E,e.closeFileWatcherOf),k.clear(),u.clear(),te(),y.clear(),D.clear(),_.clear(),l.length=0,f.length=0,p.length=0,g.length=0,M(),d=!1}};function P(e){return e.resolvedModule}function O(e){return e.resolvedTypeReferenceDirective}function F(t,n){return!(void 0===t||n.length<=t.length)&&e.startsWith(n,t)&&n[t.length]===e.directorySeparator}function I(e){if(!c)return!1;var t=c.get(e);return!!t&&!!t.length}function M(){v.clear(),b.clear(),C.clear(),u.forEach(W),u.clear()}function L(t,n,i,a,o){var s,c=e.resolveModuleName(t,n,i,a,x,o);if(!r.getGlobalCache)return c;var u=r.getGlobalCache();if(!(void 0===u||e.isExternalModuleNameRelative(t)||c.resolvedModule&&e.extensionIsTS(c.resolvedModule.extension))){var l=e.loadModuleFromGlobalCache(e.Debug.checkDefined(r.globalCacheResolutionModuleName)(t),r.projectName,i,a,u),_=l.resolvedModule,d=l.failedLookupLocations;if(_)return c.resolvedModule=_,(s=c.failedLookupLocations).push.apply(s,d),c}return c}function R(t){var n,i=t.names,a=t.containingFile,s=t.redirectedReference,c=t.cache,u=t.perDirectoryCacheWithRedirects,l=t.loader,_=t.getResolutionWithResolvedFileName,d=t.shouldRetryResolution,f=t.reusedNames,p=t.logChanges,g=r.toPath(a),m=c.get(g)||c.set(g,new e.Map).get(g),h=e.getDirectoryPath(g),y=u.getOrCreateMapOfCacheRedirects(s),v=y.get(h);v||(v=new e.Map,y.set(h,v));for(var b=[],x=r.getCompilationSettings(),D=p&&I(g),C=r.getCurrentProgram(),S=C&&C.getResolvedProjectReferenceToRedirect(a),k=S?!s||s.sourceFile.path!==S.sourceFile.path:!!s,E=new e.Map,T=0,w=i;TA+1?{dir:i.slice(0,A+1).join(e.directorySeparator),dirPath:r.slice(0,A+1).join(e.directorySeparator)}:{dir:T,dirPath:w,nonRecursive:!1}}return U(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,m())),e.getDirectoryPath(n))}function U(t,r){for(;e.pathContainsNodeModules(r);)t=e.getDirectoryPath(t),r=e.getDirectoryPath(r);if(e.isNodeModulesDirectory(r))return n(e.getDirectoryPath(r))?{dir:t,dirPath:r}:void 0;var i,a,o=!0;if(void 0!==w)for(;!F(r,w);){var s=e.getDirectoryPath(r);if(s===r)break;o=!1,i=r,a=t,r=s,t=e.getDirectoryPath(t)}return n(r)?{dir:a||t,dirPath:i||r,nonRecursive:o}:void 0}function z(t){return e.fileExtensionIsOneOf(t,S)}function J(t,n,i,a){if(n.refCount)n.refCount++,e.Debug.assertDefined(n.files);else{n.refCount=1,e.Debug.assert(0===e.length(n.files)),e.isExternalModuleNameRelative(t)?V(n):u.add(t,n);var o=a(n);o&&o.resolvedFileName&&_.add(r.toPath(o.resolvedFileName),n)}(n.files||(n.files=[])).push(i)}function V(t){e.Debug.assert(!!t.refCount);var n=t.failedLookupLocations;if(n.length){l.push(t);for(var i=!1,a=0,o=n;a1),k.set(d,g-1))),p===w?o=!0:H(p)}}o&&H(w)}}}function H(e){E.get(e).refCount--}function G(e,t,n){return r.watchDirectoryOfFailedLookupLocation(e,function(e){var n=r.toPath(e);h&&h.addOrDeleteFileOrDirectory(e,n),Z(n,t===n)},n?0:1)}function Q(e,t,n){var r=e.get(t);r&&(r.forEach(function(e){return K(e,t,n)}),e.delete(t))}function X(e){Q(y,e,P),Q(D,e,O)}function Y(t,n){if(!t)return!1;for(var r=!1,i=0,a=t;i1&&n.sort(_),u.push.apply(u,n));var i=e.getDirectoryPath(t);if(i===t)return c=t,"break";c=t=i},f=e.getDirectoryPath(e.toPath(t,i,a));0!==o.size;){var p=l(f);if(f=c,"break"===p)break}if(o.size){var g=e.arrayFrom(o.values());g.length>1&&g.sort(_),u.push.apply(u,g)}return u}function p(t,n,r){for(var i in r)for(var a=0,o=r[i];a=u.length+l.length&&e.startsWith(n,u)&&e.endsWith(n,l)||!l&&n===e.removeTrailingDirectorySeparator(u)){var _=n.substr(u.length,n.length-l.length);return i.replace("*",_)}}else if(s===n||s===t)return i}}function g(t,n,r,i,a){var o,s=n.getCanonicalFileName,c=n.sourceDirectory;if(r.fileExists&&r.readFile){var u=function(t){var n,r=0,i=0,a=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(n||(n={}));for(var o=0,s=0,c=0;s>=0;)switch(s=t.indexOf("/",(o=s)+1),c){case 0:t.indexOf(e.nodeModulesPathPart,o)===o&&(r=o,i=s,c=1);break;case 1:case 2:1===c&&"@"===t.charAt(o+1)?c=2:(a=s,c=3);break;case 3:c=t.indexOf(e.nodeModulesPathPart,o)===o?1:3}return c>1?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0}(t);if(u){var l=t;if(!a)for(var _=u.packageRootIndex,d=void 0;;){var f=D(_),g=f.moduleFileToTry,m=f.packageRootPath;if(m){l=m;break}if(d||(d=g),-1===(_=t.indexOf(e.directorySeparator,_+1))){o=void 0,o=e.removeFileExtension(d),l="/index"!==s(o.substring(u.fileNameIndex))||function(t,n){if(t.fileExists)for(var r=0,i=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]);r0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:l.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function f(t,n){return void 0===t&&(t=e.sys),{onWatchStatusChange:n||o(t),watchFile:e.maybeBind(t,t.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function p(t,n){var r=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:e.memoize(function(){return t.getCurrentDirectory()}),getDefaultLibLocation:r,getDefaultLibFileName:function(t){return e.combinePaths(r(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,n){return t.readFile(e,n)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,n,r,i,a){return t.readDirectory(e,n,r,i,a)},realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:function(e){return t.write(e+t.newLine)},createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,n,r){return t.writeFile(e,n,r)},createHash:e.maybeBind(t,t.createHash),createProgram:n||e.createEmitAndSemanticDiagnosticsBuilderProgram}}function g(t,n,r,i){void 0===t&&(t=e.sys);var a=function(e){return t.write(e+t.newLine)},o=p(t,n);return e.copyProperties(o,f(t,i)),o.afterProgramCreate=function(n){var i=n.getCompilerOptions(),s=e.getNewLineCharacter(i,function(){return t.newLine});_(n,r,a,function(t){return o.onWatchStatusChange(e.createCompilerDiagnostic(c(t),t),s,i,t)})},o}function m(t,n,r){n(r),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=n,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=a,e.createWatchStatusReporter=o,e.parseConfigFileWithSystem=function(t,n,r,i,a){var o=i;o.onUnRecoverableConfigFileDiagnostic=function(e){return m(i,a,e)};var s=e.getParsedCommandLineOfConfigFile(t,n,o,void 0,r);return o.onUnRecoverableConfigFileDiagnostic=void 0,s},e.getErrorCountForSummary=s,e.getWatchErrorSummaryDiagnosticMessage=c,e.getErrorSummaryText=u,e.listFiles=l,e.emitFilesAndReportErrors=_,e.emitFilesAndReportErrorsAndGetExitStatus=d,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=f,e.WatchType={ConfigFile:"Config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots"},e.createWatchFactory=function(t,n){var r=t.trace?n.extendedDiagnostics?e.WatchLogLevel.Verbose:n.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=r!==e.WatchLogLevel.None?function(e){return t.trace(e)}:e.noop,a=e.getWatchFactory(r,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=function(t,n,r){void 0===r&&(r=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize(function(){return t.getNewLine()});return{getSourceFile:function(r,i,a){var o;try{e.performance.mark("beforeIORead"),o=t.readFile(r,n().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(s){a&&a(s.message),o=""}return void 0!==o?e.createSourceFile(r,o,i):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:function(n,r,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(n,r,i,function(e,n,r){return t.writeFile(e,n,r)},function(e){return t.createDirectory(e)},function(e){return t.directoryExists(e)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(o){a&&a(o.message)}},getCurrentDirectory:e.memoize(function(){return t.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(n(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(r,r.directoryExists),getDirectories:e.maybeBind(r,r.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory)}},e.setGetSourceFileAsHashVersioned=function(t,n){var r=t.getSourceFile,a=n.createHash||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],o=0;oe?t:e}function u(t){return e.fileExtensionIs(t,".d.ts")}function l(e){return!!e&&!!e.buildOrder}function _(e){return l(e)?e.buildOrder:e}function d(t,n){return function(r){var i=n?"["+e.formatColorAndReset(e.getLocaleTimeString(t),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(t)+" - ";i+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+(t.newLine+t.newLine),t.write(i)}}function f(t,n,r,i){var a=e.createProgramHost(t,n);return a.getModifiedTime=t.getModifiedTime?function(e){return t.getModifiedTime(e)}:e.returnUndefined,a.setModifiedTime=t.setModifiedTime?function(e,n){return t.setModifiedTime(e,n)}:e.noop,a.deleteFile=t.deleteFile?function(e){return t.deleteFile(e)}:e.noop,a.reportDiagnostic=r||e.createDiagnosticReporter(t),a.reportSolutionBuilderStatus=i||d(t),a.now=e.maybeBind(t,t.now),a}function p(t,n){return e.toPath(n,t.currentDirectory,t.getCanonicalFileName)}function g(e,t){var n=e.resolvedConfigFilePaths,r=n.get(t);if(void 0!==r)return r;var i=p(e,t);return n.set(t,i),i}function m(e){return!!e.options}function h(t,n,r){var i,a=t.configFileCache,o=a.get(r);if(o)return m(o)?o:void 0;var s,c=t.parseConfigFileHost,u=t.baseCompilerOptions,l=t.baseWatchOptions,_=t.extendedConfigCache,d=t.host;return d.getParsedCommandLine?(s=d.getParsedCommandLine(n))||(i=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,n)):(c.onUnRecoverableConfigFileDiagnostic=function(e){return i=e},s=e.getParsedCommandLineOfConfigFile(n,u,c,_,l),c.onUnRecoverableConfigFileDiagnostic=e.noop),a.set(r,s||i),s}function y(t,n){return e.resolveConfigFileProjectName(e.resolvePath(t.currentDirectory,n))}function v(t,n){for(var r,i,a=new e.Map,o=new e.Map,s=[],c=0,u=n;c0);var o={sourceFile:r.options.configFile,commandLine:r};i.directoryToModuleNameMap.setOwnMap(i.directoryToModuleNameMap.getOrCreateMapOfCacheRedirects(o)),i.moduleNameToDirectoryMap.setOwnMap(i.moduleNameToDirectoryMap.getOrCreateMapOfCacheRedirects(o))}i.directoryToModuleNameMap.setOwnOptions(r.options),i.moduleNameToDirectoryMap.setOwnOptions(r.options)}}(l,_,m),b=n.createProgram(m.fileNames,m.options,i,function(t,n,r){var i=t.compilerHost;if(!t.options.force)return t.builderPrograms.get(n)||e.readBuilderProgram(r.options,i)}(l,d,m),e.getConfigFileParsingDiagnostics(m),m.projectReferences),l.watch&&l.builderPrograms.set(d,b),C++}function N(e,t,n){var r;e.length?(r=I(l,d,b,m,e,t,n),x=r.buildResult,C=r.step):C++}function P(n){e.Debug.assertIsDefined(b),N(i(b.getConfigFileParsingDiagnostics(),b.getOptionsDiagnostics(n),b.getGlobalDiagnostics(n),b.getSyntacticDiagnostics(void 0,n)),t.SyntaxErrors,"Syntactic")}function M(n){N(e.Debug.checkDefined(b).getSemanticDiagnostics(void 0,n),t.TypeErrors,"Semantic")}function L(n,i,o){var s,_;e.Debug.assertIsDefined(b),e.Debug.assert(C===r.Emit),b.backupState();var f=[],g=e.emitFilesAndReportErrors(b,function(e){return(_||(_=[])).push(e)},void 0,void 0,function(e,t,n){return f.push({name:e,text:t,writeByteOrderMark:n})},i,!1,o).emitResult;if(_)return b.restoreState(),s=I(l,d,b,m,_,t.DeclarationEmitErrors,"Declaration file"),x=s.buildResult,C=s.step,{emitSkipped:!0,diagnostics:g.diagnostics};var h=l.host,y=l.compilerHost,v=t.DeclarationOutputUnchanged,D=a,S=!1,k=e.createDiagnosticCollection(),E=new e.Map;return f.forEach(function(r){var i,a=r.name,o=r.text,s=r.writeByteOrderMark;!S&&u(a)&&(h.fileExists(a)&&l.readFileWithCache(a)===o?i=h.getModifiedTime(a):(v&=~t.DeclarationOutputUnchanged,S=!0)),E.set(p(l,a),a),e.writeFile(n?{writeFile:n}:y,k,a,o,s),void 0!==i&&(D=c(i,D))}),U(k,E,D,S,f.length?f[0].name:e.getFirstProjectOutput(m,!h.useCaseSensitiveFileNames()),v),g}function B(n,a){e.Debug.assertIsDefined(b),e.Debug.assert(C===r.EmitBuildInfo);var o=b.emitBuildInfo(n,a);return o.diagnostics.length&&($(l,o.diagnostics),l.diagnostics.set(d,i(l.diagnostics.get(d),o.diagnostics)),x&=t.EmitErrors),o.emittedFiles&&l.writeFileName&&o.emittedFiles.forEach(function(e){return O(l,m,e)}),F(l,b,m),C=r.QueueReferencingProjects,o}function U(n,i,a,s,c,u){var _,f=n.getDiagnostics();if(f.length)return _=I(l,d,b,m,f,t.EmitErrors,"Emit"),x=_.buildResult,C=_.step,f;l.writeFileName&&i.forEach(function(e){return O(l,m,e)});var p=R(l,m,a,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,i);return l.diagnostics.delete(d),l.projectStatus.set(d,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:s?o:p,oldestOutputFileName:c}),F(l,b,m),C=r.QueueReferencingProjects,x=u,f}function z(i,o){if(e.Debug.assert(s===n.UpdateBundle),l.options.dry)return Y(l,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,_),x=t.Success,void(C=r.QueueReferencingProjects);l.options.verbose&&Y(l,e.Diagnostics.Updating_output_of_project_0,_);var c=l.compilerHost;l.projectCompilerOptions=m.options;var u=e.emitUsingBuildInfo(m,c,function(e){var t=y(l,e.path);return h(l,t,g(l,t))},o);if(e.isString(u))return Y(l,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,_,X(l,u)),C=r.BuildInvalidatedProjectOfBundle,D=A(n.Build,l,_,d,f,m,v);e.Debug.assert(!!u.length);var b=e.createDiagnosticCollection(),S=new e.Map;return u.forEach(function(t){var n=t.name,r=t.text,a=t.writeByteOrderMark;S.set(p(l,n),n),e.writeFile(i?{writeFile:i}:c,b,n,r,a)}),{emitSkipped:!1,diagnostics:U(b,S,a,!1,u[0].name,t.DeclarationOutputUnchanged)}}function J(t,n,i,a){for(;C<=t&&Co)}}}function N(t,n,r){return!(n.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!t.options.force&&0!==r.fileNames.length&&!e.getConfigFileParsingDiagnostics(r).length&&e.isIncrementalCompilation(r.options))}function P(t,r,i){if(t.projectPendingBuild.size&&!l(r)){if(t.currentInvalidatedProject)return e.arrayIsEqualTo(t.currentInvalidatedProject.buildOrder,r)?t.currentInvalidatedProject:void 0;for(var a=t.options,o=t.projectPendingBuild,s=0;ss&&(i=f,s=p)}if(!n.fileNames.length&&!e.canJsonReportNoInputFiles(n.raw))return{type:e.UpToDateStatusType.ContainerOnly};for(var m,y=e.getAllProjectOutputs(n,!l.useCaseSensitiveFileNames()),v="(none)",b=o,x="(none)",D=a,C=a,S=!1,k=0,E=y;kD&&(D=w,x=T),u(T)&&(C=c(C,l.getModifiedTime(T)||e.missingFileModifiedTime))}var A,N=!1,P=!1;if(n.projectReferences){t.projectStatus.set(r,{type:e.UpToDateStatusType.ComputingUpstream});for(var O=0,F=n.projectReferences;O=0},t.findArgument=function(t){var n=e.sys.args.indexOf(t);return n>=0&&n214)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){var n=/^@([^/]+)\/([^/]+)$/.exec(e);if(n){var r=a(n[1],!1);if(0!==r)return{name:n[1],isScopeName:!0,result:r};var i=a(n[2],!1);return 0!==i?{name:n[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function o(t,n,r,i){var a=i?"Scope":"Package";switch(n){case 1:return"'"+t+"':: "+a+" name '"+r+"' cannot be empty";case 2:return"'"+t+"':: "+a+" name '"+r+"' should be less than 214 characters";case 3:return"'"+t+"':: "+a+" name '"+r+"' cannot start with '.'";case 4:return"'"+t+"':: "+a+" name '"+r+"' cannot start with '_'";case 5:return"'"+t+"':: "+a+" name '"+r+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(n)}}t.isTypingUpToDate=n,t.nodeCoreModuleList=["assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","http2","inspector","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"],t.nodeCoreModules=new e.Set(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=r,t.loadSafeList=function(t,n){var r=e.readConfigFile(n,function(e){return t.readFile(e)});return new e.Map(e.getEntries(r.config))},t.loadTypesMap=function(t,n){var r=e.readConfigFile(n,function(e){return t.readFile(e)});if(r.config)return new e.Map(e.getEntries(r.config.simpleMap))},t.discoverTypings=function(t,i,a,o,s,c,u,l,_){if(!u||!u.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var d=new e.Map;a=e.mapDefined(a,function(t){var n=e.normalizePath(t);if(e.hasJSFileExtension(n))return n});var f=[];u.include&&C(u.include,"Explicitly included types");var p=u.exclude||[],g=new e.Set(a.map(e.getDirectoryPath));g.add(o),g.forEach(function(t){S(e.combinePaths(t,"package.json"),f),S(e.combinePaths(t,"bower.json"),f),k(e.combinePaths(t,"bower_components"),f),k(e.combinePaths(t,"node_modules"),f)}),function(t){var n=e.mapDefined(t,function(t){if(e.hasJSFileExtension(t)){var n=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),r=e.removeMinAndVersionNumbers(n);return s.get(r)}});n.length&&C(n,"Inferred typings from file names"),e.some(t,function(t){return e.fileExtensionIs(t,".jsx")})&&(i&&i("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}(a),l&&C(e.deduplicate(l.map(r),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach(function(e,t){var r=_.get(t);d.has(t)&&void 0===d.get(t)&&void 0!==r&&n(e,r)&&d.set(t,e.typingLocation)});for(var m=0,h=p;m=n.end}function b(e,t,n,r){return Math.max(e,n)t)break;var u=c.getEnd();if(tt.end||e.pos===t.end)&&H(e,r)?n(e):void 0})}(n)}function R(t,n,r,i){var a=function a(o){if(B(o)&&1!==o.kind)return o;for(var s=o.getChildren(n),c=0;c=t||!H(u,n)||z(u)){var l=U(s,c,n);return l&&j(l,n)}return a(u)}}e.Debug.assert(void 0!==r||294===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var _=U(s,s.length,n);return _&&j(_,n)}(r||n);return e.Debug.assert(!(a&&z(a))),a}function B(t){return e.isToken(t)&&!z(t)}function j(e,t){if(B(e))return e;var n=e.getChildren(t),r=U(n,n.length,t);return r&&j(r,t)}function U(t,n,r){for(var i=n-1;i>=0;i--)if(z(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(H(t[i],r))return t[i]}function z(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function J(e,t,n){for(var r=e.kind,i=0;;){var a=R(e.getFullStart(),n);if(!a)return;if((e=a).kind===t){if(0===i)return e;i--}else e.kind===r&&i++}}function V(e,t,n){return t?e.getNonNullableType():n?e.getNonOptionalType():e}function W(t,n,r){var i=r.getTypeAtLocation(t);return e.isOptionalChain(t.parent)&&(i=V(i,e.isOptionalChainRoot(t.parent),!0)),(e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(function(e){return!!e.typeParameters&&e.typeParameters.length>=n})}function q(t,n){for(var r=t,i=0,a=0;r;){switch(r.kind){case 29:if((r=R(r.getFullStart(),n))&&28===r.kind&&(r=R(r.getFullStart(),n)),!r||!e.isIdentifier(r))return;if(!i)return e.isDeclarationName(r)?void 0:{called:r,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(!(r=J(r,18,n)))return;break;case 21:if(!(r=J(r,20,n)))return;break;case 23:if(!(r=J(r,22,n)))return;break;case 27:a++;break;case 38:case 78:case 10:case 8:case 9:case 109:case 94:case 111:case 93:case 137:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(r))break;return}r=R(r.getFullStart(),n)}}function K(t,n,r){return e.formatting.getRangeOfEnclosingComment(t,n,void 0,r)}function H(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function G(e,t,n){var r=K(e,t,void 0);return!!r&&n===m.test(e.text.substring(r.pos,r.end))}function Q(t,n,r){return e.createTextSpanFromBounds(t.getStart(n),(r||t).getEnd())}function X(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function Y(e,t){return{span:e,newText:t}}function Z(e){return 148===e.kind}function $(t,n){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return n.getCurrentDirectory()},readFile:e.maybeBind(n,n.readFile),useCaseSensitiveFileNames:e.maybeBind(n,n.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(n,n.getSymlinkCache)||t.getSymlinkCache,getGlobalTypingsCacheLocation:e.maybeBind(n,n.getGlobalTypingsCacheLocation),getSourceFiles:function(){return t.getSourceFiles()},redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)}}}function ee(e,t){return a(a({},$(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function te(t,n,r,i,a){return e.factory.createImportDeclaration(void 0,void 0,t||n?e.factory.createImportClause(!!a,t,n&&n.length?e.factory.createNamedImports(n):void 0):void 0,"string"==typeof r?ne(r,i):r)}function ne(t,n){return e.factory.createStringLiteral(t,0===n)}function re(t,n){return e.isStringDoubleQuoted(t,n)?1:0}function ie(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,function(t){var n=e.getNameOfDeclaration(t);return n&&78===n.kind?n.escapedText:void 0})}function ae(t,n,r,i){var a=new e.Map;return function t(o){if(96&o.flags&&e.addToSeen(a,e.getSymbolId(o)))return e.firstDefined(o.declarations,function(a){return e.firstDefined(e.getAllSuperTypeNodes(a),function(a){var o=r.getTypeAtLocation(a),s=o&&o.symbol&&r.getPropertyOfType(o,n);return o&&s&&(e.firstDefined(r.getRootSymbols(s),i)||t(o.symbol))})})}(t)}function oe(t,n,r){return e.textSpanContainsPosition(t,n.getStart(r))&&n.getEnd()<=e.textSpanEnd(t)}function se(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function ce(e){return e.declarations&&e.declarations.length>0&&159===e.declarations[0].kind}e.getLineStartPositionForPosition=function(t,n){return e.getLineStarts(n)[n.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=h,e.rangeContainsRangeExclusive=function(e,t){return y(e,t.pos)&&y(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=y,e.startEndContainsRange=v,e.rangeContainsStartEnd=function(e,t,n){return e.pos<=t&&e.end>=n},e.rangeOverlapsWithStartEnd=function(e,t,n){return b(e.pos,e.end,t,n)},e.nodeOverlapsWithStartEnd=function(e,t,n,r){return b(e.getStart(t),e.end,n,r)},e.startEndOverlapsWithStartEnd=b,e.positionBelongsToNode=function(t,n,r){return e.Debug.assert(t.pos<=n),nr.getStart(t)&&nr.getStart(t)},e.isInJSXText=function(t,n){var r=I(t,n);return!!e.isJsxText(r)||!(18!==r.kind||!e.isJsxExpression(r.parent)||!e.isJsxElement(r.parent.parent))||!(29!==r.kind||!e.isJsxOpeningLikeElement(r.parent)||!e.isJsxElement(r.parent.parent))},e.isInsideJsxElement=function(e,t){return function(n){for(;n;)if(n.kind>=271&&n.kind<=280||11===n.kind||29===n.kind||31===n.kind||78===n.kind||19===n.kind||18===n.kind||43===n.kind)n=n.parent;else{if(270!==n.kind)return!1;if(t>n.getStart(e))return!0;n=n.parent}return!1}(I(e,t))},e.findPrecedingMatchingToken=J,e.removeOptionality=V,e.isPossiblyTypeArgumentPosition=function t(n,r,i){var a=q(n,r);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==W(a.called,a.nTypeArguments,i).length||t(a.called,r,i))},e.getPossibleGenericSignatures=W,e.getPossibleTypeArgumentsInfo=q,e.isInComment=K,e.hasDocComment=function(t,n){var r=I(t,n);return!!e.findAncestor(r,e.isJSDoc)},e.getNodeModifiers=function(t){var n=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t):0,r=[];return 8&n&&r.push("private"),16&n&&r.push("protected"),4&n&&r.push("public"),32&n&&r.push("static"),128&n&&r.push("abstract"),1&n&&r.push("export"),8192&n&&r.push("deprecated"),8388608&t.flags&&r.push("declare"),263===t.kind&&r.push("export"),r.length>0?r.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 172===t.kind||200===t.kind?t.typeArguments:e.isFunctionLike(t)||249===t.kind||250===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=77},e.isInsideTemplateLiteral=function(t,n,r){return e.isTemplateLiteralKind(t.kind)&&t.getStart(r)=2||!!e.noEmit},e.createModuleSpecifierResolutionHost=$,e.getModuleSpecifierResolverHost=ee,e.makeImportIfNecessary=function(e,t,n,r){return e||t&&t.length?te(e,t,n,r):void 0},e.makeImport=te,e.makeStringLiteral=ne,(g=e.QuotePreference||(e.QuotePreference={}))[g.Single=0]="Single",g[g.Double=1]="Double",e.quotePreferenceFromString=re,e.getQuotePreference=function(t,n){if(n.quotePreference&&"auto"!==n.quotePreference)return"single"===n.quotePreference?0:1;var r=t.imports&&e.find(t.imports,e.isStringLiteral);return r?re(r,t):1},e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var n=ie(t);return void 0===n?void 0:e.unescapeLeadingUnderscores(n)},e.symbolEscapedNameNoDefault=ie,e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)},e.getPropertySymbolsFromBaseTypes=ae,e.isMemberSymbolInBaseType=function(e,t){return ae(e.parent,e.name,t,function(e){return!0})||!1},e.getParentNodeInSpan=function(t,n,r){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!oe(r,t.parent,n))return t;t=t.parent}},e.findModifier=function(t,n){return t.modifiers&&e.find(t.modifiers,function(e){return e.kind===n})},e.insertImports=function(t,n,r,i){var a=e.isArray(r)?r[0]:r,o=e.filter(n.statements,229===a.kind?e.isRequireVariableStatement:e.isAnyImportSyntax),s=e.isArray(r)?e.stableSort(r,e.OrganizeImports.compareImportsOrRequireStatements):[r];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,u=s;ca&&n&&"..."!==n&&(e.isWhiteSpaceLike(n.charCodeAt(n.length-1))||t.push(_e(" ",e.SymbolDisplayPartKind.space)),t.push(_e("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return c(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return c(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return c(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return c(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return c(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,n){i>a||(s(),i+=e.length,t.push(le(e,n)))},writeLine:function(){i>a||(i+=1,t.push(pe()),n=!0)},write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return r},increaseIndent:function(){r++},decreaseIndent:function(){r--},clear:u,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&n){var o=e.getIndentString(r);o&&(i+=o.length,t.push(_e(o,e.SymbolDisplayPartKind.space))),n=!1}}function c(e,n){i>a||(s(),i+=e.length,t.push(_e(e,n)))}function u(){t=[],n=!0,r=0,i=0}}();function le(t,n){return _e(t,function(t){var n=t.flags;return 3&n?ce(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&n||32768&n||65536&n?e.SymbolDisplayPartKind.propertyName:8&n?e.SymbolDisplayPartKind.enumMemberName:16&n?e.SymbolDisplayPartKind.functionName:32&n?e.SymbolDisplayPartKind.className:64&n?e.SymbolDisplayPartKind.interfaceName:384&n?e.SymbolDisplayPartKind.enumName:1536&n?e.SymbolDisplayPartKind.moduleName:8192&n?e.SymbolDisplayPartKind.methodName:262144&n?e.SymbolDisplayPartKind.typeParameterName:524288&n||2097152&n?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(n))}function _e(t,n){return{text:t,kind:e.SymbolDisplayPartKind[n]}}function de(t){return _e(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function fe(t){return _e(t,e.SymbolDisplayPartKind.text)}function pe(){return _e("\n",e.SymbolDisplayPartKind.lineBreak)}function ge(e){try{return e(ue),ue.displayParts()}finally{ue.clear()}}function me(e){return 0!=(33554432&e.flags)}function he(e){return 0!=(2097152&e.flags)}function ye(e,t){void 0===t&&(t=!0);var n=e&&be(e);return n&&!t&&xe(n),n}function ve(t,n,r,i,a){var o;if(void 0===n&&(n=!0),r&&i&&e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent))(c=(s=i.getSymbolAtLocation(t.name))&&r.get(String(e.getSymbolId(s))))&&c.text!==(t.name||t.propertyName).getText()&&(o=e.setOriginalNode(e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,c,t.initializer),t));else if(r&&i&&e.isIdentifier(t)){var s,c;(c=(s=i.getSymbolAtLocation(t))&&r.get(String(e.getSymbolId(s))))&&(o=e.setOriginalNode(e.factory.createIdentifier(c.text),t))}return o||(o=be(t,r,i,a)),o&&!n&&xe(o),a&&o&&a(t,o),o}function be(t,n,r,i){var a=e.visitEachChild(t,n||r||i?function(e){return ve(e,!0,n,r,i)}:ye,e.nullTransformationContext);if(a===t){var o=e.isStringLiteral(t)?e.setOriginalNode(e.factory.createStringLiteralFromNode(t),t):e.isNumericLiteral(t)?e.setOriginalNode(e.factory.createNumericLiteral(t.text,t.numericLiteralFlags),t):e.factory.cloneNode(t);return e.setTextRange(o,t)}return a.parent=void 0,a}function xe(e){De(e),Ce(e)}function De(e){Se(e,512,ke)}function Ce(t){Se(t,1024,e.getLastChild)}function Se(t,n,r){e.addEmitFlags(t,n);var i=r(t);i&&Se(i,n,r)}function ke(e){return e.forEachChild(function(e){return e})}function Ee(t,n,r,i,a){e.forEachLeadingCommentRange(r.text,t.pos,Ae(n,r,i,a,e.addSyntheticLeadingComment))}function Te(t,n,r,i,a){e.forEachTrailingCommentRange(r.text,t.end,Ae(n,r,i,a,e.addSyntheticTrailingComment))}function we(t,n,r,i,a){e.forEachTrailingCommentRange(r.text,t.pos,Ae(n,r,i,a,e.addSyntheticLeadingComment))}function Ae(e,t,n,r,i){return function(a,o,s,c){3===s?(a+=2,o-=2):a+=2,i(e,n||s,t.text.slice(a,o),void 0!==r?r:c)}}function Ne(t,n){if(e.startsWith(t,n))return 0;var r=t.indexOf(" "+n);return-1===r&&(r=t.indexOf("."+n)),-1===r&&(r=t.indexOf('"'+n)),-1===r?-1:r+1}function Pe(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Oe(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Fe(e){return 168===e||169===e||170===e||161===e||163===e}function Ie(e){return 248===e||165===e||164===e||166===e||167===e}function Me(e){return 253===e}function Le(e){return 229===e||230===e||232===e||237===e||238===e||239===e||243===e||245===e||162===e||251===e||258===e||257===e||264===e||256===e||263===e}function Re(e,t){return je(e,e.fileExists,t)}function Be(e){try{return e()}catch(t){return}}function je(e,t){for(var n=[],r=2;r-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(n));)n-=1;return n+1},e.getSynthesizedDeepClone=ye,e.getSynthesizedDeepCloneWithRenames=ve,e.getSynthesizedDeepClones=function(t,n){return void 0===n&&(n=!0),t&&e.factory.createNodeArray(t.map(function(e){return ye(e,n)}),t.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=xe,e.suppressLeadingTrivia=De,e.suppressTrailingTrivia=Ce,e.copyComments=function(e,t){var n=e.getSourceFile();!function(e,t){for(var n=e.getFullStart(),r=e.getStart(),i=n;i=0),o},e.copyLeadingComments=Ee,e.copyTrailingComments=Te,e.copyTrailingAsLeadingComments=we,e.needsParentheses=function(t){return e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)},e.getContextualTypeFromParent=function(e,t){var n=e.parent;switch(n.kind){case 201:return t.getContextualType(n);case 213:var r=n.left,i=n.right;return Pe(n.operatorToken.kind)?t.getTypeAtLocation(e===i?r:i):t.getContextualType(e);case 281:return n.expression===e?Oe(n,t):void 0;default:return t.getContextualType(e)}},e.quote=function(t,n){var r=n.quotePreference||"auto",i=JSON.stringify(t);switch(r){case"auto":case"double":return i;case"single":return"'"+e.stripQuotes(i).replace("'","\\'").replace('\\"','"')+"'";default:return e.Debug.assertNever(r)}},e.isEqualityOperatorKind=Pe,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 215:case 202:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=Oe,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,t,n,r){var i=n.getTypeChecker(),a=!0,o=function(){a=!1},s=i.typeToTypeNode(e,t,void 0,{trackSymbol:function(e,t,n){a=a&&0===i.isSymbolAccessible(e,t,n,!1).accessibility},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:ee(n,r)});return a?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Fe,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=Ie,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Me,e.syntaxRequiresTrailingSemicolonOrASI=Le,e.syntaxMayBeASICandidate=e.or(Fe,Ie,Me,Le),e.positionIsASICandidate=function(t,n,r){var i=e.findAncestor(n,function(n){return n.end!==t?"quit":e.syntaxMayBeASICandidate(n.kind)});return!!i&&function(t,n){var r=t.getLastToken(n);if(r&&26===r.kind)return!1;if(Fe(t.kind)){if(r&&27===r.kind)return!1}else if(Me(t.kind)){if((i=e.last(t.getChildren(n)))&&e.isModuleBlock(i))return!1}else if(Ie(t.kind)){var i;if((i=e.last(t.getChildren(n)))&&e.isFunctionBlock(i))return!1}else if(!Le(t.kind))return!1;if(232===t.kind)return!0;var a=L(t,e.findAncestor(t,function(e){return!e.parent}),n);return!a||19===a.kind||n.getLineAndCharacterOfPosition(t.getEnd()).line!==n.getLineAndCharacterOfPosition(a.getStart(n)).line}(i,r)},e.probablyUsesSemicolons=function(t){var n=0,r=0;return e.forEachChild(t,function i(a){if(Le(a.kind)){var o=a.getLastToken(t);o&&26===o.kind?n++:r++}return n+r>=5||e.forEachChild(a,i)}),0===n&&r<=1||n/r>.2},e.tryGetDirectories=function(e,t){return je(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,n,r,i,a){return je(t,t.readDirectory,n,r,i,a)||e.emptyArray},e.tryFileExists=Re,e.tryDirectoryExists=function(t,n){return Be(function(){return e.directoryProbablyExists(n,t)})||!1},e.tryAndIgnoreErrors=Be,e.tryIOAndConsumeErrors=je,e.findPackageJsons=function(t,n,r){var i=[];return e.forEachAncestorDirectory(t,function(t){if(t===r)return!0;var a=e.combinePaths(t,"package.json");Re(n,a)&&i.push(a)}),i},e.findPackageJson=function(t,n){var r;return e.forEachAncestorDirectory(t,function(t){return"node_modules"===t||!!(r=e.findConfigFile(t,function(e){return Re(n,e)},"package.json"))||void 0}),r},e.getPackageJsonsVisibleToFile=function(t,n){if(!n.fileExists)return[];var r=[];return e.forEachAncestorDirectory(e.getDirectoryPath(t),function(t){var i=e.combinePaths(t,"package.json");if(n.fileExists(i)){var a=Ue(i,n);a&&r.push(a)}}),r},e.createPackageJsonInfo=Ue,e.consumesNodeCoreModules=function(t){return e.some(t.imports,function(t){return e.JsTyping.nodeCoreModules.has(t.text)})},e.isInsideNodeModules=function(t){return e.contains(e.getPathComponents(t),"node_modules")},e.isDiagnosticWithLocation=ze,e.findDiagnosticForNode=function(t,n){var r=Q(t),i=e.binarySearchKey(n,r,e.identity,e.compareTextSpans);if(i>=0){var a=n[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,ze)}},e.getDiagnosticsWithinSpan=function(t,n){var r,i=e.binarySearchKey(n,t.start,function(e){return e.start},e.compareValues);for(i<0&&(i=~i);(null===(r=n[i-1])||void 0===r?void 0:r.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(n[i],ze);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=function(t){var n=t.startPosition,r=t.endPosition;return e.createTextSpanFromBounds(n,void 0===r?n:r)},e.mapOneOrMany=function(t,n,r){return void 0===r&&(r=e.identity),t?e.isArray(t)?r(e.map(t,n)):n(t,0):void 0},e.firstOrOnly=function(t){return e.isArray(t)?e.first(t):t},e.getNameForExportedSymbol=function(t,n){return"export="===t.escapedName||"default"===t.escapedName?e.firstDefined(t.declarations,function(t){return e.isExportAssignment(t)&&e.isIdentifier(t.expression)?t.expression.text:void 0})||e.codefix.moduleSymbolToValidIdentifier(function(t){var n;return e.Debug.checkDefined(t.parent,"Symbol parent was undefined. Flags: "+e.Debug.formatSymbolFlags(t.flags)+". Declarations: "+(null===(n=t.declarations)||void 0===n?void 0:n.map(function(t){var n=e.Debug.formatSyntaxKind(t.kind),r=e.isInJSFile(t),i=t.expression;return(r?"[JS]":"")+n+(i?" (expression: "+e.Debug.formatSyntaxKind(i.kind)+")":"")}).join(", "))+".")}(t),n):t.name},e.stringContainsAt=function(e,t,n){var r=t.length;if(r+n>e.length)return!1;for(var i=0;i=i.length){var v=n(o,u,e.lastOrUndefined(_));void 0!==v&&(g=v)}}while(1!==u);function b(){switch(u){case 43:case 67:t[l]||13!==o.reScanSlashToken()||(u=13);break;case 29:78===l&&h++;break;case 31:h>0&&h--;break;case 128:case 146:case 143:case 131:case 147:h>0&&!c&&(u=78);break;case 15:_.push(u);break;case 18:_.length>0&&_.push(u);break;case 19:if(_.length>0){var n=e.lastOrUndefined(_);15===n?17===(u=o.reScanTemplateToken(!1))?_.pop():e.Debug.assertEqual(u,16,"Should have been a template middle."):(e.Debug.assertEqual(n,18,"Should have been an open brace"),_.pop())}break;default:if(!e.isKeyword(u))break;(24===l||e.isKeyword(l)&&e.isKeyword(u)&&!function(t,n){if(!e.isAccessibilityModifier(t))return!0;switch(n){case 134:case 145:case 132:case 123:return!0;default:return!1}}(l,u))&&(u=78)}}return{endOfLineState:g,spans:m}}return{getClassificationsForLine:function(t,n,r){return function(t,n){for(var r=[],a=t.spans,o=0,s=0;s=0){var _=c-o;_>0&&r.push({length:_,classification:e.TokenClass.Whitespace})}r.push({length:u,classification:i(l)}),o=c+u}var d=n.length-o;return d>0&&r.push({length:d,classification:e.TokenClass.Whitespace}),{entries:r,finalLexState:t.endOfLineState}}(s(t,n,r),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([78,10,8,9,13,107,45,46,21,23,19,109,94],function(e){return e},function(){return!0});function n(t,n,r){switch(n){case 10:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(n)){if(!t.isUnterminated())return;switch(n){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+n)}}return 15===r?6:void 0}}function r(e,t,n,r,i){if(8!==r){0===e&&n>0&&(e+=n);var a=t-e;a>0&&i.push(e-n,a,r)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function a(t){if(e.isKeyword(t))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 101:case 100:case 126:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 73:case 72:case 77:case 69:case 70:case 71:case 63:case 64:case 65:case 67:case 68:case 62:case 27:case 60:case 74:case 75:case 76:return!0;default:return!1}}(t)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(t))return 5;if(t>=18&&t<=77)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 78:default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 253:case 249:case 250:case 248:case 218:case 205:case 206:e.throwIfCancellationRequested()}}function s(t,n,r,i,a){var s=[];return r.forEachChild(function u(l){if(l&&e.textSpanIntersectsWith(a,l.pos,l.getFullWidth())){if(o(n,l.kind),e.isIdentifier(l)&&!e.nodeIsMissing(l)&&i.has(l.escapedText)){var _=t.getSymbolAtLocation(l),d=_&&c(_,e.getMeaningFromLocation(l),t);d&&function(t,n,r){var i=n-t;e.Debug.assert(i>0,"Classification had non-positive length of "+i),s.push(t),s.push(i),s.push(r)}(l.getStart(r),l.getEnd(),d)}l.forEachChild(u)}}),{spans:s,endOfLineState:0}}function c(t,n,r){var i=t.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&n||1&n&&function(t){return e.some(t.declarations,function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)})}(t)?14:void 0:2097152&i?c(r.getAliasedSymbol(t),n,r):2&n?64&i?13:262144&i?15:void 0:void 0}function u(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function l(t){e.Debug.assert(t.spans.length%3==0);for(var n=t.spans,r=[],i=0;i])*)(\/>)?)?/im.exec(a);if(!o)return!1;if(!o[3]||!(o[3]in e.commentPragmas))return!1;var s=t;d(s,o[1].length),l(s+=o[1].length,o[2].length,10),l(s+=o[2].length,o[3].length,21);for(var c=o[4],u=s+=o[3].length;;){var _=i.exec(c);if(!_)break;var f=s+_.index;f>u&&(d(u,f-u),u=f),l(u,_[1].length,22),u+=_[1].length,_[2].length&&(d(u,_[2].length),u+=_[2].length),l(u,_[3].length,5),u+=_[3].length,_[4].length&&(d(u,_[4].length),u+=_[4].length),l(u,_[5].length,24),u+=_[5].length}(s+=o[4].length)>u&&d(u,s-u),o[5]&&(l(s,o[5].length,10),s+=o[5].length);var p=t+r;return s=0),a>0){var o=r||h(t.kind,t);o&&l(i,a,o)}return!0}function h(t,n){if(e.isKeyword(t))return 3;if((29===t||31===t)&&n&&e.getTypeArgumentOrTypeParameterList(n.parent))return 10;if(e.isPunctuation(t)){if(n){var r=n.parent;if(62===t&&(246===r.kind||162===r.kind||159===r.kind||277===r.kind))return 5;if(213===r.kind||211===r.kind||212===r.kind||214===r.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return n&&277===n.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(78===t){if(n)switch(n.parent.kind){case 249:return n.parent.name===n?11:void 0;case 158:return n.parent.name===n?15:void 0;case 250:return n.parent.name===n?13:void 0;case 252:return n.parent.name===n?12:void 0;case 253:return n.parent.name===n?14:void 0;case 159:return n.parent.name===n?e.isThisIdentifier(n)?3:17:void 0}return 2}}function y(r){if(r&&e.decodedTextSpanIntersectsWith(i,a,r.pos,r.getFullWidth())){o(t,r.kind);for(var s=0,c=r.getChildren(n);sa.parameters.length)){var o=n.getParameterType(a,t.argumentIndex);return r=r||!!(4&o.flags),u(o,i)}}),isNewIdentifier:r}}(d,i):p()}case 258:case 264:case 269:return{kind:0,paths:f(t,n,a,o,i)};default:return p()}function p(){return{kind:2,types:u(e.getContextualTypeFromParent(n,i)),isNewIdentifier:!1}}}function c(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),function(t){return!(t.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(t.valueDeclaration))}),hasIndexSignature:e.hasIndexSignature(t)}}function u(t,n){return void 0===n&&(n=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,function(e){return u(e,n)}):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(n,t.value)?e.emptyArray:[t]:e.emptyArray}function l(e,t,n){return{name:e,kind:t,extension:n}}function _(e){return l(e,"directory",void 0)}function d(t,n,r){var i=function(t,n){var r=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf("\\")),i=-1!==r?r+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),99)?void 0:e.createTextSpan(n+i,a)}(t,n);return r.map(function(e){return{name:e.name,kind:e.kind,extension:e.extension,span:i}})}function f(t,n,r,a,o){return d(n.text,n.getStart(t)+1,function(t,n,r,a,o){var s=e.normalizeSlashes(n.text),c=t.path,u=e.getDirectoryPath(c);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}(s)||!r.baseUrl&&(e.isRootedDiskPath(s)||e.isUrl(s))?function(t,n,r,a,o){var s=p(r);return r.rootDirs?function(t,n,r,a,o,s,c){var u=function(t,n,r,a){t=t.map(function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(n,t))});var o=e.firstDefined(t,function(t){return e.containsPath(t,r,n,a)?r.substr(t.length):void 0});return e.deduplicate(i(t.map(function(t){return e.combinePaths(t,o)}),[r]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,o.project||s.getCurrentDirectory(),r,!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()));return e.flatMap(u,function(e){return m(n,e,a,s,c)})}(r.rootDirs,t,n,s,r,a,o):m(t,n,s,a,o)}(s,u,r,a,c):function(t,n,r,i,a){var o=r.baseUrl,s=r.paths,c=[],u=p(r);if(o){var _=r.project||i.getCurrentDirectory(),d=e.normalizePath(e.combinePaths(_,o));m(t,d,u,i,void 0,c),s&&h(c,t,d,u.extensions,s,i)}for(var f=y(t),g=0,v=function(t,n,r){var i=r.getAmbientModules().map(function(t){return e.stripQuotes(t.name)}).filter(function(n){return e.startsWith(n,t)});if(void 0!==n){var a=e.ensureTrailingDirectorySeparator(n);return i.map(function(t){return e.removePrefix(t,a)})}return i}(t,f,a);g=e.pos&&n<=e.end});if(s){var c=t.text.slice(s.pos,n),u=x.exec(c);if(u){var l=u[1],_=u[2],f=u[3],g=e.getDirectoryPath(t.path),h="path"===_?m(f,g,p(r,!0),i,t.path):"types"===_?b(i,r,g,y(f),p(r)):e.Debug.fail();return d(f,s.pos+l.length,h)}}}(n,i,c,u))&&r(f);if(e.isInString(n,i,a)){if(!a||!e.isStringLiteralLike(a))return;var f;return function(n,i,a,o,s,c){if(void 0!==n)switch(n.kind){case 0:return r(n.paths);case 1:return t.getCompletionEntriesFromSymbols(n.symbols,u=[],i,a,a,o,99,s,4,c),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:n.hasIndexSignature,entries:u};case 2:var u=n.types.map(function(t){return{name:t.value,kindModifiers:"",kind:"string",sortText:"0",replacementSpan:e.getReplacementSpanForContextToken(i)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:n.isNewIdentifier,entries:u};default:return e.Debug.assertNever(n)}}(f=s(n,a,i,o,c,u),a,n,o,l,_)}},n.getStringLiteralCompletionDetails=function(n,r,i,o,c,u,l,_){if(o&&e.isStringLiteralLike(o)){var d=s(r,o,i,c,u,l);return d&&function(n,r,i,o,s,c){switch(i.kind){case 0:return(u=e.find(i.paths,function(e){return e.name===n}))&&t.createCompletionDetails(n,a(u.extension),u.kind,[e.textPart(n)]);case 1:var u;return(u=e.find(i.symbols,function(e){return e.name===n}))&&t.createCompletionDetailsForSymbol(u,s,o,r,c);case 2:return e.find(i.types,function(e){return e.value===n})?t.createCompletionDetails(n,"","type",[e.textPart(n)]):void 0;default:return e.Debug.assertNever(i)}}(n,o,d,r,c,_)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(o||(o={}));var x=/^(\/\/\/\s*=t.pos;case 24:return 194===r;case 58:return 195===r;case 22:return 194===r;case 20:return 284===r||se(r);case 18:return 252===r;case 29:return 249===r||218===r||250===r||251===r||e.isFunctionLikeKind(r);case 123:return 162===r&&!e.isClassLike(n.parent);case 25:return 159===r||!!n.parent&&194===n.parent.kind;case 122:case 120:case 121:return 159===r&&!e.isConstructorDeclaration(n.parent);case 126:return 262===r||267===r||260===r;case 134:case 145:return!R(t);case 83:case 91:case 117:case 97:case 112:case 99:case 118:case 84:case 148:return!0;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(O(I(t))&&R(t))return!1;if(oe(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(I(t))||_e(t)))return!1;switch(I(t)){case 125:case 83:case 84:case 133:case 91:case 97:case 117:case 118:case 120:case 121:case 122:case 123:case 112:return!0;case 129:return e.isPropertyDeclaration(t.parent)}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==y||o>y.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(272===e.parent.kind)return 272!==N.parent.kind;if(273===e.parent.kind||271===e.parent.kind)return!!e.parent.parent&&270===e.parent.parent.kind}return!1}(t);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-n)),a}(v))return void r("Returning an empty list because completion was requested in an invalid position.");var F=v.parent;if(24===v.kind||28===v.kind)switch(C=24===v.kind,S=28===v.kind,F.kind){case 198:if((e.isCallExpression(D=(x=F).expression)||e.isFunctionLike(D))&&D.end===v.pos&&D.getChildCount(i)&&21!==e.last(D.getChildren(i)).kind)return;break;case 156:D=F.left;break;case 253:D=F.name;break;case 192:case 223:D=F;break;default:return}else if(1===i.languageVariant){if(F&&198===F.kind&&(v=F,F=F.parent),d.parent===N)switch(d.kind){case 31:270!==d.parent.kind&&272!==d.parent.kind||(N=d);break;case 43:271===d.parent.kind&&(N=d)}switch(F.kind){case 273:43===v.kind&&(T=!0,N=v);break;case 213:if(!B(F))break;case 271:case 270:case 272:A=!0,29===v.kind&&(E=!0,N=v);break;case 277:switch(y.kind){case 62:w=!0;break;case 78:A=!0,F!==y.parent&&!F.initializer&&e.findChildOfKind(F,62,i)&&(w=y)}}}}var j=e.timestamp(),U=5,z=!1,J=0,V=[],W=[],q=[],K=u.getImportSuggestionsCache&&u.getImportSuggestionsCache(),H=re();if(C||S)!function(){U=2;var t,n,r=e.isLiteralImportTypeNode(D),a=p||r&&!D.isTypeOf||e.isPartOfTypeNode(D.parent)||e.isPossiblyTypeArgumentPosition(v,i,l),o=e.isInRightSideOfInternalImportEqualsDeclaration(D);if(e.isEntityName(D)||r){var c=e.isModuleDeclaration(D.parent);c&&(z=!0);var u=l.getSymbolAtLocation(D);if(u&&1920&(u=e.skipAlias(u,l)).flags){var _=l.getExportsOfModule(u);e.Debug.assertEachIsDefined(_,"getExportsOfModule() should all be defined");for(var d=function(e){return l.isValidPropertyAccess(r?D:D.parent,e.name)},f=function(e){return ie(e)},g=c?function(e){return!!(1920&e.flags)&&!e.declarations.every(function(e){return e.parent===D.parent})}:o?function(e){return f(e)||d(e)}:a?f:d,m=0,h=_;m0&&(V=function(t,n){if(0===n.length)return t;for(var r=new e.Set,i=new e.Set,a=0,o=n;a"),kind:"class",kindModifiers:void 0,sortText:n.LocationPriority}]}}var T=[];if(d(t,i)){var A=b(c,T,void 0,p,t,r,i.target,a,u,s,m,o.isJsxIdentifierExpected,D,x,v,S);!function(t,r,i,a,o){e.getNameTable(t).forEach(function(t,s){if(t!==r){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:n.JavascriptIdentifiers,isFromUncheckedFile:!0}))}})}(t,p.pos,A,i.target,T)}else{if(!(_||c&&0!==c.length||0!==h))return;b(c,T,void 0,p,t,r,i.target,a,u,s,m,o.isJsxIdentifierExpected,D,x,v,S)}if(0!==h)for(var P=new e.Set(T.map(function(e){return e.name})),O=0,F=function(t,n){if(!n)return N(t);var r=t+7+1;return w[r]||(w[r]=N(t).filter(function(t){return!function(e){switch(e){case 125:case 128:case 154:case 131:case 133:case 91:case 153:case 116:case 135:case 117:case 136:case 137:case 138:case 139:case 140:case 143:case 144:case 120:case 121:case 122:case 141:case 146:case 147:case 148:case 150:case 151:return!0;default:return!1}}(e.stringToToken(t.name))}))}(h,!C&&e.isSourceFileJS(t));O=0&&!u(n,r[i],114);i--);return e.forEach(a(t.statement),function(e){s(t,e)&&u(n,e.getFirstToken(),80,85)}),n}function _(e){var t=c(e);if(t)switch(t.kind){case 234:case 235:case 236:case 232:case 233:return l(t);case 241:return d(t)}}function d(t){var n=[];return u(n,t.getFirstToken(),106),e.forEach(t.caseBlock.clauses,function(r){u(n,r.getFirstToken(),81,87),e.forEach(a(r),function(e){s(t,e)&&u(n,e.getFirstToken(),80)})}),n}function f(t,n){var r=[];return u(r,t.getFirstToken(),110),t.catchClause&&u(r,t.catchClause.getFirstToken(),82),t.finallyBlock&&u(r,e.findChildOfKind(t,95,n),95),r}function p(t,n){var i=function(t){for(var n=t;n.parent;){var r=n.parent;if(e.isFunctionBlock(r)||294===r.kind)return r;if(e.isTryStatement(r)&&r.tryBlock===n&&r.catchClause)return n;n=r}}(t);if(i){var a=[];return e.forEach(r(i),function(t){a.push(e.findChildOfKind(t,108,n))}),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,function(t){a.push(e.findChildOfKind(t,104,n))}),a}}function g(t,n){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),function(t){a.push(e.findChildOfKind(t,104,n))}),e.forEach(r(i.body),function(t){a.push(e.findChildOfKind(t,108,n))}),a}}function m(t){var n=e.getContainingFunction(t);if(n){var r=[];return n.modifiers&&n.modifiers.forEach(function(e){u(r,e,129)}),e.forEachChild(n,function(t){h(t,function(t){e.isAwaitExpression(t)&&u(r,t.getFirstToken(),130)})}),r}}function h(t,n){n(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,function(e){return h(e,n)})}t.getDocumentHighlights=function(t,r,a,o,s){var c=e.getTouchingPropertyName(a,o);if(c.parent&&(e.isJsxOpeningElement(c.parent)&&c.parent.tagName===c||e.isJsxClosingElement(c.parent))){var y=c.parent.parent,v=[y.openingElement,y.closingElement].map(function(e){return n(e.tagName,a)});return[{fileName:a.fileName,highlightSpans:v}]}return function(t,n,r,i,a){var o=new e.Set(a.map(function(e){return e.fileName})),s=e.FindAllReferences.getReferenceEntriesForNode(t,n,r,a,i,void 0,o);if(s){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return e.arrayFrom(c.entries(),function(t){var n=t[0],i=t[1];if(!o.has(n)){e.Debug.assert(r.redirectTargetsMap.has(n));var s=r.getSourceFile(n),c=e.find(a,function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s});e.Debug.assert(o.has(n=c.fileName))}return{fileName:n,highlightSpans:i}})}}(o,c,t,r,s)||function(t,r){var a=function(t,r){switch(t.kind){case 98:case 90:return e.isIfStatement(t.parent)?function(t,r){for(var i=function(t,n){for(var r=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(n);u(r,i[0],98);for(var a=i.length-1;a>=0&&!u(r,i[a],90);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return r}(t,r),a=[],o=0;o=s.end;_--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(_))){l=!1;break}if(l){a.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}a.push(n(i[o],r))}return a}(t.parent,r):void 0;case 104:return s(t.parent,e.isReturnStatement,g);case 108:return s(t.parent,e.isThrowStatement,p);case 110:case 82:case 95:return s(82===t.kind?t.parent.parent:t.parent,e.isTryStatement,f);case 106:return s(t.parent,e.isSwitchStatement,d);case 81:case 87:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?s(t.parent.parent.parent,e.isSwitchStatement,d):void 0;case 80:case 85:return s(t.parent,e.isBreakOrContinueStatement,_);case 96:case 114:case 89:return s(t.parent,function(t){return e.isIterationStatement(t,!0)},l);case 132:return o(e.isConstructorDeclaration,[132]);case 134:case 145:return o(e.isAccessor,[134,145]);case 130:return s(t.parent,e.isAwaitExpression,m);case 129:return c(m(t));case 124:return c(function(t){var n=e.getContainingFunction(t);if(n){var r=[];return e.forEachChild(n,function(t){h(t,function(t){e.isYieldExpression(t)&&u(r,t.getFirstToken(),124)})}),r}}(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?c(e.mapDefined(function(t,n){var r=t.parent;switch(r.kind){case 254:case 294:case 227:case 281:case 282:return 128&n&&e.isClassDeclaration(t)?i(t.members,[t]):r.statements;case 165:case 164:case 248:return i(r.parameters,e.isClassLike(r.parent)?r.parent.members:[]);case 249:case 218:case 250:case 176:var a=r.members;if(92&n){var o=e.find(r.members,e.isConstructorDeclaration);if(o)return i(a,o.parameters)}else if(128&n)return i(a,[r]);return a;default:e.Debug.assertNever(r,"Invalid container kind.")}}(t.parent,e.modifierToFlag(a=t.kind)),function(t){return e.findModifier(t,a)})):void 0}var a;function o(n,i){return s(t.parent,n,function(t){return e.mapDefined(t.symbol.declarations,function(t){return n(t)?e.find(t.getChildren(r),function(t){return e.contains(i,t.kind)}):void 0})})}function s(e,t,n){return t(e)?c(n(e,r)):void 0}function c(e){return e&&e.map(function(e){return n(e,r)})}}(t,r);return a&&[{fileName:r.fileName,highlightSpans:a}]}(c,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(l||(l={})),function(e){function t(t,r,i){void 0===r&&(r="");var a=new e.Map,o=e.createGetCanonicalFileName(!!t);function s(e,t,n,r,i,a,o){return u(e,t,n,r,i,a,!0,o)}function c(e,t,n,r,i,a,o){return u(e,t,n,r,i,a,!1,o)}function u(t,n,r,o,s,c,u,l){var _=e.getOrUpdate(a,o,function(){return new e.Map}),d=_.get(n),f=6===l?100:r.target||1;if(!d&&i&&(p=i.getDocument(o,n))&&(e.Debug.assert(u),_.set(n,d={sourceFile:p,languageServiceRefCount:0})),d)d.sourceFile.version!==c&&(d.sourceFile=e.updateLanguageServiceSourceFile(d.sourceFile,s,c,s.getChangeRange(d.sourceFile.scriptSnapshot)),i&&i.setDocument(o,n,d.sourceFile)),u&&d.languageServiceRefCount++;else{var p=e.createLanguageServiceSourceFile(t,s,f,c,!1,l);i&&i.setDocument(o,n,p),_.set(n,d={sourceFile:p,languageServiceRefCount:1})}return e.Debug.assert(0!==d.languageServiceRefCount),d.sourceFile}function l(t,n){var r=e.Debug.checkDefined(a.get(n)),i=r.get(t);i.languageServiceRefCount--,e.Debug.assert(i.languageServiceRefCount>=0),0===i.languageServiceRefCount&&r.delete(t)}return{acquireDocument:function(t,i,a,c,u){return s(t,e.toPath(t,r,o),i,n(i),a,c,u)},acquireDocumentWithKey:s,updateDocument:function(t,i,a,s,u){return c(t,e.toPath(t,r,o),i,n(i),a,s,u)},updateDocumentWithKey:c,releaseDocument:function(t,i){return l(e.toPath(t,r,o),n(i))},releaseDocumentWithKey:l,getLanguageServiceRefCounts:function(t){return e.arrayFrom(a.entries(),function(e){var n=e[0],r=e[1].get(t);return[n,r&&r.languageServiceRefCount]})},reportStats:function(){var t=e.arrayFrom(a.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=a.get(e),n=[];return t.forEach(function(e,t){n.push({name:t,refCount:e.languageServiceRefCount})}),n.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:n}});return JSON.stringify(t,void 0,2)},getKeyForCompilationSettings:n}}function n(t){return e.sourceFileAffectingCompilerOptions.map(function(n){return e.getCompilerOptionValue(t,n)}).join("|")}e.createDocumentRegistry=function(e,n){return t(e,n)},e.createDocumentRegistryInternal=t}(l||(l={})),function(e){!function(t){function n(t,n){return e.forEach(294===t.kind?t.statements:t.body.statements,function(t){return n(t)||c(t)&&e.forEach(t.body&&t.body.statements,n)})}function r(t,r){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i=0&&!(c>r.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),99)||i.push(c),c=a.indexOf(n,c+s+1)}return i}function D(t,n){var r=t.getSourceFile(),i=n.text,a=e.mapDefined(v(r,i,t),function(t){return t===n||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,i)===n?c(t):void 0});return[{definition:{type:1,node:n},references:a}]}function C(e,t,n,r){return void 0===r&&(r=!0),n.cancellationToken.throwIfCancellationRequested(),S(e,e,t,n,r)}function S(e,t,n,r,i){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(var a=0,o=x(t,n.text,e);a0;o--)x(t,i=r[o]);return[r.length-1,r[0]]}function x(e,t){var n=h(e,t);p(a,n),c.push(a),u.push(o),o=void 0,a=n}function D(){a.children&&(k(a.children,a),N(a.children)),a=c.pop(),o=u.pop()}function C(e,t,n){x(e,n),S(t),D()}function S(t){var n;if(r.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 165:var i=t;C(i,i.body);for(var a=0,s=i.parameters;a0&&(x(z,L),e.forEachChild(z.right,S),D()):e.isFunctionExpression(z.right)||e.isArrowFunction(z.right)?C(t,z.right,L):(x(z,L),C(t,z.right,F.name),D()),void v(M);case 7:case 9:var R=t.arguments[1],U=b(t,L=7===O?t.arguments[0]:t.arguments[0].expression);return M=U[0],x(t,U[1]),x(t,e.setTextRange(e.factory.createIdentifier(R.text),R)),S(t.arguments[2]),D(),D(),void v(M);case 5:var z,J=(F=(z=t).left).expression;if(e.isIdentifier(J)&&"prototype"!==e.getElementOrPropertyAccessName(F)&&o&&o.has(J.text))return void(e.isFunctionExpression(z.right)||e.isArrowFunction(z.right)?C(t,z.right,J):e.isBindableStaticAccessExpression(F)&&(x(z,J),C(z.left,z.right,e.getNameOrArgument(F)),D()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(O)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,function(t){e.forEach(t.tags,function(t){e.isJSDocTypeAlias(t)&&m(t)})}),e.forEachChild(t,S)}}function k(t,n){var r=new e.Map;e.filterMutate(t,function(t,i){var a=t.name||e.getNameOfDeclaration(t.node),o=a&&d(a);if(!o)return!0;var s=r.get(o);if(!s)return r.set(o,t),!0;if(s instanceof Array){for(var c=0,u=s;c0)return W(r)}switch(t.kind){case 294:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 263:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 206:case 248:case 205:case 249:case 218:return 512&e.getSyntacticModifierFlags(t)?"default":J(t);case 165:return"constructor";case 169:return"new()";case 168:return"()";case 170:return"[]";default:return""}}function I(t){return{text:F(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:z(t.node),spans:L(t),nameSpan:t.name&&U(t.name),childItems:e.map(t.children,I)}}function M(t){return{text:F(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:z(t.node),spans:L(t),childItems:e.map(t.children,function(t){return{text:F(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:L(t),childItems:l,indent:0,bolded:!1,grayed:!1}})||l,indent:t.indent,bolded:!1,grayed:!1}}function L(e){var t=[U(e.node)];if(e.additionalNodes)for(var n=0,r=e.additionalNodes;n0)return W(e.declarationNameToString(t.name));if(e.isVariableDeclaration(n))return W(e.declarationNameToString(n.name));if(e.isBinaryExpression(n)&&62===n.operatorToken.kind)return d(n.left).replace(s,"");if(e.isPropertyAssignment(n))return d(n.name);if(512&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"";if(e.isCallExpression(n)){var r=V(n.expression);if(void 0!==r)return(r=W(r)).length>150?r+" callback":r+"("+W(e.mapDefined(n.arguments,function(t){return e.isStringLiteralLike(t)?t.getText(i):void 0}).join(", "))+") callback"}return""}function V(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var n=V(t.expression),r=t.name.text;return void 0===n?r:n+"."+r}}function W(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(l||(l={})),function(e){!function(t){function n(t,n){var r=e.isStringLiteral(n)&&n.text;return e.isString(r)&&e.some(t.moduleAugmentations,function(t){return e.isStringLiteral(t)&&t.text===r})}function r(t){return void 0!==t&&e.isStringLiteralLike(t)?t.text:void 0}function i(t){var n;if(0===t.length)return t;var r=function(t){for(var n,r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]},a=0,o=t;a0?g[0]:h[0],T=0===k.length?x?void 0:e.factory.createNamedImports(e.emptyArray):0===h.length?e.factory.createNamedImports(k):e.factory.updateNamedImports(h[0].importClause.namedBindings,k);p&&x&&T?(u.push(o(E,x,void 0)),u.push(o(null!==(n=h[0])&&void 0!==n?n:E,void 0,T))):u.push(o(E,x,T))}}else{var w;u.push(o(w=g[0],w.importClause.name,m[0].importClause.namedBindings))}}return u}function a(t){if(0===t.length)return t;var n=function(e){for(var t,n=[],r=[],i=0,a=e;i...")}(t);case 274:return function(t){var r=e.createTextSpanFromBounds(t.openingFragment.getStart(n),t.closingFragment.getEnd());return c(r,"code",r,!1,"<>...")}(t);case 271:case 272:return function(e){if(0!==e.properties.length)return o(e.getStart(n),e.getEnd(),"code")}(t.attributes);case 215:case 14:return function(e){if(14!==e.kind||0!==e.text.length)return o(e.getStart(n),e.getEnd(),"code")}(t);case 194:return l(t,!1,!e.isBindingElement(t.parent),22);case 206:return function(t){if(!e.isBlock(t.body)&&!e.positionsAreOnSameLine(t.body.getFullStart(),t.body.getEnd(),n))return c(e.createTextSpanFromBounds(t.body.getFullStart(),t.body.getEnd()),"code",e.createTextSpanFromNode(t))}(t);case 200:return function(t){if(t.arguments.length){var r=e.findChildOfKind(t,20,n),i=e.findChildOfKind(t,21,n);if(r&&i&&!e.positionsAreOnSameLine(r.pos,i.pos,n))return s(r,i,t,n,!1,!0)}}(t)}var a;function u(t,n){return void 0===n&&(n=18),l(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),n)}function l(r,i,a,o,c){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===c&&(c=18===o?19:23);var u=e.findChildOfKind(t,o,n),l=e.findChildOfKind(t,c,n);return u&&l&&s(u,l,r,n,i,a)}}(i,t);_&&r.push(_),u--,e.isCallExpression(i)?(u++,g(i.expression),u--,i.arguments.forEach(g),null===(l=i.typeArguments)||void 0===l||l.forEach(g)):e.isIfStatement(i)&&i.elseStatement&&e.isIfStatement(i.elseStatement)?(g(i.expression),g(i.thenStatement),u++,g(i.elseStatement),u--):i.forEachChild(g),u++}}}(t,n,u),function(t,n){for(var i=[],a=0,o=t.getLineStarts();a1&&a.push(o(c,u,"comment"))}}function o(t,n,r){return c(e.createTextSpanFromBounds(t,n),r)}function s(t,n,r,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),c(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),n.getEnd()),"code",e.createTextSpanFromNode(r,i),a)}function c(e,t,n,r,i){return void 0===n&&(n=e),void 0===r&&(r=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(l||(l={})),function(e){var t;function n(e,t){return{kind:e,isCaseSensitive:t}}function r(e,t){var n=t.get(e);return n||t.set(e,n=h(e)),n}function i(i,a,o){var s=function(e,t){for(var n=e.length-t.length,r=function(n){if(S(t,function(t,r){return d(e.charCodeAt(r+n))===t}))return{value:n}},i=0;i<=n;i++){var a=r(i);if("object"==typeof a)return a.value}return-1}(i,a.textLowerCase);if(0===s)return n(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var _=0,f=r(i,o);_0)return n(t.substring,!0);if(a.characterSpans.length>0){var g=r(i,o),m=!!u(i,g,a,!1)||!u(i,g,a,!0)&&void 0;if(void 0!==m)return n(t.camelCase,m)}}}function a(e,t,n){if(S(t.totalTextChunk.text,function(e){return 32!==e&&42!==e})){var r=i(e,t.totalTextChunk,n);if(r)return r}for(var a,s=0,c=t.subWordTextChunks;s=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var n=String.fromCharCode(t);return n===n.toUpperCase()}function _(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var n=String.fromCharCode(t);return n===n.toLowerCase()}function d(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function f(e){return e>=48&&e<=57}function p(e){for(var t=[],n=0,r=0,i=0;i0&&(t.push(g(e.substr(n,r))),r=0);var a;return r>0&&t.push(g(e.substr(n,r))),t}function g(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:m(e)}}function m(e){return y(e,!1)}function h(e){return y(e,!0)}function y(t,n){for(var r=[],i=0,a=1;at.length)){for(var c=r.length-2,u=t.length-1;c>=0;c-=1,u-=1)s=o(s,a(t[u],r[c],i));return s}}(t,i,r,n)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(r),n)},patternContainsDots:r.length>1}},e.breakIntoCharacterSpans=m,e.breakIntoWordSpans=h}(l||(l={})),function(e){e.preProcessFile=function(t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],u=0,l=!1;function _(){return a=o,18===(o=e.scanner.scan())?u++:19===o&&u--,o}function d(){var t=e.scanner.getTokenValue(),n=e.scanner.getTokenPos();return{fileName:t,pos:n,end:n+t.length}}function f(){c.push(d()),p()}function p(){0===u&&(l=!0)}function g(){if(24===a)return!1;var t=e.scanner.getToken();if(99===t){if(20===(t=_())){if(10===(t=_())||14===t)return f(),!0}else{if(10===t)return f(),!0;if(148===t&&e.scanner.lookAhead(function(){var t=e.scanner.scan();return 152!==t&&(41===t||18===t||78===t||e.isKeyword(t))})&&(t=_()),78===t||e.isKeyword(t))if(152===(t=_())){if(10===(t=_()))return f(),!0}else if(62===t){if(h(!0))return!0}else{if(27!==t)return!0;t=_()}if(18===t){for(t=_();19!==t&&1!==t;)t=_();19===t&&152===(t=_())&&10===(t=_())&&f()}else 41===t&&126===(t=_())&&(78===(t=_())||e.isKeyword(t))&&152===(t=_())&&10===(t=_())&&f()}return!0}return!1}function m(){var t=e.scanner.getToken();if(92===t){if(p(),148===(t=_())&&e.scanner.lookAhead(function(){var t=e.scanner.scan();return 41===t||18===t})&&(t=_()),18===t){for(t=_();19!==t&&1!==t;)t=_();19===t&&152===(t=_())&&10===(t=_())&&f()}else if(41===t)152===(t=_())&&10===(t=_())&&f();else if(99===t&&(148===(t=_())&&e.scanner.lookAhead(function(){var t=e.scanner.scan();return 78===t||e.isKeyword(t)})&&(t=_()),(78===t||e.isKeyword(t))&&62===(t=_())&&h(!0)))return!0;return!0}return!1}function h(t,n){void 0===n&&(n=!1);var r=t?_():e.scanner.getToken();return 142===r&&(20===(r=_())&&(10===(r=_())||n&&14===r)&&f(),!0)}function y(){var t=e.scanner.getToken();if(78===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=_()))return!0;if(10===(t=_())||14===t){if(27!==(t=_()))return!0;t=_()}if(22!==t)return!0;for(t=_();23!==t&&1!==t;)10!==t&&14!==t||f(),t=_();return!0}return!1}if(n&&function(){for(e.scanner.setText(t),_();1!==e.scanner.getToken();)133===e.scanner.getToken()&&(138===_()&&10===_()&&(i||(i=[]),i.push({ref:d(),depth:u})),1)||g()||m()||r&&(h(!1,!0)||y())||_();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),l){if(i)for(var v=0,b=i;vt)break e;if(n(r,t,p)){if(e.isBlock(p)||e.isTemplateSpan(p)||e.isTemplateHead(p)||e.isTemplateTail(p)||f&&e.isTemplateHead(f)||e.isVariableDeclarationList(p)&&e.isVariableStatement(l)||e.isSyntaxList(p)&&e.isVariableDeclarationList(l)||e.isVariableDeclaration(p)&&e.isSyntaxList(l)&&1===_.length){l=p;break}e.isTemplateSpan(l)&&g&&e.isTemplateMiddleOrTemplateTail(g)&&b(p.getFullStart()-"${".length,g.getStart()+"}".length);var m=e.isSyntaxList(p)&&(18===(s=(o=f)&&o.kind)||22===s||20===s||272===s)&&u(g)&&!e.positionsAreOnSameLine(f.getStart(),g.getStart(),r),h=e.hasJSDocNodes(p)&&p.jsDoc[0].getStart(),y=m?f.getEnd():p.getStart(),v=m?g.getStart():p.getEnd();e.isNumber(h)&&b(h,v),b(y,v),(e.isStringLiteral(p)||e.isTemplateLiteral(p))&&b(y+1,v-1),l=p;break}if(d===_.length-1)break e}}return c;function b(n,r){if(n!==r){var i=e.createTextSpanFromBounds(n,r);(!c||!e.textSpansEqual(i,c.textSpan)&&e.textSpanIntersectsWithPosition(i,t))&&(c=a({textSpan:i},c&&{parent:c}))}}};var r=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function i(t){if(e.isSourceFile(t))return o(t.getChildAt(0).getChildren(),r);if(e.isMappedTypeNode(t)){var n=t.getChildren(),i=n[0],a=n.slice(1),u=e.Debug.checkDefined(a.pop());e.Debug.assertEqual(i.kind,18),e.Debug.assertEqual(u.kind,19);var l=o(a,function(e){return e===t.readonlyToken||141===e.kind||e===t.questionToken||57===e.kind});return[i,c(s(o(l,function(e){var t=e.kind;return 22===t||158===t||23===t}),function(e){return 58===e.kind})),u]}if(e.isPropertySignature(t))return s(a=o(t.getChildren(),function(n){return n===t.name||e.contains(t.modifiers,n)}),function(e){return 58===e.kind});if(e.isParameter(t)){var _=o(t.getChildren(),function(e){return e===t.dotDotDotToken||e===t.name});return s(o(_,function(e){return e===_[0]||e===t.questionToken}),function(e){return 62===e.kind})}return e.isBindingElement(t)?s(t.getChildren(),function(e){return 62===e.kind}):t.getChildren()}function o(e,t){for(var n,r=[],i=0,a=e;i0&&27===e.last(n).kind&&r++,r}(i);return 0!==a&&e.Debug.assertLessThan(a,o),{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:function(t,n){var r=t.getFullStart(),i=e.skipTrivia(n.text,t.getEnd(),!1);return e.createTextSpan(r,i-r)}(i,n)}}}function s(t,n,r){var i=t.parent;if(e.isCallOrNewExpression(i)){var a=i,s=o(t,r);if(!s)return;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===s.list.pos,invocation:{kind:0,node:a},argumentsSpan:s.argumentsSpan,argumentIndex:s.argumentIndex,argumentCount:s.argumentCount}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,n,r)?_(i,0,r):void 0;if(e.isTemplateHead(t)&&202===i.parent.kind){var c=i.parent;return e.Debug.assert(215===i.kind),_(c,e.isInsideTemplateLiteral(t,n,r)?0:1,r)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var u=i;if(c=i.parent.parent,e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,n,r))return;return _(c,function(t,n,r,i){return e.Debug.assert(r>=n.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(n)?e.isInsideTemplateLiteral(n,r,i)?0:t+2:t+1}(u.parent.templateSpans.indexOf(u),t,n,r),r)}if(e.isJsxOpeningLikeElement(i)){var l=i.attributes.pos,d=e.skipTrivia(r.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(l,d-l),argumentIndex:0,argumentCount:1}}var f=e.getPossibleTypeArgumentsInfo(t,r);if(f){var p=f.called,g=f.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:p},argumentsSpan:e.createTextSpanFromBounds(p.getStart(r),t.end),argumentIndex:g,argumentCount:g+1}}}function c(t){return e.isBinaryExpression(t.parent)?c(t.parent):t}function u(t){return e.isBinaryExpression(t.left)?u(t.left)+1:2}function l(e,t){for(var n=0,r=0,i=e.getChildren();r=0&&i.length>a+1),i[a+1]}function p(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function g(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}function m(t,n,r,a,o,s){var c,u=r.isTypeParameterList,l=r.argumentCount,_=r.argumentsSpan,d=r.invocation,f=r.argumentIndex,m=g(d),h=2===d.kind?d.symbol:o.getSymbolAtLocation(p(d))||s&&(null===(c=n.declaration)||void 0===c?void 0:c.symbol),x=h?e.symbolToDisplayParts(o,h,s?a:void 0,void 0):e.emptyArray,D=e.map(t,function(t){return function(t,n,r,a,o,s){var c=(r?v:b)(t,a,o,s);return e.map(c,function(r){var s=r.isVariadic,c=r.parameters,u=r.suffix,l=i(n,r.prefix),_=i(u,function(t,n,r){return e.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=r.getTypePredicateOfSignature(t);i?r.writeTypePredicate(i,n,void 0,e):r.writeType(r.getReturnTypeOfSignature(t),n,void 0,e)})}(t,o,a)),d=t.getDocumentationComment(a),f=t.getJsDocTags();return{isVariadic:s,prefixDisplayParts:l,suffixDisplayParts:_,separatorDisplayParts:y,parameters:c,documentation:d,tags:f}})}(t,x,u,o,m,a)});0!==f&&e.Debug.assertLessThan(f,l);for(var C=0,S=0,k=0;k1))for(var T=0,w=0,A=E;w=l){C=S+T;break}T++}S+=E.length}return e.Debug.assert(-1!==C),{items:e.flatMapToMutable(D,e.identity),applicableSpan:_,selectedItemIndex:C,argumentIndex:f,argumentCount:l}}function h(t,n,r,a,o){var s=e.symbolToDisplayParts(r,t),c=e.createPrinter({removeComments:!0}),u=n.map(function(e){return x(e,r,a,o,c)}),l=t.getDocumentationComment(r),_=t.getJsDocTags();return{isVariadic:!1,prefixDisplayParts:i(s,[e.punctuationPart(29)]),suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:y,parameters:u,documentation:l,tags:_}}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(n||(n={})),t.getSignatureHelpItems=function(t,n,r,i,l){var _=t.getTypeChecker(),d=e.findTokenOnLeftOfPosition(n,r);if(d){var f=!!i&&"characterTyped"===i.kind;if(!f||!e.isInString(n,r,d)&&!e.isInComment(n,r)){var y=function(t,n,r,i,a){for(var l=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",function(){return"Child: "+e.Debug.formatSyntaxKind(t.kind)+", parent: "+e.Debug.formatSyntaxKind(t.parent.kind)});var a=function(t,n,r,i){return function(t,n,r,i){var a=function(t,n,r){if(20===t.kind||27===t.kind){var i=t.parent;switch(i.kind){case 204:case 164:case 205:case 206:var a=o(t,n);if(!a)return;var s=a.argumentIndex,l=a.argumentCount,_=a.argumentsSpan,d=e.isMethodDeclaration(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return d&&{contextualType:d,argumentIndex:s,argumentCount:l,argumentsSpan:_};case 213:var f=c(i),p=r.getContextualType(f),g=20===t.kind?0:u(i)-1,m=u(f);return p&&{contextualType:p,argumentIndex:g,argumentCount:m,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}}(t,r,i);if(a){var s,l=a.argumentIndex,_=a.argumentCount,d=a.argumentsSpan,f=a.contextualType.getNonNullableType(),p=f.getCallSignatures();return 1!==p.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(p),node:t,symbol:(s=f.symbol,"__type"===s.name&&e.firstDefined(s.declarations,function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0})||s)},argumentsSpan:d,argumentIndex:l,argumentCount:_}}}(t,0,r,i)||s(t,n,r)}(t,n,r,i);if(a)return{value:a}},_=t;!e.isSourceFile(_)&&(a||!e.isBlock(_));_=_.parent){var d=l(_);if("object"==typeof d)return d.value}}(d,r,n,_,!!i&&"invoked"===i.kind);if(y){l.throwIfCancellationRequested();var v=function(t,n,r,i,o){var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!function(t,n,r){if(!e.isCallOrNewExpression(n))return!1;var i=n.getChildren(r);switch(t.kind){case 20:return e.contains(i,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(i,o);case 29:return a(t,r,n.expression);default:return!1}}(i,s.node,r))return;var u=n.getResolvedSignatureForSignatureHelp(s.node,l=[],c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var l,_=s.called;if(o&&!a(i,r,e.isIdentifier(_)?_.parent:_))return;if(0!==(l=e.getPossibleGenericSignatures(_,c,n)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var d=n.getSymbolAtLocation(_);return d&&{kind:1,symbol:d};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(y,_,n,d,f);return l.throwIfCancellationRequested(),v?_.runWithCancellationToken(l,function(e){return 0===v.kind?m(v.candidates,v.resolvedSignature,y,n,e):function(e,t,n,r){var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=r.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[h(e,c,r,g(o),n)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0}(v.symbol,y,n,e)}):e.isSourceFileJS(n)?function(t,n,r){if(2!==t.invocation.kind){var i=p(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=n.getTypeChecker();return void 0===a?void 0:e.firstDefined(n.getSourceFiles(),function(n){return e.firstDefined(n.getNamedDeclarations().get(a),function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(r,function(e){return m(a,a[0],t,n,e,!0)})})})}}(y,t,l):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(r||(r={})),t.getArgumentInfoForCompletions=function(e,t,n){var r=s(e,t,n);return!r||r.isTypeParameterList||0!==r.invocation.kind?void 0:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}};var y=[e.punctuationPart(27),e.spacePart()];function v(t,n,r,a){var o=(t.target||t).typeParameters,s=e.createPrinter({removeComments:!0}),c=(o||e.emptyArray).map(function(e){return x(e,n,r,a,s)}),u=t.thisParameter?[n.symbolToParameterDeclaration(t.thisParameter,r,70246400)]:[];return n.getExpandedParameters(t).map(function(t){var o=e.factory.createNodeArray(i(u,e.map(t,function(e){return n.symbolToParameterDeclaration(e,r,70246400)}))),l=e.mapToDisplayParts(function(e){s.writeList(2576,o,a,e)});return{isVariadic:!1,parameters:c,prefix:[e.punctuationPart(29)],suffix:i([e.punctuationPart(31)],l)}})}function b(t,n,r,a){var o=n.hasEffectiveRestParameter(t),s=e.createPrinter({removeComments:!0}),c=e.mapToDisplayParts(function(i){if(t.typeParameters&&t.typeParameters.length){var o=e.factory.createNodeArray(t.typeParameters.map(function(e){return n.typeParameterToDeclaration(e,r,70246400)}));s.writeList(53776,o,a,i)}}),u=n.getExpandedParameters(t);return u.map(function(t){return{isVariadic:o&&(1===u.length||!!(32768&t[t.length-1].checkFlags)),parameters:t.map(function(t){return function(t,n,r,i,a){var o=e.mapToDisplayParts(function(e){var o=n.symbolToParameterDeclaration(t,r,70246400);a.writeNode(4,o,i,e)}),s=n.isOptionalParameter(t.valueDeclaration);return{name:t.name,documentation:t.getDocumentationComment(n),displayParts:o,isOptional:s}}(t,n,r,a,s)}),prefix:i(c,[e.punctuationPart(20)]),suffix:[e.punctuationPart(21)]}})}function x(t,n,r,i,a){var o=e.mapToDisplayParts(function(e){var o=n.typeParameterToDeclaration(t,r,70246400);a.writeNode(4,o,i,e)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(n),displayParts:o,isOptional:!1}}}(e.SignatureHelp||(e.SignatureHelp={}))}(l||(l={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function n(t,n,r){var i=e.tryParseRawSourceMap(n);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(t,i,r)}e.getSourceMapper=function(t){var n=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),r=t.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function t(n){if(e.isDeclarationFileName(n.fileName)&&c(n.fileName)){var r=s(n.fileName).getSourcePosition(n);return r&&r!==n?t(r)||r:void 0}},tryGetGeneratedPosition:function(i){if(!e.isDeclarationFileName(i.fileName)){var a=c(i.fileName);if(a){var o=t.getProgram();if(!o.isSourceOfProjectReferenceRedirect(a.fileName)){var u=o.getCompilerOptions(),l=e.outFile(u),_=l?e.removeFileExtension(l)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),r,o.getCommonSourceDirectory(),n);if(void 0!==_){var d=s(_,i.fileName).getGeneratedPosition(i);return d===i?void 0:d}}}}},toLineColumnOffset:function(e,t){return u(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),a.clear()}};function o(t){return e.toPath(t,r,n)}function s(r,i){var s,c=o(r),l=a.get(c);if(l)return l;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(r,i);else if(t.readFile){var _=u(r);s=_&&e.getDocumentPositionMapper({getSourceFileLike:u,getCanonicalFileName:n,log:function(e){return t.log(e)}},r,e.getLineInfo(_.text,e.getLineStarts(_)),function(e){return!t.fileExists||t.fileExists(e)?t.readFile(e):void 0})}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var n=t.getProgram();if(n){var r=o(e),i=n.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}}function u(n){return t.getSourceFileLike?t.getSourceFileLike(n):c(n)||function(n){var r=o(n),a=i.get(r);if(void 0!==a)return a||void 0;if(t.readFile&&(!t.fileExists||t.fileExists(r))){var s=t.readFile(r),c=!!s&&function(t,n){return{text:t,lineMap:void 0,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(r,c),c||void 0}i.set(r,!1)}(n)}},e.getDocumentPositionMapper=function(r,i,a,o){var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1])return n(r,e.base64decode(e.sys,c[1]),i);s=void 0}}var u=[];s&&u.push(s),u.push(i+".map");for(var l=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),_=0,d=u;_2)&&(t.arguments.length<2||e.some(t.arguments,function(t){return 103===t.kind||e.isIdentifier(t)&&"undefined"===t.text}))}(t)||e.hasPropertyAccessExpressionWithName(t,"catch"))}function s(e){switch(e.kind){case 248:case 205:case 206:t.set(c(e),!0);case 103:case 78:return!0;default:return!1}}function c(e){return e.pos.toString()+":"+e.end.toString()}e.computeSuggestionDiagnostics=function(a,o,s){o.getSemanticDiagnostics(a,s);var u,l=[],_=o.getTypeChecker();a.commonJsModuleIndicator&&(e.programContainsEs6Modules(o)||e.compilerOptionsIndicateEs6Modules(o.getCompilerOptions()))&&function(t){return t.statements.some(function(t){switch(t.kind){case 229:return t.declarationList.declarations.some(function(t){return!!t.initializer&&e.isRequireCall(n(t.initializer),!0)});case 230:var r=t.expression;if(!e.isBinaryExpression(r))return e.isRequireCall(r,!0);var i=e.getAssignmentDeclarationKind(r);return 1===i||2===i;default:return!1}})}(a)&&l.push(e.createDiagnosticForNode(e.isBinaryExpression(u=a.commonJsModuleIndicator)?u.left:u,e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var d=e.isSourceFileJS(a);if(t.clear(),function n(r){if(d)(function(t){var n,r,i,a;if(205===t.kind){if(e.isVariableDeclaration(t.parent)&&(null===(n=t.symbol.members)||void 0===n?void 0:n.size))return!0;var o=e.getDeclarationOfExpando(t),s=null==o?void 0:o.symbol;return!(!s||!(null===(r=s.exports)||void 0===r?void 0:r.size)&&!(null===(i=s.members)||void 0===i?void 0:i.size))}return 248===t.kind&&!!(null===(a=t.symbol.members)||void 0===a?void 0:a.size)})(r)&&l.push(e.createDiagnosticForNode(e.isVariableDeclaration(r.parent)?r.parent.name:r,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(r)&&r.parent===a&&2&r.declarationList.flags&&1===r.declarationList.declarations.length){var o=r.declarationList.declarations[0].initializer;o&&e.isRequireCall(o,!0)&&l.push(e.createDiagnosticForNode(o,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(r)&&l.push(e.createDiagnosticForNode(r.name||r,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}e.isFunctionLikeDeclaration(r)&&function(n,r,a){(function(t,n){return!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&!!e.forEachReturnStatement(t.body,i)&&function(e,t){var n=t.getTypeAtLocation(e),r=t.getSignaturesOfType(n,0),i=r.length?t.getReturnTypeOfSignature(r[0]):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}(t,n)})(n,r)&&!t.has(c(n))&&a.push(e.createDiagnosticForNode(!n.name&&e.isVariableDeclaration(n.parent)&&e.isIdentifier(n.parent.name)?n.parent.name:n,e.Diagnostics.This_may_be_converted_to_an_async_function))}(r,_,l),r.forEachChild(n)}(a),e.getAllowSyntheticDefaultImports(o.getCompilerOptions()))for(var f=0,p=a.imports;f0?e.getNodeModifiers(t.declarations[0]):"",r=t&&16777216&t.flags?"optional":"";return n&&r?n+","+r:n||r},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(i,a,o,s,c,u,l){void 0===u&&(u=e.getMeaningFromLocation(c));var _,d,f,p,g=[],m=[],h=[],y=e.getCombinedLocalAndExportSymbolFlags(a),v=1&u?r(i,a,c):"",b=!1,x=107===c.kind&&e.isInExpressionContext(c),D=!1;if(107===c.kind&&!x)return{displayParts:[e.keywordPart(107)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==v||32&y||2097152&y){"getter"!==v&&"setter"!==v||(v="property");var C=void 0;if(_=x?i.getTypeAtLocation(c):i.getTypeOfSymbolAtLocation(a.exportSymbol||a,c),c.parent&&198===c.parent.kind){var S=c.parent.name;(S===c||S&&0===S.getFullWidth())&&(c=c.parent)}var k=void 0;if(e.isCallOrNewExpression(c)?k=c:(e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)||c.parent&&(e.isJsxOpeningLikeElement(c.parent)||e.isTaggedTemplateExpression(c.parent))&&e.isFunctionLike(a.valueDeclaration))&&(k=c.parent),k){C=i.getResolvedSignature(k);var E=201===k.kind||e.isCallExpression(k)&&105===k.expression.kind,T=E?_.getConstructSignatures():_.getCallSignatures();if(e.contains(T,C.target)||e.contains(T,C)||(C=T.length?T[0]:void 0),C){switch(E&&32&y?G(_.symbol,v="constructor"):2097152&y?(Q(v="alias"),g.push(e.spacePart()),E&&(g.push(e.keywordPart(102)),g.push(e.spacePart())),H(a)):G(a,v),v){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(e.punctuationPart(58)),g.push(e.spacePart()),16&e.getObjectFlags(_)||!_.symbol||(e.addRange(g,e.symbolToDisplayParts(i,_.symbol,s,void 0,5)),g.push(e.lineBreakPart())),E&&(g.push(e.keywordPart(102)),g.push(e.spacePart())),X(C,T,262144);break;default:X(C,T)}b=!0,D=T.length>1}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&y)||132===c.kind&&165===c.parent.kind){var w=c.parent;a.declarations&&e.find(a.declarations,function(e){return e===(132===c.kind?w.parent:w)})&&(T=165===w.kind?_.getNonNullableType().getConstructSignatures():_.getNonNullableType().getCallSignatures(),C=i.isImplementationOfOverload(w)?T[0]:i.getSignatureFromDeclaration(w),165===w.kind?G(_.symbol,v="constructor"):G(168!==w.kind||2048&_.symbol.flags||4096&_.symbol.flags?a:_.symbol,v),X(C,T),b=!0,D=T.length>1)}}if(32&y&&!b&&!x&&(q(),e.getDeclarationOfKind(a,218)?Q("local class"):g.push(e.keywordPart(83)),g.push(e.spacePart()),H(a),Y(a,o)),64&y&&2&u&&(W(),g.push(e.keywordPart(117)),g.push(e.spacePart()),H(a),Y(a,o)),524288&y&&2&u&&(W(),g.push(e.keywordPart(148)),g.push(e.spacePart()),H(a),Y(a,o),g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),e.addRange(g,e.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(a),s,8388608))),384&y&&(W(),e.some(a.declarations,function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)})&&(g.push(e.keywordPart(84)),g.push(e.spacePart())),g.push(e.keywordPart(91)),g.push(e.spacePart()),H(a)),1536&y&&!x){W();var A=e.getDeclarationOfKind(a,253);g.push(e.keywordPart(A&&A.name&&78===A.name.kind?139:138)),g.push(e.spacePart()),H(a)}if(262144&y&&2&u)if(W(),g.push(e.punctuationPart(20)),g.push(e.textPart("type parameter")),g.push(e.punctuationPart(21)),g.push(e.spacePart()),H(a),a.parent)K(),H(a.parent,s),Y(a.parent,s);else{var N=e.getDeclarationOfKind(a,158);if(void 0===N)return e.Debug.fail();(A=N.parent)&&(e.isFunctionLikeKind(A.kind)?(K(),C=i.getSignatureFromDeclaration(A),169===A.kind?(g.push(e.keywordPart(102)),g.push(e.spacePart())):168!==A.kind&&A.name&&H(A.symbol),e.addRange(g,e.signatureToDisplayParts(i,C,o,32))):251===A.kind&&(K(),g.push(e.keywordPart(148)),g.push(e.spacePart()),H(A.symbol),Y(A.symbol,o)))}if(8&y&&(v="enum member",G(a,"enum member"),288===(A=a.declarations[0]).kind)){var P=i.getConstantValue(A);void 0!==P&&(g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),g.push(e.displayPart(e.getTextOfConstantValue(P),"number"==typeof P?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&a.flags){if(W(),!b){var O=i.getAliasedSymbol(a);if(O!==a&&O.declarations&&O.declarations.length>0){var F=O.declarations[0],I=e.getNameOfDeclaration(F);if(I){var M=e.isModuleWithStringLiteralName(F)&&e.hasSyntacticModifier(F,2),L="default"!==a.name&&!M,R=t(i,O,e.getSourceFileOfNode(F),F,I,u,L?a:O);g.push.apply(g,R.displayParts),g.push(e.lineBreakPart()),f=R.documentation,p=R.tags}}}switch(a.declarations[0].kind){case 256:g.push(e.keywordPart(92)),g.push(e.spacePart()),g.push(e.keywordPart(139));break;case 263:g.push(e.keywordPart(92)),g.push(e.spacePart()),g.push(e.keywordPart(a.declarations[0].isExportEquals?62:87));break;case 267:g.push(e.keywordPart(92));break;default:g.push(e.keywordPart(99))}g.push(e.spacePart()),H(a),e.forEach(a.declarations,function(t){if(257===t.kind){var n=t;if(e.isExternalModuleImportEqualsDeclaration(n))g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),g.push(e.keywordPart(142)),g.push(e.punctuationPart(20)),g.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(n)),e.SymbolDisplayPartKind.stringLiteral)),g.push(e.punctuationPart(21));else{var r=i.getSymbolAtLocation(n.moduleReference);r&&(g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),H(r,s))}return!0}})}if(!b)if(""!==v){if(_)if(x?(W(),g.push(e.keywordPart(107))):G(a,v),"property"===v||"JSX attribute"===v||3&y||"local var"===v||x){if(g.push(e.punctuationPart(58)),g.push(e.spacePart()),_.symbol&&262144&_.symbol.flags){var B=e.mapToDisplayParts(function(t){var n=i.typeParameterToDeclaration(_,s,70246400);V().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(s)),t)});e.addRange(g,B)}else e.addRange(g,e.typeToDisplayParts(i,_,s));if(a.target&&a.target.tupleLabelDeclaration){var j=a.target.tupleLabelDeclaration;e.Debug.assertNode(j.name,e.isIdentifier),g.push(e.spacePart()),g.push(e.punctuationPart(20)),g.push(e.textPart(e.idText(j.name))),g.push(e.punctuationPart(21))}}else(16&y||8192&y||16384&y||131072&y||98304&y||"method"===v)&&(T=_.getNonNullableType().getCallSignatures()).length&&(X(T[0],T),D=T.length>1)}else v=n(i,a,c);if(0!==m.length||D||(m=a.getContextualDocumentationComment(s,i)),0===m.length&&4&y&&a.parent&&e.forEach(a.parent.declarations,function(e){return 294===e.kind}))for(var U=0,z=a.declarations;U0))break}return 0!==h.length||D||(h=a.getJsDocTags()),0===m.length&&f&&(m=f),0===h.length&&p&&(h=p),{displayParts:g,documentation:m,symbolKind:v,tags:0===h.length?void 0:h};function V(){return d||(d=e.createPrinter({removeComments:!0})),d}function W(){g.length&&g.push(e.lineBreakPart()),q()}function q(){l&&(Q("alias"),g.push(e.spacePart()))}function K(){g.push(e.spacePart()),g.push(e.keywordPart(100)),g.push(e.spacePart())}function H(t,n){l&&t===a&&(t=l);var r=e.symbolToDisplayParts(i,t,n||o,void 0,7);e.addRange(g,r),16777216&a.flags&&g.push(e.punctuationPart(57))}function G(t,n){W(),n&&(Q(n),t&&!e.some(t.declarations,function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name})&&(g.push(e.spacePart()),H(t)))}function Q(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void g.push(e.textOrKeywordPart(t));default:return g.push(e.punctuationPart(20)),g.push(e.textOrKeywordPart(t)),void g.push(e.punctuationPart(21))}}function X(t,n,r){void 0===r&&(r=0),e.addRange(g,e.signatureToDisplayParts(i,t,s,32|r)),n.length>1&&(g.push(e.spacePart()),g.push(e.punctuationPart(20)),g.push(e.operatorPart(39)),g.push(e.displayPart((n.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),g.push(e.spacePart()),g.push(e.textPart(2===n.length?"overload":"overloads")),g.push(e.punctuationPart(21))),m=t.getDocumentationComment(i),h=t.getJsDocTags(),n.length>1&&0===m.length&&0===h.length&&(m=n[0].getDocumentationComment(i),h=n[0].getJsDocTags())}function Y(t,n){var r=e.mapToDisplayParts(function(r){var a=i.symbolToTypeParameterDeclarations(t,n,70246400);V().writeList(53776,a,e.getSourceFileOfNode(e.getParseTreeNode(n)),r)});e.addRange(g,r)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(l||(l={})),function(e){function t(t,n){var i=[],a=n.compilerOptions?r(n.compilerOptions,i):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===a[s]&&(a[s]=o[s]);for(var c=0,u=e.transpileOptionValueCompilerOptions;c>=5;return n}(d,_),0,r),o[s]=(e.Debug.assert((31&(l=1+((c=d)>>(u=_)&31)))===l,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),c&~(31<=n.pos?t.pos:a.end:t.pos}(o,n,r),n.end,function(s){return d(n,o,t.SmartIndenter.getIndentationForNode(o,n,r,i.options),function(e,n,r){for(var i,a=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(n,e,i,r))return n.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,r),s,i,a,function(t,n){if(!t.length)return a;var r=t.filter(function(t){return e.rangeOverlapsWithStartEnd(n,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!r.length)return a;var i=0;return function(t){for(;;){if(i>=r.length)return!1;var n=r[i];if(t.end<=n.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,n.start,n.start+n.length))return!0;i++}};function a(){return!1}}(r.parseDiagnostics,n),r)})}function d(n,r,i,a,o,s,c,u,l){var _,d,p,g,m=s.options,h=s.getRules,y=s.host,v=new t.FormattingContext(l,c,m),b=-1,x=[];if(o.advance(),o.isOnToken()){var D=l.getLineAndCharacterOfPosition(r.getStart(l)).line,C=D;r.decorators&&(C=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,l)).line),function r(i,a,s,c,f,h){if(e.rangeOverlapsWithStartEnd(n,i.getStart(l),i.getEnd())){var y=k(i,s,f,h),v=a;for(e.forEachChild(i,function(e){C(e,-1,i,y,s,c,!1)},function(n){!function(n,r,a,s){e.Debug.assert(e.isNodeArray(n));var c=function(e,t){switch(e.kind){case 165:case 248:case 205:case 164:case 163:case 206:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 200:case 201:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 172:if(e.typeArguments===t)return 29;break;case 176:return 18}return 0}(r,n),u=s,_=a;if(0!==c)for(;o.isOnToken()&&!((h=o.readTokenInfo(r)).token.end>n.pos);)if(h.token.kind===c){_=l.getLineAndCharacterOfPosition(h.token.pos).line,S(h,r,s,r);var d=void 0;if(-1!==b)d=b;else{var f=e.getLineStartPositionForPosition(h.token.pos,l);d=t.SmartIndenter.findFirstNonWhitespaceColumn(f,h.token.pos,l,m)}u=k(r,a,d,m.indentSize)}else S(h,r,s,r);for(var p=-1,g=0;gi.end)break;11!==i.kind?S(x,i,y,i):o.advance()}if(!i.parent&&o.isOnEOF()){var D=o.readEOFTokenRange();D.end<=i.end&&_&&A(D,l.getLineAndCharacterOfPosition(D.pos).line,i,_,p,d,a,y)}}function C(a,s,c,u,_,d,f,p){var h=a.getStart(l),y=l.getLineAndCharacterOfPosition(h).line,x=y;a.decorators&&(x=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,l)).line);var D=-1;if(f&&e.rangeContainsRange(n,c)&&-1!==(D=function(n,r,i,a,o){if(e.rangeOverlapsWithStartEnd(a,n,r)||e.rangeContainsStartEnd(a,n,r)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(n).line,c=e.getLineStartPositionForPosition(n,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,n,l,m);if(s!==i||n===u){var _=t.SmartIndenter.getBaseIndentation(m);return _>u?_:u}}return-1}(h,a.end,_,n,s))&&(s=D),!e.rangeOverlapsWithStartEnd(n,a.pos,a.end))return a.endh){C.token.pos>h&&o.skipToStartOf(a);break}S(C,i,u,i)}if(!o.isOnToken())return s;if(e.isToken(a)){var C=o.readTokenInfo(a);if(11!==a.kind)return e.Debug.assert(C.token.end===a.end,"Token end is child end"),S(C,i,u,a),s}var k=function(e,n,r,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(m,e)?m.indentSize:0;return o===n?{indentation:n===g?b:a.getIndentation(),delta:Math.min(m.indentSize,a.getDelta(e)+s)}:-1===r?20===e.kind&&n===g?{indentation:b,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,n,l)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,n,l)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:r,delta:s}}(a,y,D,i,u,160===a.kind?y:d);if(r(a,v,y,x,k.indentation,k.delta),11===a.kind){var E={pos:a.getStart(),end:a.getEnd()};if(E.pos!==E.end){var T=c.getChildren(l),w=T[e.findIndex(T,function(e){return e.pos===a.pos})-1];if(w&&l.getLineAndCharacterOfPosition(E.end).line!==l.getLineAndCharacterOfPosition(w.end).line){var A=l.getLineAndCharacterOfPosition(E.pos).line===l.getLineAndCharacterOfPosition(w.end).line;P(E,k.indentation,A,!1,!0)}}}return v=i,p&&196===c.kind&&-1===s&&(s=k.indentation),s}function S(t,r,i,a,s){e.Debug.assert(e.rangeContainsRange(r,t.token));var c=o.lastTrailingTriviaWasNewLine(),d=!1;t.leadingTrivia&&T(t.leadingTrivia,r,v,i);var f=0,p=e.rangeContainsRange(n,t.token),m=l.getLineAndCharacterOfPosition(t.token.pos);if(p){var h=u(t.token),y=_;if(f=w(t.token,m,r,v,i),!h)if(0===f){var x=y&&l.getLineAndCharacterOfPosition(y.end).line;d=c&&m.line!==x}else d=1===f}if(t.trailingTrivia&&T(t.trailingTrivia,r,v,i),d){var D=p&&!u(t.token)?i.getIndentationForToken(m.line,t.token.kind,a,!!s):-1,C=!0;if(t.leadingTrivia){var S=i.getIndentationForComment(t.token.kind,D,a);C=E(t.leadingTrivia,S,C,function(e){return N(e.pos,S,!1)})}-1!==D&&C&&(N(t.token.pos,D,1===f),g=m.line,b=D)}o.advance(),v=r}}(r,r,D,C,i,a)}if(!o.isOnToken()){var S=o.getCurrentLeadingTrivia();S&&(E(S,i,!1,function(e){return w(e,l.getLineAndCharacterOfPosition(e.pos),r,r,void 0)}),!1!==m.trimTrailingWhitespace&&O(l.getLineAndCharacterOfPosition(_?_.end:n.pos).line,l.getLineAndCharacterOfPosition(n.end).line+1,_))}return x;function k(n,r,i,a){return{getIndentationForComment:function(e,t,n){switch(e){case 19:case 23:case 21:return i+o(n)}return-1!==t?t:i},getIndentationForToken:function(t,a,s,c){return!c&&function(t,i,a){switch(i){case 18:case 19:case 21:case 90:case 114:case 59:return!1;case 43:case 31:switch(a.kind){case 272:case 273:case 271:return!1}break;case 22:case 23:if(189!==a.kind)return!1}return r!==t&&!(n.decorators&&i===function(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 249:return 83;case 250:return 117;case 248:return 97;case 252:return 252;case 166:return 134;case 167:return 145;case 164:if(t.asteriskToken)return 41;case 162:case 159:var n=e.getNameOfDeclaration(t);if(n)return n.kind}}(n))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e,r){t.SmartIndenter.shouldIndentChildNode(m,r,n,l)&&(i+=e?m.indentSize:-m.indentSize,a=t.SmartIndenter.shouldIndentChildNode(m,n)?m.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(m,n,e,l,!0)?a:0}}function E(t,r,i,a){for(var o=0,s=t;o0){var S=f(C,m);M(x,D.character,S)}else I(x,D.character)}}}else i||N(n.pos,r,!1)}function O(t,n,r){for(var i=t;io)){var s=F(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),I(s,o+1-s))}}}function F(t,n){for(var r=n;r>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(r));)r--;return r!==n?r+1:-1}function I(t,n){n&&x.push(e.createTextChangeFromStartLength(t,n,""))}function M(t,n,r){(n||r)&&x.push(e.createTextChangeFromStartLength(t,n,r))}}function f(t,n){if((!i||i.tabSize!==n.tabSize||i.indentSize!==n.indentSize)&&(i={tabSize:n.tabSize,indentSize:n.indentSize},a=o=void 0),n.convertTabsToSpaces){var r=void 0,s=Math.floor(t/n.indentSize),c=t%n.indentSize;return o||(o=[]),void 0===o[s]?(r=e.repeatString(" ",n.indentSize*s),o[s]=r):r=o[s],c?r+e.repeatString(" ",c):r}var u=Math.floor(t/n.tabSize),l=t-u*n.tabSize,_=void 0;return a||(a=[]),void 0===a[u]?a[u]=_=e.repeatString("\t",u):_=a[u],l?_+e.repeatString(" ",l):_}t.createTextRangeWithKind=function(t,n,r){var i={pos:t,end:n,kind:r};return e.Debug.isDebugging&&Object.defineProperty(i,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(r)}}),i},function(e){e[e.Unknown=-1]="Unknown"}(n||(n={})),t.formatOnEnter=function(t,n,r){var i=n.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,n);e.isWhiteSpaceSingleLine(n.text.charCodeAt(a));)a--;return e.isLineBreak(n.text.charCodeAt(a))&&a--,_({pos:e.getStartPositionOfLine(i-1,n),end:a+1},n,r,2)},t.formatOnSemicolon=function(e,t,n){return l(c(s(e,26,t)),t,n,3)},t.formatOnOpeningCurly=function(t,n,r){var i=s(t,18,n);if(!i)return[];var a=c(i.parent);return _({pos:e.getLineStartPositionForPosition(a.getStart(n),n),end:t},n,r,4)},t.formatOnClosingCurly=function(e,t,n){return l(c(s(e,19,t)),t,n,5)},t.formatDocument=function(e,t){return _({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,n,r,i){return _({pos:e.getLineStartPositionForPosition(t,r),end:n},r,i,1)},t.formatNodeGivenIndentation=function(e,n,r,i,a,o){var s={pos:0,end:n.text.length};return t.getFormattingScanner(n.text,r,s.pos,s.end,function(t){return d(s,e,i,a,t,o,1,function(e){return!1},n)})},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(r||(r={})),t.getRangeOfEnclosingComment=function(t,n,r,i){void 0===i&&(i=e.getTokenAtPosition(t,n));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=n&&nn.end}var g=s(l,e,i),h=g.line===t.line||d(l,e,t.line,i);if(f){var y=m(e,i,u,!h);if(-1!==y)return y+r;if(-1!==(y=c(e,l,t,h,i,u)))return y+r}D(u,l,e,i,o)&&!h&&(r+=u.indentSize);var v=_(l,e,t.line,i);l=(e=l).parent,t=v?i.getLineAndCharacterOfPosition(e.getStart(i)):g}return r+a(u)}function s(e,t,n){var r=f(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function c(t,n,r,i,a,o){return!e.isDeclaration(t)&&!e.isStatementButNotDeclaration(t)||294!==n.kind&&i?-1:y(r,a,o)}function u(t,n,r,i){var a=e.findNextToken(t,n,i);return a?18===a.kind?1:19===a.kind&&r===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,n,r,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,n))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===r}function d(t,n,r,i){if(231===t.kind&&t.elseStatement===n){var a=e.findChildOfKind(t,90,i);return e.Debug.assert(void 0!==a),l(a,i).line===r}return!1}function f(e,t){return e.parent&&p(e.getStart(t),e.getEnd(),e.parent,t)}function p(t,n,r,i){switch(r.kind){case 172:return a(r.typeArguments);case 197:return a(r.properties);case 196:return a(r.elements);case 176:return a(r.members);case 248:case 205:case 206:case 164:case 163:case 168:case 165:case 174:case 169:return a(r.typeParameters)||a(r.parameters);case 249:case 218:case 250:case 251:case 326:return a(r.typeParameters);case 201:case 200:return a(r.typeArguments)||a(r.arguments);case 247:return a(r.declarations);case 261:case 265:return a(r.elements);case 193:case 194:return a(r.elements)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,n){for(var r=e.getChildren(n),i=1;i=0&&n=0;o--)if(27!==t[o].kind){if(r.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return y(a,r,i);a=l(t[o],r)}return-1}function y(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,t,n)}function v(t,n,r,i){for(var a=0,o=0,s=t;sr.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(n,r,void 0,!0),_=t.getRangeOfEnclosingComment(r,n,c||null);if(_&&3===_.kind)return function(t,n,r,i){var a=e.getLineAndCharacterOfPosition(t,n).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),n,t,r);var s=e.getStartPositionOfLine(a,t),c=v(s,n,t,r),u=c.column;return 0===u?u:42===t.text.charCodeAt(s+c.character)?u-1:u}(r,n,i,_);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(r)<=n&&n0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,r)}(r,n,i);if(27===c.kind&&213!==c.parent.kind){var f=function(t,n,r){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?h(i.list.getChildren(),i.listItemIndex-1,n,r):-1}(c,r,i);if(-1!==f)return f}var y=function(e,t,n){return t&&p(e,e,t,n)}(n,c.parent,r);return y&&!e.rangeContainsRange(y,c)?g(y,r,i)+i.indentSize:function(t,n,r,i,s,c){for(var _,d=r;d;){if(e.positionBelongsToNode(d,n,t)&&D(c,d,_,t,!0)){var f=l(d,t),p=u(r,d,i,t);return o(d,f,void 0,0!==p?s&&2===p?c.indentSize:0:i!==f.line?c.indentSize:0,t,!0,c)}var g=m(d,t,c,!0);if(-1!==g)return g;_=d,d=d.parent}return a(c)}(r,n,c,d,s,i)},n.getIndentationForNode=function(e,t,n,r){var i=n.getLineAndCharacterOfPosition(e.getStart(n));return o(e,i,t,0,n,!1,r)},n.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),n.isArgumentAndStartLineOverlapsExpressionBeingCalled=_,n.childStartsOnTheSameLineWithElseInIfStatement=d,n.argumentStartsOnSameLineAsPreviousArgument=function(t,n,r,i){if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,function(e){return e.pos===n.pos});if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;if(r===e.getLineAndCharacterOfPosition(i,t.arguments[o-1].getEnd()).line)return!0}return!1},n.getContainingList=f,n.findFirstNonWhitespaceCharacterAndColumn=v,n.findFirstNonWhitespaceColumn=b,n.nodeWillIndentChild=x,n.shouldIndentChildNode=D}((t=e.formatting||(e.formatting={})).SmartIndenter||(t.SmartIndenter={}))}(l||(l={})),function(e){!function(t){function n(t){var n=t.__pos;return e.Debug.assert("number"==typeof n),n}function r(t,n){e.Debug.assert("number"==typeof n),t.__pos=n}function o(t){var n=t.__end;return e.Debug.assert("number"==typeof n),n}function s(t,n){e.Debug.assert("number"==typeof n),t.__end=n}var c,u;function l(t,n){return e.skipTrivia(t,n,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"}(c=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include"}(u=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var _,d={leadingTriviaOption:c.Exclude,trailingTriviaOption:u.Exclude};function f(e,t,n,r){return{pos:p(e,t,r),end:g(e,n,r)}}function p(t,n,r){var i=r.leadingTriviaOption;if(i===c.Exclude)return n.getStart(t);if(i===c.StartLine)return e.getLineStartPositionForPosition(n.getStart(t),t);if(i===c.JSDoc){var a=e.getJSDocCommentRanges(n,t.text);if(null==a?void 0:a.length)return e.getLineStartPositionForPosition(a[0].pos,t)}var o=n.getFullStart(),s=n.getStart(t);if(o===s)return s;var u=e.getLineStartPositionForPosition(o,t);if(e.getLineStartPositionForPosition(s,t)===u)return i===c.IncludeAll?o:s;var _=o>0?1:0,d=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,u)+_,t);return d=l(t.text,d),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,d),t)}function g(t,n,r){var i=n.end,a=r.trailingTriviaOption;if(a===u.Exclude||e.isExpression(n)&&a!==u.Include)return i;var o=e.skipTrivia(t.text,i,!0);return o===i||a!==u.Include&&!e.isLineBreak(t.text.charCodeAt(o-1))?i:o}function m(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&197===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(_||(_={})),t.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var h,y,v=function(){function t(t,n){this.newLineCharacter=t,this.formatContext=n,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=function(n){return new t(e.getNewLineOrDefaultFromHost(n.host,n.formatContext.options),n.formatContext)},t.with=function(e,n){var r=t.fromContext(e);return n(r),r.getChanges()},t.prototype.pushRaw=function(t,n){e.Debug.assertEqual(t.fileName,n.fileName);for(var r=0,i=n.textChanges;r=t.getLineAndCharacterOfPosition(u.range.end).line+2)break}if(t.statements.length&&(void 0===l&&(l=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),l",joiner:", "})},t.prototype.getOptionsForInsertNodeBefore=function(t,n,r){return e.isStatement(t)||e.isClassElement(t)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(n)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(r?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,n,r){var a=e.firstOrUndefined(n.body.statements);a&&n.body.multiLine?this.insertNodeBefore(t,a,r):this.replaceConstructorBody(t,n,i([r],n.body.statements))},t.prototype.insertNodeAtConstructorEnd=function(t,n,r){var a=e.lastOrUndefined(n.body.statements);a&&n.body.multiLine?this.insertNodeAfter(t,a,r):this.replaceConstructorBody(t,n,i(n.body.statements,[r]))},t.prototype.replaceConstructorBody=function(t,n,r){this.replaceNode(t,n.body,e.factory.createBlock(r,!0))},t.prototype.insertNodeAtEndOfScope=function(t,n,r){var i=p(t,n.getLastToken(),{});this.insertNodeAt(t,i,r,{prefix:e.isLineBreak(t.text.charCodeAt(n.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertNodeAtClassStart=function(e,t,n){this.insertNodeAtStartWorker(e,t,n)},t.prototype.insertNodeAtObjectStart=function(e,t,n){this.insertNodeAtStartWorker(e,t,n)},t.prototype.insertNodeAtStartWorker=function(e,t,n){var r,i=null!==(r=this.guessIndentationFromExistingMembers(e,t))&&void 0!==r?r:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,x(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,n){for(var r,i=n,a=0,o=x(n);a=0;r--){var i=n[r],a=i.span,o=i.newText;t=""+t.substring(0,a.start)+o+t.substring(e.textSpanEnd(a))}return t}function C(t){var r=e.visitEachChild(t,C,e.nullTransformationContext,S,C),i=e.nodeIsSynthesized(r)?r:Object.create(r);return e.setTextRangePosEnd(i,n(t),o(t)),i}function S(t,r,i,a,s){var c=e.visitNodes(t,r,i,a,s);if(!c)return c;var u=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(u,n(t),o(t)),u}function k(t,n){return!(e.isInComment(t,n)||e.isInString(t,n)||e.isInTemplateString(t,n)||e.isInJSXText(t,n))}function E(e,t,n,r){void 0===r&&(r={leadingTriviaOption:c.IncludeAll});var i=p(t,n,r),a=g(t,n,r);e.deleteRange(t,{pos:i,end:a})}function T(t,n,r,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,r)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!n.has(i),"Deleting a node twice"),n.add(i),t.deleteRange(r,{pos:b(r,i),end:o===a.length-1?g(r,i,{}):b(r,a[o+1])})):E(t,r,i)}t.ChangeTracker=v,t.getNewFileText=function(e,t,n,r){return h.newFileChangesWorker(void 0,t,e,n,r)},function(t){function n(t,n,r,a,o){var s=r.map(function(e){return 4===e?"":i(e,t,a).text}).join(a),c=e.createSourceFile("any file name",s,99,!0,n);return D(s,e.formatting.formatDocument(c,o))+a}function i(t,n,i){var a=function(t){var n=0,i=e.createTextWriter(t);function a(t,r){if(r||!function(t){return e.skipTrivia(t,0)===t.length}(t)){n=i.getTextPos();for(var a=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1));)a++;n-=a}}return{onEmitNode:function(e,t,i){t&&r(t,n),i(e,t),t&&s(t,n)},onBeforeEmitNodeArray:function(e){e&&r(e,n)},onAfterEmitNodeArray:function(e){e&&s(e,n)},onBeforeEmitToken:function(e){e&&r(e,n)},onAfterEmitToken:function(e){e&&s(e,n)},write:function(e){i.write(e),a(e,!1)},writeComment:function(e){i.writeComment(e)},writeKeyword:function(e){i.writeKeyword(e),a(e,!1)},writeOperator:function(e){i.writeOperator(e),a(e,!1)},writePunctuation:function(e){i.writePunctuation(e),a(e,!1)},writeTrailingSemicolon:function(e){i.writeTrailingSemicolon(e),a(e,!1)},writeParameter:function(e){i.writeParameter(e),a(e,!1)},writeProperty:function(e){i.writeProperty(e),a(e,!1)},writeSpace:function(e){i.writeSpace(e),a(e,!1)},writeStringLiteral:function(e){i.writeStringLiteral(e),a(e,!1)},writeSymbol:function(e,t){i.writeSymbol(e,t),a(e,!1)},writeLine:function(e){i.writeLine(e)},increaseIndent:function(){i.increaseIndent()},decreaseIndent:function(){i.decreaseIndent()},getText:function(){return i.getText()},rawWrite:function(e){i.rawWrite(e),a(e,!1)},writeLiteral:function(e){i.writeLiteral(e),a(e,!0)},getTextPos:function(){return i.getTextPos()},getLine:function(){return i.getLine()},getColumn:function(){return i.getColumn()},getIndent:function(){return i.getIndent()},isAtStartOfLine:function(){return i.isAtStartOfLine()},hasTrailingComment:function(){return i.hasTrailingComment()},hasTrailingWhitespace:function(){return i.hasTrailingWhitespace()},clear:function(){i.clear(),n=0}}}(i);return e.createPrinter({newLine:"\n"===i?1:0,neverAsciiEscape:!0,preserveSourceNewlines:!0},a).writeNode(4,t,n,a),{text:a.getText(),node:C(t)}}t.getTextChangesFromChanges=function(t,n,r,o){return e.mapDefined(e.group(t,function(e){return e.sourceFile.path}),function(t){for(var s=t[0].sourceFile,c=e.stableSort(t,function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end}),u=function(t){e.Debug.assert(c[t].range.end<=c[t+1].range.pos,"Changes overlap",function(){return JSON.stringify(c[t].range)+" and "+JSON.stringify(c[t+1].range)})},l=0;l0?{fileName:s.fileName,textChanges:d}:void 0})},t.newFileChanges=function(t,r,i,a,o){var s=n(t,e.getScriptKindFromFileName(r),i,a,o);return{fileName:r,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=n,t.getNonformattedText=i}(h||(h={})),t.applyChanges=D,t.isValidLocationToAddComment=k,function(t){function n(t,n,r){if(r.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(n,r.pos-1));t.deleteRange(n,{pos:i.getStart(n),end:r.end})}else E(t,n,e.getAncestor(r,258))}t.deleteDeclaration=function(t,r,i,a){switch(a.kind){case 159:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?t.replaceNodeWithText(i,a,"()"):T(t,r,i,a);break;case 258:case 257:E(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?c.Exclude:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;case 195:var s=a.parent;194===s.kind&&a!==e.last(s.elements)?E(t,i,a):T(t,r,i,a);break;case 246:!function(t,n,r,i){var a=i.parent;if(284!==a.kind)if(1===a.declarations.length){var o=a.parent;switch(o.kind){case 236:case 235:t.replaceNode(r,i,e.factory.createObjectLiteralExpression());break;case 234:E(t,r,a);break;case 229:E(t,r,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}else T(t,n,r,i);else t.deleteNodeRange(r,e.findChildOfKind(a,20,r),e.findChildOfKind(a,21,r))}(t,r,i,a);break;case 158:T(t,r,i,a);break;case 262:var l=a.parent;1===l.elements.length?n(t,i,l):T(t,r,i,a);break;case 260:n(t,i,a);break;case 26:E(t,i,a,{trailingTriviaOption:u.Exclude});break;case 97:E(t,i,a,{leadingTriviaOption:c.Exclude});break;case 249:case 248:E(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;default:e.isImportClause(a.parent)&&a.parent.name===a?function(t,n,r){if(r.namedBindings){var i=r.name.getStart(n),a=e.getTokenAtPosition(n,r.name.end);if(a&&27===a.kind){var o=e.skipTrivia(n.text,a.end,!1,!0);t.deleteRange(n,{pos:i,end:o})}else E(t,n,r.name)}else E(t,n,r.parent)}(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?T(t,r,i,a):E(t,i,a)}}}(y||(y={})),t.deleteNode=E}(e.textChanges||(e.textChanges={}))}(l||(l={})),function(e){!function(t){var n=e.createMultiMap(),r=new e.Map;function o(t){return e.isArray(t)?e.formatStringFromArgs(e.getLocaleSpecificMessage(t[0]),t.slice(1)):e.getLocaleSpecificMessage(t)}function s(e,t,n,r,i,a){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:a?[a]:void 0}}function u(e,t){return{changes:e,commands:t}}function l(t,n,r){for(var i=0,a=_(t);i1));o++);var u=i<2;return function(e){var t=e.fixId,n=e.fixAllDescription,r=c(e,["fixId","fixAllDescription"]);return u?r:a(a({},r),{fixId:t,fixAllDescription:n})}}(n,r))})},t.getAllFixes=function(t){return r.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=u,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,n,r){var i=[];return u(e.textChanges.ChangeTracker.with(t,function(e){return l(t,n,function(t){return r(e,t,i)})}),0===i.length?void 0:i)},t.eachDiagnostic=l}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){var t,n;t=e.refactor||(e.refactor={}),n=new e.Map,t.registerRefactor=function(e,t){n.set(e,t)},t.getApplicableRefactors=function(t){return e.arrayFrom(e.flatMapIterator(n.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?void 0:e.getAvailableActions(t)}))},t.getEditsForRefactor=function(e,t,r){var i=n.get(t);return i&&i.getEditsForAction(e,r)}}(l||(l={})),function(e){!function(t){var n="addConvertToUnknownForNonOverlappingTypes",r=[e.Diagnostics.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.code];function i(t,n,r){var i=e.getTokenAtPosition(n,r),a=e.Debug.checkDefined(e.findAncestor(i,function(t){return e.isAsExpression(t)||e.isTypeAssertionExpression(t)}),"Expected to find an assertion expression"),o=e.isAsExpression(a)?e.factory.createAsExpression(a.expression,e.factory.createKeywordTypeNode(151)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(151),a.expression);t.replaceNode(n,a.expression,o)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,r.span.start)});return[t.createCodeFixAction(n,a,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,n,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.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.code],getCodeActions:function(n){var r=n.sourceFile,i=e.textChanges.ChangeTracker.with(n,function(t){var n=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);t.insertNodeAtEndOfScope(r,r,n)});return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(l||(l={})),function(e){!function(t){var n="addMissingAsync",r=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function i(r,i,a,o){var s=a(function(t){return function(t,n,r,i){if(!i||!i.has(e.getNodeId(r))){null==i||i.add(e.getNodeId(r));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(r,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(256|e.getSyntacticModifierFlags(r))));t.replaceNode(n,r,a)}}(t,r.sourceFile,i,o)});return t.createCodeFixAction(n,s,e.Diagnostics.Add_async_modifier_to_containing_function,n,e.Diagnostics.Add_all_missing_async_modifiers)}function a(t,n){if(n){var r=e.getTokenAtPosition(t,n.start);return e.findAncestor(r,function(r){return r.getStart(t)e.textSpanEnd(n)?"quit":(e.isArrowFunction(r)||e.isMethodDeclaration(r)||e.isFunctionExpression(r)||e.isFunctionDeclaration(r))&&e.textSpansEqual(n,e.createTextSpanFromNode(r,t))})}}t.registerCodeFix({fixIds:[n],errorCodes:r,getCodeActions:function(t){var n=t.sourceFile,r=t.errorCode,o=t.cancellationToken,s=t.span,c=e.find(t.program.getDiagnosticsProducingTypeChecker().getDiagnostics(n,o),function(t,n){return function(r){var i=r.start,a=r.length,o=r.relatedInformation,s=r.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&s===n&&!!o&&e.some(o,function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})}}(s,r)),u=a(n,c&&c.relatedInformation&&e.find(c.relatedInformation,function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}));if(u)return[i(t,u,function(n){return e.textChanges.ChangeTracker.with(t,n)})]},getAllCodeActions:function(n){var o=n.sourceFile,s=new e.Set;return t.codeFixAll(n,r,function(t,r){var c=r.relatedInformation&&e.find(r.relatedInformation,function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),u=a(o,c);if(u)return i(n,u,function(e){return e(t),[]},s)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="addMissingAwait",r=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],o=i([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,r],a);function s(n,r,i,a,s,c){var u=n.sourceFile,d=function(t,n,r,i,a){var s=function(t,n){if(e.isPropertyAccessExpression(t.parent)&&e.isIdentifier(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(e.isIdentifier(t))return{identifiers:[t],isCompleteFix:!0};if(e.isBinaryExpression(t)){for(var r=void 0,i=!0,a=0,o=[t.left,t.right];ae.textSpanEnd(r)?"quit":e.isExpression(n)&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))});return s&&function(t,n,r,i,a){var o=a.getDiagnosticsProducingTypeChecker().getDiagnostics(t,i);return e.some(o,function(t){var i=t.start,a=t.length,o=t.relatedInformation,s=t.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},r)&&s===n&&!!o&&e.some(o,function(t){return t.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}(t,n,r,i,a)&&l(s)?s:void 0}function l(t){return 32768&t.kind||!!e.findAncestor(t,function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t||e.isBlock(t)&&(248===t.parent.kind||205===t.parent.kind||206===t.parent.kind||164===t.parent.kind)})}function _(t,n,i,o,s,c){if(e.isBinaryExpression(s))for(var u=0,l=[s.left,s.right];u0)return[t.createCodeFixAction(n,a,e.Diagnostics.Add_const_to_unresolved_variable,n,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[n],getAllCodeActions:function(n){var a=new e.Set;return t.codeFixAll(n,r,function(e,t){return i(e,t.file,t.start,n.program,a)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="addMissingDeclareProperty",r=[e.Diagnostics.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.code];function i(t,n,r,i){var a=e.getTokenAtPosition(n,r);if(e.isIdentifier(a)){var o=a.parent;162!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(n,133,o)}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,r.span.start)});if(a.length>0)return[t.createCodeFixAction(n,a,e.Diagnostics.Prefix_with_declare,n,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[n],getAllCodeActions:function(n){var a=new e.Set;return t.codeFixAll(n,r,function(e,t){return i(e,t.file,t.start,a)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="addMissingInvocationForDecorator",r=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,n,r){var i=e.getTokenAtPosition(n,r),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(a.expression,void 0,void 0);t.replaceNode(n,a.expression,o)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,r.span.start)});return[t.createCodeFixAction(n,a,e.Diagnostics.Call_decorator_expression,n,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="addNameToNamelessParameter",r=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(t,n,r){var i=e.getTokenAtPosition(n,r);if(!e.isIdentifier(i))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(i.kind));var a=i.parent;if(!e.isParameter(a))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind));var o=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createParameterDeclaration(void 0,a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,e.factory.createTypeReferenceNode(i,void 0),a.initializer);t.replaceNode(n,i,s)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,r.span.start)});return[t.createCodeFixAction(n,a,e.Diagnostics.Add_parameter_name,n,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="annotateWithTypeFromJSDoc",r=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(t,n){var r=e.getTokenAtPosition(t,n);return e.tryCast(e.isParameter(r.parent)?r.parent.parent:r.parent,a)}function a(t){return function(t){return e.isFunctionLikeDeclaration(t)||246===t.kind||161===t.kind||162===t.kind}(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,n,r){if(e.isFunctionLikeDeclaration(r)&&(e.getJSDocReturnType(r)||r.parameters.some(function(t){return!!e.getJSDocType(t)}))){if(!r.typeParameters){var i=e.getJSDocTypeParameterDeclarations(r);i.length&&t.insertTypeParameters(n,r,i)}var a=e.isArrowFunction(r)&&!e.findChildOfKind(r,20,n);a&&t.insertNodeBefore(n,e.first(r.parameters),e.factory.createToken(20));for(var o=0,s=r.parameters;o1?(t.delete(n,c),t.insertNodeAfter(n,l,u)):t.replaceNode(n,l,u)}}function _(r){var i=[];return r.members&&r.members.forEach(function(e,r){if("constructor"!==r){var a=s(e,void 0);a&&i.push.apply(i,a)}else t.delete(n,e.valueDeclaration.parent)}),r.exports&&r.exports.forEach(function(t){if("prototype"===t.name){var n=t.declarations[0];1===t.declarations.length&&e.isPropertyAccessExpression(n)&&e.isBinaryExpression(n.parent)&&62===n.parent.operatorToken.kind&&e.isObjectLiteralExpression(n.parent.right)&&(r=s(n.parent.right.symbol,void 0))&&i.push.apply(i,r)}else{var r;(r=s(t,[e.factory.createToken(123)]))&&i.push.apply(i,r)}}),i;function s(r,i){var s=[];if(!(8192&r.flags||4096&r.flags))return s;var c,u,l=r.valueDeclaration,_=l.parent,d=_.right;if(u=d,!(e.isPropertyAccessExpression(c=l)?o(c)||e.isFunctionLike(u):e.every(c.properties,function(t){return!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t))})))return s;if(t.delete(n,_.parent&&230===_.parent.kind?_.parent:_),!d)return s.push(e.factory.createPropertyDeclaration([],i,r.name,void 0,void 0,void 0)),s;if(e.isPropertyAccessExpression(l)&&(e.isFunctionExpression(d)||e.isArrowFunction(d)))return p(s,d,l.name);if(e.isObjectLiteralExpression(d))return e.flatMap(d.properties,function(t){return e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)?s.concat(t):e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)?p(s,t.initializer,t.name):o(t)?s:[]});if(e.isSourceFileJS(n))return s;if(!e.isPropertyAccessExpression(l))return s;var f=e.factory.createPropertyDeclaration(void 0,i,l.name,void 0,void 0,d);return e.copyLeadingComments(_.parent,f,n),s.push(f),s;function p(t,r,o){return e.isFunctionExpression(r)?function(t,r,o){var s=e.concatenate(i,a(r,129)),c=e.factory.createMethodDeclaration(void 0,s,void 0,o,void 0,void 0,r.parameters,void 0,r.body);return e.copyLeadingComments(_,c,n),t.concat(c)}(t,r,o):function(t,r,o){var s,c=r.body;s=227===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var u=e.concatenate(i,a(r,129)),l=e.factory.createMethodDeclaration(void 0,u,void 0,o,void 0,void 0,r.parameters,void 0,s);return e.copyLeadingComments(_,l,n),t.concat(l)}(t,r,o)}}}}function a(t,n){return e.filter(t.modifiers,function(e){return e.kind===n})}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,r.span.start,r.program.getTypeChecker())});return[t.createCodeFixAction(n,a,e.Diagnostics.Convert_function_to_an_ES2015_class,n,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n){return i(t,n.file,n.start,e.program.getTypeChecker())})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n,r="convertToAsyncFunction",a=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],o=!0;function s(t,n,r,i,a){var o,s=e.getTokenAtPosition(n,r);if(o=e.isIdentifier(s)&&e.isVariableDeclaration(s.parent)&&s.parent.initializer&&e.isFunctionLikeDeclaration(s.parent.initializer)?s.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(n,r)),e.isFunctionLikeDeclaration)){var _,f=new e.Map,p=e.isInJSFile(o),g=function(t,n){if(!t.body)return new e.Set;var r=new e.Set;return e.forEachChild(t.body,function t(i){c(i,n,"then")?(r.add(e.getNodeId(i)),e.forEach(i.arguments,t)):c(i,n,"catch")?(r.add(e.getNodeId(i)),e.forEachChild(i,t)):u(i,n)?r.add(e.getNodeId(i)):e.forEachChild(i,t)}),r}(o,i),h=function(t,n,r,i){var a=new e.Map,o=e.createMultiMap();return e.forEachChild(t,function t(s){if(e.isIdentifier(s)){var c=n.getSymbolAtLocation(s),u=c&&function(e,t){return e.valueDeclaration&&e.valueDeclaration.getSourceFile()===t}(c,i);if(c&&u){var _=m(n.getTypeAtLocation(s),n),d=e.getSymbolId(c).toString();if(!_||e.isFunctionLikeDeclaration(s.parent)||r.has(d)){if(s.parent&&(e.isParameter(s.parent)||e.isVariableDeclaration(s.parent)||e.isBindingElement(s.parent))){var f=s.text,p=o.get(f);if(p&&p.some(function(e){return e!==c})){var g=l(s,o);a.set(d,g.identifier),r.set(d,g),o.add(f,c)}else{var h=e.getSynthesizedDeepClone(s);r.set(d,x(h)),o.add(f,c)}}}else{var y=e.firstOrUndefined(_.parameters),v=y&&e.isParameter(y.valueDeclaration)&&e.tryCast(y.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),b=l(v,o);r.set(d,b),o.add(v.text,c)}}}else e.forEachChild(s,t)}),e.getSynthesizedDeepCloneWithRenames(t,!0,a,n)}(o,i,f,a.sourceFile),y=h.body&&e.isBlock(h.body)?(_=[],e.forEachReturnStatement(h.body,function(t){e.isReturnStatementWithFixablePromiseHandler(t)&&_.push(t)}),_):e.emptyArray,v={checker:i,synthNamesMap:f,setOfExpressionsToReturn:g,isInJSFile:p};if(y.length){t.insertLastModifierBefore(n,129,o);for(var b=function(r){e.forEachChild(r,function i(a){if(e.isCallExpression(a)){var o=d(a,v);t.replaceNodeWithNodes(n,r,o)}else e.isFunctionLike(a)||e.forEachChild(a,i)})},D=0,C=y;D0)return N;var P=m(a.checker.getTypeAtLocation(t),a.checker).getReturnType(),O=e.getSynthesizedDeepClone(S),F=a.checker.getPromisedTypeOfPromise(P)?e.factory.createAwaitExpression(O):O;if(C(i,a))return p(F,null===(l=i.typeArguments)||void 0===l?void 0:l[0]);var I=f(n,F,void 0);return n&&n.types.push(P),I;default:return _()}return e.emptyArray}function m(t,n){var r=n.getSignaturesOfType(t,0);return e.lastOrUndefined(r)}function h(t,n,r){for(var i=[],a=0,o=n;a0)return}else e.isFunctionLike(a)||e.forEachChild(a,n)});return i}function y(t,n){var r,i=[];if(e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(r=function t(n){return e.isIdentifier(n)?a(n):function(t,n,r){return void 0===n&&(n=e.emptyArray),void 0===r&&(r=[]),{kind:1,bindingPattern:t,elements:n,types:r}}(n,e.flatMap(n.elements,function(n){return e.isOmittedExpression(n)?[]:[t(n.name)]}))}(t.parameters[0].name)):e.isIdentifier(t)&&(r=a(t)),r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function a(t){var r,a=function(e){return e.symbol?e.symbol:n.checker.getSymbolAtLocation(e)}((r=t).original?r.original:r);return a&&n.synthNamesMap.get(e.getSymbolId(a).toString())||x(t,i)}}function v(t){return!t||(D(t)?!t.identifier.text:e.every(t.elements,v))}function b(e){return D(e)?e.identifier:e.bindingPattern}function x(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1}}function D(e){return 0===e.kind}function C(t,n){return!!t.original&&n.setOfExpressionsToReturn.has(e.getNodeId(t.original))}t.registerCodeFix({errorCodes:a,getCodeActions:function(n){o=!0;var i=e.textChanges.ChangeTracker.with(n,function(e){return s(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n)});return o?[t.createCodeFixAction(r,i,e.Diagnostics.Convert_to_async_function,r,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,a,function(t,n){return s(t,n.file,n.start,e.program.getTypeChecker(),e)})}}),function(e){e[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"}(n||(n={}))}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){function n(t,n,r,i){for(var a=0,o=t.imports;a1?[[a(r),o(r)],!0]:[[o(r)],!0]:[[a(r)],!1]}(_.arguments[0],n):void 0;return d?(i.replaceNodeWithNodes(t,r.parent,d[0]),d[1]):(i.replaceRangeWithText(t,e.createRange(u.getStart(t),_.pos),"export default"),!0)}i.delete(t,r.parent)}else e.isExportsOrModuleExportsOrAlias(t,u.expression)&&function(t,n,r,i){var a=n.left.name.text,o=i.get(a);if(void 0!==o){var s=[f(void 0,o,n.right),p([e.factory.createExportSpecifier(o,a)])];r.replaceNodeWithNodes(t,n.parent,s)}else!function(t,n,r){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)r.replaceNodeRangeWithNodes(n,i.expression,e.findChildOfKind(i,24,n),[e.factory.createToken(92),e.factory.createToken(84)],{joiner:" ",suffix:" "});else{r.replaceRange(n,{pos:i.getStart(n),end:a.getStart(n)},e.factory.createToken(92),{suffix:" "}),a.name||r.insertName(n,a,s);var c=e.findChildOfKind(o,26,n);c&&r.delete(n,c)}}(n,t,r)}(t,r,i,s);return!1}(n,i,y,c,m)}default:return!1}}function a(e){return p(void 0,e)}function o(t){return p([e.factory.createExportSpecifier(void 0,"default")],t)}function s(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.add(e),e}function c(t){var n=e.createMultiMap();return u(t,function(e){return n.add(e.text,e)}),n}function u(t,n){e.isIdentifier(t)&&function(e){var t=e.parent;switch(t.kind){case 198:return t.name!==e;case 195:case 262:return t.propertyName!==e;default:return!0}}(t)&&n(t),t.forEachChild(function(e){return u(e,n)})}function l(t,n,r){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(n,e.getSynthesizedDeepClones(r.modifiers)),e.getSynthesizedDeepClone(r.asteriskToken),t,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.parameters),e.getSynthesizedDeepClone(r.type),e.factory.converters.convertToFunctionBlock(e.getSynthesizedDeepClone(r.body)))}function _(t,n,r,i){return"default"===n?e.makeImport(e.factory.createIdentifier(t),void 0,r,i):e.makeImport(void 0,[d(n,t)],r,i)}function d(t,n){return e.factory.createImportSpecifier(void 0!==t&&t!==n?e.factory.createIdentifier(t):void 0,e.factory.createIdentifier(n))}function f(t,n,r){return e.factory.createVariableStatement(t,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(n,void 0,void 0,r)],2))}function p(t,n){return e.factory.createExportDeclaration(void 0,void 0,!1,t&&e.factory.createNamedExports(t),void 0===n?void 0:e.factory.createStringLiteral(n))}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(a){var o=a.sourceFile,u=a.program,l=a.preferences,_=e.textChanges.ChangeTracker.with(a,function(t){if(function(t,n,a,o,u){var l={original:c(t),additional:new e.Set},_=function(t,n,i){var a=new e.Map;return r(t,function(t){var r=t.name,o=r.text,c=r.originalKeywordKind;!a.has(o)&&(void 0!==c&&e.isNonContextualKeyword(c)||n.resolveName(o,t,111551,!0))&&a.set(o,s("_"+o,i))}),a}(t,n,l);!function(t,n,i){r(t,function(r,a){if(!a){var o=r.name.text;i.replaceNode(t,r,e.factory.createIdentifier(n.get(o)||o))}})}(t,_,a);for(var d=!1,f=0,p=t.statements;f=e.ModuleKind.ES2015)return r?1:2;if(e.isInJSFile(t))return e.isExternalModule(t)?1:3;for(var i=0,a=t.statements;i"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(n,s,e.factory.createToken(84)),t.insertText(n,c.end," = "),t.insertText(n,u.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a,o=r.sourceFile,s=r.program,c=r.span,u=e.textChanges.ChangeTracker.with(r,function(e){a=i(e,o,c.start,s.getTypeChecker())});return a?[t.createCodeFixAction(n,u,a,n,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n){i(t,n.file,n.start,e.program.getTypeChecker())})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){var t,n;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(r){var i=r.sourceFile,a=function(t,n){var r=e.getTokenAtPosition(t,n);return e.findAncestor(r,function(e){return 191===e.kind})}(i,r.span.start),o=e.textChanges.ChangeTracker.with(r,function(t){return function(t,n,r){if(r){for(var i=r.type,a=!1,o=!1;179===i.kind||180===i.kind||185===i.kind;)179===i.kind?a=!0:180===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(r,r.dotDotDotToken||(o?e.factory.createToken(25):void 0),r.name,r.questionToken||(a?e.factory.createToken(57):void 0),i);s!==r&&t.replaceNode(n,r,s)}}(t,i,a)});return[t.createCodeFixAction(n,o,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,n,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[n="fixIncorrectNamedTupleSyntax"]})}(l||(l={})),function(e){!function(t){var n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function r(t,n,r,i){var a=e.getTokenAtPosition(t,n),o=a.parent;if(i!==e.Diagnostics.No_overload_matches_this_call.code&&i!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=r.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isIdentifierOrPrivateIdentifier(a),"Expected an identifier for spelling (property access)");var u=c.getTypeAtLocation(o.expression);32&o.flags&&(u=c.getNonNullableType(u)),s=c.getSuggestedSymbolForNonexistentProperty(a,u)}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var l=function(t,n,r){if(r&&e.isStringLiteralLike(r.moduleSpecifier)){var i=e.getResolvedModule(t,r.moduleSpecifier.text);return i?n.program.getSourceFile(i.resolvedFileName):void 0}}(t,r,e.findAncestor(a,e.isImportDeclaration));l&&l.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,l.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var _=e.findAncestor(a,e.isJsxOpeningLikeElement),d=c.getContextualTypeForArgumentAtIndex(_,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,d)}else{var f=e.getMeaningFromLocation(a),p=e.getTextOfNode(a);e.Debug.assert(void 0!==p,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,p,function(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t}(f))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function i(t,n,r,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(r.parent)){var s=i.valueDeclaration;e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(n,r,e.factory.createIdentifier(o)):t.replaceNode(n,r.parent,e.factory.createElementAccessExpression(r.parent.expression,e.factory.createStringLiteral(o)))}else t.replaceNode(n,r,e.factory.createIdentifier(o))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.sourceFile,o=r(a,n.span.start,n,n.errorCode);if(o){var s=o.node,c=o.suggestedSymbol,u=n.host.getCompilationSettings().target,l=e.textChanges.ChangeTracker.with(n,function(e){return i(e,a,s,c,u)});return[t.createCodeFixAction("spelling",l,[e.Diagnostics.Change_spelling_to_0,e.symbolName(c)],"fixSpelling",e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:["fixSpelling"],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,n){var a=r(n.file,n.start,e,n.code),o=e.host.getCompilationSettings().target;a&&i(t,e.sourceFile,a.node,a.suggestedSymbol,o)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n,r="returnValueCorrect",i=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function a(t,n,r){var i=t.createSymbol(4,n.escapedText);i.type=t.getTypeAtLocation(r);var a=e.createSymbolTable([i]);return t.createAnonymousType(void 0,a,[],[],void 0,void 0)}function o(t,r,i,o){if(r.body&&e.isBlock(r.body)&&1===e.length(r.body.statements)){var c=e.first(r.body.statements);if(e.isExpressionStatement(c)&&s(t,r,t.getTypeAtLocation(c.expression),i,o))return{declaration:r,kind:n.MissingReturnStatement,expression:c.expression,statement:c,commentSource:c.expression};if(e.isLabeledStatement(c)&&e.isExpressionStatement(c.statement)){var u=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(c.label,c.statement.expression)]);if(s(t,r,a(t,c.label,c.statement.expression),i,o))return e.isArrowFunction(r)?{declaration:r,kind:n.MissingParentheses,expression:u,statement:c,commentSource:c.statement.expression}:{declaration:r,kind:n.MissingReturnStatement,expression:u,statement:c,commentSource:c.statement.expression}}else if(e.isBlock(c)&&1===e.length(c.statements)){var l=e.first(c.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)&&(u=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]),s(t,r,a(t,l.label,l.statement.expression),i,o)))return{declaration:r,kind:n.MissingReturnStatement,expression:u,statement:c,commentSource:l}}}}function s(t,n,r,i,a){if(a){var o=t.getSignatureFromDeclaration(n);if(o){e.hasSyntacticModifier(n,256)&&(r=t.createPromiseType(r));var s=t.createSignature(n,o.typeParameters,o.thisParameter,o.parameters,r,void 0,o.minArgumentCount,o.flags);r=t.createAnonymousType(void 0,e.createSymbolTable(),[s],[],void 0,void 0)}else r=t.getAnyType()}return t.isTypeAssignableTo(r,i)}function c(t,n,r,i){var a=e.getTokenAtPosition(n,r);if(a.parent){var s=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(s&&s.body&&s.type&&e.rangeContainsRange(s.type,a)))return;return o(t,s,t.getTypeFromTypeNode(s.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!e.isCallExpression(s.parent)||!s.body)return;var c=s.parent.arguments.indexOf(s),u=t.getContextualTypeForArgumentAtIndex(s.parent,c);if(!u)return;return o(t,s,u,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var l=function(t){switch(t.kind){case 246:case 159:case 195:case 162:case 285:return t.initializer;case 277:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 286:case 161:case 288:case 328:case 322:return}}(a.parent);if(!l||!e.isFunctionLikeDeclaration(l)||!l.body)return;return o(t,l,t.getTypeAtLocation(a.parent),!0)}}}function u(t,n,r,i){e.suppressLeadingAndTrailingTrivia(r);var a=e.probablyUsesSemicolons(n);t.replaceNode(n,i,e.factory.createReturnStatement(r),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function l(t,n,r,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(n,r.body,s)}function _(t,n,r,i){t.replaceNode(n,r.body,e.factory.createParenthesizedExpression(i))}function d(n,i,a){var o=e.textChanges.ChangeTracker.with(n,function(e){return u(e,n.sourceFile,i,a)});return t.createCodeFixAction(r,o,e.Diagnostics.Add_a_return_statement,"fixAddReturnStatement",e.Diagnostics.Add_all_missing_return_statement)}function f(n,i,a){var o=e.textChanges.ChangeTracker.with(n,function(e){return _(e,n.sourceFile,i,a)});return t.createCodeFixAction(r,o,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,"fixWrapTheBlockWithParen",e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!function(e){e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"}(n||(n={})),t.registerCodeFix({errorCodes:i,fixIds:["fixAddReturnStatement","fixRemoveBracesFromArrowFunctionBody","fixWrapTheBlockWithParen"],getCodeActions:function(i){var a=i.sourceFile,o=i.span.start,s=i.errorCode,u=c(i.program.getTypeChecker(),a,o,s);if(u)return u.kind===n.MissingReturnStatement?e.append([d(i,u.expression,u.statement)],e.isArrowFunction(u.declaration)?function(n,i,a,o){var s=e.textChanges.ChangeTracker.with(n,function(e){return l(e,n.sourceFile,i,a,o,!1)});return t.createCodeFixAction(r,s,e.Diagnostics.Remove_braces_from_arrow_function_body,"fixRemoveBracesFromArrowFunctionBody",e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(i,u.declaration,u.expression,u.commentSource):void 0):[f(i,u.declaration,u.expression)]},getAllCodeActions:function(n){return t.codeFixAll(n,i,function(t,r){var i=c(n.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(n.fixId){case"fixAddReturnStatement":u(t,r.file,i.expression,i.statement);break;case"fixRemoveBracesFromArrowFunctionBody":if(!e.isArrowFunction(i.declaration))return;l(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case"fixWrapTheBlockWithParen":if(!e.isArrowFunction(i.declaration))return;_(t,r.file,i.declaration,i.expression);break;default:e.Debug.fail(JSON.stringify(n.fixId))}})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n,r="addMissingMember",i=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code],a="addMissingMember";function o(t,n,r,i){var a=e.getTokenAtPosition(t,n);if(e.isIdentifier(a)||e.isPrivateIdentifier(a)){var o=a.parent;if(e.isPropertyAccessExpression(o)){var s=e.skipConstraint(r.getTypeAtLocation(o.expression)),c=s.symbol;if(c&&c.declarations){var u=e.find(c.declarations,e.isClassLike);if(u||!e.isPrivateIdentifier(a)){var l=u||e.find(c.declarations,e.isInterfaceDeclaration);if(l&&!i.isSourceFileFromExternalLibrary(l.getSourceFile())){var _=(s.target||s)!==r.getDeclaredTypeOfSymbol(c);if(_&&(e.isPrivateIdentifier(a)||e.isInterfaceDeclaration(l)))return;var d=l.getSourceFile(),f=(_?32:0)|(e.startsWithUnderscore(a.text)?8:0),p=e.isSourceFileJS(d);return{kind:1,token:a,call:e.tryCast(o.parent,e.isCallExpression),modifierFlags:f,parentDeclaration:l,declSourceFile:d,isJSFile:p}}var g=e.find(c.declarations,e.isEnumDeclaration);return!g||e.isPrivateIdentifier(a)||i.isSourceFileFromExternalLibrary(g.getSourceFile())?void 0:{kind:0,token:a,parentDeclaration:g}}}}}}function s(t,n,r,i,a){var o=i.text;if(a){if(218===r.kind)return;var s=r.name.getText(),u=c(e.factory.createIdentifier(s),o);t.insertNodeAfter(n,r,u)}else if(e.isPrivateIdentifier(i)){var l=e.factory.createPropertyDeclaration(void 0,void 0,o,void 0,void 0,void 0),d=_(r);d?t.insertNodeAfter(n,d,l):t.insertNodeAtClassStart(n,r,l)}else{var f=e.getFirstConstructorWithBody(r);if(!f)return;var p=c(e.factory.createThis(),o);t.insertNodeAtConstructorEnd(n,f,p)}}function c(t,n){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(t,n),e.factory.createIdentifier("undefined")))}function u(t,n,r){var i;if(213===r.parent.parent.kind){var a=r.parent.parent,o=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(r.parent===a.left?a.right:a.left)));i=t.typeToTypeNode(o,n,void 0)}else{var s=t.getContextualType(r.parent);i=s?t.typeToTypeNode(s,void 0,void 0):void 0}return i||e.factory.createKeywordTypeNode(128)}function l(t,n,r,i,a,o){var s=e.factory.createPropertyDeclaration(void 0,o?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(o)):void 0,i,void 0,a,void 0),c=_(r);c?t.insertNodeAfter(n,c,s):t.insertNodeAtClassStart(n,r,s)}function _(t){for(var n,r=0,i=t.members;r=e.ModuleKind.ES2015&&o99)&&(s=e.textChanges.ChangeTracker.with(n,function(n){if(e.getTsConfigObjectLiteralExpression(i)){var r=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&r.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(n,i,r)}}),a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))),a.length?a:void 0}}})}(l||(l={})),function(e){!function(t){var n="fixPropertyAssignment",r=[e.Diagnostics.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.code];function i(t,n,r){t.replaceNode(n,r,e.factory.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function a(t,n){return e.cast(e.getTokenAtPosition(t,n).parent,e.isShorthandPropertyAssignment)}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions:function(r){var o=a(r.sourceFile,r.span.start),s=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,o)});return[t.createCodeFixAction(n,s,[e.Diagnostics.Change_0_to_1,"=",":"],n,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){return i(e,t.file,a(t.file,t.start))})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="extendsInterfaceBecomesImplements",r=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,n){var r=e.getTokenAtPosition(t,n),i=e.getContainingClass(r).heritageClauses,a=i[0].getFirstToken();return 93===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,n,r,i){if(t.replaceNode(n,r,e.factory.createToken(116)),2===i.length&&93===i[0].token&&116===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(n,{pos:o,end:o},e.factory.createToken(27));for(var s=n.text,c=a.end;c":">","}":"}"};function o(t,n,r,i,o){var s=r.getText()[i];if(function(t){return e.hasProperty(a,t)}(s)){var c=o?a[s]:"{"+e.quote(s,n)+"}";t.replaceRangeWithText(r,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="unusedIdentifier",r="unusedIdentifier_prefix",i="unusedIdentifier_delete",a="unusedIdentifier_infer",o=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];function s(t,n,r){t.replaceNode(n,r.parent,e.factory.createKeywordTypeNode(151))}function c(r,a){return t.createCodeFixAction(n,r,a,i,e.Diagnostics.Delete_all_unused_declarations)}function u(t,n,r){t.delete(n,e.Debug.checkDefined(e.cast(r.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function l(t){return 99===t.kind?e.tryCast(t.parent,e.isImportDeclaration):void 0}function _(t,n){return e.isVariableDeclarationList(n.parent)&&e.first(n.parent.getChildren(t))===n}function d(e,t,n){e.delete(t,229===n.parent.kind?n.parent:n)}function f(t,n,r){e.forEach(r.elements,function(e){return t.delete(n,e)})}function p(t,n,r,i){n!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(135===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&function(e){switch(e.parent.kind){case 159:case 158:return!0;case 246:switch(e.parent.parent.parent.kind){case 236:case 235:return!0}}return!1}(i)&&(t.replaceNode(r,i,e.factory.createIdentifier("_"+i.text)),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach(function(n){e.isIdentifier(n.name)&&t.replaceNode(r,n.name,e.factory.createIdentifier("_"+n.name.text))})))}function g(t,n,r,i,a,o){!function(t,n,r,i,a,o){var s=t.parent;e.isParameter(s)?function(t,n,r,i,a,o){void 0===o&&(o=!1),function(t,n,r){var i=t.parent;switch(i.kind){case 164:var a=n.getSymbolAtLocation(i.name);if(e.isMemberSymbolInBaseType(a,n))return!1;case 165:case 248:return!0;case 205:case 206:var o=i.parameters,s=o.indexOf(t);return e.Debug.assert(-1!==s,"The parameter should already be in the list"),r?o.slice(s+1).every(function(e){return 78===e.name.kind&&!e.symbol.isReferenced}):s===o.length-1;case 167:return!1;default:return e.Debug.failBadSyntaxKind(i)}}(r,i,o)&&(r.modifiers&&r.modifiers.length>0&&(!e.isIdentifier(r.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(r.name,i,n))?r.modifiers.forEach(function(e){t.deleteModifier(n,e)}):(t.delete(n,r),function(t,n,r,i,a){e.FindAllReferences.Core.eachSignatureCall(r.parent,i,a,function(e){var i=r.parent.parameters.indexOf(r);e.arguments.length>i&&t.delete(n,e.arguments[i])})}(t,n,r,a,i)))}(n,r,s,i,a,o):n.delete(r,e.isImportClause(s)?t:e.isComputedPropertyName(s)?s.parent:s)}(n,r,t,i,a,o),e.isIdentifier(n)&&function(t,n,r,i){e.FindAllReferences.Core.eachSymbolReferenceInFile(r,i,n,function(r){e.isPropertyAccessExpression(r.parent)&&r.parent.name===r&&(r=r.parent),e.isBinaryExpression(r.parent)&&e.isExpressionStatement(r.parent.parent)&&r.parent.left===r&&t.delete(n,r.parent.parent)})}(r,t,n,i)}t.registerCodeFix({errorCodes:o,getCodeActions:function(i){var o=i.errorCode,m=i.sourceFile,h=i.program,y=h.getTypeChecker(),v=h.getSourceFiles(),b=e.getTokenAtPosition(m,i.span.start);if(e.isJSDocTemplateTag(b))return[c(e.textChanges.ChangeTracker.with(i,function(e){return e.delete(m,b)}),e.Diagnostics.Remove_template_tag)];if(29===b.kind)return[c(k=e.textChanges.ChangeTracker.with(i,function(e){return u(e,m,b)}),e.Diagnostics.Remove_type_parameters)];var x=l(b);if(x)return[c(k=e.textChanges.ChangeTracker.with(i,function(e){return e.delete(m,x)}),[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(x)])];if(e.isObjectBindingPattern(b.parent)){if(e.isParameter(b.parent.parent)){var D=b.parent.elements,C=[D.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(D,function(e){return e.getText(m)}).join(", ")];return[c(e.textChanges.ChangeTracker.with(i,function(e){return f(e,m,b.parent)}),C)]}return[c(e.textChanges.ChangeTracker.with(i,function(e){return e.delete(m,b.parent.parent)}),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(_(m,b))return[c(e.textChanges.ChangeTracker.with(i,function(e){return d(e,m,b.parent)}),e.Diagnostics.Remove_variable_statement)];var S=[];if(135===b.kind){var k=e.textChanges.ChangeTracker.with(i,function(e){return s(e,m,b)}),E=e.cast(b.parent,e.isInferTypeNode).typeParameter.name.text;S.push(t.createCodeFixAction(n,k,[e.Diagnostics.Replace_infer_0_with_unknown,E],a,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var T=e.textChanges.ChangeTracker.with(i,function(e){return g(m,b,e,y,v,!1)});T.length&&(E=e.isComputedPropertyName(b.parent)?b.parent:b,S.push(c(T,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,E.getText(m)])))}var w=e.textChanges.ChangeTracker.with(i,function(e){return p(e,o,m,b)});return w.length&&S.push(t.createCodeFixAction(n,w,[e.Diagnostics.Prefix_0_with_an_underscore,b.getText(m)],r,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),S},fixIds:[r,i,a],getAllCodeActions:function(n){var c=n.sourceFile,m=n.program,h=m.getTypeChecker(),y=m.getSourceFiles();return t.codeFixAll(n,o,function(t,o){var m=e.getTokenAtPosition(c,o.start);switch(n.fixId){case r:p(t,o.code,c,m);break;case i:if(135===m.kind)break;var v=l(m);v?t.delete(c,v):e.isJSDocTemplateTag(m)?t.delete(c,m):29===m.kind?u(t,c,m):e.isObjectBindingPattern(m.parent)?e.isParameter(m.parent.parent)?f(t,c,m.parent):t.delete(c,m.parent.parent):_(c,m)?d(t,c,m.parent):g(c,m,t,h,y,!0);break;case a:135===m.kind&&s(t,c,m);break;default:e.Debug.fail(JSON.stringify(n.fixId))}})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="fixUnreachableCode",r=[e.Diagnostics.Unreachable_code_detected.code];function i(t,n,r,i,a){var o=e.getTokenAtPosition(n,r),s=e.findAncestor(o,e.isStatement);if(s.getStart(n)!==o.getStart(n)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:r,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var u=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(u.kind){case 231:if(u.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(n,s,e.factory.createBlock(e.emptyArray))}case 233:case 234:return void t.delete(n,u)}if(e.isBlock(s.parent)){var l=r+i,_=e.Debug.checkDefined(function(e,t){for(var n,r=0,i=e;rM.length?B(S,g.getSignatureFromDeclaration(p[p.length-1]),b,y,o(S)):(e.Debug.assert(p.length===M.length,"Declarations and signatures should match count"),_(function(t,n,r,i,s){for(var c=t[0],u=t[0].minArgumentCount,l=!1,_=0,d=t;_=c.parameters.length&&(!e.signatureHasRestParameter(f)||e.signatureHasRestParameter(c))&&(c=f)}var p=c.parameters.length-(e.signatureHasRestParameter(c)?1:0),g=c.parameters.map(function(e){return e.name}),m=a(p,g,void 0,u,!1);if(l){var h=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(128)),y=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),g[p]||"rest",p>=u?e.factory.createToken(57):void 0,h,void 0);m.push(y)}return function(t,n,r,i,a,s,c){return e.factory.createMethodDeclaration(void 0,t,void 0,n,r?e.factory.createToken(57):void 0,void 0,a,void 0,o(c))}(i,n,r,0,m,0,s)}(M,y,D,b,S))))}}function B(t,i,a,o,c){var f=function(t,r,i,a,o,s,c,u,_){var f=t.program,p=f.getTypeChecker(),g=e.getEmitScriptTarget(f.getCompilerOptions()),m=p.signatureToSignatureDeclaration(i,164,a,1073742081|(0===r?268435456:0),n(t));if(m){var h=m.typeParameters,y=m.parameters,v=m.type;if(_){if(h){var b=e.sameMap(h,function(t){var n,r=t.constraint,i=t.default;return r&&(n=l(r,g))&&(r=n.typeNode,d(_,n.symbols)),i&&(n=l(i,g))&&(i=n.typeNode,d(_,n.symbols)),e.factory.updateTypeParameterDeclaration(t,t.name,r,i)});h!==b&&(h=e.setTextRange(e.factory.createNodeArray(b,h.hasTrailingComma),h))}var x=e.sameMap(y,function(t){var n=l(t.type,g),r=t.type;return n&&(r=n.typeNode,d(_,n.symbols)),e.factory.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,r,t.initializer)});if(y!==x&&(y=e.setTextRange(e.factory.createNodeArray(x,y.hasTrailingComma),y)),v){var D=l(v,g);D&&(v=D.typeNode,d(_,D.symbols))}}return e.factory.updateMethodDeclaration(m,void 0,o,m.asteriskToken,s,c?e.factory.createToken(57):void 0,h,y,v,u)}}(s,t,i,r,a,o,D,c,u);f&&_(f)}}function i(t,n,r,i,a,o,s){var c=t.typeToTypeNode(r,i,o,s);if(c&&e.isImportTypeNode(c)){var u=l(c,a);if(u)return d(n,u.symbols),u.typeNode}return c}function a(t,n,r,i,a){for(var o=[],s=0;s=i?e.factory.createToken(57):void 0,a?void 0:r&&r[s]||e.factory.createKeywordTypeNode(128),void 0);o.push(c)}return o}function o(t){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral("Method not implemented.",0===t)]))],!0)}function s(t,n,r){var i=e.getTsConfigObjectLiteralExpression(n);if(i){var a=u(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,l=r;s0)return[t.createCodeFixAction(n,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,n,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){return i(e,t.file,t)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="fixAddModuleReferTypeMissingTypeof",r=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function i(t,n){var r=e.getTokenAtPosition(t,n);return e.Debug.assert(99===r.kind,"This token should be an ImportKeyword"),e.Debug.assert(192===r.parent.kind,"Token parent should be an ImportType"),r.parent}function a(t,n,r){var i=e.factory.updateImportTypeNode(r,r.argument,r.qualifier,r.typeArguments,!0);t.replaceNode(n,r,i)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=i(o,r.span.start),c=e.textChanges.ChangeTracker.with(r,function(e){return a(e,o,s)});return[t.createCodeFixAction(n,c,e.Diagnostics.Add_missing_typeof,n,e.Diagnostics.Add_missing_typeof)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n){return a(t,e.sourceFile,i(n.file,n.start))})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="wrapJsxInFragment",r=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(t,n){var r=e.getTokenAtPosition(t,n).parent.parent;if((e.isBinaryExpression(r)||e.isBinaryExpression(r=r.parent))&&e.nodeIsMissing(r.operatorToken))return r}function a(t,n,r){var i=function(t){for(var n=[],r=t;;){if(e.isBinaryExpression(r)&&e.nodeIsMissing(r.operatorToken)&&27===r.operatorToken.kind){if(n.push(r.left),e.isJsxChild(r.right))return n.push(r.right),n;if(e.isBinaryExpression(r.right)){r=r.right;continue}return}return}}(r);i&&t.replaceNode(n,r,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.program.getCompilerOptions().jsx;if(2===o||3===o){var s=r.sourceFile,c=i(s,r.span.start);if(c){var u=e.textChanges.ChangeTracker.with(r,function(e){return a(e,s,c)});return[t.createCodeFixAction(n,u,e.Diagnostics.Wrap_in_JSX_fragment,n,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}}},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n){var r=i(e.sourceFile,n.start);r&&a(t,e.sourceFile,r)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="fixConvertToMappedObjectType",r=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code];function a(t,n){var r=e.getTokenAtPosition(t,n),i=e.cast(r.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(i.parent))return{indexSignature:i,container:e.isInterfaceDeclaration(i.parent)?i.parent:e.cast(i.parent.parent,e.isTypeAliasDeclaration)}}function o(t,n,r){var a,o=r.indexSignature,s=r.container,c=(e.isInterfaceDeclaration(s)?s.members:s.type.members).filter(function(t){return!e.isIndexSignatureDeclaration(t)}),u=e.first(o.parameters),l=e.factory.createTypeParameterDeclaration(e.cast(u.name,e.isIdentifier),u.type),_=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(o)?e.factory.createModifier(141):void 0,l,o.questionToken,o.type),d=e.factory.createIntersectionTypeNode(i(e.getAllSuperTypeNodes(s),[_],c.length?[e.factory.createTypeLiteralNode(c)]:e.emptyArray));t.replaceNode(n,s,e.factory.createTypeAliasDeclaration((a=s).decorators,a.modifiers,a.name,a.typeParameters,d))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.sourceFile,s=a(i,r.span.start);if(s){var c=e.textChanges.ChangeTracker.with(r,function(e){return o(e,i,s)}),u=e.idText(s.container.name);return[t.createCodeFixAction(n,c,[e.Diagnostics.Convert_0_to_mapped_object_type,u],n,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){var n=a(t.file,t.start);n&&o(e,t.file,n)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){var t,n;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions:function(r){var i=e.findAncestor(e.getTokenAtPosition(r.sourceFile,r.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(r,function(e){e.deleteRange(r.sourceFile,{pos:i.expression.end,end:i.end})});return[t.createCodeFixActionWithoutFixAll(n,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[n="removeAccidentalCallParentheses"]})}(l||(l={})),function(e){!function(t){var n="removeUnnecessaryAwait",r=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(t,n,r){var i=e.tryCast(e.getTokenAtPosition(n,r.start),function(e){return 130===e.kind}),a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(a){var o=a;if(e.isParenthesizedExpression(a.parent)){var s=e.getLeftmostExpression(a.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(a.parent.pos,n);c&&102!==c.kind&&(o=a.parent)}}t.replaceNode(n,o,a.expression)}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,r.span)});if(a.length>0)return[t.createCodeFixAction(n,a,e.Diagnostics.Remove_unnecessary_await,n,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){return i(e,t.file,t)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],r="splitTypeOnlyImport";function i(t,n){return e.findAncestor(e.getTokenAtPosition(t,n.start),e.isImportDeclaration)}function a(t,n,r){if(n){var i=e.Debug.checkDefined(n.importClause);t.replaceNode(r.sourceFile,n,e.factory.updateImportDeclaration(n,n.decorators,n.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),n.moduleSpecifier)),t.insertNodeAfter(r.sourceFile,n,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),n.moduleSpecifier))}}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=e.textChanges.ChangeTracker.with(n,function(e){return a(e,i(n.sourceFile,n.span),n)});if(o.length)return[t.createCodeFixAction(r,o,e.Diagnostics.Split_into_two_separate_import_declarations,r,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,n){a(t,i(e.sourceFile,n),e)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){var t,n;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code],getCodeActions:function(r){var i=r.sourceFile,a=function(t,n,r){var i=e.getTokenAtPosition(t,n),a=r.getTypeChecker().getSymbolAtLocation(i);if(a)return a.valueDeclaration.parent.parent}(i,r.span.start,r.program),o=e.textChanges.ChangeTracker.with(r,function(e){return function(e,t,n){if(n){var r=n.getStart();e.replaceRangeWithText(t,{pos:r,end:r+5},"let")}}(e,i,a)});return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_const_to_let,n,e.Diagnostics.Convert_const_to_let)]},fixIds:[n="fixConvertConstToLet"]})}(l||(l={})),function(e){!function(t){var n="fixExpectedComma",r=[e.Diagnostics._0_expected.code];function i(t,n,r){var i=e.getTokenAtPosition(t,n);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(t,n,r){var i=r.node,a=e.factory.createToken(27);t.replaceNode(n,i,a)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=i(o,r.span.start);if(s){var c=e.textChanges.ChangeTracker.with(r,function(e){return a(e,o,s)});return[t.createCodeFixAction(n,c,[e.Diagnostics.Change_0_to_1,";",","],n,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n){var r=i(n.file,n.start);r&&a(t,e.sourceFile,r)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){function n(t,n){void 0===n&&(n=!0);var r=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(r,i.start),o=a.parent&&1&e.getSyntacticModifierFlags(a.parent)&&n?a.parent:e.getParentNodeInSpan(a,r,i);if(!o||!(e.isSourceFile(o.parent)||e.isModuleBlock(o.parent)&&e.isAmbientModule(o.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var s=e.isSourceFile(o.parent)?o.parent.symbol:o.parent.parent.symbol,c=e.getSyntacticModifierFlags(o),u=!!(512&c);if(!(1&c)||!u&&s.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};switch(o.kind){case 248:case 249:case 250:case 252:case 251:case 253:var l=o;return l.name&&e.isIdentifier(l.name)?{info:{exportNode:l,exportName:l.name,wasDefault:u,exportingModuleSymbol:s}}:void 0;case 229:var _=o;if(!(2&_.declarationList.flags)||1!==_.declarationList.declarations.length)return;var d=e.first(_.declarationList.declarations);if(!d.initializer)return;return e.Debug.assert(!u,"Can't have a default flag here"),e.isIdentifier(d.name)?{info:{exportNode:_,exportName:d.name,wasDefault:u,exportingModuleSymbol:s}}:void 0;default:return}}function r(t,n){return e.factory.createImportSpecifier(t===n?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(n))}t.registerRefactor("Convert export",{getAvailableActions:function(t){var r=n(t,"invoked"===t.triggerReason);if(!r)return e.emptyArray;if(void 0===r.error){var i=r.info.wasDefault?e.Diagnostics.Convert_default_export_to_named_export.message:e.Diagnostics.Convert_named_export_to_default_export.message;return[{name:"Convert export",description:i,actions:[{name:r.info.wasDefault?"Convert default export to named export":"Convert named export to default export",description:i}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:"Convert export",description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[{name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,notApplicableReason:r.error}]},{name:"Convert export",description:e.Diagnostics.Convert_named_export_to_default_export.message,actions:[{name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,notApplicableReason:r.error}]}]:e.emptyArray},getEditsForAction:function(t,i){return e.Debug.assert("Convert default export to named export"===i||"Convert named export to default export"===i,"Unexpected action name"),{edits:e.textChanges.ChangeTracker.with(t,function(i){var a,o,s,c,u,l;return o=t.file,s=t.program,c=e.Debug.checkDefined(null===(a=n(t))||void 0===a?void 0:a.info,"context must have info"),l=t.cancellationToken,function(t,n,r,i){var a=n.exportNode,o=n.exportName;if(n.wasDefault)r.delete(t,e.Debug.checkDefined(e.findModifier(a,87),"Should find a default keyword in modifier list"));else{var s=e.Debug.checkDefined(e.findModifier(a,92),"Should find an export keyword in modifier list");switch(a.kind){case 248:case 249:case 250:r.insertNodeAfter(t,s,e.factory.createToken(87));break;case 229:if(!e.FindAllReferences.Core.isSymbolReferencedInFile(o,i,t)){r.replaceNode(t,a,e.factory.createExportDefault(e.Debug.checkDefined(e.first(a.declarationList.declarations).initializer,"Initializer was previously known to be present")));break}case 252:case 251:case 253:r.deleteModifier(t,s),r.insertNodeAfter(t,a,e.factory.createExportDefault(e.factory.createIdentifier(o.text)));break;default:e.Debug.assertNever(a,"Unexpected exportNode kind "+a.kind)}}}(o,c,u=i,s.getTypeChecker()),void function(t,n,i,a){var o=n.wasDefault,s=n.exportName,c=n.exportingModuleSymbol,u=t.getTypeChecker(),l=e.Debug.checkDefined(u.getSymbolAtLocation(s),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,a,l,c,s.text,o,function(t){var n=t.getSourceFile();o?function(t,n,i,a){var o=n.parent;switch(o.kind){case 198:i.replaceNode(t,n,e.factory.createIdentifier(a));break;case 262:case 267:i.replaceNode(t,c=o,r(a,c.name.text));break;case 259:var s=o;e.Debug.assert(s.name===n,"Import clause name should match provided ref");var c=r(a,n.text),u=s.namedBindings;if(u)if(260===u.kind){i.deleteRange(t,{pos:n.getStart(t),end:u.getStart(t)});var l=e.isStringLiteral(s.parent.moduleSpecifier)?e.quotePreferenceFromString(s.parent.moduleSpecifier,t):1,_=e.makeImport(void 0,[r(a,n.text)],s.parent.moduleSpecifier,l);i.insertNodeAfter(t,s.parent,_)}else i.delete(t,n),i.insertNodeAtEndOfList(t,u.elements,c);else i.replaceNode(t,n,e.factory.createNamedImports([c]));break;default:e.Debug.failBadSyntaxKind(o)}}(n,t,i,s.text):function(t,n,r){var i,a=n.parent;switch(a.kind){case 198:r.replaceNode(t,n,e.factory.createIdentifier("default"));break;case 262:var o=e.factory.createIdentifier(a.name.text);1===a.parent.elements.length?r.replaceNode(t,a.parent,o):(r.delete(t,a),r.insertNodeBefore(t,a.parent,o));break;case 267:r.replaceNode(t,a,e.factory.createExportSpecifier("default"===(i=a.name.text)?void 0:e.factory.createIdentifier("default"),e.factory.createIdentifier(i)));break;default:e.Debug.assertNever(a,"Unexpected parent kind "+a.kind)}}(n,t,i)})}(s,c,u,l)}),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(l||(l={})),function(e){!function(t){function n(t,n){void 0===n&&(n=!0);var r=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(r,i.start),o=n?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,r,i);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};if(!(o.getEnd()=d.pos?f.getEnd():d.getEnd()),g=_?function(e){for(;e.parent;){if(o(e)&&!o(e.parent))return e;e=e.parent}}(d):function(e,t){for(;e.parent;){if(o(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(d,p),m=g&&o(g)?function(t){if(a(t))return t;if(e.isVariableStatement(t)){var n=e.getSingleVariableOfVariableStatement(t),r=null==n?void 0:n.initializer;return r&&a(r)?r:void 0}return t.expression&&a(t.expression)?t.expression:void 0}(g):void 0;if(!m)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var h=i.getTypeChecker();return e.isConditionalExpression(m)?function(t,n){var r=t.condition,i=l(t.whenTrue);if(!i||n.isNullableType(n.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(r)||e.isIdentifier(r))&&u(r,i.expression))return{info:{finalExpression:i,occurrences:[r],expression:t}};if(e.isBinaryExpression(r)){var a=c(i.expression,r);return a?{info:{finalExpression:i,occurrences:a,expression:t}}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(m,h):function(t){if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var n=l(t.right);if(!n)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var r=c(n.expression,t.left);return r?{info:{finalExpression:n,occurrences:r,expression:t}}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(m)}}function c(t,n){for(var r=[];e.isBinaryExpression(n)&&55===n.operatorToken.kind;){var i=u(e.skipParentheses(t),e.skipParentheses(n.right));if(!i)break;r.push(i),t=i,n=n.left}var a=u(t,n);return a&&r.push(a),r.length>0?r:void 0}function u(t,n){return(e.isIdentifier(n)||e.isPropertyAccessExpression(n))&&function(t,n){for(;e.isCallExpression(t)||e.isPropertyAccessExpression(t);){var r=e.isPropertyAccessExpression(n)?n.name.getText():n.getText();if(e.isPropertyAccessExpression(t)&&t.name.getText()===r)break;t=t.expression}for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(n);){if(t.name.getText()!==n.name.getText())return!1;t=t.expression,n=n.expression}return e.isIdentifier(t)&&e.isIdentifier(n)&&t.getText()===n.getText()}(t,n)?n:void 0}function l(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?l(t.left):!e.isPropertyAccessExpression(t)&&!e.isCallExpression(t)||e.isOptionalChain(t)?void 0:t}function _(t,n,r){if(e.isPropertyAccessExpression(n)||e.isCallExpression(n)){var i=_(t,n.expression,r),a=r.length>0?r[r.length-1]:void 0,o=(null==a?void 0:a.getText())===n.expression.getText();if(o&&r.pop(),e.isCallExpression(n))return e.factory.createCallChain(i,o?e.factory.createToken(28):n.questionDotToken,n.typeArguments,n.arguments);if(e.isPropertyAccessExpression(n))return e.factory.createPropertyAccessChain(i,o?e.factory.createToken(28):n.questionDotToken,n.name)}return n}t.registerRefactor(r,{getAvailableActions:function(t){var n=s(t,"invoked"===t.triggerReason);return n?n.error?t.preferences.provideRefactorNotApplicableReason?[{name:r,description:i,actions:[{name:r,description:i,notApplicableReason:n.error}]}]:e.emptyArray:[{name:r,description:i,actions:[{name:r,description:i}]}]:e.emptyArray},getEditsForAction:function(t,n){var r=s(t);return r&&r.info?{edits:e.textChanges.ChangeTracker.with(t,function(n){return function(t,n,r,i,a){var o=i.finalExpression,s=i.occurrences,c=i.expression,u=s[s.length-1],l=_(n,o,s);l&&(e.isPropertyAccessExpression(l)||e.isCallExpression(l))&&(e.isBinaryExpression(c)?r.replaceNodeRange(t,u,o,l):e.isConditionalExpression(c)&&r.replaceNode(t,c,e.factory.createBinaryExpression(l,e.factory.createToken(60),c.whenFalse)))}(t.file,t.program.getTypeChecker(),n,e.Debug.checkDefined(r.info,"context must have info"))}),renameFilename:void 0,renameLocation:void 0}:void 0}})}((t=e.refactor||(e.refactor={})).convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))}(l||(l={})),function(e){var t;!function(n){var r="Convert overload list to single signature",i=e.Diagnostics.Convert_overload_list_to_single_signature.message;function a(e){switch(e.kind){case 163:case 164:case 168:case 165:case 169:case 248:return!0}return!1}function o(t,n,r){var i=e.getTokenAtPosition(t,n),o=e.findAncestor(i,a);if(o){var s=r.getTypeChecker(),c=o.symbol;if(c){var u=c.declarations;if(!(e.length(u)<=1)&&e.every(u,function(n){return e.getSourceFileOfNode(n)===t})&&a(u[0])){var l=u[0].kind;if(e.every(u,function(e){return e.kind===l})){var _=u;if(!e.some(_,function(t){return!!t.typeParameters||e.some(t.parameters,function(t){return!!t.decorators||!!t.modifiers||!e.isIdentifier(t.name)})})){var d=e.mapDefined(_,function(e){return s.getSignatureFromDeclaration(e)});if(e.length(d)===e.length(u)){var f=s.getReturnTypeOfSignature(d[0]);if(e.every(d,function(e){return s.getReturnTypeOfSignature(e)===f}))return _}}}}}}}t.registerRefactor(r,{getEditsForAction:function(t){var n=t.file,r=t.program,i=o(n,t.startPosition,r);if(i){var a=r.getTypeChecker(),s=i[i.length-1],c=s;switch(s.kind){case 163:c=e.factory.updateMethodSignature(s,s.modifiers,s.name,s.questionToken,s.typeParameters,u(i),s.type);break;case 164:c=e.factory.updateMethodDeclaration(s,s.decorators,s.modifiers,s.asteriskToken,s.name,s.questionToken,s.typeParameters,u(i),s.type,s.body);break;case 168:c=e.factory.updateCallSignature(s,s.typeParameters,u(i),s.type);break;case 165:c=e.factory.updateConstructorDeclaration(s,s.decorators,s.modifiers,u(i),s.body);break;case 169:c=e.factory.updateConstructSignature(s,s.typeParameters,u(i),s.type);break;case 248:c=e.factory.updateFunctionDeclaration(s,s.decorators,s.modifiers,s.asteriskToken,s.name,s.typeParameters,u(i),s.type,s.body);break;default:return e.Debug.failBadSyntaxKind(s,"Unhandled signature kind in overload list conversion refactoring")}if(c!==s)return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,function(e){e.replaceNodeRange(n,i[0],i[i.length-1],c)})}}function u(t){var n=t[t.length-1];return e.isFunctionLikeDeclaration(n)&&n.body&&(t=t.slice(0,t.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,l)))])}function l(t){var n=e.map(t.parameters,_);return e.setEmitFlags(e.factory.createTupleTypeNode(n),e.some(n,function(t){return!!e.length(e.getSyntheticLeadingComments(t))})?0:1)}function _(t){e.Debug.assert(e.isIdentifier(t.name));var n=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(128)),t),r=t.symbol&&t.symbol.getDocumentationComment(a);if(r){var i=e.displayPartsToString(r);i.length&&e.setSyntheticLeadingComments(n,[{text:"*\n"+i.split("\n").map(function(e){return" * "+e}).join("\n")+"\n ",kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return n}},getAvailableActions:function(t){return o(t.file,t.startPosition,t.program)?[{name:r,description:i,actions:[{name:r,description:i}]}]:e.emptyArray}})}((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(l||(l={})),function(e){var t;!function(n){var r,i,a,o;function s(t){var n=u(t.file,e.getRefactorContextSpan(t),"invoked"===t.triggerReason),r=n.targetRange;if(void 0===r)return n.errors&&0!==n.errors.length&&t.preferences.provideRefactorNotApplicableReason?[{name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[{description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),name:"function_extract_error",notApplicableReason:D(n.errors)}]},{name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[{description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),name:"constant_extract_error",notApplicableReason:D(n.errors)}]}]:e.emptyArray;var i=function(t,n){var r=d(t,n),i=r.readsAndWrites,a=i.functionErrorsPerScope,o=i.constantErrorsPerScope;return r.scopes.map(function(t,n){var r,i,s=function(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}(t),c=function(t){return e.isClassLike(t)?"readonly field":"constant"}(t),u=e.isFunctionLikeDeclaration(t)?function(t){switch(t.kind){case 165:return"constructor";case 205:case 248:return t.name?"function '"+t.name.text+"'":e.ANONYMOUS;case 206:return"arrow function";case 164:return"method '"+t.name.getText()+"'";case 166:return"'get "+t.name.getText()+"'";case 167:return"'set "+t.name.getText()+"'";default:throw e.Debug.assertNever(t,"Unexpected scope kind "+t.kind)}}(t):e.isClassLike(t)?function(e){return 249===e.kind?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}(t):function(e){return 254===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}(t);return 1===u?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[s,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===u?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[s,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[s,u]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,u])),0!==n||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:r,errors:a[n]},constantExtraction:{description:i,errors:o[n]}}})}(r,t);if(void 0===i)return e.emptyArray;for(var a,o,s=[],c=new e.Map,l=[],_=new e.Map,f=0,p=0,g=i;p0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(t)]);if(s||i.size){var l=e.visitNodes(u,function t(a){if(!c&&e.isReturnStatement(a)&&s){var u=g(n,r);return a.expression&&(o||(o="__return"),u.unshift(e.factory.createPropertyAssignment(o,e.visitNode(a.expression,t)))),e.factory.createReturnStatement(1===u.length?u[0].name:e.factory.createObjectLiteralExpression(u))}var l=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var _=i.get(e.getNodeId(a).toString()),d=_?e.getSynthesizedDeepClone(_):e.visitEachChild(a,t,e.nullTransformationContext);return c=l,d}).slice();if(s&&!a&&e.isStatement(t)){var _=g(n,r);l.push(e.factory.createReturnStatement(1===_.length?_[0].name:e.factory.createObjectLiteralExpression(_)))}return{body:e.factory.createBlock(l,!0),returnValueProperty:o}}return{body:e.factory.createBlock(u,!0),returnValueProperty:void 0}}(t,a,u,d,!!(o.facts&i.HasReturn)),F=O.body,I=O.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(F),e.isClassLike(n)){var M=C?[]:[e.factory.createModifier(120)];o.facts&i.InStaticRegion&&M.push(e.factory.createModifier(123)),o.facts&i.IsAsyncFunction&&M.push(e.factory.createModifier(129)),P=e.factory.createMethodDeclaration(void 0,M.length?M:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,S,void 0,w,k,c,F)}else P=e.factory.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.factory.createToken(129)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,S,w,k,c,F);var L=e.textChanges.ChangeTracker.fromContext(s),R=function(t,n){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var n=t.body;if(e.isBlock(n))return n.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray}(n),function(n){return n.pos>=t&&e.isFunctionLikeDeclaration(n)&&!e.isConstructorDeclaration(n)})}((m(o.range)?e.last(o.range):o.range).end,n);R?L.insertNodeBefore(s.file,R,P,!0):L.insertNodeAtEndOfScope(s.file,n,P),b.writeFixes(L);var B=[],j=function(t,n,r){var a=e.factory.createIdentifier(r);if(e.isClassLike(t)){var o=n.facts&i.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,a)}return a}(n,o,D),U=e.factory.createCallExpression(j,A,E);if(o.facts&i.IsGenerator&&(U=e.factory.createYieldExpression(e.factory.createToken(41),U)),o.facts&i.IsAsyncFunction&&(U=e.factory.createAwaitExpression(U)),v(t)&&(U=e.factory.createJsxExpression(void 0,U)),a.length&&!u)if(e.Debug.assert(!I,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length)B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone((Y=a[0]).name),void 0,e.getSynthesizedDeepClone(Y.type),U)],Y.parent.flags)));else{for(var z=[],J=[],V=a[0].parent.flags,W=!1,q=0,K=a;q0,"Found no members");for(var a=!0,o=0,s=i;ot)return r||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==r)return c;a=!1}r=c}return void 0===r?e.Debug.fail():r}(t.pos,n);m.insertNodeBefore(o.file,D,b,!0),m.replaceNode(o.file,t,x)}else{var C=e.factory.createVariableDeclaration(d,void 0,p,g),S=function(t,n){for(var r;void 0!==t&&t!==n;){if(e.isVariableDeclaration(t)&&t.initializer===r&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;r=t,t=t.parent}}(t,n);if(S)m.insertNodeBefore(o.file,S,C),x=e.factory.createIdentifier(d),m.replaceNode(o.file,t,x);else if(230===t.parent.kind&&n===e.findAncestor(t,_)){var k=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([C],2));m.replaceNode(o.file,t.parent,k)}else k=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([C],2)),0===(D=function(t,n){var r;e.Debug.assert(!e.isClassLike(n));for(var i=t;i!==n;i=i.parent)_(i)&&(r=i);for(i=(r||t).parent;;i=i.parent){if(y(i)){for(var a=void 0,o=0,s=i.statements;ot.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==n,"Didn't encounter a block-like before encountering scope")}}(t,n)).pos?m.insertNodeAtTopOfFile(o.file,k,!1):m.insertNodeBefore(o.file,D,k,!1),230===t.parent.kind?m.delete(o.file,t.parent):(x=e.factory.createIdentifier(d),v(t)&&(x=e.factory.createJsxExpression(void 0,x)),m.replaceNode(o.file,t,x))}var E=m.getChanges(),T=t.getSourceFile().fileName;return{renameFilename:T,renameLocation:e.getRenameLocation(E,T,d,!0),edits:E}}(e.isExpression(c)?c:c.statements[0].expression,o[r],u[r],t.facts,n)}(r,t,o);e.Debug.fail("Unrecognized action name")}function u(t,n,a){void 0===a&&(a=!0);var o=n.length;if(0===o&&!a)return{errors:[e.createFileDiagnostic(t,n.start,o,r.cannotExtractEmpty)]};var s=0===o&&a,c=e.getTokenAtPosition(t,n.start),u=s?function(t){return e.findAncestor(t,function(t){return t.parent&&h(t)&&!e.isBinaryExpression(t.parent)})}(c):e.getParentNodeInSpan(c,t,n),_=e.findTokenOnLeftOfPosition(t,e.textSpanEnd(n)),d=s?u:e.getParentNodeInSpan(_,t,n),f=[],p=i.None;if(!u||!d)return{errors:[e.createFileDiagnostic(t,n.start,o,r.cannotExtractRange)]};if(u.parent!==d.parent)return{errors:[e.createFileDiagnostic(t,n.start,o,r.cannotExtractRange)]};if(u!==d){if(!y(u.parent))return{errors:[e.createFileDiagnostic(t,n.start,o,r.cannotExtractRange)]};for(var g=[],m=0,v=u.parent.statements;m=n.start+n.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractSuper)),!0}else p|=i.UsesThis;break;case 206:e.forEachChild(a,function t(n){if(e.isThis(n))p|=i.UsesThis;else{if(e.isClassLike(n)||e.isFunctionLike(n)&&!e.isArrowFunction(n))return!1;e.forEachChild(n,t)}});case 249:case 248:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,r.functionWillNotBeVisibleInTheNewScope));case 218:case 205:case 164:case 165:case 166:case 167:return!1}var l=u;switch(a.kind){case 231:case 244:u=0;break;case 227:a.parent&&244===a.parent.kind&&a.parent.finallyBlock===a&&(u=4);break;case 282:case 281:u|=1;break;default:e.isIterationStatement(a,!1)&&(u|=3)}switch(a.kind){case 186:case 107:p|=i.UsesThis;break;case 242:(c||(c=[])).push((_=a.label).escapedText),e.forEachChild(a,t),c.pop();break;case 238:case 237:var _;(_=a.label)?e.contains(c,_.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(238===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 210:p|=i.IsAsyncFunction;break;case 216:p|=i.IsGenerator;break;case 239:4&u?p|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}u=l}(t),o}}function l(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:void 0}function _(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function d(t,n){var a=n.file,o=function(t){var n=m(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis){var r=e.getContainingClass(n);if(r){var a=e.findAncestor(n,e.isFunctionLikeDeclaration);return a?[a,r]:[r]}}for(var o=[];;)if(159===(n=n.parent).kind&&(n=e.findAncestor(n,function(t){return e.isFunctionLikeDeclaration(t)}).parent),_(n)&&(o.push(n),294===n.kind))return o}(t);return{scopes:o,readsAndWrites:function(t,n,a,o,s,c){var u,l,_=new e.Map,d=[],f=[],p=[],g=[],h=[],y=new e.Map,v=[],b=m(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===b){var x=t.range,D=e.first(x).getStart(),C=e.last(x).end;l=e.createFileDiagnostic(o,D,C-D,r.expressionExpected)}else 147456&s.getTypeAtLocation(b).flags&&(l=e.createDiagnosticForNode(b,r.uselessConstantType));for(var S=0,k=n;S=u)return m;if(w.set(m,u),h){for(var y=0,v=d;y0){for(var O=new e.Map,F=0,I=N;void 0!==I&&F=0)){var i=e.isIdentifier(r)?J(r):s.getSymbolAtLocation(r);if(i){var a=e.find(h,function(e){return e.symbol===i});if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();y.has(o)||(v.push(a),y.set(o,!0))}else u=u||a}e.forEachChild(r,n)}})}for(var j=function(n){var i=d[n];if(n>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=m(t.range)?t.range[0]:t.range;g[n].push(e.createDiagnosticForNode(a,r.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(d[n].usages.forEach(function(t){2===t.usage&&(s=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))}),e.Debug.assert(m(t.range)||0===v.length,"No variable declarations expected if something was extracted"),s&&!m(t.range)){var c=e.createDiagnosticForNode(t.range,r.cannotWriteInExpression);p[n].push(c),g[n].push(c)}else o&&n>0?(c=e.createDiagnosticForNode(o,r.cannotExtractReadonlyPropertyInitializerOutsideConstructor),p[n].push(c),g[n].push(c)):u&&(c=e.createDiagnosticForNode(u,r.cannotExtractExportedEntity),p[n].push(c),g[n].push(c))},U=0;Ur.pos});if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,r))return{toMove:[i[a]],afterLast:i[a+1]};if(!(r.pos>o.getStart(n))){var s=e.findIndex(i,function(e){return e.end>r.end},a);if(-1===s||!(0===s||i[s].getStart(n)=2&&e.every(t,function(t){return function(t,n){if(e.isRestParameter(t)){var r=n.getTypeAtLocation(t);if(!n.isArrayType(r)&&!n.isTupleType(r))return!1}return!t.modifiers&&!t.decorators&&e.isIdentifier(t.name)}(t,n)})}(t.parameters,n))return!1;switch(t.kind){case 248:return d(t)&&_(t,n);case 164:return _(t,n);case 165:return e.isClassDeclaration(t.parent)?d(t.parent)&&_(t,n):f(t.parent.parent)&&_(t,n);case 205:case 206:return f(t.parent)}return!1}(a,r)&&e.rangeContainsRange(a,i))||a.body&&e.rangeContainsRange(a.body,i)?void 0:a}function _(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function d(t){return!!t.name||!!e.findModifier(t,87)}function f(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function p(t){return t.length>0&&e.isThis(t[0].name)}function g(t){return p(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function m(t,n){var r=g(t.parameters),i=e.isRestParameter(e.last(r)),a=i?n.slice(0,r.length-1):n,o=e.map(a,function(t,n){var i,a,o=(i=h(r[n]),e.isIdentifier(a=t)&&e.getTextOfIdentifierOrLiteral(a)===i?e.factory.createShorthandPropertyAssignment(i):e.factory.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(o.name),e.isPropertyAssignment(o)&&e.suppressLeadingAndTrailingTrivia(o.initializer),e.copyComments(t,o),o});if(i&&n.length>=r.length){var s=n.slice(r.length-1),c=e.factory.createPropertyAssignment(h(e.last(r)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function h(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(r,{getEditsForAction:function(t,n){e.Debug.assert(n===r,"Unexpected action name");var _=t.file,d=t.program,f=t.cancellationToken,y=t.host,v=l(_,t.startPosition,d.getTypeChecker());if(v&&f){var b=function(t,n,r){var l=function(t){switch(t.kind){case 248:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,87),"Nameless function declaration should be a default export")];case 164:return[t.name];case 165:var n=e.Debug.checkDefined(e.findChildOfKind(t,132,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 218===t.parent.kind?[t.parent.parent.name,n]:[n];case 206:return[t.parent.name];case 205:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind "+t.kind)}}(t),_=e.isConstructorDeclaration(t)?function(t){switch(t.parent.kind){case 249:var n=t.parent;return n.name?[n.name]:[e.Debug.checkDefined(e.findModifier(n,87),"Nameless class declaration should be a default export")];case 218:var r=t.parent.parent,i=t.parent.name;return i?[i,r.name]:[r.name]}}(t):[],d=e.deduplicate(i(l,_),e.equateValues),f=n.getTypeChecker(),p=function(n){for(var r={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:r,valid:!0},d=e.map(l,g),f=e.map(_,g),p=e.isConstructorDeclaration(t),m=0,h=n;m0;){var o=i.shift();e.copyTrailingComments(t[o],a,n,3,!1),r(o,a)}}}(r,n,i),o=l(0,r),s=o[0],c=o[1],u=o[2];if(s===r.length){var d=e.factory.createNoSubstitutionTemplateLiteral(c);return a(u,d),d}var f=[],p=e.factory.createTemplateHead(c);a(u,p);for(var g=s;g328});return r.kind<156?r:r.getFirstToken(t)}},n.prototype.getLastToken=function(t){this.assertHasRealPosition();var n=this.getChildren(t),r=e.lastOrUndefined(n);if(r)return r.kind<156?r:r.getLastToken(t)},n.prototype.forEachChild=function(t,n){return e.forEachChild(this,t,n)},n}();function r(n,r,i,a){for(e.scanner.setTextPos(r);r=r.length&&(t=this.getEnd()),t||(t=r[n+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},n.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},n.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild(function i(a){switch(a.kind){case 248:case 205:case 164:case 163:var o=a,s=r(o);if(s){var c=function(e){var n=t.get(e);return n||t.set(e,n=[]),n}(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 249:case 218:case 250:case 251:case 252:case 253:case 257:case 267:case 262:case 259:case 260:case 166:case 167:case 176:n(a),e.forEachChild(a,i);break;case 159:if(!e.hasSyntacticModifier(a,92))break;case 246:case 195:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 288:case 162:case 161:n(a);break;case 264:var _=a;_.exportClause&&(e.isNamedExports(_.exportClause)?e.forEach(_.exportClause.elements,i):i(_.exportClause.name));break;case 258:var d=a.importClause;d&&(d.name&&n(d.name),d.namedBindings&&(260===d.namedBindings.kind?n(d.namedBindings):e.forEach(d.namedBindings.elements,i)));break;case 213:0!==e.getAssignmentDeclarationKind(a)&&n(a);default:e.forEachChild(a,i)}}),t;function n(e){var n=r(e);n&&t.add(n,e)}function r(t){var n=e.getNonAssignedNameOfDeclaration(t);return n&&(e.isComputedPropertyName(n)&&e.isPropertyAccessExpression(n.expression)?n.expression.name.text:e.isPropertyName(n)?e.getNameFromPropertyName(n):void 0)}},n}(n),h=function(){function t(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function y(t){var n=!0;for(var r in t)if(e.hasProperty(t,r)&&!v(r)){n=!1;break}if(n)return t;var i={};for(var r in t)e.hasProperty(t,r)&&(i[v(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=t[r]);return i}function v(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}e.toEditorSettings=y,e.displayPartsToString=function(t){return t?e.map(t,function(e){return e.text}).join(""):""},e.getDefaultCompilerOptions=function(){return{target:1,jsx:1}},e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var b=function(){function t(t,n){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var r=0,i=t.getScriptFileNames();r=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=E;var T=["getSyntacticDiagnostics","getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],w=i(T,["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"]);function A(t){var n=function(t){switch(t.kind){case 10:case 14:case 8:if(157===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 78:return!e.isObjectLiteralElement(t.parent)||197!==t.parent.parent.kind&&278!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}}(t);return n&&(e.isObjectLiteralExpression(n.parent)||e.isJsxAttributes(n.parent))?n:void 0}function N(t,n,r,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!r.isUnion())return(o=r.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(r.types,function(r){return e.isObjectLiteralExpression(t.parent)&&n.isTypeInvalidDueToUnionDiscriminant(r,t.parent)?void 0:r.getProperty(a)});return i&&(0===s.length||s.length===r.types.length)&&(o=r.getProperty(a))?[o]:0===s.length?e.mapDefined(r.types,function(e){return e.getProperty(a)}):s}e.createLanguageService=function(t,n,r){var o,s;void 0===n&&(n=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),s=void 0===r?e.LanguageServiceMode.Semantic:"boolean"==typeof r?r?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:r;var c,u,l=new x(t),_=0,d=new k(t.getCancellationToken&&t.getCancellationToken()),f=t.getCurrentDirectory();function p(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(t.getLocalizedDiagnosticMessages());var g=e.hostUsesCaseSensitiveFileNames(t),m=e.createGetCanonicalFileName(g),h=e.getSourceMapper({useCaseSensitiveFileNames:function(){return g},getCurrentDirectory:function(){return f},getProgram:C,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:p});function v(e){var t=c.getSourceFile(e);if(!t){var n=new Error("Could not find source file: '"+e+"'.");throw n.ProgramFiles=c.getSourceFiles().map(function(e){return e.fileName}),n}return t}function D(){var r,i;if(e.Debug.assert(s!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var a=t.getProjectVersion();if(a){if(u===a&&!(null===(r=t.hasChangedAutomaticTypeDirectiveNames)||void 0===r?void 0:r.call(t)))return;u=a}}var o=t.getTypeRootsVersion?t.getTypeRootsVersion():0;_!==o&&(p("TypeRoots version has changed; provide new program"),c=void 0,_=o);var l=new b(t,m),y=l.getRootFileNames(),v=t.hasInvalidatedResolution||e.returnFalse,x=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),D=l.getProjectReferences();if(!e.isProgramUptoDate(c,y,l.compilationSettings(),function(e,n){return t.getScriptVersion(n)},E,v,x,D)){var C=l.compilationSettings(),S={getSourceFile:function(t,n,r,i){return T(t,e.toPath(t,f,m),0,0,i)},getSourceFileByPath:T,getCancellationToken:function(){return d},getCanonicalFileName:m,useCaseSensitiveFileNames:function(){return g},getNewLine:function(){return e.getNewLineCharacter(C,function(){return e.getNewLineOrDefaultFromHost(t)})},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return f},fileExists:E,readFile:function(n){var r=e.toPath(n,f,m),i=l&&l.getEntryByPath(r);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(n)},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:function(n){return e.directoryProbablyExists(n,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:function(n,r,i,a,o){return e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(n,r,i,a,o)},onReleaseOldSourceFile:function(e,t){var r=n.getKeyForCompilationSettings(t);n.releaseDocumentWithKey(e.resolvedPath,r)},hasInvalidatedResolution:v,hasChangedAutomaticTypeDirectiveNames:x,trace:e.maybeBind(t,t.trace),resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect)};null===(i=t.setCompilerHost)||void 0===i||i.call(t,S);var k=n.getKeyForCompilationSettings(C);return c=e.createProgram({rootNames:y,options:C,host:S,oldProgram:c,projectReferences:D}),l=void 0,h.clearCache(),void c.getTypeChecker()}function E(n){var r=e.toPath(n,f,m),i=l&&l.getEntryByPath(r);return i?!e.isString(i):!!t.fileExists&&t.fileExists(n)}function T(t,r,i,a,o){e.Debug.assert(void 0!==l,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var s=l&&l.getOrCreateEntryByPath(t,r);if(s){if(!o){var u=c&&c.getSourceFileByPath(r);if(u)return e.Debug.assertEqual(s.scriptKind,u.scriptKind,"Registered script kind should match new script kind."),n.updateDocumentWithKey(t,r,C,k,s.scriptSnapshot,s.version,s.scriptKind)}return n.acquireDocumentWithKey(t,r,C,k,s.scriptSnapshot,s.version,s.scriptKind)}}}function C(){if(s!==e.LanguageServiceMode.Syntactic)return D(),c;e.Debug.assert(void 0===c)}function S(t,n,r){var i=e.normalizePath(t);e.Debug.assert(r.some(function(t){return e.normalizePath(t)===i})),D();var a=e.mapDefined(r,function(e){return c.getSourceFile(e)}),o=v(t);return e.DocumentHighlights.getDocumentHighlights(c,d,o,n,a)}function E(t,n,r,i){D();var a=r&&2===r.use?c.getSourceFiles().filter(function(e){return!c.isSourceFileDefaultLibrary(e)}):c.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(c,d,a,t,n,r,i)}function P(n){var r=e.getScriptKind(n,t);return 3===r||4===r}var O=new e.Map(e.getEntries(((o={})[18]=19,o[20]=21,o[22]=23,o[31]=29,o)));function F(n){var r;return e.Debug.assertEqual(n.type,"install package"),t.installPackage?t.installPackage({fileName:(r=n.file,e.toPath(r,f,m)),packageName:n.packageName}):Promise.reject("Host does not implement `installPackage`")}function I(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function M(t,n,r){for(var i=l.getCurrentSourceFile(t),a=[],o=I(i,n),s=o.lineStarts,c=o.firstLine,u=o.lastLine,_=r||!1,d=Number.MAX_VALUE,f=new e.Map,p=new RegExp(/\S/),g=e.isInsideJsxElement(i,s[c]),m=g?"{/*":"//",h=c;h<=u;h++){var y=i.text.substring(s[h],i.getLineEndOfPosition(s[h])),v=p.exec(y);v&&(d=Math.min(d,v.index),f.set(h.toString(),v.index),y.substr(v.index,m.length)!==m&&(_=void 0===r||r))}for(h=c;h<=u;h++){var b=f.get(h.toString());void 0!==b&&(g?a.push.apply(a,L(t,{pos:s[h]+d,end:i.getLineEndOfPosition(s[h])},_,g)):_?a.push({newText:m,span:{length:0,start:s[h]+d}}):i.text.substr(s[h]+b,m.length)===m&&a.push({newText:"",span:{length:m.length,start:s[h]+b}}))}return a}function L(t,n,r,i){for(var a,o=l.getCurrentSourceFile(t),s=[],c=o.text,u=!1,_=r||!1,d=[],f=n.pos,p=void 0!==i?i:e.isInsideJsxElement(o,f),g=p?"{/*":"/*",m=p?"*/}":"*/",h=p?"\\{\\/\\*":"\\/\\*",y=p?"\\*\\/\\}":"\\*\\/";f<=n.end;){var v=c.substr(f,g.length)===g?g.length:0,b=e.isInComment(o,f+v);if(b)p&&(b.pos--,b.end++),d.push(b.pos),3===b.kind&&d.push(b.end),u=!0,f=b.end+1;else{var x=c.substring(f,n.end).search("("+h+")|("+y+")");_=void 0!==r?r:_||!e.isTextWhiteSpaceLike(c,f,-1===x?n.end:f+x),f=-1===x?n.end+1:f+x+m.length}}if(_||!u){2!==(null===(a=e.isInComment(o,n.pos))||void 0===a?void 0:a.kind)&&e.insertSorted(d,n.pos,e.compareValues),e.insertSorted(d,n.end,e.compareValues);var D=d[0];c.substr(D,g.length)!==g&&s.push({newText:g,span:{length:0,start:D}});for(var C=1;C0?E-m.length:0,m.length)===m?m.length:0,s.push({newText:"",span:{length:g.length,start:E-v}})}return s}function R(t){var n=t.openingElement,r=t.parent;return!e.tagNamesAreEquivalent(n.tagName,t.closingElement.tagName)||e.isJsxElement(r)&&e.tagNamesAreEquivalent(n.tagName,r.openingElement.tagName)&&R(r)}function B(n,r,i,a,o){var s="number"==typeof r?[r,void 0]:[r.pos,r.end];return{file:n,startPosition:s[0],endPosition:s[1],program:C(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:d,preferences:i,triggerReason:o}}O.forEach(function(e,t){return O.set(e.toString(),Number(t))});var j={dispose:function(){if(c){var r=n.getKeyForCompilationSettings(c.getCompilerOptions());e.forEach(c.getSourceFiles(),function(e){return n.releaseDocumentWithKey(e.resolvedPath,r)}),c=void 0}t=void 0},cleanupSemanticCache:function(){c=void 0},getSyntacticDiagnostics:function(e){return D(),c.getSyntacticDiagnostics(v(e),d).slice()},getSemanticDiagnostics:function(t){D();var n=v(t),r=c.getSemanticDiagnostics(n,d);if(!e.getEmitDeclarations(c.getCompilerOptions()))return r.slice();var a=c.getDeclarationDiagnostics(n,d);return i(r,a)},getSuggestionDiagnostics:function(t){return D(),e.computeSuggestionDiagnostics(v(t),c,d)},getCompilerOptionsDiagnostics:function(){return D(),i(c.getOptionsDiagnostics(d),c.getGlobalDiagnostics(d))},getSyntacticClassifications:function(t,n){return e.getSyntacticClassifications(d,l.getCurrentSourceFile(t),n)},getSemanticClassifications:function(t,n){return P(t)?(D(),e.getSemanticClassifications(c.getTypeChecker(),d,v(t),c.getClassifiableNames(),n)):[]},getEncodedSyntacticClassifications:function(t,n){return e.getEncodedSyntacticClassifications(d,l.getCurrentSourceFile(t),n)},getEncodedSemanticClassifications:function(t,n){return P(t)?(D(),e.getEncodedSemanticClassifications(c.getTypeChecker(),d,v(t),c.getClassifiableNames(),n)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(n,r,i){void 0===i&&(i=e.emptyOptions);var o=a(a({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return D(),e.Completions.getCompletionsAtPosition(t,c,p,v(n),r,o,i.triggerCharacter)},getCompletionEntryDetails:function(n,r,i,a,o,s){return void 0===s&&(s=e.emptyOptions),D(),e.Completions.getCompletionEntryDetails(c,p,v(n),r,{name:i,source:o},t,a&&e.formatting.getFormatContext(a,t),s,d)},getCompletionEntrySymbol:function(n,r,i,a,o){return void 0===o&&(o=e.emptyOptions),D(),e.Completions.getCompletionEntrySymbol(c,p,v(n),r,{name:i,source:a},t,o)},getSignatureHelpItems:function(t,n,r){var i=(void 0===r?e.emptyOptions:r).triggerReason;D();var a=v(t);return e.SignatureHelp.getSignatureHelpItems(c,a,n,i,d)},getQuickInfoAtPosition:function(t,n){D();var r=v(t),i=e.getTouchingPropertyName(r,n);if(i!==r){var a=c.getTypeChecker(),o=function(t){return e.isNewExpression(t.parent)&&t.pos===t.parent.pos?t.parent.expression:t}(i),s=function(t,n){var r=A(t);if(r){var i=n.getContextualType(r.parent),a=i&&N(r,n,i,!1);if(a&&1===a.length)return e.first(a)}return n.getSymbolAtLocation(t)}(o,a);if(!s||a.isUnknownSymbol(s)){var u=function(t,n,r){switch(n.kind){case 78:return!e.isLabelName(n)&&!e.isTagName(n);case 198:case 156:return!e.isInComment(t,r);case 107:case 186:case 105:return!0;default:return!1}}(r,o,n)?a.getTypeAtLocation(o):void 0;return u&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,r),displayParts:a.runWithCancellationToken(d,function(t){return e.typeToDisplayParts(t,u,e.getContainerNode(o))}),documentation:u.symbol?u.symbol.getDocumentationComment(a):void 0,tags:u.symbol?u.symbol.getJsDocTags():void 0}}var l=a.runWithCancellationToken(d,function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,r,e.getContainerNode(o),o)}),_=l.displayParts,f=l.documentation,p=l.tags;return{kind:l.symbolKind,kindModifiers:e.SymbolDisplay.getSymbolModifiers(s),textSpan:e.createTextSpanFromNode(o,r),displayParts:_,documentation:f,tags:p}}},getDefinitionAtPosition:function(t,n){return D(),e.GoToDefinition.getDefinitionAtPosition(c,v(t),n)},getDefinitionAndBoundSpan:function(t,n){return D(),e.GoToDefinition.getDefinitionAndBoundSpan(c,v(t),n)},getImplementationAtPosition:function(t,n){return D(),e.FindAllReferences.getImplementationsAtPosition(c,d,c.getSourceFiles(),v(t),n)},getTypeDefinitionAtPosition:function(t,n){return D(),e.GoToDefinition.getTypeDefinitionAtPosition(c.getTypeChecker(),v(t),n)},getReferencesAtPosition:function(t,n){return D(),E(e.getTouchingPropertyName(v(t),n),n,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,n){return D(),e.FindAllReferences.findReferencedSymbols(c,d,c.getSourceFiles(),v(t),n)},getOccurrencesAtPosition:function(t,n){return e.flatMap(S(t,n,[t]),function(e){return e.highlightSpans.map(function(t){return a(a({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})})})},getDocumentHighlights:S,getNameOrDottedNameSpan:function(t,n,r){var i=l.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,n);if(a!==i){switch(a.kind){case 198:case 156:case 10:case 94:case 109:case 103:case 105:case 107:case 186:case 78:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(253!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(t,n){var r=l.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(r,n)},getNavigateToItems:function(t,n,r,i){void 0===i&&(i=!1),D();var a=r?[v(r)]:c.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,c.getTypeChecker(),d,t,n,i)},getRenameInfo:function(t,n,r){return D(),e.Rename.getRenameInfo(c,v(t),n,r)},getSmartSelectionRange:function(t,n){return e.SmartSelectionRange.getSmartSelectionRange(n,l.getCurrentSourceFile(t))},findRenameLocations:function(t,n,r,i,o){D();var s=v(t),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(s,n));if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var u=c.parent.parent;return[u.openingElement,u.closingElement].map(function(t){var n=e.createTextSpanFromNode(t.tagName,s);return a({fileName:s.fileName,textSpan:n},e.FindAllReferences.toContextSpan(n,s,t.parent))})}return E(c,n,{findInStrings:r,findInComments:i,providePrefixAndSuffixTextForRename:o,use:2},function(t,n,r){return e.FindAllReferences.toRenameLocation(t,n,r,o||!1)})},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(l.getCurrentSourceFile(t),d)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(l.getCurrentSourceFile(t),d)},getOutliningSpans:function(t){var n=l.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(n,d)},getTodoComments:function(t,n){D();var r=v(t);d.throwIfCancellationRequested();var i,a,o,s=r.text,c=[];if(n.length>0&&!e.stringContains(r.fileName,"/node_modules/"))for(var u=(a="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",o="(?:"+e.map(n,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")",new RegExp(a+"("+o+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")),l=void 0;l=u.exec(s);){d.throwIfCancellationRequested(),e.Debug.assert(l.length===n.length+3);var _=l.index+l[1].length;if(e.isInComment(r,_)){for(var f=void 0,p=0;p=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||c.push({descriptor:f,message:l[2],position:_})}}return c},getBraceMatchingAtPosition:function(t,n){var r=l.getCurrentSourceFile(t),i=e.getTouchingToken(r,n),a=i.getStart(r)===n?O.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,r);return o?[e.createTextSpanFromNode(i,r),e.createTextSpanFromNode(o,r)].sort(function(e,t){return e.start-t.start}):e.emptyArray},getIndentationAtPosition:function(t,n,r){var i=e.timestamp(),a=y(r),o=l.getCurrentSourceFile(t);p("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(n,o,a);return p("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(n,r,i,a){var o=l.getCurrentSourceFile(n);return e.formatting.formatSelection(r,i,o,e.formatting.getFormatContext(y(a),t))},getFormattingEditsForDocument:function(n,r){return e.formatting.formatDocument(l.getCurrentSourceFile(n),e.formatting.getFormatContext(y(r),t))},getFormattingEditsAfterKeystroke:function(n,r,i,a){var o=l.getCurrentSourceFile(n),s=e.formatting.getFormatContext(y(a),t);if(!e.isInComment(o,r))switch(i){case"{":return e.formatting.formatOnOpeningCurly(r,o,s);case"}":return e.formatting.formatOnClosingCurly(r,o,s);case";":return e.formatting.formatOnSemicolon(r,o,s);case"\n":return e.formatting.formatOnEnter(r,o,s)}return[]},getDocCommentTemplateAtPosition:function(n,r){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),l.getCurrentSourceFile(n),r)},isValidBraceCompletionAtPosition:function(t,n,r){if(60===r)return!1;var i=l.getCurrentSourceFile(t);if(e.isInString(i,n))return!1;if(e.isInsideJsxElementOrAttribute(i,n))return 123===r;if(e.isInTemplateString(i,n))return!1;switch(r){case 39:case 34:case 96:return!e.isInComment(i,n)}return!0},getJsxClosingTagAtPosition:function(t,n){var r=l.getCurrentSourceFile(t),i=e.findPrecedingToken(n,r);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)?i.parent:void 0;return a&&R(a)?{newText:""}:void 0}},getSpanOfEnclosingComment:function(t,n,r){var i=l.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,n);return!a||r&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(n,r,i,a,o,s){void 0===s&&(s=e.emptyOptions),D();var u=v(n),l=e.createTextSpanFromBounds(r,i),_=e.formatting.getFormatContext(o,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),function(n){return d.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:n,sourceFile:u,span:l,program:c,host:t,cancellationToken:d,formatContext:_,preferences:s})})},getCombinedCodeFix:function(n,r,i,a){void 0===a&&(a=e.emptyOptions),D(),e.Debug.assert("file"===n.type);var o=v(n.fileName),s=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:r,sourceFile:o,program:c,host:t,cancellationToken:d,formatContext:s,preferences:a})},applyCodeActionCommand:function(t,n){var r="string"==typeof t?n:t;return e.isArray(r)?Promise.all(r.map(function(e){return F(e)})):F(r)},organizeImports:function(n,r,i){void 0===i&&(i=e.emptyOptions),D(),e.Debug.assert("file"===n.type);var a=v(n.fileName),o=e.formatting.getFormatContext(r,t);return e.OrganizeImports.organizeImports(a,o,t,c,i)},getEditsForFileRename:function(n,r,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(C(),n,r,t,e.formatting.getFormatContext(i,t),a,h)},getEmitOutput:function(n,r,i){D();var a=v(n),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(c,a,!!r,d,o,i)},getNonBoundSourceFile:function(e){return l.getCurrentSourceFile(e)},getProgram:C,getAutoImportProvider:function(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},getApplicableRefactors:function(t,n,r,i){void 0===r&&(r=e.emptyOptions),D();var a=v(t);return e.refactor.getApplicableRefactors(B(a,n,r,e.emptyOptions,i))},getEditsForRefactor:function(t,n,r,i,a,o){void 0===o&&(o=e.emptyOptions),D();var s=v(t);return e.refactor.getEditsForRefactor(B(s,r,o,n),i,a)},toLineColumnOffset:h.toLineColumnOffset,getSourceMapper:function(){return h},clearSourceMapperCache:function(){return h.clearCache()},prepareCallHierarchy:function(t,n){D();var r=e.CallHierarchy.resolveCallHierarchyDeclaration(c,e.getTouchingPropertyName(v(t),n));return r&&e.mapOneOrMany(r,function(t){return e.CallHierarchy.createCallHierarchyItem(c,t)})},provideCallHierarchyIncomingCalls:function(t,n){D();var r=v(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===n?r:e.getTouchingPropertyName(r,n)));return i?e.CallHierarchy.getIncomingCalls(c,i,d):[]},provideCallHierarchyOutgoingCalls:function(t,n){D();var r=v(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===n?r:e.getTouchingPropertyName(r,n)));return i?e.CallHierarchy.getOutgoingCalls(c,i):[]},toggleLineComment:M,toggleMultilineComment:L,commentSelection:function(e,t){var n=I(l.getCurrentSourceFile(e),t);return n.firstLine===n.lastLine&&t.pos!==t.end?L(e,t,!0):M(e,t,!0)},uncommentSelection:function(t,n){var r=l.getCurrentSourceFile(t),i=[],a=n.pos,o=n.end;a===o&&(o+=e.isInsideJsxElement(r,a)?2:1);for(var s=a;s<=o;s++){var c=e.isInComment(r,s);if(c){switch(c.kind){case 2:i.push.apply(i,M(t,{end:c.end,pos:c.pos+1},!1));break;case 3:i.push.apply(i,L(t,{end:c.end,pos:c.pos+1},!1))}s=c.end+1}}return i}};switch(s){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:T.forEach(function(e){return j[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.PartialSemantic")}});break;case e.LanguageServiceMode.Syntactic:w.forEach(function(e){return j[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.Syntactic")}});break;default:e.Debug.assertNever(s)}return j},e.getNameTable=function(t){return t.nameTable||function(t){var n=t.nameTable=new e.Map;t.forEachChild(function t(r){if(e.isIdentifier(r)&&!e.isTagName(r)&&r.escapedText||e.isStringOrNumericLiteralLike(r)&&function(t){return e.isDeclarationName(t)||269===t.parent.kind||function(e){return e&&e.parent&&199===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(r)){var i=e.getEscapedTextOfIdentifierOrLiteral(r);n.set(i,void 0===n.get(i)?r.pos:-1)}else e.isPrivateIdentifier(r)&&n.set(i=r.escapedText,void 0===n.get(i)?r.pos:-1);if(e.forEachChild(r,t),e.hasJSDocNodes(r))for(var a=0,o=r.jsDoc;ai){var a=e.findPrecedingToken(r.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;r=a}if(!(8388608&r.flags))return _(r)}function o(n,r){var i=n.decorators?e.skipTrivia(t.text,n.decorators.end):n.getStart(t);return e.createTextSpanFromBounds(i,(r||n).getEnd())}function s(n,r){return o(n,e.findNextToken(r,r.parent,t))}function c(e,n){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?_(e):_(n)}function u(n){return _(e.findPrecedingToken(n.pos,t))}function l(n){return _(e.findNextToken(n,n.parent,t))}function _(n){if(n){var r=n.parent;switch(n.kind){case 229:return y(n.declarationList.declarations[0]);case 246:case 162:case 161:return y(n);case 159:return function t(n){if(e.isBindingPattern(n.name))return D(n.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(t,12)}(n))return o(n);var r=n.parent,i=r.parameters.indexOf(n);return e.Debug.assert(-1!==i),0!==i?t(r.parameters[i-1]):_(r.body)}(n);case 248:case 164:case 163:case 166:case 167:case 165:case 205:case 206:return function(e){if(e.body)return v(e)?o(e):_(e.body)}(n);case 227:if(e.isFunctionBlock(n))return g=(p=n).statements.length?p.statements[0]:p.getLastToken(),v(p.parent)?c(p.parent,g):_(g);case 254:return b(n);case 284:return b(n.block);case 230:return o(n.expression);case 239:return o(n.getChildAt(0),n.expression);case 233:return s(n,n.expression);case 232:return _(n.statement);case 245:return o(n.getChildAt(0));case 231:return s(n,n.expression);case 242:return _(n.statement);case 238:case 237:return o(n.getChildAt(0),n.label);case 234:return(f=n).initializer?x(f):f.condition?o(f.condition):f.incrementor?o(f.incrementor):void 0;case 235:return s(n,n.expression);case 236:return x(n);case 241:return s(n,n.expression);case 281:case 282:return _(n.statements[0]);case 244:return b(n.tryBlock);case 243:case 263:return o(n,n.expression);case 257:return o(n,n.moduleReference);case 258:case 264:return o(n,n.moduleSpecifier);case 253:if(1!==e.getModuleInstanceState(n))return;case 249:case 252:case 288:case 195:return o(n);case 240:return _(n.statement);case 160:return e.createTextSpanFromBounds(e.skipTrivia(t.text,(m=r.decorators).pos),m.end);case 193:case 194:return D(n);case 250:case 251:return;case 26:case 1:return c(e.findPrecedingToken(n.pos,t));case 27:return u(n);case 18:return function(n){switch(n.parent.kind){case 252:var r=n.parent;return c(e.findPrecedingToken(n.pos,t,n.parent),r.members.length?r.members[0]:r.getLastToken(t));case 249:var i=n.parent;return c(e.findPrecedingToken(n.pos,t,n.parent),i.members.length?i.members[0]:i.getLastToken(t));case 255:return c(n.parent.parent,n.parent.clauses[0])}return _(n.parent)}(n);case 19:return function(t){switch(t.parent.kind){case 254:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 252:case 249:return o(t);case 227:if(e.isFunctionBlock(t.parent))return o(t);case 284:return _(e.lastOrUndefined(t.parent.statements));case 255:var n=e.lastOrUndefined(t.parent.clauses);return n?_(e.lastOrUndefined(n.statements)):void 0;case 193:var r=t.parent;return _(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var i=t.parent;return o(e.lastOrUndefined(i.properties)||i)}return _(t.parent)}}(n);case 23:return function(t){switch(t.parent.kind){case 194:var n=t.parent;return o(e.lastOrUndefined(n.elements)||n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var r=t.parent;return o(e.lastOrUndefined(r.elements)||r)}return _(t.parent)}}(n);case 20:return function(e){return 232===e.parent.kind||200===e.parent.kind||201===e.parent.kind?u(e):204===e.parent.kind?l(e):_(e.parent)}(n);case 21:return function(e){switch(e.parent.kind){case 205:case 248:case 206:case 164:case 163:case 166:case 167:case 165:case 233:case 232:case 234:case 236:case 200:case 201:case 204:return u(e);default:return _(e.parent)}}(n);case 58:return function(t){return e.isFunctionLike(t.parent)||285===t.parent.kind||159===t.parent.kind?u(t):_(t.parent)}(n);case 31:case 29:return function(e){return 203===e.parent.kind?l(e):_(e.parent)}(n);case 114:return function(e){return 232===e.parent.kind?s(e,e.parent.expression):_(e.parent)}(n);case 90:case 82:case 95:return l(n);case 155:return function(e){return 236===e.parent.kind?l(e):_(e.parent)}(n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return C(n);if((78===n.kind||217===n.kind||285===n.kind||286===n.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return o(n);if(213===n.kind){var i=n.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(d=n.left))return C(d);if(62===i.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent))return o(n);if(27===i.kind)return _(d)}if(e.isExpressionNode(n))switch(r.kind){case 232:return u(n);case 160:return _(n.parent);case 234:case 236:return o(n);case 213:if(27===n.parent.operatorToken.kind)return o(n);break;case 206:if(n.parent.body===n)return o(n)}switch(n.parent.kind){case 285:if(n.parent.name===n&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent))return _(n.parent.initializer);break;case 203:if(n.parent.type===n)return l(n.parent.type);break;case 246:case 159:var a=n.parent;if(a.initializer===n||a.type===n||e.isAssignmentOperator(n.kind))return u(n);break;case 213:var d;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(d=n.parent.left)&&n!==d)return u(n);break;default:if(e.isFunctionLike(n.parent)&&n.parent.type===n)return u(n)}return _(n.parent)}}var f,p,g,m;function h(n){return e.isVariableDeclarationList(n.parent)&&n.parent.declarations[0]===n?o(e.findPrecedingToken(n.pos,t,n.parent),n):o(n)}function y(n){if(235===n.parent.parent.kind)return _(n.parent.parent);var r=n.parent;return e.isBindingPattern(n.name)?D(n.name):n.initializer||e.hasSyntacticModifier(n,1)||236===r.parent.kind?h(n):e.isVariableDeclarationList(n.parent)&&n.parent.declarations[0]!==n?_(e.findPrecedingToken(n.pos,t,n.parent)):void 0}function v(t){return e.hasSyntacticModifier(t,1)||249===t.parent.kind&&165!==t.kind}function b(n){switch(n.parent.kind){case 253:if(1!==e.getModuleInstanceState(n.parent))return;case 233:case 231:case 235:return c(n.parent,n.statements[0]);case 234:case 236:return c(e.findPrecedingToken(n.pos,t,n.parent),n.statements[0])}return _(n.statements[0])}function x(e){if(247!==e.initializer.kind)return _(e.initializer);var t=e.initializer;return t.declarations.length>0?_(t.declarations[0]):void 0}function D(t){var n=e.forEach(t.elements,function(e){return 219!==e.kind?e:void 0});return n?_(n):195===t.parent.kind?o(t.parent):h(t.parent)}function C(t){e.Debug.assert(194!==t.kind&&193!==t.kind);var n=e.forEach(196===t.kind?t.elements:t.properties,function(e){return 219!==e.kind?e:void 0});return n?_(n):o(213===t.parent.kind?t.parent:t)}}}}(l||(l={})),function(e){e.transform=function(t,n,r){var i=[];r=e.fixupCompilerOptions(r,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,e.factory,r,a,n,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(l||(l={}));var l,_=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var n=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var n=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(null===n)return null;var r=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(r.span.start,r.span.length),r.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),r=function(){function t(t){var n=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,r){var i=JSON.parse(n.shimHost.getModuleResolutionsForFile(r));return e.map(t,function(t){var n=e.getProperty(i,t);return n?{resolvedFileName:n,extension:e.extensionFromPath(n),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return n.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,r){var i=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return e.map(t,function(t){return e.getProperty(i,t)})})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new n(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(t){return this.log(t.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,n,r,i,a){var o=e.getFileMatcherPatterns(t,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=r;var o=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),this.directoryExists="directoryExists"in this.shimHost?function(e){return t.shimHost.directoryExists(e)}:void 0,this.realpath="realpath"in this.shimHost?function(e){return t.shimHost.realpath(e)}:void 0}return t.prototype.readDirectory=function(t,n,r,i,a){var o=e.getFileMatcherPatterns(t,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function s(e,t,n,r){return l(e,t,!0,n,r)}function l(n,r,i,a,o){try{var s=function(t,n,r,i){var a;i&&(t.log(n),a=e.timestamp());var o=r();if(i){var s=e.timestamp();if(t.log(n+" completed in "+(s-a)+" msec"),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(n,r,a,o);return i?JSON.stringify({result:s}):s}catch(c){return c instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(n,c),c.description=r,JSON.stringify({error:c}))}}e.CoreServicesShimHostAdapter=o;var d=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function f(t,n){return t.map(function(t){return function(t,n){return{message:e.flattenDiagnosticMessageText(t.messageText,n),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}(t,n)})}e.realizeDiagnostics=f;var p=function(t){function n(e,n,r){var i=t.call(this,e)||this;return i.host=n,i.languageService=r,i.logPerformance=!1,i.logger=i.host,i}return u(n,t),n.prototype.forwardJSONCall=function(e,t){return s(this.logger,e,t,this.logPerformance)},n.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,_&&_.CollectGarbage&&(_.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},n.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},n.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},n.prototype.realizeDiagnostics=function(t){return f(t,e.getNewLineOrDefaultFromHost(this.host))},n.prototype.getSyntacticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+t+"', "+n+", "+r+")",function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(n,r))})},n.prototype.getSemanticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+t+"', "+n+", "+r+")",function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(n,r))})},n.prototype.getEncodedSyntacticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+t+"', "+n+", "+r+")",function(){return g(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(n,r)))})},n.prototype.getEncodedSemanticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+t+"', "+n+", "+r+")",function(){return g(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(n,r)))})},n.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var n=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(n)})},n.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var n=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(n)})},n.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},n.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},n.prototype.getQuickInfoAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return n.languageService.getQuickInfoAtPosition(e,t)})},n.prototype.getNameOrDottedNameSpan=function(e,t,n){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNameOrDottedNameSpan(e,t,n)})},n.prototype.getBreakpointStatementAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBreakpointStatementAtPosition(e,t)})},n.prototype.getSignatureHelpItems=function(e,t,n){var r=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return r.languageService.getSignatureHelpItems(e,t,n)})},n.prototype.getDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAtPosition(e,t)})},n.prototype.getDefinitionAndBoundSpan=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAndBoundSpan(e,t)})},n.prototype.getTypeDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getTypeDefinitionAtPosition(e,t)})},n.prototype.getImplementationAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return n.languageService.getImplementationAtPosition(e,t)})},n.prototype.getRenameInfo=function(e,t,n){var r=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return r.languageService.getRenameInfo(e,t,n)})},n.prototype.getSmartSelectionRange=function(e,t){var n=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+t+")",function(){return n.languageService.getSmartSelectionRange(e,t)})},n.prototype.findRenameLocations=function(e,t,n,r,i){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+n+", "+r+", "+i+")",function(){return a.languageService.findRenameLocations(e,t,n,r,i)})},n.prototype.getBraceMatchingAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBraceMatchingAtPosition(e,t)})},n.prototype.isValidBraceCompletionAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.isValidBraceCompletionAtPosition(e,t,n)})},n.prototype.getSpanOfEnclosingComment=function(e,t,n){var r=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return r.languageService.getSpanOfEnclosingComment(e,t,n)})},n.prototype.getIndentationAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(n);return r.languageService.getIndentationAtPosition(e,t,i)})},n.prototype.getReferencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getReferencesAtPosition(e,t)})},n.prototype.findReferences=function(e,t){var n=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return n.languageService.findReferences(e,t)})},n.prototype.getOccurrencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getOccurrencesAtPosition(e,t)})},n.prototype.getDocumentHighlights=function(t,n,r){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+t+"', "+n+")",function(){var a=i.languageService.getDocumentHighlights(t,n,JSON.parse(r)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,function(t){return e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o})})},n.prototype.getCompletionsAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.getCompletionsAtPosition(e,t,n)})},n.prototype.getCompletionEntryDetails=function(e,t,n,r,i,a){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+n+"')",function(){var s=void 0===r?void 0:JSON.parse(r);return o.languageService.getCompletionEntryDetails(e,t,n,s,i,a)})},n.prototype.getFormattingEditsForRange=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+n+")",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsForRange(e,t,n,a)})},n.prototype.getFormattingEditsForDocument=function(e,t){var n=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var r=JSON.parse(t);return n.languageService.getFormattingEditsForDocument(e,r)})},n.prototype.getFormattingEditsAfterKeystroke=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+n+"')",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsAfterKeystroke(e,t,n,a)})},n.prototype.getDocCommentTemplateAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDocCommentTemplateAtPosition(e,t)})},n.prototype.getNavigateToItems=function(e,t,n){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNavigateToItems(e,t,n)})},n.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},n.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},n.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},n.prototype.getTodoComments=function(e,t){var n=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return n.languageService.getTodoComments(e,JSON.parse(t))})},n.prototype.prepareCallHierarchy=function(e,t){var n=this;return this.forwardJSONCall("prepareCallHierarchy('"+e+"', "+t+")",function(){return n.languageService.prepareCallHierarchy(e,t)})},n.prototype.provideCallHierarchyIncomingCalls=function(e,t){var n=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+e+"', "+t+")",function(){return n.languageService.provideCallHierarchyIncomingCalls(e,t)})},n.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var n=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+e+"', "+t+")",function(){return n.languageService.provideCallHierarchyOutgoingCalls(e,t)})},n.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){var n=t.languageService.getEmitOutput(e),r=n.diagnostics,i=c(n,["diagnostics"]);return a(a({},i),{diagnostics:t.realizeDiagnostics(r)})})},n.prototype.getEmitOutputObject=function(e){var t=this;return l(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},n.prototype.toggleLineComment=function(e,t){var n=this;return this.forwardJSONCall("toggleLineComment('"+e+"', '"+JSON.stringify(t)+"')",function(){return n.languageService.toggleLineComment(e,t)})},n.prototype.toggleMultilineComment=function(e,t){var n=this;return this.forwardJSONCall("toggleMultilineComment('"+e+"', '"+JSON.stringify(t)+"')",function(){return n.languageService.toggleMultilineComment(e,t)})},n.prototype.commentSelection=function(e,t){var n=this;return this.forwardJSONCall("commentSelection('"+e+"', '"+JSON.stringify(t)+"')",function(){return n.languageService.commentSelection(e,t)})},n.prototype.uncommentSelection=function(e,t){var n=this;return this.forwardJSONCall("uncommentSelection('"+e+"', '"+JSON.stringify(t)+"')",function(){return n.languageService.uncommentSelection(e,t)})},n}(d);function g(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var m=function(t){function n(n,r){var i=t.call(this,n)||this;return i.logger=r,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return u(n,t),n.prototype.getEncodedLexicalClassifications=function(e,t,n){var r=this;return void 0===n&&(n=!1),s(this.logger,"getEncodedLexicalClassifications",function(){return g(r.classifier.getEncodedLexicalClassifications(e,t,n))},this.logPerformance)},n.prototype.getClassificationsForLine=function(e,t,n){void 0===n&&(n=!1);for(var r=this.classifier.getClassificationsForLine(e,t,n),i="",a=0,o=r.entries;a=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,n,r):e.Debug.fail("Argument count mismatch")},t),e.updateVariableDeclaration=e.Debug.deprecate(function(t,n,r,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,n,r,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,n,t.exclamationToken,r,i):e.Debug.fail("Argument count mismatch")},t),e.createImportClause=e.Debug.deprecate(function(t,n,r){return void 0===r&&(r=!1),e.factory.createImportClause(r,t,n)},t),e.updateImportClause=e.Debug.deprecate(function(t,n,r,i){return e.factory.updateImportClause(t,i,n,r)},t),e.createExportDeclaration=e.Debug.deprecate(function(t,n,r,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(t,n,a,r,i)},t),e.updateExportDeclaration=e.Debug.deprecate(function(t,n,r,i,a,o){return e.factory.updateExportDeclaration(t,n,r,o,i,a)},t),e.createJSDocParamTag=e.Debug.deprecate(function(t,n,r,i){return e.factory.createJSDocParameterTag(void 0,t,n,r,!1,i)},t),e.createComma=e.Debug.deprecate(function(t,n){return e.factory.createComma(t,n)},t),e.createLessThan=e.Debug.deprecate(function(t,n){return e.factory.createLessThan(t,n)},t),e.createAssignment=e.Debug.deprecate(function(t,n){return e.factory.createAssignment(t,n)},t),e.createStrictEquality=e.Debug.deprecate(function(t,n){return e.factory.createStrictEquality(t,n)},t),e.createStrictInequality=e.Debug.deprecate(function(t,n){return e.factory.createStrictInequality(t,n)},t),e.createAdd=e.Debug.deprecate(function(t,n){return e.factory.createAdd(t,n)},t),e.createSubtract=e.Debug.deprecate(function(t,n){return e.factory.createSubtract(t,n)},t),e.createLogicalAnd=e.Debug.deprecate(function(t,n){return e.factory.createLogicalAnd(t,n)},t),e.createLogicalOr=e.Debug.deprecate(function(t,n){return e.factory.createLogicalOr(t,n)},t),e.createPostfixIncrement=e.Debug.deprecate(function(t){return e.factory.createPostfixIncrement(t)},t),e.createLogicalNot=e.Debug.deprecate(function(t){return e.factory.createLogicalNot(t)},t),e.createNode=e.Debug.deprecate(function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=0),e.setTextRangePosEnd(294===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):78===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):79===t?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseNode(t):e.parseBaseNodeFactory.createBaseTokenNode(t),n,r)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(t){var n=e.factory.cloneNode(t);return e.setTextRange(n,t),e.setParent(n,t.parent),n},{since:"4.0",warnAfter:"4.1",message:"Use `factory.cloneNode` instead and use `setCommentRange` or `setSourceMapRange` and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate(function(e){return 203===e.kind},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})}(l||(l={}))},SpAZ:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",function(){return r})},TQ3W:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("8Y7J"),i=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){return"de"===e?"Deutsch":"en"===e?"English":"es"===e?"Spanish":"ru"===e?"\u0420\u0443\u0441\u0441\u043a\u0438\u0439":"zh_CN"===e?"\u4e2d\u6587-\u7b80\u4f53":""}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Kb({name:"language",type:e,pure:!0}),e}()},TSSN:function(e,t,n){"use strict";n.d(t,"a",function(){return p}),n.d(t,"b",function(){return L}),n.d(t,"c",function(){return M}),n.d(t,"d",function(){return I});var r=n("8Y7J"),i=n("LRne"),a=n("7+OI"),o=n("cp0P"),s=n("GyhO"),c=n("NXyV"),u=n("IzEk"),l=n("UXun"),_=n("lJxs"),d=n("bOdf"),f=n("eIep"),p=function e(){_classCallCheck(this,e)},g=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTranslation",value:function(e){return Object(i.a)({})}}]),n}(p);return e.\u0275fac=function(t){return m(t||e)},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac}),e}(),m=r.Qb(g),h=function e(){_classCallCheck(this,e)},y=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"handle",value:function(e){return e.key}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac}),e}();function v(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,r,i,a=typeof e;if(a==typeof t&&"object"==a){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(r in i=Object.create(null),e){if(!v(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&void 0!==t[r])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(r=0;r5&&void 0!==arguments[5])||arguments[5],c=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=arguments.length>8?arguments[8]:void 0;_classCallCheck(this,e),this.store=t,this.currentLoader=n,this.compiler=i,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.isolate=c,this.extend=u,this.pending=!1,this._onTranslationChange=new r.n,this._onLangChange=new r.n,this._onDefaultLangChange=new r.n,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}return _createClass(e,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(Object(u.a)(1)).subscribe(function(n){t.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return Object(i.a)(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(Object(u.a)(1)).subscribe(function(n){t.changeLang(e)}),n):(this.changeLang(e),Object(i.a)(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(Object(l.a)(1),Object(u.a)(1));return this.loadingTranslations=n.pipe(Object(_.a)(function(n){return t.compiler.compileTranslations(n,e)}),Object(l.a)(1),Object(u.a)(1)),this.loadingTranslations.subscribe({next:function(n){t.translations[e]=t.extend&&t.translations[e]?Object.assign(Object.assign({},n),t.translations[e]):n,t.updateLangs(),t.pending=!1},error:function(e){t.pending=!1}}),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?D(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var r;if(t instanceof Array){var s,c={},u=!1,l=_createForOfIteratorHelper(t);try{for(l.s();!(s=l.n()).done;){var d=s.value;c[d]=this.getParsedResult(e,d,n),Object(a.a)(c[d])&&(u=!0)}}catch(g){l.e(g)}finally{l.f()}if(u){var f=t.map(function(e){return Object(a.a)(c[e])?c[e]:Object(i.a)(c[e])});return Object(o.a)(f).pipe(Object(_.a)(function(e){var n={};return e.forEach(function(e,r){n[t[r]]=e}),n}))}return c}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===r&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===r){var p={key:t,translateService:this};void 0!==n&&(p.interpolateParams=n),r=this.missingTranslationHandler.handle(p)}return void 0!==r?r:t}},{key:"get",value:function(e,t){var n=this;if(!b(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Object(d.a)(function(r){return r=n.getParsedResult(r,e,t),Object(a.a)(r)?r:Object(i.a)(r)}));var r=this.getParsedResult(this.translations[this.currentLang],e,t);return Object(a.a)(r)?r:Object(i.a)(r)}},{key:"getStreamOnTranslationChange",value:function(e,t){var n=this;if(!b(e)||!e.length)throw new Error('Parameter "key" required');return Object(s.a)(Object(c.a)(function(){return n.get(e,t)}),this.onTranslationChange.pipe(Object(f.a)(function(r){var a=n.getParsedResult(r.translations,e,t);return"function"==typeof a.subscribe?a:Object(i.a)(a)})))}},{key:"stream",value:function(e,t){var n=this;if(!b(e)||!e.length)throw new Error('Parameter "key" required');return Object(s.a)(Object(c.a)(function(){return n.get(e,t)}),this.onLangChange.pipe(Object(f.a)(function(r){var o=n.getParsedResult(r.translations,e,t);return Object(a.a)(o)?o:Object(i.a)(o)})))}},{key:"instant",value:function(e,t){if(!b(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(Object(a.a)(n)){if(e instanceof Array){var r={};return e.forEach(function(t,n){r[e[n]]=e[n]}),r}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Sb(A),r.Sb(p),r.Sb(E),r.Sb(C),r.Sb(h),r.Sb(P),r.Sb(N),r.Sb(F),r.Sb(O))},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac}),e}(),M=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.translate=t,this._ref=n,this.value=""}return _createClass(e,[{key:"updateValue",value:function(e,t,n){var r=this,i=function(t){r.value=void 0!==t?t:e,r.lastKey=e,r._ref.markForCheck()};if(n){var o=this.translate.getParsedResult(n,e,t);Object(a.a)(o.subscribe)?o.subscribe(i):i(o)}this.translate.get(e,t).subscribe(i)}},{key:"transform",value:function(e){var t,n=this;if(!e||!e.length)return e;for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:p,useClass:g},t.compiler||{provide:E,useClass:T},t.parser||{provide:C,useClass:S},t.missingTranslationHandler||{provide:h,useClass:y},A,{provide:N,useValue:t.isolate},{provide:P,useValue:t.useDefaultLang},{provide:F,useValue:t.extend},{provide:O,useValue:t.defaultLanguage},I]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:p,useClass:g},t.compiler||{provide:E,useClass:T},t.parser||{provide:C,useClass:S},t.missingTranslationHandler||{provide:h,useClass:y},{provide:N,useValue:t.isolate},{provide:P,useValue:t.useDefaultLang},{provide:F,useValue:t.extend},{provide:O,useValue:t.defaultLanguage},I]}}}]),e}();return e.\u0275mod=r.Jb({type:e}),e.\u0275inj=r.Ib({factory:function(t){return new(t||e)}}),e}()},UXun:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("jtHE");function i(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,a=void 0===i?Number.POSITIVE_INFINITY:i,o=e.windowTime,s=void 0===o?Number.POSITIVE_INFINITY:o,c=e.refCount,u=e.scheduler,l=0,_=!1,d=!1;return function(e){var i;l++,!t||_?(_=!1,t=new r.a(a,s,u),i=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){_=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}}),d&&(n=void 0)):i=t.subscribe(this),this.add(function(){l--,i.unsubscribe(),i=void 0,n&&!d&&c&&0===l&&(n.unsubscribe(),n=void 0,t=void 0)})}}(i))}}},UY0t:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("SoUf"),i=n("8Y7J"),a=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transpile",value:function(e){return r.transpile(e,{module:r.ModuleKind.None,target:r.ScriptTarget.ES2015})}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},Ub8T:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("XNiG"),i=n("ScT/"),a=n("8Y7J"),o=n("BnXa"),s=function(){var e=function(){function e(t){_classCallCheck(this,e),this.localStorageService=t,this.gameOver$=new r.a,this.levels=i,this.currentLevelIndex=0;for(var n=t.loadSolvedLevels(),a=0;a=0&&(this.currentLevelIndex=e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Sb(o.a))},e.\u0275prov=a.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},VDRc:function(e,t,n){"use strict";n.d(t,"d",function(){return J}),n.d(t,"a",function(){return D}),n.d(t,"c",function(){return g}),n.d(t,"b",function(){return O});var r=n("8Y7J"),i=n("/q54"),a=n("9gLZ"),o=(n("XNiG"),n("1G5W")),s=["row","column","row-reverse","column-reverse"];function c(e){var t=_slicedToArray((e=e?e.toLowerCase():"").split(" "),3),n=t[0],r=t[1],i=t[2];return s.find(function(e){return e===n})||(n=s[0]),"inline"===r&&(r="inline"!==i?i:"",i="inline"),[n,l(r),!!i]}function u(e){return _slicedToArray(c(e),1)[0].indexOf("row")>-1}function l(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var _=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}((t=_slicedToArray(c(e),3))[0],t[1],t[2]);var t}}]),n}(i.h);return e.\u0275fac=function(t){return d(t||e)},e.\u0275prov=Object(r.Hb)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),d=r.Qb(_),f=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],p=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i,r,a)).DIRECTIVE_KEY="layout",o.styleCache=h,o.init(),o}return n}(i.b);return e.\u0275fac=function(t){return new(t||e)(r.Lb(r.l),r.Lb(i.i),r.Lb(_),r.Lb(i.f))},e.\u0275dir=r.Gb({type:e,features:[r.yb]}),e}(),g=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=f,e}return n}(p);return e.\u0275fac=function(t){return m(t||e)},e.\u0275dir=r.Gb({type:e,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[r.yb]}),e}(),m=r.Qb(g),h=new Map;function y(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r-1?"column":"row",s=u(o)?"max-width":"max-height",c=u(o)?"min-width":"min-height",l=String(a).indexOf("calc")>-1,_=l||"auto"===a,d=String(a).indexOf("%")>-1&&!l,f=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1,p=l||f;i="0"==i?0:i;var g=!(r="0"==r?0:r)&&!i,m={},h={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":var v=!1!==this.layoutConfig.useColumnBasisZero;a="row"===o?"0%":v?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,a="auto";break;case"grow":a="100%";break;case"noshrink":i=0,a="auto";break;case"auto":break;case"none":r=0,i=0,a="auto";break;default:p||d||isNaN(a)||(a+="%"),"0%"===a&&(p=!0),"0px"===a&&(a="0%"),m=y(h,l?{"flex-grow":r,"flex-shrink":i,"flex-basis":p?a:"100%"}:{flex:"".concat(r," ").concat(i," ").concat(p?a:"100%")})}return m.flex||m["flex-grow"]||(m=y(h,l?{"flex-grow":r,"flex-shrink":i,"flex-basis":a}:{flex:"".concat(r," ").concat(i," ").concat(a)})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(m[c]=g||p&&r?a:null,m[s]=g||!_&&i?a:null),m[c]||m[s]?t.hasWrap&&(m[l?"flex-basis":"flex"]=m[s]?l?m[s]:"".concat(r," ").concat(i," ").concat(m[s]):l?m[c]:"".concat(r," ").concat(i," ").concat(m[c])):m=y(h,l?{"flex-grow":r,"flex-shrink":i,"flex-basis":a}:{flex:"".concat(r," ").concat(i," ").concat(a)}),y(m,{"box-sizing":"border-box"})}}]),n}(i.h);return e.\u0275fac=function(t){return new(t||e)(r.Sb(i.e))},e.\u0275prov=Object(r.Hb)({factory:function(){return new e(Object(r.Sb)(i.e))},token:e,providedIn:"root"}),e}(),b=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],x=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e,a,r,o)).layoutConfig=i,s.marshal=o,s.DIRECTIVE_KEY="flex",s.direction=void 0,s.wrap=void 0,s.flexGrow="1",s.flexShrink="1",s.init(),s}return _createClass(n,[{key:"shrink",get:function(){return this.flexShrink},set:function(e){this.flexShrink=e||"1",this.triggerReflow()}},{key:"grow",get:function(){return this.flexGrow},set:function(e){this.flexGrow=e||"1",this.triggerReflow()}},{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Object(o.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Object(o.a)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}},{key:"onLayoutChange",value:function(e){var t=e.value.split(" ");this.direction=t[0],this.wrap=void 0!==t[1]&&"wrap"===t[1],this.triggerUpdate()}},{key:"updateWithValue",value:function(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));var t=this.direction,n=t.startsWith("row"),r=this.wrap;n&&r?this.styleCache=E:n&&!r?this.styleCache=S:!n&&r?this.styleCache=T:n||r||(this.styleCache=k);var a=String(e).replace(";",""),o=Object(i.j)(a,this.flexGrow,this.flexShrink);this.addStyles(o.join(" "),{direction:t,hasWrap:r})}},{key:"triggerReflow",value:function(){var e=this.activatedValue;if(void 0!==e){var t=Object(i.j)(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,t.join(" "))}}}]),n}(i.b);return e.\u0275fac=function(t){return new(t||e)(r.Lb(r.l),r.Lb(i.i),r.Lb(i.e),r.Lb(v),r.Lb(i.f))},e.\u0275dir=r.Gb({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[r.yb]}),e}(),D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=b,e}return n}(x);return e.\u0275fac=function(t){return C(t||e)},e.\u0275dir=r.Gb({type:e,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[r.yb]}),e}(),C=r.Qb(D),S=new Map,k=new Map,E=new Map,T=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map;var w=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(e,t){var n={},r=_slicedToArray(e.split(" "),2),i=r[0],a=r[1];switch(i){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(a){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return y(n,{display:t.inline?"inline-flex":"flex","flex-direction":t.layout,"box-sizing":"border-box","max-width":"stretch"===a?u(t.layout)?null:"100%":null,"max-height":"stretch"===a&&u(t.layout)?"100%":null})}}]),n}(i.h);return e.\u0275fac=function(t){return A(t||e)},e.\u0275prov=Object(r.Hb)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),A=r.Qb(w),N=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],P=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var s;return _classCallCheck(this,n),(s=t.call(this,e,i,r,a)).DIRECTIVE_KEY="layout-align",s.layout="row",s.inline=!1,s.init(),s.marshal.trackValue(s.nativeElement,"layout").pipe(Object(o.a)(s.destroySubject)).subscribe(s.onLayoutChange.bind(_assertThisInitialized2(s))),s}return _createClass(n,[{key:"updateWithValue",value:function(e){var t=this.layout||"row",n=this.inline;"row"===t&&n?this.styleCache=B:"row"!==t||n?"row-reverse"===t&&n?this.styleCache=U:"row-reverse"!==t||n?"column"===t&&n?this.styleCache=j:"column"!==t||n?"column-reverse"===t&&n?this.styleCache=z:"column-reverse"!==t||n||(this.styleCache=R):this.styleCache=M:this.styleCache=L:this.styleCache=I,this.addStyles(e,{layout:t,inline:n})}},{key:"onLayoutChange",value:function(e){var t=this,n=e.value.split(" ");this.layout=n[0],this.inline=e.value.includes("inline"),s.find(function(e){return e===t.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(i.b);return e.\u0275fac=function(t){return new(t||e)(r.Lb(r.l),r.Lb(i.i),r.Lb(w),r.Lb(i.f))},e.\u0275dir=r.Gb({type:e,features:[r.yb]}),e}(),O=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=N,e}return n}(P);return e.\u0275fac=function(t){return F(t||e)},e.\u0275dir=r.Gb({type:e,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[r.yb]}),e}(),F=r.Qb(O),I=new Map,M=new Map,L=new Map,R=new Map,B=new Map,j=new Map,U=new Map,z=new Map,J=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275mod=r.Jb({type:e}),e.\u0275inj=r.Ib({factory:function(t){return new(t||e)},imports:[[i.c,a.a]]}),e}()},VIrA:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("XNiG"),i=n("8Y7J"),a=function(){var e=function(){function e(){_classCallCheck(this,e),this.currentExercise={code:"",fruits:[],expectedFruits:[],minPositionLineNumber:0,positionColumnNumber:0},this.assertionChecked$=new r.a,this.exerciseChanged$=new r.a}return _createClass(e,[{key:"newExercise",value:function(e){this.currentExercise=e,this.exerciseChanged$.next(e)}},{key:"assertExerciseOutput",value:function(){var e=this,t=[];return{next:function(e){return t.push(e)},complete:function(){var n=e.canAcceptDeliveredFruits(t);e.assertionChecked$.next(n)}}}},{key:"canAcceptDeliveredFruits",value:function(e){var t=this.currentExercise.expectedFruits;return e.length===t.length&&!e.some(function(e,n){return e!==t[n]})}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},VRyK:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("HDdC"),i=n("z+Ro"),a=n("bHdf"),o=n("yCtX");function s(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(s=t.pop())):"number"==typeof u&&(s=t.pop()),null===c&&1===t.length&&t[0]instanceof r.a?t[0]:Object(a.a)(s)(Object(o.a)(t,c))}},WMd4:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("EY2u"),i=n("LRne"),a=n("z6cu"),o=function(){var e=function(){function e(t,n,r){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return Object(a.a)(this.error);case"C":return Object(r.b)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},XNiG:function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var r=n("HDdC"),i=n("7o/Q"),a=n("quSY"),o=n("9ppp"),s=n("Ylt2"),c=n("2QA8"),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).destination=e,r}return n}(i.a),l=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return _createClass(n,[{key:c.a,value:function(){return new u(this)}},{key:"lift",value:function(e){var t=new _(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new o.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(r.a)(i.a,e)}},bOdf:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("5+tZ");function i(e,t){return Object(r.a)(e,t,1)}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return r})},cUpR:function(e,t,n){"use strict";n.d(t,"a",function(){return L}),n.d(t,"b",function(){return N}),n.d(t,"c",function(){return I}),n.d(t,"d",function(){return b});var r,i=n("SVse"),a=n("8Y7J"),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=s||(s=document.querySelector("base"))?s.getAttribute("href"):null;return null==n?null:(t=n,r||(r=document.createElement("a")),r.setAttribute("href",t),"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname)}},{key:"resetBaseElement",value:function(){s=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Object(i.u)(document.cookie,e)}}],[{key:"makeCurrent",value:function(){Object(i.v)(new n)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(i.r)),s=null,c=new a.r("TRANSITION_ID"),u=[{provide:a.d,useFactory:function(e,t,n){return function(){n.get(a.e).donePromise.then(function(){var n=Object(i.t)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[c,i.c,a.s],multi:!0}],l=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){a.pb.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},a.pb.getAllAngularTestabilities=function(){return e.getAllTestabilities()},a.pb.getAllAngularRootElements=function(){return e.getAllRootElements()},a.pb.frameworkStabilizers||(a.pb.frameworkStabilizers=[]),a.pb.frameworkStabilizers.push(function(e){var t=a.pb.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Object(i.t)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){Object(a.Y)(new e)}}]),e}(),_=new a.r("EventManagerPlugins"),d=function(){var e=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=r}),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),a+=e+".")}),a+=i,0!=t.length||0===i.length)return null;var o={};return o.domEventName=r,o.fullKey=a,o}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&T.hasOwnProperty(t)&&(t=T[t]))}return E[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),k.forEach(function(r){r!=n&&(0,w[r])(e)&&(t+=r+".")}),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(f);return e.\u0275fac=function(t){return new(t||e)(a.Sb(i.c))},e.\u0275prov=a.Hb({token:e,factory:e.\u0275fac}),e}(),N=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(a.Hb)({factory:function(){return Object(a.Sb)(O)},token:e,providedIn:"root"}),e}();function P(e){return new O(e.get(i.c))}var O=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case a.J.NONE:return t;case a.J.HTML:return Object(a.eb)(t,"HTML")?Object(a.xb)(t):Object(a.cb)(this._doc,String(t)).toString();case a.J.STYLE:return Object(a.eb)(t,"Style")?Object(a.xb)(t):t;case a.J.SCRIPT:if(Object(a.eb)(t,"Script"))return Object(a.xb)(t);throw new Error("unsafe value used in a script context");case a.J.URL:return Object(a.ob)(t),Object(a.eb)(t,"URL")?Object(a.xb)(t):Object(a.db)(String(t));case a.J.RESOURCE_URL:if(Object(a.eb)(t,"ResourceURL"))return Object(a.xb)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return Object(a.fb)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return Object(a.ib)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return Object(a.hb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return Object(a.jb)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return Object(a.gb)(e)}}]),n}(N);return e.\u0275fac=function(t){return new(t||e)(a.Sb(i.c))},e.\u0275prov=Object(a.Hb)({factory:function(){return P(Object(a.Sb)(a.o))},token:e,providedIn:"root"}),e}(),F=[{provide:a.C,useValue:i.s},{provide:a.D,useValue:function(){o.makeCurrent(),l.init()},multi:!0},{provide:i.c,useFactory:function(){return Object(a.vb)(document),document},deps:[]}],I=Object(a.S)(a.X,"browser",F),M=[[],{provide:a.ab,useValue:"root"},{provide:a.m,useFactory:function(){return new a.m},deps:[]},{provide:_,useClass:S,multi:!0,deps:[i.c,a.A,a.C]},{provide:_,useClass:A,multi:!0,deps:[i.c]},[],{provide:b,useClass:b,deps:[d,g,a.c]},{provide:a.G,useExisting:b},{provide:p,useExisting:g},{provide:g,useClass:g,deps:[i.c]},{provide:a.N,useClass:a.N,deps:[a.A]},{provide:d,useClass:d,deps:[_,a.A]},[]],L=function(){var e=function(){function e(t){if(_classCallCheck(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:a.c,useValue:t.appId},{provide:c,useExisting:a.c},u]}}}]),e}();return e.\u0275mod=a.Jb({type:e}),e.\u0275inj=a.Ib({factory:function(t){return new(t||e)(a.Sb(e,12))},providers:M,imports:[i.b,a.f]}),e}();"undefined"!=typeof window&&window},cgln:function(e,t,n){"use strict";n.d(t,"a",function(){return m});var r,i,a=n("AytR"),o=n("8Y7J"),s=n("SVse"),c=((r=function(){function e(t,n){_classCallCheck(this,e),this.document=t,this.platformId=n,this.documentIsAccessible=Object(s.p)(this.platformId)}return _createClass(e,[{key:"check",value:function(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))}},{key:"get",value:function(e){if(this.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);var t=this.getCookieRegExp(e).exec(this.document.cookie);return this.safeDecodeURIComponent(t[1])}return""}},{key:"getAll",value:function(){var e=this;if(!this.documentIsAccessible)return{};var t={},n=this.document;return n.cookie&&""!==n.cookie&&n.cookie.split(";").forEach(function(n){var r=_slicedToArray(n.split("="),2),i=r[0],a=r[1];t[e.safeDecodeURIComponent(i.replace(/^ /,""))]=e.safeDecodeURIComponent(a)}),t}},{key:"set",value:function(e,t,n,r,i,a,o){if(this.documentIsAccessible)if("number"==typeof n||n instanceof Date||r||i||a||o)this.set(e,t,{expires:n,path:r,domain:i,secure:a,sameSite:o||"Lax"});else{var s=encodeURIComponent(e)+"="+encodeURIComponent(t)+";",c=n||{};c.expires&&(s+="number"==typeof c.expires?"expires="+new Date((new Date).getTime()+1e3*c.expires*60*60*24).toUTCString()+";":"expires="+c.expires.toUTCString()+";"),c.path&&(s+="path="+c.path+";"),c.domain&&(s+="domain="+c.domain+";"),!1===c.secure&&"None"===c.sameSite&&(c.secure=!0,console.warn("[ngx-cookie-service] Cookie ".concat(e," was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130"))),c.secure&&(s+="secure;"),c.sameSite||(c.sameSite="Lax"),s+="sameSite="+c.sameSite+";",this.document.cookie=s}}},{key:"delete",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Lax";if(this.documentIsAccessible){var a=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:a,path:t,domain:n,secure:r,sameSite:i})}}},{key:"deleteAll",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Lax";if(this.documentIsAccessible){var i=this.getAll();for(var a in i)i.hasOwnProperty(a)&&this.delete(a,e,t,n,r)}}},{key:"getCookieRegExp",value:function(e){var t=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}},{key:"safeDecodeURIComponent",value:function(e){try{return decodeURIComponent(e)}catch(t){return e}}}]),e}()).\u0275fac=function(e){return new(e||r)(o.Sb(s.c),o.Sb(o.C))},r.\u0275prov=Object(o.Hb)({factory:function(){return new r(Object(o.Sb)(s.c),Object(o.Sb)(o.C))},token:r,providedIn:"root"}),r),u=n("srUL"),l=function e(){var t=this;_classCallCheck(this,e),this.trackingIds=[],"undefined"!=typeof ga&&ga&&ga(function(){ga.getAll().forEach(function(e){var n=e.get("trackingId");void 0!==n&&-1===t.trackingIds.indexOf(n)&&t.trackingIds.push(n)})})},_=((i=function(){function e(t){_classCallCheck(this,e),this.angulartics2=t,this.dimensionsAndMetrics={};var n=new l;this.angulartics2.settings.gst=Object.assign(Object.assign({},n),this.angulartics2.settings.gst)}return _createClass(e,[{key:"startTracking",value:function(){var e=this;this.angulartics2.pageTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(function(t){return e.pageTrack(t.path)}),this.angulartics2.eventTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(function(t){return e.eventTrack(t.action,t.properties)}),this.angulartics2.exceptionTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(function(t){return e.exceptionTrack(t)}),this.angulartics2.userTimings.pipe(this.angulartics2.filterDeveloperMode()).subscribe(function(t){return e.userTimings(e.convertTimings(t))}),this.angulartics2.setUsername.pipe(this.angulartics2.filterDeveloperMode()).subscribe(function(t){return e.setUsername(t)}),this.angulartics2.setUserProperties.pipe(this.angulartics2.filterDeveloperMode()).subscribe(function(t){return e.setUserProperties(t)})}},{key:"pageTrack",value:function(e){if("undefined"!=typeof gtag&>ag){var t=Object.assign({page_path:e,page_location:window.location.protocol+"//"+window.location.host+e},this.dimensionsAndMetrics);this.angulartics2.settings.gst.customMap&&(t.custom_map=this.angulartics2.settings.gst.customMap),this.angulartics2.settings.gst.userId&&(t.user_id=this.angulartics2.settings.gst.userId),this.angulartics2.settings.gst.anonymizeIp&&(t.anonymize_ip=this.angulartics2.settings.gst.anonymizeIp);var n,r=_createForOfIteratorHelper(this.angulartics2.settings.gst.trackingIds);try{for(r.s();!(n=r.n()).done;){var i=n.value;gtag("config",i,t)}}catch(a){r.e(a)}finally{r.f()}}}},{key:"eventTrack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventTrackInternal(e,Object.assign({event_category:t.category||"interaction",event_label:t.label,value:t.value,non_interaction:t.noninteraction},t.gstCustom))}},{key:"exceptionTrack",value:function(e){void 0===e.fatal&&(console.log('No "fatal" provided, sending with fatal=true'),e.fatal=!0),e.exDescription=e.event?e.event.stack:e.description,this.eventTrack("exception",{gstCustom:Object.assign({description:e.exDescription,fatal:e.fatal},e.gstCustom)})}},{key:"userTimings",value:function(e){e?this.eventTrackInternal("timing_complete",{name:e.name,value:e.value,event_category:e.category,event_label:e.label}):console.error('User timings - "properties" parameter is required to be set.')}},{key:"convertTimings",value:function(e){return{name:e.timingVar,value:e.timingValue,category:e.timingCategory,label:e.timingLabel}}},{key:"setUsername",value:function(e){this.angulartics2.settings.gst.userId=e,"undefined"!=typeof gtag&>ag&>ag("set",{user_id:"string"!=typeof e&&e?e.userId:e})}},{key:"setUserProperties",value:function(e){this.setDimensionsAndMetrics(e)}},{key:"setDimensionsAndMetrics",value:function(e){var t=this;this.dimensionsAndMetrics=Object.assign(Object.assign({},this.dimensionsAndMetrics),e),Object.keys(this.dimensionsAndMetrics).forEach(function(e){null==t.dimensionsAndMetrics[e]&&delete t.dimensionsAndMetrics[e]}),"undefined"!=typeof gtag&>ag&>ag("set",this.dimensionsAndMetrics)}},{key:"eventTrackInternal",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.cleanProperties(t),"undefined"!=typeof gtag&>ag&>ag("event",e,t)}},{key:"cleanProperties",value:function(e){if(e.value){var t=parseInt(e.value,10);e.value=isNaN(t)?0:t}}}]),e}()).\u0275fac=function(e){return new(e||i)(o.Sb(u.a))},i.\u0275prov=Object(o.Hb)({factory:function(){return new i(Object(o.Sb)(u.a))},token:i,providedIn:"root"}),i),d=n("iInd"),f=n("TSSN");function p(e,t){if(1&e){var n=o.Pb();o.Ob(0,"div",1),o.Ob(1,"span",2),o.qc(2),o.bc(3,"translate"),o.Ob(4,"a",3),o.qc(5),o.bc(6,"translate"),o.Nb(),o.Nb(),o.Ob(7,"div",4),o.Ob(8,"a",5),o.Wb("click",function(){return o.ic(n),o.ac().refuseCookies()}),o.qc(9),o.bc(10,"translate"),o.Nb(),o.Ob(11,"a",6),o.Wb("click",function(){return o.ic(n),o.ac().allowCookies()}),o.qc(12),o.bc(13,"translate"),o.Nb(),o.Nb(),o.Nb()}2&e&&(o.Bb(2),o.sc(" ",o.cc(3,4,"APP.COOKIEBANNER.MESSAGE")," "),o.Bb(3),o.rc(o.cc(6,6,"APP.COOKIEBANNER.PRIVACYLINK")),o.Bb(4),o.rc(o.cc(10,8,"APP.COOKIEBANNER.BUTTONS.DENY")),o.Bb(3),o.rc(o.cc(13,10,"APP.COOKIEBANNER.BUTTONS.ALLOW")))}var g,m=((g=function(){function e(t,n){_classCallCheck(this,e),this.angulartics=t,this.cookieService=n,this.isBannerOpen=!0,this.showBanner=!1}return _createClass(e,[{key:"expiresAllowDate",get:function(){return new Date((new Date).setFullYear((new Date).getFullYear()+99))}},{key:"expiresRefuseDate",get:function(){return new Date((new Date).setDate((new Date).getDate()+1))}},{key:"ngOnInit",value:function(){this.cookieService.check("cookiesAllowed")&&!this.showBanner&&(this.isBannerOpen=!1,"true"===this.cookieService.get("cookiesAllowed")&&this.startTracking())}},{key:"refuseCookies",value:function(){this.isBannerOpen=!1,this.cookieService.set("cookiesAllowed","false",this.expiresRefuseDate)}},{key:"allowCookies",value:function(){this.isBannerOpen=!1,this.cookieService.set("cookiesAllowed","true",this.expiresAllowDate),this.startTracking()}},{key:"startTracking",value:function(){a.a.production&&this.angulartics.startTracking()}}]),e}()).\u0275fac=function(e){return new(e||g)(o.Lb(_),o.Lb(c))},g.\u0275cmp=o.Fb({type:g,selectors:[["app-cookie-banner"]],inputs:{showBanner:"showBanner"},features:[o.Ab([c])],decls:1,vars:1,consts:[["class","dialog",4,"ngIf"],[1,"dialog"],[1,"message"],["routerLink","/privacy","target","_blank",1,"link"],[1,"options"],[1,"button","button-deny",3,"click"],[1,"button","button-allow",3,"click"]],template:function(e,t){1&e&&o.pc(0,p,14,12,"div",0),2&e&&o.fc("ngIf",t.isBannerOpen)},directives:[s.j,d.c],pipes:[f.c],styles:[".dialog[_ngcontent-%COMP%]{bottom:1em;right:1em;padding:0;color:#fff;background-color:#000;position:fixed;overflow:hidden;box-sizing:border-box;font-size:16px;line-height:1.5em;display:flex;flex-wrap:nowrap;z-index:9999;max-width:24em;flex-direction:column;opacity:1;transition:opacity 1s ease}.message[_ngcontent-%COMP%]{margin:2em 2em 1.5em;display:block}.link[_ngcontent-%COMP%]{opacity:.8;display:inline-block;padding:.2em;cursor:pointer}.link[_ngcontent-%COMP%], link[_ngcontent-%COMP%]:hover{text-decoration:underline}link[_ngcontent-%COMP%]:visited{color:initial}a[_ngcontent-%COMP%]{background-color:transparent}.options[_ngcontent-%COMP%]{flex:1 0 auto;display:flex;align-items:center;align-content:space-between;color:#fff}.button-deny[_ngcontent-%COMP%]{color:#fff;display:block;padding:.4em .8em;text-decoration:none}.button-deny[_ngcontent-%COMP%]:first-child{background-color:transparent;border-color:transparent}.button-allow[_ngcontent-%COMP%]{margin-left:0;color:#000;background-color:#f1d600;border-color:transparent;display:block;padding:.4em .8em}.button-allow[_ngcontent-%COMP%]:hover{background-color:#fffc26}.button[_ngcontent-%COMP%]:hover{text-decoration:underline}.button[_ngcontent-%COMP%]{flex:1;font-size:.9em;font-weight:700;border-width:2px;border-style:solid;text-align:center;white-space:nowrap;cursor:pointer}"]}),g)},cp0P:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("HDdC"),i=n("DH7j"),a=n("lJxs"),o=n("XoHu"),s=n("Cfvw");function c(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?_get2(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return _get2(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,r);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(n("3N8a").a),i=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r=0}var m=n("z+Ro");function h(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function y(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.a;return t=function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=-1;return g(t)?r=Number(t)<1?1:Number(t):Object(m.a)(t)&&(n=t),Object(m.a)(n)||(n=l.a),new s.a(function(t){var i=g(e)?e:+e-n.now();return n.schedule(h,i,{index:0,period:r,subscriber:t})})}(e,n)},function(e){return e.lift(new d(t))}}var v=n("pLZG"),b=n("1G5W"),x=n("JX91");n("7o/Q"),n("eIep"),n("UXun");var D,C=n("SVse");try{D="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(It){D=!1}var S,k,E,T,w,A=((w=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?Object(C.p)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!D)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}).\u0275fac=function(e){return new(e||w)(i.Sb(i.C))},w.\u0275prov=Object(i.Hb)({factory:function(){return new w(Object(i.Sb)(i.C))},token:w,providedIn:"root"}),w),N=((T=function e(){_classCallCheck(this,e)}).\u0275mod=i.Jb({type:T}),T.\u0275inj=i.Ib({factory:function(e){return new(e||T)}}),T);var P,O,F,I,M,L,R=n("9gLZ"),B=((I=function(){function e(t,n,r){_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._scrolled=new a.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}return _createClass(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new s.a(function(n){e._globalSubscription||e._addGlobalListener();var r=t>0?e._scrolled.pipe(y(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):Object(o.a)()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Object(v.a)(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(r,i){t._scrollableContainsElement(i,e)&&n.push(i)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=Object(r.d)(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var t=e._getWindow();return Object(c.a)(t.document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||I)(i.Sb(i.A),i.Sb(A),i.Sb(C.c,8))},I.\u0275prov=Object(i.Hb)({factory:function(){return new I(Object(i.Sb)(i.A),Object(i.Sb)(A),Object(i.Sb)(C.c,8))},token:I,providedIn:"root"}),I),j=((F=function(){function e(t,n,r){var i=this;_classCallCheck(this,e),this._platform=t,this._change=new a.a,this._changeListener=function(e){i._change.next(e)},this._document=r,n.runOutsideAngular(function(){if(t.isBrowser){var e=i._getWindow();e.addEventListener("resize",i._changeListener),e.addEventListener("orientationchange",i._changeListener)}i.change().subscribe(function(){return i._updateViewportSize()})})}return _createClass(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,r=t.height;return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,r=n.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-r.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(y(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||F)(i.Sb(A),i.Sb(i.A),i.Sb(C.c,8))},F.\u0275prov=Object(i.Hb)({factory:function(){return new F(Object(i.Sb)(A),Object(i.Sb)(i.A),Object(i.Sb)(C.c,8))},token:F,providedIn:"root"}),F),U=((O=function e(){_classCallCheck(this,e)}).\u0275mod=i.Jb({type:O}),O.\u0275inj=i.Ib({factory:function(e){return new(e||O)}}),O),z=((P=function e(){_classCallCheck(this,e)}).\u0275mod=i.Jb({type:P}),P.\u0275inj=i.Ib({factory:function(e){return new(e||P)},imports:[[R.a,N,U],R.a,U]}),P),J=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),V=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;return _classCallCheck(this,n),(o=t.call(this)).component=e,o.viewContainerRef=r,o.injector=i,o.componentFactoryResolver=a,o}return n}(J),W=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this)).templateRef=e,a.viewContainerRef=r,a.context=i,a}return _createClass(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get2(_getPrototypeOf(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get2(_getPrototypeOf(n.prototype),"detach",this).call(this)}}]),n}(J),q=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).element=e instanceof i.l?e.nativeElement:e,r}return n}(J),K=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof V?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof W?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof q?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),H=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a,o){var s,c;return _classCallCheck(this,n),(c=t.call(this)).outletElement=e,c._componentFactoryResolver=r,c._appRef=i,c._defaultInjector=a,c.attachDomPortal=function(e){var t=e.element,r=c._document.createComment("dom-portal");t.parentNode.insertBefore(r,t),c.outletElement.appendChild(t),_get2((s=_assertThisInitialized2(c),_getPrototypeOf(n.prototype)),"setDisposeFn",s).call(s,function(){r.parentNode&&r.parentNode.replaceChild(t,r)})},c._document=o,c}return _createClass(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(r,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=r.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,r=n.createEmbeddedView(e.templateRef,e.context);return r.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),r.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(r);-1!==e&&n.remove(e)}),r}},{key:"dispose",value:function(){_get2(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(K),G=((L=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,a){var o,s;return _classCallCheck(this,n),(s=t.call(this))._componentFactoryResolver=e,s._viewContainerRef=r,s._isInitialized=!1,s.attached=new i.n,s.attachDomPortal=function(e){var t=e.element,r=s._document.createComment("dom-portal");e.setAttachedHost(_assertThisInitialized2(s)),t.parentNode.insertBefore(r,t),s._getRootNode().appendChild(t),_get2((o=_assertThisInitialized2(s),_getPrototypeOf(n.prototype)),"setDisposeFn",o).call(o,function(){r.parentNode&&r.parentNode.replaceChild(t,r)})},s._document=a,s}return _createClass(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&_get2(_getPrototypeOf(n.prototype),"detach",this).call(this),e&&_get2(_getPrototypeOf(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get2(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=t.createComponent(r,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),_get2(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return i.destroy()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get2(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(K)).\u0275fac=function(e){return new(e||L)(i.Lb(i.j),i.Lb(i.Q),i.Lb(C.c))},L.\u0275dir=i.Gb({type:L,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.yb]}),L),Q=((M=function e(){_classCallCheck(this,e)}).\u0275mod=i.Jb({type:M}),M.\u0275inj=i.Ib({factory:function(e){return new(e||M)}}),M),X=n("VRyK"),Y=n("IzEk");n("GJmQ");var Z=function(){if(null==k){if("object"!=typeof document||!document)return k=!1;if("scrollBehavior"in document.documentElement.style)k=!0;else{var e=Element.prototype.scrollTo;k=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return k}(),$=function(){function e(t,n){_classCallCheck(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return _createClass(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Object(r.c)(-this._previousScrollPosition.left),e.style.top=Object(r.c)(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,r=t.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Z&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Z&&(t.scrollBehavior=r,n.scrollBehavior=i)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),ee=function(){function e(t,n,r,i){var a=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=r,this._config=i,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),te=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function ne(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function re(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var ie,ae,oe,se,ce,ue=function(){function e(t,n,r,i){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=r,this._config=i,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),r=n.width,i=n.height;ne(t,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),le=((ie=function e(t,n,r,i){var a=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=r,this.noop=function(){return new te},this.close=function(e){return new ee(a._scrollDispatcher,a._ngZone,a._viewportRuler,e)},this.block=function(){return new $(a._viewportRuler,a._document)},this.reposition=function(e){return new ue(a._scrollDispatcher,a._viewportRuler,a._ngZone,e)},this._document=i}).\u0275fac=function(e){return new(e||ie)(i.Sb(B),i.Sb(j),i.Sb(i.A),i.Sb(C.c))},ie.\u0275prov=Object(i.Hb)({factory:function(){return new ie(Object(i.Sb)(B),Object(i.Sb)(j),Object(i.Sb)(i.A),Object(i.Sb)(C.c))},token:ie,providedIn:"root"}),ie),_e=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new te,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,r=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}()).\u0275fac=function(e){return new(e||se)(i.Sb(C.c))},se.\u0275prov=Object(i.Hb)({factory:function(){return new se(Object(i.Sb)(C.c))},token:se,providedIn:"root"}),se),ge=((oe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e))._keydownListener=function(e){for(var t=r._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},r}return _createClass(n,[{key:"add",value:function(e){_get2(_getPrototypeOf(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(pe)).\u0275fac=function(e){return new(e||oe)(i.Sb(C.c))},oe.\u0275prov=Object(i.Hb)({factory:function(){return new oe(Object(i.Sb)(C.c))},token:oe,providedIn:"root"}),oe),me=((ae=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e))._platform=r,i._cursorStyleIsSet=!1,i._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=i._attachedOverlays.slice(),r=n.length-1;r>-1;r--){var a=n[r];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t))break;a._outsidePointerEvents.next(e)}}},i}return _createClass(n,[{key:"add",value:function(e){_get2(_getPrototypeOf(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(pe)).\u0275fac=function(e){return new(e||ae)(i.Sb(C.c),i.Sb(A))},ae.\u0275prov=Object(i.Hb)({factory:function(){return new ae(Object(i.Sb)(C.c),Object(i.Sb)(A))},token:ae,providedIn:"root"}),ae),he=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),ye=((ce=function(){function e(t,n){_classCallCheck(this,e),this._platform=n,this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||he)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;tf&&(f=m,d=g)}}catch(h){p.e(h)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&De(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var r=this._isRtl()?e.right:e.left,i=this._isRtl()?e.left:e.right;n="start"==t.originX?r:i}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var r,i;return r="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,i="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+r,y:e.y+i}}},{key:"_getOverlayFit",value:function(e,t,n,r){var i=Se(t),a=e.x,o=e.y,s=this._getOffset(r,"x"),c=this._getOffset(r,"y");s&&(a+=s),c&&(o+=c);var u=0-o,l=o+i.height-n.height,_=this._subtractOverflows(i.width,0-a,a+i.width-n.width),d=this._subtractOverflows(i.height,u,l),f=_*d;return{visibleArea:f,isCompletelyWithinViewport:i.width*i.height===f,fitsInViewportVertically:d===i.height,fitsInViewportHorizontally:_==i.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var r=n.bottom-t.y,i=n.right-t.x,a=Ce(this._overlayRef.getConfig().minHeight),o=Ce(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=o&&o<=i;return(e.fitsInViewportVertically||null!=a&&a<=r)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var r,i,a=Se(t),o=this._viewportRect,s=Math.max(e.x+a.width-o.width,0),c=Math.max(e.y+a.height-o.height,0),u=Math.max(o.top-n.top-e.y,0),l=Math.max(o.left-n.left-e.x,0);return r=a.width<=o.width?l||-s:e.x_&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.y-_/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=c.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)o=e.x,a=c.right-e.x;else{var d=Math.min(c.right-e.x+c.left,e.x),f=this._lastBoundingBoxSize.width;a=2*d,o=e.x-d,a>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.x-f/2)}return{top:r,left:o,bottom:i,right:s,width:a,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var a=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=Object(r.c)(n.height),i.top=Object(r.c)(n.top),i.bottom=Object(r.c)(n.bottom),i.width=Object(r.c)(n.width),i.left=Object(r.c)(n.left),i.right=Object(r.c)(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",a&&(i.maxHeight=Object(r.c)(a)),o&&(i.maxWidth=Object(r.c)(o))}this._lastBoundingBoxSize=n,De(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){De(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){De(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),a=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var s=this._viewportRuler.getViewportScrollPosition();De(n,this._getExactOverlayY(t,e,s)),De(n,this._getExactOverlayX(t,e,s))}else n.position="static";var c="",u=this._getOffset(t,"x"),l=this._getOffset(t,"y");u&&(c+="translateX(".concat(u,"px) ")),l&&(c+="translateY(".concat(l,"px)")),n.transform=c.trim(),o.maxHeight&&(i?n.maxHeight=Object(r.c)(o.maxHeight):a&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=Object(r.c)(o.maxWidth):a&&(n.maxWidth="")),De(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},a=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return a.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(a.y+this._overlayRect.height)+"px":i.top=Object(r.c)(a.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},a=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)+"px":i.left=Object(r.c)(a.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:re(e,n),isOriginOutsideView:ne(e,n),isOverlayClipped:re(t,n),isOverlayOutsideView:ne(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),r=n.width,i=n.height,a=n.maxWidth,o=n.maxHeight,s=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),c=!("100%"!==i&&"100vh"!==i||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),Ne=((Ee=function(){function e(t,n,r,i){_classCallCheck(this,e),this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=i}return _createClass(e,[{key:"global",value:function(){return new Ae}},{key:"connectedTo",value:function(e,t,n){return new we(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new xe(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||Ee)(i.Sb(j),i.Sb(C.c),i.Sb(A),i.Sb(ye))},Ee.\u0275prov=Object(i.Hb)({factory:function(){return new Ee(Object(i.Sb)(j),Object(i.Sb)(C.c),Object(i.Sb)(A),Object(i.Sb)(ye))},token:Ee,providedIn:"root"}),Ee),Pe=0,Oe=((ke=function(){function e(t,n,r,i,a,o,s,c,u,l,_){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=i,this._keyboardDispatcher=a,this._injector=o,this._ngZone=s,this._document=c,this._directionality=u,this._location=l,this._outsideClickDispatcher=_}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),r=this._createPortalOutlet(n),i=new _e(e);return i.direction=i.direction||this._directionality.value,new ve(r,t,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+Pe++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(i.g)),new H(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||ke)(i.Sb(le),i.Sb(ye),i.Sb(i.j),i.Sb(Ne),i.Sb(ge),i.Sb(i.s),i.Sb(i.A),i.Sb(C.c),i.Sb(R.b),i.Sb(C.f),i.Sb(me))},ke.\u0275prov=i.Hb({token:ke,factory:ke.\u0275fac}),ke),Fe={provide:new i.r("cdk-connected-overlay-scroll-strategy"),deps:[Oe],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Ie=((Te=function e(){_classCallCheck(this,e)}).\u0275mod=i.Jb({type:Te}),Te.\u0275inj=i.Ib({factory:function(e){return new(e||Te)},providers:[Oe,Fe],imports:[[R.a,Q,z],z]}),Te);n("vkgz"),n("Kj3r"),n("lJxs");var Me,Le=((Me=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(It){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===Be(n))return!1;if(!this.isVisible(n))return!1}var r=e.nodeName.toLowerCase(),i=Be(e);return e.hasAttribute("contenteditable")?-1!==i:"iframe"!==r&&"object"!==r&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==i:"video"===r?-1!==i&&(null!==i||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Re(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}()).\u0275fac=function(e){return new(e||Me)(i.Sb(A))},Me.\u0275prov=Object(i.Hb)({factory:function(){return new Me(Object(i.Sb)(A))},token:Me,providedIn:"root"}),Me);function Re(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Be(e){if(!Re(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var je,Ue=function(){function e(t,n,r,i){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=n,this._ngZone=r,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return _createClass(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Object(Y.a)(1)).subscribe(e)}}]),e}(),ze=((je=function(){function e(t,n,r){_classCallCheck(this,e),this._checker=t,this._ngZone=n,this._document=r}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Ue(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||je)(i.Sb(Le),i.Sb(i.A),i.Sb(C.c))},je.\u0275prov=Object(i.Hb)({factory:function(){return new je(Object(i.Sb)(Le),Object(i.Sb)(i.A),Object(i.Sb)(C.c))},token:je,providedIn:"root"}),je);"undefined"!=typeof Element&∈var Je,Ve,We=new i.r("cdk-focus-monitor-default-options"),qe=(Je={passive:!0,capture:!0},function(){if(null==S&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return S=!0}}))}finally{S=S||!1}return S}()?Je:!!Je.capture),Ke=((Ve=function(){function e(t,n,r,i){var a=this;_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){a._lastTouchTarget=null,a._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!a._lastTouchTarget){var t=function(e){return 0===e.buttons}(e)?"keyboard":"mouse";a._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){!function(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}(e)?(null!=a._touchTimeoutId&&clearTimeout(a._touchTimeoutId),a._lastTouchTarget=He(e),a._touchTimeoutId=setTimeout(function(){return a._lastTouchTarget=null},650)):a._lastTouchTarget||a._setOriginForCurrentEventQueue("keyboard")},this._windowFocusListener=function(){a._windowFocused=!0,a._windowFocusTimeoutId=setTimeout(function(){return a._windowFocused=!1})},this._rootNodeFocusAndBlurListener=function(e){for(var t=He(e),n="focus"===e.type?a._onFocus:a._onBlur,r=t;r;r=r.parentElement)n.call(a,e,r)},this._document=r,this._detectionMode=(null==i?void 0:i.detectionMode)||0}return _createClass(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(r.d)(e);if(!this._platform.isBrowser||1!==n.nodeType)return Object(o.a)(null);var i=function(e){if(function(){if(null==E){var e="undefined"!=typeof document?document.head:null;E=!(!e||!e.createShadowRoot&&!e.attachShadow)}return E}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return t&&(s.checkChildren=!0),s.subject;var c={checkChildren:t,subject:new a.a,rootNode:i};return this._elementInfo.set(n,c),this._registerGlobalListeners(c),c.subject}},{key:"stopMonitoring",value:function(e){var t=Object(r.d)(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,a=Object(r.d)(e);a===this._getDocument().activeElement?this._getClosestElementsInfo(a).forEach(function(e){var n=_slicedToArray(e,2),r=n[0],a=n[1];return i._originChanged(r,t,a)}):(this._setOriginForCurrentEventQueue(t),"function"==typeof a.focus&&a.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=He(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===He(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,qe),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,qe)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,qe),e.addEventListener("mousedown",t._documentMousedownListener,qe),e.addEventListener("touchstart",t._documentTouchstartListener,qe),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,qe),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,qe),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var r=this._getDocument(),i=this._getWindow();r.removeEventListener("keydown",this._documentKeydownListener,qe),r.removeEventListener("mousedown",this._documentMousedownListener,qe),r.removeEventListener("touchstart",this._documentTouchstartListener,qe),i.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,r){(r===e||n.checkChildren&&r.contains(e))&&t.push([r,n])}),t}}]),e}()).\u0275fac=function(e){return new(e||Ve)(i.Sb(i.A),i.Sb(A),i.Sb(C.c,8),i.Sb(We,8))},Ve.\u0275prov=Object(i.Hb)({factory:function(){return new Ve(Object(i.Sb)(i.A),Object(i.Sb)(A),Object(i.Sb)(C.c,8),Object(i.Sb)(We,8))},token:Ve,providedIn:"root"}),Ve);function He(e){return e.composedPath?e.composedPath()[0]:e.target}var Ge,Qe=((Ge=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._document=n}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||Ge)(i.Sb(A),i.Sb(C.c))},Ge.\u0275prov=Object(i.Hb)({factory:function(){return new Ge(Object(i.Sb)(A),Object(i.Sb)(C.c))},token:Ge,providedIn:"root"}),Ge),Xe=new i.P("11.2.3");n("omvX");var Ye,Ze=new i.P("11.2.3"),$e=new i.r("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),et=((Ye=function(){function e(t,n,r){_classCallCheck(this,e),this._hasDoneGlobalChecks=!1,this._document=r,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return _createClass(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Object(i.W)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Ze.full!==Xe.full&&console.warn("The Angular Material version ("+Ze.full+") does not match the Angular CDK version ("+Xe.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275mod=i.Jb({type:Ye}),Ye.\u0275inj=i.Ib({factory:function(e){return new(e||Ye)(i.Sb(Qe),i.Sb($e,8),i.Sb(C.c))},imports:[[R.a],R.a]}),Ye);try{"undefined"!=typeof Intl}catch(It){!1}var tt=n("NXyV"),nt=n("GS7A");function rt(e,t){}var it,at,ot=function e(){_classCallCheck(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},st={dialogContainer:Object(nt.j)("dialogContainer",[Object(nt.g)("void, exit",Object(nt.h)({opacity:0,transform:"scale(0.7)"})),Object(nt.g)("enter",Object(nt.h)({transform:"none"})),Object(nt.i)("* => enter",Object(nt.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(nt.h)({transform:"none",opacity:1}))),Object(nt.i)("* => void, * => exit",Object(nt.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(nt.h)({opacity:0})))])},ct=((at=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,a,o,s,c){var u;return _classCallCheck(this,n),(u=t.call(this))._elementRef=e,u._focusTrapFactory=r,u._changeDetectorRef=a,u._config=s,u._focusMonitor=c,u._animationStateChanged=new i.n,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(e){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(e)},u._ariaLabelledBy=s.ariaLabelledBy||null,u._document=o,u}return _createClass(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}}]),n}(K)).\u0275fac=function(e){return new(e||at)(i.Lb(i.l),i.Lb(ze),i.Lb(i.h),i.Lb(C.c,8),i.Lb(ot),i.Lb(Ke))},at.\u0275dir=i.Gb({type:at,viewQuery:function(e,t){var n;1&e&&i.vc(G,3),2&e&&i.gc(n=i.Xb())&&(t._portalOutlet=n.first)},features:[i.yb]}),at),ut=((it=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._state="enter",e}return _createClass(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(ct)).\u0275fac=function(e){return lt(e||it)},it.\u0275cmp=i.Fb({type:it,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&i.nc("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(i.Rb("id",t._id),i.Cb("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.oc("@dialogContainer",t._state))},features:[i.yb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.pc(0,rt,0,0,"ng-template",0)},directives:[G],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[st.dialogContainer]}}),it),lt=i.Qb(ut),_t=0,dt=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+_t++;_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=n,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new a.a,this._afterClosed=new a.a,this._beforeClosed=new a.a,this._state=0,n._id=i,n._animationStateChanged.pipe(Object(v.a)(function(e){return"opened"===e.state}),Object(Y.a)(1)).subscribe(function(){r._afterOpened.next(),r._afterOpened.complete()}),n._animationStateChanged.pipe(Object(v.a)(function(e){return"closed"===e.state}),Object(Y.a)(1)).subscribe(function(){clearTimeout(r._closeFallbackTimeout),r._finishDialogClose()}),t.detachments().subscribe(function(){r._beforeClosed.next(r._result),r._beforeClosed.complete(),r._afterClosed.next(r._result),r._afterClosed.complete(),r.componentInstance=null,r._overlayRef.dispose()}),t.keydownEvents().pipe(Object(v.a)(function(e){return 27===e.keyCode&&!r.disableClose&&!function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function ft(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var pt,gt,mt,ht,yt,vt,bt=new i.r("MatDialogData"),xt=new i.r("mat-dialog-default-options"),Dt=new i.r("mat-dialog-scroll-strategy"),Ct={provide:Dt,deps:[Oe],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},St=((vt=function(){function e(t,n,r,i,o,s,c,u,l){var _=this;_classCallCheck(this,e),this._overlay=t,this._injector=n,this._defaultOptions=r,this._parentDialog=i,this._overlayContainer=o,this._dialogRefConstructor=c,this._dialogContainerType=u,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new a.a,this._afterOpenedAtThisLevel=new a.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(tt.a)(function(){return _.openDialogs.length?_._getAfterAllClosed():_._getAfterAllClosed().pipe(Object(x.a)(void 0))}),this._scrollStrategy=s}return _createClass(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new ot)).id&&this.getDialogById(t.id);var r=this._createOverlay(t),i=this._attachDialogContainer(r,t),a=this._attachDialogContent(e,i,r,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe(function(){return n._removeOpenDialog(a)}),this.afterOpened.next(a),i._initializeWithAttachedContent(),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new _e({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=i.s.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:ot,useValue:t}]}),r=new V(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(r).instance}},{key:"_attachDialogContent",value:function(e,t,n,r){var a=new this._dialogRefConstructor(n,t,r.id);if(e instanceof i.M)t.attachTemplatePortal(new W(e,null,{$implicit:r.data,dialogRef:a}));else{var o=this._createInjector(r,a,t),s=t.attachComponentPortal(new V(e,r.viewContainerRef,o));a.componentInstance=s.instance}return a.updateSize(r.width,r.height).updatePosition(r.position),a}},{key:"_createInjector",value:function(e,t,n){var r=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||r&&r.get(R.b,null)||a.push({provide:R.b,useValue:{value:e.direction,change:Object(o.a)()}}),i.s.create({parent:r||this._injector,providers:a})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var r=t[n];r===e||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}()).\u0275fac=function(e){return new(e||vt)(i.Lb(Oe),i.Lb(i.s),i.Lb(void 0),i.Lb(void 0),i.Lb(ye),i.Lb(void 0),i.Lb(i.O),i.Lb(i.O),i.Lb(i.r))},vt.\u0275dir=i.Gb({type:vt}),vt),kt=((yt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a,o,s,c){return _classCallCheck(this,n),t.call(this,e,r,a,s,c,o,dt,ut,bt)}return n}(St)).\u0275fac=function(e){return new(e||yt)(i.Sb(Oe),i.Sb(i.s),i.Sb(C.f,8),i.Sb(xt,8),i.Sb(Dt),i.Sb(yt,12),i.Sb(ye))},yt.\u0275prov=i.Hb({token:yt,factory:yt.\u0275fac}),yt),Et=0,Tt=((ht=function(){function e(t,n,r){_classCallCheck(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=r,this.type="button"}return _createClass(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=Pt(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}},{key:"_onButtonClick",value:function(e){ft(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),e}()).\u0275fac=function(e){return new(e||ht)(i.Lb(dt,8),i.Lb(i.l),i.Lb(kt))},ht.\u0275dir=i.Gb({type:ht,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.Wb("click",function(e){return t._onButtonClick(e)}),2&e&&i.Cb("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[i.zb]}),ht),wt=((mt=function(){function e(t,n,r){_classCallCheck(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=r,this.id="mat-dialog-title-"+Et++}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=Pt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}()).\u0275fac=function(e){return new(e||mt)(i.Lb(dt,8),i.Lb(i.l),i.Lb(kt))},mt.\u0275dir=i.Gb({type:mt,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Rb("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),mt),At=((gt=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||gt)},gt.\u0275dir=i.Gb({type:gt,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),gt),Nt=((pt=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||pt)},pt.\u0275dir=i.Gb({type:pt,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),pt);function Pt(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var Ot,Ft=((Ot=function e(){_classCallCheck(this,e)}).\u0275mod=i.Jb({type:Ot}),Ot.\u0275inj=i.Ib({factory:function(e){return new(e||Ot)},providers:[kt,Ct],imports:[[Ie,Q,et],et]}),Ot)},iInd:function(e,t,n){"use strict";n.d(t,"a",function(){return te}),n.d(t,"b",function(){return kn}),n.d(t,"c",function(){return En}),n.d(t,"d",function(){return Jn}),n.d(t,"e",function(){return Pn});var r=n("SVse"),i=n("8Y7J"),a=n("Cfvw"),o=n("LRne"),s=n("2Vo4"),c=n("z+Ro"),u=n("DH7j"),l=n("7o/Q"),_=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(l.a),d=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this)).parent=e,a.outerValue=r,a.outerIndex=i,a.index=0,a}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(l.a),f=n("SeVD"),p=n("HDdC");function g(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new d(e,n,r);if(!i.closed)return t instanceof p.a?t.subscribe(i):Object(f.a)(t)(i)}var m=n("yCtX"),h={},y=function(){function e(t){_classCallCheck(this,e),this.resultSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new v(e,this.resultSelector))}}]),e}(),v=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return _createClass(n,[{key:"_next",value:function(e){this.values.push(h),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n=2&&(n=!0),function(r){return r.lift(new P(e,t,n))}}var P=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new O(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),O=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;return _classCallCheck(this,n),(o=t.call(this,e)).accumulator=r,o._seed=i,o.hasSeed=a,o.index=0,o}return _createClass(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}}]),n}(l.a),F=n("pLZG"),I=n("JIr8"),M=n("bOdf"),L=n("BFxc");function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U;return function(t){return t.lift(new B(e))}}var B=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new j(e,this.errorFactory))}}]),e}(),j=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).errorFactory=r,i.hasValue=!1,i}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(l.a);function U(){return new b}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new J(e))}}var J=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new V(e,this.defaultValue))}}]),e}(),V=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(l.a),W=n("SpAZ");function q(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Object(F.a)(function(t,n){return e(t,n,r)}):W.a,Object(w.a)(1),n?z(t):R(function(){return new b}))}}var K=n("5+tZ"),H=n("vkgz"),G=n("x+ZX"),Q=n("quSY"),X=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Y(e,this.callback))}}]),e}(),Y=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).add(new Q.a(r)),i}return n}(l.a),Z=n("bHdf"),$=function e(t,n){_classCallCheck(this,e),this.id=t,this.url=n},ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(i=t.call(this,e,r)).navigationTrigger=a,i.restoredState=o,i}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}($),te=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}($),ne=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e,r)).reason=i,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}($),re=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e,r)).error=i,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}($),ie=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($),ae=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($),oe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e,r)).urlAfterRedirects=i,s.state=a,s.shouldActivate=o,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}($),se=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($),ce=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($),ue=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),le=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),_e=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),de=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fe=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),pe=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ge=function(){function e(t,n,r){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),me=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function he(e){return new me(e)}function ye(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function ve(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function Se(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ke(e){return Object(i.rb)(e)?e:Object(i.sb)(e)?Object(a.a)(Promise.resolve(e)):Object(o.a)(e)}function Ee(e,t,n){return n?function(e,t){return be(e,t)}(e.queryParams,t.queryParams)&&Te(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return xe(e[n],t[n])})}(e.queryParams,t.queryParams)&&we(e.root,t.root)}function Te(e,t){if(!Fe(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!Te(e.children[n],t.children[n]))return!1}return!0}function we(e,t){return Ae(e,t,t.segments)}function Ae(e,t,n){if(e.segments.length>n.length)return!!Fe(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!Fe(e.segments,n))return!1;for(var r in t.children){if(!e.children[r])return!1;if(!we(e.children[r],t.children[r]))return!1}return!0}var i=n.slice(0,e.segments.length),a=n.slice(e.segments.length);return!!Fe(e.segments,i)&&!!e.children.primary&&Ae(e.children.primary,t,a)}var Ne=function(){function e(t,n,r){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=r}return _createClass(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=he(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Le.serialize(this)}}]),e}(),Pe=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,Se(n,function(e,t){return e.parent=r})}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Re(this)}}]),e}(),Oe=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=he(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return We(this)}}]),e}();function Fe(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Ie=function e(){_classCallCheck(this,e)},Me=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new Qe(e);return new Ne(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,r;return"/".concat(Be(e.root,!0)).concat((n=e.queryParams,r=Object.keys(n).map(function(e){var t=n[e];return Array.isArray(t)?t.map(function(t){return"".concat(Ue(e),"=").concat(Ue(t))}).join("&"):"".concat(Ue(e),"=").concat(Ue(t))}),r.length?"?".concat(r.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),Le=new Me;function Re(e){return e.segments.map(function(e){return We(e)}).join("/")}function Be(e,t){if(!e.hasChildren())return Re(e);if(t){var n=e.children.primary?Be(e.children.primary,!1):"",r=[];return Se(e.children,function(e,t){"primary"!==t&&r.push("".concat(t,":").concat(Be(e,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=function(e,t){var n=[];return Se(e.children,function(e,r){"primary"===r&&(n=n.concat(t(e,r)))}),Se(e.children,function(e,r){"primary"!==r&&(n=n.concat(t(e,r)))}),n}(e,function(t,n){return"primary"===n?[Be(e.children.primary,!1)]:["".concat(n,":").concat(Be(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(Re(e),"/").concat(i[0]):"".concat(Re(e),"/(").concat(i.join("//"),")")}function je(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ue(e){return je(e).replace(/%3B/gi,";")}function ze(e){return je(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Je(e){return decodeURIComponent(e)}function Ve(e){return Je(e.replace(/\+/g,"%20"))}function We(e){return"".concat(ze(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(ze(e),"=").concat(ze(t[e]))}).join("")));var t}var qe=/^[^\/()?;=#]+/;function Ke(e){var t=e.match(qe);return t?t[0]:""}var He=/^[^=?&#]+/,Ge=/^[^?&#]+/,Qe=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Pe([],{}):new Pe([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Pe(e,t)),n}},{key:"parseSegment",value:function(){var e=Ke(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Oe(Je(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Ke(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=Ke(this.remaining);r&&(n=r,this.capture(n))}e[Je(t)]=Je(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(He);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(Ge);return t?t[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=Ve(t),a=Ve(n);if(e.hasOwnProperty(i)){var o=e[i];Array.isArray(o)||(o=[o],e[i]=o),o.push(a)}else e[i]=a}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ke(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i="primary");var a=this.parseChildren();t[i]=1===Object.keys(a).length?a.primary:new Pe([],a),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Xe=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Ye(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Ye(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=Ze(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return Ze(e,this._root).map(function(e){return e.value})}}]),e}();function Ye(e,t){if(e===t.value)return t;var n,r=_createForOfIteratorHelper(t.children);try{for(r.s();!(n=r.n()).done;){var i=Ye(e,n.value);if(i)return i}}catch(a){r.e(a)}finally{r.f()}return null}function Ze(e,t){if(e===t.value)return[t];var n,r=_createForOfIteratorHelper(t.children);try{for(r.s();!(n=r.n()).done;){var i=Ze(e,n.value);if(i.length)return i.unshift(t),i}}catch(a){r.e(a)}finally{r.f()}return[]}var $e=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function et(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var tt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).snapshot=r,st(_assertThisInitialized2(i),e),i}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Xe);function nt(e,t){var n=function(e,t){var n=new at([],{},{},"",{},"primary",t,null,e.root,-1,{});return new ot("",new $e(n,[]))}(e,t),r=new s.a([new Oe("",{})]),i=new s.a({}),a=new s.a({}),o=new s.a({}),c=new s.a(""),u=new rt(r,i,o,c,a,"primary",t,n.root);return u.snapshot=n.root,new tt(new $e(u,[]),n)}var rt=function(){function e(t,n,r,i,a,o,s,c){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=c}return _createClass(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(E.a)(function(e){return he(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(E.a)(function(e){return he(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function it(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],a=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(a.component)break;r--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var at=function(){function e(t,n,r,i,a,o,s,c,u,l,_){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this.routeConfig=c,this._urlSegment=u,this._lastPathIndex=l,this._resolve=_}return _createClass(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=he(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=he(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),ot=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,r)).url=e,st(_assertThisInitialized2(i),r),i}return _createClass(n,[{key:"toString",value:function(){return ct(this._root)}}]),n}(Xe);function st(e,t){t.value._routerState=e,t.children.forEach(function(t){return st(e,t)})}function ct(e){var t=e.children.length>0?" { ".concat(e.children.map(ct).join(", ")," } "):"";return"".concat(e.value).concat(t)}function ut(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,be(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),be(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&ft(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(pt);if(i&&i!==Ce(r))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),yt=function e(t,n,r){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function vt(e,t,n){if(e||(e=new Pe([],{})),0===e.segments.length&&e.hasChildren())return bt(e,t,n);var r=function(e,t,n){for(var r=0,i=t,a={match:!1,pathIndex:0,commandIndex:0};i=n.length)return a;var o=e.segments[i],s=n[r];if(pt(s))break;var c="".concat(s),u=r0&&void 0===c)break;if(c&&u&&"object"==typeof u&&void 0===u.outlets){if(!St(c,u,o))return a;r+=2}else{if(!St(c,{},o))return a;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},Ut):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var i=(t.matcher||ve)(n,e,t);if(!i)return Object.assign({},Ut);var a={};Se(i.posParams,function(e,t){a[t]=e.path});var o=i.consumed.length>0?Object.assign(Object.assign({},a),i.consumed[i.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function Jt(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Vt(e,t,n)&&"primary"!==Bt(n)})}(e,n,r)){var a=new Pe(t,function(e,t,n,r){var i={};i.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var a,o=_createForOfIteratorHelper(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(""===s.path&&"primary"!==Bt(s)){var c=new Pe([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,i[Bt(s)]=c}}}catch(u){o.e(u)}finally{o.f()}return i}(e,t,r,new Pe(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Vt(e,t,n)})}(e,n,r)){var o=new Pe(e.segments,function(e,t,n,r,i,a){var o,s={},c=_createForOfIteratorHelper(r);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(Vt(e,n,u)&&!i[Bt(u)]){var l=new Pe([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===a?e.segments.length:t.length,s[Bt(u)]=l}}}catch(_){c.e(_)}finally{c.f()}return Object.assign(Object.assign({},i),s)}(e,t,n,r,e.children,i));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}var s=new Pe(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Vt(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Wt(e,t,n,r){return!!(Bt(e)===r||"primary"!==r&&Vt(t,n,e))&&("**"===e.path||zt(t,e,n).matched)}function qt(e,t,n){return 0===t.length&&!e.children[n]}var Kt=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},Ht=function e(t){_classCallCheck(this,e),this.urlTree=t};function Gt(e){return new p.a(function(t){return t.error(new Kt(e))})}function Qt(e){return new p.a(function(t){return t.error(new Ht(e))})}function Xt(e){return new p.a(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var Yt=function(){function e(t,n,r,a,o){_classCallCheck(this,e),this.configLoader=n,this.urlSerializer=r,this.urlTree=a,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(i.y)}return _createClass(e,[{key:"apply",value:function(){var e=this,t=Jt(this.urlTree.root,[],[],this.config).segmentGroup,n=new Pe(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(Object(E.a)(function(t){return e.createUrlTree(Zt(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Object(I.a)(function(t){if(t instanceof Ht)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Kt)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Object(E.a)(function(n){return t.createUrlTree(Zt(n),e.queryParams,e.fragment)})).pipe(Object(I.a)(function(e){if(e instanceof Kt)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var r=e.segments.length>0?new Pe([],{primary:e}):e;return new Ne(r,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(E.a)(function(e){return new Pe([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){for(var r=this,i=[],o=0,s=Object.keys(n.children);o=2;return function(r){return r.pipe(e?Object(F.a)(function(t,n){return e(t,n,r)}):W.a,Object(L.a)(1),n?z(t):R(function(){return new b}))}}())}},{key:"expandSegment",value:function(e,t,n,r,i,s){var c=this;return Object(a.a)(n).pipe(Object(M.a)(function(a){return c.expandSegmentAgainstRoute(e,t,n,a,r,i,s).pipe(Object(I.a)(function(e){if(e instanceof Kt)return Object(o.a)(null);throw e}))}),q(function(e){return!!e}),Object(I.a)(function(e,n){if(e instanceof b||"EmptyError"===e.name){if(qt(t,r,i))return Object(o.a)(new Pe([],{}));throw new Kt(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,a,o){return Wt(r,t,i,a)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,a):Gt(t):Gt(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Qt(a):this.lineralizeSegments(n,a).pipe(Object(K.a)(function(n){var a=new Pe(n,{});return i.expandSegment(e,a,t,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,a){var o=this,s=zt(t,r,i),c=s.matched,u=s.consumedSegments,l=s.lastChild,_=s.positionalParamSegments;if(!c)return Gt(t);var d=this.applyRedirectCommands(u,r.redirectTo,_);return r.redirectTo.startsWith("/")?Qt(d):this.lineralizeSegments(r,d).pipe(Object(K.a)(function(r){return o.expandSegment(e,t,n,r.concat(i.slice(l)),a,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r,i){var a=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Object(o.a)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(Object(E.a)(function(e){return n._loadedConfig=e,new Pe(r,{})})):Object(o.a)(new Pe(r,{}));var s=zt(t,n,r),c=s.matched,u=s.consumedSegments,l=s.lastChild;if(!c)return Gt(t);var _=r.slice(l);return this.getChildConfig(e,n,r).pipe(Object(K.a)(function(e){var r=e.module,s=e.routes,c=Jt(t,u,_,s),l=c.segmentGroup,d=c.slicedSegments,f=new Pe(l.segments,l.children);if(0===d.length&&f.hasChildren())return a.expandChildren(r,s,f).pipe(Object(E.a)(function(e){return new Pe(u,e)}));if(0===s.length&&0===d.length)return Object(o.a)(new Pe(u,{}));var p=Bt(n)===i;return a.expandSegment(r,f,s,d,p?"primary":i,!0).pipe(Object(E.a)(function(e){return new Pe(u.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?Object(o.a)(new Tt(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(o.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(K.a)(function(n){return n?r.configLoader.load(e.injector,t).pipe(Object(E.a)(function(e){return t._loadedConfig=e,e})):function(e){return new p.a(function(t){return t.error(ye("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):Object(o.a)(new Tt([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var r=this,i=t.canLoad;if(!i||0===i.length)return Object(o.a)(!0);var a=i.map(function(r){var i,a=e.get(r);if(function(e){return e&&wt(e.canLoad)}(a))i=a.canLoad(t,n);else{if(!wt(a))throw new Error("Invalid CanLoad guard");i=a(t,n)}return ke(i)});return Object(o.a)(a).pipe(Pt(),Object(H.a)(function(e){if(At(e)){var t=ye('Redirecting to "'.concat(r.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Object(E.a)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(o.a)(n);if(r.numberOfChildren>1||!r.children.primary)return Xt(e.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new Ne(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Se(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,a=this.createSegments(e,t.segments,n,r),o={};return Se(t.children,function(t,a){o[a]=i.createSegmentGroup(e,t,n,r)}),new Pe(a,o)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n,r=0,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(r),a;r++}}catch(o){i.e(o)}finally{i.f()}return e}}]),e}();function Zt(e){for(var t={},n=0,r=Object.keys(e.children);n0||a.hasChildren())&&(t[i]=a)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Pe(e.segments.concat(t.segments),t.children)}return e}(new Pe(e.segments,t))}var $t=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},en=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function tn(e,t,n){var r=e._root;return rn(r,t?t._root:null,n,[r.value])}function nn(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function rn(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=et(t);return e.children.forEach(function(e){!function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,o=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Fe(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Fe(e.url,t.url)||!be(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lt(e,t)||!be(e.queryParams,t.queryParams);case"paramsChange":default:return!lt(e,t)}}(o,a,a.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new $t(r)):(a.data=o.data,a._resolvedData=o._resolvedData),rn(e,t,a.component?s?s.children:null:n,r,i),c&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new en(s.outlet.component,o))}else o&&an(t,s,i),i.canActivateChecks.push(new $t(r)),rn(e,null,a.component?s?s.children:null:n,r,i)}(e,a[e.value.outlet],n,r.concat([e.value]),i),delete a[e.value.outlet]}),Se(a,function(e,t){return an(e,n.getContext(t),i)}),i}function an(e,t,n){var r=et(e),i=e.value;Se(r,function(e,r){an(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new en(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var on=function e(){_classCallCheck(this,e)};function sn(e){return new p.a(function(t){return t.error(e)})}var cn=function(){function e(t,n,r,i,a,o){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return _createClass(e,[{key:"recognize",value:function(){var e=Jt(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new at([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new $e(n,t),i=new ot(this.url,r);return this.inheritParamsAndData(i._root),i}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=it(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],r=0,i=Object.keys(t.children);r0?Ce(n).parameters:{};i=new at(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,_n(e),Bt(e),e.component,e,un(t),ln(t)+n.length,dn(e))}else{var c=zt(t,e,n);if(!c.matched)return null;a=c.consumedSegments,o=n.slice(c.lastChild),i=new at(a,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,_n(e),Bt(e),e.component,e,un(t),ln(t)+a.length,dn(e))}var u=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),l=Jt(t,a,o,u.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),_=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&_.hasChildren()){var f=this.processChildren(u,_);return null===f?null:[new $e(i,f)]}if(0===u.length&&0===d.length)return[new $e(i,[])];var p=Bt(e)===r,g=this.processSegment(u,_,d,p?"primary":r);return null===g?null:[new $e(i,g)]}}]),e}();function un(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function ln(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function _n(e){return e.data||{}}function dn(e){return e.resolve||{}}function fn(e){return Object(T.a)(function(t){var n=e(t);return n?Object(a.a)(n).pipe(Object(E.a)(function(){return t})):Object(o.a)(t)})}var pn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),gn=new i.r("ROUTES"),mn=function(){function e(t,n,r,i){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return _createClass(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var r=this.loadModuleFactory(t.loadChildren).pipe(Object(E.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var a=r.create(e);return new Tt(De(a.injector.get(gn,void 0,i.q.Self|i.q.Optional)).map(Rt),a)}),Object(I.a)(function(e){throw t._loader$=void 0,e}));return t._loader$=new S.a(r,function(){return new k.a}).pipe(Object(G.a)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Object(a.a)(this.loader.load(e)):ke(e()).pipe(Object(K.a)(function(e){return e instanceof i.w?Object(o.a)(e):Object(a.a)(t.compiler.compileModuleAsync(e))}))}}]),e}(),hn=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new yn,this.attachRef=null},yn=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new hn,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),vn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function bn(e){throw e}function xn(e,t,n){return t.parse("/")}function Dn(e,t){return Object(o.a)(null)}var Cn,Sn,kn=((Sn=function(){function e(t,n,r,a,o,c,u,l){var _=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=a,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k.a,this.errorHandler=bn,this.malformedUriErrorHandler=xn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Dn,afterPreactivation:Dn},this.urlHandlingStrategy=new vn,this.routeReuseStrategy=new pn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(i.y),this.console=o.get(i.Z);var d=o.get(i.A);this.isNgZoneEnabled=d instanceof i.A&&i.A.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new Ne(new Pe([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new mn(c,u,function(e){return _.triggerEvent(new ue(e))},function(e){return _.triggerEvent(new le(e))}),this.routerState=nt(this.currentUrlTree,this.rootComponentType),this.transitions=new s.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Object(F.a)(function(e){return 0!==e.id}),Object(E.a)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Object(T.a)(function(e){var r,i,s,c,u=!1,l=!1;return Object(o.a)(e).pipe(Object(H.a)(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(T.a)(function(e){var r,i,a,s,c=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||c)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(o.a)(e).pipe(Object(T.a)(function(e){var r=t.transitions.getValue();return n.next(new ee(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?C.a:Promise.resolve(e)}),(r=t.ngModule.injector,i=t.configLoader,a=t.urlSerializer,s=t.config,Object(T.a)(function(e){return function(e,t,n,r,i){return new Yt(e,t,n,r,i).apply()}(r,i,a,e.extractedUrl,s).pipe(Object(E.a)(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),Object(H.a)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,r,i,a){return Object(K.a)(function(r){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var s=new cn(e,t,n,r,i,a).recognize();return null===s?sn(new on):Object(o.a)(s)}catch(c){return sn(c)}}(e,n,r.urlAfterRedirects,(s=r.urlAfterRedirects,t.serializeUrl(s)),i,a).pipe(Object(E.a)(function(e){return Object.assign(Object.assign({},r),{targetSnapshot:e})}));var s})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Object(H.a)(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects);var r=new ie(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(c&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.id,l=e.extractedUrl,_=e.source,d=e.restoredState,f=e.extras,p=new ee(u,t.serializeUrl(l),_,d);n.next(p);var g=nt(l,t.rootComponentType).snapshot;return Object(o.a)(Object.assign(Object.assign({},e),{targetSnapshot:g,urlAfterRedirects:l,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),C.a}),fn(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,c=o.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!c})}),Object(H.a)(function(e){var n=new ae(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(E.a)(function(e){return Object.assign(Object.assign({},e),{guards:tn(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return Object(K.a)(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,s=n.guards,c=s.canActivateChecks,u=s.canDeactivateChecks;return 0===u.length&&0===c.length?Object(o.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return Object(a.a)(e).pipe(Object(K.a)(function(e){return function(e,t,n,r,i){var a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!a||0===a.length)return Object(o.a)(!0);var s=a.map(function(a){var o,s=nn(a,t,i);if(function(e){return e&&wt(e.canDeactivate)}(s))o=ke(s.canDeactivate(e,t,n,r));else{if(!wt(s))throw new Error("Invalid CanDeactivate guard");o=ke(s(e,t,n,r))}return o.pipe(q())});return Object(o.a)(s).pipe(Pt())}(e.component,e.route,n,t,r)}),q(function(e){return!0!==e},!0))}(u,r,i,e).pipe(Object(K.a)(function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return Object(a.a)(t).pipe(Object(M.a)(function(t){return Object(x.a)(function(e,t){return null!==e&&t&&t(new _e(e)),Object(o.a)(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new fe(e)),Object(o.a)(!0)}(t.route,r),function(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return Object(D.a)(function(){var i=t.guards.map(function(i){var a,o=nn(i,t.node,n);if(function(e){return e&&wt(e.canActivateChild)}(o))a=ke(o.canActivateChild(r,e));else{if(!wt(o))throw new Error("Invalid CanActivateChild guard");a=ke(o(r,e))}return a.pipe(q())});return Object(o.a)(i).pipe(Pt())})});return Object(o.a)(i).pipe(Pt())}(e,t.path,n),function(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(o.a)(!0);var i=r.map(function(r){return Object(D.a)(function(){var i,a=nn(r,t,n);if(function(e){return e&&wt(e.canActivate)}(a))i=ke(a.canActivate(t,e));else{if(!wt(a))throw new Error("Invalid CanActivate guard");i=ke(a(t,e))}return i.pipe(q())})});return Object(o.a)(i).pipe(Pt())}(e,t.route,n))}),q(function(e){return!0!==e},!0))}(r,c,e,t):Object(o.a)(n)}),Object(E.a)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Object(H.a)(function(e){if(At(e.guardsResult)){var n=ye('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var r=new oe(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(r)}),Object(F.a)(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new ne(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),fn(function(e){if(e.guards.canActivateChecks.length)return Object(o.a)(e).pipe(Object(H.a)(function(e){var n=new se(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(T.a)(function(e){var r,i,s=!1;return Object(o.a)(e).pipe((r=t.paramsInheritanceStrategy,i=t.ngModule.injector,Object(K.a)(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return Object(o.a)(e);var s=0;return Object(a.a)(n).pipe(Object(M.a)(function(e){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return Object(o.a)({});var s={};return Object(a.a)(i).pipe(Object(K.a)(function(i){return function(e,t,n,r){var i=nn(e,t,r);return ke(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(Object(H.a)(function(e){s[i]=e}))}),Object(L.a)(1),Object(K.a)(function(){return Object.keys(s).length===i.length?Object(o.a)(s):C.a}))}(e._resolve,e,t,r).pipe(Object(E.a)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),it(e,n).resolve),null}))}(e.route,t,r,i)}),Object(H.a)(function(){return s++}),Object(L.a)(1),Object(K.a)(function(t){return s===n.length?Object(o.a)(e):C.a}))})),Object(H.a)({next:function(){return s=!0},complete:function(){if(!s){var r=new ne(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),e.resolve(!1)}}}))}),Object(H.a)(function(e){var n=new ce(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),fn(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,c=o.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!c})}),Object(E.a)(function(e){var n=function(e,t,n){var r=_t(e,t._root,n?n._root:void 0);return new tt(r,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Object(H.a)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,s=t.routeReuseStrategy,c=function(e){return t.triggerEvent(e)},Object(E.a)(function(e){return new kt(s,e.targetRouterState,e.currentRouterState,c).activate(i),e})),Object(H.a)({next:function(){u=!0},complete:function(){u=!0}}),(r=function(){if(!u&&!l){t.resetUrlToCurrentUrlTree();var r=new ne(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(r),e.resolve(!1)}t.currentNavigation=null},function(e){return e.lift(new X(r))}),Object(I.a)(function(r){if(l=!0,(s=r)&&s.ngNavigationCancelingError){var i=At(r.url);i||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var a=new ne(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(a),i?setTimeout(function(){var n=t.urlHandlingStrategy.merge(r.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var o=new re(e.id,t.serializeUrl(e.extractedUrl),r);n.next(o);try{e.resolve(t.errorHandler(r))}catch(c){e.reject(c)}}var s;return C.a}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,r=n.state,i=n.urlTree,a={replaceUrl:!0};if(r){var o=Object.assign({},r);delete o.navigationId,0!==Object.keys(o).length&&(a.state=o)}e.scheduleNavigation(i,t,r,a)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){It(e),this.config=e.map(Rt),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,i=t.fragment,a=t.queryParamsHandling,o=t.preserveFragment,s=n||this.routerState.root,c=o?this.currentUrlTree.fragment:i,u=null;switch(a){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,n,r,i){if(0===n.length)return gt(t.root,t.root,t,r,i);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ht(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var a={};return Se(r.outlets,function(e,t){a[t]="string"==typeof e?e.split("/"):e}),[].concat(_toConsumableArray(e),[{outlets:a}])}if(r.segmentPath)return[].concat(_toConsumableArray(e),[r.segmentPath])}return"string"!=typeof r?[].concat(_toConsumableArray(e),[r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[].concat(_toConsumableArray(e),[r])},[]);return new ht(n,t,r)}(n);if(a.toRoot())return gt(t.root,new Pe([],{}),t,r,i);var o=function(e,t,n){if(e.isAbsolute)return new yt(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new yt(r,r===t.root,0)}var i=ft(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,a=n;a>i;){if(a-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new yt(r,!1,i-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(a,t,e),s=o.processChildren?bt(o.segmentGroup,o.index,a.commands):vt(o.segmentGroup,o.index,a.commands);return gt(o.segmentGroup,s,t,r,i)}(s,this.currentUrlTree,e,u,c)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=At(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof ee?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof te&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof ge&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new ge(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||An)(i.Sb(kn),i.Sb(r.o),i.Sb(void 0))},An.\u0275prov=i.Hb({token:An,factory:An.\u0275fac}),An),Rn=new i.r("ROUTER_CONFIGURATION"),Bn=new i.r("ROUTER_FORROOT_GUARD"),jn=[r.f,{provide:Ie,useClass:Me},{provide:kn,useFactory:function(e,t,n,i,a,o,s){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,_=new kn(null,e,t,n,i,a,o,De(s));if(u&&(_.urlHandlingStrategy=u),l&&(_.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(c,_),c.enableTracing){var d=Object(r.t)();_.events.subscribe(function(e){d.logGroup("Router Event: ".concat(e.constructor.name)),d.log(e.toString()),d.log(e),d.logGroupEnd()})}return _},deps:[Ie,yn,r.f,i.s,i.x,i.i,gn,Rn,[function(){return function e(){_classCallCheck(this,e)}}(),new i.B],[function(){return function e(){_classCallCheck(this,e)}}(),new i.B]]},yn,{provide:rt,useFactory:function(e){return e.routerState.root},deps:[kn]},{provide:i.x,useClass:i.L},Mn,In,function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(Object(I.a)(function(){return Object(o.a)(null)}))}}]),e}(),{provide:Rn,useValue:{enableTracing:!1}}];function Un(){return new i.z("Router",kn)}var zn,Jn=((zn=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[jn,Kn(t),{provide:Bn,useFactory:qn,deps:[[kn,new i.B,new i.K]]},{provide:Rn,useValue:n||{}},{provide:r.g,useFactory:Wn,deps:[r.m,[new i.p(r.a),new i.B],Rn]},{provide:Ln,useFactory:Vn,deps:[kn,r.o,Rn]},{provide:Fn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:In},{provide:i.z,multi:!0,useFactory:Un},[Gn,{provide:i.d,multi:!0,useFactory:Qn,deps:[Gn]},{provide:Yn,useFactory:Xn,deps:[Gn]},{provide:i.b,multi:!0,useExisting:Yn}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Kn(t)]}}}]),e}()).\u0275mod=i.Jb({type:zn}),zn.\u0275inj=i.Ib({factory:function(e){return new(e||zn)(i.Sb(Bn,8),i.Sb(kn,8))}}),zn);function Vn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Ln(e,t,n)}function Wn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new r.d(e,t):new r.l(e,t)}function qn(e){return"guarded"}function Kn(e){return[{provide:i.a,multi:!0,useValue:e},{provide:gn,multi:!0,useValue:e}]}var Hn,Gn=((Hn=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new k.a}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(r.e,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get(kn),i=e.injector.get(Rn);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return e.initNavigation?Object(o.a)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Rn),n=this.injector.get(Mn),r=this.injector.get(Ln),a=this.injector.get(kn),o=this.injector.get(i.g);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||a.initialNavigation(),n.setUpPreloading(),r.init(),a.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||Hn)(i.Sb(i.s))},Hn.\u0275prov=i.Hb({token:Hn,factory:Hn.\u0275fac}),Hn);function Qn(e){return e.appInitializer.bind(e)}function Xn(e){return e.bootstrapListener.bind(e)}var Yn=new i.r("Router Initializer")},izN1:function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="izN1"},jBAD:function jBAD(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return GameComponent});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("mrSG"),rxjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("XNiG"),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("LRne"),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("EY2u"),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("Cfvw"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("VRyK"),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("1uah"),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("cp0P"),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("3E0/"),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("pLZG"),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("IzEk"),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("bOdf"),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("GJmQ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("vkgz"),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("02Lk"),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("lJxs"),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("/uUt"),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("zP0r"),rxjs_operators__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("BFxc"),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("kagm"),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("/d8p"),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("un/a"),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("JIr8"),gsap__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("z/o8"),_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("8ok5"),_game_over_dialog_game_over_dialog_component__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("YTqg"),property_watch_decorator__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("R1az"),property_watch_decorator__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(property_watch_decorator__WEBPACK_IMPORTED_MODULE_26__),_angular_core__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("8Y7J"),_shared_level_service__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("Ub8T"),_ngx_translate_core__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("TSSN"),_angular_router__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("iInd"),_shared_exercise_service__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("VIrA"),_shared_local_storage_service__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("BnXa"),_shared_console_service__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("mM0U"),_shared_cheating_detection_service__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("Q1aD"),_shared_confetti_service__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("099V"),_shared_typescript_service__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("UY0t"),_shared_color_mixer_service__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("Dsyz"),_shared_sound_service__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("+Ohx"),_angular_common_http__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("IheW"),_angular_material_dialog__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("iELJ"),_angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("VDRc"),_angular_common__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("SVse"),_angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("ura0"),_angular_forms__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("s7LF"),_cookie_banner_cookie_banner_component__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("cgln"),_shared_init_directive__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("DRc/"),_shared_language_pipe__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("TQ3W"),_c0=["board"],_c1=["conveyorbelt"],_c2=["bottle"],_c3=["funnel"],_c4=["liquid"];function GameComponent_div_25_span_2_Template(e,t){if(1&e){var n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Pb();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"span",47),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){_angular_core__WEBPACK_IMPORTED_MODULE_27__.ic(n);var e=t.$implicit;return _angular_core__WEBPACK_IMPORTED_MODULE_27__.ac(2).goToExercise(e)}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()}if(2&e){var r=t.$implicit,i=_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac(2);_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngClass",i.levelStateStyle(r))("title",r.title),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(r.number)}}function GameComponent_div_25_Template(e,t){if(1&e){var n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Pb();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"div",43),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(1,"div",44),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(2,GameComponent_div_25_span_2_Template,2,3,"span",45),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(3,"div",46),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return _angular_core__WEBPACK_IMPORTED_MODULE_27__.ic(n),_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac().resetAllStates()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(4),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(5,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()}if(2&e){var r=_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngForOf",r.levelService.levels),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(5,2,"APP.LABELRESET"))}}function GameComponent_div_28_li_8_Template(e,t){if(1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"li"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(3,"uppercase"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e){var n=t.$implicit,r=t.index,i=_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac(2);_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.tc(" ",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,2,_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(3,4,"APP.FRUITS."+n))," ",i.assertFruitPipeIcon(r)," ")}}function GameComponent_div_28_p_9_Template(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"p",54),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,1,"APP.ISTOOMUCHFRUITS")))}function GameComponent_div_28_p_10_Template(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"p",55),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,1,"APP.ISNOFRUITSINCOMING")))}function GameComponent_div_28_p_11_Template(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"p",56),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,1,"APP.ISTOOLITTLEFRUITS")))}function GameComponent_div_28_p_12_Template(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"p",57),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.sc("",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,1,"APP.ISNOACTIVATESUBSCRIBE")," "))}function GameComponent_div_28_Template(e,t){if(1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"div",48),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(1,"h3"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(3,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(4,"p",22),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(5,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(6,"uppercase"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(7,"ol"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(8,GameComponent_div_28_li_8_Template,4,6,"li",49),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(9,GameComponent_div_28_p_9_Template,3,3,"p",50),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(10,GameComponent_div_28_p_10_Template,3,3,"p",51),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(11,GameComponent_div_28_p_11_Template,3,3,"p",52),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(12,GameComponent_div_28_p_12_Template,3,3,"p",53),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e){var n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac();_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngClass",n.recipeAnimationStyle()),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.sc("\ud83e\uddfe ",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(3,8,"APP.RECIPETITLE"),""),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(5,10,_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(6,12,"EXERCISES."+n.levelService.currentLevel.title+".RECIPEDESCRIPTION")),_angular_core__WEBPACK_IMPORTED_MODULE_27__.jc),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(4),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngForOf",n.currentExercise.expectedFruits),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",n.isTooMuchFruits),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",n.isNoFruitsIncoming),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",n.isTooLittleFruits),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",n.isNoActivateSubscribe)}}function GameComponent_button_33_Template(e,t){if(1&e){var n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Pb();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"button",58),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return _angular_core__WEBPACK_IMPORTED_MODULE_27__.ic(n),_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac().cancel()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Zb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(3,"svg",59),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(4,"g"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(5,"path",60),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()}2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.sc("",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,1,"APP.CANCELBUTTON")," "))}function GameComponent_button_34_Template(e,t){if(1&e){var n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Pb();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"button",61),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return _angular_core__WEBPACK_IMPORTED_MODULE_27__.ic(n),_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac().run()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Zb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(3,"svg",59),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(4,"g"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(5,"path",62),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()}if(2&e){var r=_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac();_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("disabled",r.isCheatingDetected),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.sc("",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,2,"APP.STARTBUTTON")," ")}}function GameComponent_span_45_span_1_Template(e,t){if(1&e){var n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Pb();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"span",65),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){_angular_core__WEBPACK_IMPORTED_MODULE_27__.ic(n);var e=t.$implicit;return _angular_core__WEBPACK_IMPORTED_MODULE_27__.ac(2).changeLanguage(e)}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"language"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()}if(2&e){var r=t.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.sc(" ",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,1,r)," ")}}function GameComponent_span_45_Template(e,t){if(1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"span",63),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(1,GameComponent_span_45_span_1_Template,3,3,"span",64),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e){var n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.ac();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngForOf",n.translate.getLangs())}}function GameComponent_img_54_Template(e,t){if(1&e){var n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Pb();_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"img",66),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("appInit",function(){_angular_core__WEBPACK_IMPORTED_MODULE_27__.ic(n);var e=t.$implicit;return _angular_core__WEBPACK_IMPORTED_MODULE_27__.ac().startFruitAnimation(e.id)}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()}if(2&e){var r=t.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("id",r.id)("src",r.url,_angular_core__WEBPACK_IMPORTED_MODULE_27__.kc)}}function GameComponent_div_63_Template(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"div",67),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(2,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.sc(" ",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(2,1,"APP.OUTPUT")," "))}function GameComponent_img_64_Template(e,t){1&e&&_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(0,"img",68)}var GameComponent=function(){var GameComponent=function(){function GameComponent(e,t,n,r,i,a,o,s,c,u,l,_,d,f){_classCallCheck(this,GameComponent),this.levelService=e,this.translate=t,this.router=n,this.exerciseService=r,this.localStorageService=i,this.consoleService=a,this.cheatingDetectionService=o,this.confettiService=s,this.typescriptService=c,this.colorMixerService=u,this.soundService=l,this.monacoLoader=_,this.httpClient=d,this.dialog=f,this.editorOptions={theme:"vs-dark",language:"typescript",fontSize:19,minimap:{enabled:!1},fixedOverflowWidgets:!0},this.currentBottleHeight=100,this.lastFruitColor="",this.liquidAnimationTimeline=gsap__WEBPACK_IMPORTED_MODULE_23__.a.timeline(),this.fruitAnimationTimelines=[],this.code="",this.isRunActive=!1,this.isLevelsWrapperOpen=!1,this.isLanguageOptionsOpen=!1,this.clickedByToggle=!1,this.fruits=[],this.fruitsInPipe=[],this.isNextExerciseAvailable=!1,this.isTooMuchFruits=!1,this.isNoFruitsIncoming=!1,this.isTooLittleFruits=!1,this.isNoActivateSubscribe=!1,this.isCheatingDetected=!1,this.currentExercise={code:"",expectedFruits:[],fruits:[],minPositionLineNumber:0,positionColumnNumber:0},this.isErrorInConsole=!1,this.soundIconPath=""}return _createClass(GameComponent,[{key:"ngOnInit",value:function(){var e=this,t=this.localStorageService.loadSoundSettings();this.soundIconPath=t.imagePath,this.soundService.volume=t.volume,this.soundService.isMute=t.isMute,this.translate.addLangs(["en","de","ru","zh_CN","es"]),this.translate.setDefaultLang("en"),this.translate.onLangChange.subscribe(function(){e.localStorageService.saveLanguage(e.translate.currentLang)});var n=this.localStorageService.loadSelectedLanguage();if(n)this.translate.use(n);else{var r=this.translate.getBrowserLang();this.translate.use(r.match(/en|de|ru|zh_CN|es/)?r:"en")}this.exerciseService.exerciseChanged$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.a)(0)).subscribe({next:function(t){e.currentExercise=t,e.code=e.localStorageService.loadCode(e.levelService.currentLevel.title)||t.code,e.changeMonacoSettings()}}),this.exerciseService.assertionChecked$.subscribe({next:function(t){e.isNextExerciseAvailable=t,!1===t&&e.isRunActive&&0===e.fruitsInPipe.length?(e.isNoFruitsIncoming=!0,e.cancel()):!1===t&&e.isRunActive&&e.currentExercise.expectedFruits.length>e.fruitsInPipe.length&&(e.isTooLittleFruits=!0)}}),this.monacoLoader.isMonacoLoaded$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(function(e){return!0===e}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(1)).subscribe({next:function(){e.httpClient.get("assets/rx6.d.ts",{responseType:"text"}).subscribe({next:function(e){window.monaco.languages.typescript.typescriptDefaults.addExtraLib(e,"")}}),e.setupMonacoSettings(),e.changeMonacoSettings()}}),this.levelService.gameOver$.subscribe({next:function(){e.confettiService.start(),e.dialog.open(_game_over_dialog_game_over_dialog_component__WEBPACK_IMPORTED_MODULE_25__.a).afterClosed().subscribe(function(){return e.confettiService.stop()})}}),this.consoleService.showWelcomeMessage()}},{key:"previousLevelStyle",value:function(){return{disabled:0===this.levelService.currentLevelIndex}}},{key:"nextLevelStyle",value:function(){return{disabled:this.levelService.levels.length===this.levelService.currentLevel.number}}},{key:"levelStateStyle",value:function(e){return{current:this.levelService.isCurrentLevel(e),solved:e.solved}}},{key:"buttonAnimationStyle",value:function(){return{animated:this.isNextExerciseAvailable,nextButtonAnimation:this.isNextExerciseAvailable}}},{key:"recipeAnimationStyle",value:function(){for(var e=!1,t=0;t1?this.runLevelWithUserCode():(this.isNoActivateSubscribe=!0,this.cancel())}},{key:"runIntroductoryLevel",value:function(){this.startConveyorBeltAnimation(),this.isNextExerciseAvailable=!0}},{key:"runLevelWithUserCode",value:function(){this.startConveyorBeltAnimation();var e=new rxjs__WEBPACK_IMPORTED_MODULE_1__.a;try{this.observeConveyorBelt(e.asObservable()),this.executeCode(function(t){e.next(t)})}catch(t){this.notifyAboutErrorInCode(t)}finally{e.complete()}}},{key:"observeConveyorBelt",value:function(e){var t=this;e.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(e){return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__.a)(e).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.a)(1e3))}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)(function(){return t.isRunActive}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(function(e){return console.log("Into the pipe: "+e)}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(function(e){return t.pushFruitToPipe(e)}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(function(e){return t.addFruitToView(e)})).subscribe(this.exerciseService.assertExerciseOutput())}},{key:"pushFruitToPipe",value:function(e){this.fruitsInPipe.push(e),this.fruitsInPipe.length>this.currentExercise.expectedFruits.length&&(this.isTooMuchFruits=!0)}},{key:"executeCode",value:function executeCode(toConveyorBelt){var EMPTY=rxjs__WEBPACK_IMPORTED_MODULE_3__.a,from=rxjs__WEBPACK_IMPORTED_MODULE_4__.a,distinct=rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a,map=rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a,take=rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a,filter=rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a,tap=rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a,skip=rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a,merge=rxjs__WEBPACK_IMPORTED_MODULE_5__.a,takeLast=rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a,skipLast=rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.a,repeat=rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.a,takeWhile=rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a,retry=rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.a,catchError=rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.a,distinctUntilChanged=rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a,zip=rxjs__WEBPACK_IMPORTED_MODULE_6__.a,concatMap=rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a,forkJoin=rxjs__WEBPACK_IMPORTED_MODULE_7__.a,transpiledCode=this.typescriptService.transpile(this.code);eval(transpiledCode)}},{key:"notifyAboutErrorInCode",value:function(e){this.consoleService.showRandomErrorImage(),this.resetCurrentState(),console.error(e),this.isErrorInConsole=!0}},{key:"addFruitToView",value:function(e){var t="";switch(e){case"apple":t="fruit-apple-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-Apple.svg"});break;case"dirty-apple":t="fruit-dirty-apple-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-dirty-Apple.svg"});break;case"old-apple":t="fruit-dirty-apple-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-old-Apple.svg"});break;case"banana":t="fruit-banana-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-Banana.svg"});break;case"dirty-banana":t="fruit-dirty-banana-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-dirty-Banana.svg"});break;case"old-banana":t="fruit-dirty-banana-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-old-Banana.svg"});break;case"cherry":t="fruit-cherry-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-Cherry.svg"});break;case"dirty-cherry":t="fruit-dirty-cherry-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-dirty-Cherry.svg"});break;case"old-cherry":t="fruit-dirty-cherry-"+this.fruits.length,this.fruits.push({id:t,url:"assets/Fruit-old-Cherry.svg"})}}},{key:"startFruitAnimation",value:function(e){var t=this,n=document.getElementById(e);e="#"+e;var r=this.conveyorBelt.nativeElement.offsetTop-n.offsetHeight,i=this.funnel.nativeElement.offsetTop,a=this.liquid.nativeElement.offsetLeft,o=gsap__WEBPACK_IMPORTED_MODULE_23__.a.timeline();this.fruitAnimationTimelines.push(o),o.to(e,0,{y:r}),o.to(e,{duration:3,x:a,ease:"none"}).call(function(){return t.soundService.playSmashFruitSound(t.isRunActive)}),o.to(e,{duration:1,y:i,ease:"bounce.out"}),o.to(e,{x:0,y:0,visibility:"hidden"}).call(function(){t.isRunActive&&t.animateLiquid(e)})}},{key:"animateLiquid",value:function(e){var t=this,n=this.liquid.nativeElement.contentDocument.getElementById("line"),r=this.bottle.nativeElement.contentDocument.getElementById("full"),i=this.bottle.nativeElement.contentDocument.getElementById("fill-rect"),a=this.board.nativeElement.offsetHeight/2,o=a-a/100*10;this.liquidAnimationTimeline.set(n,{stroke:this.getCurrentFruitColor(e)}),this.liquidAnimationTimeline.to(n,{duration:1,attr:{y2:o}},"-=0.8").call(function(){return t.soundService.playPouringLiquidSound(t.isRunActive)}),this.liquidAnimationTimeline.to(r,{duration:1,fill:this.getMixedFruitColor(e)},"-=0.5").call(function(){var e=t.bottle.nativeElement.contentDocument.getElementsByClassName("st2");Array.from(e).forEach(function(e){return e.style.fill=r.style.fill})}),this.liquidAnimationTimeline.to(i,{duration:1,attr:{height:this.calcCurrentBottleHeight()}},"-=0.5"),this.liquidAnimationTimeline.to(n,{duration:.5,attr:{y1:o}},"-=0.5"),this.liquidAnimationTimeline.set(n,{duration:0,attr:{y1:10,y2:10}})}},{key:"getMixedFruitColor",value:function(e){var t=this.getCurrentFruitColor(e),n="";return this.lastFruitColor?(n=this.colorMixerService.mix(t,this.lastFruitColor),this.lastFruitColor=n):this.lastFruitColor=t,n||t}},{key:"getCurrentFruitColor",value:function(e){return e.includes("dirty")?"#814f00":e.includes("old")?"#088A08":e.includes("apple")?"#F8C301":e.includes("banana")?"#FDD3A3":e.includes("cherry")?"#E83B57":void 0}},{key:"calcCurrentBottleHeight",value:function(){return this.currentBottleHeight=this.currentBottleHeight-100/this.currentExercise.expectedFruits.length,this.currentBottleHeight<0&&(this.currentBottleHeight=0),this.currentBottleHeight+"%"}},{key:"startConveyorBeltAnimation",value:function(){var e=this.conveyorBelt.nativeElement.contentDocument.querySelectorAll("[id^=wheel]");void 0===this.conveyorBeltAnimationTimeline?(this.conveyorBeltAnimationTimeline=gsap__WEBPACK_IMPORTED_MODULE_23__.a.timeline(),this.conveyorBeltAnimationTimeline.to(e,{duration:3,rotation:360,transformOrigin:"center",ease:"none",repeat:-1},0)):this.conveyorBeltAnimationTimeline.play(),this.soundService.playConveyorBeltSound()}},{key:"stopAllAnimations",value:function(){var e;null===(e=this.conveyorBeltAnimationTimeline)||void 0===e||e.pause(),this.liquidAnimationTimeline.progress(0,!0).clear(),this.fruitAnimationTimelines.forEach(function(e){return e.progress(0,!0).clear()}),this.fruitAnimationTimelines=[],this.soundService.stopAll()}},{key:"resetBottleHeight",value:function(){this.currentBottleHeight=100,this.bottle.nativeElement.contentDocument.getElementById("fill-rect").setAttribute("height","100%")}},{key:"nextExercise",value:function(e){this.resetCurrentState(),this.levelService.nextLevel(e),this.router.navigate([this.levelService.currentLevel.urlPath])}},{key:"previousExercise",value:function(){this.resetCurrentState(),this.levelService.previousLevel(),this.router.navigate([this.levelService.currentLevel.urlPath])}},{key:"goToExercise",value:function(e){this.resetCurrentState(),this.levelService.currentLevel=e,this.router.navigate([e.urlPath])}},{key:"cancel",value:function(){this.fruits=[],this.isRunActive=!1,this.lastFruitColor="",this.stopAllAnimations(),this.resetBottleHeight()}},{key:"resetCurrentState",value:function(){this.fruitsInPipe=[],this.fruits=[],this.isTooMuchFruits=!1,this.isNoFruitsIncoming=!1,this.isTooLittleFruits=!1,this.isNoActivateSubscribe=!1,this.isNextExerciseAvailable=!1,this.isErrorInConsole=!1,this.isRunActive=!1,this.lastFruitColor="",this.stopAllAnimations(),this.resetBottleHeight()}},{key:"changeSound",value:function(){var e=this.soundService.changeSound(this.isRunActive);this.localStorageService.saveSoundSettings(e),this.soundIconPath=e.imagePath}}]),GameComponent}();return GameComponent.\u0275fac=function(e){return new(e||GameComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_level_service__WEBPACK_IMPORTED_MODULE_28__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_ngx_translate_core__WEBPACK_IMPORTED_MODULE_29__.d),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_angular_router__WEBPACK_IMPORTED_MODULE_30__.b),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_exercise_service__WEBPACK_IMPORTED_MODULE_31__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_local_storage_service__WEBPACK_IMPORTED_MODULE_32__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_console_service__WEBPACK_IMPORTED_MODULE_33__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_cheating_detection_service__WEBPACK_IMPORTED_MODULE_34__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_confetti_service__WEBPACK_IMPORTED_MODULE_35__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_typescript_service__WEBPACK_IMPORTED_MODULE_36__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_color_mixer_service__WEBPACK_IMPORTED_MODULE_37__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_shared_sound_service__WEBPACK_IMPORTED_MODULE_38__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_24__.b),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_angular_common_http__WEBPACK_IMPORTED_MODULE_39__.a),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Lb(_angular_material_dialog__WEBPACK_IMPORTED_MODULE_40__.a))},GameComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Fb({type:GameComponent,selectors:[["app-game"]],viewQuery:function(e,t){var n;(1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.vc(_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_24__.a,1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.vc(_c0,3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.vc(_c1,3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.vc(_c2,3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.vc(_c3,3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.vc(_c4,3)),2&e)&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.gc(n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Xb())&&(t.editor=n.first),_angular_core__WEBPACK_IMPORTED_MODULE_27__.gc(n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Xb())&&(t.board=n.first),_angular_core__WEBPACK_IMPORTED_MODULE_27__.gc(n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Xb())&&(t.conveyorBelt=n.first),_angular_core__WEBPACK_IMPORTED_MODULE_27__.gc(n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Xb())&&(t.bottle=n.first),_angular_core__WEBPACK_IMPORTED_MODULE_27__.gc(n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Xb())&&(t.funnel=n.first),_angular_core__WEBPACK_IMPORTED_MODULE_27__.gc(n=_angular_core__WEBPACK_IMPORTED_MODULE_27__.Xb())&&(t.liquid=n.first))},decls:66,vars:39,consts:[["fxLayout","",3,"click"],["fxFlex","60%",1,"task"],["fxLayout","","fxLayoutAlign","space-between"],["fyLayout",""],["src","assets/Rx_Logo_S.png","alt","RxJS Logo",1,"logo"],[1,"title"],["id","level-counter"],[1,"arrow","left",3,"ngClass","click"],["id","level-indicator",3,"click"],["id","labelLevel"],[1,"caret"],[1,"arrow","right",3,"ngClass","click"],["id","levelsWrapper","class","tooltip",4,"ngIf"],[1,"instructions"],["fxLayout","",2,"height","50%"],["class","recipe",3,"ngClass",4,"ngIf"],[3,"options","ngModel","ngModelChange"],["fyLayout","","fxLayoutAlign","end"],["id","cancelButton",3,"click",4,"ngIf"],["id","startButton",3,"disabled","click",4,"ngIf"],["id","nextButton",3,"ngClass","disabled","click"],["fxLayout","row","fxLayoutAlign","center",1,"credits"],[3,"innerHTML"],["id","language"],[1,"toggle",3,"click"],["class","tooltip","style","display: block;",4,"ngIf"],[1,"small-button"],["routerLink","/privacy","target","_blank",1,"link"],["fxFlex","40%",1,"board"],["board",""],[1,"board__elements"],["alt","sound-icon",1,"sound-icon",3,"src","click"],[3,"id","src","appInit",4,"ngFor","ngForOf"],["id","conveyor-belt","data",_angular_core__WEBPACK_IMPORTED_MODULE_27__.uc(_templateObject||(_templateObject=_taggedTemplateLiteral(["assets/conveyor-belt.svg"]))),"type","image/svg+xml"],["conveyorbelt",""],["id","liquid","data",_angular_core__WEBPACK_IMPORTED_MODULE_27__.uc(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["assets/liquid.svg"]))),"type","image/svg+xml",1,"element","element--liquid"],["liquid",""],["id","funnel","data",_angular_core__WEBPACK_IMPORTED_MODULE_27__.uc(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["assets/funnel.svg"]))),"type","image/svg+xml",1,"element","element--funnel"],["funnel",""],["id","bottle","data",_angular_core__WEBPACK_IMPORTED_MODULE_27__.uc(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["assets/bottle.svg"]))),"type","image/svg+xml",1,"element","element--bottle"],["bottle",""],["class","element element--output",4,"ngIf"],["class","element element--cheating-detected","src","assets/images/anti-cheat/no-no.gif","alt","no cheating please",4,"ngIf"],["id","levelsWrapper",1,"tooltip"],["id","levels"],["class","level-marker",3,"ngClass","title","click",4,"ngFor","ngForOf"],["id","labelReset",3,"click"],[1,"level-marker",3,"ngClass","title","click"],[1,"recipe",3,"ngClass"],[4,"ngFor","ngForOf"],["id","isTooMuchFruits",4,"ngIf"],["id","isNoFruitsIncoming",4,"ngIf"],["id","isTooLittleFruits",4,"ngIf"],["id","isNoActivateSubscribe",4,"ngIf"],["id","isTooMuchFruits"],["id","isNoFruitsIncoming"],["id","isTooLittleFruits"],["id","isNoActivateSubscribe"],["id","cancelButton",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24","width","24","viewBox","0 0 24 24"],["id","path1","transform","rotate(0,12,12) translate(0,0) scale(0.75,0.75) ","fill","#FFF5F5","d","M9.9000245,6.000003L6.0000001,9.8999988 12.100037,16.000007 6.0000001,22.100002 9.9000245,25.999997 16,19.900018 22.100037,25.999997 26,22.100002 19.900024,16.000007 26,9.8999988 22.100037,6.000003 16,12.099997z M16,0C24.799988,0 32,7.2000005 32,16.000007 32,24.800016 24.799988,32.000001 16,32.000001 7.2000123,32.000001 8.3946347E-08,24.800016 0,16.000007 8.3946347E-08,7.2000005 7.2000123,0 16,0z"],["id","startButton",3,"disabled","click"],["transform","rotate(0,12,12) translate(0,0) scale(0.75,0.75)","fill","#FFF5F5","d","M12.5,9.2999878L22,16 12.5,22.700012z M16,3.1000061C8.9000244,3.1000061 3.1000061,8.8999939 3.1000061,16 3.1000061,23.100006 8.9000244,28.899994 16,28.899994 23.100037,28.899994 28.900024,23.100006 28.900024,16 28.900024,8.8999939 23.100037,3.1000061 16,3.1000061z M16,0C24.799988,0 32,7.2000122 32,16 32,24.799988 24.799988,32 16,32 7.2000122,32 0,24.799988 0,16 0,7.2000122 7.2000122,0 16,0z"],[1,"tooltip",2,"display","block"],["class","language-marker",3,"click",4,"ngFor","ngForOf"],[1,"language-marker",3,"click"],[3,"id","src","appInit"],[1,"element","element--output"],["src","assets/images/anti-cheat/no-no.gif","alt","no cheating please",1,"element","element--cheating-detected"]],template:function(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(0,"div",0),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return t.closeTooltipWrapper()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(1,"div",1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(2,"div",2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(3,"div",3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(4,"img",4),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(5,"h1",5),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(6,"RxJS-fruits"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(7,"div",6),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(8,"span",7),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return t.previousExercise()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(9,"\u25c0"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(10,"span",8),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return t.toggleLevelsWrapper()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(11,"span",9),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(12),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(13,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(14,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(15),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(16,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(17),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(18,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(19,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(20),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(21,"span",10),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(22,"\u25be"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(23,"span",11),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return t.nextExercise(!1)}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(24,"\u25b6"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(25,GameComponent_div_25_Template,6,4,"div",12),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(26,"router-outlet",13),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(27,"div",14),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(28,GameComponent_div_28_Template,13,14,"div",15),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(29,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(30,"uppercase"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(31,"ngx-monaco-editor",16),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("ngModelChange",function(e){return t.code=e}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(32,"div",17),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(33,GameComponent_button_33_Template,6,3,"button",18),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(34,GameComponent_button_34_Template,6,4,"button",19),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(35,"button",20),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return t.nextExercise(!0)}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(36),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(37,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(38,"div",21),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(39,"span",22),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(40,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(41,"span",23),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(42,"span",24),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return t.toggleLanguageOptions()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(43),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(44,"language"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(45,GameComponent_span_45_Template,2,1,"span",25),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(46,"span",26),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(47,"a",27),_angular_core__WEBPACK_IMPORTED_MODULE_27__.qc(48),_angular_core__WEBPACK_IMPORTED_MODULE_27__.bc(49,"translate"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(50,"div",28,29),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(52,"div",30),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Ob(53,"img",31),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Wb("click",function(){return t.changeSound()}),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(54,GameComponent_img_54_Template,1,2,"img",32),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(55,"object",33,34),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(57,"object",35,36),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(59,"object",37,38),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(61,"object",39,40),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(63,GameComponent_div_63_Template,3,3,"div",41),_angular_core__WEBPACK_IMPORTED_MODULE_27__.pc(64,GameComponent_img_64_Template,1,0,"img",42),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Nb(),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Mb(65,"app-cookie-banner")),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(8),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngClass",t.previousLevelStyle()),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(4),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(13,23,"APP.LEVEL")),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(t.levelService.currentLevel.number),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(18,25,"APP.LABELLEVEL")),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(t.levelService.levels.length),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngClass",t.nextLevelStyle()),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",t.isLevelsWrapperOpen),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(29,27,_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(30,29,"EXERCISES."+t.levelService.currentLevel.title+".RECIPEDESCRIPTION"))),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("options",t.editorOptions)("ngModel",t.code),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",t.isRunActive),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",!t.isRunActive),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngClass",t.buttonAnimationStyle())("disabled",!t.isNextExerciseAvailable),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(37,31,"APP.NEXTBUTTON")),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(40,33,"APP.CREDITS"),_angular_core__WEBPACK_IMPORTED_MODULE_27__.jc),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(4),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(44,35,t.translate.currentLang)),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(2),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",t.isLanguageOptionsOpen),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(3),_angular_core__WEBPACK_IMPORTED_MODULE_27__.rc(_angular_core__WEBPACK_IMPORTED_MODULE_27__.cc(49,37,"APP.PRIVACYBUTTON")),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(5),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("src",t.soundIconPath,_angular_core__WEBPACK_IMPORTED_MODULE_27__.kc),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngForOf",t.fruits),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(9),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",t.isErrorInConsole),_angular_core__WEBPACK_IMPORTED_MODULE_27__.Bb(1),_angular_core__WEBPACK_IMPORTED_MODULE_27__.fc("ngIf",t.isCheatingDetected))},directives:[_angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_41__.c,_angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_41__.a,_angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_41__.b,_angular_common__WEBPACK_IMPORTED_MODULE_42__.h,_angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_43__.a,_angular_common__WEBPACK_IMPORTED_MODULE_42__.j,_angular_router__WEBPACK_IMPORTED_MODULE_30__.e,_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_24__.a,_angular_forms__WEBPACK_IMPORTED_MODULE_44__.d,_angular_forms__WEBPACK_IMPORTED_MODULE_44__.e,_angular_router__WEBPACK_IMPORTED_MODULE_30__.c,_angular_common__WEBPACK_IMPORTED_MODULE_42__.i,_cookie_banner_cookie_banner_component__WEBPACK_IMPORTED_MODULE_45__.a,_shared_init_directive__WEBPACK_IMPORTED_MODULE_46__.a],pipes:[_ngx_translate_core__WEBPACK_IMPORTED_MODULE_29__.c,_angular_common__WEBPACK_IMPORTED_MODULE_42__.n,_shared_language_pipe__WEBPACK_IMPORTED_MODULE_47__.a],styles:['ngx-monaco-editor{width:70%;height:100%}.instructions{margin-left:40px;margin-right:10px}.task{z-index:1;background-color:#0b7c99;padding:2em}.board{background-color:#384b64;height:100vh;width:50vw;display:inline-block;position:relative;overflow:hidden}.board__elements{position:relative;height:100%;width:100%}.element{position:absolute;left:0;right:0;margin-left:auto;margin-right:auto}.element--bottle{bottom:0;height:10vw}.element--funnel{top:50%;height:8vw}.element--liquid{top:50%;height:50%}.element--output{background-color:#000;color:red;top:50%;padding:10px;margin-top:10px;border-radius:10px;width:50%;text-align:center}.element--cheating-detected{top:40%}img[src^="assets/Fruit"]{position:absolute;top:0;right:0;bottom:0;left:0}#conveyor-belt{width:60vw;height:5vw;left:-25vw;top:10vh;position:absolute}img[src="assets/Fruit-Apple.svg"],img[src="assets/Fruit-dirty-Apple.svg"],img[src="assets/Fruit-old-Apple.svg"]{width:10%}img[src="assets/Fruit-Cherry.svg"],img[src="assets/Fruit-dirty-Cherry.svg"],img[src="assets/Fruit-old-Cherry.svg"]{width:5%}img[src="assets/Fruit-Banana.svg"],img[src="assets/Fruit-dirty-Banana.svg"],img[src="assets/Fruit-old-Banana.svg"]{width:8%}.sound-icon{width:3%;margin:10px;cursor:pointer}.title{margin:.5rem 10px 0;font-size:30px;display:inline}.logo{width:20%;vertical-align:bottom}.nextButtonAnimation{-webkit-animation:tada 1s,pulse 2s 2s infinite;animation:tada 1s,pulse 2s 2s infinite}button{display:inline-block;padding:.4em 2em;margin-top:.5em;margin-left:.5em;background-color:#82267b;border:none;border-radius:4px;font-family:PT Sans,sans-serif;font-size:16px;line-height:24px;color:#fff;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}button:active{outline:none}button:not(.disabled):hover{background-color:#571a52}button[disabled]{opacity:.5}button svg{vertical-align:middle}#cancelButton{background-color:#8b0000}#cancelButton:hover{background-color:#610101}#level-counter{position:relative;display:inline-block;height:30px;margin-top:.5rem;font-size:15px;-webkit-user-select:none;-moz-user-select:none;user-select:none}#level-indicator,.arrow{float:left;height:30px;background-color:hsla(0,0%,100%,.2)}#level-indicator{display:inline-block;width:160px;line-height:30px;text-align:center;padding:.25em .4em 0;cursor:pointer}#level-indicator:hover,.arrow:not(.disabled):hover{background-color:hsla(0,0%,100%,.4)}#labelLevel{margin-left:5px}.caret{margin-left:2px}.arrow,.caret{display:inline-block}.arrow{font-family:Comic Sans MS;padding:.25em .4em 0;cursor:pointer}.arrow.left{border-right:1px solid hsla(0,0%,100%,.2);border-radius:4px 0 0 4px}.arrow.right{border-left:1px solid hsla(0,0%,100%,.2);border-radius:0 4px 4px 0}.arrow.left:not(.disabled):hover,.arrow.right:not(.disabled):hover{border-color:transparent}.arrow.disabled{opacity:.5}#levelsWrapper{top:34px;right:25px;max-width:160px;padding:1em .5em;margin-top:12px;z-index:80}#levelsWrapper:after{left:calc(50% - 12px)}.tooltip{position:absolute;display:inline-block;padding:0 1em 1em;background-color:#2c3e50;border-radius:4px;font-size:12px;line-height:1.5;z-index:60}.tooltip:after{content:"";position:absolute;top:-12px;left:12px;width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid #2c3e50}#levels{display:flex;flex-wrap:wrap;justify-content:center}#labelReset{margin-top:1em}#labelReset,.level-marker{text-align:center;cursor:pointer}.level-marker{display:inline-block;width:30px;height:30px;margin:2px;line-height:26px;background-color:hsla(0,0%,100%,.2);border:2px solid transparent;border-radius:50%}.level-marker.current,.level-marker:hover{border-color:hsla(0,0%,100%,.5)}.level-marker.solved{background-color:#228b24;background-color:#5da449}.recipe{padding:10px;margin-right:10px;border-radius:10px;font-size:14px;width:30%;overflow:auto}.recipe,code.help{background-color:hsla(0,0%,100%,.2)}code.help{padding:0 2px;font-family:Source Code Pro,monospace;font-weight:900;color:hsla(0,0%,100%,.8);white-space:nowrap;cursor:pointer;border-bottom:1px solid hsla(0,0%,100%,.7)}.codeTooltip{visibility:collapse;padding:1em .5em}a{color:hsla(0,0%,100%,.7)}a:hover{color:#fff}.credits{margin-top:3.5em;line-height:1.5em;text-align:center;font-size:12px;color:hsla(0,0%,100%,.4)}.credits-link,.credits-text{margin-left:5px}.credits-link{margin-right:5px}#language{position:relative;margin-left:10px}#language .toggle{display:inline-block;padding:1px 8px;background-color:hsla(0,0%,100%,.2);border-radius:3px;color:hsla(0,0%,100%,.7);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}#language .toggle:hover{background-color:hsla(0,0%,100%,.3)}#language .tooltip{display:none;bottom:30px;left:0;width:200px;padding:1em;z-index:80}#language .tooltip:after{top:auto;bottom:-12px;border:12px solid transparent;border-top-color:#2c3e50;border-bottom:none}#language .tooltip a{padding:0 2px;font-weight:900;color:hsla(0,0%,100%,.7);white-space:nowrap}#language .tooltip a:hover{color:#fff}.language-marker{width:30px;height:30px;margin:2px;line-height:26px;text-align:center;cursor:pointer}.language-marker.current,.language-marker:hover{color:#fff;text-decoration:underline}.small-button{display:inline-block;padding:1px 8px;background-color:hsla(0,0%,100%,.2);border-radius:3px;color:hsla(0,0%,100%,.7);cursor:pointer;margin-left:5px}.small-button>a{text-decoration:none}.small-button:hover{background-color:hsla(0,0%,100%,.3)}'],encapsulation:2}),Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)([Object(property_watch_decorator__WEBPACK_IMPORTED_MODULE_26__.OnChange)(function(e){this.isRunActive&&this.cancel(),e&&this.localStorageService.saveCode(this.levelService.currentLevel.title,e),this.isCheatingDetected=this.cheatingDetectionService.analyseCode(e)})],GameComponent.prototype,"code",void 0),GameComponent}()},jZKg:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("quSY");function a(e,t){return new r.a(function(n){var r=new i.a,a=0;return r.add(t.schedule(function(){a!==e.length?(n.next(e[a++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},jtHE:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n("XNiG"),i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get2(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get2(_getPrototypeOf(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?_get2(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,r):e.flush(this)}}]),n}(n("3N8a").a),a=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(n("IjjT").a))(i),o=n("quSY"),s=n("7o/Q"),c=n("WMd4"),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,n),(i=t.call(this,e)).scheduler=r,i.delay=a,i}return _createClass(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new l(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(c.a.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(c.a.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(c.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(s.a),l=function e(t,n){_classCallCheck(this,e),this.notification=t,this.destination=n},_=n("9ppp"),d=n("Ylt2"),f=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this)).scheduler=a,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=r<1?1:r,e._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _createClass(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}_get2(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new p(this._getNow(),e)),this._trimBufferThenGetEvents()),_get2(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,a=r.length;if(this.closed)throw new _.a;if(this.isStopped||this.hasError?t=o.a.EMPTY:(this.observers.push(e),t=new d.a(this,e)),i&&e.add(e=new u(e,i)),n)for(var s=0;st&&(a=Math.max(a,i-t)),a>0&&r.splice(0,a),r}}]),n}(r.a),p=function e(t,n){_classCallCheck(this,e),this.time=t,this.value=n}},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},kagm:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("7o/Q"),i=n("4I5i");function a(e){return function(t){return t.lift(new o(e))}}var o=function(){function e(t){if(_classCallCheck(this,e),this._skipCount=t,this._skipCount<0)throw new i.a}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(0===this._skipCount?new r.a(e):new s(e,this._skipCount))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e))._skipCount=r,i._count=0,i._ring=new Array(r),i}return _createClass(n,[{key:"_next",value:function(e){var t=this._skipCount,n=this._count++;if(n7&&console.image("".concat(window.location.origin,"/assets/images/exceptions/").concat(e,".gif"))}},{key:"showWelcomeMessage",value:function(){console.clear();var e="\n _____ _ _____ __ _ _ \n| __ \\ | |/ ____| / _| (_) | \n| |__) |__ __ | | (___ ______| |_ _ __ _ _ _| |_ ___ \n| _ / \\ \\/ / | |\\___ \\______| _| '__| | | | | __/ __|\n| | \\ \\ > < |__| |____) | | | | | | |_| | | |_\\__ \\\n|_| \\_\\/_/\\_\\____/|_____/ |_| |_| \\__,_|_|\\__|___/\n\nDebug your pipe with the tap-operator:\n\nfruits.pipe(\n tap(fruit => console.log('before: ' + fruit)),\n ...\n tap(fruit => console.log('after: ' + fruit))\n)\n ";console.info?console.info(e):console.log(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},mrSG:function(e,t,n){"use strict";function r(e,t,n,r){var i,a=arguments.length,o=a<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 s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}n.d(t,"a",function(){return r})},n6bG:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",function(){return r})},nOaX:function(e,t,n){"use strict";n.d(t,"a",function(){return pe});var r,i,a,o,s,c,u,l,_=n("pc+1"),d={},f=180/Math.PI,p=Math.PI/180,g=Math.atan2,m=/([A-Z])/g,h=/(?:left|right|width|margin|padding|x)/i,y=/[\s,\(]\S/,v={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},b=function(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},x=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},D=function(e,t){return t.set(t.t,t.p,e?Math.round(1e4*(t.s+t.c*e))/1e4+t.u:t.b,t)},C=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},S=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},k=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},E=function(e,t,n){return e.style[t]=n},T=function(e,t,n){return e.style.setProperty(t,n)},w=function(e,t,n){return e._gsap[t]=n},A=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},N=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},P=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},O="transform",F=O+"Origin",I=function(e,t){var n=i.createElementNS?i.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):i.createElement(e);return n.style?n:i.createElement(e)},M=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(m,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&e(t,R(n)||n,1)||""},L="O,Moz,ms,Ms,Webkit".split(","),R=function(e,t,n){var r=(t||s).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(L[i]+e in r););return i<0?null:(3===i?"ms":i>=0?L[i]:"")+e},B=function(){"undefined"!=typeof window&&window.document&&(r=window,a=(i=r.document).documentElement,s=I("div")||{style:{}},c=I("div"),O=R(O),F=O+"Origin",s.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",l=!!R("perspective"),o=1)},j=function e(t){var n,r=I("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,o=this.nextSibling,s=this.style.cssText;if(a.appendChild(r),r.appendChild(this),this.style.display="block",t)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=e}catch(c){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(o?i.insertBefore(this,o):i.appendChild(this)),a.removeChild(r),this.style.cssText=s,n},U=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},z=function(e){var t;try{t=e.getBBox()}catch(n){t=j.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===j||(t=j.call(e,!0)),!t||t.width||t.x||t.y?t:{x:+U(e,["x","cx","x1"])||0,y:+U(e,["y","cy","y1"])||0,width:0,height:0}},J=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!z(e))},V=function(e,t){if(t){var n=e.style;t in d&&t!==F&&(t=O),n.removeProperty?("ms"!==t.substr(0,2)&&"webkit"!==t.substr(0,6)||(t="-"+t),n.removeProperty(t.replace(m,"-$1").toLowerCase())):n.removeAttribute(t)}},W=function(e,t,n,r,i,a){var o=new _.b(e._pt,t,n,0,1,a?k:S);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},q={deg:1,rad:1,turn:1},K=function e(t,n,r,a){var o,c,u,l,f=parseFloat(r)||0,p=(r+"").trim().substr((f+"").length)||"px",g=s.style,m=h.test(n),y="svg"===t.tagName.toLowerCase(),v=(y?"client":"offset")+(m?"Width":"Height"),b="px"===a,x="%"===a;return a===p||!f||q[a]||q[p]?f:("px"!==p&&!b&&(f=e(t,n,r,"px")),l=t.getCTM&&J(t),!x&&"%"!==p||!d[n]&&!~n.indexOf("adius")?(g[m?"width":"height"]=100+(b?p:a),c=~n.indexOf("adius")||"em"===a&&t.appendChild&&!y?t:t.parentNode,l&&(c=(t.ownerSVGElement||{}).parentNode),c&&c!==i&&c.appendChild||(c=i.body),(u=c._gsap)&&x&&u.width&&m&&u.time===_.u.time?Object(_.s)(f/u.width*100):((x||"%"===p)&&(g.position=M(t,"position")),c===t&&(g.position="static"),c.appendChild(s),o=s[v],c.removeChild(s),g.position="absolute",m&&x&&((u=Object(_.g)(c)).time=_.u.time,u.width=c[v]),Object(_.s)(b?o*f/100:o&&f?100/o*f:0))):(o=l?t.getBBox()[m?"width":"height"]:t[v],Object(_.s)(x?f/o*100:f/100*o)))},H=function(e,t,n,r){var i;return o||B(),t in v&&"transform"!==t&&~(t=v[t]).indexOf(",")&&(t=t.split(",")[0]),d[t]&&"transform"!==t?(i=ie(e,r),i="transformOrigin"!==t?i[t]:ae(M(e,F))+" "+i.zOrigin+"px"):(!(i=e.style[t])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Y[t]&&Y[t](e,t,n)||M(e,t)||Object(_.h)(e,t)||("opacity"===t?1:0)),n&&!~(i+"").trim().indexOf(" ")?K(e,t,i,n)+n:i},G=function(e,t,n,r){if(!n||"none"===n){var i=R(t,e,1),a=i&&M(e,i,1);a&&a!==n?(t=i,n=a):"borderColor"===t&&(n=M(e,"borderTopColor"))}var o,s,c,u,l,d,f,p,g,m,h,y,v=new _.b(this._pt,e.style,t,0,1,_.q),b=0,x=0;if(v.b=n,v.e=r,n+="","auto"==(r+="")&&(e.style[t]=r,r=M(e,t)||r,e.style[t]=n),o=[n,r],Object(_.d)(o),r=o[1],c=(n=o[0]).match(_.n)||[],(r.match(_.n)||[]).length){for(;s=_.n.exec(r);)f=s[0],g=r.substring(b,s.index),l?l=(l+1)%5:"rgba("!==g.substr(-5)&&"hsla("!==g.substr(-5)||(l=1),f!==(d=c[x++]||"")&&(u=parseFloat(d)||0,h=d.substr((u+"").length),(y="="===f.charAt(1)?+(f.charAt(0)+"1"):0)&&(f=f.substr(2)),p=parseFloat(f),m=f.substr((p+"").length),b=_.n.lastIndex-m.length,m||(m=m||_.e.units[t]||h,b===r.length&&(r+=m,v.e+=m)),h!==m&&(u=K(e,t,d,m)||0),v._pt={_next:v._pt,p:g||1===x?g:",",s:u,c:y?y*p:p-u,m:l&&l<4||"zIndex"===t?Math.round:0});v.c=b-1;)d[n=o[i]]&&(r=1,n="transformOrigin"===n?F:O),V(a,n);r&&(V(a,O),s&&(s.svg&&a.removeAttribute("transform"),ie(a,1),s.uncache=1))}},Y={clearProps:function(e,t,n,r,i){if("isFromStart"!==i.data){var a=e._pt=new _.b(e._pt,t,n,0,0,X);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},Z=[1,0,0,1,0,0],$={},ee=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},te=function(e){var t=M(e,O);return ee(t)?Z:t.substr(7).match(_.m).map(_.s)},ne=function(e,t){var n,r,i,o,s=e._gsap||Object(_.g)(e),c=e.style,u=te(e);return s.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=e.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Z:u:(u!==Z||e.offsetParent||e===a||s.svg||(i=c.display,c.display="block",(n=e.parentNode)&&e.offsetParent||(o=1,r=e.nextSibling,a.appendChild(e)),u=te(e),i?c.display=i:V(e,"display"),o&&(r?n.insertBefore(e,r):n?n.appendChild(e):a.removeChild(e))),t&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},re=function(e,t,n,r,i,a){var o,s,c,u=e._gsap,l=i||ne(e,!0),_=u.xOrigin||0,d=u.yOrigin||0,f=u.xOffset||0,p=u.yOffset||0,g=l[0],m=l[1],h=l[2],y=l[3],v=l[4],b=l[5],x=t.split(" "),D=parseFloat(x[0])||0,C=parseFloat(x[1])||0;n?l!==Z&&(s=g*y-m*h)&&(c=D*(-m/s)+C*(g/s)-(g*b-m*v)/s,D=D*(y/s)+C*(-h/s)+(h*b-y*v)/s,C=c):(D=(o=z(e)).x+(~x[0].indexOf("%")?D/100*o.width:D),C=o.y+(~(x[1]||x[0]).indexOf("%")?C/100*o.height:C)),r||!1!==r&&u.smooth?(u.xOffset=f+((v=D-_)*g+(b=C-d)*h)-v,u.yOffset=p+(v*m+b*y)-b):u.xOffset=u.yOffset=0,u.xOrigin=D,u.yOrigin=C,u.smooth=!!r,u.origin=t,u.originIsAbsolute=!!n,e.style[F]="0px 0px",a&&(W(a,u,"xOrigin",_,D),W(a,u,"yOrigin",d,C),W(a,u,"xOffset",f,u.xOffset),W(a,u,"yOffset",p,u.yOffset)),e.setAttribute("data-svg-origin",D+" "+C)},ie=function(e,t){var n=e._gsap||new _.a(e);if("x"in n&&!t&&!n.uncache)return n;var r,i,a,o,s,c,u,d,m,h,y,v,b,x,D,C,S,k,E,T,w,A,N,P,I,L,R,B,j,U,z,V,W=e.style,q=n.scaleX<0,K=M(e,F)||"0";return r=i=a=c=u=d=m=h=y=0,o=s=1,n.svg=!(!e.getCTM||!J(e)),x=ne(e,n.svg),n.svg&&(P=!n.uncache&&e.getAttribute("data-svg-origin"),re(e,P||K,!!P||n.originIsAbsolute,!1!==n.smooth,x)),v=n.xOrigin||0,b=n.yOrigin||0,x!==Z&&(k=x[0],E=x[1],T=x[2],w=x[3],r=A=x[4],i=N=x[5],6===x.length?(o=Math.sqrt(k*k+E*E),s=Math.sqrt(w*w+T*T),c=k||E?g(E,k)*f:0,(m=T||w?g(T,w)*f+c:0)&&(s*=Math.cos(m*p)),n.svg&&(r-=v-(v*k+b*T),i-=b-(v*E+b*w))):(U=x[7],R=x[8],B=x[9],z=x[11],r=x[12],i=x[13],a=x[14],u=(D=g(V=x[6],j=x[10]))*f,D&&(P=A*(C=Math.cos(-D))+R*(S=Math.sin(-D)),I=N*C+B*S,L=V*C+j*S,R=A*-S+R*C,B=N*-S+B*C,j=V*-S+j*C,z=U*-S+z*C,A=P,N=I,V=L),d=(D=g(-T,j))*f,D&&(C=Math.cos(-D),z=w*(S=Math.sin(-D))+z*C,k=P=k*C-R*S,E=I=E*C-B*S,T=L=T*C-j*S),c=(D=g(E,k))*f,D&&(P=k*(C=Math.cos(D))+E*(S=Math.sin(D)),I=A*C+N*S,E=E*C-k*S,N=N*C-A*S,k=P,A=I),u&&Math.abs(u)+Math.abs(c)>359.9&&(u=c=0,d=180-d),o=Object(_.s)(Math.sqrt(k*k+E*E+T*T)),s=Object(_.s)(Math.sqrt(N*N+V*V)),D=g(A,N),m=Math.abs(D)>2e-4?D*f:0,y=z?1/(z<0?-z:z):0),n.svg&&(P=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!ee(M(e,O)),P&&e.setAttribute("transform",P))),Math.abs(m)>90&&Math.abs(m)<270&&(q?(o*=-1,m+=c<=0?180:-180,c+=c<=0?180:-180):(s*=-1,m+=m<=0?180:-180)),n.x=r-((n.xPercent=r&&(n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-r)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+"px",n.y=i-((n.yPercent=i&&(n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+"px",n.z=a+"px",n.scaleX=Object(_.s)(o),n.scaleY=Object(_.s)(s),n.rotation=Object(_.s)(c)+"deg",n.rotationX=Object(_.s)(u)+"deg",n.rotationY=Object(_.s)(d)+"deg",n.skewX=m+"deg",n.skewY=h+"deg",n.transformPerspective=y+"px",(n.zOrigin=parseFloat(K.split(" ")[2])||0)&&(W[F]=ae(K)),n.xOffset=n.yOffset=0,n.force3D=_.e.force3D,n.renderTransform=n.svg?ue:l?ce:se,n.uncache=0,n},ae=function(e){return(e=e.split(" "))[0]+" "+e[1]},oe=function(e,t,n){var r=Object(_.v)(t);return Object(_.s)(parseFloat(t)+parseFloat(K(e,"x",n+"px",r)))+r},se=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,ce(e,t)},ce=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,u=n.rotationY,l=n.rotationX,_=n.skewX,d=n.skewY,f=n.scaleX,g=n.scaleY,m=n.transformPerspective,h=n.force3D,y=n.target,v=n.zOrigin,b="",x="auto"===h&&e&&1!==e||!0===h;if(v&&("0deg"!==l||"0deg"!==u)){var D,C=parseFloat(u)*p,S=Math.sin(C),k=Math.cos(C);C=parseFloat(l)*p,D=Math.cos(C),a=oe(y,a,S*D*-v),o=oe(y,o,-Math.sin(C)*-v),s=oe(y,s,k*D*-v+v)}"0px"!==m&&(b+="perspective("+m+") "),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(x||"0px"!==a||"0px"!==o||"0px"!==s)&&(b+="0px"!==s||x?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+") "),"0deg"!==c&&(b+="rotate("+c+") "),"0deg"!==u&&(b+="rotateY("+u+") "),"0deg"!==l&&(b+="rotateX("+l+") "),"0deg"===_&&"0deg"===d||(b+="skew("+_+", "+d+") "),1===f&&1===g||(b+="scale("+f+", "+g+") "),y.style[O]=b||"translate(0, 0)"},ue=function(e,t){var n,r,i,a,o,s=t||this,c=s.xPercent,u=s.yPercent,l=s.x,d=s.y,f=s.rotation,g=s.skewX,m=s.skewY,h=s.scaleX,y=s.scaleY,v=s.target,b=s.xOrigin,x=s.yOrigin,D=s.xOffset,C=s.yOffset,S=s.forceCSS,k=parseFloat(l),E=parseFloat(d);f=parseFloat(f),g=parseFloat(g),(m=parseFloat(m))&&(g+=m=parseFloat(m),f+=m),f||g?(f*=p,g*=p,n=Math.cos(f)*h,r=Math.sin(f)*h,i=Math.sin(f-g)*-y,a=Math.cos(f-g)*y,g&&(m*=p,o=Math.tan(g-m),i*=o=Math.sqrt(1+o*o),a*=o,m&&(o=Math.tan(m),n*=o=Math.sqrt(1+o*o),r*=o)),n=Object(_.s)(n),r=Object(_.s)(r),i=Object(_.s)(i),a=Object(_.s)(a)):(n=h,a=y,r=i=0),(k&&!~(l+"").indexOf("px")||E&&!~(d+"").indexOf("px"))&&(k=K(v,"x",l,"px"),E=K(v,"y",d,"px")),(b||x||D||C)&&(k=Object(_.s)(k+b-(b*n+x*i)+D),E=Object(_.s)(E+x-(b*r+x*a)+C)),(c||u)&&(o=v.getBBox(),k=Object(_.s)(k+c/100*o.width),E=Object(_.s)(E+u/100*o.height)),v.setAttribute("transform",o="matrix("+n+","+r+","+i+","+a+","+k+","+E+")"),S&&(v.style[O]=o)},le=function(e,t,n,r,i,a){var o,s,c=Object(_.j)(i),u=parseFloat(i)*(c&&~i.indexOf("rad")?f:1),l=a?u*a:u-r,d=r+l+"deg";return c&&("short"===(o=i.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===o&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===o&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=s=new _.b(e._pt,t,n,r,l,x),s.e=d,s.u="deg",e._props.push(n),s},_e=function(e,t,n){var r,a,o,s,u,l,f,p=c.style,g=n._gsap;for(a in p.cssText=getComputedStyle(n).cssText+";position:absolute;display:block;",p[O]=t,i.body.appendChild(c),r=ie(c,1),d)(o=g[a])!==(s=r[a])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(a)<0&&(u=Object(_.v)(o)!==(f=Object(_.v)(s))?K(n,a,o,f):parseFloat(o),l=parseFloat(s),e._pt=new _.b(e._pt,g,a,u,l-u,b),e._pt.u=f||0,e._props.push(a));i.body.removeChild(c)};Object(_.f)("padding,margin,Width,Radius",function(e,t){var n="Top",r="Right",i="Bottom",a="Left",o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:"border"+n+e});Y[t>1?"border"+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return H(e,t,n)}),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(r+"").split(" "),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var de,fe,pe={name:"css",register:B,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a,s,c,u,l,f,p,g,m,h,x,S,k,E,T,w,A,N,P,F=this._props,I=e.style,M=n.vars.startAt;for(p in o||B(),t)if("autoRound"!==p&&(s=t[p],!_.o[p]||!Object(_.c)(p,t,n,r,e,i)))if(f=Y[p],"function"==(l=typeof s)&&(l=typeof(s=s.call(n,r,e,i))),"string"===l&&~s.indexOf("random(")&&(s=Object(_.r)(s)),f)f(this,e,p,s,n)&&(T=1);else if("--"===p.substr(0,2))a=(getComputedStyle(e).getPropertyValue(p)+"").trim(),s+="",g=Object(_.v)(a),(m=Object(_.v)(s))?g!==m&&(a=K(e,p,a,m)+m):g&&(s+=g),this.add(I,"setProperty",a,s,r,i,0,0,p);else if("undefined"!==l){if(M&&p in M?(a="function"==typeof M[p]?M[p].call(n,r,e,i):M[p],p in _.e.units&&!Object(_.v)(a)&&(a+=_.e.units[p]),"="===(a+"").charAt(1)&&(a=H(e,p))):a=H(e,p),u=parseFloat(a),(h="string"===l&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),c=parseFloat(s),p in v&&("autoAlpha"===p&&(1===u&&"hidden"===H(e,"visibility")&&c&&(u=0),W(this,I,"visibility",u?"inherit":"hidden",c?"inherit":"hidden",!c)),"scale"!==p&&"transform"!==p&&~(p=v[p]).indexOf(",")&&(p=p.split(",")[0])),x=p in d)if(S||((k=e._gsap).renderTransform&&!t.parseTransform||ie(e,t.parseTransform),E=!1!==t.smoothOrigin&&k.smooth,(S=this._pt=new _.b(this._pt,I,O,0,1,k.renderTransform,k,0,-1)).dep=1),"scale"===p)this._pt=new _.b(this._pt,k,"scaleY",k.scaleY,h?h*c:c-k.scaleY),F.push("scaleY",p),p+="X";else{if("transformOrigin"===p){A=void 0,N=void 0,P=void 0,P=(A=(w=s).split(" "))[1]||"50%","top"!==(N=A[0])&&"bottom"!==N&&"left"!==P&&"right"!==P||(w=N,N=P,P=w),A[0]=Q[N]||N,A[1]=Q[P]||P,s=A.join(" "),k.svg?re(e,s,0,E,0,this):((m=parseFloat(s.split(" ")[2])||0)!==k.zOrigin&&W(this,k,"zOrigin",k.zOrigin,m),W(this,I,p,ae(a),ae(s)));continue}if("svgOrigin"===p){re(e,s,1,E,0,this);continue}if(p in $){le(this,k,p,u,s,h);continue}if("smoothOrigin"===p){W(this,k,"smooth",k.smooth,s);continue}if("force3D"===p){k[p]=s;continue}if("transform"===p){_e(this,s,e);continue}}else p in I||(p=R(p)||p);if(x||(c||0===c)&&(u||0===u)&&!y.test(s)&&p in I)c||(c=0),(g=(a+"").substr((u+"").length))!==(m=Object(_.v)(s)||(p in _.e.units?_.e.units[p]:g))&&(u=K(e,p,a,m)),this._pt=new _.b(this._pt,x?k:I,p,u,h?h*c:c-u,x||"px"!==m&&"zIndex"!==p||!1===t.autoRound?b:C),this._pt.u=m||0,g!==m&&(this._pt.b=a,this._pt.r=D);else if(p in I)G.call(this,e,p,a,s);else{if(!(p in e)){Object(_.l)(p,s);continue}this.add(e,p,e[p],s,r,i)}F.push(p)}T&&Object(_.t)(this)},get:H,aliases:v,getSetter:function(e,t,n){var r=v[t];return r&&r.indexOf(",")<0&&(t=r),t in d&&t!==F&&(e._gsap.x||H(e,"x"))?n&&u===n?"scale"===t?A:w:(u=n||{})&&("scale"===t?N:P):e.style&&!Object(_.k)(e.style[t])?E:~t.indexOf("-")?T:Object(_.i)(e,t)},core:{_removeProperty:V,_getMatrix:ne}};_.w.utils.checkPrefix=R,de="rotation,rotationX,rotationY,skewX,skewY",fe=Object(_.f)("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+de+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){d[e]=1}),Object(_.f)(de,function(e){_.e.units[e]="deg",$[e]=1}),v[fe[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+de,Object(_.f)("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");v[t[1]]=fe[t[0]]}),Object(_.f)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){_.e.units[e]="px"}),_.w.registerPlugin(pe)},ngJS:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return function(t){for(var n=0,r=e.length;n4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=[],c=[],u=-1,l=null;if(r.forEach(function(e){var n=e.offset,r=n==u,_=r&&l||{};Object.keys(e).forEach(function(n){var r=n,c=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,s),c){case a.l:c=i[n];break;case a.a:c=o[n];break;default:c=t.normalizeStyleValue(n,r,c,s)}_[r]=c}),r||c.push(_),l=_,u=n}),s.length){var _="\n - ";throw new Error("Unable to animate due to the following errors:".concat(_).concat(s.join(_)))}return c}function u(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&l(n,"start",e))});break;case"done":e.onDone(function(){return r(n&&l(n,"done",e))});break;case"destroy":e.onDestroy(function(){return r(n&&l(n,"destroy",e))})}}function l(e,t,n){var r=n.totalTime,i=_(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),a=e._data;return null!=a&&(i._data=a),i}function _(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:a,disabled:!!o}}function d(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function f(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var p=function(e,t){return!1},g=function(e,t){return!1},m=function(e,t,n){return[]},h=o();(h||"undefined"!=typeof Element)&&(p=function(e,t){return e.contains(t)},g=function(){if(h||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:g}(),m=function(e,t,n){var r=[];if(n)for(var i=e.querySelectorAll(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var r in e)n[r]=e[r];else P(e,n);return n}function F(e,t,n){return n?t+":"+n+";":""}function I(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var a=i[1],o=i[2],s=i[3];t.push(X(a,s)),"<"!=o[0]||"*"==a&&"*"==s||t.push(X(s,a))}(e,i,r)}):i.push(n),i),animation:a,queryCount:t.queryCount,depCount:t.depCount,options:ne(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return K(n,e,t)}),options:ne(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,r=t.currentTime,i=0,a=e.steps.map(function(e){t.currentTime=r;var a=K(n,e,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:3,steps:a,options:ne(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return re(N(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=re(0,0,"");return i.dynamic=!0,i.strValue=r,i}return re((n=n||N(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:Object(a.h)({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,s=!1;if(!o){s=!0;var c={};r.easing&&(c.easing=r.easing),o=Object(a.h)(c)}t.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,t);u.isEmptyStep=s,n=u}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==a.a?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(te(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var a in t)if(t[a].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,a=t.currentTime;r&&a>0&&(a-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var o,s,c,u,l,_=t.collectedStyles[t.currentQuerySelector],d=_[r],f=!0;d&&(a!=i&&a>=d.startTime&&i<=d.endTime&&(t.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(i,'ms"')),f=!1),a=d.startTime),f&&(_[r]={startTime:a,endTime:i}),t.options&&(o=e[r],s=t.options,c=t.errors,u=s.params||{},(l=j(o)).length&&l.forEach(function(e){u.hasOwnProperty(e)||c.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,a=[],o=!1,s=!1,c=0,u=e.steps.map(function(e){var r=n._makeStyleAst(e,t),u=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(te(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(te(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),l=0;return null!=u&&(i++,l=r.offset=u),s=s||l<0||l>1,o=o||l0&&i0?i==d?1:_*i:a[i],s=o*g;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=o,r.styles.push(e)}),r}},{key:"visitReference",value:function(e,t){return{type:8,animation:K(this,R(e.animation),t),options:ne(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:ne(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ne(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Y,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),a=i[0],o=i[1];t.currentQuerySelector=n.length?n+" "+a:a,d(t.collectedStyles,t.currentQuerySelector,{});var s=K(this,R(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:s,originalSelector:e.selector,options:ne(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:N(e.timings,t.errors,!0);return{type:12,animation:K(this,R(e.animation),t),timings:n,options:null}}}]),e}(),ee=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function te(e){return!Array.isArray(e)&&"object"==typeof e}function ne(e){var t;return e?(e=P(e)).params&&(e.params=(t=e.params)?P(t):null):e={},e}function re(e,t,n){return{duration:e,delay:t,easing:n}}function ie(e,t,n,r,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:a,totalTime:i+a,easing:o,subTimeline:s}}var ae=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,r=this._map.get(e);r||this._map.set(e,r=[]),(n=r).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),oe=new RegExp(":enter","g"),se=new RegExp(":leave","g");function ce(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new ue).buildKeyframes(e,t,n,r,i,a,o,s,c,u)}var ue=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,r,i,a,o,s,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new ae;var l=new _e(e,t,c,r,i,u,[]);l.options=s,l.currentTimeline.setStyles([a],null,l.errors,s),K(this,n,l);var _=l.timelines.filter(function(e){return e.containsAnimation()});if(_.length&&Object.keys(o).length){var d=_[_.length-1];d.allowOnlyTimelineStyles()||d.setStyles([o],null,l.errors,s)}return _.length?_.map(function(e){return e.buildKeyframes()}):[ie(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,r,r.options);i!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?w(n.duration):null,a=null!=n.delay?w(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,a);r=Math.max(r,n.duration+n.delay)}),r}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),K(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,r=t.subContextCount,i=t,a=e.options;if(a&&(a.params||a.delay)&&((i=t.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=le);var o=w(a.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(function(e){return K(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,a=e.options&&e.options.delay?w(e.options.delay):0;e.steps.forEach(function(o){var s=t.createSubContext(e.options);a&&s.delayNextStep(a),K(n,o,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return N(t.params?U(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(function(e){a.forwardTime((e.offset||0)*i),a.setStyles(e.styles,e.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+i),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},a=i.delay?w(i.delay):0;a&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=le);var o=r,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=s.length;var c=null;s.forEach(function(r,i){t.currentQueryIndex=i;var s=t.createSubContext(e.options,r);a&&s.delayNextStep(a),r===t.element&&(c=s.currentTimeline),K(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,a=Math.abs(i.duration),o=a*(t.currentQueryTotal-1),s=a*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var c=t.currentTimeline;s&&c.delayNextStep(s);var u=c.currentTime;K(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}]),e}(),le={},_e=function(){function e(t,n,r,i,a,o,s,c){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=le,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new de(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=w(r.duration)),null!=r.delay&&(i.delay=w(r.delay));var a=r.params;if(a){var o=i.params;o||(o=this.options.params={}),Object.keys(a).forEach(function(e){t&&o.hasOwnProperty(e)||(o[e]=U(a[e],o,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,a=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(t),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=le,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new fe(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,r,i,a){var o=[];if(r&&o.push(this.element),e.length>0){e=(e=e.replace(oe,"."+this._enterClassName)).replace(se,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),o.push.apply(o,_toConsumableArray(s))}return i||0!=o.length||a.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),o}}]),e}(),de=function(){function e(t,n,r,i){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||a.a,t._currentKeyframe[e]=a.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},s=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=a.a}):O(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=U(s[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:a.a),i._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,s){var c=O(o,!0);Object.keys(c).forEach(function(e){var r=c[e];r==a.l?t.add(e):r==a.a&&n.add(e)}),r||(c.offset=s/e.duration),i.push(c)});var o=t.size?z(t.values()):[],s=n.size?z(n.values()):[];if(r){var c=i[0],u=P(c);c.offset=0,u.offset=1,i=[c,u]}return ie(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}}]),e}(),fe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a,o,s){var c,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(c=t.call(this,e,r,s.delay)).element=r,c.keyframes=i,c.preStyleProps=a,c.postStyleProps=o,c._stretchStartingKeyframe=u,c.timings={duration:s.duration,delay:s.delay,easing:s.easing},c}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var a=[],o=r+n,s=n/o,c=O(e[0],!1);c.offset=0,a.push(c);var u=O(e[0],!1);u.offset=pe(s),a.push(u);for(var l=e.length-1,_=1;_<=l;_++){var d=O(e[_],!1);d.offset=pe((n+d.offset*r)/o),a.push(d)}r=o,n=0,i="",e=a}return ie(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(de);function pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var ge,me,he=function e(){_classCallCheck(this,e)},ye=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return V(e)}},{key:"normalizeStyleValue",value:function(e,t,n,r){var i="",a=n.toString().trim();if(ve[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&r.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return a+i}}]),n}(he),ve=(ge="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),me={},ge.forEach(function(e){return me[e]=!0}),me);function be(e,t,n,r,i,a,o,s,c,u,l,_,d){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:a,toState:r,toStyles:o,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:_,errors:d}}var xe={},De=function(){function e(t,n,r){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=r}return _createClass(e,[{key:"match",value:function(e,t,n,r){return function(e,t,n,r,i){return e.some(function(e){return e(t,n,r,i)})}(this.ast.matchers,e,t,n,r)}},{key:"buildStyles",value:function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],a=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):a}},{key:"build",value:function(e,t,n,r,i,a,o,s,c,u){var l=[],_=this.ast.options&&this.ast.options.params||xe,f=this.buildStyles(n,o&&o.params||xe,l),p=s&&s.params||xe,g=this.buildStyles(r,p,l),m=new Set,h=new Map,y=new Map,v="void"===r,b={params:Object.assign(Object.assign({},_),p)},x=u?[]:ce(e,t,this.ast.animation,i,a,f,g,b,c,l),D=0;if(x.forEach(function(e){D=Math.max(e.duration+e.delay,D)}),l.length)return be(t,this._triggerName,n,r,v,f,g,[],[],h,y,D,l);x.forEach(function(e){var n=e.element,r=d(h,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=d(y,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&m.add(n)});var C=z(m.values());return be(t,this._triggerName,n,r,v,f,g,x,C,h,y,D)}}]),e}(),Ce=function(){function e(t,n){_classCallCheck(this,e),this.styles=t,this.defaultParams=n}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n={},r=P(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var a=i[e];a.length>1&&(a=U(a,r,t)),n[e]=a})}}),n}}]),e}(),Se=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){r.states[e.name]=new Ce(e.style,e.options&&e.options.params||{})}),ke(this.states,"true","1"),ke(this.states,"false","0"),n.transitions.forEach(function(e){r.transitionFactories.push(new De(t,e,r.states))}),this.fallbackTransition=new De(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,r){return this.transitionFactories.find(function(i){return i.match(e,t,n,r)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function ke(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Ee=new ae,Te=function(){function e(t,n,r){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],r=Z(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=r}},{key:"_buildPlayer",value:function(e,t,n){var r=e.element,i=c(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],c=this._animations[e],u=new Map;if(c?(n=ce(this._driver,t,c,"ng-enter","ng-leave",{},{},i,Ee,o)).forEach(function(e){var t=d(u,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));u.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,a.a)})});var l=s(n.map(function(e){var t=u.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(function(){return r.destroy(e)}),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,r){var i=_(t,"","","");return u(this._getPlayer(e),n,i,r),function(){}}},{key:"command",value:function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])}}]),e}(),we=[],Ae={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ne={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Pe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var r,i=t&&t.hasOwnProperty("value");if(this.value=null!=(r=i?t.value:t)?r:null,i){var a=P(t);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Oe=new Pe("void"),Fe=function(){function e(t,n,r){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ue(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,r){var i,a=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var o=d(this._elementListeners,e,[]),s={name:t,phase:n,callback:r};o.push(s);var c=d(this._engine.statesByElement,e,{});return c.hasOwnProperty(t)||(Ue(e,"ng-trigger"),Ue(e,"ng-trigger-"+t),c[t]=Oe),function(){a._engine.afterFlush(function(){var e=o.indexOf(s);e>=0&&o.splice(e,1),a._triggers[t]||delete c[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(t),o=new Me(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Ue(e,"ng-trigger"),Ue(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var c=s[t],u=new Pe(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s[t]=u,c||(c=Oe),"void"===u.value||c.value!==u.value){var l=d(this._engine.playersByElement,e,[]);l.forEach(function(e){e.namespaceId==r.id&&e.triggerName==t&&e.queued&&e.destroy()});var _=a.matchTransition(c.value,u.value,e,u.params),f=!1;if(!_){if(!i)return;_=a.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:_,fromState:c,toState:u,player:o,isFallbackTransition:f}),f||(Ue(e,"ng-animate-queued"),o.onStart(function(){ze(e,"ng-animate-queued")})),o.onDone(function(){var t=r.players.indexOf(o);t>=0&&r.players.splice(t,1);var n=r._engine.playersByElement.get(e);if(n){var i=n.indexOf(o);i>=0&&n.splice(i,1)}}),this.players.push(o),l.push(o),o}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(a,1)}if(e){var o=this._fetchNamespace(e);o&&o.insertNode(t,n)}r&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ue(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ze(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,r){if(Le(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var a=this.namespacesByHostElement.get(t);a&&a.id!==e&&a.removeNode(t,r)}}else this._onRemovalComplete(t,r)}},{key:"markElementAsRemoved",value:function(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,r,i){return Le(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}}},{key:"_buildInstruction",value:function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return s(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Ae,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;A--)this._namespaceList[A].drainQueuedTransitions(t).forEach(function(e){var t=e.player,a=e.element;if(T.push(t),n.collectedEnterElements.length){var o=a.__ng_removed;if(o&&o.setForMove)return void t.destroy()}var s=!p||!n.driver.containsElement(p,a),f=k.get(a),g=h.get(a),m=n._buildInstruction(e,r,g,f,s);if(m.errors&&m.errors.length)w.push(m);else{if(s)return t.onStart(function(){return L(a,m.fromStyles)}),t.onDestroy(function(){return M(a,m.toStyles)}),void i.push(t);if(e.isFallbackTransition)return t.onStart(function(){return L(a,m.fromStyles)}),t.onDestroy(function(){return M(a,m.toStyles)}),void i.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(a,m.timelines),c.push({instruction:m,player:t,element:a}),m.queriedElements.forEach(function(e){return d(u,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=l.get(t);r||l.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=_.get(t);r||_.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}});if(w.length){var N=[];w.forEach(function(e){N.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return N.push("- ".concat(e,"\n"))})}),T.forEach(function(e){return e.destroy()}),this.reportError(N)}var P=new Map,O=new Map;c.forEach(function(e){var t=e.element;r.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,P))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){d(P,t,[]).push(e),e.destroy()})});var F=v.filter(function(e){return We(e,l,_)}),I=new Map;Be(I,this.driver,x,_,a.a).forEach(function(e){We(e,l,_)&&F.push(e)});var R=new Map;m.forEach(function(e,t){Be(R,n.driver,new Set(e),l,a.l)}),F.forEach(function(e){var t=I.get(e),n=R.get(e);I.set(e,Object.assign(Object.assign({},t),n))});var B=[],j=[],U={};c.forEach(function(e){var t=e.element,a=e.player,c=e.instruction;if(r.has(t)){if(f.has(t))return a.onDestroy(function(){return M(t,c.toStyles)}),a.disabled=!0,a.overrideTotalTime(c.totalTime),void i.push(a);var u=U;if(O.size>1){for(var l=t,_=[];l=l.parentNode;){var d=O.get(l);if(d){u=d;break}_.push(l)}_.forEach(function(e){return O.set(e,u)})}var p=n._buildAnimation(a.namespaceId,c,P,o,R,I);if(a.setRealPlayer(p),u===U)B.push(a);else{var g=n.playersByElement.get(u);g&&g.length&&(a.parentPlayer=s(g)),i.push(a)}}else L(t,c.fromStyles),a.onDestroy(function(){return M(t,c.toStyles)}),j.push(a),f.has(t)&&i.push(a)}),j.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=s(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var z=0;z0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new a.d(e.duration,e.delay)}}]),e}(),Me=function(){function e(t,n,r){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new a.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return u(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){d(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Le(e){return e&&1===e.nodeType}function Re(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Be(e,t,n,r,i){var a=[];n.forEach(function(e){return a.push(Re(e))});var o=[];r.forEach(function(n,r){var a={};n.forEach(function(e){var n=a[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r.__ng_removed=Ne,o.push(r))}),e.set(r,a)});var s=0;return n.forEach(function(e){return Re(e,a[s++])}),o}function je(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;function a(e){if(!e)return 1;var t=i.get(e);if(t)return t;var o=e.parentNode;return t=n.has(o)?o:r.has(o)?1:a(o),i.set(e,t),t}return t.forEach(function(e){var t=a(e);1!==t&&n.get(t).push(e)}),n}function Ue(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function ze(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function Je(e,t,n){s(n).onDone(function(){return e.processLeaveNode(t)})}function Ve(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function Ke(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=Ge(t[0]),t.length>1&&(r=Ge(t[t.length-1]))):t&&(n=Ge(t)),n||r?new He(e,n,r):null}var He=function(){var e=function(){function e(t,n,r){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&M(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(M(this._element,this._initialStyles),this._endStyles&&(M(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(L(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(L(this._element,this._endStyles),this._endStyles=null),M(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Ge(e){for(var t=null,n=Object.keys(e),r=0;r=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),et(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=nt(e,"").split(","),(r=$e(n,t))>=0&&(n.splice(r,1),tt(e,"",n.join(","))))}}]),e}();function Ye(e,t,n){tt(e,"PlayState",n,Ze(e,t))}function Ze(e,t){var n=nt(e,"");return n.indexOf(",")>0?$e(n.split(","),t):$e([n],t)}function $e(e,t){for(var n=0;n=0)return n;return-1}function et(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function tt(e,t,n,r){var i="animation"+t;if(null!=r){var a=e.style[i];if(a.length){var o=a.split(",");o[r]=n,n=o.join(",")}}e.style[i]=n}function nt(e,t){return e.style["animation"+t]||""}var rt=function(){function e(t,n,r,i,a,o,s,c){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=a,this._finalStyles=s,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+a,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Xe(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:H(e.element,r))})}this.currentSnapshot=t}}]),e}(),it=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).element=e,i._startingStyles={},i.__initialized=!1,i._styles=S(r),i}return _createClass(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),_get2(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),_get2(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,_get2(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(a.d),at=function(){function e(){_classCallCheck(this,e),this._count=0,this._head=document.querySelector("head")}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return b(e)}},{key:"matchesElement",value:function(e,t){return x(e,t)}},{key:"containsElement",value:function(e,t){return D(e,t)}},{key:"query",value:function(e,t,n){return C(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return S(e)});var r="@keyframes ".concat(t," {\n"),i="";n.forEach(function(e){i=" ";var t=parseFloat(e.offset);r+="".concat(i).concat(100*t,"% {\n"),i+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(t,": ").concat(n,";\n"))}}),r+="".concat(i,"}\n")}),r+="}\n";var a=document.createElement("style");return a.textContent=r,a}},{key:"animate",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=a.filter(function(e){return e instanceof rt}),s={};W(n,r)&&o.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var c=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=q(e,t,s));if(0==n)return new it(e,c);var u="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(l);var _=Ke(e,t),d=new rt(e,t,u,n,r,i,c,_);return d.onDestroy(function(){var e;(e=l).parentNode.removeChild(e)}),d}}]),e}(),ot=function(){function e(t,n,r,i){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:H(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),st=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ct().toString()),this._cssKeyframesDriver=new at}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return b(e)}},{key:"matchesElement",value:function(e,t){return x(e,t)}},{key:"containsElement",value:function(e,t){return D(e,t)}},{key:"query",value:function(e,t,n){return C(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,a);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var c={},u=a.filter(function(e){return e instanceof ot});W(n,r)&&u.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return c[e]=t[e]})});var l=Ke(e,t=q(e,t=t.map(function(e){return O(e,!1)}),c));return new ot(e,t,s,l)}}]),e}();function ct(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ut,lt=n("SVse"),_t=((ut=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this))._nextAnimationId=0,a._renderer=e.createRenderer(i.body,{id:"0",encapsulation:r.R.None,styles:[],data:{animation:[]}}),a}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Object(a.f)(e):e;return pt(this._renderer,null,t,"register",[n]),new dt(t,this._renderer)}}]),n}(a.b)).\u0275fac=function(e){return new(e||ut)(r.Sb(r.G),r.Sb(lt.c))},ut.\u0275prov=r.Hb({token:ut,factory:ut.\u0275fac}),ut),dt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._id=e,i._renderer=r,i}return _createClass(n,[{key:"create",value:function(e,t){return new ft(this._id,e,t||{},this._renderer)}}]),n}(a.c),ft=function(){function e(t,n,r,i){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,r){this.delegate.setStyle(e,t,n,r)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),bt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;return _classCallCheck(this,n),(o=t.call(this,r,i,a)).factory=e,o.namespaceId=r,o}return _createClass(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var r,i,a=this;if("@"==t.charAt(0)){var o,s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),c=t.substr(1),u="";return"@"!=c.charAt(0)&&(i=(r=c).indexOf("."),c=(o=_slicedToArray([r.substring(0,i),r.substr(i+1)],2))[0],u=o[1]),this.engine.listen(this.namespaceId,s,c,u,function(e){a.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(vt),xt=((mt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){return _classCallCheck(this,n),t.call(this,e.body,r,i)}return n}(qe)).\u0275fac=function(e){return new(e||mt)(r.Sb(lt.c),r.Sb(T),r.Sb(he))},mt.\u0275prov=r.Hb({token:mt,factory:mt.\u0275fac}),mt),Dt=new r.r("AnimationModuleType"),Ct=[{provide:T,useFactory:function(){return"function"==typeof ct()?new st:new at}},{provide:Dt,useValue:"BrowserAnimations"},{provide:a.b,useClass:_t},{provide:he,useFactory:function(){return new ye}},{provide:qe,useClass:xt},{provide:r.G,useFactory:function(e,t,n){return new yt(e,t,n)},deps:[i.d,qe,r.A]}],St=((ht=function e(){_classCallCheck(this,e)}).\u0275mod=r.Jb({type:ht}),ht.\u0275inj=r.Ib({factory:function(e){return new(e||ht)},providers:Ct,imports:[i.a]}),ht)},pLZG:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.predicate,this.thisArg))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).predicate=r,a.thisArg=i,a.count=0,a}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(r.a)},"pc+1":function(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}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",function(){return zt}),n.d(t,"b",function(){return fn}),n.d(t,"w",function(){return hn}),n.d(t,"v",function(){return it}),n.d(t,"h",function(){return De}),n.d(t,"m",function(){return $}),n.d(t,"n",function(){return ee}),n.d(t,"j",function(){return J}),n.d(t,"k",function(){return q}),n.d(t,"q",function(){return sn}),n.d(t,"p",function(){return ne}),n.d(t,"f",function(){return Ce}),n.d(t,"t",function(){return dn}),n.d(t,"d",function(){return Tt}),n.d(t,"r",function(){return pt}),n.d(t,"c",function(){return Ht}),n.d(t,"o",function(){return ge}),n.d(t,"u",function(){return wt}),n.d(t,"e",function(){return F}),n.d(t,"s",function(){return Se}),n.d(t,"l",function(){return ce}),n.d(t,"i",function(){return rn}),n.d(t,"g",function(){return xe});var a,o,s,c,u,l,_,d,f,p,g,m,h,y,v,b,x,D,C,S,k,E,T,w,A,N,P,O,F={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},I={duration:.5,overwrite:!1,delay:0},M=1e8,L=2*Math.PI,R=L/4,B=0,j=Math.sqrt,U=Math.cos,z=Math.sin,J=function(e){return"string"==typeof e},V=function(e){return"function"==typeof e},W=function(e){return"number"==typeof e},q=function(e){return void 0===e},K=function(e){return"object"==typeof e},H=function(e){return!1!==e},G=function(){return"undefined"!=typeof window},Q=function(e){return V(e)||J(e)},X="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Y=Array.isArray,Z=/(?:-?\.?\d|\.)+/gi,$=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ee=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,te=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ne=/[+-]=-?[.\d]+/,re=/[#\-+.]*\b[a-z\d-=+%.]+/gi,ie=/[\d.+\-=]+(?:e[-+]\d*)*/i,ae={},oe={},se=function(e){return(oe=Fe(e,ae))&&hn},ce=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},ue=function(e,t){return!t&&console.warn(e)},le=function(e,t){return e&&(ae[e]=t)&&oe&&(oe[e]=t)||ae},_e=function(){return 0},de={},fe=[],pe={},ge={},me={},he=30,ye=[],ve="",be=function(e){var t,n,r=e[0];if(K(r)||V(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(n=ye.length;n--&&!ye[n].targetTest(r););t=ye[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new zt(e[n],t)))||e.splice(n,1);return e},xe=function(e){return e._gsap||be(st(e))[0]._gsap},De=function(e,t,n){return(n=e[t])&&V(n)?e[t]():q(n)&&e.getAttribute&&e.getAttribute(t)||n},Ce=function(e,t){return(e=e.split(",")).forEach(t)||e},Se=function(e){return Math.round(1e5*e)/1e5||0},ke=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++re._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Ue=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},ze=function e(t){return!t||t._ts&&e(t.parent)},Je=function(e){return e._repeat?Ve(e._tTime,e=e.duration()+e._rDelay)*e:0},Ve=function(e,t){var n=Math.floor(e/=t);return e&&n===e?n-1:n},We=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},qe=function(e){return e._end=Se(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},Ke=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=Se(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),qe(e),n._dirty||je(n,e)),e},He=function(e,t){var n;if((t._time||t._initted&&!t._dur)&&(n=We(e.rawTime(),t),(!t._dur||rt(0,t.totalDuration(),n)-t._tTime>1e-8)&&t.render(n,!0)),je(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-1e-8}},Ge=function(e,t,n,r){return t.parent&&Be(t),t._start=Se(n+t._delay),t._end=Se(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),function(e,t,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,o=e[r];if(i)for(a=t[i];o&&o[i]>a;)o=o._prev;o?(t._next=o._next,o._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e}(e,t,"_first","_last",e._sort?"_start":0),e._recent=t,r||He(e,t),e},Qe=function(e,t){return(ae.ScrollTrigger||ce("scrollTrigger",t))&&ae.ScrollTrigger.create(t,e)},Xe=function(e,t,n,r){return Gt(e,t),e._initted?!n&&e._pt&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&_!==wt.frame?(fe.push(e),e._lazy=[t,r],1):void 0:1},Ye=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},Ze=function(e,t,n,r){var i=e._repeat,a=Se(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:Se(a*(i+1)+e._rDelay*i):a,o&&!r?Ke(e,e._tTime=e._tDur*o):e.parent&&qe(e),n||je(e.parent,e),e},$e=function(e){return e instanceof Vt?je(e):Ze(e,e._dur)},et={_start:0,endTime:_e},tt=function e(t,n){var r,i,a=t.labels,o=t._recent||et,s=t.duration()>=M?o.endTime(!1):t._dur;return J(n)&&(isNaN(n)||n in a)?"<"===(r=n.charAt(0))||">"===r?("<"===r?o._start:o.endTime(o._repeat>=0))+(parseFloat(n.substr(1))||0):(r=n.indexOf("="))<0?(n in a||(a[n]=s),a[n]):(i=+(n.charAt(r-1)+n.substr(r+1)),r>1?e(t,n.substr(0,r-1))+i:s+i):null==n?s:+n},nt=function(e,t){return e||0===e?t(e):t},rt=function(e,t,n){return nt?t:n},it=function(e){if("string"!=typeof e)return"";var t=ie.exec(e);return t?e.substr(t.index+t[0].length):""},at=[].slice,ot=function(e,t){return e&&K(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&K(e[0]))&&!e.nodeType&&e!==s},st=function e(t,n){return!J(t)||n||!c&&At()?Y(t)?function(t,n,r){return void 0===r&&(r=[]),t.forEach(function(t){var i;return J(t)&&!n||ot(t,1)?(i=r).push.apply(i,e(t)):r.push(t)})||r}(t,n):ot(t)?at.call(t,0):t?[t]:[]:at.call(u.querySelectorAll(t),0)},ct=function(e){return e.sort(function(){return.5-Math.random()})},ut=function(e){if(V(e))return e;var t=K(e)?e:{each:e},n=Lt(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,u=r,l=r;return J(r)?u=l={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(u=r[0],l=r[1]),function(e,o,_){var d,f,p,g,m,h,y,v,b,x=(_||t).length,D=a[x];if(!D){if(!(b="auto"===t.grid?0:(t.grid||[1,M])[1])){for(y=-M;y<(y=_[b++].getBoundingClientRect().left)&&by&&(y=m),mx?x-1:c?"y"===c?x/b:b:Math.max(b,x/b))||0)*("edges"===r?-1:1),D.b=x<0?i-x:i,D.u=it(t.amount||t.each)||0,n=n&&x<0?It(n):n}return x=(D[e]-D.min)/D.max||0,Se(D.b+(n?n(x):x)*D.v)+D.u}},lt=function(e){var t=e<1?Math.pow(10,(e+"").length-2):1;return function(n){var r=Math.round(parseFloat(n)/e)*e*t;return(r-r%1)/t+(W(n)?0:it(n))}},_t=function(e,t){var n,r,i=Y(e);return!i&&K(e)&&(n=i=e.radius||M,e.values?(e=st(e.values),(r=!W(e[0]))&&(n*=n)):e=lt(e.increment)),nt(t,i?V(e)?function(t){return r=e(t),Math.abs(r-t)<=n?r:t}:function(t){for(var i,a,o=parseFloat(r?t.x:t),s=parseFloat(r?t.y:0),c=M,u=0,l=e.length;l--;)(i=r?(i=e[l].x-o)*i+(a=e[l].y-s)*a:Math.abs(e[l]-o))(i=Math.abs(i))&&(a=r,s=i);return a},ht=function(e,t,n){var r,i,a=e.vars,o=a[t];if(o)return r=a[t+"Params"],i=a.callbackScope||e,n&&fe.length&&Te(),r?o.apply(i,r):o.call(i)},yt=function(e){return Be(e),e.progress()<1&&ht(e,"onInterrupt"),e},vt=function(e){var t=(e=!e.name&&e.default||e).name,n=V(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:_e,render:cn,add:Kt,kill:ln,modifier:un,rawVars:0},a={targetTest:0,get:0,getSetter:rn,aliases:{},register:0};if(At(),e!==r){if(ge[t])return;Pe(r,Pe(Me(e,i),a)),Fe(r.prototype,Fe(i,Me(e,a))),ge[r.prop=t]=r,e.targetTest&&(ye.push(r),de[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}le(t,r),e.register&&e.register(hn,r,fn)},bt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},xt=function(e,t,n){return 255*(6*(e=e<0?e+1:e>1?e-1:e)<1?t+(n-t)*e*6:e<.5?n:3*e<2?t+(n-t)*(2/3-e)*6:t)+.5|0},Dt=function(e,t,n){var r,i,a,o,s,c,u,l,_,d,f=e?W(e)?[e>>16,e>>8&255,255&e]:0:bt.black;if(!f){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),bt[e])f=bt[e];else if("#"===e.charAt(0)){if(e.length<6&&(r=e.charAt(1),i=e.charAt(2),a=e.charAt(3),e="#"+r+r+i+i+a+a+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(f=parseInt(e.substr(1,6),16))>>16,f>>8&255,255&f,parseInt(e.substr(7),16)/255];f=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]}else if("hsl"===e.substr(0,3))if(f=d=e.match(Z),t){if(~e.indexOf("="))return f=e.match($),n&&f.length<4&&(f[3]=1),f}else o=+f[0]%360/360,s=+f[1]/100,r=2*(c=+f[2]/100)-(i=c<=.5?c*(s+1):c+s-c*s),f.length>3&&(f[3]*=1),f[0]=xt(o+1/3,r,i),f[1]=xt(o,r,i),f[2]=xt(o-1/3,r,i);else f=e.match(Z)||bt.transparent;f=f.map(Number)}return t&&!d&&(r=f[0]/255,i=f[1]/255,a=f[2]/255,c=((u=Math.max(r,i,a))+(l=Math.min(r,i,a)))/2,u===l?o=s=0:(_=u-l,s=c>.5?_/(2-u-l):_/(u+l),o=u===r?(i-a)/_+(ix&&(C+=o-D),((n=(i=(S+=o)-C)-E)>0||s)&&(a=++h.frame,y=i-1e3*h.time,h.time=i/=1e3,E+=n+(n>=k?4:k-n),r=1),s||(p=g(e)),r)for(v=0;v=t&&v--},_listeners:T=[]}),At=function(){return!f&&wt.wake()},Nt={},Pt=/^[\d.\-M][\d.\-,\s]/,Ot=/["']/g,Ft=function(e){for(var t,n,r,i={},a=e.substr(1,e.length-3).split(":"),o=a[0],s=1,c=a.length;s1&&o.config?o.config.apply(null,~e.indexOf("{")?[Ft(a[1])]:(t=e,n=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",n),t.substring(n,~i&&i=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/L*(Math.asin(1/i)||0),s=function(e){return 1===e?1:i*Math.pow(2,-10*e)*z((e-o)*a)+1},c="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:Bt(s);return a=L/a,c.config=function(n,r){return e(t,n,r)},c},Ut=function e(t,n){void 0===n&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i="out"===t?r:"in"===t?function(e){return 1-r(1-e)}:Bt(r);return i.config=function(n){return e(t,n)},i};Ce("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var n=t<5?t+1:t;Rt(e+",Power"+(n-1),t?function(e){return Math.pow(e,n)}:function(e){return e},function(e){return 1-Math.pow(1-e,n)},function(e){return e<.5?Math.pow(2*e,n)/2:1-Math.pow(2*(1-e),n)/2})}),Nt.Linear.easeNone=Nt.none=Nt.Linear.easeIn,Rt("Elastic",jt("in"),jt("out"),jt()),A=7.5625,P=1/(N=2.75),Rt("Bounce",function(e){return 1-O(1-e)},O=function(e){return e0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Ze(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(At(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Ke(this,e),!n._dp||n.parent||He(n,this);n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&Ge(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&1e-8===Math.abs(this._zTime)||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),we(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Je(this))%this._dur||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+Je(this),t):this.duration()?Math.min(1,this._time/this._dur):this.ratio},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?Ve(this._tTime,n)+1:1},t.timeScale=function(e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var t=this.parent&&this._ts?We(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,Ue(this.totalTime(rt(-this._delay,this._tDur,t),!0))},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(At(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=1e-8)&&1e-8!==Math.abs(this._zTime)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=e;var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Ge(t,this,e-this._delay),this}return this._start},t.endTime=function(e){return this._start+(H(e)?this.totalDuration():this.duration())/Math.abs(this._ts)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?We(t.rawTime(e),this):this._tTime:this._tTime},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(t._ts||1),t=t._dp;return n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,$e(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){return arguments.length?(this._rDelay=e,$e(this)):this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(tt(this,e),H(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,H(t))},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,n=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=n&&e1?(t?(r[e]=t,n&&(r[e+"Params"]=n),"onUpdate"===e&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this;return new Promise(function(n){var r=V(e)?e:Ne,i=function(){var e=t.then;t.then=null,V(r)&&(r=r(t))&&(r.then||r===t)&&(t.then=e),n(r),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?i():t._prom=i})},t.kill=function(){yt(this)},e}();Pe(Jt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Vt=function(e){function t(t,n){var i;return void 0===t&&(t={}),(i=e.call(this,t,n)||this).labels={},i.smoothChildTiming=!!t.smoothChildTiming,i.autoRemoveChildren=!!t.autoRemoveChildren,i._sort=H(t.sortChildren),i.parent&&He(i.parent,r(i)),t.scrollTrigger&&Qe(r(i),t.scrollTrigger),i}i(t,e);var n=t.prototype;return n.to=function(e,t,n){return new Zt(e,Ee(arguments,0,this),tt(this,W(t)?arguments[3]:n)),this},n.from=function(e,t,n){return new Zt(e,Ee(arguments,1,this),tt(this,W(t)?arguments[3]:n)),this},n.fromTo=function(e,t,n,r){return new Zt(e,Ee(arguments,2,this),tt(this,W(t)?arguments[4]:r)),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Le(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Zt(e,t,tt(this,n),1),this},n.call=function(e,t,n){return Ge(this,Zt.delayedCall(0,e,t),tt(this,n))},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new Zt(e,n,tt(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Le(n).immediateRender=H(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Le(r).immediateRender=H(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r,i,a,s,c,u,l,_,d,f,p,g,m=this._time,h=this._dirty?this.totalDuration():this._tDur,y=this._dur,v=this!==o&&e>h-1e-8&&e>=0?h:e<1e-8?0:e,b=this._zTime<0!=e<0&&(this._initted||!y);if(v!==this._tTime||n||b){if(m!==this._time&&y&&(v+=this._time-m,e+=this._time-m),r=v,d=this._start,u=!(_=this._ts),b&&(y||(m=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(p=this._yoyo,c=y+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*c+e,t,n);if(r=Se(v%c),v===h?(s=this._repeat,r=y):((s=~~(v/c))&&s===v/c&&(r=y,s--),r>y&&(r=y)),f=Ve(this._tTime,c),!m&&this._tTime&&f!==s&&(f=s),p&&1&s&&(r=y-r,g=1),s!==f&&!this._lock){var x=p&&1&f,D=x===(p&&1&s);if(st)for(r=e._first;r&&r._start<=n;){if(!r._dur&&"isPause"===r.data&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(!r._dur&&"isPause"===r.data&&r._start=0)&&!t&&ht(this,"onStart"),r>=m&&e>=0)for(i=this._first;i;){if(a=i._next,(i._act||r>=i._start)&&i._ts&&l!==i){if(i.parent!==this)return this.render(e,t,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,t,n),r!==this._time||!this._ts&&!u){l=0,a&&(v+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var C=e<0?e:r;i;){if(a=i._prev,(i._act||C<=i._end)&&i._ts&&l!==i){if(i.parent!==this)return this.render(e,t,n);if(i.render(i._ts>0?(C-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(C-i._start)*i._ts,t,n),r!==this._time||!this._ts&&!u){l=0,a&&(v+=this._zTime=C?-1e-8:1e-8);break}}i=a}}if(l&&!t&&(this.pause(),l.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=d,qe(this),this.render(e,t,n);this._onUpdate&&!t&&ht(this,"onUpdate",!0),(v===h&&h>=this.totalDuration()||!v&&m)&&(d!==this._start&&Math.abs(_)===Math.abs(this._ts)||this._lock||((e||!y)&&(v===h&&this._ts>0||!v&&this._ts<0)&&Be(this,1),t||e<0&&!m||!v&&!m||(ht(this,v===h?"onComplete":"onReverseComplete",!0),this._prom&&!(v0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(W(t)||(t=tt(this,t)),!(e instanceof Jt)){if(Y(e))return e.forEach(function(e){return n.add(e,t)}),this;if(J(e))return this.addLabel(e,t);if(!V(e))return this;e=Zt.delayedCall(0,e)}return this!==e?Ge(this,e,t):this},n.getChildren=function(e,t,n,r){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=-M);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Zt?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return J(e)?this.removeLabel(e):V(e)?this.killTweensOf(e):(Re(this,e),e===this._recent&&(this._recent=this._last),je(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Se(wt.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=tt(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Zt.delayedCall(0,t||_e,n);return r.data="isPause",this._hasPause=1,Ge(this,r,tt(this,e))},n.removePause=function(e){var t=this._first;for(e=tt(this,e);t;)t._start===e&&"isPause"===t.data&&Be(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Wt!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n,r=[],i=st(e),a=this._first,o=W(t);a;)a instanceof Zt?ke(a._targets,i)&&(o?(!Wt||a._initted&&a._ts)&&a.globalTime(0)<=t&&a.globalTime(a.totalDuration())>t:!t||a.isActive())&&r.push(a):(n=a.getTweensOf(i,t)).length&&r.push.apply(r,n),a=a._next;return r},n.tweenTo=function(e,t){t=t||{};var n=this,r=tt(n,e),i=t.startAt,a=t.onStart,o=t.onStartParams,s=t.immediateRender,c=Zt.to(n,Pe({ease:"none",lazy:!1,immediateRender:!1,time:r,overwrite:"auto",duration:t.duration||Math.abs((r-(i&&"time"in i?i.time:n._time))/n.timeScale())||1e-8,onStart:function(){n.pause();var e=t.duration||Math.abs((r-n._time)/n.timeScale());c._dur!==e&&Ze(c,e,0,1).render(c._time,!0,!0),a&&a.apply(c,o||[])}},t));return s?c.render(0):c},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,Pe({startAt:{time:tt(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return void 0===e&&(e=this._time),mt(this,tt(this,e))},n.previousLabel=function(e){return void 0===e&&(e=this._time),mt(this,tt(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},n.shiftChildren=function(e,t,n){void 0===n&&(n=0);for(var r,i=this._first,a=this.labels;i;)i._start>=n&&(i._start+=e,i._end+=e),i=i._next;if(t)for(r in a)a[r]>=n&&(a[r]+=e);return je(this)},n.invalidate=function(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return e.prototype.invalidate.call(this)},n.clear=function(e){void 0===e&&(e=!0);for(var t,n=this._first;n;)t=n._next,this.remove(n),n=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),je(this)},n.totalDuration=function(e){var t,n,r,i=0,a=this,s=a._last,c=M;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-e:e));if(a._dirty){for(r=a.parent;s;)t=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>c&&a._sort&&s._ts&&!a._lock?(a._lock=1,Ge(a,s,n-s._delay,1)._lock=0):c=n,n<0&&s._ts&&(i-=n,(!r&&!a._dp||r&&r.smoothChildTiming)&&(a._start+=n/a._ts,a._time-=n,a._tTime-=n),a.shiftChildren(-n,!1,-1/0),c=0),s._end>i&&s._ts&&(i=s._end),s=t;Ze(a,a===o&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},t.updateRoot=function(e){if(o._ts&&(we(o,We(e,o)),_=wt.frame),wt.frame>=he){he+=F.autoSleep||120;var t=o._first;if((!t||!t._ts)&&F.autoSleep&&wt._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||wt.sleep()}}},t}(Jt);Pe(Vt.prototype,{_lock:0,_hasPause:0,_forcing:0});var Wt,qt=function(e,t,n,r,i,a,o){var s,c,u,l,_,d,f,p,g=new fn(this._pt,e,t,0,1,sn,null,i),m=0,h=0;for(g.b=n,g.e=r,n+="",(f=~(r+="").indexOf("random("))&&(r=pt(r)),a&&(a(p=[n,r],e,t),n=p[0],r=p[1]),c=n.match(te)||[];s=te.exec(r);)l=s[0],_=r.substring(m,s.index),u?u=(u+1)%5:"rgba("===_.substr(-5)&&(u=1),l!==c[h++]&&(d=parseFloat(c[h-1])||0,g._pt={_next:g._pt,p:_||1===h?_:",",s:d,c:"="===l.charAt(1)?parseFloat(l.substr(2))*("-"===l.charAt(0)?-1:1):parseFloat(l)-d,m:u&&u<4?Math.round:0},m=te.lastIndex);return g.c=m0)w||(t._startAt=0);else if(A&&!(n<0&&N))return void(n&&(t._zTime=n))}else if(E&&A)if(N)!w&&(t._startAt=0);else if(n&&(x=!1),s=Pe({overwrite:!1,data:"isFromStart",lazy:x&&H(D),immediateRender:x,stagger:0,parent:O},r),m&&(s[d.prop]=m),Be(t._startAt=Zt.set(P,s)),x){if(!n)return}else e(t._startAt,1e-8);for(t._pt=0,D=A&&H(D)||D&&!A,i=0;i")});else{if(d=w.length,g=x?ut(x):_e,K(x))for(f in x)~Xt.indexOf(f)&&(m||(m={}),m[f]=x[f]);for(l=0;lf-1e-8&&e>=0?f:e<1e-8?0:e;if(p){if(g!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=e<0){if(r=g,l=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*o+e,t,n);if(r=Se(g%o),g===f?(a=this._repeat,r=p):((a=~~(g/o))&&a===g/o&&(r=p,a--),r>p&&(r=p)),(c=this._yoyo&&1&a)&&(_=this._yEase,r=p-r),s=Ve(this._tTime,o),r===d&&!n&&this._initted)return this;a!==s&&(l&&this._yEase&&Mt(l,c),!this.vars.repeatRefresh||c||this._lock||(this._lock=n=1,this.render(Se(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(Xe(this,e<0?e:r,n,t))return this._tTime=0,this;if(p!==this._dur)return this.render(e,t,n)}for(this._tTime=g,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=u=(_||this._ease)(r/p),this._from&&(this.ratio=u=1-u),r&&!d&&!t&&ht(this,"onStart"),i=this._pt;i;)i.r(u,i.d),i=i._next;l&&l.render(e<0?e:!r&&c?-1e-8:l._dur*u,t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(e<0&&this._startAt&&this._startAt.render(e,!0,n),ht(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!t&&this.parent&&ht(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(e<0&&this._startAt&&!this._onUpdate&&this._startAt.render(e,!0,!0),(e||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Be(this,1),t||e<0&&!d||!g&&!d||(ht(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g0)&&this._prom()))}}else!function(e,t,n,r){var i,a,o,s=e.ratio,c=t<0||!t&&(!e._start&&Ye(e)||(e._ts<0||e._dp._ts<0)&&"isFromStart"!==e.data&&"isStart"!==e.data)?0:1,u=e._rDelay,l=0;if(u&&e._repeat&&(l=rt(0,e._tDur,t),a=Ve(l,u),o=Ve(e._tTime,u),e._yoyo&&1&a&&(c=1-c),a!==o&&(s=1-c,e.vars.repeatRefresh&&e._initted&&e.invalidate())),c!==s||r||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&Xe(e,t,r,n))return;for(o=e._zTime,e._zTime=t||(n?1e-8:0),n||(n=t&&!o),e.ratio=c,e._from&&(c=1-c),e._time=0,e._tTime=l,n||ht(e,"onStart"),i=e._pt;i;)i.r(c,i.d),i=i._next;e._startAt&&t<0&&e._startAt.render(t,!0,!0),e._onUpdate&&!n&&ht(e,"onUpdate"),l&&e._repeat&&!n&&e.parent&&ht(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===c&&(c&&Be(e,1),n||(ht(e,c?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)}(this,e,t,n);return this},n.targets=function(){return this._targets},n.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),e.prototype.invalidate.call(this)},n.kill=function(e,t){if(void 0===t&&(t="all"),!(e||t&&"all"!==t))return this._lazy=this._pt=0,this.parent?yt(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Wt&&!0!==Wt.vars.overwrite)._first||yt(this),this.parent&&n!==this.timeline.totalDuration()&&Ze(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,o,s,c,u,l=this._targets,_=e?st(e):l,d=this._ptLookup,f=this._pt;if((!t||"all"===t)&&function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0}(l,_))return"all"===t&&(this._pt=0),yt(this);for(r=this._op=this._op||[],"all"!==t&&(J(t)&&(s={},Ce(t,function(e){return s[e]=1}),t=s),t=function(e,t){var n,r,i,a,o=e[0]?xe(e[0]).harness:0,s=o&&o.aliases;if(!s)return t;for(r in n=Fe({},t),s)if(r in n)for(i=(a=s[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(l,t)),u=l.length;u--;)if(~_.indexOf(l[u]))for(s in i=d[u],"all"===t?(r[u]=t,o=i,a={}):(a=r[u]=r[u]||{},o=t),o)(c=i&&i[s])&&("kill"in c.d&&!0!==c.d.kill(s)||Re(this,c,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&f&&yt(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,n){return new t(e,Ee(arguments,1))},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,n,r){return new t(e,Ee(arguments,2))},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return o.killTweensOf(e,t,n)},t}(Jt);Pe(Zt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ce("staggerTo,staggerFrom,staggerFromTo",function(e){Zt[e]=function(){var t=new Vt,n=at.call(arguments,0);return n.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,n)}});var $t=function(e,t,n){return e[t]=n},en=function(e,t,n){return e[t](n)},tn=function(e,t,n,r){return e[t](r.fp,n)},nn=function(e,t,n){return e.setAttribute(t,n)},rn=function(e,t){return V(e[t])?en:q(e[t])&&e.setAttribute?nn:$t},an=function(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4,t)},on=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},sn=function(e,t){var n=t._pt,r="";if(!e&&t.b)r=t.b;else if(1===e&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round(1e4*(n.s+n.c*e))/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},cn=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},un=function(e,t,n,r){for(var i,a=this._pt;a;)i=a._next,a.p===r&&a.modifier(e,t,n),a=i},ln=function(e){for(var t,n,r=this._pt;r;)n=r._next,r.p===e&&!r.op||r.op===e?Re(this,r,"_pt"):r.dep||(t=1),r=n;return!t},_n=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},dn=function(e){for(var t,n,r,i,a=e._pt;a;){for(t=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:i)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:i=a,a=t}e._pt=r},fn=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||an,this.d=o||this,this.set=s||$t,this.pr=c||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=_n,this.m=e,this.mt=n,this.tween=t},e}();Ce(ve+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return de[e]=1}),ae.TweenMax=ae.TweenLite=Zt,ae.TimelineLite=ae.TimelineMax=Vt,o=new Vt({sortChildren:!1,defaults:I,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),F.stringFilter=Tt;var pn={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),n=0;n1){var r=e.map(function(e){return hn.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}var a=ge[t],o=xe(e=e[0]||{}),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;d._pt=0,r.init(e,n?t+n:t,d,0,[e]),r.render(1,r),d._pt&&cn(1,d)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},isTweening:function(e){return o.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Lt(e.ease,I.ease)),Ie(I,e||{})},config:function(e){return Ie(F,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.defaults,i=e.extendTimeline;(e.plugins||"").split(",").forEach(function(e){return e&&!ge[e]&&!ae[e]&&ue(t+" effect requires "+e+" plugin.")}),me[t]=function(e,t,i){return n(st(e),Pe(t||{},r),i)},i&&(Vt.prototype[t]=function(e,n,r){return this.add(me[t](e,K(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){Nt[e]=Lt(t)},parseEase:function(e,t){return arguments.length?Lt(e,t):Nt},getById:function(e){return o.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var n,r,i=new Vt(e);for(i.smoothChildTiming=H(e.smoothChildTiming),o.remove(i),i._dp=0,i._time=i._tTime=o._time,n=o._first;n;)r=n._next,!t&&!n._dur&&n instanceof Zt&&n.vars.onComplete===n._targets[0]||Ge(i,n,n._start-n._delay),n=r;return Ge(o,i,0),i},utils:{wrap:function e(t,n,r){var i=n-t;return Y(t)?ft(t,e(0,t.length),n):nt(r,function(e){return(i+(e-t)%i)%i+t})},wrapYoyo:function e(t,n,r){var i=n-t,a=2*i;return Y(t)?ft(t,e(0,t.length-1),n):nt(r,function(e){return t+((e=(a+(e-t)%a)%a||0)>i?a-e:e)})},distribute:ut,random:dt,snap:_t,normalize:function(e,t,n){return gt(e,t,0,1,n)},getUnit:it,clamp:function(e,t,n){return nt(n,function(n){return rt(e,t,n)})},splitColor:Dt,toArray:st,mapRange:gt,pipe:function(){for(var e=arguments.length,t=new Array(e),n=0;ne?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return p(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return p(e.value)||y.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return p(t.value)||!g(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(p(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(b);return 0==t.length?null:function(e){return D(C(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(b);return 0==t.length?null:function(e){var n=C(e,t).map(x);return Object(a.a)(n).pipe(Object(s.a)(D))}}}]),e}();function b(e){return null!=e}function x(e){var t=Object(r.sb)(e)?Object(o.a)(e):e;return Object(r.rb)(t),t}function D(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function C(e,t){return t.map(function(t){return t(e)})}function S(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function k(e){return null!=e?v.compose(S(e)):null}function E(e){return null!=e?v.composeAsync(S(e)):null}function T(e,t){return null===e?[t]:Array.isArray(e)?[].concat(_toConsumableArray(e),[t]):[e,t]}var w=function(){var e=function(){function e(){_classCallCheck(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return _createClass(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=k(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=E(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Gb({type:e}),e}(),A=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(w);return e.\u0275fac=function(t){return N(t||e)},e.\u0275dir=r.Gb({type:e,features:[r.yb]}),e}(),N=r.Qb(A),P=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(w),O=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return n}(function(){function e(t){_classCallCheck(this,e),this._cd=t}return _createClass(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}());return e.\u0275fac=function(t){return new(t||e)(r.Lb(P,2))},e.\u0275dir=r.Gb({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&r.Db("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[r.yb]}),e}(),F={provide:c,useExisting:Object(r.U)(function(){return I}),multi:!0},I=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Lb(r.F),r.Lb(r.l))},e.\u0275dir=r.Gb({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&r.Wb("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[r.Ab([F])]}),e}(),M={provide:c,useExisting:Object(r.U)(function(){return R}),multi:!0},L=function(){var e=function(){function e(){_classCallCheck(this,e),this._accessors=[]}return _createClass(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Hb({token:e,factory:e.\u0275fac}),e}(),R=function(){var e=function(){function e(t,n,r,i){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return _createClass(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(P),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Lb(r.F),r.Lb(r.l),r.Lb(L),r.Lb(r.s))},e.\u0275dir=r.Gb({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&r.Wb("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r.Ab([M])]}),e}(),B={provide:c,useExisting:Object(r.U)(function(){return j}),multi:!0},j=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Lb(r.F),r.Lb(r.l))},e.\u0275dir=r.Gb({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&r.Wb("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[r.Ab([B])]}),e}(),U={provide:c,useExisting:Object(r.U)(function(){return z}),multi:!0},z=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return _createClass(e,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,a=0;a-1&&e.splice(n,1)}function G(e){return(Z(e)?e.validators:e)||null}function Q(e){return Array.isArray(e)?k(e):e||null}function X(e,t){return(Z(t)?t.asyncValidators:e)||null}function Y(e){return Array.isArray(e)?E(e):e||null}function Z(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var $=function(){function e(t,n){_classCallCheck(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Q(this._rawValidators),this._composedAsyncValidatorFn=Y(this._rawAsyncValidators)}return _createClass(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Q(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Y(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=x(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var r=e;return t.forEach(function(e){r=r instanceof te?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof ne&&r.at(e)||null}),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new r.n,this.statusChanges=new r.n}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Z(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,G(i),X(a,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!a}),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){H(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){H(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}($),te=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,G(r),X(i,r))).controls=e,a._initObservables(),a._setUpdateStrategy(r),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),a}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof ee?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var r=t.controls[n];r&&e(r,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}($),ne=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,G(r),X(i,r))).controls=e,a._initObservables(),a._setUpdateStrategy(r),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),a}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof ee?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}($),re={provide:P,useExisting:Object(r.U)(function(){return ae})},ie=Promise.resolve(null),ae=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,o){var s;return _classCallCheck(this,n),(s=t.call(this)).control=new ee,s._registered=!1,s.update=new r.n,s._parent=e,s._setValidators(i),s._setAsyncValidators(a),s.valueAccessor=function(e,t){return t?(Array.isArray(t),t.forEach(function(e){var t;e.constructor===f?n=e:(t=e,K.some(function(e){return t.constructor===e})?r=e:i=e)}),i||r||n||null):null;var n,r,i}(0,o),s}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?[].concat(_toConsumableArray(this._parent.path),[this.name]):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){var e,t;(function(e,t,n){var r=function(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(T(r,t.validator)):"function"==typeof r&&e.setValidators([r]);var i=function(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(T(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);var a=function(){return e.updateValueAndValidity()};W(t._rawValidators,a),W(t._rawAsyncValidators,a)})(e=this.control,t=this),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&q(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&q(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;ie.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;ie.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})}}]),n}(P);return e.\u0275fac=function(t){return new(t||e)(r.Lb(A,9),r.Lb(m,10),r.Lb(h,10),r.Lb(c,10))},e.\u0275dir=r.Gb({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r.Ab([re]),r.yb,r.zb]}),e}(),oe=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275mod=r.Jb({type:e}),e.\u0275inj=r.Ib({factory:function(t){return new(t||e)}}),e}(),se=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275mod=r.Jb({type:e}),e.\u0275inj=r.Ib({factory:function(t){return new(t||e)},providers:[L],imports:[oe]}),e}()},srUL:function(e,t,n){"use strict";n.d(t,"a",function(){return p}),n.d(t,"b",function(){return h});var r=n("8Y7J"),i=n("2Vo4"),a=n("jtHE"),o=n("pLZG"),s=n("lJxs"),c=n("3E0/"),u=n("SVse"),l=n("iInd"),_=function e(){_classCallCheck(this,e),this.pageTracking={autoTrackVirtualPages:!0,basePath:"",excludedRoutes:[],clearIds:!1,clearHash:!1,clearQueryParams:!1,idsRegExp:/^\d+$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/},this.developerMode=!1,this.ga={},this.appInsights={},this.gtm={},this.gst={}},d=new r.r("ANGULARTICS2"),f=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"trackLocation",value:function(e){return new i.a({url:"/"})}},{key:"prepareExternalUrl",value:function(e){return e}}]),e}(),p=function(){var e=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.tracker=t,this.pageTrack=new a.a(10),this.eventTrack=new a.a(10),this.exceptionTrack=new a.a(10),this.setAlias=new a.a(10),this.setUsername=new a.a(10),this.setUserProperties=new a.a(10),this.setUserPropertiesOnce=new a.a(10),this.setSuperProperties=new a.a(10),this.setSuperPropertiesOnce=new a.a(10),this.userTimings=new a.a(10);var i=new _;this.settings=Object.assign(Object.assign({},i),n.settings),this.settings.pageTracking=Object.assign(Object.assign({},i.pageTracking),n.settings.pageTracking),this.tracker.trackLocation(this.settings).subscribe(function(e){return r.trackUrlChange(e.url)})}return _createClass(e,[{key:"filterDeveloperMode",value:function(){var e=this;return Object(o.a)(function(t,n){return!e.settings.developerMode})}},{key:"trackUrlChange",value:function(e){if(this.settings.pageTracking.autoTrackVirtualPages&&!this.matchesExcludedRoute(e)){var t,n=this.clearUrl(e);t=this.settings.pageTracking.basePath.length?this.settings.pageTracking.basePath+n:this.tracker.prepareExternalUrl(n),this.pageTrack.next({path:t})}}},{key:"matchesExcludedRoute",value:function(e){var t,n=_createForOfIteratorHelper(this.settings.pageTracking.excludedRoutes);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r instanceof RegExp&&r.test(e)||-1!==e.indexOf(r))return!0}}catch(i){n.e(i)}finally{n.f()}return!1}},{key:"clearUrl",value:function(e){var t=this;return this.settings.pageTracking.clearIds||this.settings.pageTracking.clearQueryParams||this.settings.pageTracking.clearHash?e.split("/").map(function(e){return t.settings.pageTracking.clearQueryParams?e.split("?")[0]:e}).map(function(e){return t.settings.pageTracking.clearHash?e.split("#")[0]:e}).filter(function(e){return!t.settings.pageTracking.clearIds||!e.match(t.settings.pageTracking.idsRegExp)}).join("/"):e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Sb(f),r.Sb(d))},e.\u0275prov=Object(r.Hb)({factory:function(){return new e(Object(r.Sb)(f),Object(r.Sb)(d))},token:e,providedIn:"root"}),e}(),g=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.router=t,this.location=n}return _createClass(e,[{key:"trackLocation",value:function(e){return this.router.events.pipe(Object(o.a)(function(e){return e instanceof l.a}),Object(o.a)(function(){return!e.developerMode}),Object(s.a)(function(e){return{url:e.urlAfterRedirects}}),Object(c.a)(0))}},{key:"prepareExternalUrl",value:function(e){return this.location.prepareExternalUrl(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Sb(l.b),r.Sb(u.f))},e.\u0275prov=Object(r.Hb)({factory:function(){return new e(Object(r.Sb)(l.b),Object(r.Sb)(u.f))},token:e,providedIn:"root"}),e}(),m=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275mod=r.Jb({type:e}),e.\u0275inj=r.Ib({factory:function(t){return new(t||e)}}),e}(),h=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[{provide:d,useValue:{settings:t}},{provide:f,useClass:g},p]}}}]),e}();return e.\u0275mod=r.Jb({type:e}),e.\u0275inj=r.Ib({factory:function(t){return new(t||e)},imports:[[m]]}),e}()},"un/a":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return t.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.count=t,this.source=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.count,this.source))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).count=r,a.source=i,a}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t=this.source,r=this.count;if(0===r)return _get2(_getPrototypeOf(n.prototype),"error",this).call(this,e);r>-1&&(this.count=r-1),t.subscribe(this._unsubscribeAndRecycle())}}}]),n}(r.a)},ura0:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return c});var r=n("8Y7J"),i=n("SVse"),a=n("/q54");n("8LU1"),n("1G5W"),n("cUpR"),new Map;var o=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,a,o,s,c,u){var l;return _classCallCheck(this,n),(l=t.call(this,e,null,r,a)).ngClassInstance=u,l.DIRECTIVE_KEY="ngClass",l.ngClassInstance||(l.ngClassInstance=new i.h(o,s,e,c)),l.init(),l.setValue("",""),l}return _createClass(n,[{key:"klass",set:function(e){this.ngClassInstance.klass=e,this.setValue(e,"")}},{key:"updateWithValue",value:function(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}}]),n}(a.b);return e.\u0275fac=function(t){return new(t||e)(r.Lb(r.l),r.Lb(a.i),r.Lb(a.f),r.Lb(r.t),r.Lb(r.u),r.Lb(r.F),r.Lb(i.h,10))},e.\u0275dir=r.Gb({type:e,inputs:{klass:["class","klass"]},features:[r.yb]}),e}(),s=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],c=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=s,e}return n}(o);return e.\u0275fac=function(t){return u(t||e)},e.\u0275dir=r.Gb({type:e,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[r.yb]}),e}(),u=r.Qb(c);new WeakMap;var l=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275mod=r.Jb({type:e}),e.\u0275inj=r.Ib({factory:function(t){return new(t||e)},imports:[[a.c]]}),e}()},uzYf:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("8Y7J"),i=function(){var e=function(){function e(t){_classCallCheck(this,e),this.hostElement=t.nativeElement}return _createClass(e,[{key:"onMouseEnter",value:function(){var e=this.hostElement.getBoundingClientRect();this.appTooltip.style.visibility="visible",this.appTooltip.style.top=e.y+32+"px",this.appTooltip.style.left=e.x+"px"}},{key:"onMouseLeave",value:function(){this.appTooltip.style.visibility="collapse"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Lb(r.l))},e.\u0275dir=r.Gb({type:e,selectors:[["code","appTooltip",""]],hostBindings:function(e,t){1&e&&r.Wb("mouseenter",function(){return t.onMouseEnter()})("mouseleave",function(){return t.onMouseLeave()})},inputs:{appTooltip:"appTooltip"}}),e}()},vkgz:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7o/Q");function i(){}var a=n("n6bG");function o(e,t,n){return function(r){return r.lift(new s(e,t,n))}}var s=function(){function e(t,n,r){_classCallCheck(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,o,s){var c;return _classCallCheck(this,n),(c=t.call(this,e))._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=o||i,c._tapComplete=s||i,Object(a.a)(r)?(c._context=_assertThisInitialized2(c),c._tapNext=r):r&&(c._context=r,c._tapNext=r.next||i,c._tapError=r.error||i,c._tapComplete=r.complete||i),c}return _createClass(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(r.a)},"x+ZX":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(){return function(e){return e.lift(new a(e))}}var a=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new o(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(r.a)},xgIS:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("HDdC"),i=n("DH7j"),a=n("n6bG"),o=n("lJxs");function s(e,t,n,u){return Object(a.a)(n)&&(u=n,n=void 0),u?s(e,t,n).pipe(Object(o.a)(function(e){return Object(i.a)(e)?u.apply(void 0,_toConsumableArray(e)):u(e)})):new r.a(function(r){c(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}function c(e,t,n,r,i){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var o=e;e.addEventListener(t,n,i),a=function(){return o.removeEventListener(t,n,i)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),a=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var u=e;e.addListener(t,n),a=function(){return u.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,_=e.length;l<_;l++)c(e[l],t,n,r,i)}r.add(a)}},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("HDdC"),i=n("ngJS"),a=n("jZKg");function o(e,t){return t?Object(a.a)(e,t):new r.a(Object(i.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})},"z/o8":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("pc+1"),i=n("nOaX"),a=r.w.registerPlugin(i.a)||r.w},z6cu:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("HDdC");function i(e,t){return new r.a(t?function(n){return t.schedule(a,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function a(e){var t=e.error;e.subscriber.error(t)}},zP0r:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e){return function(t){return t.lift(new a(e))}}var a=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.total))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return _createClass(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(r.a)},zUnb:function(e,t,n){"use strict";n.r(t);var r=n("cUpR"),i=n("8Y7J"),a=n("s7LF"),o=n("IheW"),s=n("iInd"),c=n("jBAD"),u=function e(){_classCallCheck(this,e),this.fruits=[],this.expectedFruits=[],this.code="const conveyorBelt = EMPTY;\n",this.minPositionLineNumber=2,this.positionColumnNumber=1},l=n("VIrA"),_=n("TSSN"),d=n("SVse"),f=n("dJsq"),p=n("uzYf");function g(e,t){if(1&e&&(i.Ob(0,"div"),i.Ob(1,"p"),i.qc(2,"Willkommen bei RxJS-fruits. Hier schreibst du JavaScript / TypeScript Code, um deinen Fruchtsaft zu mixen!"),i.Nb(),i.Ob(3,"p"),i.qc(4,"Die Basis von "),i.Ob(5,"b"),i.qc(6,"Reactive Extensions"),i.Nb(),i.qc(7," ist das "),i.Ob(8,"code",5),i.qc(9,"Observable"),i.Nb(),i.qc(10,". Es ist ein Gegenst\xfcck von einem Array. Anstatt die Daten zu behalten, gibt es diese als Datenstr\xf6me an interessierte Abonnenten weiter. "),i.Ob(11,"a",6),i.qc(12,"(Mehr Infos zum Observable)"),i.Nb(),i.Nb(),i.Ob(13,"p"),i.qc(14,"Ein Observable ist somit erst aktiv, wenn es mit der "),i.Ob(15,"code",5),i.qc(16,"subscribe"),i.Nb(),i.qc(17,"-Funktion abonniert wird. "),i.Ob(18,"a",7),i.qc(19,"(Mehr Infos zu Subscription)"),i.Nb(),i.Nb(),i.Nb()),2&e){i.ac();var n=i.hc(9),r=i.hc(15);i.Bb(8),i.fc("appTooltip",n),i.Bb(7),i.fc("appTooltip",r)}}function m(e,t){if(1&e&&(i.Ob(0,"div"),i.Ob(1,"p"),i.qc(2,"Welcome to RxJS-fruits, where you write JavaScript / TypeScript code to mix your fruit juice!"),i.Nb(),i.Ob(3,"p"),i.qc(4,"The basis of "),i.Ob(5,"b"),i.qc(6,"Reactive Extensions"),i.Nb(),i.qc(7," is the "),i.Ob(8,"code",5),i.qc(9,"Observable"),i.Nb(),i.qc(10,". It is a counterpart of an array. Instead of that Retaining data it streams the data to interested subscribers. "),i.Ob(11,"a",6),i.qc(12,"(More information about the Observable)"),i.Nb(),i.Nb(),i.Ob(13,"p"),i.qc(14,"An Observable is therefore only active if it is subscribed to with the "),i.Ob(15,"code",5),i.qc(16,"subscribe"),i.Nb(),i.qc(17,"-function. "),i.Ob(18,"a",7),i.qc(19,"(More information about Subscription)"),i.Nb(),i.Nb(),i.Nb()),2&e){i.ac();var n=i.hc(9),r=i.hc(15);i.Bb(8),i.fc("appTooltip",n),i.Bb(7),i.fc("appTooltip",r)}}function h(e,t){if(1&e&&(i.Ob(0,"div"),i.Ob(1,"p"),i.qc(2,"\u6b22\u8fce\u6765\u5230 RxJS-fruits\uff0c\u5728\u8fd9\u91cc\u7f16\u5199 JavaScript/TypeScript \u4ee3\u7801\u5236\u4f5c\u679c\u6c41\uff01"),i.Nb(),i.Ob(3,"p"),i.Ob(4,"b"),i.qc(5,"Reactive Extensions"),i.Nb(),i.qc(6," \u7684\u57fa\u7840\u662f "),i.Ob(7,"code",5),i.qc(8,"Observable"),i.Nb(),i.qc(9,"\u3002 \u5b83\u662f\u6570\u7ec4\u7684\u526f\u672c\uff0c\u4f46\u5e76\u4e0d\u662f\u56fa\u5b9a\u7684\u6570\u636e\uff0c\u800c\u662f\u5c06\u6570\u636e\u6d41\u4f20\u8f93\u5230\u5bf9\u5176\u611f\u5174\u8da3\u7684\u8ba2\u9605\u8005\u3002 "),i.Ob(10,"a",6),i.qc(11,"\uff08\u66f4\u591a\u5173\u4e8e Observable \u7684\u4fe1\u606f\uff09"),i.Nb(),i.Nb(),i.Ob(12,"p"),i.qc(13,"\u56e0\u6b64\uff0c\u4e00\u4e2a Observable \u5bf9\u8c61\u53ea\u6709\u5728\u4f7f\u7528 "),i.Ob(14,"code",5),i.qc(15,"subscribe"),i.Nb(),i.qc(16,"-function \u65f6\u624d\u4f1a\u88ab\u6fc0\u6d3b\u3002 "),i.Ob(17,"a",7),i.qc(18,"\uff08\u66f4\u591a\u5173\u4e8e Subscription \u7684\u4fe1\u606f\uff09"),i.Nb(),i.Nb(),i.Nb()),2&e){i.ac();var n=i.hc(9),r=i.hc(15);i.Bb(7),i.fc("appTooltip",n),i.Bb(7),i.fc("appTooltip",r)}}function y(e,t){if(1&e&&(i.Ob(0,"div"),i.Ob(1,"p"),i.qc(2,"\u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 RxJS-fruits, \u0433\u0434\u0435 \u0432\u044b \u043f\u0438\u0448\u0438\u0442\u0435 JavaScript / TypeScript \u043a\u043e\u0434 \u0447\u0442\u043e\u0431\u044b \u0441\u043c\u0435\u0448\u0430\u0442\u044c \u0432\u0430\u0448 \u0444\u0440\u0443\u043a\u0442\u043e\u0432\u044b\u0439 \u0441\u043e\u043a!"),i.Nb(),i.Ob(3,"p"),i.qc(4,"\u041e\u0441\u043d\u043e\u0432\u043e\u0439 "),i.Ob(5,"b"),i.qc(6,"Reactive Extensions"),i.Nb(),i.qc(7," \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f "),i.Ob(8,"code",5),i.qc(9,"Observable"),i.Nb(),i.qc(10,". \u042d\u0442\u043e \u0430\u043d\u0430\u043b\u043e\u0433 \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044f \u0434\u0430\u043d\u043d\u044b\u0435, \u043e\u043d \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0430\u043c. "),i.Ob(11,"a",6),i.qc(12,"(\u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e Observable)"),i.Nb(),i.Nb(),i.Ob(13,"p"),i.qc(14,"\u041f\u043e\u044d\u0442\u043e\u043c\u0443 Observable \u0430\u043a\u0442\u0438\u0432\u0435\u043d, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043e\u043d \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e "),i.Ob(15,"code",5),i.qc(16,"subscribe"),i.Nb(),i.qc(17,"-function. "),i.Ob(18,"a",7),i.qc(19,"(\u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e Subscription)"),i.Nb(),i.Nb(),i.Nb()),2&e){i.ac();var n=i.hc(9),r=i.hc(15);i.Bb(8),i.fc("appTooltip",n),i.Bb(7),i.fc("appTooltip",r)}}function v(e,t){if(1&e&&(i.Ob(0,"div"),i.Ob(1,"p"),i.qc(2,"\xa1Bienvenido a RxJS-fruits!, donde escribes c\xf3digo JavaScript / TypeScript para hacer jugo de frutas"),i.Nb(),i.Ob(3,"p"),i.qc(4,"La base de las "),i.Ob(5,"b"),i.qc(6,"Extensiones Reactivas"),i.Nb(),i.qc(7," es el "),i.Ob(8,"code",5),i.qc(9,"Observable"),i.Nb(),i.qc(10,". Es una contraparte de una arreglo o matr\xedz. En lugar de esos datos de retenci\xf3n, transmite los datos a los suscriptores interesados. "),i.Ob(11,"a",7),i.qc(12,"(M\xe1s informaci\xf3n sobre Subscription)"),i.Nb(),i.Nb(),i.Nb()),2&e){i.ac();var n=i.hc(9);i.Bb(8),i.fc("appTooltip",n)}}var b,x=((b=function(){function e(t,n){_classCallCheck(this,e),this.exerciseService=t,this.translateService=n,this.exerciseTitle="subscribe",this.observableCode="\n const observable = new Observable(subscriber => {\n subscriber.next(1);\n subscriber.next(2);\n subscriber.next(3);\n }).subscribe(x => console.log(x));\n\n // Logs:\n // 1\n // 2\n // 3\n ",this.subscribeCode="\nobservable.subscribe();\n ",this.currentLanguage=""}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.exerciseService.newExercise(new u),this.currentLanguage=this.translateService.currentLang,this.onLangChangeSubscription=this.translateService.onLangChange.subscribe({next:function(){e.currentLanguage=e.translateService.currentLang}})}},{key:"ngOnDestroy",value:function(){this.onLangChangeSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||b)(i.Lb(l.a),i.Lb(_.d))},b.\u0275cmp=i.Fb({type:b,selectors:[["app-subscribe"]],decls:20,vars:11,consts:[[4,"ngIf"],[1,"tooltip","codeTooltip"],["tooltipObservableCode",""],[3,"highlight"],["tooltipSubscribeCode",""],[1,"help",3,"appTooltip"],["href","https://rxjs.dev/guide/observable","target","_blank"],["href","https://rxjs.dev/guide/subscription","target","_blank"]],template:function(e,t){1&e&&(i.Ob(0,"h3"),i.qc(1),i.bc(2,"translate"),i.Nb(),i.pc(3,g,20,2,"div",0),i.pc(4,m,20,2,"div",0),i.pc(5,h,19,2,"div",0),i.pc(6,y,20,2,"div",0),i.pc(7,v,13,1,"div",0),i.Ob(8,"div",1,2),i.Ob(10,"pre"),i.qc(11," "),i.Mb(12,"code",3),i.qc(13,"\n "),i.Nb(),i.Nb(),i.Ob(14,"div",1,4),i.Ob(16,"pre"),i.qc(17," "),i.Mb(18,"code",3),i.qc(19,"\n "),i.Nb(),i.Nb()),2&e&&(i.Bb(1),i.tc("",i.cc(2,9,"EXERCISES.EXERCISETITLE"),": ",t.exerciseTitle,""),i.Bb(2),i.fc("ngIf","de"===t.currentLanguage),i.Bb(1),i.fc("ngIf","en"===t.currentLanguage),i.Bb(1),i.fc("ngIf","zh_CN"===t.currentLanguage),i.Bb(1),i.fc("ngIf","ru"===t.currentLanguage),i.Bb(1),i.fc("ngIf","es"===t.currentLanguage),i.Bb(5),i.fc("highlight",t.observableCode),i.Bb(6),i.fc("highlight",t.subscribeCode))},directives:[d.j,f.b,p.a],pipes:[_.c],styles:[""]}),b),D=n("BnXa"),C=n("VDRc"),S=n("cgln");function k(e,t){1&e&&(i.Ob(0,"div"),i.Ob(1,"h1"),i.qc(2,"Datenschutzerkl\xe4rung"),i.Nb(),i.Ob(3,"h2"),i.qc(4,"1. Datenschutz auf einen Blick"),i.Nb(),i.Ob(5,"h3"),i.qc(6,"Allgemeine Hinweise"),i.Nb(),i.Ob(7,"p"),i.qc(8,"Die folgenden Hinweise geben einen einfachen \xdcberblick dar\xfcber, was mit Ihren personenbezogenen Daten passiert, wenn Sie diese Website besuchen. Personenbezogene Daten sind alle Daten, mit denen Sie pers\xf6nlich identifiziert werden k\xf6nnen. Ausf\xfchrliche Informationen zum Thema Datenschutz entnehmen Sie unserer unter diesem Text aufgef\xfchrten Datenschutzerkl\xe4rung."),i.Nb(),i.Ob(9,"h3"),i.qc(10,"Datenerfassung auf dieser Website"),i.Nb(),i.Ob(11,"p"),i.Ob(12,"strong"),i.qc(13,"Wer ist verantwortlich f\xfcr die Datenerfassung auf dieser Website?"),i.Nb(),i.Nb(),i.Ob(14,"p"),i.qc(15,"Die Datenverarbeitung auf dieser Website erfolgt durch den Websitebetreiber. Die Kontakt E-Mail Adresse lautet: gregor.biswanger@web-enliven.de."),i.Nb(),i.Ob(16,"p"),i.Ob(17,"strong"),i.qc(18,"Wie erfassen wir Ihre Daten?"),i.Nb(),i.Nb(),i.Ob(19,"p"),i.qc(20,"Ihre Daten werden zum einen dadurch erhoben, dass Sie uns diese mitteilen. Hierbei kann es sich z.\xa0B. um Daten handeln, die Sie in ein Kontaktformular eingeben."),i.Nb(),i.Ob(21,"p"),i.qc(22,"Andere Daten werden automatisch oder nach Ihrer Einwilligung beim Besuch der Website durch unsere IT-Systeme erfasst. Das sind vor allem technische Daten (z.\xa0B. Internetbrowser, Betriebssystem oder Uhrzeit des Seitenaufrufs). Die Erfassung dieser Daten erfolgt automatisch, sobald Sie diese Website betreten."),i.Nb(),i.Ob(23,"p"),i.Ob(24,"strong"),i.qc(25,"Wof\xfcr nutzen wir Ihre Daten?"),i.Nb(),i.Nb(),i.Ob(26,"p"),i.qc(27,"Ein Teil der Daten wird erhoben, um eine fehlerfreie Bereitstellung der Website zu gew\xe4hrleisten. Andere Daten k\xf6nnen zur Analyse Ihres Nutzerverhaltens verwendet werden."),i.Nb(),i.Ob(28,"p"),i.Ob(29,"strong"),i.qc(30,"Welche Rechte haben Sie bez\xfcglich Ihrer Daten?"),i.Nb(),i.Nb(),i.Ob(31,"p"),i.qc(32,"Sie haben jederzeit das Recht, unentgeltlich Auskunft \xfcber Herkunft, Empf\xe4nger und Zweck Ihrer gespeicherten personenbezogenen Daten zu erhalten. Sie haben au\xdferdem ein Recht, die Berichtigung oder L\xf6schung dieser Daten zu verlangen. Wenn Sie eine Einwilligung zur Datenverarbeitung erteilt haben, k\xf6nnen Sie diese Einwilligung jederzeit f\xfcr die Zukunft widerrufen. Au\xdferdem haben Sie das Recht, unter bestimmten Umst\xe4nden die Einschr\xe4nkung der Verarbeitung Ihrer personenbezogenen Daten zu verlangen. Des Weiteren steht Ihnen ein Beschwerderecht bei der zust\xe4ndigen Aufsichtsbeh\xf6rde zu. "),i.Nb(),i.Ob(33,"p"),i.qc(34,"Hierzu sowie zu weiteren Fragen zum Thema Datenschutz k\xf6nnen Sie sich jederzeit unter der im Impressum angegebenen Adresse an uns wenden."),i.Nb(),i.Ob(35,"h3"),i.qc(36,"Analyse-Tools und Tools von Drittanbietern"),i.Nb(),i.Ob(37,"p"),i.qc(38,"Beim Besuch dieser Website kann Ihr Surf-Verhalten statistisch ausgewertet werden. Das geschieht vor allem mit Cookies und mit sogenannten Analyseprogrammen."),i.Nb(),i.Ob(39,"p"),i.qc(40,"Detaillierte Informationen zu diesen Analyseprogrammen finden Sie in der folgenden Datenschutzerkl\xe4rung. "),i.Nb(),i.Ob(41,"h2"),i.qc(42,"2. Hosting und Content Delivery Networks (CDN)"),i.Nb(),i.Ob(43,"h3"),i.qc(44,"Externes Hosting"),i.Nb(),i.Ob(45,"p"),i.qc(46,"Die Seite wird auf GitHub-Pages gehostet. GitHub Pages ist ein Dienst von GitHub Inc. (88 Colin P. Kelly Jr. St. San Francisco, CA 94107, USA). Die personenbezogenen Daten, die auf dieser Website erfasst werden, werden auf den Servern des Hosters gespeichert. Hierbei kann es sich v. a. um IP-Adressen, Kontaktanfragen, Meta- und Kommunikationsdaten, Vertragsdaten, Kontaktdaten, Namen, Webseitenzugriffe und sonstige Daten, die \xfcber eine Website generiert werden, handeln."),i.Nb(),i.Ob(47,"p"),i.qc(48,"Der Einsatz des Hosters erfolgt zum Zwecke der Vertragserf\xfcllung gegen\xfcber unseren potenziellen und bestehenden Kunden (Art. 6 Abs. 1 lit. b DSGVO) und im Interesse einer sicheren, schnellen und effizienten Bereitstellung unseres Online-Angebots durch einen professionellen Anbieter (Art. 6 Abs. 1 lit. f DSGVO). "),i.Nb(),i.Ob(49,"p"),i.qc(50,"Unser Hoster wird Ihre Daten nur insoweit verarbeiten, wie dies zur Erf\xfcllung seiner Leistungspflichten erforderlich ist und unsere Weisungen in Bezug auf diese Daten befolgen."),i.Nb(),i.Ob(51,"h2"),i.qc(52,"3. Allgemeine Hinweise und Pflichtinformationen"),i.Nb(),i.Ob(53,"h3"),i.qc(54,"Datenschutz"),i.Nb(),i.Ob(55,"p"),i.qc(56,"Die Betreiber dieser Seiten nehmen den Schutz Ihrer pers\xf6nlichen Daten sehr ernst. Wir behandeln Ihre personenbezogenen Daten vertraulich und entsprechend der gesetzlichen Datenschutzvorschriften sowie dieser Datenschutzerkl\xe4rung."),i.Nb(),i.Ob(57,"p"),i.qc(58,"Wenn Sie diese Website benutzen, werden verschiedene personenbezogene Daten erhoben. Personenbezogene Daten sind Daten, mit denen Sie pers\xf6nlich identifiziert werden k\xf6nnen. Die vorliegende Datenschutzerkl\xe4rung erl\xe4utert, welche Daten wir erheben und wof\xfcr wir sie nutzen. Sie erl\xe4utert auch, wie und zu welchem Zweck das geschieht."),i.Nb(),i.Ob(59,"p"),i.qc(60,"Wir weisen darauf hin, dass die Daten\xfcbertragung im Internet (z.\xa0B. bei der Kommunikation per E-Mail) Sicherheitsl\xfccken aufweisen kann. Ein l\xfcckenloser Schutz der Daten vor dem Zugriff durch Dritte ist nicht m\xf6glich."),i.Nb(),i.Ob(61,"h3"),i.qc(62,"Hinweis zur verantwortlichen Stelle"),i.Nb(),i.Ob(63,"p"),i.qc(64,"Die verantwortliche Stelle f\xfcr die Datenverarbeitung auf dieser Website ist:"),i.Nb(),i.Ob(65,"p"),i.qc(66,"Gregor Biswanger"),i.Mb(67,"br"),i.qc(68," Konrad-St\xf6r Str. 17"),i.Mb(69,"br"),i.qc(70," 90455 N\xfcrnberg"),i.Nb(),i.Ob(71,"p"),i.qc(72,"E-Mail: gregor.biswanger@web-enliven.de"),i.Nb(),i.Ob(73,"p"),i.qc(74,"Verantwortliche Stelle ist die nat\xfcrliche oder juristische Person, die allein oder gemeinsam mit anderen \xfcber die Zwecke und Mittel der Verarbeitung von personenbezogenen Daten (z.\xa0B. Namen, E-Mail-Adressen o. \xc4.) entscheidet."),i.Nb(),i.Ob(75,"h3"),i.qc(76,"Externe Links"),i.Nb(),i.Ob(77,"p"),i.qc(78,"Diese Website enth\xe4lt Links zu externen Websites mit unterschiedlichen Datenschutzbestimmungen. Wir \xfcbernehmen keine Verantwortung f\xfcr die Richtigkeit, Rechtm\xe4\xdfigkeit oder den Inhalt der externen Website oder f\xfcr die nachfolgenden Links. Wenden Sie sich an die externe Website, um Antworten auf Fragen zum Inhalt zu erhalten."),i.Nb(),i.Ob(79,"h3"),i.qc(80,"Widerruf Ihrer Einwilligung zur Datenverarbeitung"),i.Nb(),i.Ob(81,"p"),i.qc(82,"Viele Datenverarbeitungsvorg\xe4nge sind nur mit Ihrer ausdr\xfccklichen Einwilligung m\xf6glich. Sie k\xf6nnen eine bereits erteilte Einwilligung jederzeit widerrufen. Dazu reicht eine formlose Mitteilung per E-Mail an uns. Die Rechtm\xe4\xdfigkeit der bis zum Widerruf erfolgten Datenverarbeitung bleibt vom Widerruf unber\xfchrt."),i.Nb(),i.Ob(83,"h3"),i.qc(84,"Widerspruchsrecht gegen die Datenerhebung in besonderen F\xe4llen sowie gegen Direktwerbung (Art. 21 DSGVO) "),i.Nb(),i.Ob(85,"p"),i.qc(86,"WENN DIE DATENVERARBEITUNG AUF GRUNDLAGE VON ART. 6 ABS. 1 LIT. E ODER F DSGVO ERFOLGT, HABEN SIE JEDERZEIT DAS RECHT, AUS GR\xdcNDEN, DIE SICH AUS IHRER BESONDEREN SITUATION ERGEBEN, GEGEN DIE VERARBEITUNG IHRER PERSONENBEZOGENEN DATEN WIDERSPRUCH EINZULEGEN; DIES GILT AUCH F\xdcR EIN AUF DIESE BESTIMMUNGEN GEST\xdcTZTES PROFILING. DIE JEWEILIGE RECHTSGRUNDLAGE, AUF DENEN EINE VERARBEITUNG BERUHT, ENTNEHMEN SIE DIESER DATENSCHUTZERKL\xc4RUNG. WENN SIE WIDERSPRUCH EINLEGEN, WERDEN WIR IHRE BETROFFENEN PERSONENBEZOGENEN DATEN NICHT MEHR VERARBEITEN, ES SEI DENN, WIR K\xd6NNEN ZWINGENDE SCHUTZW\xdcRDIGE GR\xdcNDE F\xdcR DIE VERARBEITUNG NACHWEISEN, DIE IHRE INTERESSEN, RECHTE UND FREIHEITEN \xdcBERWIEGEN ODER DIE VERARBEITUNG DIENT DER GELTENDMACHUNG, AUS\xdcBUNG ODER VERTEIDIGUNG VON RECHTSANSPR\xdcCHEN (WIDERSPRUCH NACH ART. 21 ABS. 1 DSGVO)."),i.Nb(),i.Ob(87,"p"),i.qc(88,"WERDEN IHRE PERSONENBEZOGENEN DATEN VERARBEITET, UM DIREKTWERBUNG ZU BETREIBEN, SO HABEN SIE DAS RECHT, JEDERZEIT WIDERSPRUCH GEGEN DIE VERARBEITUNG SIE BETREFFENDER PERSONENBEZOGENER DATEN ZUM ZWECKE DERARTIGER WERBUNG EINZULEGEN; DIES GILT AUCH F\xdcR DAS PROFILING, SOWEIT ES MIT SOLCHER DIREKTWERBUNG IN VERBINDUNG STEHT. WENN SIE WIDERSPRECHEN, WERDEN IHRE PERSONENBEZOGENEN DATEN ANSCHLIESSEND NICHT MEHR ZUM ZWECKE DER DIREKTWERBUNG VERWENDET (WIDERSPRUCH NACH ART. 21 ABS. 2 DSGVO)."),i.Nb(),i.Ob(89,"h3"),i.qc(90,"Beschwerderecht bei der zust\xe4ndigen Aufsichtsbeh\xf6rde"),i.Nb(),i.Ob(91,"p"),i.qc(92,"Im Falle von Verst\xf6\xdfen gegen die DSGVO steht den Betroffenen ein Beschwerderecht bei einer Aufsichtsbeh\xf6rde, insbesondere in dem Mitgliedstaat ihres gew\xf6hnlichen Aufenthalts, ihres Arbeitsplatzes oder des Orts des mutma\xdflichen Versto\xdfes zu. Das Beschwerderecht besteht unbeschadet anderweitiger verwaltungsrechtlicher oder gerichtlicher Rechtsbehelfe."),i.Nb(),i.Ob(93,"h3"),i.qc(94,"Recht auf Daten\xfcbertragbarkeit"),i.Nb(),i.Ob(95,"p"),i.qc(96,"Sie haben das Recht, Daten, die wir auf Grundlage Ihrer Einwilligung oder in Erf\xfcllung eines Vertrags automatisiert verarbeiten, an sich oder an einen Dritten in einem g\xe4ngigen, maschinenlesbaren Format aush\xe4ndigen zu lassen. Sofern Sie die direkte \xdcbertragung der Daten an einen anderen Verantwortlichen verlangen, erfolgt dies nur, soweit es technisch machbar ist."),i.Nb(),i.Ob(97,"h3"),i.qc(98,"SSL- bzw. TLS-Verschl\xfcsselung"),i.Nb(),i.Ob(99,"p"),i.qc(100,"Diese Seite nutzt aus Sicherheitsgr\xfcnden und zum Schutz der \xdcbertragung vertraulicher Inhalte, wie zum Beispiel Bestellungen oder Anfragen, die Sie an uns als Seitenbetreiber senden, eine SSL- bzw. TLS-Verschl\xfcsselung. Eine verschl\xfcsselte Verbindung erkennen Sie daran, dass die Adresszeile des Browsers von \u201ehttp://\u201c auf \u201ehttps://\u201c wechselt und an dem Schloss-Symbol in Ihrer Browserzeile."),i.Nb(),i.Ob(101,"p"),i.qc(102,"Wenn die SSL- bzw. TLS-Verschl\xfcsselung aktiviert ist, k\xf6nnen die Daten, die Sie an uns \xfcbermitteln, nicht von Dritten mitgelesen werden."),i.Nb(),i.Ob(103,"h3"),i.qc(104,"Auskunft, L\xf6schung und Berichtigung"),i.Nb(),i.Ob(105,"p"),i.qc(106,"Sie haben im Rahmen der geltenden gesetzlichen Bestimmungen jederzeit das Recht auf unentgeltliche Auskunft \xfcber Ihre gespeicherten personenbezogenen Daten, deren Herkunft und Empf\xe4nger und den Zweck der Datenverarbeitung und ggf. ein Recht auf Berichtigung oder L\xf6schung dieser Daten. Hierzu sowie zu weiteren Fragen zum Thema personenbezogene Daten k\xf6nnen Sie sich jederzeit unter der im Impressum angegebenen Adresse an uns wenden."),i.Nb(),i.Ob(107,"h3"),i.qc(108,"Recht auf Einschr\xe4nkung der Verarbeitung"),i.Nb(),i.Ob(109,"p"),i.qc(110,"Sie haben das Recht, die Einschr\xe4nkung der Verarbeitung Ihrer personenbezogenen Daten zu verlangen. Hierzu k\xf6nnen Sie sich jederzeit unter der im Impressum angegebenen Adresse an uns wenden. Das Recht auf Einschr\xe4nkung der Verarbeitung besteht in folgenden F\xe4llen:"),i.Nb(),i.Ob(111,"ul"),i.Ob(112,"li"),i.qc(113,"Wenn Sie die Richtigkeit Ihrer bei uns gespeicherten personenbezogenen Daten bestreiten, ben\xf6tigen wir in der Regel Zeit, um dies zu \xfcberpr\xfcfen. F\xfcr die Dauer der Pr\xfcfung haben Sie das Recht, die Einschr\xe4nkung der Verarbeitung Ihrer personenbezogenen Daten zu verlangen."),i.Nb(),i.Ob(114,"li"),i.qc(115,"Wenn die Verarbeitung Ihrer personenbezogenen Daten unrechtm\xe4\xdfig geschah/geschieht, k\xf6nnen Sie statt der L\xf6schung die Einschr\xe4nkung der Datenverarbeitung verlangen."),i.Nb(),i.Ob(116,"li"),i.qc(117,"Wenn wir Ihre personenbezogenen Daten nicht mehr ben\xf6tigen, Sie sie jedoch zur Aus\xfcbung, Verteidigung oder Geltendmachung von Rechtsanspr\xfcchen ben\xf6tigen, haben Sie das Recht, statt der L\xf6schung die Einschr\xe4nkung der Verarbeitung Ihrer personenbezogenen Daten zu verlangen."),i.Nb(),i.Ob(118,"li"),i.qc(119,"Wenn Sie einen Widerspruch nach Art. 21 Abs. 1 DSGVO eingelegt haben, muss eine Abw\xe4gung zwischen Ihren und unseren Interessen vorgenommen werden. Solange noch nicht feststeht, wessen Interessen \xfcberwiegen, haben Sie das Recht, die Einschr\xe4nkung der Verarbeitung Ihrer personenbezogenen Daten zu verlangen. "),i.Nb(),i.Nb(),i.Ob(120,"p"),i.qc(121,"Wenn Sie die Verarbeitung Ihrer personenbezogenen Daten eingeschr\xe4nkt haben, d\xfcrfen diese Daten \u2013 von ihrer Speicherung abgesehen \u2013 nur mit Ihrer Einwilligung oder zur Geltendmachung, Aus\xfcbung oder Verteidigung von Rechtsanspr\xfcchen oder zum Schutz der Rechte einer anderen nat\xfcrlichen oder juristischen Person oder aus Gr\xfcnden eines wichtigen \xf6ffentlichen Interesses der Europ\xe4ischen Union oder eines Mitgliedstaats verarbeitet werden."),i.Nb(),i.Ob(122,"h2"),i.qc(123,"4. Soziale Medien"),i.Nb(),i.Ob(124,"h3"),i.qc(125,"Facebook Plugins (Like & Share-Button)"),i.Nb(),i.Ob(126,"p"),i.qc(127,"Auf dieser Website sind Plugins des sozialen Netzwerks Facebook integriert. Anbieter dieses Dienstes ist die Facebook Ireland Limited, 4 Grand Canal Square, Dublin 2, Irland. Die erfassten Daten werden nach Aussage von Facebook jedoch auch in die USA und in andere Drittl\xe4nder \xfcbertragen."),i.Nb(),i.Ob(128,"p"),i.qc(129,"Die Facebook Plugins erkennen Sie an dem Facebook-Logo oder dem \u201eLike-Button\u201c (\u201eGef\xe4llt mir\u201c) auf dieser Website. Eine \xdcbersicht \xfcber die Facebook Plugins finden Sie hier: "),i.Ob(130,"a",6),i.qc(131,"https://developers.facebook.com/docs/plugins/?locale=de_DE"),i.Nb(),i.qc(132,"."),i.Nb(),i.Ob(133,"p"),i.qc(134,"Wenn Sie diese Website besuchen, wird \xfcber das Plugin eine direkte Verbindung zwischen Ihrem Browser und dem Facebook-Server hergestellt. Facebook erh\xe4lt dadurch die Information, dass Sie mit Ihrer IP-Adresse diese Website besucht haben. Wenn Sie den Facebook \u201eLike-Button\u201c anklicken w\xe4hrend Sie in Ihrem Facebook-Account eingeloggt sind, k\xf6nnen Sie die Inhalte dieser Website auf Ihrem Facebook-Profil verlinken. Dadurch kann Facebook den Besuch dieser Website Ihrem Benutzerkonto zuordnen. Wir weisen darauf hin, dass wir als Anbieter der Seiten keine Kenntnis vom Inhalt der \xfcbermittelten Daten sowie deren Nutzung durch Facebook erhalten. Weitere Informationen hierzu finden Sie in der Datenschutzerkl\xe4rung von Facebook unter: "),i.Ob(135,"a",7),i.qc(136,"https://de-de.facebook.com/privacy/explanation"),i.Nb(),i.qc(137,"."),i.Nb(),i.Ob(138,"p"),i.qc(139,"Wenn Sie nicht w\xfcnschen, dass Facebook den Besuch dieser Website Ihrem Facebook-Nutzerkonto zuordnen kann, loggen Sie sich bitte aus Ihrem Facebook-Benutzerkonto aus."),i.Nb(),i.Ob(140,"p"),i.qc(141,"Die Verwendung der Facebook Plugins erfolgt auf Grundlage von Art. 6 Abs. 1 lit. f DSGVO. Der Websitebetreiber hat ein berechtigtes Interesse an einer m\xf6glichst umfangreichen Sichtbarkeit in den Sozialen Medien. Sofern eine entsprechende Einwilligung abgefragt wurde, erfolgt die Verarbeitung ausschlie\xdflich auf Grundlage von Art. 6 Abs. 1 lit. a DSGVO; die Einwilligung ist jederzeit widerrufbar."),i.Nb(),i.Ob(142,"h3"),i.qc(143,"Twitter Plugin"),i.Nb(),i.Ob(144,"p"),i.qc(145,"Auf dieser Website sind Funktionen des Dienstes Twitter eingebunden. Diese Funktionen werden angeboten durch die Twitter Inc., 1355 Market Street, Suite 900, San Francisco, CA 94103, USA. Durch das Benutzen von Twitter und der Funktion \u201eRe-Tweet\u201c werden die von Ihnen besuchten Websites mit Ihrem Twitter-Account verkn\xfcpft und anderen Nutzern bekannt gegeben. Dabei werden auch Daten an Twitter \xfcbertragen. Wir weisen darauf hin, dass wir als Anbieter der Seiten keine Kenntnis vom Inhalt der \xfcbermittelten Daten sowie deren Nutzung durch Twitter erhalten. Weitere Informationen hierzu finden Sie in der Datenschutzerkl\xe4rung von Twitter unter: "),i.Ob(146,"a",8),i.qc(147,"https://twitter.com/de/privacy"),i.Nb(),i.qc(148,"."),i.Nb(),i.Ob(149,"p"),i.qc(150,"Die Verwendung des Twitter-Plugins erfolgt auf Grundlage von Art. 6 Abs. 1 lit. f DSGVO. Der Websitebetreiber hat ein berechtigtes Interesse an einer m\xf6glichst umfangreichen Sichtbarkeit in den Sozialen Medien. Sofern eine entsprechende Einwilligung abgefragt wurde, erfolgt die Verarbeitung ausschlie\xdflich auf Grundlage von Art. 6 Abs. 1 lit. a DSGVO; die Einwilligung ist jederzeit widerrufbar."),i.Nb(),i.Ob(151,"p"),i.qc(152,"Ihre Datenschutzeinstellungen bei Twitter k\xf6nnen Sie in den Konto-Einstellungen unter "),i.Ob(153,"a",9),i.qc(154,"https://twitter.com/account/settings"),i.Nb(),i.qc(155," \xe4ndern."),i.Nb(),i.Ob(156,"h2"),i.qc(157,"5. Plugins und Tools"),i.Nb(),i.Ob(158,"h3"),i.qc(159,"Google Web Fonts"),i.Nb(),i.Ob(160,"p"),i.qc(161,"Diese Seite nutzt zur einheitlichen Darstellung von Schriftarten so genannte Web Fonts, die von Google bereitgestellt werden. Beim Aufruf einer Seite l\xe4dt Ihr Browser die ben\xf6tigten Web Fonts in ihren Browsercache, um Texte und Schriftarten korrekt anzuzeigen."),i.Nb(),i.Ob(162,"p"),i.qc(163,"Zu diesem Zweck muss der von Ihnen verwendete Browser Verbindung zu den Servern von Google aufnehmen. Hierdurch erlangt Google Kenntnis dar\xfcber, dass \xfcber Ihre IP-Adresse diese Website aufgerufen wurde. Die Nutzung von Google WebFonts erfolgt auf Grundlage von Art. 6 Abs. 1 lit. f DSGVO. Der Webseitenbetreiber hat ein berechtigtes Interesse an der einheitlichen Darstellung des Schriftbildes auf seiner Webseite. Sofern eine entsprechende Einwilligung abgefragt wurde (z. B. eine Einwilligung zur Speicherung von Cookies), erfolgt die Verarbeitung ausschlie\xdflich auf Grundlage von Art. 6 Abs. 1 lit. a DSGVO; die Einwilligung ist jederzeit widerrufbar."),i.Nb(),i.Ob(164,"p"),i.qc(165,"Wenn Ihr Browser Web Fonts nicht unterst\xfctzt, wird eine Standardschrift von Ihrem Computer genutzt."),i.Nb(),i.Ob(166,"p"),i.qc(167,"Weitere Informationen zu Google Web Fonts finden Sie unter "),i.Ob(168,"a",10),i.qc(169,"https://developers.google.com/fonts/faq"),i.Nb(),i.qc(170," und in der Datenschutzerkl\xe4rung von Google: "),i.Ob(171,"a",11),i.qc(172,"https://policies.google.com/privacy?hl=de"),i.Nb(),i.qc(173,"."),i.Nb(),i.Ob(174,"h3"),i.qc(175,"Google Analytics"),i.Nb(),i.Ob(176,"p"),i.qc(177,"Nur wenn Sie das Tracking akzeptieren: Verwenden wir Google Analytics, um Besucher zu z\xe4hlen und den Verkehr auf dieser Website zu analysieren (mit IP-Anonymisierung)."),i.Nb(),i.Nb())}function E(e,t){1&e&&(i.Ob(0,"div"),i.Ob(1,"h1"),i.qc(2,"Data protection"),i.Nb(),i.Ob(3,"h2"),i.qc(4,"1. Data protection at a glance"),i.Nb(),i.Ob(5,"h3"),i.qc(6,"General information"),i.Nb(),i.Ob(7,"p"),i.qc(8,"The following information provides a simple overview of what happens to your personal data when you visit this website. Personal data are all data with which you can be personally identified. You can find detailed information on the subject of data protection in our data protection declaration below this text."),i.Nb(),i.Ob(9,"h3"),i.qc(10,"Data collection on this website"),i.Nb(),i.Ob(11,"p"),i.Ob(12,"strong"),i.qc(13,"Who is responsible for data collection on this website?"),i.Nb(),i.Nb(),i.Ob(14,"p"),i.qc(15,"The data processing on this website is carried out by the website operator. The contact email address is: gregor.biswanger@web-enliven.de."),i.Nb(),i.Ob(16,"p"),i.Ob(17,"strong"),i.qc(18,"How do we collect your data?"),i.Nb(),i.Nb(),i.Ob(19,"p"),i.qc(20,"On the one hand, your data is collected by you communicating it to us. This can be, for. For example, it is data that you enter in a contact form."),i.Nb(),i.Ob(21,"p"),i.qc(22,"Other data is automatically collected by our IT systems or with your consent when you visit the website. This is primarily technical data (e.g. internet browser, operating system or time of the page visit). This data is recorded automatically as soon as you enter this website."),i.Nb(),i.Ob(23,"p"),i.Ob(24,"strong"),i.qc(25,"What do we use your data for?"),i.Nb(),i.Nb(),i.Ob(26,"p"),i.qc(27,"Part of the data is collected to ensure that the website is provided correctly. Other data can be used to analyze your user behavior."),i.Nb(),i.Ob(28,"p"),i.Ob(29,"strong"),i.qc(30,"What rights do you have regarding your data?"),i.Nb(),i.Nb(),i.Ob(31,"p"),i.qc(32,"You have the right to receive information about the origin, recipient and purpose of your stored personal data free of charge at any time. You also have the right to request that this data be corrected or deleted. If you have given your consent to data processing, you can revoke this consent at any time for the future. You also have the right to request that the processing of your personal data be restricted in certain circumstances. You also have the right to lodge a complaint with the responsible supervisory authority."),i.Nb(),i.Ob(33,"p"),i.qc(34,"You can contact us at any time at the address given in the imprint if you have any further questions about data protection."),i.Nb(),i.Ob(35,"h3"),i.qc(36,"Analysis tools and third party tools"),i.Nb(),i.Ob(37,"p"),i.qc(38,"When you visit this website, your surfing behavior can be statistically evaluated. This is done primarily with cookies and with so-called analysis programs."),i.Nb(),i.Ob(39,"p"),i.qc(40,"Detailed information on these analysis programs can be found in the following data protection declaration."),i.Nb(),i.Ob(41,"h2"),i.qc(42,"2. Hosting and Content Delivery Networks (CDN)"),i.Nb(),i.Ob(43,"h3"),i.qc(44,"External hosting"),i.Nb(),i.Ob(45,"p"),i.qc(46,"The site is hosted on GitHub pages. GitHub Pages is a service of GitHub Inc. (88 Colin P. Kelly Jr. St. San Francisco, CA 94107, USA). The personal data collected on this website is stored on the hoster's servers. This can v. a. are IP addresses, contact requests, meta and communication data, contract data, contact details, names, website access and other data that are generated via a website."),i.Nb(),i.Ob(47,"p"),i.qc(48,"The host is used for the purpose of fulfilling the contract with our potential and existing customers (Art. 6 Para. 1 lit. b GDPR) and in the interest of a safe, fast and efficient provision of our online offer by a professional provider (Art. 6 Para 1 lit.f GDPR)."),i.Nb(),i.Ob(49,"p"),i.qc(50,"Our hoster will only process your data to the extent necessary to fulfill its performance obligations and to follow our instructions in relation to this data."),i.Nb(),i.Ob(51,"h2"),i.qc(52,"3. General information and mandatory information"),i.Nb(),i.Ob(53,"h3"),i.qc(54,"Privacy"),i.Nb(),i.Ob(55,"p"),i.qc(56,"The operators of these pages take the protection of your personal data very seriously. We treat your personal data confidentially and in accordance with the statutory data protection regulations and this data protection declaration."),i.Nb(),i.Ob(57,"p"),i.qc(58,"When you use this website, various personal data are collected. Personal data is data with which you can be personally identified. This data protection declaration explains what data we collect and what we use it for. It also explains how and for what purpose this is done."),i.Nb(),i.Ob(59,"p"),i.qc(60,"We would like to point out that data transmission over the Internet (e.g. when communicating by email) can have security gaps. It is not possible to completely protect data from third-party access."),i.Nb(),i.Ob(61,"h3"),i.qc(62,"Information about the responsible body"),i.Nb(),i.Ob(63,"p"),i.qc(64,"The responsible body for data processing on this website is:"),i.Nb(),i.Ob(65,"p"),i.qc(66,"Gregor Biswanger"),i.Mb(67,"br"),i.qc(68," Konrad-St\xf6r Str. 17"),i.Mb(69,"br"),i.qc(70," 90455 Nuremberg - Germany"),i.Nb(),i.Ob(71,"p"),i.qc(72,"E-Mail: gregor.biswanger@web-enliven.de"),i.Nb(),i.Ob(73,"p"),i.qc(74,"The responsible body is the natural or legal person who, alone or together with others, decides on the purposes and means of processing personal data (e.g. names, e-mail addresses, etc.)."),i.Nb(),i.Ob(75,"h3"),i.qc(76,"External links"),i.Nb(),i.Ob(77,"p"),i.qc(78,"This website contains links to external websites with different data protection regulations. We accept no responsibility for the correctness, legality or content of the external website or for the links below. Contact the external website for answers to questions about the content."),i.Nb(),i.Ob(79,"h3"),i.qc(80,"Revocation of your consent to data processing"),i.Nb(),i.Ob(81,"p"),i.qc(82,"Many data processing operations are only possible with your express consent. You can withdraw your consent at any time. An informal notification by email to us is sufficient. The legality of the data processing carried out before the revocation remains unaffected by the revocation."),i.Nb(),i.Ob(83,"h3"),i.qc(84,"Right to object to data collection in special cases and direct advertising (Art. 21 GDPR)"),i.Nb(),i.Ob(85,"p"),i.qc(86,"IF DATA PROCESSING IS BASED ON ART. 6 ABS. 1 LIT. E OR F GDPR, YOU HAVE THE RIGHT TO OBJECT TO THE PROCESSING OF YOUR PERSONAL DATA AT ANY TIME FOR REASONS FOR YOUR SPECIAL SITUATION; THIS ALSO APPLIES TO PROFILING BASED ON THESE PROVISIONS. THE RELEVANT LEGAL BASIS ON WHICH PROCESSING IS BASED IS TAKEN FROM THIS PRIVACY STATEMENT. IF YOU SUBJECT, WE WILL NO LESS PROCESS YOUR PERSONAL DATA, UNLESS WE CAN PROVIDE OBLIGATORY PROTECTIVE REASONS FOR THE PROCESSING THAT PROVIDES YOUR INTERESTS, RIGHTS AND DISCLAIMER, AND THE PROTECTED PROPERTY OPPOSITION UNDER ART. 21 (1) GDPR)."),i.Nb(),i.Ob(87,"p"),i.qc(88,"IF YOUR PERSONAL DATA IS PROCESSED TO OPERATE DIRECT ADVERTISING, YOU HAVE THE RIGHT TO OBJECT AT ANY TIME TO PROCESS YOUR PERSONAL DATA FOR THE PURPOSE OF SUCH ADVERTISING; THIS IS ALSO APPLICABLE TO PROFILING, AS FAR AS IT IS CONNECTED WITH SUCH DIRECT ADVERTISING. IF YOU OBJECT, YOUR PERSONAL DATA WILL NO LONGER BE USED FOR THE PURPOSE OF DIRECT ADVERTISING (OBLIGATION UNDER ART. 21 (2) GDPR)."),i.Nb(),i.Ob(89,"h3"),i.qc(90,"Beschwerderecht bei der zust\xe4ndigen Aufsichtsbeh\xf6rde"),i.Nb(),i.Ob(91,"p"),i.qc(92,"Right to lodge a complaint with the competent supervisory authority In the event of violations of the GDPR, the data subject has the right to lodge a complaint with a supervisory authority, in particular in the member state of their habitual residence, their place of work or the place of the alleged violation. The right to lodge a complaint is without prejudice to other administrative or judicial remedies."),i.Nb(),i.Ob(93,"h3"),i.qc(94,"Right to data portability"),i.Nb(),i.Ob(95,"p"),i.qc(96,"You have the right to have data that we process automatically based on your consent or in fulfillment of a contract handed over to you or to a third party in a common, machine-readable format. If you request the direct transfer of the data to another person responsible, this will only take place if it is technically feasible."),i.Nb(),i.Ob(97,"h3"),i.qc(98,"SSL or TLS encryption"),i.Nb(),i.Ob(99,"p"),i.qc(100,'For security reasons and to protect the transmission of confidential content, such as orders or inquiries that you send to us as the website operator, this page uses SSL or TLS encryption. You can recognize an encrypted connection by the fact that the address line of the browser changes from "http: //" to "https: //" and by the lock symbol in your browser line.'),i.Nb(),i.Ob(101,"p"),i.qc(102,"If SSL or TLS encryption is activated, the data that you transmit to us cannot be read by third parties."),i.Nb(),i.Ob(103,"h3"),i.qc(104,"Information, deletion and correction"),i.Nb(),i.Ob(105,"p"),i.qc(106,"Within the framework of the applicable legal provisions, you have the right to free information about your stored personal data, its origin and recipient and the purpose of data processing and, if necessary, the right to have this data corrected or deleted. You can contact us at any time at the address given in the imprint if you have any further questions on the subject of personal data."),i.Nb(),i.Ob(107,"h3"),i.qc(108,"Right to restriction of processing"),i.Nb(),i.Ob(109,"p"),i.qc(110,"You have the right to request that the processing of your personal data be restricted. You can contact us at any time at the address given in the imprint. The right to restrict processing exists in the following cases:"),i.Nb(),i.Ob(111,"ul"),i.Ob(112,"li"),i.qc(113,"If you contest the accuracy of your personal data stored by us, we usually need time to check this. For the duration of the examination, you have the right to request that the processing of your personal data be restricted."),i.Nb(),i.Ob(114,"li"),i.qc(115,"If the processing of your personal data happened / happens unlawfully, you can request the restriction of the data processing instead of the deletion."),i.Nb(),i.Ob(116,"li"),i.qc(117,"If we no longer need your personal data, but you need it to exercise, defend or assert legal claims, you have the right to request that the processing of your personal data be restricted instead of being deleted."),i.Nb(),i.Ob(118,"li"),i.qc(119,"If you have filed an objection in accordance with Art. 21 Para. 1 GDPR, you and our interests must be weighed up. As long as it is not clear whose interests outweigh the rights, you have the right to request that the processing of your personal data be restricted."),i.Nb(),i.Nb(),i.Ob(120,"p"),i.qc(121,"If you have restricted the processing of your personal data, this data - apart from its storage - may only be obtained with your consent or to assert, exercise or defend legal claims or to protect the rights of another natural or legal person or for reasons of important public interest the European Union or a Member State."),i.Nb(),i.Ob(122,"h2"),i.qc(123,"4. Social media"),i.Nb(),i.Ob(124,"h3"),i.qc(125,"Facebook plugins (Like & Share button)"),i.Nb(),i.Ob(126,"p"),i.qc(127,"Plugins from the social network Facebook are integrated on this website. This service is provided by Facebook Ireland Limited, 4 Grand Canal Square, Dublin 2, Ireland. According to Facebook, however, the data collected is also transferred to the USA and other third countries."),i.Nb(),i.Ob(128,"p"),i.qc(129,"You can recognize the Facebook plugins by the Facebook logo or the \u201cLike\u201d button on this website. An overview of the Facebook plugins can be found here: "),i.Ob(130,"a",12),i.qc(131,"https://developers.facebook.com/docs/plugins/?locale=de_DE"),i.Nb(),i.qc(132,"."),i.Nb(),i.Ob(133,"p"),i.qc(134,'When you visit this website, the plugin establishes a direct connection between your browser and the Facebook server. Facebook receives the information that you have visited this website with your IP address. If you click the Facebook "Like" button while you are logged into your Facebook account, you can link the content of this website to your Facebook profile. This enables Facebook to associate your visit to this website with your user account. We would like to point out that, as the provider of the website, we have no knowledge of the content of the data transmitted or how it is used by Facebook. You can find further information on this in Facebook\'s data protection declaration at: '),i.Ob(135,"a",13),i.qc(136,"https://en-en.facebook.com/privacy/explanation"),i.Nb(),i.qc(137,"."),i.Nb(),i.Ob(138,"p"),i.qc(139,"If you do not want Facebook to be able to assign your visit to this website to your Facebook user account, please log out of your Facebook user account."),i.Nb(),i.Ob(140,"p"),i.qc(141,"The Facebook plugins are used on the basis of Art. 6 Para. 1 lit. f GDPR. The website operator has a legitimate interest in the greatest possible visibility in social media. If a corresponding consent has been requested, the processing takes place exclusively on the basis of Art. 6 Para. 1 lit. a GDPR; the consent can be revoked at any time."),i.Nb(),i.Ob(142,"h3"),i.qc(143,"Twitter plugin"),i.Nb(),i.Ob(144,"p"),i.qc(145,'Functions of the Twitter service are integrated on this website. These functions are offered by Twitter Inc., 1355 Market Street, Suite 900, San Francisco, CA 94103, USA. By using Twitter and the "Re-Tweet" function, the websites you visit are linked to your Twitter account and made known to other users. This data is also transmitted to Twitter. We would like to point out that, as the provider of the website, we have no knowledge of the content of the data transmitted or how it is used by Twitter. Further information can be found in Twitter\'s data protection declaration at: '),i.Ob(146,"a",14),i.qc(147,"https://twitter.com/en/privacy"),i.Nb(),i.qc(148,"."),i.Nb(),i.Ob(149,"p"),i.qc(150,"The Twitter plug-in is used on the basis of Art. 6 Para. 1 lit. f GDPR. The website operator has a legitimate interest in the greatest possible visibility in social media. If a corresponding consent has been requested, the processing takes place exclusively on the basis of Art. 6 Para. 1 lit. a GDPR; the consent can be revoked at any time."),i.Nb(),i.Ob(151,"p"),i.qc(152,"You can change your data protection settings on Twitter in the account settings at "),i.Ob(153,"a",9),i.qc(154,"https://twitter.com/account/settings"),i.Nb(),i.qc(155," change."),i.Nb(),i.Ob(156,"h2"),i.qc(157,"5. Plugins and tools"),i.Nb(),i.Ob(158,"h3"),i.qc(159,"Google Web Fonts"),i.Nb(),i.Ob(160,"p"),i.qc(161,"This page uses so-called web fonts provided by Google for the uniform display of fonts. When you call up a page, your browser loads the required web fonts into your browser cache in order to display texts and fonts correctly."),i.Nb(),i.Ob(162,"p"),i.qc(163,"For this purpose, the browser you are using must connect to the Google servers. This gives Google knowledge that this website was accessed via your IP address. Google WebFonts are used on the basis of Art. 6 Para. 1 lit. f GDPR. The website operator has a legitimate interest in the uniform representation of the typeface on his website. If a corresponding consent has been requested (e.g. consent to the storage of cookies), the processing takes place exclusively on the basis of Art. 6 Para. 1 lit. a GDPR; the consent can be revoked at any time."),i.Nb(),i.Ob(164,"p"),i.qc(165,"If your browser does not support web fonts, a standard font will be used by your computer."),i.Nb(),i.Ob(166,"p"),i.qc(167,"Further information about Google Web Fonts can be found at "),i.Ob(168,"a",10),i.qc(169,"https://developers.google.com/fonts/faq"),i.Nb(),i.qc(170," and in Google's data protection declaration: "),i.Ob(171,"a",15),i.qc(172,"https://policies.google.com/privacy?hl=en"),i.Nb(),i.qc(173,"."),i.Nb(),i.Ob(174,"h3"),i.qc(175,"Google Analytics"),i.Nb(),i.Ob(176,"p"),i.qc(177,"Only if you accept the tracking: We use Google Analytics to count visitors and analyze the traffic on this website (with IP anonymization)."),i.Nb(),i.Nb())}var T,w,A,N,P=[{path:"",component:c.a,children:[{path:"",redirectTo:"subscribe",pathMatch:"full"},{path:"subscribe",component:x},{path:"subscribe-next",loadChildren:function(){return n.e(16).then(n.bind(null,"olly")).then(function(e){return e.SubscribeNextModule})}},{path:"distinct",loadChildren:function(){return n.e(5).then(n.bind(null,"Vwex")).then(function(e){return e.DistinctModule})}},{path:"take",loadChildren:function(){return n.e(18).then(n.bind(null,"S4iM")).then(function(e){return e.TakeModule})}},{path:"filter",loadChildren:function(){return n.e(8).then(n.bind(null,"xp0b")).then(function(e){return e.FilterModule})}},{path:"map",loadChildren:function(){return n.e(9).then(n.bind(null,"7Qxo")).then(function(e){return e.MapModule})}},{path:"filter-map-take",loadChildren:function(){return n.e(7).then(n.bind(null,"lrJ0")).then(function(e){return e.FilterMapTakeModule})}},{path:"distinctuntilchanged",loadChildren:function(){return n.e(6).then(n.bind(null,"eyxc")).then(function(e){return e.DistinctuntilchangedModule})}},{path:"skip",loadChildren:function(){return n.e(14).then(n.bind(null,"KdnK")).then(function(e){return e.SkipModule})}},{path:"skip-take-map",loadChildren:function(){return n.e(13).then(n.bind(null,"zcjo")).then(function(e){return e.SkipTakeMapModule})}},{path:"merge",loadChildren:function(){return n.e(10).then(n.bind(null,"LCGD")).then(function(e){return e.MergeModule})}},{path:"take-last",loadChildren:function(){return n.e(17).then(n.bind(null,"0/Qz")).then(function(e){return e.TakeLastModule})}},{path:"skip-last",loadChildren:function(){return n.e(12).then(n.bind(null,"lJ+N")).then(function(e){return e.SkipLastModule})}},{path:"skiplast-skip-merge",loadChildren:function(){return n.e(15).then(n.bind(null,"7rQJ")).then(function(e){return e.SkiplastSkipMergeModule})}},{path:"zip-concatmap",loadChildren:function(){return n.e(19).then(n.bind(null,"Gw2Q")).then(function(e){return e.ZipConcatmapModule})}},{path:"repeat",loadChildren:function(){return n.e(11).then(n.bind(null,"ydX6")).then(function(e){return e.RepeatModule})}}]},{path:"privacy",component:(w=function(){function e(t,n){_classCallCheck(this,e),this.localStorageService=t,this.translate=n,this.currentLanguage=""}return _createClass(e,[{key:"ngOnInit",value:function(){this.translate.addLangs(["en","de"]),this.translate.setDefaultLang("en");var e=this.localStorageService.loadSelectedLanguage();if(e)this.translate.use(e);else{var t=this.translate.getBrowserLang();this.translate.use(t.match(/en|de/)?t:"en")}this.currentLanguage=this.translate.currentLang}}]),e}(),w.\u0275fac=function(e){return new(e||w)(i.Lb(D.a),i.Lb(_.d))},w.\u0275cmp=i.Fb({type:w,selectors:[["app-privacy"]],decls:8,vars:2,consts:[[1,"privacy"],["fxLayout",""],["src","assets/Rx_Logo_S.png","alt","RxJS Logo",1,"logo"],[1,"title"],[4,"ngIf"],["showBanner","true"],["href","https://developers.facebook.com/docs/plugins/?locale=de_DE","target","_blank","rel","noopener noreferrer"],["href","https://de-de.facebook.com/privacy/explanation","target","_blank","rel","noopener noreferrer"],["href","https://twitter.com/de/privacy","target","_blank","rel","noopener noreferrer"],["href","https://twitter.com/account/settings","target","_blank","rel","noopener noreferrer"],["href","https://developers.google.com/fonts/faq","target","_blank","rel","noopener noreferrer"],["href","https://policies.google.com/privacy?hl=de","target","_blank","rel","noopener noreferrer"],["href","https://developers.facebook.com/docs/plugins/?locale=en_EN","target","_blank","rel","noopener noreferrer"],["href","https://en-us.facebook.com/privacy/explanation","target","_blank","rel","noopener noreferrer"],["href","https://twitter.com/en/privacy","target","_blank","rel","noopener noreferrer"],["href","https://policies.google.com/privacy?hl=en","target","_blank","rel","noopener noreferrer"]],template:function(e,t){1&e&&(i.Ob(0,"div",0),i.Ob(1,"div",1),i.Mb(2,"img",2),i.Ob(3,"h1",3),i.qc(4,"RxJS-fruits"),i.Nb(),i.Nb(),i.pc(5,k,178,0,"div",4),i.pc(6,E,178,0,"div",4),i.Nb(),i.Mb(7,"app-cookie-banner",5)),2&e&&(i.Bb(5),i.fc("ngIf","de"===t.currentLanguage),i.Bb(1),i.fc("ngIf","de"!==t.currentLanguage))},directives:[C.c,d.j,S.a],styles:[".title[_ngcontent-%COMP%]{margin:.5rem 10px 0;font-size:30px;display:inline;vertical-align:middle}.logo[_ngcontent-%COMP%]{width:5%;vertical-align:bottom}.privacy[_ngcontent-%COMP%]{margin:50px 150px}"]}),w)},{path:"**",component:(T=function(){function e(t){_classCallCheck(this,e),this.router=t}return _createClass(e,[{key:"goToHomepage",value:function(){this.router.navigate([""])}},{key:"ngOnDestroy",value:function(){document.defaultView.location.reload()}}]),e}(),T.\u0275fac=function(e){return new(e||T)(i.Lb(s.b))},T.\u0275cmp=i.Fb({type:T,selectors:[["app-not-found"]],decls:10,vars:0,consts:[[1,"page",3,"click"],[1,"not-found"]],template:function(e,t){1&e&&(i.Ob(0,"div",0),i.Wb("click",function(){return t.goToHomepage()}),i.Ob(1,"h1"),i.qc(2,"LOOKS LIKE THIS PAGE GOT LOST IN THE MATRIX."),i.Nb(),i.Ob(3,"h3"),i.qc(4,"YOU TAKE THE BLUE PILL, THE STORY ENDS, YOU END UP ON OUR HOMEPAGE, AND BELIEVE WHATEVER YOU WANT TO BELIEVE."),i.Mb(5,"br"),i.qc(6," YOU TAKE THE RED PILL, YOU STAY IN WONDERLAND, AND I SHOW YOU HOW DEEP YOUR PREPS CAN GO."),i.Nb(),i.Ob(7,"div",1),i.Ob(8,"span"),i.qc(9,"404"),i.Nb(),i.Nb(),i.Nb())},styles:["html{background:url(/assets/images/404/matrix-red-blue.jpg) no-repeat 50% fixed;background-size:cover}body{background-color:transparent;color:#00ff41;cursor:pointer}h1,h3{text-align:center}h3{margin-left:5%;margin-right:5%}span{font-size:52pt;vertical-align:middle}.not-found{display:flex;align-items:center;justify-content:center;width:100%;height:50%}.page{width:100%;height:100%}"],encapsulation:2}),T)}],O=((N=function e(){_classCallCheck(this,e)}).\u0275mod=i.Jb({type:N}),N.\u0275inj=i.Ib({factory:function(e){return new(e||N)},imports:[[s.d.forRoot(P,{relativeLinkResolution:"legacy"})],s.d]}),N),F=((A=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||A)},A.\u0275cmp=i.Fb({type:A,selectors:[["app-root"]],decls:1,vars:0,template:function(e,t){1&e&&i.Mb(0,"router-outlet")},directives:[s.e],styles:[""]}),A),I=n("PCNd"),M=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";_classCallCheck(this,e),this.http=t,this.prefix=n,this.suffix=r}return _createClass(e,[{key:"getTranslation",value:function(e){return this.http.get("".concat(this.prefix).concat(e).concat(this.suffix))}}]),e}();function L(e){return new M(e)}var R,B=((R=function e(){_classCallCheck(this,e)}).\u0275mod=i.Jb({type:R}),R.\u0275inj=i.Ib({factory:function(e){return new(e||R)},imports:[[o.b,_.b.forRoot({loader:{provide:_.a,useFactory:L,deps:[o.a]}})],_.b]}),R),j=n("8ok5"),U=n("/q54"),z=n("ura0");n("8LU1"),new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var J,V=((J=function e(){_classCallCheck(this,e)}).\u0275mod=i.Jb({type:J}),J.\u0275inj=i.Ib({factory:function(e){return new(e||J)},imports:[[U.c]]}),J);new i.P("11.0.0-beta.33");var W,q,K=((W=function(){function e(t,n){_classCallCheck(this,e),Object(d.q)(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return _createClass(e,null,[{key:"withConfig",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:e,providers:t.serverLoaded?[{provide:U.e,useValue:Object.assign(Object.assign({},U.d),t)},{provide:U.a,useValue:n,multi:!0},{provide:U.g,useValue:!0}]:[{provide:U.e,useValue:Object.assign(Object.assign({},U.d),t)},{provide:U.a,useValue:n,multi:!0}]}}}]),e}()).\u0275mod=i.Jb({type:W}),W.\u0275inj=i.Ib({factory:function(e){return new(e||W)(i.Sb(U.g),i.Sb(i.C))},imports:[[C.d,z.b,V],C.d,z.b,V]}),W),H=n("srUL"),G=n("omvX"),Q=n("iELJ"),X=((q=function e(){_classCallCheck(this,e)}).\u0275mod=i.Jb({type:q,bootstrap:[F]}),q.\u0275inj=i.Ib({factory:function(e){return new(e||q)},imports:[[r.a,a.a,j.c,K,o.b,O,I.a,B,H.b.forRoot({gst:{trackingIds:["UA-163429136-1"],anonymizeIp:!0}}),G.b,Q.e]]}),q),Y=n("AytR"),Z=n("z/o8"),$=n("nOaX");Z.a.registerPlugin($.a),Y.a.production&&Object(i.T)(),r.c().bootstrapModule(X).catch(function(e){return console.error(e)})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"},zx2A:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return c});var r=n("7o/Q"),i=n("HDdC"),a=n("SeVD"),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).parent=e,r}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(r.a),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(r.a);function c(e,t){if(!t.closed)return e instanceof i.a?e.subscribe(t):Object(a.a)(e)(t)}}},[[0,0]]])})(); \ No newline at end of file