4 | !function(e){"use strict";"undefined"==typeof globalThis&&("undefined"!=typeof self?self.globalThis=self:"undefined"!=typeof window?window.globalThis=window:"undefined"!=typeof global&&(global.globalThis=global));const t=globalThis.Buffer||{},r=globalThis.process||{};r.argv||(r.argv=[""]);let n="/";if(r.cwd||(r.cwd=()=>n),r.chdir||(r.chdir=e=>n=e),!r.nextTick){const e=Promise.resolve();r.nextTick=t=>e.then(t)}r.platform||(r.platform="stencil"),r.version||(r.version="v12.0.0"),r.browser=!!globalThis.location;const i=!("undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),a=!("win32"===(i?r.platform:"")),o="undefined"!=typeof location&&"undefined"!=typeof navigator&&"undefined"!=typeof XMLHttpRequest,s=o&&"undefined"!=typeof self&&"function"==typeof self.importScripts,c=o&&"function"==typeof Worker,l="function"==typeof fetch,d=i?require:()=>{},u=i?r.cwd:()=>"/";r.browser=!i;const p={};var _,f=(void 0,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}),m=(void 0,function(){return(m=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}),g=(void 0,(e,t)=>(Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e)),h=(void 0,function(e,t){var r,n,i,a,o={label:0,sent(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return s=>(a=>{if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}})([a,s])}}),y=(void 0,(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);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}),v=(void 0,_=(e,t)=>(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&((e,t)=>{e.__proto__=t})||((e,t)=>{for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}_(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});!function(e){function t(){var e={};return e.prev=e,{head:e,tail:e,size:0}}function r(e,t){return e===t||e!=e&&t!=t}function n(e){var t=e.prev;if(!t||t===e)throw new Error("Illegal state");return t}function i(e){for(;e;){var t=!e.prev;if(e=e.next,!t)return e}}function a(e,t){for(var i=e.tail;i!==e.head;i=n(i))if(r(i.key,t))return i}function o(e,t,r){var n=a(e,t);if(!n){var i=((e,t)=>({key:e,value:t,next:void 0,prev:void 0}))(t,r);return i.prev=e.tail,e.tail.next=i,e.tail=i,e.size++,i}n.value=r}function s(e,t){for(var i=e.tail;i!==e.head;i=n(i)){if(void 0===i.prev)throw new Error("Illegal state");if(r(i.key,t)){if(i.next)i.next.prev=i.prev;else{if(e.tail!==i)throw new Error("Illegal state");e.tail=i.prev}return i.prev.next=i.next,i.next=i.prev,i.prev=void 0,e.size--,i}}}function c(e){for(var t=e.tail;t!==e.head;){var r=n(t);t.next=e.head,t.prev=void 0,t=r}e.head.next=void 0,e.tail=e.head,e.size=0}function l(e,t){for(var r=e.head;r;)(r=i(r))&&t(r.value,r.key)}function d(e,t){if(e)for(var r=e.next();!r.done;r=e.next())t(r.value)}function u(e,t){return{current:e.head,selector:t}}function p(e){return e.current=i(e.current),e.current?{value:e.selector(e.current.key,e.current.value),done:!1}:{value:void 0,done:!0}}var _;(_=e.ShimCollections||(e.ShimCollections={})).createMapShim=function(e){var r=function(){function e(e,t){this._data=u(e,t)}return e.prototype.next=function(){return p(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),d(e(r),(e=>{var t=e[0],r=e[1];return n.set(t,r)}))}return Object.defineProperty(n.prototype,"size",{get(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.get=function(e){var t;return null===(t=a(this._mapData,e))||void 0===t?void 0:t.value},n.prototype.set=function(e,t){return o(this._mapData,e,t),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,((e,t)=>e))},n.prototype.values=function(){return new r(this._mapData,((e,t)=>t))},n.prototype.entries=function(){return new r(this._mapData,((e,t)=>[e,t]))},n.prototype.forEach=function(e){l(this._mapData,e)},n}()},_.createSetShim=function(e){var r=function(){function e(e,t){this._data=u(e,t)}return e.prototype.next=function(){return p(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),d(e(r),(e=>n.add(e)))}return Object.defineProperty(n.prototype,"size",{get(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.add=function(e){return o(this._mapData,e,e),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,((e,t)=>e))},n.prototype.values=function(){return new r(this._mapData,((e,t)=>t))},n.prototype.entries=function(){return new r(this._mapData,((e,t)=>[e,t]))},n.prototype.forEach=function(e){l(this._mapData,e)},n}()}}(p),(e=>{var t,r;function n(r,n,i){var a,o=null!==(a=t[n]())&&void 0!==a?a:null===e.ShimCollections||void 0===e.ShimCollections?void 0:e.ShimCollections[i](e.getIterator);if(o)return o;throw new Error("TypeScript requires an environment that provides a compatible native ".concat(r," implementation."))}e.versionMajorMinor="4.8",e.version="4.8.4",(r=e.Comparison||(e.Comparison={}))[r.LessThan=-1]="LessThan",r[r.EqualTo=0]="EqualTo",r[r.GreaterThan=1]="GreaterThan",(e=>{var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0;e.tryGetNativeMap=()=>{var e=null==t?void 0:t.Map;return void 0!==e&&"entries"in e.prototype&&1===new e([[0,0]]).size?e:void 0},e.tryGetNativeSet=()=>{var e=null==t?void 0:t.Set;return void 0!==e&&"entries"in e.prototype&&1===new e([0]).size?e:void 0}})(t||(t={})),e.Map=n("Map","tryGetNativeMap","createMapShim"),e.Set=n("Set","tryGetNativeSet","createSetShim")})(p),function(e){function t(e,t,r){if(void 0===r&&(r=I),e)for(var n=0,i=e;n<i.length;n++)if(r(i[n],t))return!0;return!1}function r(e,t){if(e){if(!t)return e.length>0;for(var r=0,n=e;r<n.length;r++)if(t(n[r]))return!0}return!1}function n(e,t){return r(t)?r(e)?f(f([],e,!0),t,!0):t:e}function i(e,t){return t}function a(e){return e.map(i)}function o(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function s(e,t){return t<0?e.length+t:t}function c(e,t,r,n){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(r,n);r=void 0===r?0:s(t,r),n=void 0===n?t.length:s(t,n);for(var i=r;i<n&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function l(e,r,n){return!t(e,r,n)&&(e.push(r),!0)}function d(e,t,r){t.sort(((t,n)=>r(e[t],e[n])||M(t,n)))}function u(e,t){return 0===e.length?e:e.slice().sort(t)}function p(e){var t=0;return{next:()=>t===e.length?{value:void 0,done:!0}:(t++,{value:e[t-1],done:!1})}}function _(e,t,r,n,i){return m(e,r(t),r,n,i)}function m(e,t,n,i,a){if(!r(e))return-1;for(var o=a||0,s=e.length-1;o<=s;){var c=o+(s-o>>1);switch(i(n(e[c],c),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function g(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.getIterator=t=>{if(t){if(C(t))return p(t);if(t instanceof e.Map)return t.entries();if(t instanceof e.Set)return t.values();throw new Error("Iteration not supported.")}},e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.length=e=>e?e.length:0,e.forEach=(e,t)=>{if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}},e.forEachRight=(e,t)=>{if(e)for(var r=e.length-1;r>=0;r--){var n=t(e[r],r);if(n)return n}},e.firstDefined=(e,t)=>{if(void 0!==e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(void 0!==n)return n}},e.firstDefinedIterator=(e,t)=>{for(;;){var r=e.next();if(r.done)return;var n=t(r.value);if(void 0!==n)return n}},e.reduceLeftIterator=(e,t,r)=>{var n=r;if(e)for(var i=e.next(),a=0;!i.done;i=e.next(),a++)n=t(n,i.value,a);return n},e.zipWith=(t,r,n)=>{var i=[];e.Debug.assertEqual(t.length,r.length);for(var a=0;a<t.length;a++)i.push(n(t[a],r[a],a));return i},e.zipToIterator=(t,r)=>{e.Debug.assertEqual(t.length,r.length);var n=0;return{next:()=>n===t.length?{value:void 0,done:!0}:(n++,{value:[t[n-1],r[n-1]],done:!1})}},e.zipToMap=(t,r)=>{e.Debug.assert(t.length===r.length);for(var n=new e.Map,i=0;i<t.length;++i)n.set(t[i],r[i]);return n},e.intersperse=(e,t)=>{if(e.length<=1)return e;for(var r=[],n=0,i=e.length;n<i;n++)n&&r.push(t),r.push(e[n]);return r},e.every=(e,t)=>{if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0},e.find=(e,t,r)=>{if(void 0!==e)for(var n=null!=r?r:0;n<e.length;n++){var i=e[n];if(t(i,n))return i}},e.findLast=(e,t,r)=>{if(void 0!==e)for(var n=null!=r?r:e.length-1;n>=0;n--){var i=e[n];if(t(i,n))return i}},e.findIndex=(e,t,r)=>{if(void 0===e)return-1;for(var n=null!=r?r:0;n<e.length;n++)if(t(e[n],n))return n;return-1},e.findLastIndex=(e,t,r)=>{if(void 0===e)return-1;for(var n=null!=r?r:e.length-1;n>=0;n--)if(t(e[n],n))return n;return-1},e.findMap=(t,r)=>{for(var n=0;n<t.length;n++){var i=r(t[n],n);if(i)return i}return e.Debug.fail()},e.contains=t,e.arraysEqual=(e,t,r)=>(void 0===r&&(r=I),e.length===t.length&&e.every(((e,n)=>r(e,t[n])))),e.indexOfAnyCharCode=(e,r,n)=>{for(var i=n||0;i<e.length;i++)if(t(r,e.charCodeAt(i)))return i;return-1},e.countWhere=(e,t)=>{var r=0;if(e)for(var n=0;n<e.length;n++)t(e[n],n)&&r++;return r},e.filter=(e,t)=>{if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var i=e.slice(0,n);for(n++;n<r;){var a=e[n];t(a)&&i.push(a),n++}return i}}return e},e.filterMutate=(e,t)=>{for(var r=0,n=0;n<e.length;n++)t(e[n],n,e)&&(e[r]=e[n],r++);e.length=r},e.clear=e=>{e.length=0},e.map=(e,t)=>{var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r},e.mapIterator=(e,t)=>({next(){var r=e.next();return r.done?r:{value:t(r.value),done:!1}}}),e.sameMap=(e,t)=>{if(e)for(var r=0;r<e.length;r++){var n=e[r],i=t(n,r);if(n!==i){var a=e.slice(0,r);for(a.push(i),r++;r<e.length;r++)a.push(t(e[r],r));return a}}return e},e.flatten=e=>{for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];i&&(C(i)?c(t,i):t.push(i))}return t},e.flatMap=(t,r)=>{var n;if(t)for(var i=0;i<t.length;i++){var a=r(t[i],i);a&&(n=C(a)?c(n,a):o(n,a))}return n||e.emptyArray},e.flatMapToMutable=(e,t)=>{var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);i&&(C(i)?c(r,i):r.push(i))}return r},e.flatMapIterator=(t,r)=>{var n=t.next();if(n.done)return e.emptyIterator;var i=a(n.value);return{next(){for(;;){var e=i.next();if(!e.done)return e;var r=t.next();if(r.done)return r;i=a(r.value)}}};function a(t){var n=r(t);return void 0===n?e.emptyIterator:C(n)?p(n):n}},e.sameFlatMap=(e,t)=>{var r;if(e)for(var n=0;n<e.length;n++){var i=e[n],a=t(i,n);(r||i!==a||C(a))&&(r||(r=e.slice(0,n)),C(a)?c(r,a):r.push(a))}return r||e},e.mapAllOrFail=(e,t)=>{for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);if(void 0===i)return;r.push(i)}return r},e.mapDefined=(e,t)=>{var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);void 0!==i&&r.push(i)}return r},e.mapDefinedIterator=(e,t)=>({next(){for(;;){var r=e.next();if(r.done)return r;var n=t(r.value);if(void 0!==n)return{value:n,done:!1}}}}),e.mapDefinedEntries=(t,r)=>{if(t){var n=new e.Map;return t.forEach(((e,t)=>{var i=r(t,e);if(void 0!==i){var a=i[0],o=i[1];void 0!==a&&void 0!==o&&n.set(a,o)}})),n}},e.mapDefinedValues=(t,r)=>{if(t){var n=new e.Set;return t.forEach((e=>{var t=r(e);void 0!==t&&n.add(t)})),n}},e.getOrUpdate=(e,t,r)=>{if(e.has(t))return e.get(t);var n=r();return e.set(t,n),n},e.tryAddToSet=(e,t)=>!e.has(t)&&(e.add(t),!0),e.emptyIterator={next:()=>({value:void 0,done:!0})},e.singleIterator=e=>{var t=!1;return{next(){var r=t;return t=!0,r?{value:void 0,done:!0}:{value:e,done:!1}}}},e.spanMap=(e,t,r)=>{var n;if(e){n=[];for(var i=e.length,a=void 0,o=void 0,s=0,c=0;s<i;){for(;c<i;){if(o=t(e[c],c),0===c)a=o;else if(o!==a)break;c++}if(s<c){var l=r(e.slice(s,c),a,s,c);l&&n.push(l),s=c}a=o,c++}}return n},e.mapEntries=(t,r)=>{if(t){var n=new e.Map;return t.forEach(((e,t)=>{var i=r(t,e),a=i[0],o=i[1];n.set(a,o)})),n}},e.some=r,e.getRangesWhere=(e,t,r)=>{for(var n,i=0;i<e.length;i++)t(e[i])?n=void 0===n?i:n:void 0!==n&&(r(n,i),n=void 0);void 0!==n&&r(n,e.length)},e.concatenate=n,e.indicesOf=a,e.deduplicate=(e,t,r)=>0===e.length?[]:1===e.length?e.slice():r?((e,t,r)=>{var n=a(e);d(e,n,r);for(var i=e[n[0]],o=[n[0]],s=1;s<n.length;s++){var c=n[s],l=e[c];t(i,l)||(o.push(c),i=l)}return o.sort(),o.map((t=>e[t]))})(e,t,r):((e,t)=>{for(var r=[],n=0,i=e;n<i.length;n++)l(r,i[n],t);return r})(e,t),e.createSortedArray=()=>[],e.insertSorted=(e,t,r,n)=>{if(0!==e.length){var i=_(e,t,k,r);i<0?e.splice(~i,0,t):n&&e.splice(i,0,t)}else e.push(t)},e.sortAndDeduplicate=(t,r,n)=>((t,r)=>{if(0===t.length)return e.emptyArray;for(var n=t[0],i=[n],a=1;a<t.length;a++){var o=t[a];switch(r(o,n)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}i.push(n=o)}return i})(u(t,r),n||r||L),e.arrayIsSorted=(e,t)=>{if(e.length<2)return!0;for(var r=e[0],n=0,i=e.slice(1);n<i.length;n++){var a=i[n];if(1===t(r,a))return!1;r=a}return!0},e.arrayIsEqualTo=(e,t,r)=>{if(void 0===r&&(r=I),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r(e[n],t[n],n))return!1;return!0},e.compact=e=>{var t;if(e)for(var r=0;r<e.length;r++){var n=e[r];!t&&n||(t||(t=e.slice(0,r)),n&&t.push(n))}return t||e},e.relativeComplement=(t,r,n)=>{if(!r||!t||0===r.length||0===t.length)return r;var i=[];e:for(var a=0,o=0;o<r.length;o++){o>0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;a<t.length;a++)switch(a>s&&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=(e,t)=>{for(var r=0,n=0,i=e;n<i.length;n++)r+=i[n][t];return r},e.append=o,e.combine=(e,t)=>void 0===e?t:void 0===t?e:C(e)?C(t)?n(e,t):o(e,t):C(t)?o(t,e):[e,t],e.addRange=c,e.pushIfUnique=l,e.appendIfUnique=(e,t,r)=>e?(l(e,t,r),e):[t],e.sort=u,e.arrayIterator=p,e.arrayReverseIterator=e=>{var t=e.length;return{next:()=>0===t?{value:void 0,done:!0}:(t--,{value:e[t],done:!1})}},e.stableSort=(e,t)=>{var r=a(e);return d(e,r,t),r.map((t=>e[t]))},e.rangeEquals=(e,t,r,n)=>{for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0},e.elementAt=(e,t)=>{if(e&&(t=s(e,t))<e.length)return e[t]},e.firstOrUndefined=e=>void 0===e||0===e.length?void 0:e[0],e.first=t=>(e.Debug.assert(0!==t.length),t[0]),e.lastOrUndefined=e=>void 0===e||0===e.length?void 0:e[e.length-1],e.last=t=>(e.Debug.assert(0!==t.length),t[t.length-1]),e.singleOrUndefined=e=>e&&1===e.length?e[0]:void 0,e.singleOrMany=e=>e&&1===e.length?e[0]:e,e.replaceElement=(e,t,r)=>{var n=e.slice(0);return n[t]=r,n},e.binarySearch=_,e.binarySearchKey=m,e.reduceLeft=g;var h=Object.prototype.hasOwnProperty;function y(e,t){return h.call(e,t)}function v(e){var t=[];for(var r in e)h.call(e,r)&&t.push(r);return t}e.hasProperty=y,e.getProperty=(e,t)=>h.call(e,t)?e[t]:void 0,e.getOwnKeys=v,e.getAllKeys=e=>{var t=[];do{for(var r=0,n=Object.getOwnPropertyNames(e);r<n.length;r++)l(t,n[r])}while(e=Object.getPrototypeOf(e));return t},e.getOwnValues=e=>{var t=[];for(var r in e)h.call(e,r)&&t.push(e[r]);return t};var b=Object.entries||(e=>{for(var t=v(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=[t[n],e[t[n]]];return r});function E(e,t){for(var r=[],n=e.next();!n.done;n=e.next())r.push(t?t(n.value):n.value);return r}function x(e,t,r){void 0===r&&(r=k);for(var n=D(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function D(){var t=new e.Map;return t.add=S,t.remove=T,t}function S(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function T(e,t){var r=this.get(e);r&&(K(r,t),r.length||this.delete(e))}function C(e){return Array.isArray?Array.isArray(e):e instanceof Array}function A(e){}function k(e){return e}function N(e){return e.toLowerCase()}e.getEntries=e=>e?b(e):[],e.arrayOf=(e,t)=>{for(var r=new Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.arrayFrom=E,e.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var a=i[n];if(void 0!==a)for(var o in a)y(a,o)&&(e[o]=a[o])}return e},e.equalOwnProperties=(e,t,r)=>{if(void 0===r&&(r=I),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(h.call(e,n)){if(!h.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(h.call(t,n)&&!h.call(e,n))return!1;return!0},e.arrayToMap=(t,r,n)=>{void 0===n&&(n=k);for(var i=new e.Map,a=0,o=t;a<o.length;a++){var s=o[a],c=r(s);void 0!==c&&i.set(c,n(s))}return i},e.arrayToNumericMap=(e,t,r)=>{void 0===r&&(r=k);for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n},e.arrayToMultiMap=x,e.group=(e,t,r)=>(void 0===r&&(r=k),E(x(e,t).values(),r)),e.clone=e=>{var t={};for(var r in e)h.call(e,r)&&(t[r]=e[r]);return t},e.extend=(e,t)=>{var r={};for(var n in t)h.call(t,n)&&(r[n]=t[n]);for(var n in e)h.call(e,n)&&(r[n]=e[n]);return r},e.copyProperties=(e,t)=>{for(var r in t)h.call(t,r)&&(e[r]=t[r])},e.maybeBind=(e,t)=>t?t.bind(e):void 0,e.createMultiMap=D,e.createUnderscoreEscapedMultiMap=()=>D(),e.createQueue=e=>{var t=(null==e?void 0:e.slice())||[],r=0;function n(){return r===t.length}return{enqueue(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.push.apply(t,e)},dequeue(){if(n())throw new Error("Queue is empty");var e=t[r];if(t[r]=void 0,++r>100&&r>t.length>>1){var i=t.length-r;t.copyWithin(0,r),t.length=i,r=0}return e},isEmpty:n}},e.createSet=function(r,n){var i=new e.Map,a=0;function o(){var e,t=i.values();return{next(){for(;;)if(e){if(!(r=e.next()).done)return{value:r.value};e=void 0}else{var r;if((r=t.next()).done)return{value:void 0,done:!0};if(!C(r.value))return{value:r.value};e=p(r.value)}}}}return{has(e){var t=r(e);if(!i.has(t))return!1;var a=i.get(t);if(!C(a))return n(a,e);for(var o=0,s=a;o<s.length;o++){var c=s[o];if(n(c,e))return!0}return!1},add(e){var o=r(e);if(i.has(o)){var s=i.get(o);if(C(s))t(s,e,n)||(s.push(e),a++);else{var c=s;n(c,e)||(i.set(o,[c,e]),a++)}}else i.set(o,e),a++;return this},delete(e){var t=r(e);if(!i.has(t))return!1;var o=i.get(t);if(C(o)){for(var s=0;s<o.length;s++)if(n(o[s],e))return 1===o.length?i.delete(t):2===o.length?i.set(t,o[1-s]):W(o,s),a--,!0}else if(n(o,e))return i.delete(t),a--,!0;return!1},clear(){i.clear(),a=0},get size(){return a},forEach(e){for(var t=0,r=E(i.values());t<r.length;t++){var n=r[t];if(C(n))for(var a=0,o=n;a<o.length;a++){var s;e(s=o[a],s)}else e(s=n,s)}},keys:()=>o(),values:()=>o(),entries(){var e=o();return{next(){var t=e.next();return t.done?t:{value:[t.value,t.value]}}}}}},e.isArray=C,e.toArray=e=>C(e)?e:[e],e.isString=e=>"string"==typeof e,e.isNumber=e=>"number"==typeof e,e.tryCast=(e,t)=>void 0!==e&&t(e)?e:void 0,e.cast=(t,r)=>void 0!==t&&r(t)?t:e.Debug.fail("Invalid cast. The supplied value ".concat(t," did not pass the test '").concat(e.Debug.getFunctionName(r),"'.")),e.noop=A,e.noopPush={push:A,length:0},e.returnFalse=()=>!1,e.returnTrue=()=>!0,e.returnUndefined=()=>{},e.identity=k,e.toLowerCase=N;var w,F=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function P(e){return F.test(e)?e.replace(F,N):e}function I(e,t){return e===t}function O(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function M(e,t){return O(e,t)}function R(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function L(e,t){return O(e,t)}e.toFileNameLowerCase=P,e.notImplemented=()=>{throw new Error("Not implemented")},e.memoize=e=>{var t;return()=>(e&&(t=e(),e=void 0),t)},e.memoizeOne=t=>{var r=new e.Map;return e=>{var n="".concat(typeof e,":").concat(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;o<arguments.length;o++)a[o]=arguments[o];return e=>g(a,((e,t)=>t(e)),e)}return n?i=>n(r(t(e(i)))):r?n=>r(t(e(n))):t?r=>t(e(r)):e?t=>e(t):e=>e},(w=e.AssertionLevel||(e.AssertionLevel={}))[w.None=0]="None",w[w.Normal=1]="Normal",w[w.Aggressive=2]="Aggressive",w[w.VeryAggressive=3]="VeryAggressive",e.equateValues=I,e.equateStringsCaseInsensitive=(e,t)=>e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase(),e.equateStringsCaseSensitive=(e,t)=>I(e,t),e.compareValues=M,e.compareTextSpans=(e,t)=>M(null==e?void 0:e.start,null==t?void 0:t.start)||M(null==e?void 0:e.length,null==t?void 0:t.length),e.min=(e,t,r)=>-1===r(e,t)?e:t,e.compareStringsCaseInsensitive=R,e.compareStringsCaseSensitive=L,e.getStringComparer=e=>e?R:L;var B,U,j=(()=>{var e,t,r="object"==typeof Intl&&"function"==typeof Intl.Collator?e=>{var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return(e,r)=>n(e,r,t)}:"function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0?e=>{return void 0!==e?i():(e,r)=>n(e,r,t);function t(e,t){return e.localeCompare(t)}}:i;return n=>void 0===n?e||(e=r(n)):"en-US"===n?t||(t=r(n)):r(n);function n(e,t,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var n=r(e,t);return n<0?-1:n>0?1:0}function i(){return(t,r)=>n(t,r,e);function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return e<t?-1:e>t?1:0}}})();function V(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+.01,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>r?o-r:1),l=Math.floor(t.length>r+o?r+o:t.length);i[0]=o;for(var d=o,u=1;u<c;u++)i[u]=a;for(u=c;u<=l;u++){var p=e[o-1].toLowerCase()===t[u-1].toLowerCase()?n[u-1]+.1:n[u-1]+2,_=s===t.charCodeAt(u-1)?n[u-1]:Math.min(n[u]+1,i[u-1]+1,p);i[u]=_,d=Math.min(d,_)}for(u=l+1;u<=t.length;u++)i[u]=a;if(d>r)return;var f=n;n=i,i=f}var m=n[t.length];return m>r?void 0:m}function z(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function H(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function W(e,t){e[t]=e[e.length-1],e.pop()}function K(e,t){return((e,r)=>{for(var n=0;n<e.length;n++)if(e[n]===t)return W(e,n),!0;return!1})(e)}function J(e,t){return 0===e.lastIndexOf(t,0)}function G(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&J(t,r)&&z(t,n)}function $(e,t,r,n){for(var i=0,a=e[n];i<a.length;i++){var o=a[i],s=void 0;r?(s=r.slice()).push(o):s=[o],n===e.length-1?t.push(s):$(e,t,s,n+1)}}e.getUILocale=()=>U,e.setUILocale=e=>{U!==e&&(U=e,B=void 0)},e.compareStringsCaseSensitiveUI=(e,t)=>(B||(B=j(U)))(e,t),e.compareProperties=(e,t,r,n)=>e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r]),e.compareBooleans=(e,t)=>M(e?1:0,t?1:0),e.getSpellingSuggestion=(t,r,n)=>{for(var i,a=Math.max(2,Math.floor(.34*t.length)),o=Math.floor(.4*t.length)+1,s=0,c=r;s<c.length;s++){var l=c[s],d=n(l);if(void 0!==d&&Math.abs(d.length-t.length)<=a){if(d===t)continue;if(d.length<3&&d.toLowerCase()!==t.toLowerCase())continue;var u=V(t,d,o-.1);if(void 0===u)continue;e.Debug.assert(u<o),o=u,i=l}}return i},e.endsWith=z,e.removeSuffix=(e,t)=>z(e,t)?e.slice(0,e.length-t.length):e,e.tryRemoveSuffix=(e,t)=>z(e,t)?e.slice(0,e.length-t.length):void 0,e.stringContains=(e,t)=>-1!==e.indexOf(t),e.removeMinAndVersionNumbers=e=>{for(var t=e.length,r=t-1;r>0;r--){var n=e.charCodeAt(r);if(n>=48&&n<=57)do{--r,n=e.charCodeAt(r)}while(r>0&&n>=48&&n<=57);else{if(!(r>4)||110!==n&&78!==n)break;if(--r,105!==(n=e.charCodeAt(r))&&73!==n)break;if(--r,109!==(n=e.charCodeAt(r))&&77!==n)break;--r,n=e.charCodeAt(r)}if(45!==n&&46!==n)break;t=r}return t===e.length?e:e.slice(0,t)},e.orderedRemoveItem=(e,t)=>{for(var r=0;r<e.length;r++)if(e[r]===t)return H(e,r),!0;return!1},e.orderedRemoveItemAt=H,e.unorderedRemoveItemAt=W,e.unorderedRemoveItem=K,e.createGetCanonicalFileName=e=>e?k:P,e.patternText=e=>{var t=e.prefix,r=e.suffix;return"".concat(t,"*").concat(r)},e.matchedText=(t,r)=>(e.Debug.assert(G(t,r)),r.substring(t.prefix.length,r.length-t.suffix.length)),e.findBestPatternMatch=(e,t,r)=>{for(var n,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);G(c,r)&&c.prefix.length>i&&(i=c.prefix.length,n=s)}return n},e.startsWith=J,e.removePrefix=(e,t)=>J(e,t)?e.substr(t.length):e,e.tryRemovePrefix=(e,t,r)=>(void 0===r&&(r=k),J(r(e),r(t))?e.substring(t.length):void 0),e.isPatternMatch=G,e.and=(e,t)=>r=>e(r)&&t(r),e.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];for(var i=0,a=e;i<a.length;i++){var o=a[i];if(t=o.apply(void 0,r))return t}return t}},e.not=e=>function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!e.apply(void 0,t)},e.assertType=e=>{},e.singleElementArray=e=>void 0===e?void 0:[e],e.enumerateInsertsAndDeletes=(e,t,r,n,i,a)=>{a=a||A;for(var o=0,s=0,c=e.length,l=t.length,d=!1;o<c&&s<l;){var u=e[o],p=t[s],_=r(u,p);-1===_?(n(u),o++,d=!0):1===_?(i(p),s++,d=!0):(a(p,u),o++,s++)}for(;o<c;)n(e[o++]),d=!0;for(;s<l;)i(t[s++]),d=!0;return d},e.fill=(e,t)=>{for(var r=Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.cartesianProduct=e=>{var t=[];return $(e,t,void 0,0),t},e.padLeft=(e,t,r)=>(void 0===r&&(r=" "),t<=e.length?e:r.repeat(t-e.length)+e),e.padRight=(e,t,r)=>(void 0===r&&(r=" "),t<=e.length?e:e+r.repeat(t-e.length)),e.takeWhile=(e,t)=>{for(var r=e.length,n=0;n<r&&t(e[n]);)n++;return e.slice(0,n)},e.trimString=String.prototype.trim?e=>e.trim():t=>e.trimStringEnd(e.trimStringStart(t)),e.trimStringEnd=String.prototype.trimEnd?e=>e.trimEnd():t=>{for(var r=t.length-1;r>=0&&e.isWhiteSpaceLike(t.charCodeAt(r));)r--;return t.slice(0,r+1)},e.trimStringStart=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}(p),function(e){var t;!(e=>{e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose"})(t=e.LogLevel||(e.LogLevel={})),function(r){var n,i,a=0;function o(){return null!=n?n:n=new e.Version(e.version)}function s(e){return r.currentLogLevel<=e}function c(e,t){r.loggingHost&&s(e)&&r.loggingHost.log(e,t)}function l(e){c(t.Info,e)}r.currentLogLevel=t.Warning,r.isDebugging=!1,r.enableDeprecationWarnings=!0,r.getTypeScriptVersion=o,r.shouldLog=s,r.log=l,(i=l=r.log||(r.log={})).error=e=>{c(t.Error,e)},i.warn=e=>{c(t.Warning,e)},i.log=e=>{c(t.Info,e)},i.trace=e=>{c(t.Verbose,e)};var d={};function u(e){return a>=e}function p(t,n){return!!u(t)||(d[n]={level:t,assertion:r[n]},r[n]=e.noop,!1)}function _(e,t){var r=new Error(e?"Debug Failure. ".concat(e):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||_),r}function f(e,t,r,n){e||(t=t?"False expression: ".concat(t):"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),_(t,n||f))}function m(e,t,r){null==e&&_(t,r||m)}function g(e,t,r){for(var n=0,i=e;n<i.length;n++)m(i[n],t,r||g)}function h(t,r,n){void 0===r&&(r="Illegal value:");var i="object"==typeof t&&e.hasProperty(t,"kind")&&e.hasProperty(t,"pos")?"SyntaxKind: "+E(t.kind):JSON.stringify(t);return _("".concat(r," ").concat(i),n||h)}function y(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),r=/^function\s+([\w\$]+)\s*\(/.exec(t);return r?r[1]:""}function v(t,r,n){void 0===t&&(t=0);var i=(t=>{var r=b.get(t);if(r)return r;var n=[];for(var i in t){var a=t[i];"number"==typeof a&&n.push([a,i])}var o=e.stableSort(n,((t,r)=>e.compareValues(t[0],r[0])));return b.set(t,o),o})(r);if(0===t)return i.length>0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a=[],o=t,s=0,c=i;s<c.length;s++){var l=c[s],d=l[0],u=l[1];if(d>t)break;0!==d&&d&t&&(a.push(u),o&=~d)}if(0===o)return a.join("|")}else for(var p=0,_=i;p<_.length;p++){var f=_[p];if(d=f[0],u=f[1],d===t)return u}return t.toString()}r.getAssertionLevel=()=>a,r.setAssertionLevel=t=>{var n=a;if(a=t,t>n)for(var i=0,o=e.getOwnKeys(d);i<o.length;i++){var s=o[i],c=d[s];void 0!==c&&r[s]!==c.assertion&&t>=c.level&&(r[s]=c,d[s]=void 0)}},r.shouldAssert=u,r.fail=_,r.failBadSyntaxKind=function e(t,r,n){return _("".concat(r||"Unexpected node.","\r\nNode ").concat(E(t.kind)," was unexpected."),n||e)},r.assert=f,r.assertEqual=function e(t,r,n,i,a){if(t!==r){var o=n?i?"".concat(n," ").concat(i):n:"";_("Expected ".concat(t," === ").concat(r,". ").concat(o),a||e)}},r.assertLessThan=function e(t,r,n,i){t>=r&&_("Expected ".concat(t," < ").concat(r,". ").concat(n||""),i||e)},r.assertLessThanOrEqual=function e(t,r,n){t>r&&_("Expected ".concat(t," <= ").concat(r),n||e)},r.assertGreaterThanOrEqual=function e(t,r,n){t<r&&_("Expected ".concat(t," >= ").concat(r),n||e)},r.assertIsDefined=m,r.checkDefined=function e(t,r,n){return m(t,r,n||e),t},r.assertEachIsDefined=g,r.checkEachDefined=function e(t,r,n){return g(t,r,n||e),t},r.assertNever=h,r.assertEachNode=function t(r,n,i,a){p(1,"assertEachNode")&&f(void 0===n||e.every(r,n),i||"Unexpected node.",(()=>"Node array did not pass test '".concat(y(n),"'.")),a||t)},r.assertNode=function e(t,r,n,i){p(1,"assertNode")&&f(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",(()=>"Node ".concat(E(null==t?void 0:t.kind)," did not pass test '").concat(y(r),"'.")),i||e)},r.assertNotNode=function e(t,r,n,i){p(1,"assertNotNode")&&f(void 0===t||void 0===r||!r(t),n||"Unexpected node.",(()=>"Node ".concat(E(t.kind)," should not have passed test '").concat(y(r),"'.")),i||e)},r.assertOptionalNode=function e(t,r,n,i){p(1,"assertOptionalNode")&&f(void 0===r||void 0===t||r(t),n||"Unexpected node.",(()=>"Node ".concat(E(null==t?void 0:t.kind)," did not pass test '").concat(y(r),"'.")),i||e)},r.assertOptionalToken=function e(t,r,n,i){p(1,"assertOptionalToken")&&f(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",(()=>"Node ".concat(E(null==t?void 0:t.kind)," was not a '").concat(E(r),"' token.")),i||e)},r.assertMissingNode=function e(t,r,n){p(1,"assertMissingNode")&&f(void 0===t,r||"Unexpected node.",(()=>"Node ".concat(E(t.kind)," was unexpected'.")),n||e)},r.type=e=>{},r.getFunctionName=y,r.formatSymbol=t=>"{ name: ".concat(e.unescapeLeadingUnderscores(t.escapedName),"; flags: ").concat(C(t.flags),"; declarations: ").concat(e.map(t.declarations,(e=>E(e.kind)))," }"),r.formatEnum=v;var b=new e.Map;function E(t){return v(t,e.SyntaxKind,!1)}function x(t){return v(t,e.NodeFlags,!0)}function D(t){return v(t,e.ModifierFlags,!0)}function S(t){return v(t,e.TransformFlags,!0)}function T(t){return v(t,e.EmitFlags,!0)}function C(t){return v(t,e.SymbolFlags,!0)}function A(t){return v(t,e.TypeFlags,!0)}function k(t){return v(t,e.SignatureFlags,!0)}function N(t){return v(t,e.ObjectFlags,!0)}function w(t){return v(t,e.FlowFlags,!0)}r.formatSyntaxKind=E,r.formatSnippetKind=t=>v(t,e.SnippetKind,!1),r.formatNodeFlags=x,r.formatModifierFlags=D,r.formatTransformFlags=S,r.formatEmitFlags=T,r.formatSymbolFlags=C,r.formatTypeFlags=A,r.formatSignatureFlags=k,r.formatObjectFlags=N,r.formatFlowFlags=w,r.formatRelationComparisonResult=t=>v(t,e.RelationComparisonResult,!0),r.formatCheckMode=t=>v(t,e.CheckMode,!0),r.formatSignatureCheckMode=t=>v(t,e.SignatureCheckMode,!0),r.formatTypeFacts=t=>v(t,e.TypeFacts,!0);var F,P,I,O=!1;function M(e){return(()=>{if(B(),!F)throw new Error("Debugging helpers could not be loaded.");return F})().formatControlFlowGraph(e)}function R(t){"__debugFlowFlags"in t||Object.defineProperties(t,{__tsDebuggerDisplay:{value(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return"".concat(e).concat(t?" (".concat(w(t),")"):"")}},__debugFlowFlags:{get(){return v(this.flags,e.FlowFlags,!0)}},__debugToString:{value(){return M(this)}}})}function L(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>(e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(e))}})}function B(){if(!O){var t,r;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){var t=33554432&this.flags?"TransientSymbol":"Symbol",r=-33554433&this.flags;return"".concat(t," '").concat(e.symbolName(this),"'").concat(r?" (".concat(C(r),")"):"")}},__debugFlags:{get(){return C(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){var t=98304&this.flags?"NullableType":384&this.flags?"LiteralType ".concat(JSON.stringify(this.value)):2048&this.flags?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType ".concat(this.intrinsicName):1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",r=524288&this.flags?-1344&this.objectFlags:0;return"".concat(t).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(r?" (".concat(N(r),")"):"")}},__debugFlags:{get(){return A(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?N(this.objectFlags):""}},__debugTypeToString:{value(){var e=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),r=null==e?void 0:e.get(this);return void 0===r&&(r=this.checker.typeToString(this),null==e||e.set(this,r)),r}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get(){return k(this.flags)}},__debugSignatureToString:{value(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var n=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n<i.length;n++){var a=i[n];a.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(a.prototype,{__tsDebuggerDisplay:{value(){var t=e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '".concat(e.idText(this),"'"):e.isPrivateIdentifier(this)?"PrivateIdentifier '".concat(e.idText(this),"'"):e.isStringLiteral(this)?"StringLiteral ".concat(JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")):e.isNumericLiteral(this)?"NumericLiteral ".concat(this.text):e.isBigIntLiteral(this)?"BigIntLiteral ".concat(this.text,"n"):e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":E(this.kind);return"".concat(t).concat(this.flags?" (".concat(x(this.flags),")"):"")}},__debugKind:{get(){return E(this.kind)}},__debugNodeFlags:{get(){return x(this.flags)}},__debugModifierFlags:{get(){return D(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get(){return S(this.transformFlags)}},__debugIsParseTreeNode:{get(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get(){return T(e.getEmitFlags(this))}},__debugGetText:{value(t){if(e.nodeIsSynthesized(this))return"";var n=(void 0===r&&"function"==typeof WeakMap&&(r=new WeakMap),r),i=null==n?void 0:n.get(this);if(void 0===i){var a=e.getParseTreeNode(this),o=a&&e.getSourceFileOfNode(a);i=o?e.getSourceTextOfNodeFromSourceFile(o,a,t):"",null==n||n.set(this,i)}return i}}})}try{if(e.sys&&e.sys.require){var o=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),s=e.sys.require(o,"./compiler-debug");s.error||(s.module.init(e),F=s.module)}}catch(e){}O=!0}}function U(t,r,n,i,a){var o=r?"DeprecationError: ":"DeprecationWarning: ";return o+="'".concat(t,"' "),o+=i?"has been deprecated since v".concat(i):"is deprecated",(o+=r?" and can no longer be used.":n?" and will no longer be usable after v".concat(n,"."):".")+(a?" ".concat(e.formatStringFromArgs(a,[t],0)):"")}function j(t,n){var i,a;void 0===n&&(n={});var s="string"==typeof n.typeScriptVersion?new e.Version(n.typeScriptVersion):null!==(i=n.typeScriptVersion)&&void 0!==i?i:o(),c="string"==typeof n.errorAfter?new e.Version(n.errorAfter):n.errorAfter,d="string"==typeof n.warnAfter?new e.Version(n.warnAfter):n.warnAfter,u="string"==typeof n.since?new e.Version(n.since):null!==(a=n.since)&&void 0!==a?a:d,p=n.error||c&&s.compareTo(c)<=0,_=!d||s.compareTo(d)>=0;return p?((e,t,r,n)=>{var i=U(e,!0,t,r,n);return()=>{throw new TypeError(i)}})(t,c,u,n.message):_?((e,t,n,i)=>{var a=!1;return()=>{r.enableDeprecationWarnings&&!a&&(l.warn(U(e,!1,t,n,i)),a=!0)}})(t,c,u,n.message):e.noop}r.printControlFlowGraph=e=>console.log(M(e)),r.formatControlFlowGraph=M,r.attachFlowNodeDebugInfo=e=>{O&&("function"==typeof Object.setPrototypeOf?(P||R(P=Object.create(Object.prototype)),Object.setPrototypeOf(e,P)):R(e))},r.attachNodeArrayDebugInfo=e=>{O&&("function"==typeof Object.setPrototypeOf?(I||L(I=Object.create(Array.prototype)),Object.setPrototypeOf(e,I)):L(e))},r.enableDebugInfo=B,r.createDeprecation=j,r.deprecate=function(e,t){var r;return function(e,t){return function(){return e(),t.apply(this,arguments)}}(j(null!==(r=null==t?void 0:t.name)&&void 0!==r?r:y(e),t),e)},r.formatVariance=e=>{var t=7&e,r=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?r+=" (unmeasurable)":16&e&&(r+=" (unreliable)"),r};var V=function(){function t(){}return t.prototype.__debugToString=function(){var t;switch(this.kind){case 3:return(null===(t=this.debugInfo)||void 0===t?void 0:t.call(this))||"(function mapper)";case 0:return"".concat(this.source.__debugTypeToString()," -> ").concat(this.target.__debugTypeToString());case 1:return e.zipWith(this.sources,this.targets||e.map(this.sources,(()=>"any")),((e,t)=>"".concat(e.__debugTypeToString()," -> ").concat("string"==typeof t?t:t.__debugTypeToString()))).join(", ");case 2:return e.zipWith(this.sources,this.targets,((e,t)=>"".concat(e.__debugTypeToString()," -> ").concat(t().__debugTypeToString()))).join(", ");case 5:case 4:return"m1: ".concat(this.mapper1.__debugToString().split("\n").join("\n "),"\nm2: ").concat(this.mapper2.__debugToString().split("\n").join("\n "));default:return h(this)}},t}();r.DebugTypeMapper=V,r.attachDebugPrototypeIfDebug=e=>r.isDebugging?Object.setPrototypeOf(e,V.prototype):e}(e.Debug||(e.Debug={}))}(p),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 l=e.Debug.checkDefined(o(t),"Invalid version");t=l.major,i=l.minor,a=l.patch,s=l.prerelease,c=l.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=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)||((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<n;a++){var o=t[a],s=r[a];if(o!==s){var c=i.test(o),l=i.test(s);if(c||l){if(c!==l)return c?-1:1;if(d=e.compareValues(+o,+s))return d}else{var d;if(d=e.compareStringsCaseSensitive(o,s))return d}}}return e.compareValues(t.length,r.length)})(this.prerelease,t.prerelease)},t.prototype.increment=function(r){switch(r){case"major":return new t(this.major+1,0,0);case"minor":return new t(this.major,this.minor+1,0);case"patch":return new t(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(r)}},t.prototype.toString=function(){var t="".concat(this.major,".").concat(this.minor,".").concat(this.patch);return e.some(this.prerelease)&&(t+="-".concat(this.prerelease.join("."))),e.some(this.build)&&(t+="+".concat(this.build.join("."))),t},t.zero=new t(0,0,0),t}();function o(e){var i=t.exec(e);if(i){var a=i[1],o=i[2],s=void 0===o?"0":o,c=i[3],l=void 0===c?"0":c,d=i[4],u=void 0===d?"":d,p=i[5],_=void 0===p?"":p;if((!u||r.test(u))&&(!_||n.test(_)))return{major:parseInt(a,10),minor:parseInt(s,10),patch:parseInt(l,10),prerelease:u,build:_}}}e.Version=a;var s=function(){function t(t){this._alternatives=t?e.Debug.checkDefined(_(t),"Invalid range spec."):e.emptyArray}return t.tryParse=e=>{var r=_(e);if(r){var n=new t("");return n._alternatives=r,n}},t.prototype.test=function(e){return"string"==typeof e&&(e=new a(e)),((e,t)=>{if(0===t.length)return!0;for(var r=0,n=t;r<n.length;r++)if(v(e,n[r]))return!0;return!1})(e,this._alternatives)},t.prototype.toString=function(){return t=this._alternatives,e.map(t,E).join(" || ")||"*";var t},t}();e.VersionRange=s;var c=/\|\|/g,l=/\s+/g,d=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,u=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,p=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function _(t){for(var r=[],n=0,i=e.trimString(t).split(c);n<i.length;n++){var a=i[n];if(a){var o=[];a=e.trimString(a);var s=u.exec(a);if(s){if(!m(s[1],s[2],o))return}else for(var d=0,_=a.split(l);d<_.length;d++){var f=_[d],h=p.exec(e.trimString(f));if(!h||!g(h[1],h[2],o))return}r.push(o)}}return r}function f(e){var t=d.exec(e);if(t){var r=t[1],n=t[2],i=void 0===n?"*":n,o=t[3],s=void 0===o?"*":o,c=t[4],l=t[5];return{version:new a(h(r)?0:parseInt(r,10),h(r)||h(i)?0:parseInt(i,10),h(r)||h(i)||h(s)?0:parseInt(s,10),c,l),major:r,minor:i,patch:s}}}function m(e,t,r){var n=f(e);if(!n)return!1;var i=f(t);return!!i&&(h(n.major)||r.push(y(">=",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 g(e,t,r){var n=f(t);if(!n)return!1;var i=n.version,o=n.major,s=n.minor,c=n.patch;if(h(o))"<"!==e&&">"!==e||r.push(y("<",a.zero));else switch(e){case"~":r.push(y(">=",i)),r.push(y("<",i.increment(h(s)?"major":"minor")));break;case"^":r.push(y(">=",i)),r.push(y("<",i.increment(i.major>0||h(s)?"major":i.minor>0||h(c)?"minor":"patch")));break;case"<":case">=":r.push(y(e,i));break;case"<=":case">":r.push(h(s)?y("<="===e?"<":">=",i.increment("major")):h(c)?y("<="===e?"<":">=",i.increment("minor")):y(e,i));break;case"=":case void 0:h(s)||h(c)?(r.push(y(">=",i)),r.push(y("<",i.increment(h(s)?"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<n.length;r++){var i=n[r];if(!b(e,i.operator,i.operand))return!1}return!0}function b(t,r,n){var i=t.compareTo(n);switch(r){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function E(t){return e.map(t,x).join(" ")}function x(e){return"".concat(e.operator).concat(e.operand)}}(p),(e=>{function t(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof t}var n=(()=>{if("object"==typeof performance&&"function"==typeof PerformanceObserver&&t(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}})()||(()=>{if(void 0!==r&&r.nextTick&&!r.browser&&"object"==typeof module&&"function"==typeof require)try{var n,i=require("perf_hooks"),a=i.performance,o=i.PerformanceObserver;if(t(a,o)){n=a;var s=new e.Version(r.versions.node);return new e.VersionRange("<12.16.3 || 13 <13.13").test(s)&&(n={get timeOrigin(){return a.timeOrigin},now:()=>a.now(),mark:e=>a.mark(e),measure(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",a.mark(r)),a.measure(e,t,r),"__performance.measure-fix__"===r&&a.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:n,PerformanceObserver:o}}}catch(e){}})(),i=null==n?void 0:n.performance;e.tryGetNativePerformanceHooks=()=>n,e.timestamp=i?()=>i.now():Date.now?Date.now:()=>+new Date})(p),(e=>{!(t=>{var r,n;function i(t,r,n){var i=0;return{enter(){1==++i&&d(r)},exit(){0==--i?(d(n),u(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}t.createTimerIf=(e,r,n,a)=>e?i(r,n,a):t.nullTimer,t.createTimer=i,t.nullTimer={enter:e.noop,exit:e.noop};var a=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,l=new e.Map;function d(t){var r;if(a){var i=null!==(r=c.get(t))&&void 0!==r?r:0;c.set(t,i+1),s.set(t,e.timestamp()),null==n||n.mark(t)}}function u(t,r,i){var c,d;if(a){var u=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),p=null!==(d=void 0!==r?s.get(r):void 0)&&void 0!==d?d:o,_=l.get(t)||0;l.set(t,_+(u-p)),null==n||n.measure(t,r,i)}}t.mark=d,t.measure=u,t.getCount=e=>c.get(e)||0,t.getDuration=e=>l.get(e)||0,t.forEachMeasure=e=>{l.forEach(((t,r)=>e(r,t)))},t.isEnabled=()=>a,t.enable=t=>{var i;return void 0===t&&(t=e.sys),a||(a=!0,r||(r=e.tryGetNativePerformanceHooks()),r&&(o=r.performance.timeOrigin,(r.shouldWriteNativeEvents||(null===(i=null==t?void 0:t.cpuProfilingEnabled)||void 0===i?void 0:i.call(t))||(null==t?void 0:t.debugMode))&&(n=r.performance))),!0},t.disable=()=>{a&&(s.clear(),c.clear(),l.clear(),n=void 0,a=!1)}})(e.performance||(e.performance={}))})(p),(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=r.env.TS_ETW_MODULE_PATH)&&void 0!==t?t:"./node_modules/@microsoft/typescript-etw";n=require(a)}catch(e){n=void 0}e.perfLogger=n&&n.logEvent?n:i})(p),(e=>{var t;!(t=>{var n,i,a,o,s=0,c=0,l=[],d=[];t.startTracing=(o,u,p)=>{if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===n)try{n=require("fs")}catch(e){throw new Error("tracing requires having fs\n(original error: ".concat(e.message||e,")"))}i=o,l.length=0,void 0===a&&(a=e.combinePaths(u,"legend.json")),n.existsSync(u)||n.mkdirSync(u,{recursive:!0});var _="build"===i?".".concat(r.pid,"-").concat(++s):"server"===i?".".concat(r.pid):"",f=e.combinePaths(u,"trace".concat(_,".json")),g=e.combinePaths(u,"types".concat(_,".json"));d.push({configFilePath:p,tracePath:f,typesPath:g}),c=n.openSync(f,"w"),e.tracing=t;var h={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};n.writeSync(c,"[\n"+[m({name:"process_name",args:{name:"tsc"}},h),m({name:"thread_name",args:{name:"Main"}},h),m(m({name:"TracingStartedInBrowser"},h),{cat:"disabled-by-default-devtools.timeline"})].map((e=>JSON.stringify(e))).join(",\n"))},t.stopTracing=()=>{e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!l.length==("server"!==i)),n.writeSync(c,"\n]\n"),n.closeSync(c),e.tracing=void 0,l.length?(t=>{var r,i,a,o,s,c,l,u,p,_,g,h,y,v,b,E,x,D,S,T,C,A;e.performance.mark("beginDumpTypes");var k=d[d.length-1].typesPath,N=n.openSync(k,"w"),w=new e.Map;n.writeSync(N,"[");for(var F=t.length,P=0;P<F;P++){var I=t[P],O=I.objectFlags,M=null!==(r=I.aliasSymbol)&&void 0!==r?r:I.symbol,R=void 0;if(16&O|2944&I.flags)try{R=null===(i=I.checker)||void 0===i?void 0:i.typeToString(I)}catch(e){R=void 0}var L={};if(8388608&I.flags){var B=I;L={indexedAccessObjectType:null===(a=B.objectType)||void 0===a?void 0:a.id,indexedAccessIndexType:null===(o=B.indexType)||void 0===o?void 0:o.id}}var U={};if(4&O){var j=I;U={instantiatedType:null===(s=j.target)||void 0===s?void 0:s.id,typeArguments:null===(c=j.resolvedTypeArguments)||void 0===c?void 0:c.map((e=>e.id)),referenceLocation:f(j.node)}}var V={};if(16777216&I.flags){var z=I;V={conditionalCheckType:null===(l=z.checkType)||void 0===l?void 0:l.id,conditionalExtendsType:null===(u=z.extendsType)||void 0===u?void 0:u.id,conditionalTrueType:null!==(_=null===(p=z.resolvedTrueType)||void 0===p?void 0:p.id)&&void 0!==_?_:-1,conditionalFalseType:null!==(h=null===(g=z.resolvedFalseType)||void 0===g?void 0:g.id)&&void 0!==h?h:-1}}var H={};if(33554432&I.flags){var W=I;H={substitutionBaseType:null===(y=W.baseType)||void 0===y?void 0:y.id,substituteType:null===(v=W.substitute)||void 0===v?void 0:v.id}}var K={};if(1024&O){var J=I;K={reverseMappedSourceType:null===(b=J.source)||void 0===b?void 0:b.id,reverseMappedMappedType:null===(E=J.mappedType)||void 0===E?void 0:E.id,reverseMappedConstraintType:null===(x=J.constraintType)||void 0===x?void 0:x.id}}var G={};if(256&O){var $=I;G={evolvingArrayElementType:$.elementType.id,evolvingArrayFinalType:null===(D=$.finalArrayType)||void 0===D?void 0:D.id}}var q=void 0,X=I.checker.getRecursionIdentity(I);X&&((q=w.get(X))||(q=w.size,w.set(X,q)));var Y=m(m(m(m(m(m(m({id:I.id,intrinsicName:I.intrinsicName,symbolName:(null==M?void 0:M.escapedName)&&e.unescapeLeadingUnderscores(M.escapedName),recursionId:q,isTuple:!!(8&O)||void 0,unionTypes:1048576&I.flags?null===(S=I.types)||void 0===S?void 0:S.map((e=>e.id)):void 0,intersectionTypes:2097152&I.flags?I.types.map((e=>e.id)):void 0,aliasTypeArguments:null===(T=I.aliasTypeArguments)||void 0===T?void 0:T.map((e=>e.id)),keyofType:4194304&I.flags?null===(C=I.type)||void 0===C?void 0:C.id:void 0},L),U),V),H),K),G),{destructuringPattern:f(I.pattern),firstDeclaration:f(null===(A=null==M?void 0:M.declarations)||void 0===A?void 0:A[0]),flags:e.Debug.formatTypeFlags(I.flags).split("|"),display:R});n.writeSync(N,JSON.stringify(Y)),P<F-1&&n.writeSync(N,",\n")}n.writeSync(N,"]\n"),n.closeSync(N),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")})(l):d[d.length-1].typesPath=void 0},t.recordType=e=>{"server"!==i&&l.push(e)},(o=t.Phase||(t.Phase={})).Parse="parse",o.Program="program",o.Bind="bind",o.Check="check",o.CheckTypes="checkTypes",o.Emit="emit",o.Session="session",t.instant=(e,t,r)=>{_("I",e,t,r,'"s":"g"')};var u=[];function p(t,r,n){var i=u[t],a=i.phase,o=i.name,s=i.args,c=i.time;i.separateBeginAndEnd?(e.Debug.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),_("E",a,o,s,void 0,r)):1e4-c%1e4<=r-c&&_("X",a,o,m(m({},s),{results:n}),'"dur":'.concat(r-c),c)}function _(t,r,a,o,s,l){void 0===l&&(l=1e3*e.timestamp()),"server"===i&&"checkTypes"===r||(e.performance.mark("beginTracing"),n.writeSync(c,',\n{"pid":1,"tid":1,"ph":"'.concat(t,'","cat":"').concat(r,'","ts":').concat(l,',"name":"').concat(a,'"')),s&&n.writeSync(c,",".concat(s)),o&&n.writeSync(c,',"args":'.concat(JSON.stringify(o))),n.writeSync(c,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function f(t){var r=e.getSourceFileOfNode(t);return r?{path:r.path,start:n(e.getLineAndCharacterOfPosition(r,t.pos)),end:n(e.getLineAndCharacterOfPosition(r,t.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}t.push=(t,r,n,i)=>{void 0===i&&(i=!1),i&&_("B",t,r,n),u.push({phase:t,name:r,args:n,time:1e3*e.timestamp(),separateBeginAndEnd:i})},t.pop=t=>{e.Debug.assert(u.length>0),p(u.length-1,1e3*e.timestamp(),t),u.length--},t.popAll=()=>{for(var t=1e3*e.timestamp(),r=u.length-1;r>=0;r--)p(r,t);u.length=0},t.dumpLegend=()=>{a&&n.writeFileSync(a,JSON.stringify(d))}})(t||(t={})),e.startTracing=t.startTracing,e.dumpTracingLegend=t.dumpLegend})(p),(e=>{var t,r,n,i,a,o,s,c,l,d,u,p,_,f,m,g,h,y,v,b,E,x,D,S,T,C,A,k,N,w,F,P,I,O,M,R,L,B,U,j,V,z,H,W,K,J,G,$,q,X,Y,Q,Z,ee,te,re,ne,ie,ae,oe,se,ce,le,de,ue,pe,_e,fe;(l=e.SyntaxKind||(e.SyntaxKind={}))[l.Unknown=0]="Unknown",l[l.EndOfFileToken=1]="EndOfFileToken",l[l.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",l[l.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",l[l.NewLineTrivia=4]="NewLineTrivia",l[l.WhitespaceTrivia=5]="WhitespaceTrivia",l[l.ShebangTrivia=6]="ShebangTrivia",l[l.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",l[l.NumericLiteral=8]="NumericLiteral",l[l.BigIntLiteral=9]="BigIntLiteral",l[l.StringLiteral=10]="StringLiteral",l[l.JsxText=11]="JsxText",l[l.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",l[l.RegularExpressionLiteral=13]="RegularExpressionLiteral",l[l.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",l[l.TemplateHead=15]="TemplateHead",l[l.TemplateMiddle=16]="TemplateMiddle",l[l.TemplateTail=17]="TemplateTail",l[l.OpenBraceToken=18]="OpenBraceToken",l[l.CloseBraceToken=19]="CloseBraceToken",l[l.OpenParenToken=20]="OpenParenToken",l[l.CloseParenToken=21]="CloseParenToken",l[l.OpenBracketToken=22]="OpenBracketToken",l[l.CloseBracketToken=23]="CloseBracketToken",l[l.DotToken=24]="DotToken",l[l.DotDotDotToken=25]="DotDotDotToken",l[l.SemicolonToken=26]="SemicolonToken",l[l.CommaToken=27]="CommaToken",l[l.QuestionDotToken=28]="QuestionDotToken",l[l.LessThanToken=29]="LessThanToken",l[l.LessThanSlashToken=30]="LessThanSlashToken",l[l.GreaterThanToken=31]="GreaterThanToken",l[l.LessThanEqualsToken=32]="LessThanEqualsToken",l[l.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",l[l.EqualsEqualsToken=34]="EqualsEqualsToken",l[l.ExclamationEqualsToken=35]="ExclamationEqualsToken",l[l.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",l[l.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",l[l.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",l[l.PlusToken=39]="PlusToken",l[l.MinusToken=40]="MinusToken",l[l.AsteriskToken=41]="AsteriskToken",l[l.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",l[l.SlashToken=43]="SlashToken",l[l.PercentToken=44]="PercentToken",l[l.PlusPlusToken=45]="PlusPlusToken",l[l.MinusMinusToken=46]="MinusMinusToken",l[l.LessThanLessThanToken=47]="LessThanLessThanToken",l[l.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",l[l.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",l[l.AmpersandToken=50]="AmpersandToken",l[l.BarToken=51]="BarToken",l[l.CaretToken=52]="CaretToken",l[l.ExclamationToken=53]="ExclamationToken",l[l.TildeToken=54]="TildeToken",l[l.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",l[l.BarBarToken=56]="BarBarToken",l[l.QuestionToken=57]="QuestionToken",l[l.ColonToken=58]="ColonToken",l[l.AtToken=59]="AtToken",l[l.QuestionQuestionToken=60]="QuestionQuestionToken",l[l.BacktickToken=61]="BacktickToken",l[l.HashToken=62]="HashToken",l[l.EqualsToken=63]="EqualsToken",l[l.PlusEqualsToken=64]="PlusEqualsToken",l[l.MinusEqualsToken=65]="MinusEqualsToken",l[l.AsteriskEqualsToken=66]="AsteriskEqualsToken",l[l.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",l[l.SlashEqualsToken=68]="SlashEqualsToken",l[l.PercentEqualsToken=69]="PercentEqualsToken",l[l.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",l[l.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",l[l.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",l[l.AmpersandEqualsToken=73]="AmpersandEqualsToken",l[l.BarEqualsToken=74]="BarEqualsToken",l[l.BarBarEqualsToken=75]="BarBarEqualsToken",l[l.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",l[l.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",l[l.CaretEqualsToken=78]="CaretEqualsToken",l[l.Identifier=79]="Identifier",l[l.PrivateIdentifier=80]="PrivateIdentifier",l[l.BreakKeyword=81]="BreakKeyword",l[l.CaseKeyword=82]="CaseKeyword",l[l.CatchKeyword=83]="CatchKeyword",l[l.ClassKeyword=84]="ClassKeyword",l[l.ConstKeyword=85]="ConstKeyword",l[l.ContinueKeyword=86]="ContinueKeyword",l[l.DebuggerKeyword=87]="DebuggerKeyword",l[l.DefaultKeyword=88]="DefaultKeyword",l[l.DeleteKeyword=89]="DeleteKeyword",l[l.DoKeyword=90]="DoKeyword",l[l.ElseKeyword=91]="ElseKeyword",l[l.EnumKeyword=92]="EnumKeyword",l[l.ExportKeyword=93]="ExportKeyword",l[l.ExtendsKeyword=94]="ExtendsKeyword",l[l.FalseKeyword=95]="FalseKeyword",l[l.FinallyKeyword=96]="FinallyKeyword",l[l.ForKeyword=97]="ForKeyword",l[l.FunctionKeyword=98]="FunctionKeyword",l[l.IfKeyword=99]="IfKeyword",l[l.ImportKeyword=100]="ImportKeyword",l[l.InKeyword=101]="InKeyword",l[l.InstanceOfKeyword=102]="InstanceOfKeyword",l[l.NewKeyword=103]="NewKeyword",l[l.NullKeyword=104]="NullKeyword",l[l.ReturnKeyword=105]="ReturnKeyword",l[l.SuperKeyword=106]="SuperKeyword",l[l.SwitchKeyword=107]="SwitchKeyword",l[l.ThisKeyword=108]="ThisKeyword",l[l.ThrowKeyword=109]="ThrowKeyword",l[l.TrueKeyword=110]="TrueKeyword",l[l.TryKeyword=111]="TryKeyword",l[l.TypeOfKeyword=112]="TypeOfKeyword",l[l.VarKeyword=113]="VarKeyword",l[l.VoidKeyword=114]="VoidKeyword",l[l.WhileKeyword=115]="WhileKeyword",l[l.WithKeyword=116]="WithKeyword",l[l.ImplementsKeyword=117]="ImplementsKeyword",l[l.InterfaceKeyword=118]="InterfaceKeyword",l[l.LetKeyword=119]="LetKeyword",l[l.PackageKeyword=120]="PackageKeyword",l[l.PrivateKeyword=121]="PrivateKeyword",l[l.ProtectedKeyword=122]="ProtectedKeyword",l[l.PublicKeyword=123]="PublicKeyword",l[l.StaticKeyword=124]="StaticKeyword",l[l.YieldKeyword=125]="YieldKeyword",l[l.AbstractKeyword=126]="AbstractKeyword",l[l.AsKeyword=127]="AsKeyword",l[l.AssertsKeyword=128]="AssertsKeyword",l[l.AssertKeyword=129]="AssertKeyword",l[l.AnyKeyword=130]="AnyKeyword",l[l.AsyncKeyword=131]="AsyncKeyword",l[l.AwaitKeyword=132]="AwaitKeyword",l[l.BooleanKeyword=133]="BooleanKeyword",l[l.ConstructorKeyword=134]="ConstructorKeyword",l[l.DeclareKeyword=135]="DeclareKeyword",l[l.GetKeyword=136]="GetKeyword",l[l.InferKeyword=137]="InferKeyword",l[l.IntrinsicKeyword=138]="IntrinsicKeyword",l[l.IsKeyword=139]="IsKeyword",l[l.KeyOfKeyword=140]="KeyOfKeyword",l[l.ModuleKeyword=141]="ModuleKeyword",l[l.NamespaceKeyword=142]="NamespaceKeyword",l[l.NeverKeyword=143]="NeverKeyword",l[l.OutKeyword=144]="OutKeyword",l[l.ReadonlyKeyword=145]="ReadonlyKeyword",l[l.RequireKeyword=146]="RequireKeyword",l[l.NumberKeyword=147]="NumberKeyword",l[l.ObjectKeyword=148]="ObjectKeyword",l[l.SetKeyword=149]="SetKeyword",l[l.StringKeyword=150]="StringKeyword",l[l.SymbolKeyword=151]="SymbolKeyword",l[l.TypeKeyword=152]="TypeKeyword",l[l.UndefinedKeyword=153]="UndefinedKeyword",l[l.UniqueKeyword=154]="UniqueKeyword",l[l.UnknownKeyword=155]="UnknownKeyword",l[l.FromKeyword=156]="FromKeyword",l[l.GlobalKeyword=157]="GlobalKeyword",l[l.BigIntKeyword=158]="BigIntKeyword",l[l.OverrideKeyword=159]="OverrideKeyword",l[l.OfKeyword=160]="OfKeyword",l[l.QualifiedName=161]="QualifiedName",l[l.ComputedPropertyName=162]="ComputedPropertyName",l[l.TypeParameter=163]="TypeParameter",l[l.Parameter=164]="Parameter",l[l.Decorator=165]="Decorator",l[l.PropertySignature=166]="PropertySignature",l[l.PropertyDeclaration=167]="PropertyDeclaration",l[l.MethodSignature=168]="MethodSignature",l[l.MethodDeclaration=169]="MethodDeclaration",l[l.ClassStaticBlockDeclaration=170]="ClassStaticBlockDeclaration",l[l.Constructor=171]="Constructor",l[l.GetAccessor=172]="GetAccessor",l[l.SetAccessor=173]="SetAccessor",l[l.CallSignature=174]="CallSignature",l[l.ConstructSignature=175]="ConstructSignature",l[l.IndexSignature=176]="IndexSignature",l[l.TypePredicate=177]="TypePredicate",l[l.TypeReference=178]="TypeReference",l[l.FunctionType=179]="FunctionType",l[l.ConstructorType=180]="ConstructorType",l[l.TypeQuery=181]="TypeQuery",l[l.TypeLiteral=182]="TypeLiteral",l[l.ArrayType=183]="ArrayType",l[l.TupleType=184]="TupleType",l[l.OptionalType=185]="OptionalType",l[l.RestType=186]="RestType",l[l.UnionType=187]="UnionType",l[l.IntersectionType=188]="IntersectionType",l[l.ConditionalType=189]="ConditionalType",l[l.InferType=190]="InferType",l[l.ParenthesizedType=191]="ParenthesizedType",l[l.ThisType=192]="ThisType",l[l.TypeOperator=193]="TypeOperator",l[l.IndexedAccessType=194]="IndexedAccessType",l[l.MappedType=195]="MappedType",l[l.LiteralType=196]="LiteralType",l[l.NamedTupleMember=197]="NamedTupleMember",l[l.TemplateLiteralType=198]="TemplateLiteralType",l[l.TemplateLiteralTypeSpan=199]="TemplateLiteralTypeSpan",l[l.ImportType=200]="ImportType",l[l.ObjectBindingPattern=201]="ObjectBindingPattern",l[l.ArrayBindingPattern=202]="ArrayBindingPattern",l[l.BindingElement=203]="BindingElement",l[l.ArrayLiteralExpression=204]="ArrayLiteralExpression",l[l.ObjectLiteralExpression=205]="ObjectLiteralExpression",l[l.PropertyAccessExpression=206]="PropertyAccessExpression",l[l.ElementAccessExpression=207]="ElementAccessExpression",l[l.CallExpression=208]="CallExpression",l[l.NewExpression=209]="NewExpression",l[l.TaggedTemplateExpression=210]="TaggedTemplateExpression",l[l.TypeAssertionExpression=211]="TypeAssertionExpression",l[l.ParenthesizedExpression=212]="ParenthesizedExpression",l[l.FunctionExpression=213]="FunctionExpression",l[l.ArrowFunction=214]="ArrowFunction",l[l.DeleteExpression=215]="DeleteExpression",l[l.TypeOfExpression=216]="TypeOfExpression",l[l.VoidExpression=217]="VoidExpression",l[l.AwaitExpression=218]="AwaitExpression",l[l.PrefixUnaryExpression=219]="PrefixUnaryExpression",l[l.PostfixUnaryExpression=220]="PostfixUnaryExpression",l[l.BinaryExpression=221]="BinaryExpression",l[l.ConditionalExpression=222]="ConditionalExpression",l[l.TemplateExpression=223]="TemplateExpression",l[l.YieldExpression=224]="YieldExpression",l[l.SpreadElement=225]="SpreadElement",l[l.ClassExpression=226]="ClassExpression",l[l.OmittedExpression=227]="OmittedExpression",l[l.ExpressionWithTypeArguments=228]="ExpressionWithTypeArguments",l[l.AsExpression=229]="AsExpression",l[l.NonNullExpression=230]="NonNullExpression",l[l.MetaProperty=231]="MetaProperty",l[l.SyntheticExpression=232]="SyntheticExpression",l[l.TemplateSpan=233]="TemplateSpan",l[l.SemicolonClassElement=234]="SemicolonClassElement",l[l.Block=235]="Block",l[l.EmptyStatement=236]="EmptyStatement",l[l.VariableStatement=237]="VariableStatement",l[l.ExpressionStatement=238]="ExpressionStatement",l[l.IfStatement=239]="IfStatement",l[l.DoStatement=240]="DoStatement",l[l.WhileStatement=241]="WhileStatement",l[l.ForStatement=242]="ForStatement",l[l.ForInStatement=243]="ForInStatement",l[l.ForOfStatement=244]="ForOfStatement",l[l.ContinueStatement=245]="ContinueStatement",l[l.BreakStatement=246]="BreakStatement",l[l.ReturnStatement=247]="ReturnStatement",l[l.WithStatement=248]="WithStatement",l[l.SwitchStatement=249]="SwitchStatement",l[l.LabeledStatement=250]="LabeledStatement",l[l.ThrowStatement=251]="ThrowStatement",l[l.TryStatement=252]="TryStatement",l[l.DebuggerStatement=253]="DebuggerStatement",l[l.VariableDeclaration=254]="VariableDeclaration",l[l.VariableDeclarationList=255]="VariableDeclarationList",l[l.FunctionDeclaration=256]="FunctionDeclaration",l[l.ClassDeclaration=257]="ClassDeclaration",l[l.InterfaceDeclaration=258]="InterfaceDeclaration",l[l.TypeAliasDeclaration=259]="TypeAliasDeclaration",l[l.EnumDeclaration=260]="EnumDeclaration",l[l.ModuleDeclaration=261]="ModuleDeclaration",l[l.ModuleBlock=262]="ModuleBlock",l[l.CaseBlock=263]="CaseBlock",l[l.NamespaceExportDeclaration=264]="NamespaceExportDeclaration",l[l.ImportEqualsDeclaration=265]="ImportEqualsDeclaration",l[l.ImportDeclaration=266]="ImportDeclaration",l[l.ImportClause=267]="ImportClause",l[l.NamespaceImport=268]="NamespaceImport",l[l.NamedImports=269]="NamedImports",l[l.ImportSpecifier=270]="ImportSpecifier",l[l.ExportAssignment=271]="ExportAssignment",l[l.ExportDeclaration=272]="ExportDeclaration",l[l.NamedExports=273]="NamedExports",l[l.NamespaceExport=274]="NamespaceExport",l[l.ExportSpecifier=275]="ExportSpecifier",l[l.MissingDeclaration=276]="MissingDeclaration",l[l.ExternalModuleReference=277]="ExternalModuleReference",l[l.JsxElement=278]="JsxElement",l[l.JsxSelfClosingElement=279]="JsxSelfClosingElement",l[l.JsxOpeningElement=280]="JsxOpeningElement",l[l.JsxClosingElement=281]="JsxClosingElement",l[l.JsxFragment=282]="JsxFragment",l[l.JsxOpeningFragment=283]="JsxOpeningFragment",l[l.JsxClosingFragment=284]="JsxClosingFragment",l[l.JsxAttribute=285]="JsxAttribute",l[l.JsxAttributes=286]="JsxAttributes",l[l.JsxSpreadAttribute=287]="JsxSpreadAttribute",l[l.JsxExpression=288]="JsxExpression",l[l.CaseClause=289]="CaseClause",l[l.DefaultClause=290]="DefaultClause",l[l.HeritageClause=291]="HeritageClause",l[l.CatchClause=292]="CatchClause",l[l.AssertClause=293]="AssertClause",l[l.AssertEntry=294]="AssertEntry",l[l.ImportTypeAssertionContainer=295]="ImportTypeAssertionContainer",l[l.PropertyAssignment=296]="PropertyAssignment",l[l.ShorthandPropertyAssignment=297]="ShorthandPropertyAssignment",l[l.SpreadAssignment=298]="SpreadAssignment",l[l.EnumMember=299]="EnumMember",l[l.UnparsedPrologue=300]="UnparsedPrologue",l[l.UnparsedPrepend=301]="UnparsedPrepend",l[l.UnparsedText=302]="UnparsedText",l[l.UnparsedInternalText=303]="UnparsedInternalText",l[l.UnparsedSyntheticReference=304]="UnparsedSyntheticReference",l[l.SourceFile=305]="SourceFile",l[l.Bundle=306]="Bundle",l[l.UnparsedSource=307]="UnparsedSource",l[l.InputFiles=308]="InputFiles",l[l.JSDocTypeExpression=309]="JSDocTypeExpression",l[l.JSDocNameReference=310]="JSDocNameReference",l[l.JSDocMemberName=311]="JSDocMemberName",l[l.JSDocAllType=312]="JSDocAllType",l[l.JSDocUnknownType=313]="JSDocUnknownType",l[l.JSDocNullableType=314]="JSDocNullableType",l[l.JSDocNonNullableType=315]="JSDocNonNullableType",l[l.JSDocOptionalType=316]="JSDocOptionalType",l[l.JSDocFunctionType=317]="JSDocFunctionType",l[l.JSDocVariadicType=318]="JSDocVariadicType",l[l.JSDocNamepathType=319]="JSDocNamepathType",l[l.JSDoc=320]="JSDoc",l[l.JSDocComment=320]="JSDocComment",l[l.JSDocText=321]="JSDocText",l[l.JSDocTypeLiteral=322]="JSDocTypeLiteral",l[l.JSDocSignature=323]="JSDocSignature",l[l.JSDocLink=324]="JSDocLink",l[l.JSDocLinkCode=325]="JSDocLinkCode",l[l.JSDocLinkPlain=326]="JSDocLinkPlain",l[l.JSDocTag=327]="JSDocTag",l[l.JSDocAugmentsTag=328]="JSDocAugmentsTag",l[l.JSDocImplementsTag=329]="JSDocImplementsTag",l[l.JSDocAuthorTag=330]="JSDocAuthorTag",l[l.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",l[l.JSDocClassTag=332]="JSDocClassTag",l[l.JSDocPublicTag=333]="JSDocPublicTag",l[l.JSDocPrivateTag=334]="JSDocPrivateTag",l[l.JSDocProtectedTag=335]="JSDocProtectedTag",l[l.JSDocReadonlyTag=336]="JSDocReadonlyTag",l[l.JSDocOverrideTag=337]="JSDocOverrideTag",l[l.JSDocCallbackTag=338]="JSDocCallbackTag",l[l.JSDocEnumTag=339]="JSDocEnumTag",l[l.JSDocParameterTag=340]="JSDocParameterTag",l[l.JSDocReturnTag=341]="JSDocReturnTag",l[l.JSDocThisTag=342]="JSDocThisTag",l[l.JSDocTypeTag=343]="JSDocTypeTag",l[l.JSDocTemplateTag=344]="JSDocTemplateTag",l[l.JSDocTypedefTag=345]="JSDocTypedefTag",l[l.JSDocSeeTag=346]="JSDocSeeTag",l[l.JSDocPropertyTag=347]="JSDocPropertyTag",l[l.SyntaxList=348]="SyntaxList",l[l.NotEmittedStatement=349]="NotEmittedStatement",l[l.PartiallyEmittedExpression=350]="PartiallyEmittedExpression",l[l.CommaListExpression=351]="CommaListExpression",l[l.MergeDeclarationMarker=352]="MergeDeclarationMarker",l[l.EndOfDeclarationMarker=353]="EndOfDeclarationMarker",l[l.SyntheticReferenceExpression=354]="SyntheticReferenceExpression",l[l.Count=355]="Count",l[l.FirstAssignment=63]="FirstAssignment",l[l.LastAssignment=78]="LastAssignment",l[l.FirstCompoundAssignment=64]="FirstCompoundAssignment",l[l.LastCompoundAssignment=78]="LastCompoundAssignment",l[l.FirstReservedWord=81]="FirstReservedWord",l[l.LastReservedWord=116]="LastReservedWord",l[l.FirstKeyword=81]="FirstKeyword",l[l.LastKeyword=160]="LastKeyword",l[l.FirstFutureReservedWord=117]="FirstFutureReservedWord",l[l.LastFutureReservedWord=125]="LastFutureReservedWord",l[l.FirstTypeNode=177]="FirstTypeNode",l[l.LastTypeNode=200]="LastTypeNode",l[l.FirstPunctuation=18]="FirstPunctuation",l[l.LastPunctuation=78]="LastPunctuation",l[l.FirstToken=0]="FirstToken",l[l.LastToken=160]="LastToken",l[l.FirstTriviaToken=2]="FirstTriviaToken",l[l.LastTriviaToken=7]="LastTriviaToken",l[l.FirstLiteralToken=8]="FirstLiteralToken",l[l.LastLiteralToken=14]="LastLiteralToken",l[l.FirstTemplateToken=14]="FirstTemplateToken",l[l.LastTemplateToken=17]="LastTemplateToken",l[l.FirstBinaryOperator=29]="FirstBinaryOperator",l[l.LastBinaryOperator=78]="LastBinaryOperator",l[l.FirstStatement=237]="FirstStatement",l[l.LastStatement=253]="LastStatement",l[l.FirstNode=161]="FirstNode",l[l.FirstJSDocNode=309]="FirstJSDocNode",l[l.LastJSDocNode=347]="LastJSDocNode",l[l.FirstJSDocTagNode=327]="FirstJSDocTagNode",l[l.LastJSDocTagNode=347]="LastJSDocTagNode",l[l.FirstContextualKeyword=126]="FirstContextualKeyword",l[l.LastContextualKeyword=160]="LastContextualKeyword",(c=e.NodeFlags||(e.NodeFlags={}))[c.None=0]="None",c[c.Let=1]="Let",c[c.Const=2]="Const",c[c.NestedNamespace=4]="NestedNamespace",c[c.Synthesized=8]="Synthesized",c[c.Namespace=16]="Namespace",c[c.OptionalChain=32]="OptionalChain",c[c.ExportContext=64]="ExportContext",c[c.ContainsThis=128]="ContainsThis",c[c.HasImplicitReturn=256]="HasImplicitReturn",c[c.HasExplicitReturn=512]="HasExplicitReturn",c[c.GlobalAugmentation=1024]="GlobalAugmentation",c[c.HasAsyncFunctions=2048]="HasAsyncFunctions",c[c.DisallowInContext=4096]="DisallowInContext",c[c.YieldContext=8192]="YieldContext",c[c.DecoratorContext=16384]="DecoratorContext",c[c.AwaitContext=32768]="AwaitContext",c[c.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",c[c.ThisNodeHasError=131072]="ThisNodeHasError",c[c.JavaScriptFile=262144]="JavaScriptFile",c[c.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",c[c.HasAggregatedChildData=1048576]="HasAggregatedChildData",c[c.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",c[c.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",c[c.JSDoc=8388608]="JSDoc",c[c.Ambient=16777216]="Ambient",c[c.InWithStatement=33554432]="InWithStatement",c[c.JsonFile=67108864]="JsonFile",c[c.TypeCached=134217728]="TypeCached",c[c.Deprecated=268435456]="Deprecated",c[c.BlockScoped=3]="BlockScoped",c[c.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",c[c.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",c[c.ContextFlags=50720768]="ContextFlags",c[c.TypeExcludesFlags=40960]="TypeExcludesFlags",c[c.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",(s=e.ModifierFlags||(e.ModifierFlags={}))[s.None=0]="None",s[s.Export=1]="Export",s[s.Ambient=2]="Ambient",s[s.Public=4]="Public",s[s.Private=8]="Private",s[s.Protected=16]="Protected",s[s.Static=32]="Static",s[s.Readonly=64]="Readonly",s[s.Abstract=128]="Abstract",s[s.Async=256]="Async",s[s.Default=512]="Default",s[s.Const=2048]="Const",s[s.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",s[s.Deprecated=8192]="Deprecated",s[s.Override=16384]="Override",s[s.In=32768]="In",s[s.Out=65536]="Out",s[s.Decorator=131072]="Decorator",s[s.HasComputedFlags=536870912]="HasComputedFlags",s[s.AccessibilityModifier=28]="AccessibilityModifier",s[s.ParameterPropertyModifier=16476]="ParameterPropertyModifier",s[s.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",s[s.TypeScriptModifier=116958]="TypeScriptModifier",s[s.ExportDefault=513]="ExportDefault",s[s.All=257023]="All",s[s.Modifier=125951]="Modifier",(o=e.JsxFlags||(e.JsxFlags={}))[o.None=0]="None",o[o.IntrinsicNamedElement=1]="IntrinsicNamedElement",o[o.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",o[o.IntrinsicElement=3]="IntrinsicElement",(a=e.RelationComparisonResult||(e.RelationComparisonResult={}))[a.Succeeded=1]="Succeeded",a[a.Failed=2]="Failed",a[a.Reported=4]="Reported",a[a.ReportsUnmeasurable=8]="ReportsUnmeasurable",a[a.ReportsUnreliable=16]="ReportsUnreliable",a[a.ReportsMask=24]="ReportsMask",(i=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[i.None=0]="None",i[i.Auto=1]="Auto",i[i.Loop=2]="Loop",i[i.Unique=3]="Unique",i[i.Node=4]="Node",i[i.KindMask=7]="KindMask",i[i.ReservedInNestedScopes=8]="ReservedInNestedScopes",i[i.Optimistic=16]="Optimistic",i[i.FileLevel=32]="FileLevel",i[i.AllowNameSubstitution=64]="AllowNameSubstitution",(n=e.TokenFlags||(e.TokenFlags={}))[n.None=0]="None",n[n.PrecedingLineBreak=1]="PrecedingLineBreak",n[n.PrecedingJSDocComment=2]="PrecedingJSDocComment",n[n.Unterminated=4]="Unterminated",n[n.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",n[n.Scientific=16]="Scientific",n[n.Octal=32]="Octal",n[n.HexSpecifier=64]="HexSpecifier",n[n.BinarySpecifier=128]="BinarySpecifier",n[n.OctalSpecifier=256]="OctalSpecifier",n[n.ContainsSeparator=512]="ContainsSeparator",n[n.UnicodeEscape=1024]="UnicodeEscape",n[n.ContainsInvalidEscape=2048]="ContainsInvalidEscape",n[n.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",n[n.NumericLiteralFlags=1008]="NumericLiteralFlags",n[n.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(r=e.FlowFlags||(e.FlowFlags={}))[r.Unreachable=1]="Unreachable",r[r.Start=2]="Start",r[r.BranchLabel=4]="BranchLabel",r[r.LoopLabel=8]="LoopLabel",r[r.Assignment=16]="Assignment",r[r.TrueCondition=32]="TrueCondition",r[r.FalseCondition=64]="FalseCondition",r[r.SwitchClause=128]="SwitchClause",r[r.ArrayMutation=256]="ArrayMutation",r[r.Call=512]="Call",r[r.ReduceLabel=1024]="ReduceLabel",r[r.Referenced=2048]="Referenced",r[r.Shared=4096]="Shared",r[r.Label=12]="Label",r[r.Condition=96]="Condition",(t=e.CommentDirectiveType||(e.CommentDirectiveType={}))[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore",e.OperationCanceledException=()=>{},(fe=e.FileIncludeKind||(e.FileIncludeKind={}))[fe.RootFile=0]="RootFile",fe[fe.SourceFromProjectReference=1]="SourceFromProjectReference",fe[fe.OutputFromProjectReference=2]="OutputFromProjectReference",fe[fe.Import=3]="Import",fe[fe.ReferenceFile=4]="ReferenceFile",fe[fe.TypeReferenceDirective=5]="TypeReferenceDirective",fe[fe.LibFile=6]="LibFile",fe[fe.LibReferenceDirective=7]="LibReferenceDirective",fe[fe.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",(_e=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}))[_e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",_e[_e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",(pe=e.StructureIsReused||(e.StructureIsReused={}))[pe.Not=0]="Not",pe[pe.SafeModules=1]="SafeModules",pe[pe.Completely=2]="Completely",(ue=e.ExitStatus||(e.ExitStatus={}))[ue.Success=0]="Success",ue[ue.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",ue[ue.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",ue[ue.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",ue[ue.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",ue[ue.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(de=e.MemberOverrideStatus||(e.MemberOverrideStatus={}))[de.Ok=0]="Ok",de[de.NeedsOverride=1]="NeedsOverride",de[de.HasInvalidOverride=2]="HasInvalidOverride",(le=e.UnionReduction||(e.UnionReduction={}))[le.None=0]="None",le[le.Literal=1]="Literal",le[le.Subtype=2]="Subtype",(ce=e.ContextFlags||(e.ContextFlags={}))[ce.None=0]="None",ce[ce.Signature=1]="Signature",ce[ce.NoConstraints=2]="NoConstraints",ce[ce.Completions=4]="Completions",ce[ce.SkipBindingPatterns=8]="SkipBindingPatterns",(se=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[se.None=0]="None",se[se.NoTruncation=1]="NoTruncation",se[se.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",se[se.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",se[se.UseStructuralFallback=8]="UseStructuralFallback",se[se.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",se[se.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",se[se.UseFullyQualifiedType=64]="UseFullyQualifiedType",se[se.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",se[se.SuppressAnyReturnType=256]="SuppressAnyReturnType",se[se.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",se[se.MultilineObjectLiterals=1024]="MultilineObjectLiterals",se[se.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",se[se.UseTypeOfFunction=4096]="UseTypeOfFunction",se[se.OmitParameterModifiers=8192]="OmitParameterModifiers",se[se.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",se[se.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",se[se.NoTypeReduction=536870912]="NoTypeReduction",se[se.OmitThisParameter=33554432]="OmitThisParameter",se[se.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",se[se.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",se[se.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",se[se.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",se[se.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",se[se.AllowEmptyTuple=524288]="AllowEmptyTuple",se[se.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",se[se.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",se[se.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",se[se.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",se[se.IgnoreErrors=70221824]="IgnoreErrors",se[se.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",se[se.InTypeAlias=8388608]="InTypeAlias",se[se.InInitialEntityName=16777216]="InInitialEntityName",(oe=e.TypeFormatFlags||(e.TypeFormatFlags={}))[oe.None=0]="None",oe[oe.NoTruncation=1]="NoTruncation",oe[oe.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",oe[oe.UseStructuralFallback=8]="UseStructuralFallback",oe[oe.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",oe[oe.UseFullyQualifiedType=64]="UseFullyQualifiedType",oe[oe.SuppressAnyReturnType=256]="SuppressAnyReturnType",oe[oe.MultilineObjectLiterals=1024]="MultilineObjectLiterals",oe[oe.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",oe[oe.UseTypeOfFunction=4096]="UseTypeOfFunction",oe[oe.OmitParameterModifiers=8192]="OmitParameterModifiers",oe[oe.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",oe[oe.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",oe[oe.NoTypeReduction=536870912]="NoTypeReduction",oe[oe.OmitThisParameter=33554432]="OmitThisParameter",oe[oe.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",oe[oe.AddUndefined=131072]="AddUndefined",oe[oe.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",oe[oe.InArrayType=524288]="InArrayType",oe[oe.InElementType=2097152]="InElementType",oe[oe.InFirstTypeArgument=4194304]="InFirstTypeArgument",oe[oe.InTypeAlias=8388608]="InTypeAlias",oe[oe.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",oe[oe.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",(ae=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[ae.None=0]="None",ae[ae.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",ae[ae.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",ae[ae.AllowAnyNodeKind=4]="AllowAnyNodeKind",ae[ae.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",ae[ae.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(ie=e.SymbolAccessibility||(e.SymbolAccessibility={}))[ie.Accessible=0]="Accessible",ie[ie.NotAccessible=1]="NotAccessible",ie[ie.CannotBeNamed=2]="CannotBeNamed",(ne=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[ne.UnionOrIntersection=0]="UnionOrIntersection",ne[ne.Spread=1]="Spread",(re=e.TypePredicateKind||(e.TypePredicateKind={}))[re.This=0]="This",re[re.Identifier=1]="Identifier",re[re.AssertsThis=2]="AssertsThis",re[re.AssertsIdentifier=3]="AssertsIdentifier",(te=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[te.Unknown=0]="Unknown",te[te.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",te[te.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",te[te.NumberLikeType=3]="NumberLikeType",te[te.BigIntLikeType=4]="BigIntLikeType",te[te.StringLikeType=5]="StringLikeType",te[te.BooleanType=6]="BooleanType",te[te.ArrayLikeType=7]="ArrayLikeType",te[te.ESSymbolType=8]="ESSymbolType",te[te.Promise=9]="Promise",te[te.TypeWithCallSignature=10]="TypeWithCallSignature",te[te.ObjectType=11]="ObjectType",(ee=e.SymbolFlags||(e.SymbolFlags={}))[ee.None=0]="None",ee[ee.FunctionScopedVariable=1]="FunctionScopedVariable",ee[ee.BlockScopedVariable=2]="BlockScopedVariable",ee[ee.Property=4]="Property",ee[ee.EnumMember=8]="EnumMember",ee[ee.Function=16]="Function",ee[ee.Class=32]="Class",ee[ee.Interface=64]="Interface",ee[ee.ConstEnum=128]="ConstEnum",ee[ee.RegularEnum=256]="RegularEnum",ee[ee.ValueModule=512]="ValueModule",ee[ee.NamespaceModule=1024]="NamespaceModule",ee[ee.TypeLiteral=2048]="TypeLiteral",ee[ee.ObjectLiteral=4096]="ObjectLiteral",ee[ee.Method=8192]="Method",ee[ee.Constructor=16384]="Constructor",ee[ee.GetAccessor=32768]="GetAccessor",ee[ee.SetAccessor=65536]="SetAccessor",ee[ee.Signature=131072]="Signature",ee[ee.TypeParameter=262144]="TypeParameter",ee[ee.TypeAlias=524288]="TypeAlias",ee[ee.ExportValue=1048576]="ExportValue",ee[ee.Alias=2097152]="Alias",ee[ee.Prototype=4194304]="Prototype",ee[ee.ExportStar=8388608]="ExportStar",ee[ee.Optional=16777216]="Optional",ee[ee.Transient=33554432]="Transient",ee[ee.Assignment=67108864]="Assignment",ee[ee.ModuleExports=134217728]="ModuleExports",ee[ee.All=67108863]="All",ee[ee.Enum=384]="Enum",ee[ee.Variable=3]="Variable",ee[ee.Value=111551]="Value",ee[ee.Type=788968]="Type",ee[ee.Namespace=1920]="Namespace",ee[ee.Module=1536]="Module",ee[ee.Accessor=98304]="Accessor",ee[ee.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",ee[ee.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",ee[ee.ParameterExcludes=111551]="ParameterExcludes",ee[ee.PropertyExcludes=0]="PropertyExcludes",ee[ee.EnumMemberExcludes=900095]="EnumMemberExcludes",ee[ee.FunctionExcludes=110991]="FunctionExcludes",ee[ee.ClassExcludes=899503]="ClassExcludes",ee[ee.InterfaceExcludes=788872]="InterfaceExcludes",ee[ee.RegularEnumExcludes=899327]="RegularEnumExcludes",ee[ee.ConstEnumExcludes=899967]="ConstEnumExcludes",ee[ee.ValueModuleExcludes=110735]="ValueModuleExcludes",ee[ee.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",ee[ee.MethodExcludes=103359]="MethodExcludes",ee[ee.GetAccessorExcludes=46015]="GetAccessorExcludes",ee[ee.SetAccessorExcludes=78783]="SetAccessorExcludes",ee[ee.TypeParameterExcludes=526824]="TypeParameterExcludes",ee[ee.TypeAliasExcludes=788968]="TypeAliasExcludes",ee[ee.AliasExcludes=2097152]="AliasExcludes",ee[ee.ModuleMember=2623475]="ModuleMember",ee[ee.ExportHasLocal=944]="ExportHasLocal",ee[ee.BlockScoped=418]="BlockScoped",ee[ee.PropertyOrAccessor=98308]="PropertyOrAccessor",ee[ee.ClassMember=106500]="ClassMember",ee[ee.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",ee[ee.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",ee[ee.Classifiable=2885600]="Classifiable",ee[ee.LateBindingContainer=6256]="LateBindingContainer",(Z=e.EnumKind||(e.EnumKind={}))[Z.Numeric=0]="Numeric",Z[Z.Literal=1]="Literal",(Q=e.CheckFlags||(e.CheckFlags={}))[Q.Instantiated=1]="Instantiated",Q[Q.SyntheticProperty=2]="SyntheticProperty",Q[Q.SyntheticMethod=4]="SyntheticMethod",Q[Q.Readonly=8]="Readonly",Q[Q.ReadPartial=16]="ReadPartial",Q[Q.WritePartial=32]="WritePartial",Q[Q.HasNonUniformType=64]="HasNonUniformType",Q[Q.HasLiteralType=128]="HasLiteralType",Q[Q.ContainsPublic=256]="ContainsPublic",Q[Q.ContainsProtected=512]="ContainsProtected",Q[Q.ContainsPrivate=1024]="ContainsPrivate",Q[Q.ContainsStatic=2048]="ContainsStatic",Q[Q.Late=4096]="Late",Q[Q.ReverseMapped=8192]="ReverseMapped",Q[Q.OptionalParameter=16384]="OptionalParameter",Q[Q.RestParameter=32768]="RestParameter",Q[Q.DeferredType=65536]="DeferredType",Q[Q.HasNeverType=131072]="HasNeverType",Q[Q.Mapped=262144]="Mapped",Q[Q.StripOptional=524288]="StripOptional",Q[Q.Unresolved=1048576]="Unresolved",Q[Q.Synthetic=6]="Synthetic",Q[Q.Discriminant=192]="Discriminant",Q[Q.Partial=48]="Partial",(Y=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",Y.Constructor="__constructor",Y.New="__new",Y.Index="__index",Y.ExportStar="__export",Y.Global="__global",Y.Missing="__missing",Y.Type="__type",Y.Object="__object",Y.JSXAttributes="__jsxAttributes",Y.Class="__class",Y.Function="__function",Y.Computed="__computed",Y.Resolving="__resolving__",Y.ExportEquals="export=",Y.Default="default",Y.This="this",(X=e.NodeCheckFlags||(e.NodeCheckFlags={}))[X.TypeChecked=1]="TypeChecked",X[X.LexicalThis=2]="LexicalThis",X[X.CaptureThis=4]="CaptureThis",X[X.CaptureNewTarget=8]="CaptureNewTarget",X[X.SuperInstance=256]="SuperInstance",X[X.SuperStatic=512]="SuperStatic",X[X.ContextChecked=1024]="ContextChecked",X[X.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",X[X.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",X[X.CaptureArguments=8192]="CaptureArguments",X[X.EnumValuesComputed=16384]="EnumValuesComputed",X[X.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",X[X.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",X[X.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",X[X.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",X[X.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",X[X.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",X[X.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",X[X.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",X[X.AssignmentsMarked=8388608]="AssignmentsMarked",X[X.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",X[X.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",X[X.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",X[X.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",X[X.InCheckIdentifier=268435456]="InCheckIdentifier",(q=e.TypeFlags||(e.TypeFlags={}))[q.Any=1]="Any",q[q.Unknown=2]="Unknown",q[q.String=4]="String",q[q.Number=8]="Number",q[q.Boolean=16]="Boolean",q[q.Enum=32]="Enum",q[q.BigInt=64]="BigInt",q[q.StringLiteral=128]="StringLiteral",q[q.NumberLiteral=256]="NumberLiteral",q[q.BooleanLiteral=512]="BooleanLiteral",q[q.EnumLiteral=1024]="EnumLiteral",q[q.BigIntLiteral=2048]="BigIntLiteral",q[q.ESSymbol=4096]="ESSymbol",q[q.UniqueESSymbol=8192]="UniqueESSymbol",q[q.Void=16384]="Void",q[q.Undefined=32768]="Undefined",q[q.Null=65536]="Null",q[q.Never=131072]="Never",q[q.TypeParameter=262144]="TypeParameter",q[q.Object=524288]="Object",q[q.Union=1048576]="Union",q[q.Intersection=2097152]="Intersection",q[q.Index=4194304]="Index",q[q.IndexedAccess=8388608]="IndexedAccess",q[q.Conditional=16777216]="Conditional",q[q.Substitution=33554432]="Substitution",q[q.NonPrimitive=67108864]="NonPrimitive",q[q.TemplateLiteral=134217728]="TemplateLiteral",q[q.StringMapping=268435456]="StringMapping",q[q.AnyOrUnknown=3]="AnyOrUnknown",q[q.Nullable=98304]="Nullable",q[q.Literal=2944]="Literal",q[q.Unit=109440]="Unit",q[q.StringOrNumberLiteral=384]="StringOrNumberLiteral",q[q.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",q[q.DefinitelyFalsy=117632]="DefinitelyFalsy",q[q.PossiblyFalsy=117724]="PossiblyFalsy",q[q.Intrinsic=67359327]="Intrinsic",q[q.Primitive=131068]="Primitive",q[q.StringLike=402653316]="StringLike",q[q.NumberLike=296]="NumberLike",q[q.BigIntLike=2112]="BigIntLike",q[q.BooleanLike=528]="BooleanLike",q[q.EnumLike=1056]="EnumLike",q[q.ESSymbolLike=12288]="ESSymbolLike",q[q.VoidLike=49152]="VoidLike",q[q.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",q[q.DisjointDomains=469892092]="DisjointDomains",q[q.UnionOrIntersection=3145728]="UnionOrIntersection",q[q.StructuredType=3670016]="StructuredType",q[q.TypeVariable=8650752]="TypeVariable",q[q.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",q[q.InstantiablePrimitive=406847488]="InstantiablePrimitive",q[q.Instantiable=465829888]="Instantiable",q[q.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",q[q.ObjectFlagsType=3899393]="ObjectFlagsType",q[q.Simplifiable=25165824]="Simplifiable",q[q.Singleton=67358815]="Singleton",q[q.Narrowable=536624127]="Narrowable",q[q.IncludesMask=205258751]="IncludesMask",q[q.IncludesMissingType=262144]="IncludesMissingType",q[q.IncludesNonWideningType=4194304]="IncludesNonWideningType",q[q.IncludesWildcard=8388608]="IncludesWildcard",q[q.IncludesEmptyObject=16777216]="IncludesEmptyObject",q[q.IncludesInstantiable=33554432]="IncludesInstantiable",q[q.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",($=e.ObjectFlags||(e.ObjectFlags={}))[$.Class=1]="Class",$[$.Interface=2]="Interface",$[$.Reference=4]="Reference",$[$.Tuple=8]="Tuple",$[$.Anonymous=16]="Anonymous",$[$.Mapped=32]="Mapped",$[$.Instantiated=64]="Instantiated",$[$.ObjectLiteral=128]="ObjectLiteral",$[$.EvolvingArray=256]="EvolvingArray",$[$.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",$[$.ReverseMapped=1024]="ReverseMapped",$[$.JsxAttributes=2048]="JsxAttributes",$[$.JSLiteral=4096]="JSLiteral",$[$.FreshLiteral=8192]="FreshLiteral",$[$.ArrayLiteral=16384]="ArrayLiteral",$[$.PrimitiveUnion=32768]="PrimitiveUnion",$[$.ContainsWideningType=65536]="ContainsWideningType",$[$.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",$[$.NonInferrableType=262144]="NonInferrableType",$[$.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",$[$.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",$[$.ClassOrInterface=3]="ClassOrInterface",$[$.RequiresWidening=196608]="RequiresWidening",$[$.PropagatingFlags=458752]="PropagatingFlags",$[$.ObjectTypeKindMask=1343]="ObjectTypeKindMask",$[$.ContainsSpread=2097152]="ContainsSpread",$[$.ObjectRestType=4194304]="ObjectRestType",$[$.InstantiationExpressionType=8388608]="InstantiationExpressionType",$[$.IsClassInstanceClone=16777216]="IsClassInstanceClone",$[$.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",$[$.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",$[$.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",$[$.IsGenericObjectType=4194304]="IsGenericObjectType",$[$.IsGenericIndexType=8388608]="IsGenericIndexType",$[$.IsGenericType=12582912]="IsGenericType",$[$.ContainsIntersections=16777216]="ContainsIntersections",$[$.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",$[$.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",$[$.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",$[$.IsNeverIntersection=33554432]="IsNeverIntersection",(G=e.VarianceFlags||(e.VarianceFlags={}))[G.Invariant=0]="Invariant",G[G.Covariant=1]="Covariant",G[G.Contravariant=2]="Contravariant",G[G.Bivariant=3]="Bivariant",G[G.Independent=4]="Independent",G[G.VarianceMask=7]="VarianceMask",G[G.Unmeasurable=8]="Unmeasurable",G[G.Unreliable=16]="Unreliable",G[G.AllowsStructuralFallback=24]="AllowsStructuralFallback",(J=e.ElementFlags||(e.ElementFlags={}))[J.Required=1]="Required",J[J.Optional=2]="Optional",J[J.Rest=4]="Rest",J[J.Variadic=8]="Variadic",J[J.Fixed=3]="Fixed",J[J.Variable=12]="Variable",J[J.NonRequired=14]="NonRequired",J[J.NonRest=11]="NonRest",(K=e.AccessFlags||(e.AccessFlags={}))[K.None=0]="None",K[K.IncludeUndefined=1]="IncludeUndefined",K[K.NoIndexSignatures=2]="NoIndexSignatures",K[K.Writing=4]="Writing",K[K.CacheSymbol=8]="CacheSymbol",K[K.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",K[K.ExpressionPosition=32]="ExpressionPosition",K[K.ReportDeprecated=64]="ReportDeprecated",K[K.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",K[K.Contextual=256]="Contextual",K[K.Persistent=1]="Persistent",(W=e.JsxReferenceKind||(e.JsxReferenceKind={}))[W.Component=0]="Component",W[W.Function=1]="Function",W[W.Mixed=2]="Mixed",(H=e.SignatureKind||(e.SignatureKind={}))[H.Call=0]="Call",H[H.Construct=1]="Construct",(z=e.SignatureFlags||(e.SignatureFlags={}))[z.None=0]="None",z[z.HasRestParameter=1]="HasRestParameter",z[z.HasLiteralTypes=2]="HasLiteralTypes",z[z.Abstract=4]="Abstract",z[z.IsInnerCallChain=8]="IsInnerCallChain",z[z.IsOuterCallChain=16]="IsOuterCallChain",z[z.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",z[z.PropagatingFlags=39]="PropagatingFlags",z[z.CallChainFlags=24]="CallChainFlags",(V=e.IndexKind||(e.IndexKind={}))[V.String=0]="String",V[V.Number=1]="Number",(j=e.TypeMapKind||(e.TypeMapKind={}))[j.Simple=0]="Simple",j[j.Array=1]="Array",j[j.Deferred=2]="Deferred",j[j.Function=3]="Function",j[j.Composite=4]="Composite",j[j.Merged=5]="Merged",(U=e.InferencePriority||(e.InferencePriority={}))[U.NakedTypeVariable=1]="NakedTypeVariable",U[U.SpeculativeTuple=2]="SpeculativeTuple",U[U.SubstituteSource=4]="SubstituteSource",U[U.HomomorphicMappedType=8]="HomomorphicMappedType",U[U.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",U[U.MappedTypeConstraint=32]="MappedTypeConstraint",U[U.ContravariantConditional=64]="ContravariantConditional",U[U.ReturnType=128]="ReturnType",U[U.LiteralKeyof=256]="LiteralKeyof",U[U.NoConstraints=512]="NoConstraints",U[U.AlwaysStrict=1024]="AlwaysStrict",U[U.MaxValue=2048]="MaxValue",U[U.PriorityImpliesCombination=416]="PriorityImpliesCombination",U[U.Circularity=-1]="Circularity",(B=e.InferenceFlags||(e.InferenceFlags={}))[B.None=0]="None",B[B.NoDefault=1]="NoDefault",B[B.AnyDefault=2]="AnyDefault",B[B.SkippedGenericFunction=4]="SkippedGenericFunction",(L=e.Ternary||(e.Ternary={}))[L.False=0]="False",L[L.Unknown=1]="Unknown",L[L.Maybe=3]="Maybe",L[L.True=-1]="True",(R=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[R.None=0]="None",R[R.ExportsProperty=1]="ExportsProperty",R[R.ModuleExports=2]="ModuleExports",R[R.PrototypeProperty=3]="PrototypeProperty",R[R.ThisProperty=4]="ThisProperty",R[R.Property=5]="Property",R[R.Prototype=6]="Prototype",R[R.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",R[R.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",R[R.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",(e=>{e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"})(d=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=(e,t)=>{void 0===t&&(t=!0);var r=d[e.category];return t?r.toLowerCase():r},(M=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[M.Classic=1]="Classic",M[M.NodeJs=2]="NodeJs",M[M.Node16=3]="Node16",M[M.NodeNext=99]="NodeNext",(O=e.ModuleDetectionKind||(e.ModuleDetectionKind={}))[O.Legacy=1]="Legacy",O[O.Auto=2]="Auto",O[O.Force=3]="Force",(I=e.WatchFileKind||(e.WatchFileKind={}))[I.FixedPollingInterval=0]="FixedPollingInterval",I[I.PriorityPollingInterval=1]="PriorityPollingInterval",I[I.DynamicPriorityPolling=2]="DynamicPriorityPolling",I[I.FixedChunkSizePolling=3]="FixedChunkSizePolling",I[I.UseFsEvents=4]="UseFsEvents",I[I.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",(P=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[P.UseFsEvents=0]="UseFsEvents",P[P.FixedPollingInterval=1]="FixedPollingInterval",P[P.DynamicPriorityPolling=2]="DynamicPriorityPolling",P[P.FixedChunkSizePolling=3]="FixedChunkSizePolling",(F=e.PollingWatchKind||(e.PollingWatchKind={}))[F.FixedInterval=0]="FixedInterval",F[F.PriorityInterval=1]="PriorityInterval",F[F.DynamicPriority=2]="DynamicPriority",F[F.FixedChunkSize=3]="FixedChunkSize",(w=e.ModuleKind||(e.ModuleKind={}))[w.None=0]="None",w[w.CommonJS=1]="CommonJS",w[w.AMD=2]="AMD",w[w.UMD=3]="UMD",w[w.System=4]="System",w[w.ES2015=5]="ES2015",w[w.ES2020=6]="ES2020",w[w.ES2022=7]="ES2022",w[w.ESNext=99]="ESNext",w[w.Node16=100]="Node16",w[w.NodeNext=199]="NodeNext",(N=e.JsxEmit||(e.JsxEmit={}))[N.None=0]="None",N[N.Preserve=1]="Preserve",N[N.React=2]="React",N[N.ReactNative=3]="ReactNative",N[N.ReactJSX=4]="ReactJSX",N[N.ReactJSXDev=5]="ReactJSXDev",(k=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[k.Remove=0]="Remove",k[k.Preserve=1]="Preserve",k[k.Error=2]="Error",(A=e.NewLineKind||(e.NewLineKind={}))[A.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",A[A.LineFeed=1]="LineFeed",(C=e.ScriptKind||(e.ScriptKind={}))[C.Unknown=0]="Unknown",C[C.JS=1]="JS",C[C.JSX=2]="JSX",C[C.TS=3]="TS",C[C.TSX=4]="TSX",C[C.External=5]="External",C[C.JSON=6]="JSON",C[C.Deferred=7]="Deferred",(T=e.ScriptTarget||(e.ScriptTarget={}))[T.ES3=0]="ES3",T[T.ES5=1]="ES5",T[T.ES2015=2]="ES2015",T[T.ES2016=3]="ES2016",T[T.ES2017=4]="ES2017",T[T.ES2018=5]="ES2018",T[T.ES2019=6]="ES2019",T[T.ES2020=7]="ES2020",T[T.ES2021=8]="ES2021",T[T.ES2022=9]="ES2022",T[T.ESNext=99]="ESNext",T[T.JSON=100]="JSON",T[T.Latest=99]="Latest",(S=e.LanguageVariant||(e.LanguageVariant={}))[S.Standard=0]="Standard",S[S.JSX=1]="JSX",(D=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[D.None=0]="None",D[D.Recursive=1]="Recursive",(x=e.CharacterCodes||(e.CharacterCodes={}))[x.nullCharacter=0]="nullCharacter",x[x.maxAsciiCharacter=127]="maxAsciiCharacter",x[x.lineFeed=10]="lineFeed",x[x.carriageReturn=13]="carriageReturn",x[x.lineSeparator=8232]="lineSeparator",x[x.paragraphSeparator=8233]="paragraphSeparator",x[x.nextLine=133]="nextLine",x[x.space=32]="space",x[x.nonBreakingSpace=160]="nonBreakingSpace",x[x.enQuad=8192]="enQuad",x[x.emQuad=8193]="emQuad",x[x.enSpace=8194]="enSpace",x[x.emSpace=8195]="emSpace",x[x.threePerEmSpace=8196]="threePerEmSpace",x[x.fourPerEmSpace=8197]="fourPerEmSpace",x[x.sixPerEmSpace=8198]="sixPerEmSpace",x[x.figureSpace=8199]="figureSpace",x[x.punctuationSpace=8200]="punctuationSpace",x[x.thinSpace=8201]="thinSpace",x[x.hairSpace=8202]="hairSpace",x[x.zeroWidthSpace=8203]="zeroWidthSpace",x[x.narrowNoBreakSpace=8239]="narrowNoBreakSpace",x[x.ideographicSpace=12288]="ideographicSpace",x[x.mathematicalSpace=8287]="mathematicalSpace",x[x.ogham=5760]="ogham",x[x._=95]="_",x[x.$=36]="$",x[x._0=48]="_0",x[x._1=49]="_1",x[x._2=50]="_2",x[x._3=51]="_3",x[x._4=52]="_4",x[x._5=53]="_5",x[x._6=54]="_6",x[x._7=55]="_7",x[x._8=56]="_8",x[x._9=57]="_9",x[x.a=97]="a",x[x.b=98]="b",x[x.c=99]="c",x[x.d=100]="d",x[x.e=101]="e",x[x.f=102]="f",x[x.g=103]="g",x[x.h=104]="h",x[x.i=105]="i",x[x.j=106]="j",x[x.k=107]="k",x[x.l=108]="l",x[x.m=109]="m",x[x.n=110]="n",x[x.o=111]="o",x[x.p=112]="p",x[x.q=113]="q",x[x.r=114]="r",x[x.s=115]="s",x[x.t=116]="t",x[x.u=117]="u",x[x.v=118]="v",x[x.w=119]="w",x[x.x=120]="x",x[x.y=121]="y",x[x.z=122]="z",x[x.A=65]="A",x[x.B=66]="B",x[x.C=67]="C",x[x.D=68]="D",x[x.E=69]="E",x[x.F=70]="F",x[x.G=71]="G",x[x.H=72]="H",x[x.I=73]="I",x[x.J=74]="J",x[x.K=75]="K",x[x.L=76]="L",x[x.M=77]="M",x[x.N=78]="N",x[x.O=79]="O",x[x.P=80]="P",x[x.Q=81]="Q",x[x.R=82]="R",x[x.S=83]="S",x[x.T=84]="T",x[x.U=85]="U",x[x.V=86]="V",x[x.W=87]="W",x[x.X=88]="X",x[x.Y=89]="Y",x[x.Z=90]="Z",x[x.ampersand=38]="ampersand",x[x.asterisk=42]="asterisk",x[x.at=64]="at",x[x.backslash=92]="backslash",x[x.backtick=96]="backtick",x[x.bar=124]="bar",x[x.caret=94]="caret",x[x.closeBrace=125]="closeBrace",x[x.closeBracket=93]="closeBracket",x[x.closeParen=41]="closeParen",x[x.colon=58]="colon",x[x.comma=44]="comma",x[x.dot=46]="dot",x[x.doubleQuote=34]="doubleQuote",x[x.equals=61]="equals",x[x.exclamation=33]="exclamation",x[x.greaterThan=62]="greaterThan",x[x.hash=35]="hash",x[x.lessThan=60]="lessThan",x[x.minus=45]="minus",x[x.openBrace=123]="openBrace",x[x.openBracket=91]="openBracket",x[x.openParen=40]="openParen",x[x.percent=37]="percent",x[x.plus=43]="plus",x[x.question=63]="question",x[x.semicolon=59]="semicolon",x[x.singleQuote=39]="singleQuote",x[x.slash=47]="slash",x[x.tilde=126]="tilde",x[x.backspace=8]="backspace",x[x.formFeed=12]="formFeed",x[x.byteOrderMark=65279]="byteOrderMark",x[x.tab=9]="tab",x[x.verticalTab=11]="verticalTab",(E=e.Extension||(e.Extension={})).Ts=".ts",E.Tsx=".tsx",E.Dts=".d.ts",E.Js=".js",E.Jsx=".jsx",E.Json=".json",E.TsBuildInfo=".tsbuildinfo",E.Mjs=".mjs",E.Mts=".mts",E.Dmts=".d.mts",E.Cjs=".cjs",E.Cts=".cts",E.Dcts=".d.cts",(b=e.TransformFlags||(e.TransformFlags={}))[b.None=0]="None",b[b.ContainsTypeScript=1]="ContainsTypeScript",b[b.ContainsJsx=2]="ContainsJsx",b[b.ContainsESNext=4]="ContainsESNext",b[b.ContainsES2022=8]="ContainsES2022",b[b.ContainsES2021=16]="ContainsES2021",b[b.ContainsES2020=32]="ContainsES2020",b[b.ContainsES2019=64]="ContainsES2019",b[b.ContainsES2018=128]="ContainsES2018",b[b.ContainsES2017=256]="ContainsES2017",b[b.ContainsES2016=512]="ContainsES2016",b[b.ContainsES2015=1024]="ContainsES2015",b[b.ContainsGenerator=2048]="ContainsGenerator",b[b.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",b[b.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",b[b.ContainsLexicalThis=16384]="ContainsLexicalThis",b[b.ContainsRestOrSpread=32768]="ContainsRestOrSpread",b[b.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",b[b.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",b[b.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",b[b.ContainsBindingPattern=524288]="ContainsBindingPattern",b[b.ContainsYield=1048576]="ContainsYield",b[b.ContainsAwait=2097152]="ContainsAwait",b[b.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",b[b.ContainsDynamicImport=8388608]="ContainsDynamicImport",b[b.ContainsClassFields=16777216]="ContainsClassFields",b[b.ContainsDecorators=33554432]="ContainsDecorators",b[b.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",b[b.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",b[b.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",b[b.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",b[b.HasComputedFlags=-2147483648]="HasComputedFlags",b[b.AssertTypeScript=1]="AssertTypeScript",b[b.AssertJsx=2]="AssertJsx",b[b.AssertESNext=4]="AssertESNext",b[b.AssertES2022=8]="AssertES2022",b[b.AssertES2021=16]="AssertES2021",b[b.AssertES2020=32]="AssertES2020",b[b.AssertES2019=64]="AssertES2019",b[b.AssertES2018=128]="AssertES2018",b[b.AssertES2017=256]="AssertES2017",b[b.AssertES2016=512]="AssertES2016",b[b.AssertES2015=1024]="AssertES2015",b[b.AssertGenerator=2048]="AssertGenerator",b[b.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",b[b.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",b[b.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",b[b.NodeExcludes=-2147483648]="NodeExcludes",b[b.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",b[b.FunctionExcludes=-1937940480]="FunctionExcludes",b[b.ConstructorExcludes=-1937948672]="ConstructorExcludes",b[b.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",b[b.PropertyExcludes=-2013249536]="PropertyExcludes",b[b.ClassExcludes=-2147344384]="ClassExcludes",b[b.ModuleExcludes=-1941676032]="ModuleExcludes",b[b.TypeExcludes=-2]="TypeExcludes",b[b.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",b[b.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",b[b.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",b[b.ParameterExcludes=-2147483648]="ParameterExcludes",b[b.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",b[b.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",b[b.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",b[b.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",(v=e.SnippetKind||(e.SnippetKind={}))[v.TabStop=0]="TabStop",v[v.Placeholder=1]="Placeholder",v[v.Choice=2]="Choice",v[v.Variable=3]="Variable",(y=e.EmitFlags||(e.EmitFlags={}))[y.None=0]="None",y[y.SingleLine=1]="SingleLine",y[y.AdviseOnEmitNode=2]="AdviseOnEmitNode",y[y.NoSubstitution=4]="NoSubstitution",y[y.CapturesThis=8]="CapturesThis",y[y.NoLeadingSourceMap=16]="NoLeadingSourceMap",y[y.NoTrailingSourceMap=32]="NoTrailingSourceMap",y[y.NoSourceMap=48]="NoSourceMap",y[y.NoNestedSourceMaps=64]="NoNestedSourceMaps",y[y.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",y[y.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",y[y.NoTokenSourceMaps=384]="NoTokenSourceMaps",y[y.NoLeadingComments=512]="NoLeadingComments",y[y.NoTrailingComments=1024]="NoTrailingComments",y[y.NoComments=1536]="NoComments",y[y.NoNestedComments=2048]="NoNestedComments",y[y.HelperName=4096]="HelperName",y[y.ExportName=8192]="ExportName",y[y.LocalName=16384]="LocalName",y[y.InternalName=32768]="InternalName",y[y.Indented=65536]="Indented",y[y.NoIndentation=131072]="NoIndentation",y[y.AsyncFunctionBody=262144]="AsyncFunctionBody",y[y.ReuseTempVariableScope=524288]="ReuseTempVariableScope",y[y.CustomPrologue=1048576]="CustomPrologue",y[y.NoHoisting=2097152]="NoHoisting",y[y.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",y[y.Iterator=8388608]="Iterator",y[y.NoAsciiEscaping=16777216]="NoAsciiEscaping",y[y.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",y[y.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",y[y.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",y[y.Immutable=268435456]="Immutable",y[y.IndirectCall=536870912]="IndirectCall",(h=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[h.Extends=1]="Extends",h[h.Assign=2]="Assign",h[h.Rest=4]="Rest",h[h.Decorate=8]="Decorate",h[h.Metadata=16]="Metadata",h[h.Param=32]="Param",h[h.Awaiter=64]="Awaiter",h[h.Generator=128]="Generator",h[h.Values=256]="Values",h[h.Read=512]="Read",h[h.SpreadArray=1024]="SpreadArray",h[h.Await=2048]="Await",h[h.AsyncGenerator=4096]="AsyncGenerator",h[h.AsyncDelegator=8192]="AsyncDelegator",h[h.AsyncValues=16384]="AsyncValues",h[h.ExportStar=32768]="ExportStar",h[h.ImportStar=65536]="ImportStar",h[h.ImportDefault=131072]="ImportDefault",h[h.MakeTemplateObject=262144]="MakeTemplateObject",h[h.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",h[h.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",h[h.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",h[h.CreateBinding=4194304]="CreateBinding",h[h.FirstEmitHelper=1]="FirstEmitHelper",h[h.LastEmitHelper=4194304]="LastEmitHelper",h[h.ForOfIncludes=256]="ForOfIncludes",h[h.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",h[h.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",h[h.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",h[h.SpreadIncludes=1536]="SpreadIncludes",(g=e.EmitHint||(e.EmitHint={}))[g.SourceFile=0]="SourceFile",g[g.Expression=1]="Expression",g[g.IdentifierName=2]="IdentifierName",g[g.MappedTypeParameter=3]="MappedTypeParameter",g[g.Unspecified=4]="Unspecified",g[g.EmbeddedStatement=5]="EmbeddedStatement",g[g.JsxAttributeValue=6]="JsxAttributeValue",(m=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[m.Parentheses=1]="Parentheses",m[m.TypeAssertions=2]="TypeAssertions",m[m.NonNullAssertions=4]="NonNullAssertions",m[m.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",m[m.Assertions=6]="Assertions",m[m.All=15]="All",m[m.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",(f=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[f.None=0]="None",f[f.InParameters=1]="InParameters",f[f.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(_=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",_.EmitHelpers="emitHelpers",_.NoDefaultLib="no-default-lib",_.Reference="reference",_.Type="type",_.TypeResolutionModeRequire="type-require",_.TypeResolutionModeImport="type-import",_.Lib="lib",_.Prepend="prepend",_.Text="text",_.Internal="internal",(p=e.ListFormat||(e.ListFormat={}))[p.None=0]="None",p[p.SingleLine=0]="SingleLine",p[p.MultiLine=1]="MultiLine",p[p.PreserveLines=2]="PreserveLines",p[p.LinesMask=3]="LinesMask",p[p.NotDelimited=0]="NotDelimited",p[p.BarDelimited=4]="BarDelimited",p[p.AmpersandDelimited=8]="AmpersandDelimited",p[p.CommaDelimited=16]="CommaDelimited",p[p.AsteriskDelimited=32]="AsteriskDelimited",p[p.DelimitersMask=60]="DelimitersMask",p[p.AllowTrailingComma=64]="AllowTrailingComma",p[p.Indented=128]="Indented",p[p.SpaceBetweenBraces=256]="SpaceBetweenBraces",p[p.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",p[p.Braces=1024]="Braces",p[p.Parenthesis=2048]="Parenthesis",p[p.AngleBrackets=4096]="AngleBrackets",p[p.SquareBrackets=8192]="SquareBrackets",p[p.BracketsMask=15360]="BracketsMask",p[p.OptionalIfUndefined=16384]="OptionalIfUndefined",p[p.OptionalIfEmpty=32768]="OptionalIfEmpty",p[p.Optional=49152]="Optional",p[p.PreferNewLine=65536]="PreferNewLine",p[p.NoTrailingNewLine=131072]="NoTrailingNewLine",p[p.NoInterveningComments=262144]="NoInterveningComments",p[p.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",p[p.SingleElement=1048576]="SingleElement",p[p.SpaceAfterList=2097152]="SpaceAfterList",p[p.Modifiers=2359808]="Modifiers",p[p.HeritageClauses=512]="HeritageClauses",p[p.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",p[p.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",p[p.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",p[p.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",p[p.UnionTypeConstituents=516]="UnionTypeConstituents",p[p.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",p[p.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",p[p.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",p[p.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",p[p.ImportClauseEntries=526226]="ImportClauseEntries",p[p.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",p[p.CommaListElements=528]="CommaListElements",p[p.CallExpressionArguments=2576]="CallExpressionArguments",p[p.NewExpressionArguments=18960]="NewExpressionArguments",p[p.TemplateExpressionSpans=262144]="TemplateExpressionSpans",p[p.SingleLineBlockStatements=768]="SingleLineBlockStatements",p[p.MultiLineBlockStatements=129]="MultiLineBlockStatements",p[p.VariableDeclarationList=528]="VariableDeclarationList",p[p.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",p[p.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",p[p.ClassHeritageClauses=0]="ClassHeritageClauses",p[p.ClassMembers=129]="ClassMembers",p[p.InterfaceMembers=129]="InterfaceMembers",p[p.EnumMembers=145]="EnumMembers",p[p.CaseBlockClauses=129]="CaseBlockClauses",p[p.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",p[p.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",p[p.JsxElementAttributes=262656]="JsxElementAttributes",p[p.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",p[p.HeritageClauseTypes=528]="HeritageClauseTypes",p[p.SourceFileStatements=131073]="SourceFileStatements",p[p.Decorators=2146305]="Decorators",p[p.TypeArguments=53776]="TypeArguments",p[p.TypeParameters=53776]="TypeParameters",p[p.Parameters=2576]="Parameters",p[p.IndexSignatureParameters=8848]="IndexSignatureParameters",p[p.JSDocComment=33]="JSDocComment",(u=e.PragmaKindFlags||(e.PragmaKindFlags={}))[u.None=0]="None",u[u.TripleSlashXML=1]="TripleSlashXML",u[u.SingleLine=2]="SingleLine",u[u.MultiLine=4]="MultiLine",u[u.All=7]="All",u[u.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},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}})(p),(e=>{function t(e){for(var t=5381,r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}var n,i;function a(t,r){return t.getModifiedTime(r)||e.missingFileModifiedTime}function o(e){var t;return(t={})[i.Low]=e.Low,t[i.Medium]=e.Medium,t[i.High]=e.High,t}e.generateDjb2Hash=t,e.setStackTraceLimit=()=>{Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},(e=>{e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"})(n=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),(e=>{e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low"})(i=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0),e.getModifiedTime=a;var s={Low:32,Medium:64,High:256},c=o(s);function l(t){if(t.getEnvironmentVariable){var r=((e,t)=>{var r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}})(0,i);c=a("TSC_WATCH_POLLINGCHUNKSIZE",s)||c,e.unchangedPollThresholds=a("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",s)||e.unchangedPollThresholds}function n(e){var r;return n("Low"),n("Medium"),n("High"),r;function n(n){var i=((e,r)=>t.getEnvironmentVariable("".concat(e,"_").concat(r.toUpperCase())))(e,n);i&&((r||(r={}))[n]=Number(i))}}function a(e,t){var i=n(e);return(r||i)&&o(i?m(m({},t),i):t)}}function d(e,t,r,n,i){for(var o=r,s=t.length;n&&s;++r===t.length&&(o<r&&(t.length=o),r=0,o=0),s--){var c=t[r];if(c)if(c.isClosed)t[r]=void 0;else{n--;var l=f(c,a(e,c.fileName));c.isClosed?t[r]=void 0:(null==i||i(c,r,l),t[r]&&(o<r&&(t[o]=c,t[r]=void 0),o++))}}return r}function u(t){var r=[],n=[],o=u(i.Low),s=u(i.Medium),l=u(i.High);return(n,i,o)=>{var s={fileName:n,callback:i,unchangedPolls:0,mtime:a(t,n)};return r.push(s),g(s,o),{close(){s.isClosed=!0,e.unorderedRemoveItem(r,s)}}};function u(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function p(t){t.pollIndex=f(t,t.pollingInterval,t.pollIndex,c[t.pollingInterval]),t.length?y(t.pollingInterval):(e.Debug.assert(0===t.pollIndex),t.pollScheduled=!1)}function _(e){f(n,i.Low,0,n.length),p(e),!e.pollScheduled&&n.length&&y(i.Low)}function f(r,a,o,s){return d(t,r,o,s,((t,o,s)=>{var c;s?(t.unchangedPolls=0,r!==n&&(r[o]=void 0,c=t,n.push(c),h(i.Low))):t.unchangedPolls!==e.unchangedPollThresholds[a]?t.unchangedPolls++:r===n?(t.unchangedPolls=1,r[o]=void 0,g(t,i.Low)):a!==i.High&&(t.unchangedPolls++,r[o]=void 0,g(t,a===i.Low?i.Medium:i.High))}))}function m(e){switch(e){case i.Low:return o;case i.Medium:return s;case i.High:return l}}function g(e,t){m(t).push(e),h(t)}function h(e){m(e).pollScheduled||y(e)}function y(e){m(e).pollScheduled=t.setTimeout(e===i.Low?_:p,e,m(e))}}function p(t){var r,n=[],o=0;return(r,i)=>{var o={fileName:r,callback:i,mtime:a(t,r)};return n.push(o),l(),{close(){o.isClosed=!0,e.unorderedRemoveItem(n,o)}}};function s(){r=void 0,o=d(t,n,o,c[i.Low]),l()}function l(){n.length&&!r&&(r=t.setTimeout(s,i.High))}}function _(t,r){var n=new e.Map,i=e.createMultiMap(),a=e.createGetCanonicalFileName(r);return(r,o,s,c)=>{var l=a(r),d=n.get(l);return d?d.refCount++:n.set(l,{watcher:t(r,((t,r,n)=>e.forEach(i.get(l),(e=>e(t,r,n)))),s,c),refCount:1}),i.add(l,o),{close(){var t=e.Debug.checkDefined(n.get(l));i.remove(l,o),t.refCount--,t.refCount||(n.delete(l),e.closeFileWatcherOf(t))}}}}function f(e,t){var r=e.mtime.getTime(),n=t.getTime();return r!==n&&(e.mtime=t,e.callback(e.fileName,g(r,n),t),!0)}function g(e,t){return 0===e?n.Created:0===t?n.Deleted:n.Changed}e.unchangedPollThresholds=o(s),e.setCustomPollingValues=l,e.createDynamicPriorityPollingWatchFile=u,e.createSingleFileWatcherPerName=_,e.onWatchedFileStat=f,e.getFileWatcherEventKind=g,e.ignoredPaths=["/node_modules/.","/.git","/.#"];var h,y,v=e.noop;function b(e){return v(e)}function E(t){var r,n=t.watchDirectory,i=t.useCaseSensitiveFileNames,a=t.getCurrentDirectory,o=t.getAccessibleSortedChildDirectories,s=t.fileSystemEntryExists,c=t.realpath,l=t.setTimeout,d=t.clearTimeout,u=new e.Map,p=e.createMultiMap(),_=new e.Map,f=e.getStringComparer(!i),m=e.createGetCanonicalFileName(i);return(e,t,r,i)=>r?g(e,i,t):n(e,t,r,i);function g(t,i,a){var o=m(t),c=u.get(o);c?c.refCount++:(c={watcher:n(t,(e=>{x(e,i)||((null==i?void 0:i.synchronousWatchDirectory)?(h(o,e),E(t,o,i)):((e,t,n,i)=>{var a=u.get(t);a&&s(e,1)?((e,t,n,i)=>{var a=_.get(t);a?a.fileNames.push(n):_.set(t,{dirName:e,options:i,fileNames:[n]}),r&&(d(r),r=void 0),r=l(y,1e3)})(e,t,n,i):(h(t,n),v(a))})(t,o,e,i))}),!1,i),refCount:1,childWatches:e.emptyArray},u.set(o,c),E(t,o,i));var f=a&&{dirName:t,callback:a};return f&&p.add(o,f),{dirName:t,close(){var t=e.Debug.checkDefined(u.get(o));f&&p.remove(o,f),t.refCount--,t.refCount||(u.delete(o),e.closeFileWatcherOf(t),t.childWatches.forEach(e.closeFileWatcher))}}}function h(t,r,n){var i,a;e.isString(r)?i=r:a=r,p.forEach(((r,o)=>{var s;if((!a||!0!==a.get(o))&&(o===t||e.startsWith(t,o)&&t[o.length]===e.directorySeparator))if(a)if(n){var c=a.get(o);c?(s=c).push.apply(s,n):a.set(o,n.slice())}else a.set(o,!0);else r.forEach((e=>(0,e.callback)(i)))}))}function y(){r=void 0,b("sysLog:: onTimerToUpdateChildWatches:: ".concat(_.size));for(var t=e.timestamp(),n=new e.Map;!r&&_.size;){var i=_.entries().next();e.Debug.assert(!i.done);var a=i.value,o=a[0],s=a[1],c=s.dirName,l=s.options,d=s.fileNames;_.delete(o);var u=E(c,o,l);h(o,n,u?void 0:d)}b("sysLog:: invokingWatchers:: Elapsed:: ".concat(e.timestamp()-t,"ms:: ").concat(_.size)),p.forEach(((t,r)=>{var i=n.get(r);i&&t.forEach((t=>{var r=t.callback,n=t.dirName;e.isArray(i)?i.forEach(r):r(n)}))}));var f=e.timestamp()-t;b("sysLog:: Elapsed:: ".concat(f,"ms:: onTimerToUpdateChildWatches:: ").concat(_.size," ").concat(r))}function v(t){if(t){var r=t.childWatches;t.childWatches=e.emptyArray;for(var n=0,i=r;n<i.length;n++){var a=i[n];a.close(),v(u.get(m(a.dirName)))}}}function E(t,r,n){var i,a=u.get(r);if(!a)return!1;var l=e.enumerateInsertsAndDeletes(s(t,1)?e.mapDefined(o(t),(r=>{var i=e.getNormalizedAbsolutePath(r,t);return x(i,n)||0!==f(i,e.normalizePath(c(i)))?void 0:i})):e.emptyArray,a.childWatches,((e,t)=>f(e,t.dirName)),(e=>{d(g(e,n))}),e.closeFileWatcher,d);return a.childWatches=i||e.emptyArray,l;function d(e){(i||(i=[])).push(e)}}function x(t,r){return e.some(e.ignoredPaths,(r=>((t,r)=>!!e.stringContains(t,r)||!i&&e.stringContains(m(t),r))(t,r)))||D(t,r,i,a)}}function x(e){return(t,r,i)=>e(r===n.Changed?"change":"rename","",i)}function D(t,r,n,i){return((null==r?void 0:r.excludeDirectories)||(null==r?void 0:r.excludeFiles))&&(e.matchesExclude(t,null==r?void 0:r.excludeFiles,n,i())||e.matchesExclude(t,null==r?void 0:r.excludeDirectories,n,i()))}function S(t,r,n,i,a){return(o,s)=>{if("rename"===o){var c=s?e.normalizePath(e.combinePaths(t,s)):t;s&&D(c,n,i,a)||r(c)}}}function T(t){var r,a,o,s,c=t.pollingWatchFile,l=t.getModifiedTime,d=t.setTimeout,_=t.clearTimeout,f=t.fsWatchWorker,m=t.fileSystemEntryExists,g=t.useCaseSensitiveFileNames,h=t.getCurrentDirectory,y=t.fsSupportsRecursiveFsWatch,v=t.getAccessibleSortedChildDirectories,b=t.realpath,D=t.tscWatchFile,T=t.useNonPollingWatchers,C=t.tscWatchDirectory,A=t.defaultWatchFileKind,k=t.inodeWatching,N=t.sysLog,w=!1;return{watchFile:F,watchDirectory:(t,r,n,a)=>y?R(t,1,S(t,r,a,g,h),n,i.Medium,e.getFallbackOptions(a)):(s||(s=E({useCaseSensitiveFileNames:g,getCurrentDirectory:h,fileSystemEntryExists:m,getAccessibleSortedChildDirectories:v,watchDirectory:M,realpath:b,setTimeout:d,clearTimeout:_})),s(t,r,n,a))};function F(t,r,a,s){s=((t,r)=>{if(t&&void 0!==t.watchFile)return t;switch(D){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return O(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,t);case"UseFsEventsWithFallbackDynamicPolling":return O(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,t);case"UseFsEventsOnParentDirectory":r=!0;default:return r?O(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,t):{watchFile:(null==A?void 0:A())||e.WatchFileKind.FixedPollingInterval}}})(s,T);var d=e.Debug.checkDefined(s.watchFile);switch(d){case e.WatchFileKind.FixedPollingInterval:return c(t,r,i.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return c(t,r,a,void 0);case e.WatchFileKind.DynamicPriorityPolling:return P()(t,r,a,void 0);case e.WatchFileKind.FixedChunkSizePolling:return I()(t,r,void 0,void 0);case e.WatchFileKind.UseFsEvents:return R(t,0,((t,r,i)=>(a,o,s)=>{"rename"===a?(s||(s=i(t)||e.missingFileModifiedTime),r(t,s!==e.missingFileModifiedTime?n.Created:n.Deleted,s)):r(t,n.Changed,s)})(t,r,l),!1,a,e.getFallbackOptions(s));case e.WatchFileKind.UseFsEventsOnParentDirectory:return o||(o=((t,r)=>{var a=e.createMultiMap(),o=new e.Map,s=e.createGetCanonicalFileName(r);return(r,c,l,d)=>{var u=s(r);a.add(u,c);var p=e.getDirectoryPath(u)||".",_=o.get(p)||((r,c,l)=>{var d=t(r,1,((t,i,o)=>{if(e.isString(i)){var c=e.getNormalizedAbsolutePath(i,r),l=c&&a.get(s(c));if(l)for(var d=0,u=l;d<u.length;d++)(0,u[d])(c,n.Changed,o)}}),!1,i.Medium,l);return d.referenceCount=0,o.set(c,d),d})(e.getDirectoryPath(r)||".",p,d);return _.referenceCount++,{close(){1===_.referenceCount?(_.close(),o.delete(p)):_.referenceCount--,a.remove(u,c)}}}})(R,g)),o(t,r,a,e.getFallbackOptions(s));default:e.Debug.assertNever(d)}}function P(){return r||(r=u({getModifiedTime:l,setTimeout:d}))}function I(){return a||(a=p({getModifiedTime:l,setTimeout:d}))}function O(e,t,r){var n=null==r?void 0:r.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===n?t:n}}function M(t,r,n,a){e.Debug.assert(!n);var o=(t=>{if(t&&void 0!==t.watchDirectory)return t;switch(C){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var r=null==t?void 0:t.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:void 0!==r?r:void 0}}})(a),s=e.Debug.checkDefined(o.watchDirectory);switch(s){case e.WatchDirectoryKind.FixedPollingInterval:return c(t,(()=>r(t)),i.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return P()(t,(()=>r(t)),i.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return I()(t,(()=>r(t)),void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return R(t,1,S(t,r,a,g,h),n,i.Medium,e.getFallbackOptions(o));default:e.Debug.assertNever(s)}}function R(t,r,i,a,o,s){var c,d;k&&(c=t.substring(t.lastIndexOf(e.directorySeparator)),d=c.slice(e.directorySeparator.length));var u=m(t,r)?_():y();return{close(){u&&(u.close(),u=void 0)}};function p(e){u&&(N("sysLog:: ".concat(t,":: Changing watcher to ").concat(e===_?"Present":"Missing","FileSystemEntryWatcher")),u.close(),u=e())}function _(){if(w)return N("sysLog:: ".concat(t,":: Defaulting to watchFile")),h();try{var e=f(t,a,k?g:i);return e.on("error",(()=>{i("rename",""),p(y)})),e}catch(e){return w||(w="ENOSPC"===e.code),N("sysLog:: ".concat(t,":: Changing to watchFile")),h()}}function g(r,n){var a;if(n&&e.endsWith(n,"~")&&(a=n,n=n.slice(0,n.length-1)),"rename"!==r||n&&n!==d&&!e.endsWith(n,c))a&&i(r,a),i(r,n);else{var o=l(t)||e.missingFileModifiedTime;a&&i(r,a,o),i(r,n,o),k?p(o===e.missingFileModifiedTime?y:_):o===e.missingFileModifiedTime&&p(y)}}function h(){return F(t,x(i),o,s)}function y(){return F(t,((r,a,o)=>{a===n.Created&&(o||(o=l(t)||e.missingFileModifiedTime),o!==e.missingFileModifiedTime&&(i("rename","",o),p(_)))}),o,s)}}}function C(t){var r=t.writeFile;t.writeFile=(n,i,a)=>e.writeFileEnsuringDirectories(n,i,!!a,((e,n,i)=>r.call(t,e,n,i)),(e=>t.createDirectory(e)),(e=>t.directoryExists(e)))}function A(){if(void 0!==r){var e=r.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.sysLog=b,e.setSysLog=e=>{v=e},e.createDirectoryWatcherSupportingRecursive=E,(y=e.FileSystemEntryKind||(e.FileSystemEntryKind={}))[y.File=0]="File",y[y.Directory=1]="Directory",e.createFileWatcherCallback=x,e.createSystemWatchFunctions=T,e.patchWriteFileEnsuringDirectory=C,e.getNodeMajorVersion=A,e.sys=(void 0!==r&&r.nextTick&&!r.browser&&"undefined"!=typeof require&&(h=(()=>{var i,a=require("fs"),o=require("path"),s=require("os");try{i=require("crypto")}catch(e){i=void 0}var c,l=require("buffer").Buffer,d=A()>=4,u="linux"===r.platform||"darwin"===r.platform,p=s.platform(),f="win32"!==p&&"win64"!==p&&!w((c=__filename,c.replace(/\w/g,(e=>{var t=e.toUpperCase();return e===t?e.toLowerCase():t})))),m=a.realpathSync.native?"win32"===r.platform?e=>e.length<260?a.realpathSync.native(e):a.realpathSync(e):a.realpathSync.native:a.realpathSync,g=d&&("win32"===r.platform||"darwin"===r.platform),y=e.memoize((()=>r.cwd())),v=T({pollingWatchFile:_(((e,t,r)=>{var i;return a.watchFile(e,{persistent:!0,interval:r},o),{close:()=>a.unwatchFile(e,o)};function o(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,r.mtime)}}),f),getModifiedTime:P,setTimeout,clearTimeout,fsWatchWorker:(e,t,r)=>a.watch(e,g?{persistent:!0,recursive:!!t}:{persistent:!0},r),useCaseSensitiveFileNames:f,getCurrentDirectory:y,fileSystemEntryExists:N,fsSupportsRecursiveFsWatch:g,getAccessibleSortedChildDirectories:e=>k(e).directories,realpath:F,tscWatchFile:r.env.TSC_WATCHFILE,useNonPollingWatchers:r.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:r.env.TSC_WATCHDIRECTORY,defaultWatchFileKind(){var e,t;return null===(t=(e=h).defaultWatchFileKind)||void 0===t?void 0:t.call(e)},inodeWatching:u,sysLog:b}),E=v.watchFile,x=v.watchDirectory,D={args:r.argv.slice(2),newLine:s.EOL,useCaseSensitiveFileNames:f,write(e){r.stdout.write(e)},getWidthOfTerminal:()=>r.stdout.columns,writeOutputIsTTY:()=>r.stdout.isTTY,readFile(t,r){e.perfLogger.logStartReadFile(t);var n=((e,t)=>{var r;try{r=a.readFileSync(e)}catch(e){return}var n=r.length;if(n>=2&&254===r[0]&&255===r[1]){n&=-2;for(var i=0;i<n;i+=2){var o=r[i];r[i]=r[i+1],r[i+1]=o}return r.toString("utf16le",2)}return n>=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(t,r,n){var i;e.perfLogger.logEvent("WriteFile: "+t),n&&(r="\ufeff"+r);try{i=a.openSync(t,"w"),a.writeSync(i,r,void 0,"utf8")}finally{void 0!==i&&a.closeSync(i)}},watchFile:E,watchDirectory:x,resolvePath:e=>o.resolve(e),fileExists:w,directoryExists:e=>N(e,1),createDirectory(e){if(!D.directoryExists(e))try{a.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:()=>__filename,getCurrentDirectory:y,getDirectories:e=>k(e).directories.slice(),getEnvironmentVariable:e=>r.env[e]||"",readDirectory:(t,n,i,a,o)=>e.matchFiles(t,n,i,a,f,r.cwd(),o,k,F),getModifiedTime:P,setModifiedTime(e,t){try{a.utimesSync(e,t,t)}catch(e){return}},deleteFile(e){try{return a.unlinkSync(e)}catch(e){return}},createHash:i?I:t,createSHA256Hash:i?I:void 0,getMemoryUsage:()=>(global.gc&&global.gc(),r.memoryUsage().heapUsed),getFileSize(e){try{var t=S(e);if(null==t?void 0:t.isFile())return t.size}catch(e){}return 0},exit(e){!(e=>{e()})((()=>r.exit(e)))},cpuProfilingEnabled:()=>e.contains(r.execArgv,"--cpu-prof")||e.contains(r.execArgv,"--prof"),realpath:F,debugMode:!!r.env.NODE_INSPECTOR_IPC||!!r.env.VSCODE_INSPECTOR_OPTIONS||e.some(r.execArgv,(e=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e))),tryEnableSourceMapsForHost(){try{require("source-map-support").install()}catch(e){}},setTimeout,clearTimeout,clearScreen(){r.stdout.write("c")},setBlocking(){r.stdout&&r.stdout._handle&&r.stdout._handle.setBlocking&&r.stdout._handle.setBlocking(!0)},bufferFrom:C,base64decode:e=>C(e,"base64").toString("utf8"),base64encode:e=>C(e).toString("base64"),require(t,r){try{var n=e.resolveJSModule(r,t,D);return{module:require(n),modulePath:n,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return D;function S(e){return a.statSync(e,{throwIfNoEntry:!1})}function C(e,t){return l.from&&l.from!==Int8Array.from?l.from(e,t):new l(e,t)}function k(t){e.perfLogger.logEvent("ReadDir: "+(t||"."));try{for(var r=a.readdirSync(t||".",{withFileTypes:!0}),n=[],i=[],o=0,s=r;o<s.length;o++){var c=s[o],l="string"==typeof c?c:c.name;if("."!==l&&".."!==l){var d=void 0;if("string"==typeof c||c.isSymbolicLink()){var u=e.combinePaths(t,l);try{if(!(d=S(u)))continue}catch(e){continue}}else d=c;d.isFile()?n.push(l):d.isDirectory()&&i.push(l)}}return n.sort(),i.sort(),{files:n,directories:i}}catch(t){return e.emptyFileSystemEntries}}function N(e,t){var r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{var n=S(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(e){return!1}finally{Error.stackTraceLimit=r}}function w(e){return N(e,0)}function F(e){try{return m(e)}catch(t){return e}}function P(e){var t,r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return null===(t=S(e))||void 0===t?void 0:t.mtime}catch(e){return}finally{Error.stackTraceLimit=r}}function I(e){var t=i.createHash("sha256");return t.update(e),t.digest("hex")}})()),h&&C(h),h),e.setSys=t=>{e.sys=t},e.sys&&e.sys.getEnvironmentVariable&&(l(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)})(p),(e=>{e.directorySeparator="/",e.altDirectorySeparator="\\";var t=/\\/g;function r(e){return 47===e||92===e}function n(e){return l(e)>0}function i(e){return 0!==l(e)}function a(e){return/^\.\.?($|[\\/])/.test(e)}function o(t,r){return t.length>r.length&&e.endsWith(t,r)}function s(e){return e.length>0&&r(e.charCodeAt(e.length-1))}function c(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:e.altDirectorySeparator,2);return n<0?t.length:n+1}if(c(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 l=t.slice(0,a),d=t.slice(o,s);if("file"===l&&(""===d||"localhost"===d)&&c(t.charCodeAt(s+1))){var u=((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!==u){if(47===t.charCodeAt(u))return~(u+1);if(u===t.length)return~u}}return~(s+1)}return~t.length}return 0}function d(e){var t=l(e);return t<0?~t:t}function u(t){var r=d(t=y(t));return r===t.length?t:(t=T(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function p(t,r,n){if(d(t=y(t))===t.length)return"";var i=(t=T(t)).slice(Math.max(d(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?m(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function _(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 m(t,r,n){if(r)return((e,t,r)=>{if("string"==typeof t)return _(e,t,r)||"";for(var n=0,i=t;n<i.length;n++){var a=_(e,i[n],r);if(a)return a}return""})(T(t),r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var i=p(t),a=i.lastIndexOf(".");return a>=0?i.substring(a):""}function g(t,r){return void 0===r&&(r=""),((t,r)=>{var n=t.substring(0,r),i=t.substring(r).split(e.directorySeparator);return i.length&&!e.lastOrUndefined(i)&&i.pop(),f([n],i,!0)})(t=b(r,t),d(t))}function h(t){return 0===t.length?"":(t[0]&&C(t[0]))+t.slice(1).join(e.directorySeparator)}function y(r){var n=r.indexOf("\\");return-1===n?r:(t.lastIndex=n,r.replace(t,e.directorySeparator))}function v(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n<t.length;n++){var i=t[n];if(i&&"."!==i){if(".."===i)if(r.length>1){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;r<arguments.length;r++)t[r-1]=arguments[r];e&&(e=y(e));for(var n=0,i=t;n<i.length;n++){var a=i[n];a&&(a=y(a),e=e&&0===d(a)?C(e)+a:a)}return e}function E(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return S(e.some(r)?b.apply(void 0,f([t],r,!1)):y(t))}function x(e,t){return v(g(e,t))}function D(e,t){return h(x(e,t))}function S(e){if(e=y(e),!k.test(e))return e;var t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!k.test(e)))return e;var r=h(v(g(e)));return r&&s(e)?C(r):r}function T(e){return s(e)?e.substr(0,e.length-1):e}function C(t){return s(t)?t:t+e.directorySeparator}function A(e){return i(e)||a(e)?e:"./"+e}e.isAnyDirectorySeparator=r,e.isUrl=e=>l(e)<0,e.isRootedDiskPath=n,e.isDiskPathRoot=e=>{var t=l(e);return t>0&&t===e.length},e.pathIsAbsolute=i,e.pathIsRelative=a,e.pathIsBareSpecifier=e=>!i(e)&&!a(e),e.hasExtension=t=>e.stringContains(p(t),"."),e.fileExtensionIs=o,e.fileExtensionIsOneOf=(e,t)=>{for(var r=0,n=t;r<n.length;r++)if(o(e,n[r]))return!0;return!1},e.hasTrailingDirectorySeparator=s,e.getRootLength=d,e.getDirectoryPath=u,e.getBaseFileName=p,e.getAnyExtensionFromPath=m,e.getPathComponents=g,e.getPathFromPathComponents=h,e.normalizeSlashes=y,e.reducePathComponents=v,e.combinePaths=b,e.resolvePath=E,e.getNormalizedPathComponents=x,e.getNormalizedAbsolutePath=D,e.normalizePath=S,e.getNormalizedAbsolutePathWithoutRoot=(t,r)=>{return 0===(n=x(t,r)).length?"":n.slice(1).join(e.directorySeparator);var n},e.toPath=(e,t,r)=>r(n(e)?S(e):D(e,t)),e.removeTrailingDirectorySeparator=T,e.ensureTrailingDirectorySeparator=C,e.ensurePathIsNonModuleName=A,e.changeAnyExtension=(t,r,n,i)=>{var a=void 0!==n&&void 0!==i?m(t,n,i):m(t);return a?t.slice(0,t.length-a.length)+(e.startsWith(r,".")?r:"."+r):t};var k=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function N(t,r,n){if(t===r)return 0;if(void 0===t)return-1;if(void 0===r)return 1;var i=t.substring(0,d(t)),a=r.substring(0,d(r)),o=e.compareStringsCaseInsensitive(i,a);if(0!==o)return o;var s=t.substring(i.length),c=r.substring(a.length);if(!k.test(s)&&!k.test(c))return n(s,c);for(var l=v(g(t)),u=v(g(r)),p=Math.min(l.length,u.length),_=1;_<p;_++){var f=n(l[_],u[_]);if(0!==f)return f}return e.compareValues(l.length,u.length)}function w(t,r,n,i){var a,o=v(g(t)),s=v(g(r));for(a=0;a<o.length&&a<s.length;a++){var c=i(o[a]),l=i(s[a]);if(!(0===a?e.equateStringsCaseInsensitive:n)(c,l))break}if(0===a)return s;for(var d=s.slice(a),u=[];a<o.length;a++)u.push("..");return f(f([""],u,!0),d,!0)}function F(t,r,n){e.Debug.assert(d(t)>0==d(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof n?n:e.identity;return h(w(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function P(t,r,i,a,o){var s=w(E(i,t),E(i,r),e.equateStringsCaseSensitive,a),c=s[0];if(o&&n(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return h(s)}e.comparePathsCaseSensitive=(t,r)=>N(t,r,e.compareStringsCaseSensitive),e.comparePathsCaseInsensitive=(t,r)=>N(t,r,e.compareStringsCaseInsensitive),e.comparePaths=(t,r,n,i)=>("string"==typeof n?(t=b(n,t),r=b(n,r)):"boolean"==typeof n&&(i=n),N(t,r,e.getStringComparer(i))),e.containsPath=(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(g(t)),o=v(g(r));if(o.length<a.length)return!1;for(var s=i?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,c=0;c<a.length;c++)if(!(0===c?e.equateStringsCaseInsensitive:s)(a[c],o[c]))return!1;return!0},e.startsWithDirectory=(t,r,n)=>{var i=n(t),a=n(r);return e.startsWith(i,a+"/")||e.startsWith(i,a+"\\")},e.getPathComponentsRelativeTo=w,e.getRelativePathFromDirectory=F,e.convertToRelativePath=(e,t,r)=>n(e)?P(t,e,t,r,!1):e,e.getRelativePathFromFile=(e,t,r)=>A(F(u(e),t,r)),e.getRelativePathToDirectoryOrUrl=P,e.forEachAncestorDirectory=(e,t)=>{for(;;){var r=t(e);if(void 0!==r)return r;var n=u(e);if(n===e)return;e=n}},e.isNodeModulesDirectory=t=>e.endsWith(t,"/node_modules")})(p),(e=>{function t(e,t,r,n,i,a,o){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i,elidedInCompatabilityPyramid:a,reportsDeprecated:o}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:t(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:t(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:t(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:t(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:t(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:t(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:t(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:t(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:t(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:t(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:t(1046,e.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:t(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:t(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:t(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:t(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:t(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:t(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),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."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement: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."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:t(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary: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:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name: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."),or_JSX_element_expected:t(1145,e.DiagnosticCategory.Error,"or_JSX_element_expected_1145","'{' or JSX element 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_have_a_simple_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: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."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:t(1209,e.DiagnosticCategory.Error,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name: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_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_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file: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_at_the_top_level_of_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any: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."),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_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."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag: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."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:t(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:t(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:t(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:t(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:t(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided:t(1269,e.DiagnosticCategory.Error,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269","Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."),Decorator_function_return_type_0_is_not_assignable_to_type_1:t(1270,e.DiagnosticCategory.Error,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:t(1271,e.DiagnosticCategory.Error,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:t(1272,e.DiagnosticCategory.Error,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:t(1273,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:t(1274,e.DiagnosticCategory.Error,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),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."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:t(1309,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern: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_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:t(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected: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_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: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}')'?"),Class_constructor_may_not_be_an_accessor:t(1341,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),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_es2020_es2022_esnext_system_node16_or_nodenext:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here: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."),Class_constructor_may_not_be_a_generator:t(1360,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_a_generator_1360","Class constructor may not be a generator."),_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"),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),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_es2022_esnext_system_node16_or_nodenext_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_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', 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'."),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."),_0_is_not_allowed_as_a_variable_declaration_name:t(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:t(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:t(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:t(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:t(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:t(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:t(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:t(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:t(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:t(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:t(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:t(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:t(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:t(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:t(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:t(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:t(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:t(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:t(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:t(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:t(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:t(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:t(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:t(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:t(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:t(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:t(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:t(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:t(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:t(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:t(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:t(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:t(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:t(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:t(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:t(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:t(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:t(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:t(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:t(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:t(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:t(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:t(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:t(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:t(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:t(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:t(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:t(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:t(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:t(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:t(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:t(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:t(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:t(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:t(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:t(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:t(1452,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:t(1453,e.DiagnosticCategory.Error,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:t(1454,e.DiagnosticCategory.Error,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:t(1455,e.DiagnosticCategory.Error,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:t(1456,e.DiagnosticCategory.Error,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:t(1457,e.DiagnosticCategory.Message,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:t(1458,e.DiagnosticCategory.Message,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:t(1459,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:t(1460,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:t(1461,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:t(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:t(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:t(1472,e.DiagnosticCategory.Error,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1473,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1474,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:t(1475,e.DiagnosticCategory.Message,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:t(1476,e.DiagnosticCategory.Message,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:t(1477,e.DiagnosticCategory.Error,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:t(1478,e.DiagnosticCategory.Error,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:t(1479,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:t(1480,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:t(1481,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:t(1482,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:t(1483,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),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),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:t(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:t(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:t(2208,e.DiagnosticCategory.Error,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2209,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2210,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:t(2211,e.DiagnosticCategory.Message,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:t(2212,e.DiagnosticCategory.Message,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),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."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:t(2311,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members: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_for_type_0_is_missing_in_type_1:t(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body: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}'."),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_a_private_identifier_or_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360","The left-hand side of an 'in' expression must be a private identifier or of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),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_index_signature_for_type_0:t(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call: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."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:t(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),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."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2401,e.DiagnosticCategory.Error,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference: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'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:t(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:t(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0: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}'."),Types_of_construct_signatures_are_incompatible:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),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_This_is_an_instance_of_class_2:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead: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."),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_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'."),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'."),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."),A_tuple_type_cannot_be_indexed_with_a_negative_value:t(2514,e.DiagnosticCategory.Error,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2: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."),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."),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_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:t(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2: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}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:t(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1: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."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:t(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:t(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),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_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:t(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself: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_save_dev_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later: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 '{1}' 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."),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_save_dev_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_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import: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_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."),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."),Source_provides_no_match_for_required_element_at_position_0_in_target:t(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:t(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:t(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:t(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:t(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:t(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:t(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:t(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:t(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:t(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:t(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:t(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:t(2635,e.DiagnosticCategory.Error,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:t(2636,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:t(2637,e.DiagnosticCategory.Error,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),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}'."),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."),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'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:t(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),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'."),_0_has_no_exported_member_named_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0: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_this_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation: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?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:t(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:t(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:t(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:t(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:t(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:t(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:t(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:t(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:t(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:t(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:t(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:t(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:t(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:t(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:t(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:t(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:t(2810,e.DiagnosticCategory.Error,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:t(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:t(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:t(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:t(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:t(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:t(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:t(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:t(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:t(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:t(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:t(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:t(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:t(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:t(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:t(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:t(2836,e.DiagnosticCategory.Error,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:t(2837,e.DiagnosticCategory.Error,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:t(2838,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:t(2839,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:t(2840,e.DiagnosticCategory.Error,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(2841,e.DiagnosticCategory.Error,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:t(2842,e.DiagnosticCategory.Error,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:t(2843,e.DiagnosticCategory.Error,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2844,e.DiagnosticCategory.Error,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),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}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:t(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),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."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:t(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:t(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:t(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:t(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:t(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:t(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:t(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:t(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:t(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4125,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),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."),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."),Option_0_cannot_be_specified_when_option_jsx_is_1:t(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:t(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:t(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:t(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:t(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:t(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:t(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),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_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:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),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"),Errors_Files:t(6041,e.DiagnosticCategory.Message,"Errors_Files_6041","Errors Files"),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 <language> or <language>-<territory>. For example '{0}' or '{1}'."),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."),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:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),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."),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}'. ========"),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."),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"),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."),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_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types: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_FixedChunkSizePolling_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', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling: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', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize: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', 'FixedChunkSize'."),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."),Generates_an_event_trace_and_a_list_of_types:t(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:t(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:t(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:t(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:t(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:t(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:t(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:t(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:t(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:t(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:t(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:t(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:t(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:t(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:t(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:t(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:t(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:t(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:t(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:t(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:t(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:t(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:t(6259,e.DiagnosticCategory.Message,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:t(6260,e.DiagnosticCategory.Message,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:t(6261,e.DiagnosticCategory.Message,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:t(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:t(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:t(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:t(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:t(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),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_output_1_is_older_than_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist: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}'..."),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."),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')"),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}'"),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),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:t(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:t(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:t(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:t(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:t(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:t(6399,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:t(6400,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),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?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:t(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:t(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:t(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:t(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:t(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:t(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:t(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:t(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:t(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:t(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:t(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:t(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:t(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:t(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:t(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:t(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:t(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:t(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:t(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:t(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:t(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:t(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:t(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:t(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:t(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:t(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:t(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:t(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:t(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:t(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:t(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:t(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:t(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:t(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:t(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:t(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:t(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:t(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:t(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:t(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:t(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:t(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:t(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:t(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:t(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:t(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:t(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:t(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:t(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:t(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:t(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:t(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:t(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:t(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:t(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:t(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:t(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:t(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:t(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:t(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:t(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:t(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:t(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:t(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:t(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:t(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:t(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:t(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:t(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:t(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:t(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:t(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:t(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:t(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:t(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:t(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:t(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:t(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:t(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:t(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:t(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:t(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:t(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:t(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:t(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:t(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:t(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:t(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:t(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:t(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:t(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:t(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:t(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:t(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:t(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:t(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:t(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:t(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:t(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:t(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:t(6707,e.DiagnosticCategory.Message,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:t(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:t(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:t(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:t(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:t(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:t(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:t(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:t(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:t(6803,e.DiagnosticCategory.Message,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:t(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:t(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:t(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:t(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:t(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:t(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:t(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:t(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:t(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:t(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:t(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:t(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:t(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:t(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:t(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:t(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:t(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:t(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:t(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:t(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:t(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:t(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:t(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:t(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:t(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:t(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:t(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:t(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:t(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:t(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:t(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:t(6931,e.DiagnosticCategory.Error,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type: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_i_save_dev_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_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0: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."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:t(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:t(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:t(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:t(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:t(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:t(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),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."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:t(8035,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:t(8036,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),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}'."),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}"),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_ES_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration: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_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{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'"),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}'."),Includes_imports_of_types_referenced_by_0:t(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:t(90055,e.DiagnosticCategory.Message,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:t(90056,e.DiagnosticCategory.Message,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:t(90057,e.DiagnosticCategory.Message,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:t(90058,e.DiagnosticCategory.Message,"Update_import_from_0_90058",'Update import from "{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_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),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"),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_ES_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES 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}'"),Convert_all_type_literals_to_mapped_type:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),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"),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"),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_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement: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"),Add_void_to_Promise_resolved_without_a_value:t(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:t(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:t(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:t(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:t(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:t(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:t(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:t(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:t(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:t(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:t(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:t(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:t(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:t(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:t(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:t(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:t(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:t(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:t(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:t(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:t(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:t(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:t(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:t(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:t(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:t(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:t(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:t(95170,e.DiagnosticCategory.Message,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:t(95171,e.DiagnosticCategory.Message,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:t(95172,e.DiagnosticCategory.Message,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:t(95173,e.DiagnosticCategory.Message,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),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."),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."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:t(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:t(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:t(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:t(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:t(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:t(18042,e.DiagnosticCategory.Error,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:t(18043,e.DiagnosticCategory.Error,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:t(18044,e.DiagnosticCategory.Message,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here.")}})(p),(e=>{var t;function r(e){return e>=79}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=e=>31===e||r(e),e.textToKeywordObj=((t={abstract:126,any:130,as:127,asserts:128,assert:129,bigint:158,boolean:133,break:81,case:82,catch:83,class:84,continue:86,const:85}).constructor=134,t.debugger=87,t.declare=135,t.default=88,t.delete=89,t.do=90,t.else=91,t.enum=92,t.export=93,t.extends=94,t.false=95,t.finally=96,t.for=97,t.from=156,t.function=98,t.get=136,t.if=99,t.implements=117,t.import=100,t.in=101,t.infer=137,t.instanceof=102,t.interface=118,t.intrinsic=138,t.is=139,t.keyof=140,t.let=119,t.module=141,t.namespace=142,t.never=143,t.new=103,t.null=104,t.number=147,t.object=148,t.package=120,t.private=121,t.protected=122,t.public=123,t.override=159,t.out=144,t.readonly=145,t.require=146,t.global=157,t.return=105,t.set=149,t.static=124,t.string=150,t.super=106,t.switch=107,t.symbol=151,t.this=108,t.throw=109,t.true=110,t.try=111,t.type=152,t.typeof=112,t.undefined=153,t.unique=154,t.unknown=155,t.var=113,t.void=114,t.while=115,t.with=116,t.yield=125,t.async=131,t.await=132,t.of=160,t);var n=new e.Map(e.getEntries(e.textToKeywordObj)),i=new e.Map(e.getEntries(m(m({},e.textToKeywordObj),{"{":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,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),a=[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],o=[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],s=[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],c=[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],l=[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],u=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,p=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function _(e,t){if(e<t[0])return!1;for(var r,n=0,i=t.length;n+1<i;){if(r=n+(i-n)/2,t[r-=r%2]<=e&&e<=t[r+1])return!0;e<t[r]?i=r:n=r+2}return!1}function f(e,t){return _(e,t>=2?l:1===t?s:a)}e.isUnicodeIdentifierStart=f;var g,h=(g=[],i.forEach(((e,t)=>{g[e]=t})),g);function y(e){for(var t=new Array,r=0,n=0;r<e.length;){var i=e.charCodeAt(r);switch(r++,i){case 13:10===e.charCodeAt(r)&&r++;case 10:t.push(n),n=r;break;default:i>127&&T(i)&&(t.push(n),n=r)}}return t.push(n),t}function v(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: ".concat(r,", lineStarts.length: ").concat(t.length," , line map is correct? ").concat(void 0!==i?e.arraysEqual(t,y(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<t.length-1?e.Debug.assert(o<t[r+1]):void 0!==i&&e.Debug.assert(o<=i.length),o)}function b(e){return e.lineMap||(e.lineMap=y(e.text))}function E(e,t){var r=x(e,t);return{line:r,character:t-e[r]}}function x(t,r,n){var i=e.binarySearch(t,r,e.identity,e.compareValues,n);return i<0&&(i=~i-1,e.Debug.assert(-1!==i,"position cannot precede the beginning of the file")),i}function D(e){return S(e)||T(e)}function S(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function T(e){return 10===e||13===e||8232===e||8233===e}function C(e){return e>=48&&e<=57}function A(e){return C(e)||e>=65&&e<=70||e>=97&&e<=102}function k(e){return e>=48&&e<=55}e.tokenToString=e=>h[e],e.stringToToken=e=>i.get(e),e.computeLineStarts=y,e.getPositionOfLineAndCharacter=(e,t,r,n)=>e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):v(b(e),t,r,e.text,n),e.computePositionOfLineAndCharacter=v,e.getLineStarts=b,e.computeLineAndCharacterOfPosition=E,e.computeLineOfPosition=x,e.getLinesBetweenPositions=(e,t,r)=>{if(t===r)return 0;var n=b(e),i=Math.min(t,r),a=i===r,o=a?t:r,s=x(n,i),c=x(n,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=(e,t)=>E(b(e),t),e.isWhiteSpaceLike=D,e.isWhiteSpaceSingleLine=S,e.isLineBreak=T,e.isOctalDigit=k,e.couldStartTrivia=(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=(t,r,n,i,a)=>{if(e.positionIsSynthesized(r))return r;for(var o=!1;;){var s=t.charCodeAt(r);switch(s){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;o=!!a;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;r<t.length&&!T(t.charCodeAt(r));)r++;o=!1;continue}if(42===t.charCodeAt(r+1)){for(r+=2;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}o=!1;continue}break;case 60:case 124:case 61:case 62:if(w(t,r)){r=F(t,r),o=!1;continue}break;case 35:if(0===r&&I(t,r)){r=O(t,r),o=!1;continue}break;case 42:if(o){r++,o=!1;continue}break;default:if(s>127&&D(s)){r++;continue}}return r}};var N="<<<<<<<".length;function w(t,r){if(e.Debug.assert(r>=0),0===r||T(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+N<t.length){for(var i=0;i<N;i++)if(t.charCodeAt(r+i)!==n)return!1;return 61===n||32===t.charCodeAt(r+N)}}return!1}function F(t,r,n){n&&n(e.Diagnostics.Merge_conflict_marker_encountered,r,N);var i=t.charCodeAt(r),a=t.length;if(60===i||62===i)for(;r<a&&!T(t.charCodeAt(r));)r++;else for(e.Debug.assert(124===i||61===i);r<a;){var o=t.charCodeAt(r);if((61===o||62===o)&&o!==i&&w(t,r))break;r++}return r}var P=/^#!.*/;function I(t,r){return e.Debug.assert(0===r),P.test(t)}function O(e,t){return t+P.exec(e)[0].length}function M(e,t,r,n,i,a,o){var s,c,l,d,u=!1,p=n,_=o;if(0===r){p=!0;var f=U(t);f&&(r=f.length)}e:for(;r>=0&&r<t.length;){var m=t.charCodeAt(r);switch(m){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)break e;p=!0,u&&(d=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:var g=t.charCodeAt(r+1),h=!1;if(47===g||42===g){var y=47===g?2:3,v=r;if(r+=2,47===g)for(;r<t.length;){if(T(t.charCodeAt(r))){h=!0;break}r++}else for(;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}if(p){if(u&&(_=i(s,c,l,d,a,_),!e&&_))return _;s=v,c=r,l=y,d=h,u=!0}continue}break e;default:if(m>127&&D(m)){u&&T(m)&&(d=!0),r++;continue}break e}}return u&&(_=i(s,c,l,d,a,_)),_}function R(e,t,r,n,i){return M(!0,e,t,!1,r,n,i)}function L(e,t,r,n,i){return M(!0,e,t,!0,r,n,i)}function B(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=P.exec(e);if(t)return t[0]}function j(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&f(e,t)}function V(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&&((e,t)=>_(e,t>=2?d:1===t?c:o))(e,t)}e.isShebangTrivia=I,e.scanShebangTrivia=O,e.forEachLeadingCommentRange=(e,t,r,n)=>M(!1,e,t,!1,r,n),e.forEachTrailingCommentRange=(e,t,r,n)=>M(!1,e,t,!0,r,n),e.reduceEachLeadingCommentRange=R,e.reduceEachTrailingCommentRange=L,e.getLeadingCommentRanges=(e,t)=>R(e,t,B,void 0,void 0),e.getTrailingCommentRanges=(e,t)=>L(e,t,B,void 0,void 0),e.getShebang=U,e.isIdentifierStart=j,e.isIdentifierPart=V,e.isIdentifierText=(e,t,r)=>{var n=z(e,0);if(!j(n,t))return!1;for(var i=H(n);i<e.length;i+=H(n))if(!V(n=z(e,i),t,r))return!1;return!0},e.createScanner=(t,i,a,o,s,c,l)=>{void 0===a&&(a=0);var d,_,f,m,g,h,y,v,b=o,E=0;le(b,c,l);var x={getStartPos:()=>f,getTextPos:()=>d,getToken:()=>g,getTokenPos:()=>m,getTokenText:()=>b.substring(m,d),getTokenValue:()=>h,hasUnicodeEscape:()=>0!=(1024&y),hasExtendedUnicodeEscape:()=>0!=(8&y),hasPrecedingLineBreak:()=>0!=(1&y),hasPrecedingJSDocComment:()=>0!=(2&y),isIdentifier:()=>79===g||g>116,isReservedWord:()=>g>=81&&g<=116,isUnterminated:()=>0!=(4&y),getCommentDirectives:()=>v,getNumericLiteralFlags:()=>1008&y,getTokenFlags:()=>y,reScanGreaterToken(){if(31===g){if(62===b.charCodeAt(d))return 62===b.charCodeAt(d+1)?61===b.charCodeAt(d+2)?(d+=3,g=72):(d+=2,g=49):61===b.charCodeAt(d+1)?(d+=2,g=71):(d++,g=48);if(61===b.charCodeAt(d))return d++,g=33}return g},reScanAsteriskEqualsToken:()=>(e.Debug.assert(66===g,"'reScanAsteriskEqualsToken' should only be called on a '*='"),d=m+1,g=63),reScanSlashToken(){if(43===g||68===g){for(var r=m+1,n=!1,i=!1;;){if(r>=_){y|=4,N(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=b.charCodeAt(r);if(T(a)){y|=4,N(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<_&&V(b.charCodeAt(r),t);)r++;d=r,h=b.substring(m,d),g=13}return g},reScanTemplateToken:t=>(e.Debug.assert(19===g,"'reScanTemplateToken' should only be called on a '}'"),d=m,g=G(t)),reScanTemplateHeadOrNoSubstitutionTemplate:()=>(d=m,g=G(!0)),scanJsxIdentifier(){if(r(g)){for(var e=!1;d<_;){var t=b.charCodeAt(d);if(45!==t)if(58!==t||e){var n=d;if(h+=Z(),d===n)break}else h+=":",d++,e=!0,g=79;else h+="-",d++}return":"===h.slice(-1)&&(h=h.slice(0,-1),d--),ee()}return g},scanJsxAttributeValue:se,reScanJsxAttributeValue:()=>(d=m=f,se()),reScanJsxToken:e=>(void 0===e&&(e=!0),d=m=f,g=oe(e)),reScanLessThanToken:()=>47===g?(d=m+1,g=29):g,reScanHashToken:()=>80===g?(d=m+1,g=62):g,reScanQuestionToken:()=>(e.Debug.assert(60===g,"'reScanQuestionToken' should only be called on a '??'"),d=m+1,g=57),reScanInvalidIdentifier(){e.Debug.assert(0===g,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),d=m=f,y=0;var t=z(b,d),r=ie(t,99);return r?g=r:(d+=H(t),g)},scanJsxToken:oe,scanJsDocToken(){if(f=m=d,y=0,d>=_)return g=1;var e=z(b,d);switch(d+=H(e),e){case 9:case 11:case 12:case 32:for(;d<_&&S(b.charCodeAt(d));)d++;return g=5;case 64:return g=59;case 13:10===b.charCodeAt(d)&&d++;case 10:return y|=1,g=4;case 42:return g=41;case 123:return g=18;case 125:return g=19;case 91:return g=22;case 93:return g=23;case 60:return g=29;case 62:return g=31;case 61:return g=63;case 44:return g=27;case 46:return g=24;case 96:return g=61;case 35:return g=62;case 92:d--;var r=Q();if(r>=0&&j(r,t))return d+=3,y|=8,h=X()+Z(),g=ee();var n=Y();return n>=0&&j(n,t)?(d+=6,y|=1024,h=String.fromCharCode(n)+Z(),g=ee()):(d++,g=0)}if(j(e,t)){for(var i=e;d<_&&V(i=z(b,d),t)||45===b.charCodeAt(d);)d+=H(i);return h=b.substring(m,d),92===i&&(h+=Z()),g=ee()}return g=0},scan:ne,getText:()=>b,clearCommentDirectives(){v=void 0},setText:le,setScriptTarget(e){t=e},setLanguageVariant(e){a=e},setOnError(e){s=e},setTextPos:de,setInJSDocType(e){E+=e?1:-1},tryScan:e=>ce(e,!1),lookAhead:e=>ce(e,!0),scanRange(e,t,r){var n=_,i=d,a=f,o=m,s=g,c=h,l=y,u=v;le(b,e,t);var p=r();return _=n,d=i,f=a,m=o,g=s,h=c,y=l,v=u,p}};return e.Debug.isDebugging&&Object.defineProperty(x,"__debugShowCurrentPositionInText",{get(){var e=x.getText();return e.slice(0,x.getStartPos())+"║"+e.slice(x.getStartPos())}}),x;function N(e,t,r){if(void 0===t&&(t=d),s){var n=d;d=t,s(e,r||0),d=n}}function P(){for(var t=d,r=!1,n=!1,i="";;){var a=b.charCodeAt(d);if(95!==a){if(!C(a))break;r=!0,n=!1,d++}else y|=512,r?(r=!1,n=!0,i+=b.substring(t,d)):N(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),t=++d}return 95===b.charCodeAt(d-1)&&N(e.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),i+b.substring(t,d)}function M(){var t,r,n=d,i=P();46===b.charCodeAt(d)&&(d++,t=P());var a,o=d;if(69===b.charCodeAt(d)||101===b.charCodeAt(d)){d++,y|=16,43!==b.charCodeAt(d)&&45!==b.charCodeAt(d)||d++;var s=d,c=P();c?(r=b.substring(o,s)+c,o=d):N(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 R(n,void 0===t&&!!(16&y)),{type:8,value:""+ +a};h=a;var l=re();return R(n),{type:l,value:h}}function R(r,n){if(j(z(b,d),t)){var i=d,a=Z().length;1===a&&"n"===b[i]?N(n?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,r,i-r+1):(N(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),d=i)}}function L(){for(var e=d;k(b.charCodeAt(d));)d++;return+b.substring(e,d)}function B(e,t){var r=W(e,!1,t);return r?parseInt(r,16):-1}function U(e,t){return W(e,!0,t)}function W(t,r,n){for(var i=[],a=!1,o=!1;i.length<t||r;){var s=b.charCodeAt(d);if(n&&95===s)y|=512,a?(a=!1,o=!0):N(o?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),d++;else{if(a=n,s>=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),d++,o=!1}}return i.length<t&&(i=[]),95===b.charCodeAt(d-1)&&N(e.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),String.fromCharCode.apply(String,i)}function J(t){void 0===t&&(t=!1);for(var r=b.charCodeAt(d),n="",i=++d;;){if(d>=_){n+=b.substring(i,d),y|=4,N(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(d);if(a===r){n+=b.substring(i,d),d++;break}if(92!==a||t){if(T(a)&&!t){n+=b.substring(i,d),y|=4,N(e.Diagnostics.Unterminated_string_literal);break}d++}else n+=b.substring(i,d),n+=$(),i=d}return n}function G(t){for(var r,n=96===b.charCodeAt(d),i=++d,a="";;){if(d>=_){a+=b.substring(i,d),y|=4,N(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=b.charCodeAt(d);if(96===o){a+=b.substring(i,d),d++,r=n?14:17;break}if(36===o&&d+1<_&&123===b.charCodeAt(d+1)){a+=b.substring(i,d),d+=2,r=n?15:16;break}92!==o?13!==o?d++:(a+=b.substring(i,d),++d<_&&10===b.charCodeAt(d)&&d++,a+="\n",i=d):(a+=b.substring(i,d),a+=$(t),i=d)}return e.Debug.assert(void 0!==r),h=a,r}function $(t){var r=d;if(++d>=_)return N(e.Diagnostics.Unexpected_end_of_text),"";var n=b.charCodeAt(d);switch(d++,n){case 48:return t&&d<_&&C(b.charCodeAt(d))?(d++,y|=2048,b.substring(r,d)):"\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=d;i<d+4;i++)if(i<_&&!A(b.charCodeAt(i))&&123!==b.charCodeAt(i))return d=i,y|=2048,b.substring(r,d);if(d<_&&123===b.charCodeAt(d)){if(d++,t&&!A(b.charCodeAt(d)))return y|=2048,b.substring(r,d);if(t){var a=d,o=U(1,!1);if(!((o?parseInt(o,16):-1)<=1114111&&125===b.charCodeAt(d)))return y|=2048,b.substring(r,d);d=a}return y|=8,X()}return y|=1024,q(4);case 120:if(t){if(!A(b.charCodeAt(d)))return y|=2048,b.substring(r,d);if(!A(b.charCodeAt(d+1)))return d++,y|=2048,b.substring(r,d)}return q(2);case 13:d<_&&10===b.charCodeAt(d)&&d++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function q(t){var r=B(t,!1);return r>=0?String.fromCharCode(r):(N(e.Diagnostics.Hexadecimal_digit_expected),"")}function X(){var t=U(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(N(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(N(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),d>=_?(N(e.Diagnostics.Unexpected_end_of_text),n=!0):125===b.charCodeAt(d)?d++:(N(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":K(r)}function Y(){if(d+5<_&&117===b.charCodeAt(d+1)){var e=d;d+=2;var t=B(4,!1);return d=e,t}return-1}function Q(){if(t>=2&&117===z(b,d+1)&&123===z(b,d+2)){var e=d;d+=3;var r=U(1,!1),n=r?parseInt(r,16):-1;return d=e,n}return-1}function Z(){for(var e="",r=d;d<_;){var n=z(b,d);if(V(n,t))d+=H(n);else{if(92!==n)break;if((n=Q())>=0&&V(n,t)){d+=3,y|=8,e+=X(),r=d;continue}if(!((n=Y())>=0&&V(n,t)))break;y|=1024,e+=b.substring(r,d),e+=K(n),r=d+=6}}return e+b.substring(r,d)}function ee(){var e=h.length;if(e>=2&&e<=12){var t=h.charCodeAt(0);if(t>=97&&t<=122){var r=n.get(h);if(void 0!==r)return g=r}}return g=79}function te(t){for(var r="",n=!1,i=!1;;){var a=b.charCodeAt(d);if(95!==a){if(n=!0,!C(a)||a-48>=t)break;r+=b[d],d++,i=!1}else y|=512,n?(n=!1,i=!0):N(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),d++}return 95===b.charCodeAt(d-1)&&N(e.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),r}function re(){if(110===b.charCodeAt(d))return h+="n",384&y&&(h=e.parsePseudoBigInt(h)+"n"),d++,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;f=d,y=0;for(var n=!1;;){if(m=d,d>=_)return g=1;var o=z(b,d);if(35===o&&0===d&&I(b,d)){if(d=O(b,d),i)continue;return g=6}switch(o){case 10:case 13:if(y|=1,i){d++;continue}return 13===o&&d+1<_&&10===b.charCodeAt(d+1)?d+=2:d++,g=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(i){d++;continue}for(;d<_&&S(b.charCodeAt(d));)d++;return g=5;case 33:return 61===b.charCodeAt(d+1)?61===b.charCodeAt(d+2)?(d+=3,g=37):(d+=2,g=35):(d++,g=53);case 34:case 39:return h=J(),g=10;case 96:return g=G(!1);case 37:return 61===b.charCodeAt(d+1)?(d+=2,g=69):(d++,g=44);case 38:return 38===b.charCodeAt(d+1)?61===b.charCodeAt(d+2)?(d+=3,g=76):(d+=2,g=55):61===b.charCodeAt(d+1)?(d+=2,g=73):(d++,g=50);case 40:return d++,g=20;case 41:return d++,g=21;case 42:if(61===b.charCodeAt(d+1))return d+=2,g=66;if(42===b.charCodeAt(d+1))return 61===b.charCodeAt(d+2)?(d+=3,g=67):(d+=2,g=42);if(d++,E&&!n&&1&y){n=!0;continue}return g=41;case 43:return 43===b.charCodeAt(d+1)?(d+=2,g=45):61===b.charCodeAt(d+1)?(d+=2,g=64):(d++,g=39);case 44:return d++,g=27;case 45:return 45===b.charCodeAt(d+1)?(d+=2,g=46):61===b.charCodeAt(d+1)?(d+=2,g=65):(d++,g=40);case 46:return C(b.charCodeAt(d+1))?(h=M().value,g=8):46===b.charCodeAt(d+1)&&46===b.charCodeAt(d+2)?(d+=3,g=25):(d++,g=24);case 47:if(47===b.charCodeAt(d+1)){for(d+=2;d<_&&!T(b.charCodeAt(d));)d++;if(v=ae(v,b.slice(m,d),u,m),i)continue;return g=2}if(42===b.charCodeAt(d+1)){d+=2,42===b.charCodeAt(d)&&47!==b.charCodeAt(d+1)&&(y|=2);for(var s=!1,c=m;d<_;){var l=b.charCodeAt(d);if(42===l&&47===b.charCodeAt(d+1)){d+=2,s=!0;break}d++,T(l)&&(c=d,y|=1)}if(v=ae(v,b.slice(c,d),p,c),s||N(e.Diagnostics.Asterisk_Slash_expected),i)continue;return s||(y|=4),g=3}return 61===b.charCodeAt(d+1)?(d+=2,g=68):(d++,g=43);case 48:if(d+2<_&&(88===b.charCodeAt(d+1)||120===b.charCodeAt(d+1)))return d+=2,(h=U(1,!0))||(N(e.Diagnostics.Hexadecimal_digit_expected),h="0"),h="0x"+h,y|=64,g=re();if(d+2<_&&(66===b.charCodeAt(d+1)||98===b.charCodeAt(d+1)))return d+=2,(h=te(2))||(N(e.Diagnostics.Binary_digit_expected),h="0"),h="0b"+h,y|=128,g=re();if(d+2<_&&(79===b.charCodeAt(d+1)||111===b.charCodeAt(d+1)))return d+=2,(h=te(8))||(N(e.Diagnostics.Octal_digit_expected),h="0"),h="0o"+h,y|=256,g=re();if(d+1<_&&k(b.charCodeAt(d+1)))return h=""+L(),y|=32,g=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r=M(),g=r.type,h=r.value,g;case 58:return d++,g=58;case 59:return d++,g=26;case 60:if(w(b,d)){if(d=F(b,d,N),i)continue;return g=7}return 60===b.charCodeAt(d+1)?61===b.charCodeAt(d+2)?(d+=3,g=70):(d+=2,g=47):61===b.charCodeAt(d+1)?(d+=2,g=32):1===a&&47===b.charCodeAt(d+1)&&42!==b.charCodeAt(d+2)?(d+=2,g=30):(d++,g=29);case 61:if(w(b,d)){if(d=F(b,d,N),i)continue;return g=7}return 61===b.charCodeAt(d+1)?61===b.charCodeAt(d+2)?(d+=3,g=36):(d+=2,g=34):62===b.charCodeAt(d+1)?(d+=2,g=38):(d++,g=63);case 62:if(w(b,d)){if(d=F(b,d,N),i)continue;return g=7}return d++,g=31;case 63:return 46!==b.charCodeAt(d+1)||C(b.charCodeAt(d+2))?63===b.charCodeAt(d+1)?61===b.charCodeAt(d+2)?(d+=3,g=77):(d+=2,g=60):(d++,g=57):(d+=2,g=28);case 91:return d++,g=22;case 93:return d++,g=23;case 94:return 61===b.charCodeAt(d+1)?(d+=2,g=78):(d++,g=52);case 123:return d++,g=18;case 124:if(w(b,d)){if(d=F(b,d,N),i)continue;return g=7}return 124===b.charCodeAt(d+1)?61===b.charCodeAt(d+2)?(d+=3,g=75):(d+=2,g=56):61===b.charCodeAt(d+1)?(d+=2,g=74):(d++,g=51);case 125:return d++,g=19;case 126:return d++,g=54;case 64:return d++,g=59;case 92:var x=Q();if(x>=0&&j(x,t))return d+=3,y|=8,h=X()+Z(),g=ee();var D=Y();return D>=0&&j(D,t)?(d+=6,y|=1024,h=String.fromCharCode(D)+Z(),g=ee()):(N(e.Diagnostics.Invalid_character),d++,g=0);case 35:return 0!==d&&"!"===b[d+1]?(N(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),d++,g=0):(j(z(b,d+1),t)?(d++,ie(z(b,d),t)):(h=String.fromCharCode(z(b,d)),N(e.Diagnostics.Invalid_character,d++,H(o))),g=80);default:var A=ie(o,t);if(A)return g=A;if(S(o)){d+=H(o);continue}if(T(o)){y|=1,d+=H(o);continue}var P=H(o);return N(e.Diagnostics.Invalid_character,d,P),d+=P,g=0}}}function ie(e,t){var r=e;if(j(r,t)){for(d+=H(r);d<_&&V(r=z(b,d),t);)d+=H(r);return h=b.substring(m,d),92===r&&(h+=Z()),ee()}}function ae(t,r,n,i){var a=((e,t)=>{var r=t.exec(e);if(r)switch(r[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}})(e.trimStringStart(r),n);return void 0===a?t:e.append(t,{range:{pos:i,end:d},type:a})}function oe(t){if(void 0===t&&(t=!0),f=m=d,d>=_)return g=1;var r=b.charCodeAt(d);if(60===r)return 47===b.charCodeAt(d+1)?(d+=2,g=30):(d++,g=29);if(123===r)return d++,g=18;for(var n=0;d<_&&123!==(r=b.charCodeAt(d));){if(60===r){if(w(b,d))return d=F(b,d,N),g=7;break}if(62===r&&N(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,d,1),125===r&&N(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,d,1),T(r)&&0===n)n=-1;else{if(!t&&T(r)&&n>0)break;D(r)||(n=d)}d++}return h=b.substring(f,d),-1===n?12:11}function se(){switch(f=d,b.charCodeAt(d)){case 34:case 39:return h=J(!0),g=10;default:return ne()}}function ce(e,t){var r=d,n=f,i=m,a=g,o=h,s=y,c=e();return c&&!t||(d=r,f=n,m=i,g=a,h=o,y=s),c}function le(e,t,r){b=e||"",_=void 0===r?b.length:t+r,de(t||0)}function de(t){e.Debug.assert(t>=0),d=t,f=t,m=t,g=0,h=void 0,y=0}};var z=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):(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 H(e){return e>=65536?2:1}var W=String.fromCodePoint?e=>String.fromCodePoint(e):t=>{if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)};function K(e){return W(e)}e.utf16EncodeAsString=K})(p),(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 l(t){return!!Z(t)&&e.every(t.elements,d)}function d(t){return!!e.isOmittedExpression(t)||l(t.name)}function u(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function p(t,r){e.isBindingElement(t)&&(t=u(t));var n=r(t);return 254===t.kind&&(t=t.parent),t&&255===t.kind&&(n|=r(t),t=t.parent),t&&237===t.kind&&(n|=r(t)),n}function _(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 m(e){return f(e.escapedText)}function g(t){var r=t.parent.parent;if(r){if(ce(r))return h(r);switch(r.kind){case 237:if(r.declarationList&&r.declarationList.declarations[0])return h(r.declarationList.declarations[0]);break;case 238:var n=r.expression;switch(221===n.kind&&63===n.operatorToken.kind&&(n=n.left),n.kind){case 206:return n.name;case 207:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 212:return h(r.expression);case 250:if(ce(r.statement)||ie(r.statement))return h(r.statement)}}}function h(t){var r=E(t);return r&&e.isIdentifier(r)?r:void 0}function y(e){return e.name||g(e)}function v(e){return!!e.name}function b(t){switch(t.kind){case 79:return t;case 347:case 340:var r=t.name;if(161===r.kind)return r.right;break;case 208:case 221: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 345:return y(t);case 339:return g(t);case 271:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 207:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function E(t){if(void 0!==t)return b(t)||(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)?x(t):void 0)}function x(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 D(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return N(t.parent,r).filter((t=>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=N(t.parent,r).filter(e.isJSDocParameterTag);if(i<a.length)return[a[i]]}return e.emptyArray}function S(e){return D(e,!1)}function T(t,r){var n=t.name.escapedText;return N(t.parent,r).filter((t=>e.isJSDocTemplateTag(t)&&t.typeParameters.some((e=>e.name.escapedText===n))))}function C(t){return F(t,e.isJSDocReturnTag)}function A(t){var r=F(t,e.isJSDocTypeTag);if(r&&r.typeExpression&&r.typeExpression.type)return r}function k(t){var r=F(t,e.isJSDocTypeTag);return!r&&e.isParameter(t)&&(r=e.find(S(t),(e=>!!e.typeExpression))),r&&r.typeExpression&&r.typeExpression.type}function N(t,r){var n=t.jsDocCache;if(void 0===n||r){var i=e.getJSDocCommentsAndTags(t,r);e.Debug.assert(i.length<2||i[0]!==i[1]),n=e.flatMap(i,(t=>e.isJSDoc(t)?t.tags:t)),r||(t.jsDocCache=n)}return n}function w(e){return N(e,!1)}function F(t,r,n){return e.find(N(t,n),r)}function P(e,t){return w(e).filter(t)}function I(e){var t=e.kind;return!!(32&e.flags)&&(206===t||207===t||208===t||230===t)}function O(t){return I(t)&&!e.isNonNullExpression(t)&&!!t.questionDotToken}function M(t){return e.skipOuterExpressions(t,8)}function R(e){switch(e.kind){case 302:case 303:return!0;default:return!1}}function L(e){return e>=161}function B(e){return e>=0&&e<=160}function U(e){return 8<=e&&e<=14}function j(e){return 14<=e&&e<=17}function V(t){return(e.isPropertyDeclaration(t)||X(t))&&e.isPrivateIdentifier(t.name)}function z(e){switch(e){case 126:case 131:case 85:case 135:case 88:case 93:case 101:case 123:case 121:case 122:case 145:case 124:case 144:case 159:return!0}return!1}function H(t){return!!(16476&e.modifierToFlag(t))}function W(e){return z(e.kind)}function K(e){return!!e&&G(e.kind)}function J(e){switch(e){case 256:case 169:case 171:case 172:case 173:case 213:case 214:return!0;default:return!1}}function G(e){switch(e){case 168:case 174:case 323:case 175:case 176:case 179:case 317:case 180:return!0;default:return J(e)}}function $(e){var t=e.kind;return 171===t||167===t||169===t||172===t||173===t||176===t||170===t||234===t}function q(e){return e&&(257===e.kind||226===e.kind)}function X(e){switch(e.kind){case 169:case 172:case 173:return!0;default:return!1}}function Y(e){var t=e.kind;return 175===t||174===t||166===t||168===t||176===t||172===t||173===t}function Q(e){var t=e.kind;return 296===t||297===t||298===t||169===t||172===t||173===t}function Z(e){if(e){var t=e.kind;return 202===t||201===t}return!1}function ee(e){switch(e.kind){case 201:case 205:return!0}return!1}function te(e){switch(e.kind){case 202:case 204:return!0}return!1}function re(e){switch(e){case 206:case 207:case 209:case 208:case 278:case 279:case 282:case 210:case 204:case 212:case 205:case 226:case 213:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 223:case 95:case 104:case 108:case 110:case 106:case 230:case 228:case 231:case 100:return!0;default:return!1}}function ne(e){switch(e){case 219:case 220:case 215:case 216:case 217:case 218:case 211:return!0;default:return re(e)}}function ie(e){return(e=>{switch(e){case 222:case 224:case 214:case 221:case 225:case 229:case 227:case 351:case 350:return!0;default:return ne(e)}})(M(e).kind)}function ae(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function oe(e){return 256===e||276===e||257===e||258===e||259===e||260===e||261===e||266===e||265===e||272===e||271===e||264===e}function se(e){return 246===e||245===e||253===e||240===e||238===e||236===e||243===e||244===e||242===e||239===e||250===e||247===e||249===e||251===e||252===e||237===e||241===e||248===e||349===e||353===e||352===e}function ce(t){return 163===t.kind?t.parent&&344!==t.parent.kind||e.isInJSFile(t):214===(r=t.kind)||203===r||257===r||226===r||170===r||171===r||260===r||299===r||275===r||256===r||213===r||172===r||267===r||265===r||270===r||258===r||285===r||169===r||168===r||261===r||264===r||268===r||274===r||164===r||296===r||167===r||166===r||173===r||297===r||259===r||163===r||254===r||345===r||338===r||347===r;var r}function le(e){return e.kind>=327&&e.kind<=347}e.isExternalModuleNameRelative=t=>e.pathIsRelative(t)||e.isRootedDiskPath(t),e.sortAndDeduplicateDiagnostics=t=>e.sortAndDeduplicate(t,e.compareDiagnostics),e.getDefaultLibFileName=t=>{switch(e.getEmitScriptTarget(t)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=(e,r)=>r>=e.start&&r<t(e),e.textRangeContainsPositionInclusive=(e,t)=>t>=e.pos&&t<=e.end,e.textSpanContainsTextSpan=(e,r)=>r.start>=e.start&&t(r)<=t(e),e.textSpanOverlapsWith=(e,t)=>void 0!==n(e,t),e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=(e,t)=>i(e.start,e.length,t.start,t.length),e.textSpanIntersectsWith=(e,t,r)=>i(e.start,e.length,t,r),e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=(e,r)=>r<=t(e)&&r>=e.start,e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=e=>o(e.span.start,e.newLength),e.textChangeRangeIsUnchanged=e=>r(e.span)&&0===e.newLength,e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=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,l=1;l<r.length;l++){var d=r[l],u=i,p=a,_=o,f=d.span.start,m=t(d.span),g=f+d.newLength;i=Math.min(u,f),a=Math.max(p,p+(m-_)),o=Math.max(g,g+(_-m))}return c(s(i,a),o-i)},e.getTypeParameterOwner=e=>{if(e&&163===e.kind)for(var t=e;t;t=t.parent)if(K(t)||q(t)||258===t.kind)return t},e.isParameterPropertyDeclaration=(t,r)=>e.hasSyntacticModifier(t,16476)&&171===r.kind,e.isEmptyBindingPattern=l,e.isEmptyBindingElement=d,e.walkUpBindingElementsAndPatterns=u,e.getCombinedModifierFlags=t=>p(t,e.getEffectiveModifierFlags),e.getCombinedNodeFlagsAlwaysIncludeJSDoc=t=>p(t,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc),e.getCombinedNodeFlags=e=>p(e,(e=>e.flags)),e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],e.validateLocaleAndSetLanguage=(t,r,n)=>{var i=t.toLowerCase(),a=/^([a-z]+)([_\-]([a-z]+))?$/.exec(i);if(a){var o=a[1],s=a[3];e.contains(e.supportedLocaleDirectories,i)&&!c(o,s,n)&&c(o,void 0,n),e.setUILocale(t)}else n&&n.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));function c(t,n,i){var a=e.normalizePath(r.getExecutingFilePath()),o=e.getDirectoryPath(a),s=e.combinePaths(o,t);if(n&&(s=s+"-"+n),s=r.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json")),!r.fileExists(s))return!1;var c="";try{c=r.readFile(s)}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(c))}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=(e,t)=>{if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0},e.findAncestor=(e,t)=>{for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}},e.isParseTreeNode=_,e.getParseTreeNode=(e,t)=>{if(void 0===e||_(e))return e;for(e=e.original;e;){if(_(e))return!t||t(e)?e:void 0;e=e.original}},e.escapeLeadingUnderscores=e=>e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e,e.unescapeLeadingUnderscores=f,e.idText=m,e.symbolName=e=>e.valueDeclaration&&V(e.valueDeclaration)?m(e.valueDeclaration.name):f(e.escapedName),e.nodeHasName=function t(r,n){return!(!v(r)||!e.isIdentifier(r.name)||m(r.name)!==m(n))||!(!e.isVariableStatement(r)||!e.some(r.declarationList.declarations,(e=>t(e,n))))},e.getNameOfJSDocTypedef=y,e.isNamedDeclaration=v,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=E,e.getAssignedName=x,e.getDecorators=t=>{if(e.hasDecorators(t))return e.filter(t.modifiers,e.isDecorator)},e.getModifiers=t=>{if(e.hasSyntacticModifier(t,125951))return e.filter(t.modifiers,W)},e.getJSDocParameterTags=S,e.getJSDocParameterTagsNoCache=e=>D(e,!0),e.getJSDocTypeParameterTags=e=>T(e,!1),e.getJSDocTypeParameterTagsNoCache=e=>T(e,!0),e.hasJSDocParameterTags=t=>!!F(t,e.isJSDocParameterTag),e.getJSDocAugmentsTag=t=>F(t,e.isJSDocAugmentsTag),e.getJSDocImplementsTags=t=>P(t,e.isJSDocImplementsTag),e.getJSDocClassTag=t=>F(t,e.isJSDocClassTag),e.getJSDocPublicTag=t=>F(t,e.isJSDocPublicTag),e.getJSDocPublicTagNoCache=t=>F(t,e.isJSDocPublicTag,!0),e.getJSDocPrivateTag=t=>F(t,e.isJSDocPrivateTag),e.getJSDocPrivateTagNoCache=t=>F(t,e.isJSDocPrivateTag,!0),e.getJSDocProtectedTag=t=>F(t,e.isJSDocProtectedTag),e.getJSDocProtectedTagNoCache=t=>F(t,e.isJSDocProtectedTag,!0),e.getJSDocReadonlyTag=t=>F(t,e.isJSDocReadonlyTag),e.getJSDocReadonlyTagNoCache=t=>F(t,e.isJSDocReadonlyTag,!0),e.getJSDocOverrideTagNoCache=t=>F(t,e.isJSDocOverrideTag,!0),e.getJSDocDeprecatedTag=t=>F(t,e.isJSDocDeprecatedTag),e.getJSDocDeprecatedTagNoCache=t=>F(t,e.isJSDocDeprecatedTag,!0),e.getJSDocEnumTag=t=>F(t,e.isJSDocEnumTag),e.getJSDocThisTag=t=>F(t,e.isJSDocThisTag),e.getJSDocReturnTag=C,e.getJSDocTemplateTag=t=>F(t,e.isJSDocTemplateTag),e.getJSDocTypeTag=A,e.getJSDocType=k,e.getJSDocReturnType=t=>{var r=C(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=A(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=w,e.getJSDocTagsNoCache=e=>N(e,!0),e.getAllJSDocTags=P,e.getAllJSDocTagsOfKind=(e,t)=>w(e).filter((e=>e.kind===t)),e.getTextOfJSDocComment=t=>"string"==typeof t?t:null==t?void 0:t.map((t=>{return 321===t.kind?t.text:(n=324===(r=t).kind?"link":325===r.kind?"linkcode":"linkplain",i=r.name?e.entityNameToString(r.name):"",a=r.name&&r.text.startsWith("://")?"":" ","{@".concat(n," ").concat(i).concat(a).concat(r.text,"}"));var r,n,i,a})).join(""),e.getEffectiveTypeParameterDeclarations=t=>{if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(320===t.parent.kind),e.flatMap(t.parent.tags,(t=>e.isJSDocTemplateTag(t)?t.typeParameters:void 0));if(t.typeParameters)return t.typeParameters;if(e.canHaveIllegalTypeParameters(t)&&t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=k(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=t=>t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0,e.isMemberName=e=>79===e.kind||80===e.kind,e.isGetOrSetAccessorDeclaration=e=>173===e.kind||172===e.kind,e.isPropertyAccessChain=t=>e.isPropertyAccessExpression(t)&&!!(32&t.flags),e.isElementAccessChain=t=>e.isElementAccessExpression(t)&&!!(32&t.flags),e.isCallChain=t=>e.isCallExpression(t)&&!!(32&t.flags),e.isOptionalChain=I,e.isOptionalChainRoot=O,e.isExpressionOfOptionalChainRoot=e=>O(e.parent)&&e.parent.expression===e,e.isOutermostOptionalChain=e=>!I(e.parent)||O(e.parent)||e!==e.parent.expression,e.isNullishCoalesce=e=>221===e.kind&&60===e.operatorToken.kind,e.isConstTypeReference=t=>e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments,e.skipPartiallyEmittedExpressions=M,e.isNonNullChain=t=>e.isNonNullExpression(t)&&!!(32&t.flags),e.isBreakOrContinueStatement=e=>246===e.kind||245===e.kind,e.isNamedExportBindings=e=>274===e.kind||273===e.kind,e.isUnparsedTextLike=R,e.isUnparsedNode=e=>R(e)||300===e.kind||304===e.kind,e.isJSDocPropertyLikeTag=e=>347===e.kind||340===e.kind,e.isNode=e=>L(e.kind),e.isNodeKind=L,e.isTokenKind=B,e.isToken=e=>B(e.kind),e.isNodeArray=e=>e.hasOwnProperty("pos")&&e.hasOwnProperty("end"),e.isLiteralKind=U,e.isLiteralExpression=e=>U(e.kind),e.isLiteralExpressionOfObject=e=>{switch(e.kind){case 205:case 204:case 13:case 213:case 226:return!0}return!1},e.isTemplateLiteralKind=j,e.isTemplateLiteralToken=e=>j(e.kind),e.isTemplateMiddleOrTemplateTail=e=>{var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=t=>e.isImportSpecifier(t)||e.isExportSpecifier(t),e.isTypeOnlyImportOrExportDeclaration=e=>{switch(e.kind){case 270:case 275:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 268:return e.parent.isTypeOnly;case 267:case 265:return e.isTypeOnly;default:return!1}},e.isAssertionKey=t=>e.isStringLiteral(t)||e.isIdentifier(t),e.isStringTextContainingNode=e=>10===e.kind||j(e.kind),e.isGeneratedIdentifier=t=>e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0,e.isPrivateIdentifierClassElementDeclaration=V,e.isPrivateIdentifierPropertyAccessExpression=t=>e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name),e.isModifierKind=z,e.isParameterPropertyModifier=H,e.isClassMemberModifier=e=>H(e)||124===e||159===e,e.isModifier=W,e.isEntityName=e=>{var t=e.kind;return 161===t||79===t},e.isPropertyName=e=>{var t=e.kind;return 79===t||80===t||10===t||8===t||162===t},e.isBindingName=e=>{var t=e.kind;return 79===t||201===t||202===t},e.isFunctionLike=K,e.isFunctionLikeOrClassStaticBlockDeclaration=t=>!!t&&(G(t.kind)||e.isClassStaticBlockDeclaration(t)),e.isFunctionLikeDeclaration=e=>e&&J(e.kind),e.isBooleanLiteral=e=>110===e.kind||95===e.kind,e.isFunctionLikeKind=G,e.isFunctionOrModuleBlock=t=>e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&K(t.parent),e.isClassElement=$,e.isClassLike=q,e.isAccessor=e=>e&&(172===e.kind||173===e.kind),e.isMethodOrAccessor=X,e.isModifierLike=t=>W(t)||e.isDecorator(t),e.isTypeElement=Y,e.isClassOrTypeElement=e=>Y(e)||$(e),e.isObjectLiteralElementLike=Q,e.isTypeNode=t=>e.isTypeNodeKind(t.kind),e.isFunctionOrConstructorTypeNode=e=>{switch(e.kind){case 179:case 180:return!0}return!1},e.isBindingPattern=Z,e.isAssignmentPattern=e=>{var t=e.kind;return 204===t||205===t},e.isArrayBindingElement=e=>{var t=e.kind;return 203===t||227===t},e.isDeclarationBindingElement=e=>{switch(e.kind){case 254:case 164:case 203:return!0}return!1},e.isBindingOrAssignmentPattern=e=>ee(e)||te(e),e.isObjectBindingOrAssignmentPattern=ee,e.isObjectBindingOrAssignmentElement=e=>{switch(e.kind){case 203:case 296:case 297:case 298:return!0}return!1},e.isArrayBindingOrAssignmentPattern=te,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=e=>{var t=e.kind;return 206===t||161===t||200===t},e.isPropertyAccessOrQualifiedName=e=>{var t=e.kind;return 206===t||161===t},e.isCallLikeExpression=e=>{switch(e.kind){case 280:case 279:case 208:case 209:case 210:case 165:return!0;default:return!1}},e.isCallOrNewExpression=e=>208===e.kind||209===e.kind,e.isTemplateLiteral=e=>{var t=e.kind;return 223===t||14===t},e.isLeftHandSideExpression=e=>re(M(e).kind),e.isUnaryExpression=e=>ne(M(e).kind),e.isUnaryExpressionWithWrite=e=>{switch(e.kind){case 220:return!0;case 219:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=ie,e.isAssertionExpression=e=>{var t=e.kind;return 211===t||229===t},e.isNotEmittedOrPartiallyEmittedNode=t=>e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t),e.isIterationStatement=function e(t,r){switch(t.kind){case 242:case 243:case 244:case 240:case 241:return!0;case 250:return r&&e(t.statement,r)}return!1},e.isScopeMarker=ae,e.hasScopeMarker=t=>e.some(t,ae),e.needsScopeMarker=t=>!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t)),e.isExternalModuleIndicator=t=>e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1),e.isForInOrOfStatement=e=>243===e.kind||244===e.kind,e.isConciseBody=t=>e.isBlock(t)||ie(t),e.isFunctionBody=t=>e.isBlock(t),e.isForInitializer=t=>e.isVariableDeclarationList(t)||ie(t),e.isModuleBody=e=>{var t=e.kind;return 262===t||261===t||79===t},e.isNamespaceBody=e=>{var t=e.kind;return 262===t||261===t},e.isJSDocNamespaceBody=e=>{var t=e.kind;return 79===t||261===t},e.isNamedImportBindings=e=>{var t=e.kind;return 269===t||268===t},e.isModuleOrEnumDeclaration=e=>261===e.kind||260===e.kind,e.isDeclaration=ce,e.isDeclarationStatement=e=>oe(e.kind),e.isStatementButNotDeclaration=e=>se(e.kind),e.isStatement=t=>{var r=t.kind;return se(r)||oe(r)||(t=>235===t.kind&&(void 0===t.parent||252!==t.parent.kind&&292!==t.parent.kind)&&!e.isFunctionBlock(t))(t)},e.isStatementOrBlock=e=>{var t=e.kind;return se(t)||oe(t)||235===t},e.isModuleReference=e=>{var t=e.kind;return 277===t||161===t||79===t},e.isJsxTagNameExpression=e=>{var t=e.kind;return 108===t||79===t||206===t},e.isJsxChild=e=>{var t=e.kind;return 278===t||288===t||279===t||11===t||282===t},e.isJsxAttributeLike=e=>{var t=e.kind;return 285===t||287===t},e.isStringLiteralOrJsxExpression=e=>{var t=e.kind;return 10===t||288===t},e.isJsxOpeningLikeElement=e=>{var t=e.kind;return 280===t||279===t},e.isCaseOrDefaultClause=e=>{var t=e.kind;return 289===t||290===t},e.isJSDocNode=e=>e.kind>=309&&e.kind<=347,e.isJSDocCommentContainingNode=t=>320===t.kind||319===t.kind||321===t.kind||ue(t)||le(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t),e.isJSDocTag=le,e.isSetAccessor=e=>173===e.kind,e.isGetAccessor=e=>172===e.kind,e.hasJSDocNodes=e=>{var t=e.jsDoc;return!!t&&t.length>0},e.hasType=e=>!!e.type,e.hasInitializer=e=>!!e.initializer,e.hasOnlyExpressionInitializer=e=>{switch(e.kind){case 254:case 164:case 203:case 167:case 296:case 299:return!0;default:return!1}},e.isObjectLiteralElement=e=>285===e.kind||287===e.kind||Q(e),e.isTypeReferenceType=e=>178===e.kind||228===e.kind;var de=1073741823;function ue(e){return 324===e.kind||325===e.kind||326===e.kind}function pe(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&318===r.kind}e.guessIndentation=t=>{for(var r=de,n=0,i=t;n<i.length;n++){var a=i[n];if(a.length){for(var o=0;o<a.length&&o<r&&e.isWhiteSpaceLike(a.charCodeAt(o));o++);if(o<r&&(r=o),0===r)return 0}}return r===de?void 0:r},e.isStringLiteralLike=e=>10===e.kind||14===e.kind,e.isJSDocLinkLike=ue,e.hasRestParameter=t=>{var r=e.lastOrUndefined(t.parameters);return!!r&&pe(r)},e.isRestParameter=pe})(p),function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6,e.getDeclarationOfKind=(e,t)=>{var r=e.declarations;if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(a.kind===t)return a}},e.getDeclarationsOfKind=(t,r)=>e.filter(t.declarations||e.emptyArray,(e=>e.kind===r)),e.createSymbolTable=t=>{var r=new e.Map;if(t)for(var n=0,i=t;n<i.length;n++){var a=i[n];r.set(a.escapedName,a)}return r},e.isTransientSymbol=e=>0!=(33554432&e.flags);var t,r,n,i=(t="",{getText:()=>t,write:r=e=>t+=e,rawWrite:r,writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:(e,t)=>r(e),writeTrailingSemicolon:r,writeComment:r,getTextPos:()=>t.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!t.length&&e.isWhiteSpaceLike(t.charCodeAt(t.length-1)),writeLine:()=>t+=" ",increaseIndent:e.noop,decreaseIndent:e.noop,clear:()=>t="",trackSymbol:()=>!1,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop});function a(t,r){return o(t,r,e.moduleResolutionOptionDeclarations)}function o(e,t,r){return e!==t&&r.some((r=>!Ei(jn(e,r),jn(t,r))))}function s(e){return e.end-e.pos}function c(e){var t=e.name,r=e.subModuleName;return r?"".concat(t,"/").concat(r):t}function l(e){for(;e&&305!==e.kind;)e=e.parent;return e}function d(t,r){e.Debug.assert(t>=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function u(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function p(e){return!u(e)}function _(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice.apply(e,f([n,0],t,!1)),e}function g(e,t,r){if(void 0===t)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice(n,0,t),e}function h(e){return q(e)||!!(1048576&S(e))}function y(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function v(t,r,n){return u(t)?t.pos:e.isJSDocNode(t)||11===t.kind?e.skipTrivia((r||l(t)).text,t.pos,!1,!0):n&&e.hasJSDocNodes(t)?v(t.jsDoc[0],r):348===t.kind&&t._children.length>0?v(t._children[0],r,n):e.skipTrivia((r||l(t)).text,t.pos,!1,!1,Se(t))}function b(e,t,r){return void 0===r&&(r=!1),E(e.text,t,r)}function E(t,r,n){if(void 0===n&&(n=!1),u(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return(t=>!!e.findAncestor(t,e.isJSDocTypeExpression))(r)&&(i=i.split(/\r\n|\n|\r/).map((t=>e.trimStringStart(t.replace(/^\s*\*/,"")))).join("\n")),i}function x(e,t){return void 0===t&&(t=!1),b(l(e),e,t)}function D(e){return e.pos}function S(e){var t=e.emitNode;return t&&t.flags||0}function T(e){var t=Ft(e);return 254===t.kind&&292===t.parent.kind}function C(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||k(t))}function A(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function k(e){return!!(1024&e.flags)}function N(e){return C(e)&&w(e)}function w(t){switch(t.parent.kind){case 305:return e.isExternalModule(t.parent);case 262:return C(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function F(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find((t=>!(N(t)||e.isModuleDeclaration(t)&&k(t))))}function P(t,r){switch(t.kind){case 305:case 263:case 292:case 261:case 242:case 243:case 244:case 171:case 169:case 172:case 173:case 256:case 213:case 214:case 167:case 170:return!0;case 235:return!e.isFunctionLikeOrClassStaticBlockDeclaration(r)}return!1}function I(t){switch(t.kind){case 174:case 175:case 168:case 176:case 179:case 180:case 317:case 257:case 226:case 258:case 259:case 344:case 256:case 169:case 171:case 172:case 173:case 213:case 214:return!0;default:return e.assertType(t),!1}}function O(e){switch(e.kind){case 266:case 265:return!0;default:return!1}}function M(t){return O(t)||e.isExportDeclaration(t)}function R(t){return e.findAncestor(t.parent,(e=>P(e,e.parent)))}function L(e){return e&&0!==s(e)?x(e):"(Missing)"}function B(t){switch(t.kind){case 79:case 80:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 162:return St(t.expression)?e.escapeLeadingUnderscores(t.expression.text):void 0;default:return e.Debug.assertNever(t)}}function U(t){switch(t.kind){case 108:return"this";case 80:case 79:return 0===s(t)?e.idText(t):x(t);case 161:return U(t.left)+"."+U(t.right);case 206:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?U(t.expression)+"."+U(t.name):e.Debug.assertNever(t.name);case 311:return U(t.left)+U(t.right);default:return e.Debug.assertNever(t)}}function j(e,t,r,n,i,a,o){var s=W(e,t);return Sn(e,s.start,s.length,r,n,i,a,o)}function V(t,r,n){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length))}function z(e,t,r,n,i){return V(e,t,r),{file:e,start:t,length:r,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}function H(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 W(t,r){var n=r;switch(r.kind){case 305:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):H(t,i);case 254:case 203:case 257:case 226:case 258:case 261:case 260:case 299:case 256:case 213:case 169:case 172:case 173:case 259:case 167:case 166:case 268:n=r.name;break;case 214:return((t,r)=>{var n=e.skipTrivia(t.text,r.pos);if(r.body&&235===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i<e.getLineAndCharacterOfPosition(t,r.body.end).line)return e.createTextSpan(n,d(i,t)-n+1)}return e.createTextSpanFromBounds(n,r.end)})(t,r);case 289:case 290:var a=e.skipTrivia(t.text,r.pos),o=r.statements.length>0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,o)}if(void 0===n)return H(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var s=u(n),c=s||e.isJsxText(r)?n.pos:e.skipTrivia(t.text,n.pos);return s?(e.Debug.assert(c===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,n.end)}function K(e){return 6===e.scriptKind}function J(t){return!!(2&e.getCombinedNodeFlags(t))}function G(e){return 208===e.kind&&100===e.expression.kind}function $(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function q(e){return 238===e.kind&&10===e.expression.kind}function X(e){return!!(1048576&S(e))}function Y(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=(e,t)=>e.configFilePath!==t.configFilePath||a(e,t),e.optionsHaveModuleResolutionChanges=a,e.changesAffectingProgramStructure=(t,r)=>o(t,r,e.optionsAffectingProgramStructure),e.optionsHaveChanges=o,e.forEachAncestor=(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=(e,t)=>{for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=(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=(e,t)=>{e.forEach(((e,r)=>{t.set(r,e)}))},e.usingSingleLineStringWriter=e=>{var t=i.getText();try{return e(i),i.getText()}finally{i.clear(),i.writeKeyword(t)}},e.getFullWidth=s,e.getResolvedModule=(e,t,r)=>e&&e.resolvedModules&&e.resolvedModules.get(t,r),e.setResolvedModule=(t,r,n,i)=>{t.resolvedModules||(t.resolvedModules=e.createModeAwareCache()),t.resolvedModules.set(r,i,n)},e.setResolvedTypeReferenceDirective=(t,r,n)=>{t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),t.resolvedTypeReferenceDirectiveNames.set(r,void 0,n)},e.projectReferenceIsEqualTo=(e,t)=>e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular,e.moduleResolutionIsEqualTo=(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.packageIdToPackageName=c,e.packageIdToString=e=>"".concat(c(e),"@").concat(e.version),e.typeDirectiveIsEqualTo=(e,t)=>e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary&&e.originalPath===t.originalPath,e.hasChangesInResolutions=(t,r,n,i,a)=>{e.Debug.assert(t.length===r.length);for(var o=0;o<t.length;o++){var s=r[o],c=t[o],l=e.isString(c)?c:c.fileName.toLowerCase(),d=e.isString(c)?i&&e.getModeForResolutionAtIndex(i,o):e.getModeForFileReference(c,null==i?void 0:i.impliedNodeFormat),u=n&&n.get(l,d);if(u?!s||!a(u,s):s)return!0}return!1},e.containsParseError=function t(r){return(r=>{1048576&r.flags||((0!=(131072&r.flags)||e.forEachChild(r,t))&&(r.flags|=524288),r.flags|=1048576)})(r),0!=(524288&r.flags)},e.getSourceFileOfNode=l,e.getSourceFileOfModule=e=>l(e.valueDeclaration||F(e)),e.isPlainJsFile=(e,t)=>!(!e||1!==e.scriptKind&&2!==e.scriptKind||e.checkJsDirective||void 0!==t),e.isStatementWithLocals=e=>{switch(e.kind){case 235:case 263:case 242:case 243:case 244:return!0}return!1},e.getStartPositionOfLine=(t,r)=>(e.Debug.assert(t>=0),e.getLineStarts(r)[t]),e.nodePosToString=t=>{var r=l(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return"".concat(r.fileName,"(").concat(n.line+1,",").concat(n.character+1,")")},e.getEndLinePosition=d,e.isFileLevelUniqueName=(e,t,r)=>!(r&&r(t)||e.identifiers.has(t)),e.nodeIsMissing=u,e.nodeIsPresent=p,e.insertStatementsAfterStandardPrologue=(e,t)=>_(e,t,q),e.insertStatementsAfterCustomPrologue=(e,t)=>_(e,t,h),e.insertStatementAfterStandardPrologue=(e,t)=>g(e,t,q),e.insertStatementAfterCustomPrologue=(e,t)=>g(e,t,h),e.isRecognizedTripleSlashComment=(t,r,n)=>{if(47===t.charCodeAt(r+1)&&r+2<n&&47===t.charCodeAt(r+2)){var i=t.substring(r,n);return!!(e.fullTripleSlashReferencePathRegEx.test(i)||e.fullTripleSlashAMDReferencePathRegEx.test(i)||Q.test(i)||ne.test(i))}return!1},e.isPinnedComment=y,e.createCommentDirectivesMap=(t,r)=>{var n=new e.Map(r.map((r=>["".concat(e.getLineAndCharacterOfPosition(t,r.range.end).line),r]))),i=new e.Map;return{getUnusedExpectations:()=>e.arrayFrom(n.entries()).filter((e=>{var t=e[0];return 0===e[1].type&&!i.get(t)})).map((e=>e[1])),markUsed:e=>!!n.has("".concat(e))&&(i.set("".concat(e),!0),!0)}},e.getTokenPosOfNode=v,e.getNonDecoratorTokenPosOfNode=(t,r)=>{var n=!u(t)&&e.canHaveModifiers(t)?e.findLast(t.modifiers,e.isDecorator):void 0;return n?e.skipTrivia((r||l(t)).text,n.end):v(t,r)},e.getSourceTextOfNodeFromSourceFile=b,e.isExportNamespaceAsDefaultDeclaration=t=>!!(e.isExportDeclaration(t)&&t.exportClause&&e.isNamespaceExport(t.exportClause)&&"default"===t.exportClause.name.escapedText),e.getTextOfNodeFromSourceText=E,e.getTextOfNode=x,e.indexOfNode=(t,r)=>e.binarySearch(t,r,D,e.compareValues),e.getEmitFlags=S,e.getScriptTargetFeatures=()=>({es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray,NumberFormat:["formatToParts"]},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},es2022:{Array:["at"],String:["at"],Int8Array:["at"],Uint8Array:["at"],Uint8ClampedArray:["at"],Int16Array:["at"],Uint16Array:["at"],Int32Array:["at"],Uint32Array:["at"],Float32Array:["at"],Float64Array:["at"],BigInt64Array:["at"],BigUint64Array:["at"],ObjectConstructor:["hasOwn"],Error:["cause"]}}),(n=e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}))[n.None=0]="None",n[n.NeverAsciiEscape=1]="NeverAsciiEscape",n[n.JsxAttributeEscape=2]="JsxAttributeEscape",n[n.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",n[n.AllowNumericSeparator=8]="AllowNumericSeparator",e.getLiteralText=(t,r,n)=>{var i;if(r&&((t,r)=>!(Pt(t)||!t.parent||4&r&&t.isUnterminated||(e.isNumericLiteral(t)&&512&t.numericLiteralFlags?!(8&r):e.isBigIntLiteral(t))))(t,n))return b(r,t);switch(t.kind){case 10:var a=2&n?Yt:1&n||16777216&S(t)?Wt:Jt;return t.singleQuote?"'"+a(t.text,39)+"'":'"'+a(t.text,34)+'"';case 14:case 15:case 16:case 17:a=1&n||16777216&S(t)?Wt:Jt;var o=null!==(i=t.rawText)&&void 0!==i?i:(e=>e.replace(Lt,"\\${"))(a(t.text,96));switch(t.kind){case 14:return"`"+o+"`";case 15:return"`"+o+"${";case 16:return"}"+o+"${";case 17:return"}"+o+"`"}break;case 8:case 9:return t.text;case 13:return 4&n&&t.isUnterminated?t.text+(92===t.text.charCodeAt(t.text.length-1)?" /":"/"):t.text}return e.Debug.fail("Literal kind '".concat(t.kind,"' not accounted for."))},e.getTextOfConstantValue=t=>e.isString(t)?'"'+Jt(t)+'"':""+t,e.makeIdentifierFromModuleName=t=>e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_"),e.isBlockOrCatchScoped=t=>0!=(3&e.getCombinedNodeFlags(t))||T(t),e.isCatchClauseVariableDeclarationOrBindingElement=T,e.isAmbientModule=C,e.isModuleWithStringLiteralName=t=>e.isModuleDeclaration(t)&&10===t.name.kind,e.isNonGlobalAmbientModule=t=>e.isModuleDeclaration(t)&&e.isStringLiteral(t.name),e.isEffectiveModuleDeclaration=A,e.isShorthandAmbientModuleSymbol=e=>{return!!(t=e.valueDeclaration)&&261===t.kind&&!t.body;var t},e.isBlockScopedContainerTopLevel=t=>305===t.kind||261===t.kind||e.isFunctionLikeOrClassStaticBlockDeclaration(t),e.isGlobalScopeAugmentation=k,e.isExternalModuleAugmentation=N,e.isModuleAugmentationExternal=w,e.getNonAugmentationDeclaration=F,e.isEffectiveExternalModule=(t,r)=>{return e.isExternalModule(t)||r.isolatedModules||((n=On(r))===e.ModuleKind.CommonJS||n===e.ModuleKind.Node16||n===e.ModuleKind.NodeNext)&&!!t.commonJsModuleIndicator;var n},e.isEffectiveStrictModeSourceFile=(t,r)=>{switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(t.isDeclarationFile||!Bn(r,"alwaysStrict")&&!e.startsWithUseStrict(t.statements)&&(!e.isExternalModule(t)&&!r.isolatedModules||!(On(r)>=e.ModuleKind.ES2015)&&r.noImplicitUseStrict))},e.isBlockScope=P,e.isDeclarationWithTypeParameters=t=>{switch(t.kind){case 338:case 345:case 323:return!0;default:return e.assertType(t),I(t)}},e.isDeclarationWithTypeParameterChildren=I,e.isAnyImportSyntax=O,e.isAnyImportOrBareOrAccessedRequire=e=>O(e)||Ae(e),e.isLateVisibilityPaintedStatement=e=>{switch(e.kind){case 266:case 265:case 237:case 257:case 256:case 261:case 259:case 258:case 260:return!0;default:return!1}},e.hasPossibleExternalModuleReference=t=>M(t)||e.isModuleDeclaration(t)||e.isImportTypeNode(t)||G(t),e.isAnyImportOrReExport=M,e.getEnclosingBlockScopeContainer=R,e.forEachEnclosingBlockScopeContainer=(e,t)=>{for(var r=R(e);r;)t(r),r=R(r)},e.declarationNameToString=L,e.getNameFromIndexInfo=e=>e.declaration?L(e.declaration.parameters[0].name):void 0,e.isComputedNonLiteralName=e=>162===e.kind&&!St(e.expression),e.tryGetTextOfPropertyName=B,e.getTextOfPropertyName=t=>e.Debug.checkDefined(B(t)),e.entityNameToString=U,e.createDiagnosticForNode=(e,t,r,n,i,a)=>j(l(e),e,t,r,n,i,a),e.createDiagnosticForNodeArray=(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=j,e.createDiagnosticForNodeFromMessageChain=(e,t,r)=>{var n=l(e),i=W(n,e);return z(n,i.start,i.length,t,r)},e.createFileDiagnosticFromMessageChain=z,e.createDiagnosticForFileFromMessageChain=(e,t,r)=>({file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}),e.createDiagnosticMessageChainFromDiagnostic=e=>"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText,e.createDiagnosticForRange=(e,t,r)=>({file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}),e.getSpanOfTokenAtPosition=H,e.getErrorSpanForNode=W,e.isExternalOrCommonJsModule=e=>void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator),e.isJsonSourceFile=K,e.isEnumConst=t=>!!(2048&e.getCombinedModifierFlags(t)),e.isDeclarationReadonly=t=>!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent)),e.isVarConst=J,e.isLet=t=>!!(1&e.getCombinedNodeFlags(t)),e.isSuperCall=e=>208===e.kind&&106===e.expression.kind,e.isImportCall=G,e.isImportMeta=t=>e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText,e.isLiteralImportTypeNode=$,e.isPrologueDirective=q,e.isCustomPrologue=X,e.isHoistedFunction=t=>X(t)&&e.isFunctionDeclaration(t),e.isHoistedVariableStatement=t=>X(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,Y),e.getLeadingCommentRangesOfNode=(t,r)=>11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0,e.getJSDocCommentRanges=(t,r)=>{var n=164===t.kind||163===t.kind||213===t.kind||214===t.kind||212===t.kind||254===t.kind||275===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,(e=>42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Q=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Z,ee,te,re,ne=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function ie(t){if(177<=t.kind&&t.kind<=200)return!0;switch(t.kind){case 130:case 155:case 147:case 158:case 150:case 133:case 151:case 148:case 153:case 143:return!0;case 114:return 217!==t.parent.kind;case 228:return e.isHeritageClause(t.parent)&&!Wr(t);case 163:return 195===t.parent.kind||190===t.parent.kind;case 79:(161===t.parent.kind&&t.parent.right===t||206===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(79===t.kind||161===t.kind||206===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 161:case 206:case 108:var r=t.parent;if(181===r.kind)return!1;if(200===r.kind)return!r.isTypeOf;if(177<=r.kind&&r.kind<=200)return!0;switch(r.kind){case 228:return e.isHeritageClause(r.parent)&&!Wr(r);case 163:case 344:return t===r.constraint;case 167:case 166:case 164:case 254:return t===r.type;case 256:case 213:case 214:case 171:case 169:case 168:case 172:case 173:return t===r.type;case 174:case 175:case 176:case 211:return t===r.type;case 208:case 209:return e.contains(r.typeArguments,t);case 210:return!1}}return!1}function ae(e){if(e)switch(e.kind){case 203:case 299:case 164:case 296:case 167:case 166:case 297:case 254:return!0}return!1}function oe(e){return 255===e.parent.kind&&237===e.parent.parent.kind}function se(t){return!!De(t)&&e.isBinaryExpression(t)&&1===Le(t)}function ce(e,t,r){return e.properties.filter((e=>{if(296===e.kind){var n=B(e.name);return t===n||!!r&&r===n}return!1}))}function le(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function de(t,r){var n=le(t);return n?ce(n,r):e.emptyArray}function ue(t,r){for(e.Debug.assert(305!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 162:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 165:164===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 214:if(!r)continue;case 256:case 213:case 261:case 170:case 167:case 166:case 169:case 168:case 171:case 172:case 173:case 174:case 175:case 176:case 260:case 305:return t}}}function pe(e){var t=e.kind;return(206===t||207===t)&&106===e.expression.kind}function _e(t,r,n){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 257:return!0;case 167:return 257===r.kind;case 172:case 173:case 169:return void 0!==t.body&&257===r.kind;case 164:return void 0!==r.body&&(171===r.kind||169===r.kind||173===r.kind)&&257===n.kind}return!1}function fe(e,t,r){return Nr(e)&&_e(e,t,r)}function me(e,t,r){return fe(e,t,r)||ge(e,t)}function ge(t,r){switch(t.kind){case 257:return e.some(t.members,(e=>me(e,t,r)));case 169:case 173:case 171:return e.some(t.parameters,(e=>fe(e,t,r)));default:return!1}}function he(e){var t=e.parent;return(280===t.kind||279===t.kind||281===t.kind)&&t.tagName===e}function ye(t){switch(t.kind){case 106:case 104:case 110:case 95:case 13:case 204:case 205:case 206:case 207:case 208:case 209:case 210:case 229:case 211:case 230:case 212:case 213:case 226:case 214:case 217:case 215:case 216:case 219:case 220:case 221:case 222:case 225:case 223:case 227:case 278:case 279:case 282:case 224:case 218:case 231:return!0;case 228:return!e.isHeritageClause(t.parent);case 161:for(;161===t.parent.kind;)t=t.parent;return 181===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||he(t);case 311:for(;e.isJSDocMemberName(t.parent);)t=t.parent;return 181===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||he(t);case 80:return e.isBinaryExpression(t.parent)&&t.parent.left===t&&101===t.parent.operatorToken.kind;case 79:if(181===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||he(t))return!0;case 8:case 9:case 10:case 14:case 108:return ve(t);default:return!1}}function ve(e){var t=e.parent;switch(t.kind){case 254:case 164:case 167:case 166:case 299:case 296:case 203:return t.initializer===e;case 238:case 239:case 240:case 241:case 247:case 248:case 249:case 289:case 251:return t.expression===e;case 242:var r=t;return r.initializer===e&&255!==r.initializer.kind||r.condition===e||r.incrementor===e;case 243:case 244:var n=t;return n.initializer===e&&255!==n.initializer.kind||n.expression===e;case 211:case 229:case 233:case 162:return e===t.expression;case 165:case 288:case 287:case 298:return!0;case 228:return t.expression===e&&!ie(t);case 297:return t.objectAssignmentInitializer===e;default:return ye(t)}}function be(e){for(;161===e.kind||79===e.kind;)e=e.parent;return 181===e.kind}function Ee(e){return 265===e.kind&&277===e.moduleReference.kind}function xe(e){return De(e)}function De(e){return!!e&&!!(262144&e.flags)}function Se(e){return!!e&&!!(8388608&e.flags)}function Te(t,r){if(208!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(79!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function Ce(e){return ke(e,!1)}function Ae(e){return ke(e,!0)}function ke(t,r){return e.isVariableDeclaration(t)&&!!t.initializer&&Te(r?pn(t.initializer):t.initializer,!0)}function Ne(t){return e.isBinaryExpression(t)||un(t)||e.isIdentifier(t)||e.isCallExpression(t)}function we(t){return De(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&Kr(t.name)&&Pe(t.name,t.initializer.left)?t.initializer.right:t.initializer}function Fe(t,r){if(e.isCallExpression(t)){var n=pt(t.expression);return 213===n.kind||214===n.kind?t:void 0}return 213===t.kind||226===t.kind||214===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function Pe(t,r){return Nt(t)&&Nt(r)?wt(t)===wt(r):e.isMemberName(t)&&Ue(r)&&(108===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))?Pe(t,We(r)):!(!Ue(t)||!Ue(r))&&Je(t)===Je(r)&&Pe(t.expression,r.expression)}function Ie(e){for(;Hr(e,!0);)e=e.right;return e}function Oe(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Me(t){return e.isIdentifier(t)&&"module"===t.escapedText}function Re(t){return(e.isPropertyAccessExpression(t)||je(t))&&Me(t.expression)&&"exports"===Je(t)}function Le(t){var r=(t=>{if(e.isCallExpression(t)){if(!Be(t))return 0;var r=t.arguments[0];return Oe(r)||Re(r)?8:Ve(r)&&"prototype"===Je(r)?9:7}return 63!==t.operatorToken.kind||!un(t.left)||(n=Ie(t),e.isVoidExpression(n)&&e.isNumericLiteral(n.expression)&&"0"===n.expression.text)?0:He(t.left.expression,!0)&&"prototype"===Je(t.left)&&e.isObjectLiteralExpression($e(t))?6:Ge(t.left);var n})(t);return 5===r||De(t)?r:0}function Be(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)&&St(t.arguments[1])&&He(t.arguments[0],!0)}function Ue(t){return e.isPropertyAccessExpression(t)||je(t)}function je(t){return e.isElementAccessExpression(t)&&St(t.argumentExpression)}function Ve(t,r){return e.isPropertyAccessExpression(t)&&(!r&&108===t.expression.kind||e.isIdentifier(t.name)&&He(t.expression,!0))||ze(t,r)}function ze(e,t){return je(e)&&(!t&&108===e.expression.kind||Kr(e.expression)||Ve(e.expression,!0))}function He(e,t){return Kr(e)||Ve(e,t)}function We(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function Ke(t){if(e.isPropertyAccessExpression(t))return t.name;var r=pt(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function Je(t){var r=Ke(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}}function Ge(t){if(108===t.expression.kind)return 4;if(Re(t))return 2;if(He(t.expression,!0)){if(Gr(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"===Je(r))&&Ve(t))return 1;if(He(t,!0)||e.isElementAccessExpression(t)&&At(t))return 5}return 0}function $e(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function qe(t){switch(t.parent.kind){case 266:case 272:return t.parent;case 277:return t.parent.parent;case 208:return G(t.parent)||Te(t.parent,!1)?t.parent:void 0;case 196:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function Xe(t){switch(t.kind){case 266:case 272:return t.moduleSpecifier;case 265:return 277===t.moduleReference.kind?t.moduleReference.expression:void 0;case 200:return $(t)?t.argument.literal:void 0;case 208:return t.arguments[0];case 261:return 10===t.name.kind?t.name:void 0;default:return e.Debug.assertNever(t)}}function Ye(e){return 345===e.kind||338===e.kind||339===e.kind}function Qe(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Le(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 237:var t=et(e);return t&&t.initializer;case 167:case 296:return e.initializer}}function et(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function tt(t){return e.isModuleDeclaration(t)&&t.body&&261===t.body.kind?t.body:void 0}function rt(t,r){if(e.isJSDoc(r)){var n=e.filter(r.tags,(e=>nt(t,e)));return r.tags===n?[r]:n}return nt(t,r)?[r]:void 0}function nt(t,r){return!(e.isJSDocTypeTag(r)&&r.parent&&e.isJSDoc(r.parent)&&e.isParenthesizedExpression(r.parent.parent)&&r.parent.parent!==t)}function it(t){var r=t.parent;return 296===r.kind||271===r.kind||167===r.kind||238===r.kind&&206===t.kind||247===r.kind||tt(r)||e.isBinaryExpression(t)&&63===t.operatorToken.kind?r:r.parent&&(et(r.parent)===t||e.isBinaryExpression(r)&&63===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(et(r.parent.parent)||Ze(r.parent.parent)===t||Qe(r.parent.parent))?r.parent.parent:void 0}function at(t){var r=ot(t);if(r)return e.isPropertySignature(r)&&r.type&&e.isFunctionLike(r.type)?r.type:e.isFunctionLike(r)?r:void 0}function ot(t){var r=st(t);if(r)return Qe(r)||(t=>e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&63===t.expression.operatorToken.kind?Ie(t.expression):void 0)(r)||Ze(r)||et(r)||tt(r)||r}function st(t){var r=ct(t);if(r){var n=r.parent;return n&&n.jsDoc&&r===e.lastOrUndefined(n.jsDoc)?n:void 0}}function ct(t){return e.findAncestor(t.parent,e.isJSDoc)}function lt(e){for(var t=e.parent;;){switch(t.kind){case 221:var r=t.operatorToken.kind;return jr(r)&&t.left===e?63===r||Ur(r)?1:2:0;case 219:case 220:var n=t.operator;return 45===n||46===n?2:0;case 243:case 244:return t.initializer===e?1:0;case 212:case 204:case 225:case 230:e=t;break;case 298:e=t.parent;break;case 297:if(t.name!==e)return 0;e=t.parent;break;case 296:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function dt(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function ut(e){return dt(e,212)}function pt(t,r){var n=r?17:1;return e.skipOuterExpressions(t,n)}function _t(t){return Kr(t)||e.isClassExpression(t)}function ft(e){return _t(mt(e))}function mt(t){return e.isExportAssignment(t)?t.expression:t.right}function gt(t){var r=ht(t);if(r&&De(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function ht(e){var t=bt(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function yt(t){if(De(t))return e.getJSDocImplementsTags(t).map((e=>e.class));var r=bt(t.heritageClauses,117);return null==r?void 0:r.types}function vt(e){var t=bt(e.heritageClauses,94);return t?t.types:void 0}function bt(e,t){if(e)for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i.token===t)return i}}function Et(e){return 81<=e&&e<=160}function xt(e){return 126<=e&&e<=160}function Dt(e){return Et(e)&&!xt(e)}function St(t){return e.isStringLiteralLike(t)||e.isNumericLiteral(t)}function Tt(t){return e.isPrefixUnaryExpression(t)&&(39===t.operator||40===t.operator)&&e.isNumericLiteral(t.operand)}function Ct(t){var r=e.getNameOfDeclaration(t);return!!r&&At(r)}function At(t){if(162!==t.kind&&207!==t.kind)return!1;var r=e.isElementAccessExpression(t)?pt(t.argumentExpression):t.expression;return!St(r)&&!Tt(r)}function kt(t){switch(t.kind){case 79:case 80:return t.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(t.text);case 162:var r=t.expression;return St(r)?e.escapeLeadingUnderscores(r.text):Tt(r)?40===r.operator?e.tokenToString(r.operator)+r.operand.text:r.operand.text:void 0;default:return e.Debug.assertNever(t)}}function Nt(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function wt(t){return e.isMemberName(t)?e.idText(t):t.text}function Ft(e){for(;203===e.kind;)e=e.parent.parent;return e}function Pt(e){return yi(e.pos)||yi(e.end)}function It(e,t,r){switch(e){case 209:return r?0:1;case 219:case 216:case 217:case 215:case 218:case 222:case 224:return 1;case 221:switch(t){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}function Ot(e){return 221===e.kind?e.operatorToken.kind:219===e.kind||220===e.kind?e.operator:e.kind}function Mt(e,t,r){switch(e){case 351:return 0;case 225:return 1;case 224:return 2;case 222:return 4;case 221:switch(t){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return Rt(t)}case 211:case 230:case 219:case 216:case 217:case 215:case 218:return 16;case 220:return 17;case 208:return 18;case 209:return r?19:18;case 210:case 206:case 207:case 231:return 19;case 229:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 204:case 205:case 213:case 214:case 226:case 13:case 14:case 223:case 212:case 227:case 278:case 279:case 282:return 20;default:return-1}}function Rt(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 127:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.isPartOfTypeNode=ie,e.isChildOfNodeWithKind=(e,t)=>{for(;e;){if(e.kind===t)return!0;e=e.parent}return!1},e.forEachReturnStatement=(t,r)=>function t(n){switch(n.kind){case 247:return r(n);case 263:case 235:case 239:case 240:case 241:case 242:case 243:case 244:case 248:case 249:case 289:case 290:case 250:case 252:case 292:return e.forEachChild(n,t)}}(t),e.forEachYieldExpression=(t,r)=>function t(n){switch(n.kind){case 224:r(n);var i=n.expression;return void(i&&t(i));case 260:case 258:case 261:case 259:return;default:if(e.isFunctionLike(n)){if(n.name&&162===n.name.kind)return void t(n.name.expression)}else ie(n)||e.forEachChild(n,t)}}(t),e.getRestParameterElementType=t=>t&&183===t.kind?t.elementType:t&&178===t.kind?e.singleOrUndefined(t.typeArguments):void 0,e.getMembersOfDeclaration=e=>{switch(e.kind){case 258:case 257:case 226:case 182:return e.members;case 205:return e.properties}},e.isVariableLike=ae,e.isVariableLikeOrAccessor=t=>ae(t)||e.isAccessor(t),e.isVariableDeclarationInVariableStatement=oe,e.isCommonJsExportedExpression=t=>!!De(t)&&(e.isObjectLiteralExpression(t.parent)&&e.isBinaryExpression(t.parent.parent)&&2===Le(t.parent.parent)||se(t.parent)),e.isCommonJsExportPropertyAssignment=se,e.isValidESSymbolDeclaration=t=>(e.isVariableDeclaration(t)?J(t)&&e.isIdentifier(t.name)&&oe(t):e.isPropertyDeclaration(t)?kr(t)&&Ar(t):e.isPropertySignature(t)&&kr(t))||se(t),e.introducesArgumentsExoticObject=e=>{switch(e.kind){case 169:case 168:case 171:case 172:case 173:case 256:case 213:return!0}return!1},e.unwrapInnermostStatementOfLabel=(e,t)=>{for(;;){if(t&&t(e),250!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=t=>t&&235===t.kind&&e.isFunctionLike(t.parent),e.isObjectLiteralMethod=e=>e&&169===e.kind&&205===e.parent.kind,e.isObjectLiteralOrClassExpressionMethodOrAccessor=e=>!(169!==e.kind&&172!==e.kind&&173!==e.kind||205!==e.parent.kind&&226!==e.parent.kind),e.isIdentifierTypePredicate=e=>e&&1===e.kind,e.isThisTypePredicate=e=>e&&0===e.kind,e.getPropertyAssignment=ce,e.getPropertyArrayElementValue=(t,r,n)=>e.firstDefined(ce(t,r),(t=>e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,(t=>e.isStringLiteral(t)&&t.text===n)):void 0)),e.getTsConfigObjectLiteralExpression=le,e.getTsConfigPropArrayElementValue=(t,r,n)=>e.firstDefined(de(t,r),(t=>e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,(t=>e.isStringLiteral(t)&&t.text===n)):void 0)),e.getTsConfigPropArray=de,e.getContainingFunction=t=>e.findAncestor(t.parent,e.isFunctionLike),e.getContainingFunctionDeclaration=t=>e.findAncestor(t.parent,e.isFunctionLikeDeclaration),e.getContainingClass=t=>e.findAncestor(t.parent,e.isClassLike),e.getContainingClassStaticBlock=t=>e.findAncestor(t.parent,(t=>e.isClassLike(t)||e.isFunctionLike(t)?"quit":e.isClassStaticBlockDeclaration(t))),e.getContainingFunctionOrClassStaticBlock=t=>e.findAncestor(t.parent,e.isFunctionLikeOrClassStaticBlockDeclaration),e.getThisContainer=ue,e.isThisContainerOrFunctionBlock=e=>{switch(e.kind){case 214:case 256:case 213:case 167:return!0;case 235:switch(e.parent.kind){case 171:case 169:case 172:case 173:return!0;default:return!1}default:return!1}},e.isInTopLevelContext=t=>{e.isIdentifier(t)&&(e.isClassDeclaration(t.parent)||e.isFunctionDeclaration(t.parent))&&t.parent.name===t&&(t=t.parent);var r=ue(t,!0);return e.isSourceFile(r)},e.getNewTargetContainer=e=>{var t=ue(e,!1);if(t)switch(t.kind){case 171:case 256:case 213:return t}},e.getSuperContainer=(t,r)=>{for(;;){if(!(t=t.parent))return t;switch(t.kind){case 162:t=t.parent;break;case 256:case 213:case 214:if(!r)continue;case 167:case 166:case 169:case 168:case 171:case 172:case 173:case 170:return t;case 165:164===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}},e.getImmediatelyInvokedFunctionExpression=e=>{if(213===e.kind||214===e.kind){for(var t=e,r=e.parent;212===r.kind;)t=r,r=r.parent;if(208===r.kind&&r.expression===t)return r}},e.isSuperOrSuperProperty=e=>106===e.kind||pe(e),e.isSuperProperty=pe,e.isThisProperty=e=>{var t=e.kind;return(206===t||207===t)&&108===e.expression.kind},e.isThisInitializedDeclaration=t=>{var r;return!!t&&e.isVariableDeclaration(t)&&108===(null===(r=t.initializer)||void 0===r?void 0:r.kind)},e.isThisInitializedObjectBindingExpression=t=>!!t&&(e.isShorthandPropertyAssignment(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&63===t.parent.parent.operatorToken.kind&&108===t.parent.parent.right.kind,e.getEntityNameFromTypeNode=e=>{switch(e.kind){case 178:return e.typeName;case 228:return Kr(e.expression)?e.expression:void 0;case 79:case 161:return e}},e.getInvokedExpression=e=>{switch(e.kind){case 210:return e.tag;case 280:case 279:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=_e,e.nodeIsDecorated=fe,e.nodeOrChildIsDecorated=me,e.childIsDecorated=ge,e.classOrConstructorParameterIsDecorated=e=>{if(fe(e))return!0;var t=_r(e);return!!t&&ge(t,e)},e.isJSXTagName=he,e.isExpressionNode=ye,e.isInExpressionContext=ve,e.isPartOfTypeQuery=be,e.isNamespaceReexportDeclaration=t=>e.isNamespaceExport(t)&&!!t.parent.moduleSpecifier,e.isExternalModuleImportEqualsDeclaration=Ee,e.getExternalModuleImportEqualsDeclarationExpression=t=>(e.Debug.assert(Ee(t)),t.moduleReference.expression),e.getExternalModuleRequireArgument=e=>Ae(e)&&pn(e.initializer).arguments[0],e.isInternalModuleImportEqualsDeclaration=e=>265===e.kind&&277!==e.moduleReference.kind,e.isSourceFileJS=xe,e.isSourceFileNotJS=e=>!De(e),e.isInJSFile=De,e.isInJsonFile=e=>!!e&&!!(67108864&e.flags),e.isSourceFileNotJson=e=>!K(e),e.isInJSDoc=Se,e.isJSDocIndexSignature=t=>e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&t.typeArguments&&2===t.typeArguments.length&&(150===t.typeArguments[0].kind||147===t.typeArguments[0].kind),e.isRequireCall=Te,e.isVariableDeclarationInitializedToRequire=Ce,e.isVariableDeclarationInitializedToBareOrAccessedRequire=Ae,e.isRequireVariableStatement=t=>e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&e.every(t.declarationList.declarations,(e=>Ce(e))),e.isSingleOrDoubleQuote=e=>39===e||34===e,e.isStringDoubleQuoted=(e,t)=>34===b(t,e).charCodeAt(0),e.isAssignmentDeclaration=Ne,e.getEffectiveInitializer=we,e.getDeclaredExpandoInitializer=e=>{var t=we(e);return t&&Fe(t,Gr(e.name))},e.getAssignedExpandoInitializer=t=>{if(t&&t.parent&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind){var r=Gr(t.parent.left);return Fe(t.parent.right,r)||((t,r,n)=>{var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&Fe(r.right,n);if(i&&Pe(t,r.left))return i})(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&Be(t)){var n=((t,r)=>e.forEach(t.properties,(t=>e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&Fe(t.initializer,r))))(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=Fe,e.isDefaultedExpandoInitializer=t=>{var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&Fe(t.right,Gr(r))&&Kr(r)&&Pe(r,t.left)},e.getNameOfExpando=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(63===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.isSameEntityName=Pe,e.getRightMostAssignedExpression=Ie,e.isExportsIdentifier=Oe,e.isModuleIdentifier=Me,e.isModuleExportsAccessExpression=Re,e.getAssignmentDeclarationKind=Le,e.isBindableObjectDefinePropertyCall=Be,e.isLiteralLikeAccess=Ue,e.isLiteralLikeElementAccess=je,e.isBindableStaticAccessExpression=Ve,e.isBindableStaticElementAccessExpression=ze,e.isBindableStaticNameExpression=He,e.getNameOrArgument=We,e.getElementOrPropertyAccessArgumentExpressionOrName=Ke,e.getElementOrPropertyAccessName=Je,e.getAssignmentDeclarationPropertyAccessKind=Ge,e.getInitializerOfBinaryExpression=$e,e.isPrototypePropertyAssignment=t=>e.isBinaryExpression(t)&&3===Le(t),e.isSpecialPropertyDeclaration=t=>De(t)&&t.parent&&238===t.parent.kind&&(!e.isElementAccessExpression(t)||je(t))&&!!e.getJSDocTypeTag(t.parent),e.setValueDeclaration=(e,t)=>{var r=e.valueDeclaration;(!r||(!(16777216&t.flags)||16777216&r.flags)&&Ne(r)&&!Ne(t)||r.kind!==t.kind&&A(r))&&(e.valueDeclaration=t)},e.isFunctionSymbol=t=>{if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 256===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.tryGetModuleSpecifierFromDeclaration=t=>{var r,n;switch(t.kind){case 254:return null===(r=e.findAncestor(t.initializer,(e=>Te(e,!0))))||void 0===r?void 0:r.arguments[0];case 266:return e.tryCast(t.moduleSpecifier,e.isStringLiteralLike);case 265:return e.tryCast(null===(n=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===n?void 0:n.expression,e.isStringLiteralLike);default:e.Debug.assertNever(t)}},e.importFromModuleSpecifier=t=>qe(t)||e.Debug.failBadSyntaxKind(t.parent),e.tryGetImportFromModuleSpecifier=qe,e.getExternalModuleName=Xe,e.getNamespaceDeclarationNode=t=>{switch(t.kind){case 266:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 265:return t;case 272:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=e=>266===e.kind&&!!e.importClause&&!!e.importClause.name,e.forEachImportClauseDeclaration=(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=e=>{if(e)switch(e.kind){case 164:case 169:case 168:case 297:case 296:case 167:case 166:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=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=Ye,e.isTypeAlias=t=>Ye(t)||e.isTypeAliasDeclaration(t),e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Ze,e.getSingleVariableOfVariableStatement=et,e.getJSDocCommentsAndTags=(t,r)=>{var n;ae(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(n=e.addRange(n,rt(t,e.last(t.initializer.jsDoc))));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(n=e.addRange(n,rt(t,e.last(i.jsDoc)))),164===i.kind){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(163===i.kind){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=it(i)}return n||e.emptyArray},e.getNextJSDocCommentLocation=it,e.getParameterSymbolFromJSDoc=t=>{if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=at(t);if(n){var i=e.find(n.parameters,(e=>79===e.name.kind&&e.name.escapedText===r));return i&&i.symbol}}},e.getEffectiveContainerForJSDocTemplateTag=t=>{if(e.isJSDoc(t.parent)&&t.parent.tags){var r=e.find(t.parent.tags,Ye);if(r)return r}return at(t)},e.getHostSignatureFromJSDoc=at,e.getEffectiveJSDocHost=ot,e.getJSDocHost=st,e.getJSDocRoot=ct,e.getTypeParameterFromJsDoc=t=>{var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return n&&e.find(n,(e=>e.name.escapedText===r))},e.hasTypeArguments=e=>!!e.typeArguments,(re=e.AssignmentKind||(e.AssignmentKind={}))[re.None=0]="None",re[re.Definite=1]="Definite",re[re.Compound=2]="Compound",e.getAssignmentTargetKind=lt,e.isAssignmentTarget=e=>0!==lt(e),e.isNodeWithPossibleHoistedDeclaration=e=>{switch(e.kind){case 235:case 237:case 248:case 239:case 249:case 263:case 289:case 290:case 250:case 242:case 243:case 244:case 240:case 241:case 252:case 292:return!0}return!1},e.isValueSignatureDeclaration=t=>e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t),e.walkUpParenthesizedTypes=e=>dt(e,191),e.walkUpParenthesizedExpressions=ut,e.walkUpParenthesizedTypesAndGetParentAndChild=e=>{for(var t;e&&191===e.kind;)t=e,e=e.parent;return[t,e]},e.skipTypeParentheses=t=>{for(;e.isParenthesizedTypeNode(t);)t=t.type;return t},e.skipParentheses=pt,e.isDeleteTarget=e=>(206===e.kind||207===e.kind)&&(e=ut(e.parent))&&215===e.kind,e.isNodeDescendantOf=(e,t)=>{for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=t=>!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t,e.getDeclarationFromName=t=>{var r=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(r))return r.parent;case 79: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!==Le(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 80:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=t=>St(t)&&162===t.parent.kind&&e.isDeclaration(t.parent.parent),e.isIdentifierName=e=>{var t=e.parent;switch(t.kind){case 167:case 166:case 169:case 168:case 172:case 173:case 299:case 296:case 206:return t.name===e;case 161:return t.right===e;case 203:case 270:return t.propertyName===e;case 275:case 285:case 279:case 280:case 281:return!0}return!1},e.isAliasSymbolDeclaration=t=>!!(265===t.kind||264===t.kind||267===t.kind&&t.name||268===t.kind||274===t.kind||270===t.kind||275===t.kind||271===t.kind&&ft(t))||De(t)&&(e.isBinaryExpression(t)&&2===Le(t)&&ft(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&_t(t.parent.right)),e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 267:case 270:case 268:case 275:case 271:case 265:case 274:return t.parent;case 161:do{t=t.parent}while(161===t.parent.kind);return e(t)}},e.isAliasableExpression=_t,e.exportAssignmentIsAlias=ft,e.getExportAssignmentExpression=mt,e.getPropertyAssignmentAliasLikeExpression=e=>297===e.kind?e.name:296===e.kind?e.initializer:e.parent.right,e.getEffectiveBaseTypeNode=gt,e.getClassExtendsHeritageElement=ht,e.getEffectiveImplementsTypeNodes=yt,e.getAllSuperTypeNodes=t=>e.isInterfaceDeclaration(t)?vt(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(gt(t)),yt(t))||e.emptyArray,e.getInterfaceBaseTypeNodes=vt,e.getHeritageClause=bt,e.getAncestor=(e,t)=>{for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=Et,e.isContextualKeyword=xt,e.isNonContextualKeyword=Dt,e.isFutureReservedKeyword=e=>117<=e&&e<=125,e.isStringANonContextualKeyword=t=>{var r=e.stringToToken(t);return void 0!==r&&Dt(r)},e.isStringAKeyword=t=>{var r=e.stringToToken(t);return void 0!==r&&Et(r)},e.isIdentifierANonContextualKeyword=e=>{var t=e.originalKeywordKind;return!!t&&!xt(t)},e.isTrivia=e=>2<=e&&e<=7,(te=e.FunctionFlags||(e.FunctionFlags={}))[te.Normal=0]="Normal",te[te.Generator=1]="Generator",te[te.Async=2]="Async",te[te.Invalid=4]="Invalid",te[te.AsyncGenerator=3]="AsyncGenerator",e.getFunctionFlags=e=>{if(!e)return 4;var t=0;switch(e.kind){case 256:case 213:case 169:e.asteriskToken&&(t|=1);case 214:Tr(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=e=>{switch(e.kind){case 256:case 213:case 214:case 169:return void 0!==e.body&&void 0===e.asteriskToken&&Tr(e,256)}return!1},e.isStringOrNumericLiteralLike=St,e.isSignedNumericLiteral=Tt,e.hasDynamicName=Ct,e.isDynamicName=At,e.getPropertyNameForPropertyNameNode=kt,e.isPropertyNameLiteral=Nt,e.getTextOfIdentifierOrLiteral=wt,e.getEscapedTextOfIdentifierOrLiteral=t=>e.isMemberName(t)?t.escapedText:e.escapeLeadingUnderscores(t.text),e.getPropertyNameForUniqueESSymbol=t=>"__@".concat(e.getSymbolId(t),"@").concat(t.escapedName),e.getSymbolNameForPrivateIdentifier=(t,r)=>"__#".concat(e.getSymbolId(t),"@").concat(r),e.isKnownSymbol=t=>e.startsWith(t.escapedName,"__@"),e.isPrivateIdentifierSymbol=t=>e.startsWith(t.escapedName,"__#"),e.isESSymbolIdentifier=e=>79===e.kind&&"Symbol"===e.escapedText,e.isPushOrUnshiftIdentifier=e=>"push"===e.escapedText||"unshift"===e.escapedText,e.isParameterDeclaration=e=>164===Ft(e).kind,e.getRootDeclaration=Ft,e.nodeStartsNewLexicalEnvironment=e=>{var t=e.kind;return 171===t||213===t||256===t||214===t||169===t||172===t||173===t||261===t||305===t},e.nodeIsSynthesized=Pt,e.getOriginalSourceFile=t=>e.getParseTreeNode(t,e.isSourceFile)||t,(ee=e.Associativity||(e.Associativity={}))[ee.Left=0]="Left",ee[ee.Right=1]="Right",e.getExpressionAssociativity=e=>{var t=Ot(e),r=209===e.kind&&void 0!==e.arguments;return It(e.kind,t,r)},e.getOperatorAssociativity=It,e.getExpressionPrecedence=e=>{var t=Ot(e),r=209===e.kind&&void 0!==e.arguments;return Mt(e.kind,t,r)},e.getOperator=Ot,(Z=e.OperatorPrecedence||(e.OperatorPrecedence={}))[Z.Comma=0]="Comma",Z[Z.Spread=1]="Spread",Z[Z.Yield=2]="Yield",Z[Z.Assignment=3]="Assignment",Z[Z.Conditional=4]="Conditional",Z[Z.Coalesce=4]="Coalesce",Z[Z.LogicalOR=5]="LogicalOR",Z[Z.LogicalAND=6]="LogicalAND",Z[Z.BitwiseOR=7]="BitwiseOR",Z[Z.BitwiseXOR=8]="BitwiseXOR",Z[Z.BitwiseAND=9]="BitwiseAND",Z[Z.Equality=10]="Equality",Z[Z.Relational=11]="Relational",Z[Z.Shift=12]="Shift",Z[Z.Additive=13]="Additive",Z[Z.Multiplicative=14]="Multiplicative",Z[Z.Exponentiation=15]="Exponentiation",Z[Z.Unary=16]="Unary",Z[Z.Update=17]="Update",Z[Z.LeftHandSide=18]="LeftHandSide",Z[Z.Member=19]="Member",Z[Z.Primary=20]="Primary",Z[Z.Highest=20]="Highest",Z[Z.Lowest=0]="Lowest",Z[Z.Invalid=-1]="Invalid",e.getOperatorPrecedence=Mt,e.getBinaryOperatorPrecedence=Rt,e.getSemanticJsxChildren=t=>e.filter(t,(e=>{switch(e.kind){case 288:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}})),e.createDiagnosticCollection=()=>{var t=[],r=[],n=new e.Map,i=!1;return{add(a){var o;a.file?(o=n.get(a.file.fileName))||(o=[],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,An)},lookup(r){var i;if(i=r.file?n.get(r.file.fileName):t){var a=e.binarySearch(i,r,e.identity,kn);return a>=0?i[a]:void 0}},getGlobalDiagnostics:()=>(i=!0,t),getDiagnostics(i){if(i)return n.get(i)||[];var a=e.flatMapToMutable(r,(e=>n.get(e)));return t.length?(a.unshift.apply(a,t),a):a}}};var Lt=/\$\{/g;e.hasInvalidEscape=t=>t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,(e=>!!e.literal.templateFlags)));var Bt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ut=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,jt=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Vt=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","
":"\\u0085","\r\n":"\\r\\n"}));function zt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Ht(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return Vt.get(e)||zt(e.charCodeAt(0))}function Wt(e,t){var r=96===t?jt:39===t?Ut:Bt;return e.replace(r,Ht)}e.escapeString=Wt;var Kt=/[^\u0000-\u007F]/g;function Jt(e,t){return e=Wt(e,t),Kt.test(e)?e.replace(Kt,(e=>zt(e.charCodeAt(0)))):e}e.escapeNonAsciiString=Jt;var Gt=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,$t=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,qt=new e.Map(e.getEntries({'"':""","'":"'"}));function Xt(e){return 0===e.charCodeAt(0)?"�":qt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Yt(e,t){var r=39===t?$t:Gt;return e.replace(r,Xt)}e.escapeJsxAttributeString=Yt,e.stripQuotes=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=t=>{var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")||e.stringContains(t,":")};var Qt=[""," "];function Zt(e){for(var t=Qt[1],r=Qt.length;r<=e;r++)Qt.push(Qt[r-1]+t);return Qt[e]}function er(){return Qt[1].length}function tr(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function rr(e,t,r){return t.moduleName||ir(e,t.fileName,r&&r.fileName)}function nr(t,r){return t.getCanonicalFileName(e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()))}function ir(t,r,n){var i=e=>t.getCanonicalFileName(e),a=e.toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),s=fi(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function ar(e,t,r,n,i){var a=t.declarationDir||t.outDir,o=a?dr(e,a,r,n,i):e,s=or(o);return fi(o)+s}function or(t){return e.fileExtensionIsOneOf(t,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(t,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(t,[".json"])?".json.d.ts":".d.ts"}function sr(e){return e.outFile||e.out}function cr(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&xe(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(K(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function lr(e,t,r){return dr(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function dr(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 ur(t,r,n){t.length>e.getRootLength(t)&&!n(t)&&(ur(e.getDirectoryPath(t),r,n),r(t))}function pr(t,r){return e.computeLineOfPosition(t,r)}function _r(t){return e.find(t.members,(t=>e.isConstructorDeclaration(t)&&p(t.body)))}function fr(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&mr(e.parameters[0]);return e.parameters[t?1:0]}}function mr(e){return gr(e.name)}function gr(e){return!!e&&79===e.kind&&hr(e)}function hr(e){return 108===e.originalKeywordKind}function yr(t){if(De(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!De(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function vr(e,t,r,n){br(e,t,r.pos,n)}function br(e,t,r,n){n&&n.length&&r!==n[0].pos&&pr(e,r)!==pr(e,n[0].pos)&&t.writeLine()}function Er(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,l=0,d=n;l<d.length;l++){var u=d[l];c&&(r.writeSpace(" "),c=!1),s(e,t,r,u.pos,u.end,o),u.hasTrailingNewLine?r.writeLine():c=!0}c&&a&&r.writeSpace(" ")}}function xr(t,r,n,i,a,o){var s=Math.min(r,o-1),c=e.trimString(t.substring(a,s));c?(n.writeComment(c),s!==r&&n.writeLine()):n.rawWrite(i)}function Dr(t,r,n){for(var i=0;r<n&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));r++)9===t.charCodeAt(r)?i+=er()-i%er():i++;return i}function Sr(e,t){return!!wr(e,t)}function Tr(e,t){return!!Fr(e,t)}function Cr(t){return e.isClassElement(t)&&Ar(t)||e.isClassStaticBlockDeclaration(t)}function Ar(e){return Tr(e,32)}function kr(e){return Sr(e,64)}function Nr(e){return Tr(e,131072)}function wr(e,t){return Ir(e)&t}function Fr(e,t){return Or(e)&t}function Pr(e,t,r){return e.kind>=0&&e.kind<=160?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Rr(e)),!t||4096&e.modifierFlagsCache||!r&&!De(e)||!e.parent||(e.modifierFlagsCache|=4096|Mr(e)),-536875009&e.modifierFlagsCache)}function Ir(e){return Pr(e,!0)}function Or(e){return Pr(e,!1)}function Mr(t){var r=0;return t.parent&&!e.isParameter(t)&&(De(t)&&(e.getJSDocPublicTagNoCache(t)&&(r|=4),e.getJSDocPrivateTagNoCache(t)&&(r|=8),e.getJSDocProtectedTagNoCache(t)&&(r|=16),e.getJSDocReadonlyTagNoCache(t)&&(r|=64),e.getJSDocOverrideTagNoCache(t)&&(r|=16384)),e.getJSDocDeprecatedTagNoCache(t)&&(r|=8192)),r}function Rr(t){var r=e.canHaveModifiers(t)?Lr(t.modifiers):0;return(4&t.flags||79===t.kind&&t.isInJSDocNamespace)&&(r|=1),r}function Lr(e){var t=0;if(e)for(var r=0,n=e;r<n.length;r++)t|=Br(n[r].kind);return t}function Br(e){switch(e){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 128;case 93:return 1;case 135:return 2;case 85:return 2048;case 88:return 512;case 131:return 256;case 145:return 64;case 159:return 16384;case 101:return 32768;case 144:return 65536;case 165:return 131072}return 0}function Ur(e){return 75===e||76===e||77===e}function jr(e){return e>=63&&e<=78}function Vr(e){var t=zr(e);return t&&!t.isImplements?t.class:void 0}function zr(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:117===t.parent.token}:void 0}function Hr(t,r){return e.isBinaryExpression(t)&&(r?63===t.operatorToken.kind:jr(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Wr(e){return void 0!==Vr(e)}function Kr(e){return 79===e.kind||Jr(e)}function Jr(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&Kr(t.expression)}function Gr(e){return Ve(e)&&"prototype"===Je(e)}function $r(t){return e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isElementAccessExpression(t.parent)&&t.parent.argumentExpression===t}e.getIndentString=Zt,e.getIndentSize=er,e.isNightly=()=>e.stringContains(e.version,"-dev")||e.stringContains(e.version,"-insiders"),e.createTextWriter=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 l(e){e&&e.length&&(i&&(e=Zt(n)+e,i=!1),r+=e,c(e))}function d(e){e&&(s=!1),l(e)}function u(){r="",n=0,i=!0,a=0,o=0,s=!1}return u(),{write:d,rawWrite(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral(e){e&&e.length&&d(e)},writeLine(e){i&&!e||(a++,o=(r+=t).length,i=!0,s=!1)},increaseIndent(){n++},decreaseIndent(){n--},getIndent:()=>n,getTextPos:()=>r.length,getLine:()=>a,getColumn:()=>i?n*er():r.length-o,getText:()=>r,isAtStartOfLine:()=>i,hasTrailingComment:()=>s,hasTrailingWhitespace:()=>!!r.length&&e.isWhiteSpaceLike(r.charCodeAt(r.length-1)),clear:u,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:()=>!1,writeKeyword:d,writeOperator:d,writeParameter:d,writeProperty:d,writePunctuation:d,writeSpace:d,writeStringLiteral:d,writeSymbol:(e,t)=>d(e),writeTrailingSemicolon:d,writeComment(e){e&&(s=!0),l(e)},getTextPosWithWriteLine:()=>i?r.length:r.length+t.length}},e.getTrailingSemicolonDeferringWriter=e=>{var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return m(m({},e),{writeTrailingSemicolon(){t=!0},writeLiteral(t){r(),e.writeLiteral(t)},writeStringLiteral(t){r(),e.writeStringLiteral(t)},writeSymbol(t,n){r(),e.writeSymbol(t,n)},writePunctuation(t){r(),e.writePunctuation(t)},writeKeyword(t){r(),e.writeKeyword(t)},writeOperator(t){r(),e.writeOperator(t)},writeParameter(t){r(),e.writeParameter(t)},writeSpace(t){r(),e.writeSpace(t)},writeProperty(t){r(),e.writeProperty(t)},writeComment(t){r(),e.writeComment(t)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=tr,e.hostGetCanonicalFileName=t=>e.createGetCanonicalFileName(tr(t)),e.getResolvedExternalModuleName=rr,e.getExternalModuleNameFromDeclaration=(t,r,n)=>{var i=r.getExternalModuleFileFromDeclaration(n);if(i&&!i.isDeclarationFile){var a=Xe(n);if(!a||!e.isStringLiteralLike(a)||e.pathIsRelative(a.text)||-1!==nr(t,i.path).indexOf(nr(t,e.ensureTrailingDirectorySeparator(t.getCommonSourceDirectory()))))return rr(t,i)}},e.getExternalModuleNameFromPath=ir,e.getOwnEmitOutputFilePath=(e,t,r)=>{var n=t.getCompilerOptions();return(n.outDir?fi(lr(e,t,n.outDir)):fi(e))+r},e.getDeclarationEmitOutputFilePath=(e,t)=>ar(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e))),e.getDeclarationEmitOutputFilePathWorker=ar,e.getDeclarationEmitExtensionForPath=or,e.getPossibleOriginalInputExtensionForExtension=t=>e.fileExtensionIsOneOf(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:e.fileExtensionIsOneOf(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:e.fileExtensionIsOneOf(t,[".json.d.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"],e.outFile=sr,e.getPathsBasePath=(t,r)=>{var n,i;if(t.paths)return null!==(n=t.baseUrl)&&void 0!==n?n:e.Debug.checkDefined(t.pathsBasePath||(null===(i=r.getCurrentDirectory)||void 0===i?void 0:i.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=(t,r,n)=>{var i=t.getCompilerOptions();if(sr(i)){var a=On(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(r=>(o||!e.isExternalModule(r))&&cr(r,t,n)))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(e=>cr(e,t,n)))},e.sourceFileMayBeEmitted=cr,e.getSourceFilePathInNewDir=lr,e.getSourceFilePathInNewDirWorker=dr,e.writeFile=(t,r,n,i,a,o,s)=>{t.writeFile(n,i,a,(t=>{r.add(Tn(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))}),o,s)},e.writeFileEnsuringDirectories=(t,r,n,i,a,o)=>{try{i(t,r,n)}catch(s){ur(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,r,n)}},e.getLineOfLocalPosition=(t,r)=>{var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)},e.getLineOfLocalPositionFromLineMap=pr,e.getFirstConstructorWithBody=_r,e.getSetAccessorValueParameter=fr,e.getSetAccessorTypeAnnotationNode=e=>{var t=fr(e);return t&&t.type},e.getThisParameter=t=>{if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(mr(r))return r}},e.parameterIsThisKeyword=mr,e.isThisIdentifier=gr,e.isThisInTypeQuery=t=>{if(!gr(t))return!1;for(;e.isQualifiedName(t.parent)&&t.parent.left===t;)t=t.parent;return 181===t.parent.kind},e.identifierIsThisKeyword=hr,e.getAllAccessorDeclarations=(t,r)=>{var n,i,a,o;return Ct(r)?(n=r,172===r.kind?a=r:173===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,(t=>{e.isAccessor(t)&&Cr(t)===Cr(r)&&kt(t.name)===kt(r.name)&&(n?i||(i=t):n=t,172!==t.kind||a||(a=t),173!==t.kind||o||(o=t))})),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=yr,e.getTypeAnnotationNode=e=>e.type,e.getEffectiveReturnTypeNode=t=>e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(De(t)?e.getJSDocReturnType(t):void 0),e.getJSDocTypeParameterDeclarations=t=>e.flatMap(e.getJSDocTags(t),(t=>(t=>e.isJSDocTemplateTag(t)&&!(320===t.parent.kind&&t.parent.tags.some(Ye)))(t)?t.typeParameters:void 0)),e.getEffectiveSetAccessorTypeAnnotationNode=e=>{var t=fr(e);return t&&yr(t)},e.emitNewLineBeforeLeadingComments=vr,e.emitNewLineBeforeLeadingCommentsOfPosition=br,e.emitNewLineBeforeLeadingCommentOfPosition=(e,t,r,n)=>{r!==n&&pr(e,r)!==pr(e,n)&&t.writeLine()},e.emitComments=Er,e.emitDetachedComments=(t,r,n,i,a,o,s)=>{var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),(e=>y(t,e.pos)))):c=e.getLeadingCommentRanges(t,a.pos),c){for(var d=[],u=void 0,p=0,_=c;p<_.length;p++){var f=_[p];if(u){var m=pr(r,u.end);if(pr(r,f.pos)>=m+2)break}d.push(f),u=f}d.length&&(m=pr(r,e.last(d).end),pr(r,e.skipTrivia(t,a.pos))>=m+2&&(vr(r,n,a,c),Er(t,r,n,d,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.last(d).end}))}return l},e.writeCommentRange=(t,r,n,i,a,o)=>{if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,l=void 0,d=i,u=s.line;d<a;u++){var p=u+1===c?t.length+1:r[u+1];if(d!==i){void 0===l&&(l=Dr(t,r[s.line],i));var _=n.getIndent()*er()-l+Dr(t,d,p);if(_>0){var f=_%er(),m=Zt((_-f)/er());for(n.rawWrite(m);f;)n.rawWrite(" "),f--}else n.rawWrite("")}xr(t,a,n,o,d,p),d=p}else n.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=e=>0!==Ir(e),e.hasSyntacticModifiers=e=>0!==Or(e),e.hasEffectiveModifier=Sr,e.hasSyntacticModifier=Tr,e.isStatic=Cr,e.hasStaticModifier=Ar,e.hasOverrideModifier=e=>Sr(e,16384),e.hasAbstractModifier=e=>Tr(e,128),e.hasAmbientModifier=e=>Tr(e,2),e.hasEffectiveReadonlyModifier=kr,e.hasDecorators=Nr,e.getSelectedEffectiveModifierFlags=wr,e.getSelectedSyntacticModifierFlags=Fr,e.getEffectiveModifierFlags=Ir,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=e=>Pr(e,!0,!0),e.getSyntacticModifierFlags=Or,e.getEffectiveModifierFlagsNoCache=e=>Rr(e)|Mr(e),e.getSyntacticModifierFlagsNoCache=Rr,e.modifiersToFlags=Lr,e.modifierToFlag=Br,e.createModifiers=t=>t?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(t)):void 0,e.isLogicalOperator=e=>56===e||55===e||53===e,e.isLogicalOrCoalescingAssignmentOperator=Ur,e.isLogicalOrCoalescingAssignmentExpression=e=>Ur(e.operatorToken.kind),e.isAssignmentOperator=jr,e.tryGetClassExtendingExpressionWithTypeArguments=Vr,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=zr,e.isAssignmentExpression=Hr,e.isLeftHandSideOfAssignment=e=>Hr(e.parent)&&e.parent.left===e,e.isDestructuringAssignment=e=>{if(Hr(e,!0)){var t=e.left.kind;return 205===t||204===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Wr,e.isEntityNameExpression=Kr,e.getFirstIdentifier=e=>{switch(e.kind){case 79:return e;case 161:do{e=e.left}while(79!==e.kind);return e;case 206:do{e=e.expression}while(79!==e.kind);return e}},e.isDottedName=function e(t){return 79===t.kind||108===t.kind||106===t.kind||231===t.kind||206===t.kind&&e(t.expression)||212===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=Jr,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){if(void 0!==(n=t(r.expression)))return n+"."+U(r.name)}else if(e.isElementAccessExpression(r)){var n;if(void 0!==(n=t(r.expression))&&e.isPropertyName(r.argumentExpression))return n+"."+kt(r.argumentExpression)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=Gr,e.isRightSideOfQualifiedNameOrPropertyAccess=e=>161===e.parent.kind&&e.parent.right===e||206===e.parent.kind&&e.parent.name===e,e.isRightSideOfAccessExpression=$r,e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=t=>e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isJSDocMemberName(t.parent)&&t.parent.right===t,e.isEmptyObjectLiteral=e=>205===e.kind&&0===e.properties.length,e.isEmptyArrayLiteral=e=>204===e.kind&&0===e.elements.length,e.getLocalSymbolForExportDefault=t=>{if((t=>t&&e.length(t.declarations)>0&&Tr(t.declarations[0],512))(t)&&t.declarations)for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(i.localSymbol)return i.localSymbol}},e.tryExtractTSExtension=t=>e.find(si,(r=>e.fileExtensionIs(t,r)));var qr,Xr,Yr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Qr(t){for(var r,n,i,a,o="",s=(t=>{for(var r=[],n=t.length,i=0;i<n;i++){var a=t.charCodeAt(i);a<128?r.push(a):a<2048?(r.push(a>>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),c=0,l=s.length;c<l;)r=s[c]>>2,n=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=l?i=a=64:c+2>=l&&(a=64),o+=Yr.charAt(r)+Yr.charAt(n)+Yr.charAt(i)+Yr.charAt(a),c+=3;return o}function Zr(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t||-1===r),{pos:t,end:r}}function en(e,t){return Zr(t,e.end)}function tn(t){var r=e.canHaveModifiers(t)?e.findLast(t.modifiers,e.isDecorator):void 0;return r&&!yi(r.end)?en(t,r.end):t}function rn(e,t,r){return nn(an(e,r,!1),t.end,r)}function nn(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function an(t,r,n){return yi(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function on(e){return void 0!==e.initializer}function sn(e){return 33554432&e.flags?e.checkFlags:0}function cn(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 212:return cn(r);case 220:case 219:var n=r.operator;return 45===n||46===n?c():0;case 221:var i=r,a=i.left,o=i.operatorToken;return a===t&&jr(o.kind)?63===o.kind?1:c():0;case 206:return r.name!==t?0:cn(r);case 296:var s=cn(r.parent);return t===r.name?(t=>{switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}})(s):s;case 297:return t===r.objectAssignmentInitializer?0:cn(r.parent);case 204:return cn(r);default:return 0}function c(){return r.parent&&238===ut(r.parent).kind?1:2}}function ln(e,t,r){var n=r.onDeleteValue,i=r.onExistingValue;e.forEach(((r,a)=>{var o=t.get(a);void 0===o?(e.delete(a),n(r,a)):i&&i(r,o,a)}))}function dn(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find(e.isClassLike)}function un(e){return 206===e.kind||207===e.kind}function pn(e){for(;un(e);)e=e.expression;return e}function _n(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 fn(t,r){this.flags=r,(e.Debug.isDebugging||e.tracing)&&(this.checker=t)}function mn(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function gn(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 hn(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 yn(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 vn(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(e=>e)}function bn(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,((t,i)=>""+e.Debug.checkDefined(r[+i+n])))}function En(e){return Xr&&Xr[e.key]||e.message}function xn(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function Dn(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;o<s.length;o++){var c=s[o];xn(c)&&c.fileName===n?(e.Debug.assertLessThanOrEqual(c.start,i),e.Debug.assertLessThanOrEqual(c.start+c.length,i),a.relatedInformation.push(Dn(c,r))):a.relatedInformation.push(c)}}return a}function Sn(e,t,r,n){V(e,t,r);var i=En(n);return arguments.length>4&&(i=bn(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function Tn(e){var t=En(e);return arguments.length>1&&(t=bn(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 Cn(e){return e.file?e.file.path:void 0}function An(t,r){return kn(t,r)||((t,r)=>t.relatedInformation||r.relatedInformation?t.relatedInformation&&r.relatedInformation?e.compareValues(t.relatedInformation.length,r.relatedInformation.length)||e.forEach(t.relatedInformation,((e,t)=>An(e,r.relatedInformation[t])))||0:t.relatedInformation?-1:1:0)(t,r)||0}function kn(t,r){return e.compareStringsCaseSensitive(Cn(t),Cn(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||Nn(t.messageText,r.messageText)||0}function Nn(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;a<i;a++)if(n=Nn(t.next[a],r.next[a]))return n;return t.next.length<r.next.length?-1:t.next.length>r.next.length?1:0}function wn(t){if(2&t.transformFlags)return e.isJsxOpeningLikeElement(t)||e.isJsxFragment(t)?t:e.forEachChild(t,wn)}function Fn(e){return e.isDeclarationFile?void 0:wn(e)}function Pn(t){return!(t.impliedNodeFormat!==e.ModuleKind.ESNext&&!e.fileExtensionIsOneOf(t.fileName,[".cjs",".cts",".mjs",".mts"])||t.isDeclarationFile)||void 0}function In(t){return t.target||t.module===e.ModuleKind.Node16&&9||t.module===e.ModuleKind.NodeNext&&99||0}function On(t){return"number"==typeof t.module?t.module:In(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Mn(t){return t.moduleDetection||(On(t)===e.ModuleKind.Node16||On(t)===e.ModuleKind.NodeNext?e.ModuleDetectionKind.Force:e.ModuleDetectionKind.Auto)}function Rn(t){if(void 0!==t.esModuleInterop)return t.esModuleInterop;switch(On(t)){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0}}function Ln(e){return!(!e.declaration&&!e.composite)}function Bn(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Un(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function jn(e,t){return t.strictFlag?Bn(e,t.name):e[t.name]}function Vn(t,r){return void 0!==t&&("node_modules"===r(t)||e.startsWith(t,"@"))}e.convertToBase64=Qr,e.base64encode=(e,t)=>e&&e.base64encode?e.base64encode(t):Qr(t),e.base64decode=(e,t)=>{if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i<r&&t.charCodeAt(i)!==Yr.charCodeAt(64);){var a=Yr.indexOf(t[i]),o=Yr.indexOf(t[i+1]),s=Yr.indexOf(t[i+2]),c=Yr.indexOf(t[i+3]),l=(63&a)<<2|o>>4&3,d=(15&o)<<4|s>>2&15,u=(3&s)<<6|63&c;0===d&&0!==s?n.push(l):0===u&&0!==c?n.push(l,d):n.push(l,d,u),i+=4}return(e=>{for(var t="",r=0,n=e.length;r<n;){var i=e[r];if(i<128)t+=String.fromCharCode(i),r++;else if(192==(192&i)){for(var a=63&i,o=e[++r];128==(192&o);)a=a<<6|63&o,o=e[++r];t+=String.fromCharCode(a)}else t+=String.fromCharCode(i),r++}return t})(n)},e.readJson=(t,r)=>{try{var n=r.readFile(t);if(!n)return{};var i=e.parseConfigFileTextToJson(t,n);return i.error?{}:i.config}catch(e){return{}}},e.directoryProbablyExists=(e,t)=>!t.directoryExists||t.directoryExists(e),e.getNewLineCharacter=(t,r)=>{switch(t.newLine){case 0:return"\r\n";case 1:return"\n"}return r?r():e.sys?e.sys.newLine:"\r\n"},e.createRange=Zr,e.moveRangeEnd=(e,t)=>Zr(e.pos,t),e.moveRangePos=en,e.moveRangePastDecorators=tn,e.moveRangePastModifiers=t=>{var r=e.canHaveModifiers(t)?e.lastOrUndefined(t.modifiers):void 0;return r&&!yi(r.end)?en(t,r.end):tn(t)},e.isCollapsedRange=e=>e.pos===e.end,e.createTokenRange=(t,r)=>Zr(t,t+e.tokenToString(r).length),e.rangeIsOnSingleLine=(e,t)=>rn(e,e,t),e.rangeStartPositionsAreOnSameLine=(e,t,r)=>nn(an(e,r,!1),an(t,r,!1),r),e.rangeEndPositionsAreOnSameLine=(e,t,r)=>nn(e.end,t.end,r),e.rangeStartIsOnSameLineAsRangeEnd=rn,e.rangeEndIsOnSameLineAsRangeStart=(e,t,r)=>nn(e.end,an(t,r,!1),r),e.getLinesBetweenRangeEndAndRangeStart=(t,r,n,i)=>{var a=an(r,n,i);return e.getLinesBetweenPositions(n,t.end,a)},e.getLinesBetweenRangeEndPositions=(t,r,n)=>e.getLinesBetweenPositions(n,t.end,r.end),e.isNodeArrayMultiLine=(e,t)=>!nn(e.pos,e.end,t),e.positionsAreOnSameLine=nn,e.getStartPositionOfRange=an,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=(t,r,n,i)=>{var a=e.skipTrivia(n.text,t,!1,i),o=((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=(t,r,n,i)=>{var a=e.skipTrivia(n.text,t,!1,i);return e.getLinesBetweenPositions(n,t,Math.min(r,a))},e.isDeclarationNameOfEnumOrNamespace=t=>{var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 260:case 261:return r===r.parent.name}return!1},e.getInitializedVariables=t=>e.filter(t.declarations,on),e.isWatchSet=e=>e.watch&&e.hasOwnProperty("watch"),e.closeFileWatcher=e=>{e.close()},e.getCheckFlags=sn,e.getDeclarationModifierFlagsFromSymbol=(t,r)=>{if(void 0===r&&(r=!1),t.valueDeclaration){var n=r&&t.declarations&&e.find(t.declarations,e.isSetAccessorDeclaration)||32768&t.flags&&e.find(t.declarations,e.isGetAccessorDeclaration)||t.valueDeclaration,i=e.getCombinedModifierFlags(n);return t.parent&&32&t.parent.flags?i:-29&i}if(6&sn(t)){var a=t.checkFlags;return(1024&a?8:256&a?4:16)|(2048&a?32:0)}return 4194304&t.flags?36:0},e.skipAlias=(e,t)=>2097152&e.flags?t.getAliasedSymbol(e):e,e.getCombinedLocalAndExportSymbolFlags=e=>e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags,e.isWriteOnlyAccess=e=>1===cn(e),e.isWriteAccess=e=>0!==cn(e),(e=>{e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"})(qr||(qr={})),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=(e,t)=>{e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=ln,e.mutateMap=(e,t,r)=>{ln(e,t,r);var n=r.createNewValue;t.forEach(((t,r)=>{e.has(r)||e.set(r,n(r,t))}))},e.isAbstractConstructorSymbol=e=>{if(32&e.flags){var t=dn(e);return!!t&&Tr(t,128)}return!1},e.getClassLikeDeclarationOfSymbol=dn,e.getObjectFlags=e=>3899393&e.flags?e.objectFlags:0,e.typeHasCallOrConstructSignatures=(e,t)=>0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length,e.forSomeAncestorDirectory=(t,r)=>!!e.forEachAncestorDirectory(t,(e=>!!r(e)||void 0)),e.isUMDExportSymbol=t=>!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0]),e.showModuleSpecifier=t=>{var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:x(r)},e.getLastChild=t=>{var r;return e.forEachChild(t,(e=>{p(e)&&(r=e)}),(e=>{for(var t=e.length-1;t>=0;t--)if(p(e[t])){r=e[t];break}})),r},e.addToSeen=(e,t,r)=>(void 0===r&&(r=!0),!e.has(t)&&(e.set(t,r),!0)),e.isObjectTypeDeclaration=t=>e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t),e.isTypeNodeKind=e=>e>=177&&e<=200||130===e||155===e||147===e||158===e||148===e||133===e||150===e||151===e||114===e||153===e||143===e||228===e||312===e||313===e||314===e||315===e||316===e||317===e||318===e,e.isAccessExpression=un,e.getNameOfAccessExpression=t=>206===t.kind?t.name:(e.Debug.assert(207===t.kind),t.argumentExpression),e.isBundleFileTextLike=e=>{switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=e=>269===e.kind||273===e.kind,e.getLeftmostAccessExpression=pn,e.forEachNameInAccessChainWalkingLeft=(t,r)=>{if(un(t.parent)&&$r(t))return function t(n){if(206===n.kind){if(void 0!==(i=r(n.name)))return i}else if(207===n.kind){if(!e.isIdentifier(n.argumentExpression)&&!e.isStringLiteralLike(n.argumentExpression))return;var i;if(void 0!==(i=r(n.argumentExpression)))return i}return un(n.expression)?t(n.expression):e.isIdentifier(n.expression)?r(n.expression):void 0}(t.parent)},e.getLeftmostExpression=(e,t)=>{for(;;){switch(e.kind){case 220:e=e.operand;continue;case 221:e=e.left;continue;case 222:e=e.condition;continue;case 210:e=e.tag;continue;case 208:if(t)return e;case 229:case 207:case 206:case 230:case 350:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:()=>gn,getTokenConstructor:()=>hn,getIdentifierConstructor:()=>yn,getPrivateIdentifierConstructor:()=>gn,getSourceFileConstructor:()=>gn,getSymbolConstructor:()=>_n,getTypeConstructor:()=>fn,getSignatureConstructor:()=>mn,getSourceMapSourceConstructor:()=>vn},e.setObjectAllocator=t=>{Object.assign(e.objectAllocator,t)},e.formatStringFromArgs=bn,e.setLocalizedDiagnosticMessages=e=>{Xr=e},e.maybeSetLocalizedDiagnosticMessages=e=>{!Xr&&e&&(Xr=e())},e.getLocaleSpecificMessage=En,e.createDetachedDiagnostic=function(e,t,r,n){V(void 0,t,r);var i=En(n);return arguments.length>4&&(i=bn(i,arguments,4)),{file:void 0,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=(e,t)=>{for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n];r.push(Dn(a,t))}return r},e.createFileDiagnostic=Sn,e.formatMessage=function(e,t){var r=En(t);return arguments.length>2&&(r=bn(r,arguments,2)),r},e.createCompilerDiagnostic=Tn,e.createCompilerDiagnosticFromMessageChain=(e,t)=>({file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}),e.chainDiagnosticMessages=function(e,t){var r=En(t);return arguments.length>2&&(r=bn(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=(e,t)=>{for(var r=e;r.next;)r=r.next[0];r.next=[t]},e.compareDiagnostics=An,e.compareDiagnosticsSkipRelatedInformation=kn,e.getLanguageVariant=e=>4===e||2===e||1===e||6===e?1:0,e.getSetExternalModuleIndicator=t=>{switch(Mn(t)){case e.ModuleDetectionKind.Force:return t=>{t.externalModuleIndicator=e.isFileProbablyExternalModule(t)||!t.isDeclarationFile||void 0};case e.ModuleDetectionKind.Legacy:return t=>{t.externalModuleIndicator=e.isFileProbablyExternalModule(t)};case e.ModuleDetectionKind.Auto:var r=[e.isFileProbablyExternalModule];4!==t.jsx&&5!==t.jsx||r.push(Fn),r.push(Pn);var n=e.or.apply(void 0,r);return e=>{e.externalModuleIndicator=n(e)}}},e.getEmitScriptTarget=In,e.getEmitModuleKind=On,e.getEmitModuleResolutionKind=t=>{var r=t.moduleResolution;if(void 0===r)switch(On(t)){case e.ModuleKind.CommonJS:r=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node16:r=e.ModuleResolutionKind.Node16;break;case e.ModuleKind.NodeNext:r=e.ModuleResolutionKind.NodeNext;break;default:r=e.ModuleResolutionKind.Classic}return r},e.getEmitModuleDetectionKind=Mn,e.hasJsonModuleEmitEnabled=t=>{switch(On(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0;default:return!1}},e.unreachableCodeIsError=e=>!1===e.allowUnreachableCode,e.unusedLabelIsError=e=>!1===e.allowUnusedLabels,e.getAreDeclarationMapsEnabled=e=>!(!Ln(e)||!e.declarationMap),e.getESModuleInterop=Rn,e.getAllowSyntheticDefaultImports=t=>{var r=On(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:Rn(t)||r===e.ModuleKind.System},e.getEmitDeclarations=Ln,e.shouldPreserveConstEnums=e=>!(!e.preserveConstEnums&&!e.isolatedModules),e.isIncrementalCompilation=e=>!(!e.incremental&&!e.composite),e.getStrictOptionValue=Bn,e.getAllowJSCompilerOption=Un,e.getUseDefineForClassFields=e=>void 0===e.useDefineForClassFields?In(e)>=9:e.useDefineForClassFields,e.compilerOptionsAffectSemanticDiagnostics=(t,r)=>o(r,t,e.semanticDiagnosticsOptionDeclarations),e.compilerOptionsAffectEmit=(t,r)=>o(r,t,e.affectsEmitOptionDeclarations),e.compilerOptionsAffectDeclarationPath=(t,r)=>o(r,t,e.affectsDeclarationPathOptionDeclarations),e.getCompilerOptionValue=jn,e.getJSXTransformEnabled=e=>{var t=e.jsx;return 2===t||4===t||5===t},e.getJSXImplicitImportBase=(t,r)=>{var n=null==r?void 0:r.pragmas.get("jsximportsource"),i=e.isArray(n)?n[n.length-1]:n;return 4===t.jsx||5===t.jsx||t.jsxImportSource||i?(null==i?void 0:i.arguments.factory)||t.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=(e,t)=>e?"".concat(e,"/").concat(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0,e.hasZeroOrOneAsteriskCharacter=e=>{for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0},e.createSymlinkCache=function(t,r){var n,i,a,o=!1;return{getSymlinkedFiles:()=>a,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(t,r)=>(a||(a=new e.Map)).set(t,r),setSymlinkedDirectory(a,o){var s=e.toPath(a,t,r);Ai(s)||(s=e.ensureTrailingDirectorySeparator(s),!1===o||(null==n?void 0:n.has(s))||(i||(i=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(o.realPath),a),(n||(n=new e.Map)).set(s,o))},setSymlinksFromResolutions(t,r){var n,i=this;e.Debug.assert(!o),o=!0;for(var a=0,c=t;a<c.length;a++)null===(n=c[a].resolvedModules)||void 0===n||n.forEach((e=>s(i,e)));null==r||r.forEach((e=>s(i,e)))},hasProcessedResolutions:()=>o};function s(n,i){if(i&&i.originalPath&&i.resolvedFileName){var a=i.resolvedFileName,o=i.originalPath;n.setSymlinkedFile(e.toPath(o,t,r),a);var s=((t,r,n,i)=>{for(var a=e.getPathComponents(e.getNormalizedAbsolutePath(t,n)),o=e.getPathComponents(e.getNormalizedAbsolutePath(r,n)),s=!1;a.length>=2&&o.length>=2&&!Vn(a[a.length-2],i)&&!Vn(o[o.length-2],i)&&i(a[a.length-1])===i(o[o.length-1]);)a.pop(),o.pop(),s=!0;return s?[e.getPathFromPathComponents(a),e.getPathFromPathComponents(o)]:void 0})(a,o,t,r)||e.emptyArray,c=s[0],l=s[1];c&&l&&n.setSymlinkedDirectory(l,{real:c,realPath:e.toPath(c,t,r)})}}},e.tryRemoveDirectoryPrefix=(t,r,n)=>{var i,a=e.tryRemovePrefix(t,r,n);return void 0===a?void 0:(i=a,e.isAnyDirectorySeparator(i.charCodeAt(0))?i.slice(1):void 0)};var zn=/[^\w\s\/]/g;function Hn(e){return"\\"+e}e.regExpEscape=e=>e.replace(zn,Hn);var Wn=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Kn="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),Jn={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(Kn,"[^/.][^/]*)*?"),replaceWildcardCharacter:e=>ei(e,Jn.singleAsteriskRegexFragment)},Gn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(Kn,"[^/.][^/]*)*?"),replaceWildcardCharacter:e=>ei(e,Gn.singleAsteriskRegexFragment)},$n={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>ei(e,$n.singleAsteriskRegexFragment)},qn={files:Jn,directories:Gn,exclude:$n};function Xn(e,t,r){var n=Yn(e,t,r);if(n&&n.length){var i=n.map((e=>"(".concat(e,")"))).join("|"),a="exclude"===r?"($|/)":"$";return"^(".concat(i,")").concat(a)}}function Yn(t,r,n){if(void 0!==t&&0!==t.length)return e.flatMap(t,(e=>e&&Zn(e,r,n,qn[n])))}function Qn(e){return!/[.*?]/.test(e)}function Zn(t,r,n,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,c="",l=!1,d=e.getNormalizedPathComponents(t,r),u=e.last(d);if("exclude"===n||"**"!==u){d[0]=e.removeTrailingDirectorySeparator(d[0]),Qn(u)&&d.push("**","*");for(var p=0,_=0,f=d;_<f.length;_++){var m=f[_];if("**"===m)c+=o;else if("directories"===n&&(c+="(",p++),l&&(c+=e.directorySeparator),"exclude"!==n){var g="";42===m.charCodeAt(0)?(g+="([^./]"+a+")?",m=m.substr(1)):63===m.charCodeAt(0)&&(g+="[^./]",m=m.substr(1)),(g+=m.replace(zn,s))!==m&&(c+=Kn),c+=g}else c+=m.replace(zn,s);l=!0}for(;p>0;)c+=")?",p--;return c}}function ei(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function ti(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Yn(n,o,"files"),(e=>"^".concat(e,"$"))),includeFilePattern:Xn(n,o,"files"),includeDirectoryPattern:Xn(n,o,"directories"),excludePattern:Xn(r,o,"exclude"),basePaths:ni(t,n,i)}}function ri(e,t){return new RegExp(e,t?"":"i")}function ni(t,r,n){var i=[t];if(r){for(var a=[],o=0,s=r;o<s.length;o++){var c=s[o],l=e.isRootedDiskPath(c)?c:e.normalizePath(e.combinePaths(t,c));a.push(ii(l))}a.sort(e.getStringComparer(!n));for(var d=r=>{e.every(i,(i=>!e.containsPath(i,r,t,!n)))&&i.push(r)},u=0,p=a;u<p.length;u++)d(p[u])}return i}function ii(t){var r=e.indexOfAnyCharCode(t,Wn);return r<0?e.hasExtension(t)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(t)):t:t.substring(0,t.lastIndexOf(e.directorySeparator,r))}function ai(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getRegularExpressionForWildcard=Xn,e.getRegularExpressionsForWildcards=Yn,e.isImplicitGlob=Qn,e.getPatternFromSpec=(e,t,r)=>{var n=e&&Zn(e,t,r,qn[r]);return n&&"^(".concat(n,")").concat("exclude"===r?"($|/)":"$")},e.getFileMatcherPatterns=ti,e.getRegexFromPattern=ri,e.matchFiles=(t,r,n,i,a,o,s,c,l)=>{t=e.normalizePath(t),o=e.normalizePath(o);for(var d=ti(t,n,i,a,o),u=d.includeFilePatterns&&d.includeFilePatterns.map((e=>ri(e,a))),p=d.includeDirectoryPattern&&ri(d.includeDirectoryPattern,a),_=d.excludePattern&&ri(d.excludePattern,a),f=u?u.map((()=>[])):[[]],m=new e.Map,g=e.createGetCanonicalFileName(a),h=0,y=d.basePaths;h<y.length;h++){var v=y[h];b(v,e.combinePaths(o,v),s)}return e.flatten(f);function b(t,n,i){var a=g(l(n));if(!m.has(a)){m.set(a,!0);for(var o=c(t),s=o.files,d=o.directories,h=i=>{var a=e.combinePaths(t,i),o=e.combinePaths(n,i);if(r&&!e.fileExtensionIsOneOf(a,r))return"continue";if(_&&_.test(o))return"continue";if(u){var s=e.findIndex(u,(e=>e.test(o)));-1!==s&&f[s].push(a)}else f[0].push(a)},y=0,v=e.sort(s,e.compareStringsCaseSensitive);y<v.length;y++)h(D=v[y]);if(void 0===i||0!=--i)for(var E=0,x=e.sort(d,e.compareStringsCaseSensitive);E<x.length;E++){var D=x[E],S=e.combinePaths(t,D),T=e.combinePaths(n,D);p&&!p.test(T)||_&&_.test(T)||b(S,T,i)}}}},e.ensureScriptKind=(e,t)=>t||ai(e)||3,e.getScriptKindFromFileName=ai,e.supportedTSExtensions=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],e.supportedTSExtensionsFlat=e.flatten(e.supportedTSExtensions);var oi=f(f([],e.supportedTSExtensions,!0),[[".json"]],!1),si=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"];e.supportedJSExtensions=[[".js",".jsx"],[".mjs"],[".cjs"]],e.supportedJSExtensionsFlat=e.flatten(e.supportedJSExtensions);var ci=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],li=f(f([],ci,!0),[[".json"]],!1);function di(t,r){var n=t&&Un(t);if(!r||0===r.length)return n?ci:e.supportedTSExtensions;var i=n?ci:e.supportedTSExtensions,a=e.flatten(i);return f(f([],i,!0),e.mapDefined(r,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&-1===a.indexOf(e.extension)?[e.extension]:void 0;var t})),!0)}function ui(t,r){return t&&t.resolveJsonModule?r===ci?li:r===e.supportedTSExtensions?oi:f(f([],r,!0),[[".json"]],!1):r}function pi(e){var t=e.match(/\//g);return t?t.length:0}e.supportedDeclarationExtensions=[".d.ts",".d.cts",".d.mts"],e.getSupportedExtensions=di,e.getSupportedExtensionsWithJsonIfResolveJsonModule=ui,e.hasJSFileExtension=t=>e.some(e.supportedJSExtensionsFlat,(r=>e.fileExtensionIs(t,r))),e.hasTSFileExtension=t=>e.some(e.supportedTSExtensionsFlat,(r=>e.fileExtensionIs(t,r))),e.isSupportedSourceFileName=(t,r,n)=>{if(!t)return!1;for(var i=di(r,n),a=0,o=e.flatten(ui(r,i));a<o.length;a++){var s=o[a];if(e.fileExtensionIs(t,s))return!0}return!1},e.compareNumberOfDirectorySeparators=(t,r)=>e.compareValues(pi(t),pi(r));var _i=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function fi(e){for(var t=0,r=_i;t<r.length;t++){var n=mi(e,r[t]);if(void 0!==n)return n}return e}function mi(t,r){return e.fileExtensionIs(t,r)?gi(t,r):void 0}function gi(e,t){return e.substring(0,e.length-t.length)}function hi(e){var t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function yi(e){return!(e>=0)}function vi(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e}function bi(t){return e.find(_i,(r=>e.fileExtensionIs(t,r)))}function Ei(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,Ei)}function xi(e,t){return e.pos=t,e}function Di(e,t){return e.end=t,e}function Si(e,t,r){return Di(xi(e,t),r)}function Ti(e,t){return e&&t&&(e.parent=t),e}function Ci(t){return!e.isOmittedExpression(t)}function Ai(t){return e.some(e.ignoredPaths,(r=>e.stringContains(t,r)))}function ki(e){return 254===e.kind&&292===e.parent.kind}function Ni(e){return(+e).toString()===e}e.removeFileExtension=fi,e.tryRemoveExtension=mi,e.removeExtension=gi,e.changeExtension=(t,r)=>e.changeAnyExtension(t,r,_i,!1),e.tryParsePattern=hi,e.tryParsePatterns=t=>e.mapDefined(e.getOwnKeys(t),(e=>hi(e))),e.positionIsSynthesized=yi,e.extensionIsTS=vi,e.resolutionExtensionIsTSOrJson=e=>vi(e)||".json"===e,e.extensionFromPath=t=>{var r=bi(t);return void 0!==r?r:e.Debug.fail("File ".concat(t," has unknown extension."))},e.isAnySupportedFileExtension=e=>void 0!==bi(e),e.tryGetExtensionFromPath=bi,e.isCheckJsEnabledForFile=(e,t)=>e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=(t,r)=>{for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i];if(o===r)return r;e.isString(o)||n.push(o)}return e.findBestPatternMatch(n,(e=>e),r)},e.sliceAfter=(t,r)=>{var n=t.indexOf(r);return e.Debug.assert(-1!==n),t.slice(n)},e.addRelatedInfo=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.length?(t.relatedInformation||(t.relatedInformation=[]),e.Debug.assert(t.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(r=t.relatedInformation).push.apply(r,n),t):t},e.minAndMax=(t,r)=>{e.Debug.assert(0!==t.length);for(var n=r(t[0]),i=n,a=1;a<t.length;a++){var o=r(t[a]);o<n?n=o:o>i&&(i=o)}return{min:n,max:i}},e.rangeOfNode=e=>({pos:v(e),end:e.end}),e.rangeOfTypeParameters=(t,r)=>({pos:r.pos-1,end:e.skipTrivia(t.text,r.end)+1}),e.skipTypeChecking=(e,t,r)=>t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName),e.isJsonEqual=Ei,e.parsePseudoBigInt=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 l=c>>>4,d=e.charCodeAt(s),u=(d<=57?d-48:10+d-(d<=70?65:97))<<(15&c);o[l]|=u;var p=u>>>16;p&&(o[l+1]|=p)}for(var _="",f=o.length-1,m=!0;m;){var g=0;for(m=!1,l=f;l>=0;l--){var h=g<<16|o[l],y=h/10|0;o[l]=y,g=h-10*y,y&&!m&&(f=l,m=!0)}_=g+_}return _},e.pseudoBigIntToString=e=>{var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r},e.isValidTypeOnlyAliasUseSite=t=>!!(16777216&t.flags)||be(t)||(t=>{if(79!==t.kind)return!1;var r=e.findAncestor(t.parent,(e=>{switch(e.kind){case 291:return!0;case 206:case 228:return!1;default:return"quit"}}));return 117===(null==r?void 0:r.token)||258===(null==r?void 0:r.parent.kind)})(t)||(e=>{for(;79===e.kind||206===e.kind;)e=e.parent;if(162!==e.kind)return!1;if(Tr(e.parent,128))return!0;var t=e.parent.parent.kind;return 258===t||182===t})(t)||!(ye(t)||(t=>e.isIdentifier(t)&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t)(t)),e.isIdentifierTypeReference=t=>e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName),e.arrayIsHomogeneous=(t,r)=>{if(void 0===r&&(r=e.equateValues),t.length<2)return!0;for(var n=t[0],i=1,a=t.length;i<a;i++)if(!r(n,t[i]))return!1;return!0},e.setTextRangePos=xi,e.setTextRangeEnd=Di,e.setTextRangePosEnd=Si,e.setTextRangePosWidth=(e,t,r)=>Si(e,t,t+r),e.setNodeFlags=(e,t)=>(e&&(e.flags=t),e),e.setParent=Ti,e.setEachParent=(e,t)=>{if(e)for(var r=0,n=e;r<n.length;r++)Ti(n[r],t);return e},e.setParentRecursive=(t,r)=>{return t?(e.forEachChildRecursively(t,e.isJSDocNode(t)?n:(t,r)=>n(t,r)||(t=>{if(e.hasJSDocNodes(t))for(var r=0,i=t.jsDoc;r<i.length;r++){var a=i[r];n(a,t),e.forEachChildRecursively(a,n)}})(t)),t):t;function n(e,t){if(r&&e.parent===t)return"skip";Ti(e,t)}},e.isPackedArrayLiteral=t=>e.isArrayLiteralExpression(t)&&e.every(t.elements,Ci),e.expressionResultIsUnused=t=>{for(e.Debug.assertIsDefined(t.parent);;){var r=t.parent;if(e.isParenthesizedExpression(r))t=r;else{if(e.isExpressionStatement(r)||e.isVoidExpression(r)||e.isForStatement(r)&&(r.initializer===t||r.incrementor===t))return!0;if(e.isCommaListExpression(r)){if(t!==e.last(r.elements))return!0;t=r}else{if(!e.isBinaryExpression(r)||27!==r.operatorToken.kind)return!1;if(t===r.left)return!0;t=r}}}},e.containsIgnoredPath=Ai,e.getContainingNodeArray=t=>{if(t.parent){switch(t.kind){case 163:var r=t.parent;return 190===r.kind?void 0:r.typeParameters;case 164:return t.parent.parameters;case 199:case 233:return t.parent.templateSpans;case 165:var n=t.parent;return e.canHaveDecorators(n)?n.modifiers:e.canHaveIllegalDecorators(n)?n.illegalDecorators:void 0;case 291:return t.parent.heritageClauses}var i=t.parent;if(e.isJSDocTag(t))return e.isJSDocTypeLiteral(t.parent)?void 0:t.parent.tags;switch(i.kind){case 182:case 258:return e.isTypeElement(t)?i.members:void 0;case 187:case 188:return i.types;case 184:case 204:case 351:case 269:case 273:return i.elements;case 205:case 286:return i.properties;case 208:case 209:return e.isTypeNode(t)?i.typeArguments:i.expression===t?void 0:i.arguments;case 278:case 282:return e.isJsxChild(t)?i.children:void 0;case 280:case 279:return e.isTypeNode(t)?i.typeArguments:void 0;case 235:case 289:case 290:case 262:return i.statements;case 263:return i.clauses;case 257:case 226:return e.isClassElement(t)?i.members:void 0;case 260:return e.isEnumMember(t)?i.members:void 0;case 305:return i.statements}}},e.hasContextSensitiveParameters=t=>{if(!t.typeParameters){if(e.some(t.parameters,(e=>!yr(e))))return!0;if(214!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!mr(r))return!0}}return!1},e.isInfinityOrNaNString=e=>"Infinity"===e||"-Infinity"===e||"NaN"===e,e.isCatchClauseVariableDeclaration=ki,e.isParameterOrCatchClauseVariable=t=>{var r=t.valueDeclaration&&Ft(t.valueDeclaration);return!!r&&(e.isParameter(r)||ki(r))},e.isFunctionExpressionOrArrowFunction=e=>213===e.kind||214===e.kind,e.escapeSnippetText=e=>e.replace(/\$/gm,(()=>"\\$")),e.isNumericLiteralName=Ni,e.createPropertyNameNodeForIdentifierOrLiteral=(t,r,n,i)=>e.isIdentifierText(t,r)?e.factory.createIdentifier(t):!i&&Ni(t)&&+t>=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n),e.isThisTypeParameter=e=>!!(262144&e.flags&&e.isThisType),e.getNodeModulePathParts=t=>{var r,n=0,i=0,a=0;!(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(o=s,s=t.indexOf("/",o+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},e.getParameterTypeNode=e=>{var t;return 340===e.kind?null===(t=e.typeExpression)||void 0===t?void 0:t.type:e.type}}(p),(e=>{e.createBaseNodeFactory=()=>{var t,r,n,i,a;return{createBaseSourceFileNode:t=>new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(n||(n=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(i||(i=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(r||(r=e.objectAllocator.getTokenConstructor()))(t,-1,-1),createBaseNode:r=>new(t||(t=e.objectAllocator.getNodeConstructor()))(r,-1,-1)}}})(p),(e=>{e.createParenthesizerRules=t=>{var r,n;return{getParenthesizeLeftSideOfBinaryForOperator(t){r||(r=new e.Map);var n=r.get(t);return n||(n=e=>o(t,e),r.set(t,n)),n},getParenthesizeRightSideOfBinaryForOperator(t){n||(n=new e.Map);var r=n.get(t);return r||(r=e=>s(t,void 0,e),n.set(t,r)),r},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:s,parenthesizeExpressionOfComputedPropertyName:r=>e.isCommaSequence(r)?t.createParenthesizedExpression(r):r,parenthesizeConditionOfConditionalExpression(r){var n=e.getOperatorPrecedence(222,57),i=e.skipPartiallyEmittedExpressions(r),a=e.getExpressionPrecedence(i);return 1!==e.compareValues(a,n)?t.createParenthesizedExpression(r):r},parenthesizeBranchOfConditionalExpression(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isCommaSequence(n)?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfExportDefault(r){var n=e.skipPartiallyEmittedExpressions(r),i=e.isCommaSequence(n);if(!i)switch(e.getLeftmostExpression(n,!1).kind){case 226:case 213:i=!0}return i?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfNew(r){var n=e.getLeftmostExpression(r,!0);switch(n.kind){case 208:return t.createParenthesizedExpression(r);case 209:return n.arguments?r:t.createParenthesizedExpression(r)}return c(r)},parenthesizeLeftSideOfAccess:c,parenthesizeOperandOfPostfixUnary:r=>e.isLeftHandSideExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r),parenthesizeOperandOfPrefixUnary:r=>e.isUnaryExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r),parenthesizeExpressionsOfCommaDelimitedList(r){var n=e.sameMap(r,l);return e.setTextRange(t.createNodeArray(n,r.hasTrailingComma),r)},parenthesizeExpressionForDisallowedComma:l,parenthesizeExpressionOfExpressionStatement(r){var n=e.skipPartiallyEmittedExpressions(r);if(e.isCallExpression(n)){var i=n.expression,a=e.skipPartiallyEmittedExpressions(i).kind;if(213===a||214===a){var o=t.updateCallExpression(n,e.setTextRange(t.createParenthesizedExpression(i),i),n.typeArguments,n.arguments);return t.restoreOuterExpressions(r,o,8)}}var s=e.getLeftmostExpression(n,!1).kind;return 205===s||213===s?e.setTextRange(t.createParenthesizedExpression(r),r):r},parenthesizeConciseBodyOfArrowFunction:r=>e.isBlock(r)||!e.isCommaSequence(r)&&205!==e.getLeftmostExpression(r,!1).kind?r:e.setTextRange(t.createParenthesizedExpression(r),r),parenthesizeCheckTypeOfConditionalType:d,parenthesizeExtendsTypeOfConditionalType(e){switch(e.kind){case 189:return t.createParenthesizedType(e)}return e},parenthesizeConstituentTypesOfUnionType:r=>t.createNodeArray(e.sameMap(r,u)),parenthesizeConstituentTypeOfUnionType:u,parenthesizeConstituentTypesOfIntersectionType:r=>t.createNodeArray(e.sameMap(r,p)),parenthesizeConstituentTypeOfIntersectionType:p,parenthesizeOperandOfTypeOperator:_,parenthesizeOperandOfReadonlyTypeOperator(e){switch(e.kind){case 193:return t.createParenthesizedType(e)}return _(e)},parenthesizeNonArrayTypeOfPostfixType:f,parenthesizeElementTypesOfTupleType:r=>t.createNodeArray(e.sameMap(r,m)),parenthesizeElementTypeOfTupleType:m,parenthesizeTypeOfOptionalType:e=>g(e)?t.createParenthesizedType(e):f(e),parenthesizeTypeArguments(r){if(e.some(r))return t.createNodeArray(e.sameMap(r,y))},parenthesizeLeadingTypeArgument:h};function i(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isLiteralKind(t.kind))return t.kind;if(221===t.kind&&39===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var r=i(t.left),n=e.isLiteralKind(r)&&r===i(t.right)?r:0;return t.cachedLiteralKind=n,n}return 0}function a(r,n,a,o){return 212===e.skipPartiallyEmittedExpressions(n).kind?n:((t,r,n,a)=>{var o=e.getOperatorPrecedence(221,t),s=e.getOperatorAssociativity(221,t),c=e.skipPartiallyEmittedExpressions(r);if(!n&&214===r.kind&&o>3)return!0;var l=e.getExpressionPrecedence(c);switch(e.compareValues(l,o)){case-1:return!(!n&&1===s&&224===r.kind);case 1:return!1;case 0:if(n)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if((e=>41===e||51===e||50===e||52===e)(t))return!1;if(39===t){var d=a?i(a):0;if(e.isLiteralKind(d)&&d===i(c))return!1}}return 0===e.getExpressionAssociativity(c)}})(r,n,a,o)?t.createParenthesizedExpression(n):n}function o(e,t){return a(e,t,!0)}function s(e,t,r){return a(e,r,!1,t)}function c(r,n){var i=e.skipPartiallyEmittedExpressions(r);return!e.isLeftHandSideExpression(i)||209===i.kind&&!i.arguments||!n&&e.isOptionalChain(i)?e.setTextRange(t.createParenthesizedExpression(r),r):r}function l(r){var n=e.skipPartiallyEmittedExpressions(r);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(221,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function d(e){switch(e.kind){case 179:case 180:case 189:return t.createParenthesizedType(e)}return e}function u(e){switch(e.kind){case 187:case 188:return t.createParenthesizedType(e)}return d(e)}function p(e){switch(e.kind){case 187:case 188:return t.createParenthesizedType(e)}return u(e)}function _(e){switch(e.kind){case 188:return t.createParenthesizedType(e)}return p(e)}function f(e){switch(e.kind){case 190:case 193:case 181:return t.createParenthesizedType(e)}return _(e)}function m(e){return g(e)?t.createParenthesizedType(e):e}function g(t){return e.isJSDocNullableType(t)?t.postfix:e.isNamedTupleMember(t)||e.isFunctionTypeNode(t)||e.isConstructorTypeNode(t)||e.isTypeOperatorNode(t)?g(t.type):e.isConditionalTypeNode(t)?g(t.falseType):e.isUnionTypeNode(t)||e.isIntersectionTypeNode(t)?g(e.last(t.types)):!!e.isInferTypeNode(t)&&!!t.typeParameter.constraint&&g(t.typeParameter.constraint)}function h(r){return e.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?t.createParenthesizedType(r):r}function y(e,t){return 0===t?h(e):e}},e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:t=>e.identity,getParenthesizeRightSideOfBinaryForOperator:t=>e.identity,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:t=>e.cast(t,e.isLeftHandSideExpression),parenthesizeLeftSideOfAccess:t=>e.cast(t,e.isLeftHandSideExpression),parenthesizeOperandOfPostfixUnary:t=>e.cast(t,e.isLeftHandSideExpression),parenthesizeOperandOfPrefixUnary:t=>e.cast(t,e.isUnaryExpression),parenthesizeExpressionsOfCommaDelimitedList:t=>e.cast(t,e.isNodeArray),parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeCheckTypeOfConditionalType:e.identity,parenthesizeExtendsTypeOfConditionalType:e.identity,parenthesizeConstituentTypesOfUnionType:t=>e.cast(t,e.isNodeArray),parenthesizeConstituentTypeOfUnionType:e.identity,parenthesizeConstituentTypesOfIntersectionType:t=>e.cast(t,e.isNodeArray),parenthesizeConstituentTypeOfIntersectionType:e.identity,parenthesizeOperandOfTypeOperator:e.identity,parenthesizeOperandOfReadonlyTypeOperator:e.identity,parenthesizeNonArrayTypeOfPostfixType:e.identity,parenthesizeElementTypesOfTupleType:t=>e.cast(t,e.isNodeArray),parenthesizeElementTypeOfTupleType:e.identity,parenthesizeTypeOfOptionalType:e.identity,parenthesizeTypeArguments:t=>t&&e.cast(t,e.isNodeArray),parenthesizeLeadingTypeArgument:e.identity}})(p),(e=>{e.createNodeConverters=t=>{return{convertToFunctionBlock(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(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 202:case 204:return o(e);case 201:case 205: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}})(p),(e=>{var t,r,n=0;function i(r,i){var _=8&r?a:o,m=e.memoize((()=>1&r?e.nullParenthesizerRules:e.createParenthesizerRules(w))),g=e.memoize((()=>2&r?e.nullNodeConverters:e.createNodeConverters(w))),h=e.memoizeOne((e=>(t,r)=>Lt(t,e,r))),y=e.memoizeOne((e=>t=>Mt(e,t))),b=e.memoizeOne((e=>t=>Rt(t,e))),E=e.memoizeOne((e=>()=>(e=>P(e))(e))),x=e.memoizeOne((e=>t=>on(e,t))),D=e.memoizeOne((e=>(t,r)=>((e,t,r)=>t.type!==r?_(on(e,r),t):t)(e,t,r))),S=e.memoizeOne((e=>(t,r)=>an(e,t,r))),T=e.memoizeOne((e=>(t,r)=>((e,t,r)=>t.type!==r?_(an(e,r,t.postfix),t):t)(e,t,r))),C=e.memoizeOne((e=>(t,r)=>Cn(e,t,r))),A=e.memoizeOne((e=>(t,r,n)=>((e,t,r,n)=>(void 0===r&&(r=un(t)),t.tagName!==r||t.comment!==n?_(Cn(e,r,n),t):t))(e,t,r,n))),k=e.memoizeOne((e=>(t,r,n)=>An(e,t,r,n))),N=e.memoizeOne((e=>(t,r,n,i)=>((e,t,r,n,i)=>(void 0===r&&(r=un(t)),t.tagName!==r||t.typeExpression!==n||t.comment!==i?_(An(e,r,n,i),t):t))(e,t,r,n,i))),w={get parenthesizer(){return m()},get converters(){return g()},baseFactory:i,flags:r,createNodeArray:F,createNumericLiteral:W,createBigIntLiteral:K,createStringLiteral:G,createStringLiteralFromNode(t){var r=J(e.getTextOfIdentifierOrLiteral(t),void 0);return r.textSourceNode=t,r},createRegularExpressionLiteral:$,createLiteralLikeNode(e,t){switch(e){case 8:return W(t,0);case 9:return K(t);case 10:return G(t,void 0);case 11:return Rn(t,!1);case 12:return Rn(t,!0);case 13:return $(t);case 14:return zt(e,t,void 0,0)}},createIdentifier:Y,updateIdentifier:(t,r)=>t.typeArguments!==r?_(Y(e.idText(t),r),t):t,createTempVariable:Q,createLoopVariable(e){var t=2;return e&&(t|=8),X("",t)},createUniqueName:(t,r)=>(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"),X(t,3|r)),getGeneratedNameForNode:Z,createPrivateIdentifier(t){e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t);var r=i.createBasePrivateIdentifierNode(80);return r.escapedText=e.escapeLeadingUnderscores(t),r.transformFlags|=16777216,r},createToken:te,createSuper:()=>te(106),createThis:re,createNull:()=>te(104),createTrue:ne,createFalse:ie,createModifier:ae,createModifiersFromModifierFlags:oe,createQualifiedName:se,updateQualifiedName:(e,t,r)=>e.left!==t||e.right!==r?_(se(t,r),e):e,createComputedPropertyName:ce,updateComputedPropertyName:(e,t)=>e.expression!==t?_(ce(t),e):e,createTypeParameterDeclaration:le,updateTypeParameterDeclaration:de,createParameterDeclaration:ue,updateParameterDeclaration:pe,createDecorator:_e,updateDecorator:(e,t)=>e.expression!==t?_(_e(t),e):e,createPropertySignature:fe,updatePropertySignature:me,createPropertyDeclaration:ge,updatePropertyDeclaration:he,createMethodSignature:ye,updateMethodSignature:ve,createMethodDeclaration:be,updateMethodDeclaration:Ee,createConstructorDeclaration:De,updateConstructorDeclaration:Se,createGetAccessorDeclaration:Te,updateGetAccessorDeclaration:Ce,createSetAccessorDeclaration:Ae,updateSetAccessorDeclaration:ke,createCallSignature:Ne,updateCallSignature:(e,t,r,n)=>e.typeParameters!==t||e.parameters!==r||e.type!==n?L(Ne(t,r,n),e):e,createConstructSignature:we,updateConstructSignature:(e,t,r,n)=>e.typeParameters!==t||e.parameters!==r||e.type!==n?L(we(t,r,n),e):e,createIndexSignature:Fe,updateIndexSignature:Pe,createClassStaticBlockDeclaration:xe,updateClassStaticBlockDeclaration(e,t){return e.body!==t?((r=xe(t))!==(n=e)&&(r.illegalDecorators=n.illegalDecorators,r.modifiers=n.modifiers),_(r,n)):e;var r,n},createTemplateLiteralTypeSpan:Ie,updateTemplateLiteralTypeSpan:(e,t,r)=>e.type!==t||e.literal!==r?_(Ie(t,r),e):e,createKeywordTypeNode:e=>te(e),createTypePredicateNode:Oe,updateTypePredicateNode:(e,t,r,n)=>e.assertsModifier!==t||e.parameterName!==r||e.type!==n?_(Oe(t,r,n),e):e,createTypeReferenceNode:Me,updateTypeReferenceNode:(e,t,r)=>e.typeName!==t||e.typeArguments!==r?_(Me(t,r),e):e,createFunctionTypeNode:Re,updateFunctionTypeNode(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?((i=Re(t,r,n))!==(a=e)&&(i.modifiers=a.modifiers),L(i,a)):e;var i,a},createConstructorTypeNode:Le,updateConstructorTypeNode(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return 5===t.length?je.apply(void 0,t):4===t.length?Ve.apply(void 0,t):e.Debug.fail("Incorrect number of arguments specified.")},createTypeQueryNode:ze,updateTypeQueryNode:(e,t,r)=>e.exprName!==t||e.typeArguments!==r?_(ze(t,r),e):e,createTypeLiteralNode:He,updateTypeLiteralNode:(e,t)=>e.members!==t?_(He(t),e):e,createArrayTypeNode:We,updateArrayTypeNode:(e,t)=>e.elementType!==t?_(We(t),e):e,createTupleTypeNode:Ke,updateTupleTypeNode:(e,t)=>e.elements!==t?_(Ke(t),e):e,createNamedTupleMember:Je,updateNamedTupleMember:(e,t,r,n,i)=>e.dotDotDotToken!==t||e.name!==r||e.questionToken!==n||e.type!==i?_(Je(t,r,n,i),e):e,createOptionalTypeNode:Ge,updateOptionalTypeNode:(e,t)=>e.type!==t?_(Ge(t),e):e,createRestTypeNode:$e,updateRestTypeNode:(e,t)=>e.type!==t?_($e(t),e):e,createUnionTypeNode:e=>qe(187,e,m().parenthesizeConstituentTypesOfUnionType),updateUnionTypeNode:(e,t)=>Xe(e,t,m().parenthesizeConstituentTypesOfUnionType),createIntersectionTypeNode:e=>qe(188,e,m().parenthesizeConstituentTypesOfIntersectionType),updateIntersectionTypeNode:(e,t)=>Xe(e,t,m().parenthesizeConstituentTypesOfIntersectionType),createConditionalTypeNode:Ye,updateConditionalTypeNode:(e,t,r,n,i)=>e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==i?_(Ye(t,r,n,i),e):e,createInferTypeNode:Qe,updateInferTypeNode:(e,t)=>e.typeParameter!==t?_(Qe(t),e):e,createImportTypeNode:et,updateImportTypeNode:(e,t,r,n,i,a)=>(void 0===a&&(a=e.isTypeOf),e.argument!==t||e.assertions!==r||e.qualifier!==n||e.typeArguments!==i||e.isTypeOf!==a?_(et(t,r,n,i,a),e):e),createParenthesizedType:tt,updateParenthesizedType:(e,t)=>e.type!==t?_(tt(t),e):e,createThisTypeNode(){var e=P(192);return e.transformFlags=1,e},createTypeOperatorNode:rt,updateTypeOperatorNode:(e,t)=>e.type!==t?_(rt(e.operator,t),e):e,createIndexedAccessTypeNode:nt,updateIndexedAccessTypeNode:(e,t,r)=>e.objectType!==t||e.indexType!==r?_(nt(t,r),e):e,createMappedTypeNode:it,updateMappedTypeNode:(e,t,r,n,i,a,o)=>e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==n||e.questionToken!==i||e.type!==a||e.members!==o?_(it(t,r,n,i,a,o),e):e,createLiteralTypeNode:at,updateLiteralTypeNode:(e,t)=>e.literal!==t?_(at(t),e):e,createTemplateLiteralType:Ze,updateTemplateLiteralType:(e,t,r)=>e.head!==t||e.templateSpans!==r?_(Ze(t,r),e):e,createObjectBindingPattern:ot,updateObjectBindingPattern:(e,t)=>e.elements!==t?_(ot(t),e):e,createArrayBindingPattern:st,updateArrayBindingPattern:(e,t)=>e.elements!==t?_(st(t),e):e,createBindingElement:ct,updateBindingElement:(e,t,r,n,i)=>e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==i?_(ct(t,r,n,i),e):e,createArrayLiteralExpression:dt,updateArrayLiteralExpression:(e,t)=>e.elements!==t?_(dt(t,e.multiLine),e):e,createObjectLiteralExpression:ut,updateObjectLiteralExpression:(e,t)=>e.properties!==t?_(ut(t,e.multiLine),e):e,createPropertyAccessExpression:4&r?(t,r)=>e.setEmitFlags(pt(t,r),131072):pt,updatePropertyAccessExpression:(t,r,n)=>e.isPropertyAccessChain(t)?ft(t,r,t.questionDotToken,e.cast(n,e.isIdentifier)):t.expression!==r||t.name!==n?_(pt(r,n),t):t,createPropertyAccessChain:4&r?(t,r,n)=>e.setEmitFlags(_t(t,r,n),131072):_t,updatePropertyAccessChain:ft,createElementAccessExpression:mt,updateElementAccessExpression:(t,r,n)=>e.isElementAccessChain(t)?ht(t,r,t.questionDotToken,n):t.expression!==r||t.argumentExpression!==n?_(mt(r,n),t):t,createElementAccessChain:gt,updateElementAccessChain:ht,createCallExpression:yt,updateCallExpression:(t,r,n,i)=>e.isCallChain(t)?bt(t,r,t.questionDotToken,n,i):t.expression!==r||t.typeArguments!==n||t.arguments!==i?_(yt(r,n,i),t):t,createCallChain:vt,updateCallChain:bt,createNewExpression:Et,updateNewExpression:(e,t,r,n)=>e.expression!==t||e.typeArguments!==r||e.arguments!==n?_(Et(t,r,n),e):e,createTaggedTemplateExpression:xt,updateTaggedTemplateExpression:(e,t,r,n)=>e.tag!==t||e.typeArguments!==r||e.template!==n?_(xt(t,r,n),e):e,createTypeAssertion:Dt,updateTypeAssertion:St,createParenthesizedExpression:Tt,updateParenthesizedExpression:Ct,createFunctionExpression:At,updateFunctionExpression:kt,createArrowFunction:Nt,updateArrowFunction:wt,createDeleteExpression:Ft,updateDeleteExpression:(e,t)=>e.expression!==t?_(Ft(t),e):e,createTypeOfExpression:Pt,updateTypeOfExpression:(e,t)=>e.expression!==t?_(Pt(t),e):e,createVoidExpression:It,updateVoidExpression:(e,t)=>e.expression!==t?_(It(t),e):e,createAwaitExpression:Ot,updateAwaitExpression:(e,t)=>e.expression!==t?_(Ot(t),e):e,createPrefixUnaryExpression:Mt,updatePrefixUnaryExpression:(e,t)=>e.operand!==t?_(Mt(e.operator,t),e):e,createPostfixUnaryExpression:Rt,updatePostfixUnaryExpression:(e,t)=>e.operand!==t?_(Rt(t,e.operator),e):e,createBinaryExpression:Lt,updateBinaryExpression:(e,t,r,n)=>e.left!==t||e.operatorToken!==r||e.right!==n?_(Lt(t,r,n),e):e,createConditionalExpression:Ut,updateConditionalExpression:(e,t,r,n,i,a)=>e.condition!==t||e.questionToken!==r||e.whenTrue!==n||e.colonToken!==i||e.whenFalse!==a?_(Ut(t,r,n,i,a),e):e,createTemplateExpression:jt,updateTemplateExpression:(e,t,r)=>e.head!==t||e.templateSpans!==r?_(jt(t,r),e):e,createTemplateHead:(e,t,r)=>Vt(15,e,t,r),createTemplateMiddle:(e,t,r)=>Vt(16,e,t,r),createTemplateTail:(e,t,r)=>Vt(17,e,t,r),createNoSubstitutionTemplateLiteral:(e,t,r)=>Vt(14,e,t,r),createTemplateLiteralLikeNode:zt,createYieldExpression:Ht,updateYieldExpression:(e,t,r)=>e.expression!==r||e.asteriskToken!==t?_(Ht(t,r),e):e,createSpreadElement:Wt,updateSpreadElement:(e,t)=>e.expression!==t?_(Wt(t),e):e,createClassExpression:Kt,updateClassExpression:Jt,createOmittedExpression:()=>lt(227),createExpressionWithTypeArguments:Gt,updateExpressionWithTypeArguments:(e,t,r)=>e.expression!==t||e.typeArguments!==r?_(Gt(t,r),e):e,createAsExpression:$t,updateAsExpression:qt,createNonNullExpression:Xt,updateNonNullExpression:Yt,createNonNullChain:Qt,updateNonNullChain:Zt,createMetaProperty:er,updateMetaProperty:(e,t)=>e.name!==t?_(er(e.keywordToken,t),e):e,createTemplateSpan:tr,updateTemplateSpan:(e,t,r)=>e.expression!==t||e.literal!==r?_(tr(t,r),e):e,createSemicolonClassElement(){var e=P(234);return e.transformFlags|=1024,e},createBlock:rr,updateBlock:(e,t)=>e.statements!==t?_(rr(t,e.multiLine),e):e,createVariableStatement:nr,updateVariableStatement:ir,createEmptyStatement:ar,createExpressionStatement:or,updateExpressionStatement:(e,t)=>e.expression!==t?_(or(t),e):e,createIfStatement:sr,updateIfStatement:(e,t,r,n)=>e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?_(sr(t,r,n),e):e,createDoStatement:cr,updateDoStatement:(e,t,r)=>e.statement!==t||e.expression!==r?_(cr(t,r),e):e,createWhileStatement:lr,updateWhileStatement:(e,t,r)=>e.expression!==t||e.statement!==r?_(lr(t,r),e):e,createForStatement:dr,updateForStatement:(e,t,r,n,i)=>e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==i?_(dr(t,r,n,i),e):e,createForInStatement:ur,updateForInStatement:(e,t,r,n)=>e.initializer!==t||e.expression!==r||e.statement!==n?_(ur(t,r,n),e):e,createForOfStatement:pr,updateForOfStatement:(e,t,r,n,i)=>e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==i?_(pr(t,r,n,i),e):e,createContinueStatement:_r,updateContinueStatement:(e,t)=>e.label!==t?_(_r(t),e):e,createBreakStatement:fr,updateBreakStatement:(e,t)=>e.label!==t?_(fr(t),e):e,createReturnStatement:mr,updateReturnStatement:(e,t)=>e.expression!==t?_(mr(t),e):e,createWithStatement:gr,updateWithStatement:(e,t,r)=>e.expression!==t||e.statement!==r?_(gr(t,r),e):e,createSwitchStatement:hr,updateSwitchStatement:(e,t,r)=>e.expression!==t||e.caseBlock!==r?_(hr(t,r),e):e,createLabeledStatement:yr,updateLabeledStatement:vr,createThrowStatement:br,updateThrowStatement:(e,t)=>e.expression!==t?_(br(t),e):e,createTryStatement:Er,updateTryStatement:(e,t,r,n)=>e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?_(Er(t,r,n),e):e,createDebuggerStatement:()=>P(253),createVariableDeclaration:xr,updateVariableDeclaration:(e,t,r,n,i)=>e.name!==t||e.type!==n||e.exclamationToken!==r||e.initializer!==i?_(xr(t,r,n,i),e):e,createVariableDeclarationList:Dr,updateVariableDeclarationList:(e,t)=>e.declarations!==t?_(Dr(t,e.flags),e):e,createFunctionDeclaration:Sr,updateFunctionDeclaration:Tr,createClassDeclaration:Cr,updateClassDeclaration:Ar,createInterfaceDeclaration:kr,updateInterfaceDeclaration:Nr,createTypeAliasDeclaration:wr,updateTypeAliasDeclaration:Fr,createEnumDeclaration:Pr,updateEnumDeclaration:Ir,createModuleDeclaration:Or,updateModuleDeclaration:Mr,createModuleBlock:Rr,updateModuleBlock:(e,t)=>e.statements!==t?_(Rr(t),e):e,createCaseBlock:Lr,updateCaseBlock:(e,t)=>e.clauses!==t?_(Lr(t),e):e,createNamespaceExportDeclaration:Br,updateNamespaceExportDeclaration(e,t){return e.name!==t?((r=Br(t))!==(n=e)&&(r.illegalDecorators=n.illegalDecorators,r.modifiers=n.modifiers),_(r,n)):e;var r,n},createImportEqualsDeclaration:Ur,updateImportEqualsDeclaration:jr,createImportDeclaration:Vr,updateImportDeclaration:zr,createImportClause:Hr,updateImportClause:(e,t,r,n)=>e.isTypeOnly!==t||e.name!==r||e.namedBindings!==n?_(Hr(t,r,n),e):e,createAssertClause:Wr,updateAssertClause:(e,t,r)=>e.elements!==t||e.multiLine!==r?_(Wr(t,r),e):e,createAssertEntry:Kr,updateAssertEntry:(e,t,r)=>e.name!==t||e.value!==r?_(Kr(t,r),e):e,createImportTypeAssertionContainer:Jr,updateImportTypeAssertionContainer:(e,t,r)=>e.assertClause!==t||e.multiLine!==r?_(Jr(t,r),e):e,createNamespaceImport:Gr,updateNamespaceImport:(e,t)=>e.name!==t?_(Gr(t),e):e,createNamespaceExport:$r,updateNamespaceExport:(e,t)=>e.name!==t?_($r(t),e):e,createNamedImports:qr,updateNamedImports:(e,t)=>e.elements!==t?_(qr(t),e):e,createImportSpecifier:Xr,updateImportSpecifier:(e,t,r,n)=>e.isTypeOnly!==t||e.propertyName!==r||e.name!==n?_(Xr(t,r,n),e):e,createExportAssignment:Yr,updateExportAssignment:Qr,createExportDeclaration:Zr,updateExportDeclaration:en,createNamedExports:tn,updateNamedExports:(e,t)=>e.elements!==t?_(tn(t),e):e,createExportSpecifier:rn,updateExportSpecifier:(e,t,r,n)=>e.isTypeOnly!==t||e.propertyName!==r||e.name!==n?_(rn(t,r,n),e):e,createMissingDeclaration:()=>I(276),createExternalModuleReference:nn,updateExternalModuleReference:(e,t)=>e.expression!==t?_(nn(t),e):e,get createJSDocAllType(){return E(312)},get createJSDocUnknownType(){return E(313)},get createJSDocNonNullableType(){return S(315)},get updateJSDocNonNullableType(){return T(315)},get createJSDocNullableType(){return S(314)},get updateJSDocNullableType(){return T(314)},get createJSDocOptionalType(){return x(316)},get updateJSDocOptionalType(){return D(316)},get createJSDocVariadicType(){return x(318)},get updateJSDocVariadicType(){return D(318)},get createJSDocNamepathType(){return x(319)},get updateJSDocNamepathType(){return D(319)},createJSDocFunctionType:sn,updateJSDocFunctionType:(e,t,r)=>e.parameters!==t||e.type!==r?_(sn(t,r),e):e,createJSDocTypeLiteral:cn,updateJSDocTypeLiteral:(e,t,r)=>e.jsDocPropertyTags!==t||e.isArrayType!==r?_(cn(t,r),e):e,createJSDocTypeExpression:ln,updateJSDocTypeExpression:(e,t)=>e.type!==t?_(ln(t),e):e,createJSDocSignature:dn,updateJSDocSignature:(e,t,r,n)=>e.typeParameters!==t||e.parameters!==r||e.type!==n?_(dn(t,r,n),e):e,createJSDocTemplateTag:_n,updateJSDocTemplateTag:(e,t,r,n,i)=>(void 0===t&&(t=un(e)),e.tagName!==t||e.constraint!==r||e.typeParameters!==n||e.comment!==i?_(_n(t,r,n,i),e):e),createJSDocTypedefTag:fn,updateJSDocTypedefTag:(e,t,r,n,i)=>(void 0===t&&(t=un(e)),e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?_(fn(t,r,n,i),e):e),createJSDocParameterTag:mn,updateJSDocParameterTag:(e,t,r,n,i,a,o)=>(void 0===t&&(t=un(e)),e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?_(mn(t,r,n,i,a,o),e):e),createJSDocPropertyTag:gn,updateJSDocPropertyTag:(e,t,r,n,i,a,o)=>(void 0===t&&(t=un(e)),e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?_(gn(t,r,n,i,a,o),e):e),createJSDocCallbackTag:hn,updateJSDocCallbackTag:(e,t,r,n,i)=>(void 0===t&&(t=un(e)),e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?_(hn(t,r,n,i),e):e),createJSDocAugmentsTag:yn,updateJSDocAugmentsTag:(e,t,r,n)=>(void 0===t&&(t=un(e)),e.tagName!==t||e.class!==r||e.comment!==n?_(yn(t,r,n),e):e),createJSDocImplementsTag:vn,updateJSDocImplementsTag:(e,t,r,n)=>(void 0===t&&(t=un(e)),e.tagName!==t||e.class!==r||e.comment!==n?_(vn(t,r,n),e):e),createJSDocSeeTag:bn,updateJSDocSeeTag:(e,t,r,n)=>e.tagName!==t||e.name!==r||e.comment!==n?_(bn(t,r,n),e):e,createJSDocNameReference:En,updateJSDocNameReference:(e,t)=>e.name!==t?_(En(t),e):e,createJSDocMemberName:xn,updateJSDocMemberName:(e,t,r)=>e.left!==t||e.right!==r?_(xn(t,r),e):e,createJSDocLink:Dn,updateJSDocLink:(e,t,r)=>e.name!==t?_(Dn(t,r),e):e,createJSDocLinkCode:Sn,updateJSDocLinkCode:(e,t,r)=>e.name!==t?_(Sn(t,r),e):e,createJSDocLinkPlain:Tn,updateJSDocLinkPlain:(e,t,r)=>e.name!==t?_(Tn(t,r),e):e,get createJSDocTypeTag(){return k(343)},get updateJSDocTypeTag(){return N(343)},get createJSDocReturnTag(){return k(341)},get updateJSDocReturnTag(){return N(341)},get createJSDocThisTag(){return k(342)},get updateJSDocThisTag(){return N(342)},get createJSDocEnumTag(){return k(339)},get updateJSDocEnumTag(){return N(339)},get createJSDocAuthorTag(){return C(330)},get updateJSDocAuthorTag(){return A(330)},get createJSDocClassTag(){return C(332)},get updateJSDocClassTag(){return A(332)},get createJSDocPublicTag(){return C(333)},get updateJSDocPublicTag(){return A(333)},get createJSDocPrivateTag(){return C(334)},get updateJSDocPrivateTag(){return A(334)},get createJSDocProtectedTag(){return C(335)},get updateJSDocProtectedTag(){return A(335)},get createJSDocReadonlyTag(){return C(336)},get updateJSDocReadonlyTag(){return A(336)},get createJSDocOverrideTag(){return C(337)},get updateJSDocOverrideTag(){return A(337)},get createJSDocDeprecatedTag(){return C(331)},get updateJSDocDeprecatedTag(){return A(331)},createJSDocUnknownTag:kn,updateJSDocUnknownTag:(e,t,r)=>e.tagName!==t||e.comment!==r?_(kn(t,r),e):e,createJSDocText:Nn,updateJSDocText:(e,t)=>e.text!==t?_(Nn(t),e):e,createJSDocComment:wn,updateJSDocComment:(e,t,r)=>e.comment!==t||e.tags!==r?_(wn(t,r),e):e,createJsxElement:Fn,updateJsxElement:(e,t,r,n)=>e.openingElement!==t||e.children!==r||e.closingElement!==n?_(Fn(t,r,n),e):e,createJsxSelfClosingElement:Pn,updateJsxSelfClosingElement:(e,t,r,n)=>e.tagName!==t||e.typeArguments!==r||e.attributes!==n?_(Pn(t,r,n),e):e,createJsxOpeningElement:In,updateJsxOpeningElement:(e,t,r,n)=>e.tagName!==t||e.typeArguments!==r||e.attributes!==n?_(In(t,r,n),e):e,createJsxClosingElement:On,updateJsxClosingElement:(e,t)=>e.tagName!==t?_(On(t),e):e,createJsxFragment:Mn,createJsxText:Rn,updateJsxText:(e,t,r)=>e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?_(Rn(t,r),e):e,createJsxOpeningFragment(){var e=P(283);return e.transformFlags|=2,e},createJsxJsxClosingFragment(){var e=P(284);return e.transformFlags|=2,e},updateJsxFragment:(e,t,r,n)=>e.openingFragment!==t||e.children!==r||e.closingFragment!==n?_(Mn(t,r,n),e):e,createJsxAttribute:Ln,updateJsxAttribute:(e,t,r)=>e.name!==t||e.initializer!==r?_(Ln(t,r),e):e,createJsxAttributes:Bn,updateJsxAttributes:(e,t)=>e.properties!==t?_(Bn(t),e):e,createJsxSpreadAttribute:Un,updateJsxSpreadAttribute:(e,t)=>e.expression!==t?_(Un(t),e):e,createJsxExpression:jn,updateJsxExpression:(e,t)=>e.expression!==t?_(jn(e.dotDotDotToken,t),e):e,createCaseClause:Vn,updateCaseClause:(e,t,r)=>e.expression!==t||e.statements!==r?_(Vn(t,r),e):e,createDefaultClause:zn,updateDefaultClause:(e,t)=>e.statements!==t?_(zn(t),e):e,createHeritageClause:Hn,updateHeritageClause:(e,t)=>e.types!==t?_(Hn(e.token,t),e):e,createCatchClause:Wn,updateCatchClause:(e,t,r)=>e.variableDeclaration!==t||e.block!==r?_(Wn(t,r),e):e,createPropertyAssignment:Kn,updatePropertyAssignment(e,t,r){return e.name!==t||e.initializer!==r?((n=Kn(t,r))!==(i=e)&&(n.illegalDecorators=i.illegalDecorators,n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken),_(n,i)):e;var n,i},createShorthandPropertyAssignment:Jn,updateShorthandPropertyAssignment(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?((n=Jn(t,r))!==(i=e)&&(n.equalsToken=i.equalsToken,n.illegalDecorators=i.illegalDecorators,n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken),_(n,i)):e;var n,i},createSpreadAssignment:Gn,updateSpreadAssignment:(e,t)=>e.expression!==t?_(Gn(t),e):e,createEnumMember:$n,updateEnumMember:(e,t,r)=>e.name!==t||e.initializer!==r?_($n(t,r),e):e,createSourceFile(e,t,r){var n=i.createBaseSourceFileNode(305);return n.statements=F(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|=u(n.statements)|d(n.endOfFileToken),n},updateSourceFile:(t,r,n,a,o,s,c)=>(void 0===n&&(n=t.isDeclarationFile),void 0===a&&(a=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!==a||t.typeReferenceDirectives!==o||t.hasNoDefaultLib!==s||t.libReferenceDirectives!==c?_(((t,r,n,a,o,s,c)=>{var l=t.redirectInfo?Object.create(t.redirectInfo.redirectTarget):i.createBaseSourceFileNode(305);for(var p in t)"emitNode"!==p&&!e.hasProperty(l,p)&&e.hasProperty(t,p)&&(l[p]=t[p]);return l.flags|=t.flags,l.statements=F(r),l.endOfFileToken=t.endOfFileToken,l.isDeclarationFile=n,l.referencedFiles=a,l.typeReferenceDirectives=o,l.hasNoDefaultLib=s,l.libReferenceDirectives=c,l.transformFlags=u(l.statements)|d(l.endOfFileToken),l.impliedNodeFormat=t.impliedNodeFormat,l})(t,r,n,a,o,s,c),t):t),createBundle:qn,updateBundle:(t,r,n)=>(void 0===n&&(n=e.emptyArray),t.sourceFiles!==r||t.prepends!==n?_(qn(r,n),t):t),createUnparsedSource(t,r,n){var i=P(307);return i.prologues=t,i.syntheticReferences=r,i.texts=n,i.fileName="",i.text="",i.referencedFiles=e.emptyArray,i.libReferenceDirectives=e.emptyArray,i.getLineAndCharacterOfPosition=t=>e.getLineAndCharacterOfPosition(i,t),i},createUnparsedPrologue:e=>Xn(300,e),createUnparsedPrepend(e,t){var r=Xn(301,e);return r.texts=t,r},createUnparsedTextLike:(e,t)=>Xn(t?303:302,e),createUnparsedSyntheticReference(e){var t=P(304);return t.data=e.data,t.section=e,t},createInputFiles(){var e=P(308);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression(e,t,r){void 0===t&&(t=!1);var n=P(232);return n.type=e,n.isSpread=t,n.tupleNameSource=r,n},createSyntaxList(e){var t=P(348);return t._children=e,t},createNotEmittedStatement(t){var r=P(349);return r.original=t,e.setTextRange(r,t),r},createPartiallyEmittedExpression:Yn,updatePartiallyEmittedExpression:Qn,createCommaListExpression:ei,updateCommaListExpression:(e,t)=>e.elements!==t?_(ei(t),e):e,createEndOfDeclarationMarker(e){var t=P(353);return t.emitNode={},t.original=e,t},createMergeDeclarationMarker(e){var t=P(352);return t.emitNode={},t.original=e,t},createSyntheticReferenceExpression:ti,updateSyntheticReferenceExpression:(e,t,r)=>e.expression!==t||e.thisArg!==r?_(ti(t,r),e):e,cloneNode:ri,get createComma(){return h(27)},get createAssignment(){return h(63)},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 y(39)},get createPrefixMinus(){return y(40)},get createPrefixIncrement(){return y(45)},get createPrefixDecrement(){return y(46)},get createBitwiseNot(){return y(54)},get createLogicalNot(){return y(53)},get createPostfixIncrement(){return b(45)},get createPostfixDecrement(){return b(46)},createImmediatelyInvokedFunctionExpression:(e,t,r)=>yt(At(void 0,void 0,void 0,void 0,t?[t]:[],void 0,rr(e,!0)),void 0,r?[r]:[]),createImmediatelyInvokedArrowFunction:(e,t,r)=>yt(Nt(void 0,void 0,t?[t]:[],void 0,void 0,rr(e,!0)),void 0,r?[r]:[]),createVoidZero:ni,createExportDefault:e=>Yr(void 0,!1,e),createExternalModuleExport:e=>Zr(void 0,!1,tn([rn(!1,void 0,e)])),createTypeCheck:(e,t)=>"undefined"===t?w.createStrictEquality(e,ni()):w.createStrictEquality(Pt(e),G(t)),createMethodCall:ii,createGlobalMethodCall:ai,createFunctionBindCall:(e,t,r)=>ii(e,"bind",f([t],r,!0)),createFunctionCallCall:(e,t,r)=>ii(e,"call",f([t],r,!0)),createFunctionApplyCall:(e,t,r)=>ii(e,"apply",[t,r]),createArraySliceCall:(e,t)=>ii(e,"slice",void 0===t?[]:[hi(t)]),createArrayConcatCall:(e,t)=>ii(e,"concat",t),createObjectDefinePropertyCall:(e,t,r)=>ai("Object","defineProperty",[e,hi(t),r]),createReflectGetCall:(e,t,r)=>ai("Reflect","get",r?[e,t,r]:[e,t]),createReflectSetCall:(e,t,r,n)=>ai("Reflect","set",n?[e,t,r,n]:[e,t,r]),createPropertyDescriptor(t,r){var n=[];oi(n,"enumerable",hi(t.enumerable)),oi(n,"configurable",hi(t.configurable));var i=oi(n,"writable",hi(t.writable));i=oi(n,"value",t.value)||i;var a=oi(n,"get",t.get);return a=oi(n,"set",t.set)||a,e.Debug.assert(!(i&&a),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),ut(n,!r)},createCallBinding(t,r,n,i){void 0===i&&(i=!1);var a,o,s=e.skipOuterExpressions(t,15);return e.isSuperProperty(s)?(a=re(),o=s):e.isSuperKeyword(s)?(a=re(),o=void 0!==n&&n<2?e.setTextRange(Y("_super"),s):s):4096&e.getEmitFlags(s)?(a=ni(),o=m().parenthesizeLeftSideOfAccess(s,!1)):e.isPropertyAccessExpression(s)?si(s.expression,i)?(a=Q(r),o=pt(e.setTextRange(w.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s):e.isElementAccessExpression(s)?si(s.expression,i)?(a=Q(r),o=mt(e.setTextRange(w.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s):(a=ni(),o=m().parenthesizeLeftSideOfAccess(t,!1)),{target:o,thisArg:a}},createAssignmentTargetWrapper:(e,t)=>pt(Tt(ut([Ae(void 0,"value",[ue(void 0,void 0,e,void 0,void 0,void 0)],rr([or(t)]))])),"value"),inlineExpressions:t=>t.length>10?ei(t):e.reduceLeft(t,w.createComma),getInternalName:(e,t,r)=>ci(e,t,r,49152),getLocalName:(e,t,r)=>ci(e,t,r,16384),getExportName:li,getDeclarationName:(e,t,r)=>ci(e,t,r),getNamespaceMemberName:di,getExternalModuleOrNamespaceExportName:(t,r,n,i)=>t&&e.hasSyntacticModifier(r,1)?di(t,ci(r),n,i):li(r,n,i),restoreOuterExpressions:function t(r,n,i){return void 0===i&&(i=15),r&&e.isOuterExpression(r,i)&&(a=r,!(e.isParenthesizedExpression(a)&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a)))||e.some(e.getSyntheticLeadingComments(a))||e.some(e.getSyntheticTrailingComments(a)))?((e,t)=>{switch(e.kind){case 212:return Ct(e,t);case 211:return St(e,e.type,t);case 229:return qt(e,t,e.type);case 230:return Yt(e,t);case 350:return Qn(e,t)}})(r,t(r.expression,n)):n;var a},restoreEnclosingLabel:function t(r,n,i){if(!n)return r;var a=vr(n,n.label,e.isLabeledStatement(n.statement)?t(r,n.statement):r);return i&&i(n),a},createUseStrictPrologue:ui,copyPrologue:(e,t,r,n)=>_i(e,t,pi(e,t,0,r),n),copyStandardPrologue:pi,copyCustomPrologue:_i,ensureUseStrict:t=>e.findUseStrictPrologue(t)?t:e.setTextRange(F(f([ui()],t,!0)),t),liftToBlock:t=>(e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||rr(t)),mergeLexicalEnvironment(t,r){if(!e.some(r))return t;var n=fi(t,e.isPrologueDirective,0),i=fi(t,e.isHoistedFunction,n),a=fi(t,e.isHoistedVariableStatement,i),o=fi(r,e.isPrologueDirective,0),s=fi(r,e.isHoistedFunction,o),c=fi(r,e.isHoistedVariableStatement,s),l=fi(r,e.isCustomPrologue,c);e.Debug.assert(l===r.length,"Expected declarations to be valid standard or custom prologues");var d=e.isNodeArray(t)?t.slice():t;if(l>c&&d.splice.apply(d,f([a,0],r.slice(c,l),!1)),c>s&&d.splice.apply(d,f([i,0],r.slice(s,c),!1)),s>o&&d.splice.apply(d,f([n,0],r.slice(o,s),!1)),o>0)if(0===n)d.splice.apply(d,f([0,0],r.slice(0,o),!1));else{for(var u=new e.Map,p=0;p<n;p++){var _=t[p];u.set(_.expression.text,!0)}for(p=o-1;p>=0;p--){var m=r[p];u.has(m.expression.text)||d.unshift(m)}}return e.isNodeArray(t)?e.setTextRange(F(d,t.hasTrailingComma),t):t},updateModifiers(t,r){var n,i;return i="number"==typeof r?oe(r):r,e.isTypeParameterDeclaration(t)?de(t,i,t.name,t.constraint,t.default):e.isParameter(t)?pe(t,i,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isConstructorTypeNode(t)?je(t,i,t.typeParameters,t.parameters,t.type):e.isPropertySignature(t)?me(t,i,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?he(t,i,t.name,null!==(n=t.questionToken)&&void 0!==n?n:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?ve(t,i,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?Ee(t,i,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?Se(t,i,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Ce(t,i,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?ke(t,i,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Pe(t,i,t.parameters,t.type):e.isFunctionExpression(t)?kt(t,i,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?wt(t,i,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?Jt(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?ir(t,i,t.declarationList):e.isFunctionDeclaration(t)?Tr(t,i,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?Ar(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?Nr(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?Fr(t,i,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Ir(t,i,t.name,t.members):e.isModuleDeclaration(t)?Mr(t,i,t.name,t.body):e.isImportEqualsDeclaration(t)?jr(t,i,t.isTypeOnly,t.name,t.moduleReference):e.isImportDeclaration(t)?zr(t,i,t.importClause,t.moduleSpecifier,t.assertClause):e.isExportAssignment(t)?Qr(t,i,t.expression):e.isExportDeclaration(t)?en(t,i,t.isTypeOnly,t.exportClause,t.moduleSpecifier,t.assertClause):e.Debug.assertNever(t)}};return w;function F(t,r){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t)){if(void 0===r||t.hasTrailingComma===r)return void 0===t.transformFlags&&p(t),e.Debug.attachNodeArrayDebugInfo(t),t;var n=t.slice();return n.pos=t.pos,n.end=t.end,n.hasTrailingComma=r,n.transformFlags=t.transformFlags,e.Debug.attachNodeArrayDebugInfo(n),n}var i=t.length,a=i>=1&&i<=4?t.slice():t;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!r,p(a),e.Debug.attachNodeArrayDebugInfo(a),a}function P(e){return i.createBaseNode(e)}function I(e){var t=P(e);return t.symbol=void 0,t.localSymbol=void 0,t.locals=void 0,t.nextContainer=void 0,t}function O(t,r,n){var i=I(t);if(n=gi(n),i.name=n,e.canHaveModifiers(i)&&(i.modifiers=mi(r),i.transformFlags|=u(i.modifiers)),n)switch(i.kind){case 169:case 172:case 173:case 167:case 296:if(e.isIdentifier(n)){i.transformFlags|=l(n);break}default:i.transformFlags|=d(n)}return i}function M(e,t,r,n){var i=O(e,t,r);return i.typeParameters=mi(n),i.transformFlags|=u(i.typeParameters),n&&(i.transformFlags|=1),i}function R(e,t,r,n,i,a){var o=M(e,t,r,n);return o.parameters=F(i),o.type=a,o.transformFlags|=u(o.parameters)|d(o.type),a&&(o.transformFlags|=1),o.typeArguments=void 0,o}function L(e,t){return e!==t&&(e.typeArguments=t.typeArguments),_(e,t)}function B(e,t,r,n,i,a,o){var s=R(e,t,r,n,i,a);return s.body=o,s.transformFlags|=-67108865&d(s.body),o||(s.transformFlags|=1),s}function U(e,t,r,n,i){var a=M(e,t,r,n);return a.heritageClauses=mi(i),a.transformFlags|=u(a.heritageClauses),a}function j(e,t,r,n,i,a){var o=U(e,t,r,n,i);return o.members=F(a),o.transformFlags|=u(o.members),o}function V(e,t,r,n){var i=O(e,t,r);return i.initializer=n,i.transformFlags|=d(i.initializer),i}function z(e,t,r,n,i){var a=V(e,t,r,i);return a.type=n,a.transformFlags|=d(n),n&&(a.transformFlags|=1),a}function H(e,t){var r=ee(e);return r.text=t,r}function W(e,t){void 0===t&&(t=0);var r=H(8,"number"==typeof e?e+"":e);return r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function K(t){var r=H(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return r.transformFlags|=4,r}function J(e,t){var r=H(10,e);return r.singleQuote=t,r}function G(e,t,r){var n=J(e,t);return n.hasExtendedUnicodeEscape=r,r&&(n.transformFlags|=1024),n}function $(e){return H(13,e)}function q(t,r){void 0===r&&t&&(r=e.stringToToken(t)),79===r&&(r=void 0);var n=i.createBaseIdentifierNode(79);return n.originalKeywordKind=r,n.escapedText=e.escapeLeadingUnderscores(t),n}function X(e,t){var r=q(e,void 0);return r.autoGenerateFlags=t,r.autoGenerateId=n,n++,r}function Y(e,t,r){var n=q(e,r);return t&&(n.typeArguments=F(t)),132===n.originalKeywordKind&&(n.transformFlags|=67108864),n}function Q(e,t){var r=1;t&&(r|=8);var n=X("",r);return e&&e(n),n}function Z(t,r){void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags");var n=X(t&&e.isIdentifier(t)?e.idText(t):"",4|r);return n.original=t,n}function ee(e){return i.createBaseTokenNode(e)}function te(t){e.Debug.assert(t>=0&&t<=160,"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(79!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var r=ee(t),n=0;switch(t){case 131:n=384;break;case 123:case 121:case 122:case 145:case 126:case 135:case 85:case 130:case 147:case 158:case 143:case 148:case 101:case 144:case 159:case 150:case 133:case 151:case 114:case 155:case 153:n=1;break;case 106:n=134218752;break;case 124:n=1024;break;case 108:n=16384}return n&&(r.transformFlags|=n),r}function re(){return te(108)}function ne(){return te(110)}function ie(){return te(95)}function ae(e){return te(e)}function oe(e){var t=[];return 1&e&&t.push(ae(93)),2&e&&t.push(ae(135)),512&e&&t.push(ae(88)),2048&e&&t.push(ae(85)),4&e&&t.push(ae(123)),8&e&&t.push(ae(121)),16&e&&t.push(ae(122)),128&e&&t.push(ae(126)),32&e&&t.push(ae(124)),16384&e&&t.push(ae(159)),64&e&&t.push(ae(145)),256&e&&t.push(ae(131)),32768&e&&t.push(ae(101)),65536&e&&t.push(ae(144)),t.length?t:void 0}function se(e,t){var r=P(161);return r.left=e,r.right=gi(t),r.transformFlags|=d(r.left)|l(r.right),r}function ce(e){var t=P(162);return t.expression=m().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|d(t.expression),t}function le(e,t,r,n){var i=O(163,e,t);return i.constraint=r,i.default=n,i.transformFlags=1,i}function de(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.constraint!==n||e.default!==i?_(le(t,r,n,i),e):e}function ue(t,r,n,i,a,o){var s=z(164,t,n,a,o&&m().parenthesizeExpressionForDisallowedComma(o));return s.dotDotDotToken=r,s.questionToken=i,e.isThisIdentifier(s.name)?s.transformFlags=1:(s.transformFlags|=d(s.dotDotDotToken)|d(s.questionToken),i&&(s.transformFlags|=1),16476&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=8192),(o||r)&&(s.transformFlags|=1024)),s}function pe(e,t,r,n,i,a,o){return e.modifiers!==t||e.dotDotDotToken!==r||e.name!==n||e.questionToken!==i||e.type!==a||e.initializer!==o?_(ue(t,r,n,i,a,o),e):e}function _e(e){var t=P(165);return t.expression=m().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|d(t.expression),t}function fe(e,t,r,n){var i=O(166,e,t);return i.type=n,i.questionToken=r,i.transformFlags=1,i.initializer=void 0,i}function me(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?((a=fe(t,r,n,i))!==(o=e)&&(a.initializer=o.initializer),_(a,o)):e;var a,o}function ge(t,r,n,i,a){var o=z(167,t,r,i,a);return o.questionToken=n&&e.isQuestionToken(n)?n:void 0,o.exclamationToken=n&&e.isExclamationToken(n)?n:void 0,o.transformFlags|=d(o.questionToken)|d(o.exclamationToken)|16777216,(e.isComputedPropertyName(o.name)||e.hasStaticModifier(o)&&o.initializer)&&(o.transformFlags|=8192),(n||2&e.modifiersToFlags(o.modifiers))&&(o.transformFlags|=1),o}function he(t,r,n,i,a,o){return t.modifiers!==r||t.name!==n||t.questionToken!==(void 0!==i&&e.isQuestionToken(i)?i:void 0)||t.exclamationToken!==(void 0!==i&&e.isExclamationToken(i)?i:void 0)||t.type!==a||t.initializer!==o?_(ge(r,n,i,a,o),t):t}function ye(e,t,r,n,i,a){var o=R(168,e,t,n,i,a);return o.questionToken=r,o.transformFlags=1,o}function ve(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?L(ye(t,r,n,i,a,o),e):e}function be(t,r,n,i,a,o,s,c){var l=B(169,t,n,a,o,s,c);return l.asteriskToken=r,l.questionToken=i,l.transformFlags|=d(l.asteriskToken)|d(l.questionToken)|1024,i&&(l.transformFlags|=1),256&e.modifiersToFlags(l.modifiers)?l.transformFlags|=r?128:256:r&&(l.transformFlags|=2048),l.exclamationToken=void 0,l}function Ee(e,t,r,n,i,a,o,s,c){return e.modifiers!==t||e.asteriskToken!==r||e.name!==n||e.questionToken!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?((l=be(t,r,n,i,a,o,s,c))!==(d=e)&&(l.exclamationToken=d.exclamationToken),_(l,d)):e;var l,d}function xe(e){var t=M(170,void 0,void 0,void 0);return t.body=e,t.transformFlags=16777216|d(e),t.illegalDecorators=void 0,t.modifiers=void 0,t}function De(e,t,r){var n=B(171,e,void 0,void 0,t,void 0,r);return n.transformFlags|=1024,n.illegalDecorators=void 0,n.typeParameters=void 0,n.type=void 0,n}function Se(e,t,r,n){return e.modifiers!==t||e.parameters!==r||e.body!==n?((i=De(t,r,n))!==(a=e)&&(i.illegalDecorators=a.illegalDecorators,i.typeParameters=a.typeParameters,i.type=a.type),L(i,a)):e;var i,a}function Te(e,t,r,n,i){var a=B(172,e,t,void 0,r,n,i);return a.typeParameters=void 0,a}function Ce(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.parameters!==n||e.type!==i||e.body!==a?((o=Te(t,r,n,i,a))!==(s=e)&&(o.typeParameters=s.typeParameters),L(o,s)):e;var o,s}function Ae(e,t,r,n){var i=B(173,e,t,void 0,r,void 0,n);return i.typeParameters=void 0,i.type=void 0,i}function ke(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.parameters!==n||e.body!==i?((a=Ae(t,r,n,i))!==(o=e)&&(a.typeParameters=o.typeParameters,a.type=o.type),L(a,o)):e;var a,o}function Ne(e,t,r){var n=R(174,void 0,void 0,e,t,r);return n.transformFlags=1,n}function we(e,t,r){var n=R(175,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Fe(e,t,r){var n=R(176,e,void 0,void 0,t,r);return n.transformFlags=1,n}function Pe(e,t,r,n){return e.parameters!==r||e.type!==n||e.modifiers!==t?L(Fe(t,r,n),e):e}function Ie(e,t){var r=P(199);return r.type=e,r.literal=t,r.transformFlags=1,r}function Oe(e,t,r){var n=P(177);return n.assertsModifier=e,n.parameterName=gi(t),n.type=r,n.transformFlags=1,n}function Me(e,t){var r=P(178);return r.typeName=gi(e),r.typeArguments=t&&m().parenthesizeTypeArguments(F(t)),r.transformFlags=1,r}function Re(e,t,r){var n=R(179,void 0,void 0,e,t,r);return n.transformFlags=1,n.modifiers=void 0,n}function Le(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return 4===t.length?Be.apply(void 0,t):3===t.length?Ue.apply(void 0,t):e.Debug.fail("Incorrect number of arguments specified.")}function Be(e,t,r,n){var i=R(180,e,void 0,t,r,n);return i.transformFlags=1,i}function Ue(e,t,r){return Be(void 0,e,t,r)}function je(e,t,r,n,i){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i?L(Le(t,r,n,i),e):e}function Ve(e,t,r,n){return je(e,e.modifiers,t,r,n)}function ze(e,t){var r=P(181);return r.exprName=e,r.typeArguments=t&&m().parenthesizeTypeArguments(t),r.transformFlags=1,r}function He(e){var t=P(182);return t.members=F(e),t.transformFlags=1,t}function We(e){var t=P(183);return t.elementType=m().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Ke(e){var t=P(184);return t.elements=F(m().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Je(e,t,r,n){var i=P(197);return i.dotDotDotToken=e,i.name=t,i.questionToken=r,i.type=n,i.transformFlags=1,i}function Ge(e){var t=P(185);return t.type=m().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function $e(e){var t=P(186);return t.type=e,t.transformFlags=1,t}function qe(e,t,r){var n=P(e);return n.types=w.createNodeArray(r(t)),n.transformFlags=1,n}function Xe(e,t,r){return e.types!==t?_(qe(e.kind,t,r),e):e}function Ye(e,t,r,n){var i=P(189);return i.checkType=m().parenthesizeCheckTypeOfConditionalType(e),i.extendsType=m().parenthesizeExtendsTypeOfConditionalType(t),i.trueType=r,i.falseType=n,i.transformFlags=1,i}function Qe(e){var t=P(190);return t.typeParameter=e,t.transformFlags=1,t}function Ze(e,t){var r=P(198);return r.head=e,r.templateSpans=F(t),r.transformFlags=1,r}function et(e,t,r,n,i){void 0===i&&(i=!1);var a=P(200);return a.argument=e,a.assertions=t,a.qualifier=r,a.typeArguments=n&&m().parenthesizeTypeArguments(n),a.isTypeOf=i,a.transformFlags=1,a}function tt(e){var t=P(191);return t.type=e,t.transformFlags=1,t}function rt(e,t){var r=P(193);return r.operator=e,r.type=145===e?m().parenthesizeOperandOfReadonlyTypeOperator(t):m().parenthesizeOperandOfTypeOperator(t),r.transformFlags=1,r}function nt(e,t){var r=P(194);return r.objectType=m().parenthesizeNonArrayTypeOfPostfixType(e),r.indexType=t,r.transformFlags=1,r}function it(e,t,r,n,i,a){var o=P(195);return o.readonlyToken=e,o.typeParameter=t,o.nameType=r,o.questionToken=n,o.type=i,o.members=a&&F(a),o.transformFlags=1,o}function at(e){var t=P(196);return t.literal=e,t.transformFlags=1,t}function ot(e){var t=P(201);return t.elements=F(e),t.transformFlags|=525312|u(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function st(e){var t=P(202);return t.elements=F(e),t.transformFlags|=525312|u(t.elements),t}function ct(t,r,n,i){var a=V(203,void 0,n,i&&m().parenthesizeExpressionForDisallowedComma(i));return a.propertyName=gi(r),a.dotDotDotToken=t,a.transformFlags|=1024|d(a.dotDotDotToken),a.propertyName&&(a.transformFlags|=e.isIdentifier(a.propertyName)?l(a.propertyName):d(a.propertyName)),t&&(a.transformFlags|=32768),a}function lt(e){return P(e)}function dt(t,r){var n=lt(204),i=t&&e.lastOrUndefined(t),a=F(t,!(!i||!e.isOmittedExpression(i))||void 0);return n.elements=m().parenthesizeExpressionsOfCommaDelimitedList(a),n.multiLine=r,n.transformFlags|=u(n.elements),n}function ut(e,t){var r=lt(205);return r.properties=F(e),r.multiLine=t,r.transformFlags|=u(r.properties),r}function pt(t,r){var n=lt(206);return n.expression=m().parenthesizeLeftSideOfAccess(t,!1),n.name=gi(r),n.transformFlags=d(n.expression)|(e.isIdentifier(n.name)?l(n.name):536870912|d(n.name)),e.isSuperKeyword(t)&&(n.transformFlags|=384),n}function _t(t,r,n){var i=lt(206);return i.flags|=32,i.expression=m().parenthesizeLeftSideOfAccess(t,!0),i.questionDotToken=r,i.name=gi(n),i.transformFlags|=32|d(i.expression)|d(i.questionDotToken)|(e.isIdentifier(i.name)?l(i.name):536870912|d(i.name)),i}function ft(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?_(_t(r,n,i),t):t}function mt(t,r){var n=lt(207);return n.expression=m().parenthesizeLeftSideOfAccess(t,!1),n.argumentExpression=hi(r),n.transformFlags|=d(n.expression)|d(n.argumentExpression),e.isSuperKeyword(t)&&(n.transformFlags|=384),n}function gt(e,t,r){var n=lt(207);return n.flags|=32,n.expression=m().parenthesizeLeftSideOfAccess(e,!0),n.questionDotToken=t,n.argumentExpression=hi(r),n.transformFlags|=d(n.expression)|d(n.questionDotToken)|d(n.argumentExpression)|32,n}function ht(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?_(gt(r,n,i),t):t}function yt(t,r,n){var i=lt(208);return i.expression=m().parenthesizeLeftSideOfAccess(t,!1),i.typeArguments=mi(r),i.arguments=m().parenthesizeExpressionsOfCommaDelimitedList(F(n)),i.transformFlags|=d(i.expression)|u(i.typeArguments)|u(i.arguments),i.typeArguments&&(i.transformFlags|=1),e.isImportKeyword(i.expression)?i.transformFlags|=8388608:e.isSuperProperty(i.expression)&&(i.transformFlags|=16384),i}function vt(t,r,n,i){var a=lt(208);return a.flags|=32,a.expression=m().parenthesizeLeftSideOfAccess(t,!0),a.questionDotToken=r,a.typeArguments=mi(n),a.arguments=m().parenthesizeExpressionsOfCommaDelimitedList(F(i)),a.transformFlags|=d(a.expression)|d(a.questionDotToken)|u(a.typeArguments)|u(a.arguments)|32,a.typeArguments&&(a.transformFlags|=1),e.isSuperProperty(a.expression)&&(a.transformFlags|=16384),a}function bt(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?_(vt(r,n,i,a),t):t}function Et(e,t,r){var n=lt(209);return n.expression=m().parenthesizeExpressionOfNew(e),n.typeArguments=mi(t),n.arguments=r?m().parenthesizeExpressionsOfCommaDelimitedList(r):void 0,n.transformFlags|=d(n.expression)|u(n.typeArguments)|u(n.arguments)|32,n.typeArguments&&(n.transformFlags|=1),n}function xt(t,r,n){var i=lt(210);return i.tag=m().parenthesizeLeftSideOfAccess(t,!1),i.typeArguments=mi(r),i.template=n,i.transformFlags|=d(i.tag)|u(i.typeArguments)|d(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),e.hasInvalidEscape(i.template)&&(i.transformFlags|=128),i}function Dt(e,t){var r=lt(211);return r.expression=m().parenthesizeOperandOfPrefixUnary(t),r.type=e,r.transformFlags|=d(r.expression)|d(r.type)|1,r}function St(e,t,r){return e.type!==t||e.expression!==r?_(Dt(t,r),e):e}function Tt(e){var t=lt(212);return t.expression=e,t.transformFlags=d(t.expression),t}function Ct(e,t){return e.expression!==t?_(Tt(t),e):e}function At(t,r,n,i,a,o,s){var c=B(213,t,n,i,a,o,s);return c.asteriskToken=r,c.transformFlags|=d(c.asteriskToken),c.typeParameters&&(c.transformFlags|=1),256&e.modifiersToFlags(c.modifiers)?c.asteriskToken?c.transformFlags|=128:c.transformFlags|=256:c.asteriskToken&&(c.transformFlags|=2048),c}function kt(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?L(At(t,r,n,i,a,o,s),e):e}function Nt(t,r,n,i,a,o){var s=B(214,t,void 0,r,n,i,m().parenthesizeConciseBodyOfArrowFunction(o));return s.equalsGreaterThanToken=null!=a?a:te(38),s.transformFlags|=1024|d(s.equalsGreaterThanToken),256&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=16640),s}function wt(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?L(Nt(t,r,n,i,a,o),e):e}function Ft(e){var t=lt(215);return t.expression=m().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=d(t.expression),t}function Pt(e){var t=lt(216);return t.expression=m().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=d(t.expression),t}function It(e){var t=lt(217);return t.expression=m().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=d(t.expression),t}function Ot(e){var t=lt(218);return t.expression=m().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|d(t.expression),t}function Mt(t,r){var n=lt(219);return n.operator=t,n.operand=m().parenthesizeOperandOfPrefixUnary(r),n.transformFlags|=d(n.operand),45!==t&&46!==t||!e.isIdentifier(n.operand)||e.isGeneratedIdentifier(n.operand)||e.isLocalName(n.operand)||(n.transformFlags|=268435456),n}function Rt(t,r){var n=lt(220);return n.operator=r,n.operand=m().parenthesizeOperandOfPostfixUnary(t),n.transformFlags|=d(n.operand),!e.isIdentifier(n.operand)||e.isGeneratedIdentifier(n.operand)||e.isLocalName(n.operand)||(n.transformFlags|=268435456),n}function Lt(t,r,n){var i,a=lt(221),o="number"==typeof(i=r)?te(i):i,s=o.kind;return a.left=m().parenthesizeLeftSideOfBinary(s,t),a.operatorToken=o,a.right=m().parenthesizeRightSideOfBinary(s,a.left,n),a.transformFlags|=d(a.left)|d(a.operatorToken)|d(a.right),60===s?a.transformFlags|=32:63===s?e.isObjectLiteralExpression(a.left)?a.transformFlags|=5248|Bt(a.left):e.isArrayLiteralExpression(a.left)&&(a.transformFlags|=5120|Bt(a.left)):42===s||67===s?a.transformFlags|=512:e.isLogicalOrCoalescingAssignmentOperator(s)&&(a.transformFlags|=16),101===s&&e.isPrivateIdentifier(a.left)&&(a.transformFlags|=536870912),a}function Bt(t){if(65536&t.transformFlags)return 65536;if(128&t.transformFlags)for(var r=0,n=e.getElementsOfBindingOrAssignmentPattern(t);r<n.length;r++){var i=n[r],a=e.getTargetOfBindingOrAssignmentElement(i);if(a&&e.isAssignmentPattern(a)){if(65536&a.transformFlags)return 65536;if(128&a.transformFlags){var o=Bt(a);if(o)return o}}}return 0}function Ut(e,t,r,n,i){var a=lt(222);return a.condition=m().parenthesizeConditionOfConditionalExpression(e),a.questionToken=null!=t?t:te(57),a.whenTrue=m().parenthesizeBranchOfConditionalExpression(r),a.colonToken=null!=n?n:te(58),a.whenFalse=m().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=d(a.condition)|d(a.questionToken)|d(a.whenTrue)|d(a.colonToken)|d(a.whenFalse),a}function jt(e,t){var r=lt(223);return r.head=e,r.templateSpans=F(t),r.transformFlags|=d(r.head)|u(r.templateSpans)|1024,r}function Vt(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=((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(19===a&&(a=t.reScanTemplateToken(!1)),t.isUnterminated())return t.setText(void 0),c;switch(a){case 14:case 15:case 16:case 17:i=t.getTokenValue()}return void 0===i||1!==t.scan()?(t.setText(void 0),c):(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 zt(r,n,i,a)}function zt(e,t,r,n){var i=ee(e);return i.text=t,i.rawText=r,i.templateFlags=2048&n,i.transformFlags|=1024,i.templateFlags&&(i.transformFlags|=128),i}function Ht(t,r){e.Debug.assert(!t||!!r,"A `YieldExpression` with an asteriskToken must have an expression.");var n=lt(224);return n.expression=r&&m().parenthesizeExpressionForDisallowedComma(r),n.asteriskToken=t,n.transformFlags|=d(n.expression)|d(n.asteriskToken)|1049728,n}function Wt(e){var t=lt(225);return t.expression=m().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|d(t.expression),t}function Kt(e,t,r,n,i){var a=j(226,e,t,r,n,i);return a.transformFlags|=1024,a}function Jt(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==n||e.heritageClauses!==i||e.members!==a?_(Kt(t,r,n,i,a),e):e}function Gt(e,t){var r=P(228);return r.expression=m().parenthesizeLeftSideOfAccess(e,!1),r.typeArguments=t&&m().parenthesizeTypeArguments(t),r.transformFlags|=d(r.expression)|u(r.typeArguments)|1024,r}function $t(e,t){var r=lt(229);return r.expression=e,r.type=t,r.transformFlags|=d(r.expression)|d(r.type)|1,r}function qt(e,t,r){return e.expression!==t||e.type!==r?_($t(t,r),e):e}function Xt(e){var t=lt(230);return t.expression=m().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|d(t.expression),t}function Yt(t,r){return e.isNonNullChain(t)?Zt(t,r):t.expression!==r?_(Xt(r),t):t}function Qt(e){var t=lt(230);return t.flags|=32,t.expression=m().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|d(t.expression),t}function Zt(t,r){return e.Debug.assert(!!(32&t.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),t.expression!==r?_(Qt(r),t):t}function er(t,r){var n=lt(231);switch(n.keywordToken=t,n.name=r,n.transformFlags|=d(n.name),t){case 103:n.transformFlags|=1024;break;case 100:n.transformFlags|=4;break;default:return e.Debug.assertNever(t)}return n}function tr(e,t){var r=P(233);return r.expression=e,r.literal=t,r.transformFlags|=d(r.expression)|d(r.literal)|1024,r}function rr(e,t){var r=P(235);return r.statements=F(e),r.multiLine=t,r.transformFlags|=u(r.statements),r}function nr(t,r){var n=I(237);return n.modifiers=mi(t),n.declarationList=e.isArray(r)?Dr(r):r,n.transformFlags|=u(n.modifiers)|d(n.declarationList),2&e.modifiersToFlags(n.modifiers)&&(n.transformFlags=1),n}function ir(e,t,r){return e.modifiers!==t||e.declarationList!==r?_(nr(t,r),e):e}function ar(){return P(236)}function or(e){var t=P(238);return t.expression=m().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=d(t.expression),t}function sr(e,t,r){var n=P(239);return n.expression=e,n.thenStatement=yi(t),n.elseStatement=yi(r),n.transformFlags|=d(n.expression)|d(n.thenStatement)|d(n.elseStatement),n}function cr(e,t){var r=P(240);return r.statement=yi(e),r.expression=t,r.transformFlags|=d(r.statement)|d(r.expression),r}function lr(e,t){var r=P(241);return r.expression=e,r.statement=yi(t),r.transformFlags|=d(r.expression)|d(r.statement),r}function dr(e,t,r,n){var i=P(242);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=yi(n),i.transformFlags|=d(i.initializer)|d(i.condition)|d(i.incrementor)|d(i.statement),i}function ur(e,t,r){var n=P(243);return n.initializer=e,n.expression=t,n.statement=yi(r),n.transformFlags|=d(n.initializer)|d(n.expression)|d(n.statement),n}function pr(e,t,r,n){var i=P(244);return i.awaitModifier=e,i.initializer=t,i.expression=m().parenthesizeExpressionForDisallowedComma(r),i.statement=yi(n),i.transformFlags|=d(i.awaitModifier)|d(i.initializer)|d(i.expression)|d(i.statement)|1024,e&&(i.transformFlags|=128),i}function _r(e){var t=P(245);return t.label=gi(e),t.transformFlags|=4194304|d(t.label),t}function fr(e){var t=P(246);return t.label=gi(e),t.transformFlags|=4194304|d(t.label),t}function mr(e){var t=P(247);return t.expression=e,t.transformFlags|=4194432|d(t.expression),t}function gr(e,t){var r=P(248);return r.expression=e,r.statement=yi(t),r.transformFlags|=d(r.expression)|d(r.statement),r}function hr(e,t){var r=P(249);return r.expression=m().parenthesizeExpressionForDisallowedComma(e),r.caseBlock=t,r.transformFlags|=d(r.expression)|d(r.caseBlock),r}function yr(e,t){var r=P(250);return r.label=gi(e),r.statement=yi(t),r.transformFlags|=d(r.label)|d(r.statement),r}function vr(e,t,r){return e.label!==t||e.statement!==r?_(yr(t,r),e):e}function br(e){var t=P(251);return t.expression=e,t.transformFlags|=d(t.expression),t}function Er(e,t,r){var n=P(252);return n.tryBlock=e,n.catchClause=t,n.finallyBlock=r,n.transformFlags|=d(n.tryBlock)|d(n.catchClause)|d(n.finallyBlock),n}function xr(e,t,r,n){var i=z(254,void 0,e,r,n&&m().parenthesizeExpressionForDisallowedComma(n));return i.exclamationToken=t,i.transformFlags|=d(i.exclamationToken),t&&(i.transformFlags|=1),i}function Dr(e,t){void 0===t&&(t=0);var r=P(255);return r.flags|=3&t,r.declarations=F(e),r.transformFlags|=4194304|u(r.declarations),3&t&&(r.transformFlags|=263168),r}function Sr(t,r,n,i,a,o,s){var c=B(256,t,n,i,a,o,s);return c.asteriskToken=r,!c.body||2&e.modifiersToFlags(c.modifiers)?c.transformFlags=1:(c.transformFlags|=4194304|d(c.asteriskToken),256&e.modifiersToFlags(c.modifiers)?c.asteriskToken?c.transformFlags|=128:c.transformFlags|=256:c.asteriskToken&&(c.transformFlags|=2048)),c.illegalDecorators=void 0,c}function Tr(e,t,r,n,i,a,o,s){return e.modifiers!==t||e.asteriskToken!==r||e.name!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?((c=Sr(t,r,n,i,a,o,s))!==(l=e)&&(c.illegalDecorators=l.illegalDecorators),L(c,l)):e;var c,l}function Cr(t,r,n,i,a){var o=j(257,t,r,n,i,a);return 2&e.modifiersToFlags(o.modifiers)?o.transformFlags=1:(o.transformFlags|=1024,8192&o.transformFlags&&(o.transformFlags|=1)),o}function Ar(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==n||e.heritageClauses!==i||e.members!==a?_(Cr(t,r,n,i,a),e):e}function kr(e,t,r,n,i){var a=U(258,e,t,r,n);return a.members=F(i),a.transformFlags=1,a.illegalDecorators=void 0,a}function Nr(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==n||e.heritageClauses!==i||e.members!==a?((o=kr(t,r,n,i,a))!==(s=e)&&(o.illegalDecorators=s.illegalDecorators),_(o,s)):e;var o,s}function wr(e,t,r,n){var i=M(259,e,t,r);return i.type=n,i.transformFlags=1,i.illegalDecorators=void 0,i}function Fr(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.typeParameters!==n||e.type!==i?((a=wr(t,r,n,i))!==(o=e)&&(a.illegalDecorators=o.illegalDecorators),_(a,o)):e;var a,o}function Pr(e,t,r){var n=O(260,e,t);return n.members=F(r),n.transformFlags|=1|u(n.members),n.transformFlags&=-67108865,n.illegalDecorators=void 0,n}function Ir(e,t,r,n){return e.modifiers!==t||e.name!==r||e.members!==n?((i=Pr(t,r,n))!==(a=e)&&(i.illegalDecorators=a.illegalDecorators),_(i,a)):e;var i,a}function Or(t,r,n,i){void 0===i&&(i=0);var a=I(261);return a.modifiers=mi(t),a.flags|=1044&i,a.name=r,a.body=n,2&e.modifiersToFlags(a.modifiers)?a.transformFlags=1:a.transformFlags|=u(a.modifiers)|d(a.name)|d(a.body)|1,a.transformFlags&=-67108865,a.illegalDecorators=void 0,a}function Mr(e,t,r,n){return e.modifiers!==t||e.name!==r||e.body!==n?((i=Or(t,r,n,e.flags))!==(a=e)&&(i.illegalDecorators=a.illegalDecorators),_(i,a)):e;var i,a}function Rr(e){var t=P(262);return t.statements=F(e),t.transformFlags|=u(t.statements),t}function Lr(e){var t=P(263);return t.clauses=F(e),t.transformFlags|=u(t.clauses),t}function Br(e){var t=O(264,void 0,e);return t.transformFlags=1,t.illegalDecorators=void 0,t.modifiers=void 0,t}function Ur(t,r,n,i){var a=O(265,t,n);return a.isTypeOnly=r,a.moduleReference=i,a.transformFlags|=d(a.moduleReference),e.isExternalModuleReference(a.moduleReference)||(a.transformFlags|=1),a.transformFlags&=-67108865,a.illegalDecorators=void 0,a}function jr(e,t,r,n,i){return e.modifiers!==t||e.isTypeOnly!==r||e.name!==n||e.moduleReference!==i?((a=Ur(t,r,n,i))!==(o=e)&&(a.illegalDecorators=o.illegalDecorators),_(a,o)):e;var a,o}function Vr(e,t,r,n){var i=I(266);return i.modifiers=mi(e),i.importClause=t,i.moduleSpecifier=r,i.assertClause=n,i.transformFlags|=d(i.importClause)|d(i.moduleSpecifier),i.transformFlags&=-67108865,i.illegalDecorators=void 0,i}function zr(e,t,r,n,i){return e.modifiers!==t||e.importClause!==r||e.moduleSpecifier!==n||e.assertClause!==i?((a=Vr(t,r,n,i))!==(o=e)&&(a.illegalDecorators=o.illegalDecorators),_(a,o)):e;var a,o}function Hr(e,t,r){var n=P(267);return n.isTypeOnly=e,n.name=t,n.namedBindings=r,n.transformFlags|=d(n.name)|d(n.namedBindings),e&&(n.transformFlags|=1),n.transformFlags&=-67108865,n}function Wr(e,t){var r=P(293);return r.elements=F(e),r.multiLine=t,r.transformFlags|=4,r}function Kr(e,t){var r=P(294);return r.name=e,r.value=t,r.transformFlags|=4,r}function Jr(e,t){var r=P(295);return r.assertClause=e,r.multiLine=t,r}function Gr(e){var t=P(268);return t.name=e,t.transformFlags|=d(t.name),t.transformFlags&=-67108865,t}function $r(e){var t=P(274);return t.name=e,t.transformFlags|=4|d(t.name),t.transformFlags&=-67108865,t}function qr(e){var t=P(269);return t.elements=F(e),t.transformFlags|=u(t.elements),t.transformFlags&=-67108865,t}function Xr(e,t,r){var n=P(270);return n.isTypeOnly=e,n.propertyName=t,n.name=r,n.transformFlags|=d(n.propertyName)|d(n.name),n.transformFlags&=-67108865,n}function Yr(e,t,r){var n=I(271);return n.modifiers=mi(e),n.isExportEquals=t,n.expression=t?m().parenthesizeRightSideOfBinary(63,void 0,r):m().parenthesizeExpressionOfExportDefault(r),n.transformFlags|=u(n.modifiers)|d(n.expression),n.transformFlags&=-67108865,n.illegalDecorators=void 0,n}function Qr(e,t,r){return e.modifiers!==t||e.expression!==r?((n=Yr(t,e.isExportEquals,r))!==(i=e)&&(n.illegalDecorators=i.illegalDecorators),_(n,i)):e;var n,i}function Zr(e,t,r,n,i){var a=I(272);return a.modifiers=mi(e),a.isTypeOnly=t,a.exportClause=r,a.moduleSpecifier=n,a.assertClause=i,a.transformFlags|=u(a.modifiers)|d(a.exportClause)|d(a.moduleSpecifier),a.transformFlags&=-67108865,a.illegalDecorators=void 0,a}function en(e,t,r,n,i,a){return e.modifiers!==t||e.isTypeOnly!==r||e.exportClause!==n||e.moduleSpecifier!==i||e.assertClause!==a?((o=Zr(t,r,n,i,a))!==(s=e)&&(o.illegalDecorators=s.illegalDecorators),_(o,s)):e;var o,s}function tn(e){var t=P(273);return t.elements=F(e),t.transformFlags|=u(t.elements),t.transformFlags&=-67108865,t}function rn(e,t,r){var n=P(275);return n.isTypeOnly=e,n.propertyName=gi(t),n.name=gi(r),n.transformFlags|=d(n.propertyName)|d(n.name),n.transformFlags&=-67108865,n}function nn(e){var t=P(277);return t.expression=e,t.transformFlags|=d(t.expression),t.transformFlags&=-67108865,t}function an(e,t,r){void 0===r&&(r=!1);var n=on(e,r?t&&m().parenthesizeNonArrayTypeOfPostfixType(t):t);return n.postfix=r,n}function on(e,t){var r=P(e);return r.type=t,r}function sn(e,t){return R(317,void 0,void 0,void 0,e,t)}function cn(e,t){void 0===t&&(t=!1);var r=P(322);return r.jsDocPropertyTags=mi(e),r.isArrayType=t,r}function ln(e){var t=P(309);return t.type=e,t}function dn(e,t,r){var n=P(323);return n.typeParameters=mi(e),n.parameters=F(t),n.type=r,n}function un(t){var r=s(t.kind);return t.tagName.escapedText===e.escapeLeadingUnderscores(r)?t.tagName:Y(r)}function pn(e,t,r){var n=P(e);return n.tagName=t,n.comment=r,n}function _n(e,t,r,n){var i=pn(344,null!=e?e:Y("template"),n);return i.constraint=t,i.typeParameters=F(r),i}function fn(t,r,n,i){var a=pn(345,null!=t?t:Y("typedef"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function mn(e,t,r,n,i,a){var o=pn(340,null!=e?e:Y("param"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function gn(e,t,r,n,i,a){var o=pn(347,null!=e?e:Y("prop"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function hn(t,r,n,i){var a=pn(338,null!=t?t:Y("callback"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function yn(e,t,r){var n=pn(328,null!=e?e:Y("augments"),r);return n.class=t,n}function vn(e,t,r){var n=pn(329,null!=e?e:Y("implements"),r);return n.class=t,n}function bn(e,t,r){var n=pn(346,null!=e?e:Y("see"),r);return n.name=t,n}function En(e){var t=P(310);return t.name=e,t}function xn(e,t){var r=P(311);return r.left=e,r.right=t,r.transformFlags|=d(r.left)|d(r.right),r}function Dn(e,t){var r=P(324);return r.name=e,r.text=t,r}function Sn(e,t){var r=P(325);return r.name=e,r.text=t,r}function Tn(e,t){var r=P(326);return r.name=e,r.text=t,r}function Cn(e,t,r){return pn(e,null!=t?t:Y(s(e)),r)}function An(e,t,r,n){var i=pn(e,null!=t?t:Y(s(e)),n);return i.typeExpression=r,i}function kn(e,t){return pn(327,e,t)}function Nn(e){var t=P(321);return t.text=e,t}function wn(e,t){var r=P(320);return r.comment=e,r.tags=mi(t),r}function Fn(e,t,r){var n=P(278);return n.openingElement=e,n.children=F(t),n.closingElement=r,n.transformFlags|=d(n.openingElement)|u(n.children)|d(n.closingElement)|2,n}function Pn(e,t,r){var n=P(279);return n.tagName=e,n.typeArguments=mi(t),n.attributes=r,n.transformFlags|=d(n.tagName)|u(n.typeArguments)|d(n.attributes)|2,n.typeArguments&&(n.transformFlags|=1),n}function In(e,t,r){var n=P(280);return n.tagName=e,n.typeArguments=mi(t),n.attributes=r,n.transformFlags|=d(n.tagName)|u(n.typeArguments)|d(n.attributes)|2,t&&(n.transformFlags|=1),n}function On(e){var t=P(281);return t.tagName=e,t.transformFlags|=2|d(t.tagName),t}function Mn(e,t,r){var n=P(282);return n.openingFragment=e,n.children=F(t),n.closingFragment=r,n.transformFlags|=d(n.openingFragment)|u(n.children)|d(n.closingFragment)|2,n}function Rn(e,t){var r=P(11);return r.text=e,r.containsOnlyTriviaWhiteSpaces=!!t,r.transformFlags|=2,r}function Ln(e,t){var r=P(285);return r.name=e,r.initializer=t,r.transformFlags|=d(r.name)|d(r.initializer)|2,r}function Bn(e){var t=P(286);return t.properties=F(e),t.transformFlags|=2|u(t.properties),t}function Un(e){var t=P(287);return t.expression=e,t.transformFlags|=2|d(t.expression),t}function jn(e,t){var r=P(288);return r.dotDotDotToken=e,r.expression=t,r.transformFlags|=d(r.dotDotDotToken)|d(r.expression)|2,r}function Vn(e,t){var r=P(289);return r.expression=m().parenthesizeExpressionForDisallowedComma(e),r.statements=F(t),r.transformFlags|=d(r.expression)|u(r.statements),r}function zn(e){var t=P(290);return t.statements=F(e),t.transformFlags=u(t.statements),t}function Hn(t,r){var n=P(291);switch(n.token=t,n.types=F(r),n.transformFlags|=u(n.types),t){case 94:n.transformFlags|=1024;break;case 117:n.transformFlags|=1;break;default:return e.Debug.assertNever(t)}return n}function Wn(t,r){var n=P(292);return("string"==typeof t||t&&!e.isVariableDeclaration(t))&&(t=xr(t,void 0,void 0,void 0)),n.variableDeclaration=t,n.block=r,n.transformFlags|=d(n.variableDeclaration)|d(n.block),t||(n.transformFlags|=64),n}function Kn(e,t){var r=O(296,void 0,e);return r.initializer=m().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=d(r.name)|d(r.initializer),r.illegalDecorators=void 0,r.modifiers=void 0,r.questionToken=void 0,r.exclamationToken=void 0,r}function Jn(e,t){var r=O(297,void 0,e);return r.objectAssignmentInitializer=t&&m().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=1024|d(r.objectAssignmentInitializer),r.equalsToken=void 0,r.illegalDecorators=void 0,r.modifiers=void 0,r.questionToken=void 0,r.exclamationToken=void 0,r}function Gn(e){var t=P(298);return t.expression=m().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|d(t.expression),t}function $n(e,t){var r=P(299);return r.name=gi(e),r.initializer=t&&m().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=d(r.name)|d(r.initializer)|1,r}function qn(t,r){void 0===r&&(r=e.emptyArray);var n=P(306);return n.prepends=r,n.sourceFiles=t,n}function Xn(e,t){var r=P(e);return r.data=t,r}function Yn(t,r){var n=P(350);return n.expression=t,n.original=r,n.transformFlags|=1|d(n.expression),e.setTextRange(n,r),n}function Qn(e,t){return e.expression!==t?_(Yn(t,e.original),e):e}function Zn(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 ei(t){var r=P(351);return r.elements=F(e.sameFlatMap(t,Zn)),r.transformFlags|=u(r.elements),r}function ti(e,t){var r=P(354);return r.expression=e,r.thisArg=t,r.transformFlags|=d(r.expression)|d(r.thisArg),r}function ri(t){if(void 0===t)return t;var r=e.isSourceFile(t)?i.createBaseSourceFileNode(305):e.isIdentifier(t)?i.createBaseIdentifierNode(79):e.isPrivateIdentifier(t)?i.createBasePrivateIdentifierNode(80):e.isNodeKind(t.kind)?i.createBaseNode(t.kind):i.createBaseTokenNode(t.kind);for(var n in r.flags|=-9&t.flags,r.transformFlags=t.transformFlags,v(r,t),t)!r.hasOwnProperty(n)&&t.hasOwnProperty(n)&&(r[n]=t[n]);return r}function ni(){return It(W("0"))}function ii(t,r,n){return e.isCallChain(t)?vt(_t(t,void 0,r),void 0,void 0,n):yt(pt(t,r),void 0,n)}function ai(e,t,r){return ii(Y(e),t,r)}function oi(e,t,r){return!!r&&(e.push(Kn(t,r)),!0)}function si(t,r){var n=e.skipParentheses(t);switch(n.kind){case 79:return r;case 108:case 8:case 9:case 10:return!1;case 204:return 0!==n.elements.length;case 205:return n.properties.length>0;default:return!0}}function ci(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(ri(a),a),a.parent);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return Z(t)}function li(e,t,r){return ci(e,t,r,8192)}function di(t,r,n,i){var a=pt(t,e.nodeIsSynthesized(r)?r:ri(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function ui(){return e.startOnNewLine(or(G("use strict")))}function pi(t,r,n,i){void 0===n&&(n=0),e.Debug.assert(0===r.length,"Prologue directives should be at the first statement in the target statements array");for(var a,o=!1,s=t.length;n<s;){var c=t[n];if(!e.isPrologueDirective(c))break;a=c,e.isStringLiteral(a.expression)&&"use strict"===a.expression.text&&(o=!0),r.push(c),n++}return i&&!o&&r.push(ui()),n}function _i(t,r,n,i,a){void 0===a&&(a=e.returnTrue);for(var o=t.length;void 0!==n&&n<o;){var s=t[n];if(!(1048576&e.getEmitFlags(s)&&a(s)))break;e.append(r,i?e.visitNode(s,i,e.isStatement):s),n++}return n}function fi(e,t,r){for(var n=r;n<e.length&&t(e[n]);)n++;return n}function mi(e){return e?F(e):void 0}function gi(e){return"string"==typeof e?Y(e):e}function hi(e){return"string"==typeof e?G(e):"number"==typeof e?W(e):"boolean"==typeof e?e?ne():ie():e}function yi(t){return t&&e.isNotEmittedStatement(t)?e.setTextRange(v(ar(),t),t):t}}function a(t,r){return t!==r&&e.setTextRange(t,r),t}function o(t,r){return t!==r&&(v(t,r),e.setTextRange(t,r)),t}function s(t){switch(t){case 343:return"type";case 341:return"returns";case 342:return"this";case 339:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 344:return"template";case 345:return"typedef";case 340:return"param";case 347:return"prop";case 338:return"callback";case 328:return"augments";case 329:return"implements";default:return e.Debug.fail("Unsupported kind: ".concat(e.Debug.formatSyntaxKind(t)))}}(r=e.NodeFactoryFlags||(e.NodeFactoryFlags={}))[r.None=0]="None",r[r.NoParenthesizerRules=1]="NoParenthesizerRules",r[r.NoNodeConverters=2]="NoNodeConverters",r[r.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",r[r.NoOriginalNode=8]="NoOriginalNode",e.createNodeFactory=i;var c={};function l(e){return-67108865&d(e)}function d(t){if(!t)return 0;var r=t.transformFlags&~_(t.kind);return e.isNamedDeclaration(t)&&e.isPropertyName(t.name)?r|134234112&t.name.transformFlags:r}function u(e){return e?e.transformFlags:0}function p(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=d(n[r]);e.transformFlags=t}function _(e){if(e>=177&&e<=200)return-2;switch(e){case 208:case 209:case 204:return-2147450880;case 261:return-1941676032;case 164:return-2147483648;case 214:return-2072174592;case 213:case 256:return-1937940480;case 255:return-2146893824;case 257:case 226:return-2147344384;case 171:return-1937948672;case 167:return-2013249536;case 169:case 172:case 173:return-2005057536;case 130:case 147:case 158:case 143:case 150:case 148:case 133:case 151:case 114:case 163:case 166:case 168:case 174:case 175:case 176:case 258:case 259:return-2;case 205:return-2147278848;case 292:return-2147418112;case 201:case 202:return-2147450880;case 211:case 229:case 350:case 212:case 106:return-2147483648;case 206:case 207:default:return-2147483648}}e.getTransformFlagsSubtreeExclusions=_;var m=e.createBaseNodeFactory();function g(e){return e.flags|=8,e}var h,y={createBaseSourceFileNode:e=>g(m.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>g(m.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>g(m.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>g(m.createBaseTokenNode(e)),createBaseNode:e=>g(m.createBaseNode(e))};function v(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=((t,r)=>{var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,l=t.constantValue,d=t.helpers,u=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=-268435457&n),o&&(r.commentRange=o),s&&(r.sourceMapRange=s),c&&(r.tokenSourceMapRanges=((e,t)=>{for(var r in t||(t=[]),e)t[r]=e[r];return t})(c,r.tokenSourceMapRanges)),void 0!==l&&(r.constantValue=l),d)for(var p=0,_=d;p<_.length;p++){var f=_[p];r.helpers=e.appendIfUnique(r.helpers,f)}return void 0!==u&&(r.startsOnNewLine=u),r})(n,t.emitNode))}return t}e.factory=i(4,y),e.createUnparsedSourceFile=(t,r,n)=>{var i,a,o,s,c,l,d,u,p,_;e.isString(t)?(o="",s=t,c=t.length,l=r,d=n):(e.Debug.assert("js"===r||"dts"===r),o=("js"===r?t.javascriptPath:t.declarationPath)||"",l="js"===r?t.javascriptMapPath:t.declarationMapPath,u=()=>"js"===r?t.javascriptText:t.declarationText,p=()=>"js"===r?t.javascriptMapText:t.declarationMapText,c=()=>u().length,t.buildInfo&&t.buildInfo.bundle&&(e.Debug.assert(void 0===n||"boolean"==typeof n),i=n,a="js"===r?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,_=t.oldFileOfCurrentEmit));var f=_?(t=>{for(var r,n,i=0,a=t.sections;i<a.length;i++){var o=a[i];switch(o.kind){case"internal":case"text":r=e.append(r,e.setTextRange(e.factory.createUnparsedTextLike(o.data,"internal"===o.kind),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=e.append(n,e.setTextRange(e.factory.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(o)}}var s=e.factory.createUnparsedSource(e.emptyArray,n,null!=r?r:e.emptyArray);return e.setEachParent(n,s),e.setEachParent(r,s),s.helpers=e.map(t.sources&&t.sources.helpers,(t=>e.getAllUnscopedEmitHelpers().get(t))),s})(e.Debug.checkDefined(a)):((t,r,n)=>{for(var i,a,o,s,c,l,d,u,p=0,_=t?t.sections:e.emptyArray;p<_.length;p++){var f=_[p];switch(f.kind){case"prologue":i=e.append(i,e.setTextRange(e.factory.createUnparsedPrologue(f.data),f));break;case"emitHelpers":a=e.append(a,e.getAllUnscopedEmitHelpers().get(f.data));break;case"no-default-lib":u=!0;break;case"reference":o=e.append(o,{pos:-1,end:-1,fileName:f.data});break;case"type":s=e.append(s,{pos:-1,end:-1,fileName:f.data});break;case"type-import":s=e.append(s,{pos:-1,end:-1,fileName:f.data,resolutionMode:e.ModuleKind.ESNext});break;case"type-require":s=e.append(s,{pos:-1,end:-1,fileName:f.data,resolutionMode:e.ModuleKind.CommonJS});break;case"lib":c=e.append(c,{pos:-1,end:-1,fileName:f.data});break;case"prepend":for(var m=void 0,g=0,h=f.texts;g<h.length;g++){var y=h[g];r&&"internal"===y.kind||(m=e.append(m,e.setTextRange(e.factory.createUnparsedTextLike(y.data,"internal"===y.kind),y)))}l=e.addRange(l,m),d=e.append(d,e.factory.createUnparsedPrepend(f.data,null!=m?m:e.emptyArray));break;case"internal":if(r){d||(d=[]);break}case"text":d=e.append(d,e.setTextRange(e.factory.createUnparsedTextLike(f.data,"internal"===f.kind),f));break;default:e.Debug.assertNever(f)}}if(!d){var v=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(v,0,"function"==typeof n?n():n),d=[v]}var b=e.parseNodeFactory.createUnparsedSource(null!=i?i:e.emptyArray,void 0,d);return e.setEachParent(i,b),e.setEachParent(d,b),e.setEachParent(l,b),b.hasNoDefaultLib=u,b.helpers=a,b.referencedFiles=o||e.emptyArray,b.typeReferenceDirectives=s,b.libReferenceDirectives=c||e.emptyArray,b})(a,i,c);return f.fileName=o,f.sourceMapPath=l,f.oldFileOfCurrentEmit=_,u&&p?(Object.defineProperty(f,"text",{get:u}),Object.defineProperty(f,"sourceMapText",{get:p})):(e.Debug.assert(!_),f.text=null!=s?s:"",f.sourceMapText=d),f},e.createInputFiles=(t,r,n,i,a,o,s,c,l,d,u)=>{var p=e.parseNodeFactory.createInputFiles();if(e.isString(t))p.javascriptText=t,p.javascriptMapPath=n,p.javascriptMapText=i,p.declarationText=r,p.declarationMapPath=a,p.declarationMapText=o,p.javascriptPath=s,p.declarationPath=c,p.buildInfoPath=l,p.buildInfo=d,p.oldFileOfCurrentEmit=u;else{var _,f=new e.Map,m=e=>{if(void 0!==e){var r=f.get(e);return void 0===r&&(r=t(e),f.set(e,void 0!==r&&r)),!1!==r?r:void 0}},g=e=>{var t=m(e);return void 0!==t?t:"/* Input file ".concat(e," was missing */\r\n")};p.javascriptPath=r,p.javascriptMapPath=n,p.declarationPath=e.Debug.checkDefined(i),p.declarationMapPath=a,p.buildInfoPath=o,Object.defineProperties(p,{javascriptText:{get:()=>g(r)},javascriptMapText:{get:()=>m(n)},declarationText:{get:()=>g(e.Debug.checkDefined(i))},declarationMapText:{get:()=>m(a)},buildInfo:{get:()=>(t=>{if(void 0===_){var r=m(o);_=void 0!==r&&e.getBuildInfo(r)}return _||void 0})()}})}return p},e.createSourceMapSource=(t,r,n)=>new(h||(h=e.objectAllocator.getSourceMapSourceConstructor()))(t,r,n),e.setOriginalNode=v})(p),(e=>{function t(r){var n;if(r.emitNode)e.Debug.assert(!(268435456&r.emitNode.flags),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(r)){if(305===r.kind)return r.emitNode={annotatedNodes:[r]};t(null!==(n=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(r))))&&void 0!==n?n:e.Debug.fail("Could not determine parsed source file.")).annotatedNodes.push(r)}r.emitNode={}}return r.emitNode}function r(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.leadingComments}function n(e,r){return t(e).leadingComments=r,e}function i(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.trailingComments}function a(e,r){return t(e).trailingComments=r,e}e.getOrCreateEmitNode=t,e.disposeEmitNodes=t=>{var r,n,i=null===(n=null===(r=e.getSourceFileOfNode(e.getParseTreeNode(t)))||void 0===r?void 0:r.emitNode)||void 0===n?void 0:n.annotatedNodes;if(i)for(var a=0,o=i;a<o.length;a++)o[a].emitNode=void 0},e.removeAllComments=e=>{var r=t(e);return r.flags|=1536,r.leadingComments=void 0,r.trailingComments=void 0,e},e.setEmitFlags=(e,r)=>(t(e).flags=r,e),e.addEmitFlags=(e,r)=>{var n=t(e);return n.flags=n.flags|r,e},e.getSourceMapRange=e=>{var t,r;return null!==(r=null===(t=e.emitNode)||void 0===t?void 0:t.sourceMapRange)&&void 0!==r?r:e},e.setSourceMapRange=(e,r)=>(t(e).sourceMapRange=r,e),e.getTokenSourceMapRange=(e,t)=>{var r,n;return null===(n=null===(r=e.emitNode)||void 0===r?void 0:r.tokenSourceMapRanges)||void 0===n?void 0:n[t]},e.setTokenSourceMapRange=(e,r,n)=>{var i,a=t(e);return(null!==(i=a.tokenSourceMapRanges)&&void 0!==i?i:a.tokenSourceMapRanges=[])[r]=n,e},e.getStartsOnNewLine=e=>{var t;return null===(t=e.emitNode)||void 0===t?void 0:t.startsOnNewLine},e.setStartsOnNewLine=(e,r)=>(t(e).startsOnNewLine=r,e),e.getCommentRange=e=>{var t,r;return null!==(r=null===(t=e.emitNode)||void 0===t?void 0:t.commentRange)&&void 0!==r?r:e},e.setCommentRange=(e,r)=>(t(e).commentRange=r,e),e.getSyntheticLeadingComments=r,e.setSyntheticLeadingComments=n,e.addSyntheticLeadingComment=(t,i,a,o)=>n(t,e.append(r(t),{kind:i,pos:-1,end:-1,hasTrailingNewLine:o,text:a})),e.getSyntheticTrailingComments=i,e.setSyntheticTrailingComments=a,e.addSyntheticTrailingComment=(t,r,n,o)=>a(t,e.append(i(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:o,text:n})),e.moveSyntheticComments=(e,o)=>{n(e,r(o)),a(e,i(o));var s=t(o);return s.leadingComments=void 0,s.trailingComments=void 0,e},e.getConstantValue=e=>{var t;return null===(t=e.emitNode)||void 0===t?void 0:t.constantValue},e.setConstantValue=(e,r)=>(t(e).constantValue=r,e),e.addEmitHelper=(r,n)=>{var i=t(r);return i.helpers=e.append(i.helpers,n),r},e.addEmitHelpers=(r,n)=>{if(e.some(n))for(var i=t(r),a=0,o=n;a<o.length;a++){var s=o[a];i.helpers=e.appendIfUnique(i.helpers,s)}return r},e.removeEmitHelper=(t,r)=>{var n,i=null===(n=t.emitNode)||void 0===n?void 0:n.helpers;return!!i&&e.orderedRemoveItem(i,r)},e.getEmitHelpers=e=>{var t;return null===(t=e.emitNode)||void 0===t?void 0:t.helpers},e.moveEmitHelpers=(r,n,i)=>{var a=r.emitNode,o=a&&a.helpers;if(e.some(o)){for(var s=t(n),c=0,l=0;l<o.length;l++){var d=o[l];i(d)?(c++,s.helpers=e.appendIfUnique(s.helpers,d)):c>0&&(o[l-c]=d)}c>0&&(o.length-=c)}},e.getSnippetElement=e=>{var t;return null===(t=e.emitNode)||void 0===t?void 0:t.snippetElement},e.setSnippetElement=(e,r)=>(t(e).snippetElement=r,e),e.ignoreSourceNewlines=e=>(t(e).flags|=134217728,e),e.setTypeNode=(e,r)=>(t(e).typeNode=r,e),e.getTypeNode=e=>{var t;return null===(t=e.emitNode)||void 0===t?void 0:t.typeNode}})(p),(e=>{function t(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return r=>{for(var n="",i=0;i<t.length;i++)n+=e[i],n+=r(t[i]);return n+e[e.length-1]}}var r;e.createEmitHelperFactory=t=>{var r=t.factory,n=e.memoize((()=>e.setEmitFlags(r.createTrue(),268435456))),i=e.memoize((()=>e.setEmitFlags(r.createFalse(),268435456)));return{getUnscopedHelperName:a,createDecorateHelper(n,i,o,s){t.requestEmitHelper(e.decorateHelper);var c=[];return c.push(r.createArrayLiteralExpression(n,!0)),c.push(i),o&&(c.push(o),s&&c.push(s)),r.createCallExpression(a("__decorate"),void 0,c)},createMetadataHelper:(n,i)=>(t.requestEmitHelper(e.metadataHelper),r.createCallExpression(a("__metadata"),void 0,[r.createStringLiteral(n),i])),createParamHelper:(n,i,o)=>(t.requestEmitHelper(e.paramHelper),e.setTextRange(r.createCallExpression(a("__param"),void 0,[r.createNumericLiteral(i+""),n]),o)),createAssignHelper:n=>e.getEmitScriptTarget(t.getCompilerOptions())>=2?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(e.assignHelper),r.createCallExpression(a("__assign"),void 0,n)),createAwaitHelper:n=>(t.requestEmitHelper(e.awaitHelper),r.createCallExpression(a("__await"),void 0,[n])),createAsyncGeneratorHelper:(n,i)=>(t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(n.emitNode||(n.emitNode={})).flags|=786432,r.createCallExpression(a("__asyncGenerator"),void 0,[i?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),n])),createAsyncDelegatorHelper:n=>(t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),r.createCallExpression(a("__asyncDelegator"),void 0,[n])),createAsyncValuesHelper:n=>(t.requestEmitHelper(e.asyncValues),r.createCallExpression(a("__asyncValues"),void 0,[n])),createRestHelper(n,i,o,s){t.requestEmitHelper(e.restHelper);for(var c=[],l=0,d=0;d<i.length-1;d++){var u=e.getPropertyNameOfBindingOrAssignmentElement(i[d]);if(u)if(e.isComputedPropertyName(u)){e.Debug.assertIsDefined(o,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var p=o[l];l++,c.push(r.createConditionalExpression(r.createTypeCheck(p,"symbol"),void 0,p,void 0,r.createAdd(p,r.createStringLiteral(""))))}else c.push(r.createStringLiteralFromNode(u))}return r.createCallExpression(a("__rest"),void 0,[n,e.setTextRange(r.createArrayLiteralExpression(c),s)])},createAwaiterHelper(n,i,o,s){t.requestEmitHelper(e.awaiterHelper);var c=r.createFunctionExpression(void 0,r.createToken(41),void 0,void 0,[],void 0,s);return(c.emitNode||(c.emitNode={})).flags|=786432,r.createCallExpression(a("__awaiter"),void 0,[n?r.createThis():r.createVoidZero(),i?r.createIdentifier("arguments"):r.createVoidZero(),o?e.createExpressionFromEntityName(r,o):r.createVoidZero(),c])},createExtendsHelper:n=>(t.requestEmitHelper(e.extendsHelper),r.createCallExpression(a("__extends"),void 0,[n,r.createUniqueName("_super",48)])),createTemplateObjectHelper:(n,i)=>(t.requestEmitHelper(e.templateObjectHelper),r.createCallExpression(a("__makeTemplateObject"),void 0,[n,i])),createSpreadArrayHelper:(o,s,c)=>(t.requestEmitHelper(e.spreadArrayHelper),r.createCallExpression(a("__spreadArray"),void 0,[o,s,c?n():i()])),createValuesHelper:n=>(t.requestEmitHelper(e.valuesHelper),r.createCallExpression(a("__values"),void 0,[n])),createReadHelper:(n,i)=>(t.requestEmitHelper(e.readHelper),r.createCallExpression(a("__read"),void 0,void 0!==i?[n,r.createNumericLiteral(i+"")]:[n])),createGeneratorHelper:n=>(t.requestEmitHelper(e.generatorHelper),r.createCallExpression(a("__generator"),void 0,[r.createThis(),n])),createCreateBindingHelper:(n,i,o)=>(t.requestEmitHelper(e.createBindingHelper),r.createCallExpression(a("__createBinding"),void 0,f([r.createIdentifier("exports"),n,i],o?[o]:[],!0))),createImportStarHelper:n=>(t.requestEmitHelper(e.importStarHelper),r.createCallExpression(a("__importStar"),void 0,[n])),createImportStarCallbackHelper:()=>(t.requestEmitHelper(e.importStarHelper),a("__importStar")),createImportDefaultHelper:n=>(t.requestEmitHelper(e.importDefaultHelper),r.createCallExpression(a("__importDefault"),void 0,[n])),createExportStarHelper:(n,i)=>(void 0===i&&(i=r.createIdentifier("exports")),t.requestEmitHelper(e.exportStarHelper),t.requestEmitHelper(e.createBindingHelper),r.createCallExpression(a("__exportStar"),void 0,[n,i])),createClassPrivateFieldGetHelper(n,i,o,s){var c;return t.requestEmitHelper(e.classPrivateFieldGetHelper),c=s?[n,i,r.createStringLiteral(o),s]:[n,i,r.createStringLiteral(o)],r.createCallExpression(a("__classPrivateFieldGet"),void 0,c)},createClassPrivateFieldSetHelper(n,i,o,s,c){var l;return t.requestEmitHelper(e.classPrivateFieldSetHelper),l=c?[n,i,o,r.createStringLiteral(s),c]:[n,i,o,r.createStringLiteral(s)],r.createCallExpression(a("__classPrivateFieldSet"),void 0,l)},createClassPrivateFieldInHelper:(n,i)=>(t.requestEmitHelper(e.classPrivateFieldInHelper),r.createCallExpression(a("__classPrivateFieldIn"),void 0,[n,i]))};function a(t){return e.setEmitFlags(r.createIdentifier(t),4098)}},e.compareEmitHelpers=(t,r)=>t===r||t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority),e.helperString=t,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},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 if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},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.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},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 var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},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, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},e.getAllUnscopedEmitHelpers=()=>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.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],(e=>e.name))),e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:t(g(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(g(["\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")},e.isCallToHelper=(t,r)=>e.isCallExpression(t)&&e.isIdentifier(t.expression)&&0!=(4096&e.getEmitFlags(t.expression))&&t.expression.escapedText===r})(p),(e=>{e.isNumericLiteral=e=>8===e.kind,e.isBigIntLiteral=e=>9===e.kind,e.isStringLiteral=e=>10===e.kind,e.isJsxText=e=>11===e.kind,e.isRegularExpressionLiteral=e=>13===e.kind,e.isNoSubstitutionTemplateLiteral=e=>14===e.kind,e.isTemplateHead=e=>15===e.kind,e.isTemplateMiddle=e=>16===e.kind,e.isTemplateTail=e=>17===e.kind,e.isDotDotDotToken=e=>25===e.kind,e.isCommaToken=e=>27===e.kind,e.isPlusToken=e=>39===e.kind,e.isMinusToken=e=>40===e.kind,e.isAsteriskToken=e=>41===e.kind,e.isExclamationToken=e=>53===e.kind,e.isQuestionToken=e=>57===e.kind,e.isColonToken=e=>58===e.kind,e.isQuestionDotToken=e=>28===e.kind,e.isEqualsGreaterThanToken=e=>38===e.kind,e.isIdentifier=e=>79===e.kind,e.isPrivateIdentifier=e=>80===e.kind,e.isExportModifier=e=>93===e.kind,e.isAsyncModifier=e=>131===e.kind,e.isAssertsKeyword=e=>128===e.kind,e.isAwaitKeyword=e=>132===e.kind,e.isReadonlyKeyword=e=>145===e.kind,e.isStaticModifier=e=>124===e.kind,e.isAbstractModifier=e=>126===e.kind,e.isOverrideModifier=e=>159===e.kind,e.isSuperKeyword=e=>106===e.kind,e.isImportKeyword=e=>100===e.kind,e.isQualifiedName=e=>161===e.kind,e.isComputedPropertyName=e=>162===e.kind,e.isTypeParameterDeclaration=e=>163===e.kind,e.isParameter=e=>164===e.kind,e.isDecorator=e=>165===e.kind,e.isPropertySignature=e=>166===e.kind,e.isPropertyDeclaration=e=>167===e.kind,e.isMethodSignature=e=>168===e.kind,e.isMethodDeclaration=e=>169===e.kind,e.isClassStaticBlockDeclaration=e=>170===e.kind,e.isConstructorDeclaration=e=>171===e.kind,e.isGetAccessorDeclaration=e=>172===e.kind,e.isSetAccessorDeclaration=e=>173===e.kind,e.isCallSignatureDeclaration=e=>174===e.kind,e.isConstructSignatureDeclaration=e=>175===e.kind,e.isIndexSignatureDeclaration=e=>176===e.kind,e.isTypePredicateNode=e=>177===e.kind,e.isTypeReferenceNode=e=>178===e.kind,e.isFunctionTypeNode=e=>179===e.kind,e.isConstructorTypeNode=e=>180===e.kind,e.isTypeQueryNode=e=>181===e.kind,e.isTypeLiteralNode=e=>182===e.kind,e.isArrayTypeNode=e=>183===e.kind,e.isTupleTypeNode=e=>184===e.kind,e.isNamedTupleMember=e=>197===e.kind,e.isOptionalTypeNode=e=>185===e.kind,e.isRestTypeNode=e=>186===e.kind,e.isUnionTypeNode=e=>187===e.kind,e.isIntersectionTypeNode=e=>188===e.kind,e.isConditionalTypeNode=e=>189===e.kind,e.isInferTypeNode=e=>190===e.kind,e.isParenthesizedTypeNode=e=>191===e.kind,e.isThisTypeNode=e=>192===e.kind,e.isTypeOperatorNode=e=>193===e.kind,e.isIndexedAccessTypeNode=e=>194===e.kind,e.isMappedTypeNode=e=>195===e.kind,e.isLiteralTypeNode=e=>196===e.kind,e.isImportTypeNode=e=>200===e.kind,e.isTemplateLiteralTypeSpan=e=>199===e.kind,e.isTemplateLiteralTypeNode=e=>198===e.kind,e.isObjectBindingPattern=e=>201===e.kind,e.isArrayBindingPattern=e=>202===e.kind,e.isBindingElement=e=>203===e.kind,e.isArrayLiteralExpression=e=>204===e.kind,e.isObjectLiteralExpression=e=>205===e.kind,e.isPropertyAccessExpression=e=>206===e.kind,e.isElementAccessExpression=e=>207===e.kind,e.isCallExpression=e=>208===e.kind,e.isNewExpression=e=>209===e.kind,e.isTaggedTemplateExpression=e=>210===e.kind,e.isTypeAssertionExpression=e=>211===e.kind,e.isParenthesizedExpression=e=>212===e.kind,e.isFunctionExpression=e=>213===e.kind,e.isArrowFunction=e=>214===e.kind,e.isDeleteExpression=e=>215===e.kind,e.isTypeOfExpression=e=>216===e.kind,e.isVoidExpression=e=>217===e.kind,e.isAwaitExpression=e=>218===e.kind,e.isPrefixUnaryExpression=e=>219===e.kind,e.isPostfixUnaryExpression=e=>220===e.kind,e.isBinaryExpression=e=>221===e.kind,e.isConditionalExpression=e=>222===e.kind,e.isTemplateExpression=e=>223===e.kind,e.isYieldExpression=e=>224===e.kind,e.isSpreadElement=e=>225===e.kind,e.isClassExpression=e=>226===e.kind,e.isOmittedExpression=e=>227===e.kind,e.isExpressionWithTypeArguments=e=>228===e.kind,e.isAsExpression=e=>229===e.kind,e.isNonNullExpression=e=>230===e.kind,e.isMetaProperty=e=>231===e.kind,e.isSyntheticExpression=e=>232===e.kind,e.isPartiallyEmittedExpression=e=>350===e.kind,e.isCommaListExpression=e=>351===e.kind,e.isTemplateSpan=e=>233===e.kind,e.isSemicolonClassElement=e=>234===e.kind,e.isBlock=e=>235===e.kind,e.isVariableStatement=e=>237===e.kind,e.isEmptyStatement=e=>236===e.kind,e.isExpressionStatement=e=>238===e.kind,e.isIfStatement=e=>239===e.kind,e.isDoStatement=e=>240===e.kind,e.isWhileStatement=e=>241===e.kind,e.isForStatement=e=>242===e.kind,e.isForInStatement=e=>243===e.kind,e.isForOfStatement=e=>244===e.kind,e.isContinueStatement=e=>245===e.kind,e.isBreakStatement=e=>246===e.kind,e.isReturnStatement=e=>247===e.kind,e.isWithStatement=e=>248===e.kind,e.isSwitchStatement=e=>249===e.kind,e.isLabeledStatement=e=>250===e.kind,e.isThrowStatement=e=>251===e.kind,e.isTryStatement=e=>252===e.kind,e.isDebuggerStatement=e=>253===e.kind,e.isVariableDeclaration=e=>254===e.kind,e.isVariableDeclarationList=e=>255===e.kind,e.isFunctionDeclaration=e=>256===e.kind,e.isClassDeclaration=e=>257===e.kind,e.isInterfaceDeclaration=e=>258===e.kind,e.isTypeAliasDeclaration=e=>259===e.kind,e.isEnumDeclaration=e=>260===e.kind,e.isModuleDeclaration=e=>261===e.kind,e.isModuleBlock=e=>262===e.kind,e.isCaseBlock=e=>263===e.kind,e.isNamespaceExportDeclaration=e=>264===e.kind,e.isImportEqualsDeclaration=e=>265===e.kind,e.isImportDeclaration=e=>266===e.kind,e.isImportClause=e=>267===e.kind,e.isImportTypeAssertionContainer=e=>295===e.kind,e.isAssertClause=e=>293===e.kind,e.isAssertEntry=e=>294===e.kind,e.isNamespaceImport=e=>268===e.kind,e.isNamespaceExport=e=>274===e.kind,e.isNamedImports=e=>269===e.kind,e.isImportSpecifier=e=>270===e.kind,e.isExportAssignment=e=>271===e.kind,e.isExportDeclaration=e=>272===e.kind,e.isNamedExports=e=>273===e.kind,e.isExportSpecifier=e=>275===e.kind,e.isMissingDeclaration=e=>276===e.kind,e.isNotEmittedStatement=e=>349===e.kind,e.isSyntheticReference=e=>354===e.kind,e.isMergeDeclarationMarker=e=>352===e.kind,e.isEndOfDeclarationMarker=e=>353===e.kind,e.isExternalModuleReference=e=>277===e.kind,e.isJsxElement=e=>278===e.kind,e.isJsxSelfClosingElement=e=>279===e.kind,e.isJsxOpeningElement=e=>280===e.kind,e.isJsxClosingElement=e=>281===e.kind,e.isJsxFragment=e=>282===e.kind,e.isJsxOpeningFragment=e=>283===e.kind,e.isJsxClosingFragment=e=>284===e.kind,e.isJsxAttribute=e=>285===e.kind,e.isJsxAttributes=e=>286===e.kind,e.isJsxSpreadAttribute=e=>287===e.kind,e.isJsxExpression=e=>288===e.kind,e.isCaseClause=e=>289===e.kind,e.isDefaultClause=e=>290===e.kind,e.isHeritageClause=e=>291===e.kind,e.isCatchClause=e=>292===e.kind,e.isPropertyAssignment=e=>296===e.kind,e.isShorthandPropertyAssignment=e=>297===e.kind,e.isSpreadAssignment=e=>298===e.kind,e.isEnumMember=e=>299===e.kind,e.isUnparsedPrepend=e=>301===e.kind,e.isSourceFile=e=>305===e.kind,e.isBundle=e=>306===e.kind,e.isUnparsedSource=e=>307===e.kind,e.isJSDocTypeExpression=e=>309===e.kind,e.isJSDocNameReference=e=>310===e.kind,e.isJSDocMemberName=e=>311===e.kind,e.isJSDocLink=e=>324===e.kind,e.isJSDocLinkCode=e=>325===e.kind,e.isJSDocLinkPlain=e=>326===e.kind,e.isJSDocAllType=e=>312===e.kind,e.isJSDocUnknownType=e=>313===e.kind,e.isJSDocNullableType=e=>314===e.kind,e.isJSDocNonNullableType=e=>315===e.kind,e.isJSDocOptionalType=e=>316===e.kind,e.isJSDocFunctionType=e=>317===e.kind,e.isJSDocVariadicType=e=>318===e.kind,e.isJSDocNamepathType=e=>319===e.kind,e.isJSDoc=e=>320===e.kind,e.isJSDocTypeLiteral=e=>322===e.kind,e.isJSDocSignature=e=>323===e.kind,e.isJSDocAugmentsTag=e=>328===e.kind,e.isJSDocAuthorTag=e=>330===e.kind,e.isJSDocClassTag=e=>332===e.kind,e.isJSDocCallbackTag=e=>338===e.kind,e.isJSDocPublicTag=e=>333===e.kind,e.isJSDocPrivateTag=e=>334===e.kind,e.isJSDocProtectedTag=e=>335===e.kind,e.isJSDocReadonlyTag=e=>336===e.kind,e.isJSDocOverrideTag=e=>337===e.kind,e.isJSDocDeprecatedTag=e=>331===e.kind,e.isJSDocSeeTag=e=>346===e.kind,e.isJSDocEnumTag=e=>339===e.kind,e.isJSDocParameterTag=e=>340===e.kind,e.isJSDocReturnTag=e=>341===e.kind,e.isJSDocThisTag=e=>342===e.kind,e.isJSDocTypeTag=e=>343===e.kind,e.isJSDocTemplateTag=e=>344===e.kind,e.isJSDocTypedefTag=e=>345===e.kind,e.isJSDocUnknownTag=e=>327===e.kind,e.isJSDocPropertyTag=e=>347===e.kind,e.isJSDocImplementsTag=e=>329===e.kind,e.isSyntaxList=e=>348===e.kind})(p),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.isMemberName(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 i(e,t,i,a){return t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"createElement")}function a(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 o(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function s(t){return e.isParenthesizedExpression(t)&&e.isInJSFile(t)&&!!e.getJSDocTypeTag(t)}function c(e,t){switch(void 0===t&&(t=15),e.kind){case 212:return!(16&t&&s(e))&&0!=(1&t);case 211:case 229:return 0!=(2&t);case 230:return 0!=(4&t);case 350:return 0!=(8&t)}return!1}function l(e,t){for(void 0===t&&(t=15);c(e,t);)e=e.expression;return e}function d(t){return e.setStartsOnNewLine(t,!0)}function u(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function p(t,r,n,i,a){if(n.importHelpers&&e.isEffectiveExternalModule(r,n)){var o=u(r);if(o)return o;var s=e.getEmitModuleKind(n),c=(i||e.getESModuleInterop(n)&&a)&&s!==e.ModuleKind.System&&(s<e.ModuleKind.ES2015||r.impliedNodeFormat===e.ModuleKind.CommonJS);if(!c){var l=e.getEmitHelpers(r);if(l)for(var d=0,p=l;d<p.length;d++)if(!p[d].scoped){c=!0;break}}if(c){var _=e.getOriginalNode(r,e.isSourceFile),f=e.getOrCreateEmitNode(_);return f.externalHelpersModuleName||(f.externalHelpersModuleName=t.createUniqueName(e.externalHelpersModuleNameText))}}}function _(t,r,n,i){if(r)return r.moduleName?t.createStringLiteral(r.moduleName):!r.isDeclarationFile&&e.outFile(i)?t.createStringLiteral(e.getExternalModuleNameFromPath(n,r.fileName)):void 0}function m(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?m(t.left):e.isSpreadElement(t)?m(t.expression):t;switch(t.kind){case 296:return m(t.initializer);case 297:return t.name;case 298:return m(t.expression)}}function g(t){switch(t.kind){case 203:if(t.propertyName){var r=t.propertyName;return e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&h(r.expression)?r.expression:r}break;case 296:if(t.name)return r=t.name,e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&h(r.expression)?r.expression:r;break;case 298:return t.name&&e.isPrivateIdentifier(t.name)?e.Debug.failBadSyntaxKind(t.name):t.name}var n=m(t);if(n&&e.isPropertyName(n))return n}function h(e){var t=e.kind;return 10===t||8===t}var y;e.createEmptyExports=e=>e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0),e.createMemberAccessForPropertyName=t,e.createJsxFactoryExpression=i,e.createExpressionForJsxElement=(t,r,n,i,a,o)=>{var s=[n];if(i&&s.push(i),a&&a.length>0)if(i||s.push(t.createNull()),a.length>1)for(var c=0,l=a;c<l.length;c++){var u=l[c];d(u),s.push(u)}else s.push(a[0]);return e.setTextRange(t.createCallExpression(r,void 0,s),o)},e.createExpressionForJsxFragment=(t,a,o,s,c,l,u)=>{var p=[((e,t,i,a)=>t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"Fragment"))(t,o,s,l),t.createNull()];if(c&&c.length>0)if(c.length>1)for(var _=0,f=c;_<f.length;_++){var m=f[_];d(m),p.push(m)}else p.push(c[0]);return e.setTextRange(t.createCallExpression(i(t,a,s,l),void 0,p),u)},e.createForOfBindingStatement=(t,r,n)=>{if(e.isVariableDeclarationList(r)){var i=e.first(r.declarations),a=t.updateVariableDeclaration(i,i.name,void 0,void 0,n);return e.setTextRange(t.createVariableStatement(void 0,t.updateVariableDeclarationList(r,[a])),r)}var o=e.setTextRange(t.createAssignment(r,n),r);return e.setTextRange(t.createExpressionStatement(o),r)},e.insertLeadingStatement=(t,r,n)=>e.isBlock(r)?t.updateBlock(r,e.setTextRange(t.createNodeArray(f([n],r.statements,!0)),r.statements)):t.createBlock(t.createNodeArray([r,n]),!0),e.createExpressionFromEntityName=function t(r,n){if(e.isQualifiedName(n)){var i=t(r,n.left),a=e.setParent(e.setTextRange(r.cloneNode(n.right),n.right),n.right.parent);return e.setTextRange(r.createPropertyAccessExpression(i,a),n)}return e.setParent(e.setTextRange(r.cloneNode(n),n),n.parent)},e.createExpressionForPropertyName=a,e.createExpressionForObjectLiteralElementLike=(r,n,i,o)=>{switch(i.name&&e.isPrivateIdentifier(i.name)&&e.Debug.failBadSyntaxKind(i.name,"Private identifiers are not allowed in object literals."),i.kind){case 172:case 173:return((t,r,n,i,o)=>{var s=e.getAllAccessorDeclarations(r,n),c=s.firstAccessor,l=s.getAccessor,d=s.setAccessor;if(n===c)return e.setTextRange(t.createObjectDefinePropertyCall(i,a(t,n.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:l&&e.setTextRange(e.setOriginalNode(t.createFunctionExpression(e.getModifiers(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:d&&e.setTextRange(e.setOriginalNode(t.createFunctionExpression(e.getModifiers(d),void 0,void 0,void 0,d.parameters,void 0,d.body),d),d)},!o)),c)})(r,n.properties,i,o,!!n.multiLine);case 296:return((r,n,i)=>e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),n.initializer),n),n))(r,i,o);case 297:return((r,n,i)=>e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),r.cloneNode(n.name)),n),n))(r,i,o);case 169:return((r,n,i)=>e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),e.setOriginalNode(e.setTextRange(r.createFunctionExpression(e.getModifiers(n),n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n))(r,i,o)}},e.expandPreOrPostfixIncrementOrDecrementExpression=(t,r,n,i,a)=>{var o=r.operator;e.Debug.assert(45===o||46===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var s=t.createTempVariable(i);n=t.createAssignment(s,n),e.setTextRange(n,r.operand);var c=e.isPrefixUnaryExpression(r)?t.createPrefixUnaryExpression(o,s):t.createPostfixUnaryExpression(s,o);return e.setTextRange(c,r),a&&(c=t.createAssignment(a,c),e.setTextRange(c,r)),n=t.createComma(n,c),e.setTextRange(n,r),e.isPostfixUnaryExpression(r)&&(n=t.createComma(n,s),e.setTextRange(n,r)),n},e.isInternalName=t=>0!=(32768&e.getEmitFlags(t)),e.isLocalName=t=>0!=(16384&e.getEmitFlags(t)),e.isExportName=t=>0!=(8192&e.getEmitFlags(t)),e.findUseStrictPrologue=t=>{for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!e.isPrologueDirective(i))break;if(o(i))return i}},e.startsWithUseStrict=t=>{var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&o(r)},e.isCommaSequence=e=>221===e.kind&&27===e.operatorToken.kind||351===e.kind,e.isJSDocTypeAssertion=s,e.getJSDocTypeAssertionType=t=>{var r=e.getJSDocType(t);return e.Debug.assertIsDefined(r),r},e.isOuterExpression=c,e.skipOuterExpressions=l,e.skipAssertions=e=>l(e,6),e.startOnNewLine=d,e.getExternalHelpersModuleName=u,e.hasRecordedExternalHelpers=t=>{var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)},e.createExternalHelpersImportDeclarationIfNeeded=(t,r,n,i,a,o,s)=>{if(i.importHelpers&&e.isEffectiveExternalModule(n,i)){var c=void 0,l=e.getEmitModuleKind(i);if(l>=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext||n.impliedNodeFormat===e.ModuleKind.ESNext){var d=e.getEmitHelpers(n);if(d){for(var u=[],_=0,f=d;_<f.length;_++){var m=f[_];if(!m.scoped){var g=m.importName;g&&e.pushIfUnique(u,g)}}if(e.some(u)){u.sort(e.compareStringsCaseSensitive),c=t.createNamedImports(e.map(u,(i=>e.isFileLevelUniqueName(n,i)?t.createImportSpecifier(!1,void 0,t.createIdentifier(i)):t.createImportSpecifier(!1,t.createIdentifier(i),r.getUnscopedHelperName(i)))));var h=e.getOriginalNode(n,e.isSourceFile);e.getOrCreateEmitNode(h).externalHelpers=!0}}}else{var y=p(t,n,i,a,o||s);y&&(c=t.createNamespaceImport(y))}if(c){var v=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,c),t.createStringLiteral(e.externalHelpersModuleNameText),void 0);return e.addEmitFlags(v,67108864),v}}},e.getOrCreateExternalHelpersModuleNameIfNeeded=p,e.getLocalNameForExternalImport=(t,r,n)=>{var i=e.getNamespaceDeclarationNode(r);if(i&&!e.isDefaultImport(r)&&!e.isExportNamespaceAsDefaultDeclaration(r)){var a=i.name;return e.isGeneratedIdentifier(a)?a:t.createIdentifier(e.getSourceTextOfNodeFromSourceFile(n,a)||e.idText(a))}return 266===r.kind&&r.importClause||272===r.kind&&r.moduleSpecifier?t.getGeneratedNameForNode(r):void 0},e.getExternalModuleNameLiteral=(t,r,n,i,a,o)=>{var s=e.getExternalModuleName(r);if(s&&e.isStringLiteral(s))return((e,t,r,n,i)=>_(r,n.getExternalModuleFileFromDeclaration(e),t,i))(r,i,t,a,o)||((e,t,r)=>{var n=r.renamedDependencies&&r.renamedDependencies.get(t.text);return n?e.createStringLiteral(n):void 0})(t,s,n)||t.cloneNode(s)},e.tryGetModuleNameFromFile=_,e.getInitializerOfBindingOrAssignmentElement=function t(r){if(e.isDeclarationBindingElement(r))return r.initializer;if(e.isPropertyAssignment(r)){var n=r.initializer;return e.isAssignmentExpression(n,!0)?n.right:void 0}return e.isShorthandPropertyAssignment(r)?r.objectAssignmentInitializer:e.isAssignmentExpression(r,!0)?r.right:e.isSpreadElement(r)?t(r.expression):void 0},e.getTargetOfBindingOrAssignmentElement=m,e.getRestIndicatorOfBindingOrAssignmentElement=e=>{switch(e.kind){case 164:case 203:return e.dotDotDotToken;case 225:case 298:return e}},e.getPropertyNameOfBindingOrAssignmentElement=t=>{var r=g(t);return e.Debug.assert(!!r||e.isSpreadAssignment(t),"Invalid property name for binding element."),r},e.tryGetPropertyNameOfBindingOrAssignmentElement=g,e.getElementsOfBindingOrAssignmentPattern=e=>{switch(e.kind){case 201:case 202:case 204:return e.elements;case 205:return e.properties}},e.getJSDocTypeAliasName=t=>{if(t)for(var r=t;;){if(e.isIdentifier(r)||!r.body)return e.isIdentifier(r)?r:r.name;r=r.body}},e.canHaveIllegalType=e=>{var t=e.kind;return 171===t||173===t},e.canHaveIllegalTypeParameters=e=>{var t=e.kind;return 171===t||172===t||173===t},e.canHaveIllegalDecorators=e=>{var t=e.kind;return 296===t||297===t||256===t||171===t||176===t||170===t||276===t||237===t||258===t||259===t||260===t||261===t||265===t||266===t||264===t||272===t||271===t},e.canHaveIllegalModifiers=e=>{var t=e.kind;return 170===t||296===t||297===t||179===t||276===t||264===t},e.isTypeNodeOrTypeParameterDeclaration=e.or(e.isTypeNode,e.isTypeParameterDeclaration),e.isQuestionOrExclamationToken=e.or(e.isQuestionToken,e.isExclamationToken),e.isIdentifierOrThisTypeNode=e.or(e.isIdentifier,e.isThisTypeNode),e.isReadonlyKeywordOrPlusOrMinusToken=e.or(e.isReadonlyKeyword,e.isPlusToken,e.isMinusToken),e.isQuestionOrPlusOrMinusToken=e.or(e.isQuestionToken,e.isPlusToken,e.isMinusToken),e.isModuleName=e.or(e.isIdentifier,e.isStringLiteral),e.isLiteralTypeLikeExpression=t=>{var r=t.kind;return 104===r||110===r||95===r||e.isLiteralExpression(t)||e.isPrefixUnaryExpression(t)},e.isBinaryOperatorToken=t=>{return(t=>60===t||(e=>(e=>55===e||56===e)(e)||(e=>(e=>50===e||51===e||52===e)(e)||(e=>(e=>34===e||36===e||35===e||37===e)(e)||(e=>(e=>29===e||32===e||31===e||33===e||102===e||101===e)(e)||(e=>(e=>47===e||48===e||49===e)(e)||(e=>(e=>39===e||40===e)(e)||(e=>(e=>42===e)(e)||(e=>41===e||43===e||44===e)(e))(e))(e))(e))(e))(e))(e))(t)||e.isAssignmentOperator(t))(r=t.kind)||27===r;var r},(t=>{function r(t,n,i,a,o,s,l){var d=n>0?o[n-1]:void 0;return e.Debug.assertEqual(i[n],r),o[n]=t.onEnter(a[n],d,l),i[n]=c(t,r),n}function n(t,r,i,a,o,s,u){e.Debug.assertEqual(i[r],n),e.Debug.assertIsDefined(t.onLeft),i[r]=c(t,n);var p=t.onLeft(a[r].left,o[r],a[r]);return p?(d(r,a,p),l(r,i,a,o,p)):r}function i(t,r,n,a,o,s,l){return e.Debug.assertEqual(n[r],i),e.Debug.assertIsDefined(t.onOperator),n[r]=c(t,i),t.onOperator(a[r].operatorToken,o[r],a[r]),r}function a(t,r,n,i,o,s,u){e.Debug.assertEqual(n[r],a),e.Debug.assertIsDefined(t.onRight),n[r]=c(t,a);var p=t.onRight(i[r].right,o[r],i[r]);return p?(d(r,i,p),l(r,n,i,o,p)):r}function o(t,r,n,i,a,s,l){e.Debug.assertEqual(n[r],o),n[r]=c(t,o);var d=t.onExit(i[r],a[r]);if(r>0){if(r--,t.foldState){var u=n[r]===o?"right":"left";a[r]=t.foldState(a[r],d,u)}}else s.value=d;return r}function s(t,r,n,i,a,o,c){return e.Debug.assertEqual(n[r],s),r}function c(t,c){switch(c){case r:if(t.onLeft)return n;case n:if(t.onOperator)return i;case i:if(t.onRight)return a;case a:return o;case o:case s:return s;default:e.Debug.fail("Invalid state")}}function l(e,t,n,i,a){return t[++e]=r,n[e]=a,i[e]=void 0,e}function d(t,r,n){if(e.Debug.shouldAssert(2))for(;t>=0;)e.Debug.assert(r[t]!==n,"Circular traversal detected."),t--}t.enter=r,t.left=n,t.operator=i,t.right=a,t.exit=o,t.done=s,t.nextState=c})(y||(y={}));var v=function(e,t,r,n,i,a){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=n,this.onExit=i,this.foldState=a};e.createBinaryExpressionTrampoline=(t,r,n,i,a,o)=>{var s=new v(t,r,n,i,a,o);return(t,r)=>{for(var n={value:void 0},i=[y.enter],a=[t],o=[void 0],c=0;i[c]!==y.done;)c=i[c](s,c,i,a,o,n,r);return e.Debug.assertEqual(c,0),n.value}},e.elideNodes=(t,r)=>{if(void 0!==r)return 0===r.length?r:e.setTextRange(t.createNodeArray([],r.hasTrailingComma),r)}}(p),(e=>{e.setTextRange=(t,r)=>r?e.setTextRangePosEnd(t,r.pos,r.end):t,e.canHaveModifiers=e=>{var t=e.kind;return 163===t||164===t||166===t||167===t||168===t||169===t||171===t||172===t||173===t||176===t||180===t||213===t||214===t||226===t||237===t||256===t||257===t||258===t||259===t||260===t||261===t||265===t||266===t||271===t||272===t},e.canHaveDecorators=e=>{var t=e.kind;return 164===t||167===t||169===t||172===t||173===t||226===t||257===t}})(p),(e=>{var t,r,n,i,a,o,s,c,l;function d(e,t){return t&&e(t)}function u(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;n<i.length;n++){var a=e(i[n]);if(a)return a}}}function p(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function _(t){return e.forEach(t.statements,g)||(e=>4194304&e.flags?h(e):void 0)(t)}function g(t){return e.canHaveModifiers(t)&&((t,r)=>e.some(t.modifiers,(e=>93===e.kind)))(t)||e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)||e.isImportDeclaration(t)||e.isExportAssignment(t)||e.isExportDeclaration(t)?t:void 0}function h(t){return(t=>e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText)(t)?t:y(t,h)}function y(t,r,n){if(t&&!(t.kind<=160))switch(t.kind){case 161:return d(r,t.left)||d(r,t.right);case 163:return u(r,n,t.modifiers)||d(r,t.name)||d(r,t.constraint)||d(r,t.default)||d(r,t.expression);case 297:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||d(r,t.name)||d(r,t.questionToken)||d(r,t.exclamationToken)||d(r,t.equalsToken)||d(r,t.objectAssignmentInitializer);case 298:return d(r,t.expression);case 164:return u(r,n,t.modifiers)||d(r,t.dotDotDotToken)||d(r,t.name)||d(r,t.questionToken)||d(r,t.type)||d(r,t.initializer);case 167:return u(r,n,t.modifiers)||d(r,t.name)||d(r,t.questionToken)||d(r,t.exclamationToken)||d(r,t.type)||d(r,t.initializer);case 166:return u(r,n,t.modifiers)||d(r,t.name)||d(r,t.questionToken)||d(r,t.type)||d(r,t.initializer);case 296:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||d(r,t.name)||d(r,t.questionToken)||d(r,t.exclamationToken)||d(r,t.initializer);case 254:return d(r,t.name)||d(r,t.exclamationToken)||d(r,t.type)||d(r,t.initializer);case 203:return d(r,t.dotDotDotToken)||d(r,t.propertyName)||d(r,t.name)||d(r,t.initializer);case 176:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||u(r,n,t.typeParameters)||u(r,n,t.parameters)||d(r,t.type);case 180:case 179:return u(r,n,t.modifiers)||u(r,n,t.typeParameters)||u(r,n,t.parameters)||d(r,t.type);case 174:case 175:return u(r,n,t.typeParameters)||u(r,n,t.parameters)||d(r,t.type);case 169:return u(r,n,t.modifiers)||d(r,t.asteriskToken)||d(r,t.name)||d(r,t.questionToken)||d(r,t.exclamationToken)||u(r,n,t.typeParameters)||u(r,n,t.parameters)||d(r,t.type)||d(r,t.body);case 168:return u(r,n,t.modifiers)||d(r,t.name)||d(r,t.questionToken)||u(r,n,t.typeParameters)||u(r,n,t.parameters)||d(r,t.type);case 171:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||d(r,t.name)||u(r,n,t.typeParameters)||u(r,n,t.parameters)||d(r,t.type)||d(r,t.body);case 172:case 173:return u(r,n,t.modifiers)||d(r,t.name)||u(r,n,t.typeParameters)||u(r,n,t.parameters)||d(r,t.type)||d(r,t.body);case 256:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||d(r,t.asteriskToken)||d(r,t.name)||u(r,n,t.typeParameters)||u(r,n,t.parameters)||d(r,t.type)||d(r,t.body);case 213:return u(r,n,t.modifiers)||d(r,t.asteriskToken)||d(r,t.name)||u(r,n,t.typeParameters)||u(r,n,t.parameters)||d(r,t.type)||d(r,t.body);case 214:return u(r,n,t.modifiers)||u(r,n,t.typeParameters)||u(r,n,t.parameters)||d(r,t.type)||d(r,t.equalsGreaterThanToken)||d(r,t.body);case 170:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||d(r,t.body);case 178:return d(r,t.typeName)||u(r,n,t.typeArguments);case 177:return d(r,t.assertsModifier)||d(r,t.parameterName)||d(r,t.type);case 181:return d(r,t.exprName)||u(r,n,t.typeArguments);case 182:return u(r,n,t.members);case 183:return d(r,t.elementType);case 184:return u(r,n,t.elements);case 187:case 188:return u(r,n,t.types);case 189:return d(r,t.checkType)||d(r,t.extendsType)||d(r,t.trueType)||d(r,t.falseType);case 190:return d(r,t.typeParameter);case 200:return d(r,t.argument)||d(r,t.assertions)||d(r,t.qualifier)||u(r,n,t.typeArguments);case 295:return d(r,t.assertClause);case 191:case 193:return d(r,t.type);case 194:return d(r,t.objectType)||d(r,t.indexType);case 195:return d(r,t.readonlyToken)||d(r,t.typeParameter)||d(r,t.nameType)||d(r,t.questionToken)||d(r,t.type)||u(r,n,t.members);case 196:return d(r,t.literal);case 197:return d(r,t.dotDotDotToken)||d(r,t.name)||d(r,t.questionToken)||d(r,t.type);case 201:case 202:case 204:return u(r,n,t.elements);case 205:return u(r,n,t.properties);case 206:return d(r,t.expression)||d(r,t.questionDotToken)||d(r,t.name);case 207:return d(r,t.expression)||d(r,t.questionDotToken)||d(r,t.argumentExpression);case 208:case 209:return d(r,t.expression)||d(r,t.questionDotToken)||u(r,n,t.typeArguments)||u(r,n,t.arguments);case 210:return d(r,t.tag)||d(r,t.questionDotToken)||u(r,n,t.typeArguments)||d(r,t.template);case 211:return d(r,t.type)||d(r,t.expression);case 212:case 215:case 216:case 217:return d(r,t.expression);case 219:return d(r,t.operand);case 224:return d(r,t.asteriskToken)||d(r,t.expression);case 218:return d(r,t.expression);case 220:return d(r,t.operand);case 221:return d(r,t.left)||d(r,t.operatorToken)||d(r,t.right);case 229:return d(r,t.expression)||d(r,t.type);case 230:return d(r,t.expression);case 231:return d(r,t.name);case 222:return d(r,t.condition)||d(r,t.questionToken)||d(r,t.whenTrue)||d(r,t.colonToken)||d(r,t.whenFalse);case 225:return d(r,t.expression);case 235:case 262:return u(r,n,t.statements);case 305:return u(r,n,t.statements)||d(r,t.endOfFileToken);case 237:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||d(r,t.declarationList);case 255:return u(r,n,t.declarations);case 238:return d(r,t.expression);case 239:return d(r,t.expression)||d(r,t.thenStatement)||d(r,t.elseStatement);case 240:return d(r,t.statement)||d(r,t.expression);case 241:return d(r,t.expression)||d(r,t.statement);case 242:return d(r,t.initializer)||d(r,t.condition)||d(r,t.incrementor)||d(r,t.statement);case 243:return d(r,t.initializer)||d(r,t.expression)||d(r,t.statement);case 244:return d(r,t.awaitModifier)||d(r,t.initializer)||d(r,t.expression)||d(r,t.statement);case 245:case 246:return d(r,t.label);case 247:return d(r,t.expression);case 248:return d(r,t.expression)||d(r,t.statement);case 249:return d(r,t.expression)||d(r,t.caseBlock);case 263:return u(r,n,t.clauses);case 289:return d(r,t.expression)||u(r,n,t.statements);case 290:return u(r,n,t.statements);case 250:return d(r,t.label)||d(r,t.statement);case 251:return d(r,t.expression);case 252:return d(r,t.tryBlock)||d(r,t.catchClause)||d(r,t.finallyBlock);case 292:return d(r,t.variableDeclaration)||d(r,t.block);case 165:return d(r,t.expression);case 257:case 226:return u(r,n,t.modifiers)||d(r,t.name)||u(r,n,t.typeParameters)||u(r,n,t.heritageClauses)||u(r,n,t.members);case 258:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||d(r,t.name)||u(r,n,t.typeParameters)||u(r,n,t.heritageClauses)||u(r,n,t.members);case 259:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||d(r,t.name)||u(r,n,t.typeParameters)||d(r,t.type);case 260:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||d(r,t.name)||u(r,n,t.members);case 299:return d(r,t.name)||d(r,t.initializer);case 261:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||d(r,t.name)||d(r,t.body);case 265:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||d(r,t.name)||d(r,t.moduleReference);case 266:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||d(r,t.importClause)||d(r,t.moduleSpecifier)||d(r,t.assertClause);case 267:return d(r,t.name)||d(r,t.namedBindings);case 293:return u(r,n,t.elements);case 294:return d(r,t.name)||d(r,t.value);case 264:return u(r,n,t.illegalDecorators)||d(r,t.name);case 268:case 274:return d(r,t.name);case 269:case 273:return u(r,n,t.elements);case 272:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||d(r,t.exportClause)||d(r,t.moduleSpecifier)||d(r,t.assertClause);case 270:case 275:return d(r,t.propertyName)||d(r,t.name);case 271:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers)||d(r,t.expression);case 223:return d(r,t.head)||u(r,n,t.templateSpans);case 233:return d(r,t.expression)||d(r,t.literal);case 198:return d(r,t.head)||u(r,n,t.templateSpans);case 199:return d(r,t.type)||d(r,t.literal);case 162:return d(r,t.expression);case 291:return u(r,n,t.types);case 228:return d(r,t.expression)||u(r,n,t.typeArguments);case 277:return d(r,t.expression);case 276:return u(r,n,t.illegalDecorators)||u(r,n,t.modifiers);case 351:return u(r,n,t.elements);case 278:return d(r,t.openingElement)||u(r,n,t.children)||d(r,t.closingElement);case 282:return d(r,t.openingFragment)||u(r,n,t.children)||d(r,t.closingFragment);case 279:case 280:return d(r,t.tagName)||u(r,n,t.typeArguments)||d(r,t.attributes);case 286:return u(r,n,t.properties);case 285:return d(r,t.name)||d(r,t.initializer);case 287:return d(r,t.expression);case 288:return d(r,t.dotDotDotToken)||d(r,t.expression);case 281:return d(r,t.tagName);case 185:case 186:case 309:case 315:case 314:case 316:case 318:return d(r,t.type);case 317:return u(r,n,t.parameters)||d(r,t.type);case 320:return("string"==typeof t.comment?void 0:u(r,n,t.comment))||u(r,n,t.tags);case 346:return d(r,t.tagName)||d(r,t.name)||("string"==typeof t.comment?void 0:u(r,n,t.comment));case 310:return d(r,t.name);case 311:return d(r,t.left)||d(r,t.right);case 340:case 347:return d(r,t.tagName)||(t.isNameFirst?d(r,t.name)||d(r,t.typeExpression)||("string"==typeof t.comment?void 0:u(r,n,t.comment)):d(r,t.typeExpression)||d(r,t.name)||("string"==typeof t.comment?void 0:u(r,n,t.comment)));case 330:return d(r,t.tagName)||("string"==typeof t.comment?void 0:u(r,n,t.comment));case 329:case 328:return d(r,t.tagName)||d(r,t.class)||("string"==typeof t.comment?void 0:u(r,n,t.comment));case 344:return d(r,t.tagName)||d(r,t.constraint)||u(r,n,t.typeParameters)||("string"==typeof t.comment?void 0:u(r,n,t.comment));case 345:return d(r,t.tagName)||(t.typeExpression&&309===t.typeExpression.kind?d(r,t.typeExpression)||d(r,t.fullName)||("string"==typeof t.comment?void 0:u(r,n,t.comment)):d(r,t.fullName)||d(r,t.typeExpression)||("string"==typeof t.comment?void 0:u(r,n,t.comment)));case 338:return d(r,t.tagName)||d(r,t.fullName)||d(r,t.typeExpression)||("string"==typeof t.comment?void 0:u(r,n,t.comment));case 341:case 343:case 342:case 339:return d(r,t.tagName)||d(r,t.typeExpression)||("string"==typeof t.comment?void 0:u(r,n,t.comment));case 323:return e.forEach(t.typeParameters,r)||e.forEach(t.parameters,r)||d(r,t.type);case 324:case 325:case 326:return d(r,t.name);case 322:return e.forEach(t.jsDocPropertyTags,r);case 327:case 332:case 333:case 334:case 335:case 336:case 331:case 337:return d(r,t.tagName)||("string"==typeof t.comment?void 0:u(r,n,t.comment));case 350:return d(r,t.expression)}}function v(e){var t=[];return y(e,r,r),t;function r(e){t.unshift(e)}}function b(e){e.externalModuleIndicator=_(e)}function E(e){return void 0!==e.externalModuleIndicator}function x(t){return e.fileExtensionIsOneOf(t,e.supportedDeclarationExtensions)}function D(t,r){for(var n=[],i=0,a=e.getLeadingCommentRanges(r,0)||e.emptyArray;i<a.length;i++){var o=a[i];N(n,o,r.substring(o.pos,o.end))}t.pragmas=new e.Map;for(var s=0,c=n;s<c.length;s++){var l=c[s];if(t.pragmas.has(l.name)){var d=t.pragmas.get(l.name);d instanceof Array?d.push(l.args):t.pragmas.set(l.name,[d,l.args])}else t.pragmas.set(l.name,l.args)}}function S(t,r){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach(((n,i)=>{switch(i){case"reference":var a=t.referencedFiles,o=t.typeReferenceDirectives,s=t.libReferenceDirectives;e.forEach(e.toArray(n),(n=>{var i=n.arguments,c=i.types,l=i.lib,d=i.path,u=i["resolution-mode"];if(n.arguments["no-default-lib"])t.hasNoDefaultLib=!0;else if(c){var p=((t,r,n,i)=>{if(t)return"import"===t?e.ModuleKind.ESNext:"require"===t?e.ModuleKind.CommonJS:void i(r,n-r,e.Diagnostics.resolution_mode_should_be_either_require_or_import)})(u,c.pos,c.end,r);o.push(m({pos:c.pos,end:c.end,fileName:c.value},p?{resolutionMode:p}:{}))}else l?s.push({pos:l.pos,end:l.end,fileName:l.value}):d?a.push({pos:d.pos,end:d.end,fileName:d.value}):r(n.range.pos,n.range.end-n.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)}));break;case"amd-dependency":t.amdDependencies=e.map(e.toArray(n),(e=>({name:e.arguments.name,path:e.arguments.path})));break;case"amd-module":if(n instanceof Array)for(var c=0,l=n;c<l.length;c++){var d=l[c];t.moduleName&&r(d.range.pos,d.range.end-d.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=d.arguments.name}else t.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":e.forEach(e.toArray(n),(e=>{(!t.checkJsDirective||e.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}}))}!(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={})),(e=>{e[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse"})(r||(r={})),e.parseBaseNodeFactory={createBaseSourceFileNode:t=>new(s||(s=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(a||(a=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(o||(o=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(i||(i=e.objectAllocator.getTokenConstructor()))(t,-1,-1),createBaseNode:t=>new(n||(n=e.objectAllocator.getNodeConstructor()))(t,-1,-1)},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=p,e.isFileProbablyExternalModule=_,e.forEachChild=y,e.forEachChildRecursively=(t,r,n)=>{for(var i=v(t),a=[];a.length<i.length;)a.push(t);for(;0!==i.length;){var o=i.pop(),s=a.pop();if(e.isArray(o)){if(n&&(l=n(o,s))){if("skip"===l)continue;return l}for(var c=o.length-1;c>=0;--c)i.push(o[c]),a.push(s)}else{var l;if(l=r(o,s)){if("skip"===l)continue;return l}if(o.kind>=161)for(var d=0,u=v(o);d<u.length;d++){var p=u[d];i.push(p),a.push(o)}}}},e.createSourceFile=(t,r,n,i,a)=>{var o;void 0===i&&(i=!1),null===e.tracing||void 0===e.tracing||e.tracing.push("parse","createSourceFile",{path:t},!0),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(t);var s="object"==typeof n?n:{languageVersion:n},l=s.languageVersion,d=s.setExternalModuleIndicator,u=s.impliedNodeFormat;if(100===l)o=c.parseSourceFile(t,r,l,void 0,i,6,e.noop);else{var p=void 0===u?d:e=>(e.impliedNodeFormat=u,(d||b)(e));o=c.parseSourceFile(t,r,l,void 0,i,a,p)}return e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o},e.parseIsolatedEntityName=(e,t)=>c.parseIsolatedEntityName(e,t),e.parseJsonText=(e,t)=>c.parseJsonText(e,t),e.isExternalModule=E,e.updateSourceFile=(e,t,r,n)=>{void 0===n&&(n=!1);var i=l.updateSourceFile(e,t,r,n);return i.flags|=6291456&e.flags,i},e.parseIsolatedJSDocComment=(e,t,r)=>{var n=c.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&c.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=(e,t,r)=>c.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r),(t=>{var r,n,i,a,o,s=e.createScanner(99,!0);function c(e){return A++,e}var d,u,_,m,g,h,y,v,T,C,A,k,N,w,P,I,O,M={createBaseSourceFileNode:e=>c(new o(e,0,0)),createBaseIdentifierNode:e=>c(new i(e,0,0)),createBasePrivateIdentifierNode:e=>c(new a(e,0,0)),createBaseTokenNode:e=>c(new n(e,0,0)),createBaseNode:e=>c(new r(e,0,0))},R=e.createNodeFactory(11,M),L=!0,B=!1;function U(t,r,n,i,a){void 0===n&&(n=2),void 0===a&&(a=!1),j(t,r,n,i,6),u=O,xe();var o,s,c=he();if(1===ve())o=Ye([],c,c),s=Ge();else{for(var l=void 0;1!==ve();){var d=void 0;switch(ve()){case 22:d=Nn();break;case 110:case 95:case 104:d=Ge();break;case 40:d=Fe((()=>8===xe()&&58!==xe()))?nn():Fn();break;case 8:case 10:if(Fe((()=>58!==xe()))){d=jt();break}default:d=Fn()}l&&e.isArray(l)?l.push(d):l?l=[l,d]:(l=d,1!==ve()&&pe(e.Diagnostics.Unexpected_token))}var p=e.isArray(l)?Qe(R.createArrayLiteralExpression(l),c):e.Debug.checkDefined(l),_=R.createExpressionStatement(p);Qe(_,c),o=Ye([_],c),s=Je(1,e.Diagnostics.Unexpected_token)}var f=G(t,2,6,!1,o,s,u,e.noop);a&&J(f),f.nodeCount=A,f.identifierCount=w,f.identifiers=k,f.parseDiagnostics=e.attachFileToDiagnostics(y,f),v&&(f.jsDocDiagnostics=e.attachFileToDiagnostics(v,f));var m=f;return V(),m}function j(t,c,l,p,f){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getPrivateIdentifierConstructor(),o=e.objectAllocator.getSourceFileConstructor(),d=e.normalizePath(t),_=c,m=l,T=p,g=f,h=e.getLanguageVariant(f),y=[],P=0,k=new e.Map,N=new e.Map,w=0,A=0,u=0,L=!0,g){case 1:case 2:O=262144;break;case 6:O=67371008;break;default:O=0}B=!1,s.setText(_),s.setOnError(ge),s.setScriptTarget(m),s.setLanguageVariant(h)}function V(){s.clearCommentDirectives(),s.setText(""),s.setOnError(void 0),_=void 0,m=void 0,T=void 0,g=void 0,h=void 0,u=0,y=void 0,v=void 0,P=0,k=void 0,I=void 0,L=!0}function z(t,r,n,i){var a=x(d);a&&(O|=16777216),u=O,xe();var o=St(0,Jn);e.Debug.assert(1===ve());var c=K(Ge()),l=G(d,t,n,a,o,c,u,i);return D(l,_),S(l,((t,r,n)=>{y.push(e.createDetachedDiagnostic(d,t,r,n))})),l.commentDirectives=s.getCommentDirectives(),l.nodeCount=A,l.identifierCount=w,l.identifiers=k,l.parseDiagnostics=e.attachFileToDiagnostics(y,l),v&&(l.jsDocDiagnostics=e.attachFileToDiagnostics(v,l)),r&&J(l),l}function H(e,t){return t?K(e):e}t.parseSourceFile=(t,r,n,i,a,o,s)=>{var c;if(void 0===a&&(a=!1),6===(o=e.ensureScriptKind(t,o))){var l=U(t,r,n,i,a);return e.convertToObjectWorker(l,null===(c=l.statements[0])||void 0===c?void 0:c.expression,l.parseDiagnostics,!1,void 0,void 0),l.referencedFiles=e.emptyArray,l.typeReferenceDirectives=e.emptyArray,l.libReferenceDirectives=e.emptyArray,l.amdDependencies=e.emptyArray,l.hasNoDefaultLib=!1,l.pragmas=e.emptyMap,l}j(t,r,n,i,o);var d=z(n,a,o,s||b);return V(),d},t.parseIsolatedEntityName=(e,t)=>{j("",e,t,void 0,1),xe();var r=It(!0),n=1===ve()&&!y.length;return V(),n?r:void 0},t.parseJsonText=U;var W=!1;function K(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,_),(e=>Be.parseJSDocComment(t,e.pos,e.end-e.pos)));return r.length&&(t.jsDoc=r),W&&(W=!1,t.flags|=268435456),t}function J(t){e.setParentRecursive(t,!0)}function G(t,r,n,i,a,o,c,d){var u=R.createSourceFile(a,o,c);return e.setTextRangePosWidth(u,0,_.length),p(u),!i&&E(u)&&67108864&u.transformFlags&&p(u=(t=>{var r=T,n=l.createSyntaxCursor(t);T={currentNode(e){var t=n.currentNode(e);return L&&t&&_(t)&&(t.intersectsChange=!0),t}};var i=[],a=y;y=[];for(var o=0,c=f(t.statements,0),d=()=>{var r=t.statements[o],n=t.statements[c];e.addRange(i,t.statements,o,c),o=m(t.statements,c);var l=e.findIndex(a,(e=>e.start>=r.pos)),d=l>=0?e.findIndex(a,(e=>e.start>=n.pos),l):-1;l>=0&&e.addRange(y,a,l,d>=0?d:void 0),we((()=>{var e=O;for(O|=32768,s.setTextPos(n.pos),xe();1!==ve();){var r=s.getStartPos(),a=Tt(0,Jn);if(i.push(a),r===s.getStartPos()&&xe(),o>=0){var c=t.statements[o];if(a.end===c.pos)break;a.end>c.pos&&(o=m(t.statements,o+1))}}O=e}),2),c=o>=0?f(t.statements,o):-1};-1!==c;)d();if(o>=0){var u=t.statements[o];e.addRange(i,t.statements,o);var p=e.findIndex(a,(e=>e.start>=u.pos));p>=0&&e.addRange(y,a,p)}return T=r,R.updateSourceFile(t,e.setTextRange(R.createNodeArray(i),t.statements));function _(e){return!(32768&e.flags||!(67108864&e.transformFlags))}function f(e,t){for(var r=t;r<e.length;r++)if(_(e[r]))return r;return-1}function m(e,t){for(var r=t;r<e.length;r++)if(!_(e[r]))return r;return-1}})(u)),u;function p(a){a.text=_,a.bindDiagnostics=[],a.bindSuggestionDiagnostics=void 0,a.languageVersion=r,a.fileName=t,a.languageVariant=e.getLanguageVariant(n),a.isDeclarationFile=i,a.scriptKind=n,d(a),a.setExternalModuleIndicator=d}}function $(e,t){e?O|=t:O&=~t}function q(e){$(e,4096)}function X(e){$(e,8192)}function Y(e){$(e,16384)}function Q(e){$(e,32768)}function Z(e,t){var r=e&O;if(r){$(!1,r);var n=t();return $(!0,r),n}return t()}function ee(e,t){var r=e&~O;if(r){$(!0,r);var n=t();return $(!1,r),n}return t()}function te(e){return Z(4096,e)}function re(e){return Z(65536,e)}function ne(e){return ee(65536,e)}function ie(e){return ee(32768,e)}function ae(e){return Z(32768,e)}function oe(e){return 0!=(O&e)}function se(){return oe(8192)}function ce(){return oe(4096)}function le(){return oe(65536)}function de(){return oe(16384)}function ue(){return oe(32768)}function pe(e,t){return fe(s.getTokenPos(),s.getTextPos(),e,t)}function _e(t,r,n,i){var a,o=e.lastOrUndefined(y);return o&&t===o.start||(a=e.createDetachedDiagnostic(d,t,r,n,i),y.push(a)),B=!0,a}function fe(e,t,r,n){return _e(e,t-e,r,n)}function me(e,t,r){fe(e.pos,e.end,t,r)}function ge(e,t){_e(s.getTextPos(),t,e)}function he(){return s.getStartPos()}function ye(){return s.hasPrecedingJSDocComment()}function ve(){return C}function be(){return C=s.scan()}function Ee(e){return xe(),e()}function xe(){return e.isKeyword(C)&&(s.hasUnicodeEscape()||s.hasExtendedUnicodeEscape())&&fe(s.getTokenPos(),s.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),be()}function De(){return C=s.scanJsDocToken()}function Se(){return C=s.reScanGreaterToken()}function Te(){return C=s.reScanTemplateHeadOrNoSubstitutionTemplate()}function Ce(){return C=s.reScanLessThanToken()}function Ae(){return C=s.reScanHashToken()}function ke(){return C=s.scanJsxIdentifier()}function Ne(){return C=s.scanJsxToken()}function we(t,r){var n=C,i=y.length,a=B,o=O,c=0!==r?s.lookAhead(t):s.tryScan(t);return e.Debug.assert(o===O),c&&0===r||(C=n,2!==r&&(y.length=i),B=a),c}function Fe(e){return we(e,1)}function Pe(e){return we(e,0)}function Ie(){return 79===ve()||ve()>116}function Oe(){return 79===ve()||(125!==ve()||!se())&&(132!==ve()||!ue())&&ve()>116}function Me(t,r,n){return void 0===n&&(n=!0),ve()===t?(n&&xe(),!0):(r?pe(r):pe(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}t.fixupParentReferences=J;var Re,Le,Be,Ue=Object.keys(e.textToKeywordObj).filter((e=>e.length>2));function je(t){var r;if(e.isTaggedTemplateExpression(t))fe(e.skipTrivia(_,t.template.pos),t.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var n=e.isIdentifier(t)?e.idText(t):void 0;if(n&&e.isIdentifierText(n,m)){var i=e.skipTrivia(_,t.pos);switch(n){case"const":case"let":case"var":return void fe(i,t.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void Ve(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void fe(i,s.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void Ve(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void Ve(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63)}var a=null!==(r=e.getSpellingSuggestion(n,Ue,(e=>e)))&&void 0!==r?r:(t=>{for(var r=0,n=Ue;r<n.length;r++){var i=n[r];if(t.length>i.length+2&&e.startsWith(t,i))return"".concat(i," ").concat(t.slice(i.length))}})(n);a?fe(i,t.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,a):0!==ve()&&fe(i,t.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else pe(e.Diagnostics._0_expected,e.tokenToString(26))}}function Ve(e,t,r){ve()===r?pe(t):pe(e,s.getTokenValue())}function ze(t){return ve()===t?(De(),!0):(pe(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function He(t,r,n,i){if(ve()!==r){var a=pe(e.Diagnostics._0_expected,e.tokenToString(r));n&&a&&e.addRelatedInfo(a,e.createDetachedDiagnostic(d,i,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,e.tokenToString(t),e.tokenToString(r)))}else xe()}function We(e){return ve()===e&&(xe(),!0)}function Ke(e){if(ve()===e)return Ge()}function Je(t,r,n){return Ke(t)||Ze(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function Ge(){var e=he(),t=ve();return xe(),Qe(R.createToken(t),e)}function $e(){return 26===ve()||19===ve()||1===ve()||s.hasPrecedingLineBreak()}function qe(){return!!$e()&&(26===ve()&&xe(),!0)}function Xe(){return qe()||Me(26)}function Ye(t,r,n,i){var a=R.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:s.getStartPos()),a}function Qe(t,r,n){return e.setTextRangePosEnd(t,r,null!=n?n:s.getStartPos()),O&&(t.flags|=O),B&&(B=!1,t.flags|=131072),t}function Ze(t,r,n,i){r?_e(s.getStartPos(),0,n,i):n&&pe(n,i);var a=he();return Qe(79===t?R.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?R.createTemplateLiteralLikeNode(t,"","",void 0):8===t?R.createNumericLiteral("",void 0):10===t?R.createStringLiteral("",void 0):276===t?R.createMissingDeclaration():R.createToken(t),a)}function et(e){var t=k.get(e);return void 0===t&&k.set(e,t=e),t}function tt(t,r,n){if(t){w++;var i=he(),a=ve(),o=et(s.getTokenValue());return be(),Qe(R.createIdentifier(o,void 0,a),i)}if(80===ve())return pe(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),tt(!0);if(0===ve()&&s.tryScan((()=>79===s.reScanInvalidIdentifier())))return tt(!0);w++;var c=1===ve(),l=s.isReservedWord(),d=s.getTokenText(),u=l?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Ze(79,c,r||u,d)}function rt(e){return tt(Ie(),void 0,e)}function nt(e,t){return tt(Oe(),e,t)}function it(t){return tt(e.tokenIsIdentifierOrKeyword(ve()),t)}function at(){return e.tokenIsIdentifierOrKeyword(ve())||10===ve()||8===ve()}function ot(){return(e=>{if(10===ve()||8===ve()){var t=jt();return t.text=et(t.text),t}return 1,22===ve()?(()=>{var e=he();Me(22);var t=te(Wr);return Me(23),Qe(R.createComputedPropertyName(t),e)})():80===ve()?st():it()})()}function st(){var e,t,r=he(),n=R.createPrivateIdentifier((e=s.getTokenText(),void 0===(t=N.get(e))&&N.set(e,t=e),t));return xe(),Qe(n,r)}function ct(e){return ve()===e&&Pe(dt)}function lt(){return xe(),!s.hasPrecedingLineBreak()&&_t()}function dt(){switch(ve()){case 85:return 92===xe();case 93:return xe(),88===ve()?Fe(ft):152===ve()?Fe(pt):ut();case 88:return ft();case 124:case 136:case 149:return xe(),_t();default:return lt()}}function ut(){return 41!==ve()&&127!==ve()&&18!==ve()&&_t()}function pt(){return xe(),ut()}function _t(){return 22===ve()||18===ve()||41===ve()||25===ve()||at()}function ft(){return xe(),84===ve()||98===ve()||118===ve()||126===ve()&&Fe(Un)||131===ve()&&Fe(jn)}function mt(t,r){if(Ct(t))return!0;switch(t){case 0:case 1:case 3:return!(26===ve()&&r)&&Wn();case 2:return 82===ve()||88===ve();case 4:return Fe(lr);case 5:return Fe(ui)||26===ve()&&!r;case 6:return 22===ve()||at();case 12:switch(ve()){case 22:case 41:case 25:case 24:return!0;default:return at()}case 18:return at();case 9:return 22===ve()||25===ve()||at();case 24:return e.tokenIsIdentifierOrKeyword(ve())||10===ve();case 7:return 18===ve()?Fe(gt):r?Oe()&&!bt():zr()&&!bt();case 8:return Zn();case 10:return 27===ve()||25===ve()||Zn();case 19:return 101===ve()||Oe();case 15:switch(ve()){case 27:case 24:return!0}case 11:return 25===ve()||Hr();case 16:return Qt(!1);case 17:return Qt(!0);case 20:case 21:return 27===ve()||Ar();case 22:return Ci();case 23:return e.tokenIsIdentifierOrKeyword(ve());case 13:return e.tokenIsIdentifierOrKeyword(ve())||18===ve();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function gt(){if(e.Debug.assert(18===ve()),19===xe()){var t=xe();return 27===t||18===t||94===t||117===t}return!0}function ht(){return xe(),Oe()}function yt(){return xe(),e.tokenIsIdentifierOrKeyword(ve())}function vt(){return xe(),e.tokenIsIdentifierOrKeywordOrGreaterThan(ve())}function bt(){return(117===ve()||94===ve())&&Fe(Et)}function Et(){return xe(),Hr()}function xt(){return xe(),Ar()}function Dt(e){if(1===ve())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 19===ve();case 3:return 19===ve()||82===ve()||88===ve();case 7:return 18===ve()||94===ve()||117===ve();case 8:return!!$e()||!!Zr(ve())||38===ve();case 19:return 31===ve()||20===ve()||18===ve()||94===ve()||117===ve();case 11:return 21===ve()||26===ve();case 15:case 21:case 10:return 23===ve();case 17:case 16:case 18:return 21===ve()||23===ve();case 20:return 27!==ve();case 22:return 18===ve()||19===ve();case 13:return 31===ve()||43===ve();case 14:return 29===ve()&&Fe(Ii);default:return!1}}function St(e,t){var r=P;P|=1<<e;for(var n=[],i=he();!Dt(e);)if(mt(e,!1))n.push(Tt(e,t));else if(kt(e))break;return P=r,Ye(n,i)}function Tt(e,t){var r=Ct(e);return r?At(r):t()}function Ct(t,r){if(T&&(e=>{switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1})(t)&&!B){var n=T.currentNode(null!=r?r:s.getStartPos());if(!(e.nodeIsMissing(n)||n.intersectsChange||e.containsParseError(n))&&(50720768&n.flags)===O&&((e,t)=>{switch(t){case 5:return(e=>{if(e)switch(e.kind){case 171:case 176:case 172:case 173:case 167:case 234:return!0;case 169:var t=e;return!(79===t.name.kind&&134===t.name.originalKeywordKind)}return!1})(e);case 2:return(e=>{if(e)switch(e.kind){case 289:case 290:return!0}return!1})(e);case 0:case 1:case 3:return(e=>{if(e)switch(e.kind){case 256:case 237:case 235:case 239:case 238:case 251:case 247:case 249:case 246:case 245:case 243:case 244:case 242:case 241:case 248:case 236:case 252:case 250:case 240:case 253:case 266:case 265:case 272:case 271:case 261:case 257:case 258:case 260:case 259:return!0}return!1})(e);case 6:return(e=>299===e.kind)(e);case 4:return(e=>{if(e)switch(e.kind){case 175:case 168:case 176:case 166:case 174:return!0}return!1})(e);case 8:return(e=>254===e.kind&&void 0===e.initializer)(e);case 17:case 16:return(e=>164===e.kind&&void 0===e.initializer)(e)}return!1})(n,t))return n.jsDocCache&&(n.jsDocCache=void 0),n}}function At(e){return s.setTextPos(e.end),xe(),e}function kt(t){return(t=>{switch(t){case 0:return 88===ve()?pe(e.Diagnostics._0_expected,e.tokenToString(93)):pe(e.Diagnostics.Declaration_or_statement_expected);case 1:return pe(e.Diagnostics.Declaration_or_statement_expected);case 2:return pe(e.Diagnostics.case_or_default_expected);case 3:return pe(e.Diagnostics.Statement_expected);case 18:case 4:return pe(e.Diagnostics.Property_or_signature_expected);case 5:return pe(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return pe(e.Diagnostics.Enum_member_expected);case 7:return pe(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(ve())?pe(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(ve())):pe(e.Diagnostics.Variable_declaration_expected);case 9:return pe(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return pe(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return pe(e.Diagnostics.Argument_expression_expected);case 12:return pe(e.Diagnostics.Property_assignment_expected);case 15:return pe(e.Diagnostics.Expression_or_comma_expected);case 17:return pe(e.Diagnostics.Parameter_declaration_expected);case 16:return e.isKeyword(ve())?pe(e.Diagnostics._0_is_not_allowed_as_a_parameter_name,e.tokenToString(ve())):pe(e.Diagnostics.Parameter_declaration_expected);case 19:return pe(e.Diagnostics.Type_parameter_declaration_expected);case 20:return pe(e.Diagnostics.Type_argument_expected);case 21:return pe(e.Diagnostics.Type_expected);case 22:return pe(e.Diagnostics.Unexpected_token_expected);case 23:case 13:case 14:return pe(e.Diagnostics.Identifier_expected);case 24:return pe(e.Diagnostics.Identifier_or_string_literal_expected);case 25:return e.Debug.fail("ParsingContext.Count used as a context");default:e.Debug.assertNever(t)}})(t),!!(()=>{for(var e=0;e<25;e++)if(P&1<<e&&(mt(e,!0)||Dt(e)))return!0;return!1})()||(xe(),!1)}function Nt(e,t,r){var n=P;P|=1<<e;for(var i=[],a=he(),o=-1;;)if(mt(e,!1)){var c=s.getStartPos(),l=Tt(e,t);if(!l)return void(P=n);if(i.push(l),o=s.getTokenPos(),We(27))continue;if(o=-1,Dt(e))break;Me(27,wt(e)),r&&26===ve()&&!s.hasPrecedingLineBreak()&&xe(),c===s.getStartPos()&&xe()}else{if(Dt(e))break;if(kt(e))break}return P=n,Ye(i,a,void 0,o>=0)}function wt(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function Ft(){var e=Ye([],he());return e.isMissingList=!0,e}function Pt(e,t,r,n){if(Me(r)){var i=Nt(e,t);return Me(n),i}return Ft()}function It(e,t){for(var r=he(),n=e?it(t):nt(t),i=he();We(24);){if(29===ve()){n.jsdocDotPos=i;break}i=he(),n=Qe(R.createQualifiedName(n,Mt(e,!1)),r)}return n}function Ot(e,t){return Qe(R.createQualifiedName(e,t),e.pos)}function Mt(t,r){if(s.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(ve())&&Fe(Bn))return Ze(79,!0,e.Diagnostics.Identifier_expected);if(80===ve()){var n=st();return r?n:Ze(79,!0,e.Diagnostics.Identifier_expected)}return t?it():nt()}function Rt(e){var t=he();return Qe(R.createTemplateExpression(Vt(e),(e=>{var t,r=he(),n=[];do{t=Ut(e),n.push(t)}while(16===t.literal.kind);return Ye(n,r)})(e)),t)}function Lt(){var e=he();return Qe(R.createTemplateLiteralTypeSpan(jr(),Bt(!1)),e)}function Bt(t){return 19===ve()?((e=>{C=s.reScanTemplateToken(e)})(t),r=zt(ve()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):Je(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}function Ut(e){var t=he();return Qe(R.createTemplateSpan(te(Wr),Bt(e)),t)}function jt(){return zt(ve())}function Vt(t){t&&Te();var r=zt(ve());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}function zt(t){var r=he(),n=e.isTemplateLiteralKind(t)?R.createTemplateLiteralLikeNode(t,s.getTokenValue(),(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?R.createNumericLiteral(s.getTokenValue(),s.getNumericLiteralFlags()):10===t?R.createStringLiteral(s.getTokenValue(),void 0,s.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?R.createLiteralLikeNode(t,s.getTokenValue()):e.Debug.fail();return s.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),s.isUnterminated()&&(n.isUnterminated=!0),xe(),Qe(n,r)}function Ht(){return It(!0,e.Diagnostics.Type_expected)}function Wt(){if(!s.hasPrecedingLineBreak()&&29===Ce())return Pt(20,jr,29,31)}function Kt(){var e=he();return Qe(R.createTypeReferenceNode(Ht(),Wt()),e)}function Jt(t){switch(t.kind){case 178:return e.nodeIsMissing(t.typeName);case 179:case 180:var r=t,n=r.parameters,i=r.type;return!!n.isMissingList||Jt(i);case 191:return Jt(t.type);default:return!1}}function Gt(){var e=he();return xe(),Qe(R.createThisTypeNode(),e)}function $t(){var e,t=he();return 108!==ve()&&103!==ve()||(e=it(),Me(58)),Qe(R.createParameterDeclaration(void 0,void 0,e,void 0,qt(),void 0),t)}function qt(){s.setInJSDocType(!0);var e=he();if(We(141)){var t=R.createJSDocNamepathType(void 0);e:for(;;)switch(ve()){case 19:case 1:case 27:case 5:break e;default:De()}return s.setInJSDocType(!1),Qe(t,e)}var r=We(25),n=Br();return s.setInJSDocType(!1),r&&(n=Qe(R.createJSDocVariadicType(n),e)),63===ve()?(xe(),Qe(R.createJSDocOptionalType(n),e)):n}function Xt(){var e,t,r=he(),n=hi(),i=nt();We(94)&&(Ar()||!Hr()?e=jr():t=an());var a=We(63)?jr():void 0,o=R.createTypeParameterDeclaration(n,i,e,a);return o.expression=t,Qe(o,r)}function Yt(){if(29===ve())return Pt(19,Xt,29,31)}function Qt(t){return 25===ve()||Zn()||e.isModifierKind(ve())||59===ve()||Ar(!t)}function Zt(e){return er(e)}function er(t,r){void 0===r&&(r=!0);var n=he(),i=ye(),a=t?ie(fi):ae(fi);if(108===ve()){var o=R.createParameterDeclaration(a,void 0,tt(!0),void 0,Vr(),void 0);return a&&me(a[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),H(Qe(o,n),i)}var s=L;L=!1;var c=gi(a,hi()),l=Ke(25);if(r||Ie()||22===ve()||18===ve()){var d=H(Qe(R.createParameterDeclaration(c,l,(t=>{var r=ei(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(ve())&&xe(),r})(c),Ke(57),Vr(),Kr()),n),i);return L=s,d}}function tr(t,r){if(((t,r)=>38===t?(Me(t),!0):!!We(58)||!(!r||38!==ve())&&(pe(e.Diagnostics._0_expected,e.tokenToString(58)),xe(),!0))(t,r))return re(Br)}function rr(e,t){var r=se(),n=ue();X(!!(1&e)),Q(!!(2&e));var i=32&e?Nt(17,$t):Nt(16,(()=>t?Zt(n):er(n,!1)));return X(r),Q(n),i}function nr(e){if(!Me(20))return Ft();var t=rr(e,!0);return Me(21),t}function ir(){We(27)||Xe()}function ar(e){var t=he(),r=ye();175===e&&Me(103);var n=Yt(),i=nr(4),a=tr(58,!0);return ir(),H(Qe(174===e?R.createCallSignature(n,i,a):R.createConstructSignature(n,i,a),t),r)}function or(){return 22===ve()&&Fe(sr)}function sr(){if(xe(),25===ve()||23===ve())return!0;if(e.isModifierKind(ve())){if(xe(),Oe())return!0}else{if(!Oe())return!1;xe()}return 58===ve()||27===ve()||57===ve()&&(xe(),58===ve()||27===ve()||23===ve())}function cr(e,t,r,n){var i=Pt(16,(()=>Zt(!1)),22,23),a=Vr();ir();var o=R.createIndexSignature(n,i,a);return o.illegalDecorators=r,H(Qe(o,e),t)}function lr(){if(20===ve()||29===ve()||136===ve()||149===ve())return!0;for(var t=!1;e.isModifierKind(ve());)t=!0,xe();return 22===ve()||(at()&&(t=!0,xe()),!!t&&(20===ve()||29===ve()||57===ve()||58===ve()||27===ve()||$e()))}function dr(){if(20===ve()||29===ve())return ar(174);if(103===ve()&&Fe(ur))return ar(175);var e=he(),t=ye(),r=hi();return ct(136)?di(e,t,void 0,r,172,4):ct(149)?di(e,t,void 0,r,173,4):or()?cr(e,t,void 0,r):((e,t,r)=>{var n,i=ot(),a=Ke(57);if(20===ve()||29===ve()){var o=Yt(),s=nr(4),c=tr(58,!0);n=R.createMethodSignature(r,i,a,o,s,c)}else c=Vr(),n=R.createPropertySignature(r,i,a,c),63===ve()&&(n.initializer=Kr());return ir(),H(Qe(n,e),t)})(e,t,r)}function ur(){return xe(),20===ve()||29===ve()}function pr(){return 24===xe()}function _r(){switch(xe()){case 20:case 29:case 24:return!0}return!1}function fr(){var e;return Me(18)?(e=St(4,dr),Me(19)):e=Ft(),e}function mr(){return xe(),39===ve()||40===ve()?145===xe():(145===ve()&&xe(),22===ve()&&ht()&&101===xe())}function gr(){var t=he();if(We(25))return Qe(R.createRestTypeNode(jr()),t);var r=jr();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=R.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function hr(){return 58===xe()||57===ve()&&58===xe()}function yr(){return 25===ve()?e.tokenIsIdentifierOrKeyword(xe())&&hr():e.tokenIsIdentifierOrKeyword(ve())&&hr()}function vr(){if(Fe(yr)){var e=he(),t=ye(),r=Ke(25),n=it(),i=Ke(57);Me(58);var a=gr();return H(Qe(R.createNamedTupleMember(r,n,i,a),e),t)}return gr()}function br(){var e=he(),t=ye(),r=(()=>{var e;if(126===ve()){var t=he();xe(),e=Ye([Qe(R.createToken(126),t)],t)}return e})(),n=We(103),i=Yt(),a=nr(4),o=tr(38,!1),s=n?R.createConstructorTypeNode(r,i,a,o):R.createFunctionTypeNode(i,a,o);return n||(s.modifiers=r),H(Qe(s,e),t)}function Er(){var e=Ge();return 24===ve()?void 0:e}function xr(e){var t=he();e&&xe();var r=110===ve()||95===ve()||104===ve()?Ge():zt(ve());return e&&(r=Qe(R.createPrefixUnaryExpression(40,r),t)),Qe(R.createLiteralTypeNode(r),t)}function Dr(){return xe(),100===ve()}function Sr(){u|=2097152;var t=he(),r=We(112);Me(100),Me(20);var n,i=jr();We(27)&&(n=(()=>{var t=he(),r=s.getTokenPos();Me(18);var n=s.hasPrecedingLineBreak();Me(129),Me(58);var i=Mi(!0);if(!Me(19)){var a=e.lastOrUndefined(y);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(d,r,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Qe(R.createImportTypeAssertionContainer(i,n),t)})()),Me(21);var a=We(24)?Ht():void 0,o=Wt();return Qe(R.createImportTypeNode(i,n,a,o,r),t)}function Tr(){return xe(),8===ve()||9===ve()}function Cr(){switch(ve()){case 130:case 155:case 150:case 147:case 158:case 151:case 133:case 153:case 143:case 148:return Pe(Er)||Kt();case 66:s.reScanAsteriskEqualsToken();case 41:return r=he(),xe(),Qe(R.createJSDocAllType(),r);case 60:s.reScanQuestionToken();case 57:return(()=>{var e=he();return xe(),27===ve()||19===ve()||21===ve()||31===ve()||63===ve()||51===ve()?Qe(R.createJSDocUnknownType(),e):Qe(R.createJSDocNullableType(jr(),!1),e)})();case 98:return(()=>{var e=he(),t=ye();if(Fe(Fi)){xe();var r=nr(36),n=tr(58,!1);return H(Qe(R.createJSDocFunctionType(r,n),e),t)}return Qe(R.createTypeReferenceNode(it(),void 0),e)})();case 53:return(()=>{var e=he();return xe(),Qe(R.createJSDocNonNullableType(Cr(),!1),e)})();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return xr();case 40:return Fe(Tr)?xr(!0):Kt();case 114:return Ge();case 108:var e=Gt();return 139!==ve()||s.hasPrecedingLineBreak()?e:(t=e,xe(),Qe(R.createTypePredicateNode(void 0,t,jr()),t.pos));case 112:return Fe(Dr)?Sr():(()=>{var e=he();Me(112);var t=It(!0),r=s.hasPrecedingLineBreak()?void 0:Ti();return Qe(R.createTypeQueryNode(t,r),e)})();case 18:return Fe(mr)?(()=>{var e,t=he();Me(18),145!==ve()&&39!==ve()&&40!==ve()||145!==(e=Ge()).kind&&Me(145),Me(22);var r,n=(()=>{var e=he(),t=it();Me(101);var r=jr();return Qe(R.createTypeParameterDeclaration(void 0,t,r,void 0),e)})(),i=We(127)?jr():void 0;Me(23),57!==ve()&&39!==ve()&&40!==ve()||57!==(r=Ge()).kind&&Me(57);var a=Vr();Xe();var o=St(4,dr);return Me(19),Qe(R.createMappedTypeNode(e,n,i,r,a,o),t)})():(()=>{var e=he();return Qe(R.createTypeLiteralNode(fr()),e)})();case 22:return(()=>{var e=he();return Qe(R.createTupleTypeNode(Pt(21,vr,22,23)),e)})();case 20:return(()=>{var e=he();Me(20);var t=jr();return Me(21),Qe(R.createParenthesizedType(t),e)})();case 100:return Sr();case 128:return Fe(Bn)?(()=>{var e=he(),t=Je(128),r=108===ve()?Gt():nt(),n=We(139)?jr():void 0;return Qe(R.createTypePredicateNode(t,r,n),e)})():Kt();case 15:return(()=>{var e=he();return Qe(R.createTemplateLiteralType(Vt(!1),(()=>{var e,t=he(),r=[];do{e=Lt(),r.push(e)}while(16===e.literal.kind);return Ye(r,t)})()),e)})();default:return Kt()}var t,r}function Ar(e){switch(ve()){case 130:case 155:case 150:case 147:case 158:case 133:case 145:case 151:case 154:case 114:case 153:case 104:case 108:case 112:case 143:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 148:case 41:case 57:case 53:case 25:case 137:case 100:case 128:case 14:case 15:return!0;case 98:return!e;case 40:return!e&&Fe(Tr);case 20:return!e&&Fe(kr);default:return Oe()}}function kr(){return xe(),21===ve()||Qt(!1)||Ar()}function Nr(){for(var e=he(),t=Cr();!s.hasPrecedingLineBreak();)switch(ve()){case 53:xe(),t=Qe(R.createJSDocNonNullableType(t,!0),e);break;case 57:if(Fe(xt))return t;xe(),t=Qe(R.createJSDocNullableType(t,!0),e);break;case 22:if(Me(22),Ar()){var r=jr();Me(23),t=Qe(R.createIndexedAccessTypeNode(t,r),e)}else Me(23),t=Qe(R.createArrayTypeNode(t),e);break;default:return t}return t}function wr(){if(We(94)){var e=ne(jr);if(le()||57!==ve())return e}}function Fr(){var e,t=ve();switch(t){case 140:case 154:case 145:return(e=>{var t=he();return Me(e),Qe(R.createTypeOperatorNode(e,Fr()),t)})(t);case 137:return e=he(),Me(137),Qe(R.createInferTypeNode((()=>{var e=he(),t=nt(),r=Pe(wr);return Qe(R.createTypeParameterDeclaration(void 0,t,r),e)})()),e)}return re(Nr)}function Pr(t){if(Rr()){var r=br();return me(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 Ir(e,t,r){var n=he(),i=51===e,a=We(e),o=a&&Pr(i)||t();if(ve()===e||a){for(var s=[o];We(e);)s.push(Pr(i)||t());o=Qe(r(Ye(s,n)),n)}return o}function Or(){return Ir(50,Fr,R.createIntersectionTypeNode)}function Mr(){return xe(),103===ve()}function Rr(){return 29===ve()||!(20!==ve()||!Fe(Lr))||103===ve()||126===ve()&&Fe(Mr)}function Lr(){if(xe(),21===ve()||25===ve())return!0;if((()=>{if(e.isModifierKind(ve())&&hi(),Oe()||108===ve())return xe(),!0;if(22===ve()||18===ve()){var t=y.length;return ei(),t===y.length}return!1})()){if(58===ve()||27===ve()||57===ve()||63===ve())return!0;if(21===ve()&&(xe(),38===ve()))return!0}return!1}function Br(){var e=he(),t=Oe()&&Pe(Ur),r=jr();return t?Qe(R.createTypePredicateNode(void 0,t,r),e):r}function Ur(){var e=nt();if(139===ve()&&!s.hasPrecedingLineBreak())return xe(),e}function jr(){if(40960&O)return Z(40960,jr);if(Rr())return br();var e=he(),t=Ir(51,Or,R.createUnionTypeNode);if(!le()&&!s.hasPrecedingLineBreak()&&We(94)){var r=ne(jr);Me(57);var n=re(jr);Me(58);var i=re(jr);return Qe(R.createConditionalTypeNode(t,r,n,i),e)}return t}function Vr(){return We(58)?jr():void 0}function zr(){switch(ve()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return Fe(_r);default:return Oe()}}function Hr(){if(zr())return!0;switch(ve()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 132:case 125:case 80:return!0;default:return!!tn()||Oe()}}function Wr(){var e=de();e&&Y(!1);for(var t,r=he(),n=Jr(!0);t=Ke(27);)n=rn(n,t,Jr(!0),r);return e&&Y(!0),n}function Kr(){return We(63)?Jr(!0):void 0}function Jr(t){if(125===ve()&&(se()||Fe(Vn)))return(()=>{var e=he();return xe(),s.hasPrecedingLineBreak()||41!==ve()&&!Hr()?Qe(R.createYieldExpression(void 0,void 0),e):Qe(R.createYieldExpression(Ke(41),Jr(!0)),e)})();var r=(t=>{var r=20===ve()||29===ve()||131===ve()?Fe($r):38===ve()?1:0;if(0!==r)return 1===r?Xr(!0,!0):Pe((()=>(t=>{var r=s.getTokenPos();if(!(null==I?void 0:I.has(r))){var n=Xr(!1,t);return n||(I||(I=new e.Set)).add(r),n}})(t)))})(t)||(e=>{if(131===ve()&&1===Fe(qr)){var t=he(),r=yi();return Gr(t,Qr(0),e,r)}})(t);if(r)return r;var n=he(),i=Qr(0);return 79===i.kind&&38===ve()?Gr(n,i,t,void 0):e.isLeftHandSideExpression(i)&&e.isAssignmentOperator(Se())?rn(i,Ge(),Jr(t),n):((t,r,n)=>{var i,a=Ke(57);return a?Qe(R.createConditionalExpression(t,a,Z(20480,(()=>Jr(!1))),i=Je(58),e.nodeIsPresent(i)?Jr(n):Ze(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r):t})(i,n,t)}function Gr(t,r,n,i){e.Debug.assert(38===ve(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var a=R.createParameterDeclaration(void 0,void 0,r,void 0,void 0,void 0);Qe(a,r.pos);var o=Ye([a],a.pos,a.end),s=Je(38),c=Yr(!!i,n);return K(Qe(R.createArrowFunction(i,void 0,o,void 0,s,c),t))}function $r(){if(131===ve()){if(xe(),s.hasPrecedingLineBreak())return 0;if(20!==ve()&&29!==ve())return 0}var t=ve(),r=xe();if(20===t){if(21===r)switch(xe()){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)&&131!==r&&Fe(ht))return 127===xe()?0:1;if(!Oe()&&108!==r)return 0;switch(xe()){case 58:return 1;case 57:return xe(),58===ve()||27===ve()||63===ve()||21===ve()?1:0;case 27:case 63:case 21:return 2}return 0}return e.Debug.assert(29===t),Oe()?1===h?Fe((()=>{var e=xe();if(94===e)switch(xe()){case 63:case 31:return!1;default:return!0}else if(27===e||63===e)return!0;return!1}))?1:0:2:0}function qr(){if(131===ve()){if(xe(),s.hasPrecedingLineBreak()||38===ve())return 0;var e=Qr(0);if(!s.hasPrecedingLineBreak()&&79===e.kind&&38===ve())return 1}return 0}function Xr(t,r){var n,i=he(),a=ye(),o=yi(),s=e.some(o,e.isAsyncModifier)?2:0,c=Yt();if(Me(20)){if(t)n=rr(s,t);else{var l=rr(s,t);if(!l)return;n=l}if(!Me(21)&&!t)return}else{if(!t)return;n=Ft()}var d=58===ve(),u=tr(58,!1);if(!u||t||!Jt(u)){for(var p=u;191===(null==p?void 0:p.kind);)p=p.type;var _=p&&e.isJSDocFunctionType(p);if(t||38===ve()||!_&&18===ve()){var f=ve(),m=Je(38),g=38===f||18===f?Yr(e.some(o,e.isAsyncModifier),r):nt();if(r||!d||58===ve())return H(Qe(R.createArrowFunction(o,c,n,u,m,g),i),a)}}}function Yr(e,t){if(18===ve())return Mn(e?2:0);if(26!==ve()&&98!==ve()&&84!==ve()&&Wn()&&(18===ve()||98===ve()||84===ve()||59===ve()||!Hr()))return Mn(16|(e?2:0));var r=L;L=!1;var n=e?ie((()=>Jr(t))):ae((()=>Jr(t)));return L=r,n}function Qr(e){var t=he();return en(e,an(),t)}function Zr(e){return 101===e||160===e}function en(t,r,n){for(;;){Se();var i=e.getBinaryOperatorPrecedence(ve());if(!(42===ve()?i>=t:i>t))break;if(101===ve()&&ce())break;if(127===ve()){if(s.hasPrecedingLineBreak())break;xe(),a=r,o=jr(),r=Qe(R.createAsExpression(a,o),a.pos)}else r=rn(r,Ge(),Qr(i),n)}var a,o;return r}function tn(){return(!ce()||101!==ve())&&e.getBinaryOperatorPrecedence(ve())>0}function rn(e,t,r,n){return Qe(R.createBinaryExpression(e,t,r),n)}function nn(){var e=he();return Qe(R.createPrefixUnaryExpression(ve(),Ee(on)),e)}function an(){if((()=>{switch(ve()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 132:return!1;case 29:if(1!==h)return!1;default:return!0}})()){var t=he(),r=sn();return 42===ve()?en(e.getBinaryOperatorPrecedence(ve()),r,t):r}var n=ve(),i=on();if(42===ve()){t=e.skipTrivia(_,i.pos);var a=i.end;211===i.kind?fe(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):fe(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 on(){switch(ve()){case 39:case 40:case 54:case 53:return nn();case 89:return e=he(),Qe(R.createDeleteExpression(Ee(on)),e);case 112:return(()=>{var e=he();return Qe(R.createTypeOfExpression(Ee(on)),e)})();case 114:return(()=>{var e=he();return Qe(R.createVoidExpression(Ee(on)),e)})();case 29:return(()=>{var e=he();Me(29);var t=jr();Me(31);var r=on();return Qe(R.createTypeAssertion(t,r),e)})();case 132:if(132===ve()&&(ue()||Fe(Vn)))return(()=>{var e=he();return Qe(R.createAwaitExpression(Ee(on)),e)})();default:return sn()}var e}function sn(){if(45===ve()||46===ve()){var t=he();return Qe(R.createPrefixUnaryExpression(ve(),Ee(cn)),t)}if(1===h&&29===ve()&&Fe(vt))return dn(!0);var r=cn();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===ve()||46===ve())&&!s.hasPrecedingLineBreak()){var n=ve();return xe(),Qe(R.createPostfixUnaryExpression(r,n),r.pos)}return r}function cn(){var t,r=he();return 100===ve()?Fe(ur)?(u|=2097152,t=Ge()):Fe(pr)?(xe(),xe(),t=Qe(R.createMetaProperty(100,it()),r),u|=4194304):t=ln():t=106===ve()?(()=>{var t=he(),r=Ge();if(29===ve()){var n=he(),i=Pe(Tn);void 0!==i&&(fe(n,he(),e.Diagnostics.super_may_not_use_type_arguments),En()||(r=R.createExpressionWithTypeArguments(r,i)))}return 20===ve()||24===ve()||22===ve()?r:(Je(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Qe(R.createPropertyAccessExpression(r,Mt(!0,!0)),t))})():ln(),Dn(r,t)}function ln(){return bn(he(),Cn(),!0)}function dn(t,r,n){var i,a=he(),o=(e=>{var t=he();if(Me(29),31===ve())return Ne(),Qe(R.createJsxOpeningFragment(),t);var r,n=_n(),i=0==(262144&O)?Ti():void 0,a=(()=>{var e=he();return Qe(R.createJsxAttributes(St(13,mn)),e)})();return 31===ve()?(Ne(),r=R.createJsxOpeningElement(n,i,a)):(Me(43),Me(31,void 0,!1)&&(e?xe():Ne()),r=R.createJsxSelfClosingElement(n,i,a)),Qe(r,t)})(t);if(280===o.kind){var s=pn(o),c=void 0,l=s[s.length-1];if(278===(null==l?void 0:l.kind)&&!F(l.openingElement.tagName,l.closingElement.tagName)&&F(o.tagName,l.closingElement.tagName)){var d=l.children.end,u=Qe(R.createJsxElement(l.openingElement,l.children,Qe(R.createJsxClosingElement(Qe(R.createIdentifier(""),d,d)),d,d)),l.openingElement.pos,d);s=Ye(f(f([],s.slice(0,s.length-1),!0),[u],!1),s.pos,d),c=l.closingElement}else c=((e,t)=>{var r=he();Me(30);var n=_n();return Me(31,void 0,!1)&&(t||!F(e.tagName,n)?xe():Ne()),Qe(R.createJsxClosingElement(n),r)})(o,t),F(o.tagName,c.tagName)||(n&&e.isJsxOpeningElement(n)&&F(c.tagName,n.tagName)?me(o.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(_,o.tagName)):me(c.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(_,o.tagName)));i=Qe(R.createJsxElement(o,s,c),a)}else 283===o.kind?i=Qe(R.createJsxFragment(o,pn(o),(t=>{var r=he();return Me(30),e.tokenIsIdentifierOrKeyword(ve())&&me(_n(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),Me(31,void 0,!1)&&(t?xe():Ne()),Qe(R.createJsxJsxClosingFragment(),r)})(t)),a):(e.Debug.assert(279===o.kind),i=o);if(t&&29===ve()){var p=void 0===r?i.pos:r,m=Pe((()=>dn(!0,p)));if(m){var g=Ze(27,!1);return e.setTextRangePosWidth(g,m.pos,0),fe(e.skipTrivia(_,p),m.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Qe(R.createBinaryExpression(i,g,m),a)}}return i}function un(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))me(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;fe(e.skipTrivia(_,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(_,t.tagName))}return;case 30:case 7:return;case 11:case 12:return i=he(),a=R.createJsxText(s.getTokenValue(),12===C),C=s.scanJsxToken(),Qe(a,i);case 18:return fn(!1);case 29:return dn(!1,void 0,t);default:return e.Debug.assertNever(r)}var i,a}function pn(t){var r=[],n=he(),i=P;for(P|=16384;;){var a=un(t,C=s.reScanJsxToken());if(!a)break;if(r.push(a),e.isJsxOpeningElement(t)&&278===(null==a?void 0:a.kind)&&!F(a.openingElement.tagName,a.closingElement.tagName)&&F(t.tagName,a.closingElement.tagName))break}return P=i,Ye(r,n)}function _n(){var e=he();ke();for(var t=108===ve()?Ge():it();We(24);)t=Qe(R.createPropertyAccessExpression(t,Mt(!0,!1)),e);return t}function fn(e){var t,r,n=he();if(Me(18))return 19!==ve()&&(t=Ke(25),r=Wr()),e?Me(19):Me(19,void 0,!1)&&Ne(),Qe(R.createJsxExpression(t,r),n)}function mn(){if(18===ve())return(()=>{var e=he();Me(18),Me(25);var t=Wr();return Me(19),Qe(R.createJsxSpreadAttribute(t),e)})();ke();var t=he();return Qe(R.createJsxAttribute(it(),(()=>{if(63===ve()){if(10===(C=s.scanJsxAttributeValue()))return jt();if(18===ve())return fn(!0);if(29===ve())return dn(!0);pe(e.Diagnostics.or_JSX_element_expected)}})()),t)}function gn(){return xe(),e.tokenIsIdentifierOrKeyword(ve())||22===ve()||En()}function hn(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 yn(t,r,n){var i=Mt(!0,!0),a=n||hn(r),o=a?R.createPropertyAccessChain(r,n,i):R.createPropertyAccessExpression(r,i);return a&&e.isPrivateIdentifier(o.name)&&me(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),e.isExpressionWithTypeArguments(r)&&r.typeArguments&&fe(r.typeArguments.pos-1,e.skipTrivia(_,r.typeArguments.end)+1,e.Diagnostics.An_instantiation_expression_cannot_be_followed_by_a_property_access),Qe(o,t)}function vn(t,r,n){var i;if(23===ve())i=Ze(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=te(Wr);e.isStringOrNumericLiteralLike(a)&&(a.text=et(a.text)),i=a}return Me(23),Qe(n||hn(r)?R.createElementAccessChain(r,n,i):R.createElementAccessExpression(r,i),t)}function bn(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===ve()&&Fe(gn)?(i=Je(28),a=e.tokenIsIdentifierOrKeyword(ve())):a=We(24),a)r=yn(t,r,i);else if(!i&&de()||!We(22)){if(!En()){if(!i){if(53===ve()&&!s.hasPrecedingLineBreak()){xe(),r=Qe(R.createNonNullExpression(r),t);continue}var o=Pe(Tn);if(o){r=Qe(R.createExpressionWithTypeArguments(r,o),t);continue}}return r}r=i||228!==r.kind?xn(t,r,i,void 0):xn(t,r.expression,i,r.typeArguments)}else r=vn(t,r,i)}}function En(){return 14===ve()||15===ve()}function xn(e,t,r,n){var i=R.createTaggedTemplateExpression(t,n,14===ve()?(Te(),jt()):Rt(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,Qe(i,e)}function Dn(t,r){for(;;){r=bn(t,r,!0);var n=void 0,i=Ke(28);if(i&&(n=Pe(Tn),En()))r=xn(t,r,i,n);else{if(!n&&20!==ve()){if(i){var a=Ze(79,!1,e.Diagnostics.Identifier_expected);r=Qe(R.createPropertyAccessChain(r,i,a),t)}break}i||228!==r.kind||(n=r.typeArguments,r=r.expression);var o=Sn();r=Qe(i||hn(r)?R.createCallChain(r,i,n,o):R.createCallExpression(r,n,o),t)}}return r}function Sn(){Me(20);var e=Nt(11,kn);return Me(21),e}function Tn(){if(0==(262144&O)&&29===Ce()){xe();var e=Nt(20,jr);if(31===Se())return xe(),e&&(()=>{switch(ve()){case 20:case 14:case 15:return!0;case 29:case 31:case 39:case 40:return!1}return s.hasPrecedingLineBreak()||tn()||!Hr()})()?e:void 0}}function Cn(){switch(ve()){case 8:case 9:case 10:case 14:return jt();case 108:case 106:case 104:case 110:case 95:return Ge();case 20:return(()=>{var e=he(),t=ye();Me(20);var r=te(Wr);return Me(21),H(Qe(R.createParenthesizedExpression(r),e),t)})();case 22:return Nn();case 18:return Fn();case 131:if(!Fe(jn))break;return Pn();case 84:return Ei(he(),ye(),void 0,void 0,226);case 98:return Pn();case 103:return(()=>{var t=he();if(Me(103),We(24)){var r=it();return Qe(R.createMetaProperty(103,r),t)}var n,i=bn(he(),Cn(),!1);228===i.kind&&(n=i.typeArguments,i=i.expression),28===ve()&&pe(e.Diagnostics.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,e.getTextOfNodeFromSourceText(_,i));var a=20===ve()?Sn():void 0;return Qe(R.createNewExpression(i,n,a),t)})();case 43:case 68:if(13===(C=s.reScanSlashToken()))return jt();break;case 15:return Rt(!1);case 80:return st()}return nt(e.Diagnostics.Expression_expected)}function An(){return 25===ve()?(()=>{var e=he();Me(25);var t=Jr(!0);return Qe(R.createSpreadElement(t),e)})():27===ve()?Qe(R.createOmittedExpression(),he()):Jr(!0)}function kn(){return Z(20480,An)}function Nn(){var e=he(),t=s.getTokenPos(),r=Me(22),n=s.hasPrecedingLineBreak(),i=Nt(15,An);return He(22,23,r,t),Qe(R.createArrayLiteralExpression(i,n),e)}function wn(){var e=he(),t=ye();if(Ke(25)){var r=Jr(!0);return H(Qe(R.createSpreadAssignment(r),e),t)}var n=fi(),i=hi();if(ct(136))return di(e,t,n,i,172,0);if(ct(149))return di(e,t,n,i,173,0);var a,o=Ke(41),s=Oe(),c=ot(),l=Ke(57),d=Ke(53);if(o||20===ve()||29===ve())return si(e,t,n,i,o,c,l,d);if(s&&58!==ve()){var u=Ke(63),p=u?te((()=>Jr(!0))):void 0;(a=R.createShorthandPropertyAssignment(c,p)).equalsToken=u}else{Me(58);var _=te((()=>Jr(!0)));a=R.createPropertyAssignment(c,_)}return a.illegalDecorators=n,a.modifiers=i,a.questionToken=l,a.exclamationToken=d,H(Qe(a,e),t)}function Fn(){var e=he(),t=s.getTokenPos(),r=Me(18),n=s.hasPrecedingLineBreak(),i=Nt(12,wn,!0);return He(18,19,r,t),Qe(R.createObjectLiteralExpression(i,n),e)}function Pn(){var t=de();Y(!1);var r=he(),n=ye(),i=hi();Me(98);var a=Ke(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?ee(40960,In):o?ee(8192,In):s?ie(In):In(),l=Yt(),d=nr(o|s),u=tr(58,!1),p=Mn(o|s);return Y(t),H(Qe(R.createFunctionExpression(i,a,c,l,d,u,p),r),n)}function In(){return Ie()?rt():void 0}function On(t,r){var n=he(),i=ye(),a=s.getTokenPos(),o=Me(18,r);if(o||t){var c=s.hasPrecedingLineBreak(),l=St(1,Jn);He(18,19,o,a);var d=H(Qe(R.createBlock(l,c),n),i);return 63===ve()&&(pe(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),xe()),d}return l=Ft(),H(Qe(R.createBlock(l,void 0),n),i)}function Mn(e,t){var r=se();X(!!(1&e));var n=ue();Q(!!(2&e));var i=L;L=!1;var a=de();a&&Y(!1);var o=On(!!(16&e),t);return a&&Y(!0),L=i,X(r),Q(n),o}function Rn(e){var t=he(),r=ye();Me(246===e?81:86);var n=$e()?void 0:nt();return Xe(),H(Qe(246===e?R.createBreakStatement(n):R.createContinueStatement(n),t),r)}function Ln(){return 82===ve()?(()=>{var e=he(),t=ye();Me(82);var r=te(Wr);Me(58);var n=St(3,Jn);return H(Qe(R.createCaseClause(r,n),e),t)})():(()=>{var e=he();Me(88),Me(58);var t=St(3,Jn);return Qe(R.createDefaultClause(t),e)})()}function Bn(){return xe(),e.tokenIsIdentifierOrKeyword(ve())&&!s.hasPrecedingLineBreak()}function Un(){return xe(),84===ve()&&!s.hasPrecedingLineBreak()}function jn(){return xe(),98===ve()&&!s.hasPrecedingLineBreak()}function Vn(){return xe(),(e.tokenIsIdentifierOrKeyword(ve())||8===ve()||9===ve()||10===ve())&&!s.hasPrecedingLineBreak()}function zn(){for(;;)switch(ve()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 152:return xe(),!s.hasPrecedingLineBreak()&&Oe();case 141:case 142:return xe(),!s.hasPrecedingLineBreak()&&(Oe()||10===ve());case 126:case 131:case 135:case 121:case 122:case 123:case 145:if(xe(),s.hasPrecedingLineBreak())return!1;continue;case 157:return xe(),18===ve()||79===ve()||93===ve();case 100:return xe(),10===ve()||41===ve()||18===ve()||e.tokenIsIdentifierOrKeyword(ve());case 93:var t=xe();if(152===t&&(t=Fe(xe)),63===t||41===t||18===t||88===t||127===t)return!0;continue;case 124:xe();continue;default:return!1}}function Hn(){return Fe(zn)}function Wn(){switch(ve()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return Hn()||Fe(_r);case 85:case 93:return Hn();case 131:case 135:case 118:case 141:case 142:case 152:case 157:return!0;case 123:case 121:case 122:case 124:case 145:return Hn()||!Fe(Bn);default:return Hr()}}function Kn(){return xe(),Ie()||18===ve()||22===ve()}function Jn(){switch(ve()){case 26:return t=he(),r=ye(),Me(26),H(Qe(R.createEmptyStatement(),t),r);case 18:return On(!1);case 113:return ai(he(),ye(),void 0,void 0);case 119:if(Fe(Kn))return ai(he(),ye(),void 0,void 0);break;case 98:return oi(he(),ye(),void 0,void 0);case 84:return bi(he(),ye(),void 0,void 0);case 99:return(()=>{var e=he(),t=ye();Me(99);var r=s.getTokenPos(),n=Me(20),i=te(Wr);He(20,21,n,r);var a=Jn(),o=We(91)?Jn():void 0;return H(Qe(R.createIfStatement(i,a,o),e),t)})();case 90:return(()=>{var e=he(),t=ye();Me(90);var r=Jn();Me(115);var n=s.getTokenPos(),i=Me(20),a=te(Wr);return He(20,21,i,n),We(26),H(Qe(R.createDoStatement(r,a),e),t)})();case 115:return(()=>{var e=he(),t=ye();Me(115);var r=s.getTokenPos(),n=Me(20),i=te(Wr);He(20,21,n,r);var a=Jn();return H(Qe(R.createWhileStatement(i,a),e),t)})();case 97:return(()=>{var e=he(),t=ye();Me(97);var r,n,i=Ke(132);if(Me(20),26!==ve()&&(r=113===ve()||119===ve()||85===ve()?ni(!0):ee(4096,Wr)),i?Me(160):We(160)){var a=te((()=>Jr(!0)));Me(21),n=R.createForOfStatement(i,r,a,Jn())}else if(We(101))a=te(Wr),Me(21),n=R.createForInStatement(r,a,Jn());else{Me(26);var o=26!==ve()&&21!==ve()?te(Wr):void 0;Me(26);var s=21!==ve()?te(Wr):void 0;Me(21),n=R.createForStatement(r,o,s,Jn())}return H(Qe(n,e),t)})();case 86:return Rn(245);case 81:return Rn(246);case 105:return(()=>{var e=he(),t=ye();Me(105);var r=$e()?void 0:te(Wr);return Xe(),H(Qe(R.createReturnStatement(r),e),t)})();case 116:return(()=>{var e=he(),t=ye();Me(116);var r=s.getTokenPos(),n=Me(20),i=te(Wr);He(20,21,n,r);var a=ee(33554432,Jn);return H(Qe(R.createWithStatement(i,a),e),t)})();case 107:return(()=>{var e=he(),t=ye();Me(107),Me(20);var r=te(Wr);Me(21);var n=(()=>{var e=he();Me(18);var t=St(2,Ln);return Me(19),Qe(R.createCaseBlock(t),e)})();return H(Qe(R.createSwitchStatement(r,n),e),t)})();case 109:return(()=>{var e=he(),t=ye();Me(109);var r=s.hasPrecedingLineBreak()?void 0:te(Wr);return void 0===r&&(w++,r=Qe(R.createIdentifier(""),he())),qe()||je(r),H(Qe(R.createThrowStatement(r),e),t)})();case 111:case 83:case 96:return(()=>{var t=he(),r=ye();Me(111);var n,i=On(!1),a=83===ve()?(()=>{var e,t=he();Me(83),We(20)?(e=ri(),Me(21)):e=void 0;var r=On(!1);return Qe(R.createCatchClause(e,r),t)})():void 0;return a&&96!==ve()||(Me(96,e.Diagnostics.catch_or_finally_expected),n=On(!1)),H(Qe(R.createTryStatement(i,a,n),t),r)})();case 87:return(()=>{var e=he(),t=ye();return Me(87),Xe(),H(Qe(R.createDebuggerStatement(),e),t)})();case 59:return $n();case 131:case 118:case 152:case 141:case 142:case 135:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 145:case 157:if(Hn())return $n()}var t,r;return(()=>{var t,r=he(),n=ye(),i=20===ve(),a=te(Wr);return e.isIdentifier(a)&&We(58)?t=R.createLabeledStatement(a,Jn()):(qe()||je(a),t=R.createExpressionStatement(a),i&&(n=!1)),H(Qe(t,r),n)})()}function Gn(e){return 135===e.kind}function $n(){var t=he(),r=ye(),n=fi(),i=hi();if(e.some(i,Gn)){var a=(e=>ee(16777216,(()=>{var t=Ct(P,e);if(t)return At(t)})))(t);if(a)return a;for(var o=0,s=i;o<s.length;o++)s[o].flags|=16777216;return ee(16777216,(()=>qn(t,r,n,i)))}return qn(t,r,n,i)}function qn(t,r,n,i){switch(ve()){case 113:case 119:case 85:return ai(t,r,n,i);case 98:return oi(t,r,n,i);case 84:return bi(t,r,n,i);case 118:return((e,t,r,n)=>{Me(118);var i=nt(),a=Yt(),o=xi(),s=fr(),c=R.createInterfaceDeclaration(n,i,a,o,s);return c.illegalDecorators=r,H(Qe(c,e),t)})(t,r,n,i);case 152:return((e,t,r,n)=>{Me(152);var i=nt(),a=Yt();Me(63);var o=138===ve()&&Pe(Er)||jr();Xe();var s=R.createTypeAliasDeclaration(n,i,a,o);return s.illegalDecorators=r,H(Qe(s,e),t)})(t,r,n,i);case 92:return((e,t,r,n)=>{Me(92);var i,a=nt();Me(18)?(i=Z(40960,(()=>Nt(6,Ai))),Me(19)):i=Ft();var o=R.createEnumDeclaration(n,a,i);return o.illegalDecorators=r,H(Qe(o,e),t)})(t,r,n,i);case 157:case 141:case 142:return((e,t,r,n)=>{var i=0;if(157===ve())return wi(e,t,r,n);if(We(142))i|=16;else if(Me(141),10===ve())return wi(e,t,r,n);return Ni(e,t,r,n,i)})(t,r,n,i);case 100:return((e,t,r,n)=>{Me(100);var i,a=s.getStartPos();Oe()&&(i=nt());var o,c=!1;if(156===ve()||"type"!==(null==i?void 0:i.escapedText)||!Oe()&&41!==ve()&&18!==ve()||(c=!0,i=Oe()?nt():void 0),i&&27!==ve()&&156!==ve())return((e,t,r,n,i,a)=>{Me(63);var o=146===ve()&&Fe(Fi)?(()=>{var e=he();Me(146),Me(20);var t=Ri();return Me(21),Qe(R.createExternalModuleReference(t),e)})():It(!1);Xe();var s=R.createImportEqualsDeclaration(n,a,i,o);return s.illegalDecorators=r,H(Qe(s,e),t)})(e,t,r,n,i,c);(i||41===ve()||18===ve())&&(o=((e,t,r)=>{var n;return e&&!We(27)||(n=41===ve()?(()=>{var e=he();Me(41),Me(127);var t=nt();return Qe(R.createNamespaceImport(t),e)})():Li(269)),Qe(R.createImportClause(r,e,n),t)})(i,a,c),Me(156));var l,d=Ri();129!==ve()||s.hasPrecedingLineBreak()||(l=Mi()),Xe();var u=R.createImportDeclaration(n,o,d,l);return u.illegalDecorators=r,H(Qe(u,e),t)})(t,r,n,i);case 93:switch(xe(),ve()){case 88:case 63:return((e,t,r,n)=>{var i,a=ue();Q(!0),We(63)?i=!0:Me(88);var o=Jr(!0);Xe(),Q(a);var s=R.createExportAssignment(n,i,o);return s.illegalDecorators=r,H(Qe(s,e),t)})(t,r,n,i);case 127:return((e,t,r,n)=>{Me(127),Me(142);var i=nt();Xe();var a=R.createNamespaceExportDeclaration(i);return a.illegalDecorators=r,a.modifiers=n,H(Qe(a,e),t)})(t,r,n,i);default:return((e,t,r,n)=>{var i,a,o,c=ue();Q(!0);var l=We(152),d=he();We(41)?(We(127)&&(i=(e=>Qe(R.createNamespaceExport(it()),e))(d)),Me(156),a=Ri()):(i=Li(273),(156===ve()||10===ve()&&!s.hasPrecedingLineBreak())&&(Me(156),a=Ri())),a&&129===ve()&&!s.hasPrecedingLineBreak()&&(o=Mi()),Xe(),Q(c);var u=R.createExportDeclaration(n,l,i,a,o);return u.illegalDecorators=r,H(Qe(u,e),t)})(t,r,n,i)}default:if(n||i){var a=Ze(276,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(a,t),a.illegalDecorators=n,a.modifiers=i,a}return}}function Xn(e,t){if(18!==ve()){if(4&e)return void ir();if($e())return void Xe()}return Mn(e,t)}function Yn(){var e=he();if(27===ve())return Qe(R.createOmittedExpression(),e);var t=Ke(25),r=ei(),n=Kr();return Qe(R.createBindingElement(t,void 0,r,n),e)}function Qn(){var e,t=he(),r=Ke(25),n=Ie(),i=ot();n&&58!==ve()?(e=i,i=void 0):(Me(58),e=ei());var a=Kr();return Qe(R.createBindingElement(r,i,e,a),t)}function Zn(){return 18===ve()||22===ve()||80===ve()||Ie()}function ei(e){return 22===ve()?(()=>{var e=he();Me(22);var t=Nt(10,Yn);return Me(23),Qe(R.createArrayBindingPattern(t),e)})():18===ve()?(()=>{var e=he();Me(18);var t=Nt(9,Qn);return Me(19),Qe(R.createObjectBindingPattern(t),e)})():rt(e)}function ti(){return ri(!0)}function ri(t){var r,n=he(),i=ye(),a=ei(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations);t&&79===a.kind&&53===ve()&&!s.hasPrecedingLineBreak()&&(r=Ge());var o=Vr(),c=Zr(ve())?void 0:Kr();return H(Qe(R.createVariableDeclaration(a,r,o,c),n),i)}function ni(t){var r,n=he(),i=0;switch(ve()){case 113:break;case 119:i|=1;break;case 85:i|=2;break;default:e.Debug.fail()}if(xe(),160===ve()&&Fe(ii))r=Ft();else{var a=ce();q(t),r=Nt(8,t?ri:ti),q(a)}return Qe(R.createVariableDeclarationList(r,i),n)}function ii(){return ht()&&21===xe()}function ai(e,t,r,n){var i=ni(!1);Xe();var a=R.createVariableStatement(n,i);return a.illegalDecorators=r,H(Qe(a,e),t)}function oi(t,r,n,i){var a=ue(),o=e.modifiersToFlags(i);Me(98);var s=Ke(41),c=512&o?In():rt(),l=s?1:0,d=256&o?2:0,u=Yt();1&o&&Q(!0);var p=nr(l|d),_=tr(58,!1),f=Xn(l|d,e.Diagnostics.or_expected);Q(a);var m=R.createFunctionDeclaration(i,s,c,u,p,_,f);return m.illegalDecorators=n,H(Qe(m,t),r)}function si(t,r,n,i,a,o,s,c,l){var d=a?1:0,u=e.some(i,e.isAsyncModifier)?2:0,p=Yt(),_=nr(d|u),f=tr(58,!1),m=Xn(d|u,l),g=R.createMethodDeclaration(gi(n,i),a,o,s,p,_,f,m);return g.exclamationToken=c,H(Qe(g,t),r)}function ci(t,r,n,i,a,o){var c=o||s.hasPrecedingLineBreak()?void 0:Ke(53),l=Vr(),d=Z(45056,Kr);return((t,r,n)=>{if(59!==ve()||s.hasPrecedingLineBreak())return 20===ve()?(pe(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),void xe()):void(!r||$e()?qe()||(n?pe(e.Diagnostics._0_expected,e.tokenToString(26)):je(t)):n?pe(e.Diagnostics._0_expected,e.tokenToString(26)):pe(e.Diagnostics.Expected_for_property_initializer));pe(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)})(a,l,d),H(Qe(R.createPropertyDeclaration(gi(n,i),a,o||c,l,d),t),r)}function li(t,r,n,i){var a=Ke(41),o=ot(),s=Ke(57);return a||20===ve()||29===ve()?si(t,r,n,i,a,o,s,void 0,e.Diagnostics.or_expected):ci(t,r,n,i,o,s)}function di(t,r,n,i,a,o){var s=ot(),c=Yt(),l=nr(0),d=tr(58,!1),u=Xn(o),p=172===a?R.createGetAccessorDeclaration(gi(n,i),s,l,d,u):R.createSetAccessorDeclaration(gi(n,i),s,l,u);return p.typeParameters=c,e.isSetAccessorDeclaration(p)&&(p.type=d),H(Qe(p,t),r)}function ui(){var t;if(59===ve())return!0;for(;e.isModifierKind(ve());){if(t=ve(),e.isClassMemberModifier(t))return!0;xe()}if(41===ve())return!0;if(at()&&(t=ve(),xe()),22===ve())return!0;if(void 0!==t){if(!e.isKeyword(t)||149===t||136===t)return!0;switch(ve()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return $e()}}return!1}function pi(){if(ue()&&132===ve()){var t=he(),r=nt(e.Diagnostics.Expression_expected);return xe(),Dn(t,bn(t,r,!0))}return cn()}function _i(){var e=he();if(We(59)){var t=ee(16384,pi);return Qe(R.createDecorator(t),e)}}function fi(){for(var t,r,n=he();r=_i();)t=e.append(t,r);return t&&Ye(t,n)}function mi(t,r,n){var i=he(),a=ve();if(85===ve()&&t){if(!Pe(lt))return}else{if(r&&124===ve()&&Fe(Pi))return;if(n&&124===ve())return;if(!e.isModifierKind(ve())||!Pe(dt))return}return Qe(R.createToken(a),i)}function gi(t,r){if(!t)return r;if(!r)return t;var n=R.createNodeArray(e.concatenate(t,r));return e.setTextRangePosEnd(n,t.pos,r.end),n}function hi(t,r){for(var n,i,a=he(),o=!1;i=mi(t,r,o);)124===i.kind&&(o=!0),n=e.append(n,i);return n&&Ye(n,a)}function yi(){var e;if(131===ve()){var t=he();xe(),e=Ye([Qe(R.createToken(131),t)],t)}return e}function vi(){var t=he();if(26===ve())return xe(),Qe(R.createSemicolonClassElement(),t);var r=ye(),n=fi(),i=hi(!0,!0);if(124===ve()&&Fe(Pi))return((e,t,r,n)=>{Je(124);var i=(()=>{var e=se(),t=ue();X(!1),Q(!0);var r=On(!1);return X(e),Q(t),r})(),a=H(Qe(R.createClassStaticBlockDeclaration(i),e),t);return a.illegalDecorators=r,a.modifiers=n,a})(t,r,n,i);if(ct(136))return di(t,r,n,i,172,0);if(ct(149))return di(t,r,n,i,173,0);if(134===ve()||10===ve()){var a=((t,r,n,i)=>Pe((()=>{if(134===ve()?Me(134):10===ve()&&20===Fe(xe)?Pe((()=>{var e=jt();return"constructor"===e.text?e:void 0})):void 0){var a=Yt(),o=nr(0),s=tr(58,!1),c=Xn(0,e.Diagnostics.or_expected),l=R.createConstructorDeclaration(i,o,c);return l.illegalDecorators=n,l.typeParameters=a,l.type=s,H(Qe(l,t),r)}})))(t,r,n,i);if(a)return a}if(or())return cr(t,r,n,i);if(e.tokenIsIdentifierOrKeyword(ve())||10===ve()||8===ve()||41===ve()||22===ve()){if(e.some(i,Gn)){for(var o=0,s=i;o<s.length;o++)s[o].flags|=16777216;return ee(16777216,(()=>li(t,r,n,i)))}return li(t,r,n,i)}if(n||i){var c=Ze(79,!0,e.Diagnostics.Declaration_expected);return ci(t,r,n,i,c,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function bi(e,t,r,n){return Ei(e,t,r,n,257)}function Ei(t,r,n,i,a){var o=ue();Me(84);var s=!Ie()||117===ve()&&Fe(yt)?void 0:tt(Ie()),c=Yt();e.some(i,e.isExportModifier)&&Q(!0);var l,d=xi();return Me(18)?(l=St(5,vi),Me(19)):l=Ft(),Q(o),H(Qe(257===a?R.createClassDeclaration(gi(n,i),s,c,d,l):R.createClassExpression(gi(n,i),s,c,d,l),t),r)}function xi(){if(Ci())return St(22,Di)}function Di(){var t=he(),r=ve();e.Debug.assert(94===r||117===r),xe();var n=Nt(7,Si);return Qe(R.createHeritageClause(r,n),t)}function Si(){var e=he(),t=cn();if(228===t.kind)return t;var r=Ti();return Qe(R.createExpressionWithTypeArguments(t,r),e)}function Ti(){return 29===ve()?Pt(20,jr,29,31):void 0}function Ci(){return 94===ve()||117===ve()}function Ai(){var e=he(),t=ye(),r=ot(),n=te(Kr);return H(Qe(R.createEnumMember(r,n),e),t)}function ki(){var e,t=he();return Me(18)?(e=St(1,Jn),Me(19)):e=Ft(),Qe(R.createModuleBlock(e),t)}function Ni(e,t,r,n,i){var a=16&i,o=nt(),s=We(24)?Ni(he(),!1,void 0,void 0,4|a):ki(),c=R.createModuleDeclaration(n,o,s,i);return c.illegalDecorators=r,H(Qe(c,e),t)}function wi(e,t,r,n){var i,a,o=0;157===ve()?(i=nt(),o|=1024):(i=jt()).text=et(i.text),18===ve()?a=ki():Xe();var s=R.createModuleDeclaration(n,i,a,o);return s.illegalDecorators=r,H(Qe(s,e),t)}function Fi(){return 20===xe()}function Pi(){return 18===xe()}function Ii(){return 43===xe()}function Oi(){var t=he(),r=e.tokenIsIdentifierOrKeyword(ve())?it():zt(10);Me(58);var n=Jr(!0);return Qe(R.createAssertEntry(r,n),t)}function Mi(t){var r=he();t||Me(129);var n=s.getTokenPos();if(Me(18)){var i=s.hasPrecedingLineBreak(),a=Nt(24,Oi,!0);if(!Me(19)){var o=e.lastOrUndefined(y);o&&o.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(o,e.createDetachedDiagnostic(d,n,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Qe(R.createAssertClause(a,i),r)}return a=Ye([],he(),void 0,!1),Qe(R.createAssertClause(a,!1),r)}function Ri(){if(10===ve()){var e=jt();return e.text=et(e.text),e}return Wr()}function Li(e){var t=he();return Qe(269===e?R.createNamedImports(Pt(23,Ui,18,19)):R.createNamedExports(Pt(23,Bi,18,19)),t)}function Bi(){var e=ye();return H(ji(275),e)}function Ui(){return ji(270)}function ji(t){var r,n=he(),i=e.isKeyword(ve())&&!Oe(),a=s.getTokenPos(),o=s.getTextPos(),c=!1,l=!0,d=it();if("type"===d.escapedText)if(127===ve()){var u=it();if(127===ve()){var p=it();e.tokenIsIdentifierOrKeyword(ve())?(c=!0,r=u,d=_(),l=!1):(r=d,d=p,l=!1)}else e.tokenIsIdentifierOrKeyword(ve())?(r=d,l=!1,d=_()):(c=!0,d=u)}else e.tokenIsIdentifierOrKeyword(ve())&&(c=!0,d=_());return l&&127===ve()&&(r=d,Me(127),d=_()),270===t&&i&&fe(a,o,e.Diagnostics.Identifier_expected),Qe(270===t?R.createImportSpecifier(c,r,d):R.createExportSpecifier(c,r,d),n);function _(){return i=e.isKeyword(ve())&&!Oe(),a=s.getTokenPos(),o=s.getTextPos(),it()}}!(e=>{e[e.SourceElements=0]="SourceElements",e[e.BlockStatements=1]="BlockStatements",e[e.SwitchClauses=2]="SwitchClauses",e[e.SwitchClauseStatements=3]="SwitchClauseStatements",e[e.TypeMembers=4]="TypeMembers",e[e.ClassMembers=5]="ClassMembers",e[e.EnumMembers=6]="EnumMembers",e[e.HeritageClauseElement=7]="HeritageClauseElement",e[e.VariableDeclarations=8]="VariableDeclarations",e[e.ObjectBindingElements=9]="ObjectBindingElements",e[e.ArrayBindingElements=10]="ArrayBindingElements",e[e.ArgumentExpressions=11]="ArgumentExpressions",e[e.ObjectLiteralMembers=12]="ObjectLiteralMembers",e[e.JsxAttributes=13]="JsxAttributes",e[e.JsxChildren=14]="JsxChildren",e[e.ArrayLiteralMembers=15]="ArrayLiteralMembers",e[e.Parameters=16]="Parameters",e[e.JSDocParameters=17]="JSDocParameters",e[e.RestProperties=18]="RestProperties",e[e.TypeParameters=19]="TypeParameters",e[e.TypeArguments=20]="TypeArguments",e[e.TupleElementTypes=21]="TupleElementTypes",e[e.HeritageClauses=22]="HeritageClauses",e[e.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",e[e.AssertEntries=24]="AssertEntries",e[e.Count=25]="Count"})(Re||(Re={})),(e=>{e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"})(Le||(Le={})),(t=>{function r(e){var t=he(),r=(e?We:Me)(18),n=ee(8388608,qt);e&&!r||ze(19);var i=R.createJSDocTypeExpression(n);return J(i),Qe(i,t)}function n(){for(var e=he(),t=We(18),r=he(),n=It(!1);80===ve();)Ae(),De(),n=Qe(R.createJSDocMemberName(n,nt()),r);t&&ze(19);var i=R.createJSDocNameReference(n);return J(i),Qe(i,e)}var i,a;function o(t,i){void 0===t&&(t=0);var a=_,o=void 0===i?a.length:t+i;if(i=o-t,e.Debug.assert(t>=0),e.Debug.assert(t<=o),e.Debug.assert(o<=a.length),p(a,t)){var c,l,u,f,m,g=[],h=[];return s.scanRange(t+3,i-5,(()=>{var r,n,i=1,d=t-(a.lastIndexOf("\n",t)+1)+4;function p(e){r||(r=d),g.push(e),d+=e.length}for(De();K(5););K(4)&&(i=0,d=0);e:for(;;){switch(ve()){case 59:0===i||1===i?(v(g),m||(m=he()),(n=D(d))&&(c?c.push(n):(c=[n],l=n.pos),u=n.end),i=0,r=void 0):p(s.getTokenText());break;case 4:g.push(s.getTokenText()),i=0,d=0;break;case 41:var _=s.getTokenText();1===i||2===i?(i=2,p(_)):(i=1,d+=_.length);break;case 5:var b=s.getTokenText();2===i?g.push(b):void 0!==r&&d+b.length>r&&g.push(b.slice(r-d)),d+=b.length;break;case 1:break e;case 18:i=2;var E=s.getStartPos(),x=A(s.getTextPos()-1);if(x){f||y(g),h.push(Qe(R.createJSDocText(g.join("")),null!=f?f:t,E)),h.push(x),g=[],f=s.getTextPos();break}default:i=2,p(s.getTokenText())}De()}v(g),h.length&&g.length&&h.push(Qe(R.createJSDocText(g.join("")),null!=f?f:t,m)),h.length&&c&&e.Debug.assertIsDefined(m,"having parsed tags implies that the end of the comment span should be set");var S=c&&Ye(c,l,u);return Qe(R.createJSDocComment(h.length?Ye(h,t,m):g.length?g.join(""):void 0,S),t,o)}))}function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function b(){for(;;){if(De(),1===ve())return!0;if(5!==ve()&&4!==ve())return!1}}function E(){if(5!==ve()&&4!==ve()||!Fe(b))for(;5===ve()||4===ve();)De()}function x(){if((5===ve()||4===ve())&&Fe(b))return"";for(var e=s.hasPrecedingLineBreak(),t=!1,r="";e&&41===ve()||5===ve()||4===ve();)r+=s.getTokenText(),4===ve()?(e=!0,t=!0,r=""):41===ve()&&(e=!1),De();return t?r:""}function D(t){e.Debug.assert(59===ve());var i=s.getTokenPos();De();var a,o=J(void 0),l=x();switch(o.escapedText){case"author":a=((t,r,n,i)=>{var a=he(),o=(()=>{for(var e=[],t=!1,r=s.getToken();1!==r&&4!==r;){if(29===r)t=!0;else{if(59===r&&!t)break;if(31===r&&t){e.push(s.getTokenText()),s.setTextPos(s.getTokenPos()+1);break}}e.push(s.getTokenText()),r=De()}return R.createJSDocText(e.join(""))})(),c=s.getStartPos(),l=S(t,c,n,i);l||(c=s.getStartPos());var d="string"!=typeof l?Ye(e.concatenate([Qe(o,a,c)],l),a):o.text+l;return Qe(R.createJSDocAuthorTag(r,d),t)})(i,o,t,l);break;case"implements":a=((e,t,r,n)=>{var i=M();return Qe(R.createJSDocImplementsTag(t,i,S(e,he(),r,n)),e)})(i,o,t,l);break;case"augments":case"extends":a=((e,t,r,n)=>{var i=M();return Qe(R.createJSDocAugmentsTag(t,i,S(e,he(),r,n)),e)})(i,o,t,l);break;case"class":case"constructor":a=L(i,R.createJSDocClassTag,o,t,l);break;case"public":a=L(i,R.createJSDocPublicTag,o,t,l);break;case"private":a=L(i,R.createJSDocPrivateTag,o,t,l);break;case"protected":a=L(i,R.createJSDocProtectedTag,o,t,l);break;case"readonly":a=L(i,R.createJSDocReadonlyTag,o,t,l);break;case"override":a=L(i,R.createJSDocOverrideTag,o,t,l);break;case"deprecated":W=!0,a=L(i,R.createJSDocDeprecatedTag,o,t,l);break;case"this":a=((e,t,n,i)=>{var a=r(!0);return E(),Qe(R.createJSDocThisTag(t,a,S(e,he(),n,i)),e)})(i,o,t,l);break;case"enum":a=((e,t,n,i)=>{var a=r(!0);return E(),Qe(R.createJSDocEnumTag(t,a,S(e,he(),n,i)),e)})(i,o,t,l);break;case"arg":case"argument":case"param":return I(i,o,2,t);case"return":case"returns":a=((t,r,n,i)=>{e.some(c,e.isJSDocReturnTag)&&fe(r.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=F();return Qe(R.createJSDocReturnTag(r,a,S(t,he(),n,i)),t)})(i,o,t,l);break;case"template":a=((e,t,n,i)=>{var a=18===ve()?r():void 0,o=(()=>{var e=he(),t=[];do{E();var r=H();void 0!==r&&t.push(r),x()}while(K(27));return Ye(t,e)})();return Qe(R.createJSDocTemplateTag(t,a,o,S(e,he(),n,i)),e)})(i,o,t,l);break;case"type":a=O(i,o,t,l);break;case"typedef":a=((t,r,n,i)=>{var a,o=F();x();var s=B();E();var c,l=T(n);if(!o||P(o.type)){for(var u=void 0,p=void 0,_=void 0,f=!1;u=Pe((()=>j(n)));)if(f=!0,343===u.kind){if(p){var m=pe(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);m&&e.addRelatedInfo(m,e.createDetachedDiagnostic(d,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}p=u}else _=e.append(_,u);if(f){var g=o&&183===o.type.kind,h=R.createJSDocTypeLiteral(_,g);c=(o=p&&p.typeExpression&&!P(p.typeExpression.type)?p.typeExpression:Qe(h,t)).end}}return c=c||void 0!==l?he():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,l||(l=S(t,c,n,i)),Qe(R.createJSDocTypedefTag(r,o,s,l),t,c)})(i,o,t,l);break;case"callback":a=((t,r,n,i)=>{var a=B();E();var o=T(n),s=(t=>{for(var r,n,i=he();r=Pe((()=>V(4,t)));)n=e.append(n,r);return Ye(n||[],i)})(n),c=Pe((()=>{if(K(59)){var e=D(n);if(e&&341===e.kind)return e}})),l=Qe(R.createJSDocSignature(void 0,s,c),t);o||(o=S(t,he(),n,i));var d=void 0!==o?he():l.end;return Qe(R.createJSDocCallbackTag(r,l,a,o),t,d)})(i,o,t,l);break;case"see":a=((t,r,i,a)=>{var o=22===ve()||Fe((()=>59===De()&&e.tokenIsIdentifierOrKeyword(De())&&N(s.getTokenValue())))?void 0:n(),c=void 0!==i&&void 0!==a?S(t,he(),i,a):void 0;return Qe(R.createJSDocSeeTag(r,o,c),t)})(i,o,t,l);break;default:a=((e,t,r,n)=>Qe(R.createJSDocUnknownTag(t,S(e,he(),r,n)),e))(i,o,t,l)}return a}function S(e,t,r,n){return n||(r+=t-e),T(r,n.slice(r))}function T(e,t){var r,n,i=he(),a=[],o=[],c=0,l=!0;function d(t){n||(n=e),a.push(t),e+=t.length}void 0!==t&&(""!==t&&d(t),c=1);var u=ve();e:for(;;){switch(u){case 4:c=0,a.push(s.getTokenText()),e=0;break;case 59:if(3===c||2===c&&(!l||Fe(C))){a.push(s.getTokenText());break}s.setTextPos(s.getTextPos()-1);case 1:break e;case 5:if(2===c||3===c)d(s.getTokenText());else{var p=s.getTokenText();void 0!==n&&e+p.length>n&&a.push(p.slice(n-e)),e+=p.length}break;case 18:c=2;var _=s.getStartPos(),f=A(s.getTextPos()-1);f?(o.push(Qe(R.createJSDocText(a.join("")),null!=r?r:i,_)),o.push(f),a=[],r=s.getTextPos()):d(s.getTokenText());break;case 61:c=3===c?2:3,d(s.getTokenText());break;case 41:if(0===c){c=1,e+=1;break}default:3!==c&&(c=2),d(s.getTokenText())}l=5===ve(),u=De()}return y(a),v(a),o.length?(a.length&&o.push(Qe(R.createJSDocText(a.join("")),null!=r?r:i)),Ye(o,i,s.getTextPos())):a.length?a.join(""):void 0}function C(){var e=De();return 5===e||4===e}function A(t){var r=Pe(k);if(r){De(),E();var n=he(),i=e.tokenIsIdentifierOrKeyword(ve())?It(!0):void 0;if(i)for(;80===ve();)Ae(),De(),i=Qe(R.createJSDocMemberName(i,nt()),n);for(var a=[];19!==ve()&&4!==ve()&&1!==ve();)a.push(s.getTokenText()),De();return Qe(("link"===r?R.createJSDocLink:"linkcode"===r?R.createJSDocLinkCode:R.createJSDocLinkPlain)(i,a.join("")),t,s.getTextPos())}}function k(){if(x(),18===ve()&&59===De()&&e.tokenIsIdentifierOrKeyword(De())){var t=s.getTokenValue();if(N(t))return t}}function N(e){return"link"===e||"linkcode"===e||"linkplain"===e}function F(){return x(),18===ve()?r():void 0}function P(t){switch(t.kind){case 148:return!0;case 183:return P(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function I(t,r,n,i){var a=F(),o=!a;x();var s=(()=>{var t=K(22);t&&E();var r=K(61),n=(()=>{var e=J();for(We(22)&&Me(23);We(24);){var t=J();We(22)&&Me(23),e=Ot(e,t)}return e})();return r&&((e=>{if(61===ve())return t=he(),r=ve(),De(),Qe(R.createToken(r),t);var t,r})()||Ze(61,!1,e.Diagnostics._0_expected,e.tokenToString(61))),t&&(E(),Ke(63)&&Wr(),Me(23)),{name:n,isBracketed:t}})(),c=s.name,l=s.isBracketed,d=x();o&&!Fe(k)&&(a=F());var u=S(t,he(),i,d),p=4!==n&&((t,r,n,i)=>{if(t&&P(t.type)){for(var a=he(),o=void 0,s=void 0;o=Pe((()=>V(n,i,r)));)340!==o.kind&&347!==o.kind||(s=e.append(s,o));if(s){var c=Qe(R.createJSDocTypeLiteral(s,183===t.type.kind),a);return Qe(R.createJSDocTypeExpression(c),a)}}})(a,c,n,i);return p&&(a=p,o=!0),Qe(1===n?R.createJSDocPropertyTag(r,c,l,a,o,u):R.createJSDocParameterTag(r,c,l,a,o,u),t)}function O(t,n,i,a){e.some(c,e.isJSDocTypeTag)&&fe(n.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var o=r(!0),l=void 0!==i&&void 0!==a?S(t,he(),i,a):void 0;return Qe(R.createJSDocTypeTag(n,o,l),t)}function M(){var e=We(18),t=he(),r=(()=>{for(var e=he(),t=J();We(24);){var r=J();t=Qe(R.createPropertyAccessExpression(t,r),e)}return t})(),n=Ti(),i=Qe(R.createExpressionWithTypeArguments(r,n),t);return e&&Me(19),i}function L(e,t,r,n,i){return Qe(t(r,S(e,he(),n,i)),e)}function B(t){var r=s.getTokenPos();if(e.tokenIsIdentifierOrKeyword(ve())){var n=J();if(We(24)){var i=B(!0);return Qe(R.createModuleDeclaration(void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function U(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 j(e){return V(1,e)}function V(t,r,n){for(var i=!0,a=!1;;)switch(De()){case 59:if(i){var o=z(t,r);return!(o&&(340===o.kind||347===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!U(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 79:i=!1;break;case 1:return!1}}function z(t,r){e.Debug.assert(59===ve());var n=s.getStartPos();De();var i,a=J();switch(E(),a.escapedText){case"type":return 1===t&&O(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&I(n,a,t,r)}function H(){var t=he(),r=K(22);r&&E();var n,i=J(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(r&&(E(),Me(63),n=ee(8388608,qt),Me(23)),!e.nodeIsMissing(i))return Qe(R.createTypeParameterDeclaration(void 0,i,void 0,n),t)}function K(e){return ve()===e&&(De(),!0)}function J(t){if(!e.tokenIsIdentifierOrKeyword(ve()))return Ze(79,!t,t||e.Diagnostics.Identifier_expected);w++;var r=s.getTokenPos(),n=s.getTextPos(),i=ve(),a=et(s.getTokenValue()),o=Qe(R.createIdentifier(a,void 0,i),r,n);return De(),o}}t.parseJSDocTypeExpressionForTests=(t,n,i)=>{j("file.js",t,99,void 0,1),s.setText(t,n,i),C=s.scan();var a=r(),o=G("file.js",99,1,!1,[],R.createToken(1),0,e.noop),c=e.attachFileToDiagnostics(y,o);return v&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(v,o)),V(),a?{jsDocTypeExpression:a,diagnostics:c}:void 0},t.parseJSDocTypeExpression=r,t.parseJSDocNameReference=n,t.parseIsolatedJSDocComment=(t,r,n)=>{j("",t,99,void 0,1);var i=ee(8388608,(()=>o(r,n))),a={languageVariant:0,text:t},s=e.attachFileToDiagnostics(y,a);return V(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=(t,r,n)=>{var i=C,a=y.length,s=B,c=ee(8388608,(()=>o(r,n)));return e.setParent(c,t),262144&O&&(v||(v=[]),v.push.apply(v,y)),C=i,y.length=a,B=s,c},(e=>{e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"})(i||(i={})),(e=>{e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"})(a||(a={}))})(Be=t.JSDocParser||(t.JSDocParser={}))})(c||(c={})),(t=>{function r(t,r,i,o,s,c){return void(r?d(t):l(t));function l(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)),y(t,l,d),e.hasJSDocNodes(t))for(var u=0,p=t.jsDoc;u<p.length;u++)l(p[u]);a(t,c)}function d(t){t._children=void 0,e.setTextRangePosEnd(t,t.pos+i,t.end+i);for(var r=0,n=t;r<n.length;r++)l(n[r])}}function n(e){switch(e.kind){case 10:case 8:case 79:return!0}return!1}function i(t,r,n,i,a){e.Debug.assert(t.end>=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=t=>{e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;a<o.length;a++)i(o[a]);y(t,i),e.Debug.assert(n<=t.end)}}function o(t,r){var n,i=t;if(y(t,(function t(a){if(!e.nodeIsMissing(a))return a.pos<=r?(a.pos>=i.pos&&(i=a),r<a.end?(y(a,t),!0):(e.Debug.assert(a.end<=r),void(n=a))):(e.Debug.assert(a.pos>r),!0)})),n){var a=(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),l=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===l)}}function l(t){var r=t.statements,n=0;e.Debug.assert(n<r.length);var i=r[n],a=-1;return{currentNode:o=>(o!==a&&(i&&i.end===o&&n<r.length-1&&(n++,i=r[n]),i&&i.pos===o||(e=>{return r=void 0,n=-1,i=void 0,void y(t,a,o);function a(t){return e>=t.pos&&e<t.end&&(y(t,a,o),!0)}function o(t){if(e>=t.pos&&e<t.end)for(var s=0;s<t.length;s++){var c=t[s];if(c){if(c.pos===e)return r=t,n=s,i=c,!0;if(c.pos<e&&e<c.end)return y(c,a,o),!0}}return!1}})(o)),a=o,e.Debug.assert(!i||i.pos===o),i)}}var d;t.updateSourceFile=(t,n,d,u)=>{if(s(t,n,d,u=u||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(d))return t;if(0===t.statements.length)return c.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind,t.setExternalModuleIndicator);var p=t;e.Debug.assert(!p.hasBeenIncrementallyParsed),p.hasBeenIncrementallyParsed=!0,c.fixupParentReferences(p);var _=t.text,f=l(t),m=((t,r)=>{for(var n=r.span.start,i=0;n>0&&i<=1;i++){var a=o(t,n);e.Debug.assert(a.pos<=n);var s=a.pos;n=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span)),l=r.newLength+(r.span.start-n);return e.createTextChangeRange(c,l)})(t,d);s(t,n,m,u),e.Debug.assert(m.span.start<=d.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(d.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(d)));var g=e.textChangeRangeNewSpan(m).length-m.span.length;!((t,n,o,s,c,l,d,u)=>{return void p(t);function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,l,d,u);else{var f=t.end;if(f>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),y(t,p,_),e.hasJSDocNodes(t))for(var m=0,g=t.jsDoc;m<g.length;m++)p(g[m]);a(t,u)}else e.Debug.assert(f<n)}}function _(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!0,c,l,d,u);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var _=0,f=t;_<f.length;_++)p(f[_])}else e.Debug.assert(a<n)}}})(p,m.span.start,e.textSpanEnd(m.span),e.textSpanEnd(e.textChangeRangeNewSpan(m)),g,_,n,u);var h=c.parseSourceFile(t.fileName,n,t.languageVersion,f,!0,t.scriptKind,t.setExternalModuleIndicator);return h.commentDirectives=((t,r,n,i,a,o,s,c)=>{if(!t)return r;for(var l,d=!1,u=0,p=t;u<p.length;u++){var _=p[u],f=_.range,m=_.type;if(f.end<n)l=e.append(l,_);else if(f.pos>i){h();var g={range:{pos:f.pos+a,end:f.end+a},type:m};l=e.append(l,g),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(g.range.pos,g.range.end))}}return h(),l;function h(){d||(d=!0,l?r&&l.push.apply(l,r):l=r)}})(t.commentDirectives,h.commentDirectives,m.span.start,e.textSpanEnd(m.span),g,_,n,u),h.impliedNodeFormat=t.impliedNodeFormat,h},t.createSyntaxCursor=l,(e=>{e[e.Value=-1]="Value"})(d||(d={}))})(l||(l={})),e.isDeclarationFileName=x,e.processCommentPragmas=D,e.processPragmasIntoFields=S;var T=new e.Map;function C(e){if(T.has(e))return T.get(e);var t=new RegExp("(\\s".concat(e,"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"),"im");return T.set(e,t),t}var A=/^\/\/\/\s*<(\S+)\s.*?\/>/im,k=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function N(t,r,n){var i=2===r.kind&&A.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,l=o.args;c<l.length;c++){var d=l[c],u=C(d.name).exec(n);if(!u&&!d.optional)return;if(u){var p=u[2]||u[3];if(d.captureSpan){var _=r.pos+u.index+u[1].length+1;s[d.name]={value:p,pos:_,end:_+p.length}}else s[d.name]=p}}t.push({name:a,args:{arguments:s,range:r}})}else t.push({name:a,args:{arguments:{},range:r}})}else{var f=2===r.kind&&k.exec(n);if(f)return w(t,r,2,f);if(3===r.kind)for(var m=/@(\S+)(\s+.*)?$/gim,g=void 0;g=m.exec(n);)w(t,r,4,g)}}function w(t,r,n,i){if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(o&&o.kind&n){var s=((t,r)=>{if(!r)return{};if(!t.args)return{};for(var n=e.trimString(r).split(/\s+/),i={},a=0;a<t.args.length;a++){var o=t.args[a];if(!n[a]&&!o.optional)return"fail";if(o.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");i[o.name]=n[a]}return i})(o,i[2]);"fail"!==s&&t.push({name:a,args:{arguments:s,range:r}})}}}function F(e,t){return e.kind===t.kind&&(79===e.kind?e.escapedText===t.escapedText:108===e.kind||e.name.escapedText===t.name.escapedText&&F(e.expression,t.expression))}e.tagNamesAreEquivalent=F})(p),(e=>{e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean",defaultValueDescription:!1};var t=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(t.entries(),(e=>{var t=e[0];return[""+e[1],t]}))));var r=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["esnext.array","lib.es2022.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];e.libs=r.map((e=>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,fixedchunksizepolling:e.WatchFileKind.FixedChunkSizePolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:e.WatchFileKind.UseFsEvents},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchDirectoryKind.FixedChunkSizePolling})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:e.WatchDirectoryKind.UseFsEvents},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority,fixedchunksize:e.PollingWatchKind.FixedChunkSize})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:e.PollingWatchKind.PriorityInterval},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Se},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Se},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Projects,description:e.Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:e.Diagnostics.Platform_specific}],e.targetOptionDeclaration={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,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:0},e.moduleOptionDeclaration={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,es2022:e.ModuleKind.ES2022,esnext:e.ModuleKind.ESNext,node16:e.ModuleKind.Node16,nodenext:e.ModuleKind.NodeNext})),affectsModuleResolution:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_what_module_code_is_generated,defaultValueDescription:void 0};var n,i=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version,defaultValueDescription:!1},{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,defaultValueDescription:!1},{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,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},e.targetOptionDeclaration,e.moduleOptionDeclaration,{name:"lib",type:"list",element:{name:"lib",type:e.libMap,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:t,affectsSourceFile:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:!1,description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,affectsBundleEmitBuildInfo:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsBundleEmitBuildInfo:!0,isTSConfigOnly:!0,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:e.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsBundleEmitBuildInfo:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:e.Diagnostics.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:!1,description:e.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!1,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic,node16:e.ModuleResolutionKind.Node16,nodenext:e.ModuleResolutionKind.NodeNext})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:e.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:e.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsModuleResolution:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Enable_importing_json_files,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,affectsBundleEmitBuildInfo:!0,isFilePath:!1,category:e.Diagnostics.Backwards_Compatibility,paramType:e.Diagnostics.FILE,transpileOptionValue:void 0,description:e.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Emit,description:e.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:e.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:e.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:e.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:e.Diagnostics.Editor_Support,description:e.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!1},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:e.Diagnostics.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsMultiFileEmitBuildInfo:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.Specify_a_list_of_language_service_plugins_to_include,category:e.Diagnostics.Editor_Support},{name:"moduleDetection",type:new e.Map(e.getEntries({auto:e.ModuleDetectionKind.Auto,legacy:e.ModuleDetectionKind.Legacy,force:e.ModuleDetectionKind.Force})),affectsModuleResolution:!0,description:e.Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files,category:e.Diagnostics.Language_and_Environment,defaultValueDescription:e.Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules}];function a(t){var r=new e.Map,n=new e.Map;return e.forEach(t,(e=>{r.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:r,shortOptionNames:n}}function o(){return n||(n=a(e.optionDeclarations))}e.optionDeclarations=f(f([],e.commonOptionsWithBuild,!0),i,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter((e=>!!e.affectsSemanticDiagnostics)),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter((e=>!!e.affectsEmit)),e.affectsDeclarationPathOptionDeclarations=e.optionDeclarations.filter((e=>!!e.affectsDeclarationPath)),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter((e=>!!e.affectsModuleResolution)),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter((e=>!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics)),e.optionsAffectingProgramStructure=e.optionDeclarations.filter((e=>!!e.affectsProgramStructure)),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter((t=>e.hasProperty(t,"transpileOptionValue"))),e.optionsForBuild=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{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",defaultValueDescription:!1},{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",defaultValueDescription:!1},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],e.buildOpts=f(f([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean",defaultValueDescription:!1},{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],e.createOptionNameMap=a,e.getOptionsNameMap=o;var s,c={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:x};function l(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function d(t){return u(t,e.createCompilerDiagnostic)}function u(t,r){var n=e.arrayFrom(t.type.keys()).map((e=>"'".concat(e,"'"))).join(", ");return r(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--".concat(t.name),n)}function p(t,r,n){return he(t,e.trimString(r||""),n)}function _(t,r,n){if(void 0===r&&(r=""),r=e.trimString(r),!e.startsWith(r,"-")){if(""===r)return[];var i=r.split(",");switch(t.element.type){case"number":return e.mapDefined(i,(e=>ge(t.element,parseInt(e),n)));case"string":return e.mapDefined(i,(e=>ge(t.element,e||"",n)));default:return e.mapDefined(i,(e=>p(t.element,e,n)))}}}function g(e){return e.name}function h(t,r,n,i){var a;if(null===(a=r.alternateMode)||void 0===a?void 0:a.getOptionsNameMap().optionsNameMap.has(t.toLowerCase()))return n(r.alternateMode.diagnostic,t);var o=e.getSpellingSuggestion(t,r.optionDeclarations,g);return o?n(r.unknownDidYouMeanDiagnostic,i||t,o.name):n(r.unknownOptionDiagnostic,i||t)}function y(t,r,n){var i,a={},o=[],s=[];return c(r),{options:a,watchOptions:i,fileNames:o,errors:s};function c(r){for(var n=0;n<r.length;){var c=r[n];if(n++,64===c.charCodeAt(0))l(c.slice(1));else if(45===c.charCodeAt(0)){var d=c.slice(45===c.charCodeAt(1)?2:1),u=E(t.getOptionsNameMap,d,!0);if(u)n=v(r,n,t,u,a,s);else{var p=E(M.getOptionsNameMap,d,!0);p?n=v(r,n,M,p,i||(i={}),s):s.push(h(d,t,e.createCompilerDiagnostic,c))}}else o.push(c)}}function l(t){var r=C(t,n||(t=>e.sys.readFile(t)));if(e.isString(r)){for(var i=[],a=0;;){for(;a<r.length&&r.charCodeAt(a)<=32;)a++;if(a>=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a<r.length&&34!==r.charCodeAt(a);)a++;a<r.length?(i.push(r.substring(o+1,a)),a++):s.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,t))}else{for(;r.charCodeAt(a)>32;)a++;i.push(r.substring(o,a))}}c(i)}else s.push(r)}}function v(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]=ge(i,!1,o),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,z(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=ge(i,parseInt(t[r]),o),r++;break;case"boolean":var s=t[r];a[i.name]=ge(i,"false"!==s,o),"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=ge(i,t[r]||"",o),r++;break;case"list":var c=_(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=p(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function b(e,t){return E(o,e,t)}function E(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionsNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function x(){return s||(s=a(e.buildOpts))}e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=l,e.createCompilerDiagnosticForInvalidCustomType=d,e.parseCustomTypeOption=p,e.parseListTypeOption=_,e.parseCommandLineWorker=y,e.compilerOptionsDidYouMeanDiagnostics={alternateMode:c,getOptionsNameMap:o,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=(t,r)=>y(e.compilerOptionsDidYouMeanDiagnostics,t,r),e.getOptionFromName=b;var D={alternateMode:{diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:o},getOptionsNameMap:x,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 S(t,r){var n=e.parseJsonText(t,r);return{config:U(n,n.parseDiagnostics,!1,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function T(t,r){var n=C(t,r);return e.isString(n)?e.parseJsonText(t,n):{fileName:t,parseDiagnostics:[n]}}function C(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):n}function A(t){return e.arrayToMap(t,g)}e.parseBuildCommand=t=>{var r=y(D,t),n=r.options,i=r.watchOptions,a=r.fileNames,o=r.errors,s=n;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:i,projects:a,errors:o}},e.getDiagnosticText=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=e.createCompilerDiagnostic.apply(void 0,arguments);return i.messageText},e.getParsedCommandLineOfConfigFile=(t,r,n,i,a,o)=>{var s=C(t,(e=>n.readFile(e)));if(e.isString(s)){var c=e.parseJsonText(t,s),l=n.getCurrentDirectory();return c.path=e.toPath(t,l,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames)),c.resolvedPath=c.path,c.originalFileName=c.fileName,Q(c,n,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),l),r,e.getNormalizedAbsolutePath(t,l),void 0,o,i,a)}n.onUnRecoverableConfigFileDiagnostic(s)},e.readConfigFile=(t,r)=>{var n=C(t,r);return e.isString(n)?S(t,n):{config:{},error:n}},e.parseConfigFileTextToJson=S,e.readJsonConfigFile=T,e.tryReadFile=C;var k,N={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1};function w(){return k||(k=a(e.optionsForWatch))}var F,P,I,O,M={getOptionsNameMap:w,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1};function R(){return F||(F=A(e.optionDeclarations))}function L(){return P||(P=A(e.optionsForWatch))}function B(){return I||(I=A(e.typeAcquisitionDeclarations))}function U(t,r,n,i){var a,o=null===(a=t.statements[0])||void 0===a?void 0:a.expression,s=n?(void 0===O&&(O={name:void 0,type:"object",elementOptions:A([{name:"compilerOptions",type:"object",elementOptions:R(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:L(),extraKeyDiagnostics:M},{name:"typingOptions",type:"object",elementOptions:B(),extraKeyDiagnostics:N},{name:"typeAcquisition",type:"object",elementOptions:B(),extraKeyDiagnostics:N},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),O):void 0;if(o&&205!==o.kind){if(r.push(e.createDiagnosticForNodeInSourceFile(t,o,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===e.getBaseFileName(t.fileName)?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(o)){var c=e.find(o.elements,e.isObjectLiteralExpression);if(c)return V(t,c,r,!0,s,i)}return{}}return V(t,o,r,!0,s,i)}function j(e,t){var r;return V(e,null===(r=e.statements[0])||void 0===r?void 0:r.expression,t,!0,void 0,void 0)}function V(t,r,n,i,a,o){return r?l(r,a):i?{}:void 0;function s(e){return a&&a.elementOptions===e}function c(r,a,c,u){for(var p=i?{}:void 0,_=r=>{if(296!==r.kind)return n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Property_assignment_expected)),"continue";r.questionToken&&n.push(e.createDiagnosticForNodeInSourceFile(t,r.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),d(r.name)||n.push(e.createDiagnosticForNodeInSourceFile(t,r.name,e.Diagnostics.String_literal_with_double_quotes_expected));var _=e.isComputedNonLiteralName(r.name)?void 0:e.getTextOfPropertyName(r.name),f=_&&e.unescapeLeadingUnderscores(_),m=f&&a?a.get(f):void 0;f&&c&&!m&&(a?n.push(h(f,c,((n,i,a)=>e.createDiagnosticForNodeInSourceFile(t,r.name,n,i,a)))):n.push(e.createDiagnosticForNodeInSourceFile(t,r.name,c.unknownOptionDiagnostic,f)));var g=l(r.initializer,m);if(void 0!==f&&(i&&(p[f]=g),o&&(u||s(a)))){var y=H(m,g);u?y&&o.onSetValidOptionKeyValueInParent(u,m,g):s(a)&&(y?o.onSetValidOptionKeyValueInRoot(f,r.name,g,r.initializer):m||o.onSetUnknownOptionKeyValueInRoot(f,r.name,g,r.initializer))}},f=0,m=r.properties;f<m.length;f++)_(m[f]);return p}function l(r,a){var o;switch(r.kind){case 110:return h(a&&"boolean"!==a.type),g(!0);case 95:return h(a&&"boolean"!==a.type),g(!1);case 104:return h(a&&"extends"===a.name),g(null);case 10:d(r)||n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.String_literal_with_double_quotes_expected)),h(a&&e.isString(a.type)&&"string"!==a.type);var s=r.text;if(a&&!e.isString(a.type)){var p=a;p.type.has(s.toLowerCase())||(n.push(u(p,((n,i,a)=>e.createDiagnosticForNodeInSourceFile(t,r,n,i,a)))),o=!0)}return g(s);case 8:return h(a&&"number"!==a.type),g(Number(r.text));case 219:if(40!==r.operator||8!==r.operand.kind)break;return h(a&&"number"!==a.type),g(-Number(r.operand.text));case 205:h(a&&"object"!==a.type);var _=r;if(a){var m=a;return g(c(_,m.elementOptions,m.extraKeyDiagnostics,m.name))}return g(c(_,void 0,void 0,void 0));case 204:return h(a&&"list"!==a.type),g(((t,r)=>{if(i)return e.filter(t.map((e=>l(e,r))),(e=>void 0!==e));t.forEach((e=>l(e,r)))})(r.elements,a&&a.element))}return void(a?h(!0):n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function g(i){var s;if(!o){var c=null===(s=null==a?void 0:a.extraValidation)||void 0===s?void 0:s.call(a,i);if(c)return void n.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,f([t,r],c,!1)))}return i}function h(i){i&&(n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,a.name,z(a))),o=!0)}}function d(r){return e.isStringLiteral(r)&&e.isStringDoubleQuoted(r,t)}}function z(t){return"list"===t.type?"Array":e.isString(t.type)?t.type:"string"}function H(t,r){return!!t&&(!!ee(r)||("list"===t.type?e.isArray(r):typeof r===(e.isString(t.type)?t.type:"string")))}function W(t){return m({},e.arrayFrom(t.entries()).reduce(((e,t)=>{var r;return m(m({},e),((r={})[t[0]]=t[1],r))}),{}))}function K(t){if(e.length(t)){if(1!==e.length(t))return t;if(t[0]!==e.defaultIncludeSpec)return t}}function J(e){return"string"===e.type||"number"===e.type||"boolean"===e.type||"object"===e.type?void 0:"list"===e.type?J(e.element):e.type}function G(t,r){return e.forEachEntry(r,((e,r)=>{if(e===t)return r}))}function $(e,t){return q(e,o(),t)}function q(t,r,n){var i=r.optionsNameMap,a=new e.Map,o=n&&e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),s=r=>{if(e.hasProperty(t,r)){if(i.has(r)&&(i.get(r).category===e.Diagnostics.Command_line_Options||i.get(r).category===e.Diagnostics.Output_Formatting))return"continue";var s=t[r],c=i.get(r.toLowerCase());if(c){var l=J(c);l?"list"===c.type?a.set(r,s.map((e=>G(e,l)))):a.set(r,G(s,l)):n&&c.isFilePath?a.set(r,e.getRelativePathFromFile(n.configFilePath,e.getNormalizedAbsolutePath(s,e.getDirectoryPath(n.configFilePath)),o)):a.set(r,s)}}};for(var c in t)s(c);return a}function X(t){return $(e.extend(t,e.defaultInitCompilerOptions))}function Y(e,t,r){if(e&&!ee(t))if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function Q(t,r,n,i,a,o,s,c,l){null===e.tracing||void 0===e.tracing||e.tracing.push("parse","parseJsonSourceFileConfigFileContent",{path:t.fileName});var d=re(void 0,t,r,n,i,l,a,o,s,c);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),d}function Z(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function ee(e){return null==e}function te(t,r){return e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r))}function re(t,r,n,i,a,o,s,c,l,d){void 0===a&&(a={}),void 0===c&&(c=[]),void 0===l&&(l=[]),e.Debug.assert(void 0===t&&void 0!==r||void 0!==t&&void 0===r);var u=[],p=oe(t,r,n,i,s,c,u,d),_=p.raw,f=e.extend(a,p.options||{}),m=o&&p.watchOptions?e.extend(o,p.watchOptions):p.watchOptions||o;f.configFilePath=s&&e.normalizeSlashes(s);var g=(()=>{var t=b("references",(e=>"object"==typeof e),"object"),n=y(v("files"));if(n){var i="no-prop"===t||e.isArray(t)&&0===t.length,a=e.hasProperty(_,"extends");if(0===n.length&&i&&!a)if(r){var o=s||"tsconfig.json",c=e.Diagnostics.The_files_list_in_config_file_0_is_empty,l=e.firstDefined(e.getTsConfigPropArray(r,"files"),(e=>e.initializer)),d=l?e.createDiagnosticForNodeInSourceFile(r,l,c,o):e.createCompilerDiagnostic(c,o);u.push(d)}else E(e.Diagnostics.The_files_list_in_config_file_0_is_empty,s||"tsconfig.json")}var p,f,m=y(v("include")),g=v("exclude"),h=!1,x=y(g);if("no-prop"===g&&_.compilerOptions){var D=_.compilerOptions.outDir,S=_.compilerOptions.declarationDir;(D||S)&&(x=[D,S].filter((e=>!!e)))}return void 0===n&&void 0===m&&(m=[e.defaultIncludeSpec],h=!0),m&&(p=De(m,u,!0,r,"include")),x&&(f=De(x,u,!1,r,"exclude")),{filesSpecs:n,includeSpecs:m,excludeSpecs:x,validatedFilesSpec:e.filter(n,e.isString),validatedIncludeSpecs:p,validatedExcludeSpecs:f,pathPatterns:void 0,isDefaultIncludeSpec:h}})();r&&(r.configFileSpecs=g),Z(f,r);var h=e.normalizePath(s?te(s,i):i);return{options:f,watchOptions:m,fileNames:(e=>{var t=be(g,e,f,n,l);return ie(t,ae(_),c)&&u.push(ne(g,s)),t})(h),projectReferences:(t=>{var r,n=b("references",(e=>"object"==typeof e),"object");if(e.isArray(n))for(var i=0,a=n;i<a.length;i++){var o=a[i];"string"!=typeof o.path?E(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(r||(r=[])).push({path:e.getNormalizedAbsolutePath(o.path,t),originalPath:o.path,prepend:o.prepend,circular:o.circular})}return r})(h),typeAcquisition:p.typeAcquisition||de(),raw:_,errors:u,wildcardDirectories:Te(g,h,n.useCaseSensitiveFileNames),compileOnSave:!!_.compileOnSave};function y(t){return e.isArray(t)?t:void 0}function v(t){return b(t,e.isString,"string")}function b(t,n,i){if(e.hasProperty(_,t)&&!ee(_[t])){if(e.isArray(_[t])){var a=_[t];return r||e.every(a,n)||u.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t,i)),a}return E(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t,"Array"),"not-array"}return"no-prop"}function E(t,n,i){r||u.push(e.createCompilerDiagnostic(t,n,i))}}function ne(t,r){var n=t.includeSpecs,i=t.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(n||[]),JSON.stringify(i||[]))}function ie(e,t,r){return 0===e.length&&t&&(!r||0===r.length)}function ae(t){return!e.hasProperty(t,"files")&&!e.hasProperty(t,"references")}function oe(t,r,n,a,o,s,c,l){var d;a=e.normalizeSlashes(a);var u=e.getNormalizedAbsolutePath(o||"",a);if(s.indexOf(u)>=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,f(f([],s,!0),[u],!1).join(" -> "))),{raw:t||j(r,c)};var p=t?((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=le(t.compilerOptions,n,a,i),c=ue(t.typeAcquisition||t.typingOptions,n,a,i),l=((e,t,r)=>pe(L(),e,t,void 0,M,r))(t.watchOptions,n,a);if(t.compileOnSave=((t,r,n)=>{if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=_e(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i})(t,n,a),t.extends)if(e.isString(t.extends)){var d=i?te(i,n):n;o=se(t.extends,r,d,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:l,typeAcquisition:c,extendedConfigPath:o}})(t,n,a,o,c):((t,r,n,a,o)=>{var s,c,l,d,u,p=ce(a),_={onSetValidOptionKeyValueInParent(t,r,i){var o;switch(t){case"compilerOptions":o=p;break;case"watchOptions":o=l||(l={});break;case"typeAcquisition":o=s||(s=de(a));break;case"typingOptions":o=c||(c=de(a));break;default:e.Debug.fail("Unknown option")}o[r.name]=fe(r,n,i)},onSetValidOptionKeyValueInRoot(i,s,c,l){switch(i){case"extends":var u=a?te(a,n):n;return void(d=se(c,r,u,o,((r,n)=>e.createDiagnosticForNodeInSourceFile(t,l,r,n))))}},onSetUnknownOptionKeyValueInRoot(r,n,a,s){"excludes"===r&&o.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(i,(e=>e.name===r))&&(u=e.append(u,n))}},f=U(t,o,!0,_);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:de(a)),u&&f&&void 0===f.compilerOptions&&o.push(e.createDiagnosticForNodeInSourceFile(t,u[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(u[0]))),{raw:f,options:p,watchOptions:l,typeAcquisition:s,extendedConfigPath:d}})(r,n,a,o,c);if((null===(d=p.options)||void 0===d?void 0:d.paths)&&(p.options.pathsBasePath=a),p.extendedConfigPath){s=s.concat([u]);var _=((t,r,n,i,a,o)=>{var s,c,l,d,u=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);if(o&&(c=o.get(u))?(l=c.extendedResult,d=c.extendedConfig):((l=T(r,(e=>n.readFile(e)))).parseDiagnostics.length||(d=oe(void 0,l,n,e.getDirectoryPath(r),e.getBaseFileName(r),i,a,o)),o&&o.set(u,{extendedResult:l,extendedConfig:d})),t&&(t.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,l.extendedSourceFiles)),!l.parseDiagnostics.length)return d;a.push.apply(a,l.parseDiagnostics)})(r,p.extendedConfigPath,n,s,c,l);if(_&&_.options){var m,g=_.raw,h=p.raw,y=t=>{!h[t]&&g[t]&&(h[t]=e.map(g[t],(t=>e.isRootedDiskPath(t)?t:e.combinePaths(m||(m=e.convertToRelativePath(e.getDirectoryPath(p.extendedConfigPath),a,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames))),t))))};y("include"),y("exclude"),y("files"),void 0===h.compileOnSave&&(h.compileOnSave=g.compileOnSave),p.options=e.assign({},_.options,p.options),p.watchOptions=p.watchOptions&&_.watchOptions?e.assign({},_.watchOptions,p.watchOptions):p.watchOptions||_.watchOptions}}return p}function se(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")||(o="".concat(o,".json"),r.fileExists(o))?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 ce(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function le(t,r,n,i){var a=ce(i);return pe(R(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function de(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function ue(e,t,r,n){var i=de(n),a=l(e);return pe(B(),a,t,i,N,r),i}function pe(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=_e(c,r[s],n,o):o.push(h(s,a,e.createCompilerDiagnostic))}return i}}function _e(t,r,n,i){if(H(t,r)){var a=t.type;if("list"===a&&e.isArray(r))return((t,r,n,i)=>e.filter(e.map(r,(e=>_e(t.element,e,n,i))),(e=>!!t.listPreserveFalsyValues||!!e)))(t,r,n,i);if(!e.isString(a))return he(t,r,i);var o=ge(t,r,i);return ee(o)?o:me(t,n,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,z(t)))}function fe(t,r,n){if(!ee(n)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(n,(e=>fe(i.element,r,e))),(e=>!!i.listPreserveFalsyValues||!!e)):n}return e.isString(t.type)?me(t,r,n):t.type.get(e.isString(n)?n.toLowerCase():n)}}function me(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function ge(t,r,n){var i;if(!ee(r)){var a=null===(i=t.extraValidation)||void 0===i?void 0:i.call(t,r);if(!a)return r;n.push(e.createCompilerDiagnostic.apply(void 0,a))}}function he(e,t,r){if(!ee(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return ge(e,i,r);r.push(d(e))}}e.convertToObject=j,e.convertToObjectWorker=V,e.convertToTSConfig=(t,r,n)=>{var i,a,o,s=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),c=e.map(e.filter(t.fileNames,(null===(a=null===(i=t.options.configFile)||void 0===i?void 0:i.configFileSpecs)||void 0===a?void 0:a.validatedIncludeSpecs)?((t,r,n,i)=>{if(!r)return e.returnTrue;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?e=>!(s.test(e)&&!o.test(e)):e=>!s.test(e):o?e=>o.test(e):e.returnTrue})(r,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,n):e.returnTrue),(t=>e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),s))),l=$(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),d=t.watchOptions&&q(t.watchOptions,w());return m(m({compilerOptions:m(m({},W(l)),{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:d&&W(d),references:e.map(t.projectReferences,(e=>m(m({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0}))),files:e.length(c)?c:void 0},(null===(o=t.options.configFile)||void 0===o?void 0:o.configFileSpecs)?{include:K(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.getNameOfCompilerOptionValue=G,e.getCompilerOptionsDiffValue=(t,r)=>{var n,a,o=X(t);return n=[],a=Array(3).join(" "),i.forEach((t=>{if(o.has(t.name)){var r=o.get(t.name),i=ke(t);r!==i?n.push("".concat(a).concat(t.name,": ").concat(r)):e.hasProperty(e.defaultInitCompilerOptions,t.name)&&n.push("".concat(a).concat(t.name,": ").concat(i))}})),n.join(r)+r},e.generateTSConfig=(t,r,n)=>{var i=X(t);return(()=>{for(var t=e.createMultiMap(),s=0,c=e.optionDeclarations;s<c.length;s++){var l=c[s],d=l.category;o(l)&&t.add(e.getLocaleSpecificMessage(d),l)}var u=0,p=0,_=[];t.forEach(((t,r)=>{0!==_.length&&_.push({value:""}),_.push({value:"/* ".concat(r," */")});for(var n=0,a=t;n<a.length;n++){var o,s=a[n];o=i.has(s.name)?'"'.concat(s.name,'": ').concat(JSON.stringify(i.get(s.name))).concat((p+=1)===i.size?"":","):'// "'.concat(s.name,'": ').concat(JSON.stringify(ke(s)),","),_.push({value:o,description:"/* ".concat(s.description&&e.getLocaleSpecificMessage(s.description)||s.name," */")}),u=Math.max(o.length,u)}}));var f=a(2),m=[];m.push("{"),m.push("".concat(f,'"compilerOptions": {')),m.push("".concat(f).concat(f,"/* ").concat(e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)," */")),m.push("");for(var g=0,h=_;g<h.length;g++){var y=h[g],v=y.value,b=y.description,E=void 0===b?"":b;m.push(v&&"".concat(f).concat(f).concat(v).concat(E&&a(u-v.length+2)+E))}if(r.length){m.push("".concat(f,"},")),m.push("".concat(f,'"files": ['));for(var x=0;x<r.length;x++)m.push("".concat(f).concat(f).concat(JSON.stringify(r[x])).concat(x===r.length-1?"":","));m.push("".concat(f,"]"))}else m.push("".concat(f,"}"));return m.push("}"),m.join(n)+n})();function a(e){return Array(e+1).join(" ")}function o(t){var r=t.category,n=t.name,a=t.isCommandLineOnly,o=[e.Diagnostics.Command_line_Options,e.Diagnostics.Editor_Support,e.Diagnostics.Compiler_Diagnostics,e.Diagnostics.Backwards_Compatibility,e.Diagnostics.Watch_and_Build_Modes,e.Diagnostics.Output_Formatting];return!a&&void 0!==r&&(!o.includes(r)||i.has(n))}},e.convertToOptionsWithAbsolutePaths=(t,r)=>{var n={},i=o().optionsNameMap;for(var a in t)e.hasProperty(t,a)&&(n[a]=Y(i.get(a.toLowerCase()),t[a],r));return n.configFilePath&&(n.configFilePath=r(n.configFilePath)),n},e.parseJsonConfigFileContent=(e,t,r,n,i,a,o,s,c)=>re(e,void 0,t,r,n,c,i,a,o,s),e.parseJsonSourceFileConfigFileContent=Q,e.setConfigFileInOptions=Z,e.defaultIncludeSpec="**/*",e.canJsonReportNoInputFiles=ae,e.updateErrorForNoInputFiles=(t,r,n,i,a)=>{var o=i.length;return ie(t,a)?i.push(ne(n,r)):e.filterMutate(i,(t=>!(t=>t.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code)(t))),o!==i.length},e.convertCompilerOptionsFromJson=(e,t,r)=>{var n=[];return{options:le(e,t,n,r),errors:n}},e.convertTypeAcquisitionFromJson=(e,t,r)=>{var n=[];return{options:ue(e,t,n,r),errors:n}},e.convertJsonOption=_e;var ye=/(^|\/)\*\*\/?$/,ve=/^[^*?]*(?=\/[^/]*[*?])/;function be(t,r,n,i,a){void 0===a&&(a=e.emptyArray),r=e.normalizePath(r);var o,s=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames),c=new e.Map,l=new e.Map,d=new e.Map,u=t.validatedFilesSpec,p=t.validatedIncludeSpecs,_=t.validatedExcludeSpecs,f=e.getSupportedExtensions(n,a),m=e.getSupportedExtensionsWithJsonIfResolveJsonModule(n,f);if(u)for(var g=0,h=u;g<h.length;g++){var y=h[g],v=e.getNormalizedAbsolutePath(y,r);c.set(s(v),v)}if(p&&p.length>0)for(var b=t=>{if(e.fileExtensionIs(t,".json")){if(!o){var n=p.filter((t=>e.endsWith(t,".json"))),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),(e=>"^".concat(e,"$")));o=a?a.map((t=>e.getRegexFromPattern(t,i.useCaseSensitiveFileNames))):e.emptyArray}if(-1!==e.findIndex(o,(e=>e.test(t)))){var u=s(t);c.has(u)||d.has(u)||d.set(u,t)}return"continue"}if(((t,r,n,i,a)=>{var o=e.forEach(i,(r=>e.fileExtensionIsOneOf(t,r)?r:void 0));if(!o)return!1;for(var s=0,c=o;s<c.length;s++){var l=c[s];if(e.fileExtensionIs(t,l))return!1;var d=a(e.changeExtension(t,l));if(r.has(d)||n.has(d)){if(".d.ts"===l&&(e.fileExtensionIs(t,".js")||e.fileExtensionIs(t,".jsx")))continue;return!0}}return!1})(t,c,l,f,s))return"continue";!((t,r,n,i)=>{var a=e.forEach(n,(r=>e.fileExtensionIsOneOf(t,r)?r:void 0));if(a)for(var o=a.length-1;o>=0;o--){var s=a[o];if(e.fileExtensionIs(t,s))return;var c=i(e.changeExtension(t,s));r.delete(c)}})(t,l,f,s);var _=s(t);c.has(_)||l.has(_)||l.set(_,t)},E=0,x=i.readDirectory(r,e.flatten(m),_,p,void 0);E<x.length;E++)b(v=x[E]);var D=e.arrayFrom(c.values()),S=e.arrayFrom(l.values());return D.concat(S,e.arrayFrom(d.values()))}function Ee(t){var r=e.startsWith(t,"**/")?0:t.indexOf("/**/");return-1!==r&&(e.endsWith(t,"/..")?t.length:t.lastIndexOf("/../"))>r}function xe(t,r,n,i,a){var o=e.getRegularExpressionForWildcard(r,e.combinePaths(e.normalizePath(i),a),"exclude"),s=o&&e.getRegexFromPattern(o,n);return!!s&&(!!s.test(t)||!e.hasExtension(t)&&s.test(e.ensureTrailingDirectorySeparator(t)))}function De(t,r,n,i,a){return t.filter((t=>{if(!e.isString(t))return!1;var i=Se(t,n);return void 0!==i&&r.push(o.apply(void 0,i)),void 0===i}));function o(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}}function Se(t,r){return r&&ye.test(t)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:Ee(t)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:void 0}function Te(t,r,n){var i=t.validatedIncludeSpecs,a=t.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(a,r,"exclude"),s=o&&new RegExp(o,n?"":"i"),c={};if(void 0!==i){for(var l=[],d=0,u=i;d<u.length;d++){var p=u[d],_=e.normalizePath(e.combinePaths(r,p));if(!s||!s.test(_)){var f=Ce(_,n);if(f){var m=f.key,g=f.flags,h=c[m];(void 0===h||h<g)&&(c[m]=g,1===g&&l.push(m))}}}for(var m in c)if(e.hasProperty(c,m))for(var y=0,v=l;y<v.length;y++){var b=v[y];m!==b&&e.containsPath(b,m,r,!n)&&delete c[m]}}return c}function Ce(t,r){var n=ve.exec(t);if(n){var i=t.indexOf("?"),a=t.indexOf("*"),o=t.lastIndexOf(e.directorySeparator);return{key:r?n[0]:e.toFileNameLowerCase(n[0]),flags:-1!==i&&i<o||-1!==a&&a<o?1:0}}if(e.isImplicitGlob(t.substring(t.lastIndexOf(e.directorySeparator)+1)))return{key:e.removeTrailingDirectorySeparator(r?t:e.toFileNameLowerCase(t)),flags:1}}function Ae(t,r){switch(r.type){case"object":case"string":return"";case"number":return"number"==typeof t?t:"";case"boolean":return"boolean"==typeof t?t:"";case"list":var n=r.element;return e.isArray(t)?t.map((e=>Ae(e,n))):"";default:return e.forEachEntry(r.type,((e,r)=>{if(e===t)return r}))}}function ke(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":var r=t.defaultValueDescription;return t.isFilePath?"./".concat(r&&"string"==typeof r?r:""):"";case"list":return[];case"object":return{};default:var n=t.type.keys().next();return n.done?e.Debug.fail("Expected 'option.type' to have entries."):n.value}}e.getFileNamesFromConfigSpecs=be,e.isExcludedFile=(t,r,n,i,a)=>{var o=r.validatedFilesSpec,s=r.validatedIncludeSpecs,c=r.validatedExcludeSpecs;if(!e.length(s)||!e.length(c))return!1;n=e.normalizePath(n);var l=e.createGetCanonicalFileName(i);if(o)for(var d=0,u=o;d<u.length;d++){var p=u[d];if(l(e.getNormalizedAbsolutePath(p,n))===t)return!1}return xe(t,c,i,a,n)},e.matchesExclude=(t,r,n,i)=>xe(t,e.filter(r,(e=>!Ee(e))),n,i),e.convertCompilerOptionsForTelemetry=e=>{var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=b(r);void 0!==n&&(t[r]=Ae(e[r],n))}return t}})(p),(e=>{function t(t){t.trace(e.formatMessage.apply(void 0,arguments))}function r(e,t){return!!e.traceResolution&&void 0!==t.trace}function n(t,r){var n;if(r&&t){var i=t.contents.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(n={name:i.name,subModuleName:r.path.slice(t.packageDirectory.length+e.directorySeparator.length),version:i.version})}return r&&{path:r.path,extension:r.ext,packageId:n}}function i(e){return n(void 0,e)}function a(t){if(t)return e.Debug.assert(void 0===t.packageId),{path:t.path,ext:t.extension}}var o,s;function c(t){if(t)return e.Debug.assert(e.extensionIsTS(t.extension)),{fileName:t.path,packageId:t.packageId}}function l(e,t,r,n,i,a){var o,s;return a?((o=a.failedLookupLocations).push.apply(o,r),(s=a.affectingLocations).push.apply(s,n),a):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId},failedLookupLocations:r,affectingLocations:n,resolutionDiagnostics:i}}function d(r,n,i,a){if(e.hasProperty(r,n)){var o=r[n];if(typeof o===i&&null!==o)return o;a.traceEnabled&&t(a.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,i,null===o?"null":typeof o)}else a.traceEnabled&&t(a.host,e.Diagnostics.package_json_does_not_have_a_0_field,n)}function u(r,n,i,a){var o=d(r,n,"string",a);if(void 0!==o){if(o){var s=e.normalizePath(e.combinePaths(i,o));return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,n,o,s),s}a.traceEnabled&&t(a.host,e.Diagnostics.package_json_had_a_falsy_0_field,n)}}function p(e,t,r){return u(e,"typings",t,r)||u(e,"types",t,r)}function _(e,t,r){return u(e,"main",t,r)}function g(r,n){var i=((r,n)=>{var i=d(r,"typesVersions","object",n);if(void 0!==i)return n.traceEnabled&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),i})(r,n);if(void 0!==i){if(n.traceEnabled)for(var a in i)e.hasProperty(i,a)&&!e.VersionRange.tryParse(a)&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,a);var o=h(i);if(o){var s=o.version,c=o.paths;if("object"==typeof c)return o;n.traceEnabled&&t(n.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['".concat(s,"']"),"object",typeof c)}else n.traceEnabled&&t(n.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor)}}function h(t){for(var r in s||(s=new e.Version(e.version)),t)if(e.hasProperty(t,r)){var n=e.VersionRange.tryParse(r);if(void 0!==n&&n.test(s))return{version:r,paths:t[r]}}}function y(t,r){return t.typeRoots?t.typeRoots:(t.configFilePath?n=e.getDirectoryPath(t.configFilePath):r.getCurrentDirectory&&(n=r.getCurrentDirectory()),void 0!==n?((t,r)=>{return r.directoryExists?(e.forEachAncestorDirectory(e.normalizePath(t),(t=>{var i=e.combinePaths(t,b);r.directoryExists(i)&&(n||(n=[])).push(i)})),n):[e.combinePaths(t,b)];var n})(n,r):void 0);var n}e.trace=t,e.isTraceEnabled=r,(e=>{e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.TSConfig=3]="TSConfig",e[e.DtsOnly=4]="DtsOnly",e[e.TsOnly=5]="TsOnly"})(o||(o={})),e.getPackageJsonTypesVersionsPaths=h,e.getEffectiveTypeRoots=y;var v,b=e.combinePaths("node_modules","@types");function E(t,r,n){var i="function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames;return 0===e.comparePaths(t,r,!i)}function x(t){return e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.Node16?v.Node16Default:e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeNext?v.NodeNextDefault:v.None}function D(t){var r=new e.Map,n=new e.Map;return{getOwnMap:()=>r,redirectsMap:n,getOrCreateMapOfCacheRedirects(i){if(!i)return r;var a=i.sourceFile.path,o=n.get(a);return o||(o=!t||e.optionsHaveModuleResolutionChanges(t,i.commandLine.options)?new e.Map:r,n.set(a,o)),o},clear(){r.clear(),n.clear()},setOwnOptions(e){t=e},setOwnMap(e){r=e}}}function S(t,r){var n;return{getPackageJsonInfo:i=>null==n?void 0:n.get(e.toPath(i,t,r)),setPackageJsonInfo(i,a){(n||(n=new e.Map)).set(e.toPath(i,t,r),a)},clear(){n=void 0},entries(){var t=null==n?void 0:n.entries();return t?e.arrayFrom(t):[]},getInternalMap:()=>n}}function T(e,t,r,n){var i=e.getOrCreateMapOfCacheRedirects(t),a=i.get(r);return a||(a=n(),i.set(r,a)),a}function C(t,r,n){if(t.configFile){if(0===r.redirectsMap.size)e.Debug.assert(!n||0===n.redirectsMap.size),e.Debug.assert(0===r.getOwnMap().size),e.Debug.assert(!n||0===n.getOwnMap().size),r.redirectsMap.set(t.configFile.path,r.getOwnMap()),null==n||n.redirectsMap.set(t.configFile.path,n.getOwnMap());else{e.Debug.assert(!n||n.redirectsMap.size>0);var i={sourceFile:t.configFile,commandLine:{options:t}};r.setOwnMap(r.getOrCreateMapOfCacheRedirects(i)),null==n||n.setOwnMap(n.getOrCreateMapOfCacheRedirects(i))}r.setOwnOptions(t),null==n||n.setOwnOptions(t)}}function A(t,r,n){return{getOrCreateCacheForDirectory(i,a){var o=e.toPath(i,t,r);return T(n,a,o,(()=>k()))},clear(){n.clear()},update(e){C(e,n)}}}function k(){var t=new e.Map,r=new e.Map,n={get:(e,r)=>t.get(i(e,r)),set:(e,r,a)=>(t.set(i(e,r),a),n),delete:(e,r)=>(t.delete(i(e,r)),n),has:(e,r)=>t.has(i(e,r)),forEach:e=>t.forEach(((t,n)=>{var i=r.get(n),a=i[0],o=i[1];return e(t,a,o)})),size:()=>t.size};return n;function i(e,t){var n=void 0===t?e:"".concat(t,"|").concat(e);return r.set(n,[e,t]),n}}function N(r,n,i,a,o){var s=((r,n,i,a)=>{var o,s=a.compilerOptions,c=s.baseUrl,l=s.paths,d=s.configFile;if(l&&!e.pathIsRelative(n))return a.traceEnabled&&(c&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c,n),t(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n)),_e(r,n,e.getPathsBasePath(a.compilerOptions,a.host),l,(null==d?void 0:d.configFileSpecs)?(o=d.configFileSpecs).pathPatterns||(o.pathPatterns=e.tryParsePatterns(l)):void 0,i,!1,a)})(r,n,a,o);return s?s.value:e.isExternalModuleNameRelative(n)?((r,n,i,a,o)=>{if(o.compilerOptions.rootDirs){o.traceEnabled&&t(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var s,c,l=e.normalizePath(e.combinePaths(i,n)),d=0,u=o.compilerOptions.rootDirs;d<u.length;d++){var p=u[d],_=e.normalizePath(p);e.endsWith(_,e.directorySeparator)||(_+=e.directorySeparator);var f=e.startsWith(l,_)&&(void 0===c||c.length<_.length);o.traceEnabled&&t(o.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,_,l,f),f&&(c=_,s=p)}if(c){o.traceEnabled&&t(o.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,l,c);var m=l.substr(c.length);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,c,l);var g=a(r,l,!e.directoryProbablyExists(i,o.host),o);if(g)return g;o.traceEnabled&&t(o.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var h=0,y=o.compilerOptions.rootDirs;h<y.length;h++)if((p=y[h])!==s){var v=e.combinePaths(e.normalizePath(p),m);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,p,v);var b=e.getDirectoryPath(v),E=a(r,v,!e.directoryProbablyExists(b,o.host),o);if(E)return E}o.traceEnabled&&t(o.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}})(r,n,i,a,o):((r,n,i,a)=>{var o=a.compilerOptions.baseUrl;if(o){a.traceEnabled&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,n);var s=e.normalizePath(e.combinePaths(o,n));return a.traceEnabled&&t(a.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,n,o,s),i(r,s,!e.directoryProbablyExists(e.getDirectoryPath(s),a.host),a)}})(r,n,a,o)}e.resolveTypeReferenceDirective=(n,i,a,s,l,d,u)=>{e.Debug.assert("string"==typeof n,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");var p=r(a,s);l&&(a=l.commandLine.options);var _=i?e.getDirectoryPath(i):void 0,f=_?d&&d.getOrCreateCacheForDirectory(_,l):void 0,m=f&&f.get(n,u);if(m)return p&&(t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,n,i),l&&t(s,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,l.sourceFile.fileName),t(s,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,n,_),O(m)),m;var g=y(a,s);p&&(void 0===i?void 0===g?t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,n):t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,n,g):void 0===g?t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,n,i):t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,n,i,g),l&&t(s,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,l.sourceFile.fileName));var h=[],b=[],D=x(a);u!==e.ModuleKind.ESNext||e.getEmitModuleResolutionKind(a)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(a)!==e.ModuleResolutionKind.NodeNext||(D|=v.EsmMode);var S,T=D&v.Exports?D&v.EsmMode?["node","import","types"]:["node","require","types"]:[],C=[],A={compilerOptions:a,host:s,traceEnabled:p,failedLookupLocations:h,affectingLocations:b,packageJsonInfoCache:d,features:D,conditions:T,requestContainingDirectory:_,reportDiagnostic(e){C.push(e)}},k=(()=>{if(g&&g.length)return p&&t(s,e.Diagnostics.Resolving_with_primary_search_path_0,g.join(", ")),e.firstDefined(g,(r=>{var i=e.combinePaths(r,n),a=e.getDirectoryPath(i),l=e.directoryProbablyExists(a,s);return!l&&p&&t(s,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),c(X(o.DtsOnly,i,!l,A))}));p&&t(s,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)})(),N=!0;if(k||(k=(()=>{var r=i&&e.getDirectoryPath(i);if(void 0!==r){var a;if(p&&t(s,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,r),e.isExternalModuleNameRelative(n)){var l=L(r,n).path;a=U(o.DtsOnly,l,!1,A,!0)}else{var d=le(o.DtsOnly,n,r,A,void 0,void 0);a=d&&d.value}return c(a)}p&&t(s,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)})(),N=!1),k){var w=k.fileName,F=k.packageId,P=a.preserveSymlinks?w:B(w,s,p),I=E(w,P,s);S={primary:N,resolvedFileName:I?w:P,originalPath:I?void 0:w,packageId:F,isExternalLibraryImport:j(w)}}return m={resolvedTypeReferenceDirective:S,failedLookupLocations:h,affectingLocations:b,resolutionDiagnostics:C},null==f||f.set(n,u,m),p&&O(m),m;function O(r){var i;(null===(i=r.resolvedTypeReferenceDirective)||void 0===i?void 0:i.resolvedFileName)?r.resolvedTypeReferenceDirective.packageId?t(s,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,n,r.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(r.resolvedTypeReferenceDirective.packageId),r.resolvedTypeReferenceDirective.primary):t(s,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,n,r.resolvedTypeReferenceDirective.resolvedFileName,r.resolvedTypeReferenceDirective.primary):t(s,e.Diagnostics.Type_reference_directive_0_was_not_resolved,n)}},e.resolvePackageNameToPackageJson=(t,r,n,i,a)=>{var o=Q(null==a?void 0:a.getPackageJsonInfoCache(),i,n);return e.forEachAncestorDirectory(r,(r=>{if("node_modules"!==e.getBaseFileName(r)){var n=e.combinePaths(r,"node_modules");return ee(e.combinePaths(n,t),!1,o)}}))},e.getAutomaticTypeDirectiveNames=(t,r)=>{if(t.types)return t.types;var n=[];if(r.directoryExists&&r.getDirectories){var i=y(t,r);if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];if(r.directoryExists(s))for(var c=0,l=r.getDirectories(s);c<l.length;c++){var d=l[c],u=e.normalizePath(d),p=e.combinePaths(s,u,"package.json");if(!r.fileExists(p)||null!==e.readJson(p,r).typings){var _=e.getBaseFileName(u);46!==_.charCodeAt(0)&&n.push(_)}}}}return n},e.createCacheWithRedirects=D,e.createModeAwareCache=k,e.zipToModeAwareCache=(t,r,n)=>{e.Debug.assert(r.length===n.length);for(var i=k(),a=0;a<r.length;++a){var o=r[a],s=e.isString(o)?o:o.fileName.toLowerCase(),c=e.isString(o)?e.getModeForResolutionAtIndex(t,a):o.resolutionMode||t.impliedNodeFormat;i.set(s,c,n[a])}return i},e.createModuleResolutionCache=(t,r,n,i,a)=>{var o=A(t,r,i||(i=D(n)));a||(a=D(n));var s=S(t,r);return m(m(m({},s),o),{getOrCreateCacheForModuleName:(t,r,n)=>(e.Debug.assert(!e.isExternalModuleNameRelative(t)),T(a,n,void 0===r?t:"".concat(r,"|").concat(t),l)),clear(){c(),s.clear()},update(e){C(e,i,a)},getPackageJsonInfoCache:()=>s,clearAllExceptPackageJsonInfoCache:c});function c(){o.clear(),a.clear()}function l(){var n=new e.Map;return{get:i=>n.get(e.toPath(i,t,r)),set(i,a){var o=e.toPath(i,t,r);if(!n.has(o)){n.set(o,a);for(var s=a.resolvedModule&&(a.resolvedModule.originalPath||a.resolvedModule.resolvedFileName),c=s&&((n,i)=>{for(var a=e.toPath(e.getDirectoryPath(i),t,r),o=0,s=Math.min(n.length,a.length);o<s&&n.charCodeAt(o)===a.charCodeAt(o);)o++;if(o===n.length&&(a.length===o||a[o]===e.directorySeparator))return n;var c=e.getRootLength(n);if(!(o<c)){var l=n.lastIndexOf(e.directorySeparator,o-1);if(-1!==l)return n.substr(0,Math.max(l,c))}})(o,s),l=o;l!==c;){var d=e.getDirectoryPath(l);if(d===l||n.has(d))break;n.set(d,a),l=d}}}}}},e.createTypeReferenceDirectiveResolutionCache=(e,t,r,n,i)=>{var a=A(e,t,i||(i=D(r)));return n||(n=S(e,t)),m(m(m({},n),a),{clear(){o(),n.clear()},clearAllExceptPackageJsonInfoCache:o});function o(){a.clear()}},e.resolveModuleNameFromCache=(t,r,n,i)=>{var a=e.getDirectoryPath(r),o=n&&n.getOrCreateCacheForDirectory(a);if(o)return o.get(t,i)},e.resolveModuleName=(n,i,a,o,s,c,l)=>{var d=r(a,o);c&&(a=c.commandLine.options),d&&(t(o,e.Diagnostics.Resolving_module_0_from_1,n,i),c&&t(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,c.sourceFile.fileName));var u=e.getDirectoryPath(i),p=s&&s.getOrCreateCacheForDirectory(u,c),_=p&&p.get(n,l);if(_)d&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,u);else{var f=a.moduleResolution;if(void 0===f){switch(e.getEmitModuleKind(a)){case e.ModuleKind.CommonJS:f=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node16:f=e.ModuleResolutionKind.Node16;break;case e.ModuleKind.NodeNext:f=e.ModuleResolutionKind.NodeNext;break;default:f=e.ModuleResolutionKind.Classic}d&&t(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[f])}else d&&t(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[f]);switch(e.perfLogger.logStartResolveModule(n),f){case e.ModuleResolutionKind.Node16:_=((e,t,r,n,i,a,o)=>O(v.Node16Default,e,t,r,n,i,a,o))(n,i,a,o,s,c,l);break;case e.ModuleResolutionKind.NodeNext:_=((e,t,r,n,i,a,o)=>O(v.NodeNextDefault,e,t,r,n,i,a,o))(n,i,a,o,s,c,l);break;case e.ModuleResolutionKind.NodeJs:_=M(n,i,a,o,s,c);break;case e.ModuleResolutionKind.Classic:_=ye(n,i,a,o,s,c);break;default:return e.Debug.fail("Unexpected moduleResolution: ".concat(f))}_&&_.resolvedModule&&e.perfLogger.logInfoEvent('Module "'.concat(n,'" resolved to "').concat(_.resolvedModule.resolvedFileName,'"')),e.perfLogger.logStopResolveModule(_&&_.resolvedModule?""+_.resolvedModule.resolvedFileName:"null"),p&&(p.set(n,l,_),e.isExternalModuleNameRelative(n)||s.getOrCreateCacheForModuleName(n,l,c).set(u,_))}return d&&(_.resolvedModule?_.resolvedModule.packageId?t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,n,_.resolvedModule.resolvedFileName,e.packageIdToString(_.resolvedModule.packageId)):t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,n,_.resolvedModule.resolvedFileName):t(o,e.Diagnostics.Module_name_0_was_not_resolved,n)),_},e.resolveJSModule=(t,r,n)=>{var i=((t,r,n)=>R(v.None,t,r,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},n,void 0,w,void 0))(t,r,n),a=i.resolvedModule,o=i.failedLookupLocations;if(!a)throw new Error("Could not resolve JS module '".concat(t,"' starting at '").concat(r,"'. Looked in: ").concat(o.join(", ")));return a.resolvedFileName},(e=>{e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.EsmMode=32]="EsmMode"})(v||(v={}));var w=[o.JavaScript],F=[o.TypeScript,o.JavaScript],P=f(f([],F,!0),[o.Json],!1),I=[o.TSConfig];function O(t,r,n,i,a,s,c,l){var d=e.getDirectoryPath(n),u=l===e.ModuleKind.ESNext?v.EsmMode:0,p=i.noDtsResolution?[o.TsOnly,o.JavaScript]:F;return i.resolveJsonModule&&(p=f(f([],p,!0),[o.Json],!1)),R(t|u,r,d,i,a,s,p,c)}function M(t,r,n,i,a,s,c){var l;return c?l=I:n.noDtsResolution?(l=[o.TsOnly],n.allowJs&&l.push(o.JavaScript),n.resolveJsonModule&&l.push(o.Json)):l=n.resolveJsonModule?P:F,R(v.None,t,e.getDirectoryPath(r),n,i,a,l,s)}function R(n,i,a,s,c,d,u,p){var _,f,g=r(s,c),h=[],y=[],b=n&v.EsmMode?["node","import","types"]:["node","require","types"];s.noDtsResolution&&b.pop();var x=[],D={compilerOptions:s,host:c,traceEnabled:g,failedLookupLocations:h,affectingLocations:y,packageJsonInfoCache:d,features:n,conditions:b,requestContainingDirectory:a,reportDiagnostic(e){x.push(e)}},S=e.forEach(u,(r=>(r=>{var l,u=N(r,i,a,((e,t,r,n)=>U(e,t,r,n,!0)),D);if(u)return ve({resolved:u,isExternalLibraryImport:j(u.path)});if(e.isExternalModuleNameRelative(i)){var _=L(a,i),f=_.path,h=_.parts,y=U(r,f,!1,D,!0);return y&&ve({resolved:y,isExternalLibraryImport:e.contains(h,"node_modules")})}if(n&v.Imports&&e.startsWith(i,"#")&&(l=((r,n,i,a,o,s)=>{var c,l;if("#"===n||e.startsWith(n,"#/"))return a.traceEnabled&&t(a.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,n),ve(void 0);var d=e.getNormalizedAbsolutePath(e.combinePaths(i,"dummy"),null===(l=(c=a.host).getCurrentDirectory)||void 0===l?void 0:l.call(c)),u=Z(d,a);return u?u.contents.packageJsonContent.imports?oe(r,a,o,s,n,u.contents.packageJsonContent.imports,u,!0)||(a.traceEnabled&&t(a.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,u.packageDirectory),ve(void 0)):(a.traceEnabled&&t(a.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,u.packageDirectory),ve(void 0)):(a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),ve(void 0))})(r,i,a,D,d,p)),!l&&n&v.SelfName&&(l=((t,r,n,i,a,o)=>{var s,c,l=Z(e.getNormalizedAbsolutePath(e.combinePaths(n,"dummy"),null===(c=(s=i.host).getCurrentDirectory)||void 0===c?void 0:c.call(s)),i);if(l&&l.contents.packageJsonContent.exports&&"string"==typeof l.contents.packageJsonContent.name){var d=e.getPathComponents(r),u=e.getPathComponents(l.contents.packageJsonContent.name);if(e.every(u,((e,t)=>d[t]===e))){var p=d.slice(u.length);return ie(l,t,e.length(p)?".".concat(e.directorySeparator).concat(p.join(e.directorySeparator)):".",i,a,o)}}})(r,i,a,D,d,p)),l||(g&&t(c,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,i,o[r]),l=le(r,i,a,D,d,p)),l){var b=l.value;if(!s.preserveSymlinks&&b&&!b.originalPath){var x=B(b.path,c,g),S=E(x,b.path,c),T=S?void 0:b.path;b=m(m({},b),{path:S?b.path:x,originalPath:T})}return{value:b&&{resolved:b,isExternalLibraryImport:!0}}}})(r)));return l(null===(_=null==S?void 0:S.value)||void 0===_?void 0:_.resolved,null===(f=null==S?void 0:S.value)||void 0===f?void 0:f.isExternalLibraryImport,h,y,x,D.resultFromCache)}function L(t,r){var n=e.combinePaths(t,r),i=e.getPathComponents(n),a=e.lastOrUndefined(i);return{path:"."===a||".."===a?e.ensureTrailingDirectorySeparator(e.normalizePath(n)):e.normalizePath(n),parts:i}}function B(r,n,i){if(!n.realpath)return r;var a=e.normalizePath(n.realpath(r));return i&&t(n,e.Diagnostics.Resolving_real_path_for_0_result_1,r,a),e.Debug.assert(n.fileExists(a),"".concat(r," linked to nonexistent file ").concat(a)),a}function U(r,i,a,s,c){if(s.traceEnabled&&t(s.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,i,o[r]),!e.hasTrailingDirectorySeparator(i)){if(!a){var l=e.getDirectoryPath(i);e.directoryProbablyExists(l,s.host)||(s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),a=!0)}var d=W(r,i,a,s);if(d){var u=c?V(d.path):void 0;return n(u?ee(u,!1,s):void 0,d)}}if(a||e.directoryProbablyExists(i,s.host)||(s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),a=!0),!(s.features&v.EsmMode))return X(r,i,a,s,c)}function j(t){return e.stringContains(t,e.nodeModulesPathPart)}function V(t){var r=e.normalizePath(t),n=r.lastIndexOf(e.nodeModulesPathPart);if(-1!==n){var i=n+e.nodeModulesPathPart.length,a=z(r,i);return 64===r.charCodeAt(i)&&(a=z(r,a)),r.slice(0,a)}}function z(t,r){var n=t.indexOf(e.directorySeparator,r+1);return-1===n?r:n}function H(e,t,r,n){return i(W(e,t,r,n))}function W(t,r,n,i){if(t===o.Json||t===o.TSConfig){var a=e.tryRemoveExtension(r,".json"),s=a?r.substring(a.length):"";return void 0===a&&t===o.Json?void 0:G(a||r,t,s,n,i)}if(!(i.features&v.EsmMode)){var c=G(r,t,"",n,i);if(c)return c}return K(t,r,n,i)}function K(r,n,i,a){if(e.hasJSFileExtension(n)||e.fileExtensionIs(n,".json")&&a.compilerOptions.resolveJsonModule){var o=e.removeFileExtension(n),s=n.substring(o.length);return a.traceEnabled&&t(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,s),G(o,r,s,i,a)}}function J(t,r,n,i){return t!==o.TypeScript&&t!==o.DtsOnly||!e.fileExtensionIsOneOf(r,e.supportedTSExtensionsFlat)?K(t,r,n,i):void 0!==$(r,n,i)?{path:r,ext:e.tryExtractTSExtension(r)}:void 0}function G(t,r,n,i,a){if(!i){var s=e.getDirectoryPath(t);s&&(i=!e.directoryProbablyExists(s,a.host))}switch(r){case o.DtsOnly:switch(n){case".mjs":case".mts":case".d.mts":return l(".d.mts");case".cjs":case".cts":case".d.cts":return l(".d.cts");case".json":return t+=".json",l(".d.ts");default:return l(".d.ts")}case o.TypeScript:case o.TsOnly:var c=r===o.TypeScript;switch(n){case".mjs":case".mts":case".d.mts":return l(".mts")||(c?l(".d.mts"):void 0);case".cjs":case".cts":case".d.cts":return l(".cts")||(c?l(".d.cts"):void 0);case".json":return t+=".json",c?l(".d.ts"):void 0;default:return l(".ts")||l(".tsx")||(c?l(".d.ts"):void 0)}case o.JavaScript:switch(n){case".mjs":case".mts":case".d.mts":return l(".mjs");case".cjs":case".cts":case".d.cts":return l(".cjs");case".json":return l(".json");default:return l(".js")||l(".jsx")}case o.TSConfig:case o.Json:return l(".json")}function l(e){var r=$(t+e,i,a);return void 0===r?void 0:{path:r,ext:e}}}function $(t,r,n){var i,a;if(!(null===(i=n.compilerOptions.moduleSuffixes)||void 0===i?void 0:i.length))return q(t,r,n);var o=null!==(a=e.tryGetExtensionFromPath(t))&&void 0!==a?a:"",s=o?e.removeExtension(t,o):t;return e.forEach(n.compilerOptions.moduleSuffixes,(e=>q(s+e+o,r,n)))}function q(r,n,i){if(!n){if(i.host.fileExists(r))return i.traceEnabled&&t(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,r),r;i.traceEnabled&&t(i.host,e.Diagnostics.File_0_does_not_exist,r)}i.failedLookupLocations.push(r)}function X(e,t,r,i,a){void 0===a&&(a=!0);var o=a?ee(t,r,i):void 0;return n(o,te(e,t,r,i,o&&o.contents.packageJsonContent,o&&o.contents.versionPaths))}function Y(t,r,n,i){var a;if(e.isArray(r))for(var o=0,s=r;o<s.length;o++)l(s[o]);else if("object"==typeof r&&null!==r&&ne(r))for(var c in r)l(r[c]);else l(r);return a;function l(r){var o,s;if("string"==typeof r&&e.startsWith(r,"./")&&-1===r.indexOf("*")){var c=e.getPathComponents(r).slice(2);if(c.indexOf("..")>=0||c.indexOf(".")>=0||c.indexOf("node_modules")>=0)return!1;var d=e.combinePaths(t.packageDirectory,r),u=e.getNormalizedAbsolutePath(d,null===(s=(o=n.host).getCurrentDirectory)||void 0===s?void 0:s.call(o)),p=J(i,u,!1,n);if(p)return a=e.appendIfUnique(a,p,((e,t)=>e.path===t.path)),!0}else if(Array.isArray(r)){for(var _=0,f=r;_<f.length;_++)if(l(f[_]))return!0}else if("object"==typeof r&&null!==r)return e.forEach(e.getOwnKeys(r),(t=>{if("default"===t||e.contains(n.conditions,t)||ce(n.conditions,t))return l(r[t]),!0}))}}function Q(t,n,i){return{host:n,compilerOptions:i,traceEnabled:r(i,n),failedLookupLocations:e.noopPush,affectingLocations:e.noopPush,packageJsonInfoCache:t,features:v.None,conditions:e.emptyArray,requestContainingDirectory:void 0,reportDiagnostic:e.noop}}function Z(t,r){var n=e.getPathComponents(t);for(n.pop();n.length>0;){var i=ee(e.getPathFromPathComponents(n),!1,r);if(i)return i;n.pop()}}function ee(r,n,i){var a,o,s,c=i.host,l=i.traceEnabled,d=e.combinePaths(r,"package.json");if(n)i.failedLookupLocations.push(d);else{var u=null===(a=i.packageJsonInfoCache)||void 0===a?void 0:a.getPackageJsonInfo(d);if(void 0!==u)return"boolean"!=typeof u?(l&&t(c,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,d),i.affectingLocations.push(d),u.packageDirectory===r?u:{packageDirectory:r,contents:u.contents}):(u&&l&&t(c,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,d),void i.failedLookupLocations.push(d));var p=e.directoryProbablyExists(r,c);if(p&&c.fileExists(d)){var _=e.readJson(d,c);l&&t(c,e.Diagnostics.Found_package_json_at_0,d);var f={packageDirectory:r,contents:{packageJsonContent:_,versionPaths:g(_,i),resolvedEntrypoints:void 0}};return null===(o=i.packageJsonInfoCache)||void 0===o||o.setPackageJsonInfo(d,f),i.affectingLocations.push(d),f}p&&l&&t(c,e.Diagnostics.File_0_does_not_exist,d),null===(s=i.packageJsonInfoCache)||void 0===s||s.setPackageJsonInfo(d,p),i.failedLookupLocations.push(d)}}function te(r,n,s,c,l,d){var f;if(l)switch(r){case o.JavaScript:case o.Json:case o.TsOnly:f=_(l,n,c);break;case o.TypeScript:f=p(l,n,c)||_(l,n,c);break;case o.DtsOnly:f=p(l,n,c);break;case o.TSConfig:f=((e,t,r)=>u(e,"tsconfig",t,r))(l,n,c);break;default:return e.Debug.assertNever(r)}var m=(r,n,a,s)=>{var c=$(n,a,s);if(c){var d=((t,r)=>{var n=e.tryGetExtensionFromPath(r);return void 0!==n&&((e,t)=>{switch(e){case o.JavaScript:return".js"===t||".jsx"===t||".mjs"===t||".cjs"===t;case o.TSConfig:case o.Json:return".json"===t;case o.TypeScript:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t||".d.ts"===t||".d.mts"===t||".d.cts"===t;case o.TsOnly:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t;case o.DtsOnly:return".d.ts"===t||".d.mts"===t||".d.cts"===t}})(t,n)?{path:r,ext:n}:void 0})(r,c);if(d)return i(d);s.traceEnabled&&t(s.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,c)}var u=r===o.DtsOnly?o.TypeScript:r,p=s.features;"module"!==(null==l?void 0:l.type)&&(s.features&=~v.EsmMode);var _=U(u,n,a,s,!1);return s.features=p,_},g=f?!e.directoryProbablyExists(e.getDirectoryPath(f),c.host):void 0,h=s||!e.directoryProbablyExists(n,c.host),y=e.combinePaths(n,r===o.TSConfig?"tsconfig":"index");if(d&&(!f||e.containsPath(n,f))){var b=e.getRelativePathFromDirectory(n,f||y,!1);c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,d.version,e.version,b);var E=_e(r,b,n,d.paths,void 0,m,g||h,c);if(E)return a(E.value)}return f&&a(m(r,f,g,c))||(c.features&v.EsmMode?void 0:W(r,y,h,c))}function re(t){var r=t.indexOf(e.directorySeparator);return"@"===t[0]&&(r=t.indexOf(e.directorySeparator,r+1)),-1===r?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function ne(t){return e.every(e.getOwnKeys(t),(t=>e.startsWith(t,".")))}function ie(r,n,i,a,o,s){if(r.contents.packageJsonContent.exports){if("."===i){var c=void 0;if("string"==typeof r.contents.packageJsonContent.exports||Array.isArray(r.contents.packageJsonContent.exports)||"object"==typeof r.contents.packageJsonContent.exports&&(d=r.contents.packageJsonContent.exports,!e.some(e.getOwnKeys(d),(t=>e.startsWith(t,"."))))?c=r.contents.packageJsonContent.exports:e.hasProperty(r.contents.packageJsonContent.exports,".")&&(c=r.contents.packageJsonContent.exports["."]),c)return se(n,a,o,s,i,r,!1)(c,"",!1)}else if(ne(r.contents.packageJsonContent.exports)){if("object"!=typeof r.contents.packageJsonContent.exports)return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),ve(void 0);var l=oe(n,a,o,s,i,r.contents.packageJsonContent.exports,r,!1);if(l)return l}var d;return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),ve(void 0)}}function ae(e,t){var r=e.indexOf("*"),n=t.indexOf("*"),i=-1===r?e.length:r+1,a=-1===n?t.length:n+1;return i>a?-1:a>i||-1===r?1:-1===n||e.length>t.length?-1:t.length>e.length?1:0}function oe(t,r,n,i,a,o,s,c){var l=se(t,r,n,i,a,s,c);if(!e.endsWith(a,e.directorySeparator)&&-1===a.indexOf("*")&&e.hasProperty(o,a))return l(_=o[a],"",!1);for(var d=0,u=e.sort(e.filter(e.getOwnKeys(o),(t=>-1!==t.indexOf("*")||e.endsWith(t,"/"))),ae);d<u.length;d++){var p=u[d];if(r.features&v.ExportsPatternTrailers&&m(p,a)){var _=o[p],f=p.indexOf("*");return l(_,a.substring(p.substring(0,f).length,a.length-(p.length-1-f)),!0)}if(e.endsWith(p,"*")&&e.startsWith(a,p.substring(0,p.length-1)))return l(_=o[p],a.substring(p.length-1),!0);if(e.startsWith(a,p))return l(_=o[p],a.substring(p.length),!1)}function m(t,r){if(e.endsWith(t,"*"))return!1;var n=t.indexOf("*");return-1!==n&&e.startsWith(r,t.substring(0,n))&&e.endsWith(r,t.substring(n+1))}}function se(r,i,a,s,c,l,d){return function u(p,_,f){if("string"==typeof p){if(!f&&_.length>0&&!e.endsWith(p,"/"))return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),ve(void 0);if(!e.startsWith(p,"./")){if(d&&!e.startsWith(p,"../")&&!e.startsWith(p,"/")&&!e.isRootedDiskPath(p)){var m=f?p.replace(/\*/g,_):p+_;return ve((T=R(i.features,m,l.packageDirectory+"/",i.compilerOptions,i.host,a,[r],s)).resolvedModule?{path:T.resolvedModule.resolvedFileName,extension:T.resolvedModule.extension,packageId:T.resolvedModule.packageId,originalPath:T.resolvedModule.originalPath}:void 0)}return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),ve(void 0)}var g=(e.pathIsRelative(p)?e.getPathComponents(p).slice(1):e.getPathComponents(p)).slice(1);if(g.indexOf("..")>=0||g.indexOf(".")>=0||g.indexOf("node_modules")>=0)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),ve(void 0);var h=e.combinePaths(l.packageDirectory,p),y=e.getPathComponents(_);if(y.indexOf("..")>=0||y.indexOf(".")>=0||y.indexOf("node_modules")>=0)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),ve(void 0);var v=C(f?h.replace(/\*/g,_):h+_);return((t,a,s,c)=>{var d,u,p,_;if((r===o.TypeScript||r===o.JavaScript||r===o.Json)&&(i.compilerOptions.declarationDir||i.compilerOptions.outDir)&&-1===t.indexOf("/node_modules/")&&(!i.compilerOptions.configFile||e.containsPath(l.packageDirectory,C(i.compilerOptions.configFile.fileName),!k()))){var f=e.hostGetCanonicalFileName({useCaseSensitiveFileNames:k}),m=[];if(i.compilerOptions.rootDir||i.compilerOptions.composite&&i.compilerOptions.configFilePath){var g=C(e.getCommonSourceDirectory(i.compilerOptions,(()=>[]),(null===(u=(d=i.host).getCurrentDirectory)||void 0===u?void 0:u.call(d))||"",f));m.push(g)}else if(i.requestContainingDirectory){var h=C(e.combinePaths(i.requestContainingDirectory,"index.ts"));g=C(e.getCommonSourceDirectory(i.compilerOptions,(()=>[h,C(s)]),(null===(_=(p=i.host).getCurrentDirectory)||void 0===_?void 0:_.call(p))||"",f)),m.push(g);for(var y=e.ensureTrailingDirectorySeparator(g);y&&y.length>1;){var v=e.getPathComponents(y);v.pop();var b=e.getPathFromPathComponents(v);m.unshift(b),y=e.ensureTrailingDirectorySeparator(b)}}m.length>1&&i.reportDiagnostic(e.createCompilerDiagnostic(c?e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===a?".":a,s));for(var E=0,x=m;E<x.length;E++)for(var D=x[E],S=0,T=U(D);S<T.length;S++){var N=T[S];if(e.containsPath(N,t,!k()))for(var w=t.slice(N.length+1),F=e.combinePaths(D,w),P=0,I=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];P<I.length;P++){var O=I[P];if(e.fileExtensionIs(F,O))for(var M=0,R=e.getPossibleOriginalInputExtensionForExtension(F);M<R.length;M++){var L=R[M],B=e.changeAnyExtension(F,L,O,!k());if(!(r===o.TypeScript&&e.hasJSFileExtension(B)||r===o.JavaScript&&e.hasTSFileExtension(B))&&i.host.fileExists(B))return ve(n(l,J(r,B,!1,i)))}}}}return;function U(e){var t,r,n=i.compilerOptions.configFile?(null===(r=(t=i.host).getCurrentDirectory)||void 0===r?void 0:r.call(t))||"":e,a=[];return i.compilerOptions.declarationDir&&a.push(C(A(n,i.compilerOptions.declarationDir))),i.compilerOptions.outDir&&i.compilerOptions.outDir!==i.compilerOptions.declarationDir&&a.push(C(A(n,i.compilerOptions.outDir))),a}})(v,_,e.combinePaths(l.packageDirectory,"package.json"),d)||ve(n(l,J(r,v,!1,i)))}if("object"==typeof p&&null!==p){if(!Array.isArray(p)){for(var b=0,E=e.getOwnKeys(p);b<E.length;b++){var x=E[b];if(("default"===x||i.conditions.indexOf(x)>=0||ce(i.conditions,x))&&(T=u(p[x],_,f)))return T}return}if(!e.length(p))return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),ve(void 0);for(var D=0,S=p;D<S.length;D++){var T;if(T=u(S[D],_,f))return T}}else if(null===p)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null,l.packageDirectory,c),ve(void 0);return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),ve(void 0);function C(t){var r,n;return void 0===t?t:e.getNormalizedAbsolutePath(t,null===(n=(r=i.host).getCurrentDirectory)||void 0===n?void 0:n.call(r))}function A(t,r){return e.ensureTrailingDirectorySeparator(e.combinePaths(t,r))}function k(){return!i.host.useCaseSensitiveFileNames||("boolean"==typeof i.host.useCaseSensitiveFileNames?i.host.useCaseSensitiveFileNames:i.host.useCaseSensitiveFileNames())}}}function ce(t,r){if(-1===t.indexOf("types"))return!1;if(!e.startsWith(r,"types@"))return!1;var n=e.VersionRange.tryParse(r.substring("types@".length));return!!n&&n.test(e.version)}function le(e,t,r,n,i,a){return de(e,t,r,n,!1,i,a)}function de(t,r,n,i,a,o,s){var c=o&&o.getOrCreateCacheForModuleName(r,0===i.features?void 0:i.features&v.EsmMode?e.ModuleKind.ESNext:e.ModuleKind.CommonJS,s);return e.forEachAncestorDirectory(e.normalizeSlashes(n),(n=>{if("node_modules"!==e.getBaseFileName(n))return he(c,r,n,i)||ve(ue(t,r,n,i,a,o,s))}))}function ue(r,n,i,a,s,c,l){var d=e.combinePaths(i,"node_modules"),u=e.directoryProbablyExists(d,a.host);!u&&a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,d);var p=s?void 0:pe(r,n,d,u,a,c,l);if(p)return p;if(r===o.TypeScript||r===o.DtsOnly){var _=e.combinePaths(d,"@types"),f=u;return u&&!e.directoryProbablyExists(_,a.host)&&(a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,_),f=!1),pe(o.DtsOnly,((r,n)=>{var i=me(r);return n.traceEnabled&&i!==r&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i),i})(n,a),_,f,a,c,l)}}function pe(r,a,o,s,c,l,d){var u=e.normalizePath(e.combinePaths(o,a)),p=ee(u,!s,c);if(!(c.features&v.Exports)&&p){var _=W(r,u,!s,c);if(_)return i(_);var f=te(r,u,!s,c,p.contents.packageJsonContent,p.contents.versionPaths);return n(p,f)}var m=re(a),g=m.packageName,h=m.rest,y=(t,r,i,a)=>{var o;if(p&&p.contents.packageJsonContent.exports&&a.features&v.Exports)return null===(o=ie(p,t,e.combinePaths(".",h),a,l,d))||void 0===o?void 0:o.value;var s=W(t,r,i,a)||te(t,r,i,a,p&&p.contents.packageJsonContent,p&&p.contents.versionPaths);return!s&&p&&(void 0===p.contents.packageJsonContent.exports||null===p.contents.packageJsonContent.exports)&&a.features&v.EsmMode&&(s=W(t,e.combinePaths(r,"index.js"),i,a)),n(p,s)};if(""!==h){var b=e.combinePaths(o,g);if((p=ee(b,!s,c))&&p.contents.versionPaths){c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,p.contents.versionPaths.version,e.version,h);var E=s&&e.directoryProbablyExists(b,c.host),x=_e(r,h,b,p.contents.versionPaths.paths,void 0,y,!E,c);if(x)return x.value}}return y(r,u,!s,c)}function _e(r,n,a,o,s,c,l,d){s||(s=e.tryParsePatterns(o));var u=e.matchPatternOrExact(s,n);if(u){var p=e.isString(u)?void 0:e.matchedText(u,n),_=e.isString(u)?u:e.patternText(u);return d.traceEnabled&&t(d.host,e.Diagnostics.Module_name_0_matched_pattern_1,n,_),{value:e.forEach(o[_],(n=>{var o=p?n.replace("*",p):n,s=e.normalizePath(e.combinePaths(a,o));d.traceEnabled&&t(d.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,n,o);var u=e.tryGetExtensionFromPath(n);if(void 0!==u){var _=$(s,l,d);if(void 0!==_)return i({path:_,ext:u})}return c(r,s,l||!e.directoryProbablyExists(e.getDirectoryPath(s),d.host),d)}))}}}e.nodeModuleNameResolver=M,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=j,e.parseNodeModuleFromPath=V,e.getEntrypointsFromPackageJsonInfo=(t,r,n,i,a)=>{if(!a&&void 0!==t.contents.resolvedEntrypoints)return t.contents.resolvedEntrypoints;var s,c=a?o.JavaScript:o.TypeScript,l=x(r),d=Q(null==i?void 0:i.getPackageJsonInfoCache(),n,r);d.conditions=["node","require","types"],d.requestContainingDirectory=t.packageDirectory;var u=te(c,t.packageDirectory,!1,d,t.contents.packageJsonContent,t.contents.versionPaths);if(s=e.append(s,null==u?void 0:u.path),l&v.Exports&&t.contents.packageJsonContent.exports)for(var p=0,_=[["node","import","types"],["node","require","types"]];p<_.length;p++){var f=_[p],g=m(m({},d),{failedLookupLocations:[],conditions:f}),h=Y(t,t.contents.packageJsonContent.exports,g,c);if(h)for(var y=0,b=h;y<b.length;y++){var E=b[y];s=e.appendIfUnique(s,E.path)}}return t.contents.resolvedEntrypoints=s||!1},e.getTemporaryModuleResolutionState=Q,e.getPackageScopeForPath=Z,e.getPackageJsonInfo=ee,e.parsePackageName=re,e.allKeysStartWithDot=ne,e.comparePatternKeys=ae,e.isApplicableVersionedTypesKey=ce;var fe="__";function me(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,fe);if(r!==t)return r.slice(1)}return t}function ge(t){return e.stringContains(t,fe)?"@"+t.replace(fe,e.directorySeparator):t}function he(r,n,i,a){var o=r&&r.get(i);if(o)return a.traceEnabled&&t(a.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,i),a.resultFromCache=o,{value:o.resolvedModule&&{path:o.resolvedModule.resolvedFileName,originalPath:o.resolvedModule.originalPath||!0,extension:o.resolvedModule.extension,packageId:o.resolvedModule.packageId}}}function ye(t,n,i,a,s,c){var d=r(i,a),u=[],p=[],_=e.getDirectoryPath(n),f=[],m={compilerOptions:i,host:a,traceEnabled:d,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:s,features:v.None,conditions:[],requestContainingDirectory:_,reportDiagnostic(e){f.push(e)}},g=h(o.TypeScript)||h(o.JavaScript);return l(g&&g.value,!1,u,p,f,m.resultFromCache);function h(r){var n=N(r,t,_,H,m);if(n)return{value:n};if(e.isExternalModuleNameRelative(t)){var i=e.normalizePath(e.combinePaths(_,t));return ve(H(r,i,!1,m))}var a=s&&s.getOrCreateCacheForModuleName(t,void 0,c);return e.forEachAncestorDirectory(_,(n=>{var i=he(a,t,n,m);if(i)return i;var o=e.normalizePath(e.combinePaths(n,t));return ve(H(r,o,!1,m))}))||(r===o.TypeScript?((e,t,r)=>de(o.DtsOnly,e,t,r,!0,void 0,void 0))(t,_,m):void 0)}}function ve(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=e=>"@types/".concat(me(e)),e.mangleScopedPackageName=me,e.getPackageNameFromTypesPackageName=t=>{var r=e.removePrefix(t,"@types/");return r!==t?ge(r):t},e.unmangleScopedPackageName=ge,e.classicNameResolver=ye,e.loadModuleFromGlobalCache=(n,i,a,s,c,d)=>{var u=r(a,s);u&&t(s,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,n,c);var p=[],_=[],f=[],m={compilerOptions:a,host:s,traceEnabled:u,failedLookupLocations:p,affectingLocations:_,packageJsonInfoCache:d,features:v.None,conditions:[],requestContainingDirectory:void 0,reportDiagnostic(e){f.push(e)}};return l(ue(o.DtsOnly,n,c,m,!1,void 0,void 0),!0,p,_,f,m.resultFromCache)}})(p),(e=>{var t,r;function n(t,r){return t.body&&!t.body.parent&&(e.setParent(t.body,t),e.setParentRecursive(t.body,!1)),t.body?i(t.body,r):1}function i(t,r){void 0===r&&(r=new e.Map);var o=e.getNodeId(t);if(r.has(o))return r.get(o)||0;r.set(o,void 0);var s=((t,r)=>{switch(t.kind){case 258:case 259:return 0;case 260:if(e.isEnumConst(t))return 2;break;case 266:case 265:if(!e.hasSyntacticModifier(t,1))return 0;break;case 272:var o=t;if(!o.moduleSpecifier&&o.exportClause&&273===o.exportClause.kind){for(var s=0,c=0,l=o.exportClause.elements;c<l.length;c++){var d=a(l[c],r);if(d>s&&(s=d),1===s)return s}return s}break;case 262:var u=0;return e.forEachChild(t,(t=>{var n=i(t,r);switch(n){case 0:return;case 2:return void(u=2);case 1:return u=1,!0;default:e.Debug.assertNever(n)}})),u;case 261:return n(t,r);case 79:if(t.isInJSDocNamespace)return 0}return 1})(t,r);return r.set(o,s),s}function a(t,r){for(var n=t.propertyName||t.name,a=t.parent;a;){if(e.isBlock(a)||e.isModuleBlock(a)||e.isSourceFile(a)){for(var o=void 0,s=0,c=a.statements;s<c.length;s++){var l=c[s];if(e.nodeHasName(l,n)){l.parent||(e.setParent(l,a),e.setParentRecursive(l,!1));var d=i(l,r);if((void 0===o||d>o)&&(o=d),1===o)return o}}if(void 0!==o)return o}a=a.parent}return 1}function o(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,(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.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor"})(t||(t={}));var s=(()=>{var t,r,i,a,s,u,p,_,g,h,y,v,b,E,x,D,S,T,C,A,k,N,w,F,P=!1,I=0,O={flags:1},M={flags:1},R=(()=>{return e.createBinaryExpressionTrampoline(((t,r)=>{if(r){r.stackIndex++,e.setParent(t,a);var n=N;Be(t);var i=a;a=t,r.skip=!1,r.inStrictModeStack[r.stackIndex]=n,r.parentStack[r.stackIndex]=i}else r={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var o=t.operatorToken.kind;if(55===o||56===o||60===o||e.isLogicalOrCoalescingAssignmentOperator(o)){if(de(t)){var s=Z();ve(t,s,s),y=ce(s)}else ve(t,x,D);r.skip=!0}return r}),((e,r,n)=>{if(!r.skip){var i=t(e);return 27===n.operatorToken.kind&&ge(e),i}}),((e,t,r)=>{t.skip||Me(e)}),((e,r,n)=>{if(!r.skip){var i=t(e);return 27===n.operatorToken.kind&&ge(e),i}}),((t,r)=>{if(!r.skip){var n=t.operatorToken.kind;e.isAssignmentOperator(n)&&!e.isAssignmentTarget(t)&&(ye(t.left),63===n&&207===t.left.kind&&Q(t.left.expression)&&(y=oe(256,y,t)))}var i=r.inStrictModeStack[r.stackIndex],o=r.parentStack[r.stackIndex];void 0!==i&&(N=i),void 0!==o&&(a=o),r.skip=!1,r.stackIndex--}),void 0);function t(t){if(t&&e.isBinaryExpression(t)&&!e.isDestructuringAssignment(t))return t;Me(t)}})();function L(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return(n,c)=>{t=n,r=c,i=e.getEmitScriptTarget(r),N=((t,r)=>!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator)(t,c),F=new e.Set,I=0,w=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(O),e.Debug.attachFlowNodeDebugInfo(M),t.locals||(null===e.tracing||void 0===e.tracing||e.tracing.push("bind","bindSourceFile",{path:t.path},!0),Me(t),null===e.tracing||void 0===e.tracing||e.tracing.pop(),t.symbolCount=I,t.classifiableNames=F,(()=>{if(g){for(var r=s,n=_,i=p,c=a,d=y,u=0,f=g;u<f.length;u++){var m=f[u],h=m.parent.parent;s=e.findAncestor(h.parent,(e=>!!(1&Se(e))))||t,p=e.getEnclosingBlockScopeContainer(h)||t,y=o({flags:2}),a=m,Me(m.typeExpression);var v=e.getNameOfDeclaration(m);if((e.isJSDocEnumTag(m)||!m.fullName)&&v&&e.isPropertyAccessEntityNameExpression(v.parent)){var b=Xe(v.parent);if(b){$e(t.symbol,v.parent,b,!!e.findAncestor(v,(t=>e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText)),!1);var E=s;switch(e.getAssignmentDeclarationPropertyAccessKind(v.parent)){case 1:case 2:s=e.isExternalOrCommonJsModule(t)?t:void 0;break;case 4:s=v.parent.expression;break;case 3:s=v.parent.expression.name;break;case 5:s=l(t,v.parent.expression)?t:e.isPropertyAccessExpression(v.parent.expression)?v.parent.expression.name:v.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}s&&H(m,524288,788968),s=E}}else e.isJSDocEnumTag(m)||!m.fullName||79===m.fullName.kind?(a=m.parent,we(m,524288,788968)):Me(m.fullName)}s=r,_=n,p=i,a=c,y=d}})()),t=void 0,r=void 0,i=void 0,a=void 0,s=void 0,u=void 0,p=void 0,_=void 0,g=void 0,h=!1,y=void 0,v=void 0,b=void 0,E=void 0,x=void 0,D=void 0,S=void 0,C=void 0,A=!1,P=!1,k=0};function B(e,t){return I++,new w(e,t)}function U(t,r,n){t.flags|=n,r.symbol=t,t.declarations=e.appendIfUnique(t.declarations,r),1955&n&&!t.exports&&(t.exports=e.createSymbolTable()),6240&n&&!t.members&&(t.members=e.createSymbolTable()),t.constEnumOnlyModule&&304&t.flags&&(t.constEnumOnlyModule=!1),111551&n&&e.setValueDeclaration(t,r)}function j(t){if(271===t.kind)return t.isExportEquals?"export=":"default";var r=e.getNameOfDeclaration(t);if(r){if(e.isAmbientModule(t)){var n=e.getTextOfIdentifierOrLiteral(r);return e.isGlobalScopeAugmentation(t)?"__global":'"'.concat(n,'"')}if(162===r.kind){var i=r.expression;if(e.isStringOrNumericLiteralLike(i))return e.escapeLeadingUnderscores(i.text);if(e.isSignedNumericLiteral(i))return e.tokenToString(i.operator)+i.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(r)){var a=e.getContainingClass(t);if(!a)return;var o=a.symbol;return e.getSymbolNameForPrivateIdentifier(o,r.escapedText)}return e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):void 0}switch(t.kind){case 171:return"__constructor";case 179:case 174:case 323:return"__call";case 180:case 175:return"__new";case 176:return"__index";case 272:return"__export";case 305:return"export=";case 221:if(2===e.getAssignmentDeclarationKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 317:return e.isJSDocConstructSignature(t)?"__new":"__call";case 164:return e.Debug.assert(317===t.parent.kind,"Impossible parameter parent kind",(()=>"parent is: ".concat(e.Debug.formatSyntaxKind(t.parent.kind),", expected JSDocFunctionType"))),"arg"+t.parent.parameters.indexOf(t)}}function V(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(j(t)))}function z(r,n,i,a,o,s,c){e.Debug.assert(c||!e.hasDynamicName(i));var l,d=e.hasSyntacticModifier(i,512)||e.isExportSpecifier(i)&&"default"===i.name.escapedText,u=c?"__computed":d&&n?"default":j(i);if(void 0===u)l=B(0,"__missing");else if(l=r.get(u),2885600&a&&F.add(u),l){if(s&&!l.isReplaceableByMethod)return l;if(l.flags&o)if(l.isReplaceableByMethod)r.set(u,l=B(0,u));else if(!(3&a&&67108864&l.flags)){e.isNamedDeclaration(i)&&e.setParent(i.name,i);var p=2&l.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,_=!0;(384&l.flags||384&a)&&(p=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,_=!1);var m=!1;e.length(l.declarations)&&(d||l.declarations&&l.declarations.length&&271===i.kind&&!i.isExportEquals)&&(p=e.Diagnostics.A_module_cannot_have_multiple_default_exports,_=!1,m=!0);var g=[];e.isTypeAliasDeclaration(i)&&e.nodeIsMissing(i.type)&&e.hasSyntacticModifier(i,1)&&2887656&l.flags&&g.push(L(i,e.Diagnostics.Did_you_mean_0,"export type { ".concat(e.unescapeLeadingUnderscores(i.name.escapedText)," }")));var h=e.getNameOfDeclaration(i)||i;e.forEach(l.declarations,((r,n)=>{var i=e.getNameOfDeclaration(r)||r,a=L(i,p,_?V(r):void 0);t.bindDiagnostics.push(m?e.addRelatedInfo(a,L(h,0===n?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):a),m&&g.push(L(i,e.Diagnostics.The_first_export_default_is_here))}));var y=L(h,p,_?V(i):void 0);t.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,f([y],g,!1))),l=B(0,u)}}else r.set(u,l=B(0,u)),s&&(l.isReplaceableByMethod=!0);return U(l,i,a),l.parent?e.Debug.assert(l.parent===n,"Existing symbol parent should match new one"):l.parent=n,l}function H(t,r,n){var i=!!(1&e.getCombinedModifierFlags(t))||(t=>{if(t.parent&&e.isModuleDeclaration(t)&&(t=t.parent),!e.isJSDocTypeAlias(t))return!1;if(!e.isJSDocEnumTag(t)&&t.fullName)return!0;var r=e.getNameOfDeclaration(t);return!(!r||!(e.isPropertyAccessEntityNameExpression(r.parent)&&Xe(r.parent)||e.isDeclaration(r.parent)&&1&e.getCombinedModifierFlags(r.parent)))})(t);if(2097152&r)return 275===t.kind||265===t.kind&&i?z(s.symbol.exports,s.symbol,t,r,n):z(s.locals,void 0,t,r,n);if(e.isJSDocTypeAlias(t)&&e.Debug.assert(e.isInJSFile(t)),!e.isAmbientModule(t)&&(i||64&s.flags)){if(!s.locals||e.hasSyntacticModifier(t,512)&&!j(t))return z(s.symbol.exports,s.symbol,t,r,n);var a=111551&r?1048576:0,o=z(s.locals,void 0,t,a,n);return o.exportSymbol=z(s.symbol.exports,s.symbol,t,r,n),t.localSymbol=o,o}return z(s.locals,void 0,t,r,n)}function W(e){K(e,(e=>256===e.kind?Me(e):void 0)),K(e,(e=>256!==e.kind?Me(e):void 0))}function K(t,r){void 0===r&&(r=Me),void 0!==t&&e.forEach(t,r)}function J(t){e.forEachChild(t,Me,K)}function G(t){var i=P;if(P=!1,(t=>{if(!(1&y.flags))return!1;if(y===O&&(e.isStatementButNotDeclaration(t)&&236!==t.kind||257===t.kind||261===t.kind&&(t=>{var i=n(t);return 1===i||2===i&&e.shouldPreserveConstEnums(r)})(t))&&(y=M,!r.allowUnreachableCode)){var i=e.unreachableCodeIsError(r)&&!(16777216&t.flags)&&(!e.isVariableStatement(t)||!!(3&e.getCombinedNodeFlags(t.declarationList))||t.declarationList.declarations.some((e=>!!e.initializer)));!((t,r)=>{if(e.isStatement(t)&&c(t)&&e.isBlock(t.parent)){var n=t.parent.statements,i=e.sliceAfter(n,t);e.getRangesWhere(i,c,((e,t)=>r(i[e],i[t-1])))}else r(t,t)})(t,((t,r)=>Oe(i,t,r,e.Diagnostics.Unreachable_code_detected)))}return!0})(t))return J(t),Re(t),void(P=i);switch(t.kind>=237&&t.kind<=253&&!r.allowUnreachableCode&&(t.flowNode=y),t.kind){case 241:!(e=>{var t=fe(e,ee()),r=Z(),n=Z();ne(t,y),y=t,pe(e.expression,r,n),y=ce(r),_e(e.statement,n,t),ne(t,y),y=ce(n)})(t);break;case 240:!(e=>{var t=ee(),r=fe(e,Z()),n=Z();ne(t,y),y=t,_e(e.statement,n,r),ne(r,y),y=ce(r),pe(e.expression,t,n),y=ce(n)})(t);break;case 242:!(e=>{var t=fe(e,ee()),r=Z(),n=Z();Me(e.initializer),ne(t,y),y=t,pe(e.condition,r,n),y=ce(r),_e(e.statement,n,t),Me(e.incrementor),ne(t,y),y=ce(n)})(t);break;case 243:case 244:!(e=>{var t=fe(e,ee()),r=Z();Me(e.expression),ne(t,y),y=t,244===e.kind&&Me(e.awaitModifier),ne(r,y),Me(e.initializer),255!==e.initializer.kind&&ye(e.initializer),_e(e.statement,r,t),ne(t,y),y=ce(r)})(t);break;case 239:!(e=>{var t=Z(),r=Z(),n=Z();pe(e.expression,t,r),y=ce(t),Me(e.thenStatement),ne(n,y),y=ce(r),Me(e.elseStatement),ne(n,y),y=ce(n)})(t);break;case 247:case 251:!(e=>{Me(e.expression),247===e.kind&&(A=!0,E&&ne(E,y)),y=O})(t);break;case 246:case 245:!(e=>{if(Me(e.label),e.label){var t=(e=>{for(var t=C;t;t=t.next)if(t.name===e)return t})(e.label.escapedText);t&&(t.referenced=!0,me(e,t.breakTarget,t.continueTarget))}else me(e,v,b)})(t);break;case 252:!(t=>{var r=E,n=S,i=Z(),a=Z(),o=Z();if(t.finallyBlock&&(E=a),ne(o,y),S=o,Me(t.tryBlock),ne(i,y),t.catchClause&&(y=ce(o),ne(o=Z(),y),S=o,Me(t.catchClause),ne(i,y)),E=r,S=n,t.finallyBlock){var s=Z();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),y=s,Me(t.finallyBlock),1&y.flags?y=O:(E&&a.antecedents&&ne(E,te(s,a.antecedents,y)),S&&o.antecedents&&ne(S,te(s,o.antecedents,y)),y=i.antecedents?te(s,i.antecedents,y):O)}else y=ce(i)})(t);break;case 249:!(t=>{var r=Z();Me(t.expression);var n=v,i=T;v=r,T=y,Me(t.caseBlock),ne(r,y);var a=e.forEach(t.caseBlock.clauses,(e=>290===e.kind));t.possiblyExhaustive=!a&&!r.antecedents,a||ne(r,ae(T,t,0,0)),v=n,T=i,y=ce(r)})(t);break;case 263:!(e=>{for(var t=e.clauses,n=$(e.parent.expression),i=O,a=0;a<t.length;a++){for(var o=a;!t[a].statements.length&&a+1<t.length;)Me(t[a]),a++;var s=Z();ne(s,n?ae(T,e.parent,o,a+1):T),ne(s,i),y=ce(s);var c=t[a];Me(c),i=y,1&y.flags||a===t.length-1||!r.noFallthroughCasesInSwitch||(c.fallthroughFlowNode=y)}})(t);break;case 289:!(e=>{var t=y;y=T,Me(e.expression),y=t,K(e.statements)})(t);break;case 238:!(e=>{Me(e.expression),ge(e.expression)})(t);break;case 250:!(t=>{var n=Z();C={next:C,name:t.label.escapedText,breakTarget:n,continueTarget:void 0,referenced:!1},Me(t.label),Me(t.statement),C.referenced||r.allowUnusedLabels||((e,t,r)=>{Oe(e,t,t,r)})(e.unusedLabelIsError(r),t.label,e.Diagnostics.Unused_label),C=C.next,ne(n,y),y=ce(n)})(t);break;case 219:!(e=>{if(53===e.operator){var t=x;x=D,D=t,J(e),D=x,x=t}else J(e),45!==e.operator&&46!==e.operator||ye(e.operand)})(t);break;case 220:!(e=>{J(e),(45===e.operator||46===e.operator)&&ye(e.operand)})(t);break;case 221:if(e.isDestructuringAssignment(t))return P=i,void(e=>{P?(P=!1,Me(e.operatorToken),Me(e.right),P=!0,Me(e.left)):(P=!0,Me(e.left),P=!1,Me(e.operatorToken),Me(e.right)),ye(e.left)})(t);R(t);break;case 215:!(e=>{J(e),206===e.expression.kind&&ye(e.expression)})(t);break;case 222:!(e=>{var t=Z(),r=Z(),n=Z();pe(e.condition,t,r),y=ce(t),Me(e.questionToken),Me(e.whenTrue),ne(n,y),y=ce(r),Me(e.colonToken),Me(e.whenFalse),ne(n,y),y=ce(n)})(t);break;case 254:!(t=>{J(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&be(t)})(t);break;case 206:case 207:!(t=>{e.isOptionalChain(t)?De(t):J(t)})(t);break;case 208:!(t=>{if(e.isOptionalChain(t))De(t);else{var r=e.skipParentheses(t.expression);213===r.kind||214===r.kind?(K(t.typeArguments),K(t.arguments),Me(t.expression)):(J(t),106===t.expression.kind&&(y=se(y,t)))}if(206===t.expression.kind){var n=t.expression;e.isIdentifier(n.name)&&Q(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(y=oe(256,y,t))}})(t);break;case 230:!(t=>{e.isOptionalChain(t)?De(t):J(t)})(t);break;case 345:case 338:case 339:!(t=>{Me(t.tagName),339!==t.kind&&t.fullName&&(e.setParent(t.fullName,t),e.setParentRecursive(t.fullName,!1)),"string"!=typeof t.comment&&K(t.comment)})(t);break;case 305:W(t.statements),Me(t.endOfFileToken);break;case 235:case 262:W(t.statements);break;case 203:!(t=>{e.isBindingPattern(t.name)?(Me(t.dotDotDotToken),Me(t.propertyName),Me(t.initializer),Me(t.name)):J(t)})(t);break;case 205:case 204:case 296:case 225:P=i;default:J(t)}Re(t),P=i}function $(e){switch(e.kind){case 79:case 80:case 108:case 206:case 207:return X(e);case 208:return(e=>{if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++)if(X(r[t]))return!0;return!(206!==e.expression.kind||!X(e.expression.expression))})(e);case 212:case 230:return $(e.expression);case 221:return(e=>{switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return X(e.left);case 34:case 35:case 36:case 37:return Q(e.left)||Q(e.right)||Y(e.right,e.left)||Y(e.left,e.right);case 102:return Q(e.left);case 101:case 27:return $(e.right)}return!1})(e);case 219:return 53===e.operator&&$(e.operand);case 216:return $(e.expression)}return!1}function q(t){return e.isDottedName(t)||(e.isPropertyAccessExpression(t)||e.isNonNullExpression(t)||e.isParenthesizedExpression(t))&&q(t.expression)||e.isBinaryExpression(t)&&27===t.operatorToken.kind&&q(t.right)||e.isElementAccessExpression(t)&&(e.isStringOrNumericLiteralLike(t.argumentExpression)||e.isEntityNameExpression(t.argumentExpression))&&q(t.expression)||e.isAssignmentExpression(t)&&q(t.left)}function X(t){return q(t)||e.isOptionalChain(t)&&X(t.expression)}function Y(t,r){return e.isTypeOfExpression(t)&&Q(t.expression)&&e.isStringLiteralLike(r)}function Q(e){switch(e.kind){case 212:return Q(e.expression);case 221:switch(e.operatorToken.kind){case 63:return Q(e.left);case 27:return Q(e.right)}}return X(e)}function Z(){return o({flags:4,antecedents:void 0})}function ee(){return o({flags:8,antecedents:void 0})}function te(e,t,r){return o({flags:1024,target:e,antecedents:t,antecedent:r})}function re(e){e.flags|=2048&e.flags?4096:2048}function ne(t,r){1&r.flags||e.contains(t.antecedents,r)||((t.antecedents||(t.antecedents=[])).push(r),re(r))}function ie(t,r,n){return 1&r.flags?r:n?!(110===n.kind&&64&t||95===n.kind&&32&t)||e.isExpressionOfOptionalChainRoot(n)||e.isNullishCoalesce(n.parent)?$(n)?(re(r),o({flags:t,antecedent:r,node:n})):r:O:32&t?r:O}function ae(e,t,r,n){return re(e),o({flags:128,antecedent:e,switchStatement:t,clauseStart:r,clauseEnd:n})}function oe(e,t,r){re(t);var n=o({flags:e,antecedent:t,node:r});return S&&ne(S,n),n}function se(e,t){return re(e),o({flags:512,antecedent:e,node:t})}function ce(e){var t=e.antecedents;return t?1===t.length?t[0]:e:O}function le(e){for(;;)if(212===e.kind)e=e.expression;else{if(219!==e.kind||53!==e.operator)return 221===e.kind&&(55===e.operatorToken.kind||56===e.operatorToken.kind||60===e.operatorToken.kind);e=e.operand}}function de(t){for(;e.isParenthesizedExpression(t.parent)||e.isPrefixUnaryExpression(t.parent)&&53===t.parent.operator;)t=t.parent;return!((e=>{var t=e.parent;switch(t.kind){case 239:case 241:case 240:return t.expression===e;case 242:case 222:return t.condition===e}return!1})(t)||le(t.parent)||e.isOptionalChain(t.parent)&&t.parent.expression===t)}function ue(e,t,r,n){var i=x,a=D;x=r,D=n,e(t),x=i,D=a}function pe(t,r,n){ue(Me,t,r,n),t&&((t=>(t=e.skipParentheses(t),e.isBinaryExpression(t)&&e.isLogicalOrCoalescingAssignmentOperator(t.operatorToken.kind)))(t)||le(t)||e.isOptionalChain(t)&&e.isOutermostOptionalChain(t))||(ne(r,ie(32,y,t)),ne(n,ie(64,y,t)))}function _e(e,t,r){var n=v,i=b;v=t,b=r,Me(e),v=n,b=i}function fe(e,t){for(var r=C;r&&250===e.parent.kind;)r.continueTarget=t,r=r.next,e=e.parent;return t}function me(e,t,r){var n=246===e.kind?t:r;n&&(ne(n,y),y=O)}function ge(t){if(208===t.kind){var r=t;106!==r.expression.kind&&e.isDottedName(r.expression)&&(y=se(y,r))}}function he(e){221===e.kind&&63===e.operatorToken.kind?ye(e.left):ye(e)}function ye(e){if(q(e))y=oe(16,y,e);else if(204===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];225===n.kind?ye(n.expression):he(n)}else if(205===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];296===o.kind?he(o.initializer):297===o.kind?ye(o.name):298===o.kind&&ye(o.expression)}}function ve(t,r,n){var i=Z();55===t.operatorToken.kind||76===t.operatorToken.kind?pe(t.left,i,n):pe(t.left,r,i),y=ce(i),Me(t.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(t.operatorToken.kind)?(ue(Me,t.right,r,n),ye(t.left),ne(r,ie(32,y,t)),ne(n,ie(64,y,t))):pe(t.right,r,n)}function be(t){var r=e.isOmittedExpression(t)?void 0:t.name;if(e.isBindingPattern(r))for(var n=0,i=r.elements;n<i.length;n++)be(i[n]);else y=oe(16,y,t)}function Ee(e){switch(e.kind){case 206:Me(e.questionDotToken),Me(e.name);break;case 207:Me(e.questionDotToken),Me(e.argumentExpression);break;case 208:Me(e.questionDotToken),K(e.typeArguments),K(e.arguments)}}function xe(t,r,n){var i=e.isOptionalChainRoot(t)?Z():void 0;!((t,r,n)=>{ue(Me,t,r,n),e.isOptionalChain(t)&&!e.isOutermostOptionalChain(t)||(ne(r,ie(32,y,t)),ne(n,ie(64,y,t)))})(t.expression,i||r,n),i&&(y=ce(i)),ue(Ee,t,r,n),e.isOutermostOptionalChain(t)&&(ne(r,ie(32,y,t)),ne(n,ie(64,y,t)))}function De(e){if(de(e)){var t=Z();xe(e,t,t),y=ce(t)}else xe(e,x,D)}function Se(t){switch(t.kind){case 226:case 257:case 260:case 205:case 182:case 322:case 286:return 1;case 258:return 65;case 261:case 259:case 195:case 176:return 33;case 305:return 37;case 172:case 173:case 169:if(e.isObjectLiteralOrClassExpressionMethodOrAccessor(t))return 173;case 171:case 256:case 168:case 174:case 323:case 317:case 179:case 175:case 180:case 170:return 45;case 213:case 214:return 61;case 262:return 4;case 167:return t.initializer?4:0;case 292:case 242:case 243:case 244:case 263:return 2;case 235:return e.isFunctionLike(t.parent)||e.isClassStaticBlockDeclaration(t.parent)?0:2}return 0}function Te(e){_&&(_.nextContainer=e),_=e}function Ce(r,n,i){switch(s.kind){case 261:return H(r,n,i);case 305:return((r,n,i)=>e.isExternalModule(t)?H(r,n,i):z(t.locals,void 0,r,n,i))(r,n,i);case 226:case 257:return((t,r,n)=>e.isStatic(t)?z(s.symbol.exports,s.symbol,t,r,n):z(s.symbol.members,s.symbol,t,r,n))(r,n,i);case 260:return z(s.symbol.exports,s.symbol,r,n,i);case 182:case 322:case 205:case 258:case 286:return z(s.symbol.members,s.symbol,r,n,i);case 179:case 180:case 174:case 175:case 323:case 176:case 169:case 168:case 171:case 172:case 173:case 256:case 213:case 214:case 317:case 345:case 338:case 170:case 259:case 195:return z(s.locals,void 0,r,n,i)}}function Ae(t){16777216&t.flags&&!(t=>{var r=e.isSourceFile(t)?t:e.tryCast(t.body,e.isModuleBlock);return!!r&&r.statements.some((t=>e.isExportDeclaration(t)||e.isExportAssignment(t)))})(t)?t.flags|=64:t.flags&=-65}function ke(e){var t=n(e),r=0!==t;return Ce(e,r?512:1024,r?110735:0),t}function Ne(e,t,r){var n=B(t,r);return 106508&t&&(n.parent=s.symbol),U(n,e,t),n}function we(t,r,n){switch(p.kind){case 261:H(t,r,n);break;case 305:if(e.isExternalOrCommonJsModule(s)){H(t,r,n);break}default:p.locals||(p.locals=e.createSymbolTable(),Te(p)),z(p.locals,void 0,t,r,n)}}function Fe(r,n){if(n&&79===n.kind){var i=n;if(o=i,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,(r=>e.getContainingClass(r)?e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode)(r),e.idText(i)))}}var o}function Pe(e){N&&Fe(e,e.name)}function Ie(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function Oe(r,n,i,a){!((r,n,i)=>{var a=e.createFileDiagnostic(t,n.pos,n.end-n.pos,i);r?t.bindDiagnostics.push(a):t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,m(m({},a),{category:e.DiagnosticCategory.Suggestion}))})(r,{pos:e.getTokenPosOfNode(n,t),end:i.end},a)}function Me(r){if(r){e.setParent(r,a),e.tracing&&(r.tracingPath=t.path);var n=N;if(Be(r),r.kind>160){var i=a;a=r;var c=Se(r);0===c?G(r):((t,r)=>{var n=s,i=u,a=p;if(1&r?(214!==t.kind&&(u=s),s=p=t,32&r&&(s.locals=e.createSymbolTable()),Te(s)):2&r&&((p=t).locals=void 0),4&r){var c=y,l=v,d=b,_=E,f=S,m=C,g=A,x=16&r&&!e.hasSyntacticModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t)||170===t.kind;x||(y=o({flags:2}),144&r&&(y.node=t)),E=x||171===t.kind||e.isInJSFile(t)&&(256===t.kind||213===t.kind)?Z():void 0,S=void 0,v=void 0,b=void 0,C=void 0,A=!1,G(t),t.flags&=-2817,!(1&y.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,A&&(t.flags|=512),t.endFlowNode=y),305===t.kind&&(t.flags|=k,t.endFlowNode=y),E&&(ne(E,y),y=ce(E),(171===t.kind||170===t.kind||e.isInJSFile(t)&&(256===t.kind||213===t.kind))&&(t.returnFlowNode=y)),x||(y=c),v=l,b=d,E=_,S=f,C=m,A=g}else 64&r?(h=!1,G(t),t.flags=h?128|t.flags:-129&t.flags):G(t);s=n,u=i,p=a})(r,c),a=i}else i=a,1===r.kind&&(a=r),Re(r),a=i;N=n}}function Re(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r<n.length;r++)Me(o=n[r]);else for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];e.setParent(o,t),e.setParentRecursive(o,!1)}}function Le(r){if(!N)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))return;if(o=a,'"use strict"'===(s=e.getSourceTextOfNodeFromSourceFile(t,o.expression))||"'use strict'"===s)return void(N=!0)}var o,s}function Be(n){switch(n.kind){case 79:if(n.isInJSDocNamespace){for(var o=n.parent;o&&!e.isJSDocTypeAlias(o);)o=o.parent;we(o,524288,788968);break}case 108:return y&&(e.isExpression(n)||297===a.kind)&&(n.flowNode=y),(r=>{t.parseDiagnostics.length||16777216&r.flags||8388608&r.flags||e.isIdentifierName(r)||(N&&r.originalKeywordKind>=117&&r.originalKeywordKind<=125?t.bindDiagnostics.push(L(r,(r=>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))):132===r.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(r)?t.bindDiagnostics.push(L(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(L(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))):125===r.originalKeywordKind&&8192&r.flags&&t.bindDiagnostics.push(L(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))))})(n);case 161:y&&e.isPartOfTypeQuery(n)&&(n.flowNode=y);break;case 231:case 106:n.flowNode=y;break;case 80:return(r=>{"#constructor"===r.escapedText&&(t.parseDiagnostics.length||t.bindDiagnostics.push(L(r,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(r))))})(n);case 206:case 207:var c=n;y&&q(c)&&(c.flowNode=y),e.isSpecialPropertyDeclaration(c)&&(t=>{108===t.expression.kind?He(t):e.isBindableStaticAccessExpression(t)&&305===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?Je(t,t.parent):Ge(t))})(c),e.isInJSFile(c)&&t.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(c)&&!d(p,"module")&&z(t.locals,void 0,c.expression,134217729,111550);break;case 221:switch(e.getAssignmentDeclarationKind(n)){case 1:Ve(n);break;case 2:!(r=>{if(je(r)){var n=e.getRightMostAssignedExpression(r.right);if(!(e.isEmptyObjectLiteral(n)||s===t&&l(t,n)))if(e.isObjectLiteralExpression(n)&&e.every(n.properties,e.isShorthandPropertyAssignment))e.forEach(n.properties,ze);else{var i=e.exportAssignmentIsAlias(r)?2097152:1049092,a=z(t.symbol.exports,t.symbol,r,67108864|i,0);e.setValueDeclaration(a,r)}}})(n);break;case 3:Je(n.left,n);break;case 6:!(t=>{e.setParent(t.left,t),e.setParent(t.right,t),Ye(t.left.expression,t.left,!1,!0)})(n);break;case 4:He(n);break;case 5:var u=n.left.expression;if(e.isInJSFile(n)&&e.isIdentifier(u)){var _=d(p,u.escapedText);if(e.isThisInitializedDeclaration(null==_?void 0:_.valueDeclaration)){He(n);break}}!(r=>{var n,i=Qe(r.left.expression,s)||Qe(r.left.expression,p);if(e.isInJSFile(r)||e.isFunctionSymbol(i)){var a=e.getLeftmostAccessExpression(r.left);e.isIdentifier(a)&&2097152&(null===(n=d(s,a.escapedText))||void 0===n?void 0:n.flags)||(e.setParent(r.left,r),e.setParent(r.right,r),e.isIdentifier(r.left.expression)&&s===t&&l(t,r.left.expression)?Ve(r):e.hasDynamicName(r)?(Ne(r,67108868,"__computed"),Ke(r,$e(i,r.left.expression,Xe(r.left),!1,!1))):Ge(e.cast(r.left,e.isBindableStaticNameExpression)))}})(n);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return(t=>{N&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Fe(t,t.left)})(n);case 292:return(e=>{N&&e.variableDeclaration&&Fe(e,e.variableDeclaration.name)})(n);case 215:return(r=>{if(N&&79===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(r=>{i<1&&N&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(L(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))})(n);case 220:return(e=>{N&&Fe(e,e.operand)})(n);case 219:return(e=>{N&&(45!==e.operator&&46!==e.operator||Fe(e,e.operand))})(n);case 248:return(t=>{N&&Ie(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)})(n);case 250:return(t=>{N&&e.getEmitScriptTarget(r)>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Ie(t.label,e.Diagnostics.A_label_is_not_allowed_here)})(n);case 192:return void(h=!0);case 177:break;case 163:return(t=>{if(e.isJSDocTemplateTag(t.parent)){var r=e.getEffectiveContainerForJSDocTemplateTag(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),z(r.locals,void 0,t,262144,526824)):Ce(t,262144,526824)}else if(190===t.parent.kind){var n=(t=>{var r=e.findAncestor(t,(t=>t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t));return r&&r.parent})(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),z(n.locals,void 0,t,262144,526824)):Ne(t,262144,j(t))}else Ce(t,262144,526824)})(n);case 164:return tt(n);case 254:return et(n);case 203:return n.flowNode=y,et(n);case 167:case 166:return(e=>rt(e,4|(e.questionToken?16777216:0),0))(n);case 296:case 297:return rt(n,4,0);case 299:return rt(n,8,900095);case 174:case 175:case 176:return Ce(n,131072,0);case 169:case 168:return rt(n,8192|(n.questionToken?16777216:0),e.isObjectLiteralMethod(n)?0:103359);case 256:return(r=>{t.isDeclarationFile||16777216&r.flags||e.isAsyncFunction(r)&&(k|=2048),Pe(r),N?((r=>{if(i<2&&305!==p.kind&&261!==p.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(p)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,(r=>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)):Ce(r,16,110991)})(n);case 171:return Ce(n,16384,0);case 172:return rt(n,32768,46015);case 173:return rt(n,65536,78783);case 179:case 317:case 323:case 180:return(t=>{var r=B(131072,j(t));U(r,t,131072);var n=B(2048,"__type");U(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)})(n);case 182:case 322:case 195:return(e=>Ne(e,2048,"__type"))(n);case 332:return(t=>{J(t);var r=e.getHostSignatureFromJSDoc(t);r&&169!==r.kind&&U(r.symbol,r,32)})(n);case 205:return(e=>Ne(e,4096,"__object"))(n);case 213:case 214:return(r=>(t.isDeclarationFile||16777216&r.flags||e.isAsyncFunction(r)&&(k|=2048),y&&(r.flowNode=y),Pe(r),Ne(r,16,r.name?r.name.escapedText:"__function")))(n);case 208:switch(e.getAssignmentDeclarationKind(n)){case 7:return(e=>{var t=Qe(e.arguments[0]),r=305===e.parent.parent.kind;qe(e,t=$e(t,e.arguments[0],r,!1,!1),!1)})(n);case 8:return(e=>{if(je(e)){var t=Ze(e.arguments[0],void 0,((e,t)=>(t&&U(t,e,67110400),t)));t&&z(t.exports,t,e,1048580,0)}})(n);case 9:return(e=>{var t=Qe(e.arguments[0].expression);t&&t.valueDeclaration&&U(t,t.valueDeclaration,32),qe(e,t,!0)})(n);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(n)&&(r=>{!t.commonJsModuleIndicator&&e.isRequireCall(r,!1)&&je(r)})(n);break;case 226:case 257:return N=!0,(r=>{257===r.kind?we(r,32,899503):(Ne(r,32,r.name?r.name.escapedText:"__class"),r.name&&F.add(r.name.escapedText));var n=r.symbol,i=B(4194308,"prototype"),a=n.exports.get(i.escapedName);a&&(r.name&&e.setParent(r.name,r),t.bindDiagnostics.push(L(a.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i)))),n.exports.set(i.escapedName,i),i.parent=n})(n);case 258:return we(n,64,788872);case 259:return we(n,524288,788968);case 260:return(t=>e.isEnumConst(t)?we(t,128,899967):we(t,256,899327))(n);case 261:return(r=>{if(Ae(r),e.isAmbientModule(r))if(e.hasSyntacticModifier(r,1)&&Ie(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(r))ke(r);else{var n=void 0;if(10===r.name.kind){var i=r.name.text;void 0===(n=e.tryParsePattern(i))&&Ie(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=Ce(r,512,110735);t.patternAmbientModules=e.append(t.patternAmbientModules,n&&!e.isString(n)?{pattern:n,symbol:a}:void 0)}else{var o=ke(r);0!==o&&((a=r.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule)}})(n);case 286:return(e=>Ne(e,4096,"__jsxAttributes"))(n);case 285:return((e,t,r)=>Ce(e,4,0))(n);case 265:case 268:case 270:case 275:return Ce(n,2097152,2097152);case 264:return(r=>{e.some(r.modifiers)&&t.bindDiagnostics.push(L(r,e.Diagnostics.Modifiers_cannot_appear_here));var n=e.isSourceFile(r.parent)?e.isExternalModule(r.parent)?r.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;n?t.bindDiagnostics.push(L(r,n)):(t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),z(t.symbol.globalExports,t.symbol,r,2097152,2097152))})(n);case 267:return(e=>{e.name&&Ce(e,2097152,2097152)})(n);case 272:return(t=>{s.symbol&&s.symbol.exports?t.exportClause?e.isNamespaceExport(t.exportClause)&&(e.setParent(t.exportClause,t),z(s.symbol.exports,s.symbol,t.exportClause,2097152,2097152)):z(s.symbol.exports,s.symbol,t,8388608,0):Ne(t,8388608,j(t))})(n);case 271:return(t=>{if(s.symbol&&s.symbol.exports){var r=e.exportAssignmentIsAlias(t)?2097152:4,n=z(s.symbol.exports,s.symbol,t,r,67108863);t.isExportEquals&&e.setValueDeclaration(n,t)}else Ne(t,111551,j(t))})(n);case 305:return Le(n.statements),(()=>{if(Ae(t),e.isExternalModule(t))Ue();else if(e.isJsonSourceFile(t)){Ue();var r=t.symbol;z(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=r}})();case 235:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(n.parent))return;case 262:return Le(n.statements);case 340:if(323===n.parent.kind)return tt(n);if(322!==n.parent.kind)break;case 347:var f=n;return Ce(f,f.isBracketed||f.typeExpression&&316===f.typeExpression.type.kind?16777220:4,0);case 345:case 338:case 339:return(g||(g=[])).push(n)}}function Ue(){Ne(t,512,'"'.concat(e.removeFileExtension(t.fileName),'"'))}function je(e){return!(t.externalModuleIndicator&&!0!==t.externalModuleIndicator||(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,t.externalModuleIndicator||Ue()),0))}function Ve(t){if(je(t)){var r=Ze(t.left.expression,void 0,((e,t)=>(t&&U(t,e,67110400),t)));if(r){var n=e.isAliasableExpression(t.right)&&(e.isExportsIdentifier(t.left.expression)||e.isModuleExportsAccessExpression(t.left.expression))?2097152:1048580;e.setParent(t.left,t),z(r.exports,r,t.left,n,0)}}}function ze(e){z(t.symbol.exports,t.symbol,e,69206016,0)}function He(t){if(e.Debug.assert(e.isInJSFile(t)),!(e.isBinaryExpression(t)&&e.isPropertyAccessExpression(t.left)&&e.isPrivateIdentifier(t.left.name)||e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name))){var r=e.getThisContainer(t,!1);switch(r.kind){case 256:case 213:var n=r.symbol;if(e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind){var i=r.parent.left;e.isBindableStaticAccessExpression(i)&&e.isPrototypeAccess(i.expression)&&(n=Qe(i.expression.expression,u))}n&&n.valueDeclaration&&(n.members=n.members||e.createSymbolTable(),e.hasDynamicName(t)?We(t,n,n.members):z(n.members,n,t,67108868,0),U(n,n.valueDeclaration,32));break;case 171:case 167:case 169:case 172:case 173:case 170:var a=r.parent,o=e.isStatic(r)?a.symbol.exports:a.symbol.members;e.hasDynamicName(t)?We(t,a.symbol,o):z(o,a.symbol,t,67108868,0,!0);break;case 305:if(e.hasDynamicName(t))break;r.commonJsModuleIndicator?z(r.symbol.exports,r.symbol,t,1048580,0):Ce(t,1,111550);break;default:e.Debug.failBadSyntaxKind(r)}}}function We(e,t,r){z(r,t,e,4,0,!0,!0),Ke(e,t)}function Ke(t,r){r&&(r.assignmentDeclarationMembers||(r.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(t),t)}function Je(t,r){var n=t.expression,i=n.expression;e.setParent(i,n),e.setParent(n,t),e.setParent(t,r),Ye(i,t,!0,!0)}function Ge(t){e.Debug.assert(!e.isIdentifier(t)),e.setParent(t.expression,t),Ye(t.expression,t,!1,!1)}function $e(r,n,i,a,o){if(2097152&(null==r?void 0:r.flags))return r;if(i&&!a){var s=67110400;r=Ze(n,r,((r,n,i)=>n?(U(n,r,s),n):z(i?i.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=e.createSymbolTable()),i,r,s,110735)))}return o&&r&&r.valueDeclaration&&U(r,r.valueDeclaration,32),r}function qe(t,r,n){if(r&&(t=>{if(1072&t.flags)return!0;var r=t.valueDeclaration;if(r&&e.isCallExpression(r))return!!e.getAssignedExpandoInitializer(r);var n=r?e.isVariableDeclaration(r)?r.initializer:e.isBinaryExpression(r)?r.right:e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)?r.parent.right:void 0:void 0;if(n=n&&e.getRightMostAssignedExpression(n)){var i=e.isPrototypeAccess(e.isVariableDeclaration(r)?r.name:e.isBinaryExpression(r)?r.left:r);return!!e.getExpandoInitializer(!e.isBinaryExpression(n)||56!==n.operatorToken.kind&&60!==n.operatorToken.kind?n:n.right,i)}return!1})(r)){var i=n?r.members||(r.members=e.createSymbolTable()):r.exports||(r.exports=e.createSymbolTable()),a=0,o=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(t))?(a=8192,o=103359):e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&(e.some(t.arguments[2].properties,(t=>{var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"set"===e.idText(r)}))&&(a|=65540,o|=78783),e.some(t.arguments[2].properties,(t=>{var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"get"===e.idText(r)}))&&(a|=32772,o|=46015)),0===a&&(a=4,o=0),z(i,r,t,67108864|a,-67108865&o)}}function Xe(t){return e.isBinaryExpression(t.parent)?305===(t=>{for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent})(t.parent).parent.kind:305===t.parent.parent.kind}function Ye(e,t,r,n){var i=Qe(e,s)||Qe(e,p),a=Xe(t);qe(t,i=$e(i,t.expression,a,r,n),r)}function Qe(t,r){if(void 0===r&&(r=s),e.isIdentifier(t))return d(r,t.escapedText);var n=Qe(t.expression);return n&&n.exports&&n.exports.get(e.getElementOrPropertyAccessName(t))}function Ze(r,n,i){if(l(t,r))return t.symbol;if(e.isIdentifier(r))return i(r,Qe(r),n);var a=Ze(r.expression,n,i),o=e.getNameOrArgument(r);return e.isPrivateIdentifier(o)&&e.Debug.fail("unexpected PrivateIdentifier"),i(o,a&&a.exports&&a.exports.get(e.getElementOrPropertyAccessName(r)),a)}function et(t){if(N&&Fe(t,t.name),!e.isBindingPattern(t.name)){var r=254===t.kind?t:t.parent.parent;!e.isInJSFile(t)||!e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)||e.getJSDocTypeTag(t)||1&e.getCombinedModifierFlags(t)?e.isBlockOrCatchScoped(t)?we(t,2,111551):e.isParameterDeclaration(t)?Ce(t,1,111551):Ce(t,1,111550):Ce(t,2097152,2097152)}}function tt(t){if((340!==t.kind||323===s.kind)&&(!N||16777216&t.flags||Fe(t,t.name),e.isBindingPattern(t.name)?Ne(t,1,"__"+t.parent.parameters.indexOf(t)):Ce(t,1,111551),e.isParameterPropertyDeclaration(t,t.parent))){var r=t.parent.parent;z(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}function rt(r,n,i){return t.isDeclarationFile||16777216&r.flags||!e.isAsyncFunction(r)||(k|=2048),y&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(r)&&(r.flowNode=y),e.hasDynamicName(r)?Ne(r,n,"__computed"):Ce(r,n,i)}})();function c(t){return!(e.isFunctionDeclaration(t)||(t=>{switch(t.kind){case 258:case 259:return!0;case 261:return 1!==n(t);case 260:return e.hasSyntacticModifier(t,2048);default:return!1}})(t)||e.isEnumDeclaration(t)||e.isVariableStatement(t)&&!(3&e.getCombinedNodeFlags(t))&&t.declarationList.declarations.some((e=>!e.initializer)))}function l(t,r){var n=0,i=e.createQueue();for(i.enqueue(r);!i.isEmpty()&&n<100;){if(n++,r=i.dequeue(),e.isExportsIdentifier(r)||e.isModuleExportsAccessExpression(r))return!0;if(e.isIdentifier(r)){var a=d(t,r.escapedText);if(a&&a.valueDeclaration&&e.isVariableDeclaration(a.valueDeclaration)&&a.valueDeclaration.initializer){var o=a.valueDeclaration.initializer;i.enqueue(o),e.isAssignmentExpression(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function d(t,r){var n=t.locals&&t.locals.get(r);return n?n.exportSymbol||n:e.isSourceFile(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(r)?t.jsGlobalAugmentations.get(r):t.symbol&&t.symbol.exports&&t.symbol.exports.get(r)}e.bindSourceFile=(t,r)=>{e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+t.fileName),s(t,r),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=l})(p),(e=>{e.createGetSymbolWalker=(t,r,n,i,a,o,s,c,l,d)=>u=>{void 0===u&&(u=()=>!0);var p=[],_=[];return{walkType(t){try{return f(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(_)}}finally{e.clear(p),e.clear(_)}},walkSymbol(t){try{return h(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(_)}}finally{e.clear(p),e.clear(_)}}};function f(t){if(t&&!p[t.id]&&(p[t.id]=t,!h(t.symbol))){if(524288&t.flags){var r=t,n=r.objectFlags;4&n&&(t=>{f(t.target),e.forEach(d(t),f)})(t),32&n&&(e=>{f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)})(t),3&n&&(g(a=t),e.forEach(a.typeParameters,f),e.forEach(i(a),f),f(a.thisType)),24&n&&g(r)}var a;262144&t.flags&&(e=>{f(c(e))})(t),3145728&t.flags&&(t=>{e.forEach(t.types,f)})(t),4194304&t.flags&&(e=>{f(e.type)})(t),8388608&t.flags&&(e=>{f(e.objectType),f(e.indexType),f(e.constraint)})(t)}}function m(i){var a=r(i);a&&f(a.type),e.forEach(i.typeParameters,f);for(var o=0,s=i.parameters;o<s.length;o++)h(s[o]);f(t(i)),f(n(i))}function g(e){for(var t=a(e),r=0,n=t.indexInfos;r<n.length;r++){var i=n[r];f(i.keyType),f(i.type)}for(var o=0,s=t.callSignatures;o<s.length;o++)m(s[o]);for(var c=0,l=t.constructSignatures;c<l.length;c++)m(l[c]);for(var d=0,u=t.properties;d<u.length;d++)h(u[d])}function h(t){if(!t)return!1;var r=e.getSymbolId(t);return!_[r]&&(_[r]=t,!u(t)||(f(o(t)),t.exports&&t.exports.forEach(h),e.forEach(t.declarations,(e=>{if(e.type&&181===e.type.kind){var t=e.type;h(s(l(t.exprName)))}})),!1))}}})(p),function(e){var t,r,n,i,a=/^".+"$/,o="(anonymous)",s=1,c=1,l=1,d=1;!(e=>{e[e.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",e[e.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",e[e.AllowsStringInputFlag=4]="AllowsStringInputFlag",e[e.ForOfFlag=8]="ForOfFlag",e[e.YieldStarFlag=16]="YieldStarFlag",e[e.SpreadFlag=32]="SpreadFlag",e[e.DestructuringFlag=64]="DestructuringFlag",e[e.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",e[e.Element=1]="Element",e[e.Spread=33]="Spread",e[e.Destructuring=65]="Destructuring",e[e.ForOf=13]="ForOf",e[e.ForAwaitOf=15]="ForAwaitOf",e[e.YieldStar=17]="YieldStar",e[e.AsyncYieldStar=19]="AsyncYieldStar",e[e.GeneratorReturnType=1]="GeneratorReturnType",e[e.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"})(t||(t={})),(e=>{e[e.Yield=0]="Yield",e[e.Return=1]="Return",e[e.Next=2]="Next"})(r||(r={})),(e=>{e[e.Normal=0]="Normal",e[e.FunctionReturn=1]="FunctionReturn",e[e.GeneratorNext=2]="GeneratorNext",e[e.GeneratorYield=3]="GeneratorYield"})(n||(n={})),(i=e.TypeFacts||(e.TypeFacts={}))[i.None=0]="None",i[i.TypeofEQString=1]="TypeofEQString",i[i.TypeofEQNumber=2]="TypeofEQNumber",i[i.TypeofEQBigInt=4]="TypeofEQBigInt",i[i.TypeofEQBoolean=8]="TypeofEQBoolean",i[i.TypeofEQSymbol=16]="TypeofEQSymbol",i[i.TypeofEQObject=32]="TypeofEQObject",i[i.TypeofEQFunction=64]="TypeofEQFunction",i[i.TypeofEQHostObject=128]="TypeofEQHostObject",i[i.TypeofNEString=256]="TypeofNEString",i[i.TypeofNENumber=512]="TypeofNENumber",i[i.TypeofNEBigInt=1024]="TypeofNEBigInt",i[i.TypeofNEBoolean=2048]="TypeofNEBoolean",i[i.TypeofNESymbol=4096]="TypeofNESymbol",i[i.TypeofNEObject=8192]="TypeofNEObject",i[i.TypeofNEFunction=16384]="TypeofNEFunction",i[i.TypeofNEHostObject=32768]="TypeofNEHostObject",i[i.EQUndefined=65536]="EQUndefined",i[i.EQNull=131072]="EQNull",i[i.EQUndefinedOrNull=262144]="EQUndefinedOrNull",i[i.NEUndefined=524288]="NEUndefined",i[i.NENull=1048576]="NENull",i[i.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",i[i.Truthy=4194304]="Truthy",i[i.Falsy=8388608]="Falsy",i[i.IsUndefined=16777216]="IsUndefined",i[i.IsNull=33554432]="IsNull",i[i.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",i[i.All=134217727]="All",i[i.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",i[i.BaseStringFacts=12582401]="BaseStringFacts",i[i.StringStrictFacts=16317953]="StringStrictFacts",i[i.StringFacts=16776705]="StringFacts",i[i.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",i[i.EmptyStringFacts=12582401]="EmptyStringFacts",i[i.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",i[i.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",i[i.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",i[i.BaseNumberFacts=12582146]="BaseNumberFacts",i[i.NumberStrictFacts=16317698]="NumberStrictFacts",i[i.NumberFacts=16776450]="NumberFacts",i[i.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",i[i.ZeroNumberFacts=12582146]="ZeroNumberFacts",i[i.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",i[i.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",i[i.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",i[i.BaseBigIntFacts=12581636]="BaseBigIntFacts",i[i.BigIntStrictFacts=16317188]="BigIntStrictFacts",i[i.BigIntFacts=16775940]="BigIntFacts",i[i.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",i[i.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",i[i.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",i[i.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",i[i.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",i[i.BaseBooleanFacts=12580616]="BaseBooleanFacts",i[i.BooleanStrictFacts=16316168]="BooleanStrictFacts",i[i.BooleanFacts=16774920]="BooleanFacts",i[i.FalseStrictFacts=12121864]="FalseStrictFacts",i[i.FalseFacts=12580616]="FalseFacts",i[i.TrueStrictFacts=7927560]="TrueStrictFacts",i[i.TrueFacts=16774920]="TrueFacts",i[i.SymbolStrictFacts=7925520]="SymbolStrictFacts",i[i.SymbolFacts=16772880]="SymbolFacts",i[i.ObjectStrictFacts=7888800]="ObjectStrictFacts",i[i.ObjectFacts=16736160]="ObjectFacts",i[i.FunctionStrictFacts=7880640]="FunctionStrictFacts",i[i.FunctionFacts=16728e3]="FunctionFacts",i[i.VoidFacts=9830144]="VoidFacts",i[i.UndefinedFacts=26607360]="UndefinedFacts",i[i.NullFacts=42917664]="NullFacts",i[i.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",i[i.EmptyObjectFacts=83886079]="EmptyObjectFacts",i[i.UnknownFacts=83886079]="UnknownFacts",i[i.AllTypeofNE=556800]="AllTypeofNE",i[i.OrFactsMask=8256]="OrFactsMask",i[i.AndFactsMask=134209471]="AndFactsMask";var u,p,_,g,y,v,b,E,x,D=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384}));!(e=>{e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",e[e.EnumTagType=5]="EnumTagType",e[e.ResolvedTypeArguments=6]="ResolvedTypeArguments",e[e.ResolvedBaseTypes=7]="ResolvedBaseTypes",e[e.WriteType=8]="WriteType"})(u||(u={})),(x=e.CheckMode||(e.CheckMode={}))[x.Normal=0]="Normal",x[x.Contextual=1]="Contextual",x[x.Inferential=2]="Inferential",x[x.SkipContextSensitive=4]="SkipContextSensitive",x[x.SkipGenericFunctions=8]="SkipGenericFunctions",x[x.IsForSignatureHelp=16]="IsForSignatureHelp",x[x.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",x[x.RestBindingElement=64]="RestBindingElement",(E=e.SignatureCheckMode||(e.SignatureCheckMode={}))[E.BivariantCallback=1]="BivariantCallback",E[E.StrictCallback=2]="StrictCallback",E[E.IgnoreReturnTypes=4]="IgnoreReturnTypes",E[E.StrictArity=8]="StrictArity",E[E.Callback=3]="Callback",(e=>{e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.PropertyCheck=4]="PropertyCheck",e[e.InPropertyCheck=8]="InPropertyCheck"})(p||(p={})),(e=>{e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"})(_||(_={})),(e=>{e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"})(g||(g={})),(e=>{e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"})(y||(y={})),(e=>{e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"})(v||(v={})),(e=>{e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"})(b||(b={}));var S,T,C,A,k=e.and(R,(t=>!e.isAccessor(t)));!(e=>{e[e.GetAccessor=1]="GetAccessor",e[e.SetAccessor=2]="SetAccessor",e[e.PropertyAssignment=4]="PropertyAssignment",e[e.Method=8]="Method",e[e.PrivateStatic=16]="PrivateStatic",e[e.GetOrSetAccessor=3]="GetOrSetAccessor",e[e.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"})(S||(S={})),(e=>{e[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace"})(T||(T={})),(e=>{e[e.None=0]="None",e[e.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",e[e.VoidIsNonOptional=2]="VoidIsNonOptional"})(C||(C={})),(e=>{e[e.Uppercase=0]="Uppercase",e[e.Lowercase=1]="Lowercase",e[e.Capitalize=2]="Capitalize",e[e.Uncapitalize=3]="Uncapitalize"})(A||(A={}));var N,w=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function F(){}function P(){this.flags=0}function I(e){return e.id||(e.id=c,c++),e.id}function O(e){return e.id||(e.id=s,s++),e.id}function M(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function R(e){return 256!==e.kind&&169!==e.kind||!!e.body}function L(t){switch(t.parent.kind){case 270:case 275:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}function B(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function U(e){return!!(1&e.flags)}function j(e){return!!(2&e.flags)}e.getNodeId=I,e.getSymbolId=O,e.isInstantiatedModule=M,e.createTypeChecker=function(t){var r,n,i,s,c,u=e.memoize((()=>{var r=new e.Map;return t.getSourceFiles().forEach((e=>{e.resolvedModules&&e.resolvedModules.forEach((e=>{e&&e.packageId&&r.set(e.packageId.name,".d.ts"===e.extension||!!r.get(e.packageId.name))}))})),r})),p=[],_=e=>{p.push(e)},g=e.objectAllocator.getSymbolConstructor(),y=e.objectAllocator.getTypeConstructor(),v=e.objectAllocator.getSignatureConstructor(),b=0,E=0,x=0,S=0,T=0,C=0,A=0,V=e.createSymbolTable(),z=[1],H=t.getCompilerOptions(),W=e.getEmitScriptTarget(H),K=e.getEmitModuleKind(H),J=e.getUseDefineForClassFields(H),G=e.getAllowSyntheticDefaultImports(H),$=e.getStrictOptionValue(H,"strictNullChecks"),q=e.getStrictOptionValue(H,"strictFunctionTypes"),X=e.getStrictOptionValue(H,"strictBindCallApply"),Y=e.getStrictOptionValue(H,"strictPropertyInitialization"),Q=e.getStrictOptionValue(H,"noImplicitAny"),Z=e.getStrictOptionValue(H,"noImplicitThis"),ee=e.getStrictOptionValue(H,"useUnknownInCatchVariables"),te=!!H.keyofStringsOnly,re=H.suppressExcessPropertyErrors?0:8192,ne=H.exactOptionalPropertyTypes,ie=(()=>{var t=e.createBinaryExpressionTrampoline(((t,r,i)=>(r?(r.stackIndex++,r.skip=!1,n(r,void 0),a(r,void 0)):r={checkMode:i,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(t)&&e.getAssignedExpandoInitializer(t)?(r.skip=!0,a(r,HE(t.right,i)),r):((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||zT(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||zT(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(n.kind)))})(t),63!==t.operatorToken.kind||205!==t.left.kind&&204!==t.left.kind||(r.skip=!0,a(r,hE(t.left,HE(t.right,i),i,108===t.right.kind))),r))),((e,t,n)=>{if(!t.skip)return r(t,e)}),((t,r,o)=>{if(!r.skip){var s=i(r);e.Debug.assertIsDefined(s),n(r,s),a(r,void 0);var c=t.kind;if(55===c||56===c||60===c){if(55===c){for(var l=o.parent;212===l.kind||e.isBinaryExpression(l)&&(55===l.operatorToken.kind||56===l.operatorToken.kind);)l=l.parent;eD(o.left,e.isIfStatement(l)?l.thenStatement:void 0)}tD(s,o.left)}}}),((e,t,n)=>{if(!t.skip)return r(t,e)}),((t,r)=>{var o;if(r.skip)o=i(r);else{var s=(e=>e.typeStack[e.stackIndex])(r);e.Debug.assertIsDefined(s);var c=i(r);e.Debug.assertIsDefined(c),o=bE(t.left,t.operatorToken,t.right,s,c,t)}return r.skip=!1,n(r,void 0),a(r,void 0),r.stackIndex--,o}),((e,t,r)=>(a(e,t),e)));return(r,n)=>{var i=t(r,n);return e.Debug.assertIsDefined(i),i};function r(t,r){if(e.isBinaryExpression(r))return r;a(t,HE(r,t.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function i(e){return e.typeStack[e.stackIndex+1]}function a(e,t){e.typeStack[e.stackIndex+1]=t}})(),ae=(()=>{var r,n=t.getResolvedTypeReferenceDirectives();return n&&(r=new e.Map,n.forEach(((e,r,n)=>{if(e&&e.resolvedFileName){var i=t.getSourceFile(e.resolvedFileName);i&&a(i,r,n)}}))),{getReferencedExportContainer:RS,getReferencedImportDeclaration:LS,getReferencedDeclarationWithCollidingName:US,isDeclarationWithCollidingName:jS,isValueAliasDeclaration(t){var r=e.getParseTreeNode(t);return!r||VS(r)},hasGlobalName:oT,isReferencedAliasDeclaration(t,r){var n=e.getParseTreeNode(t);return!n||KS(n,r)},getNodeCheckFlags(t){var r=e.getParseTreeNode(t);return r?YS(r):0},isTopLevelValueImportEqualsWithEntityName:zS,isDeclarationVisible:_o,isImplementationOfOverload:JS,isRequiredInitializedParameter:GS,isOptionalUninitializedParameterProperty:$S,isExpandoFunctionDeclaration:qS,getPropertiesOfContainerFunction:XS,createTypeOfDeclaration:nT,createReturnTypeOfSignatureDeclaration:iT,createTypeOfExpression:aT,createLiteralConstValue:dT,isSymbolAccessible:Ka,isEntityNameVisible:Ya,getConstantValue(t){var r=e.getParseTreeNode(t,ZS);return r?eT(r):void 0},collectLinkedAliases:fo,getReferencedValueDeclaration:cT,getTypeReferenceSerializationKind:rT,isOptionalParameter:Sl,moduleExportsSomeValue:MS,isArgumentsLocalBinding:OS,getExternalModuleFileFromDeclaration(t){var r=e.getParseTreeNode(t,e.hasPossibleExternalModuleReference);return r&&_T(r)},getTypeReferenceDirectivesForEntityName(e){if(r){var t;162===e.parent.kind?t=1160127:(t=790504,(79===e.kind&&ag(e)||206===e.kind&&!(e=>e.parent&&228===e.parent.kind&&e.parent.parent&&291===e.parent.parent.kind)(e))&&(t=1160127));var n=ea(e,t,!0);return n&&n!==Pe?i(n,t):void 0}},getTypeReferenceDirectivesForSymbol:i,isLiteralConstDeclaration:lT,isLateBound(t){var r=e.getParseTreeNode(t,e.isDeclaration),n=r&&ya(r);return!!(n&&4096&e.getCheckFlags(n))},getJsxFactoryEntity:uT,getJsxFragmentFactoryEntity:pT,getAllAccessorDeclarations(t){var r=173===(t=e.getParseTreeNode(t,e.isGetOrSetAccessorDeclaration)).kind?172:173,n=e.getDeclarationOfKind(ya(t),r);return{firstAccessor:n&&n.pos<t.pos?n:t,secondAccessor:n&&n.pos<t.pos?t:n,setAccessor:173===t.kind?t:n,getAccessor:172===t.kind?t:n}},getSymbolOfExternalModuleSpecifier:e=>na(e,e,void 0),isBindingCapturedByNode(t,r){var n=e.getParseTreeNode(t),i=e.getParseTreeNode(r);return!!n&&!!i&&(e.isVariableDeclaration(i)||e.isBindingElement(i))&&((t,r)=>{var n=li(t);return!!n&&e.contains(n.capturedBlockScopeBindings,ya(r))})(n,i)},getDeclarationStatementsForSourceFile(t,r,n,i){var a=e.getParseTreeNode(t);e.Debug.assert(a&&305===a.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");var o=ya(t);return o?o.exports?oe.symbolTableToDeclarationStatements(o.exports,t,r,n,i):[]:t.locals?oe.symbolTableToDeclarationStatements(t.locals,t,r,n,i):[]},isImportRequiredByAugmentation(t){var r=e.getSourceFileOfNode(t);if(!r.symbol)return!1;var n=_T(t);if(!n)return!1;if(n===r)return!1;for(var i=fa(r.symbol),a=0,o=e.arrayFrom(i.values());a<o.length;a++){var s=o[a];if(s.mergeId){var c=ha(s);if(c.declarations)for(var l=0,d=c.declarations;l<d.length;l++){var u=d[l];if(e.getSourceFileOfNode(u)===n)return!0}}}return!1}};function i(t,n){if(r&&(t=>{if(!t.declarations)return!1;for(var n=t;;){var i=va(n);if(!i)break;n=i}if(n.valueDeclaration&&305===n.valueDeclaration.kind&&512&n.flags)return!1;for(var a=0,o=t.declarations;a<o.length;a++){var s=o[a],c=e.getSourceFileOfNode(s);if(r.has(c.path))return!0}return!1})(t)){for(var i,a=0,o=t.declarations;a<o.length;a++){var s=o[a];if(s.symbol&&s.symbol.flags&n){var c=e.getSourceFileOfNode(s),l=r.get(c.path);if(!l)return;(i||(i=[])).push(l)}}return i}}function a(n,i,o){if(!r.has(n.path)){r.set(n.path,[i,o]);for(var s=0,c=n.referencedFiles;s<c.length;s++){var l=c[s],d=l.fileName,u=l.resolutionMode,p=e.resolveTripleslashReference(d,n.fileName),_=t.getSourceFile(p);_&&a(_,i,u||n.impliedNodeFormat)}}}})(),oe=(()=>{return{typeToTypeNode:(e,t,r,i)=>n(t,r,i,(t=>s(e,t))),indexInfoToIndexSignatureDeclaration:(e,t,r,i)=>n(t,r,i,(t=>_(e,t,void 0))),signatureToSignatureDeclaration:(e,t,r,i,a)=>n(r,i,a,(r=>g(e,t,r))),symbolToEntityName:(e,t,r,i,a)=>n(r,i,a,(r=>F(e,r,t,!1))),symbolToExpression:(e,t,r,i,a)=>n(r,i,a,(r=>P(e,r,t))),symbolToTypeParameterDeclarations:(e,t,r,i)=>n(t,r,i,(t=>D(e,t))),symbolToParameterDeclaration:(e,t,r,i)=>n(t,r,i,(t=>v(e,t))),typeParameterToDeclaration:(e,t,r,i)=>n(t,r,i,(t=>y(e,t))),symbolTableToDeclarationStatements:(t,r,a,o,c)=>n(r,a,o,(r=>((t,r,n)=>{var a=X(e.factory.createPropertyDeclaration,169,!0),o=X(((t,r,n,i)=>e.factory.createPropertySignature(t,r,n,i)),168,!1),c=r.enclosingDeclaration,l=[],d=new e.Set,u=[],p=r;(r=m(m({},p),{usedSymbolNames:new e.Set(p.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:m(m({},p.tracker),{trackSymbol(e,t,n){if(0===Ka(e,t,n,!1).accessibility){var i=x(e,r,n);4&e.flags||N(i[0])}else if(p.tracker&&p.tracker.trackSymbol)return p.tracker.trackSymbol(e,t,n);return!1}})})).tracker=i(r,r.tracker),e.forEachEntry(t,((t,r)=>{ne(t,e.unescapeLeadingUnderscores(r))}));var h,v=!n,b=t.get("export=");return b&&t.size>1&&2097152&b.flags&&(t=e.createSymbolTable()).set("export=",b),A(t),h=(t=>{var r=e.findIndex(t,(t=>e.isExportDeclaration(t)&&!t.moduleSpecifier&&!t.assertClause&&!!t.exportClause&&e.isNamedExports(t.exportClause)));if(r>=0){var n=t[r],i=e.mapDefined(n.exportClause.elements,(r=>{if(!r.propertyName){var n=e.indicesOf(t),i=e.filter(n,(n=>e.nodeHasName(t[n],r.name)));if(e.length(i)&&e.every(i,(e=>D(t[e])))){for(var a=0,o=i;a<o.length;a++){var s=o[a];t[s]=S(t[s])}return}}return r}));e.length(i)?t[r]=e.factory.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,e.factory.updateNamedExports(n.exportClause,i),n.moduleSpecifier,n.assertClause):e.orderedRemoveItemAt(t,r)}return t})(h=(t=>{var r=e.filter(t,(t=>e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)));if(e.length(r)>1){var n=e.filter(t,(t=>!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause));t=f(f([],n,!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.flatMap(r,(t=>e.cast(t.exportClause,e.isNamedExports).elements))),void 0)],!1)}var i=e.filter(t,(t=>e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)));if(e.length(i)>1){var a=e.group(i,(t=>e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"));if(a.length!==i.length)for(var o=r=>{r.length>1&&(t=f(f([],e.filter(t,(e=>-1===r.indexOf(e))),!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.flatMap(r,(t=>e.cast(t.exportClause,e.isNamedExports).elements))),r[0].moduleSpecifier)],!1))},s=0,c=a;s<c.length;s++)o(c[s])}return t})(h=(t=>{var r=e.find(t,e.isExportAssignment),n=e.findIndex(t,e.isModuleDeclaration),i=-1!==n?t[n]:void 0;if(i&&r&&r.isExportEquals&&e.isIdentifier(r.expression)&&e.isIdentifier(i.name)&&e.idText(i.name)===e.idText(r.expression)&&i.body&&e.isModuleBlock(i.body)){var a=e.filter(t,(t=>!!(1&e.getEffectiveModifierFlags(t)))),o=i.name,s=i.body;if(e.length(a)&&(i=e.factory.updateModuleDeclaration(i,i.modifiers,i.name,s=e.factory.updateModuleBlock(s,e.factory.createNodeArray(f(f([],i.body.statements,!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(a,(t=>{return r=t,e.isVariableStatement(r)?e.filter(e.map(r.declarationList.declarations,e.getNameOfDeclaration),E):e.filter([e.getNameOfDeclaration(r)],E);var r})),(t=>e.factory.createExportSpecifier(!1,void 0,t)))),void 0)],!1)))),t=f(f(f([],t.slice(0,n),!0),[i],!1),t.slice(n+1),!0)),!e.find(t,(t=>t!==i&&e.nodeHasName(t,o)))){l=[];var c=!e.some(s.statements,(t=>e.hasSyntacticModifier(t,1)||e.isExportAssignment(t)||e.isExportDeclaration(t)));e.forEach(s.statements,(e=>{w(e,c?1:0)})),t=f(f([],e.filter(t,(e=>e!==i&&e!==r)),!0),l,!0)}}return t})(h=l))),c&&(e.isSourceFile(c)&&e.isExternalOrCommonJsModule(c)||e.isModuleDeclaration(c))&&(!e.some(h,e.isExternalModuleIndicator)||!e.hasScopeMarker(h)&&e.some(h,e.needsScopeMarker))&&h.push(e.createEmptyExports(e.factory)),h;function E(e){return!!e&&79===e.kind}function D(t){return e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t)&&!e.isExternalModuleAugmentation(t)&&!e.isGlobalScopeAugmentation(t)||e.isInterfaceDeclaration(t)||vS(t)}function S(t){var r=-3&(1|e.getEffectiveModifierFlags(t));return e.factory.updateModifiers(t,r)}function T(t){var r=-2&e.getEffectiveModifierFlags(t);return e.factory.updateModifiers(t,r)}function A(t,r,n){r||u.push(new e.Map),t.forEach((e=>{k(e,!1,!!n)})),r||(u[u.length-1].forEach((e=>{k(e,!0,!!n)})),u.pop())}function k(t,l,u){var _=ha(t);if(!d.has(O(_))&&(d.add(O(_)),!l||e.length(t.declarations)&&e.some(t.declarations,(t=>!!e.findAncestor(t,(e=>e===c)))))){var g=r;r=(t=>{var r=m({},t);return r.typeParameterNames&&(r.typeParameterNames=new e.Map(r.typeParameterNames)),r.typeParameterNamesByText&&(r.typeParameterNamesByText=new e.Set(r.typeParameterNamesByText)),r.typeParameterSymbolList&&(r.typeParameterSymbolList=new e.Set(r.typeParameterSymbolList)),r.tracker=i(r,r.tracker),r})(r),((t,i,l)=>{var d,u,p,_,m=e.unescapeLeadingUnderscores(t.escapedName),g="default"===t.escapedName;if(!i||131072&r.flags||!e.isStringANonContextualKeyword(m)||g){var h=g&&!!(-113&t.flags||16&t.flags&&e.length(Lc(cs(t))))&&!(2097152&t.flags),v=!h&&!i&&e.isStringANonContextualKeyword(m)&&!g;(h||v)&&(i=!0);var b=(i?0:1)|(g&&!h?512:0),E=1536&t.flags&&7&t.flags&&"export="!==t.escapedName,x=E&&q(cs(t),t);if((8208&t.flags||x)&&M(cs(t),t,ne(t,m),b),524288&t.flags&&((t,i,a)=>{var o,c=ks(t),l=ci(t).typeParameters,d=e.map(l,(e=>y(e,r))),u=null===(o=t.declarations)||void 0===o?void 0:o.find(e.isJSDocTypeAlias),p=e.getTextOfJSDocComment(u?u.comment||u.parent.comment:void 0),_=r.flags;r.flags|=8388608;var f=r.enclosingDeclaration;r.enclosingDeclaration=u;var m=u&&u.typeExpression&&e.isJSDocTypeExpression(u.typeExpression)&&z(r,u.typeExpression.type,N,n)||s(c,r);w(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,ne(t,i),d,m),p?[{kind:3,text:"*\n * "+p.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),a),r.flags=_,r.enclosingDeclaration=f})(t,m,b),7&t.flags&&"export="!==t.escapedName&&!(4194304&t.flags)&&!(32&t.flags)&&!x)if(l)$(t)&&(v=!1,h=!1);else{var D=cs(t),S=ne(t,m);if(16&t.flags||!q(D,t)){var T=2&t.flags?yh(t)?2:1:(null===(d=t.parent)||void 0===d?void 0:d.valueDeclaration)&&e.isSourceFile(null===(u=t.parent)||void 0===u?void 0:u.valueDeclaration)?2:void 0,A=!h&&4&t.flags?te(S,t):S,k=t.declarations&&e.find(t.declarations,(t=>e.isVariableDeclaration(t)));k&&e.isVariableDeclarationList(k.parent)&&1===k.parent.declarations.length&&(k=k.parent.parent);var F=null===(p=t.declarations)||void 0===p?void 0:p.find(e.isPropertyAccessExpression);if(F&&e.isBinaryExpression(F.parent)&&e.isIdentifier(F.parent.right)&&(null===(_=D.symbol)||void 0===_?void 0:_.valueDeclaration)&&e.isSourceFile(D.symbol.valueDeclaration)){var P=S===F.parent.right.escapedText?void 0:F.parent.right;w(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,P,S)])),0),r.tracker.trackSymbol(D.symbol,r.enclosingDeclaration,111551)}else w(e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(A,void 0,j(r,D,t,c,N,n))],T)),k),A!==S?-2&b:b),A===S||i||(w(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,A,S)])),0),v=!1,h=!1)}else M(D,t,S,b)}if(384&t.flags&&((t,r,n)=>{w(e.factory.createEnumDeclaration(e.factory.createModifiersFromModifierFlags(fE(t)?2048:0),ne(t,r),e.map(e.filter(Lc(cs(t)),(e=>!!(8&e.flags))),(t=>{var r=t.declarations&&t.declarations[0]&&e.isEnumMember(t.declarations[0])?eT(t.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(t.escapedName),void 0===r?void 0:"string"==typeof r?e.factory.createStringLiteral(r):e.factory.createNumericLiteral(r))}))),n)})(t,m,b),32&t.flags&&(4&t.flags&&t.valueDeclaration&&e.isBinaryExpression(t.valueDeclaration.parent)&&e.isClassExpression(t.valueDeclaration.parent.right)?J(t,ne(t,m),b):((t,i,o)=>{var c,l,d=null===(c=t.declarations)||void 0===c?void 0:c.find(e.isClassLike),u=r.enclosingDeclaration;r.enclosingDeclaration=d||u;var p=gs(t),_=e.map(p,(e=>y(e,r))),m=As(t),g=Ss(m),h=d&&e.getEffectiveImplementsTypeNodes(d),v=h&&(t=>{var i=e.mapDefined(t,(t=>{var i,a=r.enclosingDeclaration;r.enclosingDeclaration=t;var o=t.expression;if(e.isEntityNameExpression(o)){if(e.isIdentifier(o)&&""===e.idText(o))return l(void 0);var c;if(c=(i=V(o,r,N)).introducesError,o=i.node,c)return l(void 0)}return l(e.factory.createExpressionWithTypeArguments(o,e.map(t.typeArguments,(e=>z(r,e,N,n)||s(Up(e),r)))));function l(e){return r.enclosingDeclaration=a,e}}));if(i.length===t.length)return i})(h)||e.mapDefined((t=>{var r=e.emptyArray;if(t.symbol.declarations)for(var n=0,i=t.symbol.declarations;n<i.length;n++){var a=i[n],o=e.getEffectiveImplementsTypeNodes(a);if(o)for(var s=0,c=o;s<c.length;s++){var l=Up(c[s]);xo(l)||(r===e.emptyArray?r=[l]:r.push(l))}}return r})(m),ee),b=cs(t),E=!!(null===(l=b.symbol)||void 0===l?void 0:l.valueDeclaration)&&e.isClassLike(b.symbol.valueDeclaration),x=E?xs(b):Re,D=f(f([],e.length(g)?[e.factory.createHeritageClause(94,e.map(g,(t=>((t,n,i)=>{var a=Z(t,111551);if(a)return a;var o=te("".concat(i,"_base"));return w(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(o,void 0,s(n,r))],2)),0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(o),void 0)})(t,x,i))))]:[],!0),e.length(v)?[e.factory.createHeritageClause(117,v)]:[],!0),S=((t,r,n)=>{if(!e.length(r))return n;var i=new e.Map;e.forEach(n,(e=>{i.set(e.escapedName,e)}));for(var a=0,o=r;a<o.length;a++)for(var s=0,c=Lc(rc(o[a],t.thisType));s<c.length;s++){var l=c[s],d=i.get(l.escapedName);d&&l.parent===d.parent&&i.delete(l.escapedName)}return e.arrayFrom(i.values())})(m,g,Lc(m)),T=e.filter(S,(t=>{var r=t.valueDeclaration;return!(!r||e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name))})),C=e.some(S,(t=>{var r=t.valueDeclaration;return!!r&&e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name)}))?[e.factory.createPropertyDeclaration(void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,A=e.flatMap(T,(e=>a(e,!1,g[0]))),k=e.flatMap(e.filter(Lc(b),(e=>!(4194304&e.flags||"prototype"===e.escapedName||K(e)))),(e=>a(e,!0,x))),F=!E&&t.valueDeclaration&&e.isInJSFile(t.valueDeclaration)&&!e.some(ll(b,1))?[e.factory.createConstructorDeclaration(e.factory.createModifiersFromModifierFlags(8),[],void 0)]:Y(1,b,x,171),P=Q(m,g[0]);r.enclosingDeclaration=u,w(e.setTextRange(e.factory.createClassDeclaration(void 0,i,_,D,f(f(f(f(f([],P,!0),k,!0),F,!0),A,!0),C,!0)),t.declarations&&e.filter(t.declarations,(t=>e.isClassDeclaration(t)||e.isClassExpression(t)))[0]),o)})(t,ne(t,m),b)),(1536&t.flags&&(!E||(t=>e.every(I(t),(e=>!(111551&Ki(e).flags))))(t))||x)&&((t,n,i)=>{var a=I(t),o=e.arrayToMultiMap(a,(e=>e.parent&&e.parent===t?"real":"merged")),s=o.get("real")||e.emptyArray,c=o.get("merged")||e.emptyArray;if(e.length(s)&&U(s,d=ne(t,n),i,!!(67108880&t.flags)),e.length(c)){var l=e.getSourceFileOfNode(r.enclosingDeclaration),d=ne(t,n),u=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(c,(e=>"export="!==e.escapedName)),(n=>{var i,a,o=e.unescapeLeadingUnderscores(n.escapedName),s=ne(n,o),c=n.declarations&&Ai(n);if(!l||(c?l===e.getSourceFileOfNode(c):e.some(n.declarations,(t=>e.getSourceFileOfNode(t)===l)))){var d=c&&Hi(c,!0);N(d||n);var u=d?ne(d,e.unescapeLeadingUnderscores(d.escapedName)):s;return e.factory.createExportSpecifier(!1,o===u?void 0:u,o)}null===(a=null===(i=r.tracker)||void 0===i?void 0:i.reportNonlocalAugmentation)||void 0===a||a.call(i,l,t,n)}))))]);w(e.factory.createModuleDeclaration(void 0,e.factory.createIdentifier(d),u,16),0)}})(t,m,b),64&t.flags&&!(32&t.flags)&&((t,n,i)=>{var a=As(t),s=gs(t),c=e.map(s,(e=>y(e,r))),l=Ss(a),d=e.length(l)?xu(l):void 0,u=e.flatMap(Lc(a),(e=>((e,t)=>o(e,!1,t))(e,d))),p=Y(0,a,d,174),_=Y(1,a,d,175),m=Q(a,d),g=e.length(l)?[e.factory.createHeritageClause(94,e.mapDefined(l,(e=>Z(e,111551))))]:void 0;w(e.factory.createInterfaceDeclaration(void 0,ne(t,n),c,g,f(f(f(f([],m,!0),_,!0),p,!0),u,!0)),i)})(t,m,b),2097152&t.flags&&J(t,ne(t,m),b),4&t.flags&&"export="===t.escapedName&&$(t),8388608&t.flags&&t.declarations)for(var O=0,R=t.declarations;O<R.length;O++){var L=R[O],B=ra(L,L.moduleSpecifier);B&&w(e.factory.createExportDeclaration(void 0,!1,void 0,e.factory.createStringLiteral(C(B,r))),0)}h?w(e.factory.createExportAssignment(void 0,!1,e.factory.createIdentifier(ne(t,m))),0):v&&w(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,ne(t,m),m)])),0)}else r.encounteredError=!0})(t,l,u),r.reportedDiagnostic&&(p.reportedDiagnostic=r.reportedDiagnostic),r=g}}function N(t){if(!e.some(t.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(u[u.length-1]),te(e.unescapeLeadingUnderscores(t.escapedName),t);var r=!!(2097152&t.flags)&&!e.some(t.declarations,(t=>!!e.findAncestor(t,e.isExportDeclaration)||e.isNamespaceExport(t)||e.isImportEqualsDeclaration(t)&&!e.isExternalModuleReference(t.moduleReference)));u[r?0:u.length-1].set(O(t),t)}}function w(t,n){if(e.canHaveModifiers(t)){var i=0,a=r.enclosingDeclaration&&(e.isJSDocTypeAlias(r.enclosingDeclaration)?e.getSourceFileOfNode(r.enclosingDeclaration):r.enclosingDeclaration);1&n&&a&&((t=>e.isSourceFile(t)&&(e.isExternalOrCommonJsModule(t)||e.isJsonSourceFile(t))||e.isAmbientModule(t)&&!e.isGlobalScopeAugmentation(t))(a)||e.isModuleDeclaration(a))&&D(t)&&(i|=1),!v||1&i||a&&16777216&a.flags||!(e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t))||(i|=2),512&n&&(e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionDeclaration(t))&&(i|=512),i&&(t=e.factory.updateModifiers(t,i|e.getEffectiveModifierFlags(t)))}l.push(t)}function I(t){return t.exports?e.filter(e.arrayFrom(t.exports.values()),K):[]}function M(t,i,a,o){for(var s=0,c=ll(t,0);s<c.length;s++){var l=c[s],d=g(l,256,r,{name:e.factory.createIdentifier(a),privateSymbolVisitor:N,bundledImports:n});w(e.setTextRange(d,R(l)),o)}1536&i.flags&&i.exports&&i.exports.size||U(e.filter(Lc(t),K),a,o,!0)}function R(t){if(t.declaration&&t.declaration.parent){if(e.isBinaryExpression(t.declaration.parent)&&5===e.getAssignmentDeclarationKind(t.declaration.parent))return t.declaration.parent;if(e.isVariableDeclaration(t.declaration.parent)&&t.declaration.parent.parent)return t.declaration.parent.parent}return t.declaration}function U(t,n,i,a){if(e.length(t)){var o=e.arrayToMultiMap(t,(t=>!e.length(t.declarations)||e.some(t.declarations,(t=>e.getSourceFileOfNode(t)===e.getSourceFileOfNode(r.enclosingDeclaration)))?"local":"remote")).get("local")||e.emptyArray,s=e.parseNodeFactory.createModuleDeclaration(void 0,e.factory.createIdentifier(n),e.factory.createModuleBlock([]),16);e.setParent(s,c),s.locals=e.createSymbolTable(t),s.symbol=t[0].parent;var d=l;l=[];var u=v;v=!1;var p=m(m({},r),{enclosingDeclaration:s}),_=r;r=p,A(e.createSymbolTable(o),a,!0),r=_,v=u;var f=l;l=d;var g=e.map(f,(t=>e.isExportAssignment(t)&&!t.isExportEquals&&e.isIdentifier(t.expression)?e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,t.expression,e.factory.createIdentifier("default"))])):t)),h=e.every(g,(t=>e.hasSyntacticModifier(t,1)))?e.map(g,T):g;w(s=e.factory.updateModuleDeclaration(s,s.modifiers,s.name,e.factory.createModuleBlock(h)),i)}}function K(t){return!!(2887656&t.flags)||!(4194304&t.flags||"prototype"===t.escapedName||t.valueDeclaration&&e.isStatic(t.valueDeclaration)&&e.isClassLike(t.valueDeclaration.parent))}function J(t,n,i){var a,o,s,c,l,d=Ai(t);if(!d)return e.Debug.fail();var u,p=ha(Hi(d,!0));if(p){var _=e.isShorthandAmbientModuleSymbol(p)&&(u=t.declarations,e.firstDefined(u,(t=>{if(e.isImportSpecifier(t)||e.isExportSpecifier(t))return e.idText(t.propertyName||t.name);if(e.isBinaryExpression(t)||e.isExportAssignment(t)){var r=e.isExportAssignment(t)?t.expression:t.right;if(e.isPropertyAccessExpression(r))return e.idText(r.name)}if(ki(t)){var n=e.getNameOfDeclaration(t);if(n&&e.isIdentifier(n))return e.idText(n)}})))||e.unescapeLeadingUnderscores(p.escapedName);"export="===_&&(e.getESModuleInterop(H)||H.allowSyntheticDefaultImports)&&(_="default");var f=ne(p,_);switch(N(p),d.kind){case 203:if(254===(null===(o=null===(a=d.parent)||void 0===a?void 0:a.parent)||void 0===o?void 0:o.kind)){var m=C(p.parent||p,r),g=d.propertyName;w(e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,g&&e.isIdentifier(g)?e.factory.createIdentifier(e.idText(g)):void 0,e.factory.createIdentifier(n))])),e.factory.createStringLiteral(m),void 0),0);break}e.Debug.failBadSyntaxKind((null===(s=d.parent)||void 0===s?void 0:s.parent)||d,"Unhandled binding element grandparent kind in declaration serialization");break;case 297:221===(null===(l=null===(c=d.parent)||void 0===c?void 0:c.parent)||void 0===l?void 0:l.kind)&&G(e.unescapeLeadingUnderscores(t.escapedName),f);break;case 254:if(e.isPropertyAccessExpression(d.initializer)){var h=d.initializer,y=e.factory.createUniqueName(n),v=C(p.parent||p,r);w(e.factory.createImportEqualsDeclaration(void 0,!1,y,e.factory.createExternalModuleReference(e.factory.createStringLiteral(v))),0),w(e.factory.createImportEqualsDeclaration(void 0,!1,e.factory.createIdentifier(n),e.factory.createQualifiedName(y,h.name)),i);break}case 265:if("export="===p.escapedName&&e.some(p.declarations,e.isJsonSourceFile)){$(t);break}var b=!(512&p.flags||e.isVariableDeclaration(d));w(e.factory.createImportEqualsDeclaration(void 0,!1,e.factory.createIdentifier(n),b?F(p,r,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(C(p,r)))),b?i:0);break;case 264:w(e.factory.createNamespaceExportDeclaration(e.idText(d.name)),0);break;case 267:w(e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(n),void 0),e.factory.createStringLiteral(C(p.parent||p,r)),void 0),0);break;case 268:w(e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(n))),e.factory.createStringLiteral(C(p,r)),void 0),0);break;case 274:w(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(n)),e.factory.createStringLiteral(C(p,r))),0);break;case 270:w(e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,n!==_?e.factory.createIdentifier(_):void 0,e.factory.createIdentifier(n))])),e.factory.createStringLiteral(C(p.parent||p,r)),void 0),0);break;case 275:var E=d.parent.parent.moduleSpecifier;G(e.unescapeLeadingUnderscores(t.escapedName),E?_:f,E&&e.isStringLiteralLike(E)?e.factory.createStringLiteral(E.text):void 0);break;case 271:$(t);break;case 221:case 206:case 207:"default"===t.escapedName||"export="===t.escapedName?$(t):G(n,f);break;default:return e.Debug.failBadSyntaxKind(d,"Unhandled alias declaration kind in symbol serializer!")}}}function G(t,r,n){w(e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,t!==r?r:void 0,t)]),n),0)}function $(t){if(4194304&t.flags)return!1;var i=e.unescapeLeadingUnderscores(t.escapedName),a="export="===i,o=a||"default"===i,s=t.declarations&&Ai(t),d=s&&Hi(s,!0);if(d&&e.length(d.declarations)&&e.some(d.declarations,(t=>e.getSourceFileOfNode(t)===e.getSourceFileOfNode(c)))){var u=s&&(e.isExportAssignment(s)||e.isBinaryExpression(s)?e.getExportAssignmentExpression(s):e.getPropertyAssignmentAliasLikeExpression(s)),p=u&&e.isEntityNameExpression(u)?(t=>{switch(t.kind){case 79:return t;case 161:do{t=t.left}while(79!==t.kind);return t;case 206:do{if(e.isModuleExportsAccessExpression(t.expression)&&!e.isPrivateIdentifier(t.name))return t.name;t=t.expression}while(79!==t.kind);return t}})(u):void 0,_=p&&ea(p,67108863,!0,!0,c);(_||d)&&N(_||d);var f=r.tracker.trackSymbol;if(r.tracker.trackSymbol=()=>!1,o)l.push(e.factory.createExportAssignment(void 0,a,P(d,r,67108863)));else if(p===u&&p)G(i,e.idText(p));else if(u&&e.isClassExpression(u))G(i,ne(d,e.symbolName(d)));else{var m=te(i,t);w(e.factory.createImportEqualsDeclaration(void 0,!1,e.factory.createIdentifier(m),F(d,r,67108863,!1)),0),G(i,m)}return r.tracker.trackSymbol=f,!0}m=te(i,t);var g=hm(cs(ha(t)));return q(g,t)?M(g,t,m,o?0:1):w(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(m,void 0,j(r,g,t,c,N,n))],2)),d&&4&d.flags&&"export="===d.escapedName?2:i===m?1:0),o?(l.push(e.factory.createExportAssignment(void 0,a,e.factory.createIdentifier(m))),!0):i!==m&&(G(i,m),!0)}function q(t,n){var i=e.getSourceFileOfNode(r.enclosingDeclaration);return 48&e.getObjectFlags(t)&&!e.length(fl(t))&&!ao(t)&&!(!e.length(e.filter(Lc(t),K))&&!e.length(ll(t,0)))&&!e.length(ll(t,1))&&!B(n,c)&&!(t.symbol&&e.some(t.symbol.declarations,(t=>e.getSourceFileOfNode(t)!==i)))&&!e.some(Lc(t),(e=>$s(e.escapedName)))&&!e.some(Lc(t),(t=>e.some(t.declarations,(t=>e.getSourceFileOfNode(t)!==i))))&&e.every(Lc(t),(t=>e.isIdentifierText(e.symbolName(t),W)))}function X(t,i,a){return(o,s,l)=>{var d,u,p,_,f,m=e.getDeclarationModifierFlagsFromSymbol(o),h=!!(8&m);if(s&&2887656&o.flags)return[];if(4194304&o.flags||l&&sl(l,o.escapedName)&&aE(sl(l,o.escapedName))===aE(o)&&(16777216&o.flags)==(16777216&sl(l,o.escapedName).flags)&&b_(cs(o),bo(l,o.escapedName)))return[];var y=-257&m|(s?32:0),v=L(o,r),b=null===(d=o.declarations)||void 0===d?void 0:d.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(98304&o.flags&&a){var E=[];if(65536&o.flags&&E.push(e.setTextRange(e.factory.createSetAccessorDeclaration(e.factory.createModifiersFromModifierFlags(y),v,[e.factory.createParameterDeclaration(void 0,void 0,"arg",void 0,h?void 0:j(r,cs(o),o,c,N,n))],void 0),(null===(u=o.declarations)||void 0===u?void 0:u.find(e.isSetAccessor))||b)),32768&o.flags){var x=8&m;E.push(e.setTextRange(e.factory.createGetAccessorDeclaration(e.factory.createModifiersFromModifierFlags(y),v,[],x?void 0:j(r,cs(o),o,c,N,n),void 0),(null===(p=o.declarations)||void 0===p?void 0:p.find(e.isGetAccessor))||b))}return E}if(98311&o.flags)return e.setTextRange(t(e.factory.createModifiersFromModifierFlags((aE(o)?64:0)|y),v,16777216&o.flags?e.factory.createToken(57):void 0,h?void 0:j(r,cs(o),o,c,N,n),void 0),(null===(_=o.declarations)||void 0===_?void 0:_.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||b);if(8208&o.flags){var D=ll(cs(o),0);if(8&y)return e.setTextRange(t(e.factory.createModifiersFromModifierFlags((aE(o)?64:0)|y),v,16777216&o.flags?e.factory.createToken(57):void 0,void 0,void 0),(null===(f=o.declarations)||void 0===f?void 0:f.find(e.isFunctionLikeDeclaration))||D[0]&&D[0].declaration||o.declarations&&o.declarations[0]);for(var S=[],T=0,C=D;T<C.length;T++){var A=C[T],k=g(A,i,r,{name:v,questionToken:16777216&o.flags?e.factory.createToken(57):void 0,modifiers:y?e.factory.createModifiersFromModifierFlags(y):void 0}),w=A.declaration&&e.isPrototypePropertyAssignment(A.declaration.parent)?A.declaration.parent:A.declaration;S.push(e.setTextRange(k,w))}return S}return e.Debug.fail("Unhandled class member kind! ".concat(o.__debugFlags||o.flags))}}function Y(t,n,i,a){var o=ll(n,t);if(1===t){if(!i&&e.every(o,(t=>0===e.length(t.parameters))))return[];if(i){var s=ll(i,1);if(!e.length(s)&&e.every(o,(t=>0===e.length(t.parameters))))return[];if(s.length===o.length){for(var c=!1,l=0;l<s.length;l++)if(!xf(o[l],s[l],!1,!1,!0,E_)){c=!0;break}if(!c)return[]}}for(var d=0,u=0,p=o;u<p.length;u++){var _=p[u];_.declaration&&(d|=e.getSelectedEffectiveModifierFlags(_.declaration,24))}if(d)return[e.setTextRange(e.factory.createConstructorDeclaration(e.factory.createModifiersFromModifierFlags(d),[],void 0),o[0].declaration)]}for(var f=[],m=0,h=o;m<h.length;m++){var y=h[m],v=g(y,a,r);f.push(e.setTextRange(v,y.declaration))}return f}function Q(e,t){for(var n=[],i=0,a=fl(e);i<a.length;i++){var o=a[i];if(t){var s=ml(t,o.keyType);if(s&&b_(o.type,s.type))continue}n.push(_(o,r,void 0))}return n}function Z(t,n){var i,a;if(t.target&&Ha(t.target.symbol,c,n)?(i=e.map(ld(t),(e=>s(e,r))),a=P(t.target.symbol,r,788968)):t.symbol&&Ha(t.symbol,c,n)&&(a=P(t.symbol,r,788968)),a)return e.factory.createExpressionWithTypeArguments(a,i)}function ee(t){return Z(t,788968)||(t.symbol?e.factory.createExpressionWithTypeArguments(P(t.symbol,r,788968),void 0):void 0)}function te(e,t){var n,i,a=t?O(t):void 0;if(a&&r.remappedSymbolNames.has(a))return r.remappedSymbolNames.get(a);t&&(e=re(t,e));for(var o=0,s=e;null===(n=r.usedSymbolNames)||void 0===n?void 0:n.has(e);)o++,e="".concat(s,"_").concat(o);return null===(i=r.usedSymbolNames)||void 0===i||i.add(e),a&&r.remappedSymbolNames.set(a,e),e}function re(t,n){if("default"===n||"__class"===n||"__function"===n){var i=r.flags;r.flags|=16777216;var a=po(t,r);r.flags=i,n=a.length>0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===n?n="_default":"export="===n&&(n="_exports"),e.isIdentifierText(n,W)&&!e.isStringANonContextualKeyword(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function ne(e,t){var n=O(e);return r.remappedSymbolNames.has(n)?r.remappedSymbolNames.get(n):(t=re(e,t),r.remappedSymbolNames.set(n,t),t)}})(t,r,c)))};function n(r,n,a,o){var s,c;e.Debug.assert(void 0===r||0==(8&r.flags));var l={enclosingDeclaration:r,flags:n||0,tracker:a&&a.trackSymbol?a:{trackSymbol:()=>!1,moduleResolverHost:134217728&n?{getCommonSourceDirectory:t.getCommonSourceDirectory?()=>t.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>t.getCurrentDirectory(),getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),getPackageJsonInfoCache(){var e;return null===(e=t.getPackageJsonInfoCache)||void 0===e?void 0:e.call(t)},useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:e=>t.getProjectReferenceRedirect(e),isSourceOfProjectReferenceRedirect:e=>t.isSourceOfProjectReferenceRedirect(e),fileExists:e=>t.fileExists(e),getFileIncludeReasons:()=>t.getFileIncludeReasons(),readFile:t.readFile?e=>t.readFile(e):void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};l.tracker=i(l,l.tracker);var d=o(l);return l.truncating&&1&l.flags&&(null===(c=null===(s=l.tracker)||void 0===s?void 0:s.reportTruncationError)||void 0===c||c.call(s)),l.encounteredError?void 0:d}function i(e,t){var r=t.trackSymbol;return m(m({},t),{reportCyclicStructureError:n(t.reportCyclicStructureError),reportInaccessibleThisError:n(t.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:n(t.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:n(t.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:n(t.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:n(t.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:n(t.reportNonSerializableProperty),trackSymbol:r&&function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r.apply(void 0,t);return i&&(e.reportedDiagnostic=!0),i}});function n(t){return t?function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.reportedDiagnostic=!0,t.apply(void 0,r)}:t}}function o(t){return t.truncating?t.truncating:t.truncating=t.approximateLength>(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function s(t,n){var i=n.flags,a=((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(130)):void(n.encounteredError=!0);if(536870912&n.flags||(t=rl(t)),1&t.flags)return t.aliasSymbol?e.factory.createTypeReferenceNode(A(t.aliasSymbol),p(t.aliasTypeArguments,n)):t===je?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(130),3,"unresolved"):(n.approximateLength+=3,e.factory.createKeywordTypeNode(t===ze?138:130));if(2&t.flags)return e.factory.createKeywordTypeNode(155);if(4&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(150);if(8&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(64&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(158);if(16&t.flags&&!t.aliasSymbol)return n.approximateLength+=7,e.factory.createKeywordTypeNode(133);if(1024&t.flags&&!(1048576&t.flags)){var a=va(t.symbol),d=k(a,n,788968);if(Rs(a)===t)return d;var f=e.symbolName(t.symbol);return e.isIdentifierText(f,0)?J(d,e.factory.createTypeReferenceNode(f,void 0)):e.isImportTypeNode(d)?(d.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(d,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(f)))):e.isTypeReferenceNode(d)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(d.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(f))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&t.flags)return k(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 m=t.value;return n.approximateLength+=(""+m).length,e.factory.createLiteralTypeNode(m<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-m)):e.factory.createNumericLiteral(m))}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(za(t.symbol,n.enclosingDeclaration))return n.approximateLength+=6,k(t.symbol,n,111551);n.tracker.reportInaccessibleUniqueSymbolError&&n.tracker.reportInaccessibleUniqueSymbolError()}return n.approximateLength+=13,e.factory.createTypeOperatorNode(154,e.factory.createKeywordTypeNode(151))}if(16384&t.flags)return n.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(32768&t.flags)return n.approximateLength+=9,e.factory.createKeywordTypeNode(153);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(143);if(4096&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(151);if(67108864&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(e.isThisTypeParameter(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||Va(t.aliasSymbol,n.enclosingDeclaration))){var y=p(t.aliasTypeArguments,n);return!Pa(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?1===e.length(y)&&t.aliasSymbol===$t.symbol?e.factory.createArrayTypeNode(y[0]):k(t.aliasSymbol,n,788968,y):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),y)}var v=e.getObjectFlags(t);if(4&v)return e.Debug.assert(!!(524288&t.flags)),t.node?H(t,K):K(t);if(262144&t.flags||3&v){if(262144&t.flags&&e.contains(n.inferTypeParameters,t)){n.approximateLength+=e.symbolName(t.symbol).length+6;var b=void 0,E=Uc(t);if(E){var x=ed(t,!0);x&&b_(E,x)||(n.approximateLength+=9,b=E&&s(E,n))}return e.factory.createInferTypeNode(h(t,n,b))}if(4&n.flags&&262144&t.flags&&!Va(t.symbol,n.enclosingDeclaration)){var D=w(t,n);return n.approximateLength+=e.idText(D).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(D)),void 0)}if(t.symbol)return k(t.symbol,n,788968);var S=(t===Bt||t===Ut)&&c&&c.symbol?(t===Ut?"sub-":"super-")+e.symbolName(c.symbol):"?";return e.factory.createTypeReferenceNode(e.factory.createIdentifier(S),void 0)}if(1048576&t.flags&&t.origin&&(t=t.origin),3145728&t.flags){var T=1048576&t.flags?(e=>{for(var t=[],r=0,n=0;n<e.length;n++){var i=e[n];if(r|=i.flags,!(98304&i.flags)){if(1536&i.flags){var a=512&i.flags?at:Ps(i);if(1048576&a.flags){var o=a.types.length;if(n+o<=e.length&&Np(e[n+o-1])===Np(a.types[o-1])){t.push(a),n+=o-1;continue}}}t.push(i)}}return 65536&r&&t.push(qe),32768&r&&t.push(Ke),t||e})(t.types):t.types;if(1===e.length(T))return s(T[0],n);var C=p(T,n,!0);return C&&C.length>0?1048576&t.flags?e.factory.createUnionTypeNode(C):e.factory.createIntersectionTypeNode(C):void(n.encounteredError||262144&n.flags||(n.encounteredError=!0))}if(48&v)return e.Debug.assert(!!(524288&t.flags)),z(t);if(4194304&t.flags){var N=t.type;n.approximateLength+=6;var F=s(N,n);return e.factory.createTypeOperatorNode(140,F)}if(134217728&t.flags){var P=t.texts,M=t.types,R=e.factory.createTemplateHead(P[0]),L=e.factory.createNodeArray(e.map(M,((t,r)=>e.factory.createTemplateLiteralTypeSpan(s(t,n),(r<M.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(P[r+1])))));return n.approximateLength+=2,e.factory.createTemplateLiteralType(R,L)}if(268435456&t.flags){var B=s(t.type,n);return k(t.symbol,n,788968,[B])}if(8388608&t.flags){var U=s(t.objectType,n);return F=s(t.indexType,n),n.approximateLength+=2,e.factory.createIndexedAccessTypeNode(U,F)}return 16777216&t.flags?H(t,(t=>(t=>{var r=s(t.checkType,n);if(n.approximateLength+=15,4&n.flags&&t.root.isDistributive&&!(262144&t.checkType.flags)){var i=Fa(Zn(262144,"T")),a=w(i,n),o=e.factory.createTypeReferenceNode(a);n.approximateLength+=37;var c=Zp(t.root.checkType,i,t.mapper),l=n.inferTypeParameters;n.inferTypeParameters=t.root.inferTypeParameters;var d=s(u_(t.root.extendsType,c),n);n.inferTypeParameters=l;var u=j(u_(Up(t.root.node.trueType),c)),p=j(u_(Up(t.root.node.falseType),c));return e.factory.createConditionalTypeNode(r,e.factory.createInferTypeNode(e.factory.createTypeParameterDeclaration(void 0,e.factory.cloneNode(o.typeName))),e.factory.createConditionalTypeNode(e.factory.createTypeReferenceNode(e.factory.cloneNode(a)),s(t.checkType,n),e.factory.createConditionalTypeNode(o,d,u,p),e.factory.createKeywordTypeNode(143)),e.factory.createKeywordTypeNode(143))}var _=n.inferTypeParameters;n.inferTypeParameters=t.root.inferTypeParameters;var f=s(t.extendsType,n);n.inferTypeParameters=_;var m=j(pp(t)),g=j(_p(t));return e.factory.createConditionalTypeNode(r,f,m,g)})(t))):33554432&t.flags?s(t.baseType,n):e.Debug.fail("Should be unreachable.");function j(e){var t,r,i;return 1048576&e.flags?(null===(t=n.visitedTypes)||void 0===t?void 0:t.has(su(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)),l(n)):H(e,(e=>s(e,n))):s(e,n)}function V(e){return Ac(e)&&!(262144&kc(e).flags)}function z(t){var r,i=t.id,a=t.symbol;if(a){var o=ao(t)?788968:111551;if(pb(a.valueDeclaration))return k(a,n,o);if(32&a.flags&&!rs(a)&&(!(a.valueDeclaration&&e.isClassLike(a.valueDeclaration)&&2048&n.flags)||e.isClassDeclaration(a.valueDeclaration)&&0===Ka(a,n.enclosingDeclaration,o,!1).accessibility)||896&a.flags||(()=>{var t,r=!!(8192&a.flags)&&e.some(a.declarations,(t=>e.isStatic(t))),o=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,(e=>305===e.parent.kind||262===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)||za(a,n.enclosingDeclaration))})())return k(a,n,o);if(null===(r=n.visitedTypes)||void 0===r?void 0:r.has(i)){var s=(t=>{if(t.symbol&&2048&t.symbol.flags&&t.symbol.declarations){var r=e.walkUpParenthesizedTypes(t.symbol.declarations[0].parent);if(259===r.kind)return ya(r)}})(t);return s?k(s,n,788968):l(n)}return H(t,W)}return W(t)}function H(t,r){var i,a,o=t.id,s=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags,c=4&e.getObjectFlags(t)&&t.node?"N"+I(t.node):16777216&t.flags?"N"+I(t.root.node):t.symbol?(s?"+":"")+O(t.symbol):void 0;n.visitedTypes||(n.visitedTypes=new e.Set),c&&!n.symbolDepth&&(n.symbolDepth=new e.Map);var d=n.enclosingDeclaration&&li(n.enclosingDeclaration),u="".concat(su(t),"|").concat(n.flags);d&&(d.serializedTypes||(d.serializedTypes=new e.Map));var p,_=null===(i=null==d?void 0:d.serializedTypes)||void 0===i?void 0:i.get(u);if(_)return _.truncating&&(n.truncating=!0),n.approximateLength+=_.addedLength,function t(r){return e.nodeIsSynthesized(r)||e.getParseTreeNode(r)!==r?e.setTextRange(e.factory.cloneNode(e.visitEachChild(r,t,e.nullTransformationContext,h)),r):r}(_);if(c){if((p=n.symbolDepth.get(c)||0)>10)return l(n);n.symbolDepth.set(c,p+1)}n.visitedTypes.add(o);var f=n.approximateLength,m=r(t),g=n.approximateLength-f;return n.reportedDiagnostic||n.encounteredError||(n.truncating&&(m.truncating=!0),m.addedLength=g,null===(a=null==d?void 0:d.serializedTypes)||void 0===a||a.set(u,m)),n.visitedTypes.delete(o),c&&n.symbolDepth.set(c,p),m;function h(t,r,n,i,a){return t&&0===t.length?e.setTextRange(e.factory.createNodeArray(void 0,t.hasTrailingComma),t):e.visitNodes(t,r,n,i,a)}}function W(t){if(Pc(t)||t.containsError)return(t=>{e.Debug.assert(!!(524288&t.flags));var r,i,a=t.declaration.readonlyToken?e.factory.createToken(t.declaration.readonlyToken.kind):void 0,o=t.declaration.questionToken?e.factory.createToken(t.declaration.questionToken.kind):void 0;if(Ac(t)){if(V(t)&&4&n.flags){var c=w(Fa(Zn(262144,"T")),n);i=e.factory.createTypeReferenceNode(c)}r=e.factory.createTypeOperatorNode(140,i||s(kc(t),n))}else r=s(Dc(t),n);var l=h(xc(t),n,r),d=t.declaration.nameType?s(Sc(t),n):void 0,u=s(om(Tc(t),!!(4&Nc(t))),n),p=e.factory.createMappedTypeNode(a,l,d,o,u,void 0);n.approximateLength+=10;var _=e.setEmitFlags(p,1);if(V(t)&&4&n.flags){var f=u_(Uc(Up(t.declaration.typeParameter.constraint.type))||He,t.mapper);return e.factory.createConditionalTypeNode(s(kc(t),n),e.factory.createInferTypeNode(e.factory.createTypeParameterDeclaration(void 0,e.factory.cloneNode(i.typeName),2&f.flags?void 0:s(f,n))),_,e.factory.createKeywordTypeNode(143))}return _})(t);var r=Ic(t);if(!r.properties.length&&!r.indexInfos.length){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 g(r.callSignatures[0],179,n);if(1===r.constructSignatures.length&&!r.callSignatures.length)return g(r.constructSignatures[0],180,n)}var i=e.filter(r.constructSignatures,(e=>!!(4&e.flags)));if(e.some(i)){var a=e.map(i,Jl);return r.callSignatures.length+(r.constructSignatures.length-i.length)+r.indexInfos.length+(2048&n.flags?e.countWhere(r.properties,(e=>!(4194304&e.flags))):e.length(r.properties))&&a.push((t=>{if(0===t.constructSignatures.length)return t;if(t.objectTypeWithoutAbstractConstructSignatures)return t.objectTypeWithoutAbstractConstructSignatures;var r=e.filter(t.constructSignatures,(e=>!(4&e.flags)));if(t.constructSignatures===r)return t;var n=Ra(t.symbol,t.members,t.callSignatures,e.some(r)?r:e.emptyArray,t.indexInfos);return t.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n})(r)),s(xu(a),n)}var c=n.flags;n.flags|=4194304;var d=(t=>{if(o(n))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var r=[],i=0,a=t.callSignatures;i<a.length;i++){var s=a[i];r.push(g(s,174,n))}for(var c=0,d=t.constructSignatures;c<d.length;c++)4&(s=d[c]).flags||r.push(g(s,175,n));for(var p=0,f=t.indexInfos;p<f.length;p++){var m=f[p];r.push(_(m,n,1024&t.objectFlags?l(n):void 0))}var h=t.properties;if(!h)return r;for(var y=0,v=0,b=h;v<b.length;v++){var E=b[v];if(y++,2048&n.flags){if(4194304&E.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(E)&&n.tracker.reportPrivateInBaseOfClassExpression&&n.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(E.escapedName))}if(o(n)&&y+2<h.length-1){r.push(e.factory.createPropertySignature(void 0,"... ".concat(h.length-y," more ..."),void 0,void 0)),u(h[h.length-1],n,r);break}u(E,n,r)}return r.length?r:void 0})(r);n.flags=c;var p=e.factory.createTypeLiteralNode(d);return n.approximateLength+=2,e.setEmitFlags(p,1024&n.flags?0:1),p}function K(t){var r=ld(t);if(t.target===$t||t.target===qt){if(2&n.flags){var i=s(r[0],n);return e.factory.createTypeReferenceNode(t.target===$t?"Array":"ReadonlyArray",[i])}var a=s(r[0],n),o=e.factory.createArrayTypeNode(a);return t.target===$t?o:e.factory.createTypeOperatorNode(145,o)}if(!(8&t.target.objectFlags)){if(2048&n.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!za(t.symbol,n.enclosingDeclaration))return z(t);var c=t.target.outerTypeParameters,l=void(x=0);if(c)for(var d=c.length;x<d;){var u=x,_=rd(c[x]);do{x++}while(x<d&&rd(c[x])===_);if(!e.rangeEquals(c,r,u,x)){var f=p(r.slice(u,x),n),m=n.flags;n.flags|=16;var g=k(_,n,788968,f);n.flags=m,l=l?J(l,g):g}}var h=void 0;if(r.length>0){var y=(t.target.typeParameters||e.emptyArray).length;h=p(r.slice(x,y),n)}D=n.flags,n.flags|=16;var v=k(t.symbol,n,788968,h);return n.flags=D,l?J(l,v):v}if((r=e.sameMap(r,((e,r)=>om(e,!!(2&t.target.elementFlags[r]))))).length>0){var b=dd(t),E=p(r.slice(0,b),n);if(E){if(t.target.labeledElementDeclarations)for(var x=0;x<E.length;x++){var D=t.target.elementFlags[x];E[x]=e.factory.createNamedTupleMember(12&D?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(kb(t.target.labeledElementDeclarations[x]))),2&D?e.factory.createToken(57):void 0,4&D?e.factory.createArrayTypeNode(E[x]):E[x])}else for(x=0;x<Math.min(b,E.length);x++)D=t.target.elementFlags[x],E[x]=12&D?e.factory.createRestTypeNode(4&D?e.factory.createArrayTypeNode(E[x]):E[x]):2&D?e.factory.createOptionalTypeNode(E[x]):E[x];var S=e.setEmitFlags(e.factory.createTupleTypeNode(E),1);return t.target.readonly?e.factory.createTypeOperatorNode(145,S):S}}if(n.encounteredError||524288&n.flags)return S=e.setEmitFlags(e.factory.createTupleTypeNode([]),1),t.target.readonly?e.factory.createTypeOperatorNode(145,S):S;n.encounteredError=!0}function J(t,r){if(e.isImportTypeNode(t)){var n=t.typeArguments,i=t.qualifier;i&&(i=e.isIdentifier(i)?e.factory.updateIdentifier(i,n):e.factory.updateQualifiedName(i,i.left,e.factory.updateIdentifier(i.right,n))),n=r.typeArguments;for(var a=0,o=G(r);a<o.length;a++){var s=o[a];i=i?e.factory.createQualifiedName(i,s):s}return e.factory.updateImportTypeNode(t,t.argument,t.assertions,i,n,t.isTypeOf)}n=t.typeArguments;var c=t.typeName;c=e.isIdentifier(c)?e.factory.updateIdentifier(c,n):e.factory.updateQualifiedName(c,c.left,e.factory.updateIdentifier(c.right,n)),n=r.typeArguments;for(var l=0,d=G(r);l<d.length;l++)s=d[l],c=e.factory.createQualifiedName(c,s);return e.factory.updateTypeReferenceNode(t,c,n)}function G(t){for(var r=t.typeName,n=[];!e.isIdentifier(r);)n.unshift(r.right),r=r.left;return n.unshift(r),n}})(t,n);return n.flags=i,a}function l(t){return t.approximateLength+=3,1&t.flags?e.factory.createKeywordTypeNode(130):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function d(t,r){var n;return!!(8192&e.getCheckFlags(t))&&(e.contains(r.reverseMappedStack,t)||(null===(n=r.reverseMappedStack)||void 0===n?void 0:n[0])&&!(16&e.getObjectFlags(e.last(r.reverseMappedStack).propertyType)))}function u(t,r,n){var i,a,o=!!(8192&e.getCheckFlags(t)),s=d(t,r)?Re:ls(t),c=r.enclosingDeclaration;if(r.enclosingDeclaration=void 0,r.tracker.trackSymbol&&$s(t.escapedName))if(t.declarations){var u=e.first(t.declarations);if(qs(u))if(e.isBinaryExpression(u)){var p=e.getNameOfDeclaration(u);p&&e.isElementAccessExpression(p)&&e.isPropertyAccessEntityNameExpression(p.argumentExpression)&&b(p.argumentExpression,c,r)}else b(u.name.expression,c,r)}else(null===(i=r.tracker)||void 0===i?void 0:i.reportNonSerializableProperty)&&r.tracker.reportNonSerializableProperty(Qa(t));r.enclosingDeclaration=t.valueDeclaration||(null===(a=t.declarations)||void 0===a?void 0:a[0])||c;var _=L(t,r);r.enclosingDeclaration=c,r.approximateLength+=e.symbolName(t).length+1;var f=16777216&t.flags?e.factory.createToken(57):void 0;if(8208&t.flags&&!Oc(s).length&&!aE(t))for(var m=0,h=ll(Wg(s,(e=>!(32768&e.flags))),0);m<h.length;m++){var y=g(h[m],168,r,{name:_,questionToken:f});n.push(D(y))}else{var v=void 0;d(t,r)?v=l(r):(o&&(r.reverseMappedStack||(r.reverseMappedStack=[]),r.reverseMappedStack.push(t)),v=s?j(r,s,t,c):e.factory.createKeywordTypeNode(130),o&&r.reverseMappedStack.pop());var E=aE(t)?[e.factory.createToken(145)]:void 0;E&&(r.approximateLength+=9);var x=e.factory.createPropertySignature(E,_,f,v);n.push(D(x))}function D(r){var n;if(e.some(t.declarations,(e=>347===e.kind))){var i=null===(n=t.declarations)||void 0===n?void 0:n.find((e=>347===e.kind)),a=e.getTextOfJSDocComment(i.comment);a&&e.setSyntheticLeadingComments(r,[{kind:3,text:"*\n * "+a.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else t.valueDeclaration&&e.setCommentRange(r,t.valueDeclaration);return r}}function p(t,r,n){if(e.some(t)){if(o(r)){if(!n)return[e.factory.createTypeReferenceNode("...",void 0)];if(t.length>2)return[s(t[0],r),e.factory.createTypeReferenceNode("... ".concat(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,l=0,d=t;l<d.length;l++){var u=d[l];if(c++,o(r)&&c+2<t.length-1){a.push(e.factory.createTypeReferenceNode("... ".concat(t.length-c," more ..."),void 0));var p=s(t[t.length-1],r);p&&a.push(p);break}r.approximateLength+=2;var _=s(u,r);_&&(a.push(_),i&&e.isIdentifierTypeReference(_)&&i.add(_.typeName.escapedText,[u,a.length-1]))}if(i){var f=r.flags;r.flags|=64,i.forEach((t=>{if(!e.arrayIsHomogeneous(t,((e,t)=>{return(r=e[0])===(n=t[0])||!!r.symbol&&r.symbol===n.symbol||!!r.aliasSymbol&&r.aliasSymbol===n.aliasSymbol;var r,n})))for(var n=0,i=t;n<i.length;n++){var o=i[n],c=o[0],l=o[1];a[l]=s(c,r)}})),r.flags=f}return a}}function _(t,r,n){var i=e.getNameFromIndexInfo(t)||"x",a=s(t.keyType,r),o=e.factory.createParameterDeclaration(void 0,void 0,i,void 0,a,void 0);return n||(n=s(t.type||Re,r)),t.type||2097152&r.flags||(r.encounteredError=!0),r.approximateLength+=i.length+4,e.factory.createIndexSignature(t.isReadonly?[e.factory.createToken(145)]:void 0,[o],n)}function g(t,r,n,i){var a,o,c,l,d,u,p=256&n.flags;p&&(n.flags&=-257),n.approximateLength+=3,32&n.flags&&t.target&&t.mapper&&t.target.typeParameters?u=t.target.typeParameters.map((e=>s(u_(e,t.mapper),n))):d=t.typeParameters&&t.typeParameters.map((e=>y(e,n)));var _,f=cc(t,!0)[0],m=(e.some(f,(t=>t!==f[f.length-1]&&!!(32768&e.getCheckFlags(t))))?t.parameters:f).map((e=>v(e,n,171===r,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports))),g=33554432&n.flags?void 0:((t,r)=>{if(t.thisParameter)return v(t.thisParameter,r);if(t.declaration){var n=e.getJSDocThisTag(t.declaration);if(n&&n.typeExpression)return e.factory.createParameterDeclaration(void 0,void 0,"this",void 0,s(Up(n.typeExpression),r))}})(t,n);g&&m.unshift(g);var h=Ml(t);if(h){var b=2===h.kind||3===h.kind?e.factory.createToken(128):void 0,E=1===h.kind||3===h.kind?e.setEmitFlags(e.factory.createIdentifier(h.parameterName),16777216):e.factory.createThisTypeNode(),x=h.type&&s(h.type,n);_=e.factory.createTypePredicateNode(b,E,x)}else{var D=Ll(t);!D||p&&Eo(D)?p||(_=e.factory.createKeywordTypeNode(130)):_=((t,r,n,i,a)=>{if(!xo(r)&&t.enclosingDeclaration){var o=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration);if(e.findAncestor(o,(e=>e===t.enclosingDeclaration))&&o){var c=Up(o);if((262144&c.flags&&c.isThisType?u_(c,n.mapper):c)===r&&U(o,r)){var l=z(t,o,i,a);if(l)return l}}}return s(r,t)})(n,D,t,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}var S=null==i?void 0:i.modifiers;if(180===r&&4&t.flags){var T=e.modifiersToFlags(S);S=e.factory.createModifiersFromModifierFlags(128|T)}var C=174===r?e.factory.createCallSignature(d,m,_):175===r?e.factory.createConstructSignature(d,m,_):168===r?e.factory.createMethodSignature(S,null!==(a=null==i?void 0:i.name)&&void 0!==a?a:e.factory.createIdentifier(""),null==i?void 0:i.questionToken,d,m,_):169===r?e.factory.createMethodDeclaration(S,void 0,null!==(o=null==i?void 0:i.name)&&void 0!==o?o:e.factory.createIdentifier(""),void 0,d,m,_,void 0):171===r?e.factory.createConstructorDeclaration(S,m,void 0):172===r?e.factory.createGetAccessorDeclaration(S,null!==(c=null==i?void 0:i.name)&&void 0!==c?c:e.factory.createIdentifier(""),m,_,void 0):173===r?e.factory.createSetAccessorDeclaration(S,null!==(l=null==i?void 0:i.name)&&void 0!==l?l:e.factory.createIdentifier(""),m,void 0):176===r?e.factory.createIndexSignature(S,m,_):317===r?e.factory.createJSDocFunctionType(m,_):179===r?e.factory.createFunctionTypeNode(d,m,null!=_?_:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):180===r?e.factory.createConstructorTypeNode(S,d,m,null!=_?_:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):256===r?e.factory.createFunctionDeclaration(S,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),d,m,_,void 0):213===r?e.factory.createFunctionExpression(S,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),d,m,_,e.factory.createBlock([])):214===r?e.factory.createArrowFunction(S,d,m,_,void 0,e.factory.createBlock([])):e.Debug.assertNever(r);return u&&(C.typeArguments=e.factory.createNodeArray(u)),C}function h(t,r,n){var i=r.flags;r.flags&=-513;var a=e.factory.createModifiersFromModifierFlags(uf(t)),o=w(t,r),c=qc(t),l=c&&s(c,r);return r.flags=i,e.factory.createTypeParameterDeclaration(a,o,n,l)}function y(e,t,r){return void 0===r&&(r=Uc(e)),h(e,t,r&&s(r,t))}function v(t,r,n,i,a){var o=e.getDeclarationOfKind(t,164);o||e.isTransientSymbol(t)||(o=e.getDeclarationOfKind(t,340));var s=cs(t);o&&GS(o)&&(s=em(s));var c=j(r,s,t,r.enclosingDeclaration,i,a),l=!(8192&r.flags)&&n&&o&&e.canHaveModifiers(o)?e.map(e.getModifiers(o),e.factory.cloneNode):void 0,d=o&&e.isRestParameter(o)||32768&e.getCheckFlags(t)?e.factory.createToken(25):void 0,u=o&&o.name?79===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name),16777216):161===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name.right),16777216):function t(n){r.tracker.trackSymbol&&e.isComputedPropertyName(n)&&Gs(n)&&b(n.expression,r.enclosingDeclaration,r);var i=e.visitEachChild(n,t,e.nullTransformationContext,void 0,t);return e.isBindingElement(i)&&(i=e.factory.updateBindingElement(i,i.dotDotDotToken,i.propertyName,i.name,void 0)),e.nodeIsSynthesized(i)||(i=e.factory.cloneNode(i)),e.setEmitFlags(i,16777217)}(o.name):e.symbolName(t),p=o&&Sl(o)||16384&e.getCheckFlags(t)?e.factory.createToken(57):void 0,_=e.factory.createParameterDeclaration(l,d,u,p,c,void 0);return r.approximateLength+=e.symbolName(t).length+3,_}function b(t,r,n){if(n.tracker.trackSymbol){var i=e.getFirstIdentifier(t),a=mi(i,i.escapedText,1160127,void 0,void 0,!0);a&&n.tracker.trackSymbol(a,r,111551)}}function E(e,t,r,n){return t.tracker.trackSymbol(e,t.enclosingDeclaration,r),x(e,t,r,n)}function x(t,r,n,i){var a;return 262144&t.flags||!(r.enclosingDeclaration||64&r.flags)||134217728&r.flags?a=[t]:(a=e.Debug.checkDefined(function t(n,a,o){var s,c=Ua(n,r.enclosingDeclaration,a,!!(128&r.flags));if(!c||ja(c[0],r.enclosingDeclaration,1===c.length?a:Ba(a))){var l=ba(c?c[0]:n,r.enclosingDeclaration,a);if(e.length(l)){s=l.map((t=>e.some(t.declarations,qa)?C(t,r):void 0));var d=l.map(((e,t)=>t));d.sort(((t,r)=>{var n=s[t],i=s[r];if(n&&i){var a=e.pathIsRelative(i);return e.pathIsRelative(n)===a?e.moduleSpecifiers.countPathComponents(n)-e.moduleSpecifiers.countPathComponents(i):a?-1:1}return 0}));for(var u=0,p=d.map((e=>l[e]));u<p.length;u++){var _=p[u],f=t(_,Ba(a),!1);if(f){if(_.exports&&_.exports.get("export=")&&Da(_.exports.get("export="),n)){c=f;break}c=f.concat(c||[xa(_,n)||n]);break}}}}if(c)return c;if(o||!(6144&n.flags)){if(!o&&!i&&e.forEach(n.declarations,qa))return;return[n]}}(t,n,!0)),e.Debug.assert(a&&a.length>0)),a}function D(t,r){var n;return 524384&zD(t).flags&&(n=e.factory.createNodeArray(e.map(gs(t),(e=>y(e,r))))),n}function S(t,r,n){var i;e.Debug.assert(t&&0<=r&&r<t.length);var a=t[r],o=O(a);if(!(null===(i=n.typeParameterSymbolList)||void 0===i?void 0:i.has(o))){var s;if((n.typeParameterSymbolList||(n.typeParameterSymbolList=new e.Set)).add(o),512&n.flags&&r<t.length-1){var c=a,l=t[r+1];if(1&e.getCheckFlags(l)){var d=(t=>e.concatenate(ms(t),gs(t)))(2097152&c.flags?Ji(c):c);s=p(e.map(d,(e=>Jp(e,l.mapper))),n)}else s=D(a,n)}return s}}function T(t){return e.isIndexedAccessTypeNode(t.objectType)?T(t.objectType):t}function C(t,r,n){var i,o=e.getDeclarationOfKind(t,305);if(!o){var s=e.firstDefined(t.declarations,(e=>Ea(e,t)));s&&(o=e.getDeclarationOfKind(s,305))}if(o&&void 0!==o.moduleName)return o.moduleName;if(!o){if(r.tracker.trackReferencedAmbientModule){var c=e.filter(t.declarations,e.isAmbientModule);if(e.length(c))for(var l=0,d=c;l<d.length;l++){var u=d[l];r.tracker.trackReferencedAmbientModule(u,t)}}if(a.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1)}if(!r.enclosingDeclaration||!r.tracker.moduleResolverHost)return a.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(t)).fileName;var p,_,f=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),g=n||(null==f?void 0:f.impliedNodeFormat),h=(p=f.path,void 0===(_=g)?p:"".concat(_,"|").concat(p)),y=ci(t),v=y.specifierCache&&y.specifierCache.get(h);if(!v){var b=!!e.outFile(H),E=r.tracker.moduleResolverHost,x=b?m(m({},H),{baseUrl:E.getCommonSourceDirectory()}):H;v=e.first(e.moduleSpecifiers.getModuleSpecifiers(t,_e,x,f,E,{importModuleSpecifierPreference:b?"non-relative":"project-relative",importModuleSpecifierEnding:b?"minimal":g===e.ModuleKind.ESNext?"js":void 0},{overrideImportMode:n})),null!==(i=y.specifierCache)&&void 0!==i||(y.specifierCache=new e.Map),y.specifierCache.set(h,v)}return v}function A(t){var r=e.factory.createIdentifier(e.unescapeLeadingUnderscores(t.escapedName));return t.parent?e.factory.createQualifiedName(A(t.parent),r):r}function k(t,r,n,i){var a,o,s,c,l=E(t,r,n,!(16384&r.flags)),d=111551===n;if(e.some(l[0].declarations,qa)){var u=l.length>1?N(l,l.length-1,1):void 0,p=i||S(l,0,r),_=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),f=e.getSourceFileOfModule(l[0]),m=void 0,g=void 0;if(e.getEmitModuleResolutionKind(H)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(H)!==e.ModuleResolutionKind.NodeNext||(null==f?void 0:f.impliedNodeFormat)===e.ModuleKind.ESNext&&f.impliedNodeFormat!==(null==_?void 0:_.impliedNodeFormat)&&(m=C(l[0],r,e.ModuleKind.ESNext),g=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral("import"))]))),null===(o=(a=r.tracker).reportImportTypeNodeResolutionModeOverride)||void 0===o||o.call(a)),m||(m=C(l[0],r)),!(67108864&r.flags)&&e.getEmitModuleResolutionKind(H)!==e.ModuleResolutionKind.Classic&&m.indexOf("/node_modules/")>=0){var h=m;if(e.getEmitModuleResolutionKind(H)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(H)===e.ModuleResolutionKind.NodeNext){var y=(null==_?void 0:_.impliedNodeFormat)===e.ModuleKind.ESNext?e.ModuleKind.CommonJS:e.ModuleKind.ESNext;(m=C(l[0],r,y)).indexOf("/node_modules/")>=0?m=h:(g=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral(y===e.ModuleKind.ESNext?"import":"require"))]))),null===(c=(s=r.tracker).reportImportTypeNodeResolutionModeOverride)||void 0===c||c.call(s))}g||(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(h))}var v=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(m));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(l[0]),r.approximateLength+=m.length+10,!u||e.isEntityName(u))return u&&((A=e.isIdentifier(u)?u:u.right).typeArguments=void 0),e.factory.createImportTypeNode(v,g,u,p,d);var b=T(u),x=b.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(v,g,x,p,d),b.indexType)}var D=N(l,l.length-1,0);if(e.isIndexedAccessTypeNode(D))return D;if(d)return e.factory.createTypeQueryNode(D);var A,k=(A=e.isIdentifier(D)?D:D.right).typeArguments;return A.typeArguments=void 0,e.factory.createTypeReferenceNode(D,k);function N(t,n,a){var o,s=n===t.length-1?i:S(t,n,r),c=t[n],l=t[n-1];if(0===n)r.flags|=16777216,o=po(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(l&&_a(l)){var d=_a(l);e.forEachEntry(d,((t,r)=>{if(Da(t,c)&&!$s(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(void 0===o){var u=e.firstDefined(c.declarations,e.getNameOfDeclaration);if(u&&e.isComputedPropertyName(u)&&e.isEntityName(u.expression)){var p=N(t,n-1,a);return e.isEntityName(p)?e.factory.createIndexedAccessTypeNode(e.factory.createParenthesizedType(e.factory.createTypeQueryNode(p)),e.factory.createTypeQueryNode(u.expression)):p}o=po(c,r)}if(r.approximateLength+=o.length+1,!(16&r.flags)&&l&&ec(l)&&ec(l).get(c.escapedName)&&Da(ec(l).get(c.escapedName),c))return p=N(t,n-1,a),e.isIndexedAccessTypeNode(p)?e.factory.createIndexedAccessTypeNode(p,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(p,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)));var _=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);return _.symbol=c,n>a?(p=N(t,n-1,a),e.isEntityName(p)?e.factory.createQualifiedName(p,_):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")):_}}function N(e,t,r){var n=mi(t.enclosingDeclaration,e,788968,void 0,e,!1);return!(!n||262144&n.flags&&n===r.symbol)}function w(t,r){var n,i;if(4&r.flags&&r.typeParameterNames){var a=r.typeParameterNames.get(su(t));if(a)return a}var o=F(t.symbol,r,788968,!0);if(!(79&o.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var s=o.escapedText,c=(null===(n=r.typeParameterNamesByTextNextNameCount)||void 0===n?void 0:n.get(s))||0,l=s;(null===(i=r.typeParameterNamesByText)||void 0===i?void 0:i.has(l))||N(l,r,t);)c++,l="".concat(s,"_").concat(c);l!==s&&(o=e.factory.createIdentifier(l,o.typeArguments)),(r.typeParameterNamesByTextNextNameCount||(r.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(su(t),o),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(s)}return o}function F(t,r,n,i){var a=E(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=S(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=po(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 P(t,r,n){var i=E(t,r,n);return function t(n,i){var a=S(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=po(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,qa))return e.factory.createStringLiteral(C(o,r));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),W):e.isIdentifierStart(c,W);if(0===i||l){var d=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return d.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(n,i-1),d):d}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var u=void 0;return!e.isSingleOrDoubleQuote(c)||8&o.flags?""+ +s===s&&(u=e.factory.createNumericLiteral(+s)):u=e.factory.createStringLiteral(e.stripQuotes(s).replace(/\\./g,(e=>e.substring(1))),39===c),u||((u=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(n,i-1),u)}(i,i.length-1)}function M(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function R(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function L(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,R),i=((t,r,n)=>{var i=ci(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,e.getEmitScriptTarget(H))||e.isNumericLiteralName(a)?e.isNumericLiteralName(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):e.createPropertyNameNodeForIdentifierOrLiteral(a,e.getEmitScriptTarget(H)):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(P(i.symbol,r,111551))}})(t,r,n);if(i)return i;var a=e.unescapeLeadingUnderscores(t.escapedName),o=!!e.length(t.declarations)&&e.every(t.declarations,M);return e.createPropertyNameNodeForIdentifierOrLiteral(a,e.getEmitScriptTarget(H),n,o)}function B(t,r){return t.declarations&&e.find(t.declarations,(t=>!(!e.getEffectiveTypeAnnotationNode(t)||r&&!e.findAncestor(t,(e=>e===r)))))}function U(t,r){return!(4&e.getObjectFlags(r))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=Al(r.target.typeParameters)}function j(t,r,n,i,a,o){if(!xo(r)&&i){var c=B(n,i);if(c&&!e.isFunctionLikeDeclaration(c)&&!e.isGetAccessorDeclaration(c)){var l=e.getEffectiveTypeAnnotationNode(c);if(((t,r,n)=>{var i=Up(t);return i===n||!(!e.isParameter(r)||!r.questionToken)&&xg(n,524288)===i})(l,c,r)&&U(l,r)){var d=z(t,l,a,o);if(d)return d}}}var u=t.flags;8192&r.flags&&r.symbol===n&&(!t.enclosingDeclaration||e.some(n.declarations,(r=>e.getSourceFileOfNode(r)===e.getSourceFileOfNode(t.enclosingDeclaration))))&&(t.flags|=1048576);var p=s(r,t);return t.flags=u,p}function V(t,r,n){var i,a,o=!1,s=e.getFirstIdentifier(t);if(e.isInJSFile(t)&&(e.isExportsIdentifier(s)||e.isModuleExportsAccessExpression(s.parent)||e.isQualifiedName(s.parent)&&e.isModuleIdentifier(s.parent.left)&&e.isExportsIdentifier(s.parent.right)))return{introducesError:o=!0,node:t};var c=ea(s,67108863,!0,!0);if(c&&(0!==Ka(c,r.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(a=null===(i=r.tracker)||void 0===i?void 0:i.trackSymbol)||void 0===a||a.call(i,c,r.enclosingDeclaration,67108863),null==n||n(c)),e.isIdentifier(t))){var l=Rs(c),d=262144&c.flags&&!Va(l.symbol,r.enclosingDeclaration)?w(l,r):e.factory.cloneNode(t);return d.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(d,t),16777216)}}return{introducesError:o,node:t}}function z(n,i,a,o){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var c=!1,l=e.getSourceFileOfNode(i),d=e.visitNode(i,(function r(i){if(e.isJSDocAllType(i)||319===i.kind)return e.factory.createKeywordTypeNode(130);if(e.isJSDocUnknownType(i))return e.factory.createKeywordTypeNode(155);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(153)]);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,(t=>{var a=e.isIdentifier(t.name)?t.name:t.name.right,o=bo(Up(i),a.escapedText),c=o&&t.typeExpression&&Up(t.typeExpression.type)!==o?s(o,n):void 0;return e.factory.createPropertySignature(void 0,a,t.isBracketed||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(130))})));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(130),i);if((e.isExpressionWithTypeArguments(i)||e.isTypeReferenceNode(i))&&e.isJSDocIndexSignature(i))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,[e.factory.createParameterDeclaration(void 0,void 0,"x",void 0,e.visitNode(i.typeArguments[0],r))],e.visitNode(i.typeArguments[1],r))]);var d;if(e.isJSDocFunctionType(i))return e.isJSDocConstructSignature(i)?e.factory.createConstructorTypeNode(void 0,e.visitNodes(i.typeParameters,r),e.mapDefined(i.parameters,((t,n)=>t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(d=t.type):e.factory.createParameterDeclaration(void 0,m(t),g(t,n),t.questionToken,e.visitNode(t.type,r),void 0))),e.visitNode(d||i.type,r)||e.factory.createKeywordTypeNode(130)):e.factory.createFunctionTypeNode(e.visitNodes(i.typeParameters,r),e.map(i.parameters,((t,n)=>e.factory.createParameterDeclaration(void 0,m(t),g(t,n),t.questionToken,e.visitNode(t.type,r),void 0))),e.visitNode(i.type,r)||e.factory.createKeywordTypeNode(130));if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(!U(i,Up(i))||Sd(i)||Pe===gd(i,788968,!0)))return e.setOriginalNode(s(Up(i),n),i);if(e.isLiteralImportTypeNode(i)){var u=li(i).resolvedSymbol;return!e.isInJSDoc(i)||!u||(i.isTypeOf||788968&u.flags)&&e.length(i.typeArguments)>=Al(gs(u))?e.factory.updateImportTypeNode(i,e.factory.updateLiteralTypeNode(i.argument,((r,i)=>{if(o){if(n.tracker&&n.tracker.moduleResolverHost){var a=_T(r);if(a){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),getCurrentDirectory:()=>n.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>n.tracker.moduleResolverHost.getCommonSourceDirectory()},c=e.getResolvedExternalModuleName(s,a);return e.factory.createStringLiteral(c)}}}else if(n.tracker&&n.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=na(i,i,void 0);l&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}return i})(i,i.argument.literal)),i.assertions,i.qualifier,e.visitNodes(i.typeArguments,r,e.isTypeNode),i.isTypeOf):e.setOriginalNode(s(Up(i),n),i)}if(e.isEntityName(i)||e.isEntityNameExpression(i)){var p=V(i,n,a),_=p.introducesError,f=p.node;if(c=c||_,f!==i)return f}return l&&e.isTupleTypeNode(i)&&e.getLineAndCharacterOfPosition(l,i.pos).line===e.getLineAndCharacterOfPosition(l,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 g(t,r){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":m(t)?"args":"arg".concat(r)}}));if(!c)return d===i?e.setTextRange(e.factory.cloneNode(i),i):d}})(),se=e.createSymbolTable(),ce=Zn(4,"undefined");ce.declarations=[];var le=Zn(1536,"globalThis",8);le.exports=se,le.declarations=[],se.set(le.escapedName,le);var de,ue=Zn(4,"arguments"),pe=Zn(4,"require"),_e={getNodeCount:()=>e.sum(t.getSourceFiles(),"nodeCount"),getIdentifierCount:()=>e.sum(t.getSourceFiles(),"identifierCount"),getSymbolCount:()=>e.sum(t.getSourceFiles(),"symbolCount")+E,getTypeCount:()=>b,getInstantiationCount:()=>S,getRelationCacheSizes:()=>({assignable:In.size,identity:Mn.size,subtype:Fn.size,strictSubtype:Pn.size}),isUndefinedSymbol:e=>e===ce,isArgumentsSymbol:e=>e===ue,isUnknownSymbol:e=>e===Pe,getMergedSymbol:ha,getDiagnostics:gS,getGlobalDiagnostics:()=>(hS(),kn.getGlobalDiagnostics()),getRecursionIdentity:bf,getUnmatchedProperties:Lm,getTypeOfSymbolAtLocation(t,r){var n=e.getParseTreeNode(r);return n?((t,r)=>{if(t=t.exportSymbol||t,(79===r.kind||80===r.kind)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&(!e.isAssignmentTarget(r)||e.isWriteAccess(r)))){var n=jE(r);if(Sa(li(r).resolvedSymbol)===t)return n}return e.isDeclarationName(r)&&e.isSetAccessor(r.parent)&&Qo(r.parent)?ts(r.parent.symbol):ls(t)})(t,n):Ue},getTypeOfSymbol:cs,getSymbolsOfParameterPropertyDeclaration(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."):((t,r)=>{var n=t.parent,i=t.parent.parent,a=ui(n.locals,r,111551),o=ui(ec(i.symbol),r,111551);return a&&o?[a,o]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")})(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:Rs,getPropertiesOfType:Lc,getPropertyOfType:(t,r)=>sl(t,e.escapeLeadingUnderscores(r)),getPrivateIdentifierPropertyOfType(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=Qy(e.escapeLeadingUnderscores(r),i);return a?ev(t,a):void 0}},getTypeOfPropertyOfType:(t,r)=>bo(t,e.escapeLeadingUnderscores(r)),getIndexInfoOfType:(e,t)=>ml(e,0===t?Ye:Qe),getIndexInfosOfType:fl,getSignaturesOfType:ll,getIndexTypeOfType:(e,t)=>gl(e,0===t?Ye:Qe),getIndexType:e=>Ou(e),getBaseTypes:Ss,getBaseTypeOfLiteralType:jf,getWidenedType:hm,getTypeFromTypeNode(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?Up(r):Ue},getParameterType:Ib,getParameterIdentifierNameAtPosition(e,t){var r;if(317!==(null===(r=e.declaration)||void 0===r?void 0:r.kind)){var n=e.parameters.length-(U(e)?1:0);if(t<n){var i=e.parameters[t];return wb(i)?[i.escapedName,!1]:void 0}var a=e.parameters[n]||Pe;if(wb(a)){var o=cs(a);if(Kf(o)){var s=o.target.labeledElementDeclarations,c=null==s?void 0:s[t-n],l=!!(null==c?void 0:c.dotDotDotToken);return c?[kb(c),l]:void 0}return t===n?[a.escapedName,!0]:void 0}}},getPromisedTypeOfPromise:dx,getAwaitedType:e=>gx(e),getReturnTypeOfSignature:Ll,isNullableType:zy,getNullableType:Zf,getNonNullableType:tm,getNonOptionalType:nm,getTypeArguments:ld,typeToTypeNode:oe.typeToTypeNode,indexInfoToIndexSignatureDeclaration:oe.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:oe.signatureToSignatureDeclaration,symbolToEntityName:oe.symbolToEntityName,symbolToExpression:oe.symbolToExpression,symbolToTypeParameterDeclarations:oe.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:oe.symbolToParameterDeclaration,typeParameterToDeclaration:oe.typeParameterToDeclaration,getSymbolsInScope(t,r){var n=e.getParseTreeNode(t);return n?((t,r)=>{if(33554432&t.flags)return[];var n=e.createSymbolTable(),i=!1;return(()=>{for(;t;){switch(t.locals&&!di(t)&&o(t.locals,r),t.kind){case 305:if(!e.isExternalModule(t))break;case 261:s(ya(t).exports,2623475&r);break;case 260:o(ya(t).exports,8&r);break;case 226:t.name&&a(t.symbol,r);case 257:case 258:i||o(ec(ya(t)),788968&r);break;case 213:t.name&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(ue,r),i=e.isStatic(t),t=t.parent}o(se,r)})(),n.delete("this"),El(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((e=>{a(e,t)}))}function s(t,r){r&&t.forEach((t=>{e.getDeclarationOfKind(t,275)||e.getDeclarationOfKind(t,274)||a(t,r)}))}})(n,r):[]},getSymbolAtLocation(t){var r=e.getParseTreeNode(t);return r?CS(r,!0):void 0},getIndexInfosAtLocation(t){var r=e.getParseTreeNode(t);return r?(t=>{if(e.isIdentifier(t)&&e.isPropertyAccessExpression(t.parent)&&t.parent.name===t){var r=Nu(t),n=jE(t.parent.expression),i=1048576&n.flags?n.types:[n];return e.flatMap(i,(t=>e.filter(fl(t),(e=>pl(r,e.keyType)))))}})(r):void 0},getShorthandAssignmentValueSymbol(t){var r=e.getParseTreeNode(t);return r?(e=>{if(e&&297===e.kind)return ea(e.name,2208703)})(r):void 0},getExportSpecifierLocalTargetSymbol(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?(t=>e.isExportSpecifier(t)?t.parent.parent.moduleSpecifier?Bi(t.parent.parent,t):ea(t.propertyName||t.name,2998271):ea(t,2998271))(r):void 0},getExportSymbolOfSymbol:e=>ha(e.exportSymbol||e),getTypeAtLocation(t){var r=e.getParseTreeNode(t);return r?AS(r):Ue},getTypeOfAssignmentPattern(t){var r=e.getParseTreeNode(t,e.isAssignmentPattern);return r&&kS(r)||Ue},getPropertySymbolOfDestructuringAssignment(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?(t=>{var r=kS(e.cast(t.parent.parent,e.isAssignmentPattern));return r&&sl(r,t.escapedText)})(r):void 0},signatureToString:(t,r,n,i)=>Za(t,e.getParseTreeNode(r),n,i),typeToString:(t,r,n)=>eo(t,e.getParseTreeNode(r),n),symbolToString:(t,r,n,i)=>Qa(t,e.getParseTreeNode(r),n,i),typePredicateToString:(t,r,n)=>oo(t,e.getParseTreeNode(r),n),writeSignature:(t,r,n,i,a)=>Za(t,e.getParseTreeNode(r),n,i,a),writeType:(t,r,n,i)=>eo(t,e.getParseTreeNode(r),n,i),writeSymbol:(t,r,n,i,a)=>Qa(t,e.getParseTreeNode(r),n,i,a),writeTypePredicate:(t,r,n,i)=>oo(t,e.getParseTreeNode(r),n,i),getAugmentedPropertiesOfType:PS,getRootSymbols:function t(r){var n=(t=>{if(6&e.getCheckFlags(t))return e.mapDefined(ci(t).containingType.types,(e=>sl(e,t.escapedName)));if(33554432&t.flags){var r=t,n=r.leftSpread,i=r.rightSpread,a=r.syntheticOrigin;return n?[n,i]:a?[a]:e.singleElementArray((e=>{for(var t,r=e;r=ci(r).target;)t=r;return t})(t))}})(r);return n?e.flatMap(n,t):[r]},getSymbolOfExpando:fb,getContextualType(t,r){var n=e.getParseTreeNode(t,e.isExpression);if(n)return 4&r?fe(n,(()=>ey(n,r))):ey(n,r)},getContextualTypeForObjectLiteralElement(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?Gh(r,void 0):void 0},getContextualTypeForArgumentAtIndex(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&zh(n,r)},getContextualTypeForJsxAttribute(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&qh(r,void 0)},isContextSensitive:g_,getTypeOfPropertyOfContextualType:Kh,getFullyQualifiedName:Zi,getResolvedSignature:(e,t,r)=>me(e,t,r,0),getResolvedSignatureForStringLiteralCompletions:(e,t,r)=>me(e,r,void 0,32,t),getResolvedSignatureForSignatureHelp:(e,t,r)=>me(e,t,r,16),getExpandedParameters:cc,hasEffectiveRestParameter:Bb,containsArgumentsReference:Fl,getConstantValue(t){var r=e.getParseTreeNode(t,ZS);return r?eT(r):void 0},isValidPropertyAccess(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&((e,t)=>{switch(e.kind){case 206:return vv(e,106===e.expression.kind,t,hm(HE(e.expression)));case 161:return vv(e,!1,t,hm(HE(e.left)));case 200:return vv(e,!1,t,Up(e))}})(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&yv(i,r,n)},getSignatureFromDeclaration(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?Nl(r):void 0},isImplementationOfOverload(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?JS(r):void 0},getImmediateAliasedSymbol:fy,getAliasedSymbol:Ji,getEmitResolver:(e,t)=>(gS(e,t),ae),getExportsOfModule:da,getExportsAndPropertiesOfModule(t){var r=da(t),n=oa(t);if(n!==t){var i=cs(n);pa(i)&&e.addRange(r,Lc(i))}return r},forEachExportAndPropertyOfModule(e,t){fa(e).forEach(((e,r)=>{Pa(r)||t(e,r)}));var r=oa(e);if(r!==e){var n=cs(r);pa(n)&&((e,r)=>{3670016&(e=Qc(e)).flags&&Ic(e).members.forEach(((e,r)=>{Oa(e,r)&&((e,r)=>{t(e,r)})(e,r)}))})(n)}},getSymbolWalker:e.createGetSymbolWalker((e=>jl(e)||Re),Ml,Ll,Ss,Ic,cs,ig,Uc,e.getFirstIdentifier,ld),getAmbientModules:()=>(Vt||(Vt=[],se.forEach(((e,t)=>{a.test(t)&&Vt.push(e)}))),Vt),getJsxIntrinsicTagNamesAt(t){var r=Ey(N.IntrinsicElements,t);return r?Lc(r):e.emptyArray},isOptionalParameter(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&Sl(r)},tryGetMemberInModuleExports:(t,r)=>ua(e.escapeLeadingUnderscores(t),r),tryGetMemberInModuleExportsAndProperties:(t,r)=>((e,t)=>{var r=ua(e,t);if(r)return r;var n=oa(t);if(n!==t){var i=cs(n);return pa(i)?sl(i,e):void 0}})(e.escapeLeadingUnderscores(t),r),tryFindAmbientModule:e=>Dl(e,!0),tryFindAmbientModuleWithoutAugmentations:e=>Dl(e,!1),getApparentType:Yc,getUnionType:fu,isTypeAssignableTo:T_,createAnonymousType:Ra,createSignature:ic,createSymbol:Zn,createIndexInfo:ql,getAnyType:()=>Re,getStringType:()=>Ye,getNumberType:()=>Qe,createPromiseType:Kb,createArrayType:Gd,getElementTypeOfArrayType:Nf,getBooleanType:()=>at,getFalseType:e=>e?et:tt,getTrueType:e=>e?rt:nt,getVoidType:()=>st,getUndefinedType:()=>Ke,getNullType:()=>qe,getESSymbolType:()=>ot,getNeverType:()=>ct,getOptionalType:()=>Ge,getPromiseType:()=>Ud(!1),getPromiseLikeType:()=>jd(!1),isSymbolAccessible:Ka,isArrayType:Tf,isTupleType:Kf,isArrayLikeType:wf,isTypeInvalidDueToUnionDiscriminant:(e,t)=>t.properties.some((t=>{var r=t.name&&Nu(t.name),n=r&&Js(r)?Ys(r):void 0,i=void 0===n?void 0:bo(e,n);return!!i&&Uf(i)&&!T_(AS(t),i)})),getExactOptionalProperties:e=>Lc(e).filter((e=>sm(cs(e)))),getAllPossiblePropertiesOfTypes(t){var r=fu(t);if(!(1048576&r.flags))return PS(r);for(var n=e.createSymbolTable(),i=0,a=t;i<a.length;i++)for(var o=0,s=PS(a[i]);o<s.length;o++){var c=s[o].escapedName;if(!n.has(c)){var l=Zc(r,c);l&&n.set(c,l)}}return e.arrayFrom(n.values())},getSuggestedSymbolForNonexistentProperty:dv,getSuggestionForNonexistentProperty:pv,getSuggestedSymbolForNonexistentJSXAttribute:uv,getSuggestedSymbolForNonexistentSymbol:(t,r,n)=>_v(t,e.escapeLeadingUnderscores(r),n),getSuggestionForNonexistentSymbol:(t,r,n)=>((t,r,n)=>{var i=_v(t,r,n);return i&&e.symbolName(i)})(t,e.escapeLeadingUnderscores(r),n),getSuggestedSymbolForNonexistentModule:fv,getSuggestionForNonexistentExport(t,r){var n=fv(t,r);return n&&e.symbolName(n)},getSuggestedSymbolForNonexistentClassMember:lv,getBaseConstraintOfType:Wc,getDefaultFromTypeParameter:e=>e&&262144&e.flags?qc(e):void 0,resolveName:(t,r,n,i)=>mi(r,e.escapeLeadingUnderscores(t),n,void 0,void 0,!1,i),getJsxNamespace:t=>e.unescapeLeadingUnderscores(Vn(t)),getJsxFragmentFactory(t){var r=pT(t);return r&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(r).escapedText)},getAccessibleSymbolChain:Ua,getTypePredicateOfSignature:Ml,resolveExternalModuleName(t){var r=e.getParseTreeNode(t,e.isExpression);return r&&ra(r,r,!0)},resolveExternalModuleSymbol:oa,tryGetThisTypeAt(t,r,n){var i=e.getParseTreeNode(t);return i&&wh(i,r,n)},getTypeArgumentConstraint(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r&&(t=>{var r=e.tryCast(t.parent,e.isTypeReferenceType);if(r){var n=rx(r);if(n){var i=Uc(n[r.typeArguments.indexOf(t)]);return i&&u_(i,Kp(n,ex(r,n)))}}})(r)},getSuggestionDiagnostics(n,i){var a,o=e.getParseTreeNode(n,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(o,H,t))return e.emptyArray;try{return r=i,yS(o),e.Debug.assert(!!(1&li(o).flags)),a=e.addRange(a,Nn.getDiagnostics(o.fileName)),kx(mS(o),((t,r,n)=>{e.containsParseError(t)||fS(r,!!(16777216&t.flags))||(a||(a=[])).push(m(m({},n),{category:e.DiagnosticCategory.Suggestion}))})),a||e.emptyArray}finally{r=void 0}},runWithCancellationToken(e,t){try{return r=e,t(_e)}finally{r=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:gs,isDeclarationVisible:_o,isPropertyAccessible:bv,getTypeOnlyAliasDeclaration:qi,getMemberOverrideModifierStatus(t,r){if(!r.name)return 0;var n=ya(t),i=Rs(n),a=rc(i),o=cs(n),s=e.getEffectiveBaseTypeNode(t)&&Ss(i),c=(null==s?void 0:s.length)?rc(e.first(s),i.thisType):void 0,l=xs(i),d=r.parent?e.hasOverrideModifier(r):e.hasSyntacticModifier(r,16384),u=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(r.name));return jD(t,o,l,c,i,a,d,e.hasAbstractModifier(r),e.isStatic(r),!1,u)}};function fe(t,r){var n=e.findAncestor(t,e.isCallLikeExpression),i=n&&li(n).resolvedSignature;if(n){var a=t;do{li(a).skipDirectInference=!0,a=a.parent}while(a&&a!==n);li(n).resolvedSignature=void 0}var o=r();if(n){a=t;do{li(a).skipDirectInference=void 0,a=a.parent}while(a&&a!==n);li(n).resolvedSignature=i}return o}function me(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isCallLikeExpression);de=n;var s=o?a?fe(a,(()=>ub(o,r,i))):ub(o,r,i):void 0;return de=void 0,s}var ge=new e.Map,he=new e.Map,ye=new e.Map,ve=new e.Map,be=new e.Map,Ee=new e.Map,xe=new e.Map,De=new e.Map,Se=new e.Map,Te=new e.Map,Ce=new e.Map,Ae=new e.Map,ke=new e.Map,Ne=[],we=new e.Map,Fe=new e.Set,Pe=Zn(4,"unknown"),Ie=Zn(0,"__resolving__"),Oe=new e.Map,Me=new e.Map,Re=Na(1,"any"),Le=Na(1,"any",262144),Be=Na(1,"any"),Ue=Na(1,"error"),je=Na(1,"unresolved"),Ve=Na(1,"any",65536),ze=Na(1,"intrinsic"),He=Na(2,"unknown"),We=Na(2,"unknown"),Ke=Na(32768,"undefined"),Je=$?Ke:Na(32768,"undefined",65536),Ge=Na(32768,"undefined"),$e=ne?Na(32768,"undefined"):Ke,qe=Na(65536,"null"),Xe=$?qe:Na(65536,"null",65536),Ye=Na(4,"string"),Qe=Na(8,"number"),Ze=Na(64,"bigint"),et=Na(512,"false"),tt=Na(512,"false"),rt=Na(512,"true"),nt=Na(512,"true");rt.regularType=nt,rt.freshType=rt,nt.regularType=nt,nt.freshType=rt,et.regularType=tt,et.freshType=et,tt.regularType=tt,tt.freshType=et;var it,at=fu([tt,nt]),ot=Na(4096,"symbol"),st=Na(16384,"void"),ct=Na(131072,"never"),lt=Na(131072,"never",262144),dt=Na(131072,"never"),ut=Na(131072,"never"),pt=Na(67108864,"object"),_t=fu([Ye,Qe]),ft=fu([Ye,Qe,ot]),mt=te?Ye:ft,gt=fu([Qe,Ze]),ht=fu([Ye,Qe,at,Ze,qe,Ke]),yt=Ru(["",""],[Qe]),vt=$p((e=>{return 262144&e.flags?(t=e).constraint===He?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=Fa(t.symbol),t.restrictiveInstantiation.constraint=He,t.restrictiveInstantiation):e;var t}),(()=>"(restrictive mapper)")),bt=$p((e=>262144&e.flags?Be:e),(()=>"(permissive mapper)")),Et=Na(131072,"never"),xt=$p((e=>262144&e.flags?Et:e),(()=>"(unique literal mapper)")),Dt=$p((e=>(!it||e!==Mt&&e!==Rt&&e!==Lt||it(!0),e)),(()=>"(unmeasurable reporter)")),St=$p((e=>(!it||e!==Mt&&e!==Rt&&e!==Lt||it(!1),e)),(()=>"(unreliable reporter)")),Tt=Ra(void 0,V,e.emptyArray,e.emptyArray,e.emptyArray),Ct=Ra(void 0,V,e.emptyArray,e.emptyArray,e.emptyArray);Ct.objectFlags|=2048;var At=Zn(2048,"__type");At.members=e.createSymbolTable();var kt=Ra(At,V,e.emptyArray,e.emptyArray,e.emptyArray),Nt=$?fu([Ke,qe,Ra(void 0,V,e.emptyArray,e.emptyArray,e.emptyArray)]):He,wt=Ra(void 0,V,e.emptyArray,e.emptyArray,e.emptyArray);wt.instantiations=new e.Map;var Ft=Ra(void 0,V,e.emptyArray,e.emptyArray,e.emptyArray);Ft.objectFlags|=262144;var Pt=Ra(void 0,V,e.emptyArray,e.emptyArray,e.emptyArray),It=Ra(void 0,V,e.emptyArray,e.emptyArray,e.emptyArray),Ot=Ra(void 0,V,e.emptyArray,e.emptyArray,e.emptyArray),Mt=Fa(),Rt=Fa();Rt.constraint=Mt;var Lt=Fa(),Bt=Fa(),Ut=Fa();Ut.constraint=Bt;var jt,Vt,zt,Ht,Wt,Kt,Jt,Gt,$t,qt,Xt,Yt,Qt,Zt,er,tr,rr,nr,ir,ar,or,sr,cr,lr,dr,ur,pr,_r,fr,mr,gr,hr,yr,vr,br,Er,xr,Dr,Sr,Tr,Cr,Ar,kr,Nr,wr,Fr,Pr,Ir,Or,Mr,Rr=Cl(1,"<<unresolved>>",0,Re),Lr=ic(void 0,void 0,void 0,e.emptyArray,Re,void 0,0,0),Br=ic(void 0,void 0,void 0,e.emptyArray,Ue,void 0,0,0),Ur=ic(void 0,void 0,void 0,e.emptyArray,Re,void 0,0,0),jr=ic(void 0,void 0,void 0,e.emptyArray,lt,void 0,0,0),Vr=ql(Qe,Ye,!0),zr=new e.Map,Hr={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},Wr=cD(Re,Re,Re),Kr=cD(Re,Re,He),Jr=cD(ct,Re,Ke),Gr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:e=>br||(br=Id("AsyncIterator",3,e))||wt,getGlobalIterableType:e=>vr||(vr=Id("AsyncIterable",1,e))||wt,getGlobalIterableIteratorType:e=>Er||(Er=Id("AsyncIterableIterator",1,e))||wt,getGlobalGeneratorType:e=>xr||(xr=Id("AsyncGenerator",3,e))||wt,resolveIterationType:gx,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},$r={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:e=>fr||(fr=Id("Iterator",3,e))||wt,getGlobalIterableType:zd,getGlobalIterableIteratorType:e=>mr||(mr=Id("IterableIterator",1,e))||wt,getGlobalGeneratorType:e=>gr||(gr=Id("Generator",3,e))||wt,resolveIterationType:(e,t)=>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},qr=new e.Map,Xr=!1,Yr=new e.Map,Qr=0,Zr=0,en=0,tn=!1,rn=0,nn=Fp(""),an=Pp(0),on=Ip({negative:!1,base10Value:"0"}),sn=[],cn=[],ln=[],dn=0,un=[],pn=[],_n=[],fn=[],mn=[],gn=[],hn=[],yn=[],vn=[],bn=[],En=[],xn=[],Dn=[],Sn=[],Tn=[],Cn=[],An=[],kn=e.createDiagnosticCollection(),Nn=e.createDiagnosticCollection(),wn=fu(e.arrayFrom(D.keys(),Fp)),Fn=new e.Map,Pn=new e.Map,In=new e.Map,On=new e.Map,Mn=new e.Map,Rn=new e.Map,Ln=e.createSymbolTable();Ln.set(ce.escapedName,ce);var Bn=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===H.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return(()=>{for(var r=0,n=t.getSourceFiles();r<n.length;r++){var i=n[r];e.bindSourceFile(i,H)}var a,o,s,c;jt=new e.Map;for(var l=0,d=t.getSourceFiles();l<d.length;l++)if(!(i=d[l]).redirectInfo){if(!e.isExternalOrCommonJsModule(i)){var u=i.locals.get("globalThis");if(null==u?void 0:u.declarations)for(var p=0,_=u.declarations;p<_.length;p++){var f=_[p];kn.add(e.createDiagnosticForNode(f,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}oi(se,i.locals)}i.jsGlobalAugmentations&&oi(se,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(zt=e.concatenate(zt,i.patternAmbientModules)),i.moduleAugmentations.length&&(a||(a=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports&&i.symbol.globalExports.forEach(((e,t)=>{se.has(t)||se.set(t,e)}))}if(a)for(var m=0,g=a;m<g.length;m++)for(var h=g[m],y=0,v=h;y<v.length;y++){var b=v[y];e.isGlobalScopeAugmentation(b.parent)&&si(b)}if(o=se,s=Ln,c=e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,s.forEach(((t,r)=>{var n=o.get(r);n?e.forEach(n.declarations,((t,r)=>n=>kn.add(e.createDiagnosticForNode(n,r,t)))(e.unescapeLeadingUnderscores(r),c)):o.set(r,t)})),ci(ce).type=Je,ci(ue).type=Id("IArguments",0,!0),ci(Pe).type=Ue,ci(le).type=wa(16,le),$t=Id("Array",1,!0),Wt=Id("Object",0,!0),Kt=Id("Function",0,!0),Jt=X&&Id("CallableFunction",0,!0)||Kt,Gt=X&&Id("NewableFunction",0,!0)||Kt,Xt=Id("String",0,!0),Yt=Id("Number",0,!0),Qt=Id("Boolean",0,!0),Zt=Id("RegExp",0,!0),tr=Gd(Re),(rr=Gd(Le))===Tt&&(rr=Ra(void 0,V,e.emptyArray,e.emptyArray,e.emptyArray)),qt=Hd("ReadonlyArray",1)||$t,nr=qt?Kd(qt,[Re]):tr,er=Hd("ThisType",1),a)for(var E=0,x=a;E<x.length;E++)for(var D=0,S=h=x[E];D<S.length;D++)b=S[D],e.isGlobalScopeAugmentation(b.parent)||si(b);jt.forEach((t=>{var r=t.firstFile,n=t.secondFile,i=t.conflictingSymbols;if(i.size<8)i.forEach(((t,r)=>{for(var n=t.isBlockScoped,i=t.firstFileLocations,a=t.secondFileLocations,o=n?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,s=0,c=i;s<c.length;s++)ai(c[s],o,r,a);for(var l=0,d=a;l<d.length;l++)ai(d[l],o,r,i)}));else{var a=e.arrayFrom(i.keys()).join(", ");kn.add(e.addRelatedInfo(e.createDiagnosticForNode(r,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(n,e.Diagnostics.Conflicts_are_in_this_file))),kn.add(e.addRelatedInfo(e.createDiagnosticForNode(n,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(r,e.Diagnostics.Conflicts_are_in_this_file)))}})),jt=void 0})(),_e;function Un(e){return e?ke.get(e):void 0}function jn(e,t){return e&&ke.set(e,t),t}function Vn(t){if(t){var r=e.getSourceFileOfNode(t);if(r)if(e.isJsxOpeningFragment(t)){if(r.localJsxFragmentNamespace)return r.localJsxFragmentNamespace;var n=r.pragmas.get("jsxfrag");if(n){var i=e.isArray(n)?n[0]:n;if(r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,W),e.visitNode(r.localJsxFragmentFactory,Hn),r.localJsxFragmentFactory)return r.localJsxFragmentNamespace=e.getFirstIdentifier(r.localJsxFragmentFactory).escapedText}var a=pT(t);if(a)return r.localJsxFragmentFactory=a,r.localJsxFragmentNamespace=e.getFirstIdentifier(a).escapedText}else{var o=zn(r);if(o)return r.localJsxNamespace=o}}return Or||(Or="React",H.jsxFactory?(Mr=e.parseIsolatedEntityName(H.jsxFactory,W),e.visitNode(Mr,Hn),Mr&&(Or=e.getFirstIdentifier(Mr).escapedText)):H.reactNamespace&&(Or=e.escapeLeadingUnderscores(H.reactNamespace))),Mr||(Mr=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(Or)),"createElement")),Or}function zn(t){if(t.localJsxNamespace)return t.localJsxNamespace;var r=t.pragmas.get("jsx");if(r){var n=e.isArray(r)?r[0]:r;if(t.localJsxFactory=e.parseIsolatedEntityName(n.arguments.factory,W),e.visitNode(t.localJsxFactory,Hn),t.localJsxFactory)return t.localJsxNamespace=e.getFirstIdentifier(t.localJsxFactory).escapedText}}function Hn(t){return e.setTextRangePosEnd(t,-1,-1),e.visitEachChild(t,Hn,e.nullTransformationContext)}function Wn(e,t,r,n,i,a,o){var s=Jn(t,r,n,i,a,o);return s.skippedOn=e,s}function Kn(t,r,n,i,a,o){return t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o)}function Jn(e,t,r,n,i,a){var o=Kn(e,t,r,n,i,a);return kn.add(o),o}function Gn(t,r){t?kn.add(r):Nn.add(m(m({},r),{category:e.DiagnosticCategory.Suggestion}))}function $n(t,r,n,i,a,o,s){if(r.pos<0||r.end<0){if(!t)return;var c=e.getSourceFileOfNode(r);Gn(t,"message"in n?e.createFileDiagnostic(c,0,0,n,i,a,o,s):e.createDiagnosticForFileFromMessageChain(c,n))}else Gn(t,"message"in n?e.createDiagnosticForNode(r,n,i,a,o,s):e.createDiagnosticForNodeFromMessageChain(r,n))}function qn(t,r,n,i,a,o,s){var c=Jn(t,n,i,a,o,s);if(r){var l=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(c,l)}return c}function Xn(t,r){var n=Array.isArray(t)?e.forEach(t,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(t);return n&&e.addRelatedInfo(r,e.createDiagnosticForNode(n,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),Nn.add(r),r}function Yn(e){return!!(268435456&Ry(e))}function Qn(t,r,n){return Xn(r,e.createDiagnosticForNode(t,e.Diagnostics._0_is_deprecated,n))}function Zn(e,t,r){E++;var n=new g(33554432|e,t);return n.checkFlags=r||0,n}function ei(e){var t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function ti(e,t){t.mergeId||(t.mergeId=l,l++),un[t.mergeId]=e}function ri(t){var r=Zn(t.flags,t.escapedName);return r.declarations=t.declarations?t.declarations.slice():[],r.parent=t.parent,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),t.members&&(r.members=new e.Map(t.members)),t.exports&&(r.exports=new e.Map(t.exports)),ti(r,t),r}function ni(t,r,n){if(void 0===n&&(n=!1),!(t.flags&ei(r.flags))||67108864&(r.flags|t.flags)){if(r===t)return t;if(!(33554432&t.flags)){var i=Ki(t);if(i===Pe)return r;t=ri(i)}512&r.flags&&512&t.flags&&t.constEnumOnlyModule&&!r.constEnumOnlyModule&&(t.constEnumOnlyModule=!1),t.flags|=r.flags,r.valueDeclaration&&e.setValueDeclaration(t,r.valueDeclaration),e.addRange(t.declarations,r.declarations),r.members&&(t.members||(t.members=e.createSymbolTable()),oi(t.members,r.members,n)),r.exports&&(t.exports||(t.exports=e.createSymbolTable()),oi(t.exports,r.exports,n)),n||ti(t,r)}else if(1024&t.flags)t!==le&&Jn(r.declarations&&e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Qa(t));else{var a=!!(384&t.flags||384&r.flags),o=!!(2&t.flags||2&r.flags),s=a?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:o?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,c=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),l=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),d=e.isPlainJsFile(c,H.checkJs),u=e.isPlainJsFile(l,H.checkJs),p=Qa(r);if(c&&l&&jt&&!a&&c!==l){var _=-1===e.comparePaths(c.path,l.path)?c:l,f=_===c?l:c,m=e.getOrUpdate(jt,"".concat(_.path,"|").concat(f.path),(()=>({firstFile:_,secondFile:f,conflictingSymbols:new e.Map}))),g=e.getOrUpdate(m.conflictingSymbols,p,(()=>({isBlockScoped:o,firstFileLocations:[],secondFileLocations:[]})));d||h(g.firstFileLocations,r),u||h(g.secondFileLocations,t)}else d||ii(r,s,p,t),u||ii(t,s,p,r)}return t;function h(t,r){if(r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];e.pushIfUnique(t,a)}}}function ii(t,r,n,i){e.forEach(t.declarations,(e=>{ai(e,r,n,i.declarations)}))}function ai(t,r,n,i){for(var a=(e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t,o=((t,r,n,i,a,o)=>{var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o);return kn.lookup(s)||(kn.add(s),s)})(a,r,n),s=t=>{var r=(e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t;if(r===a)return"continue";o.relatedInformation=o.relatedInformation||[];var i=e.createDiagnosticForNode(r,e.Diagnostics._0_was_also_declared_here,n),s=e.createDiagnosticForNode(r,e.Diagnostics.and_here);if(e.length(o.relatedInformation)>=5||e.some(o.relatedInformation,(t=>0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i))))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,l=i||e.emptyArray;c<l.length;c++)s(l[c])}function oi(e,t,r){void 0===r&&(r=!1),t.forEach(((t,n)=>{var i=e.get(n);e.set(n,i?ni(i,t,r):t)}))}function si(t){var r,n,i,a=t.parent;if((null===(r=a.symbol.declarations)||void 0===r?void 0:r[0])===a)if(e.isGlobalScopeAugmentation(a))oi(se,a.symbol.exports);else{var o=na(t,t,16777216&t.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!o)return;if(1920&(o=oa(o)).flags)if(e.some(zt,(e=>o===e.symbol))){var s=ni(a.symbol,o,!0);Ht||(Ht=new e.Map),Ht.set(t.text,s)}else{if((null===(n=o.exports)||void 0===n?void 0:n.get("__export"))&&(null===(i=a.symbol.exports)||void 0===i?void 0:i.size))for(var c=Zs(o,"resolvedExports"),l=0,d=e.arrayFrom(a.symbol.exports.entries());l<d.length;l++){var u=d[l],p=u[0],_=u[1];c.has(p)&&!o.exports.has(p)&&ni(c.get(p),_)}ni(o,a.symbol)}else Jn(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}else e.Debug.assert(a.symbol.declarations.length>1)}function ci(e){if(33554432&e.flags)return e;var t=O(e);return pn[t]||(pn[t]=new F)}function li(e){var t=I(e);return _n[t]||(_n[t]=new P)}function di(t){return 305===t.kind&&!e.isExternalOrCommonJsModule(t)}function ui(t,r,n){if(n){var i=ha(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=Ji(i);if(a===Pe||a.flags&n)return i}}}}function pi(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),o=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(K&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(H)||ag(n)||16777216&r.flags)return!0;if(l(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(203===r.kind){var c=e.getAncestor(n,203);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<c.pos:pi(e.getAncestor(r,254),n)}return 254===r.kind?!((t,r)=>{switch(t.parent.parent.kind){case 237:case 242:case 244:if(Ti(r,t,o))return!0}var n=t.parent.parent;return e.isForInOrOfStatement(n)&&Ti(r,n.expression,o)})(r,n):e.isClassDeclaration(r)?!e.findAncestor(n,(t=>e.isComputedPropertyName(t)&&t.parent.parent===r)):e.isPropertyDeclaration(r)?!d(r,n,!1):!e.isParameterPropertyDeclaration(r,r.parent)||!(99===e.getEmitScriptTarget(H)&&J&&e.getContainingClass(r)===e.getContainingClass(n)&&l(n,r))}return!(!(275===n.parent.kind||271===n.parent.kind&&n.parent.isExportEquals)&&(271!==n.kind||!n.isExportEquals)&&!(8388608&n.flags||ag(n)||e.findAncestor(n,(t=>e.isInterfaceDeclaration(t)||e.isTypeAliasDeclaration(t))))&&(!l(n,r)||99===e.getEmitScriptTarget(H)&&J&&e.getContainingClass(r)&&(e.isPropertyDeclaration(r)||e.isParameterPropertyDeclaration(r,r.parent))&&d(r,n,!0)));function l(t,r){return!!e.findAncestor(t,(n=>{if(n===o)return"quit";if(e.isFunctionLike(n))return!0;if(e.isClassStaticBlockDeclaration(n))return r.pos<t.pos;var i=e.tryCast(n.parent,e.isPropertyDeclaration);if(i&&i.initializer===n)if(e.isStatic(n.parent)){if(169===r.kind)return!0;if(e.isPropertyDeclaration(r)&&e.getContainingClass(t)===e.getContainingClass(r)){var a=r.name;if((e.isIdentifier(a)||e.isPrivateIdentifier(a))&&((t,r,n,i,a)=>{for(var o=0,s=n;o<s.length;o++){var c=s[o];if(c.pos>=i&&c.pos<=a){var l=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);if(e.setParent(l.expression,l),e.setParent(l,c),l.flowNode=c.returnFlowNode,!W_(fh(l,r,em(r))))return!0}}return!1})(a,cs(ya(r)),e.filter(r.parent.members,e.isClassStaticBlockDeclaration),r.parent.pos,n.pos))return!0}}else if(167!==r.kind||e.isStatic(r)||e.getContainingClass(t)!==e.getContainingClass(r))return!0;return!1}))}function d(t,r,n){return!(r.end>t.end)&&void 0===e.findAncestor(r,(r=>{if(r===t)return"quit";switch(r.kind){case 214:return!0;case 167:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 235:switch(r.parent.kind){case 172:case 169:case 173:return!0;default:return!1}default:return!1}}))}}function _i(t,r,n){var i=e.getEmitScriptTarget(H),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=li(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,(e=>s(e.name)||!!e.initializer&&s(e.initializer)))||!1),!o.declarationRequiresScopeChange}return!1;function s(t){switch(t.kind){case 214:case 213:case 256:case 171:return!1;case 169:case 172:case 173:case 296:return s(t.name);case 167:return e.hasStaticModifier(t)?i<99||!J: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 fi(t){return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||e.isJSDocTypeTag(t)&&e.isConstTypeReference(t.typeExpression)}function mi(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),void 0===s&&(s=!0),gi(e,t,r,n,i,a,o,s,ui)}function gi(t,r,n,i,a,o,s,c,l){var d,u,p,f,m,g,h,y,v,b=t,E=!1,x=t,D=!1;e:for(;t;){if("const"===r&&fi(t))return;if(t.locals&&!di(t)&&(f=l(t.locals,r,n))){var S=!0;if(e.isFunctionLike(t)&&m&&m!==t.body?(n&f.flags&788968&&320!==m.kind&&(S=!!(262144&f.flags)&&(m===t.type||164===m.kind||340===m.kind||341===m.kind||163===m.kind)),n&f.flags&3&&(_i(f,t,m)?S=!1:1&f.flags&&(S=164===m.kind||m===t.type&&!!e.findAncestor(f.valueDeclaration,e.isParameter)))):189===t.kind&&(S=m===t.trueType),S)break e;f=void 0}switch(E=E||yi(t,m),t.kind){case 305:if(!e.isExternalOrCommonJsModule(t))break;D=!0;case 261:var T=(null===(d=ya(t))||void 0===d?void 0:d.exports)||V;if(305===t.kind||e.isModuleDeclaration(t)&&16777216&t.flags&&!e.isGlobalScopeAugmentation(t)){if(f=T.get("default")){var C=e.getLocalSymbolForExportDefault(f);if(C&&f.flags&n&&C.escapedName===r)break e;f=void 0}var A=T.get(r);if(A&&2097152===A.flags&&(e.getDeclarationOfKind(A,275)||e.getDeclarationOfKind(A,274)))break}if("default"!==r&&(f=l(T,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||(null===(u=f.declarations)||void 0===u?void 0:u.some(e.isJSDocTypeAlias)))break e;f=void 0}break;case 260:if(f=l((null===(p=ya(t))||void 0===p?void 0:p.exports)||V,r,8&n))break e;break;case 167:if(!e.isStatic(t)){var k=Ca(t.parent);k&&k.locals&&l(k.locals,r,111551&n)&&(e.Debug.assertNode(t,e.isPropertyDeclaration),h=t)}break;case 257:case 226:case 258:if(f=l(ya(t).members||V,r,788968&n)){if(!Ei(f,t)){f=void 0;break}if(m&&e.isStatic(m))return void Jn(x,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(226===t.kind&&32&n){var N=t.name;if(N&&r===N.escapedText){f=t.symbol;break e}}break;case 228:if(m===t.expression&&94===t.parent.token){var w=t.parent.parent;if(e.isClassLike(w)&&(f=l(ya(w).members,r,788968&n)))return void(i&&Jn(x,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 162:if(v=t.parent.parent,(e.isClassLike(v)||258===v.kind)&&(f=l(ya(v).members,r,788968&n)))return void Jn(x,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 214:if(e.getEmitScriptTarget(H)>=2)break;case 169:case 171:case 172:case 173:case 256:if(3&n&&"arguments"===r){f=ue;break e}break;case 213:if(3&n&&"arguments"===r){f=ue;break e}if(16&n){var F=t.name;if(F&&r===F.escapedText){f=t.symbol;break e}}break;case 165:t.parent&&164===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||257===t.parent.kind)&&(t=t.parent);break;case 345:case 338:case 339:var P=e.getJSDocRoot(t);P&&(t=P.parent);break;case 164:m&&(m===t.initializer||m===t.name&&e.isBindingPattern(m))&&(y||(y=t));break;case 203:m&&(m===t.initializer||m===t.name&&e.isBindingPattern(m))&&e.isParameterDeclaration(t)&&!y&&(y=t);break;case 190:if(262144&n){var I=t.typeParameter.name;if(I&&r===I.escapedText){f=t.typeParameter.symbol;break e}}}vi(t)&&(g=t),m=t,t=e.isJSDocTemplateTag(t)?e.getEffectiveContainerForJSDocTemplateTag(t)||t.parent:(e.isJSDocParameterTag(t)||e.isJSDocReturnTag(t))&&e.getHostSignatureFromJSDoc(t)||t.parent}if(!o||!f||g&&f===g.symbol||(f.isReferenced|=n),!f){if(m&&(e.Debug.assert(305===m.kind),m.commonJsModuleIndicator&&"exports"===r&&n&m.symbol.flags))return m.symbol;s||(f=l(se,r,n))}if(!f&&b&&e.isInJSFile(b)&&b.parent&&e.isRequireCall(b.parent,!1))return pe;function O(){return!(!h||J&&e.getEmitScriptTarget(H)>=9||(Jn(x,x&&h.type&&e.textRangeContainsPositionInclusive(h.type,x.pos)?e.Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(h.name),bi(a)),0))}if(f){if(!O())return i&&_((()=>{if(x&&(2&n||(32&n||384&n)&&111551==(111551&n))){var t=Sa(f);(2&t.flags||32&t.flags||384&t.flags)&&((t,r)=>{var n;if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),!(67108881&t.flags&&32&t.flags)){var i=null===(n=t.declarations)||void 0===n?void 0:n.find((t=>e.isBlockOrCatchScoped(t)||e.isClassLike(t)||260===t.kind));if(void 0===i)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(16777216&i.flags||pi(i,r))){var a=void 0,o=e.declarationNameToString(e.getNameOfDeclaration(i));2&t.flags?a=Jn(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,o):32&t.flags?a=Jn(r,e.Diagnostics.Class_0_used_before_its_declaration,o):256&t.flags?a=Jn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o):(e.Debug.assert(!!(128&t.flags)),e.shouldPreserveConstEnums(H)&&(a=Jn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}}})(t,x)}if(f&&D&&111551==(111551&n)&&!(8388608&b.flags)){var i=ha(f);e.length(i.declarations)&&e.every(i.declarations,(t=>e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports))&&$n(!H.allowUmdGlobalAccess,x,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(f&&y&&!E&&111551==(111551&n)){var a=ha(tc(f)),o=e.getRootDeclaration(y);a===ya(y)?Jn(x,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(y.name)):a.valueDeclaration&&a.valueDeclaration.pos>y.pos&&o.parent.locals&&l(o.parent.locals,a.escapedName,n)===a&&Jn(x,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(y.name),e.declarationNameToString(x))}if(f&&x&&111551&n&&2097152&f.flags&&!(111551&f.flags)&&!e.isValidTypeOnlyAliasUseSite(x)){var s=qi(f);if(s){var c=275===s.kind?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,d=e.unescapeLeadingUnderscores(r);hi(Jn(x,c,d),s,d)}}})),f}else i&&_((()=>{if(!x||!(((t,r,n)=>{if(!e.isIdentifier(t)||t.escapedText!==r||bS(t)||ag(t))return!1;for(var i=e.getThisContainer(t,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=ya(a.parent);if(!o)break;if(sl(cs(o),r))return Jn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,bi(n),Qa(o)),!0;if(a===i&&!e.isStatic(a)&&sl(Rs(o).thisType,r))return Jn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,bi(n)),!0}a=a.parent}return!1})(x,r,a)||O()||xi(x)||((t,r,n)=>{var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=Ki(mi(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(sl(Rs(a),s))return Jn(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 Jn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1})(x,r,n)||((t,r)=>!(!Si(r)||275!==t.parent.kind||(Jn(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),0)))(x,r)||((t,r,n)=>{if(111551&n){if(Si(r))return(t=>{var r=t.parent.parent,n=r.parent;if(r&&n){var i=e.isHeritageClause(r)&&94===r.token,a=e.isInterfaceDeclaration(n);return i&&a}return!1})(t)?Jn(t,e.Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,e.unescapeLeadingUnderscores(r)):Jn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=Ki(mi(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags)){var a=e.unescapeLeadingUnderscores(r);return(e=>{switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1})(r)?Jn(t,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,a):((t,r)=>{var n=e.findAncestor(t.parent,(t=>!e.isComputedPropertyName(t)&&!e.isPropertySignature(t)&&(e.isTypeLiteralNode(t)||"quit")));if(n&&1===n.members.length){var i=Rs(r);return!!(1048576&i.flags)&&pE(i,384,!0)}return!1})(t,i)?Jn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,a,"K"===a?"P":"K"):Jn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,a),!0}}return!1})(x,r,n)||((t,r,n)=>{if(111127&n){if(Ki(mi(t,r,1024,void 0,void 0,!1)))return Jn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n&&Ki(mi(t,r,1536,void 0,void 0,!1)))return Jn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0;return!1})(x,r,n)||((t,r,n)=>{if(788584&n){var i=Ki(mi(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return Jn(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})(x,r,n))){var t=void 0,o=void 0;if(a&&(o=(t=>{for(var r=bi(t),n=e.getScriptTargetFeatures(),i=0,a=e.getOwnKeys(n);i<a.length;i++){var o=a[i],s=e.getOwnKeys(n[o]);if(void 0!==s&&e.contains(s,r))return o}})(a))&&Jn(x,i,bi(a),o),!o&&c&&dn<10&&((null==(t=_v(b,r,n))?void 0:t.valueDeclaration)&&e.isAmbientModule(t.valueDeclaration)&&e.isGlobalScopeAugmentation(t.valueDeclaration)&&(t=void 0),t)){var s=Qa(t),l=nv(b,t,!1),d=1920===n||a&&"string"!=typeof a&&e.nodeIsSynthesized(a)?e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1:l?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,u=Kn(x,d,bi(a),s);Gn(!l,u),t.valueDeclaration&&e.addRelatedInfo(u,e.createDiagnosticForNode(t.valueDeclaration,e.Diagnostics._0_is_declared_here,s))}t||o||!a||Jn(x,i,bi(a)),dn++}}))}function hi(t,r,n){return r?e.addRelatedInfo(t,e.createDiagnosticForNode(r,275===r.kind?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,n)):t}function yi(t,r){return 214!==t.kind&&213!==t.kind?e.isTypeQueryNode(t)||(e.isFunctionLikeDeclaration(t)||167===t.kind&&!e.isStatic(t))&&(!r||r!==t.name):!(r&&r===t.name||!t.asteriskToken&&!e.hasSyntacticModifier(t,256)&&e.getImmediatelyInvokedFunctionExpression(t))}function vi(e){switch(e.kind){case 256:case 257:case 258:case 260:case 259:case 261:return!0;default:return!1}}function bi(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function Ei(t,r){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(163===a.kind&&(e.isJSDocTemplateTag(a.parent)?e.getJSDocHost(a.parent):a.parent)===r)return!(e.isJSDocTemplateTag(a.parent)&&e.find(a.parent.parent.tags,e.isJSDocTypeAlias))}return!1}function xi(t){var r=Di(t);return!(!r||!ea(r,64,!0)||(Jn(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r)),0))}function Di(t){switch(t.kind){case 79:case 206:return t.parent?Di(t.parent):void 0;case 228:if(e.isEntityNameExpression(t.expression))return t.expression;default:return}}function Si(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function Ti(t,r,n){return!!r&&!!e.findAncestor(t,(t=>t===r||!(t!==n&&(!e.isFunctionLike(t)||e.getImmediatelyInvokedFunctionExpression(t)))&&"quit"))}function Ci(e){switch(e.kind){case 265:return e;case 267:return e.parent;case 268:return e.parent.parent;case 270:return e.parent.parent.parent;default:return}}function Ai(t){return t.declarations&&e.findLast(t.declarations,ki)}function ki(t){return 265===t.kind||264===t.kind||267===t.kind&&!!t.name||268===t.kind||274===t.kind||270===t.kind||275===t.kind||271===t.kind&&e.exportAssignmentIsAlias(t)||e.isBinaryExpression(t)&&2===e.getAssignmentDeclarationKind(t)&&e.exportAssignmentIsAlias(t)||e.isAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&Ni(t.parent.right)||297===t.kind||296===t.kind&&Ni(t.initializer)||254===t.kind&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(t)||203===t.kind&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(t.parent.parent)}function Ni(t){return e.isAliasableExpression(t)||e.isFunctionExpression(t)&&pb(t)}function wi(e,t,r,n){var i=e.exports.get("export="),a=i?sl(cs(i),t):e.exports.get(t),o=Ki(a,n);return Gi(r,a,o,!1),o}function Fi(t){return e.isExportAssignment(t)&&!t.isExportEquals||e.hasSyntacticModifier(t,512)||e.isExportSpecifier(t)}function Pi(t){return e.isStringLiteralLike(t)?e.getModeForUsageLocation(e.getSourceFileOfNode(t),t):void 0}function Ii(t,r){return t===e.ModuleKind.ESNext&&r===e.ModuleKind.CommonJS}function Oi(t){return Pi(t)===e.ModuleKind.ESNext&&e.endsWith(t.text,".json")}function Mi(t,r,n,i){var a=t&&Pi(i);if(t&&void 0!==a){var o=Ii(a,t.impliedNodeFormat);if(a===e.ModuleKind.ESNext||o)return o}if(!G)return!1;if(!t||t.isDeclarationFile){var s=wi(r,"default",void 0,!0);return!(s&&e.some(s.declarations,Fi)||wi(r,e.escapeLeadingUnderscores("__esModule"),void 0,n))}return e.isSourceFileJS(t)?"object"!=typeof t.externalModuleIndicator&&!wi(r,e.escapeLeadingUnderscores("__esModule"),void 0,n):la(r)}function Ri(t,r,n){var i,a;a=e.isShorthandAmbientModuleSymbol(t)?t:wi(t,"default",r,n);var o=null===(i=t.declarations)||void 0===i?void 0:i.find(e.isSourceFile),s=Li(r);if(!s)return a;var c=Oi(s),l=Mi(o,t,n,s);if(a||l||c){if(l||c){var d=oa(t,n)||Ki(t,n);return Gi(r,t,d,!1),d}}else if(la(t)){var u=K>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",p=t.exports.get("export=").valueDeclaration,_=Jn(r.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Qa(t),u);p&&e.addRelatedInfo(_,e.createDiagnosticForNode(p,e.Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,u))}else e.isImportClause(r)?((t,r)=>{var n,i,a;if(null===(n=t.exports)||void 0===n?void 0:n.has(r.symbol.escapedName))Jn(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Qa(t),Qa(r.symbol));else{var o=Jn(r.name,e.Diagnostics.Module_0_has_no_default_export,Qa(t)),s=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(s){var c=null===(a=s.declarations)||void 0===a?void 0:a.find((t=>{var r,n;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(n=null===(r=ra(t,t.moduleSpecifier))||void 0===r?void 0:r.exports)||void 0===n?void 0:n.has("default")))}));c&&e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}})(t,r):Ui(t,t,r,e.isImportOrExportSpecifier(r)&&r.propertyName||r.name);return Gi(r,a,void 0,!1),a}function Li(t){switch(t.kind){case 267:return t.parent.moduleSpecifier;case 265:return e.isExternalModuleReference(t.moduleReference)?t.moduleReference.expression:void 0;case 268:return t.parent.parent.moduleSpecifier;case 270:return t.parent.parent.parent.moduleSpecifier;case 275:return t.parent.parent.moduleSpecifier;default:return e.Debug.assertNever(t)}}function Bi(t,r,n){var i;void 0===n&&(n=!1);var a=e.getExternalModuleRequireArgument(t)||t.moduleSpecifier,o=ra(t,a),s=!e.isPropertyAccessExpression(r)&&r.propertyName||r.name;if(e.isIdentifier(s)){var c=sa(o,a,!1,"default"===s.escapedText&&!(!H.allowSyntheticDefaultImports&&!e.getESModuleInterop(H)));if(c&&s.escapedText){if(e.isShorthandAmbientModuleSymbol(o))return o;var l=void 0;l=o&&o.exports&&o.exports.get("export=")?sl(cs(c),s.escapedText,!0):((e,t)=>{if(3&e.flags){var r=e.valueDeclaration.type;if(r)return Ki(sl(Up(r),t))}})(c,s.escapedText),l=Ki(l,n);var d=((e,t,r,n)=>{if(1536&e.flags){var i=_a(e).get(t.escapedText),a=Ki(i,n);return Gi(r,i,a,!1),a}})(c,s,r,n);if(void 0===d&&"default"===s.escapedText){var u=null===(i=o.declarations)||void 0===i?void 0:i.find(e.isSourceFile);(Oi(a)||Mi(u,o,n,a))&&(d=oa(o,n)||Ki(o,n))}var p=d&&l&&d!==l?((t,r)=>{if(t===Pe&&r===Pe)return Pe;if(790504&t.flags)return t;var n=Zn(t.flags|r.flags,t.escapedName);return n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=new e.Map(r.members)),t.exports&&(n.exports=new e.Map(t.exports)),n})(l,d):d||l;return p||Ui(o,c,t,s),p}}}function Ui(t,r,n,i){var a,o=Zi(t,n),s=e.declarationNameToString(i),c=fv(i,r);if(void 0!==c){var l=Qa(c),d=Jn(i,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,o,s,l);c.valueDeclaration&&e.addRelatedInfo(d,e.createDiagnosticForNode(c.valueDeclaration,e.Diagnostics._0_is_declared_here,l))}else(null===(a=t.exports)||void 0===a?void 0:a.has("default"))?Jn(i,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,o,s):((t,r,n,i,a)=>{var o,s,c=null===(s=null===(o=i.valueDeclaration)||void 0===o?void 0:o.locals)||void 0===s?void 0:s.get(r.escapedText),l=i.exports;if(c){var d=null==l?void 0:l.get("export=");if(d)Da(d,c)?((t,r,n,i)=>{K>=e.ModuleKind.ES2015?Jn(r,e.getESModuleInterop(H)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):e.isInJSFile(t)?Jn(r,e.getESModuleInterop(H)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):Jn(r,e.getESModuleInterop(H)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,i)})(t,r,n,a):Jn(r,e.Diagnostics.Module_0_has_no_exported_member_1,a,n);else{var u=l?e.find(El(l),(e=>!!Da(e,c))):void 0,p=u?Jn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,a,n,Qa(u)):Jn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,a,n);c.declarations&&e.addRelatedInfo.apply(void 0,f([p],e.map(c.declarations,((t,r)=>e.createDiagnosticForNode(t,0===r?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,n))),!1))}}else Jn(r,e.Diagnostics.Module_0_has_no_exported_member_1,a,n)})(n,i,s,t,o)}function ji(t){if(e.isVariableDeclaration(t)&&t.initializer&&e.isPropertyAccessExpression(t.initializer))return t.initializer}function Vi(t,r,n){if("default"===e.idText(t.propertyName||t.name)){var i=Li(t),a=i&&ra(t,i);if(a)return Ri(a,t,!!n)}var o=t.parent.parent.moduleSpecifier?Bi(t.parent.parent,t,n):ea(t.propertyName||t.name,r,!1,n);return Gi(t,void 0,o,!1),o}function zi(t,r){return e.isClassExpression(t)?TE(t).symbol:e.isEntityName(t)||e.isEntityNameExpression(t)?ea(t,901119,!0,r)||(TE(t),li(t).resolvedSymbol):void 0}function Hi(t,r){switch(void 0===r&&(r=!1),t.kind){case 265:case 254:return((t,r)=>{var n=ji(t);if(n){var i=e.getLeftmostAccessExpression(n.expression).arguments[0];return e.isIdentifier(n.name)?Ki(sl(Il(i),n.name.escapedText)):void 0}if(e.isVariableDeclaration(t)||277===t.moduleReference.kind){var a=ra(t,e.getExternalModuleRequireArgument(t)||e.getExternalModuleImportEqualsDeclarationExpression(t)),o=oa(a);return Gi(t,a,o,!1),o}var s=Qi(t.moduleReference,r);return((t,r)=>{if(Gi(t,void 0,r,!1)&&!t.isTypeOnly){var n=qi(ya(t)),i=275===n.kind,a=i?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,o=i?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,s=e.unescapeLeadingUnderscores(n.name.escapedText);e.addRelatedInfo(Jn(t.moduleReference,a),e.createDiagnosticForNode(n,o,s))}})(t,s),s})(t,r);case 267:return((e,t)=>{var r=ra(e,e.parent.moduleSpecifier);if(r)return Ri(r,e,t)})(t,r);case 268:return((e,t)=>{var r=e.parent.parent.moduleSpecifier,n=ra(e,r),i=sa(n,r,t,!1);return Gi(e,n,i,!1),i})(t,r);case 274:return((e,t)=>{var r=e.parent.moduleSpecifier,n=r&&ra(e,r),i=r&&sa(n,r,t,!1);return Gi(e,n,i,!1),i})(t,r);case 270:case 203:return((t,r)=>{if(e.isImportSpecifier(t)&&"default"===e.idText(t.propertyName||t.name)){var n=Li(t),i=n&&ra(t,n);if(i)return Ri(i,t,r)}var a=e.isBindingElement(t)?e.getRootDeclaration(t):t.parent.parent.parent,o=ji(a),s=Bi(a,o||t,r),c=t.propertyName||t.name;return o&&s&&e.isIdentifier(c)?Ki(sl(cs(s),c.escapedText),r):(Gi(t,void 0,s,!1),s)})(t,r);case 275:return Vi(t,901119,r);case 271:case 221:return((t,r)=>{var n=zi(e.isExportAssignment(t)?t.expression:t.right,r);return Gi(t,void 0,n,!1),n})(t,r);case 264:return((e,t)=>{var r=oa(e.parent.symbol,t);return Gi(e,void 0,r,!1),r})(t,r);case 297:return ea(t.name,901119,!0,r);case 296:return zi(t.initializer,r);case 207:case 206:return((t,r)=>{if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind)return zi(t.parent.right,r)})(t,r);default:return e.Debug.fail()}}function Wi(e,t){return void 0===t&&(t=901119),!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function Ki(e,t){return!t&&Wi(e)?Ji(e):e}function Ji(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=ci(t);if(r.aliasTarget)r.aliasTarget===Ie&&(r.aliasTarget=Pe);else{r.aliasTarget=Ie;var n=Ai(t);if(!n)return e.Debug.fail();var i=Hi(n);r.aliasTarget===Ie?r.aliasTarget=i||Pe:Jn(n,e.Diagnostics.Circular_definition_of_import_alias_0,Qa(t))}return r.aliasTarget}function Gi(t,r,n,i){if(!t||e.isPropertyAccessExpression(t))return!1;var a=ya(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return ci(a).typeOnlyDeclaration=t,!0;var o=ci(a);return $i(o,r,i)||$i(o,n,i)}function $i(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:ci(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function qi(e){if(2097152&e.flags)return ci(e).typeOnlyDeclaration||void 0}function Xi(e){var t=ya(e),r=Ji(t);r&&(r===Pe||111551&r.flags&&!WS(r)&&!qi(t))&&Yi(t)}function Yi(t){var r=ci(t);if(!r.referenced){r.referenced=!0;var n=Ai(t);if(!n)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(n)){var i=Ki(t);(i===Pe||111551&i.flags)&&TE(n.moduleReference)}}}function Qi(t,r){return 79===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),79===t.kind||161===t.parent.kind?ea(t,1920,!1,r):(e.Debug.assert(265===t.parent.kind),ea(t,901119,!1,r))}function Zi(e,t){return e.parent?Zi(e.parent,t)+"."+Qa(e):Qa(e,t,void 0,20)}function ea(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&r:0);if(79===t.kind){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:ng(e.getFirstIdentifier(t)),l=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?((t,r)=>{if(xd(t.parent)){var n=(t=>{if(!e.findAncestor(t,(t=>e.isJSDocNode(t)||8388608&t.flags?e.isJSDocTypeAlias(t):"quit"))){var r=e.getJSDocHost(t);if(r&&e.isExpressionStatement(r)&&e.isPrototypePropertyAssignment(r.expression)&&(n=ya(r.expression.left)))return ta(n);if(r&&e.isFunctionExpression(r)&&e.isPrototypePropertyAssignment(r.parent)&&e.isExpressionStatement(r.parent.parent)&&(n=ya(r.parent.left)))return ta(n);if(r&&(e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&6===e.getAssignmentDeclarationKind(r.parent.parent)&&(n=ya(r.parent.parent.left)))return ta(n);var n,i=e.getEffectiveJSDocHost(t);if(i&&e.isFunctionLike(i))return(n=ya(i))&&n.valueDeclaration}})(t.parent);if(n)return mi(n,t.escapedText,r,void 0,t,!0)}})(t,r):void 0;if(!(o=ha(mi(a||t,t.escapedText,r,n||l?void 0:c,t,!0,!1))))return ha(l)}else{if(161!==t.kind&&206!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var d=161===t.kind?t.left:t.expression,u=161===t.kind?t.right:t.name,p=ea(d,s,n,!1,a);if(!p||e.nodeIsMissing(u))return;if(p===Pe)return p;if(p.valueDeclaration&&e.isInJSFile(p.valueDeclaration)&&e.isVariableDeclaration(p.valueDeclaration)&&p.valueDeclaration.initializer&&Eb(p.valueDeclaration.initializer)){var _=p.valueDeclaration.initializer.arguments[0],f=ra(_,_);if(f){var m=oa(f);m&&(p=m)}}if(!(o=ha(ui(_a(p),u.escapedText,r)))){if(!n){var g=Zi(p),h=e.declarationNameToString(u),y=fv(u,p);if(y)return void Jn(u,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,g,h,Qa(y));var v=e.isQualifiedName(t)&&(t=>{for(;e.isQualifiedName(t.parent);)t=t.parent;return t})(t);if(Wt&&788968&r&&v&&!e.isTypeOfExpression(v.parent)&&(t=>{var r=e.getFirstIdentifier(t),n=mi(r,r.escapedText,111551,void 0,r,!0);if(n){for(;e.isQualifiedName(r.parent);){if(!(n=sl(cs(n),r.parent.right.escapedText)))return;r=r.parent}return n}})(v))return void Jn(v,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(v));if(1920&r&&e.isQualifiedName(t.parent)){var b=ha(ui(_a(p),u.escapedText,788968));if(b)return void Jn(t.parent.right,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,Qa(b),e.unescapeLeadingUnderscores(t.parent.right.escapedText))}Jn(u,e.Diagnostics.Namespace_0_has_no_exported_member_1,g,h)}return}}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||271===t.parent.kind)&&Gi(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:Ji(o)}}function ta(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 ra(t,r,n){var i=e.getEmitModuleResolutionKind(H)===e.ModuleResolutionKind.Classic?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;return na(t,r,n?void 0:i)}function na(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?ia(t,r.text,n,r,i):void 0}function ia(r,n,i,a,o){var s,c,l,d,u,p,_,f;void 0===o&&(o=!1),e.startsWith(n,"@types/")&&Jn(a,M=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var m=Dl(n,!0);if(m)return m;var g=e.getSourceFileOfNode(r),h=e.isStringLiteralLike(r)?r:(null===(s=e.findAncestor(r,e.isImportCall))||void 0===s?void 0:s.arguments[0])||(null===(c=e.findAncestor(r,e.isImportDeclaration))||void 0===c?void 0:c.moduleSpecifier)||(null===(l=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))||void 0===l?void 0:l.moduleReference.expression)||(null===(d=e.findAncestor(r,e.isExportDeclaration))||void 0===d?void 0:d.moduleSpecifier)||(null===(u=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)||void 0===u?void 0:u.name)||(null===(p=e.isLiteralImportTypeNode(r)?r:void 0)||void 0===p?void 0:p.argument.literal),y=h&&e.isStringLiteralLike(h)?e.getModeForUsageLocation(g,h):g.impliedNodeFormat,v=e.getResolvedModule(g,n,y),b=v&&e.getResolutionDiagnostic(H,v),E=v&&(!b||b===e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(v.resolvedFileName);if(E){if(b&&Jn(a,b,n,v.resolvedFileName),E.symbol){if(v.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(v.extension)&&aa(!1,a,v,n),e.getEmitModuleResolutionKind(H)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(H)===e.ModuleResolutionKind.NodeNext){var x=g.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration),D=e.findAncestor(r,(t=>e.isImportTypeNode(t)||e.isExportDeclaration(t)||e.isImportDeclaration(t))),S=D&&e.isImportTypeNode(D)?null===(_=D.assertions)||void 0===_?void 0:_.assertClause:null==D?void 0:D.assertClause;if(x&&E.impliedNodeFormat===e.ModuleKind.ESNext&&!e.getResolutionModeOverrideForClause(S))if(e.findAncestor(r,e.isImportEqualsDeclaration))Jn(a,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{var T=void 0,C=e.tryGetExtensionFromPath(g.fileName);if(".ts"===C||".js"===C||".tsx"===C||".jsx"===C){var A=g.packageJsonScope,k=".ts"===C?".mts":".js"===C?".mjs":void 0;T=A&&!A.contents.packageJsonContent.type?k?e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,k,e.combinePaths(A.packageDirectory,"package.json")):e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,e.combinePaths(A.packageDirectory,"package.json")):k?e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,k):e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}kn.add(e.createDiagnosticForNodeFromMessageChain(a,e.chainDiagnosticMessages(T,e.Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,n)))}}return ha(E.symbol)}i&&Jn(a,e.Diagnostics.File_0_is_not_a_module,E.fileName)}else{if(zt){var N=e.findBestPatternMatch(zt,(e=>e.pattern),n);if(N)return ha(Ht&&Ht.get(n)||N.symbol)}if(v&&!e.resolutionExtensionIsTSOrJson(v.extension)&&void 0===b||b===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?Jn(a,M=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,v.resolvedFileName):aa(Q&&!!i,a,v,n);else if(i){if(v){var w=t.getProjectReferenceRedirect(v.resolvedFileName);if(w)return void Jn(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,w,v.resolvedFileName)}if(b)Jn(a,b,n,v.resolvedFileName);else{var F=e.tryExtractTSExtension(n),P=e.pathIsRelative(n)&&!e.hasExtension(n),I=e.getEmitModuleResolutionKind(H),O=I===e.ModuleResolutionKind.Node16||I===e.ModuleResolutionKind.NodeNext;if(F){var M=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,R=e.removeExtension(n,F);K>=e.ModuleKind.ES2015&&(R+=".mts"===F?".mjs":".cts"===F?".cjs":".js"),Jn(a,M,F,R)}else if(!H.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(H)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(H))Jn(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(y===e.ModuleKind.ESNext&&O&&P){var L=e.getNormalizedAbsolutePath(n,e.getDirectoryPath(g.path)),B=null===(f=Bn.find((e=>{var r=e[0];return t.fileExists(L+r)})))||void 0===f?void 0:f[1];B?Jn(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+B):Jn(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else Jn(a,i,n)}}}}function aa(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,u().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=>!!u().get(e))(o.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o.name,i):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_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;$n(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 oa(t,r){if(null==t?void 0:t.exports){var n=((t,r)=>{if(!t||t===Pe||t===r||1===r.exports.size||2097152&t.flags)return t;var n=ci(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:ri(t);return i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable()),r.exports.forEach(((e,t)=>{"export="!==t&&i.exports.set(t,i.exports.has(t)?ni(i.exports.get(t),e):e)})),ci(i).cjsExportMerged=i,n.cjsExportMerged=i})(ha(Ki(t.exports.get("export="),r)),ha(t));return ha(n)||t}}function sa(t,r,n,i){var a,o=oa(t,n);if(!n&&o){if(!(i||1539&o.flags||e.getDeclarationOfKind(o,305))){var s=K>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Jn(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,s),o}var c=r.parent;if(e.isImportDeclaration(c)&&e.getNamespaceDeclarationNode(c)||e.isImportCall(c)){var l=e.isImportCall(c)?c.arguments[0]:c.moduleSpecifier,d=cs(o),u=vb(d,o,t,l);if(u)return ca(o,u,c);var p=null===(a=null==t?void 0:t.declarations)||void 0===a?void 0:a.find(e.isSourceFile),_=p&&Ii(Pi(l),p.impliedNodeFormat);if(e.getESModuleInterop(H)||_){var f=cl(d,0);if(f&&f.length||(f=cl(d,1)),f&&f.length||sl(d,"default",!0)||_)return ca(o,bb(d,o,t,l),c)}}}return o}function ca(t,r,n){var i=Zn(t.flags,t.escapedName);i.declarations=t.declarations?t.declarations.slice():[],i.parent=t.parent,i.target=t,i.originatingImport=n,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(i.constEnumOnlyModule=!0),t.members&&(i.members=new e.Map(t.members)),t.exports&&(i.exports=new e.Map(t.exports));var a=Ic(r);return i.type=Ra(i,a.members,e.emptyArray,e.emptyArray,a.indexInfos),i}function la(e){return void 0!==e.exports.get("export=")}function da(e){return El(fa(e))}function ua(e,t){var r=fa(t);if(r)return r.get(e)}function pa(t){return!(131068&t.flags||1&e.getObjectFlags(t)||Tf(t)||Kf(t))}function _a(e){return 6256&e.flags?Zs(e,"resolvedExports"):1536&e.flags?fa(e):e.exports||V}function fa(e){var t=ci(e);return t.resolvedExports||(t.resolvedExports=ga(e))}function ma(t,r,n,i){r&&r.forEach(((r,a)=>{if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&Ki(o)!==Ki(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 ga(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){var o=e.createSymbolTable(),s=new e.Map;if(a.declarations)for(var c=0,l=a.declarations;c<l.length;c++){var d=l[c];ma(o,t(ra(d,d.moduleSpecifier)),s,d)}s.forEach(((t,r)=>{var n=t.exportsWithDuplicate;if("export="!==r&&n&&n.length&&!i.has(r))for(var a=0,o=n;a<o.length;a++){var c=o[a];kn.add(e.createDiagnosticForNode(c,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(r).specifierText,e.unescapeLeadingUnderscores(r)))}})),ma(i,o)}return i}}(t=oa(t))||V}function ha(e){var t;return e&&e.mergeId&&(t=un[e.mergeId])?t:e}function ya(e){return ha(e.symbol&&tc(e.symbol))}function va(e){return ha(e.parent&&tc(e.parent))}function ba(r,n,i){var a=va(r);if(a&&!(262144&r.flags)){var o=e.mapDefined(a.declarations,(e=>a&&Ea(e,a))),s=n&&((r,n)=>{var i,a=e.getSourceFileOfNode(n),o=I(a),s=ci(r);if(s.extendedContainersByFile&&(i=s.extendedContainersByFile.get(o)))return i;if(a&&a.imports){for(var c=0,l=a.imports;c<l.length;c++){var d=l[c];if(!e.nodeIsSynthesized(d)){var u=ra(n,d,!0);u&&xa(u,r)&&(i=e.append(i,u))}}if(e.length(i))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(o,i),i}if(s.extendedContainers)return s.extendedContainers;for(var p=0,_=t.getSourceFiles();p<_.length;p++){var f=_[p];if(e.isExternalModule(f)){var m=ya(f);xa(m,r)&&(i=e.append(i,m))}}return s.extendedContainers=i||e.emptyArray})(r,n),c=((t,r)=>{var n=!!e.length(t.declarations)&&e.first(t.declarations);if(111551&r&&n&&n.parent&&e.isVariableDeclaration(n.parent)&&(e.isObjectLiteralExpression(n)&&n===n.parent.initializer||e.isTypeLiteralNode(n)&&n===n.parent.type))return ya(n.parent)})(a,i);if(n&&a.flags&Ba(i)&&Ua(a,n,1920,!1))return e.append(e.concatenate(e.concatenate([a],o),s),c);var l=!(a.flags&Ba(i))&&788968&a.flags&&524288&Rs(a).flags&&111551===i?La(n,(t=>e.forEachEntry(t,(e=>{if(e.flags&Ba(i)&&cs(e)===Rs(a))return e})))):void 0,d=f(f(l?[l]:[],o,!0),[a],!1);return d=e.append(d,c),e.addRange(d,s)}var u=e.mapDefined(r.declarations,(t=>{if(!e.isAmbientModule(t)&&t.parent){if(qa(t.parent))return ya(t.parent);if(e.isModuleBlock(t.parent)&&t.parent.parent&&oa(ya(t.parent.parent))===r)return ya(t.parent.parent)}if(e.isClassExpression(t)&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind&&e.isAccessExpression(t.parent.left)&&e.isEntityNameExpression(t.parent.left.expression))return e.isModuleExportsAccessExpression(t.parent.left)||e.isExportsIdentifier(t.parent.left.expression)?ya(e.getSourceFileOfNode(t)):(TE(t.parent.left.expression),li(t.parent.left.expression).resolvedSymbol)}));if(e.length(u))return e.mapDefined(u,(e=>xa(e,r)?e:void 0))}function Ea(e,t){var r=Ga(e),n=r&&r.exports&&r.exports.get("export=");return n&&Da(n,t)?r:void 0}function xa(t,r){if(t===va(r))return r;var n=t.exports&&t.exports.get("export=");if(n&&Da(n,r))return t;var i=_a(t),a=i.get(r.escapedName);return a&&Da(a,r)?a:e.forEachEntry(i,(e=>{if(Da(e,r))return e}))}function Da(e,t){if(ha(Ki(ha(e)))===ha(Ki(ha(t))))return e}function Sa(e){return ha(e&&0!=(1048576&e.flags)&&e.exportSymbol||e)}function Ta(e,t){return!!(111551&e.flags||2097152&e.flags&&111551&Ji(e).flags&&(t||!qi(e)))}function Ca(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r];if(171===i.kind&&e.nodeIsPresent(i.body))return i}}function Aa(t){var r=new y(_e,t);return b++,r.id=b,null===e.tracing||void 0===e.tracing||e.tracing.recordType(r),r}function ka(e){return new y(_e,e)}function Na(e,t,r){void 0===r&&(r=0);var n=Aa(e);return n.intrinsicName=t,n.objectFlags=r,n}function wa(e,t){var r=Aa(524288);return r.objectFlags=e,r.symbol=t,r.members=void 0,r.properties=void 0,r.callSignatures=void 0,r.constructSignatures=void 0,r.indexInfos=void 0,r}function Fa(e){var t=Aa(262144);return e&&(t.symbol=e),t}function Pa(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Ia(t){var r;return t.forEach(((e,t)=>{Oa(e,t)&&(r||(r=[])).push(e)})),r||e.emptyArray}function Oa(e,t){return!Pa(t)&&Ta(e)}function Ma(t,r,n,i,a){var o=t;return o.members=r,o.properties=e.emptyArray,o.callSignatures=n,o.constructSignatures=i,o.indexInfos=a,r!==V&&(o.properties=Ia(r)),o}function Ra(e,t,r,n,i){return Ma(wa(16,e),t,r,n,i)}function La(t,r){for(var n,i=t=>{if(t.locals&&!di(t)&&(n=r(t.locals,void 0,!0,t)))return{value:n};switch(t.kind){case 305:if(!e.isExternalOrCommonJsModule(t))break;case 261:var i=ya(t);if(n=r((null==i?void 0:i.exports)||V,void 0,!0,t))return{value:n};break;case 257:case 226:case 258:var a;if((ya(t).members||V).forEach(((t,r)=>{788968&t.flags&&(a||(a=e.createSymbolTable())).set(r,t)})),a&&(n=r(a,void 0,!1,t)))return{value:n}}},a=t;a;a=a.parent){var o=i(a);if("object"==typeof o)return o.value}return r(se,void 0,!0)}function Ba(e){return 111551===e?111551:1920}function Ua(t,r,n,i,a){if(void 0===a&&(a=new e.Map),t&&!(e=>{if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++)switch(r[t].kind){case 167:case 169:case 172:case 173:continue;default:return!1}return!0}return!1})(t)){var o=ci(t),s=o.accessibleChainCache||(o.accessibleChainCache=new e.Map),c=La(r,((e,t,r,n)=>n)),l="".concat(i?0:1,"|").concat(c&&I(c),"|").concat(n);if(s.has(l))return s.get(l);var d=O(t),u=a.get(d);u||a.set(d,u=[]);var p=La(r,_);return s.set(l,p),p}function _(n,a,o){if(e.pushIfUnique(u,n)){var s=((n,a,o)=>m(n.get(t.escapedName),void 0,a)?[t]:e.forEachEntry(n,(n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(e.isUMDExportSymbol(n)&&r&&e.isExternalModule(e.getSourceFileOfNode(r)))&&(!i||e.some(n.declarations,e.isExternalModuleImportEqualsDeclaration))&&(!o||!e.some(n.declarations,e.isNamespaceReexportDeclaration))&&(a||!e.getDeclarationOfKind(n,275))){var s=g(n,Ji(n),a);if(s)return s}if(n.escapedName===t.escapedName&&n.exportSymbol&&m(ha(n.exportSymbol),void 0,a))return[t]}))||(n===se?g(le,le,a):void 0))(n,a,o);return u.pop(),s}}function f(e,t){return!ja(e,r,t)||!!Ua(e.parent,r,Ba(t),i,a)}function m(r,i,a){return(t===(i||r)||ha(t)===ha(i||r))&&!e.some(r.declarations,qa)&&(a||f(ha(r),n))}function g(e,t,r){if(m(e,t,r))return[e];var i=_a(t),a=i&&_(i,!0);return a&&f(e,Ba(n))?[e].concat(a):void 0}}function ja(t,r,n){var i=!1;return La(r,(r=>{var a=ha(r.get(t.escapedName));return!!a&&(a===t||!!((a=2097152&a.flags&&!e.getDeclarationOfKind(a,275)?Ji(a):a).flags&n)&&(i=!0,!0))})),i}function Va(e,t){return 0===Ja(e,t,788968,!1,!0).accessibility}function za(e,t){return 0===Ja(e,t,111551,!1,!0).accessibility}function Ha(e,t,r){return 0===Ja(e,t,r,!1,!1).accessibility}function Wa(t,r,n,i,a,o){if(e.length(t)){for(var s,c=!1,l=0,d=t;l<d.length;l++){var u=d[l],p=Ua(u,r,i,!1);if(p){s=u;var _=Xa(p[0],a);if(_)return _}if(o&&e.some(u.declarations,qa)){if(a){c=!0;continue}return{accessibility:0}}var f=Wa(ba(u,r,i),r,n,n===u?Ba(i):i,a,o);if(f)return f}return c?{accessibility:0}:s?{accessibility:1,errorSymbolName:Qa(n,r,i),errorModuleName:s!==n?Qa(s,r,1920):void 0}:void 0}}function Ka(e,t,r,n){return Ja(e,t,r,n,!0)}function Ja(t,r,n,i,a){if(t&&r){var o=Wa([t],r,t,n,i,a);if(o)return o;var s=e.forEach(t.declarations,Ga);return s&&s!==Ga(r)?{accessibility:2,errorSymbolName:Qa(t,r,n),errorModuleName:Qa(s),errorNode:e.isInJSFile(r)?r:void 0}:{accessibility:1,errorSymbolName:Qa(t,r,n)}}return{accessibility:0}}function Ga(t){var r=e.findAncestor(t,$a);return r&&ya(r)}function $a(t){return e.isAmbientModule(t)||305===t.kind&&e.isExternalOrCommonJsModule(t)}function qa(t){return e.isModuleWithStringLiteralName(t)||305===t.kind&&e.isExternalOrCommonJsModule(t)}function Xa(t,r){var n;if(e.every(e.filter(t.declarations,(e=>79!==e.kind)),(r=>{var n,a;if(!_o(r)){var o=Ci(r);if(o&&!e.hasSyntacticModifier(o,1)&&_o(o.parent))return i(r,o);if(e.isVariableDeclaration(r)&&e.isVariableStatement(r.parent.parent)&&!e.hasSyntacticModifier(r.parent.parent,1)&&_o(r.parent.parent.parent))return i(r,r.parent.parent);if(e.isLateVisibilityPaintedStatement(r)&&!e.hasSyntacticModifier(r,1)&&_o(r.parent))return i(r,r);if(e.isBindingElement(r)){if(2097152&t.flags&&e.isInJSFile(r)&&(null===(n=r.parent)||void 0===n?void 0:n.parent)&&e.isVariableDeclaration(r.parent.parent)&&(null===(a=r.parent.parent.parent)||void 0===a?void 0:a.parent)&&e.isVariableStatement(r.parent.parent.parent.parent)&&!e.hasSyntacticModifier(r.parent.parent.parent.parent,1)&&r.parent.parent.parent.parent.parent&&_o(r.parent.parent.parent.parent.parent))return i(r,r.parent.parent.parent.parent);if(2&t.flags){var s=e.findAncestor(r,e.isVariableStatement);return!!e.hasSyntacticModifier(s,1)||!!_o(s.parent)&&i(r,s)}}return!1}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function i(t,i){return r&&(li(t).isVisible=!0,n=e.appendIfUnique(n,i)),!0}}function Ya(t,r){var n;n=181===t.parent.kind||228===t.parent.kind&&!e.isPartOfTypeNode(t.parent)||162===t.parent.kind?1160127:161===t.kind||206===t.kind||265===t.parent.kind?1920:788968;var i=e.getFirstIdentifier(t),a=mi(r,i.escapedText,n,void 0,void 0,!1);return a&&262144&a.flags&&788968&n||!a&&e.isThisIdentifier(i)&&0===Ka(ya(e.getThisContainer(i,!1)),i,n,!1).accessibility?{accessibility:0}:a&&Xa(a,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function Qa(t,r,n,i,a){void 0===i&&(i=4);var o=70221824;2&i&&(o|=128),1&i&&(o|=512),8&i&&(o|=16384),16&i&&(o|=134217728);var s=4&i?oe.symbolToExpression:oe.symbolToEntityName;return a?c(a).getText():e.usingSingleLineStringWriter(c);function c(i){var a=s(t,n,r,o),c=305===(null==r?void 0:r.kind)?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),l=r&&e.getSourceFileOfNode(r);return c.writeNode(4,a,l,i),i}}function Za(t,r,n,i,a){return void 0===n&&(n=0),a?o(a).getText():e.usingSingleLineStringWriter(o);function o(a){var o;o=262144&n?1===i?180:179:1===i?175:174;var s=oe.signatureToSignatureDeclaration(t,o,r,70222336|io(n)),c=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),l=r&&e.getSourceFileOfNode(r);return c.writeNode(4,s,l,e.getTrailingSemicolonDeferringWriter(a)),a}}function eo(t,r,n,i){void 0===n&&(n=1064960),void 0===i&&(i=e.createTextWriter(""));var a=H.noErrorTruncation||1&n,o=oe.typeToTypeNode(t,r,70221824|io(n)|(a?1:0),i);if(void 0===o)return e.Debug.fail("should always get typenode");var s={removeComments:t!==je},c=e.createPrinter(s),l=r&&e.getSourceFileOfNode(r);c.writeNode(4,o,l,i);var d=i.getText(),u=a?2*e.noTruncationMaximumTruncationLength:2*e.defaultMaximumTruncationLength;return u&&d&&d.length>=u?d.substr(0,u-"...".length)+"...":d}function to(e,t){var r=no(e.symbol)?eo(e,e.symbol.valueDeclaration):eo(e),n=no(t.symbol)?eo(t,t.symbol.valueDeclaration):eo(t);return r===n&&(r=ro(e),n=ro(t)),[r,n]}function ro(e){return eo(e,void 0,64)}function no(t){return t&&!!t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!g_(t.valueDeclaration)}function io(e){return void 0===e&&(e=0),848330091&e}function ao(t){return!!(t.symbol&&32&t.symbol.flags&&(t===As(t.symbol)||524288&t.flags&&16777216&e.getObjectFlags(t)))}function oo(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(128):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&oe.typeToTypeNode(t.type,r,70222336|io(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function so(e){return 8===e?"private":16===e?"protected":"public"}function co(t){return t&&t.parent&&262===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function lo(t){return 305===t.kind||e.isAmbientModule(t)}function uo(t,r){var n=ci(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,e.getEmitScriptTarget(H))||e.isNumericLiteralName(i)?e.isNumericLiteralName(i)&&e.startsWith(i,"-")?"[".concat(i,"]"):i:'"'.concat(e.escapeString(i,34),'"')}if(8192&n.flags)return"[".concat(po(n.symbol,r),"]")}}function po(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],lo)!==e.findAncestor(r.enclosingDeclaration,lo)))return"default";if(t.declarations&&t.declarations.length){var n=e.firstDefined(t.declarations,(t=>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=ci(t).nameType;if(a&&384&a.flags){var o=uo(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&254===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 226:case 213:case 214:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),226===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=uo(t,r);return void 0!==s?s:e.symbolName(t)}function _o(t){if(t){var r=li(t);return void 0===r.isVisible&&(r.isVisible=!!(()=>{switch(t.kind){case 338:case 345:case 339:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 203:return _o(t.parent.parent);case 254:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 261:case 257:case 258:case 259:case 256:case 260:case 265:if(e.isExternalModuleAugmentation(t))return!0;var r=vo(t);return 1&e.getCombinedModifierFlags(t)||265!==t.kind&&305!==r.kind&&16777216&r.flags?_o(r):di(r);case 167:case 166:case 172:case 173:case 169:case 168:if(e.hasEffectiveModifier(t,24))return!1;case 171:case 175:case 174:case 176:case 164:case 262:case 179:case 180:case 182:case 178:case 183:case 184:case 187:case 188:case 191:case 197:return _o(t.parent);case 267:case 268:case 270:return!1;case 163:case 305:case 264:return!0;case 271:default:return!1}})()),r.isVisible}return!1}function fo(t,r){var n,i,a;return t.parent&&271===t.parent.kind?n=mi(t,t.escapedText,2998271,void 0,t,!1):275===t.parent.kind&&(n=Vi(t.parent,2998271)),n&&((a=new e.Set).add(O(n)),function t(n){e.forEach(n,(n=>{var o=Ci(n)||n;if(r?li(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=mi(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,O(c))&&t(c.declarations)}}))}(n.declarations)),i}function mo(e,t){var r=go(e,t);if(r>=0){for(var n=sn.length,i=r;i<n;i++)cn[i]=!1;return!1}return sn.push(e),cn.push(!0),ln.push(t),!0}function go(e,t){for(var r=sn.length-1;r>=0;r--){if(ho(sn[r],ln[r]))return-1;if(sn[r]===e&&ln[r]===t)return r}return-1}function ho(t,r){switch(r){case 0:return!!ci(t).type;case 5:return!!li(t).resolvedEnumType;case 2:return!!ci(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;case 8:return!!ci(t).writeType}return e.Debug.assertNever(r)}function yo(){return sn.pop(),ln.pop(),cn.pop()}function vo(t){return e.findAncestor(e.getRootDeclaration(t),(e=>{switch(e.kind){case 254:case 255:case 270:case 269:case 268:case 267:return!1;default:return!0}})).parent}function bo(e,t){var r=sl(e,t);return r?cs(r):void 0}function Eo(e){return e&&0!=(1&e.flags)}function xo(e){return e===Ue||!!(1&e.flags&&e.aliasSymbol)}function Do(e,t){if(0!==t)return Mo(e,!1,t);var r=ya(e);return r&&ci(r).type||Mo(e,!1,t)}function So(t,r,n){if(131072&(t=Wg(t,(e=>!(98304&e.flags)))).flags)return Tt;if(1048576&t.flags)return Gg(t,(e=>So(e,r,n)));for(var i=fu(e.map(r,Nu)),a=[],o=[],s=0,c=Lc(t);s<c.length;s++){var l=wu(m=c[s],8576);T_(l,i)||24&e.getDeclarationModifierFlagsFromSymbol(m)||!Tp(m)?o.push(l):a.push(m)}if($u(t)||qu(i)){if(o.length&&(i=fu(f([i],o,!0))),131072&i.flags)return t;var d=(kr||(kr=Fd("Omit",2,!0)||Pe),kr===Pe?void 0:kr);return d?pd(d,[t,i]):Ue}for(var u=e.createSymbolTable(),p=0,_=a;p<_.length;p++){var m=_[p];u.set(m.escapedName,Cp(m,!1))}var g=Ra(n,u,e.emptyArray,e.emptyArray,fl(t));return g.objectFlags|=4194304,g}function To(e){return!!(465829888&e.flags)&&dE(Wc(e)||He,32768)}function Co(e){return xg(zg(e,To)?Gg(e,(e=>465829888&e.flags?Kc(e):e)):e,524288)}function Ao(e,t){var r=ko(e);return r?fh(r,t):t}function ko(t){var r=(e=>{var t=e.parent.parent;switch(t.kind){case 203:case 296:return ko(t);case 204:return ko(e.parent);case 254:return t.initializer;case 221:return t.right}})(t);if(r&&r.flowNode){var n=No(t);if(n){var i=e.setTextRange(e.parseNodeFactory.createStringLiteral(n),t),a=e.isLeftHandSideExpression(r)?r:e.parseNodeFactory.createParenthesizedExpression(r),o=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(a,i),t);return e.setParent(i,o),e.setParent(o,t),a!==r&&e.setParent(a,o),o.flowNode=r.flowNode,o}}}function No(e){var t=e.parent;return 203===e.kind&&201===t.kind?wo(e.propertyName||e.name):296===e.kind||297===e.kind?wo(e.name):""+t.elements.indexOf(e)}function wo(e){var t=Nu(e);return 384&t.flags?""+t.value:void 0}function Fo(t,r){if(Eo(r))return r;var n,i=t.parent;if($&&16777216&t.flags&&e.isParameterDeclaration(t)?r=tm(r):!$||!i.parent.initializer||65536&Eg(Ig(i.parent.initializer))||(r=xg(r,524288)),201===i.kind)if(t.dotDotDotToken){if(2&(r=rl(r)).flags||!my(r))return Jn(t,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),Ue;for(var a=[],o=0,s=i.elements;o<s.length;o++){var c=s[o];c.dotDotDotToken||a.push(c.propertyName||c.name)}n=So(r,a,t.symbol)}else{var l=t.propertyName||t.name;n=Ao(t,tp(r,Nu(l),32,l))}else{var d=aD(65|(t.dotDotDotToken?0:128),r,Ke,i),u=i.elements.indexOf(t);n=t.dotDotDotToken?Hg(r,Kf)?Gg(r,(e=>nu(e,u))):Gd(d):wf(r)?Ao(t,np(r,Pp(u),32|(sy(t)?16:0),t.name)||Ue):d}return t.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(t))?!$||16777216&Eg(AE(t,0))?n:Co(n):kE(t,fu([Co(n),AE(t,0)],2)):n}function Po(t){var r=e.getJSDocType(t);if(r)return Up(r)}function Io(t){var r=e.skipParentheses(t,!0);return 204===r.kind&&0===r.elements.length}function Oo(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!0),$&&r?em(e,t):e}function Mo(t,r,n){if(e.isVariableDeclaration(t)&&243===t.parent.parent.kind){var i=Ou(Hy(HE(t.parent.parent.expression,n)));return 4456448&i.flags?Mu(i):Ye}if(e.isVariableDeclaration(t)&&244===t.parent.parent.kind)return iD(t.parent.parent)||Re;if(e.isBindingPattern(t.parent))return(e=>{var t=e.dotDotDotToken?64:0,r=Do(e.parent.parent,t);return r&&Fo(e,r)})(t);var a,o,s=e.isPropertyDeclaration(t)||e.isPropertySignature(t),c=r&&(s&&!!t.questionToken||e.isParameter(t)&&(!!t.questionToken||xl(t))||Tl(t)),l=Yo(t);if(l)return Oo(l,s,c);if((Q||e.isInJSFile(t))&&e.isVariableDeclaration(t)&&!e.isBindingPattern(t.name)&&!(1&e.getCombinedModifierFlags(t))&&!(16777216&t.flags)){if(!(2&e.getCombinedNodeFlags(t)||t.initializer&&(a=t.initializer,o=e.skipParentheses(a,!0),104!==o.kind&&(79!==o.kind||ig(o)!==ce))))return Le;if(t.initializer&&Io(t.initializer))return rr}if(e.isParameter(t)){var d=t.parent;if(173===d.kind&&Xs(d)){var u=e.getDeclarationOfKind(ya(t.parent),172);if(u){var p=Nl(u),_=wT(d);return _&&t===_?(e.Debug.assert(!_.type),cs(p.thisParameter)):Ll(p)}}if(e.isInJSFile(t)){var f=((e,t)=>{var r=wl(e);if(r){var n=e.parameters.indexOf(t);return t.dotDotDotToken?Mb(r,n):Ib(r,n)}})(d,t);if(f)return f}if(h="this"===t.symbol.escapedName?Mh(d):Rh(t))return Oo(h,!1,c)}if(e.hasOnlyExpressionInitializer(t)&&t.initializer){if(e.isInJSFile(t)&&!e.isParameter(t)){var m=zo(t,ya(t),e.getDeclaredExpandoInitializer(t));if(m)return m}return Oo(h=kE(t,AE(t,n)),s,c)}if(e.isPropertyDeclaration(t)&&(Q||e.isInJSFile(t))){if(e.hasStaticModifier(t)){var g=e.filter(t.parent.members,e.isClassStaticBlockDeclaration);return(h=g.length?((t,r)=>{for(var n=e.startsWith(t.escapedName,"__#")?e.factory.createPrivateIdentifier(t.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(t.escapedName),i=0,a=r;i<a.length;i++){var o=a[i],s=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(s.expression,s),e.setParent(s,o),s.flowNode=o.returnFlowNode;var c=jo(s,t);if(!Q||c!==Le&&c!==rr||Jn(t.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Qa(t),eo(c)),!Hg(c,zy))return $x(c)}})(t.symbol,g):2&e.getEffectiveModifierFlags(t)?hf(t.symbol):void 0)&&Oo(h,!0,c)}var h,y=Ca(t.parent);return(h=y?Uo(t.symbol,y):2&e.getEffectiveModifierFlags(t)?hf(t.symbol):void 0)&&Oo(h,!0,c)}return e.isJsxAttribute(t)?rt:e.isBindingPattern(t.name)?Go(t.name,!1,!0):void 0}function Ro(t){if(t.valueDeclaration&&e.isBinaryExpression(t.valueDeclaration)){var r=ci(t);return void 0===r.isConstructorDeclaredProperty&&(r.isConstructorDeclaredProperty=!1,r.isConstructorDeclaredProperty=!!Bo(t)&&e.every(t.declarations,(r=>e.isBinaryExpression(r)&&Hh(r)&&(207!==r.left.kind||e.isStringOrNumericLiteralLike(r.left.argumentExpression))&&!Ho(void 0,r,t,r)))),r.isConstructorDeclaredProperty}return!1}function Lo(t){var r=t.valueDeclaration;return r&&e.isPropertyDeclaration(r)&&!e.getEffectiveTypeAnnotationNode(r)&&!r.initializer&&(Q||e.isInJSFile(r))}function Bo(t){if(t.declarations)for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=e.getThisContainer(i,!1);if(a&&(171===a.kind||pb(a)))return a}}function Uo(t,r){var n=e.startsWith(t.escapedName,"__#")?e.factory.createPrivateIdentifier(t.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(t.escapedName),i=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(i.expression,i),e.setParent(i,r),i.flowNode=r.returnFlowNode;var a=jo(i,t);return!Q||a!==Le&&a!==rr||Jn(t.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Qa(t),eo(a)),Hg(a,zy)?void 0:$x(a)}function jo(t,r){var n=(null==r?void 0:r.valueDeclaration)&&(!Lo(r)||2&e.getEffectiveModifierFlags(r.valueDeclaration))&&hf(r)||Ke;return fh(t,Le,n)}function Vo(t,r){var n,i=e.getAssignedExpandoInitializer(t.valueDeclaration);if(i){var a=e.getJSDocTypeTag(i);return a&&a.typeExpression?Up(a.typeExpression):t.valueDeclaration&&zo(t.valueDeclaration,t,i)||Vf(TE(i))}var o=!1,s=!1;if(Ro(t)&&(n=Uo(t,Bo(t))),!n){var c=void 0;if(t.declarations){for(var l=void 0,d=0,u=t.declarations;d<u.length;d++){var p=u[d],_=e.isBinaryExpression(p)||e.isCallExpression(p)?p:e.isAccessExpression(p)?e.isBinaryExpression(p.parent)?p.parent:p:void 0;if(_){var f=e.isAccessExpression(_)?e.getAssignmentDeclarationPropertyAccessKind(_):e.getAssignmentDeclarationKind(_);(4===f||e.isBinaryExpression(_)&&Hh(_,f))&&(Ko(_)?o=!0:s=!0),e.isCallExpression(_)||(l=Ho(l,_,t,p)),l||(c||(c=[])).push(e.isBinaryExpression(_)||e.isCallExpression(_)?Wo(t,r,_,f):ct)}}n=l}if(!n){if(!e.length(c))return Ue;var m=o&&t.declarations?((t,r)=>(e.Debug.assert(t.length===r.length),t.filter(((t,n)=>{var i=r[n],a=e.isBinaryExpression(i)?i:e.isBinaryExpression(i.parent)?i.parent:void 0;return a&&Ko(a)}))))(c,t.declarations):void 0;if(s){var g=hf(t);g&&((m||(m=[])).push(g),o=!0)}n=fu(e.some(m,(e=>!!(-98305&e.flags)))?m:c)}}var h=hm(Oo(n,!1,s&&!o));return t.valueDeclaration&&Wg(h,(e=>!!(-98305&e.flags)))===ct?(bm(t.valueDeclaration,Re),Re):h}function zo(t,r,n){var i,a;if(e.isInJSFile(t)&&n&&e.isObjectLiteralExpression(n)&&!n.properties.length){for(var o=e.createSymbolTable();e.isBinaryExpression(t)||e.isPropertyAccessExpression(t);){var s=ya(t);(null===(i=null==s?void 0:s.exports)||void 0===i?void 0:i.size)&&oi(o,s.exports),t=e.isBinaryExpression(t)?t.parent:t.parent.parent}var c=ya(t);(null===(a=null==c?void 0:c.exports)||void 0===a?void 0:a.size)&&oi(o,c.exports);var l=Ra(r,o,e.emptyArray,e.emptyArray,e.emptyArray);return l.objectFlags|=4096,l}}function Ho(t,r,n,i){var a,o=e.getEffectiveTypeAnnotationNode(r.parent);if(o){var s=hm(Up(o));if(!t)return s;xo(t)||xo(s)||b_(t,s)||Xx(void 0,t,i,s)}if(null===(a=n.parent)||void 0===a?void 0:a.valueDeclaration){var c=e.getEffectiveTypeAnnotationNode(n.parent.valueDeclaration);if(c){var l=sl(Up(c),n.escapedName);if(l)return ls(l)}}return t}function Wo(t,r,n,i){if(e.isCallExpression(n)){if(r)return cs(r);var a=TE(n.arguments[2]),o=bo(a,"value");if(o)return o;var s=bo(a,"get");if(s){var c=Pv(s);if(c)return Ll(c)}var l=bo(a,"set");if(l){var d=Pv(l);if(d)return Vb(d)}return Re}if(((t,r)=>e.isPropertyAccessExpression(t)&&108===t.expression.kind&&e.forEachChildRecursively(r,(e=>sg(t,e))))(n.left,n.right))return Re;var u=1===i&&(e.isPropertyAccessExpression(n.left)||e.isElementAccessExpression(n.left))&&(e.isModuleExportsAccessExpression(n.left.expression)||e.isIdentifier(n.left.expression)&&e.isExportsIdentifier(n.left.expression)),p=r?cs(r):u?Np(TE(n.right)):Vf(TE(n.right));if(524288&p.flags&&2===i&&"export="===t.escapedName){var _=Ic(p),f=e.createSymbolTable();e.copyEntries(_.members,f);var m=f.size;r&&!r.exports&&(r.exports=e.createSymbolTable()),(r||t).exports.forEach(((t,r)=>{var n,i=f.get(r);if(!i||i===t||2097152&t.flags)f.set(r,t);else if(111551&t.flags&&111551&i.flags){if(t.valueDeclaration&&i.valueDeclaration&&e.getSourceFileOfNode(t.valueDeclaration)!==e.getSourceFileOfNode(i.valueDeclaration)){var a=e.unescapeLeadingUnderscores(t.escapedName),o=(null===(n=e.tryCast(i.valueDeclaration,e.isNamedDeclaration))||void 0===n?void 0:n.name)||i.valueDeclaration;e.addRelatedInfo(Jn(t.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(o,e.Diagnostics._0_was_also_declared_here,a)),e.addRelatedInfo(Jn(o,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(t.valueDeclaration,e.Diagnostics._0_was_also_declared_here,a))}var s=Zn(t.flags|i.flags,r);s.type=fu([cs(t),cs(i)]),s.valueDeclaration=i.valueDeclaration,s.declarations=e.concatenate(i.declarations,t.declarations),f.set(r,s)}else f.set(r,ni(t,i))}));var g=Ra(m!==f.size?void 0:_.symbol,f,_.callSignatures,_.constructSignatures,_.indexInfos);if(m===f.size&&(p.aliasSymbol&&(g.aliasSymbol=p.aliasSymbol,g.aliasTypeArguments=p.aliasTypeArguments),4&e.getObjectFlags(p))){g.aliasSymbol=p.symbol;var h=ld(p);g.aliasTypeArguments=e.length(h)?h:void 0}return g.objectFlags|=4096&e.getObjectFlags(p),g.symbol&&32&g.symbol.flags&&p===As(g.symbol)&&(g.objectFlags|=16777216),g}return If(p)?(bm(n,tr),tr):p}function Ko(t){var r=e.getThisContainer(t,!1);return 171===r.kind||256===r.kind||213===r.kind&&!e.isPrototypePropertyAssignment(r.parent)}function Jo(t,r,n){return t.initializer?Oo(kE(t,AE(t,0,e.isBindingPattern(t.name)?Go(t.name,!0,!1):He))):e.isBindingPattern(t.name)?Go(t.name,r,n):(n&&!Xo(t)&&bm(t,Re),r?Ve:Re)}function Go(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),201===t.kind?((t,r,n)=>{var i,a=e.createSymbolTable(),o=131200;e.forEach(t.elements,(e=>{var t=e.propertyName||e.name;if(e.dotDotDotToken)i=ql(Ye,Re,!1);else{var s=Nu(t);if(Js(s)){var c=Ys(s),l=Zn(4|(e.initializer?16777216:0),c);l.type=Jo(e,r,n),l.bindingElement=e,a.set(l.escapedName,l)}else o|=512}}));var s=Ra(void 0,a,e.emptyArray,e.emptyArray,i?[i]:e.emptyArray);return s.objectFlags|=o,r&&(s.pattern=t,s.objectFlags|=131072),s})(t,r,n):((t,r,n)=>{var i,a=t.elements,o=e.lastOrUndefined(a),s=o&&203===o.kind&&o.dotDotDotToken?o:void 0;if(0===a.length||1===a.length&&s)return W>=2?(i=Re,Kd(zd(!0),[i])):tr;var c=e.map(a,(t=>e.isOmittedExpression(t)?Re:Jo(t,r,n))),l=e.findLastIndex(a,(t=>!(t===s||e.isOmittedExpression(t)||sy(t))),a.length-1)+1,d=Zd(c,e.map(a,((e,t)=>e===s?4:t>=l?2:1)));return r&&((d=sd(d)).pattern=t,d.objectFlags|=131072),d})(t,r,n)}function $o(e,t){return qo(Mo(e,!0,0),e,t)}function qo(t,r,n){return t?(4096&t.flags&&(i=ya(r.parent),(a=or||(or=wd("SymbolConstructor",!1)))&&i&&i===a)&&(t=Mp(r)),n&&Em(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==ya(r)&&(t=ot),hm(t)):(t=e.isParameter(r)&&r.dotDotDotToken?tr:Re,n&&(Xo(r)||bm(r,t)),t);var i,a}function Xo(t){var r=e.getRootDeclaration(t);return ax(164===r.kind?r.parent:r)}function Yo(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Up(r)}function Qo(t){if(t)return 172===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function Zo(e){var t=Qo(e);return t&&Up(t)}function es(t){var r=ci(t);if(!r.type){if(!mo(t,0))return Ue;var n=e.getDeclarationOfKind(t,172),i=e.getDeclarationOfKind(t,173),a=n&&e.isInJSFile(n)&&Po(n)||Zo(n)||Zo(i)||n&&n.body&&$b(n);a||(i&&!ax(i)?$n(Q,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Qa(t)):n&&!ax(n)&&$n(Q,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Qa(t)),a=Re),yo()||(Qo(n)?Jn(n,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Qa(t)):Qo(i)?Jn(i,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Qa(t)):n&&Q&&Jn(n,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,Qa(t)),a=Re),r.type=a}return r.type}function ts(t){var r=ci(t);if(!r.writeType){if(!mo(t,8))return Ue;var n=e.getDeclarationOfKind(t,173),i=Zo(n);yo()||(Qo(n)&&Jn(n,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Qa(t)),i=Re),r.writeType=i||es(t)}return r.writeType}function rs(t){var r=xs(As(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(e=>!!(8650752&e.flags))):void 0}function ns(t){var r=ci(t),n=r;if(!r.type){var i=t.valueDeclaration&&fb(t.valueDeclaration,!1);if(i){var a=_b(t,i);a&&(t=r=a)}n.type=r.type=(t=>{var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return Re;if(r&&(221===r.kind||e.isAccessExpression(r)&&221===r.parent.kind))return Vo(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=oa(t);if(n!==t){if(!mo(t,0))return Ue;var i=ha(t.exports.get("export=")),a=Vo(i,i===n?void 0:n);return yo()?a:as(t)}}var o=wa(16,t);if(32&t.flags){var s=rs(t);return s?xu([o,s]):o}return $&&16777216&t.flags?em(o):o})(t)}return r.type}function is(e){var t=ci(e);return t.type||(t.type=Os(e))}function as(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(Jn(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Qa(t)),Ue):(Q&&(164!==r.kind||r.initializer)&&Jn(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,Qa(t)),Re)}function os(t){var r=ci(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?fu(r.deferralConstituents):xu(r.deferralConstituents)),r.type}function ss(t){var r=e.getCheckFlags(t);return 4&t.flags?2&r?65536&r?(t=>{var r=ci(t);return!r.writeType&&r.deferralWriteConstituents&&(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.writeType=1048576&r.deferralParent.flags?fu(r.deferralWriteConstituents):xu(r.deferralWriteConstituents)),r.writeType})(t)||os(t):t.writeType||t.type:cs(t):98304&t.flags?1&r?(e=>{var t=ci(e);return t.writeType||(t.writeType=u_(ss(t.target),t.mapper))})(t):ts(t):cs(t)}function cs(t){var r=e.getCheckFlags(t);return 65536&r?os(t):1&r?(e=>{var t=ci(e);return t.type||(t.type=u_(cs(t.target),t.mapper))})(t):262144&r?(t=>{if(!t.type){var r=t.mappedType;if(!mo(t,0))return r.containsError=!0,Ue;var n=u_(Tc(r.target||r),e_(r.mapper,xc(r),t.keyType)),i=$&&16777216&t.flags&&!dE(n,49152)?em(n,!0):524288&t.checkFlags?cm(n):n;yo()||(Jn(s,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Qa(t),eo(r)),i=Ue),t.type=i}return t.type})(t):8192&r?(e=>{var t=ci(e);return t.type||(t.type=Rm(e.propertyType,e.mappedType,e.constraintType)),t.type})(t):7&t.flags?(t=>{var r=ci(t);if(!r.type){var n=(t=>{if(4194304&t.flags)return(r=Rs(va(t))).typeParameters?od(r,e.map(r.typeParameters,(e=>Re))):r;var r;if(t===pe)return Re;if(134217728&t.flags&&t.valueDeclaration){var n=ya(e.getSourceFileOfNode(t.valueDeclaration)),i=Zn(n.flags,"exports");i.declarations=n.declarations?n.declarations.slice():[],i.parent=t,i.target=n,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),n.members&&(i.members=new e.Map(n.members)),n.exports&&(i.exports=new e.Map(n.exports));var a=e.createSymbolTable();return a.set("exports",i),Ra(t,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(t.valueDeclaration);var o,s=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(void 0===c)return ee?He:Re;var l=AS(c);return Eo(l)||l===He?l:Ue}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?hm(Vf(HE(s.statements[0].expression))):Tt;if(e.isAccessor(s))return es(t);if(!mo(t,0))return 512&t.flags&&!(67108864&t.flags)?ns(t):as(t);if(271===s.kind)o=qo(Yo(s)||TE(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))o=Vo(t);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(9136&t.flags)return ns(t);o=e.isBinaryExpression(s.parent)?Vo(t):Yo(s)||Re}else if(e.isPropertyAssignment(s))o=Yo(s)||PE(s);else if(e.isJsxAttribute(s))o=Yo(s)||yy(s);else if(e.isShorthandPropertyAssignment(s))o=Yo(s)||FE(s.name,0);else if(e.isObjectLiteralMethod(s))o=Yo(s)||IE(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=$o(s,!0);else if(e.isEnumDeclaration(s))o=ns(t);else{if(!e.isEnumMember(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(t));o=is(t)}return yo()?o:512&t.flags&&!(67108864&t.flags)?ns(t):as(t)})(t);r.type||(r.type=n)}return r.type})(t):9136&t.flags?ns(t):8&t.flags?is(t):98304&t.flags?es(t):2097152&t.flags?(t=>{var r=ci(t);if(!r.type){var n=Ji(t),i=t.declarations&&Hi(Ai(t),!0),a=e.firstDefined(null==i?void 0:i.declarations,(t=>e.isExportAssignment(t)?Yo(t):void 0));r.type=(null==i?void 0:i.declarations)&&cS(i.declarations)&&t.declarations.length?(t=>{var r=e.getSourceFileOfNode(t.declarations[0]),n=e.unescapeLeadingUnderscores(t.escapedName),i=t.declarations.every((t=>e.isInJSFile(t)&&e.isAccessExpression(t)&&e.isModuleExportsAccessExpression(t.expression))),a=i?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),n):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),n);return i&&e.setParent(a.expression.expression,a.expression),e.setParent(a.expression,a),e.setParent(a,r),a.flowNode=r.endFlowNode,fh(a,Le,Ke)})(i):cS(t.declarations)?Le:a||(111551&n.flags?cs(n):Ue)}return r.type})(t):Ue}function ls(e){return om(cs(e),!!(16777216&e.flags))}function ds(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function us(t){return 4&e.getObjectFlags(t)?t.target:t}function ps(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=us(n);return i===r||e.some(Ss(i),t)}return!!(2097152&n.flags)&&e.some(n.types,t)}(t)}function _s(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];t=e.appendIfUnique(t,Ms(ya(a)))}return t}function fs(t,r){for(;;){if((t=t.parent)&&e.isBinaryExpression(t)){var n=e.getAssignmentDeclarationKind(t);if(6===n||3===n){var i=ya(t.left);i&&i.parent&&!e.findAncestor(i.parent.valueDeclaration,(e=>t===e))&&(t=i.parent.valueDeclaration)}}if(!t)return;switch(t.kind){case 257:case 226:case 258:case 174:case 175:case 168:case 179:case 180:case 317:case 256:case 169:case 213:case 214:case 259:case 344:case 345:case 339:case 338:case 195:case 189:var a=fs(t,r);if(195===t.kind)return e.append(a,Ms(ya(t.typeParameter)));if(189===t.kind)return e.concatenate(a,fp(t));var o=_s(a,e.getEffectiveTypeParameterDeclarations(t)),s=r&&(257===t.kind||226===t.kind||258===t.kind||pb(t))&&As(ya(t)).thisType;return s?e.append(o,s):o;case 340:var c=e.getParameterSymbolFromJSDoc(t);c&&(t=c.valueDeclaration);break;case 320:return a=fs(t,r),t.tags?_s(a,e.flatMap(t.tags,(t=>e.isJSDocTemplateTag(t)?t.typeParameters:void 0))):a}}}function ms(t){var r=32&t.flags?t.valueDeclaration:e.getDeclarationOfKind(t,258);return e.Debug.assert(!!r,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),fs(r)}function gs(t){if(t.declarations){for(var r,n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(258===a.kind||257===a.kind||226===a.kind||pb(a)||e.isTypeAlias(a)){var o=a;r=_s(r,e.getEffectiveTypeParameterDeclarations(o))}}return r}}function hs(e){var t=ll(e,1);if(1===t.length){var r=t[0];if(!r.typeParameters&&1===r.parameters.length&&U(r)){var n=Ab(r.parameters[0]);return Eo(n)||Nf(n)===Re}}return!1}function ys(e){if(ll(e,1).length>0)return!0;if(8650752&e.flags){var t=Wc(e);return!!t&&hs(t)}return!1}function vs(t){var r=e.getClassLikeDeclarationOfSymbol(t.symbol);return r&&e.getEffectiveBaseTypeNode(r)}function bs(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(ll(t,1),(t=>(a||i>=Al(t.typeParameters))&&i<=e.length(t.typeParameters)))}function Es(t,r,n){var i=bs(t,r,n),a=e.map(r,Up);return e.sameMap(i,(t=>e.some(t.typeParameters)?Vl(t,a,e.isInJSFile(n)):t))}function xs(t){if(!t.resolvedBaseConstructorType){var r=e.getClassLikeDeclarationOfSymbol(t.symbol),n=r&&e.getEffectiveBaseTypeNode(r),i=vs(t);if(!i)return t.resolvedBaseConstructorType=Ke;if(!mo(t,1))return Ue;var a=HE(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),HE(n.expression)),2621440&a.flags&&Ic(a),!yo())return Jn(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Qa(t.symbol)),t.resolvedBaseConstructorType=Ue;if(!(1&a.flags||a===Xe||ys(a))){var o=Jn(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,eo(a));if(262144&a.flags){var s=td(a),c=He;if(s){var l=ll(s,1);l[0]&&(c=Ll(l[0]))}a.symbol.declarations&&e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Qa(a.symbol),eo(c)))}return t.resolvedBaseConstructorType=Ue}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function Ds(t,r){Jn(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,eo(r,void 0,2))}function Ss(t){if(!t.baseTypesResolved){if(mo(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[Ts(t)]:96&t.symbol.flags?(32&t.symbol.flags&&(t=>{t.resolvedBaseTypes=e.resolvingEmptyArray;var r=Yc(xs(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=vs(t),a=r.symbol?Rs(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&(e=>{var t=e.outerTypeParameters;if(t){var r=t.length-1,n=ld(e);return t[r].symbol!==n[r].symbol}return!0})(a))n=ud(i,r.symbol);else if(1&r.flags)n=r;else{var o=Es(r,i.typeArguments,i);if(!o.length)return Jn(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=Ll(o[0])}if(xo(n))return t.resolvedBaseTypes=e.emptyArray;var s=rl(n);if(!Cs(s)){var c=ol(void 0,n),l=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,eo(s));return kn.add(e.createDiagnosticForNodeFromMessageChain(i.expression,l)),t.resolvedBaseTypes=e.emptyArray}if(t===s||ps(s,t))return Jn(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,eo(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[s]})(t),64&t.symbol.flags&&(t=>{if(t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray,t.symbol.declarations)for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];if(258===i.kind&&e.getInterfaceBaseTypeNodes(i))for(var a=0,o=e.getInterfaceBaseTypeNodes(i);a<o.length;a++){var s=o[a],c=rl(Up(s));xo(c)||(Cs(c)?t===c||ps(c,t)?Ds(i,t):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[c]:t.resolvedBaseTypes.push(c):Jn(s,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}})(t)):e.Debug.fail("type must be class or interface"),!yo()&&t.symbol.declarations))for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];257!==i.kind&&258!==i.kind||Ds(i,t)}t.baseTypesResolved=!0}return t.resolvedBaseTypes}function Ts(t){return Gd(fu(e.sameMap(t.typeParameters,((e,r)=>8&t.elementFlags[r]?tp(e,Qe):e))||e.emptyArray),t.readonly)}function Cs(t){if(262144&t.flags){var r=Wc(t);if(r)return Cs(r)}return!!(67633153&t.flags&&!Pc(t)||2097152&t.flags&&e.every(t.types,Cs))}function As(t){var r,n,i,a,o,s=ci(t),c=s;if(!s.declaredType){var l=32&t.flags?1:2,d=_b(t,t.valueDeclaration&&((o=(null==(a=null===(n=null==(i=(r=t.valueDeclaration)&&fb(r,!0))?void 0:i.exports)||void 0===n?void 0:n.get("prototype"))?void 0:a.valueDeclaration)&&(t=>{if(!t.parent)return!1;for(var r=t.parent;r&&206===r.kind;)r=r.parent;if(r&&e.isBinaryExpression(r)&&e.isPrototypeAccess(r.left)&&63===r.operatorToken.kind){var n=e.getInitializerOfBinaryExpression(r);return e.isObjectLiteralExpression(n)&&n}})(a.valueDeclaration))?ya(o):void 0));d&&(t=s=d);var u=c.declaredType=s.declaredType=wa(l,t),p=ms(t),_=gs(t);(p||_||1===l||!(t=>{if(!t.declarations)return!0;for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(258===i.kind){if(128&i.flags)return!1;var a=e.getInterfaceBaseTypeNodes(i);if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];if(e.isEntityNameExpression(c.expression)){var l=ea(c.expression,788968,!0);if(!l||!(64&l.flags)||As(l).thisType)return!1}}}}return!0})(t))&&(u.objectFlags|=4,u.typeParameters=e.concatenate(p,_),u.outerTypeParameters=p,u.localTypeParameters=_,u.instantiations=new e.Map,u.instantiations.set(nd(u.typeParameters),u),u.target=u,u.resolvedTypeArguments=u.typeParameters,u.thisType=Fa(t),u.thisType.isThisType=!0,u.thisType.constraint=u)}return s.declaredType}function ks(t){var r,n=ci(t);if(!n.declaredType){if(!mo(t,2))return Ue;var i=e.Debug.checkDefined(null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),a=e.isJSDocTypeAlias(i)?i.typeExpression:i.type,o=a?Up(a):Ue;if(yo()){var s=gs(t);s&&(n.typeParameters=s,n.instantiations=new e.Map,n.instantiations.set(nd(s),o))}else o=Ue,339===i.kind?Jn(i.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,Qa(t)):Jn(e.isNamedDeclaration(i)&&i.name||i,e.Diagnostics.Type_alias_0_circularly_references_itself,Qa(t));n.declaredType=o}return n.declaredType}function Ns(t){return!!e.isStringLiteralLike(t)||221===t.kind&&Ns(t.left)&&Ns(t.right)}function ws(t){var r=t.initializer;if(!r)return!(16777216&t.flags);switch(r.kind){case 10:case 8:case 14:return!0;case 219:return 40===r.operator&&8===r.operand.kind;case 79:return e.nodeIsMissing(r)||!!ya(t.parent).exports.get(r.escapedText);case 221:return Ns(r);default:return!1}}function Fs(t){var r=ci(t);if(void 0!==r.enumKind)return r.enumKind;var n=!1;if(t.declarations)for(var i=0,a=t.declarations;i<a.length;i++){var o=a[i];if(260===o.kind)for(var s=0,c=o.members;s<c.length;s++){var l=c[s];if(l.initializer&&e.isStringLiteralLike(l.initializer))return r.enumKind=1;ws(l)||(n=!0)}}return r.enumKind=n?0:1}function Ps(e){return 1024&e.flags&&!(1048576&e.flags)?Rs(va(e.symbol)):e}function Is(e){var t=ci(e);if(t.declaredType)return t.declaredType;if(1===Fs(e)){x++;var r=[];if(e.declarations)for(var n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(260===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],l=QS(c),d=kp(Op(void 0!==l?l:0,x,ya(c)));ci(ya(c)).declaredType=d,r.push(Np(d))}}if(r.length){var u=fu(r,1,e,void 0);return 1048576&u.flags&&(u.flags|=1024,u.symbol=e),t.declaredType=u}}var p=Aa(32);return p.symbol=e,t.declaredType=p}function Os(e){var t=ci(e);if(!t.declaredType){var r=Is(va(e));t.declaredType||(t.declaredType=r)}return t.declaredType}function Ms(e){var t=ci(e);return t.declaredType||(t.declaredType=Fa(e))}function Rs(e){return Ls(e)||Ue}function Ls(e){return 96&e.flags?As(e):524288&e.flags?ks(e):262144&e.flags?Ms(e):384&e.flags?Is(e):8&e.flags?Os(e):2097152&e.flags?(e=>{var t=ci(e);return t.declaredType||(t.declaredType=Rs(Ji(e)))})(e):void 0}function Bs(e){switch(e.kind){case 130:case 155:case 150:case 147:case 158:case 133:case 151:case 148:case 114:case 153:case 143:case 196:return!0;case 183:return Bs(e.elementType);case 178:return!e.typeArguments||e.typeArguments.every(Bs)}return!1}function Us(t){var r=e.getEffectiveConstraintOfTypeParameter(t);return!r||Bs(r)}function js(t){var r=e.getEffectiveTypeAnnotationNode(t);return r?Bs(r):!e.hasInitializer(t)}function Vs(t){if(t.declarations&&1===t.declarations.length){var r=t.declarations[0];if(r)switch(r.kind){case 167:case 166:return js(r);case 169:case 168:case 171:case 172:case 173:return n=r,i=e.getEffectiveReturnTypeNode(n),a=e.getEffectiveTypeParameterDeclarations(n),(171===n.kind||!!i&&Bs(i))&&n.parameters.every(js)&&a.every(Us)}}var n,i,a;return!1}function zs(t,r,n){for(var i=e.createSymbolTable(),a=0,o=t;a<o.length;a++){var s=o[a];i.set(s.escapedName,n&&Vs(s)?s:n_(s,r))}return i}function Hs(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.escapedName)||Ws(i)||e.set(i.escapedName,i)}}function Ws(t){return!!t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration)&&e.isStatic(t.valueDeclaration)}function Ks(t){if(!t.declaredProperties){var r=t.symbol,n=ec(r);t.declaredProperties=Ia(n),t.declaredCallSignatures=e.emptyArray,t.declaredConstructSignatures=e.emptyArray,t.declaredIndexInfos=e.emptyArray,t.declaredCallSignatures=Pl(n.get("__call")),t.declaredConstructSignatures=Pl(n.get("__new")),t.declaredIndexInfos=Xl(r)}return t}function Js(e){return!!(8576&e.flags)}function Gs(t){if(!e.isComputedPropertyName(t)&&!e.isElementAccessExpression(t))return!1;var r=e.isComputedPropertyName(t)?t.expression:t.argumentExpression;return e.isEntityNameExpression(r)&&Js(e.isComputedPropertyName(t)?uy(t):TE(r))}function $s(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function qs(t){var r=e.getNameOfDeclaration(t);return!!r&&Gs(r)}function Xs(t){return!e.hasDynamicName(t)||qs(t)}function Ys(t){return 8192&t.flags?t.escapedName:384&t.flags?e.escapeLeadingUnderscores(""+t.value):e.Debug.fail()}function Qs(t,r,n,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var a=li(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=e.isBinaryExpression(i)?i.left:i.name,s=e.isElementAccessExpression(o)?TE(o.argumentExpression):uy(o);if(Js(s)){var c=Ys(s),l=i.symbol.flags,d=n.get(c);d||n.set(c,d=Zn(0,c,4096));var u=r&&r.get(c);if(d.flags&ei(l)||u){var p=u?e.concatenate(u.declarations,d.declarations):d.declarations,_=!(8192&s.flags)&&e.unescapeLeadingUnderscores(c)||e.declarationNameToString(o);e.forEach(p,(t=>Jn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Property_0_was_also_declared_here,_))),Jn(o||i,e.Diagnostics.Duplicate_property_0,_),d=Zn(0,c,4096)}return d.nameType=s,((t,r,n)=>{e.Debug.assert(!!(4096&e.getCheckFlags(t)),"Expected a late-bound symbol."),t.flags|=n,ci(r.symbol).lateSymbol=t,t.declarations?r.symbol.isReplaceableByMethod||t.declarations.push(r):t.declarations=[r],111551&n&&(t.valueDeclaration&&t.valueDeclaration.kind===r.kind||(t.valueDeclaration=r))})(d,i,l),d.parent?e.Debug.assert(d.parent===t,"Existing symbol parent should match new one"):d.parent=t,a.resolvedSymbol=d}}return a.resolvedSymbol}function Zs(t,r){var n=ci(t);if(!n[r]){var i="resolvedExports"===r,a=i?1536&t.flags?ga(t):t.exports:t.members;n[r]=a||V;for(var o=e.createSymbolTable(),s=0,c=t.declarations||e.emptyArray;s<c.length;s++){var l=c[s],d=e.getMembersOfDeclaration(l);if(d)for(var u=0,p=d;u<p.length;u++){var _=p[u];i===e.hasStaticModifier(_)&&qs(_)&&Qs(t,a,o,_)}}var f=t.assignmentDeclarationMembers;if(f)for(var m=0,g=e.arrayFrom(f.values());m<g.length;m++){_=g[m];var h=e.getAssignmentDeclarationKind(_);i===!(3===h||e.isBinaryExpression(_)&&Hh(_,h)||9===h||6===h)&&qs(_)&&Qs(t,a,o,_)}n[r]=((t,r)=>{if(!(null==t?void 0:t.size))return r;if(!(null==r?void 0:r.size))return t;var n=e.createSymbolTable();return oi(n,t),oi(n,r),n})(a,o)||V}return n[r]}function ec(e){return 6256&e.flags?Zs(e,"resolvedMembers"):e.members||V}function tc(t){if(106500&t.flags&&"__computed"===t.escapedName){var r=ci(t);if(!r.lateSymbol&&e.some(t.declarations,qs)){var n=ha(t.parent);e.some(t.declarations,e.hasStaticModifier)?_a(n):ec(n)}return r.lateSymbol||(r.lateSymbol=t)}return t}function rc(t,r,n){if(4&e.getObjectFlags(t)){var i=t.target,a=ld(t);if(e.length(i.typeParameters)===e.length(a)){var o=od(i,e.concatenate(a,[r||i.thisType]));return n?Yc(o):o}}else if(2097152&t.flags){var s=e.sameMap(t.types,(e=>rc(e,r,n)));return s!==t.types?xu(s):t}return n?Yc(t):t}function nc(t,r,n,i){var a,o,s,c,l;e.rangeEquals(n,i,0,n.length)?(o=r.symbol?ec(r.symbol):e.createSymbolTable(r.declaredProperties),s=r.declaredCallSignatures,c=r.declaredConstructSignatures,l=r.declaredIndexInfos):(a=Kp(n,i),o=zs(r.declaredProperties,a,1===n.length),s=Hp(r.declaredCallSignatures,a),c=Hp(r.declaredConstructSignatures,a),l=Wp(r.declaredIndexInfos,a));var d=Ss(r);if(d.length){r.symbol&&o===ec(r.symbol)&&(o=e.createSymbolTable(r.declaredProperties)),Ma(t,o,s,c,l);for(var u=e.lastOrUndefined(i),p=0,_=d;p<_.length;p++){var f=_[p],m=u?rc(u_(f,a),u):f;Hs(o,Lc(m)),s=e.concatenate(s,ll(m,0)),c=e.concatenate(c,ll(m,1));var g=m!==Re?fl(m):[ql(Ye,Re,!1)];l=e.concatenate(l,e.filter(g,(e=>!dl(l,e.keyType))))}}Ma(t,o,s,c,l)}function ic(e,t,r,n,i,a,o,s){var c=new v(_e,s);return c.declaration=e,c.typeParameters=t,c.parameters=n,c.thisParameter=r,c.resolvedReturnType=i,c.resolvedTypePredicate=a,c.minArgumentCount=o,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function ac(e){var t=ic(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,39&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function oc(e,t){var r=ac(e);return r.compositeSignatures=t,r.compositeKind=1048576,r.target=void 0,r.mapper=void 0,r}function sc(t,r){if((24&t.flags)===r)return t;t.optionalCallSignatureCache||(t.optionalCallSignatureCache={});var n=8===r?"inner":"outer";return t.optionalCallSignatureCache[n]||(t.optionalCallSignatureCache[n]=((t,r)=>{e.Debug.assert(8===r||16===r,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var n=ac(t);return n.flags|=r,n})(t,r))}function cc(t,r){if(U(t)){var n=t.parameters.length-1,i=cs(t.parameters[n]);if(Kf(i))return[a(i,n)];if(!r&&1048576&i.flags&&e.every(i.types,Kf))return e.map(i.types,(e=>a(e,n)))}return[t.parameters];function a(r,n){var i=ld(r),a=r.target.labeledElementDeclarations,o=e.map(i,((e,i)=>{var o=!!a&&kb(a[i])||Nb(t,n+i,r),s=r.target.elementFlags[i],c=Zn(1,o,12&s?32768:2&s?16384:0);return c.type=4&s?Gd(e):e,c}));return e.concatenate(t.parameters.slice(0,n),o)}}function lc(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(xf(s,t,r,n,i,r?D_:E_))return s}}function dc(t,r,n){if(r.typeParameters){if(n>0)return;for(var i=1;i<t.length;i++)if(!lc(t[i],r,!1,!1,!1))return;return[r]}var a;for(i=0;i<t.length;i++){var o=i===n?r:lc(t[i],r,!0,!1,!0);if(!o)return;a=e.appendIfUnique(a,o)}return a}function uc(t){for(var r,n,i=0;i<t.length;i++){if(0===t[i].length)return e.emptyArray;t[i].length>1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a<o.length;a++){var s=o[a];if(!r||!lc(r,s,!1,!1,!0)){var c=dc(t,s,i);if(c){var l=s;if(c.length>1){var d=s.thisParameter,u=e.forEach(c,(e=>e.thisParameter));u&&(d=dm(u,xu(e.mapDefined(c,(e=>e.thisParameter&&cs(e.thisParameter)))))),(l=oc(s,c)).thisParameter=d}(r||(r=[])).push(l)}}}}if(!e.length(r)&&-1!==n){for(var p=t[void 0!==n?n:0],_=p.slice(),f=t=>{if(t!==p){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"),!(_=r.typeParameters&&e.some(_,(e=>!!e.typeParameters&&!pc(r.typeParameters,e.typeParameters)))?void 0:e.map(_,(t=>((t,r)=>{var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=Kp(r.typeParameters,t.typeParameters));var a=t.declaration,o=((e,t,r)=>{for(var n=Rb(e),i=Rb(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=Bb(e)||Bb(t),l=c&&!Bb(a),d=new Array(s+(l?1:0)),u=0;u<s;u++){var p=Ob(a,u);a===t&&(p=u_(p,r));var _=Ob(o,u)||He;o===t&&(_=u_(_,r));var f=xu([p,_]),m=c&&!l&&u===s-1,g=u>=Lb(a)&&u>=Lb(o),h=u>=n?void 0:Nb(e,u),y=u>=i?void 0:Nb(t,u),v=Zn(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||"arg".concat(u));v.type=m?Gd(f):f,d[u]=v}if(l){var b=Zn(1,"args");b.type=Gd(Ib(o,s)),o===t&&(b.type=u_(b.type,r)),d[s]=b}return d})(t,r,n),s=ic(a,i,((e,t,r)=>e&&t?dm(e,xu([cs(e),u_(cs(t),r)])):e||t)(t.thisParameter,r.thisParameter,n),o,void 0,void 0,Math.max(t.minArgumentCount,r.minArgumentCount),39&(t.flags|r.flags));return s.compositeKind=1048576,s.compositeSignatures=e.concatenate(2097152!==t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(s.mapper=2097152!==t.compositeKind&&t.mapper&&t.compositeSignatures?Qp(t.mapper,n):n),s})(t,r)))))return"break"}},m=0,g=t;m<g.length&&"break"!==f(g[m]);m++);r=_}return r||e.emptyArray}function pc(t,r){if(e.length(t)!==e.length(r))return!1;if(!t||!r)return!0;for(var n=Kp(r,t),i=0;i<t.length;i++){var a=t[i],o=r[i];if(a!==o&&!b_(td(a)||He,u_(td(o)||He,n)))return!1}return!0}function _c(t){var r=fl(t[0]);if(r){for(var n=[],i=r=>{var i=r.keyType;e.every(t,(e=>!!ml(e,i)))&&n.push(ql(i,fu(e.map(t,(e=>gl(e,i)))),e.some(t,(e=>ml(e,i).isReadonly))))},a=0,o=r;a<o.length;a++)i(o[a]);return n}return e.emptyArray}function fc(e,t){return e?t?xu([e,t]):e:t}function mc(t){var r=e.countWhere(t,(e=>ll(e,1).length>0)),n=e.map(t,hs);if(r>0&&r===e.countWhere(n,(e=>e))){var i=n.indexOf(!0);n[i]=!1}return n}function gc(t,r){for(var n=r=>{t&&!e.every(t,(e=>!xf(e,r,!1,!1,!1,E_)))||(t=e.append(t,r))},i=0,a=r;i<a.length;i++)n(a[i]);return t}function hc(t,r,n){if(t)for(var i=0;i<t.length;i++){var a=t[i];if(a.keyType===r.keyType)return t[i]=ql(a.keyType,n?fu([a.type,r.type]):xu([a.type,r.type]),n?a.isReadonly||r.isReadonly:a.isReadonly&&r.isReadonly),t}return e.append(t,r)}function yc(e,t,r){return u_(e,Kp([t.indexType,t.objectType],[Pp(0),Zd([r])]))}function vc(t){if(4194304&t.flags){var r=Yc(t.type);return Jf(r)?iu(r):Ou(r)}if(16777216&t.flags){if(t.root.isDistributive){var n=t.checkType,i=vc(n);if(i!==n)return d_(t,Zp(t.root.checkType,i,t.mapper))}return t}if(1048576&t.flags)return Gg(t,vc);if(2097152&t.flags){var a=t.types;return 2===a.length&&76&a[0].flags&&a[1]===kt?t:xu(e.sameMap(t.types,vc))}return t}function bc(t){return 4096&e.getCheckFlags(t)}function Ec(e,t,r,n){for(var i=0,a=Lc(e);i<a.length;i++)n(wu(a[i],t));if(1&e.flags)n(Ye);else for(var o=0,s=fl(e);o<s.length;o++){var c=s[o];(!r||134217732&c.keyType.flags)&&n(c.keyType)}}function xc(e){return e.typeParameter||(e.typeParameter=Ms(ya(e.declaration.typeParameter)))}function Dc(e){return e.constraintType||(e.constraintType=Uc(xc(e))||Ue)}function Sc(e){return e.declaration.nameType?e.nameType||(e.nameType=u_(Up(e.declaration.nameType),e.mapper)):void 0}function Tc(e){return e.templateType||(e.templateType=e.declaration.type?u_(Oo(Up(e.declaration.type),!0,!!(4&Nc(e))),e.mapper):Ue)}function Cc(t){return e.getEffectiveConstraintOfTypeParameter(t.declaration.typeParameter)}function Ac(e){var t=Cc(e);return 193===t.kind&&140===t.operator}function kc(e){if(!e.modifiersType)if(Ac(e))e.modifiersType=u_(Up(Cc(e).type),e.mapper);else{var t=Dc(ap(e.declaration)),r=t&&262144&t.flags?Uc(t):t;e.modifiersType=r&&4194304&r.flags?u_(r.type,e.mapper):He}return e.modifiersType}function Nc(e){var t=e.declaration;return(t.readonlyToken?40===t.readonlyToken.kind?2:1:0)|(t.questionToken?40===t.questionToken.kind?8:4:0)}function wc(e){var t=Nc(e);return 8&t?-1:4&t?1:0}function Fc(e){var t=wc(e),r=kc(e);return t||(Pc(r)?wc(r):0)}function Pc(t){return!!(32&e.getObjectFlags(t))&&qu(Dc(t))}function Ic(t){return t.members||(524288&t.flags?4&t.objectFlags?(t=>{var r=Ks(t.target),n=e.concatenate(r.typeParameters,[r.thisType]),i=ld(t);nc(t,r,n,i.length===n.length?i:e.concatenate(i,[t]))})(t):3&t.objectFlags?(t=>{nc(t,Ks(t),e.emptyArray,e.emptyArray)})(t):1024&t.objectFlags?(t=>{for(var r=ml(t.source,Ye),n=Nc(t.mappedType),i=!(1&n),a=4&n?0:16777216,o=r?[ql(Ye,Rm(r.type,t.mappedType,t.constraintType),i&&r.isReadonly)]:e.emptyArray,s=e.createSymbolTable(),c=0,l=Lc(t.source);c<l.length;c++){var d=l[c],u=8192|(i&&aE(d)?8:0),p=Zn(4|d.flags&a,d.escapedName,u);if(p.declarations=d.declarations,p.nameType=ci(d).nameType,p.propertyType=cs(d),8388608&t.constraintType.type.flags&&262144&t.constraintType.type.objectType.flags&&262144&t.constraintType.type.indexType.flags){var _=t.constraintType.type.objectType,f=yc(t.mappedType,t.constraintType.type,_);p.mappedType=f,p.constraintType=Ou(_)}else p.mappedType=t.mappedType,p.constraintType=t.constraintType;s.set(d.escapedName,p)}Ma(t,s,e.emptyArray,e.emptyArray,o)})(t):16&t.objectFlags?(t=>{if(t.target)return Ma(t,V,e.emptyArray,e.emptyArray,e.emptyArray),void Ma(t,zs(Oc(t.target),t.mapper,!1),i=Hp(ll(t.target,0),t.mapper),a=Hp(ll(t.target,1),t.mapper),Wp(fl(t.target),t.mapper));var r=ha(t.symbol);if(2048&r.flags){Ma(t,V,e.emptyArray,e.emptyArray,e.emptyArray);var n=ec(r),i=Pl(n.get("__call")),a=Pl(n.get("__new"));Ma(t,n,i,a,Xl(r))}else{var o,s,c=V;if(r.exports&&(c=_a(r),r===le)){var l=new e.Map;c.forEach((t=>{var r;418&t.flags||512&t.flags&&(null===(r=t.declarations)||void 0===r?void 0:r.length)&&e.every(t.declarations,e.isAmbientModule)||l.set(t.escapedName,t)})),c=l}if(Ma(t,c,e.emptyArray,e.emptyArray,e.emptyArray),32&r.flags){var d=xs(As(r));11272192&d.flags?Hs(c=e.createSymbolTable((t=>{var r=Ia(t),n=$l(t);return n?e.concatenate(r,[n]):r})(c)),Lc(d)):d===Re&&(s=ql(Ye,Re,!1))}var u=$l(c);if(u?o=Yl(u):(s&&(o=e.append(o,s)),384&r.flags&&(32&Rs(r).flags||e.some(t.properties,(e=>!!(296&cs(e).flags))))&&(o=e.append(o,Vr))),Ma(t,c,e.emptyArray,e.emptyArray,o||e.emptyArray),8208&r.flags&&(t.callSignatures=Pl(r)),32&r.flags){var p=As(r);a=r.members?Pl(r.members.get("__constructor")):e.emptyArray,16&r.flags&&(a=e.addRange(a.slice(),e.mapDefined(t.callSignatures,(e=>pb(e.declaration)?ic(e.declaration,e.typeParameters,e.thisParameter,e.parameters,p,void 0,e.minArgumentCount,39&e.flags):void 0)))),a.length||(a=(t=>{var r=ll(xs(t),1),n=e.getClassLikeDeclarationOfSymbol(t.symbol),i=!!n&&e.hasSyntacticModifier(n,128);if(0===r.length)return[ic(void 0,t.localTypeParameters,void 0,e.emptyArray,t,void 0,0,i?4:0)];for(var a=vs(t),o=e.isInJSFile(a),s=Cd(a),c=e.length(s),l=[],d=0,u=r;d<u.length;d++){var p=u[d],_=Al(p.typeParameters),f=e.length(p.typeParameters);if(o||c>=_&&c<=f){var m=f?Hl(p,kl(s,p.typeParameters,_,o)):ac(p);m.typeParameters=t.localTypeParameters,m.resolvedReturnType=t,m.flags=i?4|m.flags:-5&m.flags,l.push(m)}}return l})(p)),t.constructSignatures=a}}})(t):32&t.objectFlags?(t=>{var r,n=e.createSymbolTable();Ma(t,V,e.emptyArray,e.emptyArray,e.emptyArray);var i=xc(t),a=Dc(t),o=Sc(t.target||t),s=Tc(t.target||t),c=Yc(kc(t)),l=Nc(t),d=te?128:8576;function u(e){Vg(o?u_(o,e_(t.mapper,i,e)):e,(a=>((e,a)=>{if(Js(a)){var d=Ys(a),u=n.get(d);if(u)u.nameType=fu([u.nameType,a]),u.keyType=fu([u.keyType,e]);else{var p=Js(e)?sl(c,Ys(e)):void 0,_=!!(4&l||!(8&l)&&p&&16777216&p.flags),f=!!(1&l||!(2&l)&&p&&aE(p)),m=$&&!_&&p&&16777216&p.flags,g=Zn(4|(_?16777216:0),d,262144|(p?bc(p):0)|(f?8:0)|(m?524288:0));g.mappedType=t,g.nameType=a,g.keyType=e,p&&(g.syntheticOrigin=p,g.declarations=o?void 0:p.declarations),n.set(d,g)}}else if(Ql(a)||33&a.flags){var h=ql(5&a.flags?Ye:40&a.flags?Qe:a,u_(s,e_(t.mapper,i,e)),!!(1&l));r=hc(r,h,!0)}})(e,a)))}Ac(t)?Ec(c,d,te,u):Vg(vc(a),u),Ma(t,n,e.emptyArray,e.emptyArray,r||e.emptyArray)})(t):e.Debug.fail("Unhandled object type "+e.Debug.formatObjectFlags(t.objectFlags)):1048576&t.flags?(t=>{var r=uc(e.map(t.types,(e=>e===Kt?[Br]:ll(e,0)))),n=uc(e.map(t.types,(e=>ll(e,1)))),i=_c(t.types);Ma(t,V,r,n,i)})(t):2097152&t.flags?(t=>{for(var r,n,i,a=t.types,o=mc(a),s=e.countWhere(o,(e=>e)),c=c=>{var l=t.types[c];if(!o[c]){var d=ll(l,1);d.length&&s>0&&(d=e.map(d,(e=>{var t=ac(e);return t.resolvedReturnType=((e,t,r,n)=>{for(var i=[],a=0;a<t.length;a++)a===n?i.push(e):r[a]&&i.push(Ll(ll(t[a],1)[0]));return xu(i)})(Ll(e),a,o,c),t}))),n=gc(n,d)}r=gc(r,ll(l,0)),i=e.reduceLeft(fl(l),((e,t)=>hc(e,t,!1)),i)},l=0;l<a.length;l++)c(l);Ma(t,V,r||e.emptyArray,n||e.emptyArray,i||e.emptyArray)})(t):e.Debug.fail("Unhandled type "+e.Debug.formatTypeFlags(t.flags))),t}function Oc(t){return 524288&t.flags?Ic(t).properties:e.emptyArray}function Mc(e,t){if(524288&e.flags){var r=Ic(e).members.get(t);if(r&&Ta(r))return r}}function Rc(t){if(!t.resolvedProperties){for(var r=e.createSymbolTable(),n=0,i=t.types;n<i.length;n++){for(var a=i[n],o=0,s=Lc(a);o<s.length;o++){var c=s[o];if(!r.has(c.escapedName)){var l=tl(t,c.escapedName);l&&r.set(c.escapedName,l)}}if(1048576&t.flags&&0===fl(a).length)break}t.resolvedProperties=Ia(r)}return t.resolvedProperties}function Lc(e){return 3145728&(e=Qc(e)).flags?Rc(e):Oc(e)}function Bc(e){return 262144&e.flags?Uc(e):8388608&e.flags?(e=>Jc(e)?(e=>{if(Xc(e))return ep(e.objectType,e.indexType);var t=jc(e.indexType);if(t&&t!==e.indexType){var r=np(e.objectType,t,e.accessFlags);if(r)return r}var n=jc(e.objectType);return n&&n!==e.objectType?np(n,e.indexType,e.accessFlags):void 0})(e):void 0)(e):16777216&e.flags?(e=>Jc(e)?Hc(e):void 0)(e):Wc(e)}function Uc(e){return Jc(e)?td(e):void 0}function jc(e){var t=Yu(e,!1);return t!==e?t:Bc(e)}function Vc(e){if(!e.resolvedDefaultConstraint){var t=(e=>e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?u_(Up(e.root.node.trueType),e.combinedMapper):pp(e)))(e),r=_p(e);e.resolvedDefaultConstraint=Eo(t)?r:Eo(r)?t:fu([t,r])}return e.resolvedDefaultConstraint}function zc(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var t=Yu(e.checkType,!1),r=t===e.checkType?Bc(t):t;if(r&&r!==e.checkType){var n=d_(e,Zp(e.root.checkType,r,e.mapper));if(!(131072&n.flags))return n}}}function Hc(e){return zc(e)||Vc(e)}function Wc(e){if(464781312&e.flags){var t=Gc(e);return t!==Pt&&t!==It?t:void 0}return 4194304&e.flags?mt:void 0}function Kc(e){return Wc(e)||e}function Jc(e){return Gc(e)!==It}function Gc(t){if(t.resolvedBaseConstraint)return t.resolvedBaseConstraint;var r=[];return t.resolvedBaseConstraint=rc(n(t),t);function n(t){if(!t.immediateBaseConstraint){if(!mo(t,4))return It;var n=void 0,a=bf(t);if((r.length<10||r.length<50&&!e.contains(r,a))&&(r.push(a),n=(t=>{if(262144&t.flags){var r=td(t);return t.isThisType||!r?r:i(r)}if(3145728&t.flags){for(var n=[],a=!1,o=0,s=d=t.types;o<s.length;o++){var c=s[o],l=i(c);l?(l!==c&&(a=!0),n.push(l)):a=!0}return a?1048576&t.flags&&n.length===d.length?fu(n):2097152&t.flags&&n.length?xu(n):void 0:t}if(4194304&t.flags)return mt;if(134217728&t.flags){var d=t.types,u=e.mapDefined(d,i);return u.length===d.length?Ru(t.texts,u):Ye}if(268435456&t.flags)return(r=i(t.type))&&r!==t.type?Bu(t.symbol,r):Ye;if(8388608&t.flags){if(Xc(t))return i(ep(t.objectType,t.indexType));var p=i(t.objectType),_=i(t.indexType),f=p&&_&&np(p,_,t.accessFlags);return f&&i(f)}return 16777216&t.flags?(r=Hc(t))&&i(r):33554432&t.flags?i(t.substitute):t})(Yu(t,!1)),r.pop()),!yo()){if(262144&t.flags){var o=Zl(t);if(o){var c=Jn(o,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,eo(t));!s||e.isNodeDescendantOf(o,s)||e.isNodeDescendantOf(s,o)||e.addRelatedInfo(c,e.createDiagnosticForNode(s,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}n=It}t.immediateBaseConstraint=n||Pt}return t.immediateBaseConstraint}function i(e){var t=n(e);return t!==Pt&&t!==It?t:void 0}}function $c(t){if(t.default)t.default===Ot&&(t.default=It);else if(t.target){var r=$c(t.target);t.default=r?u_(r,t.mapper):Pt}else{t.default=Ot;var n=t.symbol&&e.forEach(t.symbol.declarations,(t=>e.isTypeParameterDeclaration(t)&&t.default)),i=n?Up(n):Pt;t.default===Ot&&(t.default=i)}return t.default}function qc(e){var t=$c(e);return t!==Pt&&t!==It?t:void 0}function Xc(t){var r;return!(!(8388608&t.flags&&32&e.getObjectFlags(r=t.objectType)&&!Pc(r)&&qu(t.indexType))||8&Nc(r)||r.declaration.nameType)}function Yc(t){var r=465829888&t.flags?Wc(t)||He:t;return 32&e.getObjectFlags(r)?(e=>e.resolvedApparentType||(e.resolvedApparentType=(e=>{var t=a_(e);if(t&&!e.declaration.nameType){var r=Uc(t);if(r&&Af(r))return u_(e,Zp(t,r,e.mapper))}return e})(e)))(r):2097152&r.flags?(e=>e.resolvedApparentType||(e.resolvedApparentType=rc(e,e,!0)))(r):402653316&r.flags?Xt:296&r.flags?Yt:2112&r.flags?wr||(wr=Id("BigInt",0,!1))||Tt:528&r.flags?Qt:12288&r.flags?Bd():67108864&r.flags?Tt:4194304&r.flags?mt:2&r.flags&&!$?Tt:r}function Qc(e){return rl(Yc(rl(e)))}function Zc(t,r,n){for(var i,a,o,s,c,l=1048576&t.flags,d=l?0:16777216,u=4,p=l?0:8,_=!1,f=0,m=t.types;f<m.length;f++)if(!(xo(w=Yc(m[f]))||131072&w.flags)){var g=(N=sl(w,r,n))?e.getDeclarationModifierFlagsFromSymbol(N):0;if(N){if(l?d|=16777216&N.flags:d&=N.flags,o){if(N!==o)if((zD(N)||N)===(zD(o)||o)&&-1===Ef(o,N,((e,t)=>e===t?-1:0)))_=!!o.parent&&!!e.length(gs(o.parent));else{s||(s=new e.Map).set(O(o),o);var h=O(N);s.has(h)||s.set(h,N)}}else o=N;l&&aE(N)?p|=8:l||aE(N)||(p&=-9),p|=(24&g?0:256)|(16&g?512:0)|(8&g?1024:0)|(32&g?2048:0),Ly(N)||(u=2)}else if(l){var y=!$s(r)&&vl(w,r);y?(p|=32|(y.isReadonly?8:0),c=e.append(c,Kf(w)?$f(w)||Ke:y.type)):!Qm(w)||2097152&e.getObjectFlags(w)?p|=16:(p|=32,c=e.append(c,Ke))}}if(o&&!(l&&(s||48&p)&&1536&p)){if(!(s||16&p||c)){if(_){var v=dm(o,o.type);return v.parent=null===(a=null===(i=o.valueDeclaration)||void 0===i?void 0:i.symbol)||void 0===a?void 0:a.parent,v.containingType=t,v.mapper=o.mapper,v}return o}for(var b,E,x,D,S,T=[],C=!1,A=0,k=s?e.arrayFrom(s.values()):[o];A<k.length;A++){var N=k[A];S?N.valueDeclaration&&N.valueDeclaration!==S&&(C=!0):S=N.valueDeclaration,b=e.addRange(b,N.declarations);var w=cs(N);E||(E=w,x=ci(N).nameType);var F=ss(N);D||F!==w?D=e.append(D||T.slice(),F):w!==E&&(p|=64),(Uf(w)||Ju(w)||w===Et)&&(p|=128),131072&w.flags&&w!==Et&&(p|=131072),T.push(w)}e.addRange(T,c);var P=Zn(4|d,r,u|p);return P.containingType=t,!C&&S&&(P.valueDeclaration=S,S.symbol.parent&&(P.parent=S.symbol.parent)),P.declarations=b,P.nameType=x,T.length>2?(P.checkFlags|=65536,P.deferralParent=t,P.deferralConstituents=T,P.deferralWriteConstituents=D):(P.type=l?fu(T):xu(T),D&&(P.writeType=l?fu(D):xu(D))),P}}function el(t,r,n){var i,a,o=(null===(i=t.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===i?void 0:i.get(r))||!n?null===(a=t.propertyCache)||void 0===a?void 0:a.get(r):void 0;return o||(o=Zc(t,r,n))&&(n?t.propertyCacheWithoutObjectFunctionPropertyAugment||(t.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):t.propertyCache||(t.propertyCache=e.createSymbolTable())).set(r,o),o}function tl(t,r,n){var i=el(t,r,n);return!i||16&e.getCheckFlags(i)?void 0:i}function rl(t){return 1048576&t.flags&&16777216&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=(t=>{var r=e.sameMap(t.types,rl);if(r===t.types)return t;var n=fu(r);return 1048576&n.flags&&(n.resolvedReducedType=n),n})(t)):2097152&t.flags?(16777216&t.objectFlags||(t.objectFlags|=16777216|(e.some(Rc(t),nl)?33554432:0)),33554432&t.objectFlags?ct:t):t}function nl(e){return il(e)||al(e)}function il(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&cs(t).flags))}function al(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function ol(t,r){if(2097152&r.flags&&33554432&e.getObjectFlags(r)){var n=e.find(Rc(r),il);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,eo(r,void 0,536870912),Qa(n));var i=e.find(Rc(r),al);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,eo(r,void 0,536870912),Qa(i))}return t}function sl(e,t,r,n){if(524288&(e=Qc(e)).flags){var i=Ic(e),a=i.members.get(t);if(a&&Ta(a,n))return a;if(r)return;var o=i===Ft?Kt:i.callSignatures.length?Jt:i.constructSignatures.length?Gt:void 0;if(o){var s=Mc(o,t);if(s)return s}return Mc(Wt,t)}if(3145728&e.flags)return tl(e,t,r)}function cl(t,r){if(3670016&t.flags){var n=Ic(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function ll(e,t){return cl(Qc(e),t)}function dl(t,r){return e.find(t,(e=>e.keyType===r))}function ul(t,r){for(var n,i,a,o=0,s=t;o<s.length;o++){var c=s[o];c.keyType===Ye?n=c:pl(r,c.keyType)&&(i?(a||(a=[i])).push(c):i=c)}return a?ql(He,xu(e.map(a,(e=>e.type))),e.reduceLeft(a,((e,t)=>e&&t.isReadonly),!0)):i||(n&&pl(r,Ye)?n:void 0)}function pl(t,r){return T_(t,r)||r===Ye&&T_(t,Qe)||r===Qe&&(t===yt||!!(128&t.flags)&&e.isNumericLiteralName(t.value))}function _l(t){return 3670016&t.flags?Ic(t).indexInfos:e.emptyArray}function fl(e){return _l(Qc(e))}function ml(e,t){return dl(fl(e),t)}function gl(e,t){var r;return null===(r=ml(e,t))||void 0===r?void 0:r.type}function hl(e,t){return fl(e).filter((e=>pl(t,e.keyType)))}function yl(e,t){return ul(fl(e),t)}function vl(t,r){return yl(t,$s(r)?ot:Fp(e.unescapeLeadingUnderscores(r)))}function bl(t){for(var r,n,i=0,a=e.getEffectiveTypeParameterDeclarations(t);i<a.length;i++){var o=a[i];n=e.appendIfUnique(n,Ms(o.symbol))}return(null==n?void 0:n.length)?n:e.isFunctionDeclaration(t)?null===(r=wl(t))||void 0===r?void 0:r.typeParameters:void 0}function El(e){var t=[];return e.forEach(((e,r)=>{Pa(r)||t.push(e)})),t}function xl(t){return e.isInJSFile(t)&&(t.type&&316===t.type.kind||e.getJSDocParameterTags(t).some((e=>{var t=e.isBracketed,r=e.typeExpression;return t||!!r&&316===r.type.kind})))}function Dl(t,r){if(!e.isExternalModuleNameRelative(t)){var n=ui(se,'"'+t+'"',512);return n&&r?ha(n):n}}function Sl(t){if(e.hasQuestionToken(t)||Tl(t)||xl(t))return!0;if(t.initializer){var r=Nl(t.parent),n=t.parent.parameters.indexOf(t);return e.Debug.assert(n>=0),n>=Lb(r,3)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function Tl(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&316===n.type.kind}function Cl(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function Al(t){var r,n=0;if(t)for(var i=0;i<t.length;i++)(r=t[i]).symbol&&e.forEach(r.symbol.declarations,(t=>e.isTypeParameterDeclaration(t)&&t.default))||(n=i+1);return n}function kl(t,r,n,i){var a=e.length(r);if(!a)return[];var o=e.length(t);if(i||o>=n&&o<=a){for(var s=t?t.slice():[],c=o;c<a;c++)s[c]=Ue;var l=tg(i);for(c=o;c<a;c++){var d=qc(r[c]);i&&d&&(b_(d,He)||b_(d,Tt))&&(d=Re),s[c]=d?u_(d,Kp(r,s)):l}return s.length=r.length,s}return t&&t.slice()}function Nl(t){var r,n=li(t);if(!n.resolvedSignature){var i=[],a=0,o=0,s=void 0,c=!1,l=e.getImmediatelyInvokedFunctionExpression(t),d=e.isJSDocConstructSignature(t);!l&&e.isInJSFile(t)&&e.isValueSignatureDeclaration(t)&&!e.hasJSDocParameterTags(t)&&!e.getJSDocType(t)&&(a|=32);for(var u=d?1:0;u<t.parameters.length;u++){var p=t.parameters[u],_=p.symbol,f=e.isJSDocParameterTag(p)?p.typeExpression&&p.typeExpression.type:p.type;_&&4&_.flags&&!e.isBindingPattern(p.name)&&(_=mi(p,_.escapedName,111551,void 0,void 0,!1)),0===u&&"this"===_.escapedName?(c=!0,s=p.symbol):i.push(_),f&&196===f.kind&&(a|=2),Tl(p)||p.initializer||p.questionToken||e.isRestParameter(p)||l&&i.length>l.arguments.length&&!f||xl(p)||(o=i.length)}if((172===t.kind||173===t.kind)&&Xs(t)&&(!c||!s)){var m=172===t.kind?173:172,g=e.getDeclarationOfKind(ya(t),m);g&&(s=(r=wT(g))&&r.symbol)}var h=171===t.kind?As(ha(t.parent.symbol)):void 0,y=h?h.localTypeParameters:bl(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&((t,r)=>{if(e.isJSDocSignature(t)||!Fl(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,(t=>t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0)),o=Zn(3,"args",32768);return a?o.type=Gd(Up(a.type)):(o.checkFlags|=65536,o.deferralParent=ct,o.deferralConstituents=[tr],o.deferralWriteConstituents=[tr]),a&&r.pop(),r.push(o),!0})(t,i))&&(a|=1),(e.isConstructorTypeNode(t)&&e.hasSyntacticModifier(t,128)||e.isConstructorDeclaration(t)&&e.hasSyntacticModifier(t.parent,128))&&(a|=4),n.resolvedSignature=ic(t,y,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function wl(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t);return(null==r?void 0:r.typeExpression)&&Pv(Up(r.typeExpression))}}function Fl(t){var r=li(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 79:return r.escapedText===ue.escapedName&&sT(r)===ue;case 167:case 169:case 172:case 173:return 162===r.name.kind&&t(r.name);case 206:case 207:return t(r.expression);case 296:return t(r.initializer);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function Pl(t){if(!t||!t.declarations)return e.emptyArray;for(var r=[],n=0;n<t.declarations.length;n++){var i=t.declarations[n];if(e.isFunctionLike(i)){if(n>0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(Nl(i))}}return r}function Il(e){var t=ra(e,e);if(t){var r=oa(t);if(r)return cs(r)}return Re}function Ol(e){if(e.thisParameter)return cs(e.thisParameter)}function Ml(t){if(!t.resolvedTypePredicate){if(t.target){var r=Ml(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,Cl(o.kind,o.parameterName,o.parameterIndex,u_(o.type,s))):Rr}else if(t.compositeSignatures)t.resolvedTypePredicate=((e,t)=>{for(var r,n=[],i=0,a=e;i<a.length;i++){var o=Ml(a[i]);if(!o||2===o.kind||3===o.kind){if(2097152!==t)continue;return}if(r){if(!mu(r,o))return}else r=o;n.push(o.type)}if(r){var s=Rl(n,t);return Cl(r.kind,r.parameterName,r.parameterIndex,s)}})(t.compositeSignatures,t.compositeKind)||Rr;else{var n=t.declaration&&e.getEffectiveReturnTypeNode(t.declaration),i=void 0;if(!n&&e.isInJSFile(t.declaration)){var a=wl(t.declaration);a&&t!==a&&(i=Ml(a))}t.resolvedTypePredicate=n&&e.isTypePredicateNode(n)?((t,r)=>{var n=t.parameterName,i=t.type&&Up(t.type);return 192===n.kind?Cl(t.assertsModifier?2:0,void 0,void 0,i):Cl(t.assertsModifier?3:1,n.escapedText,e.findIndex(r.parameters,(e=>e.escapedName===n.escapedText)),i)})(n,t):i||Rr}e.Debug.assert(!!t.resolvedTypePredicate)}var o,s;return t.resolvedTypePredicate===Rr?void 0:t.resolvedTypePredicate}function Rl(e,t,r){return 2097152!==t?fu(e,r):xu(e)}function Ll(t){if(!t.resolvedReturnType){if(!mo(t,3))return Ue;var r=t.target?u_(Ll(t.target),t.mapper):t.compositeSignatures?u_(Rl(e.map(t.compositeSignatures,Ll),t.compositeKind,2),t.mapper):Bl(t.declaration)||(e.nodeIsMissing(t.declaration.body)?Re:$b(t.declaration));if(8&t.flags?r=rm(r):16&t.flags&&(r=em(r)),!yo()){if(t.declaration){var n=e.getEffectiveReturnTypeNode(t.declaration);if(n)Jn(n,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(Q){var i=t.declaration,a=e.getNameOfDeclaration(i);a?Jn(a,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,e.declarationNameToString(a)):Jn(i,e.Diagnostics.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)}}r=Re}t.resolvedReturnType=r}return t.resolvedReturnType}function Bl(t){if(171===t.kind)return As(ha(t.parent.symbol));if(e.isJSDocConstructSignature(t))return Up(t.parameters[0].type);var r,n=e.getEffectiveReturnTypeNode(t);if(n)return Up(n);if(172===t.kind&&Xs(t)){var i=e.isInJSFile(t)&&Po(t);if(i)return i;var a=Zo(e.getDeclarationOfKind(ya(t),173));if(a)return a}return(r=wl(t))&&Ll(r)}function Ul(e){return!e.resolvedReturnType&&go(e,3)>=0}function jl(e){if(U(e)){var t=cs(e.parameters[e.parameters.length-1]),r=Kf(t)?$f(t):t;return r&&gl(r,Qe)}}function Vl(e,t,r,n){var i=zl(e,kl(t,e.typeParameters,Al(e.typeParameters),r));if(n){var a=Iv(Ll(i));if(a){var o=ac(a);o.typeParameters=n;var s=ac(i);return s.resolvedReturnType=Jl(o),s}}return i}function zl(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=nd(r),a=n.get(i);return a||n.set(i,a=Hl(t,r)),a}function Hl(e,t){return r_(e,((e,t)=>Kp(e.typeParameters,t))(e,t),!0)}function Wl(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=(e=>r_(e,Yp(e.typeParameters),!0))(e)):e}function Kl(t){var r=t.typeParameters;if(r){if(t.baseSignatureCache)return t.baseSignatureCache;for(var n=Yp(r),i=Kp(r,e.map(r,(e=>Uc(e)||He))),a=e.map(r,(e=>u_(e,i)||He)),o=0;o<r.length-1;o++)a=zp(a,i);return a=zp(a,n),t.baseSignatureCache=r_(t,Kp(r,a),!0)}return t}function Jl(t){var r;if(!t.isolatedSignatureType){var n=null===(r=t.declaration)||void 0===r?void 0:r.kind,i=void 0===n||171===n||175===n||180===n,a=wa(16);a.members=V,a.properties=e.emptyArray,a.callSignatures=i?e.emptyArray:[t],a.constructSignatures=i?[t]:e.emptyArray,a.indexInfos=e.emptyArray,t.isolatedSignatureType=a}return t.isolatedSignatureType}function Gl(e){return e.members?$l(e.members):void 0}function $l(e){return e.get("__index")}function ql(e,t,r,n){return{keyType:e,type:t,isReadonly:r,declaration:n}}function Xl(t){var r=Gl(t);return r?Yl(r):e.emptyArray}function Yl(t){if(t.declarations){for(var r=[],n=t=>{if(1===t.parameters.length){var n=t.parameters[0];n.type&&Vg(Up(n.type),(n=>{Ql(n)&&!dl(r,n)&&r.push(ql(n,t.type?Up(t.type):Re,e.hasEffectiveModifier(t,64),t))}))}},i=0,a=t.declarations;i<a.length;i++)n(a[i]);return r}return e.emptyArray}function Ql(t){return!!(4108&t.flags)||Ju(t)||!!(2097152&t.flags)&&!Gu(t)&&e.some(t.types,Ql)}function Zl(t){return e.mapDefined(e.filter(t.symbol&&t.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function ed(t,r){var n,i;if(null===(n=t.symbol)||void 0===n?void 0:n.declarations)for(var a=n=>{if(190===n.parent.kind){var a=e.walkUpParenthesizedTypesAndGetParentAndChild(n.parent.parent),o=a[0],s=void 0===o?n.parent:o,c=a[1];if(178!==c.kind||r){if(164===c.kind&&c.dotDotDotToken||186===c.kind||197===c.kind&&c.dotDotDotToken)i=e.append(i,Gd(He));else if(199===c.kind)i=e.append(i,Ye);else if(163===c.kind&&195===c.parent.kind)i=e.append(i,mt);else if(195===c.kind&&c.type&&e.skipParentheses(c.type)===n.parent&&189===c.parent.kind&&c.parent.extendsType===c&&195===c.parent.checkType.kind&&c.parent.checkType.type){var l=c.parent.checkType,d=Up(l.type);i=e.append(i,u_(d,Gp(Ms(ya(l.typeParameter)),l.typeParameter.constraint?Up(l.typeParameter.constraint):mt)))}}else{var u=c,p=rx(u);if(p){var _=u.typeArguments.indexOf(s);if(_<p.length){var f=Uc(p[_]);if(f){var m=u_(f,qp(p,p.map(((e,t)=>()=>((e,t,r)=>e.typeArguments&&r<e.typeArguments.length?Up(e.typeArguments[r]):ex(e,t)[r])(u,p,t)))));m!==t&&(i=e.append(i,m))}}}}}},o=0,s=t.symbol.declarations;o<s.length;o++)a(s[o]);return i&&xu(i)}function td(e){if(!e.constraint)if(e.target){var t=Uc(e.target);e.constraint=t?u_(t,e.mapper):Pt}else{var r=Zl(e);if(r){var n=Up(r);1&n.flags&&!xo(n)&&(n=195===r.parent.parent.kind?mt:He),e.constraint=n}else e.constraint=ed(e)||Pt}return e.constraint===Pt?void 0:e.constraint}function rd(t){var r=e.getDeclarationOfKind(t.symbol,163),n=e.isJSDocTemplateTag(r.parent)?e.getEffectiveContainerForJSDocTemplateTag(r.parent):r.parent;return n&&ya(n)}function nd(e){var t="";if(e)for(var r=e.length,n=0;n<r;){for(var i=e[n].id,a=1;n+a<r&&e[n+a].id===i+a;)a++;t.length&&(t+=","),t+=i,a>1&&(t+=":"+a),n+=a}return t}function id(e,t){return e?"@".concat(O(e))+(t?":".concat(nd(t)):""):""}function ad(t,r){for(var n=0,i=0,a=t;i<a.length;i++){var o=a[i];void 0!==r&&o.flags&r||(n|=e.getObjectFlags(o))}return 458752&n}function od(e,t){var r=nd(t),n=e.instantiations.get(r);return n||(n=wa(4,e.symbol),e.instantiations.set(r,n),n.objectFlags|=t?ad(t):0,n.target=e,n.resolvedTypeArguments=t),n}function sd(e){var t=Aa(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function cd(e,t,r,n,i){if(!n){var a=bp(n=vp(t));i=r?zp(a,r):a}var o=wa(4,e.symbol);return o.target=e,o.node=t,o.mapper=r,o.aliasSymbol=n,o.aliasTypeArguments=i,o}function ld(t){var r,n;if(!t.resolvedTypeArguments){if(!mo(t,6))return(null===(r=t.target.localTypeParameters)||void 0===r?void 0:r.map((()=>Ue)))||e.emptyArray;var i=t.node,a=i?178===i.kind?e.concatenate(t.target.outerTypeParameters,ex(i,t.target.localTypeParameters)):183===i.kind?[Up(i.elementType)]:e.map(i.elements,Up):e.emptyArray;yo()?t.resolvedTypeArguments=t.mapper?zp(a,t.mapper):a:(t.resolvedTypeArguments=(null===(n=t.target.localTypeParameters)||void 0===n?void 0:n.map((()=>Ue)))||e.emptyArray,Jn(t.node||s,t.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,t.target.symbol&&Qa(t.target.symbol)))}return t.resolvedTypeArguments}function dd(t){return e.length(t.target.typeParameters)}function ud(t,r){var n=Rs(ha(r)),i=n.localTypeParameters;if(i){var a=e.length(t.typeArguments),o=Al(i),s=e.isInJSFile(t);if((Q||!s)&&(a<o||a>i.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(Jn(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,eo(n,void 0,2),o,i.length),!s)return Ue}return 178===t.kind&&Xd(t,e.length(t.typeArguments)!==i.length)?cd(n,t,void 0):od(n,e.concatenate(n.outerTypeParameters,kl(Cd(t),i,o,s)))}return Dd(t,r)?n:Ue}function pd(t,r,n,i){var a=Rs(t);if(a===ze&&w.has(t.escapedName)&&r&&1===r.length)return Bu(t,r[0]);var o=ci(t),s=o.typeParameters,c=nd(r)+id(n,i),l=o.instantiations.get(c);return l||o.instantiations.set(c,l=p_(a,Kp(s,kl(r,s,Al(s),e.isInJSFile(t.valueDeclaration))),n,i)),l}function _d(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias);return!(!n||!e.getContainingFunction(n))}function fd(e){return e.parent?"".concat(fd(e.parent),".").concat(e.escapedName):e.escapedName}function md(e){var t=(161===e.kind?e.right:206===e.kind?e.name:e).escapedText;if(t){var r=161===e.kind?md(e.left):206===e.kind?md(e.expression):void 0,n=r?"".concat(fd(r),".").concat(t):t,i=Oe.get(n);return i||(Oe.set(n,i=Zn(524288,t,1048576)),i.parent=r,i.declaredType=je),i}return Pe}function gd(t,r,n){var i=(t=>{switch(t.kind){case 178:return t.typeName;case 228:var r=t.expression;if(e.isEntityNameExpression(r))return r}})(t);if(!i)return Pe;var a=ea(i,r,n);return a&&a!==Pe?a:n?Pe:md(i)}function hd(t,r){if(r===Pe)return Ue;if(96&(r=(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=ya(n);if(i)return _b(i,t)}}})(r)||r).flags)return ud(t,r);if(524288&r.flags)return((t,r)=>{if(1048576&e.getCheckFlags(r)){var n=Cd(t),i=id(r,n),a=Me.get(i);return a||((a=Na(1,"error")).aliasSymbol=r,a.aliasTypeArguments=n,Me.set(i,a)),a}var o=Rs(r),s=ci(r).typeParameters;if(s){var c=e.length(t.typeArguments),l=Al(s);if(c<l||c>s.length)return Jn(t,l===s.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Qa(r),l,s.length),Ue;var d=vp(t),u=!d||!_d(r)&&_d(d)?void 0:d;return pd(r,Cd(t),u,bp(u))}return Dd(t,r)?o:Ue})(t,r);var n=Ls(r);return n?Dd(t,r)?Np(n):Ue:111551&r.flags&&xd(t)?((e,t)=>{var r=li(e);if(!r.resolvedJSDocType){var n=cs(t),i=n;if(t.valueDeclaration){var a=200===e.kind&&e.qualifier;n.symbol&&n.symbol!==t&&a&&(i=hd(e,n.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType})(t,r)||(gd(t,788968),cs(r)):Ue}function yd(e,t){if(3&t.flags||t===e)return e;var r="".concat(su(e),">").concat(su(t)),n=Ce.get(r);if(n)return n;var i=Aa(33554432);return i.baseType=e,i.substitute=t,Ce.set(r,i),i}function vd(e){return 184===e.kind&&1===e.elements.length}function bd(e,t,r){return vd(t)&&vd(r)?bd(e,t.elements[0],r.elements[0]):op(Up(t))===op(e)?Up(r):void 0}function Ed(t,r){for(var n,i=!0;r&&!e.isStatement(r)&&320!==r.kind;){var a=r.parent;if(164===a.kind&&(i=!i),(i||8650752&t.flags)&&189===a.kind&&r===a.trueType)(s=bd(t,a.checkType,a.extendsType))&&(n=e.append(n,s));else if(262144&t.flags&&195===a.kind&&r===a.type){var o=Up(a);if(xc(o)===op(t)){var s,c=a_(o);c&&(s=Uc(c))&&Hg(s,Af)&&(n=e.append(n,fu([Qe,yt])))}}r=a}return n?yd(t,xu(e.append(n,t))):t}function xd(e){return!!(8388608&e.flags)&&(178===e.kind||200===e.kind)}function Dd(t,r){return!t.typeArguments||(Jn(t,e.Diagnostics.Type_0_is_not_generic,r?Qa(r):t.typeName?e.declarationNameToString(t.typeName):o),!1)}function Sd(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return Dd(t),Ye;case"Number":return Dd(t),Qe;case"Boolean":return Dd(t),at;case"Void":return Dd(t),st;case"Undefined":return Dd(t),Ke;case"Null":return Dd(t),qe;case"Function":case"function":return Dd(t),Kt;case"array":return r&&r.length||Q?void 0:tr;case"promise":return r&&r.length||Q?void 0:Kb(Re);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=Up(r[0]),i=Up(r[1]),a=n===Ye||n===Qe?[ql(n,i,!1)]:e.emptyArray;return Ra(void 0,V,e.emptyArray,e.emptyArray,a)}return Re}return Dd(t),Q?void 0:Re}}}function Td(t){var r=li(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=Pe,r.resolvedType=TE(t.parent.expression);var n=void 0,i=void 0,a=788968;xd(t)&&((i=Sd(t))||((n=gd(t,a,!0))===Pe?n=gd(t,900095):gd(t,a),i=hd(t,n))),i||(i=hd(t,n=gd(t,a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function Cd(t){return e.map(t.typeArguments,Up)}function Ad(e){var t=li(e);if(!t.resolvedType){var r=Sb(e);t.resolvedType=Np(hm(r))}return t.resolvedType}function kd(t,r){function n(e){var t=e.declarations;if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];switch(i.kind){case 257:case 258:case 260:return i}}}if(!t)return r?wt:Tt;var i=Rs(t);return 524288&i.flags?e.length(i.typeParameters)!==r?(Jn(n(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(t),r),r?wt:Tt):i:(Jn(n(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(t)),r?wt:Tt)}function Nd(t,r){return Pd(t,111551,r?e.Diagnostics.Cannot_find_global_value_0:void 0)}function wd(t,r){return Pd(t,788968,r?e.Diagnostics.Cannot_find_global_type_0:void 0)}function Fd(t,r,n){var i=Pd(t,788968,n?e.Diagnostics.Cannot_find_global_type_0:void 0);if(!i||(Rs(i),e.length(ci(i).typeParameters)===r))return i;Jn(i.declarations&&e.find(i.declarations,e.isTypeAliasDeclaration),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(i),r)}function Pd(e,t,r){return mi(void 0,e,t,r,e,!1,!1,!1)}function Id(e,t,r){var n=wd(e,r);return n||r?kd(n,t):void 0}function Od(){return Sr||(Sr=Id("ImportMeta",0,!0)||Tt)}function Md(){if(!Tr){var t=Zn(0,"ImportMetaExpression"),r=Od(),n=Zn(4,"meta",8);n.parent=t,n.type=r;var i=e.createSymbolTable([n]);t.members=i,Tr=Ra(t,i,e.emptyArray,e.emptyArray,e.emptyArray)}return Tr}function Rd(e){return Cr||(Cr=Id("ImportCallOptions",0,e))||Tt}function Ld(e){return ar||(ar=Nd("Symbol",e))}function Bd(){return sr||(sr=Id("Symbol",0,!1))||Tt}function Ud(e){return lr||(lr=Id("Promise",1,e))||wt}function jd(e){return dr||(dr=Id("PromiseLike",1,e))||wt}function Vd(e){return ur||(ur=Nd("Promise",e))}function zd(e){return _r||(_r=Id("Iterable",1,e))||wt}function Hd(e,t){void 0===t&&(t=0);var r=Pd(e,788968,void 0);return r&&kd(r,t)}function Wd(e){return Nr||(Nr=Fd("Awaited",1,e)||(e?Pe:void 0)),Nr===Pe?void 0:Nr}function Kd(e,t){return e!==wt?od(e,t):Tt}function Jd(e){return Kd(cr||(cr=Id("TypedPropertyDescriptor",1,!0)||wt),[e])}function Gd(e,t){return Kd(t?qt:$t,[e])}function $d(e){switch(e.kind){case 185:return 2;case 186:return qd(e);case 197:return e.questionToken?2:e.dotDotDotToken?qd(e):1;default:return 1}}function qd(e){return Bp(e.type)?4:8}function Xd(t,r){return!!vp(t)||Yd(t)&&(183===t.kind?Qd(t.elementType):184===t.kind?e.some(t.elements,Qd):r||e.some(t.typeArguments,Qd))}function Yd(e){var t=e.parent;switch(t.kind){case 191:case 197:case 178:case 187:case 188:case 194:case 189:case 193:case 183:case 184:return Yd(t);case 259:return!0}return!1}function Qd(t){switch(t.kind){case 178:return xd(t)||!!(524288&gd(t,788968).flags);case 181:return!0;case 193:return 154!==t.operator&&Qd(t.type);case 191:case 185:case 197:case 316:case 314:case 315:case 309:return Qd(t.type);case 186:return 183!==t.type.kind||Qd(t.type.elementType);case 187:case 188:return e.some(t.types,Qd);case 194:return Qd(t.objectType)||Qd(t.indexType);case 189:return Qd(t.checkType)||Qd(t.extendsType)||Qd(t.trueType)||Qd(t.falseType)}return!1}function Zd(t,r,n,i){void 0===n&&(n=!1);var a=eu(r||e.map(t,(e=>1)),n,i);return a===wt?Tt:t.length?tu(a,t):a}function eu(t,r,n){if(1===t.length&&4&t[0])return r?qt:$t;var i=e.map(t,(e=>1&e?"#":2&e?"?":4&e?".":"*")).join()+(r?"R":"")+(n&&n.length?","+e.map(n,I).join(","):""),a=ge.get(i);return a||ge.set(i,a=((t,r,n)=>{var i,a=t.length,o=e.countWhere(t,(e=>!!(9&e))),s=[],c=0;if(a){i=new Array(a);for(var l=0;l<a;l++){var d=i[l]=Fa(),u=t[l];if(!(12&(c|=u))){var p=Zn(4|(2&u?16777216:0),""+l,r?8:0);p.tupleLabelDeclaration=null==n?void 0:n[l],p.type=d,s.push(p)}}}var _=s.length,f=Zn(4,"length",r?8:0);if(12&c)f.type=Qe;else{var m=[];for(l=o;l<=a;l++)m.push(Pp(l));f.type=fu(m)}s.push(f);var g=wa(12);return g.typeParameters=i,g.outerTypeParameters=void 0,g.localTypeParameters=i,g.instantiations=new e.Map,g.instantiations.set(nd(g.typeParameters),g),g.target=g,g.resolvedTypeArguments=g.typeParameters,g.thisType=Fa(),g.thisType.isThisType=!0,g.thisType.constraint=g,g.declaredProperties=s,g.declaredCallSignatures=e.emptyArray,g.declaredConstructSignatures=e.emptyArray,g.declaredIndexInfos=e.emptyArray,g.elementFlags=t,g.minLength=o,g.fixedLength=_,g.hasRestElement=!!(12&c),g.combinedFlags=c,g.readonly=r,g.labeledElementDeclarations=n,g})(t,r,n)),a}function tu(e,t){return 8&e.objectFlags?ru(e,t):od(e,t)}function ru(t,r){var n,i,a;if(!(14&t.combinedFlags))return od(t,r);if(8&t.combinedFlags){var o=e.findIndex(r,((e,r)=>!!(8&t.elementFlags[r]&&1179648&e.flags)));if(o>=0)return Su(e.map(r,((e,r)=>8&t.elementFlags[r]?e:He)))?Gg(r[o],(n=>ru(t,e.replaceElement(r,o,n)))):Ue}for(var c=[],l=[],d=[],u=-1,p=-1,_=-1,f=o=>{var l=r[o],d=t.elementFlags[o];if(8&d)if(58982400&l.flags||Pc(l))y(l,8,null===(n=t.labeledElementDeclarations)||void 0===n?void 0:n[o]);else if(Kf(l)){var u=ld(l);if(u.length+c.length>=1e4)return Jn(s,e.isPartOfTypeNode(s)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:Ue};e.forEach(u,((e,t)=>{var r;return y(e,l.target.elementFlags[t],null===(r=l.target.labeledElementDeclarations)||void 0===r?void 0:r[t])}))}else y(wf(l)&&gl(l,Qe)||Ue,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]);else y(l,d,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},m=0;m<r.length;m++){var g=f(m);if("object"==typeof g)return g.value}for(m=0;m<u;m++)2&l[m]&&(l[m]=1);p>=0&&p<_&&(c[p]=fu(e.sameMap(c.slice(p,_+1),((e,t)=>8&l[p+t]?tp(e,Qe):e))),c.splice(p+1,_-p),l.splice(p+1,_-p),null==d||d.splice(p+1,_-p));var h=eu(l,t.readonly,d);return h===wt?Tt:l.length?od(h,c):h;function y(e,t,r){1&t&&(u=l.length),4&t&&p<0&&(p=l.length),6&t&&(_=l.length),c.push(e),l.push(t),d&&r?d.push(r):d=void 0}}function nu(t,r,n){void 0===n&&(n=0);var i=t.target,a=dd(t)-n;return r>i.fixedLength?(e=>{var t=$f(e);return t&&Gd(t)})(t)||Zd(e.emptyArray):Zd(ld(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function iu(t){return fu(e.append(e.arrayOf(t.target.fixedLength,(e=>Fp(""+e))),Ou(t.target.readonly?qt:$t)))}function au(t,r){var n=e.findIndex(t.elementFlags,(e=>!(e&r)));return n>=0?n:t.elementFlags.length}function ou(t,r){return t.elementFlags.length-e.findLastIndex(t.elementFlags,(e=>!(e&r)))-1}function su(e){return e.id}function cu(t,r){return e.binarySearch(t,r,su,e.compareValues)>=0}function lu(t,r){var n=e.binarySearch(t,r,su,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function du(t,r,n){var i=n.flags;if(1048576&i)return uu(t,r|((e=>!!(1048576&e.flags&&(e.aliasSymbol||e.origin)))(n)?1048576:0),n.types);if(!(131072&i))if(r|=205258751&i,465829888&i&&(r|=33554432),n===Be&&(r|=8388608),!$&&98304&i)65536&e.getObjectFlags(n)||(r|=4194304);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,su,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function uu(e,t,r){for(var n=0,i=r;n<i.length;n++)t=du(e,t,i[n]);return t}function pu(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];if(1048576&a.flags){var o=a.origin;a.aliasSymbol||o&&!(1048576&o.flags)?e.pushIfUnique(t,a):o&&1048576&o.flags&&pu(t,o.types)}}}function _u(e,t){var r=ka(e);return r.types=t,r}function fu(t,r,n,i,a){if(void 0===r&&(r=1),0===t.length)return ct;if(1===t.length)return t[0];var o=[],c=uu(o,0,t);if(0!==r){if(3&c)return 1&c?8388608&c?Be:Re:65536&c||cu(o,He)?He:We;if(ne&&32768&c){var l=e.binarySearch(o,$e,su,e.compareValues);l>=0&&cu(o,Ke)&&e.orderedRemoveItemAt(o,l)}if((402664320&c||16384&c&&32768&c)&&((t,r,n)=>{for(var i=t.length;i>0;){var a=t[--i],o=a.flags;(402653312&o&&4&r||256&o&&8&r||2048&o&&64&r||8192&o&&4096&r||n&&32768&o&&16384&r||wp(a)&&cu(t,a.regularType))&&e.orderedRemoveItemAt(t,i)}})(o,c,!!(2&r)),128&c&&134217728&c&&(t=>{var r=e.filter(t,Ju);if(r.length)for(var n=t.length,i=()=>{n--;var i=t[n];128&i.flags&&e.some(r,(e=>Jm(i,e)))&&e.orderedRemoveItemAt(t,n)};n>0;)i()})(o),2===r&&!(o=((t,r)=>{if(t.length<2)return t;var n=nd(t),i=Ae.get(n);if(i)return i;for(var a=r&&e.some(t,(e=>!!(524288&e.flags)&&!Pc(e)&&V_(Ic(e)))),o=t.length,c=o,l=0;c>0;){var d=t[--c];if(a||469499904&d.flags)for(var u=61603840&d.flags?e.find(Lc(d),(e=>Lf(cs(e)))):void 0,p=u&&Np(cs(u)),_=0,f=t;_<f.length;_++){var m=f[_];if(d!==m){if(1e5===l&&l/(o-c)*o>1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:t.map((e=>e.id))}),void Jn(s,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,u&&61603840&m.flags){var g=bo(m,u.escapedName);if(g&&Lf(g)&&Np(g)!==p)continue}if($_(d,m,Pn)&&(!(1&e.getObjectFlags(us(d)))||!(1&e.getObjectFlags(us(m)))||C_(d,m))){e.orderedRemoveItemAt(t,c);break}}}}return Ae.set(n,t),t})(o,!!(524288&c))))return Ue;if(0===o.length)return 65536&c?4194304&c?qe:Xe:32768&c?4194304&c?Ke:Je:ct}if(!a&&1048576&c){var d=[];pu(d,t);for(var u=[],p=t=>{e.some(d,(e=>cu(e.types,t)))||u.push(t)},_=0,f=o;_<f.length;_++)p(f[_]);if(!n&&1===d.length&&0===u.length)return d[0];if(e.reduceLeft(d,((e,t)=>e+t.types.length),0)+u.length===o.length){for(var m=0,g=d;m<g.length;m++)lu(u,g[m]);a=_u(1048576,u)}}return gu(o,(36323363&c?0:32768)|(2097152&c?16777216:0),n,i,a)}function mu(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function gu(e,t,r,n,i){if(0===e.length)return ct;if(1===e.length)return e[0];var a=(i?1048576&i.flags?"|".concat(nd(i.types)):2097152&i.flags?"&".concat(nd(i.types)):"#".concat(i.type.id,"|").concat(nd(e)):nd(e))+id(r,n),o=he.get(a);return o||((o=Aa(1048576)).objectFlags=t|ad(e,98304),o.types=e,o.origin=i,o.aliasSymbol=r,o.aliasTypeArguments=n,2===e.length&&512&e[0].flags&&512&e[1].flags&&(o.flags|=16,o.intrinsicName="boolean"),he.set(a,o)),o}function hu(e,t,r){var n=r.flags;return 2097152&n?yu(e,t,r.types):(H_(r)?16777216&t||(t|=16777216,e.set(r.id.toString(),r)):(3&n?r===Be&&(t|=8388608):!$&&98304&n||(ne&&r===$e&&(t|=262144,r=Ke),e.has(r.id.toString())||(109440&r.flags&&109440&t&&(t|=67108864),e.set(r.id.toString(),r))),t|=205258751&n),t)}function yu(e,t,r){for(var n=0,i=r;n<i.length;n++)t=hu(e,t,Np(i[n]));return t}function vu(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!cu(i.types,t)){var a=128&t.flags?Ye:256&t.flags?Qe:2048&t.flags?Ze:8192&t.flags?ot:void 0;if(!a||!cu(i.types,a))return!1}}return!0}function bu(t,r){return e.every(t,(t=>!!(1048576&t.flags)&&e.some(t.types,(e=>!!(e.flags&r)))))}function Eu(e,t){for(var r=0;r<e.length;r++)e[r]=Wg(e[r],(e=>!(e.flags&t)))}function xu(t,r,n,i){var a=new e.Map,o=yu(a,0,t),s=e.arrayFrom(a.values());if(131072&o)return e.contains(s,lt)?lt:ct;if($&&98304&o&&84410368&o||67108864&o&&402783228&o||402653316&o&&67238776&o||296&o&&469891796&o||2112&o&&469889980&o||12288&o&&469879804&o||49152&o&&469842940&o)return ct;if(134217728&o&&128&o&&(t=>{for(var r=t.length,n=e.filter(t,(e=>!!(128&e.flags)));r>0;){var i=t[--r];if(134217728&i.flags)for(var a=0,o=n;a<o.length;a++){if(S_(o[a],i)){e.orderedRemoveItemAt(t,r);break}if(Ju(i))return!0}}return!1})(s))return ct;if(1&o)return 8388608&o?Be:Re;if(!$&&98304&o)return 16777216&o?ct:32768&o?Ke:qe;if((4&o&&402653312&o||8&o&&256&o||64&o&&2048&o||4096&o&&8192&o||16384&o&&32768&o||16777216&o&&470302716&o)&&(i||((t,r)=>{for(var n=t.length;n>0;){var i=t[--n];(4&i.flags&&402653312&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r||16384&i.flags&&32768&r||H_(i)&&470302716&r)&&e.orderedRemoveItemAt(t,n)}})(s,o)),262144&o&&(s[s.indexOf(Ke)]=$e),0===s.length)return He;if(1===s.length)return s[0];var c=nd(s)+id(r,n),l=ye.get(c);if(!l){if(1048576&o)if((t=>{var r,n=e.findIndex(t,(t=>!!(32768&e.getObjectFlags(t))));if(n<0)return!1;for(var i=n+1;i<t.length;){var a=t[i];32768&e.getObjectFlags(a)?((r||(r=[t[n]])).push(a),e.orderedRemoveItemAt(t,i)):i++}if(!r)return!1;for(var o=[],s=[],c=0,l=r;c<l.length;c++)for(var d=0,u=l[c].types;d<u.length;d++)lu(o,a=u[d])&&vu(r,a)&&lu(s,a);return t[n]=gu(s,32768),!0})(s))l=xu(s,r,n);else if(bu(s,32768)){var d=ne&&e.some(s,(e=>cu(e.types,$e)))?$e:Ke;Eu(s,32768),l=fu([xu(s),d],1,r,n)}else if(bu(s,65536))Eu(s,65536),l=fu([xu(s),qe],1,r,n);else{if(!Su(s))return Ue;var u=(e=>{for(var t=Du(e),r=[],n=0;n<t;n++){for(var i=e.slice(),a=n,o=e.length-1;o>=0;o--)if(1048576&e[o].flags){var s=e[o].types,c=s.length;i[o]=s[a%c],a=Math.floor(a/c)}var l=xu(i);131072&l.flags||r.push(l)}return r})(s);l=fu(u,1,r,n,e.some(u,(e=>!!(2097152&e.flags)))&&Cu(u)>Cu(s)?_u(2097152,s):void 0)}else l=((e,t,r)=>{var n=Aa(2097152);return n.objectFlags=ad(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n})(s,r,n);ye.set(c,l)}return l}function Du(t){return e.reduceLeft(t,((e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e),1)}function Su(t){var r=Du(t);return!(r>=1e5&&(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:t.map((e=>e.id)),size:r}),Jn(s,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function Tu(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?Tu(e.origin):Cu(e.types):1}function Cu(t){return e.reduceLeft(t,((e,t)=>e+Tu(t)),0)}function Au(e,t){var r=Aa(4194304);return r.type=e,r.stringsOnly=t,r}function ku(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Au(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=Au(e,!1))}function Nu(t){return e.isPrivateIdentifier(t)?ct:e.isIdentifier(t)?Fp(e.unescapeLeadingUnderscores(t.escapedText)):Np(e.isComputedPropertyName(t)?uy(t):HE(t))}function wu(t,r,n){if(n||!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var i=ci(tc(t)).nameType;if(!i){var a=e.getNameOfDeclaration(t.valueDeclaration);i="default"===t.escapedName?Fp("default"):a&&Nu(a)||(e.isKnownSymbol(t)?void 0:Fp(e.symbolName(t)))}if(i&&i.flags&r)return i}return ct}function Fu(t,r){return!!(t.flags&r||2097152&t.flags&&e.some(t.types,(e=>Fu(e,r))))}function Pu(e){var t=(e=>262143&e.flags?e:e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=u_(e,xt)))(e);return rl(t)!==t}function Iu(t){return!!(58982400&t.flags||Jf(t)||Pc(t)&&(r=t,n=xc(r),!function t(r){return!!(68157439&r.flags)||(16777216&r.flags?r.root.isDistributive&&r.checkType===n:137363456&r.flags?e.every(r.types,t):8388608&r.flags?t(r.objectType)&&t(r.indexType):33554432&r.flags?t(r.substitute):!!(268435456&r.flags)&&t(r.type))}(Sc(r)||n))||1048576&t.flags&&e.some(t.types,Pu)||2097152&t.flags&&dE(t,465829888)&&e.some(t.types,H_));var r,n}function Ou(t,r,n){return void 0===r&&(r=te),Iu(t=rl(t))?ku(t,r):1048576&t.flags?xu(e.map(t.types,(e=>Ou(e,r,n)))):2097152&t.flags?fu(e.map(t.types,(e=>Ou(e,r,n)))):32&e.getObjectFlags(t)?((e,t,r)=>{var n=xc(e),i=Dc(e),a=Sc(e.target||e);if(!a&&!r)return i;var o=[];if(Ac(e)){if(qu(i))return ku(e,t);Ec(Yc(kc(e)),8576,t,c)}else Vg(vc(i),c);qu(i)&&Vg(i,c);var s=r?Wg(fu(o),(e=>!(5&e.flags))):fu(o);return 1048576&s.flags&&1048576&i.flags&&nd(s.types)===nd(i.types)?i:s;function c(t){var r=a?u_(a,e_(e.mapper,n,t)):t;o.push(r===Ye?_t:r)}})(t,r,n):t===Be?Be:2&t.flags?ct:131073&t.flags?mt:((t,r,n)=>{var i=n&&(7&e.getObjectFlags(t)||t.aliasSymbol)?(e=>{var t=ka(4194304);return t.type=e,t})(t):void 0,a=e.map(Lc(t),(e=>wu(e,r))),o=e.map(fl(t),(e=>e!==Vr&&Fu(e.keyType,r)?e.keyType===Ye&&8&r?_t:e.keyType:ct));return fu(e.concatenate(a,o),1,void 0,void 0,i)})(t,(n?128:402653316)|(r?0:12584),r===te&&!n)}function Mu(e){if(te)return e;var t=(Ar||(Ar=Fd("Extract",2,!0)||Pe),Ar===Pe?void 0:Ar);return t?pd(t,[e,Ye]):Ye}function Ru(t,r){var n=e.findIndex(r,(e=>!!(1179648&e.flags)));if(n>=0)return Su(r)?Gg(r[n],(i=>Ru(t,e.replaceElement(r,n,i)))):Ue;if(e.contains(r,Be))return Be;var i=[],a=[],o=t[0];if(!function t(r,n){for(var s=e.isArray(r),c=0;c<n.length;c++){var l=n[c],d=s?r[c+1]:r;if(101248&l.flags){if(o+=Lu(l)||"",o+=d,!s)return!0}else if(134217728&l.flags){if(o+=l.texts[0],!t(l.texts,l.types))return!1;if(o+=d,!s)return!0}else if(qu(l)||Ku(l))i.push(l),a.push(o),o=d;else if(2097152&l.flags){if(!t(r[c+1],l.types))return!1}else if(s)return!1}return!0}(t,r))return Ye;if(0===i.length)return Fp(o);if(a.push(o),e.every(a,(e=>""===e))&&e.every(i,(e=>!!(4&e.flags))))return Ye;var s="".concat(nd(i),"|").concat(e.map(a,(e=>e.length)).join(","),"|").concat(a.join("")),c=Se.get(s);return c||Se.set(s,c=((e,t)=>{var r=Aa(134217728);return r.texts=e,r.types=t,r})(a,i)),c}function Lu(t){return 128&t.flags?t.value:256&t.flags?""+t.value:2048&t.flags?e.pseudoBigIntToString(t.value):98816&t.flags?t.intrinsicName:void 0}function Bu(e,t){return 1179648&t.flags?Gg(t,(t=>Bu(e,t))):268435456&t.flags&&e===t.symbol?t:qu(t)||Ku(t)?((e,t)=>{var r="".concat(O(e),",").concat(su(t)),n=Te.get(r);return n||Te.set(r,n=((e,t)=>{var r=Aa(268435456);return r.symbol=e,r.type=t,r})(e,t)),n})(e,!Ku(t)||268435456&t.flags?t:Ru(["",""],[t])):128&t.flags?Fp(Uu(e,t.value)):134217728&t.flags?Ru.apply(void 0,((e,t,r)=>{switch(w.get(e.escapedName)){case 0:return[t.map((e=>e.toUpperCase())),r.map((t=>Bu(e,t)))];case 1:return[t.map((e=>e.toLowerCase())),r.map((t=>Bu(e,t)))];case 2:return[""===t[0]?t:f([t[0].charAt(0).toUpperCase()+t[0].slice(1)],t.slice(1),!0),""===t[0]?f([Bu(e,r[0])],r.slice(1),!0):r];case 3:return[""===t[0]?t:f([t[0].charAt(0).toLowerCase()+t[0].slice(1)],t.slice(1),!0),""===t[0]?f([Bu(e,r[0])],r.slice(1),!0):r]}return[t,r]})(e,t.texts,t.types)):t}function Uu(e,t){switch(w.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function ju(t){if(Q)return!1;if(4096&e.getObjectFlags(t))return!0;if(1048576&t.flags)return e.every(t.types,ju);if(2097152&t.flags)return e.some(t.types,ju);if(465829888&t.flags){var r=Gc(t);return r!==t&&ju(r)}return!1}function Vu(t,r){return Js(t)?Ys(t):r&&e.isPropertyName(r)?e.getPropertyNameForPropertyNameNode(r):void 0}function zu(t,r){if(8208&r.flags){var n=e.findAncestor(t.parent,(t=>!e.isAccessExpression(t)))||t.parent;return e.isCallLikeExpression(n)?e.isCallOrNewExpression(n)&&e.isIdentifier(t)&&yg(n,t):e.every(r.declarations,(t=>!e.isFunctionLike(t)||!!(268435456&e.getCombinedNodeFlags(t))))}return!0}function Hu(t,r,n,i,a,o){var s,c=a&&207===a.kind?a:void 0,l=a&&e.isPrivateIdentifier(a)?void 0:Vu(n,a);if(void 0!==l){if(256&o)return Kh(r,l)||Re;var d=sl(r,l);if(d){if(64&o&&a&&d.declarations&&Yn(d)&&zu(a,d)&&Qn(null!==(s=null==c?void 0:c.argumentExpression)&&void 0!==s?s:e.isIndexedAccessTypeNode(a)?a.indexType:a,d.declarations,l),c){if(gv(d,c,hv(c.expression,r.symbol)),oE(c,d,e.getAssignmentTargetKind(c)))return void Jn(c.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Qa(d));if(8&o&&(li(a).resolvedSymbol=d),tv(c,d))return Le}var u=cs(d);return c&&1!==e.getAssignmentTargetKind(c)?fh(c,u):u}if(Hg(r,Kf)&&e.isNumericLiteralName(l)){var p=+l;if(a&&Hg(r,(e=>!e.target.hasRestElement))&&!(16&o)){var _=Wu(a);if(Kf(r)){if(p<0)return Jn(_,e.Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value),Ke;Jn(_,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,eo(r),dd(r),e.unescapeLeadingUnderscores(l))}else Jn(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),eo(r))}if(p>=0)return E(ml(r,Qe)),Gg(r,(e=>{var t=$f(e)||Ke;return 1&o?fu([t,Ke]):t}))}}if(!(98304&n.flags)&&uE(n,402665900)){if(131073&r.flags)return r;var f=yl(r,n)||ml(r,Ye);if(f)return 2&o&&f.keyType!==Qe?void(c&&Jn(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,eo(n),eo(t))):a&&f.keyType===Ye&&!uE(n,12)?(Jn(_=Wu(a),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,eo(n)),1&o?fu([f.type,Ke]):f.type):(E(f),1&o?fu([f.type,Ke]):f.type);if(131072&n.flags)return ct;if(ju(r))return Re;if(c&&!_E(r)){if(Qm(r)){if(Q&&384&n.flags)return kn.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,eo(r))),Ke;if(12&n.flags){var m=e.map(r.properties,(e=>cs(e)));return fu(e.append(m,Ke))}}if(r.symbol===le&&void 0!==l&&le.exports.has(l)&&418&le.exports.get(l).flags)Jn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),eo(r));else if(Q&&!H.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==l&&cv(l,r)){var g=eo(r);Jn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,g,g+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(gl(r,Qe))Jn(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var h=void 0;if(void 0!==l&&(h=pv(l,r)))void 0!==h&&Jn(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,eo(r),h);else{var y=((t,r,n)=>{var i=e.isAssignmentTarget(r)?"set":"get";if((e=>{var r=Mc(t,e);if(r){var i=Pv(cs(r));return!!i&&Lb(i)>=1&&T_(n,Ib(i,0))}return!1})(i)){var a=e.tryGetPropertyAccessOrIdentifierToString(r.expression);return void 0===a?a=i:a+="."+i,a}})(r,c,n);if(void 0!==y)Jn(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,eo(r),y);else{var v=void 0;if(1024&n.flags)v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+eo(n)+"]",eo(r));else if(8192&n.flags){var b=Zi(n.symbol,c);v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+b+"]",eo(r))}else 128&n.flags||256&n.flags?v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,eo(r)):12&n.flags&&(v=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,eo(n),eo(r)));v=e.chainDiagnosticMessages(v,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,eo(i),eo(r)),kn.add(e.createDiagnosticForNodeFromMessageChain(c,v))}}}return}}return ju(r)?Re:(a&&(_=Wu(a),384&n.flags?Jn(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,eo(r)):12&n.flags?Jn(_,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,eo(r),eo(n)):Jn(_,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,eo(n))),Eo(n)?n:void 0);function E(t){t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&Jn(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,eo(r))}}function Wu(e){return 207===e.kind?e.argumentExpression:194===e.kind?e.indexType:162===e.kind?e.expression:e}function Ku(e){return!!(77&e.flags)||!!(268435456&e.flags&&Ku(e.type))}function Ju(t){return!!(134217728&t.flags)&&e.every(t.types,Ku)}function Gu(e){return!!Xu(e)}function $u(e){return!!(4194304&Xu(e))}function qu(e){return!!(8388608&Xu(e))}function Xu(t){return 3145728&t.flags?(2097152&t.objectFlags||(t.objectFlags|=2097152|e.reduceLeft(t.types,((e,t)=>e|Xu(t)),0)),12582912&t.objectFlags):33554432&t.flags?(2097152&t.objectFlags||(t.objectFlags|=2097152|Xu(t.substitute)|Xu(t.baseType)),12582912&t.objectFlags):(58982400&t.flags||Pc(t)||Jf(t)?4194304:0)|(465829888&t.flags&&!Ju(t)?8388608:0)}function Yu(t,r){return 8388608&t.flags?((t,r)=>{var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===It?t:t[n];t[n]=It;var i=Yu(t.objectType,r),a=Yu(t.indexType,r),o=((t,r,n)=>{if(1048576&r.flags){var i=e.map(r.types,(e=>Yu(tp(t,e),n)));return n?xu(i):fu(i)}})(i,a,r);if(o)return t[n]=o;if(!(465829888&a.flags)){var s=Qu(i,a,r);if(s)return t[n]=s}if(Jf(i)&&296&a.flags){var c=qf(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}if(Pc(i)){var l=Sc(i);if(!l||T_(l,xc(i)))return t[n]=Gg(ep(i,t.indexType),(e=>Yu(e,r)))}return t[n]=t})(t,r):16777216&t.flags?((e,t)=>{var r=e.checkType,n=e.extendsType,i=pp(e),a=_p(e);if(131072&a.flags&&op(i)===op(r)){if(1&r.flags||T_(f_(r),f_(n)))return Yu(i,t);if(Zu(r,n))return ct}else if(131072&i.flags&&op(a)===op(r)){if(!(1&r.flags)&&T_(f_(r),f_(n)))return ct;if(1&r.flags||Zu(r,n))return Yu(a,t)}return e})(t,r):t}function Qu(t,r,n){if(1048576&t.flags||2097152&t.flags&&!Iu(t)){var i=e.map(t.types,(e=>Yu(tp(e,r),n)));return 2097152&t.flags||n?xu(i):fu(i)}}function Zu(e,t){return!!(131072&fu([fc(e,t),ct]).flags)}function ep(e,t){var r=Kp([xc(e)],[t]),n=Qp(e.mapper,r);return u_(Tc(e.target||e),n)}function tp(e,t,r,n,i,a){return void 0===r&&(r=0),np(e,t,r,n,i,a)||(n?Ue:He)}function rp(t,r){return Hg(t,(t=>{if(384&t.flags){var n=Ys(t);if(e.isNumericLiteralName(n)){var i=+n;return i>=0&&i<r}}return!1}))}function np(e,t,r,n,i,a){if(void 0===r&&(r=0),e===Be||t===Be)return Be;if(!K_(e)||98304&t.flags||!uE(t,12)||(t=Ye),H.noUncheckedIndexedAccess&&32&r&&(r|=1),qu(t)||(n&&194!==n.kind?Jf(e)&&!rp(t,e.target.fixedLength):$u(e)&&(!Kf(e)||!rp(t,e.target.fixedLength)))){if(3&e.flags)return e;var o=1&r,s=e.id+","+t.id+","+o+id(i,a),c=De.get(s);return c||De.set(s,c=((e,t,r,n,i)=>{var a=Aa(8388608);return a.objectType=e,a.indexType=t,a.accessFlags=r,a.aliasSymbol=n,a.aliasTypeArguments=i,a})(e,t,o,i,a)),c}var l=Qc(e);if(1048576&t.flags&&!(16&t.flags)){for(var d=[],u=!1,p=0,_=t.types;p<_.length;p++){var f=Hu(e,l,_[p],t,n,r|(u?128:0));if(f)d.push(f);else{if(!n)return;u=!0}}if(u)return;return 4&r?xu(d,i,a):fu(d,1,i,a)}return Hu(e,l,t,t,n,72|r)}function ip(e){var t=li(e);if(!t.resolvedType){var r=Up(e.objectType),n=Up(e.indexType),i=vp(e),a=tp(r,n,0,e,i,bp(i));t.resolvedType=8388608&a.flags&&a.objectType===r&&a.indexType===n?Ed(a,e):a}return t.resolvedType}function ap(e){var t=li(e);if(!t.resolvedType){var r=wa(32,e.symbol);r.declaration=e,r.aliasSymbol=vp(e),r.aliasTypeArguments=bp(r.aliasSymbol),t.resolvedType=r,Dc(r)}return t.resolvedType}function op(e){return 33554432&e.flags?e.baseType:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?tp(op(e.objectType),op(e.indexType)):e}function sp(e){var t=Uc(e);return t&&($u(t)||qu(t))?t_(e):e}function cp(e){return!e.isDistributive&&lp(e.node.checkType)&&lp(e.node.extendsType)}function lp(t){return e.isTupleTypeNode(t)&&1===e.length(t.elements)&&!e.isOptionalTypeNode(t.elements[0])&&!e.isRestTypeNode(t.elements[0])&&!(e.isNamedTupleMember(t.elements[0])&&(t.elements[0].questionToken||t.elements[0].dotDotDotToken))}function dp(e,t){return cp(e)&&Kf(t)?ld(t)[0]:t}function up(t,r,n,i){for(var a,o,c=0,l=()=>{if(1e3===c)return Jn(s,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),a=Ue,"break";var l=cp(t),d=u_(dp(t,op(t.checkType)),r),p=Gu(d),_=u_(dp(t,t.extendsType),r);if(d===Be||_===Be)return{value:Be};var f=void 0;if(t.inferTypeParameters){var m=e.sameMap(t.inferTypeParameters,sp),g=m!==t.inferTypeParameters?Kp(t.inferTypeParameters,m):void 0,h=Sm(m,void 0,0);if(g)for(var y=Qp(r,g),v=0,b=m;v<b.length;v++){var E=b[v];-1===t.inferTypeParameters.indexOf(E)&&(E.mapper=y)}p&&e.some(t.inferTypeParameters,(e=>e===_))||qm(h.inferences,d,u_(_,g),1536);var x=Qp(g,h.mapper);f=r?Qp(x,r):x}var D=f?u_(dp(t,t.extendsType),f):_;if(!p&&!Gu(D)){if(!(3&D.flags)&&(1&d.flags&&!l||!T_(__(d),__(D)))){1&d.flags&&!l&&(o||(o=[])).push(u_(Up(t.node.trueType),f||r));var S=Up(t.node.falseType);if(16777216&S.flags){var T=S.root;if(T.node.parent===t.node&&(!T.isDistributive||T.checkType===t.checkType))return t=T,"continue";if(u(S,r))return"continue"}return a=u_(S,r),"break"}if(3&D.flags||T_(f_(d),f_(D))){var C=Up(t.node.trueType),A=f||r;return u(C,A)?"continue":(a=u_(C,A),"break")}}return(a=Aa(16777216)).root=t,a.checkType=u_(t.checkType,r),a.extendsType=u_(t.extendsType,r),a.mapper=r,a.combinedMapper=f,a.aliasSymbol=n||t.aliasSymbol,a.aliasTypeArguments=n?i:zp(t.aliasTypeArguments,r),"break"};;){var d=l();if("object"==typeof d)return d.value;if("break"===d)break}return o?fu(e.append(o,a)):a;function u(a,o){if(16777216&a.flags&&o){var s=a.root;if(s.outerTypeParameters){var l=Qp(a.mapper,o),d=e.map(s.outerTypeParameters,(e=>Jp(e,l))),u=Kp(s.outerTypeParameters,d),p=s.isDistributive?Jp(s.checkType,u):void 0;if(!(p&&p!==s.checkType&&1179648&p.flags))return t=s,r=u,n=void 0,i=void 0,s.aliasSymbol&&c++,!0}}return!1}}function pp(e){return e.resolvedTrueType||(e.resolvedTrueType=u_(Up(e.root.node.trueType),e.mapper))}function _p(e){return e.resolvedFalseType||(e.resolvedFalseType=u_(Up(e.root.node.falseType),e.mapper))}function fp(t){var r;return t.locals&&t.locals.forEach((t=>{262144&t.flags&&(r=e.append(r,Rs(t)))})),r}function mp(t){return e.isIdentifier(t)?[t]:e.append(mp(t.left),t.right)}function gp(t){var r,n=li(t);if(!n.resolvedType){if(t.isTypeOf&&t.typeArguments)return Jn(t,e.Diagnostics.Type_arguments_cannot_be_used_here),n.resolvedSymbol=Pe,n.resolvedType=Ue;if(!e.isLiteralImportTypeNode(t))return Jn(t.argument,e.Diagnostics.String_literal_expected),n.resolvedSymbol=Pe,n.resolvedType=Ue;var i=t.isTypeOf?111551:8388608&t.flags?900095:788968,a=ra(t,t.argument.literal);if(!a)return n.resolvedSymbol=Pe,n.resolvedType=Ue;var o=!!(null===(r=a.exports)||void 0===r?void 0:r.get("export=")),s=oa(a,!1);if(e.nodeIsMissing(t.qualifier))s.flags&i?n.resolvedType=hp(t,n,s,i):(Jn(t,111551===i?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,t.argument.literal.text),n.resolvedSymbol=Pe,n.resolvedType=Ue);else{for(var c=mp(t.qualifier),l=s,d=void 0;d=c.shift();){var u=c.length?1920:i,p=ha(Ki(l)),_=t.isTypeOf||e.isInJSFile(t)&&o?sl(cs(p),d.escapedText,!1,!0):void 0,f=t.isTypeOf?void 0:ui(_a(p),d.escapedText,u),m=null!=f?f:_;if(!m)return Jn(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,Zi(l),e.declarationNameToString(d)),n.resolvedType=Ue;li(d).resolvedSymbol=m,li(d.parent).resolvedSymbol=m,l=m}n.resolvedType=hp(t,n,l,i)}}return n.resolvedType}function hp(e,t,r,n){var i=Ki(r);return t.resolvedSymbol=i,111551===n?cs(r):hd(e,i)}function yp(t){var r=li(t);if(!r.resolvedType){var n=vp(t);if(0!==ec(t.symbol).size||n){var i=wa(16,t.symbol);i.aliasSymbol=n,i.aliasTypeArguments=bp(n),e.isJSDocTypeLiteral(t)&&t.isArrayType&&(i=Gd(i)),r.resolvedType=i}else r.resolvedType=kt}return r.resolvedType}function vp(t){for(var r=t.parent;e.isParenthesizedTypeNode(r)||e.isJSDocTypeExpression(r)||e.isTypeOperatorNode(r)&&145===r.operator;)r=r.parent;return e.isTypeAlias(r)?ya(r):void 0}function bp(e){return e?gs(e):void 0}function Ep(e){return!!(524288&e.flags)&&!Pc(e)}function xp(e){return z_(e)||!!(474058748&e.flags)}function Dp(t,r){if(!(1048576&t.flags))return t;if(e.every(t.types,xp))return e.find(t.types,z_)||Tt;var n=e.find(t.types,(e=>!xp(e)));return n?e.find(t.types,(e=>e!==n&&!xp(e)))?t:(t=>{for(var n=e.createSymbolTable(),i=0,a=Lc(t);i<a.length;i++){var o=a[i];if(24&e.getDeclarationModifierFlagsFromSymbol(o));else if(Tp(o)){var s=65536&o.flags&&!(32768&o.flags),c=Zn(16777220,o.escapedName,bc(o)|(r?8:0));c.type=s?Ke:Oo(cs(o),!0),c.declarations=o.declarations,c.nameType=ci(o).nameType,c.syntheticOrigin=o,n.set(o.escapedName,c)}}var l=Ra(t.symbol,n,e.emptyArray,e.emptyArray,fl(t));return l.objectFlags|=131200,l})(n):t}function Sp(t,r,n,i,a){if(1&t.flags||1&r.flags)return Re;if(2&t.flags||2&r.flags)return He;if(131072&t.flags)return r;if(131072&r.flags)return t;if(1048576&(t=Dp(t,a)).flags)return Su([t,r])?Gg(t,(e=>Sp(e,r,n,i,a))):Ue;if(1048576&(r=Dp(r,a)).flags)return Su([t,r])?Gg(r,(e=>Sp(t,e,n,i,a))):Ue;if(473960444&r.flags)return t;if($u(t)||$u(r)){if(z_(t))return r;if(2097152&t.flags){var o=t.types,s=o[o.length-1];if(Ep(s)&&Ep(r))return xu(e.concatenate(o.slice(0,o.length-1),[Sp(s,r,n,i,a)]))}return xu([t,r])}for(var c=e.createSymbolTable(),l=new e.Set,d=t===Tt?fl(r):_c([t,r]),u=0,p=Lc(r);u<p.length;u++){var _=p[u];24&e.getDeclarationModifierFlagsFromSymbol(_)?l.add(_.escapedName):Tp(_)&&c.set(_.escapedName,Cp(_,a))}for(var f=0,m=Lc(t);f<m.length;f++){var g=m[f];if(!l.has(g.escapedName)&&Tp(g))if(c.has(g.escapedName)){var h=cs(_=c.get(g.escapedName));if(16777216&_.flags){var y=e.concatenate(g.declarations,_.declarations),v=Zn(4|16777216&g.flags,g.escapedName);v.type=fu([cs(g),cm(h)],2),v.leftSpread=g,v.rightSpread=_,v.declarations=y,v.nameType=ci(g).nameType,c.set(g.escapedName,v)}}else c.set(g.escapedName,Cp(g,a))}var b=Ra(n,c,e.emptyArray,e.emptyArray,e.sameMap(d,(e=>((e,t)=>e.isReadonly!==t?ql(e.keyType,e.type,t,e.declaration):e)(e,a))));return b.objectFlags|=2228352|i,b}function Tp(t){var r;return!(e.some(t.declarations,e.isPrivateIdentifierClassElementDeclaration)||106496&t.flags&&(null===(r=t.declarations)||void 0===r?void 0:r.some((t=>e.isClassLike(t.parent)))))}function Cp(e,t){var r=65536&e.flags&&!(32768&e.flags);if(!r&&t===aE(e))return e;var n=Zn(4|16777216&e.flags,e.escapedName,bc(e)|(t?8:0));return n.type=r?Ke:cs(e),n.declarations=e.declarations,n.nameType=ci(e).nameType,n.syntheticOrigin=e,n}function Ap(e,t,r,n){var i=Aa(e);return i.symbol=r,i.value=t,i.regularType=n||i,i}function kp(e){if(2944&e.flags){if(!e.freshType){var t=Ap(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function Np(e){return 2944&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=Gg(e,Np)):e}function wp(e){return!!(2944&e.flags)&&e.freshType===e}function Fp(e){var t;return ve.get(e)||(ve.set(e,t=Ap(128,e)),t)}function Pp(e){var t;return be.get(e)||(be.set(e,t=Ap(256,e)),t)}function Ip(t){var r,n=e.pseudoBigIntToString(t);return Ee.get(n)||(Ee.set(n,r=Ap(2048,t)),r)}function Op(e,t,r){var n,i=t+("string"==typeof e?"@":"#")+e,a=1024|("string"==typeof e?128:256);return xe.get(i)||(xe.set(i,n=Ap(a,e,r)),n)}function Mp(t){if(e.isValidESSymbolDeclaration(t)){var r=e.isCommonJsExportPropertyAssignment(t)?ya(t.left):ya(t);if(r){var n=ci(r);return n.uniqueESSymbolType||(n.uniqueESSymbolType=(e=>{var t=Aa(8192);return t.symbol=e,t.escapedName="__@".concat(t.symbol.escapedName,"@").concat(O(t.symbol)),t})(r))}}return ot}function Rp(t){var r=li(t);return r.resolvedType||(r.resolvedType=(t=>{var r=e.getThisContainer(t,!1),n=r&&r.parent;if(n&&(e.isClassLike(n)||258===n.kind)&&!e.isStatic(r)&&(!e.isConstructorDeclaration(r)||e.isNodeDescendantOf(t,r.body)))return As(ya(n)).thisType;if(n&&e.isObjectLiteralExpression(n)&&e.isBinaryExpression(n.parent)&&6===e.getAssignmentDeclarationKind(n.parent))return As(ya(n.parent.left).parent).thisType;var i=8388608&t.flags?e.getHostSignatureFromJSDoc(t):void 0;return i&&e.isFunctionExpression(i)&&e.isBinaryExpression(i.parent)&&3===e.getAssignmentDeclarationKind(i.parent)?As(ya(i.parent.left).parent).thisType:pb(r)&&e.isNodeDescendantOf(t,r.body)?As(ya(r)).thisType:(Jn(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Ue)})(t)),r.resolvedType}function Lp(e){return Up(Bp(e.type)||e.type)}function Bp(e){switch(e.kind){case 191:return Bp(e.type);case 184:if(1===e.elements.length&&(186===(e=e.elements[0]).kind||197===e.kind&&e.dotDotDotToken))return Bp(e.type);break;case 183:return e.elementType}}function Up(e){return Ed(jp(e),e)}function jp(t){switch(t.kind){case 130:case 312:case 313:return Re;case 155:return He;case 150:return Ye;case 147:return Qe;case 158:return Ze;case 133:return at;case 151:return ot;case 114:return st;case 153:return Ke;case 104:return qe;case 143:return ct;case 148:return 262144&t.flags&&!Q?Re:pt;case 138:return ze;case 192:case 108:return Rp(t);case 196:return(e=>{if(104===e.literal.kind)return qe;var t=li(e);return t.resolvedType||(t.resolvedType=Np(HE(e.literal))),t.resolvedType})(t);case 178:return Td(t);case 177:return t.assertsModifier?st:at;case 228:return Td(t);case 181:return Ad(t);case 183:case 184:return(t=>{var r=li(t);if(!r.resolvedType){var n=(t=>{var r=(t=>e.isTypeOperatorNode(t)&&145===t.operator)(t.parent);return Bp(t)?r?qt:$t:eu(e.map(t.elements,$d),r,e.some(t.elements,(e=>197!==e.kind))?void 0:t.elements)})(t);if(n===wt)r.resolvedType=Tt;else if(184===t.kind&&e.some(t.elements,(e=>!!(8&$d(e))))||!Xd(t)){var i=183===t.kind?[Up(t.elementType)]:e.map(t.elements,Up);r.resolvedType=tu(n,i)}else r.resolvedType=184===t.kind&&0===t.elements.length?n:cd(n,t,void 0)}return r.resolvedType})(t);case 185:return(e=>Oo(Up(e.type),!0))(t);case 187:return(t=>{var r=li(t);if(!r.resolvedType){var n=vp(t);r.resolvedType=fu(e.map(t.types,Up),1,n,bp(n))}return r.resolvedType})(t);case 188:return(t=>{var r=li(t);if(!r.resolvedType){var n=vp(t),i=e.map(t.types,Up),a=2===i.length&&!!(76&i[0].flags)&&i[1]===kt;r.resolvedType=xu(i,n,bp(n),a)}return r.resolvedType})(t);case 314:return(e=>{var t=Up(e.type);return $?Zf(t,65536):t})(t);case 316:return Oo(Up(t.type));case 197:return(e=>{var t=li(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?Lp(e):Oo(Up(e.type),!0,!!e.questionToken))})(t);case 191:case 315:case 309:return Up(t.type);case 186:return Lp(t);case 318:return(t=>{var r=Up(t.type),n=t.parent,i=t.parent.parent;if(e.isJSDocTypeExpression(t.parent)&&e.isJSDocParameterTag(i)){var a=e.getHostSignatureFromJSDoc(i),o=e.isJSDocCallbackTag(i.parent.parent);if(a||o){var s=o?e.lastOrUndefined(i.parent.parent.typeExpression.parameters):e.lastOrUndefined(a.parameters),c=e.getParameterSymbolFromJSDoc(i);if(!s||c&&s.symbol===c&&e.isRestParameter(s))return Gd(r)}}return e.isParameter(n)&&e.isJSDocFunctionType(n.parent)?Gd(r):Oo(r)})(t);case 179:case 180:case 182:case 322:case 317:case 323:return yp(t);case 193:return(t=>{var r=li(t);if(!r.resolvedType)switch(t.operator){case 140:r.resolvedType=Ou(Up(t.type));break;case 154:r.resolvedType=151===t.type.kind?Mp(e.walkUpParenthesizedTypes(t.parent)):Ue;break;case 145:r.resolvedType=Up(t.type);break;default:throw e.Debug.assertNever(t.operator)}return r.resolvedType})(t);case 194:return ip(t);case 195:return ap(t);case 189:return(t=>{var r=li(t);if(!r.resolvedType){var n=Up(t.checkType),i=vp(t),a=bp(i),o=fs(t,!0),s=a?o:e.filter(o,(e=>i_(e,t))),c={node:t,checkType:n,extendsType:Up(t.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:fp(t),outerTypeParameters:s,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:a};r.resolvedType=up(c,void 0),s&&(c.instantiations=new e.Map,c.instantiations.set(nd(s),r.resolvedType))}return r.resolvedType})(t);case 190:return(e=>{var t=li(e);return t.resolvedType||(t.resolvedType=Ms(ya(e.typeParameter))),t.resolvedType})(t);case 198:return(t=>{var r=li(t);return r.resolvedType||(r.resolvedType=Ru(f([t.head.text],e.map(t.templateSpans,(e=>e.literal.text)),!0),e.map(t.templateSpans,(e=>Up(e.type))))),r.resolvedType})(t);case 200:return gp(t);case 79:case 161:case 206:var r=CS(t);return r?Rs(r):Ue;default:return Ue}}function Vp(e,t,r){if(e&&e.length)for(var n=0;n<e.length;n++){var i=e[n],a=r(i,t);if(i!==a){var o=0===n?[]:e.slice(0,n);for(o.push(a),n++;n<e.length;n++)o.push(r(e[n],t));return o}}return e}function zp(e,t){return Vp(e,t,u_)}function Hp(e,t){return Vp(e,t,r_)}function Wp(e,t){return Vp(e,t,m_)}function Kp(t,r){return 1===t.length?Gp(t[0],r?r[0]:Re):((t,r)=>e.Debug.attachDebugPrototypeIfDebug({kind:1,sources:t,targets:r}))(t,r)}function Jp(e,t){switch(t.kind){case 0:return e===t.source?t.target:e;case 1:for(var r=t.sources,n=t.targets,i=0;i<r.length;i++)if(e===r[i])return n?n[i]:Re;return e;case 2:for(r=t.sources,n=t.targets,i=0;i<r.length;i++)if(e===r[i])return n[i]();return e;case 3:return t.func(e);case 4:case 5:var a=Jp(e,t.mapper1);return a!==e&&4===t.kind?u_(a,t.mapper2):Jp(a,t.mapper2)}}function Gp(t,r){return e.Debug.attachDebugPrototypeIfDebug({kind:0,source:t,target:r})}function $p(t,r){return e.Debug.attachDebugPrototypeIfDebug({kind:3,func:t,debugInfo:e.Debug.isDebugging?r:void 0})}function qp(t,r){return e.Debug.attachDebugPrototypeIfDebug({kind:2,sources:t,targets:r})}function Xp(t,r,n){return e.Debug.attachDebugPrototypeIfDebug({kind:t,mapper1:r,mapper2:n})}function Yp(e){return Kp(e,void 0)}function Qp(e,t){return e?Xp(4,e,t):t}function Zp(e,t,r){return r?Xp(5,Gp(e,t),r):Gp(e,t)}function e_(e,t,r){return e?Xp(5,e,Gp(t,r)):Gp(t,r)}function t_(e){var t=Fa(e.symbol);return t.target=e,t}function r_(t,r,n){var i;if(t.typeParameters&&!n){i=e.map(t.typeParameters,t_),r=Qp(Kp(t.typeParameters,i),r);for(var a=0,o=i;a<o.length;a++)o[a].mapper=r}var s=ic(t.declaration,i,t.thisParameter&&n_(t.thisParameter,r),Vp(t.parameters,r,n_),void 0,void 0,t.minArgumentCount,39&t.flags);return s.target=t,s.mapper=r,s}function n_(t,r){var n=ci(t);if(n.type&&!Fm(n.type))return t;1&e.getCheckFlags(t)&&(t=n.target,r=Qp(n.mapper,r));var i=Zn(t.flags,t.escapedName,1|53256&e.getCheckFlags(t));return i.declarations=t.declarations,i.parent=t.parent,i.target=t,i.mapper=r,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),n.nameType&&(i.nameType=n.nameType),i}function i_(t,r){if(t.symbol&&t.symbol.declarations&&1===t.symbol.declarations.length){for(var n=t.symbol.declarations[0].parent,i=r;i!==n;i=i.parent)if(!i||235===i.kind||189===i.kind&&e.forEachChild(i.extendsType,a))return!0;return a(r)}return!0;function a(r){switch(r.kind){case 192:return!!t.isThisType;case 79:return!t.isThisType&&e.isPartOfTypeNode(r)&&(e=>!(178===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||200===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier))(r)&&jp(r)===t;case 181:return!0;case 169:case 168:return!r.type&&!!r.body||e.some(r.typeParameters,a)||e.some(r.parameters,a)||!!r.type&&a(r.type)}return!!e.forEachChild(r,a)}}function a_(e){var t=Dc(e);if(4194304&t.flags){var r=op(t.type);if(262144&r.flags)return r}}function o_(t,r,n,i){var a=a_(t);if(a){var o=u_(a,r);if(a!==o)return $g(rl(o),(n=>{if(61603843&n.flags&&n!==Be&&!xo(n)){if(!t.declaration.nameType){var i=void 0;if(Tf(n)||1&n.flags&&go(a,4)<0&&(i=Uc(a))&&Hg(i,Af))return((e,t,r)=>{var n=c_(t,Qe,!0,r);return xo(n)?Ue:Gd(n,s_(Cf(e),Nc(t)))})(n,t,Zp(a,n,r));if(Jf(n))return((t,r,n,i)=>{var a=t.target.elementFlags,o=e.map(ld(t),((e,t)=>{var o=8&a[t]?e:4&a[t]?Gd(e):Zd([e],[a[t]]);return o_(r,Zp(n,o,i))})),s=s_(t.target.readonly,Nc(r));return Zd(o,e.map(o,(e=>8)),s)})(n,t,a,r);if(Kf(n))return((t,r,n)=>{var i=t.target.elementFlags,a=e.map(ld(t),((e,t)=>c_(r,Fp(""+t),!!(2&i[t]),n))),o=Nc(r),s=4&o?e.map(i,(e=>1&e?2:e)):8&o?e.map(i,(e=>2&e?1:e)):i,c=s_(t.target.readonly,o);return e.contains(a,Ue)?Ue:Zd(a,s,c,t.target.labeledElementDeclarations)})(n,t,Zp(a,n,r))}return l_(t,Zp(a,n,r))}return n}),n,i)}return u_(Dc(t),r)===Be?Be:l_(t,r,n,i)}function s_(e,t){return!!(1&t)||!(2&t)&&e}function c_(e,t,r,n){var i=e_(n,xc(e),t),a=u_(Tc(e.target||e),i),o=Nc(e);return $&&4&o&&!dE(a,49152)?em(a,!0):$&&8&o&&r?xg(a,524288):a}function l_(e,t,r,n){var i=wa(64|e.objectFlags,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;var a=xc(e),o=t_(a);i.typeParameter=o,t=Qp(Gp(a,o),t),o.mapper=t}return 8388608&e.objectFlags&&(i.node=e.node),i.target=e,i.mapper=t,i.aliasSymbol=r||e.aliasSymbol,i.aliasTypeArguments=r?n:zp(e.aliasTypeArguments,t),i.objectFlags|=i.aliasTypeArguments?ad(i.aliasTypeArguments):0,i}function d_(t,r,n,i){var a=t.root;if(a.outerTypeParameters){var o=e.map(a.outerTypeParameters,(e=>Jp(e,r))),s=nd(o)+id(n,i),c=a.instantiations.get(s);if(!c){var l=Kp(a.outerTypeParameters,o),d=a.checkType,u=a.isDistributive?Jp(d,l):void 0;c=u&&d!==u&&1179648&u.flags?$g(rl(u),(e=>up(a,Zp(d,e,l))),n,i):up(a,l,n,i),a.instantiations.set(s,c)}return c}return t}function u_(e,t){return e&&t?p_(e,t,void 0,void 0):e}function p_(t,r,n,i){if(!Fm(t))return t;if(100===C||T>=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:t.id,instantiationDepth:C,instantiationCount:T}),Jn(s,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ue;S++,T++,C++;var a=((t,r,n,i)=>{var a=t.flags;if(262144&a)return Jp(t,r);if(524288&a){var o=t.objectFlags;if(52&o){if(4&o&&!t.node){var s=t.resolvedTypeArguments,c=zp(s,r);return c!==s?tu(t.target,c):t}return 1024&o?((t,r)=>{var n=u_(t.mappedType,r);if(!(32&e.getObjectFlags(n)))return t;var i=u_(t.constraintType,r);return 4194304&i.flags&&Om(u_(t.source,r),n,i)||t})(t,r):((t,r,n,i)=>{var a=4&t.objectFlags||8388608&t.objectFlags?t.node:t.symbol.declarations[0],o=li(a),s=4&t.objectFlags?o.resolvedType:64&t.objectFlags?t.target:t,c=o.outerTypeParameters;if(!c){var l=fs(a,!0);if(pb(a)){var d=bl(a);l=e.addRange(l,d)}c=l||e.emptyArray;var u=8388612&t.objectFlags?[a]:t.symbol.declarations;c=(8388612&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,(t=>e.some(u,(e=>i_(t,e))))):c,o.outerTypeParameters=c}if(c.length){var p=Qp(t.mapper,r),_=e.map(c,(e=>Jp(e,p))),f=n||t.aliasSymbol,m=n?i:zp(t.aliasTypeArguments,r),g=nd(_)+id(f,m);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set(nd(c)+id(s.aliasSymbol,s.aliasTypeArguments),s));var h=s.instantiations.get(g);if(!h){var y=Kp(c,_);h=4&s.objectFlags?cd(t.target,t.node,y,f,m):32&s.objectFlags?o_(s,y,f,m):l_(s,y,f,m),s.instantiations.set(g,h)}return h}return t})(t,r,n,i)}return t}if(3145728&a){var l=1048576&t.flags?t.origin:void 0,d=l&&3145728&l.flags?l.types:t.types,u=zp(d,r);if(u===d&&n===t.aliasSymbol)return t;var p=n||t.aliasSymbol,_=n?i:zp(t.aliasTypeArguments,r);return 2097152&a||l&&2097152&l.flags?xu(u,p,_):fu(u,1,p,_)}if(4194304&a)return Ou(u_(t.type,r));if(134217728&a)return Ru(t.texts,zp(t.types,r));if(268435456&a)return Bu(t.symbol,u_(t.type,r));if(8388608&a)return p=n||t.aliasSymbol,_=n?i:zp(t.aliasTypeArguments,r),tp(u_(t.objectType,r),u_(t.indexType,r),t.accessFlags,void 0,p,_);if(16777216&a)return d_(t,Qp(t.mapper,r),n,i);if(33554432&a){var f=u_(t.baseType,r);if(8650752&f.flags)return yd(f,u_(t.substitute,r));var m=u_(t.substitute,r);return 3&m.flags||T_(f_(f),f_(m))?f:m}return t})(t,r,n,i);return C--,a}function __(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=u_(e,bt))}function f_(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=u_(e,vt),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function m_(e,t){return ql(e.keyType,u_(e.type,t),e.isReadonly,e.declaration)}function g_(t){switch(e.Debug.assert(169!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 213:case 214:case 169:case 256:return h_(t);case 205:return e.some(t.properties,g_);case 204:return e.some(t.elements,g_);case 222:return g_(t.whenTrue)||g_(t.whenFalse);case 221:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(g_(t.left)||g_(t.right));case 296:return g_(t.initializer);case 212:return g_(t.expression);case 286:return e.some(t.properties,g_)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,g_);case 285:var r=t.initializer;return!!r&&g_(r);case 288:var n=t.expression;return!!n&&g_(n)}return!1}function h_(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!Po(t))&&(e.hasContextSensitiveParameters(t)||(t=>!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&235!==t.body.kind&&g_(t.body))(t))}function y_(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t))&&h_(t)}function v_(t){if(524288&t.flags){var r=Ic(t);if(r.constructSignatures.length||r.callSignatures.length){var n=wa(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n.indexInfos=e.emptyArray,n}}else if(2097152&t.flags)return xu(e.map(t.types,v_));return t}function b_(e,t){return $_(e,t,Mn)}function E_(e,t){return $_(e,t,Mn)?-1:0}function x_(e,t){return $_(e,t,In)?-1:0}function D_(e,t){return $_(e,t,Fn)?-1:0}function S_(e,t){return $_(e,t,Fn)}function T_(e,t){return $_(e,t,In)}function C_(t,r){return 1048576&t.flags?e.every(t.types,(e=>C_(e,r))):1048576&r.flags?e.some(r.types,(e=>C_(t,e))):58982400&t.flags?C_(Wc(t)||He,r):r===Wt?!!(67633152&t.flags):r===Kt?!!(524288&t.flags)&&bg(t):ps(t,us(r))||Tf(r)&&!Cf(r)&&C_(t,qt)}function A_(e,t){return $_(e,t,On)}function k_(e,t){return A_(e,t)||A_(t,e)}function N_(e,t,r,n,i,a){return Q_(e,t,In,r,n,i,a)}function w_(e,t,r,n,i,a){return F_(e,t,In,r,n,i,a,void 0)}function F_(e,t,r,n,i,a,o,s){return!!$_(e,t,r)||(!n||!I_(i,e,t,r,a,o,s))&&Q_(e,t,r,n,a,o,s)}function P_(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,P_))}function I_(t,r,n,i,a,o,s){if(!t||P_(n))return!1;if(!Q_(r,n,i,void 0)&&((t,r,n,i,a,o,s)=>{for(var c=ll(r,0),l=ll(r,1),d=0,u=[l,c];d<u.length;d++){var p=u[d];if(e.some(p,(e=>{var t=Ll(e);return!(131073&t.flags)&&Q_(t,n,i,void 0)}))){var _=s||{};N_(r,n,t,a,o,_);var f=_.errors[_.errors.length-1];return e.addRelatedInfo(f,e.createDiagnosticForNode(t,p===l?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,a,o,s))return!0;switch(t.kind){case 288:case 212:return I_(t.expression,r,n,i,a,o,s);case 221:switch(t.operatorToken.kind){case 63:case 27:return I_(t.right,r,n,i,a,o,s)}break;case 205:return function(t,r,n,i,a,o){return!(262140&n.flags)&&R_(function(t){var r,n,i,a;return h(this,(o=>{switch(o.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,o.label=1;case 1:if(!(r<n.length))return[3,8];if(i=n[r],e.isSpreadAssignment(i))return[3,7];if(!(a=wu(ya(i),8576))||131072&a.flags)return[3,7];switch(i.kind){case 173:case 172:case 169:case 297:return[3,2];case 296:return[3,4]}return[3,6];case 2:return[4,{errorNode:i.name,innerExpression:void 0,nameType:a}];case 3:return o.sent(),[3,7];case 4:return[4,{errorNode:i.name,innerExpression:i.initializer,nameType:a,errorMessage:e.isComputedNonLiteralName(i.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return o.sent(),[3,7];case 6:e.Debug.assertNever(i),o.label=7;case 7:return r++,[3,1];case 8:return[2]}}))}(t),r,n,i,a,o)}(t,r,n,i,o,s);case 204:return((e,t,r,n,i,a)=>{if(262140&r.flags)return!1;if(Of(t))return R_(B_(e,r),t,r,n,i,a);var o=e.contextualType;e.contextualType=r;try{var s=cy(e,1,!0);return e.contextualType=o,!!Of(s)&&R_(B_(e,r),s,r,n,i,a)}finally{e.contextualType=o}})(t,r,n,i,o,s);case 286:return function(t,r,n,i,a,o){var s,c=R_(function(t){var r,n,i;return h(this,(a=>{switch(a.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,a.label=1;case 1:return r<n.length?(i=n[r],e.isJsxSpreadAttribute(i)||gy(e.idText(i.name))?[3,3]:[4,{errorNode:i.name,innerExpression:i.initializer,nameType:Fp(e.idText(i.name))}]):[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}(t),r,n,i,a,o);if(e.isJsxOpeningElement(t.parent)&&e.isJsxElement(t.parent.parent)){var l=t.parent.parent,d=Cy(Sy(t)),u=void 0===d?"children":e.unescapeLeadingUnderscores(d),p=Fp(u),_=tp(n,p),f=e.getSemanticJsxChildren(l.children);if(!e.length(f))return c;var g=e.length(f)>1,y=Wg(_,Mf),v=Wg(_,(e=>!Mf(e)));if(g){if(y!==ct){var b=Zd(vy(l,0));c=R_(function(t,r){var n,i,a,o,s;return h(this,(c=>{switch(c.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,c.label=1;case 1:return i<t.children.length?(a=t.children[i],o=Pp(i-n),(s=L_(a,o,r))?[4,s]:[3,3]):[3,5];case 2:return c.sent(),[3,4];case 3:n++,c.label=4;case 4:return i++,[3,1];case 5:return[2]}}))}(l,D),b,y,i,a,o)||c}else if(!$_(tp(r,p),_,i)){c=!0;var E=Jn(l.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,u,eo(_));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(E)}}else if(v!==ct){var x=L_(f[0],p,D);x&&(c=R_(function(){return h(this,(e=>{switch(e.label){case 0:return[4,x];case 1:return e.sent(),[2]}}))}(),r,n,i,a,o)||c)}else $_(tp(r,p),_,i)||(c=!0,E=Jn(l.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,u,eo(_)),o&&o.skipLogging&&(o.errors||(o.errors=[])).push(E))}return c;function D(){if(!s){var r=e.getTextOfNode(t.parent.tagName),i=Cy(Sy(t)),a=void 0===i?"children":e.unescapeLeadingUnderscores(i),o=tp(n,Fp(a)),c=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;s=m(m({},c),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,c,r,a,eo(o))})}return s}}(t,r,n,i,o,s);case 214:return((t,r,n,i,a,o)=>{if(e.isBlock(t.body))return!1;if(e.some(t.parameters,e.hasType))return!1;var s=Pv(r);if(!s)return!1;var c=ll(n,0);if(!e.length(c))return!1;var l=t.body,d=Ll(s),u=fu(e.map(c,Ll));if(!Q_(d,u,i,void 0)){var p=l&&I_(l,d,u,i,void 0,a,o);if(p)return p;var _=o||{};if(Q_(d,u,i,l,void 0,a,_),_.errors)return n.symbol&&e.length(n.symbol.declarations)&&e.addRelatedInfo(_.errors[_.errors.length-1],e.createDiagnosticForNode(n.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&e.getFunctionFlags(t))&&!bo(d,"then")&&Q_(Kb(d),u,i,void 0)&&e.addRelatedInfo(_.errors[_.errors.length-1],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1})(t,r,n,i,o,s)}return!1}function O_(e,t,r){var n=np(t,r);if(n)return n;if(1048576&t.flags){var i=rf(e,t);if(i)return np(i,r)}}function M_(e,t){e.contextualType=t;try{return FE(e,1,t)}finally{e.contextualType=void 0}}function R_(t,r,n,i,a,o){for(var s=!1,c=t.next();!c.done;c=t.next()){var l=c.value,d=l.errorNode,u=l.innerExpression,p=l.nameType,_=l.errorMessage,f=O_(r,n,p);if(f&&!(8388608&f.flags)){var m=np(r,p);if(m){var g=Vu(p,void 0);if(!Q_(m,f,i,void 0)&&(s=!0,!u||!I_(u,m,f,i,void 0,a,o))){var h=o||{},y=u?M_(u,m):m;if(ne&&tf(y,f)){var v=e.createDiagnosticForNode(d,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,eo(y),eo(f));kn.add(v),h.errors=[v]}else{var b=!!(g&&16777216&(sl(n,g)||Pe).flags),E=!!(g&&16777216&(sl(r,g)||Pe).flags);f=om(f,b),m=om(m,b&&E),Q_(y,f,i,d,_,a,h)&&y!==m&&Q_(m,f,i,d,_,a,h)}if(h.errors){var x=h.errors[h.errors.length-1],D=Js(p)?Ys(p):void 0,S=void 0!==D?sl(n,D):void 0,T=!1;if(!S){var C=yl(n,p);C&&C.declaration&&!e.getSourceFileOfNode(C.declaration).hasNoDefaultLib&&(T=!0,e.addRelatedInfo(x,e.createDiagnosticForNode(C.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!T&&(S&&e.length(S.declarations)||n.symbol&&e.length(n.symbol.declarations))){var A=S&&e.length(S.declarations)?S.declarations[0]:n.symbol.declarations[0];e.getSourceFileOfNode(A).hasNoDefaultLib||e.addRelatedInfo(x,e.createDiagnosticForNode(A,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!D||8192&p.flags?eo(p):e.unescapeLeadingUnderscores(D),eo(n)))}}}}}}return s}function L_(t,r,n){switch(t.kind){case 288:return{errorNode:t,innerExpression:t.expression,nameType:r};case 11:if(t.containsOnlyTriviaWhiteSpaces)break;return{errorNode:t,innerExpression:void 0,nameType:r,errorMessage:n()};case 278:case 279:case 282:return{errorNode:t,innerExpression:t,nameType:r};default:return e.Debug.assertNever(t,"Found invalid jsx child")}}function B_(t,r){var n,i,a,o;return h(this,(s=>{switch(s.label){case 0:if(!(n=e.length(t.elements)))return[2];i=0,s.label=1;case 1:return i<n?Of(r)&&!sl(r,""+i)?[3,3]:(a=t.elements[i],e.isOmittedExpression(a)?[3,3]:(o=Pp(i),[4,{errorNode:a,innerExpression:a,nameType:o}])):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}function U_(e,t,r,n,i){return Q_(e,t,On,r,n,i)}function j_(t,r,n,i,a,o,s,c){if(t===r)return-1;if(!(l=r).typeParameters&&(!l.thisParameter||Eo(Ab(l.thisParameter)))&&1===l.parameters.length&&U(l)&&(Ab(l.parameters[0])===tr||Eo(Ab(l.parameters[0])))&&Eo(Ll(l)))return-1;var l,d,u=Rb(r);if(!Bb(r)&&(8&n?Bb(t)||Rb(t)>u:Lb(t)>u))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=Mv(t,r=(d=r).typeParameters?d.canonicalSignatureCache||(d.canonicalSignatureCache=(t=>Vl(t,e.map(t.typeParameters,(e=>e.target&&!Uc(e.target)?e.target:e)),e.isInJSFile(t.declaration)))(d)):d,void 0,s));var p=Rb(t),_=jb(t),f=jb(r);(_||f)&&u_(_||f,c);var m=r.declaration?r.declaration.kind:0,g=!(3&n)&&q&&169!==m&&168!==m&&171!==m,h=-1,y=Ol(t);if(y&&y!==st){var v=Ol(r);if(v){if(!(T=!g&&s(y,v,!1)||s(v,y,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;h&=T}}for(var b=_||f?Math.min(p,u):Math.max(p,u),E=_||f?b-1:-1,x=0;x<b;x++){var D=x===E?Mb(t,x):Ob(t,x),S=x===E?Mb(r,x):Ob(r,x);if(D&&S){var T,C=3&n?void 0:Pv(tm(D)),A=3&n?void 0:Pv(tm(S));if((T=C&&A&&!Ml(C)&&!Ml(A)&&(50331648&Eg(D))==(50331648&Eg(S))?j_(A,C,8&n|(g?2:1),i,a,o,s,c):!(3&n)&&!g&&s(D,S,!1)||s(S,D,i))&&8&n&&x>=Lb(t)&&x<Lb(r)&&s(D,S,!1)&&(T=0),!T)return i&&a(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(Nb(t,x)),e.unescapeLeadingUnderscores(Nb(r,x))),0;h&=T}}if(!(4&n)){var k=Ul(r)?Re:r.declaration&&pb(r.declaration)?As(ha(r.declaration.symbol)):Ll(r);if(k===st||k===Re)return h;var N=Ul(t)?Re:t.declaration&&pb(t.declaration)?As(ha(t.declaration.symbol)):Ll(t),w=Ml(r);if(w){var F=Ml(t);if(F)h&=((t,r,n,i,a)=>{if(t.kind!==r.kind)return n&&(i(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,oo(t),oo(r))),0;if((1===t.kind||3===t.kind)&&t.parameterIndex!==r.parameterIndex)return n&&(i(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,t.parameterName,r.parameterName),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,oo(t),oo(r))),0;var o=t.type===r.type?-1:t.type&&r.type?a(t.type,r.type,n):0;return 0===o&&n&&i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,oo(t),oo(r)),o})(F,w,i,a,s);else if(e.isIdentifierTypePredicate(w))return i&&a(e.Diagnostics.Signature_0_must_be_a_type_predicate,Za(t)),0}else!(h&=1&n&&s(k,N,!1)||s(N,k,i))&&i&&o&&o(N,k)}return h}function V_(e){return e!==Ft&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&0===e.indexInfos.length}function z_(t){return 524288&t.flags?!Pc(t)&&V_(Ic(t)):!!(67108864&t.flags)||(1048576&t.flags?e.some(t.types,z_):!!(2097152&t.flags)&&e.every(t.types,z_))}function H_(t){return!!(16&e.getObjectFlags(t)&&(t.members&&V_(t)||t.symbol&&2048&t.symbol.flags&&0===ec(t.symbol).size))}function W_(e){return!!(32768&(1048576&e.flags?e.types[0]:e).flags)}function K_(t){return 524288&t.flags&&!Pc(t)&&0===Lc(t).length&&1===fl(t).length&&!!ml(t,Ye)||3145728&t.flags&&e.every(t.types,K_)||!1}function J_(t,r,n){if(t===r)return!0;var i=O(t)+","+O(r),a=Rn.get(i);if(void 0!==a&&(4&a||!(2&a)||!n))return!!(1&a);if(!(t.escapedName===r.escapedName&&256&t.flags&&256&r.flags))return Rn.set(i,6),!1;for(var o=cs(r),s=0,c=Lc(cs(t));s<c.length;s++){var l=c[s];if(8&l.flags){var d=sl(o,l.escapedName);if(!(d&&8&d.flags))return n?(n(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(l),eo(Rs(r),void 0,64)),Rn.set(i,6)):Rn.set(i,2),!1}}return Rn.set(i,1),!0}function G_(t,r,n,i){var a=t.flags,o=r.flags;if(3&o||131072&a||t===Be)return!0;if(131072&o)return!1;if(402653316&a&&4&o)return!0;if(128&a&&1024&a&&128&o&&!(1024&o)&&t.value===r.value)return!0;if(296&a&&8&o)return!0;if(256&a&&1024&a&&256&o&&!(1024&o)&&t.value===r.value)return!0;if(2112&a&&64&o)return!0;if(528&a&&16&o)return!0;if(12288&a&&4096&o)return!0;if(32&a&&32&o&&J_(t.symbol,r.symbol,i))return!0;if(1024&a&&1024&o){if(1048576&a&&1048576&o&&J_(t.symbol,r.symbol,i))return!0;if(2944&a&&2944&o&&t.value===r.value&&J_(va(t.symbol),va(r.symbol),i))return!0}if(32768&a&&(!$&&!(3145728&o)||49152&o))return!0;if(65536&a&&(!$&&!(3145728&o)||65536&o))return!0;if(524288&a&&67108864&o&&(n!==Pn||!H_(t)||8192&e.getObjectFlags(t)))return!0;if(n===In||n===On){if(1&a)return!0;if(264&a&&!(1024&a)&&(32&o||n===In&&256&o&&1024&o))return!0;if((t=>{if($&&1048576&t.flags){if(!(33554432&t.objectFlags)){var r=t.types;t.objectFlags|=33554432|(r.length>=3&&32768&r[0].flags&&65536&r[1].flags&&e.some(r,H_)?67108864:0)}return!!(67108864&t.objectFlags)}return!1})(r))return!0}return!1}function $_(e,t,r){if(wp(e)&&(e=e.regularType),wp(t)&&(t=t.regularType),e===t)return!0;if(r!==Mn){if(r===On&&!(131072&t.flags)&&G_(t,e,r)||G_(e,t,r))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){var n=r.get(ff(e,t,0,r,!1));if(void 0!==n)return!!(1&n)}return!!(469499904&e.flags||469499904&t.flags)&&Q_(e,t,r,void 0)}function q_(t,r){return 2048&e.getObjectFlags(t)&&gy(r.escapedName)}function X_(t,r){for(;;){var n=wp(t)?t.regularType:4&e.getObjectFlags(t)?t.node?od(t.target,ld(t)):Ff(t)||t:3145728&t.flags?Y_(t,r):33554432&t.flags?r?t.baseType:t.substitute:25165824&t.flags?Yu(t,r):t;if(n===t)return n;t=n}}function Y_(t,r){var n=rl(t);if(n!==t)return n;if(2097152&t.flags&&e.some(t.types,H_)){var i=e.sameMap(t.types,(e=>X_(e,r)));if(i!==t.types)return xu(i)}return t}function Q_(t,r,n,i,a,c,l){var d,u,p,_,m,g,h,y=0,v=0,b=0,E=0,x=!1,D=0,S=!1;e.Debug.assert(n!==Mn||!i,"no error reporting in identity checking");var T=V(t,r,3,!!i,a);if(h&&M(),x){null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:t.id,targetId:r.id,depth:v,targetDepth:b});var C=Jn(i||s,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,eo(t),eo(r));l&&(l.errors||(l.errors=[])).push(C)}else if(d){if(c){var A=c();A&&(e.concatenateDiagnosticMessageChains(A,d),d=A)}var k=void 0;if(a&&i&&!T&&t.symbol){var w=ci(t.symbol);if(w.originatingImport&&!e.isImportCall(w.originatingImport)&&Q_(cs(w.target),r,n,void 0)){var F=e.createDiagnosticForNode(w.originatingImport,e.Diagnostics.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);k=e.append(k,F)}}C=e.createDiagnosticForNodeFromMessageChain(i,d,k),u&&e.addRelatedInfo.apply(void 0,f([C],u,!1)),l&&(l.errors||(l.errors=[])).push(C),l&&l.skipLogging||kn.add(C)}return i&&l&&l.skipLogging&&0===T&&e.Debug.assert(!!l.errors,"missed opportunity to interact with error."),0!==T;function P(e){d=e.errorInfo,g=e.lastSkippedInfo,h=e.incompatibleStack,D=e.overrideNextErrorInfo,u=e.relatedInfo}function I(){return{errorInfo:d,lastSkippedInfo:g,incompatibleStack:null==h?void 0:h.slice(),overrideNextErrorInfo:D,relatedInfo:null==u?void 0:u.slice()}}function O(e,t,r,n,i){D++,g=void 0,(h||(h=[])).push([e,t,r,n,i])}function M(){var t=h||[];h=void 0;var r=g;if(g=void 0,1===t.length)return R.apply(void 0,t[0]),void(r&&B.apply(void 0,f([void 0],r,!1)));for(var n="",i=[];t.length;){var a=t.pop(),o=a[0],s=a.slice(1);switch(o.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===n.indexOf("new ")&&(n="(".concat(n,")"));var c=""+s[0];n=0===n.length?"".concat(c):e.isIdentifierText(c,e.getEmitScriptTarget(H))?"".concat(n,".").concat(c):"["===c[0]&&"]"===c[c.length-1]?"".concat(n).concat(c):"".concat(n,"[").concat(c,"]");break;case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){var l=o;o.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?l=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:o.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(l=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),i.unshift([l,s[0],s[1]])}else{var d=o.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||o.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",u=o.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||o.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";n="".concat(d).concat(n,"(").concat(u,")")}break;case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:i.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,s[0],s[1]]);break;case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:i.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,s[0],s[1],s[2]]);break;default:return e.Debug.fail("Unhandled Diagnostic: ".concat(o.code))}}n?R(")"===n[n.length-1]?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,n):i.shift();for(var p=0,_=i;p<_.length;p++){var m=_[p],y=(o=m[0],s=m.slice(1),o.elidedInCompatabilityPyramid);o.elidedInCompatabilityPyramid=!1,R.apply(void 0,f([o],s,!1)),o.elidedInCompatabilityPyramid=y}r&&B.apply(void 0,f([void 0],r,!1))}function R(t,r,n,a,o){e.Debug.assert(!!i),h&&M(),t.elidedInCompatabilityPyramid||(d=e.chainDiagnosticMessages(d,t,r,n,a,o))}function L(t){e.Debug.assert(!!d),u?u.push(t):u=[t]}function B(t,r,i){h&&M();var a=to(r,i),o=a[0],s=a[1],c=r,l=o;if(Uf(r)&&!Z_(i)&&(c=jf(r),e.Debug.assert(!T_(c,i),"generalized source shouldn't be assignable"),l=ro(c)),262144&i.flags&&i!==Bt&&i!==Ut){var u=Wc(i),p=void 0;u&&(T_(c,u)||(p=T_(r,u)))?R(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,p?o:l,s,eo(u)):(d=void 0,R(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,s,l))}if(t)t===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&ne&&ef(r,i).length&&(t=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(n===On)t=e.Diagnostics.Type_0_is_not_comparable_to_type_1;else if(o===s)t=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(ne&&ef(r,i).length)t=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&r.flags&&1048576&i.flags){var _=((t,r)=>{var n=r.types.filter((e=>!!(128&e.flags)));return e.getSpellingSuggestion(t.value,n,(e=>e.value))})(r,i);if(_)return void R(e.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,l,s,eo(_))}t=e.Diagnostics.Type_0_is_not_assignable_to_type_1}R(t,l,s)}function U(t,r,n){return Kf(t)?t.target.readonly&&kf(r)?(n&&R(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,eo(t),eo(r)),!1):Af(r):Cf(t)&&kf(r)?(n&&R(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,eo(t),eo(r)),!1):!Kf(r)||Tf(t)}function j(e,t,r){return V(e,t,3,r)}function V(t,r,a,o,s,c){if(void 0===a&&(a=3),void 0===o&&(o=!1),void 0===c&&(c=0),524288&t.flags&&131068&r.flags)return G_(t,r,n,o?R:void 0)?-1:(o&&z(t,r,t,r,s),0);var l=X_(t,!1),d=X_(r,!0);if(l===d)return-1;if(n===Mn)return l.flags!==d.flags?0:67358815&l.flags?-1:(W(l,d),X(l,d,!1,0,a));if(262144&l.flags&&Bc(l)===d)return-1;if(470302716&l.flags&&1048576&d.flags){var u=d.types,p=2===u.length&&98304&u[0].flags?u[1]:3===u.length&&98304&u[0].flags&&98304&u[1].flags?u[2]:void 0;if(p&&!(98304&p.flags)&&l===(d=X_(p,!0)))return-1}if(n===On&&!(131072&d.flags)&&G_(d,l,n)||G_(l,d,n,o?R:void 0))return-1;if(469499904&l.flags||469499904&d.flags){var _=!(2&c)&&Qm(l)&&8192&e.getObjectFlags(l);if(_&&((t,r,a)=>{var o;if(!My(r)||!Q&&4096&e.getObjectFlags(r))return!1;var s=!!(2048&e.getObjectFlags(t));if((n===In||n===On)&&(jg(Wt,r)||!s&&z_(r)))return!1;var c,l=r;1048576&r.flags&&(l=GT(t,r,V)||(e=>{if(dE(e,67108864)){var t=Wg(e,(e=>!(131068&e.flags)));if(!(131072&t.flags))return t}return e})(r),c=1048576&l.flags?l.types:[l]);for(var d=r=>{if(((e,t)=>e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration)(r,t.symbol)&&!q_(t,r)){if(!Oy(l,r.escapedName,s)){if(a){var n=Wg(l,My);if(!i)return{value:e.Debug.fail()};if(e.isJsxAttributes(i)||e.isJsxOpeningLikeElement(i)||e.isJsxOpeningLikeElement(i.parent)){r.valueDeclaration&&e.isJsxAttribute(r.valueDeclaration)&&e.getSourceFileOfNode(i)===e.getSourceFileOfNode(r.valueDeclaration.name)&&(i=r.valueDeclaration.name);var d=Qa(r),u=uv(d,n);(_=u?Qa(u):void 0)?R(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,d,eo(n),_):R(e.Diagnostics.Property_0_does_not_exist_on_type_1,d,eo(n))}else{var p=(null===(o=t.symbol)||void 0===o?void 0:o.declarations)&&e.firstOrUndefined(t.symbol.declarations),_=void 0;if(r.valueDeclaration&&e.findAncestor(r.valueDeclaration,(e=>e===p))&&e.getSourceFileOfNode(p)===e.getSourceFileOfNode(i)){var f=r.valueDeclaration;e.Debug.assertNode(f,e.isObjectLiteralElementLike),i=f;var m=f.name;e.isIdentifier(m)&&(_=pv(m,n))}void 0!==_?R(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Qa(r),eo(n),_):R(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Qa(r),eo(n))}}return{value:!0}}if(c&&!V(cs(r),((t,r)=>fu(e.reduceLeft(t,((t,n)=>{var i,a=3145728&(n=Yc(n)).flags?tl(n,r):Mc(n,r),o=a&&cs(a)||(null===(i=vl(n,r))||void 0===i?void 0:i.type)||Ke;return e.append(t,o)}),void 0)||e.emptyArray))(c,r.escapedName),3,a))return a&&O(e.Diagnostics.Types_of_property_0_are_incompatible,Qa(r)),{value:!0}}},u=0,p=Lc(t);u<p.length;u++){var _=d(p[u]);if("object"==typeof _)return _.value}return!1})(l,d,o))return o&&B(s,l,r.aliasSymbol?r:d),0;var f=n!==On&&!(2&c)&&2752508&l.flags&&l!==Wt&&2621440&d.flags&&af(d)&&(Lc(l).length>0||IS(l)),m=!!(2048&e.getObjectFlags(l));if(f&&!((e,t,r)=>{for(var n=0,i=Lc(e);n<i.length;n++)if(Oy(t,i[n].escapedName,r))return!0;return!1})(l,d,m)){if(o){var g=eo(t.aliasSymbol?t:l),h=eo(r.aliasSymbol?r:d),y=ll(l,0),v=ll(l,1);y.length>0&&V(Ll(y[0]),d,1,!1)||v.length>0&&V(Ll(v[0]),d,1,!1)?R(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,g,h):R(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,g,h)}return 0}W(l,d);var b=1048576&l.flags&&l.types.length<4&&!(1048576&d.flags)||1048576&d.flags&&d.types.length<4&&!(469499904&l.flags)?K(l,d,o,c):X(l,d,o,c,a);if(b&&!S&&(2097152&d.flags&&(_||f)||Ep(d)&&!Af(d)&&2097152&l.flags&&3670016&Yc(l).flags&&!e.some(l.types,(t=>!!(262144&e.getObjectFlags(t)))))&&(S=!0,b&=X(l,d,o,4,a),S=!1),b)return b}return o&&z(t,r,l,d,s),0}function z(t,r,n,a,o){var s,c,l=!!Ff(t),u=!!Ff(r);n=t.aliasSymbol||l?t:n,a=r.aliasSymbol||u?r:a;var p=D>0;if(p&&D--,524288&n.flags&&524288&a.flags){var _=d;U(n,a,!0),d!==_&&(p=!!d)}if(524288&n.flags&&131068&a.flags)!((t,r)=>{var n=no(t.symbol)?eo(t,t.symbol.valueDeclaration):eo(t),i=no(r.symbol)?eo(r,r.symbol.valueDeclaration):eo(r);(Xt===t&&Ye===r||Yt===t&&Qe===r||Qt===t&&at===r||Bd()===t&&ot===r)&&R(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)})(n,a);else if(n.symbol&&524288&n.flags&&Wt===n)R(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&e.getObjectFlags(n)&&2097152&a.flags){var f=a.types,m=Ey(N.IntrinsicAttributes,i),h=Ey(N.IntrinsicClassAttributes,i);if(!xo(m)&&!xo(h)&&(e.contains(f,m)||e.contains(f,h)))return}else d=ol(d,r);if(o||!p){if(B(o,n,a),262144&n.flags&&(null===(c=null===(s=n.symbol)||void 0===s?void 0:s.declarations)||void 0===c?void 0:c[0])&&!Bc(n)){var y=t_(n);if(y.constraint=u_(a,Gp(n,y)),Jc(y)){var v=eo(a,n.symbol.declarations[0]);L(e.createDiagnosticForNode(n.symbol.declarations[0],e.Diagnostics.This_type_parameter_might_need_an_extends_0_constraint,v))}}}else g=[n,a]}function W(t,r){if(e.tracing&&3145728&t.flags&&3145728&r.flags){var n=t,a=r;if(n.objectFlags&a.objectFlags&32768)return;var o=n.types.length,s=a.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:t.id,sourceSize:o,targetId:r.id,targetSize:s,pos:null==i?void 0:i.pos,end:null==i?void 0:i.end})}}function K(t,r,i,a){if(1048576&t.flags)return n===On?q(t,r,i&&!(131068&t.flags),a):((e,t,r,n)=>{for(var i=-1,a=e.types,o=((e,t)=>1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?qg(t,-32769):t)(e,t),s=0;s<a.length;s++){var c=a[s];if(1048576&o.flags&&a.length>=o.types.length&&a.length%o.types.length==0){var l=V(c,o.types[s%o.types.length],3,!1,void 0,n);if(l){i&=l;continue}}var d=V(c,t,1,r,void 0,n);if(!d)return 0;i&=d}return i})(t,r,i&&!(131068&t.flags),a);if(1048576&r.flags)return G(um(t),r,i&&!(131068&t.flags)&&!(131068&r.flags));if(2097152&r.flags)return((e,t,r,n)=>{for(var i=-1,a=0,o=t.types;a<o.length;a++){var s=V(e,o[a],2,r,void 0,2);if(!s)return 0;i&=s}return i})(t,r,i);if(n===On&&131068&r.flags){var o=e.sameMap(t.types,Kc);if(o!==t.types&&!(2097152&(t=xu(o)).flags))return V(t,r,1,!1)}return q(t,r,!1,1)}function J(e,t){for(var r=-1,n=0,i=e.types;n<i.length;n++){var a=G(i[n],t,!1);if(!a)return 0;r&=a}return r}function G(e,t,r){var n=t.types;if(1048576&t.flags){if(cu(n,e))return-1;var i=gg(t,e);if(i&&(s=V(e,i,2,!1)))return s}for(var a=0,o=n;a<o.length;a++){var s;if(s=V(e,o[a],2,!1))return s}if(r){var c=rf(e,t,V);c&&V(e,c,2,!0)}return 0}function q(e,t,r,n){var i=e.types;if(1048576&e.flags&&cu(i,t))return-1;for(var a=i.length,o=0;o<a;o++){var s=V(i[o],t,1,r&&o===a-1,void 0,n);if(s)return s}return 0}function X(t,r,i,a,o){if(x)return 0;var s=a|(S?8:0),c=ff(t,r,s,n,!1),l=n.get(c);if(void 0!==l&&(!(i&&2&l)||4&l)){if(it){var u=24&l;8&u&&u_(t,St),16&u&&u_(t,Dt)}return 1&l?-1:0}if(p){for(var g=c.startsWith("*")?ff(t,r,s,n,!0):void 0,h=0;h<y;h++)if(c===p[h]||g&&g===p[h])return 3;if(100===v||100===b)return x=!0,0}else p=[],_=[],m=[];var D=y;p[y]=c,y++;var T,C=E;1&o&&(_[v]=t,v++,1&E||!vf(t,_,v)||(E|=1)),2&o&&(m[b]=r,b++,2&E||!vf(r,m,b)||(E|=2));var A,k=0;if(it&&(T=it,it=e=>(k|=e?16:8,T(e))),3===E?(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:t.id,sourceIdStack:_.map((e=>e.id)),targetId:r.id,targetIdStack:m.map((e=>e.id)),depth:v,targetDepth:b}),A=3):(null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:t.id,targetId:r.id}),A=((t,r,i,a)=>{var o=I(),s=((t,r,i,a,o)=>{if(4&a)return ee(t,r,i,void 0,0);var s,c,l,u,p=!1,g=t.flags,h=r.flags;if(n===Mn){if(3145728&g){var y=J(t,r);return y&&(y&=J(r,t)),y}if(4194304&g)return V(t.type,r.type,3,!1);if(8388608&g&&(s=V(t.objectType,r.objectType,3,!1))&&(s&=V(t.indexType,r.indexType,3,!1)))return s;if(16777216&g&&t.root.isDistributive===r.root.isDistributive&&(s=V(t.checkType,r.checkType,3,!1))&&(s&=V(t.extendsType,r.extendsType,3,!1))&&(s&=V(pp(t),pp(r),3,!1))&&(s&=V(_p(t),_p(r),3,!1)))return s;if(33554432&g)return V(t.substitute,r.substitute,3,!1);if(!(524288&g))return 0}else if(3145728&g||3145728&h){if(s=K(t,r,i,a))return s;if(!(465829888&g||524288&g&&1048576&h||2097152&g&&467402752&h))return 0}if(17301504&g&&t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol&&!df(t)&&!df(r)){if((le=sf(t.aliasSymbol))===e.emptyArray)return 1;if(void 0!==(de=me(t.aliasTypeArguments,r.aliasTypeArguments,le,a)))return de}if(Gf(t)&&!t.target.readonly&&(s=V(ld(t)[0],r,1))||Gf(r)&&(r.target.readonly||kf(Wc(t)||t))&&(s=V(t,ld(r)[0],2)))return s;if(262144&h){if(32&e.getObjectFlags(t)&&!t.declaration.nameType&&V(Ou(r),Dc(t),3)&&!(4&Nc(t))){var E=Tc(t),x=tp(r,xc(t));if(s=V(E,x,3,i))return s}if(n===On&&262144&g){if((X=Uc(t))&&Jc(t))for(;X&&262144&X.flags;){if(s=V(X,r,1,!1))return s;X=Uc(X)}return 0}}else if(4194304&h){var D=r.type;if(4194304&g&&(s=V(D,t.type,3,!1)))return s;if(Kf(D)){if(s=V(t,iu(D),2,i))return s}else if(X=jc(D)){if(-1===V(t,Ou(X,r.stringsOnly),2,i))return-1}else if(Pc(D)){var S=Sc(D),T=Dc(D),C=void 0;if(S&&Ac(D)){var A=Yc(kc(D)),k=[];Ec(A,8576,!1,(e=>{k.push(u_(S,e_(D.mapper,xc(D),e)))})),C=fu(f(f([],k,!0),[S],!1))}else C=S||T;if(-1===V(t,C,2,i))return-1}}else if(8388608&h){if(8388608&g){if((s=V(t.objectType,r.objectType,3,i))&&(s&=V(t.indexType,r.indexType,3,i)),s)return s;i&&(c=d)}if(n===In||n===On){var N=r.objectType,w=r.indexType,F=Wc(N)||N,I=Wc(w)||w;if(!$u(F)&&!qu(I)&&(X=np(F,I,4|(F!==N?2:0)))){if(i&&c&&P(o),s=V(t,X,2,i,void 0,a))return s;i&&c&&d&&(d=fe([c])<=fe([d])?c:d)}}i&&(c=void 0)}else if(Pc(r)&&n!==Mn){var O=!!r.declaration.nameType,M=(E=Tc(r),Nc(r));if(!(8&M)){if(!O&&8388608&E.flags&&E.objectType===t&&E.indexType===xc(r))return-1;if(!Pc(t)){C=O?Sc(r):Dc(r);var R=Ou(t,void 0,!0),L=4&M,B=L?fc(C,R):void 0;if(L?!(131072&B.flags):V(C,R,3)){var U=Tc(r),z=xc(r),H=qg(U,-98305);if(!O&&8388608&H.flags&&H.indexType===z){if(s=V(t,H.objectType,2,i))return s}else if(x=tp(t,O?B||C:B?xu([B,z]):z),s=V(x,U,3,i))return s}c=d,P(o)}}}else if(16777216&h){if(vf(r,m,b,10))return 3;var W=r;if(!(W.root.inferTypeParameters||(l=W.root).isDistributive&&(i_(l.checkType,l.node.trueType)||i_(l.checkType,l.node.falseType)))){var G=!T_(__(W.checkType),__(W.extendsType)),q=!G&&T_(f_(W.checkType),f_(W.extendsType));if((s=G?-1:V(t,pp(W),2,!1,void 0,a))&&(s&=q?-1:V(t,_p(W),2,!1,void 0,a)))return s}}else if(134217728&h){if(134217728&g){if(n===On)return((e,t)=>{var r=e.texts[0],n=t.texts[0],i=e.texts[e.texts.length-1],a=t.texts[t.texts.length-1],o=Math.min(r.length,n.length),s=Math.min(i.length,a.length);return r.slice(0,o)!==n.slice(0,o)||i.slice(i.length-s)!==a.slice(a.length-s)})(t,r)?0:-1;u_(t,Dt)}if(Jm(t,r))return-1}else if(268435456&r.flags&&!(268435456&t.flags)&&Wm(t,r))return-1;if(8650752&g){if(!(8388608&g&&8388608&h)){var X=Bc(t)||He;if(s=V(X,r,1,!1,void 0,a))return s;if(s=V(rc(X,t),r,1,i&&X!==He&&!(h&g&262144),void 0,a))return s;if(Xc(t)){var Y=Bc(t.indexType);if(Y&&(s=V(tp(t.objectType,Y),r,1,i)))return s}}}else if(4194304&g){if(s=V(mt,r,1,i))return s}else if(134217728&g&&!(524288&h)){if(!(134217728&h)&&(X=Wc(t))&&X!==t&&(s=V(X,r,1,i)))return s}else if(268435456&g){if(268435456&h){if(t.symbol!==r.symbol)return 0;if(s=V(t.type,r.type,3,i))return s}else if((X=Wc(t))&&(s=V(X,r,1,i)))return s}else if(16777216&g){if(vf(t,_,v,10))return 3;if(16777216&h){var Q=t.root.inferTypeParameters,re=t.extendsType,ne=void 0;if(Q){var ie=Sm(Q,void 0,0,j);qm(ie.inferences,r.extendsType,re,1536),re=u_(re,ie.mapper),ne=ie.mapper}if(b_(re,r.extendsType)&&(V(t.checkType,r.checkType,3)||V(r.checkType,t.checkType,3))&&((s=V(u_(pp(t),ne),pp(r),3,i))&&(s&=V(_p(t),_p(r),3,i)),s))return s}else{var ae=Jc(t)?zc(t):void 0;if(ae&&(s=V(ae,r,1,i)))return s}var oe=Vc(t);if(oe&&(s=V(oe,r,1,i)))return s}else{if(n!==Fn&&n!==Pn&&(u=r,32&e.getObjectFlags(u)&&4&Nc(u))&&z_(t))return-1;if(Pc(r))return Pc(t)&&(s=((e,t,r)=>{var i;if((n===On||(n===Mn?Nc(e)===Nc(t):Fc(e)<=Fc(t)))&&(i=V(Dc(t),u_(Dc(e),Fc(e)<0?St:Dt),3,r))){var a=Kp([xc(e)],[xc(t)]);if(u_(Sc(e),a)===u_(Sc(t),a))return i&V(u_(Tc(e),a),Tc(t),3,r)}return 0})(t,r,i))?s:0;var ce=!!(131068&g);if(n!==Mn)g=(t=Yc(t)).flags;else if(Pc(t))return 0;if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&t.target===r.target&&!Kf(t)&&!df(t)&&!df(r)){if(If(t))return-1;var le,de;if((le=of(t.target))===e.emptyArray)return 1;if(void 0!==(de=me(ld(t),ld(r),le,a)))return de}else{if(Cf(r)?Af(t):Tf(r)&&Kf(t)&&!t.target.readonly)return n!==Mn?V(gl(t,Qe)||Re,gl(r,Qe)||Re,3,i):0;if((n===Fn||n===Pn)&&z_(r)&&8192&e.getObjectFlags(r)&&!z_(t))return 0}if(2621440&g&&524288&h){var ue=i&&d===o.errorInfo&&!ce;if((s=ee(t,r,ue,void 0,a))&&(s&=te(t,r,0,ue))&&(s&=te(t,r,1,ue))&&(s&=se(t,r,ce,ue,a)),p&&s)d=c||d||o.errorInfo;else if(s)return s}if(2621440&g&&1048576&h){var pe=qg(r,36175872);if(1048576&pe.flags){var _e=((t,r)=>{var i=_g(Lc(t),r);if(!i)return 0;for(var a=1,o=0,s=i;o<s.length;o++)if((a*=Jg(ls(u=s[o])))>25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:t.id,targetId:r.id,numCombinations:a}),0;for(var c=new Array(i.length),l=new e.Set,d=0;d<i.length;d++){var u,p=ls(u=i[d]);c[d]=1048576&p.flags?p.types:[p],l.add(u.escapedName)}for(var _=e.cartesianProduct(c),f=[],m=a=>{var o=!1;e:for(var s=0,c=r.types;s<c.length;s++){for(var l=c[s],d=e=>{var o=i[e],s=sl(l,o.escapedName);return s?o===s?"continue":Z(t,r,o,s,(t=>a[e]),!1,0,$||n===On)?void 0:"continue-outer":"continue-outer"},u=0;u<i.length;u++)switch(d(u)){case"continue-outer":continue e}e.pushIfUnique(f,l,e.equateValues),o=!0}if(!o)return{value:0}},g=0,h=_;g<h.length;g++){var y=m(h[g]);if("object"==typeof y)return y.value}for(var v=-1,b=0,E=f;b<E.length;b++){var x=E[b];if((v&=ee(t,x,!1,l,0))&&(v&=te(t,x,0,!1))&&(!(v&=te(t,x,1,!1))||Kf(t)&&Kf(x)||(v&=se(t,x,!1,!1,0))),!v)return v}return v})(t,pe);if(_e)return _e}}}return 0;function fe(t){return t?e.reduceLeft(t,((e,t)=>e+1+fe(t.next)),0):0}function me(t,r,a,l){if(s=((t,r,i,a,o)=>{if(void 0===t&&(t=e.emptyArray),void 0===r&&(r=e.emptyArray),void 0===i&&(i=e.emptyArray),t.length!==r.length&&n===Mn)return 0;for(var s=t.length<=r.length?t.length:r.length,c=-1,l=0;l<s;l++){var d=l<i.length?i[l]:1,u=7&d;if(4!==u){var p=t[l],_=r[l],f=-1;if(8&d?f=n===Mn?V(p,_,3,!1):E_(p,_):1===u?f=V(p,_,3,a,void 0,o):2===u?f=V(_,p,3,a,void 0,o):3===u?(f=V(_,p,3,!1))||(f=V(p,_,3,a,void 0,o)):(f=V(p,_,3,a,void 0,o))&&(f&=V(_,p,3,a,void 0,o)),!f)return 0;c&=f}}return c})(t,r,a,i,l))return s;if(e.some(a,(e=>!!(24&e))))return c=void 0,void P(o);var u=r&&((e,t)=>{for(var r=0;r<t.length;r++)if(1==(7&t[r])&&16384&e[r].flags)return!0;return!1})(r,a);if(p=!u,a!==e.emptyArray&&!u){if(p&&(!i||!e.some(a,(e=>0==(7&e)))))return 0;c=d,P(o)}}})(t,r,i,a,o);if(!s&&(2097152&t.flags||262144&t.flags&&1048576&r.flags)){var c=((t,r)=>{for(var n,i=!1,a=0,o=t;a<o.length;a++)if(465829888&(d=o[a]).flags){for(var s=Bc(d);s&&21233664&s.flags;)s=Bc(s);s&&(n=e.append(n,s),r&&(n=e.append(n,d)))}else(469892092&d.flags||H_(d))&&(i=!0);if(n&&(r||i)){if(i)for(var c=0,l=t;c<l.length;c++){var d;(469892092&(d=l[c]).flags||H_(d))&&(n=e.append(n,d))}return X_(xu(n),!1)}})(2097152&t.flags?t.types:[t],!!(1048576&r.flags));c&&Hg(c,(e=>e!==t))&&(s=V(c,r,1,!1,void 0,a))}return s&&P(o),s})(t,r,i,a),null===e.tracing||void 0===e.tracing||e.tracing.pop()),it&&(it=T),1&o&&v--,2&o&&b--,E=C,A){if(-1===A||0===v&&0===b){if(-1===A||3===A)for(h=D;h<y;h++)n.set(p[h],1|k);y=D}}else n.set(c,2|(i?4:0)|k),y=D;return A}function Y(e,t){if(!t||0===e.length)return e;for(var r,n=0;n<e.length;n++)t.has(e[n].escapedName)?r||(r=e.slice(0,n)):r&&r.push(e[n]);return r||e}function Z(t,r,i,a,o,s,c,l){var d=e.getDeclarationModifierFlagsFromSymbol(i),u=e.getDeclarationModifierFlagsFromSymbol(a);if(8&d||8&u){if(i.valueDeclaration!==a.valueDeclaration)return s&&(8&d&&8&u?R(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Qa(a)):R(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Qa(a),eo(8&d?t:r),eo(8&d?r:t))),0}else if(16&u){if(!((t,r)=>!mf(r,(r=>{return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&(n=t,i=gf(r),!mf(n,(e=>{var t=gf(e);return!!t&&ps(t,i)})));var n,i})))(i,a))return s&&R(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Qa(a),eo(gf(i)||t),eo(gf(a)||r)),0}else if(16&d)return s&&R(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Qa(a),eo(t),eo(r)),0;if(n===Pn&&aE(i)&&!aE(a))return 0;var p=((t,r,n,i,a)=>{var o=$&&!!(48&e.getCheckFlags(r)),s=Oo(ls(r),!1,o);return V(n(t),s,3,i,void 0,a)})(i,a,o,s,c);return p?l||!(16777216&i.flags)||16777216&a.flags?p:(s&&R(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Qa(a),eo(t),eo(r)),0):(s&&O(e.Diagnostics.Types_of_property_0_are_incompatible,Qa(a)),0)}function ee(t,r,i,s,c){if(n===Mn)return((e,t,r)=>{if(!(524288&e.flags&&524288&t.flags))return 0;var n=Y(Oc(e),r),i=Y(Oc(t),r);if(n.length!==i.length)return 0;for(var a=-1,o=0,s=n;o<s.length;o++){var c=s[o],l=Mc(t,c.escapedName);if(!l)return 0;var d=Ef(c,l,V);if(!d)return 0;a&=d}return a})(t,r,s);var l=-1;if(Kf(r)){if(Af(t)){if(!r.target.readonly&&(Cf(t)||Kf(t)&&t.target.readonly))return 0;var u=dd(t),p=dd(r),_=Kf(t)?4&t.target.combinedFlags:4,m=4&r.target.combinedFlags,g=Kf(t)?t.target.minLength:0,h=r.target.minLength;if(!_&&u<h)return i&&R(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,u,h),0;if(!m&&p<g)return i&&R(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,g,p),0;if(!m&&(_||p<u))return i&&(g<h?R(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,h):R(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,p)),0;for(var y=ld(t),v=ld(r),b=Math.min(Kf(t)?au(t.target,11):0,au(r.target,11)),E=Math.min(Kf(t)?ou(t.target,11):0,m?ou(r.target,11):0),x=!!s,S=0;S<p;S++){var T=S<p-E?S:S+u-p,C=Kf(t)&&(S<b||S>=p-E)?t.target.elementFlags[T]:4,A=r.target.elementFlags[S];if(8&A&&!(8&C))return i&&R(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,S),0;if(8&C&&!(12&A))return i&&R(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,T,S),0;if(1&A&&!(1&C))return i&&R(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,S),0;if(!(x&&((12&C||12&A)&&(x=!1),x&&(null==s?void 0:s.has(""+S))))){var k=Kf(t)?S<b||S>=p-E?om(y[T],!!(C&A&2)):qf(t,b,E)||ct:y[0],N=v[S];if(!(J=V(k,8&C&&4&A?Gd(N):om(N,!!(2&A)),3,i,void 0,c)))return i&&(p>1||u>1)&&(S<b||S>=p-E||u-b-E==1?O(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,T,S):O(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,b,u-E-1,S)),0;l&=J}}return l}if(12&r.target.combinedFlags)return 0}var w=!(n!==Fn&&n!==Pn||Qm(t)||If(t)||Kf(t)),F=Bm(t,r,w,!1);if(F)return i&&((e,t)=>{var r=cl(e,0),n=cl(e,1),i=Oc(e);return!((r.length||n.length)&&!i.length&&!(ll(t,0).length&&r.length||ll(t,1).length&&n.length))})(t,r)&&((t,r,n,i)=>{var s=!1;if(n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name)&&t.symbol&&32&t.symbol.flags){var c=n.valueDeclaration.name.escapedText,l=e.getSymbolNameForPrivateIdentifier(t.symbol,c);if(l&&sl(t,l)){var u=e.factory.getDeclarationName(t.symbol.valueDeclaration),p=e.factory.getDeclarationName(r.symbol.valueDeclaration);return void R(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,bi(c),bi(""===u.escapedText?o:u),bi(""===p.escapedText?o:p))}}var _=e.arrayFrom(Lm(t,r,i,!1));if((!a||a.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&a.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(s=!0),1===_.length){var m=Qa(n);R.apply(void 0,f([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,m],to(t,r),!1)),e.length(n.declarations)&&L(e.createDiagnosticForNode(n.declarations[0],e.Diagnostics._0_is_declared_here,m)),s&&d&&D++}else U(t,r,!1)&&(_.length>5?R(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,eo(t),eo(r),e.map(_.slice(0,4),(e=>Qa(e))).join(", "),_.length-4):R(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,eo(t),eo(r),e.map(_,(e=>Qa(e))).join(", ")),s&&d&&D++)})(t,r,F,w),0;if(Qm(r))for(var P=0,I=Y(Lc(t),s);P<I.length;P++)if(!(Mc(r,(H=I[P]).escapedName)||32768&(k=cs(H)).flags))return i&&R(e.Diagnostics.Property_0_does_not_exist_on_type_1,Qa(H),eo(r)),0;for(var M=Lc(r),B=Kf(t)&&Kf(r),j=0,z=Y(M,s);j<z.length;j++){var H,W=z[j],K=W.escapedName;if(!(4194304&W.flags)&&(!B||e.isNumericLiteralName(K)||"length"===K)&&(H=sl(t,K))&&H!==W){var J;if(!(J=Z(t,r,H,W,ls,i,c,n===On)))return 0;l&=J}}return l}function te(t,r,i,a){var o,s;if(n===Mn)return((e,t,r)=>{var n=ll(e,r),i=ll(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o<n.length;o++){var s=xf(n[o],i[o],!1,!1,!1,V);if(!s)return 0;a&=s}return a})(t,r,i);if(r===Ft||t===Ft)return-1;var c=t.symbol&&pb(t.symbol.valueDeclaration),l=r.symbol&&pb(r.symbol.valueDeclaration),d=ll(t,c&&1===i?0:i),u=ll(r,l&&1===i?0:i);if(1===i&&d.length&&u.length){var p=!!(4&d[0].flags),_=!!(4&u[0].flags);if(p&&!_)return a&&R(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!((t,r,n)=>{if(!t.declaration||!r.declaration)return!0;var i=e.getSelectedEffectiveModifierFlags(t.declaration,24),a=e.getSelectedEffectiveModifierFlags(r.declaration,24);return 8===a||16===a&&8!==i||16!==a&&!i||(n&&R(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,so(i),so(a)),!1)})(d[0],u[0],a))return 0}var f=-1,m=1===i?ie:re,g=e.getObjectFlags(t),h=e.getObjectFlags(r);if(64&g&&64&h&&t.symbol===r.symbol||4&g&&4&h&&t.target===r.target)for(var y=0;y<u.length;y++){if(!(w=ae(d[y],u[y],!0,a,m(d[y],u[y]))))return 0;f&=w}else if(1===d.length&&1===u.length){var v=n===On||!!H.noStrictGenericChecks,b=e.first(d),E=e.first(u);if(!(f=ae(b,E,v,a,m(b,E)))&&a&&1===i&&g&h&&(171===(null===(o=E.declaration)||void 0===o?void 0:o.kind)||171===(null===(s=b.declaration)||void 0===s?void 0:s.kind))){var x=e=>Za(e,void 0,262144,i);return R(e.Diagnostics.Type_0_is_not_assignable_to_type_1,x(b),x(E)),R(e.Diagnostics.Types_of_construct_signatures_are_incompatible),f}}else e:for(var D=0,S=u;D<S.length;D++){for(var T=S[D],C=I(),A=a,k=0,N=d;k<N.length;k++){var w,F=N[k];if(w=ae(F,T,!0,A,m(F,T))){f&=w,P(C);continue e}A=!1}return A&&R(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,eo(t),Za(T,void 0,void 0,i)),0}return f}function re(t,r){return 0===t.parameters.length&&0===r.parameters.length?(t,r)=>O(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,eo(t),eo(r)):(t,r)=>O(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,eo(t),eo(r))}function ie(t,r){return 0===t.parameters.length&&0===r.parameters.length?(t,r)=>O(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,eo(t),eo(r)):(t,r)=>O(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,eo(t),eo(r))}function ae(e,t,r,i,a){return j_(r?Wl(e):e,r?Wl(t):t,n===Pn?8:0,i,R,a,j,Dt)}function oe(t,r,n){var i=V(t.type,r.type,3,n);return!i&&n&&(t.keyType===r.keyType?R(e.Diagnostics._0_index_signatures_are_incompatible,eo(t.keyType)):R(e.Diagnostics._0_and_1_index_signatures_are_incompatible,eo(t.keyType),eo(r.keyType))),i}function se(t,r,i,a,o){if(n===Mn)return((e,t)=>{var r=fl(e),n=fl(t);if(r.length!==n.length)return 0;for(var i=0,a=n;i<a.length;i++){var o=a[i],s=ml(e,o.keyType);if(!s||!V(s.type,o.type,3)||s.isReadonly!==o.isReadonly)return 0}return-1})(t,r);for(var s=fl(r),c=e.some(s,(e=>e.keyType===Ye)),l=-1,d=0,u=s;d<u.length;d++){var p=u[d],_=!i&&c&&1&p.type.flags?-1:Pc(t)&&c?V(Tc(t),p.type,3,a):ce(t,p,a,o);if(!_)return 0;l&=_}return l}function ce(t,r,n,i){var a=yl(t,r.keyType);return a?oe(a,r,n):1&i||!lm(t)?(n&&R(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,eo(r.keyType),eo(t)),0):((t,r,n)=>{for(var i=-1,a=r.keyType,o=0,s=2097152&t.flags?Rc(t):Oc(t);o<s.length;o++){var c=s[o];if(!q_(t,c)&&pl(wu(c,8576),a)){var l=ls(c);if(!(_=V(ne||32768&l.flags||a===Qe||!(16777216&c.flags)?l:xg(l,524288),r.type,3,n)))return n&&R(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Qa(c)),0;i&=_}}for(var d=0,u=fl(t);d<u.length;d++){var p=u[d];if(pl(p.keyType,a)){var _;if(!(_=oe(p,r,n)))return 0;i&=_}}return i})(t,r,n)}}function Z_(t){if(16&t.flags)return!1;if(3145728&t.flags)return!!e.forEach(t.types,Z_);if(465829888&t.flags){var r=Bc(t);if(r&&r!==t)return Z_(r)}return Lf(t)||!!(134217728&t.flags)||!!(268435456&t.flags)}function ef(t,r){return Kf(t)&&Kf(r)?e.emptyArray:Lc(r).filter((e=>tf(bo(t,e.escapedName),cs(e))))}function tf(e,t){return!!e&&!!t&&dE(e,32768)&&!!sm(t)}function rf(t,r,n){return void 0===n&&(n=x_),GT(t,r,n,!0)||((t,r)=>{var n=e.getObjectFlags(t);if(20&n&&1048576&r.flags)return e.find(r.types,(r=>{if(524288&r.flags){var i=n&e.getObjectFlags(r);if(4&i)return t.target===r.target;if(16&i)return!!t.aliasSymbol&&t.aliasSymbol===r.aliasSymbol}return!1}))})(t,r)||((t,r)=>{if(128&e.getObjectFlags(t)&&zg(r,wf))return e.find(r.types,(e=>!wf(e)))})(t,r)||((t,r)=>{var n=0;if(ll(t,n).length>0||ll(t,n=1).length>0)return e.find(r.types,(e=>ll(e,n).length>0))})(t,r)||((t,r)=>{var n;if(!(406978556&t.flags))for(var i=0,a=0,o=r.types;a<o.length;a++){var s=o[a];if(!(406978556&s.flags)){var c=xu([Ou(t),Ou(s)]);if(4194304&c.flags)return s;if(Lf(c)||1048576&c.flags){var l=1048576&c.flags?e.countWhere(c.types,Lf):1;l>=i&&(n=s,i=l)}}}return n})(t,r)}function nf(t,r,n,i,a){for(var o=t.types.map((e=>{})),s=0,c=r;s<c.length;s++){var l=c[s],d=l[0],u=l[1],p=el(t,u);if(!(a&&p&&16&e.getCheckFlags(p)))for(var _=0,f=0,m=t.types;f<m.length;f++){var g=bo(m[f],u);g&&n(d(),g)?o[_]=void 0===o[_]||o[_]:o[_]=!1,_++}}var h=o.indexOf(!0);if(-1===h)return i;for(var y=o.indexOf(!0,h+1);-1!==y;){if(!b_(t.types[h],t.types[y]))return i;y=o.indexOf(!0,y+1)}return t.types[h]}function af(t){if(524288&t.flags){var r=Ic(t);return 0===r.callSignatures.length&&0===r.constructSignatures.length&&0===r.indexInfos.length&&r.properties.length>0&&e.every(r.properties,(e=>!!(16777216&e.flags)))}return!!(2097152&t.flags)&&e.every(t.types,af)}function of(e){return e===$t||e===qt||8&e.objectFlags?z:cf(e.symbol,e.typeParameters)}function sf(e){return cf(e,ci(e).typeParameters)}function cf(t,r){void 0===r&&(r=e.emptyArray);var n=ci(t);if(!n.variances){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:r.length,id:su(Rs(t))}),n.variances=e.emptyArray;for(var i=[],a=e=>{var r=uf(e),n=65536&r?32768&r?0:1:32768&r?2:void 0;if(void 0===n){var a=!1,o=!1,s=it;it=e=>e?o=!0:a=!0;var c=lf(t,e,Mt),l=lf(t,e,Rt);3==(n=(T_(l,c)?1:0)|(T_(c,l)?2:0))&&T_(lf(t,e,Lt),c)&&(n=4),it=s,(a||o)&&(a&&(n|=8),o&&(n|=16))}i.push(n)},o=0,s=r;o<s.length;o++)a(s[o]);n.variances=i,null===e.tracing||void 0===e.tracing||e.tracing.pop({variances:i.map(e.Debug.formatVariance)})}return n.variances}function lf(e,t,r){var n=Gp(t,r),i=Rs(e);if(xo(i))return i;var a=524288&e.flags?pd(e,zp(ci(e).typeParameters,n)):od(i,zp(i.typeParameters,n));return Fe.add(su(a)),a}function df(e){return Fe.has(su(e))}function uf(t){var r,n;return(e.some(null===(r=t.symbol)||void 0===r?void 0:r.declarations,(t=>e.hasSyntacticModifier(t,32768)))?32768:0)|(e.some(null===(n=t.symbol)||void 0===n?void 0:n.declarations,(t=>e.hasSyntacticModifier(t,65536)))?65536:0)}function pf(e){return 262144&e.flags&&!Uc(e)}function _f(t){return(t=>!!(4&e.getObjectFlags(t))&&!t.node)(t)&&e.some(ld(t),(e=>!!(262144&e.flags)||_f(e)))}function ff(e,t,r,n,i){if(n===Mn&&e.id>t.id){var a=e;e=t,t=a}var o=r?":"+r:"";return _f(e)&&_f(t)?((e,t,r,n)=>{var i=[],a="",o=c(e,0),s=c(t,0);return"".concat(a).concat(o,",").concat(s).concat(r);function c(e,t){void 0===t&&(t=0);for(var r=""+e.target.id,o=0,s=ld(e);o<s.length;o++){var l=s[o];if(262144&l.flags){if(n||pf(l)){var d=i.indexOf(l);d<0&&(d=i.length,i.push(l)),r+="="+d;continue}a="*"}else if(t<4&&_f(l)){r+="<"+c(l,t+1)+">";continue}r+="-"+l.id}return r}})(e,t,o,i):"".concat(e.id,",").concat(t.id).concat(o)}function mf(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n<i.length;n++){var a=sl(i[n],t.escapedName),o=a&&mf(a,r);if(o)return o}}function gf(e){return e.parent&&32&e.parent.flags?Rs(va(e)):void 0}function hf(e){var t=gf(e),r=t&&Ss(t)[0];return r&&bo(r,e.escapedName)}function yf(t,r,n){return mf(r,(r=>!!(16&e.getDeclarationModifierFlagsFromSymbol(r,n))&&!ps(t,gf(r))))?void 0:t}function vf(e,t,r,n){if(void 0===n&&(n=3),r>=n)for(var i=bf(e),a=0,o=0,s=0;s<r;s++){var c=t[s];if(bf(c)===i){if(c.id>=o&&++a>=n)return!0;o=c.id}}return!1}function bf(t){if(524288&t.flags&&!Zm(t)){if(e.getObjectFlags(t)&&t.node)return t.node;if(t.symbol&&!(16&e.getObjectFlags(t)&&32&t.symbol.flags))return t.symbol;if(Kf(t))return t.target}if(262144&t.flags)return t.symbol;if(8388608&t.flags){do{t=t.objectType}while(8388608&t.flags);return t}return 16777216&t.flags?t.root:t}function Ef(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(zD(t)!==zD(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return aE(t)!==aE(r)?0:n(cs(t),cs(r))}function xf(t,r,n,i,a,o){if(t===r)return-1;if(!((e,t,r)=>{var n=Rb(e),i=Rb(t),a=Lb(e),o=Lb(t),s=Bb(e),c=Bb(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=Kp(t.typeParameters,r.typeParameters),c=0;c<r.typeParameters.length;c++)if(!((m=t.typeParameters[c])===(_=r.typeParameters[c])||o(u_(td(m),s)||He,td(_)||He)&&o(u_(qc(m),s)||He,qc(_)||He)))return 0;t=r_(t,s,!0)}var l=-1;if(!i){var d=Ol(t);if(d){var u=Ol(r);if(u){if(!(f=o(d,u)))return 0;l&=f}}}var p=Rb(r);for(c=0;c<p;c++){var _,f,m=Ib(t,c);if(!(f=o(_=Ib(r,c),m)))return 0;l&=f}if(!a){var g=Ml(t),h=Ml(r);l&=g||h?((e,t,r)=>e&&t&&mu(e,t)?e.type===t.type?-1:e.type&&t.type?r(e.type,t.type):0:0)(g,h,o):o(Ll(t),Ll(r))}return l}function Df(t){return e.reduceLeft(t,((e,t)=>e|(1048576&t.flags?Df(t.types):t.flags)),0)}function Sf(t){if(1===t.length)return t[0];var r=$?e.sameMap(t,(e=>Wg(e,(e=>!(98304&e.flags))))):t,n=(e=>{for(var t,r=0,n=e;r<n.length;r++){var i=n[r];if(!(131072&i.flags)){var a=jf(i);if(null!=t||(t=a),a===i||a!==t)return!1}}return!0})(r)?fu(r):e.reduceLeft(r,((e,t)=>S_(e,t)?t:e));return r===t?n:Zf(n,98304&Df(t))}function Tf(t){return!!(4&e.getObjectFlags(t))&&(t.target===$t||t.target===qt)}function Cf(t){return!!(4&e.getObjectFlags(t))&&t.target===qt}function Af(e){return Tf(e)||Kf(e)}function kf(e){return Tf(e)&&!Cf(e)||Kf(e)&&!e.target.readonly}function Nf(e){return Tf(e)?ld(e)[0]:void 0}function wf(e){return Tf(e)||!(98304&e.flags)&&T_(e,nr)}function Ff(t){if(4&e.getObjectFlags(t)&&3&e.getObjectFlags(t.target)){if(33554432&e.getObjectFlags(t))return 67108864&e.getObjectFlags(t)?t.cachedEquivalentBaseType:void 0;t.objectFlags|=33554432;var r=t.target;if(1&e.getObjectFlags(r)){var n=vs(r);if(n&&79!==n.expression.kind&&206!==n.expression.kind)return}var i=Ss(r);if(1===i.length&&!ec(t.symbol).size){var a=e.length(r.typeParameters)?u_(i[0],Kp(r.typeParameters,ld(t).slice(0,r.typeParameters.length))):i[0];return e.length(ld(t))>e.length(r.typeParameters)&&(a=rc(a,e.last(ld(t)))),t.objectFlags|=67108864,t.cachedEquivalentBaseType=a}}}function Pf(e){return $?e===dt:e===Je}function If(e){var t=Nf(e);return!!t&&Pf(t)}function Of(e){return Kf(e)||!!sl(e,"0")}function Mf(e){return wf(e)||Of(e)}function Rf(e){return!(240512&e.flags)}function Lf(e){return!!(109440&e.flags)}function Bf(t){return 2097152&t.flags?e.some(t.types,Lf):!!(109440&t.flags)}function Uf(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,Lf):Lf(t))}function jf(e){return 1024&e.flags?Ps(e):402653312&e.flags?Ye:256&e.flags?Qe:2048&e.flags?Ze:512&e.flags?at:1048576&e.flags?(e=>{var t,r="B".concat(su(e));return null!==(t=Un(r))&&void 0!==t?t:jn(r,Gg(e,jf))})(e):e}function Vf(e){return 1024&e.flags&&wp(e)?Ps(e):128&e.flags&&wp(e)?Ye:256&e.flags&&wp(e)?Qe:2048&e.flags&&wp(e)?Ze:512&e.flags&&wp(e)?at:1048576&e.flags?Gg(e,Vf):e}function zf(e){return 8192&e.flags?ot:1048576&e.flags?Gg(e,zf):e}function Hf(e,t){return NE(e,t)||(e=zf(Vf(e))),e}function Wf(e,t,r,n){return e&&Lf(e)&&(e=Hf(e,t?AD(r,t,n):void 0)),e}function Kf(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function Jf(e){return Kf(e)&&!!(8&e.target.combinedFlags)}function Gf(e){return Jf(e)&&1===e.target.elementFlags.length}function $f(e){return qf(e,e.target.fixedLength)}function qf(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=dd(e)-r;if(t<i){for(var a=ld(e),o=[],s=t;s<i;s++){var c=a[s];o.push(8&e.target.elementFlags[s]?tp(c,Qe):c)}return n?xu(o):fu(o)}}function Xf(e){return"0"===e.value.base10Value}function Yf(e){return Wg(e,(e=>!!(4194304&Eg(e))))}function Qf(e){return 4&e.flags?nn:8&e.flags?an:64&e.flags?on:e===tt||e===et||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&Xf(e)?e:ct}function Zf(e,t){var r=t&~e.flags&98304;return 0===r?e:fu(32768===r?[e,Ke]:65536===r?[e,qe]:[e,Ke,qe])}function em(t,r){return void 0===r&&(r=!1),e.Debug.assert($),32768&t.flags?t:fu([t,r?$e:Ke])}function tm(e){return $?Dg(e,2097152):e}function rm(e){return $?fu([e,Ge]):e}function nm(e){return $?Kg(e,Ge):e}function im(t,r,n){return n?e.isOutermostOptionalChain(r)?em(t):rm(t):t}function am(t,r){return e.isExpressionOfOptionalChainRoot(r)?tm(t):e.isOptionalChain(r)?nm(t):t}function om(e,t){return ne&&t?Kg(e,$e):e}function sm(e){return ne&&(e===$e||1048576&e.flags&&cu(e.types,$e))}function cm(e){return ne?Kg(e,$e):xg(e,524288)}function lm(t){var r=e.getObjectFlags(t);return 2097152&t.flags?e.every(t.types,lm):!(!t.symbol||0==(7040&t.symbol.flags)||32&t.symbol.flags||IS(t))||!!(4194304&r)||!!(1024&r&&lm(t.source))}function dm(t,r){var n=Zn(t.flags,t.escapedName,8&e.getCheckFlags(t));n.declarations=t.declarations,n.parent=t.parent,n.type=r,n.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration);var i=ci(t).nameType;return i&&(n.nameType=i),n}function um(t){if(!(Qm(t)&&8192&e.getObjectFlags(t)))return t;var r=t.regularType;if(r)return r;var n=t,i=((t,r)=>{for(var n=e.createSymbolTable(),i=0,a=Oc(t);i<a.length;i++){var o=a[i],s=cs(o),c=r(s);n.set(o.escapedName,c===s?o:dm(o,c))}return n})(t,um),a=Ra(n.symbol,i,n.callSignatures,n.constructSignatures,n.indexInfos);return a.flags=n.flags,a.objectFlags|=-8193&n.objectFlags,t.regularType=a,a}function pm(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:void 0}}function _m(e){if(!e.siblings){for(var t=[],r=0,n=_m(e.parent);r<n.length;r++){var i=n[r];if(Qm(i)){var a=Mc(i,e.propertyName);a&&Vg(cs(a),(e=>{t.push(e)}))}}e.siblings=t}return e.siblings}function fm(t){if(!t.resolvedProperties){for(var r=new e.Map,n=0,i=_m(t);n<i.length;n++){var a=i[n];if(Qm(a)&&!(2097152&e.getObjectFlags(a)))for(var o=0,s=Lc(a);o<s.length;o++){var c=s[o];r.set(c.escapedName,c)}}t.resolvedProperties=e.arrayFrom(r.values())}return t.resolvedProperties}function mm(e,t){if(!(4&e.flags))return e;var r=cs(e),n=ym(r,t&&pm(t,e.escapedName,void 0));return n===r?e:dm(e,n)}function gm(e){var t=we.get(e.escapedName);if(t)return t;var r=dm(e,$e);return r.flags|=16777216,we.set(e.escapedName,r),r}function hm(e){return ym(e,void 0)}function ym(t,r){if(196608&e.getObjectFlags(t)){if(void 0===r&&t.widened)return t.widened;var n=void 0;if(98305&t.flags)n=Re;else if(Qm(t))n=((t,r)=>{for(var n=e.createSymbolTable(),i=0,a=Oc(t);i<a.length;i++){var o=a[i];n.set(o.escapedName,mm(o,r))}if(r)for(var s=0,c=fm(r);s<c.length;s++)o=c[s],n.has(o.escapedName)||n.set(o.escapedName,gm(o));var l=Ra(t.symbol,n,e.emptyArray,e.emptyArray,e.sameMap(fl(t),(e=>ql(e.keyType,hm(e.type),e.isReadonly))));return l.objectFlags|=266240&e.getObjectFlags(t),l})(t,r);else if(1048576&t.flags){var i=r||pm(void 0,void 0,t.types),a=e.sameMap(t.types,(e=>98304&e.flags?e:ym(e,i)));n=fu(a,e.some(a,z_)?2:1)}else 2097152&t.flags?n=xu(e.sameMap(t.types,hm)):Af(t)&&(n=od(t.target,e.sameMap(ld(t),hm)));return n&&void 0===r&&(t.widened=n),n||t}return t}function vm(t){var r=!1;if(65536&e.getObjectFlags(t)){if(1048576&t.flags)if(e.some(t.types,z_))r=!0;else for(var n=0,i=t.types;n<i.length;n++)vm(d=i[n])&&(r=!0);if(Af(t))for(var a=0,o=ld(t);a<o.length;a++)vm(d=o[a])&&(r=!0);if(Qm(t))for(var s=0,c=Oc(t);s<c.length;s++){var l=c[s],d=cs(l);65536&e.getObjectFlags(d)&&(vm(d)||Jn(l.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Qa(l),eo(hm(d))),r=!0)}}return r}function bm(t,r,n){var i=eo(hm(r));if(!e.isInJSFile(t)||e.isCheckJsEnabledForFile(e.getSourceFileOfNode(t),H)){var a;switch(t.kind){case 221:case 167:case 166:a=Q?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 164:var o=t;if(e.isIdentifier(o.name)&&(e.isCallSignatureDeclaration(o.parent)||e.isMethodSignature(o.parent)||e.isFunctionTypeNode(o.parent))&&o.parent.parameters.indexOf(o)>-1&&(mi(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),c=e.declarationNameToString(o.name)+(o.dotDotDotToken?"[]":"");return void $n(Q,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,c)}a=t.dotDotDotToken?Q?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:Q?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 203:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Q)return;break;case 317:return void Jn(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 256:case 169:case 168:case 172:case 173:case 213:case 214:if(Q&&!t.name)return void Jn(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=Q?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 195:return void(Q&&Jn(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=Q?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}$n(Q,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function Em(t,r,n){_((()=>{!(Q&&65536&e.getObjectFlags(r))||n&&ay(t)||vm(r)||bm(t,r,n)}))}function xm(e,t,r){var n=Rb(e),i=Rb(t),a=Ub(e),o=Ub(t),s=o?i-1:i,c=a?s:Math.min(n,s),l=Ol(e);if(l){var d=Ol(t);d&&r(l,d)}for(var u=0;u<c;u++)r(Ib(e,u),Ib(t,u));o&&r(Mb(e,c),o)}function Dm(e,t,r){var n=Ml(e),i=Ml(t);n&&i&&mu(n,i)&&n.type&&i.type?r(n.type,i.type):r(Ll(e),Ll(t))}function Sm(e,t,r,n){return Tm(e.map(km),t,r,n||x_)}function Tm(t,r,n,i){var a={inferences:t,signature:r,flags:n,compareTypes:i,mapper:St,nonFixingMapper:St};return a.mapper=(t=>qp(e.map(t.inferences,(e=>e.typeParameter)),e.map(t.inferences,((e,r)=>()=>(e.isFixed||((e=>{if(e.intraExpressionInferenceSites){for(var t=0,r=e.intraExpressionInferenceSites;t<r.length;t++){var n=r[t],i=n.node,a=n.type,o=169===i.kind?Jh(i,2):ey(i,2);o&&qm(e.inferences,a,o)}e.intraExpressionInferenceSites=void 0}})(t),Cm(t.inferences),e.isFixed=!0),eg(t,r))))))(a),a.nonFixingMapper=(t=>qp(e.map(t.inferences,(e=>e.typeParameter)),e.map(t.inferences,((e,r)=>()=>eg(t,r)))))(a),a}function Cm(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];n.isFixed||(n.inferredType=void 0)}}function Am(e,t,r){var n;(null!==(n=e.intraExpressionInferenceSites)&&void 0!==n?n:e.intraExpressionInferenceSites=[]).push({node:t,type:r})}function km(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Nm(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function wm(e){return e&&e.mapper}function Fm(t){var r=e.getObjectFlags(t);if(524288&r)return!!(1048576&r);var n=!!(465829888&t.flags||524288&t.flags&&!Pm(t)&&(4&r&&(t.node||e.forEach(ld(t),Fm))||16&r&&t.symbol&&14384&t.symbol.flags&&t.symbol.declarations||12583968&r)||3145728&t.flags&&!(1024&t.flags)&&!Pm(t)&&e.some(t.types,Fm));return 3899393&t.flags&&(t.objectFlags|=524288|(n?1048576:0)),n}function Pm(t){if(t.aliasSymbol&&!t.aliasTypeArguments){var r=e.getDeclarationOfKind(t.aliasSymbol,259);return!(!r||!e.findAncestor(r.parent,(e=>305===e.kind||261!==e.kind&&"quit")))}return!1}function Im(t,r){return!!(t===r||3145728&t.flags&&e.some(t.types,(e=>Im(e,r)))||16777216&t.flags&&(pp(t)===r||_p(t)===r))}function Om(t,r,n){if(!Xr){var i=t.id+","+r.id+","+n.id;if(qr.has(i))return qr.get(i);Xr=!0;var a=((t,r,n)=>{if(ml(t,Ye)||0!==Lc(t).length&&Mm(t)){if(Tf(t))return Gd(Rm(ld(t)[0],r,n),Cf(t));if(Kf(t))return Zd(e.map(ld(t),(e=>Rm(e,r,n))),4&Nc(r)?e.sameMap(t.target.elementFlags,(e=>2&e?1:e)):t.target.elementFlags,t.target.readonly,t.target.labeledElementDeclarations);var i=wa(1040,void 0);return i.source=t,i.mappedType=r,i.constraintType=n,i}})(t,r,n);return Xr=!1,qr.set(i,a),a}}function Mm(t){return!(262144&e.getObjectFlags(t))||Qm(t)&&e.some(Lc(t),(e=>Mm(cs(e))))||Kf(t)&&e.some(ld(t),Mm)}function Rm(e,t,r){var n=tp(r.type,xc(t)),i=Tc(t),a=km(n);return qm([a],e,i),Um(a)||He}function Lm(t,r,n,i){var a,o,s,c,l,d,u;return h(this,(p=>{switch(p.label){case 0:a=Lc(r),o=0,s=a,p.label=1;case 1:return o<s.length?Ws(c=s[o])||!n&&(16777216&c.flags||48&e.getCheckFlags(c))?[3,5]:(l=sl(t,c.escapedName))?[3,3]:[4,c]:[3,6];case 2:return p.sent(),[3,5];case 3:return i&&109440&(d=cs(c)).flags?1&(u=cs(l)).flags||Np(u)===Np(d)?[3,5]:[4,c]:[3,5];case 4:p.sent(),p.label=5;case 5:return o++,[3,1];case 6:return[2]}}))}function Bm(e,t,r,n){var i=Lm(e,t,r,n).next();if(!i.done)return i.value}function Um(e){return e.candidates?fu(e.candidates,2):e.contraCandidates?xu(e.contraCandidates):void 0}function jm(e){return!!li(e).skipDirectInference}function Vm(t){return!(!t.symbol||!e.some(t.symbol.declarations,jm))}function zm(e,t){if(""===e)return!1;var r=+e;return isFinite(r)&&(!t||""+r===e)}function Hm(t,r){if(""===t)return!1;var n=e.createScanner(99,!1),i=!0;n.setOnError((()=>i=!1)),n.setText(t+"n");var a=n.scan(),o=40===a;o&&(a=n.scan());var s=n.getTokenFlags();return i&&9===a&&n.getTextPos()===t.length+1&&!(512&s)&&(!r||t===e.pseudoBigIntToString({negative:o,base10Value:e.parsePseudoBigInt(n.getTokenValue())}))}function Wm(t,r){if(7&r.flags)return!0;if(134217728&r.flags)return T_(t,r);if(268435456&r.flags){for(var n=[];268435456&r.flags;)n.unshift(r.symbol),r=r.type;return e.reduceLeft(n,((e,t)=>Bu(t,e)),t)===t&&Wm(t,r)}return!1}function Km(t,r){return 128&t.flags?$m([t.value],e.emptyArray,r):134217728&t.flags?e.arraysEqual(t.texts,r.texts)?e.map(t.types,Gm):$m(t.texts,t.types,r):void 0}function Jm(t,r){var n=Km(t,r);return!!n&&e.every(n,((e,t)=>((e,t)=>{if(e===t||5&t.flags)return!0;if(128&e.flags){var r=e.value;return!!(8&t.flags&&zm(r,!1)||64&t.flags&&Hm(r,!1)||98816&t.flags&&r===t.intrinsicName||268435456&t.flags&&Wm(Fp(r),t))}if(134217728&e.flags){var n=e.texts;return 2===n.length&&""===n[0]&&""===n[1]&&T_(e.types[0],t)}return T_(e,t)})(e,r.types[t])))}function Gm(e){return 402653317&e.flags?e:Ru(["",""],[e])}function $m(e,t,r){var n=e.length-1,i=e[0],a=e[n],o=r.texts,s=o.length-1,c=o[0],l=o[s];if(!(0===n&&i.length<c.length+l.length)&&i.startsWith(c)&&a.endsWith(l)){for(var d=a.slice(0,a.length-l.length),u=[],p=0,_=c.length,m=1;m<s;m++){var g=o[m];if(g.length>0){for(var h=p,y=_;!((y=v(h).indexOf(g,y))>=0);){if(++h===e.length)return;y=0}b(h,y),_+=g.length}else if(_<v(p).length)b(p,_+1);else{if(!(p<n))return;b(p+1,0)}}return b(n,v(n).length),u}function v(t){return t<n?e[t]:d}function b(r,n){var i=r===p?Fp(v(r).slice(_,n)):Ru(f(f([e[p].slice(_)],e.slice(p+1,r),!0),[v(r).slice(0,n)],!1),t.slice(p,r));u.push(i),p=r,_=n}}function qm(t,r,n,i,a){void 0===i&&(i=0),void 0===a&&(a=!1);var o,s,c,l,d=!1,u=2048,p=!0,_=0;function f(r,s){if(Fm(s)){if(r===Be){var c=o;return o=r,f(s,s),void(o=c)}if(r.aliasSymbol&&r.aliasSymbol===s.aliasSymbol)r.aliasTypeArguments&&y(r.aliasTypeArguments,s.aliasTypeArguments,sf(r.aliasSymbol));else if(r===s&&3145728&r.flags)for(var l=0,_=r.types;l<_.length;l++){var b=_[l];f(b,b)}else{if(1048576&s.flags){var D=h(1048576&r.flags?r.types:[r],s.types,Xm),C=h(D[0],D[1],Ym),A=C[0];if(0===(N=C[1]).length)return;if(s=fu(N),0===A.length)return void m(r,s,1);r=fu(A)}else if(2097152&s.flags&&e.some(s.types,(e=>!!E(e)||Pc(e)&&!!E(a_(e)||ct)))){if(!(1048576&r.flags)){var k=h(2097152&r.flags?r.types:[r],s.types,b_),N=(A=k[0],k[1]);if(0===A.length||0===N.length)return;r=xu(A),s=xu(N)}}else 41943040&s.flags&&(s=op(s));if(8650752&s.flags){if(Vm(r))return;var w=E(s);if(w){if(262144&e.getObjectFlags(r)||r===Ve)return;if(!w.isFixed){if((void 0===w.priority||i<w.priority)&&(w.candidates=void 0,w.contraCandidates=void 0,w.topLevel=!0,w.priority=i),i===w.priority){var F=o||r;a&&!d?e.contains(w.contraCandidates,F)||(w.contraCandidates=e.append(w.contraCandidates,F),Cm(t)):e.contains(w.candidates,F)||(w.candidates=e.append(w.candidates,F),Cm(t))}!(128&i)&&262144&s.flags&&w.topLevel&&!Im(n,s)&&(w.topLevel=!1,Cm(t))}return void(u=Math.min(u,i))}var P=Yu(s,!1);if(P!==s)f(r,P);else if(8388608&s.flags){var I=Yu(s.indexType,!1);if(465829888&I.flags){var O=Qu(Yu(s.objectType,!1),I,!1);O&&O!==s&&f(r,O)}}}if(!(4&e.getObjectFlags(r)&&4&e.getObjectFlags(s)&&(r.target===s.target||Tf(r)&&Tf(s)))||r.node&&s.node)if(4194304&r.flags&&4194304&s.flags)v(r.type,s.type);else if((Uf(r)||4&r.flags)&&4194304&s.flags)!((e,t,r)=>{var n=i;i|=256,v(e,t),i=n})((t=>{var r=e.createSymbolTable();Vg(t,(t=>{if(128&t.flags){var n=e.escapeLeadingUnderscores(t.value),i=Zn(4,n);i.type=Re,t.symbol&&(i.declarations=t.symbol.declarations,i.valueDeclaration=t.symbol.valueDeclaration),r.set(n,i)}}));var n=4&t.flags?[ql(Ye,Tt,!1)]:e.emptyArray;return Ra(void 0,r,e.emptyArray,e.emptyArray,n)})(r),s.type);else if(8388608&r.flags&&8388608&s.flags)f(r.objectType,s.objectType),f(r.indexType,s.indexType);else if(268435456&r.flags&&268435456&s.flags)r.symbol===s.symbol&&f(r.type,s.type);else if(33554432&r.flags)f(r.baseType,s),m(r.substitute,s,4);else if(16777216&s.flags)g(r,s,S);else if(3145728&s.flags)x(r,s.types,s.flags);else if(1048576&r.flags)for(var M=0,R=r.types;M<R.length;M++)f(R[M],s);else if(134217728&s.flags)!((t,r)=>{var n=Km(t,r),i=r.types;if(n||e.every(r.texts,(e=>0===e.length)))for(var a=t=>{var r=n?n[t]:ct,a=i[t];if(128&r.flags&&8650752&a.flags){var o=E(a),s=o?Wc(o.typeParameter):void 0;if(s&&!Eo(s)){var c=1048576&s.flags?s.types:[s],l=e.reduceLeft(c,((e,t)=>e|t.flags),0);if(!(4&l)){var d=r.value;296&l&&!zm(d,!0)&&(l&=-297),2112&l&&!Hm(d,!0)&&(l&=-2113);var u=e.reduceLeft(c,((t,n)=>{return n.flags&l?4&t.flags?t:4&n.flags?r:134217728&t.flags?t:134217728&n.flags&&Jm(r,n)?r:268435456&t.flags?t:268435456&n.flags&&d===Uu(n.symbol,d)?r:128&t.flags?t:128&n.flags&&n.value===d?n:8&t.flags?t:8&n.flags?Pp(+d):32&t.flags?t:32&n.flags?Pp(+d):256&t.flags?t:256&n.flags&&n.value===+d?n:64&t.flags?t:64&n.flags?Ip({negative:a=(i=d).startsWith("-"),base10Value:e.parsePseudoBigInt("".concat(a?i.slice(1):i,"n"))}):2048&t.flags?t:2048&n.flags&&e.pseudoBigIntToString(n.value)===d?n:16&t.flags?t:16&n.flags?"true"===d?rt:"false"===d?et:at:512&t.flags?t:512&n.flags&&n.intrinsicName===d?n:32768&t.flags?t:32768&n.flags&&n.intrinsicName===d?n:65536&t.flags?t:65536&n.flags&&n.intrinsicName===d?n:t:t;var i,a}),ct);if(!(131072&u.flags))return f(u,a),"continue"}}}f(r,a)},o=0;o<i.length;o++)a(o)})(r,s);else{if(r=rl(r),!(512&i&&467927040&r.flags)){var L=Yc(r);if(L!==r&&p&&!(2621440&L.flags))return p=!1,f(L,s);r=L}2621440&r.flags&&g(r,s,T)}else y(ld(r),ld(s),of(r.target))}}}function m(e,t,r){var n=i;i|=r,f(e,t),i=n}function g(t,r,n){var i=t.id+","+r.id,a=s&&s.get(i);if(void 0===a){(s||(s=new e.Map)).set(i,-1);var o=u;u=2048;var d=_,p=bf(t),f=bf(r);e.contains(c,p)&&(_|=1),e.contains(l,f)&&(_|=2),3!==_?((c||(c=[])).push(p),(l||(l=[])).push(f),n(t,r),l.pop(),c.pop()):u=-1,_=d,s.set(i,u),u=Math.min(u,o)}else u=Math.min(u,a)}function h(t,r,n){for(var i,a,o=0,s=r;o<s.length;o++)for(var c=s[o],l=0,d=t;l<d.length;l++){var u=d[l];n(u,c)&&(f(u,c),i=e.appendIfUnique(i,u),a=e.appendIfUnique(a,c))}return[i?e.filter(t,(t=>!e.contains(i,t))):t,a?e.filter(r,(t=>!e.contains(a,t))):r]}function y(e,t,r){for(var n=e.length<t.length?e.length:t.length,i=0;i<n;i++)i<r.length&&2==(7&r[i])?v(e[i],t[i]):f(e[i],t[i])}function v(e,t){a=!a,f(e,t),a=!a}function b(e,t){q||1024&i?v(e,t):f(e,t)}function E(e){if(8650752&e.flags)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(e===i.typeParameter)return i}}function x(t,r,n){var a=0;if(1048576&n){for(var o=void 0,s=1048576&t.flags?t.types:[t],c=new Array(s.length),l=!1,d=0,p=r;d<p.length;d++)if(E(S=p[d]))o=S,a++;else for(var _=0;_<s.length;_++){var g=u;u=2048,f(s[_],S),u===i&&(c[_]=!0),l=l||-1===u,u=Math.min(u,g)}if(0===a){var h=(t=>{for(var r,n=0,i=t;n<i.length;n++){var a=i[n],o=2097152&a.flags&&e.find(a.types,(e=>!!E(e)));if(!o||r&&o!==r)return;r=o}return r})(r);return void(h&&m(t,h,1))}if(1===a&&!l){var y=e.flatMap(s,((e,t)=>c[t]?void 0:e));if(y.length)return void f(fu(y),o)}}else for(var v=0,b=r;v<b.length;v++)E(S=b[v])?a++:f(t,S);if(2097152&n?1===a:a>0)for(var x=0,D=r;x<D.length;x++){var S;E(S=D[x])&&m(t,S,1)}}function D(t,r,n){if(1048576&n.flags){for(var i=!1,a=0,o=n.types;a<o.length;a++)i=D(t,r,o[a])||i;return i}if(4194304&n.flags){var s=E(n.type);if(s&&!s.isFixed&&!Vm(t)){var c=Om(t,r,n);c&&m(c,s.typeParameter,262144&e.getObjectFlags(t)?16:8)}return!0}if(262144&n.flags){m(Ou(t),n,32);var l=Bc(n);if(l&&D(t,r,l))return!0;var d=e.map(Lc(t),cs),u=e.map(fl(t),(e=>e!==Vr?e.type:ct));return f(fu(e.concatenate(d,u)),Tc(r)),!0}return!1}function S(e,t){16777216&e.flags?(f(e.checkType,t.checkType),f(e.extendsType,t.extendsType),f(pp(e),pp(t)),f(_p(e),_p(t))):((e,t,r,n)=>{var a=i;i|=n,x(e,t,r),i=a})(e,[pp(t),_p(t)],t.flags,a?64:0)}function T(t,r){if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&(t.target===r.target||Tf(t)&&Tf(r)))y(ld(t),ld(r),of(t.target));else{if(Pc(t)&&Pc(r)){f(Dc(t),Dc(r)),f(Tc(t),Tc(r));var n=Sc(t),i=Sc(r);n&&i&&f(n,i)}var a,o;if(32&e.getObjectFlags(r)&&!r.declaration.nameType&&D(t,r,Dc(r)))return;if(!((e,t)=>Kf(e)&&Kf(t)?((e,t)=>!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength<e.target.fixedLength))(e,t):!!Bm(e,t,!1,!0)&&!!Bm(t,e,!1,!1))(t,r)){if(Af(t)){if(Kf(r)){var s=dd(t),c=dd(r),l=ld(r),d=r.target.elementFlags;if(Kf(t)&&(o=r,dd(a=t)===dd(o)&&e.every(a.target.elementFlags,((e,t)=>(12&e)==(12&o.target.elementFlags[t]))))){for(var u=0;u<c;u++)f(ld(t)[u],l[u]);return}var p=Kf(t)?Math.min(t.target.fixedLength,r.target.fixedLength):0,_=Math.min(Kf(t)?ou(t.target,3):0,r.target.hasRestElement?ou(r.target,3):0);for(u=0;u<p;u++)f(ld(t)[u],l[u]);if(!Kf(t)||s-p-_==1&&4&t.target.elementFlags[p]){var g=ld(t)[p];for(u=p;u<c-_;u++)f(8&d[u]?Gd(g):g,l[u])}else{var h=c-p-_;if(2===h&&d[p]&d[p+1]&8&&Kf(t)){var v=E(l[p]);v&&void 0!==v.impliedArity&&(f(nu(t,p,_+s-v.impliedArity),l[p]),f(nu(t,p+v.impliedArity,_),l[p+1]))}else if(1===h&&8&d[p]){var b=2&r.target.elementFlags[c-1];m(Kf(t)?nu(t,p,_):Gd(ld(t)[0]),l[p],b?2:0)}else 1===h&&4&d[p]&&(g=Kf(t)?qf(t,p,_):ld(t)[0])&&f(g,l[p])}for(u=0;u<_;u++)f(ld(t)[s-u-1],l[c-u-1]);return}if(Tf(r))return void k(t,r)}!((t,r)=>{for(var n=0,i=Oc(r);n<i.length;n++){var a=i[n],o=sl(t,a.escapedName);o&&!e.some(o.declarations,jm)&&f(cs(o),cs(a))}})(t,r),C(t,r,0),C(t,r,1),k(t,r)}}}function C(e,t,r){for(var n=ll(e,r),i=ll(t,r),a=n.length,o=i.length,s=a<o?a:o,c=0;c<s;c++)A(Kl(n[a-s+c]),Wl(i[o-s+c]))}function A(e,t){var r=d,n=t.declaration?t.declaration.kind:0;d=d||169===n||168===n||171===n,xm(e,t,b),d=r,Dm(e,t,f)}function k(t,r){var n=e.getObjectFlags(t)&e.getObjectFlags(r)&32?8:0,i=fl(r);if(lm(t))for(var a=0,o=i;a<o.length;a++){for(var s=o[a],c=[],l=0,d=Lc(t);l<d.length;l++){var u=d[l];if(pl(wu(u,8576),s.keyType)){var p=cs(u);c.push(16777216&u.flags?cm(p):p)}}for(var _=0,f=fl(t);_<f.length;_++){var g=f[_];pl(g.keyType,s.keyType)&&c.push(g.type)}c.length&&m(fu(c),s.type,n)}for(var h=0,y=i;h<y.length;h++){var v=yl(t,(s=y[h]).keyType);v&&m(v.type,s.type,n)}}f(r,n)}function Xm(e,t){return ne&&t===$e?e===t:b_(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function Ym(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function Qm(t){return!!(128&e.getObjectFlags(t))}function Zm(t){return!!(16512&e.getObjectFlags(t))}function eg(t,r){var n,i,a=t.inferences[r];if(!a.inferredType){var o=void 0,s=t.signature;if(s){var c=a.candidates?((t,r)=>{var n,i=(t=>{if(t.length>1){var r=e.filter(t,Zm);if(r.length){var n=fu(r,2);return e.concatenate(e.filter(t,(e=>!Zm(e))),[n])}}return t})(t.candidates),a=!!(n=Uc(t.typeParameter))&&dE(16777216&n.flags?Vc(n):n,406978556),o=!a&&t.topLevel&&(t.isFixed||!Im(Ll(r),t.typeParameter)),s=a?e.sameMap(i,Np):o?e.sameMap(i,Vf):i;return hm(416&t.priority?fu(s,2):Sf(s))})(a,s):void 0;if(a.contraCandidates)o=!c||131072&c.flags||!e.some(a.contraCandidates,(e=>S_(c,e)))?(t=>{return 416&t.priority?xu(t.contraCandidates):(r=t.contraCandidates,e.reduceLeft(r,((e,t)=>S_(t,e)?t:e)));var r})(a):c;else if(c)o=c;else if(1&t.flags)o=lt;else{var l=qc(a.typeParameter);l&&(o=u_(l,(n=((t,r)=>{var n=t.inferences.slice(r);return Kp(e.map(n,(e=>e.typeParameter)),e.map(n,(()=>He)))})(t,r),i=t.nonFixingMapper,n?Xp(5,n,i):i)))}}else o=Um(a);a.inferredType=o||tg(!!(2&t.flags));var d=Uc(a.typeParameter);if(d){var u=u_(d,t.nonFixingMapper);o&&t.compareTypes(o,rc(u,o))||(a.inferredType=o=u)}}return a.inferredType}function tg(e){return e?Re:He}function rg(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(eg(e,r));return t}function ng(t){switch(t.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return H.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return H.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return H.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(e.isCallExpression(t.parent))return e.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return 297===t.parent.kind?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function ig(t){var r=li(t);return r.resolvedSymbol||(r.resolvedSymbol=!e.nodeIsMissing(t)&&mi(t,t.escapedText,1160127,ng(t),t,!e.isWriteOnlyAccess(t),!1)||Pe),r.resolvedSymbol}function ag(t){return!!e.findAncestor(t,(e=>181===e.kind||79!==e.kind&&161!==e.kind&&"quit"))}function og(t,r,n,i){switch(t.kind){case 79:if(!e.isThisInTypeQuery(t)){var a=ig(t);return a!==Pe?"".concat(i?I(i):"-1","|").concat(su(r),"|").concat(su(n),"|").concat(O(a)):void 0}case 108:return"0|".concat(i?I(i):"-1","|").concat(su(r),"|").concat(su(n));case 230:case 212:return og(t.expression,r,n,i);case 161:var o=og(t.left,r,n,i);return o&&o+"."+t.right.escapedText;case 206:case 207:var s=cg(t);if(void 0!==s){var c=og(t.expression,r,n,i);return c&&c+"."+s}break;case 201:case 202:case 256:case 213:case 214:case 169:return"".concat(I(t),"#").concat(su(r))}}function sg(t,r){switch(r.kind){case 212:case 230:return sg(t,r.expression);case 221:return e.isAssignmentExpression(r)&&sg(t,r.left)||e.isBinaryExpression(r)&&27===r.operatorToken.kind&&sg(t,r.right)}switch(t.kind){case 231:return 231===r.kind&&t.keywordToken===r.keywordToken&&t.name.escapedText===r.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(t)?108===r.kind:79===r.kind&&ig(t)===ig(r)||(254===r.kind||203===r.kind)&&Sa(ig(t))===ya(r);case 108:return 108===r.kind;case 106:return 106===r.kind;case 230:case 212:return sg(t.expression,r);case 206:case 207:var n=cg(t),i=e.isAccessExpression(r)?cg(r):void 0;return void 0!==n&&void 0!==i&&i===n&&sg(t.expression,r.expression);case 161:return e.isAccessExpression(r)&&t.right.escapedText===cg(r)&&sg(t.left,r.expression);case 221:return e.isBinaryExpression(t)&&27===t.operatorToken.kind&&sg(t.right,r)}return!1}function cg(t){if(e.isPropertyAccessExpression(t))return t.name.escapedText;if(e.isElementAccessExpression(t))return(t=>{if(e.isStringOrNumericLiteralLike(t.argumentExpression))return e.escapeLeadingUnderscores(t.argumentExpression.text);if(e.isEntityNameExpression(t.argumentExpression)){var r=ea(t.argumentExpression,111551,!0);if(!r||!yh(r))return;var n=r.valueDeclaration;if(void 0===n)return;var i=Yo(n);if(i){var a=lg(i);if(void 0!==a)return a}if(e.hasOnlyExpressionInitializer(n)){var o=e.getEffectiveInitializer(n);return o&&lg(jE(o))}}})(t);if(e.isBindingElement(t)){var r=No(t);return r?e.escapeLeadingUnderscores(r):void 0}return e.isParameter(t)?""+t.parent.parameters.indexOf(t):void 0}function lg(t){return 8192&t.flags?t.escapedName:384&t.flags?e.escapeLeadingUnderscores(""+t.value):void 0}function dg(t,r){for(;e.isAccessExpression(t);)if(sg(t=t.expression,r))return!0;return!1}function ug(t,r){for(;e.isOptionalChain(t);)if(sg(t=t.expression,r))return!0;return!1}function pg(t,r){if(t&&1048576&t.flags){var n=el(t,r);if(n&&2&e.getCheckFlags(n))return void 0===n.isDiscriminantProperty&&(n.isDiscriminantProperty=192==(192&n.checkFlags)&&!Gu(cs(n))),!!n.isDiscriminantProperty}return!1}function _g(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(pg(t,a.escapedName)){if(r){r.push(a);continue}r=[a]}}return r}function fg(t){var r=t.types;if(!(r.length<10||32768&e.getObjectFlags(t)||e.countWhere(r,(e=>!!(59506688&e.flags)))<10)){if(void 0===t.keyPropertyName){var n=e.forEach(r,(t=>59506688&t.flags?e.forEach(Lc(t),(e=>Lf(cs(e))?e.escapedName:void 0)):void 0)),i=n&&((t,r)=>{for(var n=new e.Map,i=0,a=e=>{if(61603840&e.flags){var t=bo(e,r);if(t){if(!Uf(t))return{value:void 0};var a=!1;Vg(t,(t=>{var r=su(Np(t)),i=n.get(r);i?i!==He&&(n.set(r,He),a=!0):n.set(r,e)})),a||i++}}},o=0,s=t;o<s.length;o++){var c=a(s[o]);if("object"==typeof c)return c.value}return i>=10&&2*i>=t.length?n:void 0})(r,n);t.keyPropertyName=i?n:"",t.constituentMap=i}return t.keyPropertyName.length?t.keyPropertyName:void 0}}function mg(e,t){var r,n=null===(r=e.constituentMap)||void 0===r?void 0:r.get(su(Np(t)));return n!==He?n:void 0}function gg(e,t){var r=fg(e),n=r&&bo(t,r);return n&&mg(e,n)}function hg(e,t){return sg(e,t)||dg(e,t)}function yg(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++)if(hg(t,n[r]))return!0;return!(206!==e.expression.kind||!hg(t,e.expression.expression))}function vg(e){return(!e.id||e.id<0)&&(e.id=d,d++),e.id}function bg(e){var t=Ic(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&S_(e,Kt))}function Eg(t){467927040&t.flags&&(t=Wc(t)||He);var r=t.flags;if(268435460&r)return $?16317953:16776705;if(134217856&r){var n=128&r&&""===t.value;return $?n?12123649:7929345:n?12582401:16776705}if(40&r)return $?16317698:16776450;if(256&r){var i=0===t.value;return $?i?12123394:7929090:i?12582146:16776450}return 64&r?$?16317188:16775940:2048&r?(i=Xf(t),$?i?12122884:7928580:i?12581636:16775940):16&r?$?16316168:16774920:528&r?$?t===et||t===tt?12121864:7927560:t===et||t===tt?12580616:16774920:524288&r?16&e.getObjectFlags(t)&&z_(t)?$?83427327:83886079:bg(t)?$?7880640:16728e3:$?7888800:16736160:16384&r?9830144:32768&r?26607360:65536&r?42917664:12288&r?$?7925520:16772880:67108864&r?$?7888800:16736160:131072&r?0:1048576&r?e.reduceLeft(t.types,((e,t)=>e|Eg(t)),0):2097152&r?(e=>{for(var t=dE(e,131068),r=0,n=134217727,i=0,a=e.types;i<a.length;i++){var o=a[i];if(!(t&&524288&o.flags)){var s=Eg(o);r|=s,n&=s}}return 8256&r|134209471&n})(t):83886079}function xg(e,t){return Wg(e,(e=>0!=(Eg(e)&t)))}function Dg(e,t){var r=Sg(xg($&&2&e.flags?Nt:e,t));if($)switch(t){case 524288:return Gg(r,(e=>65536&Eg(e)?xu([e,131072&Eg(e)&&!dE(r,65536)?fu([Tt,qe]):Tt]):e));case 1048576:return Gg(r,(e=>131072&Eg(e)?xu([e,65536&Eg(e)&&!dE(r,32768)?fu([Tt,Ke]):Tt]):e));case 2097152:case 4194304:return Gg(r,(e=>262144&Eg(e)?(e=>(ir||(ir=Pd("NonNullable",524288,void 0)||Pe),ir!==Pe?pd(ir,[e]):xu([e,Tt])))(e):e))}return r}function Sg(e){return e===Nt?He:e}function Tg(e,t){return t?fu([Co(e),jE(t)]):e}function Cg(e,t){var r,n=Nu(t);if(!Js(n))return Ue;var i=Ys(n);return bo(e,i)||kg(null===(r=vl(e,i))||void 0===r?void 0:r.type)||Ue}function Ag(e,t){return Hg(e,Of)&&((e,t)=>bo(e,""+t)||(Hg(e,Kf)?Gg(e,(e=>$f(e)||Ke)):void 0))(e,t)||kg(aD(65,e,Ke,void 0))||Ue}function kg(e){return e&&H.noUncheckedIndexedAccess?fu([e,Ke]):e}function Ng(e){return Gd(aD(65,e,Ke,void 0)||Ue)}function wg(e){return 221===e.parent.kind&&e.parent.left===e||244===e.parent.kind&&e.parent.initializer===e}function Fg(e){return Cg(Pg(e.parent),e.name)}function Pg(e){var t=e.parent;switch(t.kind){case 243:return Ye;case 244:return iD(t)||Ue;case 221:return(e=>204===e.parent.kind&&wg(e.parent)||296===e.parent.kind&&wg(e.parent.parent)?Tg(Pg(e),e.right):jE(e.right))(t);case 215:return Ke;case 204:return((e,t)=>Ag(Pg(e),e.elements.indexOf(t)))(t,e);case 225:return(e=>Ng(Pg(e.parent)))(t);case 296:return Fg(t);case 297:return(e=>Tg(Fg(e),e.objectAssignmentInitializer))(t)}return Ue}function Ig(e){return li(e).resolvedType||jE(e)}function Og(e){return 254===e.kind?(e=>e.initializer?Ig(e.initializer):243===e.parent.parent.kind?Ye:244===e.parent.parent.kind&&iD(e.parent.parent)||Ue)(e):(e=>{var t=e.parent,r=Og(t.parent);return Tg(201===t.kind?Cg(r,e.propertyName||e.name):e.dotDotDotToken?Ng(r):Ag(r,t.elements.indexOf(e)),e.initializer)})(e)}function Mg(e){switch(e.kind){case 212:return Mg(e.expression);case 221:switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return Mg(e.left);case 27:return Mg(e.right)}}return e}function Rg(e){var t=e.parent;return 212===t.kind||221===t.kind&&63===t.operatorToken.kind&&t.left===e||221===t.kind&&27===t.operatorToken.kind&&t.right===e?Rg(t):e}function Lg(e){return 289===e.kind?Np(jE(e.expression)):ct}function Bg(e){var t=li(e);if(!t.switchTypes){t.switchTypes=[];for(var r=0,n=e.caseBlock.clauses;r<n.length;r++){var i=n[r];t.switchTypes.push(Lg(i))}}return t.switchTypes}function Ug(t){if(!e.some(t.caseBlock.clauses,(t=>289===t.kind&&!e.isStringLiteralLike(t.expression)))){for(var r=[],n=0,i=t.caseBlock.clauses;n<i.length;n++){var a=i[n],o=289===a.kind?a.expression.text:void 0;r.push(o&&!e.contains(r,o)?o:void 0)}return r}}function jg(e,t){return e===t||1048576&t.flags&&((e,t)=>{if(1048576&e.flags){for(var r=0,n=e.types;r<n.length;r++){var i=n[r];if(!cu(t.types,i))return!1}return!0}return!!(1024&e.flags&&Ps(e)===t)||cu(t.types,e)})(e,t)}function Vg(t,r){return 1048576&t.flags?e.forEach(t.types,r):r(t)}function zg(t,r){return 1048576&t.flags?e.some(t.types,r):r(t)}function Hg(t,r){return 1048576&t.flags?e.every(t.types,r):r(t)}function Wg(t,r){if(1048576&t.flags){var n=t.types,i=e.filter(n,r);if(i===n)return t;var a=t.origin,o=void 0;if(a&&1048576&a.flags){var s=a.types,c=e.filter(s,(e=>!!(1048576&e.flags)||r(e)));if(s.length-c.length==n.length-i.length){if(1===c.length)return c[0];o=_u(1048576,c)}}return gu(i,t.objectFlags,void 0,void 0,o)}return 131072&t.flags||r(t)?t:ct}function Kg(e,t){return Wg(e,(e=>e!==t))}function Jg(e){return 1048576&e.flags?e.types.length:1}function Gg(e,t,r){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);for(var n,i=e.origin,a=!1,o=0,s=i&&1048576&i.flags?i.types:e.types;o<s.length;o++){var c=s[o],l=1048576&c.flags?Gg(c,t,r):t(c);a||(a=c!==l),l&&(n?n.push(l):n=[l])}return a?n&&fu(n,r?0:1):e}function $g(t,r,n,i){return 1048576&t.flags&&n?fu(e.map(t.types,r),1,n,i):Gg(t,r)}function qg(e,t){return Wg(e,(e=>0!=(e.flags&t)))}function Xg(e,t){return dE(e,134217804)&&dE(t,402655616)?Gg(e,(e=>4&e.flags?qg(t,402653316):Ju(e)&&!dE(t,402653188)?qg(t,128):8&e.flags?qg(t,264):64&e.flags?qg(t,2112):e)):e}function Yg(e){return 0===e.flags}function Qg(e){return 0===e.flags?e.type:e}function Zg(e,t){return t?{flags:0,type:131072&e.flags?lt:e}:e}function eh(e){return Ne[e.id]||(Ne[e.id]=(e=>{var t=wa(256);return t.elementType=e,t})(e))}function th(e,t){var r=um(jf(zE(t)));return jg(r,e.elementType)?e:eh(fu([e.elementType,r]))}function rh(t){return 256&e.getObjectFlags(t)?(r=t).finalArrayType||(r.finalArrayType=131072&(n=r.elementType).flags?rr:Gd(1048576&n.flags?fu(n.types,2):n)):t;var r,n}function nh(t){return 256&e.getObjectFlags(t)?t.elementType:ct}function ih(t){var r=Rg(t),n=r.parent,i=e.isPropertyAccessExpression(n)&&("length"===n.name.escapedText||208===n.parent.kind&&e.isIdentifier(n.name)&&e.isPushOrUnshiftIdentifier(n.name)),a=207===n.kind&&n.expression===r&&221===n.parent.kind&&63===n.parent.operatorToken.kind&&n.parent.left===n&&!e.isAssignmentTarget(n.parent)&&uE(jE(n.argumentExpression),296);return i||a}function ah(t,r){if(8752&t.flags)return cs(t);if(7&t.flags){if(262144&e.getCheckFlags(t)){var n=t.syntheticOrigin;if(n&&ah(n))return cs(t)}var i=t.valueDeclaration;if(i){if(s=i,(e.isVariableDeclaration(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isParameter(s))&&(e.getEffectiveTypeAnnotationNode(s)||e.isInJSFile(s)&&e.hasInitializer(s)&&s.initializer&&e.isFunctionExpressionOrArrowFunction(s.initializer)&&e.getEffectiveReturnTypeNode(s.initializer)))return cs(t);if(e.isVariableDeclaration(i)&&244===i.parent.parent.kind){var a=i.parent.parent,o=oh(a.expression,void 0);if(o)return aD(a.awaitModifier?15:13,o,Ke,void 0)}r&&e.addRelatedInfo(r,e.createDiagnosticForNode(i,e.Diagnostics._0_needs_an_explicit_type_annotation,Qa(t)))}}var s}function oh(t,r){if(!(33554432&t.flags))switch(t.kind){case 79:var n=Sa(ig(t));return ah(2097152&n.flags?Ji(n):n,r);case 108:return(t=>{var r=e.getThisContainer(t,!1);if(e.isFunctionLike(r)){var n=Nl(r);if(n.thisParameter)return ah(n.thisParameter)}if(e.isClassLike(r.parent)){var i=ya(r.parent);return e.isStatic(r)?cs(i):Rs(i).thisType}})(t);case 106:return Ph(t);case 206:var i=oh(t.expression,r);if(i){var a=t.name,o=void 0;if(e.isPrivateIdentifier(a)){if(!i.symbol)return;o=sl(i,e.getSymbolNameForPrivateIdentifier(i.symbol,a.escapedText))}else o=sl(i,a.escapedText);return o&&ah(o,r)}return;case 212:return oh(t.expression,r)}}function sh(t){var r=li(t),n=r.effectsSignature;if(void 0===n){var i=void 0;238===t.parent.kind?i=oh(t.expression,void 0):106!==t.expression.kind&&(i=e.isOptionalChain(t)?Gy(am(HE(t.expression),t.expression),t.expression):Vy(t.expression));var a=ll(i&&Yc(i)||He,0),o=1!==a.length||a[0].typeParameters?e.some(a,ch)?ub(t):void 0:a[0];n=r.effectsSignature=o&&ch(o)?o:Br}return n===Br?void 0:n}function ch(e){return!!(Ml(e)||e.declaration&&131072&(Bl(e.declaration)||He).flags)}function lh(e){var t=uh(e,!1);return Fr=e,Pr=t,t}function dh(t){var r=e.skipParentheses(t,!0);return 95===r.kind||221===r.kind&&(55===r.operatorToken.kind&&(dh(r.left)||dh(r.right))||56===r.operatorToken.kind&&dh(r.left)&&dh(r.right))}function uh(t,r){for(;;){if(t===Fr)return Pr;var n=t.flags;if(4096&n){if(!r){var i=vg(t),a=bn[i];return void 0!==a?a:bn[i]=uh(t,!0)}r=!1}if(368&n)t=t.antecedent;else if(512&n){var o=sh(t.node);if(o){var s=Ml(o);if(s&&3===s.kind&&!s.type){var c=t.node.arguments[s.parameterIndex];if(c&&dh(c))return!1}if(131072&Ll(o).flags)return!1}t=t.antecedent}else{if(4&n)return e.some(t.antecedents,(e=>uh(e,!1)));if(8&n){var l=t.antecedents;if(void 0===l||0===l.length)return!1;t=l[0]}else{if(!(128&n)){if(1024&n){Fr=void 0;var d=t.target,u=d.antecedents;d.antecedents=t.antecedents;var p=uh(t.antecedent,!1);return d.antecedents=u,p}return!(1&n)}if(t.clauseStart===t.clauseEnd&&Qb(t.switchStatement))return!1;t=t.antecedent}}}}function ph(t,r){for(;;){var n=t.flags;if(4096&n){if(!r){var i=vg(t),a=En[i];return void 0!==a?a:En[i]=ph(t,!0)}r=!1}if(496&n)t=t.antecedent;else if(512&n){if(106===t.node.expression.kind)return!0;t=t.antecedent}else{if(4&n)return e.every(t.antecedents,(e=>ph(e,!1)));if(!(8&n)){if(1024&n){var o=t.target,s=o.antecedents;o.antecedents=t.antecedents;var c=ph(t.antecedent,!1);return o.antecedents=s,c}return!!(1&n)}t=t.antecedents[0]}}}function _h(t){switch(t.kind){case 79:var r=ig(t);return yh(r)||e.isParameterOrCatchClauseVariable(r)&&!gh(r);case 206:case 207:return _h(t.expression)&&aE(li(t).resolvedSymbol||Pe)}return!1}function fh(t,r,n,i,a){var o;void 0===n&&(n=r),void 0===a&&(a=t.flowNode);var s=!1,c=0;if(tn)return Ue;if(!a)return r;rn++;var l=en,d=Qg(_(a));en=l;var u=256&e.getObjectFlags(d)&&ih(t)?rr:rh(d);return u===ut||t.parent&&230===t.parent.kind&&!(131072&u.flags)&&131072&xg(u,2097152).flags?r:u===We?He:u;function p(){return s?o:(s=!0,o=og(t,r,n,i))}function _(a){if(2e3===c)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:a.id}),tn=!0,o=t,s=e.findAncestor(o,e.isFunctionOrModuleBlock),d=e.getSourceFileOfNode(o),u=e.getSpanOfTokenAtPosition(d,s.statements.pos),kn.add(e.createFileDiagnostic(d,u.start,u.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),Ue;var o,s,d,u,p;for(c++;;){var f=a.flags;if(4096&f){for(var g=l;g<en;g++)if(yn[g]===a)return c--,vn[g];p=a}var D=void 0;if(16&f){if(!(D=m(a))){a=a.antecedent;continue}}else if(512&f){if(!(D=h(a))){a=a.antecedent;continue}}else if(96&f)D=v(a);else if(128&f)D=b(a);else if(12&f){if(1===a.antecedents.length){a=a.antecedents[0];continue}D=4&f?E(a):x(a)}else if(256&f){if(!(D=y(a))){a=a.antecedent;continue}}else if(1024&f){var S=a.target,T=S.antecedents;S.antecedents=a.antecedents,D=_(a.antecedent),S.antecedents=T}else if(2&f){var C=a.node;if(C&&C!==i&&206!==t.kind&&207!==t.kind&&108!==t.kind){a=C.flowNode;continue}D=n}else D=$x(r);return p&&(yn[en]=p,vn[en]=D,en++),c--,D}}function f(e){var r=e.node;return Eh(254===r.kind||203===r.kind?Og(r):Pg(r),t)}function m(n){var i=n.node;if(sg(t,i)){if(!lh(n))return ut;if(2===e.getAssignmentTargetKind(i)){var a=_(n.antecedent);return Zg(jf(Qg(a)),Yg(a))}if(r===Le||r===rr){if((e=>254===e.kind&&e.initializer&&Io(e.initializer)||203!==e.kind&&221===e.parent.kind&&Io(e.parent.right))(i))return eh(ct);var o=Vf(f(n));return T_(o,r)?o:tr}return 1048576&r.flags?((e,t)=>{var r;if(e===t)return e;if(131072&t.flags)return t;var n="A".concat(su(e),",").concat(su(t));return null!==(r=Un(n))&&void 0!==r?r:jn(n,((e,t)=>{var r=Wg(e,(e=>((e,t)=>{if(!(1048576&e.flags))return T_(e,t);for(var r=0,n=e.types;r<n.length;r++)if(T_(n[r],t))return!0;return!1})(t,e))),n=512&t.flags&&wp(t)?Gg(r,kp):r;return T_(t,n)?n:e})(e,t))})(r,f(n)):r}if(dg(t,i)){if(!lh(n))return ut;if(e.isVariableDeclaration(i)&&(e.isInJSFile(i)||e.isVarConst(i))){var s=e.getDeclaredExpandoInitializer(i);if(s&&(213===s.kind||214===s.kind))return _(n.antecedent)}return r}if(e.isVariableDeclaration(i)&&243===i.parent.parent.kind&&sg(t,i.parent.parent.expression))return Hy(rh(Qg(_(n.antecedent))))}function g(t,r){var n=e.skipParentheses(r,!0);if(95===n.kind)return ut;if(221===n.kind){if(55===n.operatorToken.kind)return g(g(t,n.left),n.right);if(56===n.operatorToken.kind)return fu([g(t,n.left),g(t,n.right)])}return z(t,n,!0)}function h(e){var t=sh(e.node);if(t){var r=Ml(t);if(r&&(2===r.kind||3===r.kind)){var n=_(e.antecedent),i=rh(Qg(n)),a=r.type?V(i,r,e.node,!0):3===r.kind&&r.parameterIndex>=0&&r.parameterIndex<e.node.arguments.length?g(i,e.node.arguments[r.parameterIndex]):i;return a===i?n:Zg(a,Yg(n))}if(131072&Ll(t).flags)return ut}}function y(n){if(r===Le||r===rr){var i=n.node,a=208===i.kind?i.expression.expression:i.left.expression;if(sg(t,Mg(a))){var o=_(n.antecedent),s=Qg(o);if(256&e.getObjectFlags(s)){var c=s;if(208===i.kind)for(var l=0,d=i.arguments;l<d.length;l++)c=th(c,d[l]);else uE(zE(i.left.argumentExpression),296)&&(c=th(c,i.right));return c===s?o:Zg(c,Yg(o))}return o}}}function v(e){var t=_(e.antecedent),r=Qg(t);if(131072&r.flags)return t;var n=0!=(32&e.flags),i=rh(r),a=z(i,e.node,n);return a===i?t:Zg(a,Yg(t))}function b(r){var n=r.switchStatement.expression,i=_(r.antecedent),a=Qg(i);if(sg(t,n))a=M(a,r.switchStatement,r.clauseStart,r.clauseEnd);else if(216===n.kind&&sg(t,n.expression))a=((t,r,n,i)=>{var a=Ug(r);if(!a)return t;var o=e.findIndex(r.caseBlock.clauses,(e=>290===e.kind));if(n===i||o>=n&&o<i){var s=Yb(n,i,a);return Wg(t,(e=>(Eg(e)&s)===s))}var c=a.slice(n,i);return fu(e.map(c,(e=>e?R(t,e):ct)))})(a,r.switchStatement,r.clauseStart,r.clauseEnd);else{$&&(ug(n,t)?a=O(a,r.switchStatement,r.clauseStart,r.clauseEnd,(e=>!(163840&e.flags))):216===n.kind&&ug(n.expression,t)&&(a=O(a,r.switchStatement,r.clauseStart,r.clauseEnd,(e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value)))));var o=T(n,a);o&&(a=((t,r,n,i,a)=>{if(i<a&&1048576&t.flags&&fg(t)===cg(r)){var o=Bg(n).slice(i,a),s=fu(e.map(o,(e=>mg(t,e)||He)));if(s!==He)return s}return C(t,r,(e=>M(e,n,i,a)))})(a,o,r.switchStatement,r.clauseStart,r.clauseEnd))}return Zg(a,Yg(i))}function E(t){for(var i,a=[],o=!1,s=!1,c=0,l=t.antecedents;c<l.length;c++){var d=l[c];if(!i&&128&d.flags&&d.clauseStart===d.clauseEnd)i=d;else{if((p=Qg(u=_(d)))===r&&r===n)return p;e.pushIfUnique(a,p),jg(p,r)||(o=!0),Yg(u)&&(s=!0)}}if(i){var u,p=Qg(u=_(i));if(!e.contains(a,p)&&!Qb(i.switchStatement)){if(p===r&&r===n)return p;a.push(p),jg(p,r)||(o=!0),Yg(u)&&(s=!0)}}return Zg(S(a,o?2:1),s)}function x(t){var n=vg(t),i=fn[n]||(fn[n]=new e.Map),a=p();if(!a)return r;var o=i.get(a);if(o)return o;for(var s=Qr;s<Zr;s++)if(mn[s]===t&&gn[s]===a&&hn[s].length)return Zg(S(hn[s],1),!0);for(var c,l=[],d=!1,u=0,f=t.antecedents;u<f.length;u++){var m=f[u],g=void 0;if(c){mn[Zr]=t,gn[Zr]=a,hn[Zr]=l,Zr++;var h=Ir;Ir=void 0,g=_(m),Ir=h,Zr--;var y=i.get(a);if(y)return y}else g=c=_(m);var v=Qg(g);if(e.pushIfUnique(l,v),jg(v,r)||(d=!0),v===r)break}var b=S(l,d?2:1);return Yg(c)?Zg(b,!0):(i.set(a,b),b)}function S(t,n){if((t=>{for(var r=!1,n=0,i=t;n<i.length;n++){var a=i[n];if(!(131072&a.flags)){if(!(256&e.getObjectFlags(a)))return!1;r=!0}}return r})(t))return eh(fu(e.map(t,nh)));var i=Sg(fu(e.sameMap(t,rh),n));return i!==r&&i.flags&r.flags&1048576&&e.arraysEqual(i.types,r.types)?r:i}function T(n,i){var a=1048576&r.flags?r:i;if(1048576&a.flags){var o=(r=>{if(e.isBindingPattern(t)||e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t)){if(e.isIdentifier(r)&&(i=(n=ig(r)).valueDeclaration)&&(e.isBindingElement(i)||e.isParameter(i))&&t===i.parent&&!i.initializer&&!i.dotDotDotToken)return i}else if(e.isAccessExpression(r)){if(sg(t,r.expression))return r}else if(e.isIdentifier(r)){var n;if(yh(n=ig(r))){var i=n.valueDeclaration;if(e.isVariableDeclaration(i)&&!i.type&&i.initializer&&e.isAccessExpression(i.initializer)&&sg(t,i.initializer.expression))return i.initializer;if(e.isBindingElement(i)&&!i.initializer){var a=i.parent.parent;if(e.isVariableDeclaration(a)&&!a.type&&a.initializer&&(e.isIdentifier(a.initializer)||e.isAccessExpression(a.initializer))&&sg(t,a.initializer))return i}}}})(n);if(o){var s=cg(o);if(s&&pg(a,s))return o}}}function C(t,r,n){var i=cg(r);if(void 0===i)return t;var a=$&&e.isOptionalChain(r)&&dE(t,98304),o=bo(a?xg(t,2097152):t,i);if(!o)return t;var s=n(o=a?em(o):o);return Wg(t,(e=>{var t=((e,t)=>{var r;return bo(e,t)||(null===(r=vl(e,t))||void 0===r?void 0:r.type)||He})(e,i);return!(131072&s.flags)&&k_(s,t)}))}function k(e,t,r,n,i){if((36===r||37===r)&&1048576&e.flags){var a=fg(e);if(a&&a===cg(t)){var o=mg(e,jE(n));if(o)return r===(i?36:37)?o:Lf(bo(o,a)||He)?Kg(e,o):e}}return C(e,t,(e=>P(e,r,n,i)))}function N(e,r,n){if(sg(t,r))return Dg(e,n?4194304:8388608);$&&n&&ug(r,t)&&(e=Dg(e,2097152));var i=T(r,e);return i?C(e,i,(e=>xg(e,n?4194304:8388608))):e}function w(n,i,a){switch(i.operatorToken.kind){case 63:case 75:case 76:case 77:return N(z(n,i.right,a),i.left,a);case 34:case 35:case 36:case 37:var o=i.operatorToken.kind,s=Mg(i.left),c=Mg(i.right);if(216===s.kind&&e.isStringLiteralLike(c))return I(n,s,o,c,a);if(216===c.kind&&e.isStringLiteralLike(s))return I(n,c,o,s,a);if(sg(t,s))return P(n,o,c,a);if(sg(t,c))return P(n,o,s,a);$&&(ug(s,t)?n=F(n,o,c,a):ug(c,t)&&(n=F(n,o,s,a)));var l=T(s,n);if(l)return k(n,l,o,c,a);var d=T(c,n);if(d)return k(n,d,o,s,a);if(B(s))return U(n,o,c,a);if(B(c))return U(n,o,s,a);break;case 102:return((r,n,i)=>{var a=Mg(n.left);if(!sg(t,a))return i&&$&&ug(a,t)?Dg(r,2097152):r;var o,s=jE(n.right);if(!C_(s,Kt))return r;var c=sl(s,"prototype");if(c){var l=cs(c);Eo(l)||(o=l)}if(Eo(r)&&(o===Wt||o===Kt))return r;if(!o){var d=ll(s,1);o=d.length?fu(e.map(d,(e=>Ll(Wl(e))))):Tt}return!i&&1048576&s.flags&&!e.find(s.types,(e=>!ys(e)))?r:j(r,o,i,!0)})(n,i,a);case 101:if(e.isPrivateIdentifier(i.left))return((r,n,i)=>{var a=Mg(n.right);if(!sg(t,a))return r;e.Debug.assertNode(n.left,e.isPrivateIdentifier);var o=Zy(n.left);if(void 0===o)return r;var s=o.parent;return j(r,e.hasStaticModifier(e.Debug.checkDefined(o.valueDeclaration,"should always have a declaration"))?cs(s):Rs(s),i,!0)})(n,i,a);var u=Mg(i.right),p=AS(i.left);if(128&p.flags){var _=e.escapeLeadingUnderscores(p.value);if(sm(n)&&e.isAccessExpression(t)&&sg(t.expression,u)&&cg(t)===_)return xg(n,a?524288:65536);if(sg(t,u))return((t,n,i)=>1048576&t.flags||524288&t.flags&&r!==t&&(r!==He||!H_(t))||e.isThisTypeParameter(t)||2097152&t.flags&&e.every(t.types,(e=>e.symbol!==le))?Wg(t,(e=>((e,t,r)=>{var n=sl(e,t);return n?!!(16777216&n.flags)||r:!!vl(e,t)||!r})(e,n,i))):t)(n,_,a)}break;case 27:return z(n,i.right,a);case 55:return a?z(z(n,i.left,!0),i.right,!0):fu([z(n,i.left,!1),z(n,i.right,!1)]);case 56:return a?fu([z(n,i.left,!0),z(n,i.right,!0)]):z(z(n,i.left,!1),i.right,!1)}return n}function F(e,t,r,n){var i=34===t||36===t,a=34===t||35===t?98304:32768,o=jE(r);return i!==n&&Hg(o,(e=>!!(e.flags&a)))||i===n&&Hg(o,(e=>!(e.flags&(3|a))))?Dg(e,2097152):e}function P(e,t,r,n){if(1&e.flags)return e;35!==t&&37!==t||(n=!n);var i=jE(r);if((2&e.flags||H_(e)&&!(98304&i.flags))&&n&&(36===t||37===t)){if(67239932&i.flags)return i;if(524288&i.flags)return pt;if(2&e.flags)return e}return 98304&i.flags?$?Dg(e,34===t||35===t?n?262144:2097152:65536&i.flags?n?131072:1048576:n?65536:524288):e:n?Xg(Wg(e,34===t?e=>{return k_(e,i)||(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t}:e=>k_(e,i)),i):Lf(i)?Wg(e,(e=>!(Bf(e)&&k_(e,i)))):e}function I(e,r,n,i,a){35!==n&&37!==n||(a=!a);var o=Mg(r.expression);return sg(t,o)?a?R(e,i.text):xg(e,D.get(i.text)||32768):$&&ug(o,t)&&a===("undefined"!==i.text)?Dg(e,2097152):e}function O(t,r,n,i,a){return n!==i&&e.every(Bg(r).slice(n,i),a)?xg(t,2097152):t}function M(t,r,n,i){var a=Bg(r);if(!a.length)return t;var o=a.slice(n,i),s=n===i||e.contains(o,ct);if(2&t.flags&&!s){for(var c=void 0,l=0;l<o.length;l+=1){var d=o[l];if(67239932&d.flags)void 0!==c&&c.push(d);else{if(!(524288&d.flags))return t;void 0===c&&(c=o.slice(0,l)),c.push(pt)}}return fu(void 0===c?o:c)}var u=fu(o),p=131072&u.flags?ct:Xg(Wg(t,(e=>k_(u,e))),u);if(!s)return p;var _=Wg(t,(t=>!(Bf(t)&&e.contains(a,Np((t=>2097152&t.flags&&e.find(t.types,Lf)||t)(t))))));return 131072&p.flags?_:fu([p,_])}function R(e,t){switch(t){case"string":return L(e,Ye,1);case"number":return L(e,Qe,2);case"bigint":return L(e,Ze,4);case"boolean":return L(e,at,8);case"symbol":return L(e,ot,16);case"object":return 1&e.flags?e:fu([L(e,pt,32),L(e,qe,131072)]);case"function":return 1&e.flags?e:L(e,Kt,64);case"undefined":return L(e,Ke,65536)}return L(e,pt,128)}function L(e,t,r){return Gg(e,(e=>$_(e,t,Pn)?Eg(e)&r?e:ct:S_(t,e)?t:Eg(e)&r?xu([e,t]):ct))}function B(r){return(e.isPropertyAccessExpression(r)&&"constructor"===e.idText(r.name)||e.isElementAccessExpression(r)&&e.isStringLiteralLike(r.argumentExpression)&&"constructor"===r.argumentExpression.text)&&sg(t,r.expression)}function U(t,r,n,i){if(i?34!==r&&36!==r:35!==r&&37!==r)return t;var a=jE(n);if(!tT(a)&&!ys(a))return t;var o=sl(a,"prototype");if(!o)return t;var s=cs(o),c=Eo(s)?void 0:s;return c&&c!==Wt&&c!==Kt?Eo(t)?c:Wg(t,(t=>{return n=c,524288&(r=t).flags&&1&e.getObjectFlags(r)||524288&n.flags&&1&e.getObjectFlags(n)?r.symbol===n.symbol:S_(r,n);var r,n})):t}function j(e,t,r,n){var i,a=1048576&e.flags?"N".concat(su(e),",").concat(su(t),",").concat((r?1:0)|(n?2:0)):void 0;return null!==(i=Un(a))&&void 0!==i?i:jn(a,((e,t,r,n)=>{var i=n?C_:S_;if(!r)return Wg(e,(e=>!i(e,t)));if(3&e.flags)return t;var a=1048576&e.flags?fg(e):void 0,o=Gg(t,(t=>{var r=a&&bo(t,a),o=Gg(r&&mg(e,r)||e,n?e=>C_(e,t)?e:C_(t,e)?t:ct:e=>S_(t,e)?t:S_(e,t)?e:ct);return 131072&o.flags?Gg(e,(e=>dE(e,465829888)&&i(t,Wc(e)||He)?xu([e,t]):ct)):o}));return 131072&o.flags?S_(t,e)?t:T_(e,t)?e:T_(t,e)?t:xu([e,t]):o})(e,t,r,n))}function V(r,n,i,a){if(n.type&&(!Eo(r)||n.type!==Wt&&n.type!==Kt)){var o=((t,r)=>{if(1===t.kind||3===t.kind)return r.arguments[t.parameterIndex];var n=e.skipParentheses(r.expression);return e.isAccessExpression(n)?e.skipParentheses(n.expression):void 0})(n,i);if(o){if(sg(t,o))return j(r,n.type,a,!1);$&&a&&ug(o,t)&&!(65536&Eg(n.type))&&(r=Dg(r,2097152));var s=T(o,r);if(s)return C(r,s,(e=>j(e,n.type,a,!1)))}}return r}function z(r,n,i){if(e.isExpressionOfOptionalChainRoot(n)||e.isBinaryExpression(n.parent)&&60===n.parent.operatorToken.kind&&n.parent.left===n)return((e,r,n)=>{if(sg(t,r))return Dg(e,n?2097152:262144);var i=T(r,e);return i?C(e,i,(e=>xg(e,n?2097152:262144))):e})(r,n,i);switch(n.kind){case 79:if(!sg(t,n)&&A<5){var a=ig(n);if(yh(a)){var o=a.valueDeclaration;if(o&&e.isVariableDeclaration(o)&&!o.type&&o.initializer&&_h(t)){A++;var s=z(r,o.initializer,i);return A--,s}}}case 108:case 106:case 206:case 207:return N(r,n,i);case 208:return((r,n,i)=>{if(yg(n,t)){var a=i||!e.isCallChain(n)?sh(n):void 0,o=a&&Ml(a);if(o&&(0===o.kind||1===o.kind))return V(r,o,n,i)}if(sm(r)&&e.isAccessExpression(t)&&e.isPropertyAccessExpression(n.expression)){var s=n.expression;if(sg(t.expression,Mg(s.expression))&&e.isIdentifier(s.name)&&"hasOwnProperty"===s.name.escapedText&&1===n.arguments.length){var c=n.arguments[0];if(e.isStringLiteralLike(c)&&cg(t)===e.escapeLeadingUnderscores(c.text))return xg(r,i?524288:65536)}}return r})(r,n,i);case 212:case 230:return z(r,n.expression,i);case 221:return w(r,n,i);case 219:if(53===n.operator)return z(r,n.operand,!i)}return r}}function mh(t){return e.findAncestor(t.parent,(t=>e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||262===t.kind||305===t.kind||167===t.kind))}function gh(t){if(!t.valueDeclaration)return!1;var r,n=e.getRootDeclaration(t.valueDeclaration).parent,i=li(n);return 8388608&i.flags||(i.flags|=8388608,r=n,e.findAncestor(r.parent,(t=>(e.isFunctionLike(t)||e.isCatchClause(t))&&!!(8388608&li(t).flags)))||hh(n)),t.isAssigned||!1}function hh(t){if(79===t.kind){if(e.isAssignmentTarget(t)){var r=ig(t);e.isParameterOrCatchClauseVariable(r)&&(r.isAssigned=!0)}}else e.forEachChild(t,hh)}function yh(e){return 3&e.flags&&0!=(2&Ry(e))}function vh(t){return 2097152&t.flags?e.some(t.types,vh):!!(465829888&t.flags&&1146880&Kc(t).flags)}function bh(t){return 2097152&t.flags?e.some(t.types,bh):!(!(465829888&t.flags)||dE(Kc(t),98304))}function Eh(t,r,n){return n&&2&n||!zg(t,vh)||!((e,t)=>{var r=t.parent;return 206===r.kind||161===r.kind||208===r.kind&&r.expression===t||207===r.kind&&r.expression===t&&!(zg(e,bh)&&qu(jE(r.argumentExpression)))})(t,r)&&!((t,r)=>{var n=(e.isIdentifier(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&!((e.isJsxOpeningElement(t.parent)||e.isJsxSelfClosingElement(t.parent))&&t.parent.tagName===t)&&ey(t,r&&64&r?8:void 0);return n&&!Gu(n)})(r,n)?t:Gg(t,Kc)}function xh(t){return!!e.findAncestor(t,(t=>{var r=t.parent;return void 0===r?"quit":e.isExportAssignment(r)?r.expression===t&&e.isEntityNameExpression(t):!!e.isExportSpecifier(r)&&(r.name===t||r.propertyName===t)}))}function Dh(t,r){if(Wi(t,111551)&&!ag(r)&&!qi(t)){var n=Ji(t);111551&n.flags&&(H.isolatedModules||e.shouldPreserveConstEnums(H)&&xh(r)||!WS(n)?Yi(t):(e=>{var t=ci(e);t.constEnumReferenced||(t.constEnumReferenced=!0)})(t))}}function Sh(t){return e.findAncestor(t,(t=>!t||e.nodeStartsNewLexicalEnvironment(t)?"quit":e.isIterationStatement(t,!1)))}function Th(e,t){li(e).flags|=2,167===t.kind||171===t.kind?li(t.parent).flags|=4:li(t).flags|=4}function Ch(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,Ch)}function Ah(e){return xs(Rs(ya(e)))===Xe}function kh(t,r,n){var i=r.parent;e.getClassExtendsHeritageElement(i)&&!Ah(i)&&t.flowNode&&!ph(t.flowNode,!1)&&Jn(t,n)}function Nh(t){var r=ag(t),n=e.getThisContainer(t,!0),i=!1;switch(171===n.kind&&kh(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),214===n.kind&&(n=e.getThisContainer(n,!1),i=!0),((t,r)=>{e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)&&r.initializer&&e.textRangeContainsPositionInclusive(r.initializer,t.pos)&&e.hasDecorators(r.parent)&&Jn(t,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)})(t,n),n.kind){case 261:Jn(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 260:Jn(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 171:Fh(t,n)&&Jn(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 162:Jn(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}!r&&i&&W<2&&Th(t,n);var a=wh(t,!0,n);if(Z){var o=cs(le);if(a===o&&i)Jn(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var s=Jn(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(n)){var c=wh(n);c&&c!==o&&e.addRelatedInfo(s,e.createDiagnosticForNode(n,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||Re}function wh(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=e.getThisContainer(t,!1));var i=e.isInJSFile(t);if(e.isFunctionLike(n)&&(!Bh(t)||e.getThisParameter(n))){var a=Ol(Nl(n))||i&&(t=>{var r=e.getJSDocType(t);if(r&&317===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return Up(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return Up(i.typeExpression)})(n);if(!a){var o=(t=>213===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent)?t.parent.left.expression.expression:169===t.kind&&205===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.left.expression:213===t.kind&&296===t.parent.kind&&205===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.left.expression:213===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=HE(o).symbol;s&&s.members&&16&s.flags&&(a=Rs(s).thisType)}else pb(n)&&(a=Rs(ha(n.symbol)).thisType);a||(a=Mh(n))}if(a)return fh(t,a)}if(e.isClassLike(n.parent)){var c=ya(n.parent);return fh(t,e.isStatic(n)?cs(c):Rs(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var l=ya(n);return l&&cs(l)}if(n.externalModuleIndicator)return Ke;if(r)return cs(le)}}function Fh(t,r){return!!e.findAncestor(t,(t=>e.isFunctionLikeDeclaration(t)?"quit":164===t.kind&&t.parent===r))}function Ph(t){var r=208===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=n,a=!1;if(!r)for(;i&&214===i.kind;)i=e.getSuperContainer(i,!0),a=W<2;var o=0;if(!(t=>!(!t||(r?171!==t.kind:!e.isClassLike(t.parent)&&205!==t.parent.kind||(e.isStatic(t)?169!==t.kind&&168!==t.kind&&172!==t.kind&&173!==t.kind&&167!==t.kind&&170!==t.kind:169!==t.kind&&168!==t.kind&&172!==t.kind&&173!==t.kind&&167!==t.kind&&166!==t.kind&&171!==t.kind))))(i)){var s=e.findAncestor(t,(e=>e===i?"quit":162===e.kind));return s&&162===s.kind?Jn(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?Jn(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||205===i.parent.kind)?Jn(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Jn(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Ue}if(r||171!==n.kind||kh(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(i)||r?(o=512,!r&&W>=2&&W<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(t.parent,(t=>{e.isSourceFile(t)&&!e.isExternalOrCommonJsModule(t)||(li(t).flags|=134217728)}))):o=256,li(t).flags|=o,169===i.kind&&e.hasSyntacticModifier(i,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?li(i).flags|=4096:li(i).flags|=2048),a&&Th(t.parent,i),205===i.parent.kind)return W<2?(Jn(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ue):Re;var c=i.parent;if(!e.getClassExtendsHeritageElement(c))return Jn(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Ue;var l=Rs(ya(c)),d=l&&Ss(l)[0];return d?171===i.kind&&Fh(t,i)?(Jn(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Ue):512===o?xs(l):rc(d,l.thisType):Ue}function Ih(t){return 4&e.getObjectFlags(t)&&t.target===er?ld(t)[0]:void 0}function Oh(t){return Gg(t,(t=>2097152&t.flags?e.forEach(t.types,Ih):Ih(t)))}function Mh(t){if(214!==t.kind){if(y_(t)){var r=oy(t);if(r){var n=r.thisParameter;if(n)return cs(n)}}var i=e.isInJSFile(t);if(Z||i){var a=(e=>169!==e.kind&&172!==e.kind&&173!==e.kind||205!==e.parent.kind?213===e.kind&&296===e.parent.kind?e.parent.parent:void 0:e.parent)(t);if(a){for(var o=Yh(a,void 0),s=a,c=o;c;){var l=Oh(c);if(l)return u_(l,wm(ty(a)));if(296!==s.parent.kind)break;c=Yh(s=s.parent.parent,void 0)}return hm(o?tm(o):TE(a))}var d=e.walkUpParenthesizedExpressions(t.parent);if(221===d.kind&&63===d.operatorToken.kind){var u=d.left;if(e.isAccessExpression(u)){var p=u.expression;if(i&&e.isIdentifier(p)){var _=e.getSourceFileOfNode(d);if(_.commonJsModuleIndicator&&ig(p)===_.symbol)return}return hm(TE(p))}}}}}function Rh(t){var r=t.parent;if(y_(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=Kv(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return Uv(i,a,i.length,Re,void 0,0);var o=li(n),s=o.resolvedSignature;o.resolvedSignature=Lr;var c=a<i.length?Vf(HE(i[a])):t.initializer?void 0:Je;return o.resolvedSignature=s,c}var l=oy(r);if(l){var d=r.parameters.indexOf(t)-(e.getThisParameter(r)?1:0);return t.dotDotDotToken&&e.lastOrUndefined(r.parameters)===t?Mb(l,d):Ob(l,d)}}}function Lh(t,r){var n=e.getEffectiveTypeAnnotationNode(t);if(n)return Up(n);switch(t.kind){case 164:return Rh(t);case 203:return((t,r)=>{var n=t.parent.parent,i=t.propertyName||t.name,a=Lh(n,r)||203!==n.kind&&n.initializer&&AE(n,t.dotDotDotToken?64:0);if(a&&!e.isBindingPattern(i)&&!e.isComputedNonLiteralName(i)){if(202===n.name.kind){var o=e.indexOfNode(t.parent.elements,t);if(o<0)return;return $h(a,o)}var s=Nu(i);return Js(s)?bo(a,Ys(s)):void 0}})(t,r);case 167:if(e.isStatic(t))return((t,r)=>{var n=e.isExpression(t.parent)&&ey(t.parent,r);return n?Kh(n,ya(t).escapedName):void 0})(t,r)}}function Bh(t){for(var r=!1;t.parent&&!e.isFunctionLike(t.parent);){if(e.isParameter(t.parent)&&(r||t.parent.initializer===t))return!0;e.isBindingElement(t.parent)&&t.parent.initializer===t&&(r=!0),t=t.parent}return!1}function Uh(t,r){var n=!!(2&e.getFunctionFlags(r)),i=jh(r,void 0);if(i)return AD(t,i,n)||void 0}function jh(t,r){var n=Bl(t);if(n)return n;var i=ay(t);if(i&&!Ul(i))return Ll(i);var a=e.getImmediatelyInvokedFunctionExpression(t);return a?ey(a,r):void 0}function Vh(e,t){var r=Kv(e).indexOf(t);return-1===r?void 0:zh(e,r)}function zh(t,r){if(e.isImportCall(t))return 0===r?Ye:1===r?Rd(!1):Re;var n=li(t).resolvedSignature===Ur?Ur:ub(t);if(e.isJsxOpeningLikeElement(t)&&0===r)return ry(n,t);var i=n.parameters.length-1;return U(n)&&r>=i?tp(cs(n.parameters[i]),Pp(r-i),256):Ib(n,r)}function Hh(t,r){if(void 0===r&&(r=e.getAssignmentDeclarationKind(t)),4===r)return!0;if(!e.isInJSFile(t)||5!==r||!e.isIdentifier(t.left.expression))return!1;var n=t.left.expression.escapedText,i=mi(t.left,n,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)}function Wh(t){if(!t.symbol)return jE(t.left);if(t.symbol.valueDeclaration){var r=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(r){var n=Up(r);if(n)return n}}var i=e.cast(t.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1))){var a=Nh(i.expression),o=e.getElementOrPropertyAccessName(i);return void 0!==o&&Kh(a,o)||void 0}}function Kh(t,r,n){return Gg(t,(t=>{var i,a;if(Pc(t)&&!t.declaration.nameType){var o=Dc(t),s=Wc(o)||o,c=n||Fp(e.unescapeLeadingUnderscores(r));if(T_(c,s))return ep(t,c)}else if(3670016&t.flags){var l=sl(t,r);if(l)return a=l,262144&e.getCheckFlags(a)&&!a.type&&go(a,0)>=0?void 0:cs(l);if(Kf(t)){var d=$f(t);if(d&&e.isNumericLiteralName(r)&&+r>=0)return d}return null===(i=ul(_l(t),n||Fp(e.unescapeLeadingUnderscores(r))))||void 0===i?void 0:i.type}}),!0)}function Jh(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(33554432&t.flags))return Gh(t,r)}function Gh(t,r){var n=t.parent,i=e.isPropertyAssignment(t)&&Lh(t,r);if(i)return i;var a=Yh(n,r);if(a){if(Xs(t)){var o=ya(t);return Kh(a,o.escapedName,ci(o).nameType)}if(t.name){var s=Nu(t.name);return Gg(a,(e=>{var t;return null===(t=ul(_l(e),s))||void 0===t?void 0:t.type}),!0)}}}function $h(e,t){return e&&(Kh(e,""+t)||Gg(e,(e=>oD(1,e,Ke,void 0,!1)),!0))}function qh(t,r){if(e.isJsxAttribute(t)){var n=Yh(t.parent,r);if(!n||Eo(n))return;return Kh(n,t.name.escapedText)}return ey(t.parent,r)}function Xh(e){switch(e.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 153:return!0;case 206:case 212:return Xh(e.expression);case 288:return!e.expression||Xh(e.expression)}return!1}function Yh(t,r){var n=Qh(e.isObjectLiteralMethod(t)?Jh(t,r):ey(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=Gg(n,Yc,!0);return 1048576&i.flags&&e.isObjectLiteralExpression(t)?((t,r)=>((t,r)=>{var n=fg(t),i=n&&e.find(r.properties,(e=>e.symbol&&296===e.kind&&e.symbol.escapedName===n&&Xh(e.initializer))),a=i&&zE(i.initializer);return a&&mg(t,a)})(r,t)||nf(r,e.concatenate(e.map(e.filter(t.properties,(e=>!!e.symbol&&296===e.kind&&Xh(e.initializer)&&pg(r,e.symbol.escapedName))),(e=>[()=>zE(e.initializer),e.symbol.escapedName])),e.map(e.filter(Lc(r),(e=>{var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&pg(r,e.escapedName)})),(e=>[()=>Ke,e.escapedName]))),T_,r))(t,i):1048576&i.flags&&e.isJsxAttributes(t)?((t,r)=>nf(r,e.concatenate(e.map(e.filter(t.properties,(e=>!!e.symbol&&285===e.kind&&pg(r,e.symbol.escapedName)&&(!e.initializer||Xh(e.initializer)))),(e=>[e.initializer?()=>zE(e.initializer):()=>rt,e.symbol.escapedName])),e.map(e.filter(Lc(r),(e=>{var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&pg(r,e.escapedName)})),(e=>[()=>Ke,e.escapedName]))),T_,r))(t,i):i}}function Qh(t,r,n){if(t&&dE(t,465829888)){var i=ty(r);if(i&&1&n&&e.some(i.inferences,RE))return Zh(t,i.nonFixingMapper);if(null==i?void 0:i.returnMapper){var a=Zh(t,i.returnMapper);return 1048576&a.flags&&cu(a.types,tt)&&cu(a.types,nt)?Wg(a,(e=>e!==tt&&e!==nt)):a}}return t}function Zh(t,r){return 465829888&t.flags?u_(t,r):1048576&t.flags?fu(e.map(t.types,(e=>Zh(e,r))),0):2097152&t.flags?xu(e.map(t.types,(e=>Zh(e,r)))):t}function ey(t,r){if(33554432&t.flags);else{if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 254:case 164:case 167:case 166:case 203:return((t,r)=>{var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var i=Lh(n,r);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name)&&n.name.elements.length>0)return Go(n.name,!0,!1)}})(t,r);case 214:case 247:return((t,r)=>{var n=e.getContainingFunction(t);if(n){var i=jh(n,r);if(i){var a=e.getFunctionFlags(n);if(1&a){var o=0!=(2&a);1048576&i.flags&&(i=Wg(i,(e=>!!AD(1,e,o))));var s=AD(1,i,0!=(2&a));if(!s)return;i=s}if(2&a){var c=Gg(i,hx);return c&&fu([c,Jb(c)])}return i}}})(t,r);case 224:return((t,r)=>{var n=e.getContainingFunction(t);if(n){var i=e.getFunctionFlags(n),a=jh(n,r);if(a){var o=0!=(2&i);return!t.asteriskToken&&1048576&a.flags&&(a=Wg(a,(e=>!!AD(1,e,o)))),t.asteriskToken?a:AD(0,a,o)}}})(n,r);case 218:return((e,t)=>{var r=ey(e,t);if(r){var n=hx(r);return n&&fu([n,Jb(n)])}})(n,r);case 208:case 209:return Vh(n,t);case 211:case 229:return e.isConstTypeReference(n.type)?o(n):Up(n.type);case 221:return((t,r)=>{var n=t.parent,i=n.left,a=n.operatorToken,o=n.right;switch(a.kind){case 63:case 76:case 75:case 77:return t===o?(t=>{var r,n,i=e.getAssignmentDeclarationKind(t);switch(i){case 0:case 4:var a=(t=>{if(t.symbol)return t.symbol;if(e.isIdentifier(t))return ig(t);if(e.isPropertyAccessExpression(t)){var r=jE(t.expression);return e.isPrivateIdentifier(t.name)?((e,t)=>{var r=Qy(t.escapedText,t);return r&&ev(e,r)})(r,t.name):sl(r,t.name.escapedText)}if(e.isElementAccessExpression(t)){var n=TE(t.argumentExpression);if(!Js(n))return;return sl(r=jE(t.expression),Ys(n))}})(t.left),o=a&&a.valueDeclaration;return o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))?(c=e.getEffectiveTypeAnnotationNode(o))&&u_(Up(c),ci(a).mapper)||(e.isPropertyDeclaration(o)?o.initializer&&jE(t.left):void 0):0===i?jE(t.left):Wh(t);case 5:if(Hh(t,i))return Wh(t);if(t.left.symbol){var s=t.left.symbol.valueDeclaration;if(!s)return;var c,l=e.cast(t.left,e.isAccessExpression);if(c=e.getEffectiveTypeAnnotationNode(s))return Up(c);if(e.isIdentifier(l.expression)){var d=l.expression,u=mi(d,d.escapedText,111551,void 0,d.escapedText,!0);if(u){var p=u.valueDeclaration&&e.getEffectiveTypeAnnotationNode(u.valueDeclaration);if(p){var _=e.getElementOrPropertyAccessName(l);if(void 0!==_)return Kh(Up(p),_)}return}}return e.isInJSFile(s)?void 0:jE(t.left)}return jE(t.left);case 1:case 6:case 3:var f=null===(r=t.left.symbol)||void 0===r?void 0:r.valueDeclaration;case 2:f||(f=null===(n=t.symbol)||void 0===n?void 0:n.valueDeclaration);var m=f&&e.getEffectiveTypeAnnotationNode(f);return m?Up(m):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}})(n):void 0;case 56:case 60:var s=ey(n,r);return t===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(n))?jE(i):s;case 55:case 27:return t===o?ey(n,r):void 0;default:return}})(t,r);case 296:case 297:return Gh(n,r);case 298:return ey(n.parent,r);case 204:var i=n;return $h(Yh(i,r),e.indexOfNode(i.elements,t));case 222:return((e,t)=>{var r=e.parent;return e===r.whenTrue||e===r.whenFalse?ey(r,t):void 0})(t,r);case 233:return e.Debug.assert(223===n.parent.kind),((e,t)=>{if(210===e.parent.kind)return Vh(e.parent,t)})(n.parent,t);case 212:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?e.isJSDocTypeTag(a)&&e.isConstTypeReference(a.typeExpression.type)?o(n):Up(a.typeExpression.type):ey(n,r);case 230:return ey(n,r);case 271:return Yo(n);case 288:return((t,r)=>{var n=t.parent;return e.isJsxAttributeLike(n)?ey(t,r):e.isJsxElement(n)?((t,r,n)=>{var i=Yh(t.openingElement.tagName,n),a=Cy(Sy(t));if(i&&!Eo(i)&&a&&""!==a){var o=e.getSemanticJsxChildren(t.children),s=o.indexOf(r),c=Kh(i,a);return c&&(1===o.length?c:Gg(c,(e=>wf(e)?tp(e,Pp(s)):e),!0))}})(n,t,r):void 0})(n,r);case 285:case 287:return qh(n,r);case 280:case 279:return((t,r)=>e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r?t.parent.contextualType:zh(t,0))(n,r)}}function o(e){return ey(e,r)}}function ty(t){var r=e.findAncestor(t,(e=>!!e.inferenceContext));return r&&r.inferenceContext}function ry(t,r){return 0!==Vv(r)?((e,t)=>{var r=zb(e,He);r=ny(t,Sy(t),r);var n=Ey(N.IntrinsicAttributes,t);return xo(n)||(r=fc(n,r)),r})(t,r):((t,r)=>{var n,i=Sy(r),a=(n=i,Ty(N.ElementAttributesPropertyNameContainer,n)),o=void 0===a?zb(t,He):""===a?Ll(t):((e,t)=>{if(e.compositeSignatures){for(var r=[],n=0,i=e.compositeSignatures;n<i.length;n++){var a=Ll(i[n]);if(Eo(a))return a;var o=bo(a,t);if(!o)return;r.push(o)}return xu(r)}var s=Ll(e);return Eo(s)?s:bo(s,t)})(t,a);if(!o)return a&&e.length(r.attributes.properties)&&Jn(r,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(a)),He;if(Eo(o=ny(r,i,o)))return o;var s=o,c=Ey(N.IntrinsicClassAttributes,r);if(!xo(c)){var l=gs(c.symbol),d=Ll(t);s=fc(l?od(c,kl([d],l,Al(l),e.isInJSFile(r))):c,s)}var u=Ey(N.IntrinsicAttributes,r);return xo(u)||(s=fc(u,s)),s})(t,r)}function ny(t,r,n){var i,a=(i=r)&&ui(i.exports,N.LibraryManagedAttributes,788968);if(a){var o=Rs(a),s=(e=>{if(hy(e.tagName))return Jl(cb(e,t=Ny(e)));var t,r=TE(e.tagName);return 128&r.flags?(t=ky(r,e))?Jl(cb(e,t)):Ue:r})(t);if(524288&a.flags){var c=ci(a).typeParameters;if(e.length(c)>=2)return pd(a,kl([s,n],c,2,e.isInJSFile(t)))}if(e.length(o.typeParameters)>=2)return od(o,kl([s,n],o.typeParameters,2,e.isInJSFile(t)))}return n}function iy(t,r){var n=ll(t,0),i=e.filter(n,(t=>!((t,r)=>{for(var n=0;n<r.parameters.length;n++){var i=r.parameters[n];if(i.initializer||i.questionToken||i.dotDotDotToken||xl(i))break}return r.parameters.length&&e.parameterIsThisKeyword(r.parameters[0])&&n--,!Bb(t)&&Rb(t)<n})(t,r)));return 1===i.length?i[0]:(t=>e.getStrictOptionValue(H,"noImplicitAny")?e.reduceLeft(t,((t,r)=>t!==r&&t?pc(t.typeParameters,r.typeParameters)?((t,r)=>{var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=Kp(r.typeParameters,t.typeParameters));var a=t.declaration,o=((e,t,r)=>{for(var n=Rb(e),i=Rb(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=Bb(e)||Bb(t),l=c&&!Bb(a),d=new Array(s+(l?1:0)),u=0;u<s;u++){var p=Ob(a,u);a===t&&(p=u_(p,r));var _=Ob(o,u)||He;o===t&&(_=u_(_,r));var f=fu([p,_]),m=c&&!l&&u===s-1,g=u>=Lb(a)&&u>=Lb(o),h=u>=n?void 0:Nb(e,u),y=u>=i?void 0:Nb(t,u),v=Zn(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||"arg".concat(u));v.type=m?Gd(f):f,d[u]=v}if(l){var b=Zn(1,"args");b.type=Gd(Ib(o,s)),o===t&&(b.type=u_(b.type,r)),d[s]=b}return d})(t,r,n),s=ic(a,i,((e,t,r)=>e&&t?dm(e,fu([cs(e),u_(cs(t),r)])):e||t)(t.thisParameter,r.thisParameter,n),o,void 0,void 0,Math.max(t.minArgumentCount,r.minArgumentCount),39&(t.flags|r.flags));return s.compositeKind=2097152,s.compositeSignatures=e.concatenate(2097152===t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(s.mapper=2097152===t.compositeKind&&t.mapper&&t.compositeSignatures?Qp(t.mapper,n):n),s})(t,r):void 0:t)):void 0)(i)}function ay(t){return e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t)?oy(t):void 0}function oy(t){e.Debug.assert(169!==t.kind||e.isObjectLiteralMethod(t));var r=wl(t);if(r)return r;var n=Yh(t,1);if(n){if(!(1048576&n.flags))return iy(n,t);for(var i,a=0,o=n.types;a<o.length;a++){var s=iy(o[a],t);if(s)if(i){if(!xf(i[0],s,!1,!0,!0,E_))return;i.push(s)}else i=[s]}return i?1===i.length?i[0]:oc(i[0],i):void 0}}function sy(e){return 203===e.kind&&!!e.initializer||221===e.kind&&63===e.operatorToken.kind}function cy(t,r,n){for(var i=t.elements,a=i.length,o=[],s=[],c=Yh(t,void 0),l=e.isAssignmentTarget(t),d=wE(t),u=!1,p=0;p<a;p++){var _=i[p];if(225===_.kind){W<2&&fT(_,H.downlevelIteration?1536:1024);var f=HE(_.expression,r,n);if(wf(f))o.push(f),s.push(8);else if(l){var m=gl(f,Qe)||oD(65,f,Ke,void 0,!1)||He;o.push(m),s.push(4)}else o.push(aD(33,f,Ke,_.expression)),s.push(4)}else if(ne&&227===_.kind)u=!0,o.push($e),s.push(2);else{var g=FE(_,r,$h(c,o.length),n);if(o.push(Oo(g,!0,u)),s.push(u?2:1),c&&zg(c,Of)&&r&&2&r&&!(4&r)&&g_(_)){var h=ty(t);e.Debug.assert(h),Am(h,_,g)}}}return l?Zd(o,s):n||d||c&&zg(c,Of)?ly(Zd(o,s,d)):ly(Gd(o.length?fu(e.sameMap(o,((e,t)=>8&s[t]?np(e,Qe)||Re:e)),2):$?dt:Je,d))}function ly(t){if(!(4&e.getObjectFlags(t)))return t;var r=t.literalType;return r||((r=t.literalType=sd(t)).objectFlags|=147456),r}function dy(t){switch(t.kind){case 162:return(e=>uE(uy(e),296))(t);case 79:return e.isNumericLiteralName(t.escapedText);case 8:case 10:return e.isNumericLiteralName(t.text);default:return!1}}function uy(t){var r=li(t.expression);if(!r.resolvedType){if((e.isTypeLiteralNode(t.parent.parent)||e.isClassLike(t.parent.parent)||e.isInterfaceDeclaration(t.parent.parent))&&e.isBinaryExpression(t.expression)&&101===t.expression.operatorToken.kind&&172!==t.parent.kind&&173!==t.parent.kind)return r.resolvedType=Ue;if(r.resolvedType=HE(t.expression),e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&e.isClassExpression(t.parent.parent)){var n=Sh(e.getEnclosingBlockScopeContainer(t.parent.parent));n&&(li(n).flags|=65536,li(t).flags|=524288,li(t.parent.parent).flags|=524288)}(98304&r.resolvedType.flags||!uE(r.resolvedType,402665900)&&!T_(r.resolvedType,ft))&&Jn(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return r.resolvedType}function py(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r[0];return e.isKnownSymbol(t)||n&&e.isNamedDeclaration(n)&&e.isComputedPropertyName(n.name)&&uE(uy(n.name),4096)}function _y(t,r,n,i){for(var a,o,s,c=[],l=r;l<n.length;l++){var d=n[l];(i===Ye&&!py(d)||i===Qe&&(s=null===(o=(a=d).declarations)||void 0===o?void 0:o[0],e.isNumericLiteralName(a.escapedName)||s&&e.isNamedDeclaration(s)&&dy(s.name))||i===ot&&py(d))&&c.push(cs(n[l]))}return ql(i,c.length?fu(c,2):Ke,wE(t))}function fy(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=ci(t);if(!r.immediateTarget){var n=Ai(t);if(!n)return e.Debug.fail();r.immediateTarget=Hi(n,!0)}return r.immediateTarget}function my(t){var r=Yf(Gg(t,Kc));return!!(126615553&r.flags||3145728&r.flags&&e.every(r.types,my))}function gy(t){return e.stringContains(t,"-")}function hy(t){return 79===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function yy(e,t){return e.initializer?FE(e.initializer,t):rt}function vy(e,t){for(var r=[],n=0,i=e.children;n<i.length;n++){var a=i[n];if(11===a.kind)a.containsOnlyTriviaWhiteSpaces||r.push(Ye);else{if(288===a.kind&&!a.expression)continue;r.push(FE(a,t))}}return r}function by(t,r,n){for(var i=0,a=Lc(t);i<a.length;i++){var o=a[i];if(!(16777216&o.flags)){var s=r.get(o.escapedName);if(s){var c=Jn(s.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(s.escapedName));e.addRelatedInfo(c,e.createDiagnosticForNode(n,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function Ey(e,t){var r=Sy(t),n=r&&_a(r),i=n&&ui(n,e,788968);return i?Rs(i):Ue}function xy(t){var r=li(t);if(!r.resolvedSymbol){var n=Ey(N.IntrinsicElements,t);if(xo(n))return Q&&Jn(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(N.IntrinsicElements)),r.resolvedSymbol=Pe;if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=sl(n,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):gl(n,Ye)?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(Jn(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+N.IntrinsicElements),r.resolvedSymbol=Pe)}return r.resolvedSymbol}function Dy(t){var r=t&&e.getSourceFileOfNode(t),n=r&&li(r);if(!n||!1!==n.jsxImplicitImportContainer){if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;var i=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(H,r),H);if(i){var a=ia(t,i,e.getEmitModuleResolutionKind(H)===e.ModuleResolutionKind.Classic?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,t),o=a&&a!==Pe?ha(Ki(a)):void 0;return n&&(n.jsxImplicitImportContainer=o||!1),o}}}function Sy(e){var t=e&&li(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=Dy(e);if(!r||r===Pe){var n=Vn(e);r=mi(e,n,1920,void 0,n,!1)}if(r){var i=Ki(ui(_a(Ki(r)),N.JSX,1920));if(i&&i!==Pe)return t&&(t.jsxNamespace=i),i}t&&(t.jsxNamespace=!1)}var a=Ki(Pd(N.JSX,1920,void 0));return a!==Pe?a:void 0}function Ty(t,r){var n=r&&ui(r.exports,t,788968),i=n&&Rs(n),a=i&&Lc(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&n.declarations&&Jn(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Cy(e){return Ty(N.ElementChildrenAttributeNameContainer,e)}function Ay(t,r){if(4&t.flags)return[Lr];if(128&t.flags){var n=ky(t,r);return n?[cb(r,n)]:(Jn(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+N.IntrinsicElements),e.emptyArray)}var i=Yc(t),a=ll(i,1);return 0===a.length&&(a=ll(i,0)),0===a.length&&1048576&i.flags&&(a=uc(e.map(i.types,(e=>Ay(e,r))))),a}function ky(t,r){var n=Ey(N.IntrinsicElements,r);if(!xo(n)){var i=t.value,a=sl(n,e.escapeLeadingUnderscores(i));return a?cs(a):gl(n,Ye)||void 0}return Re}function Ny(t){e.Debug.assert(hy(t.tagName));var r=li(t);if(!r.resolvedJsxElementAttributesType){var n=xy(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=cs(n)||Ue:2&r.jsxFlags?r.resolvedJsxElementAttributesType=gl(Ey(N.IntrinsicElements,t),Ye)||Ue:r.resolvedJsxElementAttributesType=Ue}return r.resolvedJsxElementAttributesType}function wy(e){var t=Ey(N.ElementClass,e);if(!xo(t))return t}function Fy(e){return Ey(N.Element,e)}function Py(e){var t=Fy(e);if(t)return fu([t,qe])}function Iy(t){var r,n=e.isJsxOpeningLikeElement(t);if(n&&(t=>{(t=>{if(e.isPropertyAccessExpression(t)){var r=t;do{var n=a(r.name);if(n)return n;r=r.expression}while(e.isPropertyAccessExpression(r));var i=a(r);if(i)return i}function a(t){if(e.isIdentifier(t)&&-1!==e.idText(t).indexOf(":"))return zT(t,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(t.tagName),xT(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(287!==a.kind){var o=a.name,s=a.initializer;if(r.get(o.escapedText))return zT(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(r.set(o.escapedText,!0),s&&288===s.kind&&!s.expression)return zT(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}})(t),r=t,0===(H.jsx||0)&&Jn(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===Fy(r)&&Q&&Jn(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),!Dy(t)){var i=kn&&2===H.jsx?e.Diagnostics.Cannot_find_name_0:void 0,a=Vn(t),o=n?t.tagName:t,s=void 0;if(e.isJsxOpeningFragment(t)&&"null"===a||(s=mi(o,a,111551,i,a,!0)),s&&(s.isReferenced=67108863,2097152&s.flags&&!qi(s)&&Yi(s)),e.isJsxOpeningFragment(t)){var c=zn(e.getSourceFileOfNode(t));c&&mi(o,c,111551,i,c,!0)}}if(n){var l=t,d=ub(l);mb(d,t),((t,r,n)=>{if(1===t)(i=Py(n))&&Q_(r,i,In,n.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,o);else if(0===t)(a=wy(n))&&Q_(r,a,In,n.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,o);else{var i=Py(n),a=wy(n);if(!i||!a)return;Q_(r,fu([i,a]),In,n.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,o)}function o(){var t=e.getTextOfNode(n.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,t)}})(Vv(l),Ll(d),l)}}function Oy(e,t,r){if(524288&e.flags){if(Mc(e,t)||vl(e,t)||$s(t)&&ml(e,Ye)||r&&gy(t))return!0}else if(3145728&e.flags&&My(e))for(var n=0,i=e.types;n<i.length;n++)if(Oy(i[n],t,r))return!0;return!1}function My(t){return!!(524288&t.flags&&!(512&e.getObjectFlags(t))||67108864&t.flags||1048576&t.flags&&e.some(t.types,My)||2097152&t.flags&&e.every(t.types,My))}function Ry(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function Ly(t){if(8192&t.flags||4&e.getCheckFlags(t))return!0;if(e.isInJSFile(t.valueDeclaration)){var r=t.valueDeclaration.parent;return r&&e.isBinaryExpression(r)&&3===e.getAssignmentDeclarationKind(r)}}function By(e,t,r,n,i,a){return void 0===a&&(a=!0),Uy(e,t,r,n,i,a?161===e.kind?e.right:200===e.kind?e:203===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function Uy(t,r,n,i,a,o){var s,c,l=e.getDeclarationModifierFlagsFromSymbol(a,n);if(r){if(W<2&&jy(a))return o&&Jn(o,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&l)return o&&Jn(o,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Qa(a),eo(gf(a))),!1}if(128&l&&jy(a)&&(e.isThisProperty(t)||e.isThisInitializedObjectBindingExpression(t)||e.isObjectBindingPattern(t.parent)&&e.isThisInitializedDeclaration(t.parent.parent))&&(c=e.getClassLikeDeclarationOfSymbol(va(a)))&&(s=t,e.findAncestor(s,(t=>!!(e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t))||!(!e.isClassLike(t)&&!e.isFunctionLikeDeclaration(t))&&"quit"))))return o&&Jn(o,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Qa(a),e.getTextOfIdentifierOrLiteral(c.name)),!1;if(!(24&l))return!0;if(8&l)return!!xS(t,c=e.getClassLikeDeclarationOfSymbol(va(a)))||(o&&Jn(o,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Qa(a),eo(gf(a))),!1);if(r)return!0;var d=ES(t,(e=>yf(Rs(ya(e)),a,n)));return!d&&(d=(d=(t=>{var r=(t=>{var r=e.getThisContainer(t,!1);return r&&e.isFunctionLike(r)?e.getThisParameter(r):void 0})(t),n=(null==r?void 0:r.type)&&Up(r.type);if(n&&262144&n.flags&&(n=Uc(n)),n&&7&e.getObjectFlags(n))return us(n)})(t))&&yf(d,a,n),32&l||!d)?(o&&Jn(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Qa(a),eo(gf(a)||i)),!1):!!(32&l)||(262144&i.flags&&(i=i.isThisType?Uc(i):Wc(i)),!(!i||!ps(i,d))||(o&&Jn(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Qa(a),eo(d),eo(i)),!1))}function jy(e){return!!mf(e,(e=>!(8192&e.flags)))}function Vy(e){return Gy(HE(e),e)}function zy(e){return!!(50331648&Eg(e))}function Hy(e){return zy(e)?tm(e):e}function Wy(t,r){Jn(t,16777216&r?33554432&r?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function Ky(t,r){Jn(t,16777216&r?33554432&r?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function Jy(t,r,n){if($&&2&t.flags)return Jn(r,e.Diagnostics.Object_is_of_type_unknown),Ue;var i=Eg(t);if(50331648&i){n(r,i);var a=tm(t);return 229376&a.flags?Ue:a}return t}function Gy(e,t){return Jy(e,t,Wy)}function $y(t,r){var n=Gy(t,r);return 16384&n.flags&&Jn(r,e.Diagnostics.Object_is_possibly_undefined),n}function qy(e,t){return 32&e.flags?((e,t)=>{var r=HE(e.expression),n=am(r,e.expression);return im(rv(e,e.expression,Gy(n,e.expression),e.name,t),e,n!==r)})(e,t):rv(e,e.expression,Vy(e.expression),e.name,t)}function Xy(t,r){var n=e.isPartOfTypeQuery(t)&&e.isThisIdentifier(t.left)?Gy(Nh(t.left),t.left):Vy(t.left);return rv(t,t.left,n,t.right,r)}function Yy(t){for(;212===t.parent.kind;)t=t.parent;return e.isCallOrNewExpression(t.parent)&&t.parent.expression===t}function Qy(t,r){for(var n=e.getContainingClass(r);n;n=e.getContainingClass(n)){var i=n.symbol,a=e.getSymbolNameForPrivateIdentifier(i,t),o=i.members&&i.members.get(a)||i.exports&&i.exports.get(a);if(o)return o}}function Zy(t){if(e.isExpressionNode(t)){var r=li(t);return void 0===r.resolvedSymbol&&(r.resolvedSymbol=Qy(t.escapedText,t)),r.resolvedSymbol}}function ev(e,t){return sl(e,t.escapedName)}function tv(t,r){return(Ro(r)||e.isThisProperty(t)&&Lo(r))&&e.getThisContainer(t,!0)===Bo(r)}function rv(t,r,n,i,a){var s,c,l=li(r).resolvedSymbol,d=e.getAssignmentTargetKind(t),u=Yc(0!==d||Yy(t)?hm(n):n),p=Eo(u)||u===lt;if(e.isPrivateIdentifier(i)){W<99&&(0!==d&&fT(t,1048576),1!==d&&fT(t,524288));var _=Qy(i.escapedText,i);if(d&&_&&_.valueDeclaration&&e.isMethodDeclaration(_.valueDeclaration)&&zT(i,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(i)),p){if(_)return xo(u)?Ue:u;if(!e.getContainingClass(i))return zT(i,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Re}if(!(s=_?ev(n,_):void 0)&&((t,r,n)=>{var i,a=Lc(t);a&&e.forEach(a,(t=>{var n=t.valueDeclaration;if(n&&e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name)&&n.name.escapedText===r.escapedText)return i=t,!0}));var s=bi(r);if(i){var c=e.Debug.checkDefined(i.valueDeclaration),l=e.Debug.checkDefined(e.getContainingClass(c));if(null==n?void 0:n.valueDeclaration){var d=n.valueDeclaration,u=e.getContainingClass(d);if(e.Debug.assert(!!u),e.findAncestor(u,(e=>l===e))){var p=Jn(r,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,s,eo(t));return e.addRelatedInfo(p,e.createDiagnosticForNode(d,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,s),e.createDiagnosticForNode(c,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,s)),!0}}return Jn(r,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,s,bi(l.name||o)),!0}return!1})(n,i,_))return Ue;s&&65536&s.flags&&!(32768&s.flags)&&1!==d&&Jn(t,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(p)return e.isIdentifier(r)&&l&&Dh(l,t),xo(u)?Ue:u;s=sl(u,i.escapedText,!1,161===t.kind)}if(e.isIdentifier(r)&&l&&(H.isolatedModules||!s||!(WS(s)||8&s.flags&&299===t.parent.kind)||e.shouldPreserveConstEnums(H)&&xh(t))&&Dh(l,t),s){Yn(s)&&zu(t,s)&&s.declarations&&Qn(i,s.declarations,i.escapedText),((t,r,n)=>{var i,a=t.valueDeclaration;if(a&&!e.getSourceFileOfNode(r).isDeclarationFile){var o=e.idText(n);!av(r)||(t=>e.isPropertyDeclaration(t)&&t.questionToken)(a)||e.isAccessExpression(r)&&e.isAccessExpression(r.expression)||pi(a,n)||e.isMethodDeclaration(a)&&32&e.getCombinedModifierFlags(a)||!H.useDefineForClassFields&&(e=>{if(!(32&e.parent.flags))return!1;for(var t=cs(e.parent);;){if(!(t=t.symbol&&ov(t)))return!1;var r=sl(t,e.escapedName);if(r&&r.valueDeclaration)return!0}})(t)?257!==a.kind||178===r.parent.kind||16777216&a.flags||pi(a,n)||(i=Jn(n,e.Diagnostics.Class_0_used_before_its_declaration,o)):i=Jn(n,e.Diagnostics.Property_0_is_used_before_its_initialization,o),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,o))}})(s,t,i),gv(s,t,hv(r,l)),li(t).resolvedSymbol=s;var f=e.isWriteAccess(t);if(By(t,106===r.kind,f,u,s),oE(t,s,d))return Jn(i,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(i)),Ue;c=tv(t,s)?Le:f?ss(s):cs(s)}else{var m=e.isPrivateIdentifier(i)||0!==d&&$u(n)&&!e.isThisTypeParameter(n)?void 0:vl(u,i.escapedText);if(!m||!m.type){var g=nv(t,n.symbol,!0);return!g&&ju(n)?Re:n.symbol===le?(le.exports.has(i.escapedText)&&418&le.exports.get(i.escapedText).flags?Jn(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(i.escapedText),eo(n)):Q&&Jn(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,eo(n)),Re):(i.escapedText&&!xi(t)&&sv(i,e.isThisTypeParameter(n)?u:n,g),Ue)}m.isReadonly&&(e.isAssignmentTarget(t)||e.isDeleteTarget(t))&&Jn(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,eo(u)),c=H.noUncheckedIndexedAccess&&!e.isAssignmentTarget(t)?fu([m.type,Ke]):m.type,H.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(t)&&Jn(i,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(i.escapedText)),m.declaration&&268435456&e.getCombinedNodeFlags(m.declaration)&&Qn(i,[m.declaration],i.escapedText)}return iv(t,s,c,i,a)}function nv(t,r,n){var i=e.getSourceFileOfNode(t);if(i&&void 0===H.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){var a=e.forEach(null==r?void 0:r.declarations,e.getSourceFileOfNode);return!(i!==a&&a&&di(a)||n&&r&&32&r.flags||t&&n&&e.isPropertyAccessExpression(t)&&108===t.expression.kind)}return!1}function iv(t,r,n,i,a){var o=e.getAssignmentTargetKind(t);if(1===o)return om(n,!!(r&&16777216&r.flags));if(r&&!(98311&r.flags)&&!(8192&r.flags&&1048576&n.flags)&&!cS(r.declarations))return n;if(n===Le)return jo(t,r);n=Eh(n,t,a);var s=!1;if($&&Y&&e.isAccessExpression(t)&&108===t.expression.kind){var c=r&&r.valueDeclaration;if(c&&WD(c)&&!e.isStatic(c)){var l=mh(t);171!==l.kind||l.parent!==c.parent||16777216&c.flags||(s=!0)}}else $&&r&&r.valueDeclaration&&e.isPropertyAccessExpression(r.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(r.valueDeclaration)&&mh(t)===mh(r.valueDeclaration)&&(s=!0);var d=fh(t,n,s?em(n):n);return s&&!W_(n)&&W_(d)?(Jn(i,e.Diagnostics.Property_0_is_used_before_being_assigned,Qa(r)),n):o?jf(d):d}function av(t){return!!e.findAncestor(t,(t=>{switch(t.kind){case 167:return!0;case 296:case 169:case 172:case 173:case 298:case 162:case 233:case 288:case 285:case 286:case 287:case 280:case 228:case 291:return!1;case 214:case 238:return!(!e.isBlock(t.parent)||!e.isClassStaticBlockDeclaration(t.parent.parent))||"quit";default:return!e.isExpressionNode(t)&&"quit"}}))}function ov(e){var t=Ss(e);if(0!==t.length)return xu(t)}function sv(t,r,n){var i,a;if(!e.isPrivateIdentifier(t)&&1048576&r.flags&&!(131068&r.flags))for(var o=0,s=r.types;o<s.length;o++){var c=s[o];if(!sl(c,t.escapedText)&&!vl(c,t.escapedText)){i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),eo(c));break}}if(cv(t.escapedText,r)){var l=e.declarationNameToString(t),d=eo(r);i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,d,d+"."+l)}else{var u=dx(r);if(u&&sl(u,t.escapedText))i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),eo(r)),a=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);else{var p=e.declarationNameToString(t),_=eo(r),f=((t,r)=>{var n=Yc(r).symbol;if(n)for(var i=e.getScriptTargetFeatures(),a=0,o=e.getOwnKeys(i);a<o.length;a++){var s=o[a],c=i[s][e.symbolName(n)];if(void 0!==c&&e.contains(c,t))return s}})(p,r);if(void 0!==f)i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,p,_,f);else{var m=dv(t,r);if(void 0!==m){var g=e.symbolName(m),h=n?e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;i=e.chainDiagnosticMessages(i,h,p,_,g),a=m.valueDeclaration&&e.createDiagnosticForNode(m.valueDeclaration,e.Diagnostics._0_is_declared_here,g)}else{var y=(t=>{return H.lib&&!H.lib.includes("dom")&&(n=t=>t.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(t.symbol.escapedName)),3145728&(r=t).flags?e.every(r.types,n):n(r))&&z_(t);var r,n})(r)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;i=e.chainDiagnosticMessages(ol(i,r),y,p,_)}}}}var v=e.createDiagnosticForNodeFromMessageChain(t,i);a&&e.addRelatedInfo(v,a),Gn(!n||i.code!==e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,v)}function cv(t,r){var n=r.symbol&&sl(cs(r.symbol),t);return void 0!==n&&!!n.valueDeclaration&&e.isStatic(n.valueDeclaration)}function lv(e,t){return mv(e,Lc(t),106500)}function dv(t,r){var n=Lc(r);if("string"!=typeof t){var i=t.parent;e.isPropertyAccessExpression(i)&&(n=e.filter(n,(e=>yv(i,r,e)))),t=e.idText(t)}return mv(t,n,111551)}function uv(t,r){var n=e.isString(t)?t:e.idText(t),i=Lc(r),a="for"===n?e.find(i,(t=>"htmlFor"===e.symbolName(t))):"class"===n?e.find(i,(t=>"className"===e.symbolName(t))):void 0;return null!=a?a:mv(n,i,111551)}function pv(t,r){var n=dv(t,r);return n&&e.symbolName(n)}function _v(t,r,n){return e.Debug.assert(void 0!==r,"outername should always be defined"),gi(t,r,n,void 0,r,!1,!1,!0,((t,n,i)=>{var a;return e.Debug.assertEqual(r,n,"name should equal outerName"),ui(t,n,i)||(a=t===se?e.mapDefined(["string","number","boolean","object","bigint","symbol"],(e=>t.has(e.charAt(0).toUpperCase()+e.slice(1))?Zn(524288,e):void 0)).concat(e.arrayFrom(t.values())):e.arrayFrom(t.values()),mv(e.unescapeLeadingUnderscores(n),a,i))}))}function fv(t,r){return r.exports&&mv(e.idText(t),da(r),2623475)}function mv(t,r,n){return e.getSpellingSuggestion(t,r,(t=>{var r=e.symbolName(t);if(!e.startsWith(r,'"')){if(t.flags&n)return r;if(2097152&t.flags){var i=(e=>{if(ci(e).aliasTarget!==Ie)return Ji(e)})(t);if(i&&i.flags&n)return r}}}))}function gv(t,r,n){var i=t&&106500&t.flags&&t.valueDeclaration;if(i){var a=e.hasEffectiveModifier(i,8),o=t.valueDeclaration&&e.isNamedDeclaration(t.valueDeclaration)&&e.isPrivateIdentifier(t.valueDeclaration.name);if((a||o)&&(!r||!e.isWriteOnlyAccess(r)||65536&t.flags)){if(n){var s=e.findAncestor(r,e.isFunctionLikeDeclaration);if(s&&s.symbol===t)return}(1&e.getCheckFlags(t)?ci(t).target:t).isReferenced=67108863}}}function hv(t,r){return 108===t.kind||!!r&&e.isEntityNameExpression(t)&&r===ig(e.getFirstIdentifier(t))}function yv(e,t,r){return bv(e,206===e.kind&&106===e.expression.kind,!1,t,r)}function vv(e,t,r,n){if(Eo(n))return!0;var i=sl(n,r);return!!i&&bv(e,t,!1,n,i)}function bv(t,r,n,i,a){if(Eo(i))return!0;if(a.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(a.valueDeclaration)){var o=e.getContainingClass(a.valueDeclaration);return!e.isOptionalChain(t)&&!!e.findAncestor(t,(e=>e===o))}return Uy(t,r,n,i,a)}function Ev(t){var r=t.initializer;if(255===r.kind){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name))return ya(n)}else if(79===r.kind)return ig(r)}function xv(t,r,n){var i=0!==e.getAssignmentTargetKind(t)||Yy(t)?hm(r):r,a=t.argumentExpression,o=HE(a);if(xo(i)||i===lt)return i;if(_E(i)&&!e.isStringLiteralLike(a))return Jn(a,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Ue;var s=np(i,(t=>{var r,n=e.skipParentheses(t);if(79===n.kind){var i=ig(n);if(3&i.flags)for(var a=t,o=t.parent;o;){if(243===o.kind&&a===o.statement&&Ev(o)===i&&1===fl(r=jE(o.expression)).length&&ml(r,Qe))return!0;a=o,o=o.parent}}return!1})(a)?Qe:o,e.isAssignmentTarget(t)?4|($u(i)&&!e.isThisTypeParameter(i)?2:0):32,t)||Ue;return ix(iv(t,li(t).resolvedSymbol,s,a,n),t)}function Dv(t){return e.isCallOrNewExpression(t)||e.isTaggedTemplateExpression(t)||e.isJsxOpeningLikeElement(t)}function Sv(t){return Dv(t)&&e.forEach(t.typeArguments,lS),210===t.kind?HE(t.template):e.isJsxOpeningLikeElement(t)?HE(t.attributes):165!==t.kind&&e.forEach(t.arguments,(e=>{HE(e)})),Lr}function Tv(e){return Sv(e),Br}function Cv(e){return!!e&&(225===e.kind||232===e.kind&&e.isSpread)}function Av(t){return e.findIndex(t,Cv)}function kv(e){return!!(16384&e.flags)}function Nv(e){return!!(49155&e.flags)}function wv(t,r,n,i){var a;void 0===i&&(i=!1);var o=!1,s=Rb(n),c=Lb(n);if(210===t.kind)if(a=r.length,223===t.template.kind){var l=e.last(t.template.templateSpans);o=e.nodeIsMissing(l.literal)||!!l.literal.isUnterminated}else{var d=t.template;e.Debug.assert(14===d.kind),o=!!d.isUnterminated}else if(165===t.kind)a=Jv(t,n);else if(e.isJsxOpeningLikeElement(t)){if(o=t.attributes.end===t.end)return!0;a=0===c?r.length:1,s=0===r.length?s:1,c=Math.min(c,1)}else{if(!t.arguments)return e.Debug.assert(209===t.kind),0===Lb(n);a=i?r.length+1:r.length,o=t.arguments.end===t.end;var u=Av(r);if(u>=0)return u>=Lb(n)&&(Bb(n)||u<Rb(n))}if(!Bb(n)&&a>s)return!1;if(o||a>=c)return!0;for(var p=a;p<c;p++)if(131072&Wg(Ib(n,p),e.isInJSFile(t)&&!$?Nv:kv).flags)return!1;return!0}function Fv(t,r){var n=e.length(t.typeParameters),i=Al(t.typeParameters);return!e.some(r)||r.length>=i&&r.length<=n}function Pv(e){return Ov(e,0,!1)}function Iv(e){return Ov(e,0,!1)||Ov(e,1,!1)}function Ov(e,t,r){if(524288&e.flags){var n=Ic(e);if(r||0===n.properties.length&&0===n.indexInfos.length){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 Mv(t,r,n,i){var a=Sm(t.typeParameters,t,0,i),o=Ub(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return xm(s?r_(r,s):r,t,((e,t)=>{qm(a.inferences,e,t)})),n||Dm(r,t,((e,t)=>{qm(a.inferences,e,t,128)})),Vl(t,rg(a),e.isInJSFile(r.declaration))}function Rv(t){if(!t)return st;var r=HE(t);return e.isOptionalChainRoot(t.parent)?tm(r):e.isOptionalChain(t.parent)?nm(r):r}function Lv(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return((e,t,r,n)=>{var i=ry(t,e),a=SE(e.attributes,i,n,r);return qm(n.inferences,a,i),rg(n)})(t,r,i,a);if(165!==t.kind){var o=e.every(r.typeParameters,(e=>!!qc(e))),s=ey(t,o?8:0);if(s){var c=Ll(r);if(Fm(c)){var l=ty(t);if(o||ey(t,8)===s){var d=u_(s,wm(((t,r)=>(void 0===r&&(r=0),t&&Tm(e.map(t.inferences,Nm),t.signature,t.flags|r,t.compareTypes)))(l,1))),u=Pv(d),p=u&&u.typeParameters?Jl(zl(u,u.typeParameters)):d;qm(a.inferences,p,c,128)}var _=Sm(r.typeParameters,r,a.flags),f=u_(s,l&&l.returnMapper);qm(_.inferences,f,c),a.returnMapper=e.some(_.inferences,RE)?wm((t=>{var r=e.filter(t.inferences,RE);return r.length?Tm(e.map(r,Nm),t.signature,t.flags,t.compareTypes):void 0})(_)):void 0}}}var m=jb(r),g=m?Math.min(Rb(r)-1,n.length):n.length;if(m&&262144&m.flags){var h=e.find(a.inferences,(e=>e.typeParameter===m));h&&(h.impliedArity=e.findIndex(n,Cv,g)<0?n.length-g:void 0)}var y=Ol(r);if(y&&Fm(y)){var v=Hv(t);qm(a.inferences,Rv(v),y)}for(var b=0;b<g;b++){var E=n[b];if(227!==E.kind&&!(32&i&&jm(E))){var x=Ib(r,b);if(Fm(x)){var D=SE(E,x,a,i);qm(a.inferences,D,x)}}}if(m&&Fm(m)){var S=Uv(n,g,n.length,m,a,i);qm(a.inferences,S,m)}return rg(a)}function Bv(e){return 1048576&e.flags?Gg(e,Bv):1&e.flags||kf(Wc(e)||e)?e:Kf(e)?Zd(ld(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):Zd([e],[8])}function Uv(t,r,n,i,a,o){if(r>=n-1&&Cv(u=t[n-1]))return Bv(232===u.kind?u.type:SE(u.expression,i,a,o));for(var s=[],c=[],l=[],d=r;d<n;d++){var u;if(Cv(u=t[d])){var p=232===u.kind?u.type:HE(u.expression);wf(p)?(s.push(p),c.push(8)):(s.push(aD(33,p,Ke,225===u.kind?u.expression:u)),c.push(4))}else{var _=tp(i,Pp(d-r),256),f=SE(u,_,a,o),m=dE(_,406978556);s.push(m?Np(f):Vf(f)),c.push(1)}232===u.kind&&u.tupleNameSource&&l.push(u.tupleNameSource)}return Zd(s,c,!1,e.length(l)===e.length(s)?l:void 0)}function jv(t,r,n,i){for(var a,o=e.isInJSFile(t.declaration),s=t.typeParameters,c=kl(e.map(r,Up),s,Al(s),o),l=0;l<r.length;l++){e.Debug.assert(void 0!==s[l],"Should not call checkTypeArguments with too many type arguments");var d=Uc(s[l]);if(d){var u=n&&i?()=>e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1):void 0,p=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;a||(a=Kp(s,c));var _=c[l];if(!N_(_,rc(u_(d,a),_),n?r[l]:void 0,p,u))return}}return c}function Vv(t){if(hy(t.tagName))return 2;var r=Yc(HE(t.tagName));return e.length(ll(r,1))?0:e.length(ll(r,0))?1:2}function zv(t,r,n,i,a,o,s){var c={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(t))return((t,r,n,i,a,o,s)=>{var c=ry(r,t),l=SE(t.attributes,c,void 0,i);return(()=>{var r;if(Dy(t))return!0;var n=e.isJsxOpeningElement(t)||e.isJsxSelfClosingElement(t)&&!hy(t.tagName)?HE(t.tagName):void 0;if(!n)return!0;var i=ll(n,0);if(!e.length(i))return!0;var o=uT(t);if(!o)return!0;var c=ea(o,111551,!0,!1,t);if(!c)return!0;var l=ll(cs(c),0);if(!e.length(l))return!0;for(var d=!1,u=0,p=0,_=l;p<_.length;p++){var f=ll(Ib(_[p],0),0);if(e.length(f))for(var m=0,g=f;m<g.length;m++){var h=g[m];if(d=!0,Bb(h))return!0;var y=Rb(h);y>u&&(u=y)}}if(!d)return!0;for(var v=1/0,b=0,E=i;b<E.length;b++){var x=Lb(E[b]);x<v&&(v=x)}if(v<=u)return!0;if(a){var D=e.createDiagnosticForNode(t.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(t.tagName),v,e.entityNameToString(o),u),S=null===(r=CS(t.tagName))||void 0===r?void 0:r.valueDeclaration;S&&e.addRelatedInfo(D,e.createDiagnosticForNode(S,e.Diagnostics._0_is_declared_here,e.entityNameToString(t.tagName))),s&&s.skipLogging&&(s.errors||(s.errors=[])).push(D),s.skipLogging||kn.add(D)}return!1})()&&F_(l,c,n,a?t.tagName:void 0,t.attributes,void 0,o,s)})(t,n,i,a,o,s,c)?void 0:(e.Debug.assert(!o||!!c.errors,"jsx should have errors when reporting errors"),c.errors||e.emptyArray);var l=Ol(n);if(l&&l!==st&&209!==t.kind){var d=Hv(t),u=Rv(d),p=o?d||t:void 0,_=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Q_(u,l,i,p,_,s,c))return e.Debug.assert(!o||!!c.errors,"this parameter should have errors when reporting errors"),c.errors||e.emptyArray}for(var f=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,m=jb(n),g=m?Math.min(Rb(n)-1,r.length):r.length,h=0;h<g;h++){var y=r[h];if(227!==y.kind){var v=Ib(n,h),b=SE(y,v,void 0,a),E=4&a?um(b):b;if(!F_(E,v,i,o?y:void 0,y,f,s,c))return e.Debug.assert(!o||!!c.errors,"parameter should have errors when reporting errors"),S(y,E,v),c.errors||e.emptyArray}}if(m){var x=Uv(r,g,r.length,m,void 0,a),D=r.length-g;if(p=o?0===D?t:1===D?r[g]:e.setTextRangePosEnd(Wv(t,x),r[g].pos,r[r.length-1].end):void 0,!Q_(x,m,i,p,f,void 0,c))return e.Debug.assert(!o||!!c.errors,"rest parameter should have errors when reporting errors"),S(p,x,m),c.errors||e.emptyArray}return;function S(t,r,n){if(t&&o&&c.errors&&c.errors.length){if(lx(n))return;var a=lx(r);a&&$_(a,n,i)&&e.addRelatedInfo(c.errors[0],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await))}}}function Hv(t){var r=208===t.kind?t.expression:210===t.kind?t.tag:void 0;if(r){var n=e.skipOuterExpressions(r);if(e.isAccessExpression(n))return n.expression}}function Wv(t,r,n,i){var a=e.parseNodeFactory.createSyntheticExpression(r,n,i);return e.setTextRange(a,t),e.setParent(a,t),a}function Kv(t){if(210===t.kind){var r=t.template,n=[Wv(r,Dr||(Dr=Id("TemplateStringsArray",0,!0)||Tt))];return 223===r.kind&&e.forEach(r.templateSpans,(e=>{n.push(e.expression)})),n}if(165===t.kind)return(t=>{var r=t.parent,n=t.expression;switch(r.kind){case 257:case 226:return[Wv(n,cs(ya(r)))];case 164:var i=r.parent;return[Wv(n,171===r.parent.kind?cs(ya(i)):Ue),Wv(n,Re),Wv(n,Qe)];case 167:case 169:case 172:case 173:var a=167!==r.kind&&0!==W;return[Wv(n,wS(r)),Wv(n,FS(r)),Wv(n,a?Jd(AS(r)):Re)]}return e.Debug.fail()})(t);if(e.isJsxOpeningLikeElement(t))return t.attributes.properties.length>0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=Av(i);if(a>=0){for(var o=i.slice(0,a),s=t=>{var r=i[t],n=225===r.kind&&(Zr?HE(r.expression):TE(r.expression));n&&Kf(n)?e.forEach(ld(n),((e,t)=>{var i,a=n.target.elementFlags[t],s=Wv(r,4&a?Gd(e):e,!!(12&a),null===(i=n.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)})):o.push(r)},c=a;c<i.length;c++)s(c);return o}return i}function Jv(t,r){switch(t.parent.kind){case 257:case 226:return 1;case 167:return 2;case 169:case 172:case 173:return 0===W||r.parameters.length<=2?2:3;case 164:return 3;default:return e.Debug.fail()}}function Gv(t,r){var n,i,a=e.getSourceFileOfNode(t);if(e.isPropertyAccessExpression(t.expression)){var o=e.getErrorSpanForNode(a,t.expression.name);n=o.start,i=r?o.length:t.end-n}else{var s=e.getErrorSpanForNode(a,t.expression);n=s.start,i=r?s.length:t.end-n}return{start:n,length:i,sourceFile:a}}function $v(t,r,n,i,a,o){if(e.isCallExpression(t)){var s=Gv(t),c=s.sourceFile,l=s.start,d=s.length;return e.createFileDiagnostic(c,l,d,r,n,i,a,o)}return e.createDiagnosticForNode(t,r,n,i,a,o)}function qv(t,r,n){var i,a=Av(n);if(a>-1)return e.createDiagnosticForNode(n[a],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var o,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY,u=0,p=r;u<p.length;u++){var _=p[u],f=Lb(_),m=Rb(_);f<s&&(s=f,o=_),c=Math.max(c,m),f<n.length&&f>l&&(l=f),n.length<m&&m<d&&(d=m)}var g=e.some(r,Bb),h=g?s:s<c?s+"-"+c:s,y=!g&&1===h&&0===n.length&&(t=>{if(!e.isCallExpression(t)||!e.isIdentifier(t.expression))return!1;var r=mi(t.expression,t.expression.escapedText,111551,void 0,void 0,!1),n=null==r?void 0:r.valueDeclaration;if(!(n&&e.isParameter(n)&&e.isFunctionExpressionOrArrowFunction(n.parent)&&e.isNewExpression(n.parent.parent)&&e.isIdentifier(n.parent.parent.expression)))return!1;var i=Vd(!1);return!!i&&CS(n.parent.parent.expression,!0)===i})(t);if(y&&e.isInJSFile(t))return $v(t,e.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);var v=g?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:y?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(s<n.length&&n.length<c)return $v(t,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,n.length,l,d);if(n.length<s){var b=$v(t,v,h,n.length),E=null===(i=null==o?void 0:o.declaration)||void 0===i?void 0:i.parameters[o.thisParameter?n.length+1:n.length];if(E){var x=e.createDiagnosticForNode(E,e.isBindingPattern(E.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(E)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,E.name?e.isBindingPattern(E.name)?void 0:e.idText(e.getFirstIdentifier(E.name)):n.length);return e.addRelatedInfo(b,x)}return b}var D=e.factory.createNodeArray(n.slice(c)),S=e.first(D).pos,T=e.last(D).end;return T===S&&T++,e.setTextRangePosEnd(D,S,T),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),D,v,h,n.length)}function Xv(t,r,n,i,a,o){var s,c=210===t.kind,l=165===t.kind,d=e.isJsxOpeningLikeElement(t),u=!n;l||e.isSuperCall(t)||(s=t.typeArguments,(c||d||106!==t.expression.kind)&&e.forEach(s,lS));var p=n||[];if(((t,r,n)=>{var i,a,o,s,c=0,l=-1;e.Debug.assert(!r.length);for(var d=0,u=t;d<u.length;d++){var p=u[d],_=p.declaration&&ya(p.declaration),f=p.declaration&&p.declaration.parent;a&&_!==a?(o=c=r.length,i=f):i&&f===i?o+=1:(i=f,o=c),a=_,j(p)?(s=++l,c++):s=o,r.splice(s,0,n?sc(p,n):p)}})(r,p,a),!p.length)return u&&kn.add($v(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Tv(t);var _,m,g,h,y=Kv(t),v=1===p.length&&!p[0].typeParameters,b=l||v||!e.some(y,g_)?0:4;b|=32&i;var E=!!(16&i)&&208===t.kind&&t.arguments.hasTrailingComma;if(p.length>1&&(h=K(p,Fn,v,E)),h||(h=K(p,In,v,E)),h)return h;if(h=((t,r,n,i,a)=>(e.Debug.assert(r.length>0),pS(t),i||1===r.length||r.some((e=>!!e.typeParameters))?((t,r,n,i)=>{var a=((e,t)=>{for(var r=-1,n=-1,i=0;i<e.length;i++){var a=e[i],o=Rb(a);if(Bb(a)||o>=t)return i;o>n&&(n=o,r=i)}return r})(r,void 0===de?n.length:de),o=r[a],s=o.typeParameters;if(!s)return o;var c=Dv(t)?t.typeArguments:void 0,l=c?Hl(o,((e,t,r)=>{for(var n=e.map(AS);n.length>t.length;)n.pop();for(;n.length<t.length;)n.push(qc(t[n.length])||Uc(t[n.length])||tg(r));return n})(c,s,e.isInJSFile(t))):((t,r,n,i,a)=>Hl(n,Lv(t,n,i,12|a,Sm(r,n,e.isInJSFile(t)?2:0))))(t,s,o,n,i);return r[a]=l,l})(t,r,n,a):(t=>{var r,n=e.mapDefined(t,(e=>e.thisParameter));n.length&&(r=Qv(n,n.map(Ab)));for(var i=e.minAndMax(t,Yv),a=i.min,o=i.max,s=[],c=r=>{var n=e.mapDefined(t,(t=>U(t)?r<t.parameters.length-1?t.parameters[r]:e.last(t.parameters):r<t.parameters.length?t.parameters[r]:void 0));e.Debug.assert(0!==n.length),s.push(Qv(n,e.mapDefined(t,(e=>Ob(e,r)))))},l=0;l<o;l++)c(l);var d=e.mapDefined(t,(t=>U(t)?e.last(t.parameters):void 0)),u=0;if(0!==d.length){var p=Gd(fu(e.mapDefined(t,jl),2));s.push(Zv(d,p)),u|=1}return t.some(j)&&(u|=2),ic(t[0].declaration,void 0,r,s,xu(t.map(Ll)),void 0,a,u)})(r)))(t,p,y,!!n,i),li(t).resolvedSignature=h,u)if(_)if(1===_.length||_.length>3){var x,D=_[_.length-1];_.length>3&&(x=e.chainDiagnosticMessages(x,e.Diagnostics.The_last_overload_gave_the_following_error),x=e.chainDiagnosticMessages(x,e.Diagnostics.No_overload_matches_this_call));var S=zv(t,y,D,In,0,!0,(()=>x));if(S)for(var T=0,C=S;T<C.length;T++){var A=C[T];D.declaration&&_.length>3&&e.addRelatedInfo(A,e.createDiagnosticForNode(D.declaration,e.Diagnostics.The_last_overload_is_declared_here)),W(D,A),kn.add(A)}else e.Debug.fail("No error for last overload signature")}else{for(var k=[],N=0,w=Number.MAX_VALUE,F=0,P=0,I=r=>{var n=zv(t,y,r,In,0,!0,(()=>e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,P+1,p.length,Za(r))));n?(n.length<=w&&(w=n.length,F=P),N=Math.max(N,n.length),k.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),P++},O=0,M=_;O<M.length;O++)I(M[O]);var R=N>1?k[F]:e.flatten(k);e.Debug.assert(R.length>0,"No errors reported for 3 or fewer overload signatures");var L=e.chainDiagnosticMessages(e.map(R,e.createDiagnosticMessageChainFromDiagnostic),e.Diagnostics.No_overload_matches_this_call),B=f([],e.flatMap(R,(e=>e.relatedInformation)),!0),V=void 0;if(e.every(R,(e=>e.start===R[0].start&&e.length===R[0].length&&e.file===R[0].file))){var z=R[0];V={file:z.file,start:z.start,length:z.length,code:L.code,category:L.category,messageText:L,relatedInformation:B}}else V=e.createDiagnosticForNodeFromMessageChain(t,L,B);W(_[0],V),kn.add(V)}else if(m)kn.add(qv(t,[m],y));else if(g)jv(g,t.typeArguments,!0,o);else{var H=e.filter(r,(e=>Fv(e,s)));0===H.length?kn.add(((t,r,n)=>{var i=n.length;if(1===r.length){var a=Al((u=r[0]).typeParameters),o=e.length(u.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,a<o?a+"-"+o:a,i)}for(var s=-1/0,c=1/0,l=0,d=r;l<d.length;l++){var u,p=Al((u=d[l]).typeParameters);o=e.length(u.typeParameters),p>i?c=Math.min(c,p):o<i&&(s=Math.max(s,o))}return s!==-1/0&&c!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,s,c):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,s===-1/0?c:s,i)})(t,r,s)):l?o&&kn.add($v(t,o)):kn.add(qv(t,H,y))}return h;function W(t,r){var n,i,a=_,o=m,s=g,c=(null===(i=null===(n=t.declaration)||void 0===n?void 0:n.symbol)||void 0===i?void 0:i.declarations)||e.emptyArray,l=c.length>1?e.find(c,(t=>e.isFunctionLikeDeclaration(t)&&e.nodeIsPresent(t.body))):void 0;if(l){var d=Nl(l),u=!d.typeParameters;K([d],In,u)&&e.addRelatedInfo(r,e.createDiagnosticForNode(l,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}_=a,m=o,g=s}function K(r,n,a,o){if(void 0===o&&(o=!1),_=void 0,m=void 0,g=void 0,a){var c=r[0];if(e.some(s)||!wv(t,y,c,o))return;return zv(t,y,c,n,0,!1,void 0)?void(_=[c]):c}for(var l=0;l<r.length;l++)if(Fv(c=r[l],s)&&wv(t,y,c,o)){var d=void 0,u=void 0;if(c.typeParameters){var p=void 0;if(e.some(s)){if(!(p=jv(c,s,!1))){g=c;continue}}else u=Sm(c.typeParameters,c,e.isInJSFile(t)?2:0),p=Lv(t,c,y,8|b,u),b|=4&u.flags?8:0;if(d=Vl(c,p,e.isInJSFile(c.declaration),u&&u.inferredTypeParameters),jb(c)&&!wv(t,y,d,o)){m=d;continue}}else d=c;if(!zv(t,y,d,n,b,!1,void 0)){if(b){if(b=32&i,u&&(d=Vl(c,p=Lv(t,c,y,b,u),e.isInJSFile(c.declaration),u.inferredTypeParameters),jb(c)&&!wv(t,y,d,o))){m=d;continue}if(zv(t,y,d,n,b,!1,void 0)){(_||(_=[])).push(d);continue}}return r[l]=d,d}(_||(_=[])).push(d)}}}function Yv(e){var t=e.parameters.length;return U(e)?t-1:t}function Qv(e,t){return Zv(e,fu(t,2))}function Zv(t,r){return dm(e.first(t),r)}function eb(e){return!(!e.typeParameters||!tT(Ll(e)))}function tb(e,t,r,n){return Eo(e)||Eo(t)&&!!(262144&e.flags)||!r&&!n&&!(1048576&t.flags)&&!(131072&rl(t).flags)&&T_(e,Kt)}function rb(t,r,n){if(t.arguments&&W<1){var i=Av(t.arguments);i>=0&&Jn(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=Vy(t.expression);if(a===lt)return jr;if(xo(a=Yc(a)))return Tv(t);if(Eo(a))return t.typeArguments&&Jn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Sv(t);var o=ll(a,1);if(o.length){if(!((t,r)=>{if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedEffectiveModifierFlags(n,24);if(!i||171!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=Rs(n.parent.symbol);if(!xS(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=AS(s);if(ib(n.parent.symbol,c))return!0}return 8&i&&Jn(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,eo(o)),16&i&&Jn(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,eo(o)),!1}return!0})(t,o[0]))return Tv(t);if(nb(o,(e=>!!(4&e.flags))))return Jn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Tv(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,128)?(Jn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Tv(t)):Xv(t,o,r,n,0)}var c=ll(a,0);if(c.length){var l=Xv(t,c,r,n,0);return Q||(l.declaration&&!pb(l.declaration)&&Ll(l)!==st&&Jn(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Ol(l)===st&&Jn(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),l}return ob(t.expression,a,1),Tv(t)}function nb(t,r){return e.isArray(t)?e.some(t,(e=>nb(e,r))):1048576===t.compositeKind?e.some(t.compositeSignatures,r):r(t)}function ib(t,r){var n=Ss(r);if(!e.length(n))return!1;var i=n[0];if(2097152&i.flags){for(var a=mc(i.types),o=0,s=0,c=i.types;s<c.length;s++){var l=c[s];if(!a[o]&&3&e.getObjectFlags(l)){if(l.symbol===t)return!0;if(ib(t,l))return!0}o++}return!1}return i.symbol===t||ib(t,i)}function ab(t,r,n){var i,a=0===n,o=gx(r),s=o&&ll(o,n).length>0;if(1048576&r.flags){for(var c=!1,l=0,d=r.types;l<d.length;l++){var u=d[l];if(0!==ll(u,n).length){if(c=!0,i)break}else if(i||(i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,eo(u)),i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,eo(r))),c)break}c||(i=e.chainDiagnosticMessages(void 0,a?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,eo(r))),i||(i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,eo(r)))}else i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,eo(r));var p=a?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(t.parent)&&0===t.parent.arguments.length){var _=li(t).resolvedSymbol;_&&32768&_.flags&&(p=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(i,p),relatedMessage:s?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function ob(t,r,n,i){var a=ab(t,r,n),o=a.messageChain,s=a.relatedMessage,c=e.createDiagnosticForNodeFromMessageChain(t,o);if(s&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,s)),e.isCallExpression(t.parent)){var l=Gv(t.parent,!0),d=l.start,u=l.length;c.start=d,c.length=u}kn.add(c),sb(r,n,i?e.addRelatedInfo(c,i):c)}function sb(t,r,n){if(t.symbol){var i=ci(t.symbol).originatingImport;if(i&&!e.isImportCall(i)){var a=ll(cs(ci(t.symbol).target),r);if(!a||!a.length)return;e.addRelatedInfo(n,e.createDiagnosticForNode(i,e.Diagnostics.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))}}}function cb(t,r){var n=Sy(t),i=n&&_a(n),a=i&&ui(i,N.Element,788968),o=a&&oe.symbolToEntityName(a,788968,t),s=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,"props",void 0,oe.typeToTypeNode(r,t))],o?e.factory.createTypeReferenceNode(o,void 0):e.factory.createKeywordTypeNode(130)),c=Zn(1,"props");return c.type=r,ic(s,void 0,void 0,[c],a?Rs(a):Ue,void 0,1,0)}function lb(t,r,n){if(hy(t.tagName)){var i=Ny(t),a=cb(t,i);return w_(SE(t.attributes,ry(a,t),void 0,0),i,t.tagName,t.attributes),e.length(t.typeArguments)&&(e.forEach(t.typeArguments,lS),kn.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),t.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(t.typeArguments)))),a}var o=HE(t.tagName),s=Yc(o);if(xo(s))return Tv(t);var c=Ay(o,t);return tb(o,s,c.length,0)?Sv(t):0===c.length?(Jn(t.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(t.tagName)),Tv(t)):Xv(t,c,r,n,0)}function db(t,r,n){switch(t.kind){case 208:return((t,r,n)=>{if(106===t.expression.kind){var i=Ph(t.expression);if(Eo(i)){for(var a=0,o=t.arguments;a<o.length;a++)HE(o[a]);return Lr}if(!xo(i)){var s=e.getEffectiveBaseTypeNode(e.getContainingClass(t));if(s)return Xv(t,Es(i,s.typeArguments,s),r,n,0)}return Sv(t)}var c,l=HE(t.expression);if(e.isCallChain(t)){var d=am(l,t.expression);c=d===l?0:e.isOutermostOptionalChain(t)?16:8,l=d}else c=0;if((l=Jy(l,t.expression,Ky))===lt)return jr;var u=Yc(l);if(xo(u))return Tv(t);var p=ll(u,0),_=ll(u,1).length;if(tb(l,u,p.length,_))return!xo(l)&&t.typeArguments&&Jn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Sv(t);if(!p.length){if(_)Jn(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,eo(l));else{var f=void 0;if(1===t.arguments.length){var m=e.getSourceFileOfNode(t).text;e.isLineBreak(m.charCodeAt(e.skipTrivia(m,t.expression.end,!0)-1))&&(f=e.createDiagnosticForNode(t.expression,e.Diagnostics.Are_you_missing_a_semicolon))}ob(t.expression,u,0,f)}return Tv(t)}return 8&n&&!t.typeArguments&&p.some(eb)?(ME(t,n),Ur):p.some((t=>e.isInJSFile(t.declaration)&&!!e.getJSDocClassTag(t.declaration)))?(Jn(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,eo(l)),Tv(t)):Xv(t,p,r,n,c)})(t,r,n);case 209:return rb(t,r,n);case 210:return((t,r,n)=>{var i=HE(t.tag),a=Yc(i);if(xo(a))return Tv(t);var o=ll(a,0),s=ll(a,1).length;if(tb(i,a,o.length,s))return Sv(t);if(!o.length){if(e.isArrayLiteralExpression(t.parent)){var c=e.createDiagnosticForNode(t.tag,e.Diagnostics.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return kn.add(c),Tv(t)}return ob(t.tag,a,0),Tv(t)}return Xv(t,o,r,n,0)})(t,r,n);case 165:return((t,r,n)=>{var i=HE(t.expression),a=Yc(i);if(xo(a))return Tv(t);var o,s,c=ll(a,0),l=ll(a,1).length;if(tb(i,a,c.length,l))return Sv(t);if(o=t,(s=c).length&&e.every(s,(e=>0===e.minArgumentCount&&!U(e)&&e.parameters.length<Jv(o,e)))){var d=e.getTextOfNode(t.expression,!1);return Jn(t,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,d),Tv(t)}var u=(t=>{switch(t.parent.kind){case 257:case 226:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 164:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 167:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 169:case 172:case 173:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}})(t);if(!c.length){var p=ab(t.expression,a,0),_=e.chainDiagnosticMessages(p.messageChain,u),f=e.createDiagnosticForNodeFromMessageChain(t.expression,_);return p.relatedMessage&&e.addRelatedInfo(f,e.createDiagnosticForNode(t.expression,p.relatedMessage)),kn.add(f),sb(a,0,f),Tv(t)}return Xv(t,c,r,n,0,u)})(t,r,n);case 280:case 279:return lb(t,r,n)}throw e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function ub(e,t,r){var n=li(e),i=n.resolvedSignature;if(i&&i!==Ur&&!t)return i;n.resolvedSignature=Ur;var a=db(e,t,r||0);return a!==Ur&&(n.resolvedSignature=Qr===Zr?a:i),a}function pb(t){var r;if(!t||!e.isInJSFile(t))return!1;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?t:e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?t.initializer:void 0;if(n){if(e.getJSDocClassTag(t))return!0;var i=ya(n);return!!(null===(r=null==i?void 0:i.members)||void 0===r?void 0:r.size)}return!1}function _b(t,r){var n,i;if(r){var a=ci(r);if(!a.inferredClassSymbol||!a.inferredClassSymbol.has(O(t))){var o=e.isTransientSymbol(t)?t:ri(t);return o.exports=o.exports||e.createSymbolTable(),o.members=o.members||e.createSymbolTable(),o.flags|=32&r.flags,(null===(n=r.exports)||void 0===n?void 0:n.size)&&oi(o.exports,r.exports),(null===(i=r.members)||void 0===i?void 0:i.size)&&oi(o.members,r.members),(a.inferredClassSymbol||(a.inferredClassSymbol=new e.Map)).set(O(o),o),o}return a.inferredClassSymbol.get(O(t))}}function fb(t,r){if(t.parent){var n,i;if(e.isVariableDeclaration(t.parent)&&t.parent.initializer===t){if(!(e.isInJSFile(t)||e.isVarConst(t.parent)&&e.isFunctionLikeDeclaration(t)))return;n=t.parent.name,i=t.parent}else if(e.isBinaryExpression(t.parent)){var a=t.parent,o=t.parent.operatorToken.kind;if(63!==o||!r&&a.right!==t){if(!(56!==o&&60!==o||(e.isVariableDeclaration(a.parent)&&a.parent.initializer===a?(n=a.parent.name,i=a.parent):e.isBinaryExpression(a.parent)&&63===a.parent.operatorToken.kind&&(r||a.parent.right===a)&&(i=n=a.parent.left),n&&e.isBindableStaticNameExpression(n)&&e.isSameEntityName(n,a.left))))return}else i=n=a.left}else r&&e.isFunctionDeclaration(t)&&(n=t.name,i=t);if(i&&n&&(r||e.getExpandoInitializer(t,e.isPrototypeAccess(n))))return ya(i)}}function mb(t,r){if(t.declaration&&268435456&t.declaration.flags){var n=gb(r),i=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(r));a=n,o=t.declaration,s=i,c=Za(t),Xn(o,s?e.createDiagnosticForNode(a,e.Diagnostics.The_signature_0_of_1_is_deprecated,c,s):e.createDiagnosticForNode(a,e.Diagnostics._0_is_deprecated,c))}var a,o,s,c}function gb(t){switch((t=e.skipParentheses(t)).kind){case 208:case 165:case 209:return gb(t.expression);case 210:return gb(t.tag);case 280:case 279:return gb(t.tagName);case 207:return t.argumentExpression;case 206:return t.name;case 178:var r=t;return e.isQualifiedName(r.typeName)?r.typeName.right:r;default:return t}}function hb(t){if(!e.isCallExpression(t))return!1;var r=t.expression;if(e.isPropertyAccessExpression(r)&&"for"===r.name.escapedText&&(r=r.expression),!e.isIdentifier(r)||"Symbol"!==r.escapedText)return!1;var n=Ld(!1);return!!n&&n===mi(r,"Symbol",111551,void 0,void 0,!1)}function yb(t,r,n){var i=e.createSymbolTable(),a=Zn(2097152,"default");return a.parent=r,a.nameType=Fp("default"),a.aliasTarget=Ki(t),i.set("default",a),Ra(n,i,e.emptyArray,e.emptyArray,e.emptyArray)}function vb(e,t,r,n){if(Oi(n)&&e&&!xo(e)){var i=e;if(!i.defaultOnlyType){var a=yb(t,r);i.defaultOnlyType=a}return i.defaultOnlyType}}function bb(t,r,n,i){var a;if(G&&t&&!xo(t)){var o=t;if(!o.syntheticType)if(Mi(null===(a=n.declarations)||void 0===a?void 0:a.find(e.isSourceFile),n,!1,i)){var s=Zn(2048,"__type"),c=yb(r,n,s);s.type=c,o.syntheticType=my(t)?Sp(t,c,s,0,!1):c}else o.syntheticType=t;return o.syntheticType}return t}function Eb(t){if(!e.isRequireCall(t,!0))return!1;if(!e.isIdentifier(t.expression))return e.Debug.fail();var r=mi(t.expression,t.expression.escapedText,111551,void 0,void 0,!0);if(r===pe)return!0;if(2097152&r.flags)return!1;var n=16&r.flags?256:3&r.flags?254:0;if(0!==n){var i=e.getDeclarationOfKind(r,n);return!!i&&!!(16777216&i.flags)}return!1}function xb(e){switch(e.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 204:case 205:case 223:return!0;case 212:return xb(e.expression);case 219:var t=e.operator,r=e.operand;return 40===t&&(8===r.kind||9===r.kind)||39===t&&8===r.kind;case 206:case 207:var n=AS(e.expression).symbol;return n&&2097152&n.flags&&(n=Ji(n)),!!(n&&384&n.flags&&1===Fs(n))}return!1}function Db(t,r,n,i){var a=HE(n,i);if(e.isConstTypeReference(r))return xb(n)||Jn(n,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Np(a);lS(r),a=um(jf(a));var o=Up(r);return xo(o)||_((()=>{var r=hm(a);A_(o,r)||U_(a,o,t,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)})),o}function Sb(t){ST(t);var r=228===t.kind?HE(t.expression):e.isThisIdentifier(t.exprName)?Nh(t.exprName):HE(t.exprName),n=t.typeArguments;if(r===lt||xo(r)||!e.some(n))return r;var i,a=!1,o=function r(n){var o=!1,s=!1,l=function n(i){if(524288&i.flags){var a=Ic(i),l=c(a.callSignatures),d=c(a.constructSignatures);if(o||(o=0!==a.callSignatures.length||0!==a.constructSignatures.length),s||(s=0!==l.length||0!==d.length),l!==a.callSignatures||d!==a.constructSignatures){var u=Ra(void 0,a.members,l,d,a.indexInfos);return u.objectFlags|=8388608,u.node=t,u}}else if(58982400&i.flags){var p=Wc(i);if(p){var _=n(p);if(_!==p)return _}}else{if(1048576&i.flags)return Gg(i,r);if(2097152&i.flags)return xu(e.sameMap(i.types,n))}return i}(n);return a||(a=s),o&&!s&&(null!=i||(i=n)),l}(r),s=a?i:r;return s&&kn.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,eo(s))),o;function c(t){var r=e.filter(t,(e=>!!e.typeParameters&&Fv(e,n)));return e.sameMap(r,(t=>{var r=jv(t,n,!0);return r?Vl(t,r,e.isInJSFile(t.declaration)):t}))}}function Tb(t){switch(t.keywordToken){case 100:return Md();case 103:var r=Cb(t);return xo(r)?Ue:(t=>{var r=Zn(0,"NewTargetExpression"),n=Zn(4,"target",8);n.parent=r,n.type=t;var i=e.createSymbolTable([n]);return r.members=i,Ra(r,i,e.emptyArray,e.emptyArray,e.emptyArray)})(r);default:e.Debug.assertNever(t.keywordToken)}}function Cb(t){var r=e.getNewTargetContainer(t);return r?171===r.kind?cs(ya(r.parent)):cs(ya(r)):(Jn(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Ue)}function Ab(t){var r=cs(t);if($){var n=t.valueDeclaration;if(n&&e.hasInitializer(n))return em(r)}return r}function kb(t){return e.Debug.assert(e.isIdentifier(t.name)),t.name.escapedText}function Nb(e,t,r){var n=e.parameters.length-(U(e)?1:0);if(t<n)return e.parameters[t].escapedName;var i=e.parameters[n]||Pe,a=r||cs(i);if(Kf(a)){var o=a.target.labeledElementDeclarations,s=t-n;return o&&kb(o[s])||i.escapedName+"_"+s}return i.escapedName}function wb(t){return t.valueDeclaration&&e.isParameter(t.valueDeclaration)&&e.isIdentifier(t.valueDeclaration.name)}function Fb(t){return 197===t.kind||e.isParameter(t)&&t.name&&e.isIdentifier(t.name)}function Pb(e,t){var r=e.parameters.length-(U(e)?1:0);if(t<r){var n=e.parameters[t].valueDeclaration;return n&&Fb(n)?n:void 0}var i=e.parameters[r]||Pe,a=cs(i);if(Kf(a)){var o=a.target.labeledElementDeclarations;return o&&o[t-r]}return i.valueDeclaration&&Fb(i.valueDeclaration)?i.valueDeclaration:void 0}function Ib(e,t){return Ob(e,t)||Re}function Ob(e,t){var r=e.parameters.length-(U(e)?1:0);if(t<r)return Ab(e.parameters[t]);if(U(e)){var n=cs(e.parameters[r]),i=t-r;if(!Kf(n)||n.target.hasRestElement||i<n.target.fixedLength)return tp(n,Pp(i))}}function Mb(t,r){var n=Rb(t),i=Lb(t),a=Ub(t);if(a&&r>=n-1)return r===n-1?a:Gd(tp(a,Qe));for(var o=[],s=[],c=[],l=r;l<n;l++){!a||l<n-1?(o.push(Ib(t,l)),s.push(l<i?1:2)):(o.push(a),s.push(8));var d=Pb(t,l);d&&c.push(d)}return Zd(o,s,!1,e.length(c)===e.length(o)?c:void 0)}function Rb(e){var t=e.parameters.length;if(U(e)){var r=cs(e.parameters[t-1]);if(Kf(r))return t+r.target.fixedLength-(r.target.hasRestElement?0:1)}return t}function Lb(t,r){var n=1&r,i=2&r;if(i||void 0===t.resolvedMinArgumentCount){var a=void 0;if(U(t)){var o=cs(t.parameters[t.parameters.length-1]);if(Kf(o)){var s=e.findIndex(o.target.elementFlags,(e=>!(1&e))),c=s<0?o.target.fixedLength:s;c>0&&(a=t.parameters.length-1+c)}}if(void 0===a){if(!n&&32&t.flags)return 0;a=t.minArgumentCount}if(i)return a;for(var l=a-1;l>=0&&!(131072&Wg(Ib(t,l),kv).flags);l--)a=l;t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function Bb(e){if(U(e)){var t=cs(e.parameters[e.parameters.length-1]);return!Kf(t)||t.target.hasRestElement}return!1}function Ub(e){if(U(e)){var t=cs(e.parameters[e.parameters.length-1]);if(!Kf(t))return t;if(t.target.hasRestElement)return nu(t,t.target.fixedLength)}}function jb(e){var t=Ub(e);return!t||Tf(t)||Eo(t)||0!=(131072&rl(t).flags)?void 0:t}function Vb(e){return zb(e,ct)}function zb(e,t){return e.parameters.length>0?Ib(e,0):t}function Hb(t,r){var n=ci(t);if(n.type)r&&e.Debug.assertEqual(n.type,r,"Parameter symbol already has a cached type which differs from newly assigned type");else{var i=t.valueDeclaration;n.type=r||(i?$o(i,!0):cs(t)),i&&79!==i.name.kind&&(n.type===He&&(n.type=Go(i.name)),Wb(i.name,n.type))}}function Wb(t,r){for(var n=0,i=t.elements;n<i.length;n++){var a=i[n];if(!e.isOmittedExpression(a)){var o=Fo(a,r);79===a.name.kind?ci(ya(a)).type=o:Wb(a.name,o)}}}function Kb(e){var t=Ud(!0);return t!==wt?od(t,[e=hx(fx(e))||He]):He}function Jb(e){var t=jd(!0);return t!==wt?od(t,[e=hx(fx(e))||He]):He}function Gb(t,r){var n=Kb(r);return n===He?(Jn(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Ue):(Vd(!0)||Jn(t,e.isImportCall(t)?e.Diagnostics.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: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),n)}function $b(t,r){if(!t.body)return Ue;var n,i,a,o=e.getFunctionFlags(t),s=0!=(2&o),c=0!=(1&o),l=st;if(235!==t.body.kind)n=TE(t.body,r&&-9&r),s&&(n=fx(ux(n,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(c){var d=eE(t,r);d?d.length>0&&(n=fu(d,2)):l=ct;var u=((t,r)=>{var n=[],i=[],a=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,(t=>{var o,s=t.expression?HE(t.expression,r):Je;if(e.pushIfUnique(n,Xb(t,s,Re,a)),t.asteriskToken){var c=pD(s,a?19:17,t.expression);o=c&&c.nextType}else o=ey(t,void 0);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}})(t,r),p=u.yieldTypes,_=u.nextTypes;i=e.some(p)?fu(p,2):void 0,a=e.some(_)?xu(_):void 0}else{var f=eE(t,r);if(!f)return 2&o?Gb(t,ct):ct;if(0===f.length)return 2&o?Gb(t,st):st;n=fu(f,2)}if(n||i||a){if(i&&Em(t,i,3),n&&Em(t,n,1),a&&Em(t,a,2),n&&Lf(n)||i&&Lf(i)||a&&Lf(a)){var m=ay(t),g=m?m===Nl(t)?c?void 0:n:Qh(Ll(m),t,void 0):void 0;c?(i=Wf(i,g,0,s),n=Wf(n,g,1,s),a=Wf(a,g,2,s)):n=((e,t,r)=>(e&&Lf(e)&&(e=Hf(e,t?r?dx(t):t:void 0)),e))(n,g,s)}i&&(i=hm(i)),n&&(n=hm(n)),a&&(a=hm(a))}return c?qb(i||ct,n||l,a||Uh(2,t)||He,s):s?Kb(n||l):n||l}function qb(e,t,r,n){var i=n?Gr:$r,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||He,t=i.resolveIterationType(t,void 0)||He,r=i.resolveIterationType(r,void 0)||He,a===wt){var o=i.getGlobalIterableIteratorType(!1),s=o!==wt?gD(o,i):void 0,c=s?s.returnType:Re,l=s?s.nextType:Ke;return T_(t,c)&&T_(l,r)?o!==wt?Kd(o,[e]):(i.getGlobalIterableIteratorType(!0),Tt):(i.getGlobalGeneratorType(!0),Tt)}return Kd(a,[e,t,r])}function Xb(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?aD(i?19:17,r,n,a):r;return i?gx(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 Yb(e,t,r){for(var n=0,i=0;i<r.length;i++){var a=i<e||i>=t?r[i]:void 0;n|=void 0!==a?D.get(a)||32768:0}return n}function Qb(t){var r=li(t);return void 0!==r.isExhaustive?r.isExhaustive:r.isExhaustive=(t=>{if(216===t.expression.kind){var r=Ug(t);if(!r)return!1;var n=Kc(jE(t.expression.expression)),i=Yb(0,0,r);return 3&n.flags?556800==(556800&i):!zg(n,(e=>(Eg(e)&i)===i))}var a=jE(t.expression);if(!Uf(a))return!1;var o,s,c=Bg(t);return!(!c.length||e.some(c,Rf))&&(o=Gg(a,Np),s=c,1048576&o.flags?!e.forEach(o.types,(t=>!e.contains(s,t))):e.contains(s,o))})(t)}function Zb(e){return e.endFlowNode&&lh(e.endFlowNode)}function eE(t,r){var n=e.getFunctionFlags(t),i=[],a=Zb(t),o=!1;if(e.forEachReturnStatement(t.body,(s=>{var c=s.expression;if(c){var l=TE(c,r&&-9&r);2&n&&(l=fx(ux(l,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&l.flags&&(o=!0),e.pushIfUnique(i,l)}else a=!0})),0!==i.length||a||!o&&!(e=>{switch(e.kind){case 213:case 214:return!0;case 169:return 205===e.parent.kind;default:return!1}})(t))return!($&&i.length&&a)||pb(t)&&i.some((e=>e.symbol===t.symbol))||e.pushIfUnique(i,Ke),i}function tE(t,r){_((()=>{var n=e.getFunctionFlags(t),i=r&&ND(r,n);if((!i||!dE(i,16385))&&168!==t.kind&&!e.nodeIsMissing(t.body)&&235===t.body.kind&&Zb(t)){var a=512&t.flags,o=e.getEffectiveReturnTypeNode(t)||t;if(i&&131072&i.flags)Jn(o,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(i&&!a)Jn(o,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(i&&$&&!T_(Ke,i))Jn(o,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(H.noImplicitReturns){if(!i){if(!a)return;var s=Ll(Nl(t));if(wD(t,s))return}Jn(o,e.Diagnostics.Not_all_code_paths_return_a_value)}}}))}function rE(t,r){if(e.Debug.assert(169!==t.kind||e.isObjectLiteralMethod(t)),pS(t),e.isFunctionExpression(t)&&Gx(t,t.name),r&&4&r&&g_(t)){if(!e.getEffectiveReturnTypeNode(t)&&!e.hasContextSensitiveParameters(t)){var n=oy(t);if(n&&Fm(Ll(n))){var i=li(t);if(i.contextFreeType)return i.contextFreeType;var a=$b(t,r),o=ic(void 0,void 0,void 0,e.emptyArray,a,void 0,0,0),s=Ra(t.symbol,V,[o],e.emptyArray,e.emptyArray);return s.objectFlags|=262144,i.contextFreeType=s}}return Ft}return ET(t)||213!==t.kind||CT(t),((t,r)=>{var n=li(t);if(!(1024&n.flags)){var i=oy(t);if(!(1024&n.flags)){n.flags|=1024;var a=e.firstOrUndefined(ll(cs(ya(t)),0));if(!a)return;if(g_(t))if(i){var o=ty(t),s=void 0;if(r&&2&r){!((t,r,n)=>{for(var i=t.parameters.length-(U(t)?1:0),a=0;a<i;a++){var o=t.parameters[a].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&qm(n.inferences,Up(s),Ib(r,a))}}})(a,i,o);var c=Ub(i);c&&262144&c.flags&&(s=r_(i,o.nonFixingMapper))}s||(s=o?r_(i,o.mapper):i),((t,r)=>{if(r.typeParameters){if(t.typeParameters)return;t.typeParameters=r.typeParameters}r.thisParameter&&(!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=dm(r.thisParameter,void 0)),Hb(t.thisParameter,cs(r.thisParameter)));for(var n=t.parameters.length-(U(t)?1:0),i=0;i<n;i++){var a=t.parameters[i];e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||Hb(a,Ob(r,i))}U(t)&&((a=e.last(t.parameters)).valueDeclaration?!e.getEffectiveTypeAnnotationNode(a.valueDeclaration):65536&e.getCheckFlags(a))&&Hb(a,Mb(r,n))})(a,s)}else!(e=>{e.thisParameter&&Hb(e.thisParameter);for(var t=0,r=e.parameters;t<r.length;t++)Hb(r[t])})(a);if(i&&!Bl(t)&&!a.resolvedReturnType){var l=$b(t,r);a.resolvedReturnType||(a.resolvedReturnType=l)}GE(t)}}})(t,r),cs(ya(t))}function nE(e,t,r,n){if(void 0===n&&(n=!1),!T_(t,gt)){var i=n&&lx(t);return qn(e,!!i&&T_(i,gt),r),!1}return!0}function iE(t){if(!e.isCallExpression(t))return!1;if(!e.isBindableObjectDefinePropertyCall(t))return!1;var r=TE(t.arguments[2]);if(bo(r,"value")){var n=sl(r,"writable"),i=n&&cs(n);if(!i||i===et||i===tt)return!0;if(n&&n.valueDeclaration&&e.isPropertyAssignment(n.valueDeclaration)){var a=HE(n.valueDeclaration.initializer);if(a===et||a===tt)return!0}return!1}return!sl(r,"set")}function aE(t){return!!(8&e.getCheckFlags(t)||4&t.flags&&64&e.getDeclarationModifierFlagsFromSymbol(t)||3&t.flags&&2&Ry(t)||98304&t.flags&&!(65536&t.flags)||8&t.flags||e.some(t.declarations,iE))}function oE(t,r,n){var i,a;if(0===n)return!1;if(aE(r)){if(4&r.flags&&e.isAccessExpression(t)&&108===t.expression.kind){var o=e.getContainingFunction(t);if(!o||171!==o.kind&&!pb(o))return!0;if(r.valueDeclaration){var s=e.isBinaryExpression(r.valueDeclaration),c=o.parent===r.valueDeclaration.parent,l=o===r.valueDeclaration.parent,d=s&&(null===(i=r.parent)||void 0===i?void 0:i.valueDeclaration)===o.parent,u=s&&(null===(a=r.parent)||void 0===a?void 0:a.valueDeclaration)===o;return!(c||l||d||u)}}return!0}if(e.isAccessExpression(t)){var p=e.skipParentheses(t.expression);if(79===p.kind){var _=li(p).resolvedSymbol;if(2097152&_.flags){var f=Ai(_);return!!f&&268===f.kind}}}return!1}function sE(t,r,n){var i=e.skipOuterExpressions(t,7);return 79===i.kind||e.isAccessExpression(i)?!(32&i.flags&&(Jn(t,n),1)):(Jn(t,r),!1)}function cE(e){return dE(e,2112)?uE(e,3)||dE(e,296)?gt:Ze:Qe}function lE(e,t){if(dE(e,t))return!0;var r=Kc(e);return!!r&&dE(r,t)}function dE(e,t){if(e.flags&t)return!0;if(3145728&e.flags)for(var r=0,n=e.types;r<n.length;r++)if(dE(n[r],t))return!0;return!1}function uE(e,t,r){return!!(e.flags&t)||!(r&&114691&e.flags)&&(!!(296&t)&&T_(e,Qe)||!!(2112&t)&&T_(e,Ze)||!!(402653316&t)&&T_(e,Ye)||!!(528&t)&&T_(e,at)||!!(16384&t)&&T_(e,st)||!!(131072&t)&&T_(e,ct)||!!(65536&t)&&T_(e,qe)||!!(32768&t)&&T_(e,Ke)||!!(4096&t)&&T_(e,ot)||!!(67108864&t)&&T_(e,pt))}function pE(t,r,n){return 1048576&t.flags?e.every(t.types,(e=>pE(e,r,n))):uE(t,r,n)}function _E(t){return!!(16&e.getObjectFlags(t))&&!!t.symbol&&fE(t.symbol)}function fE(e){return 0!=(128&e.flags)}function mE(t,r,n,i,a){void 0===a&&(a=!1);var o=t.properties,s=o[n];if(296===s.kind||297===s.kind){var c=s.name,l=Nu(c);if(Js(l)){var d=sl(r,Ys(l));d&&(gv(d,s,a),By(s,!1,!0,r,d))}var u=Ao(s,tp(r,l,32,c));return hE(297===s.kind?s:s.initializer,u)}if(298===s.kind){if(!(n<o.length-1)){W<99&&fT(s,4);var p=[];if(i)for(var _=0,f=i;_<f.length;_++){var m=f[_];e.isSpreadAssignment(m)||p.push(m.name)}return u=So(r,p,r.symbol),vT(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),hE(s.expression,u)}Jn(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else Jn(s,e.Diagnostics.Property_assignment_expected)}function gE(t,r,n,i,a){var o=t.elements,s=o[n];if(227!==s.kind){if(225!==s.kind){var c=Pp(n);if(wf(r)){var l=np(r,c,32|(sy(s)?16:0),Wv(s,c))||Ue;return hE(s,Ao(s,sy(s)?xg(l,524288):l),a)}return hE(s,i,a)}if(n<o.length-1)Jn(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var d=s.expression;if(221!==d.kind||63!==d.operatorToken.kind)return vT(t.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),hE(d,Hg(r,Kf)?Gg(r,(e=>nu(e,n))):Gd(i),a);Jn(d.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function hE(t,r,n,i){var a;if(297===t.kind){var o=t;o.objectAssignmentInitializer&&(!$||16777216&Eg(HE(o.objectAssignmentInitializer))||(r=xg(r,524288)),((e,t,r,n,i)=>{var a=t.kind;if(63===a&&(205===e.kind||204===e.kind))return hE(e,HE(r,n),n,108===r.kind);bE(e,t,r,55===a||56===a||60===a?rD(e,n):HE(e,n),HE(r,n),void 0)})(o.name,o.equalsToken,o.objectAssignmentInitializer,n)),a=t.name}else a=t;return 221===a.kind&&63===a.operatorToken.kind&&(ie(a,n),a=a.left,$&&(r=xg(r,524288))),205===a.kind?((e,t,r)=>{var n=e.properties;if($&&0===n.length)return Gy(t,e);for(var i=0;i<n.length;i++)mE(e,t,i,n,r);return t})(a,r,i):204===a.kind?((e,t,r)=>{var n=e.elements;W<2&&H.downlevelIteration&&fT(e,512);for(var i=aD(193,t,Ke,e)||Ue,a=H.noUncheckedIndexedAccess?void 0:i,o=0;o<n.length;o++){var s=i;225===e.elements[o].kind&&(s=a=null!=a?a:aD(65,t,Ke,e)||Ue),gE(e,t,o,s,r)}return t})(a,r,n):((t,r,n)=>{var i=HE(t,n);return sE(t,298===t.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,298===t.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&w_(r,i,t,t),e.isPrivateIdentifierPropertyAccessExpression(t)&&fT(t.parent,1048576),r})(a,r,n)}function yE(t){switch((t=e.skipParentheses(t)).kind){case 79:case 10:case 13:case 210:case 223:case 14:case 8:case 9:case 110:case 95:case 104:case 153:case 213:case 226:case 214:case 204:case 205:case 216:case 230:case 279:case 278:return!0;case 222:return yE(t.whenTrue)&&yE(t.whenFalse);case 221:return!e.isAssignmentOperator(t.operatorToken.kind)&&yE(t.left)&&yE(t.right);case 219:case 220:switch(t.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 217:case 211:case 229:default:return!1}}function vE(e,t){return 0!=(98304&t.flags)||A_(e,t)}function bE(t,r,n,i,a,o){var s,c,l=r.kind;switch(l){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(i===lt||a===lt)return lt;i=Gy(i,t),a=Gy(a,n);var d=void 0;if(528&i.flags&&528&a.flags&&void 0!==(d=(e=>{switch(e){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}})(r.kind)))return Jn(o||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(d)),Qe;var u,p=nE(t,i,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),f=nE(n,a,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(uE(i,3)&&uE(a,3)||!dE(i,2112)&&!dE(a,2112))u=Qe;else if(T(i,a)){switch(l){case 49:case 72:N();break;case 42:case 67:W<3&&Jn(o,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}u=Ze}else N(T),u=Ue;return p&&f&&A(u),u;case 39:case 64:if(i===lt||a===lt)return lt;uE(i,402653316)||uE(a,402653316)||(i=Gy(i,t),a=Gy(a,n));var m=void 0;if(uE(i,296,!0)&&uE(a,296,!0)?m=Qe:uE(i,2112,!0)&&uE(a,2112,!0)?m=Ze:uE(i,402653316,!0)||uE(a,402653316,!0)?m=Ye:(Eo(i)||Eo(a))&&(m=xo(i)||xo(a)?Ue:Re),m&&!C(l))return m;if(!m){var g=402655727;return N(((e,t)=>uE(e,g)&&uE(t,g))),Re}return 64===l&&A(m),m;case 29:case 31:case 32:case 33:return C(l)&&(i=jf(Gy(i,t)),a=jf(Gy(a,n)),k(((e,t)=>A_(e,t)||A_(t,e)||T_(e,gt)&&T_(t,gt)))),at;case 34:case 35:case 36:case 37:if(e.isLiteralExpressionOfObject(t)||e.isLiteralExpressionOfObject(n)){var h=34===l||36===l;Jn(o,e.Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,h?"false":"true")}return k(((e,t)=>vE(e,t)||vE(t,e))),at;case 102:return((t,r,n,i)=>n===lt||i===lt?lt:(!Eo(n)&&pE(n,131068)&&Jn(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Eo(i)||IS(i)||S_(i,Kt)||Jn(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),at))(t,n,i,a);case 101:return((t,r,n,i)=>{if(n===lt||i===lt)return lt;e.isPrivateIdentifier(t)?(W<99&&fT(t,2097152),!li(t).resolvedSymbol&&e.getContainingClass(t)&&sv(t,i,nv(t,i.symbol,!0))):pE(n=Gy(n,t),402665900)||uE(n,407109632)||Jn(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol);var a=Bc(i=Gy(i,r));return(!pE(i,126091264)||a&&(uE(i,3145728)&&!pE(a,126091264)||!dE(a,126615552)))&&Jn(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),at})(t,n,i,a);case 55:case 76:var y=4194304&Eg(i)?fu([(c=$?i:jf(a),Gg(c,Qf)),a]):i;return 76===l&&A(a),y;case 56:case 75:var v=8388608&Eg(i)?fu([tm(Yf(i)),a],2):i;return 75===l&&A(a),v;case 60:case 77:var b=262144&Eg(i)?fu([tm(i),a],2):i;return 77===l&&A(a),b;case 63:var E=e.isBinaryExpression(t.parent)?e.getAssignmentDeclarationKind(t.parent):0;return((t,r)=>{if(2===t)for(var n=0,i=Oc(r);n<i.length;n++){var a=i[n],o=cs(a);if(o.symbol&&32&o.symbol.flags){var s=a.escapedName,c=mi(a.valueDeclaration,s,788968,void 0,s,!1);(null==c?void 0:c.declarations)&&c.declarations.some(e.isJSDocTypedefTag)&&(ii(c,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),a),ii(a,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),c))}}})(E,a),(r=>{var i;switch(r){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var a=ya(t),o=e.getAssignedExpandoInitializer(n);return!!o&&e.isObjectLiteralExpression(o)&&!!(null===(i=null==a?void 0:a.exports)||void 0===i?void 0:i.size);default:return!1}})(E)?(524288&a.flags&&(2===E||6===E||z_(a)||bg(a)||1&e.getObjectFlags(a))||A(a),i):(A(a),um(a));case 27:if(!H.allowUnreachableCode&&yE(t)&&(79!==(s=n).kind||"eval"!==s.escapedText)){var x=e.getSourceFileOfNode(t),D=x.text,S=e.skipTrivia(D,t.pos);x.parseDiagnostics.some((t=>t.code===e.Diagnostics.JSX_expressions_must_have_one_parent_element.code&&e.textSpanContainsPosition(t,S)))||Jn(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return a;default:return e.Debug.fail()}function T(e,t){return uE(e,2112)&&uE(t,2112)}function C(r){var o=lE(i,12288)?t:lE(a,12288)?n:void 0;return!o||(Jn(o,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r)),!1)}function A(r){e.isAssignmentOperator(l)&&_((()=>{if(sE(t,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&(!e.isIdentifier(t)||"exports"!==e.unescapeLeadingUnderscores(t.escapedText))){var a=void 0;if(ne&&e.isPropertyAccessExpression(t)&&dE(r,32768)){var o=bo(jE(t.expression),t.name.escapedText);tf(r,o)&&(a=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}w_(r,i,t,n,a)}}))}function k(e){return!e(i,a)&&(N(e),!0)}function N(t){var n,s=!1,c=o||r;if(t){var l=hx(i),d=hx(a);s=!(l===i&&d===a)&&!(!l||!d)&&t(l,d)}var u=i,p=a;!s&&t&&(u=(n=((e,t,r)=>{var n=e,i=t,a=jf(e),o=jf(t);return r(a,o)||(n=a,i=o),[n,i]})(i,a,t))[0],p=n[1]);var _=to(u,p),f=_[0],m=_[1];((t,n,i,a)=>{var o;switch(r.kind){case 36:case 34:o="false";break;case 37:case 35:o="true"}if(o)return qn(t,n,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,o,i,a)})(c,s,f,m)||qn(c,s,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),f,m)}}function EE(t){var r=t.parent;return e.isParenthesizedExpression(r)&&EE(r)||e.isElementAccessExpression(r)&&r.argumentExpression===t}function xE(t){for(var r=[t.head.text],n=[],i=0,a=t.templateSpans;i<a.length;i++){var o=a[i],s=HE(o.expression);lE(s,12288)&&Jn(o.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),r.push(o.literal.text),n.push(T_(s,ht)?s:Ye)}return wE(t)||EE(t)||zg(ey(t,void 0)||He,DE)?Ru(r,n):Ye}function DE(e){return!!(134217856&e.flags||58982400&e.flags&&dE(Wc(e)||He,402653316))}function SE(t,r,n,i){var a=(t=>286!==t.kind||e.isJsxSelfClosingElement(t.parent)?t:t.parent.parent)(t),o=a.contextualType,s=a.inferenceContext;try{a.contextualType=r,a.inferenceContext=n;var c=HE(t,1|i|(n?2:0));return n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0),dE(c,2944)&&NE(c,Qh(r,t,void 0))?Np(c):c}finally{a.contextualType=o,a.inferenceContext=s}}function TE(e,t){if(t&&0!==t)return HE(e,t);var r=li(e);if(!r.resolvedType){var n=Qr,i=Ir;Qr=Zr,Ir=void 0,r.resolvedType=HE(e,t),Ir=i,Qr=n}return r.resolvedType}function CE(t){return 211===(t=e.skipParentheses(t,!0)).kind||229===t.kind||e.isJSDocTypeAssertion(t)}function AE(t,r,n){var i=e.getEffectiveInitializer(t),a=VE(i)||(n?SE(i,n,void 0,r||0):TE(i,r));return e.isParameter(t)&&202===t.name.kind&&Kf(a)&&!a.target.hasRestElement&&dd(a)<t.name.elements.length?((t,r)=>{for(var n=r.elements,i=ld(t).slice(),a=t.target.elementFlags.slice(),o=dd(t);o<n.length;o++){var s=n[o];(o<n.length-1||203!==s.kind||!s.dotDotDotToken)&&(i.push(!e.isOmittedExpression(s)&&sy(s)?Jo(s,!1,!1):Re),a.push(2),e.isOmittedExpression(s)||sy(s)||bm(s,Re))}return Zd(i,a,t.target.readonly)})(a,t.name):a}function kE(t,r){var n=2&e.getCombinedNodeFlags(t)||e.isDeclarationReadonly(t)?r:Vf(r);if(e.isInJSFile(t)){if(Pf(n))return bm(t,Re),Re;if(If(n))return bm(t,tr),tr}return n}function NE(t,r){if(r){if(3145728&r.flags){var n=r.types;return e.some(n,(e=>NE(t,e)))}if(58982400&r.flags){var i=Wc(r)||He;return dE(i,4)&&dE(t,128)||dE(i,8)&&dE(t,256)||dE(i,64)&&dE(t,2048)||dE(i,4096)&&dE(t,8192)||NE(t,i)}return!!(406847616&r.flags&&dE(t,128)||256&r.flags&&dE(t,256)||2048&r.flags&&dE(t,2048)||512&r.flags&&dE(t,512)||8192&r.flags&&dE(t,8192))}return!1}function wE(t){var r=t.parent;return e.isAssertionExpression(r)&&e.isConstTypeReference(r.type)||e.isJSDocTypeAssertion(r)&&e.isConstTypeReference(e.getJSDocTypeAssertionType(r))||(e.isParenthesizedExpression(r)||e.isArrayLiteralExpression(r)||e.isSpreadElement(r))&&wE(r)||(e.isPropertyAssignment(r)||e.isShorthandPropertyAssignment(r)||e.isTemplateSpan(r))&&wE(r.parent)}function FE(t,r,n,i){var a=HE(t,r,i);return wE(t)||e.isCommonJsExportedExpression(t)?Np(a):CE(t)?a:Hf(a,Qh(2===arguments.length?ey(t,void 0):n,t,void 0))}function PE(e,t){return 162===e.name.kind&&uy(e.name),FE(e.initializer,t)}function IE(e,t){return PT(e),162===e.name.kind&&uy(e.name),OE(e,rE(e,t),t)}function OE(t,r,n){if(n&&10&n){var i=Ov(r,0,!0),a=Ov(r,1,!0),o=i||a;if(o&&o.typeParameters){var s=Yh(t,2);if(s){var c=Ov(tm(s),i?0:1,!1);if(c&&!c.typeParameters){if(8&n)return ME(t,n),Ft;var l=ty(t),d=l.signature&&Ll(l.signature),u=d&&Iv(d);if(u&&!u.typeParameters&&!e.every(l.inferences,RE)){var p=((t,r)=>{for(var n,i,a=[],o=0,s=r;o<s.length;o++){var c=(_=s[o]).symbol.escapedName;if(LE(t.inferredTypeParameters,c)||LE(a,c)){var l=Fa(Zn(262144,BE(e.concatenate(t.inferredTypeParameters,a),c)));l.target=_,n=e.append(n,_),i=e.append(i,l),a.push(l)}else a.push(_)}if(i)for(var d=Kp(n,i),u=0,p=i;u<p.length;u++){var _;(_=p[u]).mapper=d}return a})(l,o.typeParameters),_=zl(o,p),f=e.map(l.inferences,(e=>km(e.typeParameter)));if(xm(_,c,((e,t)=>{qm(f,e,t,0,!0)})),e.some(f,RE)&&(Dm(_,c,((e,t)=>{qm(f,e,t)})),!((e,t)=>{for(var r=0;r<e.length;r++)if(RE(e[r])&&RE(t[r]))return!0;return!1})(l.inferences,f)))return((e,t)=>{for(var r=0;r<e.length;r++)!RE(e[r])&&RE(t[r])&&(e[r]=t[r])})(l.inferences,f),l.inferredTypeParameters=e.concatenate(l.inferredTypeParameters,p),Jl(_)}return Jl(Mv(o,c,l))}}}}return r}function ME(e,t){2&t&&(ty(e).flags|=4)}function RE(e){return!(!e.candidates&&!e.contraCandidates)}function LE(t,r){return e.some(t,(e=>e.symbol.escapedName===r))}function BE(e,t){for(var r=t.length;r>1&&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(!LE(e,a))return a}}function UE(e){var t=Pv(e);if(t&&!t.typeParameters)return Ll(t)}function jE(t){var r=VE(t);if(r)return r;if(134217728&t.flags&&Ir){var n=Ir[I(t)];if(n)return n}var i=rn,a=HE(t);return rn!==i&&((Ir||(Ir=[]))[I(t)]=a,e.setNodeFlags(t,134217728|t.flags)),a}function VE(t){var r=e.skipParentheses(t,!0);if(e.isJSDocTypeAssertion(r)){var n=e.getJSDocTypeAssertionType(r);if(!e.isConstTypeReference(n))return Up(n)}if(r=e.skipParentheses(t),!e.isCallExpression(r)||106===r.expression.kind||e.isRequireCall(r,!0)||hb(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return Up(r.type);if(8===t.kind||10===t.kind||110===t.kind||95===t.kind)return HE(t)}else if(n=e.isCallChain(r)?(e=>{var t=HE(e.expression),r=am(t,e.expression),n=UE(t);return n&&im(n,e,r!==t)})(r):UE(Vy(r.expression)))return n}function zE(e){var t=li(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=Re;try{return t.contextFreeType=HE(e,4)}finally{e.contextualType=r}}function HE(t,n,i){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});var a=s;s=t,T=0;var o=OE(t,((t,n,i)=>{var a=t.kind;if(r)switch(a){case 226:case 213:case 214:r.throwIfCancellationRequested()}switch(a){case 79:return((t,r)=>{if(e.isThisInTypeQuery(t))return Nh(t);var n=ig(t);if(n===Pe)return Ue;if(n===ue){if(av(t))return Jn(t,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),Ue;var i=e.getContainingFunction(t);return W<2&&(214===i.kind?Jn(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(i,256)&&Jn(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)),li(i).flags|=8192,cs(n)}(t=>{var r,n=t.parent;if(n){if(e.isPropertyAccessExpression(n)&&n.expression===t)return!1;if(e.isExportSpecifier(n)&&n.isTypeOnly)return!1;var i=null===(r=n.parent)||void 0===r?void 0:r.parent;if(i&&e.isExportDeclaration(i)&&i.isTypeOnly)return!1}return!0})(t)&&Dh(n,t);var a=Sa(n),o=eS(a,t);Yn(o)&&zu(t,o)&&o.declarations&&Qn(t,o.declarations,t.escapedText);var s=a.valueDeclaration;if(s&&32&a.flags)if(257===s.kind&&e.nodeIsDecorated(s))for(i=e.getContainingClass(t);void 0!==i;){if(i===s&&i.name!==t){li(s).flags|=16777216,li(t).flags|=33554432;break}i=e.getContainingClass(i)}else if(226===s.kind)for(i=e.getThisContainer(t,!1);305!==i.kind;){if(i.parent===s){(e.isPropertyDeclaration(i)&&e.isStatic(i)||e.isClassStaticBlockDeclaration(i))&&(li(s).flags|=16777216,li(t).flags|=33554432);break}i=e.getThisContainer(i,!1)}!((t,r)=>{if(!(W>=2||0==(34&r.flags)||!r.valueDeclaration||e.isSourceFile(r.valueDeclaration)||292===r.valueDeclaration.parent.kind)){var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=((t,r)=>!!e.findAncestor(t,(t=>t===r?"quit":e.isFunctionLike(t)||t.parent&&e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&t.parent.initializer===t)))(t,n),a=Sh(n);if(a){if(i){var o=!0;if(e.isForStatement(n)&&(d=e.getAncestor(r.valueDeclaration,255))&&d.parent===n){var s=((t,r)=>e.findAncestor(t,(e=>e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement)))(t.parent,n);if(s){var c=li(s);c.flags|=131072;var l=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),s===n.initializer&&(o=!1)}}o&&(li(a).flags|=65536)}var d;e.isForStatement(n)&&(d=e.getAncestor(r.valueDeclaration,255))&&d.parent===n&&((t,r)=>{for(var n=t;212===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(219===n.parent.kind||220===n.parent.kind){var a=n.parent;i=45===a.operator||46===a.operator}return!!i&&!!e.findAncestor(n,(e=>e===r?"quit":e===r.statement))})(t,n)&&(li(r.valueDeclaration).flags|=4194304),li(r.valueDeclaration).flags|=524288}i&&(li(r.valueDeclaration).flags|=262144)}})(t,n);var c=((t,r)=>{var n=t.valueDeclaration;if(n){if(e.isBindingElement(n)&&!n.initializer&&!n.dotDotDotToken&&n.parent.elements.length>=2){var i=n.parent.parent;if(254===i.kind&&2&e.getCombinedNodeFlags(n)||164===i.kind){var a=li(i);if(!(268435456&a.flags)){a.flags|=268435456;var o=Do(i,0);if(a.flags&=-268435457,o&&1048576&o.flags&&(164!==i.kind||!gh(t)))return 131072&(l=fh(n.parent,o,o,void 0,r.flowNode)).flags?ct:Fo(n,l)}}}if(e.isParameter(n)&&!n.type&&!n.initializer&&!n.dotDotDotToken){var s=n.parent;if(s.parameters.length>=2&&y_(s)){var c=oy(s);if(c&&1===c.parameters.length&&U(c)){var l,d=Qc(cs(c.parameters[0]));if(1048576&d.flags&&Hg(d,Kf)&&!gh(t))return tp(l=fh(s,d,d,void 0,r.flowNode),Pp(s.parameters.indexOf(n)-(e.getThisParameter(s)?1:0)))}}}}return cs(t)})(a,t),l=e.getAssignmentTargetKind(t);if(l){if(!(3&a.flags||e.isInJSFile(t)&&512&a.flags))return Jn(t,384&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:32&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:1536&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:16&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:2097152&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Qa(n)),Ue;if(aE(a))return 3&a.flags?Jn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Qa(n)):Jn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Qa(n)),Ue}var d=2097152&a.flags;if(3&a.flags){if(1===l)return c}else{if(!d)return c;s=Ai(n)}if(!s)return c;c=Eh(c,t,r);for(var u=164===e.getRootDeclaration(s).kind,p=mh(s),_=mh(t),f=_!==p,m=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&wg(t.parent.parent),g=134217728&n.flags;_!==p&&(213===_.kind||214===_.kind||e.isObjectLiteralOrClassExpressionMethodOrAccessor(_))&&(yh(a)&&c!==rr||u&&!gh(a));)_=mh(_);var h=u||d||f||m||g||e.isBindingElement(s)||c!==Le&&c!==rr&&(!$||0!=(16387&c.flags)||ag(t)||275===t.parent.kind)||230===t.parent.kind||254===s.kind&&s.exclamationToken||16777216&s.flags,y=fh(t,c,h?u?((e,t)=>{if(mo(t.symbol,2)){var r=$&&164===t.kind&&t.initializer&&16777216&Eg(e)&&!(16777216&Eg(HE(t.initializer)));return yo(),r?xg(e,524288):e}return as(t.symbol),e})(c,s):c:c===Le||c===rr?Ke:em(c),_);if(ih(t)||c!==Le&&c!==rr){if(!h&&!W_(c)&&W_(y))return Jn(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,Qa(n)),c}else if(y===Le||y===rr)return Q&&(Jn(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Qa(n),eo(y)),Jn(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Qa(n),eo(y))),$x(y);return l?jf(y):y})(t,n);case 80:return(t=>{!(t=>{if(!e.getContainingClass(t))return zT(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(!e.isForInStatement(t.parent)){if(!e.isExpressionNode(t))return zT(t,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);var r=e.isBinaryExpression(t.parent)&&101===t.parent.operatorToken.kind;Zy(t)||r||zT(t,e.Diagnostics.Cannot_find_name_0,e.idText(t))}})(t);var r=Zy(t);return r&&gv(r,void 0,!1),Re})(t);case 108:return Nh(t);case 106:return Ph(t);case 104:return Xe;case 14:case 10:return kp(Fp(t.text));case 8:return KT(t),kp(Pp(+t.text));case 9:return(t=>{!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&W<7&&zT(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)})(t),kp(Ip({negative:!1,base10Value:e.parsePseudoBigInt(t.text)}));case 110:return rt;case 95:return et;case 223:return xE(t);case 13:return Zt;case 204:return cy(t,n,i);case 205:return((t,r)=>{var n=e.isAssignmentTarget(t);!((t,r)=>{for(var n=new e.Map,i=0,a=t.properties;i<a.length;i++){var o=a[i];if(298!==o.kind){var s=o.name;if(162===s.kind&&TT(s),297===o.kind&&!r&&o.objectAssignmentInitializer&&zT(o.equalsToken,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),80===s.kind&&zT(s,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),e.canHaveModifiers(o)&&o.modifiers)for(var c=0,l=o.modifiers;c<l.length;c++){var d=l[c];!e.isModifier(d)||131===d.kind&&169===o.kind||zT(d,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(d))}else if(e.canHaveIllegalModifiers(o)&&o.modifiers)for(var u=0,p=o.modifiers;u<p.length;u++)zT(d=p[u],e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(d));var _=void 0;switch(o.kind){case 297:case 296:kT(o.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context),AT(o.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===s.kind&&KT(s),_=4;break;case 169:_=8;break;case 172:_=1;break;case 173:_=2;break;default:throw e.Debug.assertNever(o,"Unexpected syntax kind:"+o.kind)}if(!r){var f=e.getPropertyNameForPropertyNameNode(s);if(void 0===f)continue;var m=n.get(f);if(m)if(8&_&&8&m)zT(s,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(s));else if(4&_&&4&m)zT(s,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name,e.getTextOfNode(s));else{if(!(3&_&&3&m))return zT(s,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===m||_===m)return zT(s,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(f,_|m)}else n.set(f,_)}}else if(r){var g=e.skipParentheses(o.expression);if(e.isArrayLiteralExpression(g)||e.isObjectLiteralExpression(g))return zT(o.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}})(t,n);for(var i=$?e.createSymbolTable():void 0,a=e.createSymbolTable(),o=[],s=Tt,c=Yh(t,void 0),l=c&&c.pattern&&(201===c.pattern.kind||205===c.pattern.kind),d=wE(t),u=d?8:0,p=e.isInJSFile(t)&&!e.isInJsonFile(t),_=e.getJSDocEnumTag(t),f=!c&&p&&!_,m=re,g=!1,h=!1,y=!1,v=!1,b=0,E=t.properties;b<E.length;b++){var x=E[b];x.name&&e.isComputedPropertyName(x.name)&&uy(x.name)}for(var D=0,S=0,T=t.properties;S<T.length;S++){var C=T[S],A=ya(C),k=C.name&&162===C.name.kind?uy(C.name):void 0;if(296===C.kind||297===C.kind||e.isObjectLiteralMethod(C)){var N=296===C.kind?PE(C,r):297===C.kind?FE(!n&&C.objectAssignmentInitializer?C.objectAssignmentInitializer:C.name,r):IE(C,r);if(p){var w=Po(C);w?(N_(N,w,C),N=w):_&&_.typeExpression&&N_(N,Up(_.typeExpression),C)}m|=458752&e.getObjectFlags(N);var F=k&&Js(k)?k:void 0,P=F?Zn(4|A.flags,Ys(F),4096|u):Zn(4|A.flags,A.escapedName,u);if(F&&(P.nameType=F),n)(296===C.kind&&sy(C.initializer)||297===C.kind&&C.objectAssignmentInitializer)&&(P.flags|=16777216);else if(l&&!(512&e.getObjectFlags(c))){var I=sl(c,A.escapedName);I?P.flags|=16777216&I.flags:H.suppressExcessPropertyErrors||ml(c,Ye)||Jn(C.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Qa(A),eo(c))}if(P.declarations=A.declarations,P.parent=A.parent,A.valueDeclaration&&(P.valueDeclaration=A.valueDeclaration),P.type=N,P.target=A,A=P,null==i||i.set(P.escapedName,P),c&&r&&2&r&&!(4&r)&&(296===C.kind||169===C.kind)&&g_(C)){var O=ty(t);e.Debug.assert(O),Am(O,296===C.kind?C.initializer:C,N)}}else{if(298===C.kind){if(W<2&&fT(C,2),o.length>0&&(s=Sp(s,B(),t.symbol,m,d),o=[],a=e.createSymbolTable(),h=!1,y=!1,v=!1),my(N=rl(HE(C.expression)))){var M=Dp(N,d);if(i&&by(M,i,C),D=o.length,xo(s))continue;s=Sp(s,M,t.symbol,m,d)}else Jn(C,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=Ue;continue}e.Debug.assert(172===C.kind||173===C.kind),pS(C)}!k||8576&k.flags?a.set(A.escapedName,A):T_(k,ft)&&(T_(k,Qe)?y=!0:T_(k,ot)?v=!0:h=!0,n&&(g=!0)),o.push(A)}if(l&&298!==t.parent.kind)for(var R=0,L=Lc(c);R<L.length;R++)P=L[R],a.get(P.escapedName)||sl(s,P.escapedName)||(16777216&P.flags||Jn(P.valueDeclaration||P.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),a.set(P.escapedName,P),o.push(P));return xo(s)?Ue:s!==Tt?(o.length>0&&(s=Sp(s,B(),t.symbol,m,d),o=[],a=e.createSymbolTable(),h=!1,y=!1),Gg(s,(e=>e===Tt?B():e))):B();function B(){var r=[];h&&r.push(_y(t,D,o,Ye)),y&&r.push(_y(t,D,o,Qe)),v&&r.push(_y(t,D,o,ot));var i=Ra(t.symbol,a,e.emptyArray,e.emptyArray,r);return i.objectFlags|=131200|m,f&&(i.objectFlags|=4096),g&&(i.objectFlags|=512),n&&(i.pattern=t),i}})(t,n);case 206:return qy(t,n);case 161:return Xy(t,n);case 207:return((e,t)=>32&e.flags?((e,t)=>{var r=HE(e.expression),n=am(r,e.expression);return im(xv(e,Gy(n,e.expression),t),e,n!==r)})(e,t):xv(e,Vy(e.expression),t))(t,n);case 208:if(100===t.expression.kind)return(t=>{if((t=>{if(K===e.ModuleKind.ES2015)return zT(t,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(t.typeArguments)return zT(t,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);var r=t.arguments;if(K!==e.ModuleKind.ESNext&&K!==e.ModuleKind.NodeNext&&K!==e.ModuleKind.Node16&&(vT(r),r.length>1))return zT(r[1],e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext);if(0===r.length||r.length>2)return zT(t,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var n=e.find(r,e.isSpreadElement);n&&zT(n,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element)})(t),0===t.arguments.length)return Gb(t,Re);for(var r=t.arguments[0],n=TE(r),i=t.arguments.length>1?TE(t.arguments[1]):void 0,a=2;a<t.arguments.length;++a)TE(t.arguments[a]);if((32768&n.flags||65536&n.flags||!T_(n,Ye))&&Jn(r,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,eo(n)),i){var o=Rd(!0);o!==Tt&&N_(i,Zf(o,32768),t.arguments[1])}var s=ra(t,r);if(s){var c=sa(s,r,!0,!1);if(c)return Gb(t,vb(cs(c),c,s,r)||bb(cs(c),c,s,r))}return Gb(t,Re)})(t);case 209:return((t,r)=>{var n;xT(t,t.typeArguments);var i=ub(t,void 0,r);if(i===Ur)return lt;if(mb(i,t),106===t.expression.kind)return st;if(209===t.kind){var a=i.declaration;if(a&&171!==a.kind&&175!==a.kind&&180!==a.kind&&!e.isJSDocConstructSignature(a)&&!pb(a))return Q&&Jn(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Re}if(e.isInJSFile(t)&&Eb(t))return Il(t.arguments[0]);var o=Ll(i);if(12288&o.flags&&hb(t))return Mp(e.walkUpParenthesizedExpressions(t.parent));if(208===t.kind&&!t.questionDotToken&&238===t.parent.kind&&16384&o.flags&&Ml(i))if(e.isDottedName(t.expression)){if(!sh(t)){var s=Jn(t.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);oh(t.expression,s)}}else Jn(t.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(e.isInJSFile(t)){var c=fb(t,!1);if(null===(n=null==c?void 0:c.exports)||void 0===n?void 0:n.size){var l=Ra(c,c.exports,e.emptyArray,e.emptyArray,e.emptyArray);return l.objectFlags|=4096,xu([o,l])}}return o})(t,n);case 210:return(t=>{(t=>!!(t.questionDotToken||32&t.flags)&&zT(t.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain))(t)||xT(t,t.typeArguments),W<2&&fT(t,262144);var r=ub(t);return mb(r,t),Ll(r)})(t);case 212:return((t,r)=>{if(e.hasJSDocNodes(t)&&e.isJSDocTypeAssertion(t)){var n=e.getJSDocTypeAssertionType(t);return Db(n,n,t.expression,r)}return HE(t.expression,r)})(t,n);case 226:return(e=>(BD(e),pS(e),cs(ya(e))))(t);case 213:case 214:return rE(t,n);case 216:return(e=>(HE(e.expression),wn))(t);case 211:case 229:return(t=>{if(211===t.kind){var r=e.getSourceFileOfNode(t);r&&e.fileExtensionIsOneOf(r.fileName,[".cts",".mts"])&&zT(t,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return Db(t,t.type,t.expression)})(t);case 230:return(e=>32&e.flags?(e=>{var t=HE(e.expression),r=am(t,e.expression);return im(tm(r),e,r!==t)})(e):tm(HE(e.expression)))(t);case 228:return Sb(t);case 231:return(t=>((t=>{var r=t.name.escapedText;switch(t.keywordToken){case 103:if("target"!==r)return zT(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"target");break;case 100:"meta"!==r&&zT(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"meta")}})(t),103===t.keywordToken?Cb(t):100===t.keywordToken?(t=>{K===e.ModuleKind.Node16||K===e.ModuleKind.NodeNext?e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.ESNext&&Jn(t,e.Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):K<e.ModuleKind.ES2020&&K!==e.ModuleKind.System&&Jn(t,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);var r=e.getSourceFileOfNode(t);return e.Debug.assert(!!(4194304&r.flags),"Containing file is missing import meta node flag."),"meta"===t.name.escapedText?Od():Ue})(t):e.Debug.assertNever(t.keywordToken)))(t);case 215:return(t=>{HE(t.expression);var r=e.skipParentheses(t.expression);if(!e.isAccessExpression(r))return Jn(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),at;e.isPropertyAccessExpression(r)&&e.isPrivateIdentifier(r.name)&&Jn(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var n=Sa(li(r).resolvedSymbol);return n&&(aE(n)&&Jn(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),((t,r)=>{var n=cs(r);!$||131075&n.flags||(ne?16777216&r.flags:16777216&Eg(n))||Jn(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)})(r,n)),at})(t);case 217:return(e=>(HE(e.expression),Je))(t);case 218:return(t=>{_((()=>(t=>{var r=e.getContainingFunctionOrClassStaticBlock(t);if(r&&e.isClassStaticBlockDeclaration(r))Jn(t,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(32768&t.flags)){var n;if(e.isInTopLevelContext(t)){if(!UT(n=e.getSourceFileOfNode(t))){var i=void 0;if(!e.isEffectiveExternalModule(n,H)){null!=i||(i=e.getSpanOfTokenAtPosition(n,t.pos));var a=e.createFileDiagnostic(n,i.start,i.length,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);kn.add(a)}switch(K){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:if(n.impliedNodeFormat===e.ModuleKind.CommonJS){null!=i||(i=e.getSpanOfTokenAtPosition(n,t.pos)),kn.add(e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.System:if(W>=4)break;default:null!=i||(i=e.getSpanOfTokenAtPosition(n,t.pos)),kn.add(e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}}else if(!UT(n=e.getSourceFileOfNode(t))){if(i=e.getSpanOfTokenAtPosition(n,t.pos),a=e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),r&&171!==r.kind&&0==(2&e.getFunctionFlags(r))){var o=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(a,o)}kn.add(a)}}Bh(t)&&Jn(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)})(t)));var r=HE(t.expression),n=ux(r,!0,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==r||xo(n)||3&r.flags||Gn(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),n})(t);case 219:return(t=>{var r=HE(t.operand);if(r===lt)return lt;switch(t.operand.kind){case 8:switch(t.operator){case 40:return kp(Pp(-t.operand.text));case 39:return kp(Pp(+t.operand.text))}break;case 9:if(40===t.operator)return kp(Ip({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return Gy(r,t.operand),lE(r,12288)&&Jn(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(lE(r,2112)&&Jn(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),eo(jf(r))),Qe):cE(r);case 53:rD(t.operand);var n=12582912&Eg(r);return 4194304===n?et:8388608===n?rt:at;case 45:case 46:return nE(t.operand,Gy(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&sE(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),cE(r)}return Ue})(t);case 220:return(t=>{var r=HE(t.operand);return r===lt?lt:(nE(t.operand,Gy(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&sE(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),cE(r))})(t);case 221:return ie(t,n);case 222:return((e,t)=>(rD(e.condition),eD(e.condition,e.whenTrue),fu([HE(e.whenTrue,t),HE(e.whenFalse,t)],2)))(t,n);case 225:return((e,t)=>(W<2&&fT(e,H.downlevelIteration?1536:1024),aD(33,HE(e.expression,t),Ke,e.expression)))(t,n);case 227:return Je;case 224:return(t=>{_((()=>{8192&t.flags||jT(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),Bh(t)&&Jn(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)}));var r=e.getContainingFunction(t);if(!r)return Re;var n=e.getFunctionFlags(r);if(!(1&n))return Re;var i=0!=(2&n);t.asteriskToken&&(i&&W<99&&fT(t,26624),!i&&W<2&&H.downlevelIteration&&fT(t,256));var a=Bl(r),o=a&&kD(a,i),s=o&&o.yieldType||Re,c=o&&o.nextType||Re,l=i?gx(c)||Re:c,d=t.expression?HE(t.expression):Je,u=Xb(t,d,l,i);if(a&&u&&w_(u,s,t.expression||t,t.expression),t.asteriskToken)return sD(i?19:17,1,d,t.expression)||Re;if(a)return AD(2,a,i)||Re;var p=Uh(2,r);return p||(p=Re,_((()=>{if(Q&&!e.expressionResultIsUnused(t)){var r=ey(t,void 0);r&&!Eo(r)||Jn(t,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),p})(t);case 232:return(e=>e.isSpread?tp(e.type,Qe):e.type)(t);case 288:return((t,r)=>{if((t=>{t.expression&&e.isCommaSequence(t.expression)&&zT(t.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)})(t),t.expression){var n=HE(t.expression,r);return t.dotDotDotToken&&n!==Re&&!Tf(n)&&Jn(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return Ue})(t,n);case 278:case 279:return((e,t)=>(pS(e),Fy(e)||Re))(t);case 282:return(t=>{Iy(t.openingFragment);var r=e.getSourceFileOfNode(t);return!e.getJSXTransformEnabled(H)||!H.jsxFactory&&!r.pragmas.has("jsx")||H.jsxFragmentFactory||r.pragmas.has("jsxfrag")||Jn(t,H.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),vy(t),Fy(t)||Re})(t);case 286:return((t,r)=>((t,r)=>{for(var n,i=t.attributes,a=$?e.createSymbolTable():void 0,o=e.createSymbolTable(),s=Ct,c=!1,l=!1,d=2048,u=Cy(Sy(t)),p=0,_=i.properties;p<_.length;p++){var f=_[p],m=f.symbol;if(e.isJsxAttribute(f)){var g=yy(f,r);d|=458752&e.getObjectFlags(g);var h=Zn(4|m.flags,m.escapedName);h.declarations=m.declarations,h.parent=m.parent,m.valueDeclaration&&(h.valueDeclaration=m.valueDeclaration),h.type=g,h.target=m,o.set(h.escapedName,h),null==a||a.set(h.escapedName,h),f.name.escapedText===u&&(l=!0)}else e.Debug.assert(287===f.kind),o.size>0&&(s=Sp(s,S(),i.symbol,d,!1),o=e.createSymbolTable()),Eo(g=rl(TE(f.expression,r)))&&(c=!0),my(g)?(s=Sp(s,g,i.symbol,d,!1),a&&by(g,a,f)):(Jn(f.expression,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),n=n?xu([n,g]):g)}c||o.size>0&&(s=Sp(s,S(),i.symbol,d,!1));var y=278===t.parent.kind?t.parent:void 0;if(y&&y.openingElement===t&&y.children.length>0){var v=vy(y,r);if(!c&&u&&""!==u){l&&Jn(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(u));var b=Yh(t.attributes,void 0),E=b&&Kh(b,u),x=Zn(4,u);x.type=1===v.length?v[0]:E&&zg(E,Of)?Zd(v):Gd(fu(v)),x.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(u),void 0,void 0),e.setParent(x.valueDeclaration,i),x.valueDeclaration.symbol=x;var D=e.createSymbolTable();D.set(u,x),s=Sp(s,Ra(i.symbol,D,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,d,!1)}}return c?Re:n&&s!==Ct?xu([n,s]):n||(s===Ct?S():s);function S(){d|=re;var t=Ra(i.symbol,o,e.emptyArray,e.emptyArray,e.emptyArray);return t.objectFlags|=131200|d,t}})(t.parent,r))(t,n);case 280:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ue})(t,n,i),n);return _E(o)&&((t,r)=>{206===t.parent.kind&&t.parent.expression===t||207===t.parent.kind&&t.parent.expression===t||(79===t.kind||161===t.kind)&&DS(t)||181===t.parent.kind&&t.parent.exprName===t||275===t.parent.kind||Jn(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),H.isolatedModules&&(e.Debug.assert(!!(128&r.symbol.flags)),16777216&r.symbol.valueDeclaration.flags&&Jn(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided))})(t,o),s=a,null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function WE(t){hT(t),t.expression&&jT(t.expression,e.Diagnostics.Type_expected),lS(t.constraint),lS(t.default);var r=Ms(ya(t));Wc(r),(e=>$c(e)!==It)(r)||Jn(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,eo(r));var n=Uc(r),i=qc(r);n&&i&&N_(i,rc(u_(n,Gp(r,i)),i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),pS(t),_((()=>OD(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)))}function KE(t){gT(t),qx(t);var r=e.getContainingFunction(t);e.hasSyntacticModifier(t,16476)&&(171===r.kind&&e.nodeIsPresent(r.body)||Jn(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),171===r.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&Jn(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),(t.questionToken||xl(t))&&e.isBindingPattern(t.name)&&r.body&&Jn(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)&&Jn(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),171!==r.kind&&175!==r.kind&&180!==r.kind||Jn(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),214===r.kind&&Jn(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),172!==r.kind&&173!==r.kind||Jn(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||T_(rl(cs(t.symbol)),nr)||Jn(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function JE(t,r,n){for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o)){var s=o.name;if(79===s.kind&&s.escapedText===n)return Jn(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((202===s.kind||201===s.kind)&&JE(s,r,n))return!0}}}function GE(t){176===t.kind?(t=>{gT(t)||(t=>{var r=t.parameters[0];if(1!==t.parameters.length)return zT(r?r.name:t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(vT(t.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),r.dotDotDotToken)return zT(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(r))return zT(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(r.questionToken)return zT(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(r.initializer)return zT(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!r.type)return zT(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var n=Up(r.type);zg(n,(e=>!!(8576&e.flags)))||Gu(n)?zT(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Hg(n,Ql)?t.type||zT(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation):zT(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)})(t)})(t):179!==t.kind&&256!==t.kind&&180!==t.kind&&174!==t.kind&&171!==t.kind&&175!==t.kind||ET(t);var r=e.getFunctionFlags(t);4&r||(3==(3&r)&&W<99&&fT(t,6144),2==(3&r)&&W<4&&fT(t,64),0!=(3&r)&&W<2&&fT(t,128)),MD(e.getEffectiveTypeParameterDeclarations(t)),(t=>{var r=e.filter(e.getJSDocTags(t),e.isJSDocParameterTag);if(e.length(r)){var n=e.isInJSFile(t),i=new e.Set,a=new e.Set;if(e.forEach(t.parameters,((t,r)=>{var n=t.name;e.isIdentifier(n)&&i.add(n.escapedText),e.isBindingPattern(n)&&a.add(r)})),Fl(t)){var o=e.lastOrUndefined(r);n&&o&&e.isIdentifier(o.name)&&o.typeExpression&&o.typeExpression.type&&!i.has(o.name.escapedText)&&!Tf(Up(o.typeExpression.type))&&Jn(o.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(o.name))}else e.forEach(r,((t,r)=>{var o=t.name;a.has(r)||e.isIdentifier(o)&&i.has(o.escapedText)||(e.isQualifiedName(o)?n&&Jn(o,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(o),e.entityNameToString(o.left)):$n(n,o,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(o)))}))}})(t),e.forEach(t.parameters,KE),t.type&&lS(t.type),_((()=>{!(t=>{W>=2||!e.hasRestParameter(t)||16777216&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,(t=>{t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===ue.escapedName&&Wn("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))})(t);var r=e.getEffectiveReturnTypeNode(t);if(Q&&!r)switch(t.kind){case 175:Jn(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 174:Jn(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(r){var n=e.getFunctionFlags(t);if(1==(5&n)){var i=Up(r);if(i===st)Jn(r,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var a=AD(0,i,0!=(2&n))||Re;N_(qb(a,AD(1,i,0!=(2&n))||a,AD(2,i,0!=(2&n))||He,!!(2&n)),i,r)}}else 2==(3&n)&&((t,r)=>{var n=Up(r);if(W>=2){if(xo(n))return;var i=Ud(!0);if(i!==wt&&!ds(n,i))return void Jn(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,eo(hx(n)||st))}else{if((t=>{vx(t&&e.getEntityNameFromTypeNode(t),!1)})(r),xo(n))return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void Jn(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,eo(n));var o=ea(a,111551,!0),s=o?cs(o):Ue;if(xo(s))return void(79===a.kind&&"Promise"===a.escapedText&&us(n)===Ud(!1)?Jn(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):Jn(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=pr||(pr=Id("PromiseConstructorLike",0,!0))||Tt;if(c===Tt)return void Jn(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(!N_(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 l=a&&e.getFirstIdentifier(a),d=ui(t.locals,l.escapedText,111551);if(d)return void Jn(d.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(a))}ux(n,!1,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,r)}176!==t.kind&&317!==t.kind&&Ax(t)}))}function $E(t){for(var r=new e.Map,n=0,i=t.members;n<i.length;n++){var a=i[n];if(166===a.kind){var o=void 0,s=a.name;switch(s.kind){case 10:case 8:o=s.text;break;case 79:o=e.idText(s);break;default:continue}r.get(o)?(Jn(e.getNameOfDeclaration(a.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),Jn(a.name,e.Diagnostics.Duplicate_identifier_0,o)):r.set(o,!0)}}}function qE(t){if(258===t.kind){var r=ya(t);if(r.declarations&&r.declarations.length>0&&r.declarations[0]!==t)return}var n=Gl(ya(t));if(null==n?void 0:n.declarations){for(var i=new e.Map,a=e=>{1===e.parameters.length&&e.parameters[0].type&&Vg(Up(e.parameters[0].type),(t=>{var r=i.get(su(t));r?r.declarations.push(e):i.set(su(t),{type:t,declarations:[e]})}))},o=0,s=n.declarations;o<s.length;o++)a(s[o]);i.forEach((t=>{if(t.declarations.length>1)for(var r=0,n=t.declarations;r<n.length;r++)Jn(n[r],e.Diagnostics.Duplicate_index_signature_for_type_0,eo(t.type))}))}}function XE(t){gT(t)||(t=>{if(e.isComputedPropertyName(t.name)&&e.isBinaryExpression(t.name.expression)&&101===t.name.expression.operatorToken.kind)return zT(t.parent.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);if(e.isClassLike(t.parent)){if(e.isStringLiteral(t.name)&&"constructor"===t.name.text)return zT(t.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(FT(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(W<2&&e.isPrivateIdentifier(t.name))return zT(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(258===t.parent.kind){if(FT(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))return!0;if(e.Debug.assertNode(t,e.isPropertySignature),t.initializer)return zT(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(e.isTypeLiteralNode(t.parent)){if(FT(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))return!0;if(e.Debug.assertNode(t,e.isPropertySignature),t.initializer)return zT(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(16777216&t.flags&&OT(t),e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||16777216&t.flags||e.isStatic(t)||e.hasAbstractModifier(t))){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return zT(t.exclamationToken,r)}})(t)||TT(t.name),qx(t),YE(t),e.hasSyntacticModifier(t,128)&&167===t.kind&&t.initializer&&Jn(t,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(t.name))}function YE(t){if(e.isPrivateIdentifier(t.name)&&W<99){for(var r=e.getEnclosingBlockScopeContainer(t);r;r=e.getEnclosingBlockScopeContainer(r))li(r).flags|=67108864;if(e.isClassExpression(t.parent)){var n=Sh(t.parent);n&&(li(t.name).flags|=524288,li(n).flags|=65536)}}}function QE(t){return 106===t.kind||108===t.kind||!e.isThisContainerOrFunctionBlock(t)&&!!e.forEachChild(t,QE)}function ZE(t){e.isIdentifier(t.name)&&"constructor"===e.idText(t.name)&&Jn(t.name,e.Diagnostics.Class_constructor_may_not_be_an_accessor),_((()=>{if(ET(t)||(t=>{if(!(16777216&t.flags)&&182!==t.parent.kind&&258!==t.parent.kind){if(W<1)return zT(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(W<2&&e.isPrivateIdentifier(t.name))return zT(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===t.body&&!e.hasSyntacticModifier(t,128))return VT(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(t.body){if(e.hasSyntacticModifier(t,128))return zT(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(182===t.parent.kind||258===t.parent.kind)return zT(t.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(t.typeParameters)return zT(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!(e=>wT(e)||e.parameters.length===(172===e.kind?0:1))(t))return zT(t.name,172===t.kind?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(173===t.kind){if(t.type)return zT(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=e.Debug.checkDefined(e.getSetAccessorValueParameter(t),"Return value does not match parameter count assertion.");if(r.dotDotDotToken)return zT(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return zT(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return zT(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1})(t)||TT(t.name),Sx(t),GE(t),172===t.kind&&!(16777216&t.flags)&&e.nodeIsPresent(t.body)&&256&t.flags&&(512&t.flags||Jn(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)),162===t.name.kind&&uy(t.name),Xs(t)){var r=ya(t),n=e.getDeclarationOfKind(r,172),i=e.getDeclarationOfKind(r,173);if(n&&i&&!(1&YS(n))){li(n).flags|=1;var a=e.getEffectiveModifierFlags(n),o=e.getEffectiveModifierFlags(i);(128&a)!=(128&o)&&(Jn(n.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Jn(i.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(16&a&&!(24&o)||8&a&&!(8&o))&&(Jn(n.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Jn(i.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var s=Zo(n),c=Zo(i);s&&c&&N_(s,c,n,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var l=es(ya(t));172===t.kind&&tE(t,l)})),lS(t.body),YE(t)}function ex(t,r){return kl(e.map(t.typeArguments,Up),r,Al(r),e.isInJSFile(t))}function tx(t,r){for(var n,i,a=!0,o=0;o<r.length;o++){var s=Uc(r[o]);s&&(n||(i=Kp(r,n=ex(t,r))),a=a&&N_(n[o],u_(s,i),t.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function rx(t){var r=Td(t);if(!xo(r)){var n=li(t).resolvedSymbol;if(n)return 524288&n.flags&&ci(n).typeParameters||(4&e.getObjectFlags(r)?r.target.localTypeParameters:void 0)}}function nx(t){xT(t,t.typeArguments),178!==t.kind||void 0===t.typeName.jsdocDotPos||e.isInJSFile(t)||e.isInJSDoc(t)||VT(t,t.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(t.typeArguments,lS);var r=Td(t);if(!xo(r)){t.typeArguments&&_((()=>{var e=rx(t);e&&tx(t,e)}));var n=li(t).resolvedSymbol;n&&(e.some(n.declarations,(e=>vS(e)&&!!(268435456&e.flags)))&&Qn(gb(t),n.declarations,n.escapedName),32&r.flags&&8&n.flags&&Jn(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,eo(r)))}}function ix(t,r){if(!(8388608&t.flags))return t;var n=t.objectType,i=t.indexType;if(T_(i,Ou(n,!1)))return 207===r.kind&&e.isAssignmentTarget(r)&&32&e.getObjectFlags(n)&&1&Nc(n)&&Jn(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,eo(n)),t;var a=Yc(n);if(ml(a,Qe)&&uE(i,296))return t;if($u(n)){var o=Vu(i,r);if(o){var s=Vg(a,(e=>sl(e,o)));if(s&&24&e.getDeclarationModifierFlagsFromSymbol(s))return Jn(r,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(o)),Ue}}return Jn(r,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,eo(i),eo(n)),Ue}function ax(t){return(e.hasEffectiveModifier(t,8)||e.isPrivateIdentifierClassElementDeclaration(t))&&!!(16777216&t.flags)}function ox(t,r){var n=e.getCombinedModifierFlags(t);return 258!==t.parent.kind&&257!==t.parent.kind&&226!==t.parent.kind&&16777216&t.flags&&(2&n||e.isModuleBlock(t.parent)&&e.isModuleDeclaration(t.parent.parent)&&e.isGlobalScopeAugmentation(t.parent.parent)||(n|=1),n|=2),n&r}function sx(t){_((()=>(t=>{function r(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}var n,i,a,o=0,s=155,c=!1,l=!0,d=!1,u=t.declarations,p=0!=(16384&t.flags);function _(t){if(!t.name||!e.nodeIsMissing(t.name)){var r=!1,n=e.forEachChild(t.parent,(e=>{if(r)return e;r=e===t}));if(n&&n.pos===t.end&&n.kind===t.kind){var i=n.name||n,a=n.name;if(t.name&&a&&(e.isPrivateIdentifier(t.name)&&e.isPrivateIdentifier(a)&&t.name.escapedText===a.escapedText||e.isComputedPropertyName(t.name)&&e.isComputedPropertyName(a)||e.isPropertyNameLiteral(t.name)&&e.isPropertyNameLiteral(a)&&e.getEscapedTextOfIdentifierOrLiteral(t.name)===e.getEscapedTextOfIdentifierOrLiteral(a)))return void(169!==t.kind&&168!==t.kind||e.isStatic(t)===e.isStatic(n)||Jn(i,e.isStatic(t)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static));if(e.nodeIsPresent(n.body))return void Jn(i,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name))}var o=t.name||t;p?Jn(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(t,128)?Jn(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Jn(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}var m,g,h,y,v,b=!1,E=!1,x=!1,D=[];if(u)for(var S=0,T=u;S<T.length;S++){var C=T[S],A=16777216&C.flags,k=C.parent&&(258===C.parent.kind||182===C.parent.kind)||A;if(k&&(a=void 0),257!==C.kind&&226!==C.kind||A||(x=!0),256===C.kind||169===C.kind||168===C.kind||171===C.kind){D.push(C);var N=ox(C,155);o|=N,s&=N,c=c||e.hasQuestionToken(C),l=l&&e.hasQuestionToken(C);var w=e.nodeIsPresent(C.body);w&&n?p?E=!0:b=!0:(null==a?void 0:a.parent)===C.parent&&a.end!==C.pos&&_(a),w?n||(n=C):d=!0,a=C,k||(i=C)}}if(E&&e.forEach(D,(t=>{Jn(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)})),b&&e.forEach(D,(t=>{Jn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Duplicate_function_implementation)})),x&&!p&&16&t.flags&&u){var F=e.filter(u,(e=>257===e.kind)).map((t=>e.createDiagnosticForNode(t,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)));e.forEach(u,(r=>{var n=257===r.kind?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:256===r.kind?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;n&&e.addRelatedInfo.apply(void 0,f([Jn(e.getNameOfDeclaration(r)||r,n,e.symbolName(t))],F,!1))}))}if(!i||i.body||e.hasSyntacticModifier(i,128)||i.questionToken||_(i),d&&(u&&(((t,n,i,a,o)=>{if(0!=(a^o)){var s=ox(r(t,n),155);e.forEach(t,(t=>{var r=ox(t,155)^s;1&r?Jn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&r?Jn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&r?Jn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&r&&Jn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}})(u,n,0,o,s),((t,n,i,a)=>{if(i!==a){var o=e.hasQuestionToken(r(t,n));e.forEach(t,(t=>{e.hasQuestionToken(t)!==o&&Jn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)}))}})(u,n,c,l)),n))for(var P=Pl(t),I=Nl(n),O=0,M=P;O<M.length;O++){var R=M[O];if(m=R,void 0,void 0,void 0,void 0,g=Wl(I),h=Wl(m),y=Ll(g),(v=Ll(h))!==st&&!$_(v,y,In)&&!$_(y,v,In)||0===j_(g,h,4,!1,void 0,void 0,x_,void 0)){e.addRelatedInfo(Jn(R.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(n,e.Diagnostics.The_implementation_signature_is_declared_here));break}}})(t)))}function cx(t){_((()=>(t=>{var r=t.localSymbol;if((r||(r=ya(t)).exportSymbol)&&e.getDeclarationOfKind(r,t.kind)===t){for(var n=0,i=0,a=0,o=0,s=r.declarations;o<s.length;o++){var c=g(f=s[o]),l=ox(f,513);1&l?512&l?a|=c:n|=c:i|=c}var d=n&i,u=a&(n|i);if(d||u)for(var p=0,_=r.declarations;p<_.length;p++){c=g(f=_[p]);var f,m=e.getNameOfDeclaration(f);c&u?Jn(m,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(m)):c&d&&Jn(m,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(m))}}function g(t){var r=t;switch(r.kind){case 258:case 259:case 345:case 338:case 339:return 2;case 261:return e.isAmbientModule(r)||0!==e.getModuleInstanceState(r)?5:4;case 257:case 260:case 299:return 3;case 305:return 7;case 271:case 221:var n=r,i=e.isExportAssignment(n)?n.expression:n.right;if(!e.isEntityNameExpression(i))return 1;r=i;case 265:case 268:case 267:var a=0,o=Ji(ya(r));return e.forEach(o.declarations,(e=>{a|=g(e)})),a;case 254:case 203:case 256:case 270:case 79:return 1;default:return e.Debug.failBadSyntaxKind(r)}}})(t)))}function lx(e,t,r,n){var i=dx(e,t);return i&&gx(i,t,r,n)}function dx(t,r,n){if(!Eo(t)){var i=t;if(i.promisedTypeOfPromise)return i.promisedTypeOfPromise;if(ds(t,Ud(!1)))return i.promisedTypeOfPromise=ld(t)[0];if(!pE(t,262140)){var a=bo(t,"then");if(!Eo(a)){var o=a?ll(a,0):e.emptyArray;if(0!==o.length){for(var s,c,l=0,d=o;l<d.length;l++){var u=d[l],p=Ol(u);p&&p!==st&&!$_(t,p,Fn)?s=p:c=e.append(c,u)}if(!c)return e.Debug.assertIsDefined(s),n&&(n.value=s),void(r&&Jn(r,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,eo(t),eo(s)));var _=xg(fu(e.map(c,Vb)),2097152);if(!Eo(_)){var f=ll(_,0);if(0!==f.length)return i.promisedTypeOfPromise=fu(e.map(f,Vb),2);r&&Jn(r,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else r&&Jn(r,e.Diagnostics.A_promise_must_have_a_then_method)}}}}function ux(e,t,r,n,i){return(t?gx(e,r,n,i):hx(e,r,n,i))||Ue}function px(e){if(pE(e,262140))return!1;var t=bo(e,"then");return!!t&&ll(xg(t,2097152),0).length>0}function _x(e){var t;if(16777216&e.flags){var r=Wd(!1);return!!r&&e.aliasSymbol===r&&1===(null===(t=e.aliasTypeArguments)||void 0===t?void 0:t.length)}return!1}function fx(e){return 1048576&e.flags?Gg(e,fx):_x(e)?e.aliasTypeArguments[0]:e}function mx(e){if(Eo(e)||_x(e))return!1;if($u(e)){var t=Wc(e);if(t?3&t.flags||z_(t)||px(t):dE(e,8650752))return!0}return!1}function gx(t,r,n,i){var a=hx(t,r,n,i);return a&&(t=>{if(mx(t)){var r=(e=>{var t=Wd(!0);if(t)return pd(t,[fx(e)])})(t);if(r)return r}return e.Debug.assert(void 0===dx(t),"type provided should not be a non-generic 'promise'-like."),t})(a)}function hx(t,r,n,i){if(Eo(t))return t;if(_x(t))return t;var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;if(1048576&t.flags){if(An.lastIndexOf(t.id)>=0)return void(r&&Jn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));var o=r?e=>hx(e,r,n,i):hx;An.push(t.id);var s=Gg(t,o);return An.pop(),a.awaitedTypeOfType=s}if(mx(t))return a.awaitedTypeOfType=t;var c={value:void 0},l=dx(t,void 0,c);if(l){if(t.id===l.id||An.lastIndexOf(l.id)>=0)return void(r&&Jn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));An.push(t.id);var d=hx(l,r,n,i);if(An.pop(),!d)return;return a.awaitedTypeOfType=d}if(!px(t))return a.awaitedTypeOfType=t;if(r){e.Debug.assertIsDefined(n);var u=void 0;c.value&&(u=e.chainDiagnosticMessages(u,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,eo(t),eo(c.value))),u=e.chainDiagnosticMessages(u,n,i),kn.add(e.createDiagnosticForNodeFromMessageChain(r,u))}}function yx(t){var r=ub(t);mb(r,t);var n=Ll(r);if(!(1&n.flags)){var i,a;switch(t.parent.kind){case 257:i=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1,a=fu([cs(ya(t.parent)),st]);break;case 167:case 164:i=e.Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any,a=st;break;case 169:case 172:case 173:i=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1,a=fu([Jd(AS(t.parent)),st]);break;default:return e.Debug.fail()}N_(n,a,t,i)}}function vx(t,r){if(t){var n=e.getFirstIdentifier(t),i=2097152|(79===t.kind?788968:1920),a=mi(n,n.escapedText,i,void 0,void 0,!0);if(a&&2097152&a.flags)if(!Ta(a)||WS(Ji(a))||qi(a)){if(r&&H.isolatedModules&&e.getEmitModuleKind(H)>=e.ModuleKind.ES2015&&!Ta(a)&&!e.some(a.declarations,e.isTypeOnlyImportOrExportDeclaration)){var o=Jn(t,e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),s=e.find(a.declarations||e.emptyArray,ki);s&&e.addRelatedInfo(o,e.createDiagnosticForNode(s,e.Diagnostics._0_was_imported_here,e.idText(n)))}}else Yi(a)}}function bx(t){var r=Ex(t);r&&e.isEntityName(r)&&vx(r,!0)}function Ex(e){if(e)switch(e.kind){case 188:case 187:return xx(e.types);case 189:return xx([e.trueType,e.falseType]);case 191:case 197:return Ex(e.type);case 178:return e.typeName}}function xx(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];191===a.kind||197===a.kind;)a=a.type;if(143!==a.kind&&($||(196!==a.kind||104!==a.literal.kind)&&153!==a.kind)){var o=Ex(a);if(!o)return;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return}else r=o}}return r}function Dx(t){var r=e.getEffectiveTypeAnnotationNode(t);return e.isRestParameter(t)?e.getRestParameterElementType(r):r}function Sx(t){if(e.canHaveDecorators(t)&&e.hasDecorators(t)&&t.modifiers&&e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){H.experimentalDecorators||Jn(t,e.Diagnostics.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);var r=e.find(t.modifiers,e.isDecorator);if(r){if(fT(r,8),164===t.kind&&fT(r,32),H.emitDecoratorMetadata)switch(fT(r,16),t.kind){case 257:var n=e.getFirstConstructorWithBody(t);if(n)for(var i=0,a=n.parameters;i<a.length;i++)bx(Dx(a[i]));break;case 172:case 173:var o=172===t.kind?173:172,s=e.getDeclarationOfKind(ya(t),o);bx(Qo(t)||s&&Qo(s));break;case 169:for(var c=0,l=t.parameters;c<l.length;c++)bx(Dx(l[c]));bx(e.getEffectiveReturnTypeNode(t));break;case 167:bx(e.getEffectiveTypeAnnotationNode(t));break;case 164:bx(Dx(t));for(var d=0,u=t.parent.parameters;d<u.length;d++)bx(Dx(u[d]))}for(var p=0,_=t.modifiers;p<_.length;p++){var f=_[p];e.isDecorator(f)&&yx(f)}}}}function Tx(e){switch(e.kind){case 79:return e;case 206:return e.name;default:return}}function Cx(t){var r;Sx(t),GE(t);var n=e.getFunctionFlags(t);if(t.name&&162===t.name.kind&&uy(t.name),Xs(t)){var i=ya(t),a=t.localSymbol||i,o=null===(r=a.declarations)||void 0===r?void 0:r.find((e=>e.kind===t.kind&&!(262144&e.flags)));t===o&&sx(a),i.parent&&sx(i)}var s=168===t.kind?void 0:t.body;if(lS(s),tE(t,Bl(t)),_((()=>{e.getEffectiveReturnTypeNode(t)||(e.nodeIsMissing(s)&&!ax(t)&&bm(t,Re),1&n&&e.nodeIsPresent(s)&&Ll(Nl(t)))})),e.isInJSFile(t)){var c=e.getJSDocTypeTag(t);c&&c.typeExpression&&!iy(Up(c.typeExpression),t)&&Jn(c.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function Ax(t){_((()=>{var r=e.getSourceFileOfNode(t),n=Yr.get(r.path);n||(n=[],Yr.set(r.path,n)),n.push(t)}))}function kx(t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n];switch(a.kind){case 257:case 226:Fx(a,r),Ix(a,r);break;case 305:case 261:case 235:case 263:case 242:case 243:case 244:Bx(a,r);break;case 171:case 213:case 256:case 214:case 169:case 172:case 173:a.body&&Bx(a,r),Ix(a,r);break;case 168:case 174:case 175:case 179:case 180:case 259:case 258:Ix(a,r);break;case 190:Px(a,r);break;default:e.Debug.assertNever(a,"Node should not have been registered for unused identifiers check")}}}function Nx(t,r,n){var i=e.getNameOfDeclaration(t)||t,a=vS(t)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;n(t,0,e.createDiagnosticForNode(i,a,r))}function wx(t){return e.isIdentifier(t)&&95===e.idText(t).charCodeAt(0)}function Fx(t,r){for(var n=0,i=t.members;n<i.length;n++){var a=i[n];switch(a.kind){case 169:case 167:case 172:case 173:if(173===a.kind&&32768&a.symbol.flags)break;var o=ya(a);o.isReferenced||!(e.hasEffectiveModifier(a,8)||e.isNamedDeclaration(a)&&e.isPrivateIdentifier(a.name))||16777216&a.flags||r(a,0,e.createDiagnosticForNode(a.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Qa(o)));break;case 171:for(var s=0,c=a.parameters;s<c.length;s++){var l=c[s];!l.symbol.isReferenced&&e.hasSyntacticModifier(l,8)&&r(l,0,e.createDiagnosticForNode(l.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(l.symbol)))}break;case 176:case 234:case 170:break;default:e.Debug.fail("Unexpected class member")}}}function Px(t,r){var n=t.typeParameter;Ox(n)&&r(t,1,e.createDiagnosticForNode(t,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(n.name)))}function Ix(t,r){var n=ya(t).declarations;if(n&&e.last(n)===t)for(var i=e.getEffectiveTypeParameterDeclarations(t),a=new e.Set,o=0,s=i;o<s.length;o++){var c=s[o];if(Ox(c)){var l=e.idText(c.name),d=c.parent;if(190!==d.kind&&d.typeParameters.every(Ox)){if(e.tryAddToSet(a,d)){var u=e.getSourceFileOfNode(d),p=e.isJSDocTemplateTag(d)?e.rangeOfNode(d):e.rangeOfTypeParameters(u,d.typeParameters),_=1===d.typeParameters.length,f=_?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,m=_?l:void 0;r(c,1,e.createFileDiagnostic(u,p.pos,p.end-p.pos,f,m))}}else r(c,1,e.createDiagnosticForNode(c,e.Diagnostics._0_is_declared_but_its_value_is_never_read,l))}}}function Ox(e){return!(262144&ha(e.symbol).isReferenced||wx(e.name))}function Mx(e,t,r,n){var i=String(n(t)),a=e.get(i);a?a[1].push(r):e.set(i,[t,[r]])}function Rx(t){return e.tryCast(e.getRootDeclaration(t),e.isParameter)}function Lx(t){return e.isBindingElement(t)?e.isObjectBindingPattern(t.parent)?!(!t.propertyName||!wx(t.name)):wx(t.name):e.isAmbientModule(t)||(e.isVariableDeclaration(t)&&e.isForInOrOfStatement(t.parent.parent)||jx(t))&&wx(t.name)}function Bx(t,r){var n=new e.Map,i=new e.Map,a=new e.Map;t.locals.forEach((t=>{var o;if(!(262144&t.flags?!(3&t.flags)||3&t.isReferenced:t.isReferenced||t.exportSymbol)&&t.declarations)for(var s=0,c=t.declarations;s<c.length;s++){var l=c[s];if(!Lx(l))if(jx(l))Mx(n,267===(o=l).kind?o:268===o.kind?o.parent:o.parent.parent,l,I);else if(e.isBindingElement(l)&&e.isObjectBindingPattern(l.parent))l!==e.last(l.parent.elements)&&e.last(l.parent.elements).dotDotDotToken||Mx(i,l.parent,l,I);else if(e.isVariableDeclaration(l))Mx(a,l.parent,l,I);else{var d=t.valueDeclaration&&Rx(t.valueDeclaration),u=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);d&&u?e.isParameterPropertyDeclaration(d,d.parent)||e.parameterIsThisKeyword(d)||wx(u)||(e.isBindingElement(l)&&e.isArrayBindingPattern(l.parent)?Mx(i,l.parent,l,I):r(d,1,e.createDiagnosticForNode(u,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(t)))):Nx(l,e.symbolName(t),r)}}})),n.forEach((t=>{var n=t[0],i=t[1],a=n.parent;if((n.name?1:0)+(n.namedBindings?268===n.namedBindings.kind?1:n.namedBindings.elements.length:0)===i.length)r(a,0,1===i.length?e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(i).name)):e.createDiagnosticForNode(a,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var o=0,s=i;o<s.length;o++){var c=s[o];Nx(c,e.idText(c.name),r)}})),i.forEach((t=>{var n=t[0],i=t[1],o=Rx(n.parent)?1:0;if(n.elements.length===i.length)1===i.length&&254===n.parent.kind&&255===n.parent.parent.kind?Mx(a,n.parent.parent,n.parent,I):r(n,o,1===i.length?e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Ux(e.first(i).name)):e.createDiagnosticForNode(n,e.Diagnostics.All_destructured_elements_are_unused));else for(var s=0,c=i;s<c.length;s++){var l=c[s];r(l,o,e.createDiagnosticForNode(l,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Ux(l.name)))}})),a.forEach((t=>{var n=t[0],i=t[1];if(n.declarations.length===i.length)r(n,0,1===i.length?e.createDiagnosticForNode(e.first(i).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Ux(e.first(i).name)):e.createDiagnosticForNode(237===n.parent.kind?n.parent:n,e.Diagnostics.All_variables_are_unused));else for(var a=0,o=i;a<o.length;a++){var s=o[a];r(s,0,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Ux(s.name)))}}))}function Ux(t){switch(t.kind){case 79:return e.idText(t);case 202:case 201:return Ux(e.cast(e.first(t.elements),e.isBindingElement).name);default:return e.Debug.assertNever(t)}}function jx(e){return 267===e.kind||270===e.kind||268===e.kind}function Vx(t){if(235===t.kind&&WT(t),e.isFunctionOrModuleBlock(t)){var r=tn;e.forEach(t.statements,lS),tn=r}else e.forEach(t.statements,lS);t.locals&&Ax(t)}function zx(t,r,n){if((null==r?void 0:r.escapedText)!==n)return!1;if(167===t.kind||166===t.kind||169===t.kind||168===t.kind||172===t.kind||173===t.kind||296===t.kind)return!1;if(16777216&t.flags)return!1;if((e.isImportClause(t)||e.isImportEqualsDeclaration(t)||e.isImportSpecifier(t))&&e.isTypeOnlyImportOrExportDeclaration(t))return!1;var i=e.getRootDeclaration(t);return!e.isParameter(i)||!e.nodeIsMissing(i.parent.body)}function Hx(t){e.findAncestor(t,(r=>!!(4&YS(r))&&(79!==t.kind?Jn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Jn(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)))}function Wx(t){e.findAncestor(t,(r=>!!(8&YS(r))&&(79!==t.kind?Jn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Jn(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)))}function Kx(t){67108864&YS(e.getEnclosingBlockScopeContainer(t))&&(e.Debug.assert(e.isNamedDeclaration(t)&&e.isIdentifier(t.name)&&"string"==typeof t.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Wn("noEmit",t,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,t.name.escapedText))}function Jx(t){var r=!1;if(e.isClassExpression(t)){for(var n=0,i=t.members;n<i.length;n++)if(134217728&YS(i[n])){r=!0;break}}else if(e.isFunctionExpression(t))134217728&YS(t)&&(r=!0);else{var a=e.getEnclosingBlockScopeContainer(t);a&&134217728&YS(a)&&(r=!0)}r&&(e.Debug.assert(e.isNamedDeclaration(t)&&e.isIdentifier(t.name),"The target of a Reflect collision check should be an identifier"),Wn("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(t.name),"Reflect"))}function Gx(t,r){r&&(((t,r)=>{if((!(K>=e.ModuleKind.ES2015)||K>=e.ModuleKind.Node16&&e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&r&&(zx(t,r,"require")||zx(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=vo(t);305===n.kind&&e.isExternalOrCommonJsModule(n)&&Wn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}})(t,r),((t,r)=>{if(r&&!(W>=4)&&zx(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=vo(t);305===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&Wn("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))}})(t,r),((e,t)=>{W<=8&&(zx(e,t,"WeakMap")||zx(e,t,"WeakSet"))&&Sn.push(e)})(t,r),((e,t)=>{t&&W>=2&&W<=8&&zx(e,t,"Reflect")&&Tn.push(e)})(t,r),e.isClassLike(t)?(OD(r,e.Diagnostics.Class_name_cannot_be_0),16777216&t.flags||(t=>{W>=1&&"Object"===t.escapedText&&(K<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&Jn(t,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[K])})(r)):e.isEnumDeclaration(t)&&OD(r,e.Diagnostics.Enum_name_cannot_be_0))}function $x(e){return e===Le?Re:e===rr?tr:e}function qx(t){var r;if(Sx(t),e.isBindingElement(t)||lS(t.type),t.name){if(162===t.name.kind&&(uy(t.name),e.hasOnlyExpressionInitializer(t)&&t.initializer&&TE(t.initializer)),e.isBindingElement(t)){if(t.propertyName&&e.isIdentifier(t.name)&&e.isParameterDeclaration(t)&&e.nodeIsMissing(e.getContainingFunction(t).body))return void Cn.push(t);e.isObjectBindingPattern(t.parent)&&t.dotDotDotToken&&W<5&&fT(t,4),t.propertyName&&162===t.propertyName.kind&&uy(t.propertyName);var n=t.parent.parent,i=Do(n,t.dotDotDotToken?64:0),a=t.propertyName||t.name;if(i&&!e.isBindingPattern(a)){var o=Nu(a);if(Js(o)){var s=sl(i,Ys(o));s&&(gv(s,void 0,!1),By(t,!!n.initializer&&106===n.initializer.kind,!1,i,s))}}}if(e.isBindingPattern(t.name)&&(202===t.name.kind&&W<2&&H.downlevelIteration&&fT(t,512),e.forEach(t.name.elements,lS)),e.isParameter(t)&&t.initializer&&e.nodeIsMissing(e.getContainingFunction(t).body))Jn(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(t.name)){var c=e.hasOnlyExpressionInitializer(t)&&t.initializer&&243!==t.parent.parent.kind,l=!e.some(t.name.elements,e.not(e.isOmittedExpression));if(c||l){var d=$o(t);if(c){var u=TE(t.initializer);$&&l?$y(u,t):w_(u,$o(t),t,t.initializer)}l&&(e.isArrayBindingPattern(t.name)?aD(65,d,Ke,t):$&&$y(d,t))}}else{var p=ya(t);if(2097152&p.flags&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(203===t.kind?t.parent.parent:t))QD(t);else{var _=$x(cs(p));if(t===p.valueDeclaration){var f=e.hasOnlyExpressionInitializer(t)&&e.getEffectiveInitializer(t);f&&(e.isInJSFile(t)&&e.isObjectLiteralExpression(f)&&(0===f.properties.length||e.isPrototypeAccess(t.name))&&(null===(r=p.exports)||void 0===r?void 0:r.size)||243===t.parent.parent.kind||w_(TE(f),_,t,f,void 0)),p.declarations&&p.declarations.length>1&&e.some(p.declarations,(r=>r!==t&&e.isVariableLike(r)&&!Yx(r,t)))&&Jn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var m=$x($o(t));xo(_)||xo(m)||b_(_,m)||67108864&p.flags||Xx(p.valueDeclaration,_,t,m),e.hasOnlyExpressionInitializer(t)&&t.initializer&&w_(TE(t.initializer),m,t,t.initializer,void 0),p.valueDeclaration&&!Yx(t,p.valueDeclaration)&&Jn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}167!==t.kind&&166!==t.kind&&(cx(t),254!==t.kind&&203!==t.kind||(t=>{if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(254!==t.kind||t.initializer)){var r=ya(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=mi(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&Ry(n)){var i=e.getAncestor(n.valueDeclaration,255),a=237===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(235===a.kind&&e.isFunctionLike(a.parent)||262===a.kind||261===a.kind||305===a.kind)){var o=Qa(n);Jn(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}})(t),Gx(t,t.name))}}}}function Xx(t,r,n,i){var a=e.getNameOfDeclaration(n),o=167===n.kind||166===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=Jn(a,o,s,eo(r),eo(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function Yx(t,r){return 164===t.kind&&254===r.kind||254===t.kind&&164===r.kind||e.hasQuestionToken(t)===e.hasQuestionToken(r)&&e.getSelectedEffectiveModifierFlags(t,504)===e.getSelectedEffectiveModifierFlags(r,504)}function Qx(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath}),(t=>{if(243!==t.parent.parent.kind&&244!==t.parent.parent.kind)if(16777216&t.flags)OT(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return zT(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return zT(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(237!==t.parent.parent.kind||!t.type||t.initializer||16777216&t.flags)){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return zT(t.exclamationToken,r)}!(K<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)||K===e.ModuleKind.System||16777216&t.parent.parent.flags||!e.hasSyntacticModifier(t.parent.parent,1)||MT(t.name),(e.isLet(t)||e.isVarConst(t))&&RT(t.name)})(t),qx(t),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function Zx(t){gT(t)||LT(t.declarationList)||(t=>{if(!BT(t.parent)){if(e.isLet(t.declarationList))return zT(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);e.isVarConst(t.declarationList)&&zT(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}})(t),e.forEach(t.declarationList.declarations,lS)}function eD(t,r){if($)for(n(t,r);e.isBinaryExpression(t)&&56===t.operatorToken.kind;)n(t=t.left,r);function n(t,r){var n=!e.isBinaryExpression(t)||56!==t.operatorToken.kind&&55!==t.operatorToken.kind?t:t.right;if(!e.isModuleExportsAccessExpression(n)){var i=rD(n),a=e.isPropertyAccessExpression(n)&&CE(n.expression);if(4194304&Eg(i)&&!a){var o=ll(i,0),s=!!lx(i);if(0!==o.length||s){var c=e.isIdentifier(n)?n:e.isPropertyAccessExpression(n)?n.name:e.isBinaryExpression(n)&&e.isIdentifier(n.right)?n.right:void 0,l=c&&CS(c);(l||s)&&(l&&e.isBinaryExpression(t.parent)&&((t,r)=>{for(;e.isBinaryExpression(t)&&55===t.operatorToken.kind;){if(e.forEachChild(t.right,(function t(n){if(e.isIdentifier(n)){var i=CS(n);if(i&&i===r)return!0}return e.forEachChild(n,t)})))return!0;t=t.parent}return!1})(t.parent,l)||l&&r&&((t,r,n,i)=>!!e.forEachChild(r,(function r(a){if(e.isIdentifier(a)){var o=CS(a);if(o&&o===i){if(e.isIdentifier(t)||e.isIdentifier(n)&&e.isBinaryExpression(n.parent))return!0;for(var s=n.parent,c=a.parent;s&&c;){if(e.isIdentifier(s)&&e.isIdentifier(c)||108===s.kind&&108===c.kind)return CS(s)===CS(c);if(e.isPropertyAccessExpression(s)&&e.isPropertyAccessExpression(c)){if(CS(s.name)!==CS(c.name))return!1;c=c.expression,s=s.expression}else{if(!e.isCallExpression(s)||!e.isCallExpression(c))return!1;c=c.expression,s=s.expression}}}}return e.forEachChild(a,r)})))(t,r,c,l)||(s?qn(n,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,ro(i)):Jn(n,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead)))}}}}}function tD(t,r){return 16384&t.flags&&Jn(r,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),t}function rD(e,t){return tD(HE(e,t),e)}function nD(e){var t=e.initializer;t.declarations.length>=1&&Qx(t.declarations[0])}function iD(e){return aD(e.awaitModifier?15:13,Vy(e.expression),Ke,e.expression)}function aD(e,t,r,n){return Eo(t)?t:oD(e,t,r,n,!0)||Re}function oD(t,r,n,i,a){var o=0!=(2&t);if(r!==ct){var s=W>=2,c=!s&&H.downlevelIteration,l=H.noUncheckedIndexedAccess&&!!(128&t);if(s||c||o){var d=pD(r,t,s?i:void 0);if(a&&d){var u=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;u&&N_(n,d.nextType,i,u)}if(d||s)return l?kg(d&&d.yieldType):d&&d.yieldType}var p=r,_=!1,f=!1;if(4&t){if(1048576&p.flags){var m=r.types,g=e.filter(m,(e=>!(402653316&e.flags)));g!==m&&(p=fu(g,2))}else 402653316&p.flags&&(p=ct);if((f=p!==r)&&(W<1&&i&&(Jn(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),_=!0),131072&p.flags))return l?kg(Ye):Ye}if(!wf(p)){if(i&&!_){var h=((n,i)=>{var a;return i?n?[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]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:sD(t,0,r,void 0)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:(e=>{switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1})(null===(a=r.symbol)||void 0===a?void 0:a.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]})(!!(4&t)&&!f,c),y=h[0];qn(i,h[1]&&!!lx(p),y,eo(p))}return f?l?kg(Ye):Ye:void 0}var v=gl(p,Qe);return f&&v?402653316&v.flags&&!H.noUncheckedIndexedAccess?Ye:fu(l?[v,Ye,Ke]:[v,Ye],2):128&t?kg(v):v}vD(i,r,o)}function sD(e,t,r,n){if(!Eo(r)){var i=pD(r,e,n);return i&&i[B(t)]}}function cD(e,t,r){if(void 0===e&&(e=ct),void 0===t&&(t=ct),void 0===r&&(r=He),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=nd([e,t,r]),i=zr.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},zr.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function lD(t){for(var r,n,i,a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s&&s!==Hr){if(s===Wr)return Wr;r=e.append(r,s.yieldType),n=e.append(n,s.returnType),i=e.append(i,s.nextType)}}return r||n||i?cD(r&&fu(r),n&&fu(n),i&&xu(i)):Hr}function dD(e,t){return e[t]}function uD(e,t,r){return e[t]=r}function pD(t,r,n){var i,a;if(Eo(t))return Wr;if(!(1048576&t.flags)){var o=fD(t,r,n,h=n?{errors:void 0}:void 0);if(o===Hr){if(n){var s=vD(n,t,!!(2&r));(null==h?void 0:h.errors)&&e.addRelatedInfo.apply(void 0,f([s],h.errors,!1))}return}if(null===(i=null==h?void 0:h.errors)||void 0===i?void 0:i.length)for(var c=0,l=h.errors;c<l.length;c++){var d=l[c];kn.add(d)}return o}var u,p=2&r?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",_=dD(t,p);if(_)return _===Hr?void 0:_;for(var m=0,g=t.types;m<g.length;m++){var h,y=fD(g[m],r,n,h=n?{errors:void 0}:void 0);if(y===Hr)return n&&(s=vD(n,t,!!(2&r)),(null==h?void 0:h.errors)&&e.addRelatedInfo.apply(void 0,f([s],h.errors,!1))),void uD(t,p,Hr);if(null===(a=null==h?void 0:h.errors)||void 0===a?void 0:a.length)for(var v=0,b=h.errors;v<b.length;v++)d=b[v],kn.add(d);u=e.append(u,y)}var E=u?lD(u):Hr;return uD(t,p,E),E===Hr?void 0:E}function _D(e,t){if(e===Hr)return Hr;if(e===Wr)return Wr;var r=e.yieldType,n=e.returnType,i=e.nextType;return t&&Wd(!0),cD(gx(r,t)||Re,gx(n,t)||Re,i)}function fD(e,t,r,n){if(Eo(e))return Wr;var i,a=!1;if(2&t&&(i=mD(e,Gr)||hD(e,Gr))){if(i!==Hr||!r)return 8&t?_D(i,r):i;a=!0}if(1&t&&(i=mD(e,$r)||hD(e,$r)))if(i===Hr&&r)a=!0;else{if(!(2&t))return i;if(i!==Hr)return i=_D(i,r),a?i:uD(e,"iterationTypesOfAsyncIterable",i)}return 2&t&&(i=yD(e,Gr,r,n,a))!==Hr?i:1&t&&(i=yD(e,$r,r,n,a))!==Hr?2&t?(i=_D(i,r),a?i:uD(e,"iterationTypesOfAsyncIterable",i)):i:Hr}function mD(e,t){return dD(e,t.iterableCacheKey)}function gD(e,t){var r=mD(e,t)||yD(e,t,void 0,void 0,!1);return r===Hr?Jr:r}function hD(e,t){var r;if(ds(e,r=t.getGlobalIterableType(!1))||ds(e,r=t.getGlobalIterableIteratorType(!1))){var n=ld(e)[0],i=gD(r,t),a=i.returnType,o=i.nextType;return uD(e,t.iterableCacheKey,cD(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(a,void 0)||a,o))}if(ds(e,t.getGlobalGeneratorType(!1))){var s=ld(e);return n=s[0],a=s[1],o=s[2],uD(e,t.iterableCacheKey,cD(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(a,void 0)||a,o))}}function yD(t,r,n,i,a){var o,s,c,l,d=sl(t,(s=r.iteratorSymbolName,(l=(c=Ld(!1))&&bo(cs(c),e.escapeLeadingUnderscores(s)))&&Js(l)?Ys(l):"__@".concat(s))),u=!d||16777216&d.flags?void 0:cs(d);if(Eo(u))return a?Wr:uD(t,r.iterableCacheKey,Wr);var p=u?ll(u,0):void 0;if(!e.some(p))return a?Hr:uD(t,r.iterableCacheKey,Hr);var _=null!==(o=bD(xu(e.map(p,Ll)),r,n,i,a))&&void 0!==o?o:Hr;return a?_:uD(t,r.iterableCacheKey,_)}function vD(t,r,n){var i=n?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return qn(t,!!lx(r),i,eo(r))}function bD(e,t,r,n,i){if(Eo(e))return Wr;var a=ED(e,t)||((e,t)=>{var r=t.getGlobalIterableIteratorType(!1);if(ds(e,r)){var n=ld(e)[0],i=ED(r,t)||CD(r,t,void 0,void 0,!1),a=i===Hr?Jr:i,o=a.returnType,s=a.nextType;return uD(e,t.iteratorCacheKey,cD(n,o,s))}if(ds(e,t.getGlobalIteratorType(!1))||ds(e,t.getGlobalGeneratorType(!1))){var c=ld(e);return n=c[0],o=c[1],s=c[2],uD(e,t.iteratorCacheKey,cD(n,o,s))}})(e,t);return a===Hr&&r&&(a=void 0,i=!0),null!=a||(a=CD(e,t,r,n,i)),a===Hr?void 0:a}function ED(e,t){return dD(e,t.iteratorCacheKey)}function xD(e,t){var r=bo(e,"done")||et;return T_(0===t?et:rt,r)}function DD(e){return xD(e,0)}function SD(e){return xD(e,1)}function TD(t,r,n,i,a){var o,s,c,l,d,u,p=sl(t,n);if(p||"next"===n){var _=!p||"next"===n&&16777216&p.flags?void 0:"next"===n?cs(p):xg(cs(p),2097152);if(Eo(_))return"next"===n?Wr:Kr;var f,m,g,h,y,v=_?ll(_,0):e.emptyArray;if(0===v.length){if(i){var b="next"===n?r.mustHaveANextMethodDiagnostic:r.mustBeAMethodDiagnostic;a?(null!==(o=a.errors)&&void 0!==o||(a.errors=[]),a.errors.push(e.createDiagnosticForNode(i,b,n))):Jn(i,b,n)}return"next"===n?Hr:void 0}if((null==_?void 0:_.symbol)&&1===v.length){var E=r.getGlobalGeneratorType(!1),x=r.getGlobalIteratorType(!1),D=(null===(c=null===(s=E.symbol)||void 0===s?void 0:s.members)||void 0===c?void 0:c.get(n))===_.symbol,S=!D&&(null===(d=null===(l=x.symbol)||void 0===l?void 0:l.members)||void 0===d?void 0:d.get(n))===_.symbol;if(D||S){var T=D?E:x,C=_.mapper;return cD(Jp(T.typeParameters[0],C),Jp(T.typeParameters[1],C),"next"===n?Jp(T.typeParameters[2],C):void 0)}}for(var A=0,k=v;A<k.length;A++){var N=k[A];"throw"!==n&&e.some(N.parameters)&&(f=e.append(f,Ib(N,0))),m=e.append(m,Ll(N))}if("throw"!==n){var w=f?fu(f):He;if("next"===n)h=w;else if("return"===n){var F=r.resolveIterationType(w,i)||Re;g=e.append(g,F)}}var P=m?xu(m):ct,I=(e=>{if(Eo(e))return Wr;var t=dD(e,"iterationTypesOfIteratorResult");if(t)return t;if(ds(e,hr||(hr=Id("IteratorYieldResult",1,!1))||wt))return uD(e,"iterationTypesOfIteratorResult",cD(ld(e)[0],void 0,void 0));if(ds(e,yr||(yr=Id("IteratorReturnResult",1,!1))||wt))return uD(e,"iterationTypesOfIteratorResult",cD(void 0,ld(e)[0],void 0));var r=Wg(e,DD),n=r!==ct?bo(r,"value"):void 0,i=Wg(e,SD),a=i!==ct?bo(i,"value"):void 0;return uD(e,"iterationTypesOfIteratorResult",n||a?cD(n,a||st,void 0):Hr)})(r.resolveIterationType(P,i)||Re);return I===Hr?(i&&(a?(null!==(u=a.errors)&&void 0!==u||(a.errors=[]),a.errors.push(e.createDiagnosticForNode(i,r.mustHaveAValueDiagnostic,n))):Jn(i,r.mustHaveAValueDiagnostic,n)),y=Re,g=e.append(g,Re)):(y=I.yieldType,g=e.append(g,I.returnType)),cD(y,fu(g),h)}}function CD(e,t,r,n,i){var a=lD([TD(e,t,"next",r,n),TD(e,t,"return",r,n),TD(e,t,"throw",r,n)]);return i?a:uD(e,t.iteratorCacheKey,a)}function AD(e,t,r){if(!Eo(t)){var n=kD(t,r);return n&&n[B(e)]}}function kD(e,t){if(Eo(e))return Wr;var r=t?Gr:$r;return pD(e,t?2:1,void 0)||((e,t,r,n)=>bD(e,t,void 0,void 0,!1))(e,r)}function ND(e,t){var r=!!(2&t);if(1&t){var n=AD(1,e,r);return n?r?hx(fx(n)):n:Ue}return r?hx(e)||Ue:e}function wD(t,r){var n=ND(r,e.getFunctionFlags(t));return!!n&&dE(n,16387)}function FD(t,r,n){var i=fl(t);if(0!==i.length){for(var a=0,o=Oc(t);a<o.length;a++){var s=o[a];n&&4194304&s.flags||PD(t,s,wu(s,8576,!0),ls(s))}var c=r.valueDeclaration;if(c&&e.isClassLike(c))for(var l=0,d=c.members;l<d.length;l++){var u=d[l];if(!e.isStatic(u)&&!Xs(u)){var p=ya(u);PD(t,p,jE(u.name.expression),ls(p))}}if(i.length>1)for(var _=0,f=i;_<f.length;_++)ID(t,f[_])}}function PD(t,r,n,i){var a=r.valueDeclaration,o=e.getNameOfDeclaration(a);if(!o||!e.isPrivateIdentifier(o))for(var s=hl(t,n),c=2&e.getObjectFlags(t)?e.getDeclarationOfKind(t.symbol,258):void 0,l=a&&221===a.kind||o&&162===o.kind?a:void 0,d=va(r)===t.symbol?a:void 0,u=n=>{var a=n.declaration&&va(ya(n.declaration))===t.symbol?n.declaration:void 0,o=d||a||(c&&!e.some(Ss(t),(e=>!!Mc(e,r.escapedName)&&!!gl(e,n.keyType)))?c:void 0);if(o&&!T_(i,n.type)){var s=Kn(o,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Qa(r),eo(i),eo(n.keyType),eo(n.type));l&&o!==l&&e.addRelatedInfo(s,e.createDiagnosticForNode(l,e.Diagnostics._0_is_declared_here,Qa(r))),kn.add(s)}},p=0,_=s;p<_.length;p++)u(_[p])}function ID(t,r){for(var n=r.declaration,i=hl(t,r.keyType),a=2&e.getObjectFlags(t)?e.getDeclarationOfKind(t.symbol,258):void 0,o=n&&va(ya(n))===t.symbol?n:void 0,s=n=>{if(n===r)return"continue";var i=n.declaration&&va(ya(n.declaration))===t.symbol?n.declaration:void 0,s=o||i||(a&&!e.some(Ss(t),(e=>!!ml(e,r.keyType)&&!!gl(e,n.keyType)))?a:void 0);s&&!T_(r.type,n.type)&&Jn(s,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,eo(r.keyType),eo(r.type),eo(n.keyType),eo(n.type))},c=0,l=i;c<l.length;c++)s(l[c])}function OD(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Jn(e,t,e.escapedText)}}function MD(t){var r=!1;if(t)for(var n=0;n<t.length;n++){var i=t[n];WE(i),_(a(i,n))}function a(n,i){return()=>{var a,o,s;n.default?(r=!0,a=n.default,o=t,s=i,function t(r){if(178===r.kind){var n=Td(r);if(262144&n.flags)for(var i=s;i<o.length;i++)n.symbol===ya(o[i])&&Jn(r,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(r,t)}(a)):r&&Jn(n,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var c=0;c<i;c++)t[c].symbol===n.symbol&&Jn(n.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(n.name))}}}function RD(t){if(!t.declarations||1!==t.declarations.length){var r=ci(t);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var n=(t=>e.filter(t.declarations,(e=>257===e.kind||258===e.kind)))(t);if(!n||n.length<=1)return;if(!LD(n,Rs(t).localTypeParameters,e.getEffectiveTypeParameterDeclarations))for(var i=Qa(t),a=0,o=n;a<o.length;a++)Jn(o[a].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}function LD(t,r,n){for(var i=e.length(r),a=Al(r),o=0,s=t;o<s.length;o++){var c=n(s[o]),l=c.length;if(l<a||l>i)return!1;for(var d=0;d<l;d++){var u=c[d],p=r[d];if(u.name.escapedText!==p.symbol.escapedName)return!1;var _=e.getEffectiveConstraintOfTypeParameter(u),f=_&&Up(_),m=Uc(p);if(f&&m&&!b_(f,m))return!1;var g=u.default&&Up(u.default),h=qc(p);if(g&&h&&!b_(g,h))return!1}}return!0}function BD(t){!(t=>{var r=e.getSourceFileOfNode(t);(t=>{var r=!1,n=!1;if(!gT(t)&&t.heritageClauses)for(var i=0,a=t.heritageClauses;i<a.length;i++){var o=a[i];if(94===o.token){if(r)return jT(o,e.Diagnostics.extends_clause_already_seen);if(n)return jT(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return jT(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(117===o.token),n)return jT(o,e.Diagnostics.implements_clause_already_seen);n=!0}DT(o)}})(t)||bT(t.typeParameters,r)})(t),Sx(t),Gx(t,t.name),MD(e.getEffectiveTypeParameterDeclarations(t)),cx(t);var r=ya(t),n=Rs(r),i=rc(n),a=cs(r);RD(r),sx(r),(t=>{for(var r=new e.Map,n=new e.Map,i=new e.Map,a=0,o=t.members;a<o.length;a++){var s=o[a];if(171===s.kind)for(var c=0,l=s.parameters;c<l.length;c++){var d=l[c];e.isParameterPropertyDeclaration(d,s)&&!e.isBindingPattern(d.name)&&h(r,d.name,d.name.escapedText,3)}else{var u=e.isStatic(s),p=s.name;if(!p)continue;var _=e.isPrivateIdentifier(p),f=_&&u?16:0,m=_?i:u?n:r,g=p&&e.getPropertyNameForPropertyNameNode(p);if(g)switch(s.kind){case 172:h(m,p,g,1|f);break;case 173:h(m,p,g,2|f);break;case 167:h(m,p,g,3|f);break;case 169:h(m,p,g,8|f)}}}function h(t,r,n,i){var a=t.get(n);if(a)if((16&a)!=(16&i))Jn(r,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(r));else{var o=!!(8&a),s=!!(8&i);o||s?o!==s&&Jn(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):a&i&-17?Jn(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):t.set(n,a|i)}else t.set(n,i)}})(t),16777216&t.flags||(t=>{for(var r=0,n=t.members;r<n.length;r++){var i=n[r],a=i.name;if(e.isStatic(i)&&a){var o=e.getPropertyNameForPropertyNameNode(a);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":Jn(a,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,po(ya(t)))}}}})(t);var o=e.getEffectiveBaseTypeNode(t);if(o){e.forEach(o.typeArguments,lS),W<2&&fT(o.parent,1);var s=e.getClassExtendsHeritageElement(t);s&&s!==o&&HE(s.expression);var c=Ss(n);c.length&&_((()=>{var r=c[0],s=xs(n),l=Yc(s);if(((t,r)=>{var n=ll(t,1);if(n.length){var i=n[0].declaration;i&&e.hasEffectiveModifier(i,8)&&(xS(r,e.getClassLikeDeclarationOfSymbol(t.symbol))||Jn(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Zi(t.symbol)))}})(l,o),lS(o.expression),e.some(o.typeArguments)){e.forEach(o.typeArguments,lS);for(var d=0,u=bs(l,o.typeArguments,o);d<u.length;d++){var p=u[d];if(!tx(o,p.typeParameters))break}}var _=rc(r,n.thisType);if(N_(i,_,void 0)?N_(a,v_(l),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):VD(t,i,_,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&s.flags&&(hs(a)?ll(s,1).some((e=>4&e.flags))&&!e.hasSyntacticModifier(t,128)&&Jn(t.name||t,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Jn(t.name||t,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(l.symbol&&32&l.symbol.flags||8650752&s.flags)){var f=Es(l,o.typeArguments,o);e.forEach(f,(e=>!pb(e.declaration)&&!b_(Ll(e),r)))&&Jn(o.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!((t,r)=>{var n,i,a,o,s=s=>{var c=zD(s);if(4194304&c.flags)return"continue";var l=Mc(t,c.escapedName);if(!l)return"continue";var d=zD(l),u=e.getDeclarationModifierFlagsFromSymbol(c);if(e.Debug.assert(!!d,"derived should point to something, even if it is the base class' declaration."),d===c){var p=e.getClassLikeDeclarationOfSymbol(t.symbol);if(128&u&&(!p||!e.hasSyntacticModifier(p,128))){for(var _=0,f=Ss(t);_<f.length;_++){var m=f[_];if(m!==r){var g=Mc(m,c.escapedName),h=g&&zD(g);if(h&&h!==c)return"continue-basePropertyCheck"}}226===p.kind?Jn(p,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Qa(s),eo(r)):Jn(p,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,eo(t),Qa(s),eo(r))}}else{var y=e.getDeclarationModifierFlagsFromSymbol(d);if(8&u||8&y)return"continue";var v=void 0,b=98308&c.flags,E=98308&d.flags;if(b&&E){if((6&e.getCheckFlags(c)?null===(n=c.declarations)||void 0===n?void 0:n.some((e=>HD(e,u))):null===(i=c.declarations)||void 0===i?void 0:i.every((e=>HD(e,u))))||262144&e.getCheckFlags(c)||d.valueDeclaration&&e.isBinaryExpression(d.valueDeclaration))return"continue";var x=4!==b&&4===E;if(x||4===b&&4!==E){var D=x?e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Jn(e.getNameOfDeclaration(d.valueDeclaration)||d.valueDeclaration,D,Qa(c),eo(r),eo(t))}else if(J){var S=null===(a=d.declarations)||void 0===a?void 0:a.find((e=>167===e.kind&&!e.initializer));if(S&&!(33554432&d.flags)&&!(128&u)&&!(128&y)&&!(null===(o=d.declarations)||void 0===o?void 0:o.some((e=>!!(16777216&e.flags))))){var T=Ca(e.getClassLikeDeclarationOfSymbol(t.symbol)),C=S.name;if(S.exclamationToken||!T||!e.isIdentifier(C)||!$||!KD(C,t,T)){var A=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;Jn(e.getNameOfDeclaration(d.valueDeclaration)||d.valueDeclaration,A,Qa(c),eo(r))}}}return"continue"}if(Ly(c)){if(Ly(d)||4&d.flags)return"continue";e.Debug.assert(!!(98304&d.flags)),v=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else v=98304&c.flags?e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Jn(e.getNameOfDeclaration(d.valueDeclaration)||d.valueDeclaration,v,eo(r),Qa(c),eo(t))}};e:for(var c=0,l=Lc(r);c<l.length;c++)switch(s(l[c])){case"continue-basePropertyCheck":continue e}})(n,r)}))}!((t,r,n,i)=>{for(var a=e.getEffectiveBaseTypeNode(t)&&Ss(r),o=(null==a?void 0:a.length)?rc(e.first(a),r.thisType):void 0,s=xs(r),c=a=>{if(e.hasAmbientModifier(a))return"continue";e.isConstructorDeclaration(a)&&e.forEach(a.parameters,(c=>{e.isParameterPropertyDeclaration(c,a)&&UD(t,i,s,o,r,n,c,!0)})),UD(t,i,s,o,r,n,a,!1)},l=0,d=t.members;l<d.length;l++)c(d[l])})(t,n,i,a);var l=e.getEffectiveImplementsTypeNodes(t);if(l)for(var d=0,u=l;d<u.length;d++){var p=u[d];e.isEntityNameExpression(p.expression)&&!e.isOptionalChain(p.expression)||Jn(p.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),nx(p),_(f(p))}function f(r){return()=>{var a=rl(Up(r));if(!xo(a))if(Cs(a)){var o=a.symbol&&32&a.symbol.flags?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1,s=rc(a,n.thisType);N_(i,s,void 0)||VD(t,i,s,o)}else Jn(r,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}_((()=>{FD(n,r),FD(a,r,!0),qE(t),(t=>{if($&&Y&&!(16777216&t.flags))for(var r=Ca(t),n=0,i=t.members;n<i.length;n++){var a=i[n];if(!(2&e.getEffectiveModifierFlags(a))&&!e.isStatic(a)&&WD(a)){var o=a.name;if(e.isIdentifier(o)||e.isPrivateIdentifier(o)||e.isComputedPropertyName(o)){var s=cs(ya(a));3&s.flags||W_(s)||r&&KD(o,s,r)||Jn(a.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}})(t)}))}function UD(t,r,n,i,a,o,s,c,l){void 0===l&&(l=!0);var d=s.name&&CS(s.name)||CS(s);return d?jD(t,r,n,i,a,o,e.hasOverrideModifier(s),e.hasAbstractModifier(s),e.isStatic(s),c,e.symbolName(d),l?s:void 0):0}function jD(t,r,n,i,a,o,s,c,l,d,u,p){var _=e.isInJSFile(t),f=!!(16777216&t.flags);if(i&&(s||H.noImplicitOverride)){var m=e.escapeLeadingUnderscores(u),g=l?n:i,h=sl(l?r:o,m),y=sl(g,m),v=eo(i);if(h&&!y&&s){if(p){var b=lv(u,g);b?Jn(p,_?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,v,Qa(b)):Jn(p,_?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,v)}return 2}if(h&&(null==y?void 0:y.declarations)&&H.noImplicitOverride&&!f){var E=e.some(y.declarations,e.hasAbstractModifier);if(s)return 0;if(!E)return p&&Jn(p,d?_?e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:_?e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,v),1;if(c&&E)return p&&Jn(p,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,v),1}}else if(s){if(p){var x=eo(a);Jn(p,_?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,x)}return 2}return 0}function VD(t,r,n,i){for(var a=!1,o=t=>{if(e.isStatic(t))return"continue";var i=t.name&&CS(t.name)||CS(t);if(i){var o=sl(r,i.escapedName),s=sl(n,i.escapedName);o&&s&&(N_(cs(o),cs(s),t.name||t,void 0,(()=>e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Qa(i),eo(r),eo(n))))||(a=!0))}},s=0,c=t.members;s<c.length;s++)o(c[s]);a||N_(r,n,t.name||t,i)}function zD(t){return 1&e.getCheckFlags(t)?t.target:t}function HD(t,r){return 128&r&&(!e.isPropertyDeclaration(t)||!t.initializer)||e.isInterfaceDeclaration(t.parent)}function WD(t){return 167===t.kind&&!e.hasAbstractModifier(t)&&!t.exclamationToken&&!t.initializer}function KD(t,r,n){var i=e.isComputedPropertyName(t)?e.factory.createElementAccessExpression(e.factory.createThis(),t.expression):e.factory.createPropertyAccessExpression(e.factory.createThis(),t);return e.setParent(i.expression,i),e.setParent(i,n),i.flowNode=n.returnFlowNode,!W_(fh(i,r,em(r)))}function JD(e){var t=li(e);if(!(16384&t.flags)){t.flags|=16384;for(var r=0,n=0,i=e.members;n<i.length;n++){var a=i[n],o=GD(a,r);li(a).enumMemberValue=o,r="number"==typeof o?o+1:void 0}}}function GD(t,r){if(e.isComputedNonLiteralName(t.name))Jn(t.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var n=e.getTextOfPropertyName(t.name);e.isNumericLiteralName(n)&&!e.isInfinityOrNaNString(n)&&Jn(t.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}return t.initializer?(t=>{var r=Fs(ya(t.parent)),n=e.isEnumConst(t.parent),i=t.initializer,a=1!==r||ws(t)?function r(n){switch(n.kind){case 219:var i=r(n.operand);if("number"==typeof i)switch(n.operator){case 39:return i;case 40:return-i;case 54:return~i}break;case 221:var a=r(n.left),o=r(n.right);if("number"==typeof a&&"number"==typeof o)switch(n.operatorToken.kind){case 51:return a|o;case 50:return a&o;case 48:return a>>o;case 49:return a>>>o;case 47:return a<<o;case 52:return a^o;case 41:return a*o;case 43:return a/o;case 39:return a+o;case 40:return a-o;case 44:return a%o;case 42:return Math.pow(a,o)}else if("string"==typeof a&&"string"==typeof o&&39===n.operatorToken.kind)return a+o;break;case 10:case 14:return n.text;case 8:return KT(n),+n.text;case 212:return r(n.expression);case 79:var c=n;return e.isInfinityOrNaNString(c.escapedText)?+c.escapedText:e.nodeIsMissing(n)?0:s(n,ya(t.parent),c.escapedText);case 207:case 206:if($D(n)){var l,d=jE(n.expression);if(d.symbol&&384&d.symbol.flags)return l=206===n.kind?n.name.escapedText:e.escapeLeadingUnderscores(e.cast(n.argumentExpression,e.isLiteralExpression).text),s(n,d.symbol,l)}}}(i):void 0;if(void 0!==a)n&&"number"==typeof a&&!isFinite(a)&&Jn(i,isNaN(a)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===r)return Jn(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(n)Jn(i,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(16777216&t.parent.flags)Jn(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var o=HE(i);uE(o,296)?N_(o,Rs(ya(t.parent)),i,void 0):Jn(i,e.Diagnostics.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,eo(o))}}return a;function s(r,n,i){var a=n.exports.get(i);if(a){var o=a.valueDeclaration;if(o!==t)return o&&pi(o,t)&&e.isEnumDeclaration(o.parent)?QS(o):(Jn(r,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);Jn(r,e.Diagnostics.Property_0_is_used_before_being_assigned,Qa(a))}}})(t):16777216&t.parent.flags&&!e.isEnumConst(t.parent)&&0===Fs(ya(t.parent))?void 0:void 0!==r?r:void Jn(t.name,e.Diagnostics.Enum_member_must_have_initializer)}function $D(t){return jE(t)!==Ue&&(79===t.kind||206===t.kind&&$D(t.expression)||207===t.kind&&$D(t.expression)&&e.isStringLiteralLike(t.argumentExpression))}function qD(t){e.isPrivateIdentifier(t.name)&&Jn(t,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function XD(t,r){var n;switch(t.kind){case 237:for(var i=0,a=t.declarationList.declarations;i<a.length;i++)XD(a[i],r);break;case 271:case 272:jT(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 265:case 266:jT(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 203:case 254:var o=t.name;if(e.isBindingPattern(o)){for(var s=0,c=o.elements;s<c.length;s++)XD(c[s],r);break}case 257:case 260:case 256:case 258:case 261:case 259:if(r)return;var l=ya(t);if(l){var d=!(33554432&l.flags);d||(d=!!(null===(n=l.parent)||void 0===n?void 0:n.declarations)&&e.isExternalModuleAugmentation(l.parent.declarations[0]))}}}function YD(t){var r=e.getExternalModuleName(t);if(!r||e.nodeIsMissing(r))return!1;if(!e.isStringLiteral(r))return Jn(r,e.Diagnostics.String_literal_expected),!1;var n=262===t.parent.kind&&e.isAmbientModule(t.parent.parent);if(305!==t.parent.kind&&!n)return Jn(r,272===t.kind?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(n&&e.isExternalModuleNameRelative(r.text)&&!co(t))return Jn(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!e.isImportEqualsDeclaration(t)&&t.assertClause){for(var i=!1,a=0,o=t.assertClause.elements;a<o.length;a++){var s=o[a];e.isStringLiteral(s.value)||(i=!0,Jn(s.value,e.Diagnostics.Import_assertion_values_must_be_string_literal_expressions))}return!i}return!0}function QD(t){var r,n,i,a,o,s=ya(t),c=Ji(s);if(c!==Pe){if(s=ha(s.exportSymbol||s),e.isInJSFile(t)&&!(111551&c.flags)&&!e.isTypeOnlyImportOrExportDeclaration(t)){var l=e.isImportOrExportSpecifier(t)?t.propertyName||t.name:e.isNamedDeclaration(t)?t.name:t;if(e.Debug.assert(274!==t.kind),275===t.kind){var d=Jn(l,e.Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files),u=null===(n=null===(r=e.getSourceFileOfNode(t).symbol)||void 0===r?void 0:r.exports)||void 0===n?void 0:n.get((t.propertyName||t.name).escapedText);if(u===c){var p=null===(i=u.declarations)||void 0===i?void 0:i.find(e.isJSDocNode);p&&e.addRelatedInfo(d,e.createDiagnosticForNode(p,e.Diagnostics._0_is_automatically_exported_here,e.unescapeLeadingUnderscores(u.escapedName)))}}else{e.Debug.assert(254!==t.kind);var _=e.findAncestor(t,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration)),f=null!==(o=_&&(null===(a=e.tryGetModuleSpecifierFromDeclaration(_))||void 0===a?void 0:a.text))&&void 0!==o?o:"...",m=e.unescapeLeadingUnderscores(e.isIdentifier(l)?l.escapedText:s.escapedName);Jn(l,e.Diagnostics._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,m,'import("'.concat(f,'").').concat(m))}return}var g=(1160127&s.flags?111551:0)|(788968&s.flags?788968:0)|(1920&s.flags?1920:0);if(c.flags&g&&Jn(t,275===t.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,Qa(s)),H.isolatedModules&&!e.isTypeOnlyImportOrExportDeclaration(t)&&!(16777216&t.flags)){var h=qi(s),y=!(111551&c.flags);if(y||h)switch(t.kind){case 267:case 270:case 265:H.preserveValueImports&&(e.Debug.assertIsDefined(t.name,"An ImportClause with a symbol should have a name"),hi(Jn(t,y?e.Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,v=e.idText(270===t.kind&&t.propertyName||t.name)),y?void 0:h,v)),y&&265===t.kind&&e.hasEffectiveModifier(t,1)&&Jn(t,e.Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided);break;case 275:var v;if(e.getSourceFileOfNode(h)!==e.getSourceFileOfNode(t))return void hi(Jn(t,y?e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled,v=e.idText(t.propertyName||t.name)),y?void 0:h,v)}}if(e.isImportSpecifier(t)){var b=eS(s,t);ZD(b)&&b.declarations&&Qn(t,b.declarations,b.escapedName)}}}function ZD(t){return!!t.declarations&&e.every(t.declarations,(t=>!!(268435456&e.getCombinedNodeFlags(t))))}function eS(t,r){if(!(2097152&t.flags))return t;var n=Ji(t);if(n===Pe)return n;for(;2097152&t.flags;){var i=fy(t);if(!i)break;if(i===n)break;if(i.declarations&&e.length(i.declarations)){if(ZD(i)){Qn(r,i.declarations,i.escapedName);break}if(t===n)break;t=i}}return n}function tS(t){Gx(t,t.name),QD(t),270===t.kind&&"default"===e.idText(t.propertyName||t.name)&&e.getESModuleInterop(H)&&K!==e.ModuleKind.System&&(K<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&fT(t,131072)}function rS(t){var r;if(t.assertClause){var n=e.isExclusivelyTypeOnlyImportOrExport(t),i=e.getResolutionModeOverrideForClause(t.assertClause,n?zT:void 0);if(n&&i)return e.isNightly()||zT(t.assertClause,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),e.getEmitModuleResolutionKind(H)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(H)!==e.ModuleResolutionKind.NodeNext?zT(t.assertClause,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if((K===e.ModuleKind.NodeNext&&t.moduleSpecifier&&Pi(t.moduleSpecifier))!==e.ModuleKind.ESNext&&K!==e.ModuleKind.ESNext)return zT(t.assertClause,K===e.ModuleKind.NodeNext?e.Diagnostics.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:e.Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(e.isImportDeclaration(t)?null===(r=t.importClause)||void 0===r?void 0:r.isTypeOnly:t.isTypeOnly)return zT(t.assertClause,e.Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(i)return zT(t.assertClause,e.Diagnostics.resolution_mode_can_only_be_set_for_type_only_imports)}}function nS(e,t){var r=305===e.parent.kind||262===e.parent.kind||261===e.parent.kind;return r||jT(e,t),!r}function iS(t){return e.isImportDeclaration(t)&&t.importClause&&!t.importClause.isTypeOnly&&(r=t.importClause,e.forEachImportClauseDeclaration(r,(e=>!!ya(e).isReferenced)))&&!KS(t.importClause,!0)&&!(t=>e.forEachImportClauseDeclaration(t,(e=>!!ci(ya(e)).constEnumReferenced)))(t.importClause);var r}function aS(t){return e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)&&!t.isTypeOnly&&ya(t).isReferenced&&!KS(t,!1)&&!ci(ya(t)).constEnumReferenced}function oS(t){if(QD(t),e.getEmitDeclarations(H)&&fo(t.propertyName||t.name,!0),t.parent.parent.moduleSpecifier)e.getESModuleInterop(H)&&K!==e.ModuleKind.System&&(K<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&"default"===e.idText(t.propertyName||t.name)&&fT(t,131072);else{var r=t.propertyName||t.name,n=mi(r,r.escapedText,2998271,void 0,void 0,!0);if(n&&(n===ce||n===le||n.declarations&&di(vo(n.declarations[0]))))Jn(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(r));else{t.isTypeOnly||t.parent.parent.isTypeOnly||Xi(t);var i=n&&(2097152&n.flags?Ji(n):n);(!i||i===Pe||111551&i.flags)&&TE(t.propertyName||t.name)}}}function sS(t){var r=ya(t),n=ci(r);if(!n.exportsChecked){var i=r.exports.get("export=");if(i&&(t=>e.forEachEntry(t.exports,((e,t)=>"export="!==t)))(r)){var a=Ai(i)||i.valueDeclaration;!a||co(a)||e.isInJSFile(a)||Jn(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=fa(r);o&&o.forEach(((t,r)=>{var n=t.declarations,i=t.flags;if("__export"!==r&&!(1920&i)){var a=e.countWhere(n,e.and(k,e.not(e.isInterfaceDeclaration)));if(!(524288&i&&a<=2)&&a>1&&!cS(n))for(var o=0,s=n;o<s.length;o++){var c=s[o];R(c)&&kn.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(r)))}}})),n.exportsChecked=!0}}function cS(t){return t&&t.length>1&&t.every((t=>e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))))}function lS(t){if(t){var n=s;s=t,T=0,(t=>{e.forEach(t.jsDoc,(r=>{var n=r.comment,i=r.tags;dS(n),e.forEach(i,(r=>{dS(r.comment),e.isInJSFile(t)&&lS(r)}))}));var n=t.kind;if(r)switch(n){case 261:case 257:case 258:case 256:r.throwIfCancellationRequested()}switch(n>=237&&n<=253&&t.flowNode&&!lh(t.flowNode)&&$n(!1===H.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected),n){case 163:return WE(t);case 164:return KE(t);case 167:return XE(t);case 166:return(t=>(e.isPrivateIdentifier(t.name)&&Jn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),XE(t)))(t);case 180:case 179:case 174:case 175:case 176:return GE(t);case 169:case 168:return(t=>{PT(t)||TT(t.name),e.isMethodDeclaration(t)&&t.asteriskToken&&e.isIdentifier(t.name)&&"constructor"===e.idText(t.name)&&Jn(t.name,e.Diagnostics.Class_constructor_may_not_be_a_generator),Cx(t),e.hasSyntacticModifier(t,128)&&169===t.kind&&t.body&&Jn(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name)),e.isPrivateIdentifier(t.name)&&!e.getContainingClass(t)&&Jn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),YE(t)})(t);case 170:return(t=>{gT(t),e.forEachChild(t,lS)})(t);case 171:return(t=>{GE(t),(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 VT(t,i,n.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}})(t)||(t=>{var r=t.type||e.getEffectiveReturnTypeNode(t);r&&zT(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)})(t),lS(t.body);var r=ya(t),n=e.getDeclarationOfKind(r,t.kind);function i(t){return!!e.isPrivateIdentifierClassElementDeclaration(t)||167===t.kind&&!e.isStatic(t)&&!!t.initializer}t===n&&sx(r),e.nodeIsMissing(t.body)||_((()=>{var r=t.parent;if(e.getClassExtendsHeritageElement(r)){Th(t.parent,r);var n=Ah(r),a=Ch(t.body);if(a){if(n&&Jn(a,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==e.getEmitScriptTarget(H)||!J)&&(e.some(t.parent.members,i)||e.some(t.parameters,(t=>e.hasSyntacticModifier(t,16476)))))if(((t,r)=>{var n=e.walkUpParenthesizedExpressions(t.parent);return e.isExpressionStatement(n)&&n.parent===r})(a,t.body)){for(var o=void 0,s=0,c=t.body.statements;s<c.length;s++){var l=c[s];if(e.isExpressionStatement(l)&&e.isSuperCall(e.skipOuterExpressions(l.expression))){o=l;break}if(QE(l))break}void 0===o&&Jn(t,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else Jn(a,e.Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else n||Jn(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}))})(t);case 172:case 173:return ZE(t);case 178:return nx(t);case 177:return(t=>{var r=(e=>{switch(e.parent.kind){case 214:case 174:case 256:case 213:case 179:case 169:case 168:var t=e.parent;if(e===t.type)return t}})(t);if(r){var n=Nl(r),i=Ml(n);if(i){lS(t.type);var a=t.parameterName;if(0===i.kind||2===i.kind)Rp(a);else if(i.parameterIndex>=0)U(n)&&i.parameterIndex===n.parameters.length-1?Jn(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&N_(i.type,cs(n.parameters[i.parameterIndex]),t.type,void 0,(()=>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;s<c.length;s++){var l=c[s].name;if(e.isBindingPattern(l)&&JE(l,a,i.parameterName)){o=!0;break}}o||Jn(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,i.parameterName)}}}else Jn(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)})(t);case 181:return(e=>{Ad(e)})(t);case 182:return(t=>{e.forEach(t.members,lS),_((()=>{var e=yp(t);FD(e,e.symbol),qE(t),$E(t)}))})(t);case 183:return(e=>{lS(e.elementType)})(t);case 184:return(t=>{for(var r=t.elements,n=!1,i=!1,a=e.some(r,e.isNamedTupleMember),o=0,s=r;o<s.length;o++){var c=s[o];if(197!==c.kind&&a){zT(c,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var l=$d(c);if(8&l){var d=Up(c.type);if(!wf(d)){Jn(c,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(Tf(d)||Kf(d)&&4&d.target.combinedFlags)&&(i=!0)}else if(4&l){if(i){zT(c,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}i=!0}else if(2&l){if(i){zT(c,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}n=!0}else if(n){zT(c,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(t.elements,lS),Up(t)})(t);case 187:case 188:return(t=>{e.forEach(t.types,lS),Up(t)})(t);case 191:case 185:case 186:return lS(t.type);case 192:return(e=>{Rp(e)})(t);case 193:return(t=>{!(t=>{if(154===t.operator){if(151!==t.type.kind)return zT(t.type,e.Diagnostics._0_expected,e.tokenToString(151));var r=e.walkUpParenthesizedTypes(t.parent);if(e.isInJSFile(r)&&e.isJSDocTypeExpression(r)){var n=e.getJSDocHost(r);n&&(r=e.getSingleVariableOfVariableStatement(n)||n)}switch(r.kind){case 254:var i=r;if(79!==i.name.kind)return zT(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(i))return zT(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&i.parent.flags))return zT(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 167:if(!e.isStatic(r)||!e.hasEffectiveReadonlyModifier(r))return zT(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 166:if(!e.hasSyntacticModifier(r,64))return zT(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:zT(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else 145===t.operator&&183!==t.type.kind&&184!==t.type.kind&&jT(t,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(151))})(t),lS(t.type)})(t);case 189:return(t=>{e.forEachChild(t,lS)})(t);case 190:return(t=>{e.findAncestor(t,(e=>e.parent&&189===e.parent.kind&&e.parent.extendsType===e))||zT(t,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),lS(t.typeParameter);var r=ya(t.typeParameter);if(r.declarations&&r.declarations.length>1){var n=ci(r);if(!n.typeParametersChecked){n.typeParametersChecked=!0;var i=Ms(r),a=e.getDeclarationsOfKind(r,163);if(!LD(a,[i],(e=>[e])))for(var o=Qa(r),s=0,c=a;s<c.length;s++)Jn(c[s].name,e.Diagnostics.All_declarations_of_0_must_have_identical_constraints,o)}}Ax(t)})(t);case 198:return(e=>{for(var t=0,r=e.templateSpans;t<r.length;t++){var n=r[t];lS(n.type),N_(Up(n.type),ht,n.type)}Up(e)})(t);case 200:return(t=>{lS(t.argument),t.assertions&&e.getResolutionModeOverrideForClause(t.assertions.assertClause,zT)&&(e.isNightly()||zT(t.assertions.assertClause,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),e.getEmitModuleResolutionKind(H)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(H)!==e.ModuleResolutionKind.NodeNext&&zT(t.assertions.assertClause,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),Up(t)})(t);case 197:return(t=>{t.dotDotDotToken&&t.questionToken&&zT(t,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),185===t.type.kind&&zT(t.type,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),186===t.type.kind&&zT(t.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),lS(t.type),Up(t)})(t);case 328:return(t=>{var r=e.getEffectiveJSDocHost(t);if(r&&(e.isClassDeclaration(r)||e.isClassExpression(r))){var n=e.getJSDocTags(r).filter(e.isJSDocAugmentsTag);e.Debug.assert(n.length>0),n.length>1&&Jn(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Tx(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=Tx(a.expression);o&&i.escapedText!==o.escapedText&&Jn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else Jn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))})(t);case 329:return(t=>{var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||Jn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))})(t);case 345:case 338:case 339:return(t=>{t.typeExpression||Jn(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&OD(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),lS(t.typeExpression),MD(e.getEffectiveTypeParameterDeclarations(t))})(t);case 344:return(e=>{lS(e.constraint);for(var t=0,r=e.typeParameters;t<r.length;t++)lS(r[t])})(t);case 343:return(e=>{lS(e.typeExpression)})(t);case 324:case 325:case 326:return(e=>{e.name&&TS(e.name,!0)})(t);case 340:case 347:return(e=>{lS(e.typeExpression)})(t);case 317:!(t=>{_((()=>{t.type||e.isJSDocConstructSignature(t)||bm(t,Re)})),GE(t)})(t);case 315:case 314:case 312:case 313:case 322:return uS(t),void e.forEachChild(t,lS);case 318:return void(t=>{uS(t),lS(t.type);var r=t.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent))e.last(r.parent.parameters)!==r&&Jn(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);else{e.isJSDocTypeExpression(r)||Jn(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var n=t.parent.parent;if(e.isJSDocParameterTag(n)){var i=e.getParameterSymbolFromJSDoc(n);if(i){var a=e.getHostSignatureFromJSDoc(n);a&&e.last(a.parameters).symbol===i||Jn(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}else Jn(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}})(t);case 309:return lS(t.type);case 333:case 335:case 334:return(t=>{var r=e.getJSDocHost(t);r&&e.isPrivateIdentifierClassElementDeclaration(r)&&Jn(t,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)})(t);case 194:return(e=>{lS(e.objectType),lS(e.indexType),ix(ip(e),e)})(t);case 195:return(t=>{!(t=>{var r;(null===(r=t.members)||void 0===r?void 0:r.length)&&zT(t.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods)})(t),lS(t.typeParameter),lS(t.nameType),lS(t.type),t.type||bm(t,Re);var r=ap(t),n=Sc(r);n?N_(n,mt,t.nameType):N_(Dc(r),mt,e.getEffectiveConstraintOfTypeParameter(t.typeParameter))})(t);case 256:return(e=>{_((()=>{Cx(e),CT(e),Gx(e,e.name)}))})(t);case 235:case 262:return Vx(t);case 237:return Zx(t);case 238:return(e=>{WT(e),HE(e.expression)})(t);case 239:return(t=>{WT(t),rD(t.expression),eD(t.expression,t.thenStatement),lS(t.thenStatement),236===t.thenStatement.kind&&Jn(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),lS(t.elseStatement)})(t);case 240:return(e=>{WT(e),lS(e.statement),rD(e.expression)})(t);case 241:return(e=>{WT(e),rD(e.expression),lS(e.statement)})(t);case 242:return(t=>{WT(t)||t.initializer&&255===t.initializer.kind&<(t.initializer),t.initializer&&(255===t.initializer.kind?e.forEach(t.initializer.declarations,Qx):HE(t.initializer)),t.condition&&rD(t.condition),t.incrementor&&HE(t.incrementor),lS(t.statement),t.locals&&Ax(t)})(t);case 243:return(t=>{NT(t);var r,n=Hy(HE(t.expression));if(255===t.initializer.kind){var i=t.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&Jn(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),nD(t)}else{var a=t.initializer,o=HE(a);204===a.kind||205===a.kind?Jn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):T_(131072&(r=Mu(Ou(n))).flags?Ye:r,o)?sE(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Jn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}n!==ct&&uE(n,126091264)||Jn(t.expression,e.Diagnostics.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,eo(n)),lS(t.statement),t.locals&&Ax(t)})(t);case 244:return(t=>{NT(t);var r=e.getContainingFunctionOrClassStaticBlock(t);if(t.awaitModifier?r&&e.isClassStaticBlockDeclaration(r)?zT(t.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block):2==(6&e.getFunctionFlags(r))&&W<99&&fT(t,16384):H.downlevelIteration&&W<2&&fT(t,256),255===t.initializer.kind)nD(t);else{var n=t.initializer,i=iD(t);if(204===n.kind||205===n.kind)hE(n,i||Ue);else{var a=HE(n);sE(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),i&&w_(i,a,n,t.expression)}}lS(t.statement),t.locals&&Ax(t)})(t);case 245:case 246:return(t=>{WT(t)||(t=>{for(var r=t;r;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(r))return zT(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 250:if(t.label&&r.label.escapedText===t.label.escapedText)return!(245!==t.kind||e.isIterationStatement(r.statement,!0))&&zT(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 249:if(246===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}t.label?zT(t,246===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):zT(t,246===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)})(t)})(t);case 247:return(t=>{var r;if(!WT(t)){var n=e.getContainingFunctionOrClassStaticBlock(t);if(n&&e.isClassStaticBlockDeclaration(n))jT(t,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);else if(n){var i=Ll(Nl(n)),a=e.getFunctionFlags(n);if($||t.expression||131072&i.flags){var o=t.expression?TE(t.expression):Ke;if(173===n.kind)t.expression&&Jn(t,e.Diagnostics.Setters_cannot_return_a_value);else if(171===n.kind)t.expression&&!w_(o,i,t,t.expression)&&Jn(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Bl(n)){var s=null!==(r=ND(i,a))&&void 0!==r?r:i,c=2&a?ux(o,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o;s&&w_(c,s,t,t.expression)}}else 171!==n.kind&&H.noImplicitReturns&&!wD(n,i)&&Jn(t,e.Diagnostics.Not_all_code_paths_return_a_value)}else jT(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}})(t);case 248:return(t=>{WT(t)||32768&t.flags&&jT(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),HE(t.expression);var r=e.getSourceFileOfNode(t);if(!UT(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start;VT(r,n,t.statement.pos-n,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}})(t);case 249:return(t=>{var r;WT(t);var n=!1,i=HE(t.expression),a=Uf(i);e.forEach(t.caseBlock.clauses,(t=>{290!==t.kind||n||(void 0===r?r=t:(zT(t,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),289===t.kind&&_((e=>()=>{var t=HE(e.expression),r=Uf(t),n=i;r&&a||(t=r?jf(t):t,n=jf(i)),vE(n,t)||U_(t,n,e.expression,void 0)})(t)),e.forEach(t.statements,lS),H.noFallthroughCasesInSwitch&&t.fallthroughFlowNode&&lh(t.fallthroughFlowNode)&&Jn(t,e.Diagnostics.Fallthrough_case_in_switch)})),t.caseBlock.locals&&Ax(t.caseBlock)})(t);case 250:return(t=>{WT(t)||e.findAncestor(t.parent,(r=>e.isFunctionLike(r)?"quit":250===r.kind&&r.label.escapedText===t.label.escapedText&&(zT(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0))),lS(t.statement)})(t);case 251:return(t=>{WT(t)||e.isIdentifier(t.expression)&&!t.expression.escapedText&&((t,r,n,i,a)=>{var o=e.getSourceFileOfNode(t);if(!UT(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);kn.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,void 0,void 0,void 0))}})(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&HE(t.expression)})(t);case 252:return(t=>{WT(t),Vx(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration){var n=r.variableDeclaration,i=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(n));if(i){var a=Mo(n,!1,0);!a||3&a.flags||jT(i,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(n.initializer)jT(n.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var o=r.block.locals;o&&e.forEachKey(r.locals,(t=>{var r=o.get(t);(null==r?void 0:r.valueDeclaration)&&0!=(2&r.flags)&&zT(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)}))}}Vx(r.block)}t.finallyBlock&&Vx(t.finallyBlock)})(t);case 254:return Qx(t);case 203:return(t=>((t=>{if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.last(r))return zT(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(vT(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),t.propertyName)return zT(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}t.dotDotDotToken&&t.initializer&&VT(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)})(t),qx(t)))(t);case 257:return(t=>{var r=e.find(t.modifiers,e.isDecorator);r&&e.some(t.members,(t=>e.hasStaticModifier(t)&&e.isPrivateIdentifierClassElementDeclaration(t)))&&zT(r,e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),t.name||e.hasSyntacticModifier(t,512)||jT(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),BD(t),e.forEach(t.members,lS),Ax(t)})(t);case 258:return(t=>{gT(t)||(t=>{var r=!1;if(t.heritageClauses)for(var n=0,i=t.heritageClauses;n<i.length;n++){var a=i[n];if(94!==a.token)return e.Debug.assert(117===a.token),jT(a,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(r)return jT(a,e.Diagnostics.extends_clause_already_seen);r=!0,DT(a)}})(t),MD(t.typeParameters),_((()=>{OD(t.name,e.Diagnostics.Interface_name_cannot_be_0),cx(t);var r=ya(t);RD(r);var n=e.getDeclarationOfKind(r,258);if(t===n){var i=Rs(r),a=rc(i);if(((t,r)=>{var n=Ss(t);if(n.length<2)return!0;var i=new e.Map;e.forEach(Ks(t).declaredProperties,(e=>{i.set(e.escapedName,{prop:e,containingType:t})}));for(var a=!0,o=0,s=n;o<s.length;o++)for(var c=s[o],l=0,d=Lc(rc(c,t.thisType));l<d.length;l++){var u=d[l],p=i.get(u.escapedName);if(p){if(p.containingType!==t&&0===Ef(p.prop,u,E_)){a=!1;var _=eo(p.containingType),f=eo(c),m=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Qa(u),_,f);m=e.chainDiagnosticMessages(m,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,eo(t),_,f),kn.add(e.createDiagnosticForNodeFromMessageChain(r,m))}}else i.set(u.escapedName,{prop:u,containingType:c})}return a})(i,t.name)){for(var o=0,s=Ss(i);o<s.length;o++)N_(a,rc(s[o],i.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1);FD(i,r)}}$E(t)})),e.forEach(e.getInterfaceBaseTypeNodes(t),(t=>{e.isEntityNameExpression(t.expression)&&!e.isOptionalChain(t.expression)||Jn(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),nx(t)})),e.forEach(t.members,lS),_((()=>{qE(t),Ax(t)}))})(t);case 259:return(t=>{gT(t),OD(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),cx(t),MD(t.typeParameters),138===t.type.kind?w.has(t.name.escapedText)&&1===e.length(t.typeParameters)||Jn(t.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(lS(t.type),Ax(t))})(t);case 260:return(t=>{_((()=>(t=>{gT(t),Gx(t,t.name),cx(t),t.members.forEach(qD),JD(t);var r=ya(t);if(t===e.getDeclarationOfKind(r,t.kind)){if(r.declarations&&r.declarations.length>1){var n=e.isEnumConst(t);e.forEach(r.declarations,(t=>{e.isEnumDeclaration(t)&&e.isEnumConst(t)!==n&&Jn(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var i=!1;e.forEach(r.declarations,(t=>{if(260!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(i?Jn(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)}))}})(t)))})(t);case 261:return(t=>{t.body&&(lS(t.body),e.isGlobalScopeAugmentation(t)||Ax(t)),_((()=>{var r=e.isGlobalScopeAugmentation(t),n=16777216&t.flags;r&&!n&&Jn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var i=e.isAmbientModule(t),a=i?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(!nS(t,a)){gT(t)||n||10!==t.name.kind||zT(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&Gx(t,t.name),cx(t);var o,s,c,l,d=ya(t);if(512&d.flags&&!n&&d.declarations&&d.declarations.length>1&&M(t,e.shouldPreserveConstEnums(H))){var u=(t=>{var r=t.declarations;if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if((257===a.kind||256===a.kind&&e.nodeIsPresent(a.body))&&!(16777216&a.flags))return a}})(d);u&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(u)?Jn(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos<u.pos&&Jn(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var p=e.getDeclarationOfKind(d,257);p&&(o=t,s=p,c=e.getEnclosingBlockScopeContainer(o),l=e.getEnclosingBlockScopeContainer(s),di(c)?di(l):!di(l)&&c===l)&&(li(t).flags|=32768)}if(i)if(e.isExternalModuleAugmentation(t)){if((r||33554432&ya(t).flags)&&t.body)for(var _=0,f=t.body.statements;_<f.length;_++)XD(f[_],r)}else di(t.parent)?r?Jn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name))&&Jn(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):Jn(t.name,r?e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}))})(t);case 266:return(t=>{if(!nS(t,e.isInJSFile(t)?e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!gT(t)&&e.hasEffectiveModifiers(t)&&jT(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),YD(t)){var r=t.importClause;r&&!(t=>{var r;return t.isTypeOnly&&t.name&&t.namedBindings?zT(t,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):!(!t.isTypeOnly||269!==(null===(r=t.namedBindings)||void 0===r?void 0:r.kind))&&JT(t.namedBindings)})(r)&&(r.name&&tS(r),r.namedBindings&&(268===r.namedBindings.kind?(tS(r.namedBindings),K!==e.ModuleKind.System&&(K<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.getESModuleInterop(H)&&fT(t,65536)):ra(t,t.moduleSpecifier)&&e.forEach(r.namedBindings.elements,tS)))}rS(t)}})(t);case 265:return(t=>{if(!nS(t,e.isInJSFile(t)?e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(gT(t),e.isInternalModuleImportEqualsDeclaration(t)||YD(t)))if(tS(t),e.hasSyntacticModifier(t,1)&&Xi(t),277!==t.moduleReference.kind){var r=Ji(ya(t));if(r!==Pe){if(111551&r.flags){var n=e.getFirstIdentifier(t.moduleReference);1920&ea(n,112575).flags||Jn(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}788968&r.flags&&OD(t.name,e.Diagnostics.Import_name_cannot_be_0)}t.isTypeOnly&&zT(t,e.Diagnostics.An_import_alias_cannot_use_import_type)}else!(K>=e.ModuleKind.ES2015&&void 0===e.getSourceFileOfNode(t).impliedNodeFormat)||t.isTypeOnly||16777216&t.flags||zT(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 272:return(t=>{if(!nS(t,e.isInJSFile(t)?e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!gT(t)&&e.hasSyntacticModifiers(t)&&jT(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),t.moduleSpecifier&&t.exportClause&&e.isNamedExports(t.exportClause)&&e.length(t.exportClause.elements)&&0===W&&fT(t,4194304),(t=>{var r;t.isTypeOnly&&(273===(null===(r=t.exportClause)||void 0===r?void 0:r.kind)?JT(t.exportClause):zT(t,e.Diagnostics.Only_named_exports_may_use_export_type))})(t),!t.moduleSpecifier||YD(t))if(t.exportClause&&!e.isNamespaceExport(t.exportClause)){e.forEach(t.exportClause.elements,oS);var r=262===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&262===t.parent.kind&&!t.moduleSpecifier&&16777216&t.flags;305===t.parent.kind||r||n||Jn(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=ra(t,t.moduleSpecifier);i&&la(i)?Jn(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Qa(i)):t.exportClause&&QD(t.exportClause),K!==e.ModuleKind.System&&(K<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&(t.exportClause?e.getESModuleInterop(H)&&fT(t,65536):fT(t,32768))}rS(t)}})(t);case 271:return(t=>{if(!nS(t,t.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration)){var r=305===t.parent.kind?t.parent:t.parent.parent;if(261!==r.kind||e.isAmbientModule(r)){!gT(t)&&e.hasEffectiveModifiers(t)&&jT(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var n=e.getEffectiveTypeAnnotationNode(t);if(n&&N_(TE(t.expression),Up(n),t.expression),79===t.expression.kind){var i=t.expression,a=ea(i,67108863,!0,!0,t);if(a){Dh(a,i);var o=2097152&a.flags?Ji(a):a;(o===Pe||111551&o.flags)&&TE(t.expression)}else TE(t.expression);e.getEmitDeclarations(H)&&fo(t.expression,!0)}else TE(t.expression);sS(r),16777216&t.flags&&!e.isEntityNameExpression(t.expression)&&zT(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||16777216&t.flags||(K>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.CommonJS?zT(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):K===e.ModuleKind.System&&zT(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?Jn(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Jn(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}})(t);case 236:case 253:return void WT(t);case 276:!(e=>{Sx(e)})(t)}})(t),s=n}}function dS(t){e.isArray(t)&&e.forEach(t,(t=>{e.isJSDocLinkLike(t)&&lS(t)}))}function uS(t){e.isInJSFile(t)||zT(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function pS(t){var r=li(e.getSourceFileOfNode(t));1&r.flags||(r.deferredNodes||(r.deferredNodes=new e.Set),r.deferredNodes.add(t))}function _S(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});var r=s;switch(s=t,T=0,t.kind){case 208:case 209:case 210:case 165:case 280:Sv(t);break;case 213:case 214:case 169:case 168:!(t=>{e.Debug.assert(169!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=Bl(t);if(tE(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||Ll(Nl(t)),235===t.body.kind)lS(t.body);else{var i=HE(t.body),a=n&&ND(n,r);a&&w_(2==(3&r)?ux(i,!1,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 172:case 173:ZE(t);break;case 226:!(t=>{e.forEach(t.members,lS),Ax(t)})(t);break;case 163:!(t=>{if(e.isInterfaceDeclaration(t.parent)||e.isClassLike(t.parent)||e.isTypeAliasDeclaration(t.parent)){var r=Ms(ya(t)),n=uf(r);if(n){var i=ya(t.parent);if(!e.isTypeAliasDeclaration(t.parent)||48&e.getObjectFlags(Rs(i))){if(32768===n||65536===n){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","checkTypeParameterDeferred",{parent:su(Rs(i)),id:su(r)});var a=lf(i,r,65536===n?Ut:Bt),o=lf(i,r,65536===n?Bt:Ut),s=r;c=r,N_(a,o,t,e.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),c=s,null===e.tracing||void 0===e.tracing||e.tracing.pop()}}else Jn(t,e.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}})(t);break;case 279:!(e=>{Iy(e)})(t);break;case 278:!(e=>{Iy(e.openingElement),hy(e.closingElement.tagName)?xy(e.closingElement):HE(e.closingElement.tagName),vy(e)})(t)}s=r,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function fS(t,r){if(r)return!1;switch(t){case 0:return!!H.noUnusedLocals;case 1:return!!H.noUnusedParameters;default:return e.Debug.assertNever(t)}}function mS(t){return Yr.get(t.path)||e.emptyArray}function gS(n,i){try{return r=i,(r=>{if(r){hS();var n=kn.getGlobalDiagnostics(),i=n.length;yS(r);var a=kn.getDiagnostics(r.fileName),o=kn.getGlobalDiagnostics();if(o!==n){var s=e.relativeComplement(n,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===i&&o.length>0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),yS),kn.getDiagnostics()})(n)}finally{r=void 0}}function hS(){for(var e=0,t=p;e<t.length;e++)(0,t[e])();p=[]}function yS(r){hS();var n,i=_;_=e=>e(),n=r,null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:n.path},!0),e.performance.mark("beforeCheck"),(r=>{var n=li(r);if(!(1&n.flags)){if(e.skipTypeChecking(r,H,t))return;!(t=>{16777216&t.flags&&(t=>{for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if((e.isDeclaration(i)||237===i.kind)&&HT(i))return!0}})(t)})(r),e.clear(xn),e.clear(Dn),e.clear(Sn),e.clear(Tn),e.clear(Cn),e.forEach(r.statements,lS),lS(r.endOfFileToken),(e=>{var t=li(e);t.deferredNodes&&t.deferredNodes.forEach(_S)})(r),e.isExternalOrCommonJsModule(r)&&Ax(r),_((()=>{r.isDeclarationFile||!H.noUnusedLocals&&!H.noUnusedParameters||kx(mS(r),((t,r,n)=>{!e.containsParseError(t)&&fS(r,!!(16777216&t.flags))&&kn.add(n)})),r.isDeclarationFile||(()=>{for(var t,r=0,n=Cn;r<n.length;r++){var i=n[r];if(!(null===(t=ya(i))||void 0===t?void 0:t.isReferenced)){var a=e.walkUpBindingElementsAndPatterns(i);e.Debug.assert(e.isParameterDeclaration(a),"Only parameter declaration should be checked here");var o=e.createDiagnosticForNode(i.name,e.Diagnostics._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,e.declarationNameToString(i.name),e.declarationNameToString(i.propertyName));a.type||e.addRelatedInfo(o,e.createFileDiagnostic(e.getSourceFileOfNode(a),a.end,1,e.Diagnostics.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,e.declarationNameToString(i.propertyName))),kn.add(o)}}})()})),2===H.importsNotUsedAsValues&&!r.isDeclarationFile&&e.isExternalModule(r)&&(t=>{for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];(iS(i)||aS(i))&&Jn(i,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}})(r),e.isExternalOrCommonJsModule(r)&&sS(r),xn.length&&(e.forEach(xn,Hx),e.clear(xn)),Dn.length&&(e.forEach(Dn,Wx),e.clear(Dn)),Sn.length&&(e.forEach(Sn,Kx),e.clear(Sn)),Tn.length&&(e.forEach(Tn,Jx),e.clear(Tn)),n.flags|=1}})(n),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),_=i}function vS(e){switch(e.kind){case 163:case 257:case 258:case 259:case 260:case 345:case 338:case 339:return!0;case 267:return e.isTypeOnly;case 270:case 275:return e.parent.parent.isTypeOnly;default:return!1}}function bS(e){for(;161===e.parent.kind;)e=e.parent;return 178===e.parent.kind}function ES(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function xS(e,t){return!!ES(e,(e=>e===t))}function DS(e){return void 0!==(e=>{for(;161===e.parent.kind;)e=e.parent;return 265===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:271===e.parent.kind&&e.parent.expression===e?e.parent:void 0})(e)}function SS(t){if(e.isDeclarationName(t))return ya(t.parent);if(e.isInJSFile(t)&&206===t.parent.kind&&t.parent===t.parent.parent.left&&!e.isPrivateIdentifier(t)&&!e.isJSDocMemberName(t)){var r=(t=>{switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return ya(t.parent);case 4:case 2:case 5:return ya(t.parent.parent)}})(t);if(r)return r}if(271===t.parent.kind&&e.isEntityNameExpression(t)){var n=ea(t,2998271,!0);if(n&&n!==Pe)return n}else if(e.isEntityName(t)&&DS(t)){var i=e.getAncestor(t,265);return e.Debug.assert(void 0!==i),Qi(t,!0)}if(e.isEntityName(t)){var a=(t=>{for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&200===r.kind&&r.qualifier===t)return r})(t);if(a){Up(a);var o=li(t).resolvedSymbol;return o===Pe?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(t);)t=t.parent;if((e=>{for(;206===e.parent.kind;)e=e.parent;return 228===e.parent.kind})(t)){var s=0;228===t.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?ea(t,s):void 0;if(c)return c}if(340===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(163===t.parent.kind&&344===t.parent.parent.kind){e.Debug.assert(!e.isInJSFile(t));var l=e.getTypeParameterFromJsDoc(t.parent);return l&&l.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;var d=e.findAncestor(t,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName));if(s=d?901119:111551,79===t.kind){if(e.isJSXTagName(t)&&hy(t))return(f=xy(t.parent))===Pe?void 0:f;var u=ea(t,s,!1,!0,e.getHostSignatureFromJSDoc(t));if(!u&&d){var p=e.findAncestor(t,e.or(e.isClassLike,e.isInterfaceDeclaration));if(p)return TS(t,!1,ya(p))}return u}if(e.isPrivateIdentifier(t))return Zy(t);if(206===t.kind||161===t.kind){var _=li(t);return _.resolvedSymbol?_.resolvedSymbol:(206===t.kind?qy(t,0):Xy(t,0),!_.resolvedSymbol&&d&&e.isQualifiedName(t)?TS(t):_.resolvedSymbol)}if(e.isJSDocMemberName(t))return TS(t)}else if(bS(t)){var f;return(f=ea(t,s=178===t.parent.kind?788968:1920,!1,!0))&&f!==Pe?f:md(t)}return 177===t.parent.kind?ea(t,1):void 0}function TS(t,r,n){if(e.isEntityName(t)){var i=901119,a=ea(t,i,r,!0,e.getHostSignatureFromJSDoc(t));if(!a&&e.isIdentifier(t)&&n&&(a=ha(ui(_a(n),t.escapedText,i))),a)return a}var o=e.isIdentifier(t)?n:TS(t.left,r,n),s=e.isIdentifier(t)?t.escapedText:t.right.escapedText;if(o){var c=111551&o.flags&&sl(cs(o),"prototype");return sl(c?cs(c):Rs(o),s)}}function CS(t,r){if(305===t.kind)return e.isExternalModule(t)?ha(t.symbol):void 0;var n=t.parent,i=n.parent;if(!(33554432&t.flags)){if(L(t)){var a=ya(n);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?fy(a):a}if(e.isLiteralComputedPropertyDeclarationName(t))return ya(n.parent);if(79===t.kind){if(DS(t))return SS(t);if(203===n.kind&&201===i.kind&&t===n.propertyName){var o=sl(AS(i),t.escapedText);if(o)return o}else if(e.isMetaProperty(n)&&n.name===t)return 103===n.keywordToken&&"target"===e.idText(t)?Cb(n).symbol:100===n.keywordToken&&"meta"===e.idText(t)?Md().members.get("meta"):void 0}switch(t.kind){case 79:case 80:case 206:case 161:if(!e.isThisInTypeQuery(t))return SS(t);case 108:var s=e.getThisContainer(t,!1);if(e.isFunctionLike(s)){var c=Nl(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(t))return HE(t).symbol;case 192:return Rp(t).symbol;case 106:return HE(t).symbol;case 134:var l=t.parent;return l&&171===l.kind?l.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(266===t.parent.kind||272===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 ra(t,t,r);if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&n.arguments[1]===t)return ya(n);case 8:var d=e.isElementAccessExpression(n)?n.argumentExpression===t?jE(n.expression):void 0:e.isLiteralTypeNode(n)&&e.isIndexedAccessTypeNode(i)?Up(i.objectType):void 0;return d&&sl(d,e.escapeLeadingUnderscores(t.text));case 88:case 98:case 38:case 84:return ya(t.parent);case 200:return e.isLiteralImportTypeNode(t)?CS(t.argument.literal,r):void 0;case 93:return e.isExportAssignment(t.parent)?e.Debug.checkDefined(t.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(t.parent)?Tb(t.parent).symbol:void 0;case 231:return HE(t).symbol;default:return}}}function AS(t){if(e.isSourceFile(t)&&!e.isExternalModule(t))return Ue;if(33554432&t.flags)return Ue;var r,n,i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),a=i&&As(ya(i.class));if(e.isPartOfTypeNode(t)){var o=Up(t);return a?rc(o,a.thisType):o}if(e.isExpressionNode(t))return NS(t);if(a&&!i.isImplements){var s=e.firstOrUndefined(Ss(a));return s?rc(s,a.thisType):Ue}if(vS(t))return Rs(n=ya(t));if(79===(r=t).kind&&vS(r.parent)&&e.getNameOfDeclaration(r.parent)===r)return(n=CS(t))?Rs(n):Ue;if(e.isDeclaration(t))return(n=ya(t))?cs(n):Ue;if(L(t))return(n=CS(t))?cs(n):Ue;if(e.isBindingPattern(t))return Mo(t.parent,!0,0)||Ue;if(DS(t)&&(n=CS(t))){var c=Rs(n);return xo(c)?cs(n):c}return e.isMetaProperty(t.parent)&&t.parent.keywordToken===t.kind?Tb(t.parent):Ue}function kS(t){if(e.Debug.assert(205===t.kind||204===t.kind),244===t.parent.kind)return hE(t,iD(t.parent)||Ue);if(221===t.parent.kind)return hE(t,jE(t.parent.right)||Ue);if(296===t.parent.kind){var r=e.cast(t.parent.parent,e.isObjectLiteralExpression);return mE(r,kS(r)||Ue,e.indexOfNode(r.properties,t.parent))}var n=e.cast(t.parent,e.isArrayLiteralExpression),i=kS(n)||Ue,a=aD(65,i,Ke,t.parent)||Ue;return gE(n,i,n.elements.indexOf(t),a)}function NS(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Np(jE(t))}function wS(t){var r=ya(t.parent);return e.isStatic(t)?cs(r):Rs(r)}function FS(t){var r=t.name;switch(r.kind){case 79:return Fp(e.idText(r));case 8:case 10:return Fp(r.text);case 162:var n=uy(r);return uE(n,12288)?n:Ye;default:return e.Debug.fail("Unsupported property name.")}}function PS(t){t=Yc(t);var r=e.createSymbolTable(Lc(t)),n=ll(t,0).length?Jt:ll(t,1).length?Gt:void 0;return n&&e.forEach(Lc(n),(e=>{r.has(e.escapedName)||r.set(e.escapedName,e)})),Ia(r)}function IS(t){return e.typeHasCallOrConstructSignatures(t,_e)}function OS(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||sT(r)!==ue)}function MS(t){var r=ra(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=la(r),i=ci(r=oa(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(111551&r.flags):e.forEachEntry(fa(r),(e=>(e=Ki(e))&&!!(111551&e.flags)))),i.exportsSomeValue}function RS(t,r){var n,i=e.getParseTreeNode(t,e.isIdentifier);if(i){var a=sT(i,(t=>e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name)(i));if(a){if(1048576&a.flags){var o=ha(a.exportSymbol);if(!r&&944&o.flags&&!(3&o.flags))return;a=o}var s=va(a);if(s){if(512&s.flags&&305===(null===(n=s.valueDeclaration)||void 0===n?void 0:n.kind)){var c=s.valueDeclaration;return c!==e.getSourceFileOfNode(i)?void 0:c}return e.findAncestor(i.parent,(t=>e.isModuleOrEnumDeclaration(t)&&ya(t)===s))}}}}function LS(t){if(t.generatedImportReference)return t.generatedImportReference;var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=sT(r);if(Wi(n,111551)&&!qi(n))return Ai(n)}}function BS(t){if(418&t.flags&&t.valueDeclaration&&!e.isSourceFile(t.valueDeclaration)){var r=ci(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)||(t=>t.valueDeclaration&&e.isBindingElement(t.valueDeclaration)&&292===e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind)(t)){var i=li(t.valueDeclaration);if(mi(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=235===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 US(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=sT(r);if(n&&BS(n))return n.valueDeclaration}}}function jS(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=ya(r);if(n)return BS(n)}return!1}function VS(t){switch(t.kind){case 265:return HS(ya(t));case 267:case 268:case 270:case 275:var r=ya(t);return!!r&&HS(r)&&!qi(r);case 272:var n=t.exportClause;return!!n&&(e.isNamespaceExport(n)||e.some(n.elements,VS));case 271:return!t.expression||79!==t.expression.kind||HS(ya(t))}return!1}function zS(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||305!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&HS(ya(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function HS(t){if(!t)return!1;var r=Sa(Ji(t));return r===Pe||!!(111551&r.flags)&&(e.shouldPreserveConstEnums(H)||!WS(r))}function WS(e){return fE(e)||!!e.constEnumOnlyModule}function KS(t,r){if(ki(t)){var n=ya(t),i=n&&ci(n);if(null==i?void 0:i.referenced)return!0;var a=ci(n).aliasTarget;if(a&&1&e.getEffectiveModifierFlags(t)&&111551&a.flags&&(e.shouldPreserveConstEnums(H)||!WS(a)))return!0}return!!r&&!!e.forEachChild(t,(e=>KS(e,r)))}function JS(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=Pl(ya(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function GS(t){return!(!$||Sl(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,16476))}function $S(t){return $&&Sl(t)&&!t.initializer&&e.hasSyntacticModifier(t,16476)}function qS(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=ya(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(_a(n),(t=>111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)))}function XS(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=ya(r);return n&&Lc(cs(n))||e.emptyArray}function YS(e){var t,r=e.id||0;return r<0||r>=_n.length?0:(null===(t=_n[r])||void 0===t?void 0:t.flags)||0}function QS(e){return JD(e.parent),li(e).enumMemberValue}function ZS(e){switch(e.kind){case 299:case 206:case 207:return!0}return!1}function eT(t){if(299===t.kind)return QS(t);var r=li(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return QS(n)}}function tT(e){return!!(524288&e.flags)&&ll(e,0).length>0}function rT(t,r){var n,i,a=e.getParseTreeNode(t,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var o=!1;if(e.isQualifiedName(a)){var s=ea(e.getFirstIdentifier(a),111551,!0,!0,r);o=!!(null===(n=null==s?void 0:s.declarations)||void 0===n?void 0:n.every(e.isTypeOnlyImportOrExportDeclaration))}var c=ea(a,111551,!0,!0,r),l=c&&2097152&c.flags?Ji(c):c;o||(o=!!(null===(i=null==c?void 0:c.declarations)||void 0===i?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var d=ea(a,788968,!0,!1,r);if(l&&l===d){var u=Vd(!1);if(u&&l===u)return e.TypeReferenceSerializationKind.Promise;var p=cs(l);if(p&&ys(p))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!d)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var _=Rs(d);return xo(_)?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&_.flags?e.TypeReferenceSerializationKind.ObjectType:uE(_,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:uE(_,528)?e.TypeReferenceSerializationKind.BooleanType:uE(_,296)?e.TypeReferenceSerializationKind.NumberLikeType:uE(_,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:uE(_,402653316)?e.TypeReferenceSerializationKind.StringLikeType:Kf(_)?e.TypeReferenceSerializationKind.ArrayLikeType:uE(_,12288)?e.TypeReferenceSerializationKind.ESSymbolType:tT(_)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Tf(_)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function nT(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(130);var s=ya(o),c=!s||133120&s.flags?Ue:Vf(cs(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=em(c)),oe.typeToTypeNode(c,r,1024|n,i)}function iT(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(130);var o=Nl(a);return oe.typeToTypeNode(Ll(o),r,1024|n,i)}function aT(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(130);var o=hm(NS(a));return oe.typeToTypeNode(o,r,1024|n,i)}function oT(t){return se.has(e.escapeLeadingUnderscores(t))}function sT(t,r){var n=li(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=vo(a))}return mi(i,t.escapedText,3257279,void 0,void 0,!0)}function cT(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=sT(r);if(n)return Sa(n).valueDeclaration}}}function lT(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&wp(cs(ya(t)))}function dT(t,r){return((t,r,n)=>{var i=1024&t.flags?oe.symbolToExpression(t.symbol,111551,r,void 0,n):t===rt?e.factory.createTrue():t===et&&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)})(cs(ya(t)),t,r)}function uT(t){return t?(Vn(t),e.getSourceFileOfNode(t).localJsxFactory||Mr):Mr}function pT(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,W),r.localJsxFragmentFactory}}if(H.jsxFragmentFactory)return e.parseIsolatedEntityName(H.jsxFragmentFactory,W)}function _T(t){var r=261===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=na(r,r,void 0);if(n)return e.getDeclarationOfKind(n,305)}function fT(t,r){if((n&r)!==r&&H.importHelpers){var a=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(a,H)&&!(16777216&t.flags)){var o=(u=t,i||(i=ia(a,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,u)||Pe),i);if(o!==Pe)for(var s=r&~n,c=1;c<=4194304;c<<=1)if(s&c){var l=mT(c),d=ui(o.exports,e.escapeLeadingUnderscores(l),111551);d?524288&c?e.some(Pl(d),(e=>Rb(e)>3))||Jn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,4):1048576&c?e.some(Pl(d),(e=>Rb(e)>4))||Jn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,5):1024&c&&(e.some(Pl(d),(e=>Rb(e)>2))||Jn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,3)):Jn(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,l)}n|=r}}var u}function mT(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"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function gT(t){return(t=>{if(e.canHaveIllegalDecorators(t)&&e.some(t.illegalDecorators))return jT(t,e.Diagnostics.Decorators_are_not_valid_here);if(!e.canHaveDecorators(t)||!e.hasDecorators(t))return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 169!==t.kind||e.nodeIsPresent(t.body)?jT(t,e.Diagnostics.Decorators_are_not_valid_here):jT(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(172===t.kind||173===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(e.hasDecorators(r.firstAccessor)&&t===r.secondAccessor)return jT(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1})(t)||hT(t)}function hT(t){var r,n,i,a,o=(t=>!!t.modifiers&&((t=>{switch(t.kind){case 172:case 173:case 171:case 167:case 166:case 169:case 168:case 176:case 261:case 266:case 265:case 272:case 271:case 213:case 214:case 164:case 163:return!1;case 170:case 296:case 297:case 264:case 179:case 276:return!0;default:if(262===t.parent.kind||305===t.parent.kind)return!1;switch(t.kind){case 256:return yT(t,131);case 257:case 180:return yT(t,126);case 226:case 258:case 237:case 259:return!0;case 260:return yT(t,85);default:e.Debug.assertNever(t)}}})(t)?jT(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0))(t);if(void 0!==o)return o;for(var s=0,c=0,l=t.modifiers;c<l.length;c++){var d=l[c];if(!e.isDecorator(d)){if(145!==d.kind){if(166===t.kind||168===t.kind)return zT(d,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(d.kind));if(176===t.kind&&(124!==d.kind||!e.isClassLike(t.parent)))return zT(d,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(d.kind))}if(101!==d.kind&&144!==d.kind&&163===t.kind)return zT(d,e.Diagnostics._0_modifier_cannot_appear_on_a_type_parameter,e.tokenToString(d.kind));switch(d.kind){case 85:if(260!==t.kind)return zT(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 159:if(16384&s)return zT(d,e.Diagnostics._0_modifier_already_seen,"override");if(2&s)return zT(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(64&s)return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(256&s)return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");s|=16384,a=d;break;case 123:case 122:case 121:var u=so(e.modifierToFlag(d.kind));if(28&s)return zT(d,e.Diagnostics.Accessibility_modifier_already_seen);if(16384&s)return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,u,"override");if(32&s)return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,u,"static");if(64&s)return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,u,"readonly");if(256&s)return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,u,"async");if(262===t.parent.kind||305===t.parent.kind)return zT(d,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,u);if(128&s)return 121===d.kind?zT(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,u,"abstract"):zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,u,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(t))return zT(d,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);s|=e.modifierToFlag(d.kind);break;case 124:if(32&s)return zT(d,e.Diagnostics._0_modifier_already_seen,"static");if(64&s)return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&s)return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(262===t.parent.kind||305===t.parent.kind)return zT(d,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(164===t.kind)return zT(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&s)return zT(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16384&s)return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");s|=32,r=d;break;case 145:if(64&s)return zT(d,e.Diagnostics._0_modifier_already_seen,"readonly");if(167!==t.kind&&166!==t.kind&&176!==t.kind&&164!==t.kind)return zT(d,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);s|=64;break;case 93:if(1&s)return zT(d,e.Diagnostics._0_modifier_already_seen,"export");if(2&s)return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&s)return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&s)return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(t.parent))return zT(d,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(164===t.kind)return zT(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 88:var p=305===t.parent.kind?t.parent:t.parent.parent;if(261===p.kind&&!e.isAmbientModule(p))return zT(d,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(1&s))return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");s|=512;break;case 135:if(2&s)return zT(d,e.Diagnostics._0_modifier_already_seen,"declare");if(256&s)return zT(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16384&s)return zT(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(t.parent)&&!e.isPropertyDeclaration(t))return zT(d,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(164===t.kind)return zT(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(16777216&t.parent.flags&&262===t.parent.kind)return zT(d,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(t))return zT(d,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");s|=2,n=d;break;case 126:if(128&s)return zT(d,e.Diagnostics._0_modifier_already_seen,"abstract");if(257!==t.kind&&180!==t.kind){if(169!==t.kind&&167!==t.kind&&172!==t.kind&&173!==t.kind)return zT(d,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(257!==t.parent.kind||!e.hasSyntacticModifier(t.parent,128))return zT(d,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return zT(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return zT(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(256&s&&i)return zT(i,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16384&s)return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(e.isNamedDeclaration(t)&&80===t.name.kind)return zT(d,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");s|=128;break;case 131:if(256&s)return zT(d,e.Diagnostics._0_modifier_already_seen,"async");if(2&s||16777216&t.parent.flags)return zT(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(164===t.kind)return zT(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(128&s)return zT(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");s|=256,i=d;break;case 101:case 144:var _=101===d.kind?32768:65536,f=101===d.kind?"in":"out";if(163!==t.kind||!(e.isInterfaceDeclaration(t.parent)||e.isClassLike(t.parent)||e.isTypeAliasDeclaration(t.parent)))return zT(d,e.Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,f);if(s&_)return zT(d,e.Diagnostics._0_modifier_already_seen,f);if(32768&_&&65536&s)return zT(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"in","out");s|=_}}}return 171===t.kind?32&s?zT(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16384&s?zT(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(256&s)&&zT(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(266===t.kind||265===t.kind)&&2&s?zT(n,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):164===t.kind&&16476&s&&e.isBindingPattern(t.name)?zT(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):164===t.kind&&16476&s&&t.dotDotDotToken?zT(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(256&s)&&((t,r)=>{switch(t.kind){case 169:case 256:case 213:case 214:return!1}return zT(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")})(t,i)}function yT(t,r){for(var n=0,i=t.modifiers;n<i.length;n++){var a=i[n];if(!e.isDecorator(a))return a.kind!==r}return!1}function vT(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&VT(t[0],t.end-",".length,",".length,r)}function bT(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return VT(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function ET(t){var r=e.getSourceFileOfNode(t);return gT(t)||bT(t.typeParameters,r)||(t=>{for(var r=!1,n=t.length,i=0;i<n;i++){var a=t[i];if(a.dotDotDotToken){if(i!==n-1)return zT(a.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(16777216&a.flags||vT(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),a.questionToken)return zT(a.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return zT(a.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(Sl(a)){if(r=!0,a.questionToken&&a.initializer)return zT(a.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(r&&!a.initializer)return zT(a.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}})(t.parameters)||((t,r)=>{if(!e.isArrowFunction(t))return!1;t.typeParameters&&!(e.length(t.typeParameters)>1||t.typeParameters.hasTrailingComma||t.typeParameters[0].constraint)&&r&&e.fileExtensionIsOneOf(r.fileName,[".mts",".cts"])&&zT(t.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var n=t.equalsGreaterThanToken;return e.getLineAndCharacterOfPosition(r,n.pos).line!==e.getLineAndCharacterOfPosition(r,n.end).line&&zT(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)})(t,r)||e.isFunctionLikeDeclaration(t)&&(t=>{if(W>=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=(a=t.parameters,e.filter(a,(t=>!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t))));if(e.length(n)){e.forEach(n,(t=>{e.addRelatedInfo(Jn(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))}));var i=n.map(((t,r)=>0===r?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)));return e.addRelatedInfo.apply(void 0,f([Jn(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],i,!1)),!0}}}var a;return!1})(t)}function xT(t,r){return vT(r)||((t,r)=>{if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return VT(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1})(t,r)}function DT(t){var r=t.types;if(vT(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token);return VT(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.some(r,ST)}function ST(t){return e.isExpressionWithTypeArguments(t)&&e.isImportKeyword(t.expression)&&t.typeArguments?zT(t,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):xT(t,t.typeArguments)}function TT(t){if(162!==t.kind)return!1;var r=t;return 221===r.expression.kind&&27===r.expression.operatorToken.kind&&zT(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function CT(t){if(t.asteriskToken){if(e.Debug.assert(256===t.kind||213===t.kind||169===t.kind),16777216&t.flags)return zT(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return zT(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function AT(e,t){return!!e&&zT(e,t)}function kT(e,t){return!!e&&zT(e,t)}function NT(t){if(WT(t))return!0;if(244===t.kind&&t.awaitModifier&&!(32768&t.flags)){var r=e.getSourceFileOfNode(t);if(e.isInTopLevelContext(t)){if(!UT(r))switch(e.isEffectiveExternalModule(r,H)||kn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),K){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:if(r.impliedNodeFormat===e.ModuleKind.CommonJS){kn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.System:if(W>=4)break;default:kn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!UT(r)){var n=e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),i=e.getContainingFunction(t);if(i&&171!==i.kind){e.Debug.assert(0==(2&e.getFunctionFlags(i)),"Enclosing function should never be an async function.");var a=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(n,a)}return kn.add(n),!0}return!1}if(e.isForOfStatement(t)&&!(32768&t.flags)&&e.isIdentifier(t.initializer)&&"async"===t.initializer.escapedText)return zT(t.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(255===t.initializer.kind){var o=t.initializer;if(!LT(o)){var s=o.declarations;if(!s.length)return!1;if(s.length>1)return n=243===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,jT(o.declarations[1],n);var c=s[0];if(c.initializer)return n=243===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,zT(c.name,n);if(c.type)return zT(c,n=243===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 wT(t){if(t.parameters.length===(172===t.kind?1:2))return e.getThisParameter(t)}function FT(t,r){if((t=>e.isDynamicName(t)&&!Gs(t))(t))return zT(t,r)}function PT(t){if(ET(t))return!0;if(169===t.kind){if(205===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||131!==e.first(t.modifiers).kind))return jT(t,e.Diagnostics.Modifiers_cannot_appear_here);if(AT(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(kT(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return VT(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(CT(t))return!0}if(e.isClassLike(t.parent)){if(W<2&&e.isPrivateIdentifier(t.name))return zT(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(16777216&t.flags)return FT(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(169===t.kind&&!t.body)return FT(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(258===t.parent.kind)return FT(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(182===t.parent.kind)return FT(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 IT(t){return e.isStringOrNumericLiteralLike(t)||219===t.kind&&40===t.operator&&8===t.operand.kind}function OT(t){var r,n=t.initializer;if(n){var i=!(IT(n)||(t=>{if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&IT(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&TE(t).flags)})(n)||110===n.kind||95===n.kind||(r=n,9===r.kind||219===r.kind&&40===r.operator&&9===r.operand.kind));if(!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))||t.type)return zT(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return zT(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}}function MT(t){if(79===t.kind){if("__esModule"===e.idText(t))return a=t,o=e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules,!UT(e.getSourceFileOfNode(a))&&(Wn("noEmit",a,o,void 0,void 0,void 0),!0)}else for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];if(!e.isOmittedExpression(i))return MT(i.name)}var a,o;return!1}function RT(t){if(79===t.kind){if(119===t.originalKeywordKind)return zT(t,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];e.isOmittedExpression(i)||RT(i.name)}return!1}function LT(t){var r=t.declarations;return!!vT(t.declarations)||!t.declarations.length&&VT(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function BT(e){switch(e.kind){case 239:case 240:case 241:case 248:case 242:case 243:case 244:return!1;case 250:return BT(e.parent)}return!0}function UT(e){return e.parseDiagnostics.length>0}function jT(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!UT(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return kn.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function VT(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!UT(c)&&(kn.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function zT(t,r,n,i,a){return!UT(e.getSourceFileOfNode(t))&&(kn.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function HT(t){return 258!==t.kind&&259!==t.kind&&266!==t.kind&&265!==t.kind&&272!==t.kind&&271!==t.kind&&264!==t.kind&&!e.hasSyntacticModifier(t,515)&&jT(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function WT(t){if(16777216&t.flags){if(!li(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return li(t).hasReportedStatementInAmbientContext=jT(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(235===t.parent.kind||262===t.parent.kind||305===t.parent.kind){var r=li(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=jT(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function KT(t){if(32&t.numericLiteralFlags){var r=void 0;if(W>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,196)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,299)&&(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,i=(n?"-":"")+"0o"+t.text;return zT(n?t.parent:t,r,i)}}return(t=>{var r=-1!==e.getTextOfNode(t).indexOf("."),n=16&t.numericLiteralFlags;r||n||+t.text<=Math.pow(2,53)-1||Gn(!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 JT(t){return!!e.forEach(t.elements,(t=>{if(t.isTypeOnly)return jT(t,270===t.kind?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function GT(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=gg(r,t);if(a)return a;var o=Lc(t);if(o){var s=_g(o,r);if(s)return nf(r,e.map(s,(e=>[()=>cs(e),e.escapedName])),n,void 0,i)}}}},(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"})(N||(N={})),e.signatureHasRestParameter=U,e.signatureHasLiteralTypes=j}(p),(e=>{function t(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||l)(o):o,e.Debug.assertNode(a,n),a):void 0}function r(t,r,i,a,o){if(void 0===t||void 0===r)return t;var s,c=t.length;(void 0===a||a<0)&&(a=0),(void 0===o||o>c-a)&&(o=c-a);var l=-1,d=-1;a>0||o<c?s=t.hasTrailingComma&&a+o===c:(l=t.pos,d=t.end,s=t.hasTrailingComma);var u=n(t,r,i,a,o);if(u!==t){var p=e.factory.createNodeArray(u,s);return e.setTextRangePosEnd(p,l,d),p}return t}function n(t,r,n,i,a){var o,s=t.length;(i>0||a<s)&&(o=[]);for(var c=0;c<a;c++){var l=t[c+i],d=void 0!==l?r(l):void 0;if((void 0!==o||void 0===d||d!==l)&&(void 0===o&&(o=t.slice(0,c)),d))if(e.isArray(d))for(var u=0,p=d;u<p.length;u++){var _=p[u];e.Debug.assertNode(_,n),o.push(_)}else e.Debug.assertNode(d,n),o.push(d)}return null!=o?o:t}function i(t,n,i,a,o,s){return void 0===s&&(s=r),i.startLexicalEnvironment(),t=s(t,n,e.isStatement,a),o&&(t=i.factory.ensureUseStrict(t)),e.factory.mergeLexicalEnvironment(t,i.endLexicalEnvironment())}function a(t,n,i,a){var s;return void 0===a&&(a=r),i.startLexicalEnvironment(),t&&(i.setLexicalEnvironmentFlags(1,!0),s=a(t,n,e.isParameterDeclaration),2&i.getLexicalEnvironmentFlags()&&e.getEmitScriptTarget(i.getCompilerOptions())>=2&&(s=((t,r)=>{for(var n,i=0;i<t.length;i++){var a=t[i],s=o(a,r);(n||s!==a)&&(n||(n=t.slice(0,i)),n[i]=s)}return n?e.setTextRange(r.factory.createNodeArray(n,t.hasTrailingComma),t):t})(s,i)),i.setLexicalEnvironmentFlags(1,!1)),i.suspendLexicalEnvironment(),s}function o(t,r){return t.dotDotDotToken?t:e.isBindingPattern(t.name)?((e,t)=>{var r=t.factory;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)})(t,r):t.initializer?((t,r,n,i)=>{var a=i.factory;return i.addInitializationStatement(a.createIfStatement(a.createTypeCheck(a.cloneNode(r),"undefined"),e.setEmitFlags(e.setTextRange(a.createBlock([a.createExpressionStatement(e.setEmitFlags(e.setTextRange(a.createAssignment(e.setEmitFlags(a.cloneNode(r),48),e.setEmitFlags(n,1584|e.getEmitFlags(n))),t),1536))]),t),1953))),a.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,void 0)})(t,t.name,t.initializer,r):t}function s(r,n,i,a){void 0===a&&(a=t),i.resumeLexicalEnvironment();var o=a(r,n,e.isConciseBody),s=i.endLexicalEnvironment();if(e.some(s)){if(!o)return i.factory.createBlock(s);var c=i.factory.converters.convertToFunctionBlock(o),l=e.factory.mergeLexicalEnvironment(c.statements,s);return i.factory.updateBlock(c,l)}return o}function c(r,n,i){i.startBlockScope();var a=t(r,n,e.isStatement,i.factory.liftToBlock),o=i.endBlockScope();return e.some(o)?e.isBlock(a)?(o.push.apply(o,a.statements),i.factory.updateBlock(a,o)):(o.push(a),i.factory.createBlock(o)):a}function l(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=t,e.visitNodes=r,e.visitArray=(e,t,r,i,a)=>{if(void 0===e)return e;var o=e.length;return(void 0===i||i<0)&&(i=0),(void 0===a||a>o-i)&&(a=o-i),n(e,t,r,i,a)},e.visitLexicalEnvironment=i,e.visitParameterList=a,e.visitFunctionBody=s,e.visitIterationBody=c,e.visitEachChild=(n,o,l,d,u,p)=>{if(void 0===d&&(d=r),void 0===p&&(p=t),void 0!==n){var _=n.kind;if(_>0&&_<=160||192===_)return n;var f=l.factory;switch(_){case 79:return e.Debug.type(n),f.updateIdentifier(n,d(n.typeArguments,o,e.isTypeNodeOrTypeParameterDeclaration));case 161:return e.Debug.type(n),f.updateQualifiedName(n,p(n.left,o,e.isEntityName),p(n.right,o,e.isIdentifier));case 162:return e.Debug.type(n),f.updateComputedPropertyName(n,p(n.expression,o,e.isExpression));case 163:return e.Debug.type(n),f.updateTypeParameterDeclaration(n,d(n.modifiers,o,e.isModifier),p(n.name,o,e.isIdentifier),p(n.constraint,o,e.isTypeNode),p(n.default,o,e.isTypeNode));case 164:return e.Debug.type(n),f.updateParameterDeclaration(n,d(n.modifiers,o,e.isModifierLike),p(n.dotDotDotToken,u,e.isDotDotDotToken),p(n.name,o,e.isBindingName),p(n.questionToken,u,e.isQuestionToken),p(n.type,o,e.isTypeNode),p(n.initializer,o,e.isExpression));case 165:return e.Debug.type(n),f.updateDecorator(n,p(n.expression,o,e.isExpression));case 166:return e.Debug.type(n),f.updatePropertySignature(n,d(n.modifiers,o,e.isModifier),p(n.name,o,e.isPropertyName),p(n.questionToken,u,e.isToken),p(n.type,o,e.isTypeNode));case 167:return e.Debug.type(n),f.updatePropertyDeclaration(n,d(n.modifiers,o,e.isModifierLike),p(n.name,o,e.isPropertyName),p(n.questionToken||n.exclamationToken,u,e.isQuestionOrExclamationToken),p(n.type,o,e.isTypeNode),p(n.initializer,o,e.isExpression));case 168:return e.Debug.type(n),f.updateMethodSignature(n,d(n.modifiers,o,e.isModifier),p(n.name,o,e.isPropertyName),p(n.questionToken,u,e.isQuestionToken),d(n.typeParameters,o,e.isTypeParameterDeclaration),d(n.parameters,o,e.isParameterDeclaration),p(n.type,o,e.isTypeNode));case 169:return e.Debug.type(n),f.updateMethodDeclaration(n,d(n.modifiers,o,e.isModifierLike),p(n.asteriskToken,u,e.isAsteriskToken),p(n.name,o,e.isPropertyName),p(n.questionToken,u,e.isQuestionToken),d(n.typeParameters,o,e.isTypeParameterDeclaration),a(n.parameters,o,l,d),p(n.type,o,e.isTypeNode),s(n.body,o,l,p));case 171:return e.Debug.type(n),f.updateConstructorDeclaration(n,d(n.modifiers,o,e.isModifier),a(n.parameters,o,l,d),s(n.body,o,l,p));case 172:return e.Debug.type(n),f.updateGetAccessorDeclaration(n,d(n.modifiers,o,e.isModifierLike),p(n.name,o,e.isPropertyName),a(n.parameters,o,l,d),p(n.type,o,e.isTypeNode),s(n.body,o,l,p));case 173:return e.Debug.type(n),f.updateSetAccessorDeclaration(n,d(n.modifiers,o,e.isModifierLike),p(n.name,o,e.isPropertyName),a(n.parameters,o,l,d),s(n.body,o,l,p));case 170:return e.Debug.type(n),l.startLexicalEnvironment(),l.suspendLexicalEnvironment(),f.updateClassStaticBlockDeclaration(n,s(n.body,o,l,p));case 174:return e.Debug.type(n),f.updateCallSignature(n,d(n.typeParameters,o,e.isTypeParameterDeclaration),d(n.parameters,o,e.isParameterDeclaration),p(n.type,o,e.isTypeNode));case 175:return e.Debug.type(n),f.updateConstructSignature(n,d(n.typeParameters,o,e.isTypeParameterDeclaration),d(n.parameters,o,e.isParameterDeclaration),p(n.type,o,e.isTypeNode));case 176:return e.Debug.type(n),f.updateIndexSignature(n,d(n.modifiers,o,e.isModifier),d(n.parameters,o,e.isParameterDeclaration),p(n.type,o,e.isTypeNode));case 177:return e.Debug.type(n),f.updateTypePredicateNode(n,p(n.assertsModifier,o,e.isAssertsKeyword),p(n.parameterName,o,e.isIdentifierOrThisTypeNode),p(n.type,o,e.isTypeNode));case 178:return e.Debug.type(n),f.updateTypeReferenceNode(n,p(n.typeName,o,e.isEntityName),d(n.typeArguments,o,e.isTypeNode));case 179:return e.Debug.type(n),f.updateFunctionTypeNode(n,d(n.typeParameters,o,e.isTypeParameterDeclaration),d(n.parameters,o,e.isParameterDeclaration),p(n.type,o,e.isTypeNode));case 180:return e.Debug.type(n),f.updateConstructorTypeNode(n,d(n.modifiers,o,e.isModifier),d(n.typeParameters,o,e.isTypeParameterDeclaration),d(n.parameters,o,e.isParameterDeclaration),p(n.type,o,e.isTypeNode));case 181:return e.Debug.type(n),f.updateTypeQueryNode(n,p(n.exprName,o,e.isEntityName),d(n.typeArguments,o,e.isTypeNode));case 182:return e.Debug.type(n),f.updateTypeLiteralNode(n,d(n.members,o,e.isTypeElement));case 183:return e.Debug.type(n),f.updateArrayTypeNode(n,p(n.elementType,o,e.isTypeNode));case 184:return e.Debug.type(n),f.updateTupleTypeNode(n,d(n.elements,o,e.isTypeNode));case 185:return e.Debug.type(n),f.updateOptionalTypeNode(n,p(n.type,o,e.isTypeNode));case 186:return e.Debug.type(n),f.updateRestTypeNode(n,p(n.type,o,e.isTypeNode));case 187:return e.Debug.type(n),f.updateUnionTypeNode(n,d(n.types,o,e.isTypeNode));case 188:return e.Debug.type(n),f.updateIntersectionTypeNode(n,d(n.types,o,e.isTypeNode));case 189:return e.Debug.type(n),f.updateConditionalTypeNode(n,p(n.checkType,o,e.isTypeNode),p(n.extendsType,o,e.isTypeNode),p(n.trueType,o,e.isTypeNode),p(n.falseType,o,e.isTypeNode));case 190:return e.Debug.type(n),f.updateInferTypeNode(n,p(n.typeParameter,o,e.isTypeParameterDeclaration));case 200:return e.Debug.type(n),f.updateImportTypeNode(n,p(n.argument,o,e.isTypeNode),p(n.assertions,o,e.isNode),p(n.qualifier,o,e.isEntityName),d(n.typeArguments,o,e.isTypeNode),n.isTypeOf);case 295:return e.Debug.type(n),f.updateImportTypeAssertionContainer(n,p(n.assertClause,o,e.isNode),n.multiLine);case 197:return e.Debug.type(n),f.updateNamedTupleMember(n,p(n.dotDotDotToken,u,e.isDotDotDotToken),p(n.name,o,e.isIdentifier),p(n.questionToken,u,e.isQuestionToken),p(n.type,o,e.isTypeNode));case 191:return e.Debug.type(n),f.updateParenthesizedType(n,p(n.type,o,e.isTypeNode));case 193:return e.Debug.type(n),f.updateTypeOperatorNode(n,p(n.type,o,e.isTypeNode));case 194:return e.Debug.type(n),f.updateIndexedAccessTypeNode(n,p(n.objectType,o,e.isTypeNode),p(n.indexType,o,e.isTypeNode));case 195:return e.Debug.type(n),f.updateMappedTypeNode(n,p(n.readonlyToken,u,e.isReadonlyKeywordOrPlusOrMinusToken),p(n.typeParameter,o,e.isTypeParameterDeclaration),p(n.nameType,o,e.isTypeNode),p(n.questionToken,u,e.isQuestionOrPlusOrMinusToken),p(n.type,o,e.isTypeNode),d(n.members,o,e.isTypeElement));case 196:return e.Debug.type(n),f.updateLiteralTypeNode(n,p(n.literal,o,e.isExpression));case 198:return e.Debug.type(n),f.updateTemplateLiteralType(n,p(n.head,o,e.isTemplateHead),d(n.templateSpans,o,e.isTemplateLiteralTypeSpan));case 199:return e.Debug.type(n),f.updateTemplateLiteralTypeSpan(n,p(n.type,o,e.isTypeNode),p(n.literal,o,e.isTemplateMiddleOrTemplateTail));case 201:return e.Debug.type(n),f.updateObjectBindingPattern(n,d(n.elements,o,e.isBindingElement));case 202:return e.Debug.type(n),f.updateArrayBindingPattern(n,d(n.elements,o,e.isArrayBindingElement));case 203:return e.Debug.type(n),f.updateBindingElement(n,p(n.dotDotDotToken,u,e.isDotDotDotToken),p(n.propertyName,o,e.isPropertyName),p(n.name,o,e.isBindingName),p(n.initializer,o,e.isExpression));case 204:return e.Debug.type(n),f.updateArrayLiteralExpression(n,d(n.elements,o,e.isExpression));case 205:return e.Debug.type(n),f.updateObjectLiteralExpression(n,d(n.properties,o,e.isObjectLiteralElementLike));case 206:return 32&n.flags?(e.Debug.type(n),f.updatePropertyAccessChain(n,p(n.expression,o,e.isExpression),p(n.questionDotToken,u,e.isQuestionDotToken),p(n.name,o,e.isMemberName))):(e.Debug.type(n),f.updatePropertyAccessExpression(n,p(n.expression,o,e.isExpression),p(n.name,o,e.isMemberName)));case 207:return 32&n.flags?(e.Debug.type(n),f.updateElementAccessChain(n,p(n.expression,o,e.isExpression),p(n.questionDotToken,u,e.isQuestionDotToken),p(n.argumentExpression,o,e.isExpression))):(e.Debug.type(n),f.updateElementAccessExpression(n,p(n.expression,o,e.isExpression),p(n.argumentExpression,o,e.isExpression)));case 208:return 32&n.flags?(e.Debug.type(n),f.updateCallChain(n,p(n.expression,o,e.isExpression),p(n.questionDotToken,u,e.isQuestionDotToken),d(n.typeArguments,o,e.isTypeNode),d(n.arguments,o,e.isExpression))):(e.Debug.type(n),f.updateCallExpression(n,p(n.expression,o,e.isExpression),d(n.typeArguments,o,e.isTypeNode),d(n.arguments,o,e.isExpression)));case 209:return e.Debug.type(n),f.updateNewExpression(n,p(n.expression,o,e.isExpression),d(n.typeArguments,o,e.isTypeNode),d(n.arguments,o,e.isExpression));case 210:return e.Debug.type(n),f.updateTaggedTemplateExpression(n,p(n.tag,o,e.isExpression),d(n.typeArguments,o,e.isTypeNode),p(n.template,o,e.isTemplateLiteral));case 211:return e.Debug.type(n),f.updateTypeAssertion(n,p(n.type,o,e.isTypeNode),p(n.expression,o,e.isExpression));case 212:return e.Debug.type(n),f.updateParenthesizedExpression(n,p(n.expression,o,e.isExpression));case 213:return e.Debug.type(n),f.updateFunctionExpression(n,d(n.modifiers,o,e.isModifier),p(n.asteriskToken,u,e.isAsteriskToken),p(n.name,o,e.isIdentifier),d(n.typeParameters,o,e.isTypeParameterDeclaration),a(n.parameters,o,l,d),p(n.type,o,e.isTypeNode),s(n.body,o,l,p));case 214:return e.Debug.type(n),f.updateArrowFunction(n,d(n.modifiers,o,e.isModifier),d(n.typeParameters,o,e.isTypeParameterDeclaration),a(n.parameters,o,l,d),p(n.type,o,e.isTypeNode),p(n.equalsGreaterThanToken,u,e.isEqualsGreaterThanToken),s(n.body,o,l,p));case 215:return e.Debug.type(n),f.updateDeleteExpression(n,p(n.expression,o,e.isExpression));case 216:return e.Debug.type(n),f.updateTypeOfExpression(n,p(n.expression,o,e.isExpression));case 217:return e.Debug.type(n),f.updateVoidExpression(n,p(n.expression,o,e.isExpression));case 218:return e.Debug.type(n),f.updateAwaitExpression(n,p(n.expression,o,e.isExpression));case 219:return e.Debug.type(n),f.updatePrefixUnaryExpression(n,p(n.operand,o,e.isExpression));case 220:return e.Debug.type(n),f.updatePostfixUnaryExpression(n,p(n.operand,o,e.isExpression));case 221:return e.Debug.type(n),f.updateBinaryExpression(n,p(n.left,o,e.isExpression),p(n.operatorToken,u,e.isBinaryOperatorToken),p(n.right,o,e.isExpression));case 222:return e.Debug.type(n),f.updateConditionalExpression(n,p(n.condition,o,e.isExpression),p(n.questionToken,u,e.isQuestionToken),p(n.whenTrue,o,e.isExpression),p(n.colonToken,u,e.isColonToken),p(n.whenFalse,o,e.isExpression));case 223:return e.Debug.type(n),f.updateTemplateExpression(n,p(n.head,o,e.isTemplateHead),d(n.templateSpans,o,e.isTemplateSpan));case 224:return e.Debug.type(n),f.updateYieldExpression(n,p(n.asteriskToken,u,e.isAsteriskToken),p(n.expression,o,e.isExpression));case 225:return e.Debug.type(n),f.updateSpreadElement(n,p(n.expression,o,e.isExpression));case 226:return e.Debug.type(n),f.updateClassExpression(n,d(n.modifiers,o,e.isModifierLike),p(n.name,o,e.isIdentifier),d(n.typeParameters,o,e.isTypeParameterDeclaration),d(n.heritageClauses,o,e.isHeritageClause),d(n.members,o,e.isClassElement));case 228:return e.Debug.type(n),f.updateExpressionWithTypeArguments(n,p(n.expression,o,e.isExpression),d(n.typeArguments,o,e.isTypeNode));case 229:return e.Debug.type(n),f.updateAsExpression(n,p(n.expression,o,e.isExpression),p(n.type,o,e.isTypeNode));case 230:return 32&n.flags?(e.Debug.type(n),f.updateNonNullChain(n,p(n.expression,o,e.isExpression))):(e.Debug.type(n),f.updateNonNullExpression(n,p(n.expression,o,e.isExpression)));case 231:return e.Debug.type(n),f.updateMetaProperty(n,p(n.name,o,e.isIdentifier));case 233:return e.Debug.type(n),f.updateTemplateSpan(n,p(n.expression,o,e.isExpression),p(n.literal,o,e.isTemplateMiddleOrTemplateTail));case 235:return e.Debug.type(n),f.updateBlock(n,d(n.statements,o,e.isStatement));case 237:return e.Debug.type(n),f.updateVariableStatement(n,d(n.modifiers,o,e.isModifier),p(n.declarationList,o,e.isVariableDeclarationList));case 238:return e.Debug.type(n),f.updateExpressionStatement(n,p(n.expression,o,e.isExpression));case 239:return e.Debug.type(n),f.updateIfStatement(n,p(n.expression,o,e.isExpression),p(n.thenStatement,o,e.isStatement,f.liftToBlock),p(n.elseStatement,o,e.isStatement,f.liftToBlock));case 240:return e.Debug.type(n),f.updateDoStatement(n,c(n.statement,o,l),p(n.expression,o,e.isExpression));case 241:return e.Debug.type(n),f.updateWhileStatement(n,p(n.expression,o,e.isExpression),c(n.statement,o,l));case 242:return e.Debug.type(n),f.updateForStatement(n,p(n.initializer,o,e.isForInitializer),p(n.condition,o,e.isExpression),p(n.incrementor,o,e.isExpression),c(n.statement,o,l));case 243:return e.Debug.type(n),f.updateForInStatement(n,p(n.initializer,o,e.isForInitializer),p(n.expression,o,e.isExpression),c(n.statement,o,l));case 244:return e.Debug.type(n),f.updateForOfStatement(n,p(n.awaitModifier,u,e.isAwaitKeyword),p(n.initializer,o,e.isForInitializer),p(n.expression,o,e.isExpression),c(n.statement,o,l));case 245:return e.Debug.type(n),f.updateContinueStatement(n,p(n.label,o,e.isIdentifier));case 246:return e.Debug.type(n),f.updateBreakStatement(n,p(n.label,o,e.isIdentifier));case 247:return e.Debug.type(n),f.updateReturnStatement(n,p(n.expression,o,e.isExpression));case 248:return e.Debug.type(n),f.updateWithStatement(n,p(n.expression,o,e.isExpression),p(n.statement,o,e.isStatement,f.liftToBlock));case 249:return e.Debug.type(n),f.updateSwitchStatement(n,p(n.expression,o,e.isExpression),p(n.caseBlock,o,e.isCaseBlock));case 250:return e.Debug.type(n),f.updateLabeledStatement(n,p(n.label,o,e.isIdentifier),p(n.statement,o,e.isStatement,f.liftToBlock));case 251:return e.Debug.type(n),f.updateThrowStatement(n,p(n.expression,o,e.isExpression));case 252:return e.Debug.type(n),f.updateTryStatement(n,p(n.tryBlock,o,e.isBlock),p(n.catchClause,o,e.isCatchClause),p(n.finallyBlock,o,e.isBlock));case 254:return e.Debug.type(n),f.updateVariableDeclaration(n,p(n.name,o,e.isBindingName),p(n.exclamationToken,u,e.isExclamationToken),p(n.type,o,e.isTypeNode),p(n.initializer,o,e.isExpression));case 255:return e.Debug.type(n),f.updateVariableDeclarationList(n,d(n.declarations,o,e.isVariableDeclaration));case 256:return e.Debug.type(n),f.updateFunctionDeclaration(n,d(n.modifiers,o,e.isModifier),p(n.asteriskToken,u,e.isAsteriskToken),p(n.name,o,e.isIdentifier),d(n.typeParameters,o,e.isTypeParameterDeclaration),a(n.parameters,o,l,d),p(n.type,o,e.isTypeNode),s(n.body,o,l,p));case 257:return e.Debug.type(n),f.updateClassDeclaration(n,d(n.modifiers,o,e.isModifierLike),p(n.name,o,e.isIdentifier),d(n.typeParameters,o,e.isTypeParameterDeclaration),d(n.heritageClauses,o,e.isHeritageClause),d(n.members,o,e.isClassElement));case 258:return e.Debug.type(n),f.updateInterfaceDeclaration(n,d(n.modifiers,o,e.isModifier),p(n.name,o,e.isIdentifier),d(n.typeParameters,o,e.isTypeParameterDeclaration),d(n.heritageClauses,o,e.isHeritageClause),d(n.members,o,e.isTypeElement));case 259:return e.Debug.type(n),f.updateTypeAliasDeclaration(n,d(n.modifiers,o,e.isModifier),p(n.name,o,e.isIdentifier),d(n.typeParameters,o,e.isTypeParameterDeclaration),p(n.type,o,e.isTypeNode));case 260:return e.Debug.type(n),f.updateEnumDeclaration(n,d(n.modifiers,o,e.isModifier),p(n.name,o,e.isIdentifier),d(n.members,o,e.isEnumMember));case 261:return e.Debug.type(n),f.updateModuleDeclaration(n,d(n.modifiers,o,e.isModifier),p(n.name,o,e.isModuleName),p(n.body,o,e.isModuleBody));case 262:return e.Debug.type(n),f.updateModuleBlock(n,d(n.statements,o,e.isStatement));case 263:return e.Debug.type(n),f.updateCaseBlock(n,d(n.clauses,o,e.isCaseOrDefaultClause));case 264:return e.Debug.type(n),f.updateNamespaceExportDeclaration(n,p(n.name,o,e.isIdentifier));case 265:return e.Debug.type(n),f.updateImportEqualsDeclaration(n,d(n.modifiers,o,e.isModifier),n.isTypeOnly,p(n.name,o,e.isIdentifier),p(n.moduleReference,o,e.isModuleReference));case 266:return e.Debug.type(n),f.updateImportDeclaration(n,d(n.modifiers,o,e.isModifier),p(n.importClause,o,e.isImportClause),p(n.moduleSpecifier,o,e.isExpression),p(n.assertClause,o,e.isAssertClause));case 293:return e.Debug.type(n),f.updateAssertClause(n,d(n.elements,o,e.isAssertEntry),n.multiLine);case 294:return e.Debug.type(n),f.updateAssertEntry(n,p(n.name,o,e.isAssertionKey),p(n.value,o,e.isExpressionNode));case 267:return e.Debug.type(n),f.updateImportClause(n,n.isTypeOnly,p(n.name,o,e.isIdentifier),p(n.namedBindings,o,e.isNamedImportBindings));case 268:return e.Debug.type(n),f.updateNamespaceImport(n,p(n.name,o,e.isIdentifier));case 274:return e.Debug.type(n),f.updateNamespaceExport(n,p(n.name,o,e.isIdentifier));case 269:return e.Debug.type(n),f.updateNamedImports(n,d(n.elements,o,e.isImportSpecifier));case 270:return e.Debug.type(n),f.updateImportSpecifier(n,n.isTypeOnly,p(n.propertyName,o,e.isIdentifier),p(n.name,o,e.isIdentifier));case 271:return e.Debug.type(n),f.updateExportAssignment(n,d(n.modifiers,o,e.isModifier),p(n.expression,o,e.isExpression));case 272:return e.Debug.type(n),f.updateExportDeclaration(n,d(n.modifiers,o,e.isModifier),n.isTypeOnly,p(n.exportClause,o,e.isNamedExportBindings),p(n.moduleSpecifier,o,e.isExpression),p(n.assertClause,o,e.isAssertClause));case 273:return e.Debug.type(n),f.updateNamedExports(n,d(n.elements,o,e.isExportSpecifier));case 275:return e.Debug.type(n),f.updateExportSpecifier(n,n.isTypeOnly,p(n.propertyName,o,e.isIdentifier),p(n.name,o,e.isIdentifier));case 277:return e.Debug.type(n),f.updateExternalModuleReference(n,p(n.expression,o,e.isExpression));case 278:return e.Debug.type(n),f.updateJsxElement(n,p(n.openingElement,o,e.isJsxOpeningElement),d(n.children,o,e.isJsxChild),p(n.closingElement,o,e.isJsxClosingElement));case 279:return e.Debug.type(n),f.updateJsxSelfClosingElement(n,p(n.tagName,o,e.isJsxTagNameExpression),d(n.typeArguments,o,e.isTypeNode),p(n.attributes,o,e.isJsxAttributes));case 280:return e.Debug.type(n),f.updateJsxOpeningElement(n,p(n.tagName,o,e.isJsxTagNameExpression),d(n.typeArguments,o,e.isTypeNode),p(n.attributes,o,e.isJsxAttributes));case 281:return e.Debug.type(n),f.updateJsxClosingElement(n,p(n.tagName,o,e.isJsxTagNameExpression));case 282:return e.Debug.type(n),f.updateJsxFragment(n,p(n.openingFragment,o,e.isJsxOpeningFragment),d(n.children,o,e.isJsxChild),p(n.closingFragment,o,e.isJsxClosingFragment));case 285:return e.Debug.type(n),f.updateJsxAttribute(n,p(n.name,o,e.isIdentifier),p(n.initializer,o,e.isStringLiteralOrJsxExpression));case 286:return e.Debug.type(n),f.updateJsxAttributes(n,d(n.properties,o,e.isJsxAttributeLike));case 287:return e.Debug.type(n),f.updateJsxSpreadAttribute(n,p(n.expression,o,e.isExpression));case 288:return e.Debug.type(n),f.updateJsxExpression(n,p(n.expression,o,e.isExpression));case 289:return e.Debug.type(n),f.updateCaseClause(n,p(n.expression,o,e.isExpression),d(n.statements,o,e.isStatement));case 290:return e.Debug.type(n),f.updateDefaultClause(n,d(n.statements,o,e.isStatement));case 291:return e.Debug.type(n),f.updateHeritageClause(n,d(n.types,o,e.isExpressionWithTypeArguments));case 292:return e.Debug.type(n),f.updateCatchClause(n,p(n.variableDeclaration,o,e.isVariableDeclaration),p(n.block,o,e.isBlock));case 296:return e.Debug.type(n),f.updatePropertyAssignment(n,p(n.name,o,e.isPropertyName),p(n.initializer,o,e.isExpression));case 297:return e.Debug.type(n),f.updateShorthandPropertyAssignment(n,p(n.name,o,e.isIdentifier),p(n.objectAssignmentInitializer,o,e.isExpression));case 298:return e.Debug.type(n),f.updateSpreadAssignment(n,p(n.expression,o,e.isExpression));case 299:return e.Debug.type(n),f.updateEnumMember(n,p(n.name,o,e.isPropertyName),p(n.initializer,o,e.isExpression));case 305:return e.Debug.type(n),f.updateSourceFile(n,i(n.statements,o,l));case 350:return e.Debug.type(n),f.updatePartiallyEmittedExpression(n,p(n.expression,o,e.isExpression));case 351:return e.Debug.type(n),f.updateCommaListExpression(n,d(n.elements,o,e.isExpression));default:return n}}}})(p),(e=>{e.createSourceMapGenerator=(t,r,n,i,o)=>{var s,c,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,d=l.enter,u=l.exit,p=[],_=[],f=new e.Map,m=[],g=[],h="",y=0,v=0,b=0,E=0,x=0,D=0,S=!1,T=0,C=0,A=0,k=0,N=0,w=0,F=!1,P=!1,I=!1;return{getSources:()=>p,addSource:O,setSourceContent:M,addName:R,addMapping:L,appendSourceMap(t,r,n,i,o,s){e.Debug.assert(t>=T,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),d();for(var c,l=[],p=a(n.mappings),_=p.next();!_.done;_=p.next()){var f=_.value;if(s&&(f.generatedLine>s.line||f.generatedLine===s.line&&f.generatedCharacter>s.character))break;if(!o||!(f.generatedLine<o.line||o.line===f.generatedLine&&f.generatedCharacter<o.character)){var m=void 0,g=void 0,h=void 0,y=void 0;if(void 0!==f.sourceIndex){if(void 0===(m=l[f.sourceIndex])){var v=n.sources[f.sourceIndex],b=n.sourceRoot?e.combinePaths(n.sourceRoot,v):v,E=e.combinePaths(e.getDirectoryPath(i),b);l[f.sourceIndex]=m=O(E),n.sourcesContent&&"string"==typeof n.sourcesContent[f.sourceIndex]&&M(m,n.sourcesContent[f.sourceIndex])}g=f.sourceLine,h=f.sourceCharacter,n.names&&void 0!==f.nameIndex&&(c||(c=[]),void 0===(y=c[f.nameIndex])&&(c[f.nameIndex]=y=R(n.names[f.nameIndex])))}var x=f.generatedLine-(o?o.line:0),D=x+t,S=o&&o.line===f.generatedLine?f.generatedCharacter-o.character:f.generatedCharacter;L(D,0===x?S+r:S,m,g,h,y)}}u()},toJSON:V,toString:()=>JSON.stringify(V())};function O(r){d();var n=e.getRelativePathToDirectoryOrUrl(i,r,t.getCurrentDirectory(),t.getCanonicalFileName,!0),a=f.get(n);return void 0===a&&(a=_.length,_.push(n),p.push(r),f.set(n,a)),u(),a}function M(e,t){if(d(),null!==t){for(s||(s=[]);s.length<e;)s.push(null);s[e]=t}u()}function R(t){d(),c||(c=new e.Map);var r=c.get(t);return void 0===r&&(r=m.length,m.push(t),c.set(t,r)),u(),r}function L(t,r,n,i,a,o){e.Debug.assert(t>=T,"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"),d(),(((e,t)=>!F||T!==e||C!==t)(t,r)||((e,t,r)=>void 0!==e&&void 0!==t&&void 0!==r&&A===e&&(k>t||k===t&&N>r))(n,i,a))&&(U(),T=t,C=r,P=!1,I=!1,F=!0),void 0!==n&&void 0!==i&&void 0!==a&&(A=n,k=i,N=a,P=!0,void 0!==o&&(w=o,I=!0)),u()}function B(e){g.push(e),g.length>=1024&&j()}function U(){if(F&&(!S||y!==T||v!==C||b!==A||E!==k||x!==N||D!==w)){if(d(),y<T){do{B(59),y++}while(y<T);v=0}else e.Debug.assertEqual(y,T,"generatedLine cannot backtrack"),S&&B(44);z(C-v),v=C,P&&(z(A-b),b=A,z(k-E),E=k,z(N-x),x=N,I&&(z(w-D),D=w)),S=!0,u()}}function j(){g.length>0&&(h+=String.fromCharCode.apply(void 0,g),g.length=0)}function V(){return U(),j(),{version:3,file:r,sourceRoot:n,sources:_,names:m,mappings:h,sourcesContent:s}}function z(t){t<0?t=1+(-t<<1):t<<=1;do{var r=31&t;(t>>=5)>0&&(r|=32),B((n=r)>=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("".concat(n,": not a base64 value")))}while(t>0);var n}};var t=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,r=/^\s*(\/\/[@#] .*)?$/;function n(e){return"string"==typeof e||null===e}function i(t){return null!==t&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,n))&&(void 0===t.names||null===t.names||e.isArray(t.names)&&e.every(t.names,e.isString))}function a(e){var t,r=!1,n=0,i=0,a=0,o=0,s=0,c=0,l=0;return{get pos(){return n},get error(){return t},get state(){return d(!0,!0)},next(){for(;!r&&n<e.length;){var t=e.charCodeAt(n);if(59!==t){if(44!==t){var p=!1,h=!1;if(a+=g(),f())return u();if(a<0)return _("Invalid generatedCharacter found");if(!m()){if(p=!0,o+=g(),f())return u();if(o<0)return _("Invalid sourceIndex found");if(m())return _("Unsupported Format: No entries after sourceIndex");if(s+=g(),f())return u();if(s<0)return _("Invalid sourceLine found");if(m())return _("Unsupported Format: No entries after sourceLine");if(c+=g(),f())return u();if(c<0)return _("Invalid sourceCharacter found");if(!m()){if(h=!0,l+=g(),f())return u();if(l<0)return _("Invalid nameIndex found");if(!m())return _("Unsupported Error Format: Entries after nameIndex")}}return{value:d(p,h),done:r}}n++}else i++,a=0,n++}return u()}};function d(e,t){return{generatedLine:i,generatedCharacter:a,sourceIndex:e?o:void 0,sourceLine:e?s:void 0,sourceCharacter:e?c:void 0,nameIndex:t?l:void 0}}function u(){return r=!0,{value:void 0,done:!0}}function p(e){void 0===t&&(t=e)}function _(e){return p(e),u()}function f(){return void 0!==t}function m(){return n===e.length||44===e.charCodeAt(n)||59===e.charCodeAt(n)}function g(){for(var t,r=!0,i=0,a=0;r;n++){if(n>=e.length)return p("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 p("Invalid character in VLQ"),-1;r=0!=(32&o),a|=(31&o)<<i,i+=5}return 0==(1&a)?a>>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function c(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 d(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function u(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=(e,t)=>({getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}),e.tryGetSourceMappingURL=n=>{for(var i=n.getLineCount()-1;i>=0;i--){var a=n.getLineText(i),o=t.exec(a);if(o)return e.trimStringEnd(o[1]);if(!a.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=e=>{try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=(e,t)=>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=(t,r,n)=>{var i,_,f,m=e.getDirectoryPath(n),g=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,m):m,h=e.getNormalizedAbsolutePath(r.file,m),y=t.getSourceFileLike(h),v=r.sources.map((t=>e.getNormalizedAbsolutePath(t,g))),b=new e.Map(v.map(((e,r)=>[t.getCanonicalFileName(e),r])));return{getSourcePosition(t){var r=(()=>{if(void 0===_){for(var t=[],r=0,n=x();r<n.length;r++){var i=n[r];t.push(i)}_=e.sortAndDeduplicate(t,d,c)}return _})();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&&s(i)?{fileName:v[i.sourceIndex],pos:i.sourcePosition}:t},getGeneratedPosition(r){var n=b.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=(t=>{if(void 0===f){for(var r=[],n=0,i=x();n<i.length;n++){var a=i[n];if(s(a)){var o=r[a.sourceIndex];o||(r[a.sourceIndex]=o=[]),o.push(a)}}f=r.map((t=>e.sortAndDeduplicate(t,l,c)))}return f[t]})(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,u,e.compareValues);a<0&&(a=~a);var o=i[a];return void 0===o||o.sourceIndex!==n?r:{fileName:h,pos:o.generatedPosition}}};function E(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 x(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,E);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: ".concat(n.error)),i=e.emptyArray):i=o}return i}},e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}})(p),(e=>{function t(t){return(t=e.getOriginalNode(t))?e.getNodeId(t):0}function r(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function n(t){if(e.getNamespaceDeclarationNode(t))return!0;var n=t.importClause&&t.importClause.namedBindings;if(!n)return!1;if(!e.isNamedImports(n))return!1;for(var i=0,a=0,o=n.elements;a<o.length;a++)r(o[a])&&i++;return i>0&&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)&&(t=>!!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<o.length;i++){var s=o[i];e.isOmittedExpression(s)||(n=a(s,r,n))}else if(!e.isGeneratedIdentifier(t.name)){var c=e.idText(t.name);r.get(c)||(r.set(c,!0),n=e.append(n,t.name))}return n}function o(e,t,r){var n=e[t];return n?n.push(r):e[t]=n=[r],n}function s(t){return e.isStringLiteralLike(t)||8===t.kind||e.isKeyword(t.kind)||e.isIdentifier(t)}function c(t){if(e.isExpressionStatement(t)){var r=e.skipParentheses(t.expression);return e.isSuperCall(r)?r:void 0}}function l(t){return r=t,e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)||e.isClassStaticBlockDeclaration(t);var r}function d(t){var r;if(t)for(var n=t.parameters,i=n.length>0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s<o;s++){var c=n[s+a];(r||e.hasDecorators(c))&&(r||(r=new Array(o)),r[s]=e.getDecorators(c))}return r}e.getOriginalNodeId=t,e.chainBundle=(t,r)=>n=>305===n.kind?r(n):(n=>t.factory.createBundle(e.map(n.sourceFiles,r),n.prepends))(n),e.getExportNeedsImportStarHelper=t=>!!e.getNamespaceDeclarationNode(t),e.getImportNeedsImportStarHelper=n,e.getImportNeedsImportDefaultHelper=i,e.collectExternalModuleInfo=(r,s,c,l)=>{for(var d,u,p=[],_=e.createMultiMap(),f=[],m=new e.Map,g=!1,h=!1,y=!1,v=!1,b=0,E=s.statements;b<E.length;b++){var x=E[b];switch(x.kind){case 266:p.push(x),!y&&n(x)&&(y=!0),!v&&i(x)&&(v=!0);break;case 265:277===x.moduleReference.kind&&p.push(x);break;case 272:if(x.moduleSpecifier)if(x.exportClause)if(p.push(x),e.isNamedExports(x.exportClause))k(x);else{var D=x.exportClause.name;m.get(e.idText(D))||(o(f,t(x),D),m.set(e.idText(D),!0),d=e.append(d,D)),y=!0}else p.push(x),h=!0;else k(x);break;case 271:x.isExportEquals&&!u&&(u=x);break;case 237:if(e.hasSyntacticModifier(x,1))for(var S=0,T=x.declarationList.declarations;S<T.length;S++){var C=T[S];d=a(C,m,d)}break;case 256:e.hasSyntacticModifier(x,1)&&(e.hasSyntacticModifier(x,512)?g||(o(f,t(x),r.factory.getDeclarationName(x)),g=!0):(D=x.name,m.get(e.idText(D))||(o(f,t(x),D),m.set(e.idText(D),!0),d=e.append(d,D))));break;case 257:e.hasSyntacticModifier(x,1)&&(e.hasSyntacticModifier(x,512)?g||(o(f,t(x),r.factory.getDeclarationName(x)),g=!0):(D=x.name)&&!m.get(e.idText(D))&&(o(f,t(x),D),m.set(e.idText(D),!0),d=e.append(d,D)))}}var A=e.createExternalHelpersImportDeclarationIfNeeded(r.factory,r.getEmitHelperFactory(),s,l,h,y,v);return A&&p.unshift(A),{externalImports:p,exportSpecifiers:_,exportEquals:u,hasExportStarsToExportValues:h,exportedBindings:f,exportedNames:d,externalHelpersImportDeclaration:A};function k(r){for(var n=0,i=e.cast(r.exportClause,e.isNamedExports).elements;n<i.length;n++){var a=i[n];if(!m.get(e.idText(a.name))){var s=a.propertyName||a.name;r.moduleSpecifier||_.add(e.idText(s),a);var l=c.getReferencedImportDeclaration(s)||c.getReferencedValueDeclaration(s);l&&o(f,t(l),a.name),m.set(e.idText(a.name),!0),d=e.append(d,a.name)}}}},e.isSimpleCopiableExpression=s,e.isSimpleInlineableExpression=t=>!e.isIdentifier(t)&&s(t),e.isCompoundAssignment=e=>e>=64&&e<=78,e.getNonAssignmentOperatorForCompoundAssignment=e=>{switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}},e.getSuperCallFromStatement=c,e.findSuperStatementIndex=(e,t)=>{for(var r=t;r<e.length;r+=1)if(c(e[r]))return r;return-1},e.getProperties=(t,r,n)=>e.filter(t.members,(t=>((t,r,n)=>e.isPropertyDeclaration(t)&&(!!t.initializer||!r)&&e.hasStaticModifier(t)===n)(t,r,n))),e.getStaticPropertiesAndClassStaticBlock=t=>e.filter(t.members,l),e.isInitializedProperty=e=>167===e.kind&&void 0!==e.initializer,e.isNonStaticMethodOrAccessorWithPrivateName=t=>!e.isStatic(t)&&e.isMethodOrAccessor(t)&&e.isPrivateIdentifier(t.name),e.getAllDecoratorsOfClass=t=>{var r=e.getDecorators(t),n=d(e.getFirstConstructorWithBody(t));if(e.some(r)||e.some(n))return{decorators:r,parameters:n}},e.getAllDecoratorsOfClassElement=(t,r)=>{switch(t.kind){case 172:case 173:return((t,r)=>{if(t.body){var n=e.getAllAccessorDeclarations(r.members,t),i=n.firstAccessor,a=n.secondAccessor,o=n.getAccessor,s=n.setAccessor,c=e.hasDecorators(i)?i:a&&e.hasDecorators(a)?a:void 0;if(c&&t===c){var l=e.getDecorators(c),u=d(s);if(e.some(l)||e.some(u))return{decorators:l,parameters:u,getDecorators:o&&e.getDecorators(o),setDecorators:s&&e.getDecorators(s)}}}})(t,r);case 169:return(t=>{if(t.body){var r=e.getDecorators(t),n=d(t);if(e.some(r)||e.some(n))return{decorators:r,parameters:n}}})(t);case 167:return(t=>{var r=e.getDecorators(t);if(e.some(r))return{decorators:r}})(t);default:return}}})(p),(e=>{function t(r,n){var i=e.getTargetOfBindingOrAssignmentElement(r);return e.isBindingOrAssignmentPattern(i)?((r,n)=>{for(var i=0,a=e.getElementsOfBindingOrAssignmentPattern(r);i<a.length;i++)if(t(a[i],n))return!0;return!1})(i,n):!!e.isIdentifier(i)&&i.escapedText===n}function r(t){var n=e.tryGetPropertyNameOfBindingOrAssignmentElement(t);if(n&&e.isComputedPropertyName(n)&&!e.isLiteralExpression(n.expression))return!0;var i,a=e.getTargetOfBindingOrAssignmentElement(t);return!!a&&e.isBindingOrAssignmentPattern(a)&&(i=a,!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(i),r))}function n(t,r,s,c,l){var d=e.getTargetOfBindingOrAssignmentElement(r);if(!l){var u=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(r),t.visitor,e.isExpression);u?s?(s=((e,t,r,n)=>(t=o(e,t,!0,n),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)))(t,s,u,c),!e.isSimpleInlineableExpression(u)&&e.isBindingOrAssignmentPattern(d)&&(s=o(t,s,!0,c))):s=u:s||(s=t.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(d)?((t,r,i,s,c)=>{var l,d,u=e.getElementsOfBindingOrAssignmentPattern(i),p=u.length;1!==p&&(s=o(t,s,!e.isDeclarationBindingElement(r)||0!==p,c));for(var _=0;_<p;_++){var f=u[_];if(e.getRestIndicatorOfBindingOrAssignmentElement(f))_===p-1&&(l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0),g=t.context.getEmitHelperFactory().createRestHelper(s,u,d,i),n(t,f,g,f));else{var m=e.getPropertyNameOfBindingOrAssignmentElement(f);if(!(t.level>=1)||98304&f.transformFlags||98304&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(m)){l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0);var g=a(t,s,m);e.isComputedPropertyName(m)&&(d=e.append(d,g.argumentExpression)),n(t,f,g,f)}else l=e.append(l,e.visitNode(f,t.visitor))}}l&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i)})(t,r,d,s,c):e.isArrayBindingOrAssignmentPattern(d)?((t,r,a,s,c)=>{var l,d,u=e.getElementsOfBindingOrAssignmentPattern(a),p=u.length;t.level<1&&t.downlevelIteration?s=o(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(s,p>0&&e.getRestIndicatorOfBindingOrAssignmentElement(u[p-1])?void 0:p),c),!1,c):(1!==p&&(t.level<1||0===p)||e.every(u,e.isOmittedExpression))&&(s=o(t,s,!e.isDeclarationBindingElement(r)||0!==p,c));for(var _=0;_<p;_++){var f=u[_];if(t.level>=1)if(65536&f.transformFlags||t.hasTransformedPriorElement&&!i(f)){t.hasTransformedPriorElement=!0;var m=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),d=e.append(d,[m,f]),l=e.append(l,t.createArrayBindingOrAssignmentElement(m))}else l=e.append(l,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f))_===p-1&&(g=t.context.factory.createArraySliceCall(s,_),n(t,f,g,f));else{var g=t.context.factory.createElementAccessExpression(s,_);n(t,f,g,f)}}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),s,c,a),d)for(var h=0,y=d;h<y.length;h++){var v=y[h],b=v[0];n(t,f=v[1],b,f)}})(t,r,d,s,c):t.emitBindingOrAssignment(d,s,c,r)}function i(t){var r=e.getTargetOfBindingOrAssignmentElement(t);if(!r||e.isOmittedExpression(r))return!0;var n=e.tryGetPropertyNameOfBindingOrAssignmentElement(t);if(n&&!e.isPropertyNameLiteral(n))return!1;var a=e.getInitializerOfBindingOrAssignmentElement(t);return!(a&&!e.isSimpleInlineableExpression(a))&&(e.isBindingOrAssignmentPattern(r)?e.every(e.getElementsOfBindingOrAssignmentPattern(r),i):e.isIdentifier(r))}function a(t,r,n){if(e.isComputedPropertyName(n)){var i=o(t,e.visitNode(n.expression,t.visitor),!1,n);return t.context.factory.createElementAccessExpression(r,i)}if(e.isStringOrNumericLiteralLike(n))return i=e.factory.cloneNode(n),t.context.factory.createElementAccessExpression(r,i);var a=t.context.factory.createIdentifier(e.idText(n));return t.context.factory.createPropertyAccessExpression(r,a)}function o(t,r,n,i){if(e.isIdentifier(r)&&n)return r;var a=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(a),t.emitExpression(e.setTextRange(t.context.factory.createAssignment(a,r),i))):t.emitBindingOrAssignment(a,r,i,void 0),a}function s(e){return e}var c;(c=e.FlattenLevel||(e.FlattenLevel={}))[c.All=0]="All",c[c.ObjectRest=1]="ObjectRest",e.flattenDestructuringAssignment=(i,a,c,l,d,u)=>{var p,_,f=i;if(e.isDestructuringAssignment(i))for(p=i.right;e.isEmptyArrayLiteral(i.left)||e.isEmptyObjectLiteral(i.left);){if(!e.isDestructuringAssignment(p))return e.visitNode(p,a,e.isExpression);f=i=p,p=i.right}var m={context:c,level:l,downlevelIteration:!!c.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:g,emitBindingOrAssignment(t,r,n,i){e.Debug.assertNode(t,u?e.isIdentifier:e.isExpression);var o=u?u(t,r,n):e.setTextRange(c.factory.createAssignment(e.visitNode(t,a,e.isExpression),r),n);o.original=i,g(o)},createArrayBindingOrAssignmentPattern:t=>((t,r)=>t.createArrayLiteralExpression(e.map(r,t.converters.convertToArrayAssignmentElement)))(c.factory,t),createObjectBindingOrAssignmentPattern:t=>((t,r)=>t.createObjectLiteralExpression(e.map(r,t.converters.convertToObjectAssignmentElement)))(c.factory,t),createArrayBindingOrAssignmentElement:s,visitor:a};if(p&&(p=e.visitNode(p,a,e.isExpression),e.isIdentifier(p)&&t(i,p.escapedText)||r(i)?p=o(m,p,!1,f):d?p=o(m,p,!0,f):e.nodeIsSynthesized(i)&&(f=p)),n(m,i,p,f,e.isDestructuringAssignment(i)),p&&d){if(!e.some(_))return p;_.push(p)}return c.factory.inlineExpressions(_)||c.factory.createOmittedExpression();function g(t){_=e.append(_,t)}},e.flattenDestructuringBinding=(i,a,s,c,l,d,u)=>{var p;void 0===d&&(d=!1);var _=[],f=[],m={context:s,level:c,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:d,emitExpression(t){p=e.append(p,t)},emitBindingOrAssignment:k,createArrayBindingOrAssignmentPattern:t=>((t,r)=>(e.Debug.assertEachNode(r,e.isArrayBindingElement),t.createArrayBindingPattern(r)))(s.factory,t),createObjectBindingOrAssignmentPattern:t=>((t,r)=>(e.Debug.assertEachNode(r,e.isBindingElement),t.createObjectBindingPattern(r)))(s.factory,t),createArrayBindingOrAssignmentElement:e=>((e,t)=>e.createBindingElement(void 0,void 0,t))(s.factory,e),visitor:a};if(e.isVariableDeclaration(i)){var g=e.getInitializerOfBindingOrAssignmentElement(i);g&&(e.isIdentifier(g)&&t(i,g.escapedText)||r(i))&&(g=o(m,e.visitNode(g,m.visitor),!1,g),i=s.factory.updateVariableDeclaration(i,i.name,void 0,void 0,g))}if(n(m,i,l,i,u),p){var h=s.factory.createTempVariable(void 0);if(d){var y=s.factory.inlineExpressions(p);p=void 0,k(h,y,void 0,void 0)}else{s.hoistVariableDeclaration(h);var v=e.last(_);v.pendingExpressions=e.append(v.pendingExpressions,s.factory.createAssignment(h,v.value)),e.addRange(v.pendingExpressions,p),v.value=h}}for(var b=0,E=_;b<E.length;b++){var x=E[b],D=x.pendingExpressions,S=x.name,T=(y=x.value,x.location),C=x.original,A=s.factory.createVariableDeclaration(S,void 0,void 0,D?s.factory.inlineExpressions(e.append(D,y)):y);A.original=C,e.setTextRange(A,T),f.push(A)}return f;function k(t,r,n,i){e.Debug.assertNode(t,e.isBindingName),p&&(r=s.factory.inlineExpressions(e.append(p,r)),p=void 0),_.push({pendingExpressions:p,name:t,value:r,location:n,original:i})}}})(p),(e=>{var t;function r(t){return t.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(t.text)}function n(t,r){var n=t.rawText;if(void 0===n){e.Debug.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),n=e.getSourceTextOfNodeFromSourceFile(r,t);var i=14===t.kind||17===t.kind;n=n.substring(1,n.length-(i?1:2))}return n=n.replace(/\r\n?/g,"\n"),e.setTextRange(e.factory.createStringLiteral(n),t)}!(e=>{e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All"})(t=e.ProcessLevel||(e.ProcessLevel={})),e.processTaggedTemplateExpression=(i,a,o,s,c,l)=>{var d=e.visitNode(a.tag,o,e.isExpression),u=[void 0],p=[],_=[],f=a.template;if(l===t.LiftRestriction&&!e.hasInvalidEscape(f))return e.visitEachChild(a,o,i);if(e.isNoSubstitutionTemplateLiteral(f))p.push(r(f)),_.push(n(f,s));else{p.push(r(f.head)),_.push(n(f.head,s));for(var m=0,g=f.templateSpans;m<g.length;m++){var h=g[m];p.push(r(h.literal)),_.push(n(h.literal,s)),u.push(e.visitNode(h.expression,o,e.isExpression))}}var y=i.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(p),e.factory.createArrayLiteralExpression(_));if(e.isExternalModule(s)){var v=e.factory.createUniqueName("templateObject");c(v),u[0]=e.factory.createLogicalOr(v,e.factory.createAssignment(v,y))}else u[0]=y;return e.factory.createCallExpression(d,void 0,u)}})(p),(e=>{var t,r;!(e=>{e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"})(t||(t={})),(e=>{e[e.None=0]="None",e[e.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",e[e.HasConstructorDecorators=2]="HasConstructorDecorators",e[e.HasMemberDecorators=4]="HasMemberDecorators",e[e.IsExportOfNamespace=8]="IsExportOfNamespace",e[e.IsNamedExternalExport=16]="IsNamedExternalExport",e[e.IsDefaultExternalExport=32]="IsDefaultExternalExport",e[e.IsDerivedClass=64]="IsDerivedClass",e[e.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",e[e.HasAnyDecorators=6]="HasAnyDecorators",e[e.NeedsName=5]="NeedsName",e[e.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",e[e.IsExported=56]="IsExported"})(r||(r={})),e.transformTypeScript=t=>{var r,n,i,a,o,s,c,l,d=t.factory,u=t.getEmitHelperFactory,p=t.startLexicalEnvironment,_=t.resumeLexicalEnvironment,m=t.endLexicalEnvironment,g=t.hoistVariableDeclaration,h=t.getEmitResolver(),y=t.getCompilerOptions(),v=e.getEmitScriptTarget(y),b=e.getEmitModuleKind(y),E=y.emitDecoratorMetadata?e.createRuntimeTypeSerializer(t):void 0,x=t.onEmitNode,D=t.onSubstituteNode;return t.onEmitNode=(t,n,i)=>{var a=l,o=r;e.isSourceFile(n)&&(r=n),2&c&&(t=>261===e.getOriginalNode(t).kind)(n)&&(l|=2),8&c&&(t=>260===e.getOriginalNode(t).kind)(n)&&(l|=8),x(t,n,i),l=a,r=o},t.onSubstituteNode=(t,r)=>(r=D(t,r),1===t?(t=>{switch(t.kind){case 79:return(e=>me(e)||e)(t);case 206:case 207:return(t=>(t=>{var r=(t=>{if(!y.isolatedModules)return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?h.getConstantValue(t):void 0})(t);if(void 0!==r){e.setConstantValue(t,r);var n="string"==typeof r?d.createStringLiteral(r):d.createNumericLiteral(r);if(!y.removeComments){var i=e.getOriginalNode(t,e.isAccessExpression);e.addSyntheticTrailingComment(n,3," ".concat(e.getTextOfNode(i).replace(/\*\//g,"*_/")," "))}return n}return t})(t))(t)}return t})(r):e.isShorthandPropertyAssignment(r)?(t=>{if(2&c){var r=t.name,n=me(r);if(n){if(t.objectAssignmentInitializer){var i=d.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(d.createPropertyAssignment(r,i),t)}return e.setTextRange(d.createPropertyAssignment(r,n),t)}}return t})(r):r),t.enableSubstitution(206),t.enableSubstitution(207),t=>306===t.kind?(t=>d.createBundle(t.sourceFiles.map(S),e.mapDefined(t.prepends,(t=>308===t.kind?e.createUnparsedSourceFile(t,"js"):t))))(t):S(t);function S(n){if(n.isDeclarationFile)return n;r=n;var i=T(n,M);return e.addEmitHelpers(i,t.readEmitHelpers()),r=void 0,i}function T(t,r){var n=a,i=o,c=s;!(t=>{switch(t.kind){case 305:case 263:case 262:case 235:a=t,o=void 0;break;case 257:case 256:if(e.hasSyntacticModifier(t,2))break;t.name?Y(t):e.Debug.assert(257===t.kind||e.hasSyntacticModifier(t,512))}})(t);var l=r(t);return a!==n&&(o=i),a=n,s=c,l}function C(e){return T(e,A)}function A(e){return 1&e.transformFlags?O(e):e}function k(e){return T(e,N)}function N(r){switch(r.kind){case 266:case 265:case 271:case 272:return(r=>{if(e.getParseTreeNode(r)!==r)return 1&r.transformFlags?e.visitEachChild(r,C,t):r;switch(r.kind){case 266:return(t=>{if(!t.importClause)return t;if(!t.importClause.isTypeOnly){var r=e.visitNode(t.importClause,re,e.isImportClause);return r||1===y.importsNotUsedAsValues||2===y.importsNotUsedAsValues?d.updateImportDeclaration(t,void 0,r,t.moduleSpecifier,t.assertClause):void 0}})(r);case 265:return oe(r);case 271:return(r=>h.isValueAliasDeclaration(r)?e.visitEachChild(r,C,t):void 0)(r);case 272:return(t=>{if(!t.isTypeOnly){if(!t.exportClause||e.isNamespaceExport(t.exportClause))return t;var r=!!t.moduleSpecifier&&(1===y.importsNotUsedAsValues||2===y.importsNotUsedAsValues),n=e.visitNode(t.exportClause,(t=>((t,r)=>e.isNamespaceExport(t)?(t=>d.updateNamespaceExport(t,e.visitNode(t.name,C,e.isIdentifier)))(t):((t,r)=>{var n=e.visitNodes(t.elements,ae,e.isExportSpecifier);return r||e.some(n)?d.updateNamedExports(t,n):void 0})(t,r))(t,r)),e.isNamedExportBindings);return n?d.updateExportDeclaration(t,void 0,t.isTypeOnly,n,t.moduleSpecifier,t.assertClause):void 0}})(r);default:e.Debug.fail("Unhandled ellided statement")}})(r);default:return A(r)}}function w(e){return T(e,F)}function F(t){if(272!==t.kind&&266!==t.kind&&267!==t.kind&&(265!==t.kind||277!==t.moduleReference.kind))return 1&t.transformFlags||e.hasSyntacticModifier(t,1)?O(t):t}function P(r){return n=>T(n,(n=>((r,n)=>{switch(r.kind){case 171:return(r=>{if(z(r))return d.updateConstructorDeclaration(r,void 0,e.visitParameterList(r.parameters,C,t),((r,n)=>{var i=n&&e.filter(n.parameters,(t=>e.isParameterPropertyDeclaration(t,n)));if(!e.some(i))return e.visitFunctionBody(r,C,t);var a=[];_();var o=d.copyPrologue(r.statements,a,!1,C),s=e.findSuperStatementIndex(r.statements,o);s>=0&&e.addRange(a,e.visitNodes(r.statements,C,e.isStatement,o,s+1-o));var c=e.mapDefined(i,H);s>=0?e.addRange(a,c):a=f(f(f([],a.slice(0,o),!0),c,!0),a.slice(o),!0);var l=s>=0?s+1:o;e.addRange(a,e.visitNodes(r.statements,C,e.isStatement,l)),a=d.mergeLexicalEnvironment(a,m());var u=d.createBlock(e.setTextRange(d.createNodeArray(a),r.statements),!0);return e.setTextRange(u,r),e.setOriginalNode(u,r),u})(r.body,r))})(r);case 167:return((t,r)=>{var n=16777216&t.flags||e.hasSyntacticModifier(t,128);if(!n||e.hasDecorators(t)){var i=U(t,r,e.getAllDecoratorsOfClassElement(t,r));return n?d.updatePropertyDeclaration(t,e.concatenate(i,d.createModifiersFromModifierFlags(2)),e.visitNode(t.name,C,e.isPropertyName),void 0,void 0,void 0):d.updatePropertyDeclaration(t,e.concatenate(i,e.visitNodes(t.modifiers,I,e.isModifierLike)),V(t),void 0,void 0,e.visitNode(t.initializer,C))}})(r,n);case 172:return J(r,n);case 173:return G(r,n);case 169:return W(r,n);case 170:return e.visitEachChild(r,C,t);case 234:return r;case 176:return;default:return e.Debug.failBadSyntaxKind(r)}})(n,r)))}function I(t){if(!e.isDecorator(t)&&!(116958&e.modifierToFlag(t.kind)||n&&93===t.kind))return t}function O(o){if(e.isStatement(o)&&e.hasSyntacticModifier(o,2))return d.createNotEmittedStatement(o);switch(o.kind){case 93:case 88:return n?void 0:o;case 123:case 121:case 122:case 126:case 159:case 85:case 135:case 145:case 101:case 144:case 183:case 184:case 185:case 186:case 182:case 177:case 163:case 130:case 155:case 133:case 150:case 147:case 143:case 114:case 151:case 180:case 179:case 181:case 178:case 187:case 188:case 189:case 191:case 192:case 193:case 194:case 195:case 196:case 176:return;case 259:return d.createNotEmittedStatement(o);case 264:return;case 258:return d.createNotEmittedStatement(o);case 257:return(i=>{if(!(L(i)||n&&e.hasSyntacticModifier(i,1)))return d.updateClassDeclaration(i,e.visitNodes(i.modifiers,I,e.isModifier),i.name,void 0,e.visitNodes(i.heritageClauses,C,e.isHeritageClause),e.visitNodes(i.members,P(i),e.isClassElement));var a=((t,r)=>{var n=0;e.some(r)&&(n|=1);var i=e.getEffectiveBaseTypeNode(t);return i&&104!==e.skipOuterExpressions(i.expression).kind&&(n|=64),e.classOrConstructorParameterIsDecorated(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),se(t)?n|=8:(t=>ce(t)&&e.hasSyntacticModifier(t,512))(t)?n|=32:le(t)&&(n|=16),v<=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=U(i,i,e.getAllDecoratorsOfClass(i)),c=128&a?e.elideNodes(d,i.modifiers):e.visitNodes(i.modifiers,I,e.isModifier),l=d.updateClassDeclaration(i,e.concatenate(s,c),o,void 0,e.visitNodes(i.heritageClauses,C,e.isHeritageClause),B(i)),u=e.getEmitFlags(i);1&a&&(u|=32),e.setEmitFlags(l,u);var p=[l];if(128&a){var _=e.createTokenRange(e.skipTrivia(r.text,i.members.end),19),f=d.getInternalName(i),m=d.createPartiallyEmittedExpression(f);e.setTextRangeEnd(m,_.end),e.setEmitFlags(m,1536);var g=d.createReturnStatement(m);e.setTextRangePos(g,_.pos),e.setEmitFlags(g,1920),p.push(g),e.insertStatementsAfterStandardPrologue(p,t.endLexicalEnvironment());var h=d.createImmediatelyInvokedArrowFunction(p);e.setEmitFlags(h,33554432);var y=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(d.getLocalName(i,!1,!1),void 0,void 0,h)]));e.setOriginalNode(y,i),e.setCommentRange(y,i),e.setSourceMapRange(y,e.moveRangePastDecorators(i)),e.startOnNewLine(y),p=[y]}return 8&a?de(p,i):(128&a||2&a)&&(32&a?p.push(d.createExportDefault(d.getLocalName(i,!1,!0))):16&a&&p.push(d.createExternalModuleExport(d.getLocalName(i,!1,!0)))),p.length>1&&(p.push(d.createEndOfDeclarationMarker(i)),e.setEmitFlags(l,4194304|e.getEmitFlags(l))),e.singleOrMany(p)})(o);case 226:return(t=>{var r=U(t,t,e.getAllDecoratorsOfClass(t));return d.updateClassExpression(t,r,t.name,void 0,e.visitNodes(t.heritageClauses,C,e.isHeritageClause),L(t)?B(t):e.visitNodes(t.members,P(t),e.isClassElement))})(o);case 291:return(r=>{if(117!==r.token)return e.visitEachChild(r,C,t)})(o);case 228:return(t=>d.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,C,e.isLeftHandSideExpression),void 0))(o);case 205:return(t=>{return d.updateObjectLiteralExpression(t,e.visitNodes(t.properties,(r=t,t=>T(t,(t=>((t,r)=>{switch(t.kind){case 296:case 297:case 298:return C(t);case 172:return J(t,r);case 173:return G(t,r);case 169:return W(t,r);default:return e.Debug.failBadSyntaxKind(t)}})(t,r)))),e.isObjectLiteralElement));var r})(o);case 171:case 167:case 169:case 172:case 173:case 170:return e.Debug.fail("Class and object literal elements must be visited with their respective visitors");case 256:return(r=>{if(!z(r))return d.createNotEmittedStatement(r);var n=d.updateFunctionDeclaration(r,e.visitNodes(r.modifiers,I,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,C,t),void 0,e.visitFunctionBody(r.body,C,t)||d.createBlock([]));if(se(r)){var i=[n];return de(i,r),i}return n})(o);case 213:return(r=>z(r)?d.updateFunctionExpression(r,e.visitNodes(r.modifiers,I,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,C,t),void 0,e.visitFunctionBody(r.body,C,t)||d.createBlock([])):d.createOmittedExpression())(o);case 214:return(r=>d.updateArrowFunction(r,e.visitNodes(r.modifiers,I,e.isModifier),void 0,e.visitParameterList(r.parameters,C,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,C,t)))(o);case 164:return(t=>{if(!e.parameterIsThisKeyword(t)){var r=d.updateParameterDeclaration(t,e.elideNodes(d,t.modifiers),t.dotDotDotToken,e.visitNode(t.name,C,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,C,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 212:return(r=>{var n=e.skipOuterExpressions(r.expression,-7);if(e.isAssertionExpression(n)){var i=e.visitNode(r.expression,C,e.isExpression);return d.createPartiallyEmittedExpression(i,r)}return e.visitEachChild(r,C,t)})(o);case 211:case 229:return(t=>{var r=e.visitNode(t.expression,C,e.isExpression);return d.createPartiallyEmittedExpression(r,t)})(o);case 208:return(t=>d.updateCallExpression(t,e.visitNode(t.expression,C,e.isExpression),void 0,e.visitNodes(t.arguments,C,e.isExpression)))(o);case 209:return(t=>d.updateNewExpression(t,e.visitNode(t.expression,C,e.isExpression),void 0,e.visitNodes(t.arguments,C,e.isExpression)))(o);case 210:return(t=>d.updateTaggedTemplateExpression(t,e.visitNode(t.tag,C,e.isExpression),void 0,e.visitNode(t.template,C,e.isExpression)))(o);case 230:return(t=>{var r=e.visitNode(t.expression,C,e.isLeftHandSideExpression);return d.createPartiallyEmittedExpression(r,t)})(o);case 260:return(t=>{if(!(t=>!e.isEnumConst(t)||e.shouldPreserveConstEnums(y))(t))return d.createNotEmittedStatement(t);var n=[],o=2,s=Z(n,t);s&&(b===e.ModuleKind.System&&a===r||(o|=512));var c=_e(t),l=fe(t),u=e.hasSyntacticModifier(t,1)?d.getExternalModuleOrNamespaceExportName(i,t,!1,!0):d.getLocalName(t,!1,!0),_=d.createLogicalOr(u,d.createAssignment(u,d.createObjectLiteralExpression()));if(X(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,c)],void 0,((t,r)=>{var n=i;i=r;var a=[];p();var o=e.map(t.members,q);return e.insertStatementsAfterStandardPrologue(a,m()),e.addRange(a,o),i=n,d.createBlock(e.setTextRange(d.createNodeArray(a),t.members),!0)})(t,l)),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 237:return(r=>{if(se(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(d.createExpressionStatement(d.inlineExpressions(e.map(n,$))),r)}return e.visitEachChild(r,C,t)})(o);case 254:return(t=>{var r=d.updateVariableDeclaration(t,e.visitNode(t.name,C,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,C,e.isExpression));return t.type&&e.setTypeNode(r.name,t.type),r})(o);case 261:return ee(o);case 265:return oe(o);case 279:return(t=>d.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,C,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,C,e.isJsxAttributes)))(o);case 280:return(t=>d.updateJsxOpeningElement(t,e.visitNode(t.tagName,C,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,C,e.isJsxAttributes)))(o);default:return e.visitEachChild(o,C,t)}}function M(r){var n=e.getStrictOptionValue(y,"alwaysStrict")&&!(e.isExternalModule(r)&&b>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return d.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,k,t,0,n))}function R(e){return!!(8192&e.transformFlags)}function L(t){return e.hasDecorators(t)||e.some(t.typeParameters)||e.some(t.heritageClauses,R)||e.some(t.members,R)}function B(t){var r=[],n=e.getFirstConstructorWithBody(t),i=n&&e.filter(n.parameters,(t=>e.isParameterPropertyDeclaration(t,n)));if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];e.isIdentifier(s.name)&&r.push(e.setOriginalNode(d.createPropertyDeclaration(void 0,s.name,void 0,void 0,void 0),s))}return e.addRange(r,e.visitNodes(t.members,P(t),e.isClassElement)),e.setTextRange(d.createNodeArray(r),t.members)}function U(t,r,n){var i,o,s,c;if(n){var l=e.visitArray(n.decorators,C,e.isDecorator),p=e.flatMap(n.parameters,j),_=e.some(l)||e.some(p)?((t,r)=>((t,r)=>{if(E){var n=void 0;if((e=>{var t=e.kind;return 169===t||172===t||173===t||167===t})(t)){var i=u().createMetadataHelper("design:type",E.serializeTypeOfNode({currentLexicalScope:a,currentNameScope:r},t));n=e.append(n,d.createDecorator(i))}if((t=>{switch(t.kind){case 257:case 226:return void 0!==e.getFirstConstructorWithBody(t);case 169:case 172:case 173:return!0}return!1})(t)){var o=u().createMetadataHelper("design:paramtypes",E.serializeParameterTypesOfNode({currentLexicalScope:a,currentNameScope:r},t,r));n=e.append(n,d.createDecorator(o))}if((e=>169===e.kind)(t)){var s=u().createMetadataHelper("design:returntype",E.serializeReturnTypeOfNode({currentLexicalScope:a,currentNameScope:r},t));n=e.append(n,d.createDecorator(s))}return n}})(t,r))(t,r):void 0,f=d.createNodeArray(e.concatenate(e.concatenate(l,p),_)),m=null!==(o=null===(i=e.firstOrUndefined(n.decorators))||void 0===i?void 0:i.pos)&&void 0!==o?o:-1,g=null!==(c=null===(s=e.lastOrUndefined(n.decorators))||void 0===s?void 0:s.end)&&void 0!==c?c:-1;return e.setTextRangePosEnd(f,m,g),f}}function j(t,r){if(t){for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=e.visitNode(o.expression,C,e.isExpression),c=u().createParamHelper(s,r);e.setTextRange(c,o.expression),e.setEmitFlags(c,1536);var l=d.createDecorator(c);e.setSourceMapRange(l,o.expression),e.setCommentRange(l,o.expression),e.setEmitFlags(l,1536),n.push(l)}return n}}function V(t){var r=t.name;if(e.isComputedPropertyName(r)&&(!e.hasStaticModifier(t)&&s||e.hasDecorators(t))){var n=e.visitNode(r.expression,C,e.isExpression),i=e.skipPartiallyEmittedExpressions(n);if(!e.isSimpleInlineableExpression(i)){var a=d.getGeneratedNameForNode(r);return g(a),d.updateComputedPropertyName(r,d.createAssignment(a,n))}}return e.visitNode(r,C,e.isPropertyName)}function z(t){return!e.nodeIsMissing(t.body)}function H(t){var r=t.name;if(e.isIdentifier(r)){var n=e.setParent(e.setTextRange(d.cloneNode(r),r),r.parent);e.setEmitFlags(n,1584);var i=e.setParent(e.setTextRange(d.cloneNode(r),r),r.parent);return e.setEmitFlags(i,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(d.createExpressionStatement(d.createAssignment(e.setTextRange(d.createPropertyAccessExpression(d.createThis(),n),t.name),i)),t),e.moveRangePos(t,-1))))}}function W(r,n){if(!(1&r.transformFlags))return r;if(z(r)){var i=e.isClassLike(n)?e.getAllDecoratorsOfClassElement(r,n):void 0,a=e.isClassLike(n)?U(r,n,i):void 0;return d.updateMethodDeclaration(r,e.concatenate(a,e.visitNodes(r.modifiers,I,e.isModifierLike)),r.asteriskToken,V(r),void 0,void 0,e.visitParameterList(r.parameters,C,t),void 0,e.visitFunctionBody(r.body,C,t))}}function K(t){return!(e.nodeIsMissing(t.body)&&e.hasSyntacticModifier(t,128))}function J(r,n){if(!(1&r.transformFlags))return r;if(K(r)){var i=e.isClassLike(n)?U(r,n,e.getAllDecoratorsOfClassElement(r,n)):void 0;return d.updateGetAccessorDeclaration(r,e.concatenate(i,e.visitNodes(r.modifiers,I,e.isModifierLike)),V(r),e.visitParameterList(r.parameters,C,t),void 0,e.visitFunctionBody(r.body,C,t)||d.createBlock([]))}}function G(r,n){if(!(1&r.transformFlags))return r;if(K(r)){var i=e.isClassLike(n)?U(r,n,e.getAllDecoratorsOfClassElement(r,n)):void 0;return d.updateSetAccessorDeclaration(r,e.concatenate(i,e.visitNodes(r.modifiers,I,e.isModifierLike)),V(r),e.visitParameterList(r.parameters,C,t),e.visitFunctionBody(r.body,C,t)||d.createBlock([]))}}function $(r){var n=r.name;return e.isBindingPattern(n)?e.flattenDestructuringAssignment(r,C,t,0,!1,ue):e.setTextRange(d.createAssignment(pe(n),e.visitNode(r.initializer,C,e.isExpression)),r)}function q(r){var n=((t,r)=>{var n=t.name;return e.isPrivateIdentifier(n)?d.createIdentifier(""):e.isComputedPropertyName(n)?n.expression:e.isIdentifier(n)?d.createStringLiteral(e.idText(n)):d.cloneNode(n)})(r),a=(r=>{var n=h.getConstantValue(r);return void 0!==n?"string"==typeof n?d.createStringLiteral(n):d.createNumericLiteral(n):(0==(8&c)&&(c|=8,t.enableSubstitution(79)),r.initializer?e.visitNode(r.initializer,C,e.isExpression):d.createVoidZero())})(r),o=d.createAssignment(d.createElementAccessExpression(i,n),a),s=10===a.kind?o:d.createAssignment(d.createElementAccessExpression(i,o),n);return e.setTextRange(d.createExpressionStatement(e.setTextRange(s,r)),r)}function X(t){return se(t)||ce(t)&&b!==e.ModuleKind.ES2015&&b!==e.ModuleKind.ES2020&&b!==e.ModuleKind.ES2022&&b!==e.ModuleKind.ESNext&&b!==e.ModuleKind.System}function Y(t){o||(o=new e.Map);var r=Q(t);o.has(r)||o.set(r,t)}function Q(t){return e.Debug.assertNode(t.name,e.isIdentifier),t.name.escapedText}function Z(t,r){var n=d.createVariableStatement(e.visitNodes(r.modifiers,I,e.isModifier),d.createVariableDeclarationList([d.createVariableDeclaration(d.getLocalName(r,!1,!0))],305===a.kind?0:1));if(e.setOriginalNode(n,r),Y(r),(e=>{if(o){var t=Q(e);return o.get(t)===e}return!0})(r))return 260===r.kind?e.setSourceMapRange(n.declarationList,r):e.setSourceMapRange(n,r),e.setCommentRange(n,r),e.addEmitFlags(n,4195328),t.push(n),!0;var i=d.createMergeDeclarationMarker(n);return e.setEmitFlags(i,4195840),t.push(i),!1}function ee(s){if(!(t=>{var r=e.getParseTreeNode(t,e.isModuleDeclaration);return!r||e.isInstantiatedModule(r,e.shouldPreserveConstEnums(y))})(s))return d.createNotEmittedStatement(s);e.Debug.assertNode(s.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&c)&&(c|=2,t.enableSubstitution(79),t.enableSubstitution(297),t.enableEmitNotification(261));var l=[],u=2,_=Z(l,s);_&&(b===e.ModuleKind.System&&a===r||(u|=512));var f=_e(s),g=fe(s),h=e.hasSyntacticModifier(s,1)?d.getExternalModuleOrNamespaceExportName(i,s,!1,!0):d.getLocalName(s,!1,!0),v=d.createLogicalOr(h,d.createAssignment(h,d.createObjectLiteralExpression()));if(X(s)){var E=d.getLocalName(s,!1,!0);v=d.createAssignment(E,v)}var x=d.createExpressionStatement(d.createCallExpression(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,f)],void 0,((t,r)=>{var a=i,s=n,c=o;i=r,n=t,o=void 0;var l,u,_=[];if(p(),t.body)if(262===t.body.kind)T(t.body,(t=>e.addRange(_,e.visitNodes(t.statements,w,e.isStatement)))),l=t.body.statements,u=t.body;else{var f=ee(t.body);f&&(e.isArray(f)?e.addRange(_,f):_.push(f));var g=te(t).body;l=e.moveRangePos(g.statements,-1)}e.insertStatementsAfterStandardPrologue(_,m()),i=a,n=s,o=c;var h=d.createBlock(e.setTextRange(d.createNodeArray(_),l),!0);return e.setTextRange(h,u),t.body&&262===t.body.kind||e.setEmitFlags(h,1536|e.getEmitFlags(h)),h})(s,g)),void 0,[v]));return e.setOriginalNode(x,s),_&&(e.setSyntheticLeadingComments(x,void 0),e.setSyntheticTrailingComments(x,void 0)),e.setTextRange(x,s),e.addEmitFlags(x,u),l.push(x),l.push(d.createEndOfDeclarationMarker(s)),l}function te(e){if(261===e.body.kind)return te(e.body)||e.body}function re(t){e.Debug.assert(!t.isTypeOnly);var r=ge(t)?t.name:void 0,n=e.visitNode(t.namedBindings,ne,e.isNamedImportBindings);return r||n?d.updateImportClause(t,!1,r,n):void 0}function ne(t){if(268===t.kind)return ge(t)?t:void 0;var r=y.preserveValueImports&&(1===y.importsNotUsedAsValues||2===y.importsNotUsedAsValues),n=e.visitNodes(t.elements,ie,e.isImportSpecifier);return r||e.some(n)?d.updateNamedImports(t,n):void 0}function ie(e){return!e.isTypeOnly&&ge(e)?e:void 0}function ae(e){return!e.isTypeOnly&&h.isValueAliasDeclaration(e)?e:void 0}function oe(n){if(!n.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(n)){var a=ge(n);return a||1!==y.importsNotUsedAsValues?a?e.visitEachChild(n,C,t):void 0:e.setOriginalNode(e.setTextRange(d.createImportDeclaration(void 0,void 0,n.moduleReference.expression,void 0),n),n)}if((t=>ge(t)||!e.isExternalModule(r)&&h.isTopLevelValueImportEqualsWithEntityName(t))(n)){var o,s,c,l=e.createExpressionFromEntityName(d,n.moduleReference);return e.setEmitFlags(l,3584),le(n)||!se(n)?e.setOriginalNode(e.setTextRange(d.createVariableStatement(e.visitNodes(n.modifiers,I,e.isModifier),d.createVariableDeclarationList([e.setOriginalNode(d.createVariableDeclaration(n.name,void 0,void 0,l),n)])),n),n):e.setOriginalNode((o=n.name,s=l,c=n,e.setTextRange(d.createExpressionStatement(d.createAssignment(d.getNamespaceMemberName(i,o,!1,!0),s)),c)),n)}}}function se(t){return void 0!==n&&e.hasSyntacticModifier(t,1)}function ce(t){return void 0===n&&e.hasSyntacticModifier(t,1)}function le(t){return ce(t)&&!e.hasSyntacticModifier(t,512)}function de(t,r){var n=d.createAssignment(d.getExternalModuleOrNamespaceExportName(i,r,!1,!0),d.getLocalName(r));e.setSourceMapRange(n,e.createRange(r.name?r.name.pos:r.pos,r.end));var a=d.createExpressionStatement(n);e.setSourceMapRange(a,e.createRange(-1,r.end)),t.push(a)}function ue(t,r,n){return e.setTextRange(d.createAssignment(pe(t),r),n)}function pe(e){return d.getNamespaceMemberName(i,e,!1,!0)}function _e(t){var r=d.getGeneratedNameForNode(t);return e.setSourceMapRange(r,t.name),r}function fe(e){return d.getGeneratedNameForNode(e)}function me(t){if(c&l&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=h.getReferencedExportContainer(t,!1);if(r&&305!==r.kind&&(2&l&&261===r.kind||8&l&&260===r.kind))return e.setTextRange(d.createPropertyAccessExpression(d.getGeneratedNameForNode(r),t),t)}}function ge(e){return y.preserveValueImports?h.isValueAliasDeclaration(e):h.isReferencedAliasDeclaration(e)}}})(p),(e=>{var t,r,n;!(e=>{e[e.ClassAliases=1]="ClassAliases",e[e.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"})(t||(t={})),(n=e.PrivateIdentifierKind||(e.PrivateIdentifierKind={})).Field="f",n.Method="m",n.Accessor="a",(e=>{e[e.None=0]="None",e[e.ClassWasDecorated=1]="ClassWasDecorated",e[e.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",e[e.NeedsClassSuperReference=4]="NeedsClassSuperReference",e[e.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"})(r||(r={})),e.transformClassFields=t=>{var r=t.factory,n=t.hoistVariableDeclaration,i=t.endLexicalEnvironment,a=t.startLexicalEnvironment,o=t.resumeLexicalEnvironment,s=t.addBlockScopedVariable,c=t.getEmitResolver(),l=t.getCompilerOptions(),d=e.getEmitScriptTarget(l),u=e.getUseDefineForClassFields(l),p=d<9,_=d<9,m=_&&d>=2,g=t.onSubstituteNode;t.onSubstituteNode=(t,n)=>(n=g(t,n),1===t?(t=>{switch(t.kind){case 79:return(t=>(t=>{if(1&h&&33554432&c.getNodeCheckFlags(t)){var n=c.getReferencedValueDeclaration(t);if(n){var i=y[n.id];if(i){var a=r.cloneNode(i);return e.setSourceMapRange(a,t),e.setCommentRange(a,t),a}}}})(t)||t)(t);case 108:return(t=>{if(2&h&&x){var n=x.facts,i=x.classConstructor;if(1&n)return r.createParenthesizedExpression(r.createVoidZero());if(i)return e.setTextRange(e.setOriginalNode(r.cloneNode(i),t),t)}return t})(t)}return t})(n):n);var h,y,v,b,E=t.onEmitNode;t.onEmitNode=(t,r,n)=>{var i=e.getOriginalNode(r);if(i.id){var a=C.get(i.id);if(a){var o=x,s=D;return x=a,D=a,E(t,r,n),x=o,void(D=s)}}switch(r.kind){case 213:if(e.isArrowFunction(i)||262144&e.getEmitFlags(r))break;case 256:case 171:return o=x,s=D,x=void 0,D=void 0,E(t,r,n),x=o,void(D=s);case 172:case 173:case 169:case 167:return o=x,s=D,D=x,x=void 0,E(t,r,n),x=o,void(D=s);case 162:return o=x,s=D,x=D,D=void 0,E(t,r,n),x=o,void(D=s)}E(t,r,n)};var x,D,S,T=[],C=new e.Map;return e.chainBundle(t,(r=>{var n=t.getCompilerOptions();if(r.isDeclarationFile||u&&e.getEmitScriptTarget(n)>=9)return r;var i=e.visitEachChild(r,N,t);return e.addEmitHelpers(i,t.readEmitHelpers()),i}));function A(i,a){if(16777216&i.transformFlags)switch(i.kind){case 226:case 257:return(i=>{if(!e.forEach(i.members,U))return e.visitEachChild(i,N,t);var a=v;if(v=void 0,T.push(x),x=void 0,p){var o=e.getNameOfDeclaration(i);o&&e.isIdentifier(o)&&(X().className=e.idText(o));var l=j(i);e.some(l)&&(X().weakSetName=Z("instances",l[0].name))}var d=e.isClassDeclaration(i)?(t=>{var i,a=V(t);if(a&&(q().facts=a),8&a&&G(),2&a){var o=r.createTempVariable(n,!0);q().classConstructor=r.cloneNode(o),i=r.createAssignment(o,r.getInternalName(t))}var s=e.getEffectiveBaseTypeNode(t),c=!(!s||104===e.skipOuterExpressions(s.expression).kind),l=[r.updateClassDeclaration(t,t.modifiers,t.name,void 0,e.visitNodes(t.heritageClauses,w,e.isHeritageClause),z(t,c))];i&&Y().unshift(i),e.some(v)&&l.push(r.createExpressionStatement(r.inlineExpressions(v)));var d=e.getStaticPropertiesAndClassStaticBlock(t);return e.some(d)&&W(l,d,r.getInternalName(t)),l})(i):(i=>{var a=V(i);a&&(q().facts=a),8&a&&G();var o,l=!!(1&a),d=e.getStaticPropertiesAndClassStaticBlock(i),u=e.getEffectiveBaseTypeNode(i),_=!(!u||104===e.skipOuterExpressions(u.expression).kind),f=16777216&c.getNodeCheckFlags(i);function m(){var e=c.getNodeCheckFlags(i),t=16777216&e,a=524288&e;return r.createTempVariable(a?s:n,!!t)}2&a&&(o=m(),q().classConstructor=r.cloneNode(o));var g=r.updateClassExpression(i,e.visitNodes(i.modifiers,N,e.isModifierLike),i.name,void 0,e.visitNodes(i.heritageClauses,w,e.isHeritageClause),z(i,_));if(p&&e.some(d,(t=>e.isClassStaticBlockDeclaration(t)||!!t.initializer||e.isPrivateIdentifier(t.name)))||e.some(v)){if(l)return e.Debug.assertIsDefined(b,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),b&&v&&e.some(v)&&b.push(r.createExpressionStatement(r.inlineExpressions(v))),b&&e.some(d)&&W(b,d,r.getInternalName(i)),o?r.inlineExpressions([r.createAssignment(o,g),o]):g;var E=[];if(o||(o=m()),f){0==(1&h)&&(h|=1,t.enableSubstitution(79),y=[]);var x=r.cloneNode(o);x.autoGenerateFlags&=-9,y[e.getOriginalNodeId(i)]=x}return e.setEmitFlags(g,65536|e.getEmitFlags(g)),E.push(e.startOnNewLine(r.createAssignment(o,g))),e.addRange(E,e.map(v,e.startOnNewLine)),e.addRange(E,((t,r)=>{for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=e.isClassStaticBlockDeclaration(o)?L(o):J(o,r);s&&(e.startOnNewLine(s),e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),n.push(s))}return n})(d,o)),E.push(e.startOnNewLine(o)),r.inlineExpressions(E)}return g})(i);return x=T.pop(),v=a,d})(i);case 167:return I(i);case 237:return(r=>{var n=b;b=[];var i=e.visitEachChild(r,N,t),a=e.some(b)?f([i],b,!0):i;return b=n,a})(i);case 80:return(t=>p?e.isStatement(t.parent)?t:e.setOriginalNode(r.createIdentifier(""),t):t)(i);case 170:return(r=>{if(!p)return e.visitEachChild(r,P,t)})(i)}if(16777216&i.transformFlags||134217728&i.transformFlags&&m&&S&&x)switch(i.kind){case 219:case 220:return((i,a)=>{if(45===i.operator||46===i.operator){var o,s=e.skipParentheses(i.operand);if(p&&e.isPrivateIdentifierPropertyAccessExpression(s)){if(o=te(s.name)){var c=R(e.visitNode(s.expression,N,e.isExpression)),l=c.readExpression,d=c.initializeExpression,u=O(o,l),_=e.isPrefixUnaryExpression(i)||a?void 0:r.createTempVariable(n);return u=B(o,d||l,u=e.expandPreOrPostfixIncrementOrDecrementExpression(r,i,u,n,_),63),e.setOriginalNode(u,i),e.setTextRange(u,i),_&&(u=r.createComma(u,_),e.setTextRange(u,i)),u}}else if(m&&e.isSuperProperty(s)&&S&&x){var f=x.classConstructor,g=x.superClassReference;if(1&x.facts)return u=$(s),e.isPrefixUnaryExpression(i)?r.updatePrefixUnaryExpression(i,u):r.updatePostfixUnaryExpression(i,u);if(f&&g){var h=void 0,y=void 0;if(e.isPropertyAccessExpression(s)?e.isIdentifier(s.name)&&(y=h=r.createStringLiteralFromNode(s.name)):e.isSimpleInlineableExpression(s.argumentExpression)?y=h=s.argumentExpression:(y=r.createTempVariable(n),h=r.createAssignment(y,e.visitNode(s.argumentExpression,N,e.isExpression))),h&&y)return u=r.createReflectGetCall(g,y,f),e.setTextRange(u,s),_=a?void 0:r.createTempVariable(n),u=e.expandPreOrPostfixIncrementOrDecrementExpression(r,i,u,n,_),u=r.createReflectSetCall(g,h,u,f),e.setOriginalNode(u,i),e.setTextRange(u,i),_&&(u=r.createComma(u,_),e.setTextRange(u,i)),u}}}return e.visitEachChild(i,N,t)})(i,a);case 221:return((i,a)=>{if(e.isDestructuringAssignment(i)){var o=v;v=void 0,i=r.updateBinaryExpression(i,e.visitNode(i.left,F),i.operatorToken,e.visitNode(i.right,N));var s=e.some(v)?r.inlineExpressions(e.compact(f(f([],v,!0),[i],!1))):i;return v=o,s}if(e.isAssignmentExpression(i))if(p&&e.isPrivateIdentifierPropertyAccessExpression(i.left)){var c=te(i.left.name);if(c)return e.setTextRange(e.setOriginalNode(B(c,i.left.expression,i.right,i.operatorToken.kind),i),i)}else if(m&&e.isSuperProperty(i.left)&&S&&x){var l=x.classConstructor,d=x.superClassReference;if(1&x.facts)return r.updateBinaryExpression(i,$(i.left),i.operatorToken,e.visitNode(i.right,N,e.isExpression));if(l&&d){var u=e.isElementAccessExpression(i.left)?e.visitNode(i.left.argumentExpression,N,e.isExpression):e.isIdentifier(i.left.name)?r.createStringLiteralFromNode(i.left.name):void 0;if(u){var _=e.visitNode(i.right,N,e.isExpression);if(e.isCompoundAssignment(i.operatorToken.kind)){var g=u;e.isSimpleInlineableExpression(u)||(g=r.createTempVariable(n),u=r.createAssignment(g,u));var h=r.createReflectGetCall(d,g,l);e.setOriginalNode(h,i.left),e.setTextRange(h,i.left),_=r.createBinaryExpression(h,e.getNonAssignmentOperatorForCompoundAssignment(i.operatorToken.kind),_),e.setTextRange(_,i)}var y=a?void 0:r.createTempVariable(n);return y&&(_=r.createAssignment(y,_),e.setTextRange(y,i)),_=r.createReflectSetCall(d,u,_,l),e.setOriginalNode(_,i),e.setTextRange(_,i),y&&(_=r.createComma(_,y),e.setTextRange(_,i)),_}}}return 101===i.operatorToken.kind&&e.isPrivateIdentifier(i.left)?(r=>{if(!p)return r;var n=r.left;e.Debug.assertNode(n,e.isPrivateIdentifier),e.Debug.assert(101===r.operatorToken.kind);var i=te(n);if(i){var a=e.visitNode(r.right,N,e.isExpression);return e.setOriginalNode(t.getEmitHelperFactory().createClassPrivateFieldInHelper(i.brandCheckIdentifier,a),r)}return e.visitEachChild(r,N,t)})(i):e.visitEachChild(i,N,t)})(i,a);case 208:return(i=>{if(p&&e.isPrivateIdentifierPropertyAccessExpression(i.expression)){var a=r.createCallBinding(i.expression,n,d),o=a.thisArg,s=a.target;return e.isCallChain(i)?r.updateCallChain(i,r.createPropertyAccessChain(e.visitNode(s,N),i.questionDotToken,"call"),void 0,void 0,f([e.visitNode(o,N,e.isExpression)],e.visitNodes(i.arguments,N,e.isExpression),!0)):r.updateCallExpression(i,r.createPropertyAccessExpression(e.visitNode(s,N),"call"),void 0,f([e.visitNode(o,N,e.isExpression)],e.visitNodes(i.arguments,N,e.isExpression),!0))}if(m&&e.isSuperProperty(i.expression)&&S&&(null==x?void 0:x.classConstructor)){var c=r.createFunctionCallCall(e.visitNode(i.expression,N,e.isExpression),x.classConstructor,e.visitNodes(i.arguments,N,e.isExpression));return e.setOriginalNode(c,i),e.setTextRange(c,i),c}return e.visitEachChild(i,N,t)})(i);case 210:return(i=>{if(p&&e.isPrivateIdentifierPropertyAccessExpression(i.tag)){var a=r.createCallBinding(i.tag,n,d),o=a.thisArg,s=a.target;return r.updateTaggedTemplateExpression(i,r.createCallExpression(r.createPropertyAccessExpression(e.visitNode(s,N),"bind"),void 0,[e.visitNode(o,N,e.isExpression)]),void 0,e.visitNode(i.template,N,e.isTemplateLiteral))}if(m&&e.isSuperProperty(i.tag)&&S&&(null==x?void 0:x.classConstructor)){var c=r.createFunctionBindCall(e.visitNode(i.tag,N,e.isExpression),x.classConstructor,[]);return e.setOriginalNode(c,i),e.setTextRange(c,i),r.updateTaggedTemplateExpression(i,c,void 0,e.visitNode(i.template,N,e.isTemplateLiteral))}return e.visitEachChild(i,N,t)})(i);case 206:return(n=>{if(p&&e.isPrivateIdentifier(n.name)){var i=te(n.name);if(i)return e.setTextRange(e.setOriginalNode(O(i,n.expression),n),n)}if(m&&e.isSuperProperty(n)&&e.isIdentifier(n.name)&&S&&x){var a=x.classConstructor,o=x.superClassReference;if(1&x.facts)return $(n);if(a&&o){var s=r.createReflectGetCall(o,r.createStringLiteralFromNode(n.name),a);return e.setOriginalNode(s,n.expression),e.setTextRange(s,n.expression),s}}return e.visitEachChild(n,N,t)})(i);case 207:return(n=>{if(m&&e.isSuperProperty(n)&&S&&x){var i=x.classConstructor,a=x.superClassReference;if(1&x.facts)return $(n);if(i&&a){var o=r.createReflectGetCall(a,e.visitNode(n.argumentExpression,N,e.isExpression),i);return e.setOriginalNode(o,n.expression),e.setTextRange(o,n.expression),o}}return e.visitEachChild(n,N,t)})(i);case 238:return(t=>r.updateExpressionStatement(t,e.visitNode(t.expression,k,e.isExpression)))(i);case 242:return(n=>r.updateForStatement(n,e.visitNode(n.initializer,k,e.isForInitializer),e.visitNode(n.condition,N,e.isExpression),e.visitNode(n.incrementor,k,e.isExpression),e.visitIterationBody(n.statement,N,t)))(i);case 256:case 213:case 171:case 169:case 172:case 173:var o=S;S=void 0;var l=e.visitEachChild(i,N,t);return S=o,l}return e.visitEachChild(i,N,t)}function k(e){return A(e,!0)}function N(e){return A(e,!1)}function w(i){switch(i.kind){case 291:return e.visitEachChild(i,w,t);case 228:return(i=>{if(4&((null==x?void 0:x.facts)||0)){var a=r.createTempVariable(n,!0);return q().superClassReference=a,r.updateExpressionWithTypeArguments(i,r.createAssignment(a,e.visitNode(i.expression,N,e.isExpression)),void 0)}return e.visitEachChild(i,N,t)})(i)}return N(i)}function F(t){switch(t.kind){case 205:case 204:return(t=>e.isArrayLiteralExpression(t)?r.updateArrayLiteralExpression(t,e.visitNodes(t.elements,ne,e.isExpression)):r.updateObjectLiteralExpression(t,e.visitNodes(t.properties,ie,e.isObjectLiteralElementLike)))(t);default:return N(t)}}function P(n){switch(n.kind){case 171:return;case 172:case 173:case 169:return(n=>{if(e.Debug.assert(!e.hasDecorators(n)),!p||!e.isPrivateIdentifier(n.name))return e.visitEachChild(n,P,t);var i=te(n.name);if(e.Debug.assert(i,"Undeclared private name for property declaration."),!i.isValid)return n;var a=(t=>{e.Debug.assert(e.isPrivateIdentifier(t.name));var r=te(t.name);if(e.Debug.assert(r,"Undeclared private name for property declaration."),"m"===r.kind)return r.methodName;if("a"===r.kind){if(e.isGetAccessor(t))return r.getterName;if(e.isSetAccessor(t))return r.setterName}})(n);a&&Y().push(r.createAssignment(a,r.createFunctionExpression(e.filter(n.modifiers,(t=>e.isModifier(t)&&!e.isStaticModifier(t))),n.asteriskToken,a,void 0,e.visitParameterList(n.parameters,P,t),void 0,e.visitFunctionBody(n.body,P,t))))})(n);case 167:return I(n);case 162:return(n=>{var i=e.visitEachChild(n,N,t);if(e.some(v)){var a=v;a.push(i.expression),v=[],i=r.updateComputedPropertyName(i,r.inlineExpressions(a))}return i})(n);case 234:return n;default:return N(n)}}function I(i){if(e.Debug.assert(!e.hasDecorators(i)),e.isPrivateIdentifier(i.name)){if(!p)return e.isStatic(i)?e.visitEachChild(i,N,t):r.updatePropertyDeclaration(i,e.visitNodes(i.modifiers,N,e.isModifierLike),i.name,void 0,void 0,void 0);var a=te(i.name);if(e.Debug.assert(a,"Undeclared private name for property declaration."),!a.isValid)return i}var o=((t,i)=>{if(e.isComputedPropertyName(t)){var a=e.visitNode(t.expression,N,e.isExpression),o=e.skipPartiallyEmittedExpressions(a),l=e.isSimpleInlineableExpression(o);if((!e.isAssignmentExpression(o)||!e.isGeneratedIdentifier(o.left))&&!l&&i){var d=r.getGeneratedNameForNode(t);return 524288&c.getNodeCheckFlags(t)?s(d):n(d),r.createAssignment(d,a)}return l||e.isIdentifier(o)?void 0:a}})(i.name,!!i.initializer||u);if(o&&!e.isSimpleInlineableExpression(o)&&Y().push(o),e.isStatic(i)&&!p&&!u){var l=K(i,r.createThis());if(l){var d=r.createClassStaticBlockDeclaration(r.createBlock([l]));return e.setOriginalNode(d,i),e.setCommentRange(d,i),e.setCommentRange(l,{pos:-1,end:-1}),e.setSyntheticLeadingComments(l,void 0),e.setSyntheticTrailingComments(l,void 0),d}}}function O(t,r){return M(t,e.visitNode(r,N,e.isExpression))}function M(r,n){switch(e.setCommentRange(n,e.moveRangePos(n,-1)),r.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.getterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.methodName);case"f":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.variableName);default:e.Debug.assertNever(r,"Unknown private element type")}}function R(t){var i=e.nodeIsSynthesized(t)?t:r.cloneNode(t);if(e.isSimpleInlineableExpression(t))return{readExpression:i,initializeExpression:void 0};var a=r.createTempVariable(n);return{readExpression:a,initializeExpression:r.createAssignment(a,i)}}function L(t){if(p){x&&C.set(e.getOriginalNodeId(t),x),a();var n=S;S=t;var o=e.visitNodes(t.body.statements,N,e.isStatement);o=r.mergeLexicalEnvironment(o,i()),S=n;var s=r.createImmediatelyInvokedArrowFunction(o);return e.setOriginalNode(s,t),e.setTextRange(s,t),e.addEmitFlags(s,2),s}}function B(n,i,a,o){if(i=e.visitNode(i,N,e.isExpression),a=e.visitNode(a,N,e.isExpression),e.isCompoundAssignment(o)){var s=R(i),c=s.readExpression;i=s.initializeExpression||c,a=r.createBinaryExpression(M(n,c),e.getNonAssignmentOperatorForCompoundAssignment(o),a)}switch(e.setCommentRange(i,e.moveRangePos(i,-1)),n.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.setterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,void 0);case"f":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.variableName);default:e.Debug.assertNever(n,"Unknown private element type")}}function U(t){return e.isPropertyDeclaration(t)||e.isClassStaticBlockDeclaration(t)||p&&t.name&&e.isPrivateIdentifier(t.name)}function j(t){return e.filter(t.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function V(t){var r=0,n=e.getOriginalNode(t);e.isClassDeclaration(n)&&e.classOrConstructorParameterIsDecorated(n)&&(r|=1);for(var i=0,a=t.members;i<a.length;i++){var o=a[i];e.isStatic(o)&&(o.name&&e.isPrivateIdentifier(o.name)&&p&&(r|=2),(e.isPropertyDeclaration(o)||e.isClassStaticBlockDeclaration(o))&&(_&&16384&o.transformFlags&&(1&(r|=8)||(r|=2)),m&&134217728&o.transformFlags&&(1&r||(r|=6))))}return r}function z(n,a){var s,c=[];if(p){for(var l=0,d=n.members;l<d.length;l++){var _=d[l];e.isPrivateIdentifierClassElementDeclaration(_)&&Q(_)}e.some(j(n))&&(s=X().weakSetName,e.Debug.assert(s,"weakSetName should be set in private identifier environment"),Y().push(r.createAssignment(s,r.createNewExpression(r.createIdentifier("WeakSet"),void 0,[]))))}var m=((n,a)=>{var s=e.visitNode(e.getFirstConstructorWithBody(n),N,e.isConstructorDeclaration),c=n.members.filter(H);if(!e.some(c))return s;var l=e.visitParameterList(s?s.parameters:void 0,N,t),d=((n,a,s)=>{var c,l=e.getProperties(n,!1,!1);u||(l=e.filter(l,(t=>!!t.initializer||e.isPrivateIdentifier(t.name))));var d=j(n),_=e.some(l)||e.some(d);if(!a&&!_)return e.visitFunctionBody(void 0,N,t);o();var m=!a&&s,g=0,h=0,y=-1,v=[];(null===(c=null==a?void 0:a.body)||void 0===c?void 0:c.statements)&&(h=r.copyPrologue(a.body.statements,v,!1,N),(y=e.findSuperStatementIndex(a.body.statements,h))>=0?(g=y+1,v=f(f(f([],v.slice(0,h),!0),e.visitNodes(a.body.statements,N,e.isStatement,h,g-h),!0),v.slice(h),!0)):h>=0&&(g=h)),m&&v.push(r.createExpressionStatement(r.createCallExpression(r.createSuper(),void 0,[r.createSpreadElement(r.createIdentifier("arguments"))])));var b=0;if(null==a?void 0:a.body)if(u)v=v.filter((t=>!e.isParameterPropertyDeclaration(e.getOriginalNode(t),a)));else{for(var E=0,x=a.body.statements;E<x.length;E++){var D=x[E];e.isParameterPropertyDeclaration(e.getOriginalNode(D),a)&&b++}if(b>0){var S=e.visitNodes(a.body.statements,N,e.isStatement,g,b);if(y>=0)e.addRange(v,S);else{var T=h;m&&T++,v=f(f(f([],v.slice(0,T),!0),S,!0),v.slice(T),!0)}g+=b}}var C=r.createThis();return((t,n,i)=>{if(p&&e.some(n)){var a=X().weakSetName;e.Debug.assert(a,"weakSetName should be set in private identifier environment"),t.push(r.createExpressionStatement(((t,r)=>e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"add"),void 0,[t]))(i,a)))}})(v,d,C),W(v,l,C),a&&e.addRange(v,e.visitNodes(a.body.statements,(t=>{if(!u||!e.isParameterPropertyDeclaration(e.getOriginalNode(t),a))return N(t)}),e.isStatement,g)),v=r.mergeLexicalEnvironment(v,i()),e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(v),a?a.body.statements:n.members),!0),a?a.body:void 0)})(n,s,a);return d?e.startOnNewLine(e.setOriginalNode(e.setTextRange(r.createConstructorDeclaration(void 0,null!=l?l:[],d),s||n),s)):void 0})(n,a),g=e.visitNodes(n.members,P,e.isClassElement);return m&&c.push(m),!p&&e.some(v)&&(c.push(r.createClassStaticBlockDeclaration(r.createBlock([r.createExpressionStatement(r.inlineExpressions(v))]))),v=void 0),e.addRange(c,g),e.setTextRange(r.createNodeArray(c),n.members)}function H(t){return!e.isStatic(t)&&!e.hasSyntacticModifier(e.getOriginalNode(t),128)&&(u?d<9:e.isInitializedProperty(t)||p&&e.isPrivateIdentifierClassElementDeclaration(t))}function W(t,r,n){for(var i=0,a=r;i<a.length;i++){var o=a[i];if(!e.isStatic(o)||p||u){var s=K(o,n);s&&t.push(s)}}}function K(t,n){var i=e.isClassStaticBlockDeclaration(t)?L(t):J(t,n);if(i){var a=r.createExpressionStatement(i);return e.setSourceMapRange(a,e.moveRangePastModifiers(t)),e.setCommentRange(a,t),e.setOriginalNode(a,t),e.setSyntheticLeadingComments(i,void 0),e.setSyntheticTrailingComments(i,void 0),a}}function J(t,n){var i=S,a=((t,n)=>{var i,a=!u,o=e.isComputedPropertyName(t.name)&&!e.isSimpleInlineableExpression(t.name.expression)?r.updateComputedPropertyName(t.name,r.getGeneratedNameForNode(t.name)):t.name;if(e.hasStaticModifier(t)&&(S=t),p&&e.isPrivateIdentifier(o)){var s=te(o);if(s)return"f"===s.kind?s.isStatic?((t,r)=>e.factory.createAssignment(t,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",r||e.factory.createVoidZero())])))(s.variableName,e.visitNode(t.initializer,N,e.isExpression)):((t,r,n)=>e.factory.createCallExpression(e.factory.createPropertyAccessExpression(n,"set"),void 0,[t,r||e.factory.createVoidZero()]))(n,e.visitNode(t.initializer,N,e.isExpression),s.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if(!e.isPrivateIdentifier(o)&&!e.hasStaticModifier(t)||t.initializer){var c=e.getOriginalNode(t);if(!e.hasSyntacticModifier(c,128)){var l=t.initializer||a?null!==(i=e.visitNode(t.initializer,N,e.isExpression))&&void 0!==i?i:r.createVoidZero():e.isParameterPropertyDeclaration(c,c.parent)&&e.isIdentifier(o)?o:r.createVoidZero();if(a||e.isPrivateIdentifier(o)){var d=e.createMemberAccessForPropertyName(r,n,o,o);return r.createAssignment(d,l)}var _=e.isComputedPropertyName(o)?o.expression:e.isIdentifier(o)?r.createStringLiteral(e.unescapeLeadingUnderscores(o.escapedText)):o,f=r.createPropertyDescriptor({value:l,configurable:!0,writable:!0,enumerable:!0});return r.createObjectDefinePropertyCall(n,_,f)}}})(t,n);return a&&e.hasStaticModifier(t)&&(null==x?void 0:x.facts)&&(e.setOriginalNode(a,t),e.addEmitFlags(a,2),C.set(e.getOriginalNodeId(a),x)),S=i,a}function G(){0==(2&h)&&(h|=2,t.enableSubstitution(108),t.enableEmitNotification(256),t.enableEmitNotification(213),t.enableEmitNotification(171),t.enableEmitNotification(172),t.enableEmitNotification(173),t.enableEmitNotification(169),t.enableEmitNotification(167),t.enableEmitNotification(162))}function $(t){return e.isPropertyAccessExpression(t)?r.updatePropertyAccessExpression(t,r.createVoidZero(),t.name):r.updateElementAccessExpression(t,r.createVoidZero(),e.visitNode(t.argumentExpression,N,e.isExpression))}function q(){return x||(x={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function X(){var t=q();return t.privateIdentifierEnvironment||(t.privateIdentifierEnvironment={className:"",identifiers:new e.Map}),t.privateIdentifierEnvironment}function Y(){return v||(v=[])}function Q(t){var n,i=e.getTextOfPropertyName(t.name),a=q().classConstructor,o=X(),s=o.weakSetName,c=[],l=t.name.escapedText,d=o.identifiers.get(l),u=!(e=>"#constructor"===e.escapedText)(t.name)&&void 0===d;if(e.hasStaticModifier(t))if(e.Debug.assert(a,"weakSetName should be set in private identifier environment"),e.isPropertyDeclaration(t)){var p=ee(i,t);o.identifiers.set(l,{kind:"f",variableName:p,brandCheckIdentifier:a,isStatic:!0,isValid:u})}else if(e.isMethodDeclaration(t)){var _=ee(i,t);o.identifiers.set(l,{kind:"m",methodName:_,brandCheckIdentifier:a,isStatic:!0,isValid:u})}else if(e.isGetAccessorDeclaration(t)){var f=ee(i+"_get",t);"a"===(null==d?void 0:d.kind)&&d.isStatic&&!d.getterName?d.getterName=f:o.identifiers.set(l,{kind:"a",getterName:f,setterName:void 0,brandCheckIdentifier:a,isStatic:!0,isValid:u})}else if(e.isSetAccessorDeclaration(t)){var m=ee(i+"_set",t);"a"===(null==d?void 0:d.kind)&&d.isStatic&&!d.setterName?d.setterName=m:o.identifiers.set(l,{kind:"a",getterName:void 0,setterName:m,brandCheckIdentifier:a,isStatic:!0,isValid:u})}else e.Debug.assertNever(t,"Unknown class element type.");else if(e.isPropertyDeclaration(t)){var g=ee(i,t);o.identifiers.set(l,{kind:"f",brandCheckIdentifier:g,isStatic:!1,variableName:void 0,isValid:u}),c.push(r.createAssignment(g,r.createNewExpression(r.createIdentifier("WeakMap"),void 0,[])))}else e.isMethodDeclaration(t)?(e.Debug.assert(s,"weakSetName should be set in private identifier environment"),o.identifiers.set(l,{kind:"m",methodName:ee(i,t),brandCheckIdentifier:s,isStatic:!1,isValid:u})):e.isAccessor(t)?(e.Debug.assert(s,"weakSetName should be set in private identifier environment"),e.isGetAccessor(t)?(f=ee(i+"_get",t),"a"!==(null==d?void 0:d.kind)||d.isStatic||d.getterName?o.identifiers.set(l,{kind:"a",getterName:f,setterName:void 0,brandCheckIdentifier:s,isStatic:!1,isValid:u}):d.getterName=f):(m=ee(i+"_set",t),"a"!==(null==d?void 0:d.kind)||d.isStatic||d.setterName?o.identifiers.set(l,{kind:"a",getterName:void 0,setterName:m,brandCheckIdentifier:s,isStatic:!1,isValid:u}):d.setterName=m)):e.Debug.assertNever(t,"Unknown class element type.");(n=Y()).push.apply(n,c)}function Z(e,t){var i=X().className,a=i?"_".concat(i):"",o=r.createUniqueName("".concat(a,"_").concat(e),16);return 524288&c.getNodeCheckFlags(t)?s(o):n(o),o}function ee(e,t){return Z(e.substring(1),t.name)}function te(e){var t;if((null==x?void 0:x.privateIdentifierEnvironment)&&(n=x.privateIdentifierEnvironment.identifiers.get(e.escapedText)))return n;for(var r=T.length-1;r>=0;--r){var n,i=T[r];if(i&&(n=null===(t=i.privateIdentifierEnvironment)||void 0===t?void 0:t.identifiers.get(e.escapedText)))return n}}function re(i){var a=r.getGeneratedNameForNode(i),o=te(i.name);if(!o)return e.visitEachChild(i,N,t);var s=i.expression;return(e.isThisProperty(i)||e.isSuperProperty(i)||!e.isSimpleCopiableExpression(i.expression))&&(s=r.createTempVariable(n,!0),Y().push(r.createBinaryExpression(s,63,e.visitNode(i.expression,N,e.isExpression)))),r.createAssignmentTargetWrapper(a,B(o,s,a,63))}function ne(t){var n=e.getTargetOfBindingOrAssignmentElement(t);if(n){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(n))i=re(n);else if(m&&e.isSuperProperty(n)&&S&&x){var a=x.classConstructor,o=x.superClassReference;if(1&x.facts)i=$(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,N,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(i)return e.isAssignmentExpression(t)?r.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(t.right,N,e.isExpression)):e.isSpreadElement(t)?r.updateSpreadElement(t,i):i}return e.visitNode(t,F)}function ie(t){if(e.isObjectBindingOrAssignmentElement(t)&&!e.isShorthandPropertyAssignment(t)){var n=e.getTargetOfBindingOrAssignmentElement(t),i=void 0;if(n)if(e.isPrivateIdentifierPropertyAccessExpression(n))i=re(n);else if(m&&e.isSuperProperty(n)&&S&&x){var a=x.classConstructor,o=x.superClassReference;if(1&x.facts)i=$(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,N,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(e.isPropertyAssignment(t)){var l=e.getInitializerOfBindingOrAssignmentElement(t);return r.updatePropertyAssignment(t,e.visitNode(t.name,N,e.isPropertyName),i?l?r.createAssignment(i,e.visitNode(l,N)):i:e.visitNode(t.initializer,F,e.isExpression))}if(e.isSpreadAssignment(t))return r.updateSpreadAssignment(t,i||e.visitNode(t.expression,F,e.isExpression));e.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return e.visitNode(t,N)}}})(p),(e=>{e.createRuntimeTypeSerializer=t=>{var r,n,i=t.hoistVariableDeclaration,a=t.getEmitResolver(),o=t.getCompilerOptions(),s=e.getEmitScriptTarget(o),c=e.getStrictOptionValue(o,"strictNullChecks");return{serializeTypeNode:(e,t)=>l(e,_,t),serializeTypeOfNode:(e,t)=>l(e,d,t),serializeParameterTypesOfNode:(e,t,r)=>l(e,u,t,r),serializeReturnTypeOfNode:(e,t)=>l(e,p,t)};function l(e,t,i,a){var o=r,s=n;r=e.currentLexicalScope,n=e.currentNameScope;var c=void 0===a?t(i):t(i,a);return r=o,n=s,c}function d(t){switch(t.kind){case 167:case 164:return _(t.type);case 173:case 172:return _((t=>{var r=a.getAllAccessorDeclarations(t);return r.setAccessor&&e.getSetAccessorTypeAnnotationNode(r.setAccessor)||r.getAccessor&&e.getEffectiveReturnTypeNode(r.getAccessor)})(t));case 257:case 226:case 169:return e.factory.createIdentifier("Function");default:return e.factory.createVoidZero()}}function u(t,r){var n=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,i=[];if(n)for(var a=((t,r)=>{if(r&&172===t.kind){var n=e.getAllAccessorDeclarations(r.members,t).setAccessor;if(n)return n.parameters}return t.parameters})(n,r),o=a.length,s=0;s<o;s++){var c=a[s];0===s&&e.isIdentifier(c.name)&&"this"===c.name.escapedText||(c.dotDotDotToken?i.push(_(e.getRestParameterElementType(c.type))):i.push(d(c)))}return e.factory.createArrayLiteralExpression(i)}function p(t){return e.isFunctionLike(t)&&t.type?_(t.type):e.isAsyncFunction(t)?e.factory.createIdentifier("Promise"):e.factory.createVoidZero()}function _(t){if(void 0===t)return e.factory.createIdentifier("Object");switch((t=e.skipTypeParentheses(t)).kind){case 114:case 153:case 143:return e.factory.createVoidZero();case 179:case 180:return e.factory.createIdentifier("Function");case 183:case 184:return e.factory.createIdentifier("Array");case 177:return t.assertsModifier?e.factory.createVoidZero():e.factory.createIdentifier("Boolean");case 133:return e.factory.createIdentifier("Boolean");case 198:case 150:return e.factory.createIdentifier("String");case 148:return e.factory.createIdentifier("Object");case 196:return f(t.literal);case 147:return e.factory.createIdentifier("Number");case 158:return b("BigInt",7);case 151:return b("Symbol",2);case 178:return(t=>{var o=a.getTypeReferenceSerializationKind(t.typeName,null!=n?n:r);switch(o){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(t,(t=>t.parent&&e.isConditionalTypeNode(t.parent)&&(t.parent.trueType===t||t.parent.falseType===t))))return e.factory.createIdentifier("Object");var s=y(t.typeName),c=e.factory.createTempVariable(i);return e.factory.createConditionalExpression(e.factory.createTypeCheck(e.factory.createAssignment(c,s),"function"),void 0,c,void 0,e.factory.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return v(t.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return e.factory.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return b("BigInt",7);case e.TypeReferenceSerializationKind.BooleanType:return e.factory.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return e.factory.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return e.factory.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return e.factory.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return b("Symbol",2);case e.TypeReferenceSerializationKind.TypeWithCallSignature:return e.factory.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return e.factory.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return e.factory.createIdentifier("Object");default:return e.Debug.assertNever(o)}})(t);case 188:return m(t.types,!0);case 187:return m(t.types,!1);case 189:return m([t.trueType,t.falseType],!1);case 193:if(145===t.operator)return _(t.type);break;case 181:case 194:case 195:case 182:case 130:case 155:case 192:case 200:break;case 312:case 313:case 317:case 318:case 319:break;case 314:case 315:case 316:return _(t.type);default:return e.Debug.failBadSyntaxKind(t)}return e.factory.createIdentifier("Object")}function f(t){switch(t.kind){case 10:case 14:return e.factory.createIdentifier("String");case 219:var r=t.operand;switch(r.kind){case 8:case 9:return f(r);default:return e.Debug.failBadSyntaxKind(r)}case 8:return e.factory.createIdentifier("Number");case 9:return b("BigInt",7);case 110:case 95:return e.factory.createIdentifier("Boolean");case 104:return e.factory.createVoidZero();default:return e.Debug.failBadSyntaxKind(t)}}function m(t,r){for(var n,i=0,a=t;i<a.length;i++){var o=a[i];if(143!==(o=e.skipTypeParentheses(o)).kind){if(155!==o.kind){if(130===o.kind)return e.factory.createIdentifier("Object");if(c||!(e.isLiteralTypeNode(o)&&104===o.literal.kind||153===o.kind)){var s=_(o);if(e.isIdentifier(s)&&"Object"===s.escapedText)return s;if(n){if(!g(n,s))return e.factory.createIdentifier("Object")}else n=s}}else if(!r)return e.factory.createIdentifier("Object")}else if(r)return e.factory.createVoidZero()}return null!=n?n:e.factory.createVoidZero()}function g(t,r){return e.isGeneratedIdentifier(t)?e.isGeneratedIdentifier(r):e.isIdentifier(t)?e.isIdentifier(r)&&t.escapedText===r.escapedText:e.isPropertyAccessExpression(t)?e.isPropertyAccessExpression(r)&&g(t.expression,r.expression)&&g(t.name,r.name):e.isVoidExpression(t)?e.isVoidExpression(r)&&e.isNumericLiteral(t.expression)&&"0"===t.expression.text&&e.isNumericLiteral(r.expression)&&"0"===r.expression.text:e.isStringLiteral(t)?e.isStringLiteral(r)&&t.text===r.text:e.isTypeOfExpression(t)?e.isTypeOfExpression(r)&&g(t.expression,r.expression):e.isParenthesizedExpression(t)?e.isParenthesizedExpression(r)&&g(t.expression,r.expression):e.isConditionalExpression(t)?e.isConditionalExpression(r)&&g(t.condition,r.condition)&&g(t.whenTrue,r.whenTrue)&&g(t.whenFalse,r.whenFalse):!!e.isBinaryExpression(t)&&e.isBinaryExpression(r)&&t.operatorToken.kind===r.operatorToken.kind&&g(t.left,r.left)&&g(t.right,r.right)}function h(t,r){return e.factory.createLogicalAnd(e.factory.createStrictInequality(e.factory.createTypeOfExpression(t),e.factory.createStringLiteral("undefined")),r)}function y(t){if(79===t.kind){var r=v(t);return h(r,r)}if(79===t.left.kind)return h(v(t.left),v(t));var n=y(t.left),a=e.factory.createTempVariable(i);return e.factory.createLogicalAnd(e.factory.createLogicalAnd(n.left,e.factory.createStrictInequality(e.factory.createAssignment(a,n.right),e.factory.createVoidZero())),e.factory.createPropertyAccessExpression(a,t.right))}function v(t){switch(t.kind){case 79:var n=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(t),t),t.parent);return n.original=void 0,e.setParent(n,e.getParseTreeNode(r)),n;case 161:return(t=>e.factory.createPropertyAccessExpression(v(t.left),t.right))(t)}}function b(t,r){return s<r?(t=>e.factory.createConditionalExpression(e.factory.createTypeCheck(e.factory.createIdentifier(t),"function"),void 0,e.factory.createIdentifier(t),void 0,e.factory.createIdentifier("Object")))(t):e.factory.createIdentifier(t)}}})(p),(e=>{e.transformLegacyDecorators=t=>{var r,n=t.factory,i=t.getEmitHelperFactory,a=t.hoistVariableDeclaration,o=t.getEmitResolver(),s=t.getCompilerOptions(),c=e.getEmitScriptTarget(s),l=t.onSubstituteNode;return t.onSubstituteNode=(t,i)=>(i=l(t,i),1===t?(t=>{switch(t.kind){case 79:return(t=>{var i;return null!==(i=(t=>{if(r&&33554432&o.getNodeCheckFlags(t)){var i=o.getReferencedValueDeclaration(t);if(i){var a=r[i.id];if(a){var s=n.cloneNode(a);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}})(t))&&void 0!==i?i:t})(t)}return t})(i):i),e.chainBundle(t,(r=>{var n=e.visitEachChild(r,u,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function d(t){return e.isDecorator(t)?void 0:t}function u(s){if(!(33554432&s.transformFlags))return s;switch(s.kind){case 165:return;case 257:return(s=>{if(!e.classOrConstructorParameterIsDecorated(s)&&!e.childIsDecorated(s))return e.visitEachChild(s,u,t);var l=e.hasDecorators(s)?((s,l)=>{var d,p,_=e.moveRangePastModifiers(s),f=(i=>{if(16777216&o.getNodeCheckFlags(i)){r||(t.enableSubstitution(79),r=[]);var s=n.createUniqueName(i.name&&!e.isGeneratedIdentifier(i.name)?e.idText(i.name):"default");return r[e.getOriginalNodeId(i)]=s,a(s),s}})(s),g=c<=2?n.getInternalName(s,!1,!0):n.getLocalName(s,!1,!0),y=e.visitNodes(s.heritageClauses,u,e.isHeritageClause),v=e.visitNodes(s.members,u,e.isClassElement);v=(d=m(s,v)).members,p=d.decorationStatements;var b=n.createClassExpression(void 0,l,void 0,y,v);e.setOriginalNode(b,s),e.setTextRange(b,_);var E=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(g,void 0,void 0,f?n.createAssignment(f,b):b)],1));e.setOriginalNode(E,s),e.setTextRange(E,_),e.setCommentRange(E,s);var x=[E];return e.addRange(x,p),((t,a)=>{var o=(t=>{var a=h(e.getAllDecoratorsOfClass(t));if(a){var o=r&&r[e.getOriginalNodeId(t)],s=c<=2?n.getInternalName(t,!1,!0):n.getLocalName(t,!1,!0),l=i().createDecorateHelper(a,s),d=n.createAssignment(s,o?n.createAssignment(o,l):l);return e.setEmitFlags(d,1536),e.setSourceMapRange(d,e.moveRangePastModifiers(t)),d}})(a);o&&t.push(e.setOriginalNode(n.createExpressionStatement(o),a))})(x,s),x})(s,s.name):((t,r)=>{var i,a,o=e.visitNodes(t.modifiers,d,e.isModifier),s=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),c=e.visitNodes(t.members,u,e.isClassElement);c=(i=m(t,c)).members,a=i.decorationStatements;var l=n.updateClassDeclaration(t,o,r,void 0,s,c);return e.addRange([l],a)})(s,s.name);return l.length>1&&(l.push(n.createEndOfDeclarationMarker(s)),e.setEmitFlags(l[0],4194304|e.getEmitFlags(l[0]))),e.singleOrMany(l)})(s);case 226:return(t=>n.updateClassExpression(t,e.visitNodes(t.modifiers,d,e.isModifier),t.name,void 0,e.visitNodes(t.heritageClauses,u,e.isHeritageClause),e.visitNodes(t.members,u,e.isClassElement)))(s);case 171:return(t=>n.updateConstructorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNodes(t.parameters,u,e.isParameterDeclaration),e.visitNode(t.body,u,e.isBlock)))(s);case 169:return(t=>g(n.updateMethodDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),t.asteriskToken,e.visitNode(t.name,u,e.isPropertyName),void 0,void 0,e.visitNodes(t.parameters,u,e.isParameterDeclaration),void 0,e.visitNode(t.body,u,e.isBlock)),t))(s);case 173:return(t=>g(n.updateSetAccessorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,u,e.isPropertyName),e.visitNodes(t.parameters,u,e.isParameterDeclaration),e.visitNode(t.body,u,e.isBlock)),t))(s);case 172:return(t=>g(n.updateGetAccessorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,u,e.isPropertyName),e.visitNodes(t.parameters,u,e.isParameterDeclaration),void 0,e.visitNode(t.body,u,e.isBlock)),t))(s);case 167:return(t=>{if(!(16777216&t.flags||e.hasSyntacticModifier(t,2)))return g(n.updatePropertyDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,u,e.isPropertyName),void 0,void 0,e.visitNode(t.initializer,u,e.isExpression)),t)})(s);case 164:return(t=>{var r=n.updateParameterDeclaration(t,e.elideNodes(n,t.modifiers),t.dotDotDotToken,e.visitNode(t.name,u,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,u,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})(s);default:return e.visitEachChild(s,u,t)}}function p(e){return!!(536870912&e.transformFlags)}function _(t){return e.some(t,p)}function m(t,r){var i=[];return y(i,t,!1),y(i,t,!0),(t=>{for(var r=0,n=t.members;r<n.length;r++){var i=n[r];if(e.canHaveDecorators(i)){var a=e.getAllDecoratorsOfClassElement(i,t);if(e.some(null==a?void 0:a.decorators,p))return!0;if(e.some(null==a?void 0:a.parameters,_))return!0}}return!1})(t)&&(r=e.setTextRange(n.createNodeArray(f(f([],r,!0),[n.createClassStaticBlockDeclaration(n.createBlock(i,!0))],!1)),r),i=void 0),{decorationStatements:i,members:r}}function g(t,r){return t!==r&&(e.setCommentRange(t,r),e.setSourceMapRange(t,e.moveRangePastModifiers(r))),t}function h(t){if(t){var r=[];return e.addRange(r,e.map(t.decorators,b)),e.addRange(r,e.flatMap(t.parameters,E)),r}}function y(t,r,i){e.addRange(t,e.map(((t,r)=>{for(var n,i=0,a=((t,r)=>e.filter(t.members,(n=>((t,r,n)=>e.nodeOrChildIsDecorated(t,n)&&r===e.isStatic(t))(n,r,t))))(t,r);i<a.length;i++){var o=a[i];n=e.append(n,v(t,o))}return n})(r,i),(e=>n.createExpressionStatement(e))))}function v(t,r){var a=h(e.getAllDecoratorsOfClassElement(r,t));if(a){var o=((t,r)=>e.isStatic(r)?n.getDeclarationName(t):(e=>n.createPropertyAccessExpression(n.getDeclarationName(e),"prototype"))(t))(t,r),s=((t,r)=>{var i=t.name;return e.isPrivateIdentifier(i)?n.createIdentifier(""):e.isComputedPropertyName(i)?r&&!e.isSimpleInlineableExpression(i.expression)?n.getGeneratedNameForNode(i):i.expression:e.isIdentifier(i)?n.createStringLiteral(e.idText(i)):n.cloneNode(i)})(r,!e.hasSyntacticModifier(r,2)),l=c>0?167===r.kind?n.createVoidZero():n.createNull():void 0,d=i().createDecorateHelper(a,o,s,l);return e.setEmitFlags(d,1536),e.setSourceMapRange(d,e.moveRangePastModifiers(r)),d}}function b(t){return e.visitNode(t.expression,u,e.isExpression)}function E(t,r){var n;if(t){n=[];for(var a=0,o=t;a<o.length;a++){var s=o[a],c=i().createParamHelper(b(s),r);e.setTextRange(c,s.expression),e.setEmitFlags(c,1536),n.push(c)}}return n}}})(p),(e=>{var t,r;function n(t,r,n,i){var a=0!=(4096&r.getNodeCheckFlags(n)),o=[];return i.forEach(((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,"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))}!(e=>{e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(t||(t={})),(e=>{e[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis"})(r||(r={})),e.transformES2017=t=>{var r,i,a,o,s=t.factory,c=t.getEmitHelperFactory,l=t.resumeLexicalEnvironment,d=t.endLexicalEnvironment,u=t.hoistVariableDeclaration,p=t.getEmitResolver(),_=t.getCompilerOptions(),m=e.getEmitScriptTarget(_),g=0,h=[],y=0,v=t.onEmitNode,b=t.onSubstituteNode;return t.onEmitNode=(t,n,i)=>{if(1&r&&(e=>{var t=e.kind;return 257===t||171===t||169===t||172===t||173===t})(n)){var a=6144&p.getNodeCheckFlags(n);if(a!==g){var o=g;return g=a,v(t,n,i),void(g=o)}}else if(r&&h[e.getNodeId(n)])return o=g,g=0,v(t,n,i),void(g=o);v(t,n,i)},t.onSubstituteNode=(t,r)=>(r=b(t,r),1===t&&g?(t=>{switch(t.kind){case 206:return j(t);case 207:return V(t);case 208:return(t=>{var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?j(r):V(r);return s.createCallExpression(s.createPropertyAccessExpression(n,"call"),void 0,f([s.createThis()],t.arguments,!0))}return t})(t)}return t})(r):r),e.chainBundle(t,(r=>{if(r.isDeclarationFile)return r;E(1,!1),E(2,!e.isEffectiveStrictModeSourceFile(r,_));var n=e.visitEachChild(r,C,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function E(e,t){y=t?y|e:y&~e}function x(e){return 0!=(y&e)}function D(){return x(2)}function S(e,t,r){var n=e&~y;if(n){E(n,!0);var i=t(r);return E(n,!1),i}return t(r)}function T(r){return e.visitEachChild(r,C,t)}function C(r){if(0==(256&r.transformFlags))return r;switch(r.kind){case 131:return;case 218:return(r=>x(1)?e.setOriginalNode(e.setTextRange(s.createYieldExpression(void 0,e.visitNode(r.expression,C,e.isExpression)),r),r):e.visitEachChild(r,C,t))(r);case 169:return S(3,k,r);case 256:return S(3,N,r);case 213:return S(3,w,r);case 214:return S(1,F,r);case 206:return a&&e.isPropertyAccessExpression(r)&&106===r.expression.kind&&a.add(r.name.escapedText),e.visitEachChild(r,C,t);case 207:return a&&106===r.expression.kind&&(o=!0),e.visitEachChild(r,C,t);case 172:case 173:case 171:case 257:case 226:return S(3,T,r);default:return e.visitEachChild(r,C,t)}}function A(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 237:return(r=>{if(I(r.declarationList)){var n=O(r.declarationList,!1);return n?s.createExpressionStatement(n):void 0}return e.visitEachChild(r,C,t)})(r);case 242:return(r=>{var n=r.initializer;return s.updateForStatement(r,I(n)?O(n,!1):e.visitNode(r.initializer,C,e.isForInitializer),e.visitNode(r.condition,C,e.isExpression),e.visitNode(r.incrementor,C,e.isExpression),e.visitIterationBody(r.statement,A,t))})(r);case 243:return(r=>s.updateForInStatement(r,I(r.initializer)?O(r.initializer,!0):e.visitNode(r.initializer,C,e.isForInitializer),e.visitNode(r.expression,C,e.isExpression),e.visitIterationBody(r.statement,A,t)))(r);case 244:return(r=>s.updateForOfStatement(r,e.visitNode(r.awaitModifier,C,e.isToken),I(r.initializer)?O(r.initializer,!0):e.visitNode(r.initializer,C,e.isForInitializer),e.visitNode(r.expression,C,e.isExpression),e.visitIterationBody(r.statement,A,t)))(r);case 292:return(r=>{var n,a=new e.Set;if(P(r.variableDeclaration,a),a.forEach(((t,r)=>{i.has(r)&&(n||(n=new e.Set(i)),n.delete(r))})),n){var o=i;i=n;var s=e.visitEachChild(r,A,t);return i=o,s}return e.visitEachChild(r,A,t)})(r);case 235:case 249:case 263:case 289:case 290:case 252:case 240:case 241:case 239:case 248:case 250:return e.visitEachChild(r,A,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return C(r)}function k(r){return s.updateMethodDeclaration(r,e.visitNodes(r.modifiers,C,e.isModifierLike),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function N(r){return s.updateFunctionDeclaration(r,e.visitNodes(r.modifiers,C,e.isModifierLike),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function w(r){return s.updateFunctionExpression(r,e.visitNodes(r.modifiers,C,e.isModifierLike),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function F(r){return s.updateArrowFunction(r,e.visitNodes(r.modifiers,C,e.isModifierLike),void 0,e.visitParameterList(r.parameters,C,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function P(t,r){var n=t.name;if(e.isIdentifier(n))r.add(n.escapedText);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||P(o,r)}}function I(t){return!!t&&e.isVariableDeclarationList(t)&&!(3&t.flags)&&t.declarations.some(L)}function O(t,r){!(t=>{e.forEach(t.declarations,M)})(t);var n=e.getInitializedVariables(t);return 0===n.length?r?e.visitNode(s.converters.convertToAssignmentElementTarget(t.declarations[0].name),C,e.isExpression):void 0:s.inlineExpressions(e.map(n,R))}function M(t){var r=t.name;if(e.isIdentifier(r))u(r);else for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||M(a)}}function R(t){var r=e.setSourceMapRange(s.createAssignment(s.converters.convertToAssignmentElementTarget(t.name),t.initializer),t);return e.visitNode(r,C,e.isExpression)}function L(t){var r=t.name;if(e.isIdentifier(r))return i.has(r.escapedText);for(var n=0,a=r.elements;n<a.length;n++){var o=a[n];if(!e.isOmittedExpression(o)&&L(o))return!0}return!1}function B(u){l();var _=e.getOriginalNode(u,e.isFunctionLike).type,f=m<2?(t=>{var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=p.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}})(_):void 0,g=214===u.kind,y=0!=(8192&p.getNodeCheckFlags(u)),v=i;i=new e.Set;for(var b=0,E=u.parameters;b<E.length;b++)P(E[b],i);var x,S=a,T=o;if(g||(a=new e.Set,o=!1),g){var A=c().createAwaiterHelper(D(),y,f,U(u.body)),k=d();e.some(k)?(O=s.converters.convertToFunctionBlock(A),x=s.updateBlock(O,e.setTextRange(s.createNodeArray(e.concatenate(k,O.statements)),O.statements))):x=A}else{var N=[],w=s.copyPrologue(u.body.statements,N,!1,C);N.push(s.createReturnStatement(c().createAwaiterHelper(D(),y,f,U(u.body,w)))),e.insertStatementsAfterStandardPrologue(N,d());var F=m>=2&&6144&p.getNodeCheckFlags(u);if(F&&(0==(1&r)&&(r|=1,t.enableSubstitution(208),t.enableSubstitution(206),t.enableSubstitution(207),t.enableEmitNotification(257),t.enableEmitNotification(169),t.enableEmitNotification(172),t.enableEmitNotification(173),t.enableEmitNotification(171),t.enableEmitNotification(237)),a.size)){var I=n(s,p,u,a);h[e.getNodeId(I)]=!0,e.insertStatementsAfterStandardPrologue(N,[I])}var O=s.createBlock(N,!0);e.setTextRange(O,u.body),F&&o&&(4096&p.getNodeCheckFlags(u)?e.addEmitHelper(O,e.advancedAsyncSuperHelper):2048&p.getNodeCheckFlags(u)&&e.addEmitHelper(O,e.asyncSuperHelper)),x=O}return i=v,g||(a=S,o=T),x}function U(t,r){return e.isBlock(t)?s.updateBlock(t,e.visitNodes(t.statements,A,e.isStatement,r)):s.converters.convertToFunctionBlock(e.visitNode(t,A,e.isConciseBody))}function j(t){return 106===t.expression.kind?e.setTextRange(s.createPropertyAccessExpression(s.createUniqueName("_super",48),t.name),t):t}function V(t){return 106===t.expression.kind?(r=t.argumentExpression,n=t,4096&g?e.setTextRange(s.createPropertyAccessExpression(s.createCallExpression(s.createUniqueName("_superIndex",48),void 0,[r]),"value"),n):e.setTextRange(s.createCallExpression(s.createUniqueName("_superIndex",48),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=n})(p),(e=>{var t,r;!(e=>{e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(t||(t={})),(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=t=>{var r=t.factory,n=t.getEmitHelperFactory,i=t.resumeLexicalEnvironment,a=t.endLexicalEnvironment,o=t.hoistVariableDeclaration,s=t.getEmitResolver(),c=t.getCompilerOptions(),l=e.getEmitScriptTarget(c),d=t.onEmitNode;t.onEmitNode=(t,r,n)=>{if(1&p&&(e=>{var t=e.kind;return 257===t||171===t||169===t||172===t||173===t})(r)){var i=6144&s.getNodeCheckFlags(r);if(i!==E){var a=E;return E=i,d(t,r,n),void(E=a)}}else if(p&&D[e.getNodeId(r)])return a=E,E=0,d(t,r,n),void(E=a);d(t,r,n)};var u=t.onSubstituteNode;t.onSubstituteNode=(t,n)=>(n=u(t,n),1===t&&E?(t=>{switch(t.kind){case 206:return X(t);case 207:return Y(t);case 208:return(t=>{var n=t.expression;if(e.isSuperProperty(n)){var i=e.isPropertyAccessExpression(n)?X(n):Y(n);return r.createCallExpression(r.createPropertyAccessExpression(i,"call"),void 0,f([r.createThis()],t.arguments,!0))}return t})(t)}return t})(n):n);var p,_,m,g,h,y,v,b=!1,E=0,x=0,D=[];return e.chainBundle(t,(n=>{if(n.isDeclarationFile)return n;g=n;var i=(n=>{var i=S(2,e.isEffectiveStrictModeSourceFile(n,c)?0:1);b=!1;var a=e.visitEachChild(n,A,t),o=e.concatenate(a.statements,h&&[r.createVariableStatement(void 0,r.createVariableDeclarationList(h))]),s=r.updateSourceFile(a,e.setTextRange(r.createNodeArray(o),n.statements));return T(i),s})(n);return e.addEmitHelpers(i,t.readEmitHelpers()),g=void 0,h=void 0,i}));function S(e,t){var r=x;return x=3&(x&~e|t),r}function T(e){x=e}function C(t){h=e.append(h,r.createVariableDeclaration(t))}function A(e){return P(e,!1)}function k(e){return P(e,!0)}function N(e){if(131!==e.kind)return e}function w(e,t,r,n){if(((e,t)=>x!==(x&~e|t))(r,n)){var i=S(r,n),a=e(t);return T(i),a}return e(t)}function F(r){return e.visitEachChild(r,A,t)}function P(i,a){if(0==(128&i.transformFlags))return i;switch(i.kind){case 218:return(i=>2&_&&1&_?e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(e.visitNode(i.expression,A,e.isExpression))),i),i):e.visitEachChild(i,A,t))(i);case 224:return(i=>{if(2&_&&1&_){if(i.asteriskToken){var a=e.visitNode(e.Debug.checkDefined(i.expression),A,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,R(i.expression?e.visitNode(i.expression,A,e.isExpression):r.createVoidZero())),i),i)}return e.visitEachChild(i,A,t)})(i);case 247:return(n=>2&_&&1&_?r.updateReturnStatement(n,R(n.expression?e.visitNode(n.expression,A,e.isExpression):r.createVoidZero())):e.visitEachChild(n,A,t))(i);case 250:return(n=>{if(2&_){var i=e.unwrapInnermostStatementOfLabel(n);return 244===i.kind&&i.awaitModifier?M(i,n):r.restoreEnclosingLabel(e.visitNode(i,A,e.isStatement,r.liftToBlock),n)}return e.visitEachChild(n,A,t)})(i);case 205:return(i=>{if(65536&i.transformFlags){var a=(t=>{for(var n,i=[],a=0,o=t;a<o.length;a++){var s=o[a];if(298===s.kind){n&&(i.push(r.createObjectLiteralExpression(n)),n=void 0);var c=s.expression;i.push(e.visitNode(c,A,e.isExpression))}else n=e.append(n,296===s.kind?r.createPropertyAssignment(s.name,e.visitNode(s.initializer,A,e.isExpression)):e.visitNode(s,A,e.isObjectLiteralElementLike))}return n&&i.push(r.createObjectLiteralExpression(n)),i})(i.properties);a.length&&205!==a[0].kind&&a.unshift(r.createObjectLiteralExpression());var o=a[0];if(a.length>1){for(var s=1;s<a.length;s++)o=n().createAssignHelper([o,a[s]]);return o}return n().createAssignHelper(a)}return e.visitEachChild(i,A,t)})(i);case 221:return((n,i)=>e.isDestructuringAssignment(n)&&65536&n.left.transformFlags?e.flattenDestructuringAssignment(n,A,t,1,!i):27===n.operatorToken.kind?r.updateBinaryExpression(n,e.visitNode(n.left,k,e.isExpression),n.operatorToken,e.visitNode(n.right,i?k:A,e.isExpression)):e.visitEachChild(n,A,t))(i,a);case 351:return((n,i)=>{if(i)return e.visitEachChild(n,k,t);for(var a,o=0;o<n.elements.length;o++){var s=n.elements[o],c=e.visitNode(s,o<n.elements.length-1?k:A,e.isExpression);(a||c!==s)&&(a||(a=n.elements.slice(0,o)),a.push(c))}var l=a?e.setTextRange(r.createNodeArray(a),n.elements):n.elements;return r.updateCommaListExpression(n,l)})(i,a);case 292:return(n=>{if(n.variableDeclaration&&e.isBindingPattern(n.variableDeclaration.name)&&65536&n.variableDeclaration.name.transformFlags){var i=r.getGeneratedNameForNode(n.variableDeclaration.name),a=r.updateVariableDeclaration(n.variableDeclaration,n.variableDeclaration.name,void 0,void 0,i),o=e.flattenDestructuringBinding(a,A,t,1),s=e.visitNode(n.block,A,e.isBlock);return e.some(o)&&(s=r.updateBlock(s,f([r.createVariableStatement(void 0,o)],s.statements,!0))),r.updateCatchClause(n,r.updateVariableDeclaration(n.variableDeclaration,i,void 0,void 0,void 0),s)}return e.visitEachChild(n,A,t)})(i);case 237:return(r=>{if(e.hasSyntacticModifier(r,1)){var n=b;b=!0;var i=e.visitEachChild(r,A,t);return b=n,i}return e.visitEachChild(r,A,t)})(i);case 254:return(e=>{if(b){var t=b;b=!1;var r=I(e,!0);return b=t,r}return I(e,!1)})(i);case 240:case 241:case 243:return w(F,i,0,2);case 244:return M(i,void 0);case 242:return w(O,i,0,2);case 217:return(r=>e.visitEachChild(r,k,t))(i);case 171:return w(j,i,2,1);case 169:return w(H,i,2,1);case 172:return w(V,i,2,1);case 173:return w(z,i,2,1);case 256:return w(W,i,2,1);case 213:return w(J,i,2,1);case 214:return w(K,i,2,0);case 164:return B(i);case 238:return(r=>e.visitEachChild(r,k,t))(i);case 212:return((r,n)=>e.visitEachChild(r,n?k:A,t))(i,a);case 210:return(r=>e.processTaggedTemplateExpression(t,r,A,g,C,e.ProcessLevel.LiftRestriction))(i);case 206:return y&&e.isPropertyAccessExpression(i)&&106===i.expression.kind&&y.add(i.name.escapedText),e.visitEachChild(i,A,t);case 207:return y&&106===i.expression.kind&&(v=!0),e.visitEachChild(i,A,t);case 257:case 226:return w(F,i,2,1);default:return e.visitEachChild(i,A,t)}}function I(r,n){return e.isBindingPattern(r.name)&&65536&r.name.transformFlags?e.flattenDestructuringBinding(r,A,t,1,void 0,n):e.visitEachChild(r,A,t)}function O(n){return r.updateForStatement(n,e.visitNode(n.initializer,k,e.isForInitializer),e.visitNode(n.condition,A,e.isExpression),e.visitNode(n.incrementor,k,e.isExpression),e.visitIterationBody(n.statement,A,t))}function M(i,a){var s=S(0,2);65536&i.initializer.transformFlags&&(i=(t=>{var n=e.skipParentheses(t.initializer);if(e.isVariableDeclarationList(n)||e.isAssignmentPattern(n)){var i=void 0,a=void 0,o=r.createTempVariable(void 0),s=[e.createForOfBindingStatement(r,n,o)];return e.isBlock(t.statement)?(e.addRange(s,t.statement.statements),i=t.statement,a=t.statement.statements):t.statement&&(e.append(s,t.statement),i=t.statement,a=t.statement),r.updateForOfStatement(t,t.awaitModifier,e.setTextRange(r.createVariableDeclarationList([e.setTextRange(r.createVariableDeclaration(o),t.initializer)],1),t.initializer),t.expression,e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(s),a),!0),i))}return t})(i));var c=i.awaitModifier?((i,a,s)=>{var c=e.visitNode(i.expression,A,e.isExpression),l=e.isIdentifier(c)?r.getGeneratedNameForNode(c):r.createTempVariable(void 0),d=e.isIdentifier(c)?r.getGeneratedNameForNode(l):r.createTempVariable(void 0),u=r.createUniqueName("e"),p=r.getGeneratedNameForNode(u),_=r.createTempVariable(void 0),f=e.setTextRange(n().createAsyncValuesHelper(c),i.expression),m=r.createCallExpression(r.createPropertyAccessExpression(l,"next"),void 0,[]),g=r.createPropertyAccessExpression(d,"done"),h=r.createPropertyAccessExpression(d,"value"),y=r.createFunctionCallCall(_,l,[]);o(u),o(_);var v=2&s?r.inlineExpressions([r.createAssignment(u,r.createVoidZero()),f]):f,b=e.setEmitFlags(e.setTextRange(r.createForStatement(e.setEmitFlags(e.setTextRange(r.createVariableDeclarationList([e.setTextRange(r.createVariableDeclaration(l,void 0,void 0,v),i.expression),r.createVariableDeclaration(d)]),i.expression),2097152),r.createComma(r.createAssignment(d,R(m)),r.createLogicalNot(g)),void 0,((n,i)=>{var a,o,s=e.createForOfBindingStatement(r,n.initializer,i),c=[e.visitNode(s,A,e.isStatement)],l=e.visitIterationBody(n.statement,A,t);return e.isBlock(l)?(e.addRange(c,l.statements),a=l,o=l.statements):c.push(l),e.setEmitFlags(e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(c),o),!0),a),432)})(i,h)),i),256);return e.setOriginalNode(b,i),r.createTryStatement(r.createBlock([r.restoreEnclosingLabel(b,a)]),r.createCatchClause(r.createVariableDeclaration(p),e.setEmitFlags(r.createBlock([r.createExpressionStatement(r.createAssignment(u,r.createObjectLiteralExpression([r.createPropertyAssignment("error",p)])))]),1)),r.createBlock([r.createTryStatement(r.createBlock([e.setEmitFlags(r.createIfStatement(r.createLogicalAnd(r.createLogicalAnd(d,r.createLogicalNot(g)),r.createAssignment(_,r.createPropertyAccessExpression(l,"return"))),r.createExpressionStatement(R(y))),1)]),void 0,e.setEmitFlags(r.createBlock([e.setEmitFlags(r.createIfStatement(u,r.createThrowStatement(r.createPropertyAccessExpression(u,"error"))),1)]),1))]))})(i,a,s):r.restoreEnclosingLabel(e.visitEachChild(i,A,t),a);return T(s),c}function R(e){return 1&_?r.createYieldExpression(void 0,n().createAwaitHelper(e)):r.createAwaitExpression(e)}function L(t){return e.Debug.assertNode(t,e.isParameter),B(t)}function B(n){return(null==m?void 0:m.has(n))?r.updateParameterDeclaration(n,void 0,n.dotDotDotToken,e.isBindingPattern(n.name)?r.getGeneratedNameForNode(n):n.name,void 0,void 0,void 0):65536&n.transformFlags?r.updateParameterDeclaration(n,void 0,n.dotDotDotToken,r.getGeneratedNameForNode(n),void 0,void 0,e.visitNode(n.initializer,A,e.isExpression)):e.visitEachChild(n,A,t)}function U(t){for(var r,n=0,i=t.parameters;n<i.length;n++){var a=i[n];r?r.add(a):65536&a.transformFlags&&(r=new e.Set)}return r}function j(n){var i=_,a=m;_=e.getFunctionFlags(n),m=U(n);var o=r.updateConstructorDeclaration(n,n.modifiers,e.visitParameterList(n.parameters,L,t),$(n));return _=i,m=a,o}function V(n){var i=_,a=m;_=e.getFunctionFlags(n),m=U(n);var o=r.updateGetAccessorDeclaration(n,n.modifiers,e.visitNode(n.name,A,e.isPropertyName),e.visitParameterList(n.parameters,L,t),void 0,$(n));return _=i,m=a,o}function z(n){var i=_,a=m;_=e.getFunctionFlags(n),m=U(n);var o=r.updateSetAccessorDeclaration(n,n.modifiers,e.visitNode(n.name,A,e.isPropertyName),e.visitParameterList(n.parameters,L,t),$(n));return _=i,m=a,o}function H(n){var i=_,a=m;_=e.getFunctionFlags(n),m=U(n);var o=r.updateMethodDeclaration(n,1&_?e.visitNodes(n.modifiers,N,e.isModifierLike):n.modifiers,2&_?void 0:n.asteriskToken,e.visitNode(n.name,A,e.isPropertyName),e.visitNode(void 0,A,e.isToken),void 0,e.visitParameterList(n.parameters,L,t),void 0,2&_&&1&_?G(n):$(n));return _=i,m=a,o}function W(n){var i=_,a=m;_=e.getFunctionFlags(n),m=U(n);var o=r.updateFunctionDeclaration(n,1&_?e.visitNodes(n.modifiers,N,e.isModifier):n.modifiers,2&_?void 0:n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,L,t),void 0,2&_&&1&_?G(n):$(n));return _=i,m=a,o}function K(n){var i=_,a=m;_=e.getFunctionFlags(n),m=U(n);var o=r.updateArrowFunction(n,n.modifiers,void 0,e.visitParameterList(n.parameters,L,t),void 0,n.equalsGreaterThanToken,$(n));return _=i,m=a,o}function J(n){var i=_,a=m;_=e.getFunctionFlags(n),m=U(n);var o=r.updateFunctionExpression(n,1&_?e.visitNodes(n.modifiers,N,e.isModifier):n.modifiers,2&_?void 0:n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,L,t),void 0,2&_&&1&_?G(n):$(n));return _=i,m=a,o}function G(o){i();var c=[],d=r.copyPrologue(o.body.statements,c,!1,A);q(c,o);var u=y,_=v;y=new e.Set,v=!1;var f=r.createReturnStatement(n().createAsyncGeneratorHelper(r.createFunctionExpression(void 0,r.createToken(41),o.name&&r.getGeneratedNameForNode(o.name),void 0,[],void 0,r.updateBlock(o.body,e.visitLexicalEnvironment(o.body.statements,A,t,d))),!!(1&x))),m=l>=2&&6144&s.getNodeCheckFlags(o);if(m){0==(1&p)&&(p|=1,t.enableSubstitution(208),t.enableSubstitution(206),t.enableSubstitution(207),t.enableEmitNotification(257),t.enableEmitNotification(169),t.enableEmitNotification(172),t.enableEmitNotification(173),t.enableEmitNotification(171),t.enableEmitNotification(237));var g=e.createSuperAccessVariableStatement(r,s,o,y);D[e.getNodeId(g)]=!0,e.insertStatementsAfterStandardPrologue(c,[g])}c.push(f),e.insertStatementsAfterStandardPrologue(c,a());var h=r.updateBlock(o.body,c);return m&&v&&(4096&s.getNodeCheckFlags(o)?e.addEmitHelper(h,e.advancedAsyncSuperHelper):2048&s.getNodeCheckFlags(o)&&e.addEmitHelper(h,e.asyncSuperHelper)),y=u,v=_,h}function $(t){var n;i();var o=0,s=[],c=null!==(n=e.visitNode(t.body,A,e.isConciseBody))&&void 0!==n?n:r.createBlock([]);e.isBlock(c)&&(o=r.copyPrologue(c.statements,s,!1,A)),e.addRange(s,q(void 0,t));var l=a();if(o>0||e.some(s)||e.some(l)){var d=r.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,l),e.addRange(s,d.statements.slice(o)),r.updateBlock(d,e.setTextRange(r.createNodeArray(s),d.statements))}return c}function q(n,i){for(var a=!1,o=0,s=i.parameters;o<s.length;o++){var c=s[o];if(a){if(e.isBindingPattern(c.name)){if(c.name.elements.length>0){var l=e.flattenDestructuringBinding(c,A,t,0,r.getGeneratedNameForNode(c));if(e.some(l)){var d=r.createVariableDeclarationList(l),u=r.createVariableStatement(void 0,d);e.setEmitFlags(u,1048576),n=e.append(n,u)}}else if(c.initializer){var p=r.getGeneratedNameForNode(c),_=e.visitNode(c.initializer,A,e.isExpression),f=r.createAssignment(p,_);u=r.createExpressionStatement(f),e.setEmitFlags(u,1048576),n=e.append(n,u)}}else if(c.initializer){p=r.cloneNode(c.name),e.setTextRange(p,c.name),e.setEmitFlags(p,48),_=e.visitNode(c.initializer,A,e.isExpression),e.addEmitFlags(_,1584),f=r.createAssignment(p,_),e.setTextRange(f,c),e.setEmitFlags(f,1536);var m=r.createBlock([r.createExpressionStatement(f)]);e.setTextRange(m,c),e.setEmitFlags(m,1953);var g=r.createTypeCheck(r.cloneNode(c.name),"undefined");u=r.createIfStatement(g,m),e.startOnNewLine(u),e.setTextRange(u,c),e.setEmitFlags(u,1050528),n=e.append(n,u)}}else 65536&c.transformFlags&&(a=!0,l=e.flattenDestructuringBinding(c,A,t,1,r.getGeneratedNameForNode(c),!1,!0),e.some(l)&&(d=r.createVariableDeclarationList(l),u=r.createVariableStatement(void 0,d),e.setEmitFlags(u,1048576),n=e.append(n,u)))}return n}function X(t){return 106===t.expression.kind?e.setTextRange(r.createPropertyAccessExpression(r.createUniqueName("_super",48),t.name),t):t}function Y(t){return 106===t.expression.kind?(n=t.argumentExpression,i=t,4096&E?e.setTextRange(r.createPropertyAccessExpression(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),"value"),i):e.setTextRange(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),i)):t;var n,i}}})(p),(e=>{e.transformES2019=t=>{var r=t.factory;return e.chainBundle(t,(r=>r.isDeclarationFile?r:e.visitEachChild(r,n,t)));function n(i){if(0==(64&i.transformFlags))return i;switch(i.kind){case 292:return(i=>i.variableDeclaration?e.visitEachChild(i,n,t):r.updateCatchClause(i,r.createVariableDeclaration(r.createTempVariable(void 0)),e.visitNode(i.block,n,e.isBlock)))(i);default:return e.visitEachChild(i,n,t)}}}})(p),(e=>{e.transformES2020=t=>{var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(r=>r.isDeclarationFile?r:e.visitEachChild(r,i,t)));function i(a){if(0==(32&a.transformFlags))return a;switch(a.kind){case 208:var d=o(a,!1);return e.Debug.assertNotNode(d,e.isSyntheticReference),d;case 206:case 207:return e.isOptionalChain(a)?(d=c(a,!1,!1),e.Debug.assertNotNode(d,e.isSyntheticReference),d):e.visitEachChild(a,i,t);case 221:return 60===a.operatorToken.kind?(t=>{var a=e.visitNode(t.left,i,e.isExpression),o=a;return e.isSimpleCopiableExpression(a)||(o=r.createTempVariable(n),a=r.createAssignment(o,a)),e.setTextRange(r.createConditionalExpression(l(a,o),void 0,o,void 0,e.visitNode(t.right,i,e.isExpression)),t)})(a):e.visitEachChild(a,i,t);case 215:return(t=>e.isOptionalChain(e.skipParentheses(t.expression))?e.setOriginalNode(s(t.expression,!1,!0),t):r.updateDeleteExpression(t,e.visitNode(t.expression,i,e.isExpression)))(a);default:return e.visitEachChild(a,i,t)}}function a(t,n,i){var a=s(t.expression,n,i);return e.isSyntheticReference(a)?r.createSyntheticReferenceExpression(r.updateParenthesizedExpression(t,a.expression),a.thisArg):r.updateParenthesizedExpression(t,a)}function o(n,o){if(e.isOptionalChain(n))return c(n,o,!1);if(e.isParenthesizedExpression(n.expression)&&e.isOptionalChain(e.skipParentheses(n.expression))){var s=a(n.expression,!0,!1),l=e.visitNodes(n.arguments,i,e.isExpression);return e.isSyntheticReference(s)?e.setTextRange(r.createFunctionCallCall(s.expression,s.thisArg,l),n):r.updateCallExpression(n,s,void 0,l)}return e.visitEachChild(n,i,t)}function s(t,s,l){switch(t.kind){case 212:return a(t,s,l);case 206:case 207:return((t,a,o)=>{if(e.isOptionalChain(t))return c(t,a,o);var s,l=e.visitNode(t.expression,i,e.isExpression);return e.Debug.assertNotNode(l,e.isSyntheticReference),a&&(e.isSimpleCopiableExpression(l)?s=l:(s=r.createTempVariable(n),l=r.createAssignment(s,l))),l=206===t.kind?r.updatePropertyAccessExpression(t,l,e.visitNode(t.name,i,e.isIdentifier)):r.updateElementAccessExpression(t,l,e.visitNode(t.argumentExpression,i,e.isExpression)),s?r.createSyntheticReferenceExpression(l,s):l})(t,s,l);case 208:return o(t,s);default:return e.visitNode(t,i,e.isExpression)}}function c(t,a,o){var c=(t=>{e.Debug.assertNotNode(t,e.isNonNullChain);for(var r=[t];!t.questionDotToken&&!e.isTaggedTemplateExpression(t);)t=e.cast(e.skipPartiallyEmittedExpressions(t.expression),e.isOptionalChain),e.Debug.assertNotNode(t,e.isNonNullChain),r.unshift(t);return{expression:t.expression,chain:r}})(t),d=c.expression,u=c.chain,p=s(e.skipPartiallyEmittedExpressions(d),e.isCallChain(u[0]),!1),_=e.isSyntheticReference(p)?p.thisArg:void 0,f=e.isSyntheticReference(p)?p.expression:p,m=r.restoreOuterExpressions(d,f,8);e.isSimpleCopiableExpression(f)||(f=r.createTempVariable(n),m=r.createAssignment(f,m));for(var g,h=f,y=0;y<u.length;y++){var v=u[y];switch(v.kind){case 206:case 207:y===u.length-1&&a&&(e.isSimpleCopiableExpression(h)?g=h:(g=r.createTempVariable(n),h=r.createAssignment(g,h))),h=206===v.kind?r.createPropertyAccessExpression(h,e.visitNode(v.name,i,e.isIdentifier)):r.createElementAccessExpression(h,e.visitNode(v.argumentExpression,i,e.isExpression));break;case 208:0===y&&_?(e.isGeneratedIdentifier(_)||(_=r.cloneNode(_),e.addEmitFlags(_,1536)),h=r.createFunctionCallCall(h,106===_.kind?r.createThis():_,e.visitNodes(v.arguments,i,e.isExpression))):h=r.createCallExpression(h,void 0,e.visitNodes(v.arguments,i,e.isExpression))}e.setOriginalNode(h,v)}var b=o?r.createConditionalExpression(l(m,f,!0),void 0,r.createTrue(),void 0,r.createDeleteExpression(h)):r.createConditionalExpression(l(m,f,!0),void 0,r.createVoidZero(),void 0,h);return e.setTextRange(b,t),g?r.createSyntheticReferenceExpression(b,g):b}function l(e,t,n){return r.createBinaryExpression(r.createBinaryExpression(e,r.createToken(n?36:37),r.createNull()),r.createToken(n?56:55),r.createBinaryExpression(t,r.createToken(n?36:37),r.createVoidZero()))}}})(p),(e=>{e.transformES2021=t=>{var r=t.hoistVariableDeclaration,n=t.factory;return e.chainBundle(t,(r=>r.isDeclarationFile?r:e.visitEachChild(r,i,t)));function i(a){if(0==(16&a.transformFlags))return a;switch(a.kind){case 221:var o=a;if(e.isLogicalOrCoalescingAssignmentExpression(o))return(t=>{var a=t.operatorToken,o=e.getNonAssignmentOperatorForCompoundAssignment(a.kind),s=e.skipParentheses(e.visitNode(t.left,i,e.isLeftHandSideExpression)),c=s,l=e.skipParentheses(e.visitNode(t.right,i,e.isExpression));if(e.isAccessExpression(s)){var d=e.isSimpleCopiableExpression(s.expression),u=d?s.expression:n.createTempVariable(r),p=d?s.expression:n.createAssignment(u,s.expression);if(e.isPropertyAccessExpression(s))c=n.createPropertyAccessExpression(u,s.name),s=n.createPropertyAccessExpression(p,s.name);else{var _=e.isSimpleCopiableExpression(s.argumentExpression),f=_?s.argumentExpression:n.createTempVariable(r);c=n.createElementAccessExpression(u,f),s=n.createElementAccessExpression(p,_?s.argumentExpression:n.createAssignment(f,s.argumentExpression))}}return n.createBinaryExpression(s,o,n.createParenthesizedExpression(n.createAssignment(c,l)))})(o);default:return e.visitEachChild(a,i,t)}}}})(p),(e=>{e.transformESNext=t=>{return e.chainBundle(t,(n=>n.isDeclarationFile?n:e.visitEachChild(n,r,t)));function r(n){return 0==(4&n.transformFlags)?n:e.visitEachChild(n,r,t)}}})(p),(e=>{e.transformJsx=r=>{var n,i,a=r.factory,o=r.getEmitHelperFactory,s=r.getCompilerOptions();return e.chainBundle(r,(t=>{if(t.isDeclarationFile)return t;n=t,(i={}).importSpecifier=e.getJSXImplicitImportBase(s,t);var o=e.visitEachChild(t,d,r);e.addEmitHelpers(o,r.readEmitHelpers());var c=o.statements;if(i.filenameDeclaration&&(c=e.insertStatementAfterCustomPrologue(c.slice(),a.createVariableStatement(void 0,a.createVariableDeclarationList([i.filenameDeclaration],2)))),i.utilizedImplicitRuntimeImports)for(var l=0,u=e.arrayFrom(i.utilizedImplicitRuntimeImports.entries());l<u.length;l++){var p=u[l],_=p[0],f=p[1];if(e.isExternalModule(t)){var m=a.createImportDeclaration(void 0,a.createImportClause(!1,void 0,a.createNamedImports(e.arrayFrom(f.values()))),a.createStringLiteral(_),void 0);e.setParentRecursive(m,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),m)}else if(e.isExternalOrCommonJsModule(t)){var g=a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.createObjectBindingPattern(e.map(e.arrayFrom(f.values()),(e=>a.createBindingElement(void 0,e.propertyName,e.name)))),void 0,void 0,a.createCallExpression(a.createIdentifier("require"),void 0,[a.createStringLiteral(_)]))],2));e.setParentRecursive(g,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),g)}}return c!==o.statements&&(o=a.updateSourceFile(o,c)),i=void 0,o}));function c(){if(i.filenameDeclaration)return i.filenameDeclaration.name;var e=a.createVariableDeclaration(a.createUniqueName("_jsxFileName",48),void 0,void 0,a.createStringLiteral(n.fileName));return i.filenameDeclaration=e,i.filenameDeclaration.name}function l(t){var r,n,o="createElement"===t?i.importSpecifier:e.getJSXRuntimeImport(i.importSpecifier,s),c=null===(n=null===(r=i.utilizedImplicitRuntimeImports)||void 0===r?void 0:r.get(o))||void 0===n?void 0:n.get(t);if(c)return c.name;i.utilizedImplicitRuntimeImports||(i.utilizedImplicitRuntimeImports=new e.Map);var l=i.utilizedImplicitRuntimeImports.get(o);l||(l=new e.Map,i.utilizedImplicitRuntimeImports.set(o,l));var d=a.createUniqueName("_".concat(t),112),u=a.createImportSpecifier(!1,a.createIdentifier(t),d);return d.generatedImportReference=u,l.set(t,u),d}function d(t){return 2&t.transformFlags?(t=>{switch(t.kind){case 278:return _(t,!1);case 279:return f(t,!1);case 282:return m(t,!1);case 288:return N(t);default:return e.visitEachChild(t,d,r)}})(t):t}function u(t){switch(t.kind){case 11:return(t=>{var r=(t=>{for(var r,n=0,i=-1,a=0;a<t.length;a++){var o=t.charCodeAt(a);e.isLineBreak(o)?(-1!==n&&-1!==i&&(r=C(r,t.substr(n,i-n+1))),n=-1):e.isWhiteSpaceSingleLine(o)||(i=a,-1===n&&(n=a))}return-1!==n?C(r,t.substr(n)):r})(t.text);return void 0===r?void 0:a.createStringLiteral(r)})(t);case 288:return N(t);case 278:return _(t,!0);case 279:return f(t,!0);case 282:return m(t,!0);default:return e.Debug.failBadSyntaxKind(t)}}function p(t){return void 0===i.importSpecifier||(t=>{for(var r=!1,n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(e.isJsxSpreadAttribute(a))r=!0;else if(r&&e.isJsxAttribute(a)&&"key"===a.name.escapedText)return!0}return!1})(t)}function _(e,t){return(p(e.openingElement)?v:h)(e.openingElement,e.children,t,e)}function f(e,t){return(p(e)?v:h)(e,void 0,t,e)}function m(e,t){return(void 0===i.importSpecifier?E:b)(e.openingFragment,e.children,t,e)}function g(t){var r=e.getSemanticJsxChildren(t);if(1===e.length(r)&&!r[0].dotDotDotToken){var n=u(r[0]);return n&&a.createPropertyAssignment("children",n)}var i=e.mapDefined(t,u);return e.length(i)?a.createPropertyAssignment("children",a.createArrayLiteralExpression(i)):void 0}function h(t,r,n,i){var o=k(t),s=r&&r.length?g(r):void 0,c=e.find(t.attributes.properties,(t=>!!t.name&&e.isIdentifier(t.name)&&"key"===t.name.escapedText)),l=c?e.filter(t.attributes.properties,(e=>e!==c)):t.attributes.properties;return y(o,e.length(l)?x(l,s):a.createObjectLiteralExpression(s?[s]:e.emptyArray),c,r||e.emptyArray,n,i)}function y(t,r,i,o,d,u){var p,_=e.getSemanticJsxChildren(o),f=e.length(_)>1||!!(null===(p=_[0])||void 0===p?void 0:p.dotDotDotToken),m=[t,r];if(i&&m.push(T(i.initializer)),5===s.jsx){var g=e.getOriginalNode(n);if(g&&e.isSourceFile(g)){void 0===i&&m.push(a.createVoidZero()),m.push(f?a.createTrue():a.createFalse());var h=e.getLineAndCharacterOfPosition(g,u.pos);m.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(h.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(h.character+1))])),m.push(a.createThis())}}var y=e.setTextRange(a.createCallExpression((e=>l((e=>5===s.jsx?"jsxDEV":e?"jsxs":"jsx")(e)))(f),void 0,m),u);return d&&e.startOnNewLine(y),y}function v(t,o,c,d){var p=k(t),_=t.attributes.properties,f=e.length(_)?x(_):a.createNull(),m=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,r.getEmitResolver().getJsxFactoryEntity(n),s.reactNamespace,t):l("createElement"),g=e.createExpressionForJsxElement(a,m,p,f,e.mapDefined(o,u),d);return c&&e.startOnNewLine(g),g}function b(e,t,r,n){var i;if(t&&t.length){var o=(e=>{var t=g(e);return t&&a.createObjectLiteralExpression([t])})(t);o&&(i=o)}return y(l("Fragment"),i||a.createObjectLiteralExpression([]),void 0,t,r,n)}function E(t,i,o,c){var l=e.createExpressionForJsxFragment(a,r.getEmitResolver().getJsxFactoryEntity(n),r.getEmitResolver().getJsxFragmentFactoryEntity(n),s.reactNamespace,e.mapDefined(i,u),t,c);return o&&e.startOnNewLine(l),l}function x(t,r){var n=e.getEmitScriptTarget(s);return n&&n>=5?a.createObjectLiteralExpression(((t,r)=>{var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,((t,r)=>e.map(t,(t=>{return r?(n=t,a.createSpreadAssignment(e.visitNode(n.expression,d,e.isExpression))):S(t);var n})))));return r&&n.push(r),n})(t,r)):((t,r)=>{var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,((t,r)=>r?e.map(t,D):a.createObjectLiteralExpression(e.map(t,S)))));return e.isJsxSpreadAttribute(t[0])&&n.unshift(a.createObjectLiteralExpression()),r&&n.push(a.createObjectLiteralExpression([r])),e.singleOrUndefined(n)||o().createAssignHelper(n)})(t,r)}function D(t){return e.visitNode(t.expression,d,e.isExpression)}function S(t){var r=(t=>{var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:a.createStringLiteral(n)})(t),n=T(t.initializer);return a.createPropertyAssignment(r,n)}function T(t){if(void 0===t)return a.createTrue();if(10===t.kind){var r=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),i=a.createStringLiteral(((s=A(o=t.text))===o?void 0:s)||t.text,r);return e.setTextRange(i,t)}var o,s;return 288===t.kind?void 0===t.expression?a.createTrue():e.visitNode(t.expression,d,e.isExpression):e.isJsxElement(t)?_(t,!1):e.isJsxSelfClosingElement(t)?f(t,!1):e.isJsxFragment(t)?m(t,!1):e.Debug.failBadSyntaxKind(t)}function C(e,t){var r=A(t);return void 0===e?r:e+" "+r}function A(r){return r.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,((r,n,i,a,o,s,c)=>{if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var l=t.get(c);return l?e.utf16EncodeAsString(l):r}))}function k(t){if(278===t.kind)return k(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?a.createStringLiteral(e.idText(r)):e.createExpressionFromEntityName(a,r)}function N(t){var r=e.visitNode(t.expression,d,e.isExpression);return t.dotDotDotToken?a.createSpreadElement(r):r}};var t=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))})(p),(e=>{e.transformES2016=t=>{var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(r=>r.isDeclarationFile?r:e.visitEachChild(r,i,t)));function i(a){if(0==(512&a.transformFlags))return a;switch(a.kind){case 221:return(a=>{switch(a.operatorToken.kind){case 67:return(t=>{var a,o,s=e.visitNode(t.left,i,e.isExpression),c=e.visitNode(t.right,i,e.isExpression);if(e.isElementAccessExpression(s)){var l=r.createTempVariable(n),d=r.createTempVariable(n);a=e.setTextRange(r.createElementAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),e.setTextRange(r.createAssignment(d,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(r.createElementAccessExpression(l,d),s)}else e.isPropertyAccessExpression(s)?(l=r.createTempVariable(n),a=e.setTextRange(r.createPropertyAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),s.name),s),o=e.setTextRange(r.createPropertyAccessExpression(l,s.name),s)):(a=s,o=s);return e.setTextRange(r.createAssignment(a,e.setTextRange(r.createGlobalMethodCall("Math","pow",[o,c]),t)),t)})(a);case 42:return(t=>{var n=e.visitNode(t.left,i,e.isExpression),a=e.visitNode(t.right,i,e.isExpression);return e.setTextRange(r.createGlobalMethodCall("Math","pow",[n,a]),t)})(a);default:return e.visitEachChild(a,i,t)}})(a);default:return e.visitEachChild(a,i,t)}}}})(p),(e=>{var t,r,n,i,a,o;function s(e,t){return{kind:e,expression:t}}!(e=>{e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"})(t||(t={})),(e=>{e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"})(r||(r={})),(e=>{e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"})(n||(n={})),(e=>{e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"})(i||(i={})),(e=>{e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.StaticInitializer=16384]="StaticInitializer",e[e.AncestorFactsMask=32767]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=32670]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=32662]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.StaticInitializerIncludes=16449]="StaticInitializerIncludes",e[e.StaticInitializerExcludes=32670]="StaticInitializerExcludes",e[e.NewTarget=32768]="NewTarget",e[e.CapturedLexicalThis=65536]="CapturedLexicalThis",e[e.SubtreeFactsMask=-32768]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"})(a||(a={})),(e=>{e[e.None=0]="None",e[e.UnpackedSpread=1]="UnpackedSpread",e[e.PackedSpread=2]="PackedSpread"})(o||(o={})),e.transformES2015=t=>{var r,n,i,a,o,c,l=t.factory,d=t.getEmitHelperFactory,u=t.startLexicalEnvironment,p=t.resumeLexicalEnvironment,_=t.endLexicalEnvironment,m=t.hoistVariableDeclaration,g=t.getCompilerOptions(),h=t.getEmitResolver(),y=t.onSubstituteNode,v=t.onEmitNode;function b(t){a=e.append(a,l.createVariableDeclaration(t))}return t.onEmitNode=(t,r,n)=>{if(1&c&&e.isFunctionLike(r)){var i=E(32670,8&e.getEmitFlags(r)?81:65);return v(t,r,n),void x(i,0,0)}v(t,r,n)},t.onSubstituteNode=(t,r)=>(r=y(t,r),1===t?(t=>{switch(t.kind){case 79:return(t=>{if(2&c&&!e.isInternalName(t)){var r=h.getReferencedDeclarationWithCollidingName(t);if(r&&(!e.isClassLike(r)||!((t,r)=>{var n=e.getParseTreeNode(r);if(!n||n===t||n.end<=t.pos||n.pos>=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(l.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t})(t);case 108:return(t=>1&c&&16&i?e.setTextRange(l.createUniqueName("_this",48),t):t)(t)}return t})(r):e.isIdentifier(r)?(t=>{if(2&c&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&(e=>{switch(e.parent.kind){case 203:case 257:case 260:case 254:return e.parent.name===e&&h.isDeclarationWithCollidingName(e.parent)}return!1})(r))return e.setTextRange(l.getGeneratedNameForNode(r),t)}return t})(r):r),e.chainBundle(t,(o=>{if(o.isDeclarationFile)return o;r=o,n=o.text;var s=(t=>{var r=E(8064,64),n=[],i=[];u();var o=l.copyPrologue(t.statements,n,!1,T);return e.addRange(i,e.visitNodes(t.statements,T,e.isStatement,o)),a&&i.push(l.createVariableStatement(void 0,l.createVariableDeclarationList(a))),l.mergeLexicalEnvironment(n,_()),V(n,t),x(r,0,0),l.updateSourceFile(t,e.setTextRange(l.createNodeArray(e.concatenate(n,i)),t.statements))})(o);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,a=void 0,i=0,s}));function E(e,t){var r=i;return i=32767&(i&~e|t),r}function x(e,t,r){i=-32768&(i&~t|r)|e}function D(e){return 0!=(8192&i)&&247===e.kind&&!e.expression}function S(t){return 0!=(1024&t.transformFlags)||void 0!==o||8192&i&&(t=>4194304&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)&&fe(t)||0!=(33554432&e.getEmitFlags(t))}function T(e){return S(e)?N(e,!1):e}function C(e){return S(e)?N(e,!0):e}function A(t){if(S(t)){var r=e.getOriginalNode(t);if(e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)){var n=E(32670,16449),i=N(t,!1);return x(n,98304,0),i}return N(t,!1)}return t}function k(e){return 106===e.kind?Ie(!0):T(e)}function N(n,a){switch(n.kind){case 124:return;case 257:return(t=>{var r=l.createVariableDeclaration(l.getLocalName(t,!0),void 0,void 0,P(t));e.setOriginalNode(r,t);var n=[],i=l.createVariableStatement(void 0,l.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)?l.createExportDefault(l.getLocalName(t)):l.createExternalModuleExport(l.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(n.push(l.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(n)})(n);case 226:return(e=>P(e))(n);case 164:return(t=>t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(l.createParameterDeclaration(void 0,void 0,l.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(l.createParameterDeclaration(void 0,void 0,t.name,void 0,void 0,void 0),t),t):t)(n);case 256:return(r=>{var n=o;o=void 0;var a=E(32670,65),s=e.visitParameterList(r.parameters,T,t),c=q(r),d=32768&i?l.getLocalName(r):r.name;return x(a,98304,0),o=n,l.updateFunctionDeclaration(r,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,d,void 0,s,void 0,c)})(n);case 214:return(r=>{16384&r.transformFlags&&!(16384&i)&&(i|=65536);var n=o;o=void 0;var a=E(15232,66),s=l.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,T,t),void 0,q(r));return e.setTextRange(s,r),e.setOriginalNode(s,r),e.setEmitFlags(s,8),x(a,0,0),o=n,s})(n);case 213:return(r=>{var n=262144&e.getEmitFlags(r)?E(32662,69):E(32670,65),a=o;o=void 0;var s=e.visitParameterList(r.parameters,T,t),c=q(r),d=32768&i?l.getLocalName(r):r.name;return x(n,98304,0),o=a,l.updateFunctionExpression(r,void 0,r.asteriskToken,d,void 0,s,void 0,c)})(n);case 254:return Q(n);case 79:return F(n);case 255:return(r=>{if(3&r.flags||524288&r.transformFlags){3&r.flags&&Oe();var n=e.flatMap(r.declarations,1&r.flags?Y:Q),i=l.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),524288&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,(t=>{for(var r=-1,n=-1,i=0,a=t;i<a.length;i++){var o=a[i];r=-1===r?o.pos:-1===o.pos?r:Math.min(r,o.pos),n=Math.max(n,o.end)}return e.createRange(r,n)})(n)),i}return e.visitEachChild(r,T,t)})(n);case 249:return(r=>{if(void 0!==o){var n=o.allowedNonLabeledJumps;o.allowedNonLabeledJumps|=2;var i=e.visitEachChild(r,T,t);return o.allowedNonLabeledJumps=n,i}return e.visitEachChild(r,T,t)})(n);case 263:return(r=>{var n=E(7104,0),i=e.visitEachChild(r,T,t);return x(n,0,0),i})(n);case 235:return((r,n)=>{var a=256&i?E(7104,512):E(6976,128),o=e.visitEachChild(r,T,t);return x(a,0,0),o})(n);case 246:case 245:return(r=>{if(o){var n=246===r.kind?2:4;if(!(r.label&&o.labels&&o.labels.get(e.idText(r.label))||!r.label&&o.allowedNonLabeledJumps&n)){var i=void 0,a=r.label;a?246===r.kind?(i="break-".concat(a.escapedText),Ee(o,!0,e.idText(a),i)):(i="continue-".concat(a.escapedText),Ee(o,!1,e.idText(a),i)):246===r.kind?(o.nonLocalJumps|=2,i="break"):(o.nonLocalJumps|=4,i="continue");var s=l.createStringLiteral(i);if(o.loopOutParameters.length){for(var c=o.loopOutParameters,d=void 0,u=0;u<c.length;u++){var p=ve(c[u],1);d=0===u?p:l.createBinaryExpression(d,27,p)}s=l.createBinaryExpression(d,27,s)}return l.createReturnStatement(s)}}return e.visitEachChild(r,T,t)})(n);case 250:return(t=>{o&&!o.labels&&(o.labels=new e.Map);var r=e.unwrapInnermostStatementOfLabel(t,o&&Z);return e.isIterationStatement(r,!1)?((e,t)=>{switch(e.kind){case 240:case 241:return re(e,t);case 242:return ne(e,t);case 243:return ie(e,t);case 244:return ae(e,t)}})(r,t):l.restoreEnclosingLabel(e.visitNode(r,T,e.isStatement,l.liftToBlock),t,o&&ee)})(n);case 240:case 241:return re(n,void 0);case 242:return ne(n,void 0);case 243:return ie(n,void 0);case 244:return ae(n,void 0);case 238:return(r=>e.visitEachChild(r,C,t))(n);case 205:return(r=>{for(var n=r.properties,a=-1,o=!1,s=0;s<n.length;s++){var c=n[s];if(1048576&c.transformFlags&&4&i||(o=162===e.Debug.checkDefined(c.name).kind)){a=s;break}}if(a<0)return e.visitEachChild(r,T,t);var d=l.createTempVariable(m),u=[],p=l.createAssignment(d,e.setEmitFlags(l.createObjectLiteralExpression(e.visitNodes(n,T,e.isObjectLiteralElementLike,0,a),r.multiLine),o?65536:0));return r.multiLine&&e.startOnNewLine(p),u.push(p),((t,r,n,i)=>{for(var a=r.properties,o=a.length,s=i;s<o;s++){var c=a[s];switch(c.kind){case 172:case 173:var l=e.getAllAccessorDeclarations(r.properties,c);c===l.firstAccessor&&t.push(G(n,l,r,!!r.multiLine));break;case 169:t.push(Ce(c,n,r,r.multiLine));break;case 296:t.push(Se(c,n,r.multiLine));break;case 297:t.push(Te(c,n,r.multiLine));break;default:e.Debug.failBadSyntaxKind(r)}}})(u,r,d,a),u.push(r.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(l.cloneNode(d),d),d.parent)):d),l.inlineExpressions(u)})(n);case 292:return(r=>{var n,i,a,o,s=E(7104,0);if(e.Debug.assert(!!r.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(r.variableDeclaration.name)){var c=l.createTempVariable(void 0),d=l.createVariableDeclaration(c);e.setTextRange(d,r.variableDeclaration);var u=e.flattenDestructuringBinding(r.variableDeclaration,T,t,0,c),p=l.createVariableDeclarationList(u);e.setTextRange(p,r.variableDeclaration);var _=l.createVariableStatement(void 0,p);n=l.updateCatchClause(r,d,(i=r.block,a=_,o=e.visitNodes(i.statements,T,e.isStatement),l.updateBlock(i,f([a],o,!0))))}else n=e.visitEachChild(r,T,t);return x(s,0,0),n})(n);case 297:return(t=>e.setTextRange(l.createPropertyAssignment(t.name,F(l.cloneNode(t.name))),t))(n);case 162:return(r=>e.visitEachChild(r,T,t))(n);case 204:return(r=>e.some(r.elements,e.isSpreadElement)?ke(r.elements,!1,!!r.multiLine,!!r.elements.hasTrailingComma):e.visitEachChild(r,T,t))(n);case 208:return(t=>{if(33554432&e.getEmitFlags(t))return(t=>{var r=e.cast(e.cast(e.skipOuterExpressions(t.expression),e.isArrowFunction).body,e.isBlock),n=t=>e.isVariableStatement(t)&&!!e.first(t.declarationList.declarations).initializer,i=o;o=void 0;var a=e.visitNodes(r.statements,A,e.isStatement);o=i;var s=e.filter(a,n),c=e.filter(a,(e=>!n(e))),d=e.cast(e.first(s),e.isVariableStatement).declarationList.declarations[0],u=e.skipOuterExpressions(d.initializer),p=e.tryCast(u,e.isAssignmentExpression);!p&&e.isBinaryExpression(u)&&27===u.operatorToken.kind&&(p=e.tryCast(u.left,e.isAssignmentExpression));var _=e.cast(p?e.skipOuterExpressions(p.right):u,e.isCallExpression),f=e.cast(e.skipOuterExpressions(_.expression),e.isFunctionExpression),m=f.body.statements,g=0,h=-1,y=[];if(p){var v=e.tryCast(m[g],e.isExpressionStatement);v&&(y.push(v),g++),y.push(m[g]),g++,y.push(l.createExpressionStatement(l.createAssignment(p.left,e.cast(d.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(m,h));)h--;return e.addRange(y,m,g,h),h<-1&&e.addRange(y,m,h+1),e.addRange(y,c),e.addRange(y,s,1),l.restoreOuterExpressions(t.expression,l.restoreOuterExpressions(d.initializer,l.restoreOuterExpressions(p&&p.right,l.updateCallExpression(_,l.restoreOuterExpressions(_.expression,l.updateFunctionExpression(f,void 0,void 0,void 0,void 0,f.parameters,void 0,l.updateBlock(f.body,y))),void 0,_.arguments))))})(t);var r=e.skipOuterExpressions(t.expression);return 106===r.kind||e.isSuperProperty(r)||e.some(t.arguments,e.isSpreadElement)?Ae(t,!0):l.updateCallExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,T,e.isExpression))})(n);case 209:return(r=>{if(e.some(r.arguments,e.isSpreadElement)){var n=l.createCallBinding(l.createPropertyAccessExpression(r.expression,"bind"),m),i=n.target,a=n.thisArg;return l.createNewExpression(l.createFunctionApplyCall(e.visitNode(i,T,e.isExpression),a,ke(l.createNodeArray(f([l.createVoidZero()],r.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(r,T,t)})(n);case 212:return((r,n)=>e.visitEachChild(r,n?C:T,t))(n,a);case 221:return X(n,a);case 351:return((r,n)=>{if(n)return e.visitEachChild(r,C,t);for(var i,a=0;a<r.elements.length;a++){var o=r.elements[a],s=e.visitNode(o,a<r.elements.length-1?C:T,e.isExpression);(i||s!==o)&&(i||(i=r.elements.slice(0,a)),i.push(s))}var c=i?e.setTextRange(l.createNodeArray(i),r.elements):r.elements;return l.updateCommaListExpression(r,c)})(n,a);case 14:case 15:case 16:case 17:return(t=>e.setTextRange(l.createStringLiteral(t.text),t))(n);case 10:return(t=>t.hasExtendedUnicodeEscape?e.setTextRange(l.createStringLiteral(t.text),t):t)(n);case 8:return(t=>384&t.numericLiteralFlags?e.setTextRange(l.createNumericLiteral(t.text),t):t)(n);case 210:return(n=>e.processTaggedTemplateExpression(t,n,T,r,b,e.ProcessLevel.All))(n);case 223:return(t=>{for(var r=l.createStringLiteral(t.head.text),n=0,i=t.templateSpans;n<i.length;n++){var a=i[n],o=[e.visitNode(a.expression,T,e.isExpression)];a.literal.text.length>0&&o.push(l.createStringLiteral(a.literal.text)),r=l.createCallExpression(l.createPropertyAccessExpression(r,"concat"),void 0,o)}return e.setTextRange(r,t)})(n);case 224:return(r=>e.visitEachChild(r,T,t))(n);case 225:return(t=>e.visitNode(t.expression,T,e.isExpression))(n);case 106:return Ie(!1);case 108:return(e=>(2&i&&!(16384&i)&&(i|=65536),o?2&i?(o.containsLexicalThis=!0,e):o.thisName||(o.thisName=l.createUniqueName("this")):e))(n);case 231:return(e=>103===e.keywordToken&&"target"===e.name.escapedText?(i|=32768,l.createUniqueName("_newTarget",48)):e)(n);case 169:return(t=>{e.Debug.assert(!e.isComputedPropertyName(t.name));var r=$(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(l.createPropertyAssignment(t.name,r),t)})(n);case 172:case 173:return(r=>{e.Debug.assert(!e.isComputedPropertyName(r.name));var n=o;o=void 0;var i,a=E(32670,65),s=e.visitParameterList(r.parameters,T,t),c=q(r);return i=172===r.kind?l.updateGetAccessorDeclaration(r,r.modifiers,r.name,s,r.type,c):l.updateSetAccessorDeclaration(r,r.modifiers,r.name,s,c),x(a,98304,0),o=n,i})(n);case 237:return(r=>{var n,i=E(0,e.hasSyntacticModifier(r,1)?32:0);if(o&&0==(3&r.declarationList.flags)&&!(t=>1===t.declarationList.declarations.length&&!!t.declarationList.declarations[0].initializer&&!!(33554432&e.getEmitFlags(t.declarationList.declarations[0].initializer)))(r)){for(var a=void 0,s=0,c=r.declarationList.declarations;s<c.length;s++){var d=c[s];if(ge(o,d),d.initializer){var u=void 0;e.isBindingPattern(d.name)?u=e.flattenDestructuringAssignment(d,T,t,0):(u=l.createBinaryExpression(d.name,63,e.visitNode(d.initializer,T,e.isExpression)),e.setTextRange(u,d)),a=e.append(a,u)}}n=a?e.setTextRange(l.createExpressionStatement(l.inlineExpressions(a)),r):void 0}else n=e.visitEachChild(r,T,t);return x(i,0,0),n})(n);case 247:return(r=>o?(o.nonLocalJumps|=8,D(r)&&(r=w(r)),l.createReturnStatement(l.createObjectLiteralExpression([l.createPropertyAssignment(l.createIdentifier("value"),r.expression?e.visitNode(r.expression,T,e.isExpression):l.createVoidZero())]))):D(r)?w(r):e.visitEachChild(r,T,t))(n);case 217:return(r=>e.visitEachChild(r,C,t))(n);default:return e.visitEachChild(n,T,t)}}function w(t){return e.setOriginalNode(l.createReturnStatement(l.createUniqueName("_this",48)),t)}function F(e){return o&&h.isArgumentsLocalBinding(e)?o.argumentsName||(o.argumentsName=l.createUniqueName("arguments")):e}function P(a){a.name&&Oe();var s=e.getClassExtendsHeritageElement(a),c=l.createFunctionExpression(void 0,void 0,void 0,void 0,s?[l.createParameterDeclaration(void 0,void 0,l.createUniqueName("_super",48))]:[],void 0,((a,s)=>{var c=[],m=l.getInternalName(a),g=e.isIdentifierANonContextualKeyword(m)?l.getGeneratedNameForNode(m):m;u(),((t,r,n)=>{n&&t.push(e.setTextRange(l.createExpressionStatement(d().createExtendsHelper(l.getInternalName(r))),n))})(c,a,s),((r,n,a,s)=>{var c=o;o=void 0;var d=E(32662,73),u=e.getFirstConstructorWithBody(n),m=((t,r)=>{if(!t||!r)return!1;if(e.some(t.parameters))return!1;var n=e.firstOrUndefined(t.body.statements);if(!n||!e.nodeIsSynthesized(n)||238!==n.kind)return!1;var i=n.expression;if(!e.nodeIsSynthesized(i)||208!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||106!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||225!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText})(u,void 0!==s),g=l.createFunctionDeclaration(void 0,void 0,a,void 0,((r,n)=>e.visitParameterList(r&&!n?r.parameters:void 0,T,t)||[])(u,m),void 0,((t,r,n,a)=>{var o=!!n&&104!==e.skipOuterExpressions(n.expression).kind;if(!t)return((t,r)=>{var n=[];p(),l.mergeLexicalEnvironment(n,_()),r&&n.push(l.createReturnStatement(M()));var i=l.createNodeArray(n);e.setTextRange(i,t.members);var a=l.createBlock(i,!0);return e.setTextRange(a,t),e.setEmitFlags(a,1536),a})(r,o);var s=[],c=[];p();var d,u=e.takeWhile(t.body.statements,e.isPrologueDirective),m=((t,r)=>{for(var n=r.length;n<t.length;n+=1){var i=e.getSuperCallFromStatement(t[n]);if(i)return{superCall:i,superStatementIndex:n}}return{superStatementIndex:-1}})(t.body.statements,u),g=m.superCall,h=m.superStatementIndex,y=-1===h?u.length:h+1,v=y;if(a||(v=l.copyStandardPrologue(t.body.statements,s,v,!1)),a||(v=l.copyCustomPrologue(t.body.statements,c,v,T,void 0)),a?d=M():g&&(d=(e=>Ae(e,!1))(g)),d&&(i|=8192),L(s,t),j(s,t,a),e.addRange(c,e.visitNodes(t.body.statements,T,e.isStatement,v)),l.mergeLexicalEnvironment(s,_()),H(s,t,!1),o||d)if(!d||y!==t.body.statements.length||16384&t.body.transformFlags)h<=u.length?z(c,t,d||O()):(z(s,t,O()),d&&((t,r)=>{Me();var n=l.createExpressionStatement(l.createBinaryExpression(l.createThis(),63,r));e.insertStatementAfterCustomPrologue(t,n),e.setCommentRange(n,e.getOriginalNode(r).parent)})(c,d)),I(t.body)||c.push(l.createReturnStatement(l.createUniqueName("_this",48)));else{var b=e.cast(e.cast(d,e.isBinaryExpression).left,e.isCallExpression),E=l.createReturnStatement(d);e.setCommentRange(E,e.getCommentRange(b)),e.setEmitFlags(b,1536),c.push(E)}else V(s,t);var x=l.createBlock(e.setTextRange(l.createNodeArray(f(f(f(f([],u,!0),s,!0),h<=u.length?e.emptyArray:e.visitNodes(t.body.statements,T,e.isStatement,u.length,h-u.length),!0),c,!0)),t.body.statements),!0);return e.setTextRange(x,t.body),x})(u,n,s,m));e.setTextRange(g,u||n),s&&e.setEmitFlags(g,8),r.push(g),x(d,98304,0),o=c})(c,a,g,s),((t,n)=>{for(var i=0,a=n.members;i<a.length;i++){var o=a[i];switch(o.kind){case 234:t.push(W(o));break;case 169:t.push(K(Re(n,o),o,n));break;case 172:case 173:var s=e.getAllAccessorDeclarations(n.members,o);o===s.firstAccessor&&t.push(J(Re(n,o),s,n));break;case 171:case 170:break;default:e.Debug.failBadSyntaxKind(o,r&&r.fileName)}}})(c,a);var h=e.createTokenRange(e.skipTrivia(n,a.members.end),19),y=l.createPartiallyEmittedExpression(g);e.setTextRangeEnd(y,h.end),e.setEmitFlags(y,1536);var v=l.createReturnStatement(y);e.setTextRangePos(v,h.pos),e.setEmitFlags(v,1920),c.push(v),e.insertStatementsAfterStandardPrologue(c,_());var b=l.createBlock(e.setTextRange(l.createNodeArray(c),a.members),!0);return e.setEmitFlags(b,1536),b})(a,s));e.setEmitFlags(c,65536&e.getEmitFlags(a)|524288);var m=l.createPartiallyEmittedExpression(c);e.setTextRangeEnd(m,a.end),e.setEmitFlags(m,1536);var g=l.createPartiallyEmittedExpression(m);e.setTextRangeEnd(g,e.skipTrivia(n,a.pos)),e.setEmitFlags(g,1536);var h=l.createParenthesizedExpression(l.createCallExpression(g,void 0,s?[e.visitNode(s.expression,T,e.isExpression)]:[]));return e.addSyntheticLeadingComment(h,3,"* @class "),h}function I(t){if(247===t.kind)return!0;if(239===t.kind){var r=t;if(r.elseStatement)return I(r.thenStatement)&&I(r.elseStatement)}else if(235===t.kind){var n=e.lastOrUndefined(t.statements);if(n&&I(n))return!0}return!1}function O(){return e.setEmitFlags(l.createThis(),4)}function M(){return l.createLogicalOr(l.createLogicalAnd(l.createStrictInequality(l.createUniqueName("_super",48),l.createNull()),l.createFunctionApplyCall(l.createUniqueName("_super",48),O(),l.createIdentifier("arguments"))),O())}function R(t){return void 0!==t.initializer||e.isBindingPattern(t.name)}function L(t,r){if(!e.some(r.parameters,R))return!1;for(var n=!1,i=0,a=r.parameters;i<a.length;i++){var o=a[i],s=o.name,c=o.initializer;o.dotDotDotToken||(e.isBindingPattern(s)?n=B(t,o,s,c)||n:c&&(U(t,o,s,c),n=!0))}return n}function B(r,n,i,a){return i.elements.length>0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(l.createVariableStatement(void 0,l.createVariableDeclarationList(e.flattenDestructuringBinding(n,T,t,0,l.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(l.createExpressionStatement(l.createAssignment(l.getGeneratedNameForNode(n),e.visitNode(a,T,e.isExpression))),1048576)),!0)}function U(t,r,n,i){i=e.visitNode(i,T,e.isExpression);var a=l.createIfStatement(l.createTypeCheck(l.cloneNode(n),"undefined"),e.setEmitFlags(e.setTextRange(l.createBlock([l.createExpressionStatement(e.setEmitFlags(e.setTextRange(l.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(l.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 j(r,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!((e,t)=>!(!e||!e.dotDotDotToken||t))(o,i))return!1;var s=79===o.name.kind?e.setParent(e.setTextRange(l.cloneNode(o.name),o.name),o.name.parent):l.createTempVariable(void 0);e.setEmitFlags(s,48);var c=79===o.name.kind?l.cloneNode(o.name):s,d=n.parameters.length-1,u=l.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(s,void 0,void 0,l.createArrayLiteralExpression([]))])),o),1048576));var p=l.createForStatement(e.setTextRange(l.createVariableDeclarationList([l.createVariableDeclaration(u,void 0,void 0,l.createNumericLiteral(d))]),o),e.setTextRange(l.createLessThan(u,l.createPropertyAccessExpression(l.createIdentifier("arguments"),"length")),o),e.setTextRange(l.createPostfixIncrement(u),o),l.createBlock([e.startOnNewLine(e.setTextRange(l.createExpressionStatement(l.createAssignment(l.createElementAccessExpression(c,0===d?u:l.createSubtract(u,l.createNumericLiteral(d))),l.createElementAccessExpression(l.createIdentifier("arguments"),u))),o))]));return e.setEmitFlags(p,1048576),e.startOnNewLine(p),a.push(p),79!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(l.createVariableStatement(void 0,l.createVariableDeclarationList(e.flattenDestructuringBinding(o,T,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function V(e,t){return!!(65536&i&&214!==t.kind)&&(z(e,t,l.createThis()),!0)}function z(t,r,n){Me();var i=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(l.createUniqueName("_this",48),void 0,void 0,n)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,r),e.insertStatementAfterCustomPrologue(t,i)}function H(t,r,n){if(32768&i){var a=void 0;switch(r.kind){case 214:return t;case 169:case 172:case 173:a=l.createVoidZero();break;case 171:a=l.createPropertyAccessExpression(e.setEmitFlags(l.createThis(),4),"constructor");break;case 256:case 213:a=l.createConditionalExpression(l.createLogicalAnd(e.setEmitFlags(l.createThis(),4),l.createBinaryExpression(e.setEmitFlags(l.createThis(),4),102,l.getLocalName(r))),void 0,l.createPropertyAccessExpression(e.setEmitFlags(l.createThis(),4),"constructor"),void 0,l.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(l.createUniqueName("_newTarget",48),void 0,void 0,a)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function W(t){return e.setTextRange(l.createEmptyStatement(),t)}function K(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=$(n,n,void 0,i),d=e.visitNode(n.name,T,e.isPropertyName);if(!e.isPrivateIdentifier(d)&&e.getUseDefineForClassFields(t.getCompilerOptions())){var u=e.isComputedPropertyName(d)?d.expression:e.isIdentifier(d)?l.createStringLiteral(e.unescapeLeadingUnderscores(d.escapedText)):d;a=l.createObjectDefinePropertyCall(r,u,l.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var p=e.createMemberAccessForPropertyName(l,r,d,n.name);a=l.createAssignment(p,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var _=e.setTextRange(l.createExpressionStatement(a),n);return e.setOriginalNode(_,n),e.setCommentRange(_,o),e.setEmitFlags(_,48),_}function J(t,r,n){var i=l.createExpressionStatement(G(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function G(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.setParent(e.setTextRange(l.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var d=e.visitNode(a.name,T,e.isPropertyName);if(e.isPrivateIdentifier(d))return e.Debug.failBadSyntaxKind(d,"Encountered unhandled private identifier while transforming ES2015.");var u=e.createExpressionForPropertyName(l,d);e.setEmitFlags(u,1552),e.setSourceMapRange(u,a.name);var p=[];if(o){var _=$(o,void 0,void 0,n);e.setSourceMapRange(_,e.getSourceMapRange(o)),e.setEmitFlags(_,512);var f=l.createPropertyAssignment("get",_);e.setCommentRange(f,e.getCommentRange(o)),p.push(f)}if(s){var m=$(s,void 0,void 0,n);e.setSourceMapRange(m,e.getSourceMapRange(s)),e.setEmitFlags(m,512);var g=l.createPropertyAssignment("set",m);e.setCommentRange(g,e.getCommentRange(s)),p.push(g)}p.push(l.createPropertyAssignment("enumerable",o||s?l.createFalse():l.createTrue()),l.createPropertyAssignment("configurable",l.createTrue()));var h=l.createCallExpression(l.createPropertyAccessExpression(l.createIdentifier("Object"),"defineProperty"),void 0,[c,u,l.createObjectLiteralExpression(p,!0)]);return i&&e.startOnNewLine(h),h}function $(r,n,a,s){var c=o;o=void 0;var d=s&&e.isClassLike(s)&&!e.isStatic(r)?E(32670,73):E(32670,65),u=e.visitParameterList(r.parameters,T,t),p=q(r);return 32768&i&&!a&&(256===r.kind||213===r.kind)&&(a=l.getGeneratedNameForNode(r)),x(d,98304,0),o=c,e.setOriginalNode(e.setTextRange(l.createFunctionExpression(void 0,r.asteriskToken,a,void 0,u,void 0,p),n),r)}function q(t){var n,i,a,o=!1,s=!1,c=[],d=[],u=t.body;if(p(),e.isBlock(u)&&(a=l.copyStandardPrologue(u.statements,c,0,!1),a=l.copyCustomPrologue(u.statements,d,a,T,e.isHoistedFunction),a=l.copyCustomPrologue(u.statements,d,a,T,e.isHoistedVariableStatement)),o=L(d,t)||o,o=j(d,t,!1)||o,e.isBlock(u))a=l.copyCustomPrologue(u.statements,d,a,T),n=u.statements,e.addRange(d,e.visitNodes(u.statements,T,e.isStatement,a)),!o&&u.multiLine&&(o=!0);else{e.Debug.assert(214===t.kind),n=e.moveRangeEnd(u,-1);var f=t.equalsGreaterThanToken;e.nodeIsSynthesized(f)||e.nodeIsSynthesized(u)||(e.rangeEndIsOnSameLineAsRangeStart(f,u,r)?s=!0:o=!0);var m=e.visitNode(u,T,e.isExpression),g=l.createReturnStatement(m);e.setTextRange(g,u),e.moveSyntheticComments(g,u),e.setEmitFlags(g,1440),d.push(g),i=u}if(l.mergeLexicalEnvironment(c,_()),H(c,t,!1),V(c,t),e.some(c)&&(o=!0),d.unshift.apply(d,c),e.isBlock(u)&&e.arrayIsEqualTo(d,u.statements))return u;var h=l.createBlock(e.setTextRange(l.createNodeArray(d),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 X(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,T,t,0,!n):27===r.operatorToken.kind?l.updateBinaryExpression(r,e.visitNode(r.left,C,e.isExpression),r.operatorToken,e.visitNode(r.right,n?C:T,e.isExpression)):e.visitEachChild(r,T,t)}function Y(r){var n=r.name;return e.isBindingPattern(n)?Q(r):!r.initializer&&(e=>{var t=h.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&i)||r&&n&&0!=(512&i))&&0==(4096&i)&&(!h.isDeclarationWithCollidingName(e)||n&&!r&&0==(6144&i))})(r)?l.updateVariableDeclaration(r,r.name,void 0,void 0,l.createVoidZero()):e.visitEachChild(r,T,t)}function Q(r){var n,i=E(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,T,t,0,void 0,0!=(32&i)):e.visitEachChild(r,T,t),x(i,0,0),n}function Z(t){o.labels.set(e.idText(t.label),!0)}function ee(t){o.labels.set(e.idText(t.label),!1)}function te(r,n,a,s,c){var d=E(r,n),p=((r,n,a,s)=>{if(!fe(r)){var c=void 0;o&&(c=o.allowedNonLabeledJumps,o.allowedNonLabeledJumps=6);var d=s?s(r,n,void 0,a):l.restoreEnclosingLabel(e.isForStatement(r)?(t=>l.updateForStatement(t,e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.condition,T,e.isExpression),e.visitNode(t.incrementor,C,e.isExpression),e.visitNode(t.statement,T,e.isStatement,l.liftToBlock)))(r):e.visitEachChild(r,T,t),n,o&&ee);return o&&(o.allowedNonLabeledJumps=c),d}var p=(t=>{var r;switch(t.kind){case 242:case 243:case 244:var n=t.initializer;n&&255===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var s=ue(t)||pe(t)||_e(t),c=0,l=r.declarations;c<l.length;c++)De(t,l[c],i,a,s);var d={loopParameters:i,loopOutParameters:a};return o&&(o.argumentsName&&(d.argumentsName=o.argumentsName),o.thisName&&(d.thisName=o.thisName),o.hoistedLocalVariables&&(d.hoistedLocalVariables=o.hoistedLocalVariables)),d})(r),f=[],m=o;o=p;var g,h,y,v,b,E=ue(r)?((t,r)=>{var n=l.createUniqueName("_loop_init"),a=0!=(1048576&t.initializer.transformFlags),o=0;r.containsLexicalThis&&(o|=8),a&&4&i&&(o|=262144);var s=[];return s.push(l.createVariableStatement(void 0,t.initializer)),be(r.loopOutParameters,2,1,s),{functionName:n,containsYield:a,functionDeclaration:l.createVariableStatement(void 0,e.setEmitFlags(l.createVariableDeclarationList([l.createVariableDeclaration(n,void 0,void 0,e.setEmitFlags(l.createFunctionExpression(void 0,a?l.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(l.createBlock(s,!0),T,e.isBlock)),o))]),2097152)),part:l.createVariableDeclarationList(e.map(r.loopOutParameters,ye))}})(r,p):void 0,x=me(r)?((t,r,n)=>{var a=l.createUniqueName("_loop");u();var o=e.visitNode(t.statement,T,e.isStatement,l.liftToBlock),s=_(),c=[];(pe(t)||_e(t))&&(r.conditionVariable=l.createUniqueName("inc"),t.incrementor?c.push(l.createIfStatement(r.conditionVariable,l.createExpressionStatement(e.visitNode(t.incrementor,T,e.isExpression)),l.createExpressionStatement(l.createAssignment(r.conditionVariable,l.createTrue())))):c.push(l.createIfStatement(l.createLogicalNot(r.conditionVariable),l.createExpressionStatement(l.createAssignment(r.conditionVariable,l.createTrue())))),pe(t)&&c.push(l.createIfStatement(l.createPrefixUnaryExpression(53,e.visitNode(t.condition,T,e.isExpression)),e.visitNode(l.createBreakStatement(),T,e.isStatement)))),e.isBlock(o)?e.addRange(c,o.statements):c.push(o),be(r.loopOutParameters,1,1,c),e.insertStatementsAfterStandardPrologue(c,s);var d=l.createBlock(c,!0);e.isBlock(o)&&e.setOriginalNode(d,o);var p=0!=(1048576&t.statement.transformFlags),f=524288;return r.containsLexicalThis&&(f|=8),p&&0!=(4&i)&&(f|=262144),{functionName:a,containsYield:p,functionDeclaration:l.createVariableStatement(void 0,e.setEmitFlags(l.createVariableDeclarationList([l.createVariableDeclaration(a,void 0,void 0,e.setEmitFlags(l.createFunctionExpression(void 0,p?l.createToken(41):void 0,void 0,void 0,r.loopParameters,void 0,d),f))]),2097152)),part:((t,r,n,i)=>{var a=[],o=!(-5&r.nonLocalJumps||r.labeledNonLocalBreaks||r.labeledNonLocalContinues),s=l.createCallExpression(t,void 0,e.map(r.loopParameters,(e=>e.name))),c=i?l.createYieldExpression(l.createToken(41),e.setEmitFlags(s,8388608)):s;if(o)a.push(l.createExpressionStatement(c)),be(r.loopOutParameters,1,0,a);else{var d=l.createUniqueName("state"),u=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(d,void 0,void 0,c)]));if(a.push(u),be(r.loopOutParameters,1,0,a),8&r.nonLocalJumps){var p=void 0;n?(n.nonLocalJumps|=8,p=l.createReturnStatement(d)):p=l.createReturnStatement(l.createPropertyAccessExpression(d,"value")),a.push(l.createIfStatement(l.createTypeCheck(d,"object"),p))}if(2&r.nonLocalJumps&&a.push(l.createIfStatement(l.createStrictEquality(d,l.createStringLiteral("break")),l.createBreakStatement())),r.labeledNonLocalBreaks||r.labeledNonLocalContinues){var _=[];xe(r.labeledNonLocalBreaks,!0,d,n,_),xe(r.labeledNonLocalContinues,!1,d,n,_),a.push(l.createSwitchStatement(d,l.createCaseBlock(_)))}}return a})(a,r,n,p)}})(r,p,m):void 0;if(o=m,E&&f.push(E.functionDeclaration),x&&f.push(x.functionDeclaration),((e,t,r)=>{var n;if(t.argumentsName&&(r?r.argumentsName=t.argumentsName:(n||(n=[])).push(l.createVariableDeclaration(t.argumentsName,void 0,void 0,l.createIdentifier("arguments")))),t.thisName&&(r?r.thisName=t.thisName:(n||(n=[])).push(l.createVariableDeclaration(t.thisName,void 0,void 0,l.createIdentifier("this")))),t.hoistedLocalVariables)if(r)r.hoistedLocalVariables=t.hoistedLocalVariables;else{n||(n=[]);for(var i=0,a=t.hoistedLocalVariables;i<a.length;i++){var o=a[i];n.push(l.createVariableDeclaration(o))}}if(t.loopOutParameters.length){n||(n=[]);for(var s=0,c=t.loopOutParameters;s<c.length;s++){var d=c[s];n.push(l.createVariableDeclaration(d.outParamName))}}t.conditionVariable&&(n||(n=[]),n.push(l.createVariableDeclaration(t.conditionVariable,void 0,void 0,l.createFalse()))),n&&e.push(l.createVariableStatement(void 0,l.createVariableDeclarationList(n)))})(f,p,m),E&&f.push((h=E.functionName,y=E.containsYield,v=l.createCallExpression(h,void 0,[]),b=y?l.createYieldExpression(l.createToken(41),e.setEmitFlags(v,8388608)):v,l.createExpressionStatement(b))),x)if(s)g=s(r,n,x.part,a);else{var D=he(r,E,l.createBlock(x.part,!0));g=l.restoreEnclosingLabel(D,n,o&&ee)}else{var S=he(r,E,e.visitNode(r.statement,T,e.isStatement,l.liftToBlock));g=l.restoreEnclosingLabel(S,n,o&&ee)}return f.push(g),f})(a,s,d,c);return x(d,0,0),p}function re(e,t){return te(0,1280,e,t)}function ne(e,t){return te(5056,3328,e,t)}function ie(e,t){return te(3008,5376,e,t)}function ae(e,t){return te(3008,5376,e,t,g.downlevelIteration?le:ce)}function oe(r,n,i){var a=[],o=r.initializer;if(e.isVariableDeclarationList(o)){3&r.initializer.flags&&Oe();var s=e.firstOrUndefined(o.declarations);if(s&&e.isBindingPattern(s.name)){var c=e.flattenDestructuringBinding(s,T,t,0,n),d=e.setTextRange(l.createVariableDeclarationList(c),r.initializer);e.setOriginalNode(d,r.initializer),e.setSourceMapRange(d,e.createRange(c[0].pos,e.last(c).end)),a.push(l.createVariableStatement(void 0,d))}else a.push(e.setTextRange(l.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(l.createVariableDeclarationList([l.createVariableDeclaration(s?s.name:l.createTempVariable(void 0),void 0,void 0,n)]),e.moveRangePos(o,-1)),o)),e.moveRangeEnd(o,-1)))}else{var u=l.createAssignment(o,n);e.isDestructuringAssignment(u)?a.push(l.createExpressionStatement(X(u,!0))):(e.setTextRangeEnd(u,o.end),a.push(e.setTextRange(l.createExpressionStatement(e.visitNode(u,T,e.isExpression)),e.moveRangeEnd(o,-1))))}if(i)return se(e.addRange(a,i));var p=e.visitNode(r.statement,T,e.isStatement,l.liftToBlock);return e.isBlock(p)?l.updateBlock(p,e.setTextRange(l.createNodeArray(e.concatenate(a,p.statements)),p.statements)):(a.push(p),se(a))}function se(t){return e.setEmitFlags(l.createBlock(l.createNodeArray(t),!0),432)}function ce(t,r,n){var i=e.visitNode(t.expression,T,e.isExpression),a=l.createLoopVariable(),s=e.isIdentifier(i)?l.getGeneratedNameForNode(i):l.createTempVariable(void 0);e.setEmitFlags(i,48|e.getEmitFlags(i));var c=e.setTextRange(l.createForStatement(e.setEmitFlags(e.setTextRange(l.createVariableDeclarationList([e.setTextRange(l.createVariableDeclaration(a,void 0,void 0,l.createNumericLiteral(0)),e.moveRangePos(t.expression,-1)),e.setTextRange(l.createVariableDeclaration(s,void 0,void 0,i),t.expression)]),t.expression),2097152),e.setTextRange(l.createLessThan(a,l.createPropertyAccessExpression(s,"length")),t.expression),e.setTextRange(l.createPostfixIncrement(a),t.expression),oe(t,l.createElementAccessExpression(s,a),n)),t);return e.setEmitFlags(c,256),e.setTextRange(c,t),l.restoreEnclosingLabel(c,r,o&&ee)}function le(t,r,n,i){var a=e.visitNode(t.expression,T,e.isExpression),s=e.isIdentifier(a)?l.getGeneratedNameForNode(a):l.createTempVariable(void 0),c=e.isIdentifier(a)?l.getGeneratedNameForNode(s):l.createTempVariable(void 0),u=l.createUniqueName("e"),p=l.getGeneratedNameForNode(u),_=l.createTempVariable(void 0),f=e.setTextRange(d().createValuesHelper(a),t.expression),g=l.createCallExpression(l.createPropertyAccessExpression(s,"next"),void 0,[]);m(u),m(_);var h=1024&i?l.inlineExpressions([l.createAssignment(u,l.createVoidZero()),f]):f,y=e.setEmitFlags(e.setTextRange(l.createForStatement(e.setEmitFlags(e.setTextRange(l.createVariableDeclarationList([e.setTextRange(l.createVariableDeclaration(s,void 0,void 0,h),t.expression),l.createVariableDeclaration(c,void 0,void 0,g)]),t.expression),2097152),l.createLogicalNot(l.createPropertyAccessExpression(c,"done")),l.createAssignment(c,g),oe(t,l.createPropertyAccessExpression(c,"value"),n)),t),256);return l.createTryStatement(l.createBlock([l.restoreEnclosingLabel(y,r,o&&ee)]),l.createCatchClause(l.createVariableDeclaration(p),e.setEmitFlags(l.createBlock([l.createExpressionStatement(l.createAssignment(u,l.createObjectLiteralExpression([l.createPropertyAssignment("error",p)])))]),1)),l.createBlock([l.createTryStatement(l.createBlock([e.setEmitFlags(l.createIfStatement(l.createLogicalAnd(l.createLogicalAnd(c,l.createLogicalNot(l.createPropertyAccessExpression(c,"done"))),l.createAssignment(_,l.createPropertyAccessExpression(s,"return"))),l.createExpressionStatement(l.createFunctionCallCall(_,s,[]))),1)]),void 0,e.setEmitFlags(l.createBlock([e.setEmitFlags(l.createIfStatement(u,l.createThrowStatement(l.createPropertyAccessExpression(u,"error"))),1)]),1))]))}function de(e){return 0!=(131072&h.getNodeCheckFlags(e))}function ue(t){return e.isForStatement(t)&&!!t.initializer&&de(t.initializer)}function pe(t){return e.isForStatement(t)&&!!t.condition&&de(t.condition)}function _e(t){return e.isForStatement(t)&&!!t.incrementor&&de(t.incrementor)}function fe(e){return me(e)||ue(e)}function me(e){return 0!=(65536&h.getNodeCheckFlags(e))}function ge(t,r){t.hoistedLocalVariables||(t.hoistedLocalVariables=[]),function r(n){if(79===n.kind)t.hoistedLocalVariables.push(n);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||r(o.name)}}(r.name)}function he(t,r,n){switch(t.kind){case 242:return((t,r,n)=>{var i=t.condition&&de(t.condition),a=i||t.incrementor&&de(t.incrementor);return l.updateForStatement(t,e.visitNode(r?r.part:t.initializer,C,e.isForInitializer),e.visitNode(i?void 0:t.condition,T,e.isExpression),e.visitNode(a?void 0:t.incrementor,C,e.isExpression),n)})(t,r,n);case 243:return((t,r)=>l.updateForInStatement(t,e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),r))(t,n);case 244:return((t,r)=>l.updateForOfStatement(t,void 0,e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),r))(t,n);case 240:return((t,r)=>l.updateDoStatement(t,r,e.visitNode(t.expression,T,e.isExpression)))(t,n);case 241:return((t,r)=>l.updateWhileStatement(t,e.visitNode(t.expression,T,e.isExpression),r))(t,n);default:return e.Debug.failBadSyntaxKind(t,"IterationStatement expected")}}function ye(e){return l.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function ve(e,t){var r=0===t?e.outParamName:e.originalName,n=0===t?e.originalName:e.outParamName;return l.createBinaryExpression(n,63,r)}function be(e,t,r,n){for(var i=0,a=e;i<a.length;i++){var o=a[i];o.flags&t&&n.push(l.createExpressionStatement(ve(o,r)))}}function Ee(t,r,n,i){r?(t.labeledNonLocalBreaks||(t.labeledNonLocalBreaks=new e.Map),t.labeledNonLocalBreaks.set(n,i)):(t.labeledNonLocalContinues||(t.labeledNonLocalContinues=new e.Map),t.labeledNonLocalContinues.set(n,i))}function xe(e,t,r,n,i){e&&e.forEach(((e,a)=>{var o=[];if(!n||n.labels&&n.labels.get(a)){var s=l.createIdentifier(a);o.push(t?l.createBreakStatement(s):l.createContinueStatement(s))}else Ee(n,t,a,e),o.push(l.createReturnStatement(r));i.push(l.createCaseClause(l.createStringLiteral(e),o))}))}function De(t,r,n,i,a){var o=r.name;if(e.isBindingPattern(o))for(var s=0,c=o.elements;s<c.length;s++){var d=c[s];e.isOmittedExpression(d)||De(t,d,n,i,a)}else{n.push(l.createParameterDeclaration(void 0,void 0,o));var u=h.getNodeCheckFlags(r);if(4194304&u||a){var p=l.createUniqueName("out_"+e.idText(o)),_=0;4194304&u&&(_|=1),e.isForStatement(t)&&(t.initializer&&h.isBindingCapturedByNode(t.initializer,r)&&(_|=2),(t.condition&&h.isBindingCapturedByNode(t.condition,r)||t.incrementor&&h.isBindingCapturedByNode(t.incrementor,r))&&(_|=1)),i.push({flags:_,originalName:o,outParamName:p})}}}function Se(t,r,n){var i=l.createAssignment(e.createMemberAccessForPropertyName(l,r,e.visitNode(t.name,T,e.isPropertyName)),e.visitNode(t.initializer,T,e.isExpression));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function Te(t,r,n){var i=l.createAssignment(e.createMemberAccessForPropertyName(l,r,e.visitNode(t.name,T,e.isPropertyName)),l.cloneNode(t.name));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function Ce(t,r,n,i){var a=l.createAssignment(e.createMemberAccessForPropertyName(l,r,e.visitNode(t.name,T,e.isPropertyName)),$(t,t,void 0,n));return e.setTextRange(a,t),i&&e.startOnNewLine(a),a}function Ae(r,n){if(32768&r.transformFlags||106===r.expression.kind||e.isSuperProperty(e.skipOuterExpressions(r.expression))){var i=l.createCallBinding(r.expression,m),a=i.target,o=i.thisArg;106===r.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=32768&r.transformFlags?l.createFunctionApplyCall(e.visitNode(a,k,e.isExpression),106===r.expression.kind?o:e.visitNode(o,T,e.isExpression),ke(r.arguments,!0,!1,!1)):e.setTextRange(l.createFunctionCallCall(e.visitNode(a,k,e.isExpression),106===r.expression.kind?o:e.visitNode(o,T,e.isExpression),e.visitNodes(r.arguments,T,e.isExpression)),r),106===r.expression.kind){var c=l.createLogicalOr(s,O());s=n?l.createAssignment(l.createUniqueName("_this",48),c):c}return e.setOriginalNode(s,r)}return e.visitEachChild(r,T,t)}function ke(t,r,n,i){var a=t.length,o=e.flatten(e.spanMap(t,Ne,((e,t,r,o)=>t(e,n,i&&o===a))));if(1===o.length){var s=o[0];if(r&&!g.downlevelIteration||e.isPackedArrayLiteral(s.expression)||e.isCallToHelper(s.expression,"___spreadArray"))return s.expression}for(var c=d(),u=0!==o[0].kind,p=u?l.createArrayLiteralExpression():o[0].expression,_=u?0:1;_<o.length;_++){var f=o[_];p=c.createSpreadArrayHelper(p,f.expression,1===f.kind&&!r)}return p}function Ne(t){return e.isSpreadElement(t)?we:Pe}function we(t){return e.map(t,Fe)}function Fe(t){var r=e.visitNode(t.expression,T,e.isExpression),n=e.isCallToHelper(r,"___read"),i=n||e.isPackedArrayLiteral(r)?2:1;return!g.downlevelIteration||1!==i||e.isArrayLiteralExpression(r)||n||(r=d().createReadHelper(r,void 0),i=2),s(i,r)}function Pe(t,r,n){return s(0,l.createArrayLiteralExpression(e.visitNodes(l.createNodeArray(t,n),T,e.isExpression),r))}function Ie(e){return 8&i&&!e?l.createPropertyAccessExpression(l.createUniqueName("_super",48),"prototype"):l.createUniqueName("_super",48)}function Oe(){0==(2&c)&&(c|=2,t.enableSubstitution(79))}function Me(){0==(1&c)&&(c|=1,t.enableSubstitution(108),t.enableEmitNotification(171),t.enableEmitNotification(169),t.enableEmitNotification(172),t.enableEmitNotification(173),t.enableEmitNotification(214),t.enableEmitNotification(213),t.enableEmitNotification(256))}function Re(t,r){return e.isStatic(r)?l.getInternalName(t):l.createPropertyAccessExpression(l.getInternalName(t),"prototype")}}})(p),(e=>{e.transformES5=t=>{var r,n,i=t.factory,a=t.getCompilerOptions();1!==a.jsx&&3!==a.jsx||(r=t.onEmitNode,t.onEmitNode=(t,i,a)=>{switch(i.kind){case 280:case 281:case 279:var o=i.tagName;n[e.getOriginalNodeId(o)]=!0}r(t,i,a)},t.enableEmitNotification(280),t.enableEmitNotification(281),t.enableEmitNotification(279),n=[]);var o=t.onSubstituteNode;return t.onSubstituteNode=(t,r)=>r.id&&n&&n[r.id]?o(t,r):(r=o(t,r),e.isPropertyAccessExpression(r)?(t=>{if(e.isPrivateIdentifier(t.name))return t;var r=s(t.name);return r?e.setTextRange(i.createElementAccessExpression(t.expression,r),t):t})(r):e.isPropertyAssignment(r)?(t=>{var r=e.isIdentifier(t.name)&&s(t.name);return r?i.updatePropertyAssignment(t,r,t.initializer):t})(r):r),t.enableSubstitution(206),t.enableSubstitution(296),e.chainBundle(t,(e=>e));function s(t){var r=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(void 0!==r&&r>=81&&r<=116)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}})(p),(e=>{var t,r,n,i,a;!(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={})),(e=>{e[e.Open=0]="Open",e[e.Close=1]="Close"})(r||(r={})),(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={})),(e=>{e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"})(i||(i={})),(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"})(a||(a={})),e.transformGenerators=t=>{var r,n,i,a,o,s,c,l,d,u,p=t.factory,_=t.getEmitHelperFactory,m=t.resumeLexicalEnvironment,g=t.endLexicalEnvironment,h=t.hoistFunctionDeclaration,y=t.hoistVariableDeclaration,v=t.getCompilerOptions(),b=e.getEmitScriptTarget(v),E=t.getEmitResolver(),x=t.onSubstituteNode;t.onSubstituteNode=(t,i)=>(i=x(t,i),1===t?(t=>e.isIdentifier(t)?(t=>{if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=E.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 D,S,T,C,A,k,N,w,F,P,I,O,M=1,R=0,L=0;return e.chainBundle(t,(r=>{if(r.isDeclarationFile||0==(2048&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 a?(r=>{switch(r.kind){case 240:case 241:return(r=>a?(oe(),r=e.visitEachChild(r,B,t),ce(),r):e.visitEachChild(r,B,t))(r);case 249:return(r=>(a&&re({kind:2,isScript:!0,breakLabel:-1}),r=e.visitEachChild(r,B,t),a&&le(),r))(r);case 250:return(r=>(a&&re({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1}),r=e.visitEachChild(r,B,t),a&&de(),r))(r);default:return U(r)}})(r):i?U(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?(t=>{switch(t.kind){case 256:return j(t);case 213:return V(t);default:return e.Debug.failBadSyntaxKind(t)}})(r):2048&n?e.visitEachChild(r,B,t):r}function U(r){switch(r.kind){case 256:return j(r);case 213:return V(r);case 172:case 173:return(r=>{var n=i,o=a;return i=!1,a=!1,r=e.visitEachChild(r,B,t),i=n,a=o,r})(r);case 237:return(t=>{if(1048576&t.transformFlags)$(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r<n.length;r++){var i=n[r];y(i.name)}var a=e.getInitializedVariables(t.declarationList);if(0!==a.length)return e.setSourceMapRange(p.createExpressionStatement(p.inlineExpressions(e.map(a,q))),t)}})(r);case 242:return(r=>{a&&oe();var n=r.initializer;if(n&&e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];y(s.name)}var c=e.getInitializedVariables(n);r=p.updateForStatement(r,c.length>0?p.inlineExpressions(e.map(c,q)):void 0,e.visitNode(r.condition,B,e.isExpression),e.visitNode(r.incrementor,B,e.isExpression),e.visitIterationBody(r.statement,B,t))}else r=e.visitEachChild(r,B,t);return a&&ce(),r})(r);case 243:return(r=>{a&&oe();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];y(s.name)}r=p.updateForInStatement(r,n.declarations[0].name,e.visitNode(r.expression,B,e.isExpression),e.visitNode(r.statement,B,e.isStatement,p.liftToBlock))}else r=e.visitEachChild(r,B,t);return a&&ce(),r})(r);case 246:return(r=>{if(a){var n=me(r.label&&e.idText(r.label));if(n>0)return ve(n,r)}return e.visitEachChild(r,B,t)})(r);case 245:return(r=>{if(a){var n=ge(r.label&&e.idText(r.label));if(n>0)return ve(n,r)}return e.visitEachChild(r,B,t)})(r);case 247:return(t=>{return r=e.visitNode(t.expression,B,e.isExpression),n=t,e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(r?[ye(2),r]:[ye(2)])),n);var r,n})(r);default:return 1048576&r.transformFlags?(r=>{switch(r.kind){case 221:return(r=>{var n=e.getExpressionAssociativity(r);switch(n){case 0:return(r=>X(r.right)?e.isLogicalOperator(r.operatorToken.kind)?(t=>{var r=ee(),n=Z();return xe(n,e.visitNode(t.left,B,e.isExpression),t.left),55===t.operatorToken.kind?Te(r,n,t.left):Se(r,n,t.left),xe(n,e.visitNode(t.right,B,e.isExpression),t.right),te(r),n})(r):27===r.operatorToken.kind?H(r):p.updateBinaryExpression(r,Q(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(r=>{var n=r.left,i=r.right;if(X(i)){var a=void 0;switch(n.kind){case 206:a=p.updatePropertyAccessExpression(n,Q(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),n.name);break;case 207:a=p.updateElementAccessExpression(n,Q(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),Q(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(Q(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 351:return(t=>{for(var r=[],n=0,i=t.elements;n<i.length;n++){var a=i[n];e.isBinaryExpression(a)&&27===a.operatorToken.kind?r.push(H(a)):(X(a)&&r.length>0&&(Ce(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(a,B,e.isExpression)))}return p.inlineExpressions(r)})(r);case 222:return(r=>{if(X(r.whenTrue)||X(r.whenFalse)){var n=ee(),i=ee(),a=Z();return Te(n,e.visitNode(r.condition,B,e.isExpression),r.condition),xe(a,e.visitNode(r.whenTrue,B,e.isExpression),r.whenTrue),De(i),te(n),xe(a,e.visitNode(r.whenFalse,B,e.isExpression),r.whenFalse),te(i),a}return e.visitEachChild(r,B,t)})(r);case 224:return(t=>{var r,n=ee(),i=e.visitNode(t.expression,B,e.isExpression);return t.asteriskToken?((e,t)=>{Ce(7,[e],t)})(0==(8388608&e.getEmitFlags(t.expression))?e.setTextRange(_().createValuesHelper(i),t):i,t):((e,t)=>{Ce(6,[e],t)})(i,t),te(n),r=t,e.setTextRange(p.createCallExpression(p.createPropertyAccessExpression(C,"sent"),void 0,[]),r)})(r);case 204:return(e=>W(e.elements,void 0,void 0,e.multiLine))(r);case 205:return(t=>{var r=t.properties,n=t.multiLine,i=Y(r),a=Z();xe(a,p.createObjectLiteralExpression(e.visitNodes(r,B,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,((r,i)=>{X(i)&&r.length>0&&(Ee(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 207:return(r=>X(r.argumentExpression)?p.updateElementAccessExpression(r,Q(e.visitNode(r.expression,B,e.isLeftHandSideExpression)),e.visitNode(r.argumentExpression,B,e.isExpression)):e.visitEachChild(r,B,t))(r);case 208:return(r=>{if(!e.isImportCall(r)&&e.forEach(r.arguments,X)){var n=p.createCallBinding(r.expression,y,b,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createFunctionApplyCall(Q(e.visitNode(i,B,e.isLeftHandSideExpression)),a,W(r.arguments)),r),r)}return e.visitEachChild(r,B,t)})(r);case 209:return(r=>{if(e.forEach(r.arguments,X)){var n=p.createCallBinding(p.createPropertyAccessExpression(r.expression,"bind"),y),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createNewExpression(p.createFunctionApplyCall(Q(e.visitNode(i,B,e.isExpression)),a,W(r.arguments,p.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,B,t)})(r);default:return e.visitEachChild(r,B,t)}})(r):4196352&r.transformFlags?e.visitEachChild(r,B,t):r}}function j(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionDeclaration(r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,z(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,B,t),i=n,a=o}return i?void h(r):r}function V(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,z(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,B,t),i=n,a=o}return r}function z(t){var r=[],n=i,_=a,f=o,h=s,y=c,v=l,b=d,E=u,x=M,A=D,k=S,N=T,w=C;i=!0,a=!1,o=void 0,s=void 0,c=void 0,l=void 0,d=void 0,u=void 0,M=1,D=void 0,S=void 0,T=void 0,C=p.createTempVariable(void 0),m();var F=p.copyPrologue(t.statements,r,!1,B);K(t.statements,F);var P=Ae();return e.insertStatementsAfterStandardPrologue(r,g()),r.push(p.createReturnStatement(P)),i=n,a=_,o=f,s=h,c=y,l=v,d=b,u=E,M=x,D=A,S=k,T=N,C=w,e.setTextRange(p.createBlock(r,t.multiLine),t)}function H(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)):(X(t)&&r.length>0&&(Ce(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,B,e.isExpression)))}}function W(t,r,n,i){var a,o=Y(t);if(o>0){a=Z();var s=e.visitNodes(t,B,e.isExpression,0,o);xe(a,p.createArrayLiteralExpression(r?f([r],s,!0):s)),r=void 0}var c=e.reduceLeft(t,((t,n)=>{if(X(n)&&t.length>0){var o=void 0!==a;a||(a=Z()),xe(a,o?p.createArrayConcatCall(a,[p.createArrayLiteralExpression(t,i)]):p.createArrayLiteralExpression(r?f([r],t,!0):t,i)),r=void 0,t=[]}return t.push(e.visitNode(n,B,e.isExpression)),t}),[],o);return a?p.createArrayConcatCall(a,[p.createArrayLiteralExpression(c,i)]):e.setTextRange(p.createArrayLiteralExpression(r?f([r],c,!0):c,i),n)}function K(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)G(e[n])}function J(t){e.isBlock(t)?K(t.statements):G(t)}function G(i){var o=a;a||(a=X(i)),(i=>{switch(i.kind){case 235:return(t=>{X(t)?K(t.statements):Ee(e.visitNode(t,B,e.isStatement))})(i);case 238:return(t=>{Ee(e.visitNode(t,B,e.isStatement))})(i);case 239:return(t=>{if(X(t))if(X(t.thenStatement)||X(t.elseStatement)){var r=ee(),n=t.elseStatement?ee():void 0;Te(t.elseStatement?n:r,e.visitNode(t.expression,B,e.isExpression),t.expression),J(t.thenStatement),t.elseStatement&&(De(r),te(n),J(t.elseStatement)),te(r)}else Ee(e.visitNode(t,B,e.isStatement));else Ee(e.visitNode(t,B,e.isStatement))})(i);case 240:return(t=>{if(X(t)){var r=ee(),n=ee();se(r),te(n),J(t.statement),te(r),Se(n,e.visitNode(t.expression,B,e.isExpression)),ce()}else Ee(e.visitNode(t,B,e.isStatement))})(i);case 241:return(t=>{if(X(t)){var r=ee(),n=se(r);te(r),Te(n,e.visitNode(t.expression,B,e.isExpression)),J(t.statement),De(r),ce()}else Ee(e.visitNode(t,B,e.isStatement))})(i);case 242:return(t=>{if(X(t)){var r=ee(),n=ee(),i=se(n);if(t.initializer){var a=t.initializer;e.isVariableDeclarationList(a)?$(a):Ee(e.setTextRange(p.createExpressionStatement(e.visitNode(a,B,e.isExpression)),a))}te(r),t.condition&&Te(i,e.visitNode(t.condition,B,e.isExpression)),J(t.statement),te(n),t.incrementor&&Ee(e.setTextRange(p.createExpressionStatement(e.visitNode(t.incrementor,B,e.isExpression)),t.incrementor)),De(r),ce()}else Ee(e.visitNode(t,B,e.isStatement))})(i);case 243:return(t=>{if(X(t)){var r=Z(),n=Z(),i=p.createLoopVariable(),a=t.initializer;y(i),xe(r,p.createArrayLiteralExpression()),Ee(p.createForInStatement(n,e.visitNode(t.expression,B,e.isExpression),p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(r,"push"),void 0,[n])))),xe(i,p.createNumericLiteral(0));var o=ee(),s=ee(),c=se(s);te(o),Te(c,p.createLessThan(i,p.createPropertyAccessExpression(r,"length")));var l=void 0;if(e.isVariableDeclarationList(a)){for(var d=0,u=a.declarations;d<u.length;d++){var _=u[d];y(_.name)}l=p.cloneNode(a.declarations[0].name)}else l=e.visitNode(a,B,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(l));xe(l,p.createElementAccessExpression(r,i)),J(t.statement),te(s),Ee(p.createExpressionStatement(p.createPostfixIncrement(i))),De(o),ce()}else Ee(e.visitNode(t,B,e.isStatement))})(i);case 245:return(t=>{var r=ge(t.label?e.idText(t.label):void 0);r>0?De(r,t):Ee(t)})(i);case 246:return(t=>{var r=me(t.label?e.idText(t.label):void 0);r>0?De(r,t):Ee(t)})(i);case 247:return(t=>{Ce(8,[e.visitNode(t.expression,B,e.isExpression)],t)})(i);case 248:return(t=>{var r,n,i;X(t)?(r=Q(e.visitNode(t.expression,B,e.isExpression)),n=ee(),i=ee(),te(n),re({kind:1,expression:r,startLabel:n,endLabel:i}),J(t.statement),e.Debug.assert(1===ae()),te(ne().endLabel)):Ee(e.visitNode(t,B,e.isStatement))})(i);case 249:return(t=>{if(X(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(re({kind:2,isScript:!1,breakLabel:f=ee()}),f),a=Q(e.visitNode(t.expression,B,e.isExpression)),o=[],s=-1,c=0;c<n;c++){var l=r.clauses[c];o.push(ee()),290===l.kind&&-1===s&&(s=c)}for(var d=0,u=[];d<n;){var _=0;for(c=d;c<n;c++)if(289===(l=r.clauses[c]).kind){if(X(l.expression)&&u.length>0)break;u.push(p.createCaseClause(e.visitNode(l.expression,B,e.isExpression),[ve(o[c],l.expression)]))}else _++;u.length&&(Ee(p.createSwitchStatement(a,p.createCaseBlock(u))),d+=u.length,u=[]),_>0&&(d+=_,_=0)}for(De(s>=0?o[s]:i),c=0;c<n;c++)te(o[c]),K(r.clauses[c].statements);le()}else Ee(e.visitNode(t,B,e.isStatement));var f})(i);case 250:return(t=>{X(t)?(re({kind:4,isScript:!1,labelText:e.idText(t.label),breakLabel:ee()}),J(t.statement),de()):Ee(e.visitNode(t,B,e.isStatement))})(i);case 251:return(t=>{var r;Ce(9,[e.visitNode(null!==(r=t.expression)&&void 0!==r?r:p.createVoidZero(),B,e.isExpression)],t)})(i);case 252:return(i=>{var a,o;X(i)?(a=ee(),o=ee(),te(a),re({kind:0,state:0,startLabel:a,endLabel:o}),be(),J(i.tryBlock),i.catchClause&&((i=>{var a;if(e.Debug.assert(0===ae()),e.isGeneratedIdentifier(i.name))a=i.name,y(i.name);else{var o=e.idText(i.name);a=Z(o),r||(r=new e.Map,n=[],t.enableSubstitution(79)),r.set(o,!0),n[e.getOriginalNodeId(i)]=a}var s=ie();e.Debug.assert(s.state<1),De(s.endLabel);var c=ee();te(c),s.state=1,s.catchVariable=a,s.catchLabel=c,xe(a,p.createCallExpression(p.createPropertyAccessExpression(C,"sent"),void 0,[])),be()})(i.catchClause.variableDeclaration),J(i.catchClause.block)),i.finallyBlock&&((()=>{e.Debug.assert(0===ae());var t=ie();e.Debug.assert(t.state<2),De(t.endLabel);var r=ee();te(r),t.state=2,t.finallyLabel=r})(),J(i.finallyBlock)),(()=>{e.Debug.assert(0===ae());var t=ne();t.state<2?De(t.endLabel):Ce(10),te(t.endLabel),be(),t.state=3})()):Ee(e.visitEachChild(i,B,t))})(i);default:Ee(e.visitNode(i,B,e.isStatement))}})(i),a=o}function $(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=p.cloneNode(i.name);e.setCommentRange(a,i.name),y(a)}for(var o=e.getInitializedVariables(t),s=o.length,c=0,l=[];c<s;){for(var d=c;d<s&&!(X((i=o[d]).initializer)&&l.length>0);d++)l.push(q(i));l.length&&(Ee(p.createExpressionStatement(p.inlineExpressions(l))),c+=l.length,l=[])}}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 X(e){return!!e&&0!=(1048576&e.transformFlags)}function Y(e){for(var t=e.length,r=0;r<t;r++)if(X(e[r]))return r;return-1}function Q(t){if(e.isGeneratedIdentifier(t)||4096&e.getEmitFlags(t))return t;var r=p.createTempVariable(y);return xe(r,t,t),r}function Z(e){var t=e?p.createUniqueName(e):p.createTempVariable(void 0);return y(t),t}function ee(){d||(d=[]);var e=M;return M++,d[e]=-1,e}function te(t){e.Debug.assert(void 0!==d,"No labels were defined."),d[t]=D?D.length:0}function re(e){o||(o=[],c=[],s=[],l=[]);var t=c.length;return c[t]=0,s[t]=D?D.length:0,o[t]=e,l.push(e),t}function ne(){var t=ie();if(void 0===t)return e.Debug.fail("beginBlock was never called.");var r=c.length;return c[r]=1,s[r]=D?D.length:0,o[r]=t,l.pop(),t}function ie(){return e.lastOrUndefined(l)}function ae(){var e=ie();return e&&e.kind}function oe(){re({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function se(e){var t=ee();return re({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function ce(){e.Debug.assert(3===ae());var t=ne(),r=t.breakLabel;t.isScript||te(r)}function le(){e.Debug.assert(2===ae());var t=ne(),r=t.breakLabel;t.isScript||te(r)}function de(){e.Debug.assert(4===ae());var t=ne();t.isScript||te(t.breakLabel)}function ue(e){return 2===e.kind||3===e.kind}function pe(e){return 4===e.kind}function _e(e){return 3===e.kind}function fe(e,t){for(var r=t;r>=0;r--){var n=l[r];if(!pe(n))break;if(n.labelText===e)return!0}return!1}function me(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(pe(r=l[t])&&r.labelText===e)return r.breakLabel;if(ue(r)&&fe(e,t-1))return r.breakLabel}else for(t=l.length-1;t>=0;t--){var r;if(ue(r=l[t]))return r.breakLabel}return 0}function ge(e){if(l)if(e){for(var t=l.length-1;t>=0;t--)if(_e(r=l[t])&&fe(e,t-1))return r.continueLabel}else for(t=l.length-1;t>=0;t--){var r;if(_e(r=l[t]))return r.continueLabel}return 0}function he(e){if(void 0!==e&&e>0){void 0===u&&(u=[]);var t=p.createNumericLiteral(-1);return void 0===u[e]?u[e]=[t]:u[e].push(t),t}return p.createOmittedExpression()}function ye(t){var r=p.createNumericLiteral(t);return e.addSyntheticTrailingComment(r,3,(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(){Ce(0)}function Ee(e){e?Ce(1,[e]):be()}function xe(e,t,r){Ce(2,[e,t],r)}function De(e,t){Ce(3,[e],t)}function Se(e,t,r){Ce(4,[e,t],r)}function Te(e,t,r){Ce(5,[e,t],r)}function Ce(e,t,r){void 0===D&&(D=[],S=[],T=[]),void 0===d&&te(ee());var n=D.length;D[n]=e,S[n]=t,T[n]=r}function Ae(){R=0,L=0,A=void 0,k=!1,N=!1,w=void 0,F=void 0,P=void 0,I=void 0,O=void 0;var t=(()=>{if(D){for(var t=0;t<D.length;t++)Fe(t);ke(D.length)}else ke(0);if(w){var r=p.createPropertyAccessExpression(C,"label"),n=p.createSwitchStatement(r,p.createCaseBlock(w));return[e.startOnNewLine(n)]}return F||[]})();return _().createGeneratorHelper(e.setEmitFlags(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,C)],void 0,p.createBlock(t,t.length>0)),524288))}function ke(e){(e=>{if(!N)return!0;if(!d||!u)return!1;for(var t=0;t<d.length;t++)if(d[t]===e&&u[t])return!0;return!1})(e)&&(we(e),O=void 0,Ie(void 0,void 0)),F&&w&&Ne(!1),(()=>{if(void 0!==u&&void 0!==A)for(var e=0;e<A.length;e++){var t=A[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var i=n[r],a=u[i];if(void 0!==a)for(var o=0,s=a;o<s.length;o++)s[o].text=String(e)}}})()}function Ne(e){if(w||(w=[]),F){if(O)for(var t=O.length-1;t>=0;t--){var r=O[t];F=[p.createWithStatement(r.expression,p.createBlock(F))]}if(I){var n=I.startLabel,i=I.catchLabel,a=I.finallyLabel,o=I.endLabel;F.unshift(p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createPropertyAccessExpression(C,"trys"),"push"),void 0,[p.createArrayLiteralExpression([he(n),he(i),he(a),he(o)])]))),I=void 0}e&&F.push(p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(C,"label"),p.createNumericLiteral(L+1))))}w.push(p.createCaseClause(p.createNumericLiteral(L),F||[])),F=void 0}function we(e){if(d)for(var t=0;t<d.length;t++)d[t]===e&&(F&&(Ne(!k),k=!1,N=!1,L++),void 0===A&&(A=[]),void 0===A[L]?A[L]=[t]:A[L].push(t))}function Fe(t){if(we(t),(e=>{if(o)for(;R<c.length&&s[R]<=e;R++){var t=o[R],r=c[R];switch(t.kind){case 0:0===r?(P||(P=[]),F||(F=[]),P.push(I),I=t):1===r&&(I=P.pop());break;case 1:0===r?(O||(O=[]),O.push(t)):1===r&&O.pop()}}})(t),!k){k=!1,N=!1;var r=D[t];if(0!==r){if(10===r)return k=!0,void Pe(p.createReturnStatement(p.createArrayLiteralExpression([ye(7)])));var n=S[t];if(1===r)return Pe(n[0]);var i,a,l,d=T[t];switch(r){case 2:return i=n[0],a=n[1],l=d,void Pe(e.setTextRange(p.createExpressionStatement(p.createAssignment(i,a)),l));case 3:return((t,r)=>{k=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),he(t)])),r),384))})(n[0],d);case 4:return((t,r,n)=>{Pe(e.setEmitFlags(p.createIfStatement(r,e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),he(t)])),n),384)),1))})(n[0],n[1],d);case 5:return((t,r,n)=>{Pe(e.setEmitFlags(p.createIfStatement(p.createLogicalNot(r),e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),he(t)])),n),384)),1))})(n[0],n[1],d);case 6:return((t,r)=>{k=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(t?[ye(4),t]:[ye(4)])),r),384))})(n[0],d);case 7:return((t,r)=>{k=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(5),t])),r),384))})(n[0],d);case 8:return Ie(n[0],d);case 9:return((t,r)=>{k=!0,N=!0,Pe(e.setTextRange(p.createThrowStatement(t),r))})(n[0],d)}}}}function Pe(e){e&&(F?F.push(e):F=[e])}function Ie(t,r){k=!0,N=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(t?[ye(2),t]:[ye(2)])),r),384))}}})(p),(e=>{e.transformModule=r=>{var n=r.factory,i=r.getEmitHelperFactory,a=r.startLexicalEnvironment,o=r.endLexicalEnvironment,s=r.hoistVariableDeclaration,c=r.getCompilerOptions(),l=r.getEmitResolver(),d=r.getEmitHost(),u=e.getEmitScriptTarget(c),p=e.getEmitModuleKind(c),_=r.onSubstituteNode,m=r.onEmitNode;r.onSubstituteNode=(t,r)=>(r=_(t,r)).id&&E[r.id]?r:1===t?(t=>{switch(t.kind){case 79:return Q(t);case 208:return(t=>{if(e.isIdentifier(t.expression)){var r=Q(t.expression);if(E[e.getNodeId(r)]=!0,!(e.isIdentifier(r)||4096&e.getEmitFlags(t.expression)))return e.addEmitFlags(n.updateCallExpression(t,r,void 0,t.arguments),536870912)}return t})(t);case 210:return(t=>{if(e.isIdentifier(t.tag)){var r=Q(t.tag);if(E[e.getNodeId(r)]=!0,!(e.isIdentifier(r)||4096&e.getEmitFlags(t.tag)))return e.addEmitFlags(n.updateTaggedTemplateExpression(t,r,void 0,t.template),536870912)}return t})(t);case 221:return(t=>{if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=Z(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){var o=a[i];E[e.getNodeId(n)]=!0,n=X(o,n,t)}return n}}return t})(t)}return t})(r):e.isShorthandPropertyAssignment(r)?(t=>{var r=t.name,i=Q(r);if(i!==r){if(t.objectAssignmentInitializer){var a=n.createAssignment(i,t.objectAssignmentInitializer);return e.setTextRange(n.createPropertyAssignment(r,a),t)}return e.setTextRange(n.createPropertyAssignment(r,i),t)}return t})(r):r,r.onEmitNode=(t,r,n)=>{305===r.kind?(g=r,h=v[e.getOriginalNodeId(g)],m(t,r,n),g=void 0,h=void 0):m(t,r,n)},r.enableSubstitution(208),r.enableSubstitution(210),r.enableSubstitution(79),r.enableSubstitution(221),r.enableSubstitution(297),r.enableEmitNotification(305);var g,h,y,v=[],b=[],E=[];return e.chainBundle(r,(t=>{if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,c)||8388608&t.transformFlags||e.isJsonSourceFile(t)&&e.hasJsonModuleEmitEnabled(c)&&e.outFile(c)))return t;g=t,h=e.collectExternalModuleInfo(r,t,l,c),v[e.getOriginalNodeId(t)]=h;var n=(t=>{switch(t){case e.ModuleKind.AMD:return S;case e.ModuleKind.UMD:return T;default:return D}})(p)(t);return g=void 0,h=void 0,y=!1,n}));function x(){return!(h.exportEquals||!e.isExternalModule(g))}function D(t){a();var i=[],s=e.getStrictOptionValue(c,"alwaysStrict")||!c.noImplicitUseStrict&&e.isExternalModule(g),l=n.copyPrologue(t.statements,i,s&&!e.isJsonSourceFile(t),w);if(x()&&e.append(i,q()),e.length(h.exportedNames))for(var d=0;d<h.exportedNames.length;d+=50)e.append(i,n.createExpressionStatement(e.reduceLeft(h.exportedNames.slice(d,d+50),((t,r)=>n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(e.idText(r))),t)),n.createVoidZero())));e.append(i,e.visitNode(h.externalHelpersImportDeclaration,w,e.isStatement)),e.addRange(i,e.visitNodes(t.statements,w,e.isStatement,l)),N(i,!1),e.insertStatementsAfterStandardPrologue(i,o());var u=n.updateSourceFile(t,e.setTextRange(n.createNodeArray(i),t.statements));return e.addEmitHelpers(u,r.readEmitHelpers()),u}function S(t){var i=n.createIdentifier("define"),a=e.tryGetModuleNameFromFile(n,t,d,c),o=e.isJsonSourceFile(t)&&t,s=C(t,!0),l=s.aliasedModuleNames,u=s.unaliasedModuleNames,p=s.importAliasNames,_=n.updateSourceFile(t,e.setTextRange(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(i,void 0,f(f([],a?[a]:[],!0),[n.createArrayLiteralExpression(o?e.emptyArray:f(f([n.createStringLiteral("require"),n.createStringLiteral("exports")],l,!0),u,!0)),o?o.statements.length?o.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,f([n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports")],p,!0),void 0,k(t))],!1)))]),t.statements));return e.addEmitHelpers(_,r.readEmitHelpers()),_}function T(t){var i=C(t,!1),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,s=i.importAliasNames,l=e.tryGetModuleNameFromFile(n,t,d,c),u=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"factory")],void 0,e.setTextRange(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),e.setEmitFlags(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,f(f([],l?[l]:[],!0),[n.createArrayLiteralExpression(f(f([n.createStringLiteral("require"),n.createStringLiteral("exports")],a,!0),o,!0)),n.createIdentifier("factory")],!1)))])))],!0),void 0)),p=n.updateSourceFile(t,e.setTextRange(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(u,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,f([n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports")],s,!0),void 0,k(t))]))]),t.statements));return e.addEmitHelpers(p,r.readEmitHelpers()),p}function C(t,r){for(var i=[],a=[],o=[],s=0,u=t.amdDependencies;s<u.length;s++){var p=u[s];p.name?(i.push(n.createStringLiteral(p.path)),o.push(n.createParameterDeclaration(void 0,void 0,p.name))):a.push(n.createStringLiteral(p.path))}for(var _=0,f=h.externalImports;_<f.length;_++){var m=f[_],y=e.getExternalModuleNameLiteral(n,m,g,d,l,c),v=e.getLocalNameForExternalImport(n,m,g);y&&(r&&v?(e.setEmitFlags(v,4),i.push(y),o.push(n.createParameterDeclaration(void 0,void 0,v))):a.push(y))}return{aliasedModuleNames:i,unaliasedModuleNames:a,importAliasNames:o}}function A(t){if(!e.isImportEqualsDeclaration(t)&&!e.isExportDeclaration(t)&&e.getExternalModuleNameLiteral(n,t,g,d,l,c)){var r=e.getLocalNameForExternalImport(n,t,g),i=L(t,r);if(i!==r)return n.createExpressionStatement(n.createAssignment(r,i))}}function k(r){a();var i=[],s=n.copyPrologue(r.statements,i,!c.noImplicitUseStrict,w);x()&&e.append(i,q()),e.length(h.exportedNames)&&e.append(i,n.createExpressionStatement(e.reduceLeft(h.exportedNames,((t,r)=>n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(e.idText(r))),t)),n.createVoidZero()))),e.append(i,e.visitNode(h.externalHelpersImportDeclaration,w,e.isStatement)),p===e.ModuleKind.AMD&&e.addRange(i,e.mapDefined(h.externalImports,A)),e.addRange(i,e.visitNodes(r.statements,w,e.isStatement,s)),N(i,!0),e.insertStatementsAfterStandardPrologue(i,o());var l=n.createBlock(i,!0);return y&&e.addEmitHelper(l,t),l}function N(t,r){if(h.exportEquals){var i=e.visitNode(h.exportEquals.expression,P);if(i)if(r){var a=n.createReturnStatement(i);e.setTextRange(a,h.exportEquals),e.setEmitFlags(a,1920),t.push(a)}else a=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),i)),e.setTextRange(a,h.exportEquals),e.setEmitFlags(a,1536),t.push(a)}}function w(t){switch(t.kind){case 266:return(t=>{var r,i=e.getNamespaceDeclarationNode(t);if(p!==e.ModuleKind.AMD){if(!t.importClause)return e.setOriginalNode(e.setTextRange(n.createExpressionStatement(B(t)),t),t);var a=[];i&&!e.isDefaultImport(t)?a.push(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,L(t,B(t)))):(a.push(n.createVariableDeclaration(n.getGeneratedNameForNode(t),void 0,void 0,L(t,B(t)))),i&&e.isDefaultImport(t)&&a.push(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)))),r=e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList(a,u>=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)],u>=2?2:0))));if(V(t)){var o=e.getOriginalNodeId(t);b[o]=z(b[o],t)}else r=z(r,t);return e.singleOrMany(r)})(t);case 265:return(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(X(t.name,B(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,B(t))],u>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(X(n.getExportName(t),n.getLocalName(t))),t),t))),V(t)){var i=e.getOriginalNodeId(t);b[i]=H(b[i],t)}else r=H(r,t);return e.singleOrMany(r)})(t);case 272:return(t=>{if(t.moduleSpecifier){var r=n.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var a=[];p!==e.ModuleKind.AMD&&a.push(e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,B(t))])),t),t));for(var o=0,s=t.exportClause.elements;o<s.length;o++){var l=s[o];if(0===u)a.push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(i().createCreateBindingHelper(r,n.createStringLiteralFromNode(l.propertyName||l.name),l.propertyName?n.createStringLiteralFromNode(l.name):void 0)),l),l));else{var d=!(!e.getESModuleInterop(c)||67108864&e.getEmitFlags(t)||"default"!==e.idText(l.propertyName||l.name)),_=n.createPropertyAccessExpression(d?i().createImportDefaultHelper(r):r,l.propertyName||l.name);a.push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(X(n.getExportName(l),_,void 0,!0)),l),l))}}return e.singleOrMany(a)}return t.exportClause?((a=[]).push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(X(n.cloneNode(t.exportClause.name),((t,r)=>!e.getESModuleInterop(c)||67108864&e.getEmitFlags(t)?r:e.getExportNeedsImportStarHelper(t)?i().createImportStarHelper(r):r)(t,p!==e.ModuleKind.AMD?B(t):e.isExportNamespaceAsDefaultDeclaration(t)?r:n.createIdentifier(e.idText(t.exportClause.name))))),t),t)),e.singleOrMany(a)):e.setOriginalNode(e.setTextRange(n.createExpressionStatement(i().createExportStarHelper(p!==e.ModuleKind.AMD?B(t):r)),t),t)}})(t);case 271:return(t=>{if(!t.isExportEquals){var r,i=t.original;if(i&&V(i)){var a=e.getOriginalNodeId(t);b[a]=$(b[a],n.createIdentifier("default"),e.visitNode(t.expression,P),t,!0)}else r=$(r,n.createIdentifier("default"),e.visitNode(t.expression,P),t,!0);return e.singleOrMany(r)}})(t);case 237:return(t=>{var i,a,o;if(e.hasSyntacticModifier(t,1)){for(var s=void 0,c=!1,l=0,d=t.declarationList.declarations;l<d.length;l++){var u=d[l];if(e.isIdentifier(u.name)&&e.isLocalName(u.name))s||(s=e.visitNodes(t.modifiers,Y,e.isModifier)),a=e.append(a,u);else if(u.initializer)if(!e.isBindingPattern(u.name)&&(e.isArrowFunction(u.initializer)||e.isFunctionExpression(u.initializer)||e.isClassExpression(u.initializer))){var p=n.createAssignment(e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),u.name),u.name),n.createIdentifier(e.getTextOfIdentifierOrLiteral(u.name))),_=n.createVariableDeclaration(u.name,u.exclamationToken,u.type,e.visitNode(u.initializer,P));a=e.append(a,_),o=e.append(o,p),c=!0}else o=e.append(o,j(u))}if(a&&(i=e.append(i,n.updateVariableStatement(t,s,n.updateVariableDeclarationList(t.declarationList,a)))),o){var f=e.setOriginalNode(e.setTextRange(n.createExpressionStatement(n.inlineExpressions(o)),t),t);c&&e.removeAllComments(f),i=e.append(i,f)}}else i=e.append(i,e.visitEachChild(t,P,r));if(V(t)){var m=e.getOriginalNodeId(t);b[m]=W(b[m],t)}else i=W(i,t);return e.singleOrMany(i)})(t);case 256:return(t=>{var i;if(i=e.hasSyntacticModifier(t,1)?e.append(i,e.setOriginalNode(e.setTextRange(n.createFunctionDeclaration(e.visitNodes(t.modifiers,Y,e.isModifier),t.asteriskToken,n.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.parameters,P),void 0,e.visitEachChild(t.body,P,r)),t),t)):e.append(i,e.visitEachChild(t,P,r)),V(t)){var a=e.getOriginalNodeId(t);b[a]=J(b[a],t)}else i=J(i,t);return e.singleOrMany(i)})(t);case 257:return(t=>{var i;if(i=e.hasSyntacticModifier(t,1)?e.append(i,e.setOriginalNode(e.setTextRange(n.createClassDeclaration(e.visitNodes(t.modifiers,Y,e.isModifierLike),n.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.heritageClauses,P),e.visitNodes(t.members,P)),t),t)):e.append(i,e.visitEachChild(t,P,r)),V(t)){var a=e.getOriginalNodeId(t);b[a]=J(b[a],t)}else i=J(i,t);return e.singleOrMany(i)})(t);case 352:return(t=>{if(V(t)&&237===t.original.kind){var r=e.getOriginalNodeId(t);b[r]=W(b[r],t.original)}return t})(t);case 353:return(t=>{var r=e.getOriginalNodeId(t),n=b[r];return n?(delete b[r],e.append(n,t)):t})(t);default:return P(t)}}function F(t,i){if(!(276828160&t.transformFlags))return t;switch(t.kind){case 242:return(t=>n.updateForStatement(t,e.visitNode(t.initializer,I,e.isForInitializer),e.visitNode(t.condition,P,e.isExpression),e.visitNode(t.incrementor,I,e.isExpression),e.visitIterationBody(t.statement,P,r)))(t);case 238:return(t=>n.updateExpressionStatement(t,e.visitNode(t.expression,I,e.isExpression)))(t);case 212:return((t,r)=>n.updateParenthesizedExpression(t,e.visitNode(t.expression,r?I:P,e.isExpression)))(t,i);case 350:return((t,r)=>n.updatePartiallyEmittedExpression(t,e.visitNode(t.expression,r?I:P,e.isExpression)))(t,i);case 208:if(e.isImportCall(t)&&void 0===g.impliedNodeFormat)return(t=>{var r=e.getExternalModuleNameLiteral(n,t,g,d,l,c),i=e.visitNode(e.firstOrUndefined(t.arguments),P),a=!r||i&&e.isStringLiteral(i)&&i.text===r.text?i:r,o=!!(16384&t.transformFlags);switch(c.module){case e.ModuleKind.AMD:return M(a,o);case e.ModuleKind.UMD:return((t,r)=>{if(y=!0,e.isSimpleCopiableExpression(t)){var i=e.isGeneratedIdentifier(t)?t:e.isStringLiteral(t)?n.createStringLiteralFromNode(t):e.setEmitFlags(e.setTextRange(n.cloneNode(t),t),1536);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,R(t,r),void 0,M(i,r))}var a=n.createTempVariable(s);return n.createComma(n.createAssignment(a,t),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,R(a,r),void 0,M(a,r)))})(null!=a?a:n.createVoidZero(),o);case e.ModuleKind.CommonJS:default:return R(a,o)}})(t);break;case 221:if(e.isDestructuringAssignment(t))return((t,n)=>O(t.left)?e.flattenDestructuringAssignment(t,P,r,0,!n,U):e.visitEachChild(t,P,r))(t,i);break;case 219:case 220:return((t,i)=>{if((45===t.operator||46===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var a=Z(t.operand);if(a){var o=void 0,c=e.visitNode(t.operand,P,e.isExpression);e.isPrefixUnaryExpression(t)?c=n.updatePrefixUnaryExpression(t,c):(c=n.updatePostfixUnaryExpression(t,c),i||(o=n.createTempVariable(s),c=n.createAssignment(o,c),e.setTextRange(c,t)),c=n.createComma(c,n.cloneNode(t.operand)),e.setTextRange(c,t));for(var l=0,d=a;l<d.length;l++){var u=d[l];E[e.getNodeId(c)]=!0,c=X(u,c),e.setTextRange(c,t)}return o&&(E[e.getNodeId(c)]=!0,c=n.createComma(c,o),e.setTextRange(c,t)),c}}return e.visitEachChild(t,P,r)})(t,i)}return e.visitEachChild(t,P,r)}function P(e){return F(e,!1)}function I(e){return F(e,!0)}function O(t){if(e.isObjectLiteralExpression(t))for(var r=0,n=t.properties;r<n.length;r++)switch((o=n[r]).kind){case 296:if(O(o.initializer))return!0;break;case 297:if(O(o.name))return!0;break;case 298:if(O(o.expression))return!0;break;case 169:case 172:case 173:return!1;default:e.Debug.assertNever(o,"Unhandled object member kind")}else if(e.isArrayLiteralExpression(t))for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(e.isSpreadElement(o)){if(O(o.expression))return!0}else if(O(o))return!0}else if(e.isIdentifier(t))return e.length(Z(t))>(e.isExportName(t)?1:0);return!1}function M(t,r){var a,o=n.createUniqueName("resolve"),s=n.createUniqueName("reject"),l=[n.createParameterDeclaration(void 0,void 0,o),n.createParameterDeclaration(void 0,void 0,s)],d=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([t||n.createOmittedExpression()]),o,s]))]);u>=2?a=n.createArrowFunction(void 0,void 0,l,void 0,void 0,d):(a=n.createFunctionExpression(void 0,void 0,void 0,void 0,l,void 0,d),r&&e.setEmitFlags(a,8));var p=n.createNewExpression(n.createIdentifier("Promise"),void 0,[a]);return e.getESModuleInterop(c)?n.createCallExpression(n.createPropertyAccessExpression(p,n.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):p}function R(t,r){var a,o=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,[]),s=n.createCallExpression(n.createIdentifier("require"),void 0,t?[t]:[]);return e.getESModuleInterop(c)&&(s=i().createImportStarHelper(s)),u>=2?a=n.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(a=n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(s)])),r&&e.setEmitFlags(a,8)),n.createCallExpression(n.createPropertyAccessExpression(o,"then"),void 0,[a])}function L(t,r){return!e.getESModuleInterop(c)||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?i().createImportStarHelper(r):e.getImportNeedsImportDefaultHelper(t)?i().createImportDefaultHelper(r):r}function B(t){var r=e.getExternalModuleNameLiteral(n,t,g,d,l,c),i=[];return r&&i.push(r),n.createCallExpression(n.createIdentifier("require"),void 0,i)}function U(t,r,i){var a=Z(t);if(a){for(var o=e.isExportName(t)?r:n.createAssignment(t,r),s=0,c=a;s<c.length;s++){var l=c[s];e.setEmitFlags(o,4),o=X(l,o,i)}return o}return n.createAssignment(t,r)}function j(t){return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(e.visitNode(t,P),void 0,r,0,!1,U):n.createAssignment(e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),t.name),t.name),t.initializer?e.visitNode(t.initializer,P):n.createVoidZero())}function V(t){return 0!=(4194304&e.getEmitFlags(t))}function z(e,t){if(h.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=G(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 268:e=G(e,n);break;case 269:for(var i=0,a=n.elements;i<a.length;i++)e=G(e,a[i],!0)}return e}function H(e,t){return h.exportEquals?e:G(e,t)}function W(e,t){if(h.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++)e=K(e,n[r]);return e}function K(t,r){if(h.exportEquals)return t;if(e.isBindingPattern(r.name))for(var n=0,i=r.name.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||(t=K(t,a))}else e.isGeneratedIdentifier(r.name)||(t=G(t,r));return t}function J(t,r){return h.exportEquals||(e.hasSyntacticModifier(r,1)&&(t=$(t,e.hasSyntacticModifier(r,512)?n.createIdentifier("default"):n.getDeclarationName(r),n.getLocalName(r),r)),r.name&&(t=G(t,r))),t}function G(t,r,i){var a=n.getDeclarationName(r),o=h.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];t=$(t,l.name,a,l.name,void 0,i)}return t}function $(t,r,i,a,o,s){return e.append(t,((t,r,i,a,o)=>{var s=e.setTextRange(n.createExpressionStatement(X(t,r,void 0,o)),i);return e.startOnNewLine(s),a||e.setEmitFlags(s,1536),s})(r,i,a,o,s))}function q(){var t;return t=0===u?n.createExpressionStatement(X(n.createIdentifier("__esModule"),n.createTrue())):n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])])),e.setEmitFlags(t,1048576),t}function X(t,r,i,a){return e.setTextRange(a&&0!==u?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(t),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(r)])))])]):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(t)),r),i)}function Y(e){switch(e.kind){case 93:case 88:return}return e}function Q(t){var r,i;if(4096&e.getEmitFlags(t)){var a=e.getExternalHelpersModuleName(g);return a?n.createPropertyAccessExpression(a,t):t}if((!e.isGeneratedIdentifier(t)||64&t.autoGenerateFlags)&&!e.isLocalName(t)){var o=l.getReferencedExportContainer(t,e.isExportName(t));if(o&&305===o.kind)return e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(t)),t);var s=l.getReferencedImportDeclaration(t);if(s){if(e.isImportClause(s))return e.setTextRange(n.createPropertyAccessExpression(n.getGeneratedNameForNode(s.parent),n.createIdentifier("default")),t);if(e.isImportSpecifier(s)){var c=s.propertyName||s.name;return e.setTextRange(n.createPropertyAccessExpression(n.getGeneratedNameForNode((null===(i=null===(r=s.parent)||void 0===r?void 0:r.parent)||void 0===i?void 0:i.parent)||s),n.cloneNode(c)),t)}}}return t}function Z(t){if(!e.isGeneratedIdentifier(t)){var r=l.getReferencedImportDeclaration(t)||l.getReferencedValueDeclaration(t);if(r)return h&&h.exportedBindings[e.getOriginalNodeId(r)]}}};var t={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}})(p),(e=>{e.transformSystemModule=t=>{var r=t.factory,n=t.startLexicalEnvironment,i=t.endLexicalEnvironment,a=t.hoistVariableDeclaration,o=t.getCompilerOptions(),s=t.getEmitResolver(),c=t.getEmitHost(),l=t.onSubstituteNode,d=t.onEmitNode;t.onSubstituteNode=(t,n)=>(e=>h&&e.id&&h[e.id])(n=l(t,n))?n:1===t?(t=>{switch(t.kind){case 79:return(t=>{var n,i;if(4096&e.getEmitFlags(t)){var a=e.getExternalHelpersModuleName(u);return a?r.createPropertyAccessExpression(a,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var o=s.getReferencedImportDeclaration(t);if(o){if(e.isImportClause(o))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode(o.parent),r.createIdentifier("default")),t);if(e.isImportSpecifier(o))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode((null===(i=null===(n=o.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i.parent)||o),r.cloneNode(o.propertyName||o.name)),t)}}return t})(t);case 221:return(t=>{if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=X(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++)n=V(a[i],Y(n));return n}}return t})(t);case 231:return(t=>e.isImportMeta(t)?r.createPropertyAccessExpression(f,r.createIdentifier("meta")):t)(t)}return t})(n):4===t?(t=>{switch(t.kind){case 297:return(t=>{var n,i,a=t.name;if(!e.isGeneratedIdentifier(a)&&!e.isLocalName(a)){var o=s.getReferencedImportDeclaration(a);if(o){if(e.isImportClause(o))return e.setTextRange(r.createPropertyAssignment(r.cloneNode(a),r.createPropertyAccessExpression(r.getGeneratedNameForNode(o.parent),r.createIdentifier("default"))),t);if(e.isImportSpecifier(o))return e.setTextRange(r.createPropertyAssignment(r.cloneNode(a),r.createPropertyAccessExpression(r.getGeneratedNameForNode((null===(i=null===(n=o.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i.parent)||o),r.cloneNode(o.propertyName||o.name))),t)}}return t})(t)}return t})(n):n,t.onEmitNode=(t,r,n)=>{if(305===r.kind){var i=e.getOriginalNodeId(r);u=r,p=y[i],_=b[i],h=E[i],f=x[i],h&&delete E[i],d(t,r,n),u=void 0,p=void 0,_=void 0,f=void 0,h=void 0}else d(t,r,n)},t.enableSubstitution(79),t.enableSubstitution(297),t.enableSubstitution(221),t.enableSubstitution(231),t.enableEmitNotification(305);var u,p,_,f,m,g,h,y=[],v=[],b=[],E=[],x=[];return e.chainBundle(t,(a=>{if(a.isDeclarationFile||!(e.isEffectiveExternalModule(a,o)||8388608&a.transformFlags))return a;var l=e.getOriginalNodeId(a);u=a,g=a,p=y[l]=e.collectExternalModuleInfo(t,a,s,o),_=r.createUniqueName("exports"),b[l]=_,f=x[l]=r.createUniqueName("context");var d=(t=>{for(var n=new e.Map,i=[],a=0,l=t;a<l.length;a++){var d=l[a],p=e.getExternalModuleNameLiteral(r,d,u,c,s,o);if(p){var _=p.text,f=n.get(_);void 0!==f?i[f].externalImports.push(d):(n.set(_,i.length),i.push({name:p,externalImports:[d]}))}}return i})(p.externalImports),v=((t,a)=>{var s=[];n();var c=e.getStrictOptionValue(o,"alwaysStrict")||!o.noImplicitUseStrict&&e.isExternalModule(u),l=r.copyPrologue(t.statements,s,c,T);s.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration("__moduleName",void 0,void 0,r.createLogicalAnd(f,r.createPropertyAccessExpression(f,"id")))]))),e.visitNode(p.externalHelpersImportDeclaration,T,e.isStatement);var d=e.visitNodes(t.statements,T,e.isStatement,l);e.addRange(s,m),e.insertStatementsAfterStandardPrologue(s,i());var _=(e=>{if(p.hasExportStarsToExportValues){if(!p.exportedNames&&0===p.exportSpecifiers.size){for(var t=!1,n=0,i=p.externalImports;n<i.length;n++){var a=i[n];if(272===a.kind&&a.exportClause){t=!0;break}}if(!t){var o=D(void 0);return e.push(o),o.name}}var s=[];if(p.exportedNames)for(var c=0,l=p.exportedNames;c<l.length;c++){var d=l[c];"default"!==d.escapedText&&s.push(r.createPropertyAssignment(r.createStringLiteralFromNode(d),r.createTrue()))}var u=r.createUniqueName("exportedNames");e.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(u,void 0,void 0,r.createObjectLiteralExpression(s,!0))])));var _=D(u);return e.push(_),_.name}})(s),g=2097152&t.transformFlags?r.createModifiersFromModifierFlags(256):void 0,h=r.createObjectLiteralExpression([r.createPropertyAssignment("setters",S(_,a)),r.createPropertyAssignment("execute",r.createFunctionExpression(g,void 0,void 0,void 0,[],void 0,r.createBlock(d,!0)))],!0);return s.push(r.createReturnStatement(h)),r.createBlock(s,!0)})(a,d),C=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,_),r.createParameterDeclaration(void 0,void 0,f)],void 0,v),A=e.tryGetModuleNameFromFile(r,a,c,o),k=r.createArrayLiteralExpression(e.map(d,(e=>e.name))),N=e.setEmitFlags(r.updateSourceFile(a,e.setTextRange(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("System"),"register"),void 0,A?[A,k,C]:[k,C]))]),a.statements)),1024);return e.outFile(o)||e.moveEmitHelpers(N,v,(e=>!e.scoped)),h&&(E[l]=h,h=void 0),u=void 0,p=void 0,_=void 0,f=void 0,m=void 0,g=void 0,N}));function D(t){var n=r.createUniqueName("exportStar"),i=r.createIdentifier("m"),a=r.createIdentifier("n"),o=r.createIdentifier("exports"),s=r.createStrictInequality(a,r.createStringLiteral("default"));return t&&(s=r.createLogicalAnd(s,r.createLogicalNot(r.createCallExpression(r.createPropertyAccessExpression(t,"hasOwnProperty"),void 0,[a])))),r.createFunctionDeclaration(void 0,void 0,n,void 0,[r.createParameterDeclaration(void 0,void 0,i)],void 0,r.createBlock([r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(o,void 0,void 0,r.createObjectLiteralExpression([]))])),r.createForInStatement(r.createVariableDeclarationList([r.createVariableDeclaration(a)]),i,r.createBlock([e.setEmitFlags(r.createIfStatement(s,r.createExpressionStatement(r.createAssignment(r.createElementAccessExpression(o,a),r.createElementAccessExpression(i,a)))),1)])),r.createExpressionStatement(r.createCallExpression(_,void 0,[o]))],!0))}function S(t,n){for(var i=[],a=0,o=n;a<o.length;a++){for(var s=o[a],c=e.forEach(s.externalImports,(t=>e.getLocalNameForExternalImport(r,t,u))),l=c?r.getGeneratedNameForNode(c):r.createUniqueName(""),d=[],p=0,f=s.externalImports;p<f.length;p++){var m=f[p],g=e.getLocalNameForExternalImport(r,m,u);switch(m.kind){case 266:if(!m.importClause)break;case 265:e.Debug.assert(void 0!==g),d.push(r.createExpressionStatement(r.createAssignment(g,l)));break;case 272:if(e.Debug.assert(void 0!==g),m.exportClause)if(e.isNamedExports(m.exportClause)){for(var h=[],y=0,v=m.exportClause.elements;y<v.length;y++){var b=v[y];h.push(r.createPropertyAssignment(r.createStringLiteral(e.idText(b.name)),r.createElementAccessExpression(l,r.createStringLiteral(e.idText(b.propertyName||b.name)))))}d.push(r.createExpressionStatement(r.createCallExpression(_,void 0,[r.createObjectLiteralExpression(h,!0)])))}else d.push(r.createExpressionStatement(r.createCallExpression(_,void 0,[r.createStringLiteral(e.idText(m.exportClause.name)),l])));else d.push(r.createExpressionStatement(r.createCallExpression(t,void 0,[l])))}}i.push(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,l)],void 0,r.createBlock(d,!0)))}return r.createArrayLiteralExpression(i,!0)}function T(t){switch(t.kind){case 266:return(t=>{var n;if(t.importClause&&a(e.getLocalNameForExternalImport(r,t,u)),P(t)){var i=e.getOriginalNodeId(t);v[i]=I(v[i],t)}else n=I(n,t);return e.singleOrMany(n)})(t);case 265:return(t=>{var n;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),a(e.getLocalNameForExternalImport(r,t,u)),P(t)){var i=e.getOriginalNodeId(t);v[i]=O(v[i],t)}else n=O(n,t);return e.singleOrMany(n)})(t);case 272:return(t=>{e.Debug.assertIsDefined(t)})(t);case 271:return(t=>{if(!t.isExportEquals){var n=e.visitNode(t.expression,J,e.isExpression),i=t.original;if(!i||!P(i))return j(r.createIdentifier("default"),n,!0);var a=e.getOriginalNodeId(t);v[a]=U(v[a],r.createIdentifier("default"),n,!0)}})(t);default:return z(t)}}function C(t){if(e.isBindingPattern(t.name))for(var n=0,i=t.name.elements;n<i.length;n++){var o=i[n];e.isOmittedExpression(o)||C(o)}else a(r.cloneNode(t.name))}function A(t){return 0==(2097152&e.getEmitFlags(t))&&(305===g.kind||0==(3&e.getOriginalNode(t).flags))}function k(r,n){var i=n?N:w;return e.isBindingPattern(r.name)?e.flattenDestructuringAssignment(r,J,t,0,!1,i):r.initializer?i(r.name,e.visitNode(r.initializer,J,e.isExpression)):r.name}function N(e,t,r){return F(e,t,r,!0)}function w(e,t,r){return F(e,t,r,!1)}function F(t,n,i,o){return a(r.cloneNode(t)),o?V(t,Y(e.setTextRange(r.createAssignment(t,n),i))):Y(e.setTextRange(r.createAssignment(t,n),i))}function P(t){return 0!=(4194304&e.getEmitFlags(t))}function I(e,t){if(p.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=B(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 268:e=B(e,n);break;case 269:for(var i=0,a=n.elements;i<a.length;i++)e=B(e,a[i])}return e}function O(e,t){return p.exportEquals?e:B(e,t)}function M(e,t,r){if(p.exportEquals)return e;for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];(a.initializer||r)&&(e=R(e,a,r))}return e}function R(t,n,i){if(p.exportEquals)return t;if(e.isBindingPattern(n.name))for(var a=0,o=n.name.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(t=R(t,s,i))}else if(!e.isGeneratedIdentifier(n.name)){var c=void 0;i&&(t=U(t,n.name,r.getLocalName(n)),c=e.idText(n.name)),t=B(t,n,c)}return t}function L(t,n){if(p.exportEquals)return t;var i;if(e.hasSyntacticModifier(n,1)){var a=e.hasSyntacticModifier(n,512)?r.createStringLiteral("default"):n.name;t=U(t,a,r.getLocalName(n)),i=e.getTextOfIdentifierOrLiteral(a)}return n.name&&(t=B(t,n,i)),t}function B(t,n,i){if(p.exportEquals)return t;var a=r.getDeclarationName(n),o=p.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];l.name.escapedText!==i&&(t=U(t,l.name,a))}return t}function U(t,r,n,i){return e.append(t,j(r,n,i))}function j(t,n,i){var a=r.createExpressionStatement(V(t,n));return e.startOnNewLine(a),i||e.setEmitFlags(a,1536),a}function V(t,n){var i=e.isIdentifier(t)?r.createStringLiteralFromNode(t):t;return e.setEmitFlags(n,1536|e.getEmitFlags(n)),e.setCommentRange(r.createCallExpression(_,void 0,[i,n]),n)}function z(n){switch(n.kind){case 237:return(t=>{if(!A(t.declarationList))return e.visitNode(t,J,e.isStatement);for(var n,i,a=e.hasSyntacticModifier(t,1),o=P(t),s=0,c=t.declarationList.declarations;s<c.length;s++){var l=c[s];l.initializer?n=e.append(n,k(l,a&&!o)):C(l)}if(n&&(i=e.append(i,e.setTextRange(r.createExpressionStatement(r.inlineExpressions(n)),t))),o){var d=e.getOriginalNodeId(t);v[d]=M(v[d],t,a)}else i=M(i,t,!1);return e.singleOrMany(i)})(n);case 256:return(n=>{if(m=e.hasSyntacticModifier(n,1)?e.append(m,r.updateFunctionDeclaration(n,e.visitNodes(n.modifiers,q,e.isModifierLike),n.asteriskToken,r.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.parameters,J,e.isParameterDeclaration),void 0,e.visitNode(n.body,J,e.isBlock))):e.append(m,e.visitEachChild(n,J,t)),P(n)){var i=e.getOriginalNodeId(n);v[i]=L(v[i],n)}else m=L(m,n)})(n);case 257:return(t=>{var n,i=r.getLocalName(t);if(a(i),n=e.append(n,e.setTextRange(r.createExpressionStatement(r.createAssignment(i,e.setTextRange(r.createClassExpression(e.visitNodes(t.modifiers,q,e.isModifierLike),t.name,void 0,e.visitNodes(t.heritageClauses,J,e.isHeritageClause),e.visitNodes(t.members,J,e.isClassElement)),t))),t)),P(t)){var o=e.getOriginalNodeId(t);v[o]=L(v[o],t)}else n=L(n,t);return e.singleOrMany(n)})(n);case 242:return H(n,!0);case 243:return(n=>{var i=g;return g=n,n=r.updateForInStatement(n,W(n.initializer),e.visitNode(n.expression,J,e.isExpression),e.visitIterationBody(n.statement,z,t)),g=i,n})(n);case 244:return(n=>{var i=g;return g=n,n=r.updateForOfStatement(n,n.awaitModifier,W(n.initializer),e.visitNode(n.expression,J,e.isExpression),e.visitIterationBody(n.statement,z,t)),g=i,n})(n);case 240:return(n=>r.updateDoStatement(n,e.visitIterationBody(n.statement,z,t),e.visitNode(n.expression,J,e.isExpression)))(n);case 241:return(n=>r.updateWhileStatement(n,e.visitNode(n.expression,J,e.isExpression),e.visitIterationBody(n.statement,z,t)))(n);case 250:return(t=>r.updateLabeledStatement(t,t.label,e.visitNode(t.statement,z,e.isStatement,r.liftToBlock)))(n);case 248:return(t=>r.updateWithStatement(t,e.visitNode(t.expression,J,e.isExpression),e.visitNode(t.statement,z,e.isStatement,r.liftToBlock)))(n);case 249:return(t=>r.updateSwitchStatement(t,e.visitNode(t.expression,J,e.isExpression),e.visitNode(t.caseBlock,z,e.isCaseBlock)))(n);case 263:return(t=>{var n=g;return g=t,t=r.updateCaseBlock(t,e.visitNodes(t.clauses,z,e.isCaseOrDefaultClause)),g=n,t})(n);case 289:return(t=>r.updateCaseClause(t,e.visitNode(t.expression,J,e.isExpression),e.visitNodes(t.statements,z,e.isStatement)))(n);case 290:case 252:return(r=>e.visitEachChild(r,z,t))(n);case 292:return(t=>{var n=g;return g=t,t=r.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,z,e.isBlock)),g=n,t})(n);case 235:return(r=>{var n=g;return g=r,r=e.visitEachChild(r,z,t),g=n,r})(n);case 352:return(t=>{if(P(t)&&237===t.original.kind){var r=e.getOriginalNodeId(t),n=e.hasSyntacticModifier(t.original,1);v[r]=M(v[r],t.original,n)}return t})(n);case 353:return(t=>{var r=e.getOriginalNodeId(t),n=v[r];if(n)return delete v[r],e.append(n,t);var i=e.getOriginalNode(t);return e.isModuleOrEnumDeclaration(i)?e.append(B(n,i),t):t})(n);default:return J(n)}}function H(n,i){var a=g;return g=n,n=r.updateForStatement(n,e.visitNode(n.initializer,i?W:G,e.isForInitializer),e.visitNode(n.condition,J,e.isExpression),e.visitNode(n.incrementor,G,e.isExpression),e.visitIterationBody(n.statement,i?z:J,t)),g=a,n}function W(t){if((t=>e.isVariableDeclarationList(t)&&A(t))(t)){for(var n=void 0,i=0,a=t.declarations;i<a.length;i++){var o=a[i];n=e.append(n,k(o,!1)),o.initializer||C(o)}return n?r.inlineExpressions(n):r.createOmittedExpression()}return e.visitNode(t,G,e.isExpression)}function K(n,i){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 242:return H(n,!1);case 238:return(t=>r.updateExpressionStatement(t,e.visitNode(t.expression,G,e.isExpression)))(n);case 212:return((t,n)=>r.updateParenthesizedExpression(t,e.visitNode(t.expression,n?G:J,e.isExpression)))(n,i);case 350:return((t,n)=>r.updatePartiallyEmittedExpression(t,e.visitNode(t.expression,n?G:J,e.isExpression)))(n,i);case 221:if(e.isDestructuringAssignment(n))return((r,n)=>$(r.left)?e.flattenDestructuringAssignment(r,J,t,0,!n):e.visitEachChild(r,J,t))(n,i);break;case 208:if(e.isImportCall(n))return(t=>{var n=e.getExternalModuleNameLiteral(r,t,u,c,s,o),i=e.visitNode(e.firstOrUndefined(t.arguments),J),a=!n||i&&e.isStringLiteral(i)&&i.text===n.text?i:n;return r.createCallExpression(r.createPropertyAccessExpression(f,r.createIdentifier("import")),void 0,a?[a]:[])})(n);break;case 219:case 220:return((n,i)=>{if((45===n.operator||46===n.operator)&&e.isIdentifier(n.operand)&&!e.isGeneratedIdentifier(n.operand)&&!e.isLocalName(n.operand)&&!e.isDeclarationNameOfEnumOrNamespace(n.operand)){var o=X(n.operand);if(o){var s=void 0,c=e.visitNode(n.operand,J,e.isExpression);e.isPrefixUnaryExpression(n)?c=r.updatePrefixUnaryExpression(n,c):(c=r.updatePostfixUnaryExpression(n,c),i||(s=r.createTempVariable(a),c=r.createAssignment(s,c),e.setTextRange(c,n)),c=r.createComma(c,r.cloneNode(n.operand)),e.setTextRange(c,n));for(var l=0,d=o;l<d.length;l++)c=V(d[l],Y(c));return s&&(c=r.createComma(c,s),e.setTextRange(c,n)),c}}return e.visitEachChild(n,J,t)})(n,i)}return e.visitEachChild(n,J,t)}function J(e){return K(e,!1)}function G(e){return K(e,!0)}function $(t){if(e.isAssignmentExpression(t,!0))return $(t.left);if(e.isSpreadElement(t))return $(t.expression);if(e.isObjectLiteralExpression(t))return e.some(t.properties,$);if(e.isArrayLiteralExpression(t))return e.some(t.elements,$);if(e.isShorthandPropertyAssignment(t))return $(t.name);if(e.isPropertyAssignment(t))return $(t.initializer);if(e.isIdentifier(t)){var r=s.getReferencedExportContainer(t);return void 0!==r&&305===r.kind}return!1}function q(e){switch(e.kind){case 93:case 88:return}return e}function X(t){var n;if(!e.isGeneratedIdentifier(t)){var i=s.getReferencedImportDeclaration(t)||s.getReferencedValueDeclaration(t);if(i){var a=s.getReferencedExportContainer(t,!1);a&&305===a.kind&&(n=e.append(n,r.getDeclarationName(i))),n=e.addRange(n,p&&p.exportedBindings[e.getOriginalNodeId(i)])}}return n}function Y(t){return void 0===h&&(h=[]),h[e.getNodeId(t)]=!0,t}}})(p),(e=>{e.transformECMAScriptModule=t=>{var r,n,i,a=t.factory,o=t.getEmitHelperFactory,s=t.getEmitHost(),c=t.getEmitResolver(),l=t.getCompilerOptions(),d=e.getEmitScriptTarget(l),u=t.onEmitNode,p=t.onSubstituteNode;return t.onEmitNode=(t,n,i)=>{e.isSourceFile(n)?((e.isExternalModule(n)||l.isolatedModules)&&l.importHelpers&&(r=new e.Map),u(t,n,i),r=void 0):u(t,n,i)},t.onSubstituteNode=(t,n)=>(n=p(t,n),r&&e.isIdentifier(n)&&4096&e.getEmitFlags(n)?(t=>{var n=e.idText(t),i=r.get(n);return i||r.set(n,i=a.createUniqueName(n,48)),i})(n):n),t.enableEmitNotification(305),t.enableSubstitution(79),e.chainBundle(t,(r=>{if(r.isDeclarationFile)return r;if(e.isExternalModule(r)||l.isolatedModules){n=r,i=void 0;var s=(r=>{var n=e.createExternalHelpersImportDeclarationIfNeeded(a,o(),r,l);if(n){var i=[],s=a.copyPrologue(r.statements,i);return e.append(i,n),e.addRange(i,e.visitNodes(r.statements,_,e.isStatement,s)),a.updateSourceFile(r,e.setTextRange(a.createNodeArray(i),r.statements))}return e.visitEachChild(r,_,t)})(r);return n=void 0,i&&(s=a.updateSourceFile(s,e.setTextRange(a.createNodeArray(e.insertStatementsAfterCustomPrologue(s.statements.slice(),i)),s.statements))),!e.isExternalModule(r)||e.some(s.statements,e.isExternalModuleIndicator)?s:a.updateSourceFile(s,e.setTextRange(a.createNodeArray(f(f([],s.statements,!0),[e.createEmptyExports(a)],!1)),s.statements))}return r}));function _(t){switch(t.kind){case 265:return e.getEmitModuleKind(l)>=e.ModuleKind.Node16?(t=>{var r;return e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),r=((t,r)=>(e.hasSyntacticModifier(r,1)&&(t=e.append(t,a.createExportDeclaration(void 0,r.isTypeOnly,a.createNamedExports([a.createExportSpecifier(!1,void 0,e.idText(r.name))])))),t))(r=e.append(r,e.setOriginalNode(e.setTextRange(a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.cloneNode(t.name),void 0,void 0,m(t))],d>=2?2:0)),t),t)),t),e.singleOrMany(r)})(t):void 0;case 271:return(e=>e.isExportEquals?void 0:e)(t);case 272:return(t=>{if(void 0!==l.module&&l.module>e.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var r=t.exportClause.name,n=a.getGeneratedNameForNode(r),i=a.createImportDeclaration(void 0,a.createImportClause(!1,void 0,a.createNamespaceImport(n)),t.moduleSpecifier,t.assertClause);e.setOriginalNode(i,t.exportClause);var o=e.isExportNamespaceAsDefaultDeclaration(t)?a.createExportDefault(n):a.createExportDeclaration(void 0,!1,a.createNamedExports([a.createExportSpecifier(!1,n,r)]));return e.setOriginalNode(o,t),[i,o]})(t)}return t}function m(t){var r=e.getExternalModuleNameLiteral(a,t,e.Debug.checkDefined(n),s,c,l),o=[];if(r&&o.push(r),!i){var u=a.createUniqueName("_createRequire",48),p=a.createImportDeclaration(void 0,a.createImportClause(!1,void 0,a.createNamedImports([a.createImportSpecifier(!1,a.createIdentifier("createRequire"),u)])),a.createStringLiteral("module")),_=a.createUniqueName("__require",48),f=a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(_,void 0,void 0,a.createCallExpression(a.cloneNode(u),void 0,[a.createPropertyAccessExpression(a.createMetaProperty(100,a.createIdentifier("meta")),a.createIdentifier("url"))]))],d>=2?2:0));i=[p,f]}var m=i[1].declarationList.declarations[0].name;return e.Debug.assertNode(m,e.isIdentifier),a.createCallExpression(a.cloneNode(m),void 0,o)}}})(p),(e=>{e.transformNodeModule=t=>{var r=t.onSubstituteNode,n=t.onEmitNode,i=e.transformECMAScriptModule(t),a=t.onSubstituteNode,o=t.onEmitNode;t.onSubstituteNode=r,t.onEmitNode=n;var s,c=e.transformModule(t),l=t.onSubstituteNode,d=t.onEmitNode;return t.onSubstituteNode=(t,n)=>e.isSourceFile(n)?(s=n,r(t,n)):s?s.impliedNodeFormat===e.ModuleKind.ESNext?a(t,n):l(t,n):r(t,n),t.onEmitNode=(t,r,i)=>(e.isSourceFile(r)&&(s=r),s?s.impliedNodeFormat===e.ModuleKind.ESNext?o(t,r,i):d(t,r,i):n(t,r,i)),t.enableSubstitution(305),t.enableEmitNotification(305),r=>305===r.kind?u(r):(r=>t.factory.createBundle(e.map(r.sourceFiles,u),r.prepends))(r);function u(t){if(t.isDeclarationFile)return t;s=t;var r=(t.impliedNodeFormat===e.ModuleKind.ESNext?i:c)(t);return s=void 0,e.Debug.assert(e.isSourceFile(r)),r}}})(p),(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)?r=>({diagnosticMessage:173===t.kind?e.isStatic(t)?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.isStatic(t)?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)?r=>{var n;switch(t.kind){case 175: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 174: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 176: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 169:case 168:n=e.isStatic(t)?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:257===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 256: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:r=>{var n=(r=>{switch(t.parent.kind){case 171: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 175:case 180: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 174: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 176: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 169:case 168:return e.isStatic(t.parent)?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:257===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 256:case 179: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 173:case 172: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: ".concat(e.Debug.formatSyntaxKind(t.parent.kind)))}})(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?()=>{var r;switch(t.parent.kind){case 257:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 258:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 195:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 180:case 175:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 169:case 168:r=e.isStatic(t.parent)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:257===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 179:case 256:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 259: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)?()=>({diagnosticMessage:e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&117===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)?()=>({diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}):e.isTypeAliasDeclaration(t)||e.isJSDocTypeAlias(t)?r=>({diagnosticMessage:r.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(t)?e.Debug.checkDefined(t.typeExpression):t.type,typeName:e.isJSDocTypeAlias(t)?e.getNameOfDeclaration(t):t.name}):e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.Debug.formatSyntaxKind(t.kind)));function r(r){var n=(r=>254===t.kind||203===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:167===t.kind||206===t.kind||166===t.kind||164===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.isStatic(t)?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:257===t.parent.kind||164===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=t=>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.isJSDocTypeAlias(t),e.createGetSymbolAccessibilityDiagnosticForNodeName=r=>e.isSetAccessor(r)||e.isGetAccessor(r)?t=>{var n=(t=>e.isStatic(r)?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:257===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)?t=>{var n=(t=>e.isStatic(r)?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:257===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})(p),(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&&164===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 l=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(l,(e=>t(e,n)))}e.getDeclarationDiagnostics=(t,r,n)=>{var a=t.getCompilerOptions();return e.transformNodes(r,t,e.factory,a,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[i],!1).diagnostics},e.isInternalDeclaration=r;var n=531469;function i(t){var i,s,c,l,d,u,p,_,g,h,y,v,b=()=>e.Debug.fail("Diagnostic emitted without context"),E=b,x=!0,D=!1,S=!1,T=!1,C=!1,A=t.factory,k=t.getEmitHost(),N={trackSymbol(e,t,r){if(262144&e.flags)return!1;var n=M(w.isSymbolAccessible(e,t,r,!0));return O(w.getTypeReferenceDirectivesForSymbol(e,r)),n},reportInaccessibleThisError(){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,R(),"this"))},reportInaccessibleUniqueSymbolError(){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,R(),"unique symbol"))},reportCyclicStructureError(){(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,R()))},reportPrivateInBaseOfClassExpression(r){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError(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,R(),r))},reportTruncationError(){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:k,trackReferencedAmbientModule(t,r){var n=w.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return O(n);var i=e.getSourceFileOfNode(t);h.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode(e){D||(u||(u=[])).push(e)},reportNonlocalAugmentation(r,n,i){var a,o=null===(a=n.declarations)||void 0===a?void 0:a.find((t=>e.getSourceFileOfNode(t)===r)),s=e.filter(i.declarations,(t=>e.getSourceFileOfNode(t)!==r));if(s)for(var c=0,l=s;c<l.length;c++){var d=l[c];t.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(d,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(o,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}},reportNonSerializableProperty(r){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,r))},reportImportTypeNodeResolutionModeOverride(){e.isNightly()||!p&&!_||t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}},w=t.getEmitResolver(),F=t.getCompilerOptions(),P=F.noResolve,I=F.stripInternal;return r=>{if(305===r.kind&&r.isDeclarationFile)return r;if(306===r.kind){D=!0,h=new e.Map,y=new e.Map;var n=!1,a=A.createBundle(e.map(r.sourceFiles,(r=>{if(!r.isDeclarationFile){if(n=n||r.hasNoDefaultLib,g=r,i=r,c=void 0,d=!1,l=new e.Map,E=b,T=!1,C=!1,B(r,h),U(r,y),e.isExternalOrCommonJsModule(r)||e.isJsonSourceFile(r)){S=!1,x=!1;var a=e.isSourceFileJS(r)?A.createNodeArray(L(r,!0)):e.visitNodes(r.statements,ne);return A.updateSourceFile(r,[A.createModuleDeclaration([A.createModifier(135)],A.createStringLiteral(e.getResolvedExternalModuleName(t.getEmitHost(),r)),A.createModuleBlock(e.setTextRange(A.createNodeArray(te(a)),r.statements)))],!0,[],[],!1,[])}x=!0;var o=e.isSourceFileJS(r)?A.createNodeArray(L(r)):e.visitNodes(r.statements,ne);return A.updateSourceFile(r,te(o),!0,[],[],!1,[])}})),e.mapDefined(r.prepends,(t=>{if(308===t.kind){var r=e.createUnparsedSourceFile(t,"dts",I);return n=n||!!r.hasNoDefaultLib,B(r,h),O(e.map(r.typeReferenceDirectives,(e=>[e.fileName,e.resolutionMode]))),U(r,y),r}return t})));a.syntheticFileReferences=[],a.syntheticTypeReferences=j(),a.syntheticLibReferences=R(),a.hasNoDefaultLib=n;var o=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,k,!0).declarationFilePath)),p=z(a.syntheticFileReferences,o);return h.forEach(p),a}x=!0,T=!1,C=!1,i=r,g=r,E=b,D=!1,S=!1,d=!1,c=void 0,l=new e.Map,s=void 0,h=B(g,new e.Map),y=U(g,new e.Map);var _,N=[],w=z(N,e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,k,!0).declarationFilePath)));if(e.isSourceFileJS(g))_=A.createNodeArray(L(r)),h.forEach(w),v=e.filter(_,e.isAnyImportSyntax);else{var P=e.visitNodes(r.statements,ne);_=e.setTextRange(A.createNodeArray(te(P)),r.statements),h.forEach(w),v=e.filter(_,e.isAnyImportSyntax),e.isExternalModule(r)&&(!S||T&&!C)&&(_=e.setTextRange(A.createNodeArray(f(f([],_,!0),[e.createEmptyExports(A)],!1)),_))}var M=A.updateSourceFile(r,_,!0,N,j(),r.hasNoDefaultLib,R());return M.exportedModulesFromDeclarationEmit=u,M;function R(){return e.map(e.arrayFrom(y.keys()),(e=>({fileName:e,pos:-1,end:-1})))}function j(){return s?e.mapDefined(e.arrayFrom(s.keys()),V):[]}function V(t){var r=t[0],n=t[1];if(v)for(var i=0,a=v;i<a.length;i++){var o=a[i];if(e.isImportEqualsDeclaration(o)&&e.isExternalModuleReference(o.moduleReference)){var s=o.moduleReference.expression;if(e.isStringLiteralLike(s)&&s.text===r)return}else if(e.isImportDeclaration(o)&&e.isStringLiteral(o.moduleSpecifier)&&o.moduleSpecifier.text===r)return}return m({fileName:r,pos:-1,end:-1},n?{resolutionMode:n}:void 0)}function z(t,n){return i=>{var a;if(i.isDeclarationFile)a=i.fileName;else{if(D&&e.contains(r.sourceFiles,i))return;var o=e.getOutputPathsFor(i,k,!0);a=o.declarationFilePath||o.jsFilePath||i.fileName}if(a){var s=e.moduleSpecifiers.getModuleSpecifier(F,g,e.toPath(n,k.getCurrentDirectory(),k.getCanonicalFileName),e.toPath(a,k.getCurrentDirectory(),k.getCanonicalFileName),k);if(!e.pathIsRelative(s))return void O([[s,void 0]]);var c=e.getRelativePathToDirectoryOrUrl(n,a,k.getCurrentDirectory(),k.getCanonicalFileName,!1);if(e.startsWith(c,"./")&&e.hasExtension(c)&&(c=c.substring(2)),e.startsWith(c,"node_modules/")||e.pathContainsNodeModules(c))return;t.push({pos:-1,end:-1,fileName:c})}}}};function O(t){if(t){s=s||new e.Set;for(var r=0,n=t;r<n.length;r++){var i=n[r];s.add(i)}}}function M(r){if(0===r.accessibility){if(r&&r.aliasesToMakeVisible)if(c)for(var n=0,i=r.aliasesToMakeVisible;n<i.length;n++){var a=i[n];e.pushIfUnique(c,a)}else c=r.aliasesToMakeVisible}else{var o=E(r);if(o)return o.typeName?t.addDiagnostic(e.createDiagnosticForNode(r.errorNode||o.errorNode,o.diagnosticMessage,e.getTextOfNode(o.typeName),r.errorSymbolName,r.errorModuleName)):t.addDiagnostic(e.createDiagnosticForNode(r.errorNode||o.errorNode,o.diagnosticMessage,r.errorSymbolName,r.errorModuleName)),!0}return!1}function R(){return p?e.declarationNameToString(p):_&&e.getNameOfDeclaration(_)?e.declarationNameToString(e.getNameOfDeclaration(_)):_&&e.isExportAssignment(_)?_.isExportEquals?"export=":"default":"(Missing)"}function L(t,r){var i=E;E=r=>r.errorNode&&e.canProduceDiagnostics(r.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(r.errorNode)(r):{diagnosticMessage:r.errorModuleName?e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:r.errorNode||t};var a=w.getDeclarationStatementsForSourceFile(t,n,N,r);return E=i,a}function B(t,r){return P||!e.isUnparsedSource(t)&&e.isSourceFileJS(t)||e.forEach(t.referencedFiles,(n=>{var i=k.getSourceFileFromReference(t,n);i&&r.set(e.getOriginalNodeId(i),i)})),r}function U(t,r){return e.forEach(t.libReferenceDirectives,(t=>{k.getLibFileFromReference(t)&&r.set(e.toFileNameLowerCase(t.fileName),!0)})),r}function j(t){return 79===t.kind?t:202===t.kind?A.updateArrayBindingPattern(t,e.visitNodes(t.elements,r)):A.updateObjectBindingPattern(t,e.visitNodes(t.elements,r));function r(t){return 227===t.kind?t:t.propertyName&&e.isIdentifier(t.propertyName)&&e.isIdentifier(t.name)&&!t.symbol.isReferenced?A.updateBindingElement(t,t.dotDotDotToken,void 0,t.propertyName,z(t)?t.initializer:void 0):A.updateBindingElement(t,t.dotDotDotToken,t.propertyName,j(t.name),z(t)?t.initializer:void 0)}}function V(t,r,n){var i;d||(i=E,E=e.createGetSymbolAccessibilityDiagnosticForNode(t));var o=A.updateParameterDeclaration(t,((t,r,n)=>e.factory.createModifiersFromModifierFlags(a(t,r,void 0)))(t,r),t.dotDotDotToken,j(t.name),w.isOptionalParameter(t)?t.questionToken||A.createToken(57):void 0,W(t,n||t.type,!0),H(t));return d||(E=i),o}function z(t){return(t=>{switch(t.kind){case 167:case 166:return!e.hasEffectiveModifier(t,8);case 164:case 254:return!0}return!1})(t)&&w.isLiteralConstDeclaration(e.getParseTreeNode(t))}function H(t){if(z(t))return w.createLiteralConstValue(e.getParseTreeNode(t),N)}function W(t,r,a){if((a||!e.hasEffectiveModifier(t,8))&&!z(t)){var o,s=164===t.kind&&(w.isRequiredInitializedParameter(t)||w.isOptionalUninitializedParameterProperty(t));return r&&!s?e.visitNode(r,re):e.getParseTreeNode(t)?173===t.kind?A.createKeywordTypeNode(130):(p=t.name,d||(o=E,E=e.createGetSymbolAccessibilityDiagnosticForNode(t)),254===t.kind||203===t.kind?c(w.createTypeOfDeclaration(t,i,n,N)):164===t.kind||167===t.kind||166===t.kind?e.isPropertySignature(t)||!t.initializer?c(w.createTypeOfDeclaration(t,i,n,N,s)):c(w.createTypeOfDeclaration(t,i,n,N,s)||w.createTypeOfExpression(t.initializer,i,n,N)):c(w.createReturnTypeOfSignatureDeclaration(t,i,n,N))):r?e.visitNode(r,re):A.createKeywordTypeNode(130)}function c(e){return p=void 0,d||(E=o),e||A.createKeywordTypeNode(130)}}function K(t){switch((t=e.getParseTreeNode(t)).kind){case 256:case 261:case 258:case 257:case 259:case 260:return!w.isDeclarationVisible(t);case 254:return!J(t);case 265:case 266:case 272:case 271:return!1;case 170:return!0}return!1}function J(t){return!e.isOmittedExpression(t)&&(e.isBindingPattern(t.name)?e.some(t.name.elements,J):w.isDeclarationVisible(t))}function G(t,r,n){if(!e.hasEffectiveModifier(t,8)){var i=e.map(r,(e=>V(e,n)));if(i)return A.createNodeArray(i,r.hasTrailingComma)}}function $(t,r){var n;if(!r){var i=e.getThisParameter(t);i&&(n=[V(i)])}if(e.isSetAccessorDeclaration(t)){var a=void 0;if(!r){var o=e.getSetAccessorValueParameter(t);o&&(a=V(o,void 0,de(t,w.getAllAccessorDeclarations(t))))}a||(a=A.createParameterDeclaration(void 0,void 0,"value")),n=e.append(n,a)}return A.createNodeArray(n||e.emptyArray)}function q(t,r){return e.hasEffectiveModifier(t,8)?void 0:e.visitNodes(r,re)}function X(t){return e.isSourceFile(t)||e.isTypeAliasDeclaration(t)||e.isModuleDeclaration(t)||e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionLike(t)||e.isIndexSignatureDeclaration(t)||e.isMappedTypeNode(t)}function Y(e,t){M(w.isEntityNameVisible(e,t)),O(w.getTypeReferenceDirectivesForEntityName(e))}function Q(t,r){return e.hasJSDocNodes(t)&&e.hasJSDocNodes(r)&&(t.jsDoc=r.jsDoc),e.setCommentRange(t,e.getCommentRange(r))}function Z(r,n){if(n){if(S=S||261!==r.kind&&200!==r.kind,e.isStringLiteralLike(n))if(D){var i=e.getExternalModuleNameFromDeclaration(t.getEmitHost(),w,r);if(i)return A.createStringLiteral(i)}else{var a=w.getSymbolOfExternalModuleSpecifier(n);a&&(u||(u=[])).push(a)}return n}}function ee(r){if(void 0!==e.getResolutionModeOverrideForClause(r))return e.isNightly()||t.addDiagnostic(e.createDiagnosticForNode(r,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),r}function te(t){for(;e.length(c);){var r=c.shift();if(!e.isLateVisibilityPaintedStatement(r))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(e.Debug.formatSyntaxKind(r.kind)));var n=x;x=r.parent&&e.isSourceFile(r.parent)&&!(e.isExternalModule(r.parent)&&D);var i=ae(r);x=n,l.set(e.getOriginalNodeId(r),i)}return e.visitNodes(t,(t=>{if(e.isLateVisibilityPaintedStatement(t)){var r=e.getOriginalNodeId(t);if(l.has(r)){var n=l.get(r);return l.delete(r),n&&((e.isArray(n)?e.some(n,e.needsScopeMarker):e.needsScopeMarker(n))&&(T=!0),e.isSourceFile(t.parent)&&(e.isArray(n)?e.some(n,e.isExternalModuleIndicator):e.isExternalModuleIndicator(n))&&(S=!0)),n}}return t}))}function re(r){if(!se(r)){if(e.isDeclaration(r)){if(K(r))return;if(e.hasDynamicName(r)&&!w.isLateBound(e.getParseTreeNode(r)))return}if(!(e.isFunctionLike(r)&&w.isImplementationOfOverload(r)||e.isSemicolonClassElement(r))){var n;X(r)&&(n=i,i=r);var a=E,o=e.canProduceDiagnostics(r),s=d,c=(182===r.kind||195===r.kind)&&259!==r.parent.kind;if((e.isMethodDeclaration(r)||e.isMethodSignature(r))&&e.hasEffectiveModifier(r,8)){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations[0]!==r)return;return v(A.createPropertyDeclaration(le(r),r.name,void 0,void 0,void 0))}if(o&&!d&&(E=e.createGetSymbolAccessibilityDiagnosticForNode(r)),e.isTypeQueryNode(r)&&Y(r.exprName,i),c&&(d=!0),(e=>{switch(e.kind){case 175:case 171:case 169:case 172:case 173:case 167:case 166:case 168:case 174:case 176:case 254:case 163:case 228:case 178:case 189:case 179:case 180:case 200:return!0}return!1})(r))switch(r.kind){case 228:(e.isEntityName(r.expression)||e.isEntityNameExpression(r.expression))&&Y(r.expression,i);var l=e.visitEachChild(r,re,t);return v(A.updateExpressionWithTypeArguments(l,l.expression,l.typeArguments));case 178:return Y(r.typeName,i),l=e.visitEachChild(r,re,t),v(A.updateTypeReferenceNode(l,l.typeName,l.typeArguments));case 175:return v(A.updateConstructSignature(r,q(r,r.typeParameters),G(r,r.parameters),W(r,r.type)));case 171:return v(A.createConstructorDeclaration(le(r),G(r,r.parameters,0),void 0));case 169:return e.isPrivateIdentifier(r.name)?v(void 0):v(A.createMethodDeclaration(le(r),void 0,r.name,r.questionToken,q(r,r.typeParameters),G(r,r.parameters),W(r,r.type),void 0));case 172:if(e.isPrivateIdentifier(r.name))return v(void 0);var u=de(r,w.getAllAccessorDeclarations(r));return v(A.updateGetAccessorDeclaration(r,le(r),r.name,$(r,e.hasEffectiveModifier(r,8)),W(r,u),void 0));case 173:return e.isPrivateIdentifier(r.name)?v(void 0):v(A.updateSetAccessorDeclaration(r,le(r),r.name,$(r,e.hasEffectiveModifier(r,8)),void 0));case 167:return e.isPrivateIdentifier(r.name)?v(void 0):v(A.updatePropertyDeclaration(r,le(r),r.name,r.questionToken,W(r,r.type),H(r)));case 166:return e.isPrivateIdentifier(r.name)?v(void 0):v(A.updatePropertySignature(r,le(r),r.name,r.questionToken,W(r,r.type)));case 168:return e.isPrivateIdentifier(r.name)?v(void 0):v(A.updateMethodSignature(r,le(r),r.name,r.questionToken,q(r,r.typeParameters),G(r,r.parameters),W(r,r.type)));case 174:return v(A.updateCallSignature(r,q(r,r.typeParameters),G(r,r.parameters),W(r,r.type)));case 176:return v(A.updateIndexSignature(r,le(r),G(r,r.parameters),e.visitNode(r.type,re)||A.createKeywordTypeNode(130)));case 254:return e.isBindingPattern(r.name)?oe(r.name):(c=!0,d=!0,v(A.updateVariableDeclaration(r,r.name,void 0,W(r,r.type),H(r))));case 163:return(t=>169===t.parent.kind&&e.hasEffectiveModifier(t.parent,8))(r)&&(r.default||r.constraint)?v(A.updateTypeParameterDeclaration(r,r.modifiers,r.name,void 0,void 0)):v(e.visitEachChild(r,re,t));case 189:var _=e.visitNode(r.checkType,re),f=e.visitNode(r.extendsType,re),m=i;i=r.trueType;var h=e.visitNode(r.trueType,re);i=m;var y=e.visitNode(r.falseType,re);return v(A.updateConditionalTypeNode(r,_,f,h,y));case 179:return v(A.updateFunctionTypeNode(r,e.visitNodes(r.typeParameters,re),G(r,r.parameters),e.visitNode(r.type,re)));case 180:return v(A.updateConstructorTypeNode(r,le(r),e.visitNodes(r.typeParameters,re),G(r,r.parameters),e.visitNode(r.type,re)));case 200:return e.isLiteralImportTypeNode(r)?v(A.updateImportTypeNode(r,A.updateLiteralTypeNode(r.argument,Z(r,r.argument.literal)),r.assertions,r.qualifier,e.visitNodes(r.typeArguments,re,e.isTypeNode),r.isTypeOf)):v(r);default:e.Debug.assertNever(r,"Attempted to process unhandled node kind: ".concat(e.Debug.formatSyntaxKind(r.kind)))}return e.isTupleTypeNode(r)&&e.getLineAndCharacterOfPosition(g,r.pos).line===e.getLineAndCharacterOfPosition(g,r.end).line&&e.setEmitFlags(r,1),v(e.visitEachChild(r,re,t))}}function v(t){return t&&o&&e.hasDynamicName(r)&&(t=>{var r;d||(r=E,E=e.createGetSymbolAccessibilityDiagnosticForNodeName(t)),p=t.name,e.Debug.assert(w.isLateBound(e.getParseTreeNode(t))),Y(t.name.expression,i),d||(E=r),p=void 0})(r),X(r)&&(i=n),o&&!d&&(E=a),c&&(d=s),t===r?t:t&&e.setOriginalNode(Q(t,r),r)}}function ne(t){if((e=>{switch(e.kind){case 256:case 261:case 265:case 258:case 257:case 259:case 260:case 237:case 266:case 272:case 271:return!0}return!1})(t)&&!se(t)){switch(t.kind){case 272:return e.isSourceFile(t.parent)&&(S=!0),C=!0,A.updateExportDeclaration(t,t.modifiers,t.isTypeOnly,t.exportClause,Z(t,t.moduleSpecifier),e.getResolutionModeOverrideForClause(t.assertClause)?t.assertClause:void 0);case 271:if(e.isSourceFile(t.parent)&&(S=!0),C=!0,79===t.expression.kind)return t;var r=A.createUniqueName("_default",16);E=()=>({diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t}),_=t;var i=A.createVariableDeclaration(r,void 0,w.createTypeOfExpression(t.expression,t,n,N),void 0);_=void 0;var a=A.createVariableStatement(x?[A.createModifier(135)]:[],A.createVariableDeclarationList([i],2));return Q(a,t),e.removeAllComments(t),[a,A.updateExportAssignment(t,t.modifiers,r)]}var o=ae(t);return l.set(e.getOriginalNodeId(t),o),t}}function ie(t){if(e.isImportEqualsDeclaration(t)||e.hasEffectiveModifier(t,512)||!e.canHaveModifiers(t))return t;var r=A.createModifiersFromModifierFlags(257022&e.getEffectiveModifierFlags(t));return A.updateModifiers(t,r)}function ae(t){if(c)for(;e.orderedRemoveItem(c,t););if(!se(t)){switch(t.kind){case 265:return(t=>{if(w.isDeclarationVisible(t)){if(277===t.moduleReference.kind){var r=e.getExternalModuleImportEqualsDeclarationExpression(t);return A.updateImportEqualsDeclaration(t,t.modifiers,t.isTypeOnly,t.name,A.updateExternalModuleReference(t.moduleReference,Z(t,r)))}var n=E;return E=e.createGetSymbolAccessibilityDiagnosticForNode(t),Y(t.moduleReference,i),E=n,t}})(t);case 266:return(t=>{if(!t.importClause)return A.updateImportDeclaration(t,t.modifiers,t.importClause,Z(t,t.moduleSpecifier),ee(t.assertClause));var r=t.importClause&&t.importClause.name&&w.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return r&&A.updateImportDeclaration(t,t.modifiers,A.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,void 0),Z(t,t.moduleSpecifier),ee(t.assertClause));if(268===t.importClause.namedBindings.kind){var n=w.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return r||n?A.updateImportDeclaration(t,t.modifiers,A.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,n),Z(t,t.moduleSpecifier),ee(t.assertClause)):void 0}var i=e.mapDefined(t.importClause.namedBindings.elements,(e=>w.isDeclarationVisible(e)?e:void 0));return i&&i.length||r?A.updateImportDeclaration(t,t.modifiers,A.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,i&&i.length?A.updateNamedImports(t.importClause.namedBindings,i):void 0),Z(t,t.moduleSpecifier),ee(t.assertClause)):w.isImportRequiredByAugmentation(t)?A.updateImportDeclaration(t,t.modifiers,void 0,Z(t,t.moduleSpecifier),ee(t.assertClause)):void 0})(t)}if(!(e.isDeclaration(t)&&K(t)||e.isFunctionLike(t)&&w.isImplementationOfOverload(t))){var r;X(t)&&(r=i,i=t);var a=e.canProduceDiagnostics(t),o=E;a&&(E=e.createGetSymbolAccessibilityDiagnosticForNode(t));var s=x;switch(t.kind){case 259:return he(A.updateTypeAliasDeclaration(t,le(t),t.name,e.visitNodes(t.typeParameters,re,e.isTypeParameterDeclaration),e.visitNode(t.type,re,e.isTypeNode)));case 258:return he(A.updateInterfaceDeclaration(t,le(t),t.name,q(t,t.typeParameters),ue(t.heritageClauses),e.visitNodes(t.members,re)));case 256:var d=he(A.updateFunctionDeclaration(t,le(t),void 0,t.name,q(t,t.typeParameters),G(t,t.parameters),W(t,t.type),void 0));if(d&&w.isExpandoFunctionDeclaration(t)&&(t=>{var r;if(t.body)return!0;var n=null===(r=t.symbol.declarations)||void 0===r?void 0:r.filter((t=>e.isFunctionDeclaration(t)&&!t.body));return!n||n.indexOf(t)===n.length-1})(t)){var u=w.getPropertiesOfContainerFunction(t),m=e.parseNodeFactory.createModuleDeclaration(void 0,d.name||A.createIdentifier("_default"),A.createModuleBlock([]),16);e.setParent(m,i),m.locals=e.createSymbolTable(u),m.symbol=u[0].parent;var g=[],h=e.mapDefined(u,(t=>{if(t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)){E=e.createGetSymbolAccessibilityDiagnosticForNode(t.valueDeclaration);var r=w.createTypeOfDeclaration(t.valueDeclaration,m,n,N);E=o;var i=e.unescapeLeadingUnderscores(t.escapedName),a=e.isStringANonContextualKeyword(i),s=a?A.getGeneratedNameForNode(t.valueDeclaration):A.createIdentifier(i);a&&g.push([s,i]);var c=A.createVariableDeclaration(s,void 0,r,void 0);return A.createVariableStatement(a?void 0:[A.createToken(93)],A.createVariableDeclarationList([c]))}}));g.length?h.push(A.createExportDeclaration(void 0,!1,A.createNamedExports(e.map(g,(e=>{var t=e[0],r=e[1];return A.createExportSpecifier(!1,t,r)}))))):h=e.mapDefined(h,(e=>A.updateModifiers(e,0)));var y=A.createModuleDeclaration(le(t),t.name,A.createModuleBlock(h),16);if(!e.hasEffectiveModifier(d,512))return[d,y];var v=A.createModifiersFromModifierFlags(-514&e.getEffectiveModifierFlags(d)|2),b=A.updateFunctionDeclaration(d,v,void 0,d.name,d.typeParameters,d.parameters,d.type,void 0),D=A.updateModuleDeclaration(y,v,y.name,y.body),k=A.createExportAssignment(void 0,!1,y.name);return e.isSourceFile(t.parent)&&(S=!0),C=!0,[b,D,k]}return d;case 261:x=!1;var F=t.body;if(F&&262===F.kind){var P=T,I=C;C=!1,T=!1;var O=te(e.visitNodes(F.statements,ne));16777216&t.flags&&(T=!1),e.isGlobalScopeAugmentation(t)||(ge=O,e.some(ge,ce))||C||(O=T?A.createNodeArray(f(f([],O,!0),[e.createEmptyExports(A)],!1)):e.visitNodes(O,ie));var M=A.updateModuleBlock(F,O);x=s,T=P,C=I;var R=le(t);return he(A.updateModuleDeclaration(t,R,e.isExternalModuleAugmentation(t)?Z(t,t.name):t.name,M))}x=s,R=le(t),x=!1,e.visitNode(F,ne);var L=e.getOriginalNodeId(F);return M=l.get(L),l.delete(L),he(A.updateModuleDeclaration(t,R,t.name,M));case 257:p=t.name,_=t,v=A.createNodeArray(le(t));var B=q(t,t.typeParameters),U=e.getFirstConstructorWithBody(t),j=void 0;if(U){var V=E;j=e.compact(e.flatMap(U.parameters,(t=>{if(e.hasSyntacticModifier(t,16476)&&!se(t))return E=e.createGetSymbolAccessibilityDiagnosticForNode(t),79===t.name.kind?Q(A.createPropertyDeclaration(le(t),t.name,t.questionToken,W(t,t.type),H(t)),t):function r(n){for(var i,a=0,o=n.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(e.isBindingPattern(s.name)&&(i=e.concatenate(i,r(s.name))),(i=i||[]).push(A.createPropertyDeclaration(le(t),s.name,void 0,W(s,void 0),void 0)))}return i}(t.name)}))),E=V}var z=e.some(t.members,(t=>!!t.name&&e.isPrivateIdentifier(t.name)))?[A.createPropertyDeclaration(void 0,A.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,$=e.concatenate(e.concatenate(z,j),e.visitNodes(t.members,re)),ae=A.createNodeArray($),oe=e.getEffectiveBaseTypeNode(t);if(oe&&!e.isEntityNameExpression(oe.expression)&&104!==oe.expression.kind){var de=t.name?e.unescapeLeadingUnderscores(t.name.escapedText):"default",pe=A.createUniqueName("".concat(de,"_base"),16);E=()=>({diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:oe,typeName:t.name});var _e=A.createVariableDeclaration(pe,void 0,w.createTypeOfExpression(oe.expression,t,n,N),void 0),fe=A.createVariableStatement(x?[A.createModifier(135)]:[],A.createVariableDeclarationList([_e],2)),me=A.createNodeArray(e.map(t.heritageClauses,(t=>{if(94===t.token){var r=E;E=e.createGetSymbolAccessibilityDiagnosticForNode(t.types[0]);var n=A.updateHeritageClause(t,e.map(t.types,(t=>A.updateExpressionWithTypeArguments(t,pe,e.visitNodes(t.typeArguments,re)))));return E=r,n}return A.updateHeritageClause(t,e.visitNodes(A.createNodeArray(e.filter(t.types,(t=>e.isEntityNameExpression(t.expression)||104===t.expression.kind))),re))})));return[fe,he(A.updateClassDeclaration(t,v,t.name,B,me,ae))]}return me=ue(t.heritageClauses),he(A.updateClassDeclaration(t,v,t.name,B,me,ae));case 237:return he((t=>{if(e.forEach(t.declarationList.declarations,J)){var r=e.visitNodes(t.declarationList.declarations,re);if(e.length(r))return A.updateVariableStatement(t,A.createNodeArray(le(t)),A.updateVariableDeclarationList(t.declarationList,r))}})(t));case 260:return he(A.updateEnumDeclaration(t,A.createNodeArray(le(t)),t.name,A.createNodeArray(e.mapDefined(t.members,(e=>{if(!se(e)){var t=w.getConstantValue(e);return Q(A.updateEnumMember(e,e.name,void 0!==t?"string"==typeof t?A.createStringLiteral(t):A.createNumericLiteral(t):void 0),e)}})))))}return e.Debug.assertNever(t,"Unhandled top-level node in declaration emit: ".concat(e.Debug.formatSyntaxKind(t.kind)))}}var ge;function he(n){return X(t)&&(i=r),a&&(E=o),261===t.kind&&(x=s),n===t?n:(_=void 0,p=void 0,n&&e.setOriginalNode(Q(n,t),t))}}function oe(t){return e.flatten(e.mapDefined(t.elements,(t=>(t=>{if(227!==t.kind&&t.name){if(!J(t))return;return e.isBindingPattern(t.name)?oe(t.name):A.createVariableDeclaration(t.name,void 0,W(t,void 0),void 0)}})(t))))}function se(e){return!!I&&!!e&&r(e,g)}function ce(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function le(t){var r=e.getEffectiveModifierFlags(t),n=(t=>{var r=240379,n=x&&!(e=>258===e.kind)(t)?2:0,i=305===t.parent.kind;return(!i||D&&i&&e.isExternalModule(t.parent))&&(r^=2,n=0),a(t,r,n)})(t);return r===n?e.visitArray(t.modifiers,(t=>e.tryCast(t,e.isModifier)),e.isModifier):A.createModifiersFromModifierFlags(n)}function de(t,r){var n=o(t);return n||t===r.firstAccessor||(n=o(r.firstAccessor),E=e.createGetSymbolAccessibilityDiagnosticForNode(r.firstAccessor)),!n&&r.secondAccessor&&t!==r.secondAccessor&&(n=o(r.secondAccessor),E=e.createGetSymbolAccessibilityDiagnosticForNode(r.secondAccessor)),n}function ue(t){return A.createNodeArray(e.filter(e.map(t,(t=>A.updateHeritageClause(t,e.visitNodes(A.createNodeArray(e.filter(t.types,(r=>e.isEntityNameExpression(r.expression)||94===t.token&&104===r.expression.kind))),re)))),(e=>e.types&&!!e.types.length)))}}function a(t,r,n){void 0===r&&(r=257019),void 0===n&&(n=0);var i=e.getEffectiveModifierFlags(t)&r|n;return 512&i&&!(1&i)&&(i^=1),512&i&&2&i&&(i^=2),i}function o(e){if(e)return 172===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}e.transformDeclarations=i})(p),(e=>{var t,r;function n(t,r,n){if(n)return e.emptyArray;var i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),s=[];return e.addRange(s,r&&e.map(r.before,o)),s.push(e.transformTypeScript),s.push(e.transformLegacyDecorators),s.push(e.transformClassFields),e.getJSXTransformEnabled(t)&&s.push(e.transformJsx),i<99&&s.push(e.transformESNext),i<8&&s.push(e.transformES2021),i<7&&s.push(e.transformES2020),i<6&&s.push(e.transformES2019),i<5&&s.push(e.transformES2018),i<4&&s.push(e.transformES2017),i<3&&s.push(e.transformES2016),i<2&&(s.push(e.transformES2015),s.push(e.transformGenerators)),s.push((t=>{switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}})(a)),i<1&&s.push(e.transformES5),e.addRange(s,r&&e.map(r.after,o)),s}function i(t){var r=[];return r.push(e.transformDeclarations),e.addRange(r,t&&e.map(t.afterDeclarations,s)),r}function a(t,r){return n=>{var i=t(n);return"function"==typeof i?r(n,i):(t=>r=>e.isBundle(r)?t.transformBundle(r):t.transformSourceFile(r))(i)}}function o(t){return a(t,e.chainBundle)}function s(e){return a(e,((e,t)=>t))}function c(e,t){return t}function l(e,t,r){r(e,t)}!(e=>{e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"})(t||(t={})),(e=>{e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"})(r||(r={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=(e,t,r)=>({scriptTransformers:n(e,t,r),declarationTransformers:i(t)}),e.noEmitSubstitution=c,e.noEmitNotification=l,e.transformNodes=(t,r,n,i,a,o,s)=>{for(var d,u,p,_,m,g=new Array(355),h=0,y=[],v=[],b=[],E=[],x=0,D=!1,S=[],T=0,C=c,A=l,k=0,N=[],w={factory:n,getCompilerOptions:()=>i,getEmitResolver:()=>t,getEmitHost:()=>r,getEmitHelperFactory:e.memoize((()=>e.createEmitHelperFactory(w))),startLexicalEnvironment(){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."),y[x]=d,v[x]=u,b[x]=p,E[x]=h,x++,d=void 0,u=void 0,p=void 0,h=0},suspendLexicalEnvironment(){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(){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(){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||u||p){if(u&&(t=f([],u,!0)),d){var r=n.createVariableStatement(void 0,n.createVariableDeclarationList(d));e.setEmitFlags(r,1048576),t?t.push(r):t=[r]}p&&(t=f(t?f([],t,!0):[],p,!0))}return x--,d=y[x],u=v[x],p=b[x],h=E[x],0===x&&(y=[],v=[],b=[],E=[]),t},setLexicalEnvironmentFlags(e,t){h=t?h|e:h&~e},getLexicalEnvironmentFlags:()=>h,hoistVariableDeclaration(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 r=e.setEmitFlags(n.createVariableDeclaration(t),64);d?d.push(r):d=[r],1&h&&(h|=2)},hoistFunctionDeclaration(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),u?u.push(t):u=[t]},addInitializationStatement(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),p?p.push(t):p=[t]},startBlockScope(){e.Debug.assert(k>0,"Cannot start a block scope during initialization."),e.Debug.assert(k<2,"Cannot start a block scope after transformation has completed."),S[T]=_,T++,_=void 0},endBlockScope(){e.Debug.assert(k>0,"Cannot end a block scope during initialization."),e.Debug.assert(k<2,"Cannot end a block scope after transformation has completed.");var t=e.some(_)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(_.map((e=>n.createVariableDeclaration(e))),1))]:void 0;return T--,_=S[T],0===T&&(S=[]),t},addBlockScopedVariable(t){e.Debug.assert(T>0,"Cannot add a block scoped variable outside of an iteration body."),(_||(_=[])).push(t)},requestEmitHelper:function t(r){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(!r.scoped,"Cannot request a scoped emit helper."),r.dependencies)for(var n=0,i=r.dependencies;n<i.length;n++)t(i[n]);m=e.append(m,r)},readEmitHelpers(){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.");var t=m;return m=void 0,t},enableSubstitution(t){e.Debug.assert(k<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=1},enableEmitNotification(t){e.Debug.assert(k<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=2},isSubstitutionEnabled:j,isEmitNotificationEnabled:V,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 A},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'"),A=t},addDiagnostic(e){N.push(e)}},F=0,P=a;F<P.length;F++){var I=P[F];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(I)))}e.performance.mark("beforeTransform");var O=o.map((e=>e(w))),M=e=>{for(var t=0,r=O;t<r.length;t++)e=(0,r[t])(e);return e};k=1;for(var R=[],L=0,B=a;L<B.length;L++)I=B[L],null===e.tracing||void 0===e.tracing||e.tracing.push("emit","transformNodes",305===I.kind?{path:I.path}:{kind:I.kind,pos:I.pos,end:I.end}),R.push((s?M:U)(I)),null===e.tracing||void 0===e.tracing||e.tracing.pop();return k=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:R,substituteNode:(t,r)=>(e.Debug.assert(k<3,"Cannot substitute a node after the result is disposed."),r&&j(r)&&C(t,r)||r),emitNodeWithNotification(t,r,n){e.Debug.assert(k<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),r&&(V(r)?A(t,r,n):n(t,r))},isEmitNotificationEnabled:V,dispose(){if(k<3){for(var t=0,r=a;t<r.length;t++){var n=r[t];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(n)))}d=void 0,y=void 0,u=void 0,v=void 0,C=void 0,A=void 0,m=void 0,k=3}},diagnostics:N};function U(t){return!t||e.isSourceFile(t)&&t.isDeclarationFile?t:M(t)}function j(t){return 0!=(1&g[t.kind])&&0==(4&e.getEmitFlags(t))}function V(t){return 0!=(2&g[t.kind])||0!=(2&e.getEmitFlags(t))}},e.nullTransformationContext={factory:e.factory,getCompilerOptions:()=>({}),getEmitResolver:e.notImplemented,getEmitHost:e.notImplemented,getEmitHelperFactory:e.notImplemented,startLexicalEnvironment:e.noop,resumeLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,endLexicalEnvironment:e.returnUndefined,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:e.noop,hoistFunctionDeclaration:e.noop,addInitializationStatement:e.noop,startBlockScope:e.noop,endBlockScope:e.returnUndefined,addBlockScopedVariable:e.noop,requestEmitHelper:e.noop,readEmitHelpers:e.notImplemented,enableSubstitution:e.noop,enableEmitNotification:e.noop,isSubstitutionEnabled:e.notImplemented,isEmitNotificationEnabled:e.notImplemented,onSubstituteNode:c,onEmitNode:l,addDiagnostic:e.noop}})(p),(e=>{var t,r,n=(()=>{var e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e})();function i(t,r,n,i,o,c){void 0===i&&(i=!1);var l=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,i),d=t.getCompilerOptions();if(e.outFile(d)){var u=t.getPrependNodes();if(l.length||u.length){var p=e.factory.createBundle(l,u);if(m=r(s(p,t,i),p))return m}}else{if(!o)for(var _=0,f=l;_<f.length;_++){var m,g=f[_];if(m=r(s(g,t,i),g))return m}if(c){var h=a(d);if(h)return r({buildInfoPath:h},void 0)}}}function a(t){var r=t.configFilePath;if(e.isIncrementalCompilation(t)){if(t.tsBuildInfoFile)return t.tsBuildInfoFile;var n,i=e.outFile(t);if(i)n=e.removeFileExtension(i);else{if(!r)return;var a=e.removeFileExtension(r);n=t.outDir?t.rootDir?e.resolvePath(t.outDir,e.getRelativePathFromDirectory(t.rootDir,a,!0)):e.combinePaths(t.outDir,e.getBaseFileName(a)):a}return n+".tsbuildinfo"}}function o(t,r){var n=e.outFile(t),i=t.emitDeclarationOnly?void 0:n,o=i&&c(i,t),s=r||e.getEmitDeclarations(t)?e.removeFileExtension(n)+".d.ts":void 0;return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:s&&e.getAreDeclarationMapsEnabled(t)?s+".map":void 0,buildInfoPath:a(t)}}function s(t,r,n){var i=r.getCompilerOptions();if(306===t.kind)return o(i,n);var a=e.getOwnEmitOutputFilePath(t.fileName,r,l(t.fileName,i)),s=e.isJsonSourceFile(t),d=s&&0===e.comparePaths(t.fileName,a,r.getCurrentDirectory(),!r.useCaseSensitiveFileNames()),u=i.emitDeclarationOnly||d?void 0:a,p=!u||e.isJsonSourceFile(t)?void 0:c(u,i),_=n||e.getEmitDeclarations(i)&&!s?e.getDeclarationEmitOutputFilePath(t.fileName,r):void 0;return{jsFilePath:u,sourceMapFilePath:p,declarationFilePath:_,declarationMapPath:_&&e.getAreDeclarationMapsEnabled(i)?_+".map":void 0,buildInfoPath:void 0}}function c(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function l(t,r){return e.fileExtensionIs(t,".json")?".json":1===r.jsx&&e.fileExtensionIsOneOf(t,[".jsx",".tsx"])?".jsx":e.fileExtensionIsOneOf(t,[".mts",".mjs"])?".mjs":e.fileExtensionIsOneOf(t,[".cts",".cjs"])?".cjs":".js"}function d(t,r,n,i,a){return i?e.resolvePath(i,e.getRelativePathFromDirectory(a?a():y(r,n),t,n)):t}function u(t,r,n,i){return e.changeExtension(d(t,r,n,r.options.declarationDir||r.options.outDir,i),e.getDeclarationEmitExtensionForPath(t))}function p(t,r,n,i){if(!r.options.emitDeclarationOnly){var a=e.fileExtensionIs(t,".json"),o=e.changeExtension(d(t,r,n,r.options.outDir,i),l(t,r.options));return a&&0===e.comparePaths(t,o,e.Debug.checkDefined(r.options.configFilePath),n)?void 0:o}}function _(){var t;return{addOutput(e){e&&(t||(t=[])).push(e)},getOutputs:()=>t||e.emptyArray}}function m(e,t){var r=o(e.options,!1),n=r.jsFilePath,i=r.sourceMapFilePath,a=r.declarationFilePath,s=r.declarationMapPath,c=r.buildInfoPath;t(n),t(i),t(a),t(s),t(c)}function g(t,r,n,i,a){if(!e.isDeclarationFileName(r)){var o=p(r,t,n,a);if(i(o),!e.fileExtensionIs(r,".json")&&(o&&t.options.sourceMap&&i("".concat(o,".map")),e.getEmitDeclarations(t.options))){var s=u(r,t,n,a);i(s),t.options.declarationMap&&i("".concat(s,".map"))}}}function h(t,r,n,i,a){var o;return t.rootDir?(o=e.getNormalizedAbsolutePath(t.rootDir,n),null==a||a(t.rootDir)):t.composite&&t.configFilePath?(o=e.getDirectoryPath(e.normalizeSlashes(t.configFilePath)),null==a||a(o)):o=e.computeCommonSourceDirectoryOfFilenames(r(),n,i),o&&o[o.length-1]!==e.directorySeparator&&(o+=e.directorySeparator),o}function y(t,r){var n=t.options,i=t.fileNames;return h(n,(()=>e.filter(i,(t=>!(n.noEmitForJsFiles&&e.fileExtensionIsOneOf(t,e.supportedJSExtensionsFlat)||e.isDeclarationFileName(t))))),e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(n.configFilePath))),e.createGetCanonicalFileName(!r))}function v(t,r,n,a,o,s,c){var l,d=a.scriptTransformers,u=a.declarationTransformers,p=r.getCompilerOptions(),_=p.sourceMap||p.inlineSourceMap||e.getAreDeclarationMapsEnabled(p)?[]:void 0,f=p.listEmittedFiles?[]:void 0,m=e.createDiagnosticCollection(),g=e.getNewLineCharacter(p,(()=>r.getNewLine())),h=e.createTextWriter(g),y=e.performance.createTimer("printTime","beforePrint","afterPrint"),v=y.enter,E=y.exit,D=!1;return v(),i(r,((i,a)=>{var s,_=i.jsFilePath,g=i.sourceMapFilePath,h=i.declarationFilePath,y=i.declarationMapPath,v=i.buildInfoPath;function E(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,t,r.getCanonicalFileName))}v&&a&&e.isBundle(a)&&(s=e.getDirectoryPath(e.getNormalizedAbsolutePath(v,r.getCurrentDirectory())),l={commonSourceDirectory:E(r.getCommonSourceDirectory()),sourceFiles:a.sourceFiles.map((t=>E(e.getNormalizedAbsolutePath(t.fileName,r.getCurrentDirectory()))))}),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:_}),((n,i,a,s)=>{if(n&&!o&&i)if(r.isEmitBlocked(i)||p.noEmit)D=!0;else{var c=e.transformNodes(t,r,e.factory,p,[n],d,!1),u=x({removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:p.noEmitHelpers,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,inlineSources:p.inlineSources,extendedDiagnostics:p.extendedDiagnostics,writeBundleFileInfo:!!l,relativeToBuildInfo:s},{hasGlobalName:t.hasGlobalName,onEmitNode:c.emitNodeWithNotification,isEmitNotificationEnabled:c.isEmitNotificationEnabled,substituteNode:c.substituteNode});e.Debug.assert(1===c.transformed.length,"Should only see one output from the transform"),T(i,a,c,u,p),c.dispose(),l&&(l.js=u.bundleFileInfo)}})(a,_,g,E),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:h}),((n,i,a,s)=>{if(n)if(i){var d=e.isSourceFile(n)?[n]:n.sourceFiles,_=c?d:e.filter(d,e.isSourceFileNotJson),f=e.outFile(p)?[e.factory.createBundle(_,e.isSourceFile(n)?void 0:n.prepends)]:_;o&&!e.getEmitDeclarations(p)&&_.forEach(S);var g=e.transformNodes(t,r,e.factory,p,f,u,!1);if(e.length(g.diagnostics))for(var h=0,y=g.diagnostics;h<y.length;h++){var v=y[h];m.add(v)}var b={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:!c&&p.declarationMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!l,recordInternalSection:!!l,relativeToBuildInfo:s},E=x(b,{hasGlobalName:t.hasGlobalName,onEmitNode:g.emitNodeWithNotification,isEmitNotificationEnabled:g.isEmitNotificationEnabled,substituteNode:g.substituteNode}),C=!!g.diagnostics&&!!g.diagnostics.length||!!r.isEmitBlocked(i)||!!p.noEmit;D=D||C,(!C||c)&&(e.Debug.assert(1===g.transformed.length,"Should only see one output from the decl transform"),T(i,a,g,E,{sourceMap:b.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics})),g.dispose(),l&&(l.dts=E.bundleFileInfo)}else(o||p.emitDeclarationOnly)&&(D=!0)})(a,h,y,E),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:v}),((t,i)=>{if(i&&!n&&!D){var a=r.getProgramBuildInfo();if(r.isEmitBlocked(i))D=!0;else{var o={bundle:t,program:a,version:e.version};e.writeFile(r,m,i,b(o),!1,void 0,{buildInfo:o})}}})(l,v),null===e.tracing||void 0===e.tracing||e.tracing.pop(),!D&&f&&(o||(_&&f.push(_),g&&f.push(g),v&&f.push(v)),h&&f.push(h),y&&f.push(y))}),e.getSourceFilesToEmit(r,n,c),c,s,!n),E(),{emitSkipped:D,diagnostics:m.getDiagnostics(),emittedFiles:f,sourceMaps:_};function S(r){e.isExportAssignment(r)?79===r.expression.kind&&t.collectLinkedAliases(r.expression,!0):e.isExportSpecifier(r)?t.collectLinkedAliases(r.propertyName||r.name,!0):e.forEachChild(r,S)}function T(t,n,i,a,o){var s,c,l=i.transformed[0],d=306===l.kind?l:void 0,u=305===l.kind?l:void 0,f=d?d.sourceFiles:[u];if(((t,r)=>(t.sourceMap||t.inlineSourceMap)&&(305!==r.kind||!e.fileExtensionIs(r.fileName,".json")))(o,l)&&(s=e.createSourceMapGenerator(r,e.getBaseFileName(e.normalizeSlashes(t)),(t=>{var r=e.normalizeSlashes(t.sourceRoot||"");return r?e.ensureTrailingDirectorySeparator(r):r})(o),((t,n,i)=>{if(t.sourceRoot)return r.getCommonSourceDirectory();if(t.mapRoot){var a=e.normalizeSlashes(t.mapRoot);return i&&(a=e.getDirectoryPath(e.getSourceFilePathInNewDir(i.fileName,r,a))),0===e.getRootLength(a)&&(a=e.combinePaths(r.getCommonSourceDirectory(),a)),a}return e.getDirectoryPath(e.normalizePath(n))})(o,t,u),o)),d?a.writeBundle(d,h,s):a.writeFile(u,h,s),s){_&&_.push({inputSourceFileNames:s.getSources(),sourceMap:s.toJSON()});var y=((t,n,i,a,o)=>{if(t.inlineSourceMap){var s=n.toString(),c=e.base64encode(e.sys,s);return"data:application/json;base64,".concat(c)}var l=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(a)));if(t.mapRoot){var d=e.normalizeSlashes(t.mapRoot);return o&&(d=e.getDirectoryPath(e.getSourceFilePathInNewDir(o.fileName,r,d))),0===e.getRootLength(d)?(d=e.combinePaths(r.getCommonSourceDirectory(),d),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(i)),e.combinePaths(d,l),r.getCurrentDirectory(),r.getCanonicalFileName,!0))):encodeURI(e.combinePaths(d,l))}return encodeURI(l)})(o,s,t,n,u);if(y&&(h.isAtStartOfLine()||h.rawWrite(g),c=h.getTextPos(),h.writeComment("//# ".concat("sourceMappingURL","=").concat(y))),n){var v=s.toString();e.writeFile(r,m,n,v,!1,f),a.bundleFileInfo&&(a.bundleFileInfo.mapHash=e.computeSignature(v,e.maybeBind(r,r.createHash)))}}else h.writeLine();var b=h.getText();e.writeFile(r,m,t,b,!!p.emitBOM,f,{sourceMapUrlPos:c,diagnostics:i.diagnostics}),a.bundleFileInfo&&(a.bundleFileInfo.hash=e.computeSignature(b,e.maybeBind(r,r.createHash))),h.clear()}}function b(e){return JSON.stringify(e)}function E(e){return JSON.parse(e)}function x(t,r){void 0===t&&(t={}),void 0===r&&(r={});var i,a,o,s,c,l,d,u,p,_,f,m,g,h,y,v,b,E,x,C=r.hasGlobalName,A=r.onEmitNode,k=void 0===A?e.noEmitNotification:A,N=r.isEmitNotificationEnabled,w=r.substituteNode,F=void 0===w?e.noEmitSubstitution:w,P=r.onBeforeEmitNode,I=r.onAfterEmitNode,O=r.onBeforeEmitNodeArray,M=r.onAfterEmitNodeArray,R=r.onBeforeEmitToken,L=r.onAfterEmitToken,B=!!t.extendedDiagnostics,U=e.getNewLineCharacter(t),j=e.getEmitModuleKind(t),V=new e.Map,z=t.preserveSourceNewlines,H=e=>{_.write(e)},W=t.writeBundleFileInfo?{sections:[]}:void 0,K=W?e.Debug.checkDefined(t.relativeToBuildInfo):void 0,J=t.recordInternalSection,G=0,$="text",q=!0,X=-1,Y=-1,Q=-1,Z=-1,ee=-1,te=!1,re=!!t.removeComments,ne=e.performance.createTimerIf(B,"commentTime","beforeComment","afterComment"),ie=ne.enter,ae=ne.exit,oe=e.factory.parenthesizer,se={select:e=>0===e?oe.parenthesizeLeadingTypeArgument:void 0},ce=(()=>{return e.createBinaryExpressionTrampoline(((e,t)=>{if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=z,t.containerPosStack[t.stackIndex]=Q,t.containerEndStack[t.stackIndex]=Z,t.declarationListContainerEndStack[t.stackIndex]=ee;var r=t.shouldEmitCommentsStack[t.stackIndex]=Oe(e),n=t.shouldEmitSourceMapsStack[t.stackIndex]=Me(e);null==P||P(e),r&&Br(e),n&&sn(e),Fe(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}),((e,r,n)=>t(e,n,"left")),((e,t,r)=>{var n=27!==e.kind,i=vr(r,r.left,e),a=vr(r,e,r.right);dr(i,n),Xr(e.pos),or(e,101===e.kind?qt:Xt),Qr(e.end,!0),dr(a,!0)}),((e,r,n)=>t(e,n,"right")),((e,t)=>{if(ur(vr(e,e.left,e.operatorToken),vr(e,e.operatorToken,e.right)),t.stackIndex>0){var r=t.preserveSourceNewlinesStack[t.stackIndex],n=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],a=t.declarationListContainerEndStack[t.stackIndex],o=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Pe(r),s&&cn(e),o&&Ur(e,n,i,a),null==I||I(e),t.stackIndex--}}),void 0);function t(t,r,n){var i="left"===n?oe.getParenthesizeLeftSideOfBinaryForOperator(r.operatorToken.kind):oe.getParenthesizeRightSideOfBinaryForOperator(r.operatorToken.kind),a=Re(0,1,t);if(a===Ve&&(e.Debug.assertIsDefined(E),a=Le(1,1,t=i(e.cast(E,e.isExpression))),E=void 0),(a===Lr||a===on||a===Ue)&&e.isBinaryExpression(t))return t;x=i,a(1,t)}})();return Te(),{printNode(t,r,n){switch(t){case 0:e.Debug.assert(e.isSourceFile(r),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(r),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(r),"Expected an Expression node.")}switch(r.kind){case 305:return de(r);case 306:return le(r);case 307:return i=r,a=be(),o=_,Se(a,void 0),xe(4,i,void 0),Te(),_=o,Ee()}var i,a,o;return ue(t,r,n,be()),Ee()},printList:(e,t,r)=>(pe(e,t,r,be()),Ee()),printFile:de,printBundle:le,writeNode:ue,writeList:pe,writeFile:ve,writeBundle:ye,bundleFileInfo:W};function le(e){return ye(e,be(),void 0),Ee()}function de(e){return ve(e,be(),void 0),Ee()}function ue(e,t,r,n){var i=_;Se(n,void 0),xe(e,t,r),Te(),_=i}function pe(e,t,r,n){var i=_;Se(n,void 0),r&&De(r),Vt(void 0,t,e),Te(),_=i}function _e(){return _.getTextPosWithWriteLine?_.getTextPosWithWriteLine():_.getTextPos()}function fe(t,r,n){var i=e.lastOrUndefined(W.sections);i&&i.kind===n?i.end=r:W.sections.push({pos:t,end:r,kind:n})}function me(t){if(J&&W&&i&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,i)&&"internal"!==$){var r=$;return he(_.getTextPos()),G=_e(),$="internal",r}}function ge(e){e&&(he(_.getTextPos()),G=_e(),$=e)}function he(e){return G<e&&(fe(G,e,$),!0)}function ye(r,n,i){var a;m=!1;var o=_;Se(n,i),At(r),Ct(r),ze(r),(t=>{xt(!!t.hasNoDefaultLib,t.syntheticFileReferences||[],t.syntheticTypeReferences||[],t.syntheticLibReferences||[]);for(var r=0,n=t.prepends;r<n.length;r++){var i=n[r];if(e.isUnparsedSource(i)&&i.syntheticReferences)for(var a=0,o=i.syntheticReferences;a<o.length;a++)Ae(o[a]),rr()}})(r);for(var s=0,c=r.prepends;s<c.length;s++){var l=c[s];rr();var d=_.getTextPos(),u=W&&W.sections;if(u&&(W.sections=[]),xe(4,l,void 0),W){var p=W.sections;W.sections=u,l.oldFileOfCurrentEmit?(a=W.sections).push.apply(a,p):(p.forEach((t=>e.Debug.assert(e.isBundleFileTextLike(t)))),W.sections.push({pos:d,end:_.getTextPos(),kind:"prepend",data:K(l.fileName),texts:p}))}}G=_e();for(var f=0,g=r.sourceFiles;f<g.length;f++){var h=g[f];xe(0,h,h)}if(W&&r.sourceFiles.length&&he(_.getTextPos())){var y=(t=>{for(var r,n=new e.Set,i=0;i<t.sourceFiles.length;i++){for(var a=t.sourceFiles[i],o=void 0,s=0,c=0,l=a.statements;c<l.length;c++){var d=l[c];if(!e.isPrologueDirective(d))break;n.has(d.expression.text)||(n.add(d.expression.text),(o||(o=[])).push({pos:d.pos,end:d.end,expression:{pos:d.expression.pos,end:d.expression.end,text:d.expression.text}}),s=s<d.end?d.end:s)}o&&(r||(r=[])).push({file:i,text:a.text.substring(0,s),directives:o})}return r})(r);y&&(W.sources||(W.sources={}),W.sources.prologues=y);var v=(r=>{var n;if(j!==e.ModuleKind.None&&!t.noEmitHelpers){for(var i=new e.Map,a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a],c=void 0!==e.getExternalHelpersModuleName(s),l=He(s);if(l)for(var d=0,u=l;d<u.length;d++){var p=u[d];p.scoped||c||i.get(p.name)||(i.set(p.name,!0),(n||(n=[])).push(p.name))}}return n}})(r);v&&(W.sources||(W.sources={}),W.sources.helpers=v)}Te(),_=o}function ve(e,t,r){m=!0;var n=_;Se(t,r),At(e),Ct(e),xe(0,e,e),Te(),_=n}function be(){return f||(f=e.createTextWriter(U))}function Ee(){var e=f.getText();return f.clear(),e}function xe(e,t,r){r&&De(r),Ie(e,t,void 0)}function De(e){i=e,v=void 0,b=void 0,e&&pn(e)}function Se(r,n){r&&t.omitTrailingSemicolon&&(r=e.getTrailingSemicolonDeferringWriter(r)),g=n,q=!(_=r)||!g}function Te(){a=[],o=[],s=new e.Set,c=[],l=0,d=[],i=void 0,v=void 0,b=void 0,Se(void 0,void 0)}function Ce(){return v||(v=e.getLineStarts(e.Debug.checkDefined(i)))}function Ae(e,t){if(void 0!==e){var r=me(e);Ie(4,e,t),ge(r)}}function ke(e){void 0!==e&&Ie(2,e,void 0)}function Ne(e,t){void 0!==e&&Ie(1,e,t)}function we(t){Ie(e.isStringLiteral(t)?6:4,t)}function Fe(t){z&&134217728&e.getEmitFlags(t)&&(z=!1)}function Pe(e){z=e}function Ie(e,t,r){x=r,Re(0,e,t)(e,t),x=void 0}function Oe(t){return!re&&!e.isSourceFile(t)}function Me(t){return!(q||e.isSourceFile(t)||e.isInJsonFile(t)||e.isUnparsedSource(t)||e.isUnparsedPrepend(t))}function Re(t,r,n){switch(t){case 0:if(k!==e.noEmitNotification&&(!N||N(n)))return Be;case 1:if(F!==e.noEmitSubstitution&&(E=F(r,n)||n)!==n)return x&&(E=x(E)),Ve;case 2:if(Oe(n))return Lr;case 3:if(Me(n))return on;case 4:return Ue;default:return e.Debug.assertNever(t)}}function Le(e,t,r){return Re(e+1,t,r)}function Be(e,t){var r=Le(0,e,t);k(e,t,r)}function Ue(e,t){if(null==P||P(t),z){var r=z;Fe(t),je(e,t),Pe(r)}else je(e,t);null==I||I(t),x=void 0}function je(t,r,n){if(void 0===n&&(n=!0),n){var a=e.getSnippetElement(r);if(a)return((t,r,n)=>{switch(n.kind){case 1:!((e,t,r)=>{tr("${".concat(r.order,":")),je(e,t,!1),tr("}")})(t,r,n);break;case 0:!((t,r,n)=>{e.Debug.assert(236===r.kind,"A tab stop cannot be attached to a node of kind ".concat(e.Debug.formatSyntaxKind(r.kind),".")),e.Debug.assert(5!==t,"A tab stop cannot be attached to an embedded statement."),tr("$".concat(n.order))})(t,r,n)}})(t,r,a)}if(0===t)return Et(e.cast(r,e.isSourceFile));if(2===t)return Je(e.cast(r,e.isIdentifier));if(6===t)return We(e.cast(r,e.isStringLiteral),!0);if(3===t)return(e=>{Ae(e.name),Zt(),qt("in"),Zt(),Ae(e.constraint)})(e.cast(r,e.isTypeParameterDeclaration));if(5===t)return e.Debug.assertNode(r,e.isEmptyStatement),Ye(!0);if(4===t){switch(r.kind){case 15:case 16:case 17:return We(r,!1);case 79:return Je(r);case 80:return Ge(r);case 161:return(e=>{(e=>{79===e.kind?Ne(e):Ae(e)})(e.left),Gt("."),Ae(e.right)})(r);case 162:return(e=>{Gt("["),Ne(e.expression,oe.parenthesizeExpressionOfComputedPropertyName),Gt("]")})(r);case 163:return(e=>{wt(e,e.modifiers),Ae(e.name),e.constraint&&(Zt(),qt("extends"),Zt(),Ae(e.constraint)),e.default&&(Zt(),Xt("="),Zt(),Ae(e.default))})(r);case 164:return(e=>{Nt(e,e.modifiers),Ae(e.dotDotDotToken),kt(e.name,Yt),Ae(e.questionToken),e.parent&&317===e.parent.kind&&!e.name?Ae(e.type):Ft(e.type),Pt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.pos,e,oe.parenthesizeExpressionForDisallowedComma)})(r);case 165:return u=r,Gt("@"),void Ne(u.expression,oe.parenthesizeLeftSideOfAccess);case 166:return(e=>{wt(e,e.modifiers),kt(e.name,er),Ae(e.questionToken),Ft(e.type),$t()})(r);case 167:return(e=>{Nt(e,e.modifiers),Ae(e.name),Ae(e.questionToken),Ae(e.exclamationToken),Ft(e.type),Pt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),$t()})(r);case 168:return(e=>{Sr(e),wt(e,e.modifiers),Ae(e.name),Ae(e.questionToken),Lt(e,e.typeParameters),Bt(e,e.parameters),Ft(e.type),$t(),Tr(e)})(r);case 169:return(e=>{Nt(e,e.modifiers),Ae(e.asteriskToken),Ae(e.name),Ae(e.questionToken),ot(e,st)})(r);case 170:return(e=>{qt("static"),ct(e.body)})(r);case 171:return(e=>{wt(e,e.modifiers),qt("constructor"),ot(e,st)})(r);case 172:case 173:return(e=>{Nt(e,e.modifiers),qt(172===e.kind?"get":"set"),Zt(),Ae(e.name),ot(e,st)})(r);case 174:return(e=>{Sr(e),Lt(e,e.typeParameters),Bt(e,e.parameters),Ft(e.type),$t(),Tr(e)})(r);case 175:return(e=>{Sr(e),qt("new"),Zt(),Lt(e,e.typeParameters),Bt(e,e.parameters),Ft(e.type),$t(),Tr(e)})(r);case 176:return(e=>{wt(e,e.modifiers),Vt(e,e.parameters,8848),Ft(e.type),$t()})(r);case 177:return(e=>{e.assertsModifier&&(Ae(e.assertsModifier),Zt()),Ae(e.parameterName),e.type&&(Zt(),qt("is"),Zt(),Ae(e.type))})(r);case 178:return(e=>{Ae(e.typeName),Rt(e,e.typeArguments)})(r);case 179:return(e=>{Sr(e),Lt(e,e.typeParameters),Ut(e,e.parameters),Zt(),Gt("=>"),Zt(),Ae(e.type),Tr(e)})(r);case 180:return(e=>{Sr(e),wt(e,e.modifiers),qt("new"),Zt(),Lt(e,e.typeParameters),Bt(e,e.parameters),Zt(),Gt("=>"),Zt(),Ae(e.type),Tr(e)})(r);case 181:return(e=>{qt("typeof"),Zt(),Ae(e.exprName),Rt(e,e.typeArguments)})(r);case 182:return(t=>{Gt("{");var r=1&e.getEmitFlags(t)?768:32897;Vt(t,t.members,524288|r),Gt("}")})(r);case 183:return(e=>{Ae(e.elementType,oe.parenthesizeNonArrayTypeOfPostfixType),Gt("["),Gt("]")})(r);case 184:return(t=>{et(22,t.pos,Gt,t);var r=1&e.getEmitFlags(t)?528:657;Vt(t,t.elements,524288|r,oe.parenthesizeElementTypeOfTupleType),et(23,t.elements.end,Gt,t)})(r);case 185:return(e=>{Ae(e.type,oe.parenthesizeTypeOfOptionalType),Gt("?")})(r);case 187:return(e=>{Vt(e,e.types,516,oe.parenthesizeConstituentTypeOfUnionType)})(r);case 188:return(e=>{Vt(e,e.types,520,oe.parenthesizeConstituentTypeOfIntersectionType)})(r);case 189:return(e=>{Ae(e.checkType,oe.parenthesizeCheckTypeOfConditionalType),Zt(),qt("extends"),Zt(),Ae(e.extendsType,oe.parenthesizeExtendsTypeOfConditionalType),Zt(),Gt("?"),Zt(),Ae(e.trueType),Zt(),Gt(":"),Zt(),Ae(e.falseType)})(r);case 190:return(e=>{qt("infer"),Zt(),Ae(e.typeParameter)})(r);case 191:return(e=>{Gt("("),Ae(e.type),Gt(")")})(r);case 228:return qe(r);case 192:return void qt("this");case 193:return(e=>{sr(e.operator,qt),Zt();var t=145===e.operator?oe.parenthesizeOperandOfReadonlyTypeOperator:oe.parenthesizeOperandOfTypeOperator;Ae(e.type,t)})(r);case 194:return(e=>{Ae(e.objectType,oe.parenthesizeNonArrayTypeOfPostfixType),Gt("["),Ae(e.indexType),Gt("]")})(r);case 195:return(t=>{var r=e.getEmitFlags(t);Gt("{"),1&r?Zt():(rr(),nr()),t.readonlyToken&&(Ae(t.readonlyToken),145!==t.readonlyToken.kind&&qt("readonly"),Zt()),Gt("["),Ie(3,t.typeParameter),t.nameType&&(Zt(),qt("as"),Zt(),Ae(t.nameType)),Gt("]"),t.questionToken&&(Ae(t.questionToken),57!==t.questionToken.kind&&Gt("?")),Gt(":"),Zt(),Ae(t.type),$t(),1&r?Zt():(rr(),ir()),Vt(t,t.members,2),Gt("}")})(r);case 196:return(e=>{Ne(e.literal)})(r);case 197:return(e=>{Ae(e.dotDotDotToken),Ae(e.name),Ae(e.questionToken),et(58,e.name.end,Gt,e),Zt(),Ae(e.type)})(r);case 198:return(e=>{Ae(e.head),Vt(e,e.templateSpans,262144)})(r);case 199:return(e=>{Ae(e.type),Ae(e.literal)})(r);case 200:return(e=>{if(e.isTypeOf&&(qt("typeof"),Zt()),qt("import"),Gt("("),Ae(e.argument),e.assertions){Gt(","),Zt(),Gt("{"),Zt(),qt("assert"),Gt(":"),Zt();var t=e.assertions.assertClause.elements;Vt(e.assertions.assertClause,t,526226),Zt(),Gt("}")}Gt(")"),e.qualifier&&(Gt("."),Ae(e.qualifier)),Rt(e,e.typeArguments)})(r);case 201:return(e=>{Gt("{"),Vt(e,e.elements,525136),Gt("}")})(r);case 202:return(e=>{Gt("["),Vt(e,e.elements,524880),Gt("]")})(r);case 203:return(e=>{Ae(e.dotDotDotToken),e.propertyName&&(Ae(e.propertyName),Gt(":"),Zt()),Ae(e.name),Pt(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)})(r);case 233:return(e=>{Ne(e.expression),Ae(e.literal)})(r);case 234:return void $t();case 235:return(e=>{Xe(e,!e.multiLine&&br(e))})(r);case 237:return(e=>{wt(e,e.modifiers),Ae(e.declarationList),$t()})(r);case 236:return Ye(!1);case 238:return(t=>{Ne(t.expression,oe.parenthesizeExpressionOfExpressionStatement),i&&e.isJsonSourceFile(i)&&!e.nodeIsSynthesized(t.expression)||$t()})(r);case 239:return(e=>{var t=et(99,e.pos,qt,e);Zt(),et(20,t,Gt,e),Ne(e.expression),et(21,e.expression.end,Gt,e),Mt(e,e.thenStatement),e.elseStatement&&(cr(e,e.thenStatement,e.elseStatement),et(91,e.thenStatement.end,qt,e),239===e.elseStatement.kind?(Zt(),Ae(e.elseStatement)):Mt(e,e.elseStatement))})(r);case 240:return(t=>{et(90,t.pos,qt,t),Mt(t,t.statement),e.isBlock(t.statement)&&!z?Zt():cr(t,t.statement,t.expression),Qe(t,t.statement.end),$t()})(r);case 241:return(e=>{Qe(e,e.pos),Mt(e,e.statement)})(r);case 242:return(e=>{var t=et(97,e.pos,qt,e);Zt();var r=et(20,t,Gt,e);Ze(e.initializer),r=et(26,e.initializer?e.initializer.end:r,Gt,e),Ot(e.condition),r=et(26,e.condition?e.condition.end:r,Gt,e),Ot(e.incrementor),et(21,e.incrementor?e.incrementor.end:r,Gt,e),Mt(e,e.statement)})(r);case 243:return(e=>{var t=et(97,e.pos,qt,e);Zt(),et(20,t,Gt,e),Ze(e.initializer),Zt(),et(101,e.initializer.end,qt,e),Zt(),Ne(e.expression),et(21,e.expression.end,Gt,e),Mt(e,e.statement)})(r);case 244:return(e=>{var t=et(97,e.pos,qt,e);Zt(),(e=>{e&&(Ae(e),Zt())})(e.awaitModifier),et(20,t,Gt,e),Ze(e.initializer),Zt(),et(160,e.initializer.end,qt,e),Zt(),Ne(e.expression),et(21,e.expression.end,Gt,e),Mt(e,e.statement)})(r);case 245:return(e=>{et(86,e.pos,qt,e),It(e.label),$t()})(r);case 246:return(e=>{et(81,e.pos,qt,e),It(e.label),$t()})(r);case 247:return(e=>{et(105,e.pos,qt,e),Ot(e.expression&&nt(e.expression),nt),$t()})(r);case 248:return(e=>{var t=et(116,e.pos,qt,e);Zt(),et(20,t,Gt,e),Ne(e.expression),et(21,e.expression.end,Gt,e),Mt(e,e.statement)})(r);case 249:return(e=>{var t=et(107,e.pos,qt,e);Zt(),et(20,t,Gt,e),Ne(e.expression),et(21,e.expression.end,Gt,e),Zt(),Ae(e.caseBlock)})(r);case 250:return(e=>{Ae(e.label),et(58,e.label.end,Gt,e),Zt(),Ae(e.statement)})(r);case 251:return(e=>{et(109,e.pos,qt,e),Ot(nt(e.expression),nt),$t()})(r);case 252:return(e=>{et(111,e.pos,qt,e),Zt(),Ae(e.tryBlock),e.catchClause&&(cr(e,e.tryBlock,e.catchClause),Ae(e.catchClause)),e.finallyBlock&&(cr(e,e.catchClause||e.tryBlock,e.finallyBlock),et(96,(e.catchClause||e.tryBlock).end,qt,e),Zt(),Ae(e.finallyBlock))})(r);case 253:return(e=>{ar(87,e.pos,qt),$t()})(r);case 254:return(e=>{var t,r,n,i,a;Ae(e.name),Ae(e.exclamationToken),Ft(e.type),Pt(e.initializer,null!==(a=null!==(r=null===(t=e.type)||void 0===t?void 0:t.end)&&void 0!==r?r:null===(i=null===(n=e.name.emitNode)||void 0===n?void 0:n.typeNode)||void 0===i?void 0:i.end)&&void 0!==a?a:e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)})(r);case 255:return(t=>{qt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),Zt(),Vt(t,t.declarations,528)})(r);case 256:return(e=>{at(e)})(r);case 257:return(e=>{ut(e)})(r);case 258:return(e=>{wt(e,e.modifiers),qt("interface"),Zt(),Ae(e.name),Lt(e,e.typeParameters),Vt(e,e.heritageClauses,512),Zt(),Gt("{"),Vt(e,e.members,129),Gt("}")})(r);case 259:return(e=>{wt(e,e.modifiers),qt("type"),Zt(),Ae(e.name),Lt(e,e.typeParameters),Zt(),Gt("="),Zt(),Ae(e.type),$t()})(r);case 260:return(e=>{wt(e,e.modifiers),qt("enum"),Zt(),Ae(e.name),Zt(),Gt("{"),Vt(e,e.members,145),Gt("}")})(r);case 261:return(t=>{wt(t,t.modifiers),1024&~t.flags&&(qt(16&t.flags?"namespace":"module"),Zt()),Ae(t.name);var r=t.body;if(!r)return $t();for(;r&&e.isModuleDeclaration(r);)Gt("."),Ae(r.name),r=r.body;Zt(),Ae(r)})(r);case 262:return(t=>{Sr(t),e.forEach(t.statements,Ar),Xe(t,br(t)),Tr(t)})(r);case 263:return(e=>{et(18,e.pos,Gt,e),Vt(e,e.clauses,129),et(19,e.clauses.end,Gt,e,!0)})(r);case 264:return(e=>{var t=et(93,e.pos,qt,e);Zt(),t=et(127,t,qt,e),Zt(),t=et(142,t,qt,e),Zt(),Ae(e.name),$t()})(r);case 265:return(e=>{wt(e,e.modifiers),et(100,e.modifiers?e.modifiers.end:e.pos,qt,e),Zt(),e.isTypeOnly&&(et(152,e.pos,qt,e),Zt()),Ae(e.name),Zt(),et(63,e.name.end,Gt,e),Zt(),(e=>{79===e.kind?Ne(e):Ae(e)})(e.moduleReference),$t()})(r);case 266:return(e=>{wt(e,e.modifiers),et(100,e.modifiers?e.modifiers.end:e.pos,qt,e),Zt(),e.importClause&&(Ae(e.importClause),Zt(),et(156,e.importClause.end,qt,e),Zt()),Ne(e.moduleSpecifier),e.assertClause&&It(e.assertClause),$t()})(r);case 267:return(e=>{e.isTypeOnly&&(et(152,e.pos,qt,e),Zt()),Ae(e.name),e.name&&e.namedBindings&&(et(27,e.name.end,Gt,e),Zt()),Ae(e.namedBindings)})(r);case 268:return(e=>{var t=et(41,e.pos,Gt,e);Zt(),et(127,t,qt,e),Zt(),Ae(e.name)})(r);case 274:return(e=>{var t=et(41,e.pos,Gt,e);Zt(),et(127,t,qt,e),Zt(),Ae(e.name)})(r);case 269:return(e=>{pt(e)})(r);case 270:return(e=>{_t(e)})(r);case 271:return(e=>{var t=et(93,e.pos,qt,e);Zt(),e.isExportEquals?et(63,t,Xt,e):et(88,t,qt,e),Zt(),Ne(e.expression,e.isExportEquals?oe.getParenthesizeRightSideOfBinaryForOperator(63):oe.parenthesizeExpressionOfExportDefault),$t()})(r);case 272:return(e=>{var t=et(93,e.pos,qt,e);Zt(),e.isTypeOnly&&(t=et(152,t,qt,e),Zt()),e.exportClause?Ae(e.exportClause):t=et(41,t,Gt,e),e.moduleSpecifier&&(Zt(),et(156,e.exportClause?e.exportClause.end:t,qt,e),Zt(),Ne(e.moduleSpecifier)),e.assertClause&&It(e.assertClause),$t()})(r);case 273:return(e=>{pt(e)})(r);case 275:return(e=>{_t(e)})(r);case 293:return(e=>{et(129,e.pos,qt,e),Zt(),Vt(e,e.elements,526226)})(r);case 294:return(t=>{Ae(t.name),Gt(":"),Zt();var r=t.value;0==(512&e.getEmitFlags(r))&&Qr(e.getCommentRange(r).pos),Ae(r)})(r);case 276:return;case 277:return(e=>{qt("require"),Gt("("),Ne(e.expression),Gt(")")})(r);case 11:return(e=>{_.writeLiteral(e.text)})(r);case 280:case 283:return(t=>{if(Gt("<"),e.isJsxOpeningElement(t)){var r=gr(t.tagName,t);ft(t.tagName),Rt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&Zt(),Ae(t.attributes),hr(t.attributes,t),ur(r)}Gt(">")})(r);case 281:case 284:return(t=>{Gt("</"),e.isJsxClosingElement(t)&&ft(t.tagName),Gt(">")})(r);case 285:return(e=>{Ae(e.name),((e,t,r,n)=>{r&&(t("="),n(r))})(0,Gt,e.initializer,we)})(r);case 286:return(e=>{Vt(e,e.properties,262656)})(r);case 287:return(e=>{Gt("{..."),Ne(e.expression),Gt("}")})(r);case 288:return(t=>{var r,n;if(t.expression||!re&&!e.nodeIsSynthesized(t)&&((t=>{var r=!1;return e.forEachTrailingCommentRange((null==i?void 0:i.text)||"",t+1,(()=>r=!0)),r})(n=t.pos)||(t=>{var r=!1;return e.forEachLeadingCommentRange((null==i?void 0:i.text)||"",t+1,(()=>r=!0)),r})(n))){var a=i&&!e.nodeIsSynthesized(t)&&e.getLineAndCharacterOfPosition(i,t.pos).line!==e.getLineAndCharacterOfPosition(i,t.end).line;a&&_.increaseIndent();var o=et(18,t.pos,Gt,t);Ae(t.dotDotDotToken),Ne(t.expression),et(19,(null===(r=t.expression)||void 0===r?void 0:r.end)||o,Gt,t),a&&_.decreaseIndent()}})(r);case 289:return(e=>{et(82,e.pos,qt,e),Zt(),Ne(e.expression,oe.parenthesizeExpressionForDisallowedComma),mt(e,e.statements,e.expression.end)})(r);case 290:return(e=>{var t=et(88,e.pos,qt,e);mt(e,e.statements,t)})(r);case 291:return(e=>{Zt(),sr(e.token,qt),Zt(),Vt(e,e.types,528)})(r);case 292:return(e=>{var t=et(83,e.pos,qt,e);Zt(),e.variableDeclaration&&(et(20,t,Gt,e),Ae(e.variableDeclaration),et(21,e.variableDeclaration.end,Gt,e),Zt()),Ae(e.block)})(r);case 296:return(t=>{Ae(t.name),Gt(":"),Zt();var r=t.initializer;0==(512&e.getEmitFlags(r))&&Qr(e.getCommentRange(r).pos),Ne(r,oe.parenthesizeExpressionForDisallowedComma)})(r);case 297:return(e=>{Ae(e.name),e.objectAssignmentInitializer&&(Zt(),Gt("="),Zt(),Ne(e.objectAssignmentInitializer,oe.parenthesizeExpressionForDisallowedComma))})(r);case 298:return(e=>{e.expression&&(et(25,e.pos,Gt,e),Ne(e.expression,oe.parenthesizeExpressionForDisallowedComma))})(r);case 299:return(e=>{Ae(e.name),Pt(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)})(r);case 300:return Ke(r);case 307:case 301:return(e=>{for(var t=0,r=e.texts;t<r.length;t++){var n=r[t];rr(),Ae(n)}})(r);case 302:case 303:return l=r,d=_e(),Ke(l),void(W&&fe(d,_.getTextPos(),302===l.kind?"text":"internal"));case 304:return(t=>{var r=_e();if(Ke(t),W){var n=e.clone(t.section);n.pos=r,n.end=_.getTextPos(),W.sections.push(n)}})(r);case 305:return Et(r);case 306:return e.Debug.fail("Bundles should be printed using printBundle");case 308:return e.Debug.fail("InputFiles should not be printed");case 309:return bt(r);case 310:return(e=>{Zt(),Gt("{"),Ae(e.name),Gt("}")})(r);case 312:return Gt("*");case 313:return Gt("?");case 314:return(e=>{Gt("?"),Ae(e.type)})(r);case 315:return(e=>{Gt("!"),Ae(e.type)})(r);case 316:return(e=>{Ae(e.type),Gt("=")})(r);case 317:return(e=>{qt("function"),Bt(e,e.parameters),Gt(":"),Ae(e.type)})(r);case 186:case 318:return(e=>{Gt("..."),Ae(e.type)})(r);case 319:return;case 320:return(t=>{if(H("/**"),t.comment){var r=e.getTextOfJSDocComment(t.comment);if(r)for(var n=0,i=r.split(/\r\n?|\n/g);n<i.length;n++){var a=i[n];rr(),Zt(),Gt("*"),Zt(),H(a)}}t.tags&&(1!==t.tags.length||343!==t.tags[0].kind||t.comment?Vt(t,t.tags,33):(Zt(),Ae(t.tags[0]))),Zt(),H("*/")})(r);case 322:return gt(r);case 323:return ht(r);case 327:case 332:case 337:return yt((c=r).tagName),void vt(c.comment);case 328:case 329:return(e=>{yt(e.tagName),Zt(),Gt("{"),Ae(e.class),Gt("}"),vt(e.comment)})(r);case 330:case 331:return;case 333:case 334:case 335:case 336:return;case 338:return(e=>{yt(e.tagName),e.name&&(Zt(),Ae(e.name)),vt(e.comment),ht(e.typeExpression)})(r);case 340:case 347:return yt((s=r).tagName),bt(s.typeExpression),Zt(),s.isBracketed&&Gt("["),Ae(s.name),s.isBracketed&&Gt("]"),void vt(s.comment);case 339:case 341:case 342:case 343:return(e=>{yt(e.tagName),bt(e.typeExpression),vt(e.comment)})(r);case 344:return(e=>{yt(e.tagName),bt(e.constraint),Zt(),Vt(e,e.typeParameters,528),vt(e.comment)})(r);case 345:return(e=>{yt(e.tagName),e.typeExpression&&(309===e.typeExpression.kind?bt(e.typeExpression):(Zt(),Gt("{"),H("Object"),e.typeExpression.isArrayType&&(Gt("["),Gt("]")),Gt("}"))),e.fullName&&(Zt(),Ae(e.fullName)),vt(e.comment),e.typeExpression&&322===e.typeExpression.kind&>(e.typeExpression)})(r);case 346:return(e=>{yt(e.tagName),Ae(e.name),vt(e.comment)})(r);case 349:case 353:case 352:return}if(e.isExpression(r)&&(t=1,F!==e.noEmitSubstitution)){var o=F(t,r)||r;o!==r&&(r=o,x&&(r=x(r)))}}var s,c,l,d,u;if(1===t)switch(r.kind){case 8:case 9:return(e=>{We(e,!1)})(r);case 10:case 13:case 14:return We(r,!1);case 79:return Je(r);case 80:return Ge(r);case 204:return(e=>{zt(e,e.elements,8914|(e.multiLine?65536:0),oe.parenthesizeExpressionForDisallowedComma)})(r);case 205:return(t=>{e.forEach(t.properties,kr);var r=65536&e.getEmitFlags(t);r&&nr();var n=t.multiLine?65536:0,a=i&&i.languageVersion>=1&&!e.isJsonSourceFile(i)?64:0;Vt(t,t.properties,526226|a|n),r&&ir()})(r);case 206:return(t=>{Ne(t.expression,oe.parenthesizeLeftSideOfAccess);var r=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),n=vr(t,t.expression,r),i=vr(t,r,t.name);dr(n,!1),28===r.kind||!(t=>{if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=Dr(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}})(t.expression)||_.hasTrailingComment()||_.hasTrailingWhitespace()||Gt("."),t.questionDotToken?Ae(r):et(r.kind,t.expression.end,Gt,t),dr(i,!1),Ae(t.name),ur(n,i)})(r);case 207:return(e=>{Ne(e.expression,oe.parenthesizeLeftSideOfAccess),Ae(e.questionDotToken),et(22,e.expression.end,Gt,e),Ne(e.argumentExpression),et(23,e.argumentExpression.end,Gt,e)})(r);case 208:return(t=>{var r=536870912&e.getEmitFlags(t);r&&(Gt("("),Kt("0"),Gt(","),Zt()),Ne(t.expression,oe.parenthesizeLeftSideOfAccess),r&&Gt(")"),Ae(t.questionDotToken),Rt(t,t.typeArguments),zt(t,t.arguments,2576,oe.parenthesizeExpressionForDisallowedComma)})(r);case 209:return(e=>{et(103,e.pos,qt,e),Zt(),Ne(e.expression,oe.parenthesizeExpressionOfNew),Rt(e,e.typeArguments),zt(e,e.arguments,18960,oe.parenthesizeExpressionForDisallowedComma)})(r);case 210:return(t=>{var r=536870912&e.getEmitFlags(t);r&&(Gt("("),Kt("0"),Gt(","),Zt()),Ne(t.tag,oe.parenthesizeLeftSideOfAccess),r&&Gt(")"),Rt(t,t.typeArguments),Zt(),Ne(t.template)})(r);case 211:return(e=>{Gt("<"),Ae(e.type),Gt(">"),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)})(r);case 212:return(e=>{var t=et(20,e.pos,Gt,e),r=gr(e.expression,e);Ne(e.expression,void 0),hr(e.expression,e),ur(r),et(21,e.expression?e.expression.end:t,Gt,e)})(r);case 213:return(e=>{Nr(e.name),at(e)})(r);case 214:return(e=>{wt(e,e.modifiers),ot(e,$e)})(r);case 215:return(e=>{et(89,e.pos,qt,e),Zt(),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)})(r);case 216:return(e=>{et(112,e.pos,qt,e),Zt(),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)})(r);case 217:return(e=>{et(114,e.pos,qt,e),Zt(),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)})(r);case 218:return(e=>{et(132,e.pos,qt,e),Zt(),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)})(r);case 219:return(e=>{sr(e.operator,Xt),(e=>{var t=e.operand;return 219===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))})(e)&&Zt(),Ne(e.operand,oe.parenthesizeOperandOfPrefixUnary)})(r);case 220:return(e=>{Ne(e.operand,oe.parenthesizeOperandOfPostfixUnary),sr(e.operator,Xt)})(r);case 221:return ce(r);case 222:return(e=>{var t=vr(e,e.condition,e.questionToken),r=vr(e,e.questionToken,e.whenTrue),n=vr(e,e.whenTrue,e.colonToken),i=vr(e,e.colonToken,e.whenFalse);Ne(e.condition,oe.parenthesizeConditionOfConditionalExpression),dr(t,!0),Ae(e.questionToken),dr(r,!0),Ne(e.whenTrue,oe.parenthesizeBranchOfConditionalExpression),ur(t,r),dr(n,!0),Ae(e.colonToken),dr(i,!0),Ne(e.whenFalse,oe.parenthesizeBranchOfConditionalExpression),ur(n,i)})(r);case 223:return(e=>{Ae(e.head),Vt(e,e.templateSpans,262144)})(r);case 224:return(e=>{et(125,e.pos,qt,e),Ae(e.asteriskToken),Ot(e.expression&&nt(e.expression),it)})(r);case 225:return(e=>{et(25,e.pos,Gt,e),Ne(e.expression,oe.parenthesizeExpressionForDisallowedComma)})(r);case 226:return(e=>{Nr(e.name),ut(e)})(r);case 227:return;case 229:return(e=>{Ne(e.expression,void 0),e.type&&(Zt(),qt("as"),Zt(),Ae(e.type))})(r);case 230:return(e=>{Ne(e.expression,oe.parenthesizeLeftSideOfAccess),Xt("!")})(r);case 228:return qe(r);case 231:return(e=>{ar(e.keywordToken,e.pos,Gt),Gt("."),Ae(e.name)})(r);case 232:return e.Debug.fail("SyntheticExpression should never be printed.");case 278:return(e=>{Ae(e.openingElement),Vt(e,e.children,262144),Ae(e.closingElement)})(r);case 279:return(e=>{Gt("<"),ft(e.tagName),Rt(e,e.typeArguments),Zt(),Ae(e.attributes),Gt("/>")})(r);case 282:return(e=>{Ae(e.openingFragment),Vt(e,e.children,262144),Ae(e.closingFragment)})(r);case 348:return e.Debug.fail("SyntaxList should not be printed");case 349:return;case 350:return(t=>{var r=e.getEmitFlags(t);512&r||t.pos===t.expression.pos||Qr(t.expression.pos),Ne(t.expression),1024&r||t.end===t.expression.end||Xr(t.expression.end)})(r);case 351:return(e=>{zt(e,e.elements,528,void 0)})(r);case 352:case 353:return;case 354:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}return e.isKeyword(r.kind)?or(r,qt):e.isTokenKind(r.kind)?or(r,Gt):void e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(r.kind),"."))}function Ve(t,r){var n=Le(1,t,r);e.Debug.assertIsDefined(E),r=E,E=void 0,n(t,r)}function ze(r){var n=!1,a=306===r.kind?r:void 0;if(!a||j!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c<s;c++){var l=a?c<o?a.prepends[c]:a.sourceFiles[c-o]:r,d=e.isSourceFile(l)?l:e.isUnparsedSource(l)?void 0:i,u=t.noEmitHelpers||!!d&&e.hasRecordedExternalHelpers(d),p=(e.isSourceFile(l)||e.isUnparsedSource(l))&&!m,f=e.isUnparsedSource(l)?l.helpers:He(l);if(f)for(var g=0,h=f;g<h.length;g++){var y=h[g];if(y.scoped){if(a)continue}else{if(u)continue;if(p){if(V.get(y.name))continue;V.set(y.name,!0)}}var v=_e();"string"==typeof y.text?lr(y.text):lr(y.text(Rr)),W&&W.sections.push({pos:v,end:_.getTextPos(),kind:"emitHelpers",data:y.name}),n=!0}}return n}}function He(t){var r=e.getEmitHelpers(t);return r&&e.stableSort(r,e.compareEmitHelpers)}function We(r,n){var i,a=Dr(r,t.neverAsciiEscape,n);!t.sourceMap&&!t.inlineSourceMap||10!==r.kind&&!e.isTemplateLiteralKind(r.kind)?(i=a,_.writeStringLiteral(i)):Kt(a)}function Ke(e){_.rawWrite(e.parent.text.substring(e.pos,e.end))}function Je(e){(e.symbol?Jt:H)(xr(e,!1),e.symbol),Vt(e,e.typeArguments,53776)}function Ge(e){(e.symbol?Jt:H)(xr(e,!1),e.symbol)}function $e(e){Lt(e,e.typeParameters),Ut(e,e.parameters),Ft(e.type),Zt(),Ae(e.equalsGreaterThanToken)}function qe(e){Ne(e.expression,oe.parenthesizeLeftSideOfAccess),Rt(e,e.typeArguments)}function Xe(t,r){et(18,t.pos,Gt,t);var n=r||1&e.getEmitFlags(t)?768:129;Vt(t,t.statements,n),et(19,t.statements.end,Gt,t,!!(1&n))}function Ye(e){e?Gt(";"):$t()}function Qe(e,t){var r=et(115,t,qt,e);Zt(),et(20,r,Gt,e),Ne(e.expression),et(21,e.expression.end,Gt,e)}function Ze(e){void 0!==e&&(255===e.kind?Ae(e):Ne(e))}function et(t,r,n,a,o){var s=e.getParseTreeNode(a),c=s&&s.kind===a.kind,l=r;if(c&&i&&(r=e.skipTrivia(i.text,r)),c&&a.pos!==l){var d=o&&i&&!e.positionsAreOnSameLine(l,r,i);d&&nr(),Xr(l),d&&ir()}if(r=sr(t,n,r),c&&a.end!==r){var u=288===a.kind;Qr(r,!u,u)}return r}function tt(e){return 2===e.kind||!!e.hasTrailingNewLine}function rt(t){return!!i&&(!!e.some(e.getLeadingCommentRanges(i.text,t.pos),tt)||!!e.some(e.getSyntheticLeadingComments(t),tt)||!!e.isPartiallyEmittedExpression(t)&&(!(t.pos===t.expression.pos||!e.some(e.getTrailingCommentRanges(i.text,t.expression.pos),tt))||rt(t.expression)))}function nt(t){if(!re&&e.isPartiallyEmittedExpression(t)&&rt(t)){var r=e.getParseTreeNode(t);if(r&&e.isParenthesizedExpression(r)){var n=e.factory.createParenthesizedExpression(t.expression);return e.setOriginalNode(n,t),e.setTextRange(n,r),n}return e.factory.createParenthesizedExpression(t)}return t}function it(e){return nt(oe.parenthesizeExpressionForDisallowedComma(e))}function at(e){wt(e,e.modifiers),qt("function"),Ae(e.asteriskToken),Zt(),ke(e.name),ot(e,st)}function ot(t,r){var n=t.body;if(n)if(e.isBlock(n)){var i=65536&e.getEmitFlags(t);i&&nr(),Sr(t),e.forEach(t.parameters,Ar),Ar(t.body),r(t),ct(n),Tr(t),i&&ir()}else r(t),Zt(),Ne(n,oe.parenthesizeConciseBodyOfArrowFunction);else r(t),$t()}function st(e){Lt(e,e.typeParameters),Bt(e,e.parameters),Ft(e.type)}function ct(t){null==P||P(t),Zt(),Gt("{"),nr();var r=(t=>{if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&i&&!e.rangeIsOnSingleLine(t,i))return!1;if(pr(t,e.firstOrUndefined(t.statements),2)||fr(t,e.lastOrUndefined(t.statements),2,t.statements))return!1;for(var r,n=0,a=t.statements;n<a.length;n++){var o=a[n];if(_r(r,o,2)>0)return!1;r=o}return!0})(t)?lt:dt;Wr(t,t.statements,r),ir(),ar(19,t.statements.end,Gt,t),null==I||I(t)}function lt(e){dt(e,!0)}function dt(e,t){var r=St(e.statements),n=_.getTextPos();ze(e),0===r&&n===_.getTextPos()&&t?(ir(),Vt(e,e.statements,768),nr()):Vt(e,e.statements,1,void 0,r)}function ut(t){e.forEach(t.members,kr),Nt(t,t.modifiers),qt("class"),t.name&&(Zt(),ke(t.name));var r=65536&e.getEmitFlags(t);r&&nr(),Lt(t,t.typeParameters),Vt(t,t.heritageClauses,0),Zt(),Gt("{"),Vt(t,t.members,129),Gt("}"),r&&ir()}function pt(e){Gt("{"),Vt(e,e.elements,525136),Gt("}")}function _t(e){e.isTypeOnly&&(qt("type"),Zt()),e.propertyName&&(Ae(e.propertyName),Zt(),et(127,e.propertyName.end,qt,e),Zt()),Ae(e.name)}function ft(e){79===e.kind?Ne(e):Ae(e)}function mt(t,r,n){var a=163969;1===r.length&&(!i||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],i))?(ar(58,n,Gt,t),Zt(),a&=-130):et(58,n,Gt,t),Vt(t,r,a)}function gt(t){Vt(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function ht(t){t.typeParameters&&Vt(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&Vt(t,e.factory.createNodeArray(t.parameters),33),t.type&&(rr(),Zt(),Gt("*"),Zt(),Ae(t.type))}function yt(e){Gt("@"),Ae(e)}function vt(t){var r=e.getTextOfJSDocComment(t);r&&(Zt(),H(r))}function bt(e){e&&(Zt(),Gt("{"),Ae(e.type),Gt("}"))}function Et(t){rr();var r=t.statements;0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0])?Wr(t,r,Dt):Dt(t)}function xt(t,r,n,a){if(t){var o=_.getTextPos();Qt('/// <reference no-default-lib="true"/>'),W&&W.sections.push({pos:o,end:_.getTextPos(),kind:"no-default-lib"}),rr()}if(i&&i.moduleName&&(Qt('/// <amd-module name="'.concat(i.moduleName,'" />')),rr()),i&&i.amdDependencies)for(var s=0,c=i.amdDependencies;s<c.length;s++){var l=c[s];l.name?Qt('/// <amd-dependency name="'.concat(l.name,'" path="').concat(l.path,'" />')):Qt('/// <amd-dependency path="'.concat(l.path,'" />')),rr()}for(var d=0,u=r;d<u.length;d++){var p=u[d];o=_.getTextPos(),Qt('/// <reference path="'.concat(p.fileName,'" />')),W&&W.sections.push({pos:o,end:_.getTextPos(),kind:"reference",data:p.fileName}),rr()}for(var f=0,m=n;f<m.length;f++){p=m[f],o=_.getTextPos();var g=p.resolutionMode&&p.resolutionMode!==(null==i?void 0:i.impliedNodeFormat)?'resolution-mode="'.concat(p.resolutionMode===e.ModuleKind.ESNext?"import":"require",'"'):"";Qt('/// <reference types="'.concat(p.fileName,'" ').concat(g,"/>")),W&&W.sections.push({pos:o,end:_.getTextPos(),kind:p.resolutionMode?p.resolutionMode===e.ModuleKind.ESNext?"type-import":"type-require":"type",data:p.fileName}),rr()}for(var h=0,y=a;h<y.length;h++)p=y[h],o=_.getTextPos(),Qt('/// <reference lib="'.concat(p.fileName,'" />')),W&&W.sections.push({pos:o,end:_.getTextPos(),kind:"lib",data:p.fileName}),rr()}function Dt(t){var r=t.statements;Sr(t),e.forEach(t.statements,Ar),ze(t);var n=e.findIndex(r,(t=>!e.isPrologueDirective(t)));!(e=>{e.isDeclarationFile&&xt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)})(t),Vt(t,r,1,void 0,-1===n?r.length:n),Tr(t)}function St(t,r,n,i){for(var a=!!r,o=0;o<t.length;o++){var s=t[o];if(!e.isPrologueDirective(s))return o;if(!n||!n.has(s.expression.text)){a&&(a=!1,De(r)),rr();var c=_.getTextPos();Ae(s),i&&W&&W.sections.push({pos:c,end:_.getTextPos(),kind:"prologue",data:s.expression.text}),n&&n.add(s.expression.text)}}return t.length}function Tt(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!t.has(i.data)){rr();var a=_.getTextPos();Ae(i),W&&W.sections.push({pos:a,end:_.getTextPos(),kind:"prologue",data:i.data}),t&&t.add(i.data)}}}function Ct(t){if(e.isSourceFile(t))St(t.statements,t);else{for(var r=new e.Set,n=0,i=t.prepends;n<i.length;n++)Tt(i[n].prologues,r);for(var a=0,o=t.sourceFiles;a<o.length;a++){var s=o[a];St(s.statements,s,r,!0)}De(void 0)}}function At(t){if(e.isSourceFile(t)||e.isUnparsedSource(t)){var r=e.getShebang(t.text);if(r)return Qt(r),rr(),!0}else{for(var n=0,i=t.prepends;n<i.length;n++){var a=i[n];if(e.Debug.assertNode(a,e.isUnparsedSource),At(a))return!0}for(var o=0,s=t.sourceFiles;o<s.length;o++)if(At(s[o]))return!0}}function kt(e,t){if(e){var r=H;H=t,Ae(e),H=r}}function Nt(t,r){if(null==r?void 0:r.length){if(e.every(r,e.isModifier))return wt(t,r);if(e.every(r,e.isDecorator))return void Vt(t,r,2146305);null==O||O(r);for(var n=void 0,i=void 0,a=0,o=0;a<r.length;){for(;o<r.length;){var s=r[o];if(i=e.isDecorator(s)?"decorators":"modifiers",void 0===n)n=i;else if(i!==n)break;o++}var c={pos:-1,end:-1};0===a&&(c.pos=r.pos),o===r.length-1&&(c.end=r.end),Wt(Ae,t,r,"modifiers"===n?2359808:2146305,void 0,a,o-a,!1,c),a=o,n=i,o++}null==M||M(r)}}function wt(e,t){Vt(e,t,2359808)}function Ft(e){e&&(Gt(":"),Zt(),Ae(e))}function Pt(e,t,r,n){e&&(Zt(),et(63,t,Xt,r),Zt(),Ne(e,n))}function It(e){e&&(Zt(),Ae(e))}function Ot(e,t){e&&(Zt(),Ne(e,t))}function Mt(t,r){e.isBlock(r)||1&e.getEmitFlags(t)?(Zt(),Ae(r)):(rr(),nr(),e.isEmptyStatement(r)?Ie(5,r):Ae(r),ir())}function Rt(e,t){Vt(e,t,53776,se)}function Lt(t,r){if(e.isFunctionLike(t)&&t.typeArguments)return Rt(t,t.typeArguments);Vt(t,r,53776)}function Bt(e,t){Vt(e,t,2576)}function Ut(t,r){((t,r)=>{var n=e.singleOrUndefined(r);return n&&n.pos===t.pos&&e.isArrowFunction(t)&&!t.type&&!e.some(t.modifiers)&&!e.some(t.typeParameters)&&!e.some(n.modifiers)&&!n.dotDotDotToken&&!n.questionToken&&!n.type&&!n.initializer&&e.isIdentifier(n.name)})(t,r)?Vt(t,r,528):Bt(t,r)}function jt(e){switch(60&e){case 0:break;case 16:Gt(",");break;case 4:Zt(),Gt("|");break;case 32:Zt(),Gt("*"),Zt();break;case 8:Zt(),Gt("&")}}function Vt(e,t,r,n,i,a){Ht(Ae,e,t,r,n,i,a)}function zt(e,t,r,n,i,a){Ht(Ne,e,t,r,n,i,a)}function Ht(t,r,a,o,s,c,l){if(void 0===c&&(c=0),void 0===l&&(l=a?a.length-c:0),!(void 0===a&&16384&o)){var d=void 0===a||c>=a.length||0===l;if(d&&32768&o)return null==O||O(a),void(null==M||M(a));15360&o&&(Gt((e=>n[15360&e][0])(o)),d&&a&&Qr(a.pos,!0)),null==O||O(a),d?!(1&o)||z&&(!r||i&&e.rangeIsOnSingleLine(r,i))?256&o&&!(524288&o)&&Zt():rr():Wt(t,r,a,o,s,c,l,a.hasTrailingComma,a),null==M||M(a),15360&o&&(d&&a&&Xr(a.end),Gt((e=>n[15360&e][1])(o)))}}function Wt(t,r,n,i,a,o,s,c,l){var d=0==(262144&i),u=d,_=pr(r,n[o],i);_?(rr(_),u=!1):256&i&&Zt(),128&i&&nr();for(var f,m,g=((e,t)=>1===e.length?D:"object"==typeof t?S:T)(t,a),h=!1,y=0;y<s;y++){var v=n[o+y];if(32&i)rr(),jt(i);else if(f){60&i&&f.end!==(r?r.end:-1)&&Xr(f.end),jt(i),ge(m);var b=_r(f,v,i);b>0?(0==(131&i)&&(nr(),h=!0),rr(b),u=!1):f&&512&i&&Zt()}m=me(v),u?Qr(e.getCommentRange(v).pos):u=d,p=v.pos,g(v,t,a,y),h&&(ir(),h=!1),f=v}var E=f?e.getEmitFlags(f):0,x=re||!!(1024&E),C=c&&64&i&&16&i;C&&(f&&!x?et(27,f.end,Gt,f):Gt(",")),f&&(r?r.end:-1)!==f.end&&60&i&&!x&&Xr(C&&(null==l?void 0:l.end)?l.end:f.end),128&i&&ir(),ge(m);var A=fr(r,n[o+s-1],i,l);A?rr(A):2097408&i&&Zt()}function Kt(e){_.writeLiteral(e)}function Jt(e,t){_.writeSymbol(e,t)}function Gt(e){_.writePunctuation(e)}function $t(){_.writeTrailingSemicolon(";")}function qt(e){_.writeKeyword(e)}function Xt(e){_.writeOperator(e)}function Yt(e){_.writeParameter(e)}function Qt(e){_.writeComment(e)}function Zt(){_.writeSpace(" ")}function er(e){_.writeProperty(e)}function tr(e){_.nonEscapingWrite?_.nonEscapingWrite(e):_.write(e)}function rr(e){void 0===e&&(e=1);for(var t=0;t<e;t++)_.writeLine(t>0)}function nr(){_.increaseIndent()}function ir(){_.decreaseIndent()}function ar(t,r,n,i){return q?sr(t,n,r):((t,r,n,i,a)=>{if(q||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],l=c&&c.source||h;return i=ln(l,c?c.pos:i),0==(128&s)&&i>=0&&un(l,i),i=a(r,n,i),c&&(i=c.end),0==(256&s)&&i>=0&&un(l,i),i})(i,t,n,r,sr)}function or(t,r){R&&R(t),r(e.tokenToString(t.kind)),L&&L(t)}function sr(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function cr(t,r,n){if(1&e.getEmitFlags(t))Zt();else if(z){var i=vr(t,r,n);i?rr(i):Zt()}else rr()}function lr(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i<a.length;i++){var o=a[i],s=n?o.slice(n):o;s.length&&(rr(),H(s))}}function dr(e,t){e?(nr(),rr(e)):t&&Zt()}function ur(e,t){e&&ir(),t&&ir()}function pr(t,r,n){if(2&n||z){if(65536&n)return 1;if(void 0===r)return!t||i&&e.rangeIsOnSingleLine(t,i)?0:1;if(r.pos===p)return 0;if(11===r.kind)return 0;if(i&&t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(r)&&(!r.parent||e.getOriginalNode(r.parent)===e.getOriginalNode(t)))return z?mr((n=>e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(r.pos,t.pos,i,n))):e.rangeStartPositionsAreOnSameLine(t,r,i)?0:1;if(yr(r,n))return 1}return 1&n?1:0}function _r(t,r,n){if(2&n||z){if(void 0===t||void 0===r)return 0;if(11===r.kind)return 0;if(i&&!e.nodeIsSynthesized(t)&&!e.nodeIsSynthesized(r))return z&&((t,r)=>{if(r.pos<t.end)return!1;t=e.getOriginalNode(t),r=e.getOriginalNode(r);var n=t.parent;if(!n||n!==r.parent)return!1;var i=e.getContainingNodeArray(t),a=null==i?void 0:i.indexOf(t);return void 0!==a&&a>-1&&i.indexOf(r)===a+1})(t,r)?mr((n=>e.getLinesBetweenRangeEndAndRangeStart(t,r,i,n))):!z&&(a=t,o=r,(a=e.getOriginalNode(a)).parent&&a.parent===e.getOriginalNode(o).parent)?e.rangeEndIsOnSameLineAsRangeStart(t,r,i)?0:1:65536&n?1:0;if(yr(t,n)||yr(r,n))return 1}else if(e.getStartsOnNewLine(r))return 1;var a,o;return 1&n?1:0}function fr(t,r,n,a){if(2&n||z){if(65536&n)return 1;if(void 0===r)return!t||i&&e.rangeIsOnSingleLine(t,i)?0:1;if(i&&t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(r)&&(!r.parent||r.parent===t)){if(z){var o=a&&!e.positionIsSynthesized(a.end)?a.end:r.end;return mr((r=>e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,t.end,i,r)))}return e.rangeEndPositionsAreOnSameLine(t,r,i)?0:1}if(yr(r,n))return 1}return 1&n&&!(131072&n)?1:0}function mr(t){e.Debug.assert(!!z);var r=t(!0);return 0===r?t(!1):r}function gr(e,t){var r=z&&pr(t,e,0);return r&&dr(r,!1),!!r}function hr(e,t){var r=z&&fr(t,e,0,void 0);r&&rr(r)}function yr(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!=(65536&r):n}return 0!=(65536&r)}function vr(t,r,n){return 131072&e.getEmitFlags(t)?0:(t=Er(t),r=Er(r),n=Er(n),e.getStartsOnNewLine(n)?1:!i||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(n)?0:z?mr((t=>e.getLinesBetweenRangeEndAndRangeStart(r,n,i,t))):e.rangeEndIsOnSameLineAsRangeStart(r,n,i)?0:1)}function br(t){return 0===t.statements.length&&(!i||e.rangeEndIsOnSameLineAsRangeStart(t,t,i))}function Er(t){for(;212===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function xr(t,r){if(e.isGeneratedIdentifier(t))return wr(t);if(e.isStringLiteral(t)&&t.textSourceNode)return xr(t.textSourceNode,r);var n=i,a=!!n&&!!t.parent&&!e.nodeIsSynthesized(t);if(e.isMemberName(t)){if(!a||e.getSourceFileOfNode(t)!==e.getOriginalNode(n))return e.idText(t)}else if(e.Debug.assertNode(t,e.isLiteralExpression),!a)return t.text;return e.getSourceTextOfNodeFromSourceFile(n,t,r)}function Dr(r,n,a){if(10===r.kind&&r.textSourceNode){var o=r.textSourceNode;if(e.isIdentifier(o)||e.isNumericLiteral(o)){var s=e.isNumericLiteral(o)?o.text:xr(o);return a?'"'.concat(e.escapeJsxAttributeString(s),'"'):n||16777216&e.getEmitFlags(r)?'"'.concat(e.escapeString(s),'"'):'"'.concat(e.escapeNonAsciiString(s),'"')}return Dr(o,n,a)}var c=(n?1:0)|(a?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&99===t.target?8:0);return e.getLiteralText(r,i,c)}function Sr(t){t&&524288&e.getEmitFlags(t)||(c.push(l),l=0,d.push(u))}function Tr(t){t&&524288&e.getEmitFlags(t)||(l=c.pop(),u=d.pop())}function Cr(t){u&&u!==e.lastOrUndefined(d)||(u=new e.Set),u.add(t)}function Ar(t){if(t)switch(t.kind){case 235:e.forEach(t.statements,Ar);break;case 250:case 248:case 240:case 241:Ar(t.statement);break;case 239:Ar(t.thenStatement),Ar(t.elseStatement);break;case 242:case 244:case 243:Ar(t.initializer),Ar(t.statement);break;case 249:Ar(t.caseBlock);break;case 263:e.forEach(t.clauses,Ar);break;case 289:case 290:e.forEach(t.statements,Ar);break;case 252:Ar(t.tryBlock),Ar(t.catchClause),Ar(t.finallyBlock);break;case 292:Ar(t.variableDeclaration),Ar(t.block);break;case 237:Ar(t.declarationList);break;case 255:e.forEach(t.declarations,Ar);break;case 254:case 164:case 203:case 257:Nr(t.name);break;case 256:Nr(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,Ar),Ar(t.body));break;case 201:case 202:e.forEach(t.elements,Ar);break;case 266:Ar(t.importClause);break;case 267:Nr(t.name),Ar(t.namedBindings);break;case 268:case 274:Nr(t.name);break;case 269:e.forEach(t.elements,Ar);break;case 270:Nr(t.propertyName||t.name)}}function kr(e){if(e)switch(e.kind){case 296:case 297:case 167:case 169:case 172:case 173:Nr(e.name)}}function Nr(t){t&&(e.isGeneratedIdentifier(t)?wr(t):e.isBindingPattern(t)&&Ar(t))}function wr(t){if(4==(7&t.autoGenerateFlags))return Fr((t=>{for(var r=t.autoGenerateId,n=t,i=n.original;i&&(n=i,!(e.isIdentifier(n)&&4&n.autoGenerateFlags&&n.autoGenerateId!==r));)i=n.original;return n})(t),t.autoGenerateFlags);var r=t.autoGenerateId;return o[r]||(o[r]=(t=>{switch(7&t.autoGenerateFlags){case 1:return Or(0,!!(8&t.autoGenerateFlags));case 2:return Or(268435456,!!(8&t.autoGenerateFlags));case 3:return Mr(e.idText(t),32&t.autoGenerateFlags?Ir:Pr,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")})(t))}function Fr(t,r){var n=e.getNodeId(t);return a[n]||(a[n]=((t,r)=>{switch(t.kind){case 79:return Mr(xr(t),Pr,!!(16&r),!!(8&r));case 261:case 260:return(t=>{var r=xr(t.name);return((t,r)=>{for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals){var i=n.locals.get(e.escapeLeadingUnderscores(t));if(i&&3257279&i.flags)return!1}return!0})(r,t)?r:Mr(r)})(t);case 266:case 272:return(t=>{var r=e.getExternalModuleName(t);return Mr(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module")})(t);case 256:case 257:case 271:return Mr("default");case 226:return Mr("class");case 169:case 172:case 173:return(t=>e.isIdentifier(t.name)?Fr(t.name):Or(0))(t);case 162:return Or(0,!0);default:return Or(0)}})(t,r))}function Pr(e){return Ir(e)&&!s.has(e)&&!(u&&u.has(e))}function Ir(t){return!i||e.isFileLevelUniqueName(i,t,C)}function Or(e,t){if(e&&!(l&e)&&Pr(r=268435456===e?"_i":"_n"))return l|=e,t&&Cr(r),r;for(;;){var r,n=268435455&l;if(l++,8!==n&&13!==n&&Pr(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&Cr(r),r}}function Mr(e,t,r,n){if(void 0===t&&(t=Pr),r&&t(e))return n?Cr(e):s.add(e),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(t(a))return n?Cr(a):s.add(a),a;i++}}function Rr(e){return Mr(e,Ir,!0)}function Lr(e,t){var r=Le(2,e,t),n=Q,i=Z,a=ee;Br(t),r(e,t),Ur(t,n,i,a)}function Br(t){var r=e.getEmitFlags(t),n=e.getCommentRange(t);!((t,r,n,i)=>{ie(),te=!1;var a=n<0||0!=(512&r)||11===t.kind,o=i<0||0!=(1024&r)||11===t.kind;(n>0||i>0)&&n!==i&&(a||Kr(n,349!==t.kind),(!a||n>=0&&0!=(512&r))&&(Q=n),(!o||i>=0&&0!=(1024&r))&&(Z=i,255===t.kind&&(ee=i))),e.forEach(e.getSyntheticLeadingComments(t),Vr),ae()})(t,r,n.pos,n.end),2048&r&&(re=!0)}function Ur(t,r,n,i){var a=e.getEmitFlags(t),o=e.getCommentRange(t);2048&a&&(re=!1),jr(t,a,o.pos,o.end,r,n,i);var s=e.getTypeNode(t);s&&jr(t,a,s.pos,s.end,r,n,i)}function jr(t,r,n,i,a,o,s){ie();var c=i<0||0!=(1024&r)||11===t.kind;e.forEach(e.getSyntheticTrailingComments(t),zr),(n>0||i>0)&&n!==i&&(Q=a,Z=o,ee=s,c||349===t.kind||(e=>{rn(e,Yr)})(i)),ae()}function Vr(e){(e.hasLeadingNewline||2===e.kind)&&_.writeLine(),Hr(e),e.hasTrailingNewLine||2===e.kind?_.writeLine():_.writeSpace(" ")}function zr(e){_.isAtStartOfLine()||_.writeSpace(" "),Hr(e),e.hasTrailingNewLine&&_.writeLine()}function Hr(t){var r=(e=>3===e.kind?"/*".concat(e.text,"*/"):"//".concat(e.text))(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,_,0,r.length,U)}function Wr(t,r,n){ie();var a,o,s=r.pos,c=r.end,l=e.getEmitFlags(t),d=re||c<0||0!=(1024&l);s<0||0!=(512&l)||(a=r,(o=i&&e.emitDetachedComments(i.text,Ce(),_,nn,a,U,re))&&(b?b.push(o):b=[o])),ae(),2048&l&&!re?(re=!0,n(t),re=!1):n(t),ie(),d||(Kr(r.end,!0),te&&!_.isAtStartOfLine()&&_.writeLine()),ae()}function Kr(e,t){te=!1,t?0===e&&(null==i?void 0:i.isDeclarationFile)?tn(e,Gr):tn(e,qr):0===e&&tn(e,Jr)}function Jr(e,t,r,n,i){an(e,t)&&qr(e,t,r,n,i)}function Gr(e,t,r,n,i){an(e,t)||qr(e,t,r,n,i)}function $r(r,n){return!t.onlyPrintJsDocStyle||e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n)}function qr(t,r,n,a,o){i&&$r(i.text,t)&&(te||(e.emitNewLineBeforeLeadingCommentOfPosition(Ce(),_,o,t),te=!0),dn(t),e.writeCommentRange(i.text,Ce(),_,t,r,U),dn(r),a?_.writeLine():3===n&&_.writeSpace(" "))}function Xr(e){re||-1===e||Kr(e,!0)}function Yr(t,r,n,a){i&&$r(i.text,t)&&(_.isAtStartOfLine()||_.writeSpace(" "),dn(t),e.writeCommentRange(i.text,Ce(),_,t,r,U),dn(r),a&&_.writeLine())}function Qr(e,t,r){re||(ie(),rn(e,t?Yr:r?Zr:en),ae())}function Zr(t,r,n){i&&(dn(t),e.writeCommentRange(i.text,Ce(),_,t,r,U),dn(r),2===n&&_.writeLine())}function en(t,r,n,a){i&&(dn(t),e.writeCommentRange(i.text,Ce(),_,t,r,U),dn(r),a?_.writeLine():_.writeSpace(" "))}function tn(t,r){!i||-1!==Q&&t===Q||((t=>void 0!==b&&e.last(b).nodePos===t)(t)?(t=>{if(i){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 rn(t,r){i&&(-1===Z||t!==Z&&t!==ee)&&e.forEachTrailingCommentRange(i.text,t,r)}function nn(t,r,n,a,o,s){i&&$r(i.text,a)&&(dn(a),e.writeCommentRange(t,r,n,a,o,s),dn(o))}function an(t,r){return!!i&&e.isRecognizedTripleSlashComment(i.text,t,r)}function on(e,t){var r=Le(3,e,t);sn(t),r(e,t),cn(t)}function sn(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);if(e.isUnparsedNode(t)){e.Debug.assertIsDefined(t.parent,"UnparsedNodes must have parent pointers");var i=(t=>(void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0))(t.parent);i&&g&&g.appendSourceMap(_.getLine(),_.getColumn(),i,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end))}else{var a=n.source||h;349!==t.kind&&0==(16&r)&&n.pos>=0&&un(n.source||h,ln(a,n.pos)),64&r&&(q=!0)}}function cn(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);e.isUnparsedNode(t)||(64&r&&(q=!1),349!==t.kind&&0==(32&r)&&n.end>=0&&un(n.source||h,n.end))}function ln(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function dn(t){if(!(q||e.positionIsSynthesized(t)||_n(h))){var r=e.getLineAndCharacterOfPosition(h,t),n=r.line,i=r.character;g.addMapping(_.getLine(),_.getColumn(),X,n,i,void 0)}}function un(e,t){if(e!==h){var r=h,n=X;pn(e),dn(t),((e,t)=>{h=e,X=t})(r,n)}else dn(t)}function pn(e){q||(h=e,e!==y?_n(e)||(X=g.addSource(e.fileName),t.inlineSources&&g.setSourceContent(X,e.text),y=e,Y=X):X=Y)}function _n(t){return e.fileExtensionIs(t.fileName,".json")}}function D(e,t,r,n){t(e)}function S(e,t,r,n){t(e,r.select(n))}function T(e,t,r,n){t(e,r)}e.isBuildInfoFile=t=>e.fileExtensionIs(t,".tsbuildinfo"),e.forEachEmittedFile=i,e.getTsBuildInfoEmitOutputFilePath=a,e.getOutputPathsForBundle=o,e.getOutputPathsFor=s,e.getOutputExtension=l,e.getOutputDeclarationFileName=u,e.getCommonSourceDirectory=h,e.getCommonSourceDirectoryOfConfig=y,e.getAllProjectOutputs=(t,r)=>{var n=_(),i=n.addOutput,o=n.getOutputs;if(e.outFile(t.options))m(t,i);else{for(var s=e.memoize((()=>y(t,r))),c=0,l=t.fileNames;c<l.length;c++){var d=l[c];g(t,d,r,i,s)}i(a(t.options))}return o()},e.getOutputFileNames=(t,r,n)=>{r=e.normalizePath(r),e.Debug.assert(e.contains(t.fileNames,r),"Expected fileName to be present in command line");var i=_(),a=i.addOutput,o=i.getOutputs;return e.outFile(t.options)?m(t,a):g(t,r,n,a),o()},e.getFirstProjectOutput=(t,r)=>{if(e.outFile(t.options)){var n=o(t.options,!1).jsFilePath;return e.Debug.checkDefined(n,"project ".concat(t.options.configFilePath," expected to have at least one output"))}for(var i=e.memoize((()=>y(t,r))),s=0,c=t.fileNames;s<c.length;s++){var l=c[s];if(!e.isDeclarationFileName(l)){if(n=p(l,t,r,i))return n;if(!e.fileExtensionIs(l,".json")&&e.getEmitDeclarations(t.options))return u(l,t,r,i)}}return a(t.options)||e.Debug.fail("project ".concat(t.options.configFilePath," expected to have at least one output"))},e.emitFiles=v,e.getBuildInfoText=b,e.getBuildInfo=E,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:e=>!1,collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented},e.emitUsingBuildInfo=(t,r,n,i)=>{var a,s=e.maybeBind(r,r.createHash),c=o(t.options,!1),l=c.buildInfoPath,d=c.jsFilePath,u=c.sourceMapFilePath,p=c.declarationFilePath,_=c.declarationMapPath;if(r.getBuildInfo){var m=r.getBuildInfo(l,t.options.configFilePath);if(!m)return l;a=m}else{var g=r.readFile(l);if(!g)return l;a=E(g)}if(!a.bundle||!a.bundle.js||p&&!a.bundle.dts)return l;var h=r.readFile(e.Debug.checkDefined(d));if(!h)return d;if(e.computeSignature(h,s)!==a.bundle.js.hash)return d;var y=u&&r.readFile(u);if(u&&!y||t.options.inlineSourceMap)return u||"inline sourcemap decoding";if(u&&e.computeSignature(y,s)!==a.bundle.js.mapHash)return u;var x=p&&r.readFile(p);if(p&&!x)return p;if(p&&e.computeSignature(x,s)!==a.bundle.dts.hash)return p;var D=_&&r.readFile(_);if(_&&!D||t.options.inlineSourceMap)return _||"inline sourcemap decoding";if(_&&e.computeSignature(D,s)!==a.bundle.dts.mapHash)return _;var S,T,C=e.getDirectoryPath(e.getNormalizedAbsolutePath(l,r.getCurrentDirectory())),A=e.createInputFiles(h,x,u,y,_,D,d,p,l,a,!0),k=[],N=e.createPrependNodes(t.projectReferences,n,(e=>r.readFile(e))),w=((t,r,n)=>{var i,a=e.Debug.checkDefined(t.js),o=(null===(i=a.sources)||void 0===i?void 0:i.prologues)&&e.arrayToMap(a.sources.prologues,(e=>e.file));return t.sourceFiles.map(((t,i)=>{var a,s,c=null==o?void 0:o.get(i),l=null==c?void 0:c.directives.map((t=>{var r=e.setTextRange(e.factory.createStringLiteral(t.expression.text),t.expression),n=e.setTextRange(e.factory.createExpressionStatement(r),t);return e.setParent(r,n),n})),d=e.factory.createToken(1),u=e.factory.createSourceFile(null!=l?l:[],d,0);return u.fileName=e.getRelativePathFromDirectory(n.getCurrentDirectory(),e.getNormalizedAbsolutePath(t,r),!n.useCaseSensitiveFileNames()),u.text=null!==(a=null==c?void 0:c.text)&&void 0!==a?a:"",e.setTextRangePosWidth(u,0,null!==(s=null==c?void 0:c.text.length)&&void 0!==s?s:0),e.setEachParent(u.statements,u),e.setTextRangePosWidth(d,u.end,0),e.setParent(d,u),u}))})(a.bundle,C,r),F={getPrependNodes:e.memoize((()=>f(f([],N,!0),[A],!1))),getCanonicalFileName:r.getCanonicalFileName,getCommonSourceDirectory:()=>e.getNormalizedAbsolutePath(a.bundle.commonSourceDirectory,C),getCompilerOptions:()=>t.options,getCurrentDirectory:()=>r.getCurrentDirectory(),getNewLine:()=>r.getNewLine(),getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:()=>w,getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile(r,n,i,o,c,f){switch(r){case d:if(h===n)return;break;case u:if(y===n)return;break;case l:var m=f.buildInfo;m.program=a.program,m.program&&void 0!==S&&t.options.composite&&(m.program.outSignature=e.computeSignature(S,s,T));var g=a.bundle,v=g.js,E=g.dts,C=g.sourceFiles;return m.bundle.js.sources=v.sources,E&&(m.bundle.dts.sources=E.sources),m.bundle.sourceFiles=C,void k.push({name:r,text:b(m),writeByteOrderMark:i,buildInfo:m});case p:if(x===n)return;S=n,T=f;break;case _:if(D===n)return;break;default:e.Debug.fail("Unexpected path: ".concat(r))}k.push({name:r,text:n,writeByteOrderMark:i})},isEmitBlocked:e.returnFalse,readFile:e=>r.readFile(e),fileExists:e=>r.fileExists(e),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames(),getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented,createHash:s};return v(e.notImplementedResolver,F,void 0,e.getTransformers(t.options,i)),k},(e=>{e[e.Notification=0]="Notification",e[e.Substitution=1]="Substitution",e[e.Comments=2]="Comments",e[e.SourceMaps=3]="SourceMaps",e[e.Emit=4]="Emit"})(t||(t={})),e.createPrinter=x,(e=>{e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"})(r||(r={}))})(p),(e=>{var t,r;function n(e){e.watcher.close()}e.createCachedDirectoryStructureHost=(t,r,n)=>{if(t.getDirectories&&t.readDirectory){var i=new e.Map,a=e.createGetCanonicalFileName(n);return{useCaseSensitiveFileNames:n,fileExists(e){var r=c(o(e));return r&&p(r.files,l(e))||t.fileExists(e)},readFile:(e,r)=>t.readFile(e,r),directoryExists:t.directoryExists&&(r=>{var n=o(r);return i.has(e.ensureTrailingDirectorySeparator(n))||t.directoryExists(r)}),getDirectories(e){var r=d(e,o(e));return r?r.directories.slice():t.getDirectories(e)},readDirectory(i,a,s,c,u){var p,_=o(i),m=d(i,_);return void 0!==m?e.matchFiles(i,a,s,c,n,r,u,(t=>{var r=o(t);if(r===_)return m||g(t,r);var n=d(t,r);return void 0!==n?n||g(t,r):e.emptyFileSystemEntries}),f):t.readDirectory(i,a,s,c,u);function g(r,n){if(p&&n===_)return p;var i={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),l)||e.emptyArray,directories:t.getDirectories(r)||e.emptyArray};return n===_&&(p=i),i}},createDirectory:t.createDirectory&&(e=>{var r=c(o(e)),n=l(e);r&&_(r.directories,n,!0),t.createDirectory(e)}),writeFile:t.writeFile&&((e,r,n)=>{var i=c(o(e));return i&&m(i,l(e),!0),t.writeFile(e,r,n)}),addOrDeleteFileOrDirectory(e,r){if(void 0===s(r)){var n=c(r);if(n){if(t.directoryExists){var i=l(e),a={fileExists:t.fileExists(r),directoryExists:t.directoryExists(r)};return a.directoryExists||p(n.directories,i)?g():m(n,i,a.fileExists),a}g()}}else g()},addOrDeleteFile(t,r,n){if(n!==e.FileWatcherEventKind.Changed){var i=c(r);i&&m(i,l(t),n===e.FileWatcherEventKind.Created)}},clearCache:g,realpath:t.realpath&&f}}function o(t){return e.toPath(t,r,a)}function s(t){return i.get(e.ensureTrailingDirectorySeparator(t))}function c(t){return s(e.getDirectoryPath(t))}function l(t){return e.getBaseFileName(e.normalizePath(t))}function d(r,n){var a=s(n=e.ensureTrailingDirectorySeparator(n));if(a)return a;try{return((r,n)=>{var a;if(!t.realpath||e.ensureTrailingDirectorySeparator(o(t.realpath(r)))===n){var s={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),l)||[],directories:t.getDirectories(r)||[]};return i.set(e.ensureTrailingDirectorySeparator(n),s),s}if(null===(a=t.directoryExists)||void 0===a?void 0:a.call(t,r))return i.set(n,!1),!1})(r,n)}catch(t){return void e.Debug.assert(!i.has(e.ensureTrailingDirectorySeparator(n)))}}function u(e,t){return a(e)===a(t)}function p(t,r){return e.some(t,(e=>u(e,r)))}function _(t,r,n){if(p(t,r)){if(!n)return e.filterMutate(t,(e=>!u(e,r)))}else if(n)return t.push(r)}function f(e){return t.realpath?t.realpath(e):e}function m(e,t,r){_(e.files,t,r)}function g(){i.clear()}},(r=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}))[r.None=0]="None",r[r.Partial=1]="Partial",r[r.Full=2]="Full",e.updateSharedExtendedConfigFileWatcher=(t,r,n,i,a)=>{var o,s=e.arrayToMap((null===(o=null==r?void 0:r.configFile)||void 0===o?void 0:o.extendedSourceFiles)||e.emptyArray,a);n.forEach(((e,r)=>{s.has(r)||(e.projects.delete(t),e.close())})),s.forEach(((r,a)=>{var o=n.get(a);o?o.projects.add(t):n.set(a,{projects:new e.Set([t]),watcher:i(r,a),close(){var e=n.get(a);e&&0===e.projects.size&&(e.watcher.close(),n.delete(a))}})}))},e.clearSharedExtendedConfigFileWatcher=(e,t)=>{t.forEach((t=>{t.projects.delete(e)&&t.close()}))},e.cleanExtendedConfigCache=function e(t,r,n){t.delete(r)&&t.forEach(((i,a)=>{var o;(null===(o=i.extendedResult.extendedSourceFiles)||void 0===o?void 0:o.some((e=>n(e)===r)))&&e(t,a,n)}))},e.updatePackageJsonWatch=(t,r,n)=>{var i=new e.Map(t);e.mutateMap(r,i,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateMissingFilePathsWatch=(t,r,n)=>{var i=t.getMissingFilePaths(),a=e.arrayToMap(i,e.identity,e.returnTrue);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=(t,r,i)=>{function a(e,t){return{watcher:i(e,t),flags:t}}e.mutateMap(t,r,{createNewValue:a,onDeleteValue:n,onExistingValue(e,r,n){e.flags!==r&&(e.watcher.close(),t.set(n,a(n,r)))}})},e.isIgnoredFileFromWildCardWatching=t=>{var r=t.watchedDirPath,n=t.fileOrDirectory,i=t.fileOrDirectoryPath,a=t.configFileName,o=t.options,s=t.program,c=t.extraFileExtensions,l=t.currentDirectory,d=t.useCaseSensitiveFileNames,u=t.writeLog,p=t.toPath,_=e.removeIgnoredPath(i);if(!_)return u("Project: ".concat(a," Detected ignored path: ").concat(n)),!0;if((i=_)===r)return!1;if(e.hasExtension(i)&&!e.isSupportedSourceFileName(n,o,c))return u("Project: ".concat(a," Detected file add/remove of non supported extension: ").concat(n)),!0;if(e.isExcludedFile(n,o.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(a),l),d,l))return u("Project: ".concat(a," Detected excluded file: ").concat(n)),!0;if(!s)return!1;if(e.outFile(o)||o.outDir)return!1;if(e.isDeclarationFileName(i)){if(o.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(i,e.supportedJSExtensionsFlat))return!1;var f=e.removeFileExtension(i),m=e.isArray(s)?void 0:(e=>!!e.getState)(s)?s.getProgramOrUndefined():s,g=m||e.isArray(s)?void 0:s;return!(!h(f+".ts")&&!h(f+".tsx")||(u("Project: ".concat(a," Detected output file: ").concat(n)),0));function h(t){return m?!!m.getSourceFileByPath(t):g?g.getState().fileInfos.has(t):!!e.find(s,(e=>p(e)===t))}},e.isEmittedFileOfProgram=(e,t)=>!!e&&e.isEmittedFile(t),(e=>{e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"})(t=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=(r,n,i,a)=>{e.setSysLog(n===t.Verbose?i:e.noop);var o={watchFile:(e,t,n,i)=>r.watchFile(e,t,n,i),watchDirectory:(e,t,n,i)=>r.watchDirectory(e,t,0!=(1&n),i)},s=n!==t.None?{watchFile:u("watchFile"),watchDirectory:u("watchDirectory")}:void 0,c=n===t.Verbose?{watchFile(e,t,r,n,o,c){i("FileWatcher:: Added:: ".concat(p(e,r,n,o,c,a)));var l=s.watchFile(e,t,r,n,o,c);return{close(){i("FileWatcher:: Close:: ".concat(p(e,r,n,o,c,a))),l.close()}}},watchDirectory(t,r,n,o,c,l){var d="DirectoryWatcher:: Added:: ".concat(p(t,n,o,c,l,a));i(d);var u=e.timestamp(),_=s.watchDirectory(t,r,n,o,c,l),f=e.timestamp()-u;return i("Elapsed:: ".concat(f,"ms ").concat(d)),{close(){var r="DirectoryWatcher:: Close:: ".concat(p(t,n,o,c,l,a));i(r);var s=e.timestamp();_.close();var d=e.timestamp()-s;i("Elapsed:: ".concat(d,"ms ").concat(r))}}}}:s||o,l=n===t.Verbose?(e,t,r,n,o)=>(i("ExcludeWatcher:: Added:: ".concat(p(e,t,r,n,o,a))),{close:()=>i("ExcludeWatcher:: Close:: ".concat(p(e,t,r,n,o,a)))}):e.returnNoopFileWatcher;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(t){return(n,i,a,o,s,d)=>{var u;return e.matchesExclude(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof r.useCaseSensitiveFileNames?r.useCaseSensitiveFileNames:r.useCaseSensitiveFileNames(),(null===(u=r.getCurrentDirectory)||void 0===u?void 0:u.call(r))||"")?l(n,a,o,s,d):c[t].call(void 0,n,i,a,o,s,d)}}function u(t){return(r,n,s,c,l,d)=>o[t].call(void 0,r,(function(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];var _="".concat("watchFile"===t?"FileWatcher":"DirectoryWatcher",":: Triggered with ").concat(o[0]," ").concat(void 0!==o[1]?o[1]:"",":: ").concat(p(r,s,c,l,d,a));i(_);var m=e.timestamp();n.call.apply(n,f([void 0],o,!1));var g=e.timestamp()-m;i("Elapsed:: ".concat(g,"ms ").concat(_))}),s,c,l,d)}function p(e,t,r,n,i,a){return"WatchInfo: ".concat(e," ").concat(t," ").concat(JSON.stringify(r)," ").concat(a?a(n,i):void 0===i?n:"".concat(n," ").concat(i))}},e.getFallbackOptions=t=>{var r=null==t?void 0:t.fallbackPolling;return{watchFile:void 0!==r?r:e.WatchFileKind.PriorityPollingInterval}},e.closeFileWatcherOf=n})(p),function(e){function t(t,r){var n=e.getDirectoryPath(r),i=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(i)}function r(e,t){return n(e,t)}function n(t,r,n){void 0===n&&(n=e.sys);var i=new e.Map,a=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames);function o(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}var s=e.getNewLineCharacter(t,(()=>n.newLine)),c=n.realpath&&(e=>n.realpath(e)),l={getSourceFile(t,n,i){var a;try{e.performance.mark("beforeIORead"),a=l.readFile(t),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),a=""}return void 0!==a?e.createSourceFile(t,a,n,r):void 0},getDefaultLibLocation:o,getDefaultLibFileName:t=>e.combinePaths(o(),e.getDefaultLibFileName(t)),writeFile(t,r,a,o){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(t,r,a,((e,t,r)=>n.writeFile(e,t,r)),(e=>(l.createDirectory||n.createDirectory)(e)),(e=>{return t=e,!!i.has(t)||!!(l.directoryExists||n.directoryExists)(t)&&(i.set(t,!0),!0);var t})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){o&&o(e.message)}},getCurrentDirectory:e.memoize((()=>n.getCurrentDirectory())),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:a,getNewLine:()=>s,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+s),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):"",getDirectories:e=>n.getDirectories(e),realpath:c,readDirectory:(e,t,r,i,a)=>n.readDirectory(e,t,r,i,a),createDirectory:e=>n.createDirectory(e),createHash:e.maybeBind(n,n.createHash)};return l}function i(t,r){var n="".concat(e.diagnosticCategoryName(t)," TS").concat(t.code,": ").concat(p(t.messageText,r.getNewLine())).concat(r.getNewLine());if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character,s=t.file.fileName,c=e.convertToRelativePath(s,r.getCurrentDirectory(),(e=>r.getCanonicalFileName(e)));return"".concat(c,"(").concat(a+1,",").concat(o+1,"): ")+n}return n}var a;e.findConfigFile=(t,r,n)=>(void 0===n&&(n="tsconfig.json"),e.forEachAncestorDirectory(t,(t=>{var i=e.combinePaths(t,n);return r(i)?i:void 0}))),e.resolveTripleslashReference=t,e.computeCommonSourceDirectoryOfFilenames=(t,r,n)=>{var i;return e.forEach(t,(t=>{var a=e.getNormalizedPathComponents(t,r);if(a.pop(),i){for(var o=Math.min(i.length,a.length),s=0;s<o;s++)if(n(i[s])!==n(a[s])){if(0===s)return!0;i.length=s;break}a.length<i.length&&(i.length=a.length)}else i=a}))?"":i?e.getPathFromPathComponents(i):r},e.createCompilerHost=r,e.createCompilerHostWorker=n,e.changeCompilerHostLikeToUseCache=(t,r,n)=>{var i=t.readFile,a=t.fileExists,o=t.directoryExists,s=t.createDirectory,c=t.writeFile,l=new e.Map,d=new e.Map,u=new e.Map,p=new e.Map,_=(e,r)=>{var n=i.call(t,r);return l.set(e,void 0!==n&&n),n};t.readFile=n=>{var a=r(n),o=l.get(a);return void 0!==o?!1!==o?o:void 0:e.fileExtensionIs(n,".json")||e.isBuildInfoFile(n)?_(a,n):i.call(t,n)};var m=n?(t,i,a,o)=>{var s=r(t),c=p.get(s);if(c)return c;var l=n(t,i,a,o);return l&&(e.isDeclarationFileName(t)||e.fileExtensionIs(t,".json"))&&p.set(s,l),l}:void 0;return t.fileExists=e=>{var n=r(e),i=d.get(n);if(void 0!==i)return i;var o=a.call(t,e);return d.set(n,!!o),o},c&&(t.writeFile=function(e,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var o=r(e);d.delete(o);var s=l.get(o);if(void 0!==s&&s!==n)l.delete(o),p.delete(o);else if(m){var u=p.get(o);u&&u.text!==n&&p.delete(o)}c.call.apply(c,f([t,e,n],i,!1))}),o&&(t.directoryExists=e=>{var n=r(e),i=u.get(n);if(void 0!==i)return i;var a=o.call(t,e);return u.set(n,!!a),a},s&&(t.createDirectory=e=>{var n=r(e);u.delete(n),s.call(t,e)})),{originalReadFile:i,originalFileExists:a,originalDirectoryExists:o,originalCreateDirectory:s,originalWriteFile:c,getSourceFileWithCache:m,readFileWithCache(e){var t=r(e),n=l.get(t);return void 0!==n?!1!==n?n:void 0:_(t,e)}}},e.getPreEmitDiagnostics=(t,r,n)=>{var i;return i=e.addRange(i,t.getConfigFileParsingDiagnostics()),i=e.addRange(i,t.getOptionsDiagnostics(n)),i=e.addRange(i,t.getSyntacticDiagnostics(r,n)),i=e.addRange(i,t.getGlobalDiagnostics(n)),i=e.addRange(i,t.getSemanticDiagnostics(r,n)),e.getEmitDeclarations(t.getCompilerOptions())&&(i=e.addRange(i,t.getDeclarationDiagnostics(r,n))),e.sortAndDeduplicateDiagnostics(i||e.emptyArray)},e.formatDiagnostics=(e,t)=>{for(var r="",n=0,a=e;n<a.length;n++)r+=i(a[n],t);return r},e.formatDiagnostic=i,(e=>{e.Grey="[90m",e.Red="[91m",e.Yellow="[93m",e.Blue="[94m",e.Cyan="[96m"})(a=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var o="[7m",s="[0m";function c(t){switch(t){case e.DiagnosticCategory.Error:return a.Red;case e.DiagnosticCategory.Warning:return a.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return a.Blue}}function l(e,t){return t+e+s}function d(t,r,n,i,a,c){var d=e.getLineAndCharacterOfPosition(t,r),u=d.line,p=d.character,_=e.getLineAndCharacterOfPosition(t,r+n),f=_.line,m=_.character,g=e.getLineAndCharacterOfPosition(t,t.text.length).line,h=f-u>=4,y=(f+1+"").length;h&&(y=Math.max("...".length,y));for(var v="",b=u;b<=f;b++){v+=c.getNewLine(),h&&u+1<b&&b<f-1&&(v+=i+l(e.padLeft("...",y),o)+" "+c.getNewLine(),b=f-1);var E=e.getPositionOfLineAndCharacter(t,b,0),x=b<g?e.getPositionOfLineAndCharacter(t,b+1,0):t.text.length,D=t.text.slice(E,x);if(D=(D=e.trimStringEnd(D)).replace(/\t/g," "),v+=i+l(e.padLeft(b+1+"",y),o)+" ",v+=D+c.getNewLine(),v+=i+l(e.padLeft("",y),o)+" ",v+=a,b===u){var S=b===f?m:void 0;v+=D.slice(0,p).replace(/\S/g," "),v+=D.slice(p,S).replace(/./g,"~")}else v+=b===f?D.slice(0,m).replace(/./g,"~"):D.replace(/./g,"~");v+=s}return v}function u(t,r,n,i){void 0===i&&(i=l);var o=e.getLineAndCharacterOfPosition(t,r),s=o.line,c=o.character,d="";return d+=i(n?e.convertToRelativePath(t.fileName,n.getCurrentDirectory(),(e=>n.getCanonicalFileName(e))):t.fileName,a.Cyan),d+=":",d+=i("".concat(s+1),a.Yellow),(d+=":")+i("".concat(c+1),a.Yellow)}function p(t,r,n){if(void 0===n&&(n=0),e.isString(t))return t;if(void 0===t)return"";var i="";if(n){i+=r;for(var a=0;a<n;a++)i+=" "}if(i+=t.messageText,n++,t.next)for(var o=0,s=t.next;o<s.length;o++)i+=p(s[o],r,n);return i}function _(t,r,n,i,a){if(0===t.length)return[];for(var o=[],s=new e.Map,c=0,l=t;c<l.length;c++){var d=l[c],u=void 0,p=g(d,i),_=e.isString(d)?d:d.fileName.toLowerCase(),f=void 0!==p?"".concat(p,"|").concat(_):_;s.has(f)?u=s.get(f):s.set(f,u=a(_,r,n,p)),o.push(u)}return o}function g(t,r){return(e.isString(t)?r:t.resolutionMode)||r}function h(e,t){if(void 0!==e.impliedNodeFormat)return v(e,O(e,t))}function y(t){var r;return e.isExportDeclaration(t)?t.isTypeOnly:!!(null===(r=t.importClause)||void 0===r?void 0:r.isTypeOnly)}function v(t,r){var n,i;if(void 0!==t.impliedNodeFormat){var a;if((e.isImportDeclaration(r.parent)||e.isExportDeclaration(r.parent))&&y(r.parent)&&(a=b(r.parent.assertClause)))return a;if(r.parent.parent&&e.isImportTypeNode(r.parent.parent)&&(a=b(null===(n=r.parent.parent.assertions)||void 0===n?void 0:n.assertClause)))return a;if(t.impliedNodeFormat!==e.ModuleKind.ESNext)return e.isImportCall(e.walkUpParenthesizedExpressions(r.parent))?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;var o=null===(i=e.walkUpParenthesizedExpressions(r.parent))||void 0===i?void 0:i.parent;return o&&e.isImportEqualsDeclaration(o)?e.ModuleKind.CommonJS:e.ModuleKind.ESNext}}function b(t,r){if(t)if(1===e.length(t.elements)){var n=t.elements[0];if(e.isStringLiteralLike(n.name))if("resolution-mode"===n.name.text){if(e.isStringLiteralLike(n.value)){if("import"===n.value.text||"require"===n.value.text)return"import"===n.value.text?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;null==r||r(n.value,e.Diagnostics.resolution_mode_should_be_either_require_or_import)}}else null==r||r(n.name,e.Diagnostics.resolution_mode_is_the_only_valid_key_for_type_import_assertions)}else null==r||r(t,e.Diagnostics.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require)}function E(t,r,n,i,a){if(0===t.length)return[];for(var o=[],s=new e.Map,c=0,l=0,d=t;l<d.length;l++){var u=d[l],p=void 0,_=h(r,c);c++;var f=void 0!==_?"".concat(_,"|").concat(u):u;s.has(f)?p=s.get(f):s.set(f,p=a(u,_,n,i)),o.push(p)}return o}function x(t,r,n,i){var a;return function t(r,o,s){if(i){var c=i(r,s);if(c)return c}return e.forEach(o,((r,i)=>{if(!r||!(null==a?void 0:a.has(r.sourceFile.path))){var o=n(r,s,i);return o||!r?o:((a||(a=new e.Set)).add(r.sourceFile.path),t(r.commandLine.projectReferences,r.references,r))}}))}(t,r,void 0)}function D(t){switch(null==t?void 0:t.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}function S(e){return void 0!==e.pos}function T(t,r){var n,i,a,o,s,c,l,d,u,p,_,f=e.Debug.checkDefined(t(r.file)),m=r.kind,g=r.index;switch(m){case e.FileIncludeKind.Import:var y=O(f,g);if(p=null===(s=null===(o=f.resolvedModules)||void 0===o?void 0:o.get(y.text,h(f,g)))||void 0===s?void 0:s.packageId,-1===y.pos)return{file:f,packageId:p,text:y.text};d=e.skipTrivia(f.text,y.pos),u=y.end;break;case e.FileIncludeKind.ReferenceFile:d=(n=f.referencedFiles[g]).pos,u=n.end;break;case e.FileIncludeKind.TypeReferenceDirective:d=(i=f.typeReferenceDirectives[g]).pos,u=i.end,_=i.resolutionMode,p=null===(l=null===(c=f.resolvedTypeReferenceDirectiveNames)||void 0===c?void 0:c.get(e.toFileNameLowerCase(f.typeReferenceDirectives[g].fileName),_||f.impliedNodeFormat))||void 0===l?void 0:l.packageId;break;case e.FileIncludeKind.LibReferenceDirective:d=(a=f.libReferenceDirectives[g]).pos,u=a.end;break;default:return e.Debug.assertNever(m)}return{file:f,pos:d,end:u,packageId:p}}function C(t,r,n,i){switch(e.getEmitModuleResolutionKind(i)){case e.ModuleResolutionKind.Node16:case e.ModuleResolutionKind.NodeNext:return e.fileExtensionIsOneOf(t,[".d.mts",".mts",".mjs"])?e.ModuleKind.ESNext:e.fileExtensionIsOneOf(t,[".d.cts",".cts",".cjs"])?e.ModuleKind.CommonJS:e.fileExtensionIsOneOf(t,[".d.ts",".ts",".tsx",".js",".jsx"])?(()=>{var a=e.getTemporaryModuleResolutionState(r,n,i),o=[];a.failedLookupLocations=o,a.affectingLocations=o;var s=e.getPackageScopeForPath(t,a);return{impliedNodeFormat:"module"===(null==s?void 0:s.contents.packageJsonContent.type)?e.ModuleKind.ESNext:e.ModuleKind.CommonJS,packageJsonLocations:o,packageJsonScope:s}})():void 0;default:return}}function A(t,r,n,i){var a=t.getCompilerOptions();if(a.noEmit)return t.getSemanticDiagnostics(r,i),r||e.outFile(a)?e.emitSkippedWithNoDiagnostics:t.emitBuildInfo(n,i);if(a.noEmitOnError){var o=f(f(f(f([],t.getOptionsDiagnostics(i),!0),t.getSyntacticDiagnostics(r,i),!0),t.getGlobalDiagnostics(i),!0),t.getSemanticDiagnostics(r,i),!0);if(0===o.length&&e.getEmitDeclarations(t.getCompilerOptions())&&(o=t.getDeclarationDiagnostics(void 0,i)),o.length){var s;if(!r&&!e.outFile(a)){var c=t.emitBuildInfo(n,i);c.diagnostics&&(o=f(f([],o,!0),c.diagnostics,!0)),s=c.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:s,emitSkipped:!0}}}}function k(t,r){return e.filter(t,(e=>!e.skippedOn||!r[e.skippedOn]))}function N(t,r){return void 0===r&&(r=t),{fileExists:e=>r.fileExists(e),readDirectory:(t,n,i,a,o)=>(e.Debug.assertIsDefined(r.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),r.readDirectory(t,n,i,a,o)),readFile:e=>r.readFile(e),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:()=>t.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:t.trace?e=>t.trace(e):void 0}}function w(t,r,n){if(!t)return e.emptyArray;for(var i,a=0;a<t.length;a++){var o=t[a],s=r(o,a);if(o.prepend&&s&&s.options){if(!e.outFile(s.options))continue;var c=e.getOutputPathsForBundle(s.options,!0),l=c.jsFilePath,d=c.sourceMapFilePath,u=c.declarationFilePath,p=c.declarationMapPath,_=c.buildInfoPath,f=e.createInputFiles(n,l,d,u,p,_);(i||(i=[])).push(f)}}return i||e.emptyArray}function F(t,r){var n=r||t;return e.resolveConfigFileProjectName(n.path)}function P(t,r){switch(r.extension){case".ts":case".d.ts":return;case".tsx":return n();case".jsx":return n()||i();case".js":return i();case".json":return t.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function n(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return e.getAllowJSCompilerOption(t)||!e.getStrictOptionValue(t,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function I(e){for(var t=e.imports,r=e.moduleAugmentations,n=t.map((e=>e.text)),i=0,a=r;i<a.length;i++){var o=a[i];10===o.kind&&n.push(o.text)}return n}function O(t,r){var n=t.imports,i=t.moduleAugmentations;if(r<n.length)return n[r];for(var a=n.length,o=0,s=i;o<s.length;o++){var c=s[o];if(10===c.kind){if(r===a)return c;a++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.formatColorAndReset=l,e.formatLocation=u,e.formatDiagnosticsWithColorAndContext=(t,r)=>{for(var n="",i=0,o=t;i<o.length;i++){var s=o[i];if(s.file&&(n+=u(g=s.file,h=s.start,r),n+=" - "),n+=l(e.diagnosticCategoryName(s),c(s.category)),n+=l(" TS".concat(s.code,": "),a.Grey),n+=p(s.messageText,r.getNewLine()),s.file&&(n+=r.getNewLine(),n+=d(s.file,s.start,s.length,"",c(s.category),r)),s.relatedInformation){n+=r.getNewLine();for(var _=0,f=s.relatedInformation;_<f.length;_++){var m=f[_],g=m.file,h=m.start,y=m.length,v=m.messageText;g&&(n+=r.getNewLine(),n+=" "+u(g,h,r),n+=d(g,h,y," ",a.Cyan,r)),n+=r.getNewLine(),n+=" "+p(v,r.getNewLine())}}n+=r.getNewLine()}return n},e.flattenDiagnosticMessageText=p,e.loadWithTypeDirectiveCache=_,e.getModeForFileReference=g,e.getModeForResolutionAtIndex=h,e.isExclusivelyTypeOnlyImportOrExport=y,e.getModeForUsageLocation=v,e.getResolutionModeOverrideForClause=b,e.loadWithModeAwareCache=E,e.forEachResolvedProjectReference=(e,t)=>x(void 0,e,((e,r)=>e&&t(e,r))),e.inferredTypesContainingFile="__inferred type names__.ts",e.isReferencedFile=D,e.isReferenceFileLocation=S,e.getReferencedFileLocation=T,e.isProgramUptoDate=(t,r,n,i,a,o,s,c,l)=>{if(!t||(null==s?void 0:s()))return!1;if(!e.arrayIsEqualTo(t.getRootFileNames(),r))return!1;var d;if(!e.arrayIsEqualTo(t.getProjectReferences(),l,((r,n,i)=>e.projectReferenceIsEqualTo(r,n)&&p(t.getResolvedProjectReferences()[i],r))))return!1;if(t.getSourceFiles().some((e=>!(e=>e.version===i(e.resolvedPath,e.fileName))(e)||o(e.path))))return!1;if(t.getMissingFilePaths().some(a))return!1;var u=t.getCompilerOptions();return!(!e.compareDataObjects(u,n)||u.configFile&&n.configFile&&u.configFile.text!==n.configFile.text);function p(t,r){if(t){if(e.contains(d,t))return!0;var n=F(r),i=c(n);return!!i&&t.commandLine.options.configFile===i.options.configFile&&!!e.arrayIsEqualTo(t.commandLine.fileNames,i.fileNames)&&((d||(d=[])).push(t),!e.forEach(t.references,((e,r)=>!p(e,t.commandLine.projectReferences[r]))))}var a=F(r);return!c(a)}},e.getConfigFileParsingDiagnostics=e=>e.options.configFile?f(f([],e.options.configFile.parseDiagnostics,!0),e.errors,!0):e.errors,e.getImpliedNodeFormatForFile=(e,t,r,n)=>{var i=C(e,t,r,n);return"object"==typeof i?i.impliedNodeFormat:i},e.getImpliedNodeFormatForFileWorker=C,e.plainJSErrors=new e.Set([e.Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,e.Diagnostics.A_module_cannot_have_multiple_default_exports.code,e.Diagnostics.Another_export_default_is_here.code,e.Diagnostics.The_first_export_default_is_here.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,e.Diagnostics.constructor_is_a_reserved_word.code,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,e.Diagnostics.Invalid_use_of_0_in_strict_mode.code,e.Diagnostics.A_label_is_not_allowed_here.code,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode.code,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode.code,e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name.code,e.Diagnostics.A_class_member_cannot_have_the_0_keyword.code,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer.code,e.Diagnostics.A_get_accessor_cannot_have_parameters.code,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern.code,e.Diagnostics.A_rest_element_cannot_have_a_property_name.code,e.Diagnostics.A_rest_element_cannot_have_an_initializer.code,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern.code,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer.code,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list.code,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block.code,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter.code,e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter.code,e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,e.Diagnostics.An_export_declaration_cannot_have_modifiers.code,e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,e.Diagnostics.An_import_declaration_cannot_have_modifiers.code,e.Diagnostics.An_object_member_cannot_be_declared_optional.code,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element.code,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause.code,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer.code,e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,e.Diagnostics.Classes_can_only_extend_a_single_class.code,e.Diagnostics.Classes_may_not_have_a_field_named_constructor.code,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,e.Diagnostics.Duplicate_label_0.code,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,e.Diagnostics.Jump_target_cannot_cross_function_boundary.code,e.Diagnostics.Line_terminator_not_permitted_before_arrow.code,e.Diagnostics.Modifiers_cannot_appear_here.code,e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,e.Diagnostics.Trailing_comma_not_allowed.code,e.Diagnostics.Variable_declaration_list_cannot_be_empty.code,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses.code,e.Diagnostics._0_expected.code,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,e.Diagnostics._0_list_cannot_be_empty.code,e.Diagnostics._0_modifier_already_seen.code,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration.code,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter.code,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,e.Diagnostics._0_modifier_cannot_be_used_here.code,e.Diagnostics._0_modifier_must_precede_1_modifier.code,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code,e.Diagnostics.const_declarations_must_be_initialized.code,e.Diagnostics.extends_clause_already_seen.code,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,e.Diagnostics.Class_constructor_may_not_be_a_generator.code,e.Diagnostics.Class_constructor_may_not_be_an_accessor.code,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code]),e.createProgram=function(n,i,a,o,s){var c,l,d,u,p,y,v,b,O,M,R,L,B=e.isArray(n)?((e,t,r,n,i)=>({rootNames:e,options:t,host:r,oldProgram:n,configFileParsingDiagnostics:i}))(n,i,a,o,s):n,U=B.rootNames,j=B.options,V=B.configFileParsingDiagnostics,z=B.projectReferences,H=B.oldProgram,W=new e.Map,K=e.createMultiMap(),J={},G={},$=e.createModeAwareCache(),q="number"==typeof j.maxNodeModuleJsDepth?j.maxNodeModuleJsDepth:0,X=0,Y=new e.Map,Q=new e.Map;null===e.tracing||void 0===e.tracing||e.tracing.push("program","createProgram",{configFilePath:j.configFilePath,rootDir:j.rootDir},!0),e.performance.mark("beforeProgram");var Z,ee,te,re,ne,ie=B.host||r(j),ae=N(ie),oe=j.noLib,se=e.memoize((()=>ie.getDefaultLibFileName(j))),ce=ie.getDefaultLibLocation?ie.getDefaultLibLocation():e.getDirectoryPath(se()),le=e.createDiagnosticCollection(),de=ie.getCurrentDirectory(),ue=e.getSupportedExtensions(j),pe=e.getSupportedExtensionsWithJsonIfResolveJsonModule(j,ue),_e=new e.Map,fe=ie.hasInvalidatedResolution||e.returnFalse;if(ie.resolveModuleNames)re=(t,r,n,i,a)=>ie.resolveModuleNames(e.Debug.checkEachDefined(t),n,i,a,j,r).map((t=>{if(!t||void 0!==t.extension)return t;var r=e.clone(t);return r.extension=e.extensionFromPath(t.resolvedFileName),r})),ee=null===(c=ie.getModuleResolutionCache)||void 0===c?void 0:c.call(ie);else{ee=e.createModuleResolutionCache(de,$t,j);var me=(t,r,n,i)=>e.resolveModuleName(t,n,j,ie,ee,i,r).resolvedModule;re=(t,r,n,i,a)=>E(e.Debug.checkEachDefined(t),r,n,a,me)}if(ie.resolveTypeReferenceDirectives)ne=(t,r,n,i)=>ie.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(t),r,n,j,i);else{te=e.createTypeReferenceDirectiveResolutionCache(de,$t,void 0,null==ee?void 0:ee.getPackageJsonInfoCache());var ge=(t,r,n,i)=>e.resolveTypeReferenceDirective(t,r,j,ie,n,te,i).resolvedTypeReferenceDirective;ne=(t,r,n,i)=>_(e.Debug.checkEachDefined(t),r,n,i,ge)}var he,ye,ve,be,Ee,xe=new e.Map,De=new e.Map,Se=e.createMultiMap(),Te=!1,Ce=new e.Map,Ae=ie.useCaseSensitiveFileNames()?new e.Map:void 0,ke=!!(null===(l=ie.useSourceOfProjectReferenceRedirect)||void 0===l?void 0:l.call(ie))&&!j.disableSourceOfProjectReferenceRedirect,Ne=(t=>{var r,n,i=t.compilerHost.fileExists,a=t.compilerHost.directoryExists,o=t.compilerHost.getDirectories,s=t.compilerHost.realpath;return t.useSourceOfProjectReferenceRedirect?(t.compilerHost.fileExists=c,a&&(n=t.compilerHost.directoryExists=n=>a.call(t.compilerHost,n)?((r=>{var n;if(t.getResolvedProjectReferences()&&!e.containsIgnoredPath(r)&&s&&e.stringContains(r,e.nodeModulesPathPart)){var i=t.getSymlinkCache(),a=e.ensureTrailingDirectorySeparator(t.toPath(r));if(!(null===(n=i.getSymlinkedDirectories())||void 0===n?void 0:n.has(a))){var o,c=e.normalizePath(s.call(t.compilerHost,r));c!==r&&(o=e.ensureTrailingDirectorySeparator(t.toPath(c)))!==a?i.setSymlinkedDirectory(r,{real:e.ensureTrailingDirectorySeparator(c),realPath:o}):i.setSymlinkedDirectory(a,!1)}}})(n),!0):!!t.getResolvedProjectReferences()&&(r||(r=new e.Set,t.forEachResolvedProjectReference((n=>{var i=e.outFile(n.commandLine.options);if(i)r.add(e.getDirectoryPath(t.toPath(i)));else{var a=n.commandLine.options.declarationDir||n.commandLine.options.outDir;a&&r.add(t.toPath(a))}}))),l(n,!1))),o&&(t.compilerHost.getDirectories=e=>!t.getResolvedProjectReferences()||a&&a.call(t.compilerHost,e)?o.call(t.compilerHost,e):[]),s&&(t.compilerHost.realpath=e=>{var r;return(null===(r=t.getSymlinkCache().getSymlinkedFiles())||void 0===r?void 0:r.get(t.toPath(e)))||s.call(t.compilerHost,e)}),{onProgramCreateComplete(){t.compilerHost.fileExists=i,t.compilerHost.directoryExists=a,t.compilerHost.getDirectories=o},fileExists:c,directoryExists:n}):{onProgramCreateComplete:e.noop,fileExists:c};function c(r){return!!i.call(t.compilerHost,r)||!!t.getResolvedProjectReferences()&&!!e.isDeclarationFileName(r)&&l(r,!0)}function l(n,a){var o,s=a?r=>(r=>{var n=t.getSourceOfProjectReferenceRedirect(t.toPath(r));return void 0!==n?!e.isString(n)||i.call(t.compilerHost,n):void 0})(r):n=>(n=>{var i=t.toPath(n),a="".concat(i).concat(e.directorySeparator);return e.forEachKey(r,(t=>i===t||e.startsWith(t,a)||e.startsWith(i,"".concat(t,"/"))))})(n),c=s(n);if(void 0!==c)return c;var l=t.getSymlinkCache(),d=l.getSymlinkedDirectories();if(!d)return!1;var u=t.toPath(n);return!!e.stringContains(u,e.nodeModulesPathPart)&&(!(!a||!(null===(o=l.getSymlinkedFiles())||void 0===o?void 0:o.has(u)))||e.firstDefinedIterator(d.entries(),(r=>{var i=r[0],o=r[1];if(o&&e.startsWith(u,i)){var c=s(u.replace(i,o.realPath));if(a&&c){var d=e.getNormalizedAbsolutePath(n,t.compilerHost.getCurrentDirectory());l.setSymlinkedFile(u,"".concat(o.real).concat(d.replace(new RegExp(i,"i"),"")))}return c}}))||!1)}})({compilerHost:ie,getSymlinkCache:_r,useSourceOfProjectReferenceRedirect:ke,toPath:Qe,getResolvedProjectReferences:nt,getSourceOfProjectReferenceRedirect:jt,forEachResolvedProjectReference:Ut}),we=Ne.onProgramCreateComplete,Fe=Ne.fileExists,Pe=Ne.directoryExists,Ie=ie.readFile.bind(ie);null===e.tracing||void 0===e.tracing||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!H});var Oe,Me=((t,r)=>!!t&&e.optionsHaveChanges(t.getCompilerOptions(),r,e.sourceFileAffectingCompilerOptions))(H,j);if(null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),Oe=(()=>{var t,r;if(!H)return 0;var n=H.getCompilerOptions();if(e.changesAffectModuleResolution(n,j))return 0;var i=H.getRootFileNames();if(!e.arrayIsEqualTo(i,U))return 0;if(x(H.getProjectReferences(),H.getResolvedProjectReferences(),((t,r,n)=>{var i=Xt((r?r.commandLine.projectReferences:z)[n]);return t?!i||i.sourceFile!==t.sourceFile||!e.arrayIsEqualTo(t.commandLine.fileNames,i.commandLine.fileNames):void 0!==i}),((t,r)=>{var n=r?zt(r.sourceFile.path).commandLine.projectReferences:z;return!e.arrayIsEqualTo(t,n,e.projectReferenceIsEqualTo)})))return 0;z&&(ye=z.map(Xt));var a=[],o=[];if(Oe=2,H.getMissingFilePaths().some((e=>ie.fileExists(e))))return 0;var s,c=H.getSourceFiles();!(e=>{e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"})(s||(s={}));for(var l=new e.Map,d=0,u=c;d<u.length;d++){var p=Pt((N=u[d]).fileName,ee,ie,j);if(!(B=ie.getSourceFileByPath?ie.getSourceFileByPath(N.fileName,N.resolvedPath,p,void 0,Me||p.impliedNodeFormat!==N.impliedNodeFormat):ie.getSourceFile(N.fileName,p,void 0,Me||p.impliedNodeFormat!==N.impliedNodeFormat)))return 0;B.packageJsonLocations=(null===(t=p.packageJsonLocations)||void 0===t?void 0:t.length)?p.packageJsonLocations:void 0,B.packageJsonScope=p.packageJsonScope,e.Debug.assert(!B.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var _=void 0;if(N.redirectInfo){if(B!==N.redirectInfo.unredirected)return 0;_=!1,B=N}else if(H.redirectTargetsMap.has(N.path)){if(B!==N)return 0;_=!1}else _=B!==N;B.path=N.path,B.originalFileName=N.originalFileName,B.resolvedPath=N.resolvedPath,B.fileName=N.fileName;var f=H.sourceFileToPackageName.get(N.path);if(void 0!==f){var m=l.get(f),g=_?1:0;if(void 0!==m&&1===g||1===m)return 0;l.set(f,g)}_?(N.impliedNodeFormat!==B.impliedNodeFormat?Oe=1:e.arrayIsEqualTo(N.libReferenceDirectives,B.libReferenceDirectives,Dt)?N.hasNoDefaultLib!==B.hasNoDefaultLib?Oe=1:e.arrayIsEqualTo(N.referencedFiles,B.referencedFiles,Dt)?(Ct(B),e.arrayIsEqualTo(N.imports,B.imports,St)&&e.arrayIsEqualTo(N.moduleAugmentations,B.moduleAugmentations,St)?(6291456&N.flags)!=(6291456&B.flags)?Oe=1:e.arrayIsEqualTo(N.typeReferenceDirectives,B.typeReferenceDirectives,Dt)||(Oe=1):Oe=1):Oe=1:Oe=1,o.push({oldFile:N,newFile:B})):fe(N.path)&&(Oe=1,o.push({oldFile:N,newFile:B})),a.push(B)}if(2!==Oe)return Oe;for(var h=o.map((e=>e.oldFile)),y=0,b=c;y<b.length;y++){var E=b[y];if(!e.contains(h,E))for(var D=0,S=E.ambientModuleNames;D<S.length;D++){var T=S[D];W.set(T,E.fileName)}}for(var C=0,A=o;C<A.length;C++){var k=A[C],N=k.oldFile,w=I(B=k.newFile),F=et(w,B);e.hasChangesInResolutions(w,F,N.resolvedModules,N,e.moduleResolutionIsEqualTo)?(Oe=1,B.resolvedModules=e.zipToModeAwareCache(B,w,F)):B.resolvedModules=N.resolvedModules;var P=B.typeReferenceDirectives,O=$e(P,B);e.hasChangesInResolutions(P,O,N.resolvedTypeReferenceDirectiveNames,N,e.typeDirectiveIsEqualTo)?(Oe=1,B.resolvedTypeReferenceDirectiveNames=e.zipToModeAwareCache(B,P,O)):B.resolvedTypeReferenceDirectiveNames=N.resolvedTypeReferenceDirectiveNames}if(2!==Oe)return Oe;if(e.changesAffectingProgramStructure(n,j)||(null===(r=ie.hasChangedAutomaticTypeDirectiveNames)||void 0===r?void 0:r.call(ie)))return 1;he=H.getMissingFilePaths(),e.Debug.assert(a.length===H.getSourceFiles().length);for(var M=0,R=a;M<R.length;M++){var B=R[M];Ce.set(B.path,B)}return H.getFilesByNameMap().forEach(((e,t)=>{e?e.path!==t?Ce.set(t,Ce.get(e.path)):H.isSourceFileFromExternalLibrary(e)&&Q.set(e.path,!0):Ce.set(t,e)})),v=a,K=H.getFileIncludeReasons(),L=H.getFileProcessingDiagnostics(),$=H.getResolvedTypeReferenceDirectives(),De=H.sourceFileToPackageName,Se=H.redirectTargetsMap,Te=H.usesUriStyleNodeCoreModules,2})(),null===e.tracing||void 0===e.tracing||e.tracing.pop(),2!==Oe){p=[],y=[],z&&(ye||(ye=z.map(Xt)),U.length&&(null==ye||ye.forEach(((t,r)=>{if(t){var n=e.outFile(t.commandLine.options);if(ke){if(n||e.getEmitModuleKind(t.commandLine.options)===e.ModuleKind.None)for(var i=0,a=t.commandLine.fileNames;i<a.length;i++)Nt(l=a[i],{kind:e.FileIncludeKind.SourceFromProjectReference,index:r})}else if(n)Nt(e.changeExtension(n,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:r});else if(e.getEmitModuleKind(t.commandLine.options)===e.ModuleKind.None)for(var o=e.memoize((()=>e.getCommonSourceDirectoryOfConfig(t.commandLine,!ie.useCaseSensitiveFileNames()))),s=0,c=t.commandLine.fileNames;s<c.length;s++){var l=c[s];e.isDeclarationFileName(l)||e.fileExtensionIs(l,".json")||Nt(e.getOutputDeclarationFileName(l,t.commandLine,!ie.useCaseSensitiveFileNames(),o),{kind:e.FileIncludeKind.OutputFromProjectReference,index:r})}}})))),null===e.tracing||void 0===e.tracing||e.tracing.push("program","processRootFiles",{count:U.length}),e.forEach(U,((t,r)=>xt(t,!1,!1,{kind:e.FileIncludeKind.RootFile,index:r}))),null===e.tracing||void 0===e.tracing||e.tracing.pop();var Re=U.length?e.getAutomaticTypeDirectiveNames(j,ie):e.emptyArray;if(Re.length){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferences",{count:Re.length});for(var Le=j.configFilePath?e.getDirectoryPath(j.configFilePath):ie.getCurrentDirectory(),Be=$e(Re,e.combinePaths(Le,e.inferredTypesContainingFile)),Ue=0;Ue<Re.length;Ue++)Kt(Re[Ue],void 0,Be[Ue],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:Re[Ue],packageId:null===(d=Be[Ue])||void 0===d?void 0:d.packageId});null===e.tracing||void 0===e.tracing||e.tracing.pop()}if(U.length&&!oe){var je=se();!j.lib&&je?xt(je,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(j.lib,((t,r)=>{xt(Jt(t),!0,!1,{kind:e.FileIncludeKind.LibFile,index:r})}))}he=e.arrayFrom(e.mapDefinedIterator(Ce.entries(),(e=>{var t=e[0];return void 0===e[1]?t:void 0}))),v=e.stableSort(p,((t,r)=>e.compareValues(Ye(t),Ye(r)))).concat(y),p=void 0,y=void 0}if(e.Debug.assert(!!he),H&&ie.onReleaseOldSourceFile){for(var Ve=0,ze=H.getSourceFiles();Ve<ze.length;Ve++){var He=ze[Ve],We=lt(He.resolvedPath);(Me||!We||We.impliedNodeFormat!==He.impliedNodeFormat||He.resolvedPath===He.path&&We.resolvedPath!==He.path)&&ie.onReleaseOldSourceFile(He,H.getCompilerOptions(),!!lt(He.path))}ie.getParsedCommandLine||H.forEachResolvedProjectReference((e=>{zt(e.sourceFile.path)||ie.onReleaseOldSourceFile(e.sourceFile,H.getCompilerOptions(),!1)}))}H&&ie.onReleaseParsedCommandLine&&x(H.getProjectReferences(),H.getResolvedProjectReferences(),((e,t,r)=>{var n=F((null==t?void 0:t.commandLine.projectReferences[r])||H.getProjectReferences()[r]);(null==ve?void 0:ve.has(Qe(n)))||ie.onReleaseParsedCommandLine(n,e,H.getCompilerOptions())})),te=void 0,H=void 0;var Ke={getRootFileNames:()=>U,getSourceFile:ct,getSourceFileByPath:lt,getSourceFiles:()=>v,getMissingFilePaths:()=>he,getModuleResolutionCache:()=>ee,getFilesByNameMap:()=>Ce,getCompilerOptions:()=>j,getSyntacticDiagnostics:(e,t)=>dt(e,pt,t),getOptionsDiagnostics:()=>e.sortAndDeduplicateDiagnostics(e.concatenate(le.getGlobalDiagnostics(),(()=>{if(!j.configFile)return e.emptyArray;var t=le.getDiagnostics(j.configFile.fileName);return Ut((r=>{t=e.concatenate(t,le.getDiagnostics(r.sourceFile.fileName))})),t})())),getGlobalDiagnostics:()=>U.length?e.sortAndDeduplicateDiagnostics(ot().getGlobalDiagnostics().slice()):e.emptyArray,getSemanticDiagnostics:(e,t)=>dt(e,ft,t),getCachedSemanticDiagnostics(e){var t;return e?null===(t=J.perFile)||void 0===t?void 0:t.get(e.path):J.allDiagnostics},getSuggestionDiagnostics:(e,t)=>_t((()=>ot().getSuggestionDiagnostics(e,t))),getDeclarationDiagnostics(t,r){var n=Ke.getCompilerOptions();return!t||e.outFile(n)?yt(t,r):dt(t,Et,r)},getBindAndCheckDiagnostics:(e,t)=>mt(e,t),getProgramDiagnostics:ut,getTypeChecker:ot,getClassifiableNames(){var t;if(!R){ot(),R=new e.Set;for(var r=0,n=v;r<n.length;r++)null===(t=n[r].classifiableNames)||void 0===t||t.forEach((e=>R.add(e)))}return R},getCommonSourceDirectory:Ze,emit(t,r,n,i,a,o){null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emit",{path:null==t?void 0:t.path},!0);var s=_t((()=>((t,r,n,i,a,o,s)=>{if(!s){var c=A(t,r,n,i);if(c)return c}var l=ot().getEmitResolver(e.outFile(j)?void 0:r,i);e.performance.mark("beforeEmit");var d=e.emitFiles(l,tt(n),r,e.getTransformers(j,o,a),a,!1,s);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d})(Ke,t,r,n,i,a,o)));return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s},getCurrentDirectory:()=>de,getNodeCount:()=>ot().getNodeCount(),getIdentifierCount:()=>ot().getIdentifierCount(),getSymbolCount:()=>ot().getSymbolCount(),getTypeCount:()=>ot().getTypeCount(),getInstantiationCount:()=>ot().getInstantiationCount(),getRelationCacheSizes:()=>ot().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>L,getResolvedTypeReferenceDirectives:()=>$,isSourceFileFromExternalLibrary:at,isSourceFileDefaultLibrary(t){if(!t.isDeclarationFile)return!1;if(t.hasNoDefaultLib)return!0;if(!j.noLib)return!1;var r=ie.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return j.lib?e.some(j.lib,(e=>r(t.fileName,Jt(e)))):r(t.fileName,se())},getSourceFileFromReference:(e,r)=>At(t(r.fileName,e.fileName),ct),getLibFileFromReference(t){var r=e.toFileNameLowerCase(t.fileName),n=e.libMap.get(r);if(n)return ct(Jt(n))},sourceFileToPackageName:De,redirectTargetsMap:Se,usesUriStyleNodeCoreModules:Te,isEmittedFile(t){if(j.noEmit)return!1;var r=Qe(t);if(lt(r))return!1;var n=e.outFile(j);if(n)return pr(r,n)||pr(r,e.removeFileExtension(n)+".d.ts");if(j.declarationDir&&e.containsPath(j.declarationDir,r,de,!ie.useCaseSensitiveFileNames()))return!0;if(j.outDir)return e.containsPath(j.outDir,r,de,!ie.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(r,e.supportedJSExtensionsFlat)||e.isDeclarationFileName(r)){var i=e.removeFileExtension(r);return!!lt(i+".ts")||!!lt(i+".tsx")}return!1},getConfigFileParsingDiagnostics:()=>V||e.emptyArray,getResolvedModuleWithFailedLookupLocationsFromCache:(t,r,n)=>ee&&e.resolveModuleNameFromCache(t,r,ee,n),getProjectReferences:()=>z,getResolvedProjectReferences:nt,getProjectReferenceRedirect:Mt,getResolvedProjectReferenceToRedirect:Bt,getResolvedProjectReferenceByPath:zt,forEachResolvedProjectReference:Ut,isSourceOfProjectReferenceRedirect:Vt,emitBuildInfo(t){e.Debug.assert(!e.outFile(j)),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var r=e.emitFiles(e.notImplementedResolver,tt(t),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),r},fileExists:Fe,readFile:Ie,directoryExists:Pe,getSymlinkCache:_r,realpath:null===(u=ie.realpath)||void 0===u?void 0:u.bind(ie),useCaseSensitiveFileNames:()=>ie.useCaseSensitiveFileNames(),getFileIncludeReasons:()=>K,structureIsReused:Oe,writeFile:rt};return we(),null==L||L.forEach((t=>{switch(t.kind){case 1:return le.add(Yt(t.file&<(t.file),t.fileProcessingReason,t.diagnostic,t.args||e.emptyArray));case 0:var r=T(lt,t.reason),n=r.file,i=r.pos,a=r.end;return le.add(e.createFileDiagnostic.apply(void 0,f([n,e.Debug.checkDefined(i),e.Debug.checkDefined(a)-i,t.diagnostic],t.args||e.emptyArray,!1)));default:e.Debug.assertNever(t)}})),(()=>{j.strictPropertyInitialization&&!e.getStrictOptionValue(j,"strictNullChecks")&&ar(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),j.exactOptionalPropertyTypes&&!e.getStrictOptionValue(j,"strictNullChecks")&&ar(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),j.isolatedModules&&(j.out&&ar(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),j.outFile&&ar(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),j.inlineSourceMap&&(j.sourceMap&&ar(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),j.mapRoot&&ar(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),j.composite&&(!1===j.declaration&&ar(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===j.incremental&&ar(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var t,r=e.outFile(j);if(j.tsBuildInfoFile?e.isIncrementalCompilation(j)||ar(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!j.incremental||r||j.configFilePath||le.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),t=j.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(j),x(z,ye,((r,n,i)=>{var a=(n?n.commandLine.projectReferences:z)[i],o=n&&n.sourceFile;if(r){var s=r.commandLine.options;if(s.composite&&!s.noEmit||(n?n.commandLine.fileNames:U).length&&(s.composite||sr(o,i,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,a.path),s.noEmit&&sr(o,i,e.Diagnostics.Referenced_project_0_may_not_disable_emit,a.path)),a.prepend){var c=e.outFile(s);c?ie.fileExists(c)||sr(o,i,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,c,a.path):sr(o,i,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,a.path)}!n&&t&&t===e.getTsBuildInfoEmitOutputFilePath(s)&&(sr(o,i,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,t,a.path),_e.set(Qe(t),!0))}else sr(o,i,e.Diagnostics.File_0_not_found,a.path)})),j.composite)for(var n=new e.Set(U.map(Qe)),i=0,a=v;i<a.length;i++){var o=a[i];e.sourceFileMayBeEmitted(o,Ke)&&!n.has(o.path)&&Zt(o,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[o.fileName,j.configFilePath||""])}if(j.paths)for(var s in j.paths)if(e.hasProperty(j.paths,s))if(e.hasZeroOrOneAsteriskCharacter(s)||tr(!0,s,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,s),e.isArray(j.paths[s])){var c=j.paths[s].length;0===c&&tr(!1,s,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,s);for(var l=0;l<c;l++){var d=j.paths[s][l],u=typeof d;"string"===u?(e.hasZeroOrOneAsteriskCharacter(d)||er(s,l,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,d,s),j.baseUrl||e.pathIsRelative(d)||e.pathIsAbsolute(d)||er(s,l,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):er(s,l,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,d,s,u)}}else tr(!1,s,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,s);j.sourceMap||j.inlineSourceMap||(j.inlineSources&&ar(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),j.sourceRoot&&ar(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),j.out&&j.outFile&&ar(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),!j.mapRoot||j.sourceMap||j.declarationMap||ar(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),j.declarationDir&&(e.getEmitDeclarations(j)||ar(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),r&&ar(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",j.out?"out":"outFile")),j.declarationMap&&!e.getEmitDeclarations(j)&&ar(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),j.lib&&j.noLib&&ar(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),j.noImplicitUseStrict&&e.getStrictOptionValue(j,"alwaysStrict")&&ar(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var p=e.getEmitScriptTarget(j),_=e.find(v,(t=>e.isExternalModule(t)&&!t.isDeclarationFile));if(j.isolatedModules){j.module===e.ModuleKind.None&&p<2&&ar(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===j.preserveConstEnums&&ar(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var f=e.find(v,(t=>!e.isExternalModule(t)&&!e.isSourceFileJS(t)&&!t.isDeclarationFile&&6!==t.scriptKind));if(f){var m=e.getErrorSpanForNode(f,f);le.add(e.createFileDiagnostic(f,m.start,m.length,e.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,e.getBaseFileName(f.fileName)))}}else _&&p<2&&j.module===e.ModuleKind.None&&(m=e.getErrorSpanForNode(_,"boolean"==typeof _.externalModuleIndicator?_:_.externalModuleIndicator),le.add(e.createFileDiagnostic(_,m.start,m.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none)));if(r&&!j.emitDeclarationOnly&&(j.module&&j.module!==e.ModuleKind.AMD&&j.module!==e.ModuleKind.System?ar(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,j.out?"out":"outFile","module"):void 0===j.module&&_&&(m=e.getErrorSpanForNode(_,"boolean"==typeof _.externalModuleIndicator?_:_.externalModuleIndicator),le.add(e.createFileDiagnostic(_,m.start,m.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,j.out?"out":"outFile")))),j.resolveJsonModule&&(e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.NodeJs&&e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.NodeNext?ar(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(j)||ar(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),j.outDir||j.rootDir||j.sourceRoot||j.mapRoot){var g=Ze();j.outDir&&""===g&&v.some((t=>e.getRootLength(t.fileName)>1))&&ar(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(j.useDefineForClassFields&&0===p&&ar(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),j.checkJs&&!e.getAllowJSCompilerOption(j)&&le.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),j.emitDeclarationOnly&&(e.getEmitDeclarations(j)||ar(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),j.noEmit&&ar(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),j.emitDecoratorMetadata&&!j.experimentalDecorators&&ar(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),j.jsxFactory?(j.reactNamespace&&ar(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==j.jsx&&5!==j.jsx||ar(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+j.jsx)),e.parseIsolatedEntityName(j.jsxFactory,p)||or("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,j.jsxFactory)):j.reactNamespace&&!e.isIdentifierText(j.reactNamespace,p)&&or("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,j.reactNamespace),j.jsxFragmentFactory&&(j.jsxFactory||ar(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==j.jsx&&5!==j.jsx||ar(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+j.jsx)),e.parseIsolatedEntityName(j.jsxFragmentFactory,p)||or("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,j.jsxFragmentFactory)),j.reactNamespace&&(4!==j.jsx&&5!==j.jsx||ar(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+j.jsx))),j.jsxImportSource&&2===j.jsx&&ar(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+j.jsx)),j.preserveValueImports&&e.getEmitModuleKind(j)<e.ModuleKind.ES2015&&or("importsNotUsedAsValues",e.Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later),!j.noEmit&&!j.suppressOutputPathCheck){var h=tt(),y=new e.Set;e.forEachEmittedFile(h,(e=>{j.emitDeclarationOnly||b(e.jsFilePath,y),b(e.declarationFilePath,y)}))}function b(t,r){if(t){var n=Qe(t);if(Ce.has(n)){var i=void 0;j.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),ur(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=ie.useCaseSensitiveFileNames()?n:e.toFileNameLowerCase(n);r.has(a)?ur(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"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),Ke;function Je(e){if(e)for(var t=0,r=e;t<r.length;t++){var n=r[t];le.add(n)}}function Ge(t,r,n){if(!t.length)return e.emptyArray;var i=e.getNormalizedAbsolutePath(r.originalFileName,de),a=qe(r);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:i}),e.performance.mark("beforeResolveModule");var o=re(t,r,i,n,a);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),((t,r)=>{var n;if(ee)for(var i=e.getNormalizedAbsolutePath(r.originalFileName,de),a=e.isString(r)?void 0:r.impliedNodeFormat,o=e.getDirectoryPath(i),s=qe(r),c=0,l=0,d=t;l<d.length;l++){var u=d[l],p="string"==typeof u?h(r,c):g(u,a),_="string"==typeof u?u:u.fileName;c++,e.isExternalModuleNameRelative(_)||Je(null===(n=ee.getOrCreateCacheForModuleName(_,p,s).get(o))||void 0===n?void 0:n.resolutionDiagnostics)}})(t,r),o}function $e(t,r){if(!t.length)return[];var n=e.isString(r)?r:e.getNormalizedAbsolutePath(r.originalFileName,de),i=e.isString(r)?void 0:qe(r),a=e.isString(r)?void 0:r.impliedNodeFormat;null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:n}),e.performance.mark("beforeResolveTypeReference");var o=ne(t,n,i,a);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function qe(t){var r=Bt(t.originalFileName);if(r||!e.isDeclarationFileName(t.originalFileName))return r;var n=Xe(t.path);if(n)return n;if(ie.realpath&&j.preserveSymlinks&&e.stringContains(t.originalFileName,e.nodeModulesPathPart)){var i=Qe(ie.realpath(t.originalFileName));return i===t.path?void 0:Xe(i)}}function Xe(t){var r=jt(t);return e.isString(r)?Bt(r):r?Ut((r=>{var n=e.outFile(r.commandLine.options);if(n)return Qe(n)===t?r:void 0})):void 0}function Ye(t){if(e.containsPath(ce,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 Qe(t){return e.toPath(t,de,$t)}function Ze(){if(void 0===O){var t=e.filter(v,(t=>e.sourceFileMayBeEmitted(t,Ke)));O=e.getCommonSourceDirectory(j,(()=>e.mapDefined(t,(e=>e.isDeclarationFile?void 0:e.fileName))),de,$t,(r=>((t,r)=>{for(var n=!0,i=ie.getCanonicalFileName(e.getNormalizedAbsolutePath(r,de)),a=0,o=t;a<o.length;a++){var s=o[a];s.isDeclarationFile||0!==ie.getCanonicalFileName(e.getNormalizedAbsolutePath(s.fileName,de)).indexOf(i)&&(Zt(s,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[s.fileName,r]),n=!1)}return n})(t,r)))}return O}function et(t,r){if(0===Oe&&!r.ambientModuleNames.length)return Ge(t,r,void 0);var n,i,a,o=H&&H.getSourceFile(r.fileName);if(o!==r&&r.resolvedModules){for(var s=[],c=0,l=0,d=t;l<d.length;l++){var u=d[l],p=r.resolvedModules.get(u,h(r,c));c++,s.push(p)}return s}var _={};for(c=0;c<t.length;c++){if(u=t[c],r===o&&!fe(o.path)){var f=e.getResolvedModule(o,u,h(o,c));if(f){e.isTraceEnabled(j,ie)&&e.trace(ie,f.packageId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,u,e.getNormalizedAbsolutePath(r.originalFileName,de),f.resolvedFileName,f.packageId&&e.packageIdToString(f.packageId)),(i||(i=new Array(t.length)))[c]=f,(a||(a=[])).push(u);continue}}var m=!1;e.contains(r.ambientModuleNames,u)?(m=!0,e.isTraceEnabled(j,ie)&&e.trace(ie,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,u,e.getNormalizedAbsolutePath(r.originalFileName,de))):m=v(u,c),m?(i||(i=new Array(t.length)))[c]=_:(n||(n=[])).push(u)}var g=n&&n.length?Ge(n,r,a):e.emptyArray;if(!i)return e.Debug.assert(g.length===t.length),g;var y=0;for(c=0;c<i.length;c++)i[c]?i[c]===_&&(i[c]=void 0):(i[c]=g[y],y++);return e.Debug.assert(y===g.length),i;function v(t,r){if(r>=e.length(null==o?void 0:o.imports)+e.length(null==o?void 0:o.moduleAugmentations))return!1;var n=e.getResolvedModule(o,t,o&&h(o,r)),i=n&&H.getSourceFile(n.resolvedFileName);if(n&&i)return!1;var a=W.get(t);return!!a&&(e.isTraceEnabled(j,ie)&&e.trace(ie,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,a),!0)}}function tt(t){return{getPrependNodes:it,getCanonicalFileName:$t,getCommonSourceDirectory:Ke.getCommonSourceDirectory,getCompilerOptions:Ke.getCompilerOptions,getCurrentDirectory:()=>de,getNewLine:()=>ie.getNewLine(),getSourceFile:Ke.getSourceFile,getSourceFileByPath:Ke.getSourceFileByPath,getSourceFiles:Ke.getSourceFiles,getLibFileFromReference:Ke.getLibFileFromReference,isSourceFileFromExternalLibrary:at,getResolvedProjectReferenceToRedirect:Bt,getProjectReferenceRedirect:Mt,isSourceOfProjectReferenceRedirect:Vt,getSymlinkCache:_r,writeFile:t||rt,isEmitBlocked:st,readFile:e=>ie.readFile(e),fileExists(t){var r=Qe(t);return!!lt(r)||!e.contains(he,r)&&ie.fileExists(t)},useCaseSensitiveFileNames:()=>ie.useCaseSensitiveFileNames(),getProgramBuildInfo:()=>Ke.getProgramBuildInfo&&Ke.getProgramBuildInfo(),getSourceFileFromReference:(e,t)=>Ke.getSourceFileFromReference(e,t),redirectTargetsMap:Se,getFileIncludeReasons:Ke.getFileIncludeReasons,createHash:e.maybeBind(ie,ie.createHash)}}function rt(e,t,r,n,i,a){ie.writeFile(e,t,r,n,i,a)}function nt(){return ye}function it(){return w(z,((e,t)=>{var r;return null===(r=ye[t])||void 0===r?void 0:r.commandLine}),(e=>{var t=Qe(e),r=lt(t);return r?r.text:Ce.has(t)?void 0:ie.readFile(t)}))}function at(e){return!!Q.get(e.path)}function ot(){return M||(M=e.createTypeChecker(Ke))}function st(e){return _e.has(Qe(e))}function ct(e){return lt(Qe(e))}function lt(e){return Ce.get(e)||void 0}function dt(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(Ke.getSourceFiles(),(e=>(n&&n.throwIfCancellationRequested(),r(e,n)))))}function ut(t){var r;if(e.skipTypeChecking(t,j,Ke))return e.emptyArray;var n=le.getDiagnostics(t.fileName);return(null===(r=t.commentDirectives)||void 0===r?void 0:r.length)?ht(t,t.commentDirectives,n).diagnostics:n}function pt(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=(t=>_t((()=>{var r=[];return n(t,t),e.forEachChildRecursively(t,n,((t,n)=>{switch(e.canHaveModifiers(n)&&n.modifiers===t&&e.some(t,e.isDecorator)&&!j.experimentalDecorators&&r.push(a(n,e.Diagnostics.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)),n.kind){case 257:case 226:case 169:case 171:case 172:case 173:case 213:case 256:case 214:if(t===n.typeParameters)return r.push(i(t,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 237:if(t===n.modifiers)return((t,n)=>{for(var i=0,o=t;i<o.length;i++){var s=o[i];switch(s.kind){case 85:if(n)continue;case 123:case 121:case 122:case 145:case 135:case 126:case 159:case 101:case 144:r.push(a(s,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(s.kind)))}}})(n.modifiers,237===n.kind),"skip";break;case 167:if(t===n.modifiers){for(var o=0,s=t;o<s.length;o++){var c=s[o];e.isModifier(c)&&124!==c.kind&&r.push(a(c,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(c.kind)))}return"skip"}break;case 164:if(t===n.modifiers&&e.some(t,e.isModifier))return r.push(i(t,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 208:case 209:case 228:case 279:case 280:case 210:if(t===n.typeArguments)return r.push(i(t,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}})),r;function n(t,n){switch(n.kind){case 164:case 167:case 169:if(n.questionToken===t)return r.push(a(t,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 168:case 171:case 172:case 173:case 213:case 256:case 214:case 254:if(n.type===t)return r.push(a(t,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(t.kind){case 267:if(t.isTypeOnly)return r.push(a(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 272:if(t.isTypeOnly)return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 270:case 275:if(t.isTypeOnly)return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,e.isImportSpecifier(t)?"import...type":"export...type")),"skip";break;case 265:return r.push(a(t,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 271:if(t.isExportEquals)return r.push(a(t,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 291:if(117===t.token)return r.push(a(t,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 258:var i=e.tokenToString(118);return e.Debug.assertIsDefined(i),r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 261:var o=16&t.flags?e.tokenToString(142):e.tokenToString(141);return e.Debug.assertIsDefined(o),r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 259:return r.push(a(t,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 260:var s=e.Debug.checkDefined(e.tokenToString(92));return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,s)),"skip";case 230:return r.push(a(t,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 229:return r.push(a(t.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 211:e.Debug.fail()}}function i(r,n,i,a,o){var s=r.pos;return e.createFileDiagnostic(t,s,r.end-s,n,i,a,o)}function a(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a,o)}})))(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function _t(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(M=void 0),t}}function ft(t,r){return e.concatenate(k(mt(t,r),j),ut(t))}function mt(e,t){return bt(e,t,J,gt)}function gt(t,r){return _t((()=>{if(e.skipTypeChecking(t,j,Ke))return e.emptyArray;var n=ot();e.Debug.assert(!!t.bindDiagnostics);var i=(1===t.scriptKind||2===t.scriptKind)&&e.isCheckJsEnabledForFile(t,j),a=e.isPlainJsFile(t,j.checkJs),o=!(t.checkJsDirective&&!1===t.checkJsDirective.enabled)&&(3===t.scriptKind||4===t.scriptKind||5===t.scriptKind||a||i||7===t.scriptKind),s=o?t.bindDiagnostics:e.emptyArray,c=o?n.getDiagnostics(t,r):e.emptyArray;return a&&(s=e.filter(s,(t=>e.plainJSErrors.has(t.code))),c=e.filter(c,(t=>e.plainJSErrors.has(t.code)))),function(t,r){for(var n,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var o=e.flatten(i);if(!r||!(null===(n=t.commentDirectives)||void 0===n?void 0:n.length))return o;for(var s=ht(t,t.commentDirectives,o),c=s.diagnostics,l=s.directives,d=0,u=l.getUnusedExpectations();d<u.length;d++){var p=u[d];c.push(e.createDiagnosticForRange(t,p.range,e.Diagnostics.Unused_ts_expect_error_directive))}return c}(t,o&&!a,s,c,i?t.jsDocDiagnostics:void 0)}))}function ht(t,r,n){var i=e.createCommentDirectivesMap(t,r);return{diagnostics:n.filter((t=>-1===((t,r)=>{var n=t.file,i=t.start;if(!n)return-1;for(var a=e.getLineStarts(n),o=e.computeLineAndCharacterOfPosition(a,i).line-1;o>=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 yt(e,t){return bt(e,t,G,vt)}function vt(t,r){return _t((()=>{var n=ot().getEmitResolver(t,r);return e.getDeclarationDiagnostics(tt(e.noop),n,t)||e.emptyArray}))}function bt(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 Et(e,t){return e.isDeclarationFile?[]:yt(e,t)}function xt(t,r,n,i){kt(e.normalizePath(t),r,n,void 0,i)}function Dt(e,t){return e.fileName===t.fileName}function St(e,t){return 79===e.kind?79===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function Tt(t,r){var n=e.factory.createStringLiteral(t),i=e.factory.createImportDeclaration(void 0,void 0,n,void 0);return e.addEmitFlags(i,67108864),e.setParent(n,i),e.setParent(i,r),n.flags&=-9,i.flags&=-9,n}function Ct(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if((j.isolatedModules||o)&&!t.isDeclarationFile){j.importHelpers&&(r=[Tt(e.externalHelpersModuleNameText,t)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(j,t),j);s&&(r||(r=[])).push(Tt(s,t))}for(var c=0,l=t.statements;c<l.length;c++)d(l[c],!1);return(2097152&t.flags||a)&&(t=>{for(var n=/import|require/g;null!==n.exec(t.text);){var i=u(t,n.lastIndex);a&&e.isRequireCall(i,!0)||e.isImportCall(i)&&i.arguments.length>=1&&e.isStringLiteralLike(i.arguments[0])?(e.setParentRecursive(i,!1),r=e.append(r,i.arguments[0])):e.isLiteralImportTypeNode(i)&&(e.setParentRecursive(i,!1),r=e.append(r,i.argument.literal))}})(t),t.imports=r||e.emptyArray,t.moduleAugmentations=n||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function d(a,s){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(e.setParentRecursive(a,!1),r=e.append(r,c),Te||0!==X||t.isDeclarationFile||(Te=e.startsWith(c.text,"node:")))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(s||e.hasSyntacticModifier(a,2)||t.isDeclarationFile)){a.name.parent=a;var l=e.getTextOfIdentifierOrLiteral(a.name);if(o||s&&!e.isExternalModuleNameRelative(l))(n||(n=[])).push(a.name);else if(!s){t.isDeclarationFile&&(i||(i=[])).push(l);var u=a.body;if(u)for(var p=0,_=u.statements;p<_.length;p++)d(_[p],!0)}}}function u(t,r){for(var n=t,i=e=>{if(e.pos<=r&&(r<e.end||r===e.end&&1===e.kind))return e};;){var o=a&&e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,i)||e.forEachChild(n,i);if(!o)return n;n=o}}}function At(t,r,n,i){if(e.hasExtension(t)){var a=ie.getCanonicalFileName(t);if(!j.allowNonTsExtensions&&!e.forEach(e.flatten(pe),(t=>e.fileExtensionIs(a,t))))return void(n&&(e.hasJSFileExtension(a)?n(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,t):n(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+e.flatten(ue).join("', '")+"'")));var o=r(t);if(n)if(o)D(i)&&a===ie.getCanonicalFileName(lt(i.file).fileName)&&n(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var s=Mt(t);s?n(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,s,t):n(e.Diagnostics.File_0_not_found,t)}return o}var c=j.allowNonTsExtensions&&r(t);if(c)return c;if(!n||!j.allowNonTsExtensions){var l=e.forEach(ue[0],(e=>r(t+e)));return n&&!l&&n(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,t,"'"+e.flatten(ue).join("', '")+"'"),l}n(e.Diagnostics.File_0_not_found,t)}function kt(e,t,r,n,i){At(e,(e=>Ft(e,t,r,i,n)),(function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Qt(void 0,i,e,t)}),i)}function Nt(e,t){return kt(e,!1,!1,void 0,t)}function wt(t,r,n){!D(n)&&e.some(K.get(r.path),D)?Qt(r,n,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[r.fileName,t]):Qt(r,n,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[t,r.fileName])}function Ft(t,r,n,i,a){null===e.tracing||void 0===e.tracing||e.tracing.push("program","findSourceFile",{fileName:t,isDefaultLib:r||void 0,fileIncludeKind:e.FileIncludeKind[i.kind]});var o=function(t,r,n,i,a){var o,s,c=Qe(t);if(ke){var l=jt(c);if(!l&&ie.realpath&&j.preserveSymlinks&&e.isDeclarationFileName(t)&&e.stringContains(t,e.nodeModulesPathPart)){var d=Qe(ie.realpath(t));d!==c&&(l=jt(d))}if(l){var u=e.isString(l)?Ft(l,r,n,i,a):void 0;return u&&Ot(u,c,void 0),u}}var _,f=t;if(Ce.has(c)){var m=Ce.get(c);if(It(m||void 0,i),m&&j.forceConsistentCasingInFileNames){var g=m.fileName;Qe(g)!==Qe(t)&&(t=Mt(t)||t),e.getNormalizedAbsolutePathWithoutRoot(g,de)!==e.getNormalizedAbsolutePathWithoutRoot(t,de)&&wt(t,m,i)}return m&&Q.get(m.path)&&0===X?(Q.set(m.path,!1),j.noResolve||(Ht(m,r),Wt(m)),j.noLib||Gt(m),Y.set(m.path,!1),qt(m)):m&&Y.get(m.path)&&X<q&&(Y.set(m.path,!1),qt(m)),m||void 0}if(D(i)&&!ke){var h=Rt(t);if(h){if(e.outFile(h.commandLine.options))return;var v=Lt(h,t);t=v,_=Qe(v)}}var b=Pt(t,ee,ie,j),E=ie.getSourceFile(t,b,(r=>Qt(void 0,i,e.Diagnostics.Cannot_read_file_0_Colon_1,[t,r])),Me||(null===(o=null==H?void 0:H.getSourceFileByPath(Qe(t)))||void 0===o?void 0:o.impliedNodeFormat)!==b.impliedNodeFormat);if(a){var x=e.packageIdToString(a),S=xe.get(x);if(S){var T=function(e,t,r,n,i,a,o){var s,c=Object.create(e);return c.fileName=r,c.path=n,c.resolvedPath=i,c.originalFileName=a,c.redirectInfo={redirectTarget:e,unredirected:t},c.packageJsonLocations=(null===(s=o.packageJsonLocations)||void 0===s?void 0:s.length)?o.packageJsonLocations:void 0,c.packageJsonScope=o.packageJsonScope,Q.set(n,X>0),Object.defineProperties(c,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),c}(S,E,t,c,Qe(t),f,b);return Se.add(S.path,t),Ot(T,c,_),It(T,i),De.set(c,e.packageIdToPackageName(a)),y.push(T),T}E&&(xe.set(x,E),De.set(c,e.packageIdToPackageName(a)))}if(Ot(E,c,_),E){if(Q.set(c,X>0),E.fileName=t,E.path=c,E.resolvedPath=Qe(t),E.originalFileName=f,E.packageJsonLocations=(null===(s=b.packageJsonLocations)||void 0===s?void 0:s.length)?b.packageJsonLocations:void 0,E.packageJsonScope=b.packageJsonScope,It(E,i),ie.useCaseSensitiveFileNames()){var C=e.toFileNameLowerCase(c),A=Ae.get(C);A?wt(t,A,i):Ae.set(C,E)}oe=oe||E.hasNoDefaultLib&&!n,j.noResolve||(Ht(E,r),Wt(E)),j.noLib||Gt(E),qt(E),r?p.push(E):y.push(E)}return E}(t,r,n,i,a);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Pt(t,r,n,i){var a=C(e.getNormalizedAbsolutePath(t,de),null==r?void 0:r.getPackageJsonInfoCache(),n,i),o=e.getEmitScriptTarget(i),s=e.getSetExternalModuleIndicator(i);return"object"==typeof a?m(m({},a),{languageVersion:o,setExternalModuleIndicator:s}):{languageVersion:o,impliedNodeFormat:a,setExternalModuleIndicator:s}}function It(e,t){e&&K.add(e.path,t)}function Ot(e,t,r){r?(Ce.set(r,e),Ce.set(t,e||!1)):Ce.set(t,e)}function Mt(e){var t=Rt(e);return t&&Lt(t,e)}function Rt(t){if(ye&&ye.length&&!e.isDeclarationFileName(t)&&!e.fileExtensionIs(t,".json"))return Bt(t)}function Lt(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!ie.useCaseSensitiveFileNames())}function Bt(t){void 0===be&&(be=new e.Map,Ut((e=>{Qe(j.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((t=>be.set(Qe(t),e.sourceFile.path)))})));var r=be.get(Qe(t));return r&&zt(r)}function Ut(t){return e.forEachResolvedProjectReference(ye,t)}function jt(t){if(e.isDeclarationFileName(t))return void 0===Ee&&(Ee=new e.Map,Ut((t=>{var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");Ee.set(Qe(n),!0)}else{var i=e.memoize((()=>e.getCommonSourceDirectoryOfConfig(t.commandLine,!ie.useCaseSensitiveFileNames())));e.forEach(t.commandLine.fileNames,(r=>{if(!e.isDeclarationFileName(r)&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,!ie.useCaseSensitiveFileNames(),i);Ee.set(Qe(n),r)}}))}}))),Ee.get(t)}function Vt(e){return ke&&!!Bt(e)}function zt(e){if(ve)return ve.get(e)||void 0}function Ht(r,n){e.forEach(r.referencedFiles,((i,a)=>{kt(t(i.fileName,r.fileName),n,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:r.path,index:a})}))}function Wt(t){var r=t.typeReferenceDirectives;if(r)for(var n=$e(r,t),i=0;i<r.length;i++){var a=t.typeReferenceDirectives[i],o=n[i],s=e.toFileNameLowerCase(a.fileName);e.setResolvedTypeReferenceDirective(t,s,o);var c=a.resolutionMode||t.impliedNodeFormat;c&&e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.NodeNext&&le.add(e.createDiagnosticForRange(t,a,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),Kt(s,c,o,{kind:e.FileIncludeKind.TypeReferenceDirective,file:t.path,index:i})}}function Kt(t,r,n,i){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferenceDirective",{directive:t,hasResolved:!!n,refKind:i.kind,refPath:D(i)?i.file:void 0}),((t,r,n,i)=>{var a=$.get(t,r);if(!a||!a.primary){var o=!0;if(n){if(n.isExternalLibraryImport&&X++,n.primary)kt(n.resolvedFileName,!1,!1,n.packageId,i);else if(a){if(n.resolvedFileName!==a.resolvedFileName){var s=ie.readFile(n.resolvedFileName),c=ct(a.resolvedFileName);s!==c.text&&Qt(c,i,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[t,n.resolvedFileName,a.resolvedFileName])}o=!1}else kt(n.resolvedFileName,!1,!1,n.packageId,i);n.isExternalLibraryImport&&X--}else Qt(void 0,i,e.Diagnostics.Cannot_find_type_definition_file_for_0,[t]);o&&$.set(t,r,n)}})(t,r,n,i),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function Jt(t){for(var r=t.split("."),n=r[1],i=2;r[i]&&"d"!==r[i];)n+=(2===i?"/":"-")+r[i],i++;var a=e.combinePaths(de,"__lib_node_modules_lookup_".concat(t,"__.ts")),o=e.resolveModuleName("@typescript/lib-"+n,a,{moduleResolution:e.ModuleResolutionKind.NodeJs},ie,ee);return(null==o?void 0:o.resolvedModule)?o.resolvedModule.resolvedFileName:e.combinePaths(ce,t)}function Gt(t){e.forEach(t.libReferenceDirectives,((r,n)=>{var i=e.toFileNameLowerCase(r.fileName),a=e.libMap.get(i);if(a)xt(Jt(a),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:t.path,index:n});else{var o=e.removeSuffix(e.removePrefix(i,"lib."),".d.ts"),s=e.getSpellingSuggestion(o,e.libs,e.identity),c=s?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(L||(L=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:t.path,index:n},diagnostic:c,args:[i,s]})}}))}function $t(e){return ie.getCanonicalFileName(e)}function qt(t){var r;if(Ct(t),t.imports.length||t.moduleAugmentations.length){var n=I(t),i=et(n,t);e.Debug.assert(i.length===n.length);for(var a=(ke?null===(r=qe(t))||void 0===r?void 0:r.commandLine.options:void 0)||j,o=0;o<n.length;o++){var s=i[o];if(e.setResolvedModule(t,n[o],s,h(t,o)),s){var c=s.isExternalLibraryImport,l=!e.resolutionExtensionIsTSOrJson(s.extension),d=c&&l,u=s.resolvedFileName;c&&X++;var p=d&&X>q,_=u&&!P(a,s)&&!a.noResolve&&o<t.imports.length&&!p&&!(l&&!e.getAllowJSCompilerOption(a))&&(e.isInJSFile(t.imports[o])||!(8388608&t.imports[o].flags));p?Y.set(t.path,!0):_&&Ft(u,!1,!1,{kind:e.FileIncludeKind.Import,file:t.path,index:o},s.packageId),c&&X--}}}else t.resolvedModules=void 0}function Xt(t){ve||(ve=new e.Map);var r,n,i=F(t),a=Qe(i),o=ve.get(a);if(void 0!==o)return o||void 0;if(ie.getParsedCommandLine){if(!(r=ie.getParsedCommandLine(i)))return Ot(void 0,a,void 0),void ve.set(a,!1);n=e.Debug.checkDefined(r.options.configFile),e.Debug.assert(!n.path||n.path===a),Ot(n,a,void 0)}else{var s=e.getNormalizedAbsolutePath(e.getDirectoryPath(i),ie.getCurrentDirectory());if(Ot(n=ie.getSourceFile(i,100),a,void 0),void 0===n)return void ve.set(a,!1);r=e.parseJsonSourceFileConfigFileContent(n,ae,s,void 0,i)}n.fileName=i,n.path=a,n.resolvedPath=a,n.originalFileName=i;var c={commandLine:r,sourceFile:n};return ve.set(a,c),r.projectReferences&&(c.references=r.projectReferences.map(Xt)),c}function Yt(t,r,n,i){var a,o,s,c=D(r)?r:void 0;t&&(null===(a=K.get(t.path))||void 0===a||a.forEach(_)),r&&_(r),c&&1===(null==o?void 0:o.length)&&(o=void 0);var l=c&&T(lt,c),d=o&&e.chainDiagnosticMessages(o,e.Diagnostics.The_file_is_in_the_program_because_Colon),u=t&&e.explainIfFileIsRedirectAndImpliedFormat(t),p=e.chainDiagnosticMessages.apply(void 0,f([u?d?f([d],u,!0):u:d,n],i||e.emptyArray,!1));return l&&S(l)?e.createFileDiagnosticFromMessageChain(l.file,l.pos,l.end-l.pos,p,s):e.createCompilerDiagnosticFromMessageChain(p,s);function _(t){(o||(o=[])).push(e.fileIncludeReasonToDiagnostics(Ke,t)),!c&&D(t)?c=t:c!==t&&(s=e.append(s,(t=>{if(D(t)){var r,n=T(lt,t);switch(t.kind){case e.FileIncludeKind.Import:r=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:r=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:r=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:r=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(t)}return S(n)?e.createFileDiagnostic(n.file,n.pos,n.end-n.pos,r):void 0}if(j.configFile){var i,a,o,s;switch(t.kind){case e.FileIncludeKind.RootFile:if(!j.configFile.configFileSpecs)return;var c=e.getNormalizedAbsolutePath(U[t.index],de),l=e.getMatchedFileSpec(Ke,c);if(l){i=e.getTsConfigPropArrayElementValue(j.configFile,"files",l),a=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var d=e.getMatchedIncludeSpec(Ke,c);if(!d||!e.isString(d))return;i=e.getTsConfigPropArrayElementValue(j.configFile,"include",d),a=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var u=e.Debug.checkDefined(null==ye?void 0:ye[t.index]),p=x(z,ye,((e,t,r)=>e===u?{sourceFile:(null==t?void 0:t.sourceFile)||j.configFile,index:r}:void 0));if(!p)return;var _=p.sourceFile,f=p.index,m=e.firstDefined(e.getTsConfigPropArray(_,"references"),(t=>e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0));return m&&m.elements.length>f?e.createDiagnosticForNodeInSourceFile(_,m.elements[f],t.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!j.types)return;i=ir("types",t.typeReference),a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==t.index){i=ir("lib",j.lib[t.index]),a=e.Diagnostics.File_is_library_specified_here;break}var g=e.forEachEntry(e.targetOptionDeclaration.type,((t,r)=>t===e.getEmitScriptTarget(j)?r:void 0));i=g?(o=g,(s=rr("target"))&&e.firstDefined(s,(t=>e.isStringLiteral(t.initializer)&&t.initializer.text===o?t.initializer:void 0))):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(t)}return i&&e.createDiagnosticForNodeInSourceFile(j.configFile,i,a)}})(t))),t===r&&(r=void 0)}}function Qt(e,t,r,n){(L||(L=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function Zt(e,t,r){le.add(Yt(e,void 0,t,r))}function er(t,r,n,i,a,o){for(var s=!0,c=0,l=nr();c<l.length;c++){var d=l[c];if(e.isObjectLiteralExpression(d.initializer))for(var u=0,p=e.getPropertyAssignment(d.initializer,t);u<p.length;u++){var _=p[u].initializer;e.isArrayLiteralExpression(_)&&_.elements.length>r&&(le.add(e.createDiagnosticForNodeInSourceFile(j.configFile,_.elements[r],n,i,a,o)),s=!1)}}s&&le.add(e.createCompilerDiagnostic(n,i,a,o))}function tr(t,r,n,i){for(var a=!0,o=0,s=nr();o<s.length;o++){var c=s[o];e.isObjectLiteralExpression(c.initializer)&&dr(c.initializer,t,r,void 0,n,i)&&(a=!1)}a&&le.add(e.createCompilerDiagnostic(n,i))}function rr(t){var r=lr();return r&&e.getPropertyAssignment(r,t)}function nr(){return rr("paths")||e.emptyArray}function ir(t,r){var n=lr();return n&&e.getPropertyArrayElementValue(n,t,r)}function ar(e,t,r,n){cr(!0,t,r,e,t,r,n)}function or(e,t,r,n){cr(!1,e,void 0,t,r,n)}function sr(t,r,n,i,a){var o=e.firstDefined(e.getTsConfigPropArray(t||j.configFile,"references"),(t=>e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0));o&&o.elements.length>r?le.add(e.createDiagnosticForNodeInSourceFile(t||j.configFile,o.elements[r],n,i,a)):le.add(e.createCompilerDiagnostic(n,i,a))}function cr(t,r,n,i,a,o,s){var c=lr();(!c||!dr(c,t,r,n,i,a,o,s))&&le.add(e.createCompilerDiagnostic(i,a,o,s))}function lr(){if(void 0===Z){Z=!1;var t=e.getTsConfigObjectLiteralExpression(j.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r<n.length;r++){var i=n[r];if(e.isObjectLiteralExpression(i.initializer)){Z=i.initializer;break}}}return Z||void 0}function dr(t,r,n,i,a,o,s,c){for(var l=e.getPropertyAssignment(t,n,i),d=0,u=l;d<u.length;d++){var p=u[d];le.add(e.createDiagnosticForNodeInSourceFile(j.configFile,r?p.name:p.initializer,a,o,s,c))}return!!l.length}function ur(e,t){_e.set(Qe(e),!0),le.add(t)}function pr(t,r){return 0===e.comparePaths(t,r,de,!ie.useCaseSensitiveFileNames())}function _r(){return ie.getSymlinkCache?ie.getSymlinkCache():(b||(b=e.createSymlinkCache(de,$t)),v&&$&&!b.hasProcessedResolutions()&&b.setSymlinksFromResolutions(v,$),b)}},e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0},e.handleNoEmitOptions=A,e.filterSemanticDiagnostics=k,e.parseConfigHostFromCompilerHostLike=N,e.createPrependNodes=w,e.resolveProjectReferencePath=F,e.getResolutionDiagnostic=P,e.getModuleNameStringLiteralAt=O}(p),(e=>{e.getFileEmitOutput=(e,t,r,n,i,a)=>{var o=[],s=e.emit(t,((e,t,r)=>{o.push({name:e,writeByteOrderMark:r,text:t})}),n,r,i,a),c=s.emitSkipped,l=s.diagnostics;return{outputFiles:o,emitSkipped:c,diagnostics:l}},(t=>{function r(){return t=new e.Map,r=new e.Map,i=void 0,a={getKeys:e=>r.get(e),getValues:e=>t.get(e),keys:()=>t.keys(),deleteKey(a){(i||(i=new e.Set)).add(a);var o=t.get(a);return!!o&&(o.forEach((e=>n(r,e,a))),t.delete(a),!0)},set(o,s){null==i||i.delete(o);var c=t.get(o);return t.set(o,s),null==c||c.forEach((e=>{s.has(e)||n(r,e,o)})),s.forEach((t=>{(null==c?void 0:c.has(t))||((t,r,n)=>{var i=t.get(r);i||(i=new e.Set,t.set(r,i)),i.add(n)})(r,t,o)})),a}};var t,r,i,a}function n(e,t,r){var n=e.get(t);return!!(null==n?void 0:n.delete(r))&&(n.size||e.delete(t),!0)}function i(t){return e.mapDefined(t.declarations,(t=>{var r;return null===(r=e.getSourceFileOfNode(t))||void 0===r?void 0:r.resolvedPath}))}function a(e,t){var r=e.getSymbolAtLocation(t);return r&&i(r)}function o(t,r,n,i){return e.toPath(t.getProjectReferenceRedirect(r)||r,n,i)}function s(t,r,n){var i;if(r.imports&&r.imports.length>0)for(var s=t.getTypeChecker(),c=0,l=r.imports;c<l.length;c++){var d=a(s,l[c]);null==d||d.forEach(D)}var u=e.getDirectoryPath(r.resolvedPath);if(r.referencedFiles&&r.referencedFiles.length>0)for(var p=0,_=r.referencedFiles;p<_.length;p++){var f=_[p];D(o(t,f.fileName,u,n))}if(r.resolvedTypeReferenceDirectiveNames&&r.resolvedTypeReferenceDirectiveNames.forEach((e=>{if(e){var r=e.resolvedFileName;D(o(t,r,u,n))}})),r.moduleAugmentations.length){s=t.getTypeChecker();for(var m=0,g=r.moduleAugmentations;m<g.length;m++){var h=g[m];if(e.isStringLiteral(h)){var y=s.getSymbolAtLocation(h);y&&x(y)}}}for(var v=0,b=t.getTypeChecker().getAmbientModules();v<b.length;v++){var E=b[v];E.declarations&&E.declarations.length>1&&x(E)}return i;function x(t){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n],o=e.getSourceFileOfNode(a);o&&o!==r&&D(o.resolvedPath)}}function D(t){(i||(i=new e.Set)).add(t)}}function c(e,t){return t&&!t.referencedMap==!e}function l(t,r,n,i,a,o){var s=r.getSourceFileByPath(n);return s?d(t,r,s,i,a,o)?(t.referencedMap?h:g)(t,r,s,i,a,o):[s]:e.emptyArray}function d(t,r,n,i,a,o,s){var c;if(void 0===s&&(s=t.useFileVersionAsSignature),null===(c=t.hasCalledUpdateShapeSignature)||void 0===c?void 0:c.has(n.resolvedPath))return!1;var l,d=t.fileInfos.get(n.resolvedPath),p=d.signature;if(n.isDeclarationFile||s||r.emit(n,((r,i,s,c,d,_)=>{e.Debug.assert(e.isDeclarationFileName(r),"File extension for signature expected to be dts: Got:: ".concat(r)),(l=e.computeSignatureWithDiagnostics(n,i,a,o,_))!==p&&u(t,n,d[0].exportedModulesFromDeclarationEmit)}),i,!0,void 0,!0),void 0===l&&(l=n.version,t.exportedModulesMap&&l!==p)){(t.oldExportedModulesMap||(t.oldExportedModulesMap=new e.Map)).set(n.resolvedPath,t.exportedModulesMap.getValues(n.resolvedPath)||!1);var _=t.referencedMap?t.referencedMap.getValues(n.resolvedPath):void 0;_?t.exportedModulesMap.set(n.resolvedPath,_):t.exportedModulesMap.deleteKey(n.resolvedPath)}return(t.oldSignatures||(t.oldSignatures=new e.Map)).set(n.resolvedPath,p||!1),(t.hasCalledUpdateShapeSignature||(t.hasCalledUpdateShapeSignature=new e.Set)).add(n.resolvedPath),d.signature=l,l!==p}function u(t,r,n){var a;t.exportedModulesMap&&((t.oldExportedModulesMap||(t.oldExportedModulesMap=new e.Map)).set(r.resolvedPath,t.exportedModulesMap.getValues(r.resolvedPath)||!1),n?(n.forEach((t=>{var r;(null==(r=i(t))?void 0:r.length)&&(a||(a=new e.Set),r.forEach((e=>a.add(e))))})),a?t.exportedModulesMap.set(r.resolvedPath,a):t.exportedModulesMap.deleteKey(r.resolvedPath)):t.exportedModulesMap.deleteKey(r.resolvedPath))}function p(t,r){if(!t.allFileNames){var n=r.getSourceFiles();t.allFileNames=n===e.emptyArray?e.emptyArray:n.map((e=>e.fileName))}return t.allFileNames}function _(t,r){var n=t.referencedMap.getKeys(r);return n?e.arrayFrom(n.keys()):[]}function f(t){return(t=>e.some(t.moduleAugmentations,(t=>e.isGlobalScopeAugmentation(t.parent))))(t)||!e.isExternalOrCommonJsModule(t)&&!e.isJsonSourceFile(t)&&!(t=>{for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if(!e.isModuleWithStringLiteralName(i))return!1}return!0})(t)}function m(t,r,n){if(t.allFilesExcludingDefaultLibraryFile)return t.allFilesExcludingDefaultLibraryFile;var i;n&&c(n);for(var a=0,o=r.getSourceFiles();a<o.length;a++){var s=o[a];s!==n&&c(s)}return t.allFilesExcludingDefaultLibraryFile=i||e.emptyArray,t.allFilesExcludingDefaultLibraryFile;function c(e){r.isSourceFileDefaultLibrary(e)||(i||(i=[])).push(e)}}function g(t,r,n){var i=r.getCompilerOptions();return i&&e.outFile(i)?[n]:m(t,r,n)}function h(t,r,n,i,a,o){if(f(n))return m(t,r,n);var s=r.getCompilerOptions();if(s&&(s.isolatedModules||e.outFile(s)))return[n];var c=new e.Map;c.set(n.resolvedPath,n);for(var l=_(t,n.resolvedPath);l.length>0;){var u=l.pop();if(!c.has(u)){var p=r.getSourceFileByPath(u);c.set(u,p),p&&d(t,r,p,i,a,o)&&l.push.apply(l,_(t,p.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(c.values(),(e=>e)))}t.createManyToManyPathMap=r,t.canReuseOldState=c,t.create=(t,n,i,a)=>{var o,l,d,u=new e.Map,p=t.getCompilerOptions().module!==e.ModuleKind.None?r():void 0,_=p?r():void 0,m=c(p,i);t.getTypeChecker();for(var g=0,h=t.getSourceFiles();g<h.length;g++){var y=h[g],v=e.Debug.checkDefined(y.version,"Program intended to be used with Builder should have source files with versions set"),b=m?null===(o=i.oldSignatures)||void 0===o?void 0:o.get(y.resolvedPath):void 0,E=void 0===b?m?null===(l=i.fileInfos.get(y.resolvedPath))||void 0===l?void 0:l.signature:void 0:b||void 0;if(p){var x=s(t,y,n);if(x&&p.set(y.resolvedPath,x),m){var D=null===(d=i.oldExportedModulesMap)||void 0===d?void 0:d.get(y.resolvedPath),S=void 0===D?i.exportedModulesMap.getValues(y.resolvedPath):D||void 0;S&&_.set(y.resolvedPath,S)}}u.set(y.resolvedPath,{version:v,signature:E,affectsGlobalScope:f(y)||void 0,impliedFormat:y.impliedNodeFormat})}return{fileInfos:u,referencedMap:p,exportedModulesMap:_,useFileVersionAsSignature:!a&&!m}},t.releaseCache=e=>{e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},t.getFilesAffectedBy=(e,t,r,n,i,a)=>{var o,s,c=l(e,t,r,n,i,a);return null===(o=e.oldSignatures)||void 0===o||o.clear(),null===(s=e.oldExportedModulesMap)||void 0===s||s.clear(),c},t.getFilesAffectedByWithOldState=l,t.updateSignatureOfFile=(t,r,n)=>{t.fileInfos.get(n).signature=r,(t.hasCalledUpdateShapeSignature||(t.hasCalledUpdateShapeSignature=new e.Set)).add(n)},t.updateShapeSignature=d,t.updateExportedModules=u,t.getAllDependencies=(t,r,n)=>{var i=r.getCompilerOptions();if(e.outFile(i))return p(t,r);if(!t.referencedMap||f(n))return p(t,r);for(var a=new e.Set,o=[n.resolvedPath];o.length;){var s=o.pop();if(!a.has(s)){a.add(s);var c=t.referencedMap.getValues(s);if(c)for(var l=c.keys(),d=l.next();!d.done;d=l.next())o.push(d.value)}}return e.arrayFrom(e.mapDefinedIterator(a.keys(),(e=>{var t,n;return null!==(n=null===(t=r.getSourceFileByPath(e))||void 0===t?void 0:t.fileName)&&void 0!==n?n:e})))},t.getReferencedByPaths=_,t.getAllFilesExcludingDefaultLibraryFile=m})(e.BuilderState||(e.BuilderState={}))})(p),(e=>{var t,r;function n(e,t,r){var n=e.file;return m(m({},e),{file:n?t.getSourceFileByPath(r(n)):void 0})}function i(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.resolvedPath))}function a(t,r,n,i,a){for(var o,s;;){var l=t.affectedFiles;if(l){for(var d=t.seenAffectedFiles,u=t.affectedFilesIndex;u<l.length;){var p=l[u];if(!d.has(p.resolvedPath))return t.affectedFilesIndex=u,c(t,p,r,n,i,a),p;u++}t.changedFilesSet.delete(t.currentChangedFilePath),t.currentChangedFilePath=void 0,null===(o=t.oldSignatures)||void 0===o||o.clear(),null===(s=t.oldExportedModulesMap)||void 0===s||s.clear(),t.affectedFiles=void 0}var _=t.changedFilesSet.keys().next();if(_.done)return;var f=e.Debug.checkDefined(t.program),m=f.getCompilerOptions();if(e.outFile(m))return e.Debug.assert(!t.semanticDiagnosticsPerFile),f;t.affectedFiles=e.BuilderState.getFilesAffectedByWithOldState(t,f,_.value,r,n,i),t.currentChangedFilePath=_.value,t.affectedFilesIndex=0,t.seenAffectedFiles||(t.seenAffectedFiles=new e.Set)}}function o(e){e.affectedFilesPendingEmit=void 0,e.affectedFilesPendingEmitKind=void 0,e.affectedFilesPendingEmitIndex=void 0}function s(t){if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;var r=e.Debug.checkDefined(t.program),n=r.getCompilerOptions();e.forEach(r.getSourceFiles(),(i=>r.isSourceFileDefaultLibrary(i)&&!e.skipTypeChecking(i,n,r)&&d(t,i.resolvedPath)))}}function c(t,r,n,i,a,o){if(d(t,r.resolvedPath),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles)return s(t),void e.BuilderState.updateShapeSignature(t,e.Debug.checkDefined(t.program),r,n,i,a);t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||((t,r,n,i,a,o)=>{var s;if(t.exportedModulesMap&&t.changedFilesSet.has(r.resolvedPath)&&u(t,r.resolvedPath)){if(t.compilerOptions.isolatedModules){var c=new e.Map;c.set(r.resolvedPath,!0);for(var d=e.BuilderState.getReferencedByPaths(t,r.resolvedPath);d.length>0;){var f=d.pop();if(!c.has(f)){if(c.set(f,!0),p(t,f,n,i,a,o))return;if(l(t,f,n,i,a,o),u(t,f)){var m=e.Debug.checkDefined(t.program).getSourceFileByPath(f);d.push.apply(d,e.BuilderState.getReferencedByPaths(t,m.resolvedPath))}}}}var g=new e.Set;null===(s=t.exportedModulesMap.getKeys(r.resolvedPath))||void 0===s||s.forEach((r=>{if(p(t,r,n,i,a,o))return!0;var s=t.referencedMap.getKeys(r);return s&&e.forEachKey(s,(e=>_(t,e,g,n,i,a,o)))}))}})(t,r,n,i,a,o)}function l(t,r,n,i,a,o){if(d(t,r),!t.changedFilesSet.has(r)){var s=e.Debug.checkDefined(t.program),c=s.getSourceFileByPath(r);c&&(e.BuilderState.updateShapeSignature(t,s,c,n,i,a,!o.disableUseFileVersionAsSignature),e.getEmitDeclarations(t.compilerOptions)&&C(t,r,0))}}function d(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function u(t,r){var n=e.Debug.checkDefined(t.oldSignatures).get(r)||void 0;return e.Debug.checkDefined(t.fileInfos.get(r)).signature!==n}function p(t,r,n,i,a,o){var c;return!!(null===(c=t.fileInfos.get(r))||void 0===c?void 0:c.affectsGlobalScope)&&(e.BuilderState.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach((e=>l(t,e.resolvedPath,n,i,a,o))),s(t),!0)}function _(t,r,n,i,a,o,s){var c,d;if(e.tryAddToSet(n,r)){if(p(t,r,i,a,o,s))return!0;l(t,r,i,a,o,s),null===(c=t.exportedModulesMap.getKeys(r))||void 0===c||c.forEach((e=>_(t,e,n,i,a,o,s))),null===(d=t.referencedMap.getKeys(r))||void 0===d||d.forEach((e=>!n.has(e)&&l(t,e,i,a,o,s)))}}function f(t,r,n,i,a){a?t.buildInfoEmitPending=!1:r===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(r.resolvedPath),t.buildInfoEmitPending=!0,void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(r.resolvedPath,n),i?t.affectedFilesPendingEmitIndex++:t.affectedFilesIndex++)}function g(e,t,r){return f(e,r),{result:t,affected:r}}function h(e,t,r,n,i,a){return f(e,r,n,i,a),{result:t,affected:r}}function y(t,r,n){return e.concatenate(((t,r,n)=>{var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnostics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o),e.filterSemanticDiagnostics(o,t.compilerOptions)})(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function v(t){return!!e.outFile(t.options||{})}function b(e,t,r){if(e)if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function E(t,r){return e.Debug.assert(!!t.length),t.map((e=>{var t=x(e,r);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var n=e.relatedInformation;return t.relatedInformation=n?n.length?n.map((e=>x(e,r))):[]:void 0,t}))}function x(e,t){var r=e.file;return m(m({},e),{file:r?t(r.resolvedPath):void 0})}function D(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function S(t,r,n,i,a){var o,s;return r=D(r,a),(null===(o=null==a?void 0:a.diagnostics)||void 0===o?void 0:o.length)&&(r+=a.diagnostics.map((r=>"".concat((r=>r.file.resolvedPath===t.resolvedPath?"(".concat(r.start,",").concat(r.length,")"):(void 0===s&&(s=e.getDirectoryPath(t.resolvedPath)),"".concat(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,r.file.resolvedPath,i)),"(").concat(r.start,",").concat(r.length,")")))(r)).concat(e.DiagnosticCategory[r.category]).concat(r.code,": ").concat(c(r.messageText)))).join("\n")),(null!=n?n:e.generateDjb2Hash)(r);function c(t){return e.isString(t)?t:void 0===t?"":t.next?t.messageText+t.next.map(c).join("\n"):t.messageText}}function T(t,r,n){return(null!=r?r:e.generateDjb2Hash)(D(t,n))}function C(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 A(t){return e.isString(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(t.signature)?t:{version:t.version,signature:!1===t.signature?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function k(t,r){return{getState:e.notImplemented,saveEmitState:e.noop,restoreEmitState:e.noop,getProgram:n,getProgramOrUndefined:()=>t().program,releaseProgram:()=>t().program=void 0,getCompilerOptions:()=>t().compilerOptions,getSourceFile:e=>n().getSourceFile(e),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:e=>n().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>n().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>r,getSyntacticDiagnostics:(e,t)=>n().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>n().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>n().getSemanticDiagnostics(e,t),emit:(e,t,r,i,a)=>n().emit(e,t,r,i,a),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:e.notImplemented,getCurrentDirectory:()=>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",e.isProgramBundleEmitBuildInfo=v,(e=>{e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(t=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=(t,r,n,i,a,o)=>{var s,c,l;return void 0===t?(e.Debug.assert(void 0===r),s=n,l=i,e.Debug.assert(!!l),c=l.getProgram()):e.isArray(t)?(l=i,c=e.createProgram({rootNames:t,options:r,host:n,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=n):(c=t,s=r,l=n,a=i),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:a||e.emptyArray}},e.computeSignatureWithDiagnostics=S,e.computeSignature=T,e.createBuilderProgram=(r,s)=>{var c=s.newProgram,l=s.host,d=s.oldProgram,u=s.configFileParsingDiagnostics,p=d&&d.getState();if(p&&c===p.program&&u===c.getConfigFileParsingDiagnostics())return c=void 0,p=void 0,d;var _=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),m=e.maybeBind(l,l.createHash),v=((t,r,i,a)=>{var o,s,c=e.BuilderState.create(t,r,i,a);c.program=t;var l=t.getCompilerOptions();c.compilerOptions=l;var d=e.outFile(l);d?l.composite&&(null==i?void 0:i.outSignature)&&d===e.outFile(null==i?void 0:i.compilerOptions)&&(c.outSignature=null==i?void 0:i.outSignature):c.semanticDiagnosticsPerFile=new e.Map,c.changedFilesSet=new e.Set,c.latestChangedDtsFile=l.composite?null==i?void 0:i.latestChangedDtsFile:void 0;var u=e.BuilderState.canReuseOldState(c.referencedMap,i),p=u?i.compilerOptions:void 0,_=u&&i.semanticDiagnosticsPerFile&&!!c.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(l,p),f=l.composite&&(null==i?void 0:i.emitSignatures)&&!d&&!e.compilerOptionsAffectDeclarationPath(l,p);u&&(null===(o=i.changedFilesSet)||void 0===o||o.forEach((e=>c.changedFilesSet.add(e))),!d&&i.affectedFilesPendingEmit&&(c.affectedFilesPendingEmit=i.affectedFilesPendingEmit.slice(),c.affectedFilesPendingEmitKind=i.affectedFilesPendingEmitKind&&new e.Map(i.affectedFilesPendingEmitKind),c.affectedFilesPendingEmitIndex=i.affectedFilesPendingEmitIndex,c.seenAffectedFiles=new e.Set));var m=c.referencedMap,g=u?i.referencedMap:void 0,h=_&&!l.skipLibCheck==!p.skipLibCheck,y=h&&!l.skipDefaultLibCheck==!p.skipDefaultLibCheck;return c.fileInfos.forEach(((a,o)=>{var s,l,d,p;if(!u||!(s=i.fileInfos.get(o))||s.version!==a.version||s.impliedFormat!==a.impliedFormat||(d=l=m&&m.getValues(o))!==(p=g&&g.getValues(o))&&(void 0===d||void 0===p||d.size!==p.size||e.forEachKey(d,(e=>!p.has(e))))||l&&e.forEachKey(l,(e=>!c.fileInfos.has(e)&&i.fileInfos.has(e))))c.changedFilesSet.add(o);else if(_){var v=t.getSourceFileByPath(o);if(v.isDeclarationFile&&!h)return;if(v.hasNoDefaultLib&&!y)return;var b=i.semanticDiagnosticsPerFile.get(o);b&&(c.semanticDiagnosticsPerFile.set(o,i.hasReusableDiagnostic?((t,r,i)=>{if(!t.length)return e.emptyArray;var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(r.getCompilerOptions()),r.getCurrentDirectory()));return t.map((e=>{var t=n(e,r,o);t.reportsUnnecessary=e.reportsUnnecessary,t.reportsDeprecated=e.reportDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var i=e.relatedInformation;return t.relatedInformation=i?i.length?i.map((e=>n(e,r,o))):[]:void 0,t}));function o(t){return e.toPath(t,a,i)}})(b,t,r):b),c.semanticDiagnosticsFromOldState||(c.semanticDiagnosticsFromOldState=new e.Set),c.semanticDiagnosticsFromOldState.add(o))}if(f){var E=i.emitSignatures.get(o);E&&(c.emitSignatures||(c.emitSignatures=new e.Map)).set(o,E)}})),u&&e.forEachEntry(i.fileInfos,((e,t)=>e.affectsGlobalScope&&!c.fileInfos.has(t)))?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(c,t,void 0).forEach((e=>c.changedFilesSet.add(e.resolvedPath))):p&&!d&&e.compilerOptionsAffectEmit(l,p)&&(t.getSourceFiles().forEach((e=>C(c,e.resolvedPath,1))),e.Debug.assert(!c.seenAffectedFiles||!c.seenAffectedFiles.size),c.seenAffectedFiles=c.seenAffectedFiles||new e.Set),c.buildInfoEmitPending=!u||c.changedFilesSet.size!==((null===(s=i.changedFilesSet)||void 0===s?void 0:s.size)||0),c})(c,_,p,l.disableUseFileVersionAsSignature);c.getProgramBuildInfo=()=>((t,r)=>{var n=e.outFile(t.compilerOptions);if(!n||t.compilerOptions.composite){var i=e.Debug.checkDefined(t.program).getCurrentDirectory(),a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),i)),o=t.latestChangedDtsFile?P(t.latestChangedDtsFile):void 0;if(n){var s=[],c=[];return t.program.getRootFileNames().forEach((e=>{var r=t.program.getSourceFile(e);r&&(s.push(I(r.resolvedPath)),c.push(r.version))})),{fileNames:s,fileInfos:c,options:R(t.compilerOptions,"affectsBundleEmitBuildInfo"),outSignature:t.outSignature,latestChangedDtsFile:o}}var l,d,u,p,_,f,m,g,h=[],y=new e.Map,v=e.arrayFrom(t.fileInfos.entries(),(r=>{var n,i,a=r[0],o=r[1],s=O(a);e.Debug.assert(h[s-1]===I(a));var c=null===(n=t.oldSignatures)||void 0===n?void 0:n.get(a),l=void 0!==c?c||void 0:o.signature;if(t.compilerOptions.composite){var d=t.program.getSourceFileByPath(a);if(!e.isJsonSourceFile(d)&&e.sourceFileMayBeEmitted(d,t.program)){var p=null===(i=t.emitSignatures)||void 0===i?void 0:i.get(a);p!==l&&(u||(u=[])).push(void 0===p?s:[s,p])}}return o.version===l?o.affectsGlobalScope||o.impliedFormat?{version:o.version,signature:void 0,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}:o.version:void 0!==l?void 0===c?o:{version:o.version,signature:l,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}:{version:o.version,signature:!1,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}}));if(t.referencedMap&&(p=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map((e=>[O(e),M(t.referencedMap.getValues(e))]))),t.exportedModulesMap&&(_=e.mapDefined(e.arrayFrom(t.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),(e=>{var r,n=null===(r=t.oldExportedModulesMap)||void 0===r?void 0:r.get(e);return void 0===n?[O(e),M(t.exportedModulesMap.getValues(e))]:n?[O(e),M(n)]:void 0}))),t.semanticDiagnosticsPerFile)for(var x=0,D=e.arrayFrom(t.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);x<D.length;x++){var S=D[x],T=t.semanticDiagnosticsPerFile.get(S);(f||(f=[])).push(T.length?[O(S),E(T,I)]:O(S))}if(t.affectedFilesPendingEmit)for(var C=new e.Set,A=0,k=t.affectedFilesPendingEmit.slice(t.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);A<k.length;A++){var N=k[A];e.tryAddToSet(C,N)&&(m||(m=[])).push([O(N),t.affectedFilesPendingEmitKind.get(N)])}if(t.changedFilesSet.size)for(var w=0,F=e.arrayFrom(t.changedFilesSet.keys()).sort(e.compareStringsCaseSensitive);w<F.length;w++)N=F[w],(g||(g=[])).push(O(N));return{fileNames:h,fileInfos:v,options:R(t.compilerOptions,"affectsMultiFileEmitBuildInfo"),fileIdsList:l,referencedMap:p,exportedModulesMap:_,semanticDiagnosticsPerFile:f,affectedFilesPendingEmit:m,changeFileSet:g,emitSignatures:u,latestChangedDtsFile:o}}function P(t){return I(e.getNormalizedAbsolutePath(t,i))}function I(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(a,t,r))}function O(e){var t=y.get(e);return void 0===t&&(h.push(I(e)),y.set(e,t=h.length)),t}function M(t){var r=e.arrayFrom(t.keys(),O).sort(e.compareValues),n=r.join(),i=null==d?void 0:d.get(n);return void 0===i&&((l||(l=[])).push(r),(d||(d=new e.Map)).set(n,i=l.length)),i}function R(t,r){for(var n,i=e.getOptionsNameMap().optionsNameMap,a=0,o=e.getOwnKeys(t).sort(e.compareStringsCaseSensitive);a<o.length;a++){var s=o[a],c=i.get(s.toLowerCase());(null==c?void 0:c[r])&&((n||(n={}))[s]=b(c,t[s],P))}return n}})(v,_),c=void 0,d=void 0,p=void 0;var x=()=>v,D=k(x,u);return D.getState=x,D.saveEmitState=()=>(t=>{var r=e.outFile(t.compilerOptions);return e.Debug.assert(!t.changedFilesSet.size||r),{affectedFilesPendingEmit:t.affectedFilesPendingEmit&&t.affectedFilesPendingEmit.slice(),affectedFilesPendingEmitKind:t.affectedFilesPendingEmitKind&&new e.Map(t.affectedFilesPendingEmitKind),affectedFilesPendingEmitIndex:t.affectedFilesPendingEmitIndex,seenEmittedFiles:t.seenEmittedFiles&&new e.Map(t.seenEmittedFiles),programEmitComplete:t.programEmitComplete,emitSignatures:t.emitSignatures&&new e.Map(t.emitSignatures),outSignature:t.outSignature,latestChangedDtsFile:t.latestChangedDtsFile,hasChangedEmitSignature:t.hasChangedEmitSignature,changedFilesSet:r?new e.Set(t.changedFilesSet):void 0}})(v),D.restoreEmitState=e=>((e,t)=>{e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.affectedFilesPendingEmitKind=t.affectedFilesPendingEmitKind,e.affectedFilesPendingEmitIndex=t.affectedFilesPendingEmitIndex,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitComplete=t.programEmitComplete,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)})(v,e),D.hasChangedEmitSignature=()=>!!v.hasChangedEmitSignature,D.getAllDependencies=t=>e.BuilderState.getAllDependencies(v,e.Debug.checkDefined(v.program),t),D.getSemanticDiagnostics=(t,r)=>{i(v,t);var n,a=e.Debug.checkDefined(v.program).getCompilerOptions();if(e.outFile(a))return e.Debug.assert(!v.semanticDiagnosticsPerFile),e.Debug.checkDefined(v.program).getSemanticDiagnostics(t,r);if(t)return y(v,t,r);for(;w(r););for(var o=0,s=e.Debug.checkDefined(v.program).getSourceFiles();o<s.length;o++){var c=s[o];n=e.addRange(n,y(v,c,r))}return n||e.emptyArray},D.emit=(n,a,s,c,d)=>{var u;r===t.EmitAndSemanticDiagnosticsBuilderProgram&&i(v,n);var p=e.handleNoEmitOptions(D,n,a,s);if(p)return p;if(!n){if(r===t.EmitAndSemanticDiagnosticsBuilderProgram){for(var _=[],f=!1,m=void 0,g=[],h=void 0;h=A(a,s,c,d);)f=f||h.result.emitSkipped,m=e.addRange(m,h.result.diagnostics),g=e.addRange(g,h.result.emittedFiles),_=e.addRange(_,h.result.sourceMaps);return{emitSkipped:f,diagnostics:m||e.emptyArray,emittedFiles:g,sourceMaps:_}}(null===(u=v.affectedFilesPendingEmitKind)||void 0===u?void 0:u.size)&&(e.Debug.assert(r===t.SemanticDiagnosticsBuilderProgram),c&&!e.every(v.affectedFilesPendingEmit,((e,t)=>t<v.affectedFilesPendingEmitIndex||0===v.affectedFilesPendingEmitKind.get(e)))||o(v))}return e.Debug.checkDefined(v.program).emit(n,e.getEmitDeclarations(v.compilerOptions)?N(a,d):a||e.maybeBind(l,l.writeFile),s,c,d)},D.releaseProgram=()=>(t=>{e.BuilderState.releaseCache(t),t.program=void 0})(v),r===t.SemanticDiagnosticsBuilderProgram?D.getSemanticDiagnosticsOfNextAffectedFile=w:r===t.EmitAndSemanticDiagnosticsBuilderProgram?(D.getSemanticDiagnosticsOfNextAffectedFile=w,D.emitNextAffectedFile=A,D.emitBuildInfo=(t,r)=>{if(v.buildInfoEmitPending){var n=e.Debug.checkDefined(v.program).emitBuildInfo(t||e.maybeBind(l,l.writeFile),r);return v.buildInfoEmitPending=!1,n}return e.emitSkippedWithNoDiagnostics}):e.notImplemented(),D;function A(t,r,n,i){var s=a(v,r,m,_,l),c=1,d=!1;if(!s)if(e.outFile(v.compilerOptions)){var u=e.Debug.checkDefined(v.program);if(v.programEmitComplete)return;s=u}else{var p=(t=>{var r=t.affectedFilesPendingEmit;if(r){for(var n=t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map),i=t.affectedFilesPendingEmitIndex;i<r.length;i++){var a=e.Debug.checkDefined(t.program).getSourceFileByPath(r[i]);if(a){var s=n.get(a.resolvedPath),c=e.Debug.checkDefined(e.Debug.checkDefined(t.affectedFilesPendingEmitKind).get(a.resolvedPath));if(void 0===s||s<c)return t.affectedFilesPendingEmitIndex=i,{affectedFile:a,emitKind:c}}}o(t)}})(v);if(!p){if(!v.buildInfoEmitPending)return;var f=e.Debug.checkDefined(v.program);return h(v,f.emitBuildInfo(t||e.maybeBind(l,l.writeFile),r),f,1,!1,!0)}s=p.affectedFile,c=p.emitKind,d=!0}return h(v,e.Debug.checkDefined(v.program).emit(s===v.program?void 0:s,e.getEmitDeclarations(v.compilerOptions)?N(t,i):t||e.maybeBind(l,l.writeFile),r,n||0===c,i),s,c,d)}function N(t,r){return(n,i,a,o,s,c)=>{var d,u,p,f,g,h,y;if(e.isDeclarationFileName(n))if(e.outFile(v.compilerOptions)){if(v.compilerOptions.composite){var b=T(i,m,c);if(b===v.outSignature)return;v.outSignature=b,v.hasChangedEmitSignature=!0,v.latestChangedDtsFile=n}}else{e.Debug.assert(1===(null==s?void 0:s.length));var E=void 0;if(!r){var x=s[0],D=v.fileInfos.get(x.resolvedPath);if(D.signature===x.version){var C=S(x,i,m,_,c);(null===(d=null==c?void 0:c.diagnostics)||void 0===d?void 0:d.length)||(E=C),C!==x.version&&(l.storeFilesChangingSignatureDuringEmit&&(null!==(u=v.filesChangingSignature)&&void 0!==u?u:v.filesChangingSignature=new e.Set).add(x.resolvedPath),v.exportedModulesMap&&e.BuilderState.updateExportedModules(v,x,x.exportedModulesFromDeclarationEmit),v.affectedFiles?(void 0===(null===(p=v.oldSignatures)||void 0===p?void 0:p.get(x.resolvedPath))&&(null!==(f=v.oldSignatures)&&void 0!==f?f:v.oldSignatures=new e.Map).set(x.resolvedPath,D.signature||!1),D.signature=C):(D.signature=C,null===(g=v.oldExportedModulesMap)||void 0===g||g.clear()))}}if(v.compilerOptions.composite){var A=s[0].resolvedPath,k=null===(h=v.emitSignatures)||void 0===h?void 0:h.get(A);if(null!=E||(E=T(i,m,c)),E===k)return;(null!==(y=v.emitSignatures)&&void 0!==y?y:v.emitSignatures=new e.Map).set(A,E),v.hasChangedEmitSignature=!0,v.latestChangedDtsFile=n}}t?t(n,i,a,o,s,c):l.writeFile?l.writeFile(n,i,a,o,s,c):v.program.writeFile(n,i,a,o,s,c)}}function w(e,n){for(;;){var i=a(v,e,m,_,l);if(!i)return;if(i===v.program)return g(v,v.program.getSemanticDiagnostics(void 0,e),i);if((r===t.EmitAndSemanticDiagnosticsBuilderProgram||v.compilerOptions.noEmit||v.compilerOptions.noEmitOnError)&&C(v,i.resolvedPath,1),!n||!n(i))return g(v,y(v,i,e),i);f(v,i)}}},e.toBuilderStateFileInfo=A,e.createBuilderProgramUsingProgramBuildInfo=(t,r,n)=>{var i,a,o,s,c,l,d,u=e.getDirectoryPath(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory())),p=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),_=t.latestChangedDtsFile?g(t.latestChangedDtsFile):void 0;if(v(t))c={fileInfos:new e.Map,compilerOptions:t.options?e.convertToOptionsWithAbsolutePaths(t.options,g):{},latestChangedDtsFile:_,outSignature:t.outSignature};else{l=null===(i=t.fileNames)||void 0===i?void 0:i.map((t=>e.toPath(t,u,p))),d=null===(a=t.fileIdsList)||void 0===a?void 0:a.map((t=>new e.Set(t.map(h))));var f=new e.Map,m=(null===(o=t.options)||void 0===o?void 0:o.composite)&&!e.outFile(t.options)?new e.Map:void 0;t.fileInfos.forEach(((e,t)=>{var r=h(t+1),n=A(e);f.set(r,n),m&&n.signature&&m.set(r,n.signature)})),null===(s=t.emitSignatures)||void 0===s||s.forEach((t=>{e.isNumber(t)?m.delete(h(t)):m.set(h(t[0]),t[1])})),c={fileInfos:f,compilerOptions:t.options?e.convertToOptionsWithAbsolutePaths(t.options,g):{},referencedMap:y(t.referencedMap),exportedModulesMap:y(t.exportedModulesMap),semanticDiagnosticsPerFile:t.semanticDiagnosticsPerFile&&e.arrayToMap(t.semanticDiagnosticsPerFile,(t=>h(e.isNumber(t)?t:t[0])),(t=>e.isNumber(t)?e.emptyArray:t[1])),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(t.affectedFilesPendingEmit,(e=>h(e[0]))),affectedFilesPendingEmitKind:t.affectedFilesPendingEmit&&e.arrayToMap(t.affectedFilesPendingEmit,(e=>h(e[0])),(e=>e[1])),affectedFilesPendingEmitIndex:t.affectedFilesPendingEmit&&0,changedFilesSet:new e.Set(e.map(t.changeFileSet,h)),latestChangedDtsFile:_,emitSignatures:(null==m?void 0:m.size)?m:void 0}}return{getState:()=>c,saveEmitState:e.noop,restoreEmitState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:()=>c.compilerOptions,getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop,hasChangedEmitSignature:e.returnFalse};function g(t){return e.getNormalizedAbsolutePath(t,u)}function h(e){return l[e-1]}function y(t){if(t){var r=e.BuilderState.createManyToManyPathMap();return t.forEach((e=>{var t=e[0],n=e[1];return r.set(h(t),d[n-1])})),r}}},e.getBuildInfoFileVersionMap=(t,r,n)=>{var i=e.getDirectoryPath(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory())),a=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),o=new e.Map;return t.fileInfos.forEach(((r,n)=>{var s=e.toPath(t.fileNames[n],i,a),c=e.isString(r)?r:r.version;o.set(s,c)})),o},e.createRedirectedBuilderProgram=k})(p),(e=>{e.createSemanticDiagnosticsBuilderProgram=(t,r,n,i,a,o)=>e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o)),e.createEmitAndSemanticDiagnosticsBuilderProgram=(t,r,n,i,a,o)=>e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o)),e.createAbstractBuilder=(t,r,n,i,a,o)=>{var s=e.getBuilderCreationParameters(t,r,n,i,a,o),c=s.newProgram,l=s.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram((()=>({program:c,compilerOptions:c.getCompilerOptions()})),l)}})(p),(e=>{function t(t){return e.endsWith(t,"/node_modules/.staging")?e.removeSuffix(t,"/.staging"):e.some(e.ignoredPaths,(r=>e.stringContains(t,r)))?void 0:t}function r(t){var r=e.getRootLength(t);if(t.length===r)return!1;var n=t.indexOf(e.directorySeparator,r);if(-1===n)return!1;var i=t.substring(r,n+1),a=r>1||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}function n(e){var t,r;return!(!(null===(t=e.resolvedModule)||void 0===t?void 0:t.originalPath)&&!(null===(r=e.resolvedTypeReferenceDirective)||void 0===r?void 0:r.originalPath))}e.removeIgnoredPath=t,e.canWatchDirectoryOrFile=r,e.createResolutionCache=(i,a,o)=>{var s,c,l,d,u,p,_,f,m=e.createMultiMap(),g=[],h=[],y=e.createMultiMap(),v=new e.Map,b=!1,E=e.memoize((()=>i.getCurrentDirectory())),x=i.getCachedDirectoryStructureHost(),D=new e.Map,S=e.createCacheWithRedirects(),T=e.createCacheWithRedirects(),C=e.createModuleResolutionCache(E(),i.getCanonicalFileName,void 0,S,T),A=new e.Map,k=e.createCacheWithRedirects(),N=e.createTypeReferenceDirectiveResolutionCache(E(),i.getCanonicalFileName,void 0,C.getPackageJsonInfoCache(),k),w=[".ts",".tsx",".js",".jsx",".json"],F=new e.Map,P=new e.Map,I=new e.Map,O=a&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(a,E())),M=O&&i.toPath(O),R=void 0!==M?M.split(e.directorySeparator).length:0,L=new e.Map;return{getModuleResolutionCache:()=>C,startRecordingFilesWithChangedResolutions(){s=[]},finishRecordingFilesWithChangedResolutions(){var e=s;return s=void 0,e},startCachingPerDirectoryResolution(){C.clearAllExceptPackageJsonInfoCache(),N.clearAllExceptPackageJsonInfoCache(),m.forEach(Z),m.clear()},finishCachingPerDirectoryResolution(t,r){l=void 0,m.forEach(Z),m.clear(),t!==r&&(null==t||t.getSourceFiles().forEach((t=>{for(var r,n,i,a=e.isExternalOrCommonJsModule(t)&&null!==(n=null===(r=t.packageJsonLocations)||void 0===r?void 0:r.length)&&void 0!==n?n:0,o=null!==(i=v.get(t.path))&&void 0!==i?i:e.emptyArray,s=o.length;s<a;s++)Q(t.packageJsonLocations[s],!1);if(o.length>a)for(s=a;s<o.length;s++)I.get(o[s]).files--;a?v.set(t.path,t.packageJsonLocations):v.delete(t.path)})),v.forEach(((e,r)=>{(null==t?void 0:t.getSourceFileByPath(r))||(e.forEach((e=>I.get(e).files--)),v.delete(r))}))),P.forEach(((e,t)=>{0===e.refCount&&(P.delete(t),e.watcher.close())})),I.forEach(((e,t)=>{0===e.files&&0===e.resolutions&&(I.delete(t),e.watcher.close())})),b=!1},resolveModuleNames:(t,r,n,i,a)=>W({names:t,containingFile:r,redirectedReference:i,cache:D,perDirectoryCacheWithRedirects:S,loader:z,getResolutionWithResolvedFileName:B,shouldRetryResolution:t=>!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension),reusedNames:n,logChanges:o,containingSourceFile:a}),getResolvedModuleWithFailedLookupLocationsFromCache(e,t,r){var n=D.get(i.toPath(t));return n?n.get(e,r):void 0},resolveTypeReferenceDirectives:(e,t,r,n)=>W({names:e,containingFile:t,redirectedReference:r,cache:A,perDirectoryCacheWithRedirects:k,loader:H,getResolutionWithResolvedFileName:U,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,containingSourceFileMode:n}),removeResolutionsFromProjectReferenceRedirects(t){if(e.fileExtensionIs(t,".json")){var r=i.getCurrentProgram();if(r){var n=r.getResolvedProjectReferenceByPath(t);n&&n.commandLine.fileNames.forEach((e=>ae(i.toPath(e))))}}},removeResolutionsOfFile:ae,hasChangedAutomaticTypeDirectiveNames:()=>b,invalidateResolutionOfFile(t){ae(t);var r=b;oe(y.get(t),e.returnTrue)&&b&&!r&&i.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:ce,setFilesWithInvalidatedNonRelativeUnresolvedImports(t){e.Debug.assert(l===t||void 0===l),l=t},createHasInvalidatedResolution(t){if(ce(),t)return c=void 0,e.returnTrue;var r=c;return c=void 0,e=>!!r&&r.has(e)||V(e)},isFileWithInvalidatedNonRelativeUnresolvedImports:V,updateTypeRootsWatch(){var t=i.getCompilationSettings();if(t.types)pe();else{var r=e.getEffectiveTypeRoots(t,{directoryExists:fe,getCurrentDirectory:E});r?e.mutateMap(L,e.arrayToMap(r,(e=>i.toPath(e))),{createNewValue:_e,onDeleteValue:e.closeFileWatcher}):pe()}},closeTypeRootsWatch:pe,clear(){e.clearMap(P,e.closeFileWatcherOf),e.clearMap(I,e.closeFileWatcherOf),F.clear(),m.clear(),pe(),D.clear(),A.clear(),y.clear(),g.length=0,h.length=0,p=void 0,_=void 0,f=void 0,u=void 0,d=void 0,C.clear(),N.clear(),v.clear(),b=!1}};function B(e){return e.resolvedModule}function U(e){return e.resolvedTypeReferenceDirective}function j(t,r){return!(void 0===t||r.length<=t.length)&&e.startsWith(r,t)&&r[t.length]===e.directorySeparator}function V(e){if(!l)return!1;var t=l.get(e);return!!t&&!!t.length}function z(t,r,n,a,o,s,c){var l,d,u=e.resolveModuleName(t,r,n,a,C,o,c);if(!i.getGlobalCache)return u;var p=i.getGlobalCache();if(!(void 0===p||e.isExternalModuleNameRelative(t)||u.resolvedModule&&e.extensionIsTS(u.resolvedModule.extension))){var _=e.loadModuleFromGlobalCache(e.Debug.checkDefined(i.globalCacheResolutionModuleName)(t),i.projectName,n,a,p,C),f=_.resolvedModule,m=_.failedLookupLocations,g=_.affectingLocations;if(f)return u.resolvedModule=f,(l=u.failedLookupLocations).push.apply(l,m),(d=u.affectingLocations).push.apply(d,g),u}return u}function H(t,r,n,i,a,o,s){return e.resolveTypeReferenceDirective(t,r,n,i,a,N,s)}function W(t){var r,a,o,c=t.names,l=t.containingFile,d=t.redirectedReference,u=t.cache,p=t.perDirectoryCacheWithRedirects,_=t.loader,f=t.getResolutionWithResolvedFileName,m=t.shouldRetryResolution,g=t.reusedNames,h=t.logChanges,y=t.containingSourceFile,v=t.containingSourceFileMode,b=i.toPath(l),E=u.get(b)||u.set(b,e.createModeAwareCache()).get(b),x=e.getDirectoryPath(b),D=p.getOrCreateMapOfCacheRedirects(d),S=D.get(x);S||(S=e.createModeAwareCache(),D.set(x,S));for(var T=[],C=i.getCompilationSettings(),A=h&&V(b),k=i.getCurrentProgram(),N=k&&k.getResolvedProjectReferenceToRedirect(l),w=N?!d||d.sourceFile.path!==N.sourceFile.path:!!d,F=e.createModeAwareCache(),P=0,I=0,O=c;I<O.length;I++){var M=O[I],R=e.isString(M)?M:M.fileName.toLowerCase(),L=e.isString(M)?y?e.getModeForResolutionAtIndex(y,P):void 0:e.getModeForFileReference(M,v);P++;var B=E.get(R,L);if(!F.has(R,L)&&w||!B||B.isInvalidated||A&&!e.isExternalModuleNameRelative(R)&&m(B)){var U=B,j=S.get(R,L);if(j){B=j;var H=(null===(r=i.getCompilerHost)||void 0===r?void 0:r.call(i))||i;if(e.isTraceEnabled(C,H)){var W=f(B);e.trace(H,_===z?(null==W?void 0:W.resolvedFileName)?W.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:(null==W?void 0:W.resolvedFileName)?W.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,R,l,e.getDirectoryPath(l),null==W?void 0:W.resolvedFileName,(null==W?void 0:W.packagetId)&&e.packageIdToString(W.packagetId))}}else B=_(R,l,C,(null===(a=i.getCompilerHost)||void 0===a?void 0:a.call(i))||i,d,y,L),S.set(R,L,B),i.onDiscoveredSymlink&&n(B)&&i.onDiscoveredSymlink();E.set(R,L,B),q(R,B,b,f),U&&te(U,b,f),h&&s&&!K(U,B)&&(s.push(b),h=!1)}else H=(null===(o=i.getCompilerHost)||void 0===o?void 0:o.call(i))||i,e.isTraceEnabled(C,H)&&!F.has(R,L)&&(W=f(B),e.trace(H,_===z?(null==W?void 0:W.resolvedFileName)?W.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==W?void 0:W.resolvedFileName)?W.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,R,l,null==W?void 0:W.resolvedFileName,(null==W?void 0:W.packagetId)&&e.packageIdToString(W.packagetId)));e.Debug.assert(void 0!==B&&!B.isInvalidated),F.set(R,L,!0),T.push(f(B))}return E.forEach(((t,r,n)=>{F.has(r,n)||e.contains(g,r)||(te(t,b,f),E.delete(r,n))})),T;function K(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=f(e),n=f(t);return r===n||!(!r||!n)&&r.resolvedFileName===n.resolvedFileName}}function K(t){return e.endsWith(t,"/node_modules/@types")}function J(t,r){if(j(M,r)){t=e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,E());var n=r.split(e.directorySeparator),i=t.split(e.directorySeparator);return e.Debug.assert(i.length===n.length,"FailedLookup: ".concat(t," failedLookupLocationPath: ").concat(r)),n.length>R+1?{dir:i.slice(0,R+1).join(e.directorySeparator),dirPath:n.slice(0,R+1).join(e.directorySeparator)}:{dir:O,dirPath:M,nonRecursive:!1}}return G(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,E())),e.getDirectoryPath(r))}function G(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!==M)for(;!j(n,M);){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 $(t){return e.fileExtensionIsOneOf(t,w)}function q(t,r,n,a){if(r.refCount)r.refCount++,e.Debug.assertIsDefined(r.files);else{r.refCount=1,e.Debug.assert(0===e.length(r.files)),e.isExternalModuleNameRelative(t)?X(r):m.add(t,r);var o=a(r);o&&o.resolvedFileName&&y.add(i.toPath(o.resolvedFileName),r)}(r.files||(r.files=[])).push(n)}function X(t){e.Debug.assert(!!t.refCount);var r=t.failedLookupLocations,n=t.affectingLocations;if(r.length||n.length){r.length&&g.push(t);for(var a=!1,o=0,s=r;o<s.length;o++){var c=s[o],l=i.toPath(c),d=J(c,l);if(d){var u=d.dir,p=d.dirPath,_=d.nonRecursive;if(!$(l)){var f=F.get(l)||0;F.set(l,f+1)}p===M?(e.Debug.assert(!_),a=!0):ee(u,p,_)}}a&&ee(O,M,!0),Y(t,!r.length)}}function Y(t,r){e.Debug.assert(!!t.refCount);var n=t.affectingLocations;if(n.length){r&&h.push(t);for(var i=0,a=n;i<a.length;i++)Q(a[i],!0)}}function Q(t,n){var a=I.get(t);if(a)n?a.resolutions++:a.files++;else{var o=t;if(i.realpath&&t!==(o=i.realpath(t))){var s=I.get(o);if(s)return n?s.resolutions++:s.files++,s.paths.add(t),void I.set(t,s)}var c=new e.Set;c.add(o);var l=r(i.toPath(o))?i.watchAffectingFileLocation(o,((t,r)=>{null==x||x.addOrDeleteFile(t,i.toPath(o),r);var n=C.getPackageJsonInfoCache().getInternalMap();c.forEach((t=>{p.resolutions&&(null!=u?u:u=new e.Set).add(t),p.files&&(null!=d?d:d=new e.Set).add(t),null==n||n.delete(i.toPath(t))})),i.scheduleInvalidateResolutionsOfFailedLookupLocations()})):e.noopFileWatcher,p={watcher:l!==e.noopFileWatcher?{close(){l.close(),l=e.noopFileWatcher}}:l,resolutions:n?1:0,files:n?0:1,paths:c};I.set(o,p),t!==o&&(I.set(t,p),c.add(t))}}function Z(e,t){var r=i.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)?e.forEach((e=>Y(e,!0))):e.forEach(X)}function ee(t,r,n){var i=P.get(r);i?(e.Debug.assert(!!n==!!i.nonRecursive),i.refCount++):P.set(r,{watcher:ne(t,r,n),refCount:1,nonRecursive:n})}function te(t,r,n){if(e.unorderedRemoveItem(e.Debug.checkDefined(t.files),r),t.refCount--,!t.refCount){var a=n(t);a&&a.resolvedFileName&&y.remove(i.toPath(a.resolvedFileName),t);var o=t.failedLookupLocations,s=t.affectingLocations;if(e.unorderedRemoveItem(g,t)){for(var c=!1,l=0,d=o;l<d.length;l++){var u=d[l],p=i.toPath(u),_=J(u,p);if(_){var f=_.dirPath,m=F.get(p);m&&(1===m?F.delete(p):(e.Debug.assert(m>1),F.set(p,m-1))),f===M?c=!0:re(f)}}c&&re(M)}else s.length&&e.unorderedRemoveItem(h,t);for(var v=0,b=s;v<b.length;v++){var E=b[v];I.get(E).resolutions--}}}function re(e){P.get(e).refCount--}function ne(e,t,r){return i.watchDirectoryOfFailedLookupLocation(e,(e=>{var r=i.toPath(e);x&&x.addOrDeleteFileOrDirectory(e,r),se(r,t===r)}),r?0:1)}function ie(e,t,r){var n=e.get(t);n&&(n.forEach((e=>te(e,t,r))),e.delete(t))}function ae(e){ie(D,e,B),ie(A,e,U)}function oe(t,r){if(!t)return!1;for(var n=!1,i=0,a=t;i<a.length;i++){var o=a[i];if(!o.isInvalidated&&r(o)){o.isInvalidated=n=!0;for(var s=0,l=e.Debug.checkDefined(o.files);s<l.length;s++){var d=l[s];(null!=c?c:c=new e.Set).add(d),b=b||e.endsWith(d,e.inferredTypesContainingFile)}}}return n}function se(r,n){if(n)(f||(f=new e.Set)).add(r);else{var a=t(r);if(!a)return!1;if(r=a,i.fileIsOpen(r))return!1;var o=e.getDirectoryPath(r);if(K(r)||e.isNodeModulesDirectory(r)||K(o)||e.isNodeModulesDirectory(o))(p||(p=new e.Set)).add(r),(_||(_=new e.Set)).add(r);else{if(!$(r)&&!F.has(r))return!1;if(e.isEmittedFileOfProgram(i.getCurrentProgram(),r))return!1;(p||(p=new e.Set)).add(r);var s=e.parseNodeModuleFromPath(r);s&&(_||(_=new e.Set)).add(s)}}i.scheduleInvalidateResolutionsOfFailedLookupLocations()}function ce(){var t,r=!1;if(d&&(null===(t=i.getCurrentProgram())||void 0===t||t.getSourceFiles().forEach((t=>{e.some(t.packageJsonLocations,(e=>d.has(e)))&&((null!=c?c:c=new e.Set).add(t.path),r=!0)})),d=void 0),!(p||_||f||u))return r;r=oe(g,le)||r;var n=C.getPackageJsonInfoCache().getInternalMap();return n&&(p||_||f)&&n.forEach(((e,t)=>de(t)?n.delete(t):void 0)),p=void 0,_=void 0,f=void 0,r=oe(h,ue)||r,u=void 0,r}function le(e){return!!ue(e)||!!(p||_||f)&&e.failedLookupLocations.some((e=>de(i.toPath(e))))}function de(t){return(null==p?void 0:p.has(t))||e.firstDefinedIterator((null==_?void 0:_.keys())||e.emptyIterator,(r=>!!e.startsWith(t,r)||void 0))||e.firstDefinedIterator((null==f?void 0:f.keys())||e.emptyIterator,(e=>!!j(e,t)||void 0))}function ue(e){return!!u&&e.affectingLocations.some((e=>u.has(e)))}function pe(){e.clearMap(L,e.closeFileWatcher)}function _e(e,t){return i.watchTypeRootsDirectory(t,(r=>{var n=i.toPath(r);x&&x.addOrDeleteFileOrDirectory(r,n),b=!0,i.onChangedAutomaticTypeDirectiveNames();var a=((e,t)=>{if(j(M,t))return M;var r=G(e,t);return r&&P.has(r.dirPath)?r.dirPath:void 0})(t,e);a&&se(n,a===n)}),1)}function fe(t){var n=e.getDirectoryPath(e.getDirectoryPath(t)),a=i.toPath(n);return a===M||r(a)}}})(p),(e=>{!(t=>{var r,n,i;function a(t,r,n,i){var a=r.importModuleSpecifierPreference,s=r.importModuleSpecifierEnding;return{relativePreference:"relative"===a?0:"non-relative"===a?1:"project-relative"===a?3:2,ending:(()=>{switch(s){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return(t=>{var r=t.imports;return e.firstDefined(r,(t=>{var r=t.text;return e.pathIsRelative(r)?e.hasJSFileExtension(r):void 0}))||!1})(i)||o(n,i.path,t)?2:e.getEmitModuleResolutionKind(n)!==e.ModuleResolutionKind.NodeJs?1:0}})()}}function o(t,r,n){var i;return(e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeNext)&&e.getImpliedNodeFormatForFile(r,null===(i=n.getPackageJsonInfoCache)||void 0===i?void 0:i.call(n),(t=>{var r;return{fileExists:t.fileExists,readFile:e.Debug.checkDefined(t.readFile),directoryExists:t.directoryExists,getCurrentDirectory:t.getCurrentDirectory,realpath:t.realpath,useCaseSensitiveFileNames:null===(r=t.useCaseSensitiveFileNames)||void 0===r?void 0:r.call(t)}})(n),t)!==e.ModuleKind.CommonJS}function s(t,r,n,i,a,o,s,c){void 0===c&&(c={});var l=d(n,a),p=y(n,i,a,s,c);return e.firstDefined(p,(e=>D(e,l,r,a,t,s,void 0,c.overrideImportMode)))||u(i,l,t,a,c.overrideImportMode||r.impliedNodeFormat,o)}function c(t,r,n,i,a){var o;void 0===a&&(a={});var s=e.getSourceFileOfModule(t);if(!s)return e.emptyArray;var c=null===(o=n.getModuleSpecifierCache)||void 0===o?void 0:o.call(n),l=null==c?void 0:c.get(r.path,s.path,i,a);return[null==l?void 0:l.moduleSpecifiers,s,null==l?void 0:l.modulePaths,c]}function l(t,r,n,i,o,s,l){void 0===l&&(l={});var p=!1,_=((t,r)=>{var n,i=null===(n=t.declarations)||void 0===n?void 0:n.find((t=>e.isNonGlobalAmbientModule(t)&&(!e.isExternalModuleAugmentation(t)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name)))));if(i)return i.name.text;var a=e.mapDefined(t.declarations,(t=>{var n,i,a,o;if(e.isModuleDeclaration(t)){var s=(e=>{for(;4&e.flags;)e=e.parent;return e})(t);if((null===(n=null==s?void 0:s.parent)||void 0===n?void 0:n.parent)&&e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)&&e.isSourceFile(s.parent.parent.parent)){var c=null===(o=null===(a=null===(i=s.parent.parent.symbol.exports)||void 0===i?void 0:i.get("export="))||void 0===a?void 0:a.valueDeclaration)||void 0===o?void 0:o.expression;if(c){var l=r.getSymbolAtLocation(c);if(l&&(2097152&(null==l?void 0:l.flags)?r.getAliasedSymbol(l):l)===t.symbol)return s.parent.parent}}}}))[0];return a?a.name.text:void 0})(t,r);if(_)return{moduleSpecifiers:[_],computedWithoutCache:p};var f=c(t,i,o,s,l),m=f[0],g=f[1],h=f[2],y=f[3];if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!g)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:p};p=!0,h||(h=v(i.path,g.originalFileName,o));var b=((t,r,n,i,o,s)=>{void 0===s&&(s={});var c=d(n.path,i),l=a(i,o,r,n),p=e.forEach(t,(t=>e.forEach(i.getFileIncludeReasons().get(e.toPath(t.path,i.getCurrentDirectory(),c.getCanonicalFileName)),(t=>{if(t.kind===e.FileIncludeKind.Import&&t.file===n.path&&(!n.impliedNodeFormat||n.impliedNodeFormat===e.getModeForResolutionAtIndex(n,t.index))){var r=e.getModuleNameStringLiteralAt(n,t.index).text;return 1===l.relativePreference&&e.pathIsRelative(r)?void 0:r}}))));if(p)return[p];for(var _,f,m,g=e.some(t,(e=>e.isInNodeModules)),h=0,y=t;h<y.length;h++){var v=y[h],b=D(v,c,n,i,r,o,void 0,s.overrideImportMode);if(_=e.append(_,b),b&&v.isRedirect)return _;if(!b&&!v.isRedirect){var E=u(v.path,c,r,i,s.overrideImportMode||n.impliedNodeFormat,l);e.pathIsBareSpecifier(E)?f=e.append(f,E):g&&!v.isInNodeModules||(m=e.append(m,E))}}return(null==f?void 0:f.length)?f:(null==_?void 0:_.length)?_:e.Debug.checkDefined(m)})(h,n,i,o,s,l);return null==y||y.set(i.path,g.path,s,l,h,b),{moduleSpecifiers:b,computedWithoutCache:p}}function d(t,r){return{getCanonicalFileName:e.createGetCanonicalFileName(!r.useCaseSensitiveFileNames||r.useCaseSensitiveFileNames()),importingSourceFileName:t,sourceDirectory:e.getDirectoryPath(t)}}function u(t,r,n,i,a,o){var s=o.ending,c=o.relativePreference,l=n.baseUrl,d=n.paths,u=n.rootDirs,_=r.sourceDirectory,f=r.getCanonicalFileName,m=u&&((t,r,n,i,a,o)=>{var s=S(r,t,i);if(void 0!==s){var c=S(n,t,i),l=void 0!==c?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(c,s,i)):s;return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeJs?T(l,a,o):e.removeFileExtension(l)}})(u,t,_,f,s,n)||T(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(_,t,f)),s,n);if(!l&&!d||0===c)return m;var h=k(t,e.getNormalizedAbsolutePath(e.getPathsBasePath(n,i)||l,i.getCurrentDirectory()),f);if(!h)return m;var y=d&&E(h,d,b(s,n,a),i,n),v=void 0===y&&void 0!==l?T(h,s,n):y;if(!v)return m;if(1===c)return v;if(3===c){var x=n.configFilePath?e.toPath(e.getDirectoryPath(n.configFilePath),i.getCurrentDirectory(),r.getCanonicalFileName):r.getCanonicalFileName(i.getCurrentDirectory()),D=e.toPath(t,x,f),C=e.startsWith(_,x),A=e.startsWith(D,x);if(C&&!A||!C&&A)return v;var w=g(i,e.getDirectoryPath(D));return g(i,_)!==w?v:m}return 2!==c&&e.Debug.assertNever(c),N(v)||p(m)<p(v)?m:v}function p(t){for(var r=0,n=e.startsWith(t,"./")?2:0;n<t.length;n++)47===t.charCodeAt(n)&&r++;return r}function _(t,r){return e.compareBooleans(r.isRedirect,t.isRedirect)||e.compareNumberOfDirectorySeparators(t.path,r.path)}function g(t,r){return t.getNearestAncestorDirectoryWithPackageJson?t.getNearestAncestorDirectoryWithPackageJson(r):!!e.forEachAncestorDirectory(r,(r=>!!t.fileExists(e.combinePaths(r,"package.json"))||void 0))}function h(t,r,n,i,a){var o,s=e.hostGetCanonicalFileName(n),c=n.getCurrentDirectory(),l=n.isSourceOfProjectReferenceRedirect(r)?n.getProjectReferenceRedirect(r):void 0,d=e.toPath(r,c,s),u=n.redirectTargetsMap.get(d)||e.emptyArray,p=f(f(f([],l?[l]:e.emptyArray,!0),[r],!1),u,!0).map((t=>e.getNormalizedAbsolutePath(t,c))),_=!e.every(p,e.containsIgnoredPath);if(!i){var m=e.forEach(p,(t=>!(_&&e.containsIgnoredPath(t))&&a(t,l===t)));if(m)return m}var g=null===(o=n.getSymlinkCache)||void 0===o?void 0:o.call(n).getSymlinkedDirectoriesByRealpath(),h=e.getNormalizedAbsolutePath(r,c);return g&&e.forEachAncestorDirectory(e.getDirectoryPath(h),(r=>{var n=g.get(e.ensureTrailingDirectorySeparator(e.toPath(r,c,s)));if(n)return!e.startsWithDirectory(t,r,s)&&e.forEach(p,(t=>{if(e.startsWithDirectory(t,r,s))for(var i=e.getRelativePathFromDirectory(r,t,s),o=0,c=n;o<c.length;o++){var d=c[o],u=e.resolvePath(d,i),p=a(u,t===l);if(_=!0,p)return p}}))}))||(i?e.forEach(p,(t=>_&&e.containsIgnoredPath(t)?void 0:a(t,t===l))):void 0)}function y(t,r,n,i,a){var o;void 0===a&&(a={});var s=e.toPath(r,n.getCurrentDirectory(),e.hostGetCanonicalFileName(n)),c=null===(o=n.getModuleSpecifierCache)||void 0===o?void 0:o.call(n);if(c){var l=c.get(t,s,i,a);if(null==l?void 0:l.modulePaths)return l.modulePaths}var d=v(t,r,n);return c&&c.setModulePaths(t,s,i,a,d),d}function v(t,r,n){var i=e.hostGetCanonicalFileName(n),a=new e.Map,o=!1;h(t,r,n,!0,((t,r)=>{var n=e.pathContainsNodeModules(t);a.set(t,{path:i(t),isRedirect:r,isInNodeModules:n}),o=o||n}));for(var s,c=[],l=t=>{var r,n=e.ensureTrailingDirectorySeparator(t);a.forEach(((t,i)=>{var o=t.path,s=t.isRedirect,c=t.isInNodeModules;e.startsWith(o,n)&&((r||(r=[])).push({path:i,isRedirect:s,isInNodeModules:c}),a.delete(i))})),r&&(r.length>1&&r.sort(_),c.push.apply(c,r));var i=e.getDirectoryPath(t);if(i===t)return s=t,"break";s=t=i},d=e.getDirectoryPath(t);0!==a.size;){var u=l(d);if(d=s,"break"===u)break}if(a.size){var p=e.arrayFrom(a.values());p.length>1&&p.sort(_),c.push.apply(c,p)}return c}function b(t,r,n){if(e.getEmitModuleResolutionKind(r)>=e.ModuleResolutionKind.Node16&&n===e.ModuleKind.ESNext)return[2];switch(t){case 2:return[2,0,1];case 1:return[1,0,2];case 0:return[0,1,2];default:e.Debug.assertNever(t)}}function E(t,r,n,i,a){for(var o in r)for(var s=r=>{var i=e.normalizePath(r),s=i.indexOf("*"),c=n.map((e=>({ending:e,value:T(t,e,a)})));if(e.tryGetExtensionFromPath(i)&&c.push({ending:void 0,value:t}),-1!==s)for(var l=i.substring(0,s),d=i.substring(s+1),p=0,_=c;p<_.length;p++){var f=_[p],m=f.ending,g=f.value;if(g.length>=l.length+d.length&&e.startsWith(g,l)&&e.endsWith(g,d)&&u({ending:m,value:g})){var h=g.substring(l.length,g.length-d.length);return{value:o.replace("*",h)}}}else if(e.some(c,(e=>0!==e.ending&&i===e.value))||e.some(c,(e=>0===e.ending&&i===e.value&&u(e))))return{value:o}},c=0,l=r[o];c<l.length;c++){var d=s(l[c]);if("object"==typeof d)return d.value}function u(e){var r=e.ending,n=e.value;return 0!==r||n===T(t,r,a,i)}}function x(t,r,n,i,a,o,s){if(void 0===s&&(s=0),"string"==typeof a){var c=e.getNormalizedAbsolutePath(e.combinePaths(n,a),void 0),l=e.hasTSFileExtension(r)?e.removeFileExtension(r)+A(r,t):void 0;switch(s){case 0:if(0===e.comparePaths(r,c)||l&&0===e.comparePaths(l,c))return{moduleFileToTry:i};break;case 1:if(e.containsPath(c,r)){var d=e.getRelativePathFromDirectory(c,r,!1);return{moduleFileToTry:e.getNormalizedAbsolutePath(e.combinePaths(e.combinePaths(i,a),d),void 0)}}break;case 2:var u=c.indexOf("*"),p=c.slice(0,u),_=c.slice(u+1);if(e.startsWith(r,p)&&e.endsWith(r,_)){var f=r.slice(p.length,r.length-_.length);return{moduleFileToTry:i.replace("*",f)}}if(l&&e.startsWith(l,p)&&e.endsWith(l,_))return f=l.slice(p.length,l.length-_.length),{moduleFileToTry:i.replace("*",f)}}}else{if(Array.isArray(a))return e.forEach(a,(e=>x(t,r,n,i,e,o)));if("object"==typeof a&&null!==a){if(e.allKeysStartWithDot(a))return e.forEach(e.getOwnKeys(a),(s=>{var c=e.getNormalizedAbsolutePath(e.combinePaths(i,s),void 0),l=e.endsWith(s,"/")?1:e.stringContains(s,"*")?2:0;return x(t,r,n,c,a[s],o,l)}));for(var m=0,g=e.getOwnKeys(a);m<g.length;m++){var h=g[m];if("default"===h||o.indexOf(h)>=0||e.isApplicableVersionedTypesKey(o,h)){var y=a[h],v=x(t,r,n,i,y,o);if(v)return v}}}}}function D(t,r,n,i,o,s,c,l){var d=t.path,u=t.isRedirect,p=r.getCanonicalFileName,_=r.sourceDirectory;if(i.fileExists&&i.readFile){var f=e.getNodeModulePathParts(d);if(f){var g=a(i,s,o,n),h=d,y=!1;if(!c)for(var v=f.packageRootIndex,D=void 0;;){var S=M(v),C=S.moduleFileToTry,k=S.packageRootPath,N=S.blockedByExports,w=S.verbatimFromExports;if(e.getEmitModuleResolutionKind(o)!==e.ModuleResolutionKind.Classic){if(N)return;if(w)return C}if(k){h=k,y=!0;break}if(D||(D=C),-1===(v=d.indexOf(e.directorySeparator,v+1))){h=T(D,g.ending,o,i);break}}if(!u||y){var F=i.getGlobalTypingsCacheLocation&&i.getGlobalTypingsCacheLocation(),P=p(h.substring(0,f.topLevelNodeModulesIndex));if(e.startsWith(_,P)||F&&e.startsWith(p(F),P)){var I=h.substring(f.topLevelPackageNameIndex+1),O=e.getPackageNameFromTypesPackageName(I);return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.Classic&&O===I?void 0:O}}}}function M(t){var r,a,s=d.substring(0,t),c=e.combinePaths(s,"package.json"),u=d,_=!1,h=null===(a=null===(r=i.getPackageJsonInfoCache)||void 0===r?void 0:r.call(i))||void 0===a?void 0:a.getPackageJsonInfo(c);if("object"==typeof h||void 0===h&&i.fileExists(c)){var y=(null==h?void 0:h.contents.packageJsonContent)||JSON.parse(i.readFile(c)),v=l||n.impliedNodeFormat;if(e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeNext){var D=["node",v===e.ModuleKind.ESNext?"import":"require","types"],S=y.exports&&"string"==typeof y.name?x(o,d,s,e.getPackageNameFromTypesPackageName(y.name),y.exports,D):void 0;if(S){var T=e.hasTSFileExtension(S.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(S.moduleFileToTry)+A(S.moduleFileToTry,o)}:S;return m(m({},T),{verbatimFromExports:!0})}if(y.exports)return{moduleFileToTry:d,blockedByExports:!0}}var C=y.typesVersions?e.getPackageJsonTypesVersionsPaths(y.typesVersions):void 0;if(C){var k=E(d.slice(s.length+1),C.paths,b(g.ending,o,v),i,o);void 0===k?_=!0:u=e.combinePaths(s,k)}var N=y.typings||y.types||y.main||"index.js";if(e.isString(N)&&(!_||!e.matchPatternOrExact(e.tryParsePatterns(C.paths),N))){var w=e.toPath(N,s,p);if(e.removeFileExtension(w)===e.removeFileExtension(p(u)))return{packageRootPath:s,moduleFileToTry:u}}}else{var F=p(u.substring(f.packageRootIndex+1));if("index.d.ts"===F||"index.js"===F||"index.ts"===F||"index.tsx"===F)return{moduleFileToTry:u,packageRootPath:s}}return{moduleFileToTry:u}}}function S(t,r,n){return e.firstDefined(r,(e=>{var r=k(t,e,n);return void 0!==r&&N(r)?void 0:r}))}function T(t,r,n,i){if(e.fileExtensionIsOneOf(t,[".json",".mjs",".cjs"]))return t;var a=e.removeFileExtension(t);if(t===a)return t;if(e.fileExtensionIsOneOf(t,[".d.mts",".mts",".d.cts",".cts"]))return a+C(t,n);switch(r){case 0:var o=e.removeSuffix(a,"/index");return i&&o!==a&&((t,r)=>{if(t.fileExists)for(var n=0,i=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));n<i.length;n++){var a=r+i[n];if(t.fileExists(a))return a}})(i,o)?a:o;case 1:return a;case 2:return a+C(t,n);default:return e.Debug.assertNever(r)}}function C(t,r){var n;return null!==(n=A(t,r))&&void 0!==n?n:e.Debug.fail("Extension ".concat(e.extensionFromPath(t)," is unsupported:: FileName:: ").concat(t))}function A(t,r){var n=e.tryGetExtensionFromPath(t);switch(n){case".ts":case".d.ts":return".js";case".tsx":return 1===r.jsx?".jsx":".js";case".js":case".jsx":case".json":return n;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function k(t,r,n){var i=e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1);return e.isRootedDiskPath(i)?void 0:i}function N(t){return e.startsWith(t,"..")}!(e=>{e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative"})(r||(r={})),(e=>{e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension"})(n||(n={})),t.updateModuleSpecifier=(t,r,n,i,a,c,l)=>{void 0===l&&(l={});var d=s(t,r,n,i,a,((t,r,n,i)=>({relativePreference:e.isExternalModuleNameRelative(r)?0:1,ending:e.hasJSFileExtension(r)||o(t,n,i)?2:e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs||e.endsWith(r,"index")?1:0}))(t,c,n,a),{},l);if(d!==c)return d},t.getModuleSpecifier=(e,t,r,n,i,o)=>(void 0===o&&(o={}),s(e,t,r,n,i,a(i,{},e,t),{},o)),t.getNodeModulesPackageName=(t,r,n,i,a,o)=>{void 0===o&&(o={});var s=d(r.path,i),c=y(r.path,n,i,a,o);return e.firstDefined(c,(e=>D(e,s,r,i,t,a,!0,o.overrideImportMode)))},t.tryGetModuleSpecifiersFromCache=(e,t,r,n,i)=>(void 0===i&&(i={}),c(e,t,r,n,i)[0]),t.getModuleSpecifiers=(e,t,r,n,i,a,o)=>(void 0===o&&(o={}),l(e,t,r,n,i,a,o).moduleSpecifiers),t.getModuleSpecifiersWithCacheInfo=l,t.countPathComponents=p,t.forEachFileNameOfModule=h,(e=>{e[e.Exact=0]="Exact",e[e.Directory=1]="Directory",e[e.Pattern=2]="Pattern"})(i||(i={})),t.tryGetJSExtensionForFile=A})(e.moduleSpecifiers||(e.moduleSpecifiers={}))})(p),(e=>{var t=e.sys?{getCurrentDirectory:()=>e.sys.getCurrentDirectory(),getNewLine:()=>e.sys.newLine,getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function r(r,n){var i=r===e.sys&&t?t:{getCurrentDirectory:()=>r.getCurrentDirectory(),getNewLine:()=>r.newLine,getCanonicalFileName:e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)};if(!n)return t=>r.write(e.formatDiagnostic(t,i));var a=new Array(1);return t=>{a[0]=t,r.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine()),a[0]=void 0}}function n(t,r,n){return!(!t.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!e.contains(e.screenStartingMessageCodes,r.code)||(t.clearScreen(),0))}function i(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):(new Date).toLocaleTimeString()}function a(t,r){return r?(r,a,o)=>{n(t,r,o);var s="[".concat(e.formatColorAndReset(i(t),e.ForegroundColorEscapeSequences.Grey),"] ");s+="".concat(e.flattenDiagnosticMessageText(r.messageText,t.newLine)).concat(a+a),t.write(s)}:(r,a,o)=>{var s="";n(t,r,o)||(s+=a),s+="".concat(i(t)," - "),s+="".concat(e.flattenDiagnosticMessageText(r.messageText,t.newLine)).concat(((t,r)=>e.contains(e.screenStartingMessageCodes,t.code)?r+r:r)(r,a)),t.write(s)}}function o(t){return e.countWhere(t,(t=>t.category===e.DiagnosticCategory.Error))}function s(t){return e.filter(t,(t=>t.category===e.DiagnosticCategory.Error)).map((e=>{if(void 0!==e.file)return"".concat(e.file.fileName)})).map((r=>{var n=e.find(t,(e=>void 0!==e.file&&e.file.fileName===r));if(void 0!==n){var i=e.getLineAndCharacterOfPosition(n.file,n.start).line;return{fileName:r,line:i+1}}}))}function c(t){return 1===t?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}function l(t,r){var n=e.formatColorAndReset(":"+t.line,e.ForegroundColorEscapeSequences.Grey);return e.pathIsAbsolute(t.fileName)&&e.pathIsAbsolute(r)?e.getRelativePathFromDirectory(r,t.fileName,!1)+n:t.fileName+n}function d(t,r,n,i){if(0===t)return"";var a=r.filter((e=>void 0!==e)),o=a.map((e=>"".concat(e.fileName,":").concat(e.line))).filter(((e,t,r)=>r.indexOf(e)===t)),s=a[0]&&l(a[0],i.getCurrentDirectory()),c=1===t?e.createCompilerDiagnostic(void 0!==r[0]?e.Diagnostics.Found_1_error_in_1:e.Diagnostics.Found_1_error,t,s):e.createCompilerDiagnostic(0===o.length?e.Diagnostics.Found_0_errors:1===o.length?e.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1:e.Diagnostics.Found_0_errors_in_1_files,t,1===o.length?s:o.length),d=o.length>1?((t,r)=>{var n=t.filter(((e,t,r)=>t===r.findIndex((t=>(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)))));if(0===n.length)return"";var i=e=>Math.log(e)*Math.LOG10E+1,a=n.map((r=>[r,e.countWhere(t,(e=>e.fileName===r.fileName))])),o=a.reduce(((e,t)=>Math.max(e,t[1]||0)),0),s=e.Diagnostics.Errors_Files.message,c=s.split(" ")[0].length,d=Math.max(c,i(o)),u=Math.max(i(o)-c,0),p="";return p+=" ".repeat(u)+s+"\n",a.forEach((e=>{var t=e[0],n=e[1],i=Math.log(n)*Math.LOG10E+1|0,a=i<d?" ".repeat(d-i):"",o=l(t,r.getCurrentDirectory());p+="".concat(a).concat(n," ").concat(o,"\n")})),p})(a,i):"";return"".concat(n).concat(e.flattenDiagnosticMessageText(c.messageText,n)).concat(n).concat(n).concat(d)}function u(e){return!!e.getState}function p(t,r){var n=t.getCompilerOptions();n.explainFiles?_(u(t)?t.getProgram():t,r):(n.listFiles||n.listFilesOnly)&&e.forEach(t.getSourceFiles(),(e=>{r(e.fileName)}))}function _(t,r){for(var n,i,a=t.getFileIncludeReasons(),o=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),s=r=>e.convertToRelativePath(r,t.getCurrentDirectory(),o),c=0,l=t.getSourceFiles();c<l.length;c++){var d=l[c];r("".concat(v(d,s))),null===(n=a.get(d.path))||void 0===n||n.forEach((e=>r(" ".concat(y(t,e,s).messageText)))),null===(i=m(d,s))||void 0===i||i.forEach((e=>r(" ".concat(e.messageText))))}}function m(t,r){var n,i;if(t.path!==t.resolvedPath&&(null!=i?i:i=[]).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,v(t.originalFileName,r))),t.redirectInfo&&(null!=i?i:i=[]).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,v(t.redirectInfo.redirectTarget,r))),e.isExternalOrCommonJsModule(t))switch(t.impliedNodeFormat){case e.ModuleKind.ESNext:t.packageJsonScope&&(null!=i?i:i=[]).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,v(e.last(t.packageJsonLocations),r)));break;case e.ModuleKind.CommonJS:t.packageJsonScope?(null!=i?i:i=[]).push(e.chainDiagnosticMessages(void 0,t.packageJsonScope.contents.packageJsonContent.type?e.Diagnostics.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:e.Diagnostics.File_is_CommonJS_module_because_0_does_not_have_field_type,v(e.last(t.packageJsonLocations),r))):(null===(n=t.packageJsonLocations)||void 0===n?void 0:n.length)&&(null!=i?i:i=[]).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_CommonJS_module_because_package_json_was_not_found))}return i}function g(t,r){var n,i=t.getCompilerOptions().configFile;if(null===(n=null==i?void 0:i.configFileSpecs)||void 0===n?void 0:n.validatedFilesSpec){var a=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),o=a(r),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(i.fileName,t.getCurrentDirectory()));return e.find(i.configFileSpecs.validatedFilesSpec,(t=>a(e.getNormalizedAbsolutePath(t,s))===o))}}function h(t,r){var n,i,a=t.getCompilerOptions().configFile;if(null===(n=null==a?void 0:a.configFileSpecs)||void 0===n?void 0:n.validatedIncludeSpecs){if(a.configFileSpecs.isDefaultIncludeSpec)return!0;var o=e.fileExtensionIs(r,".json"),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(a.fileName,t.getCurrentDirectory())),c=t.useCaseSensitiveFileNames();return e.find(null===(i=null==a?void 0:a.configFileSpecs)||void 0===i?void 0:i.validatedIncludeSpecs,(t=>{if(o&&!e.endsWith(t,".json"))return!1;var n=e.getPatternFromSpec(t,s,"files");return!!n&&e.getRegexFromPattern("(".concat(n,")$"),c).test(r)}))}}function y(t,r,n){var i,a,o=t.getCompilerOptions();if(e.isReferencedFile(r)){var s=e.getReferencedFileLocation((e=>t.getSourceFileByPath(e)),r),c=e.isReferenceFileLocation(s)?s.file.text.substring(s.pos,s.end):'"'.concat(s.text,'"'),l=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(s)||r.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),r.kind){case e.FileIncludeKind.Import:l=e.isReferenceFileLocation(s)?s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:s.text===e.externalHelpersModuleNameText?s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:e.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:e.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case e.FileIncludeKind.ReferenceFile:e.Debug.assert(!s.packageId),l=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:l=s.packageId?e.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:e.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case e.FileIncludeKind.LibReferenceDirective:e.Debug.assert(!s.packageId),l=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(r)}return e.chainDiagnosticMessages(void 0,l,c,v(s.file,n),s.packageId&&e.packageIdToString(s.packageId))}switch(r.kind){case e.FileIncludeKind.RootFile:if(!(null===(i=o.configFile)||void 0===i?void 0:i.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var d=e.getNormalizedAbsolutePath(t.getRootFileNames()[r.index],t.getCurrentDirectory());if(g(t,d))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var u=h(t,d);return e.isString(u)?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,u,v(o.configFile,n)):e.chainDiagnosticMessages(void 0,u?e.Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var p=r.kind===e.FileIncludeKind.OutputFromProjectReference,_=e.Debug.checkDefined(null===(a=t.getResolvedProjectReferences())||void 0===a?void 0:a[r.index]);return e.chainDiagnosticMessages(void 0,e.outFile(o)?p?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:p?e.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:e.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,v(_.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,o.types?r.packageId?e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:r.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,r.typeReference,r.packageId&&e.packageIdToString(r.packageId));case e.FileIncludeKind.LibFile:if(void 0!==r.index)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,o.lib[r.index]);var f=e.forEachEntry(e.targetOptionDeclaration.type,((t,r)=>t===e.getEmitScriptTarget(o)?r:void 0));return e.chainDiagnosticMessages(void 0,f?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,f);default:e.Debug.assertNever(r)}}function v(t,r){var n=e.isString(t)?t:t.fileName;return r?r(n):n}function b(t,r,n,i,a,c,l,d){var u=!!t.getCompilerOptions().listFilesOnly,_=t.getConfigFileParsingDiagnostics().slice(),f=_.length;e.addRange(_,t.getSyntacticDiagnostics(void 0,c)),_.length===f&&(e.addRange(_,t.getOptionsDiagnostics(c)),u||(e.addRange(_,t.getGlobalDiagnostics(c)),_.length===f&&e.addRange(_,t.getSemanticDiagnostics(void 0,c))));var m=u?{emitSkipped:!0,diagnostics:e.emptyArray}:t.emit(void 0,a,c,l,d),g=m.emittedFiles,h=m.diagnostics;e.addRange(_,h);var y=e.sortAndDeduplicateDiagnostics(_);if(y.forEach(r),n){var v=t.getCurrentDirectory();e.forEach(g,(t=>{var r=e.getNormalizedAbsolutePath(t,v);n("TSFILE: ".concat(r))})),p(t,n)}return i&&i(o(y),s(y)),{emitResult:m,diagnostics:y}}function E(t,r,n,i,a,o,s,c){var l=b(t,r,n,i,a,o,s,c),d=l.emitResult,u=l.diagnostics;return d.emitSkipped&&u.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:u.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function x(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||a(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 D(t,r){var n=e.memoize((()=>e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))));return{useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames,getNewLine:()=>t.newLine,getCurrentDirectory:e.memoize((()=>t.getCurrentDirectory())),getDefaultLibLocation:n,getDefaultLibFileName:t=>e.combinePaths(n(),e.getDefaultLibFileName(t)),fileExists:e=>t.fileExists(e),readFile:(e,r)=>t.readFile(e,r),directoryExists:e=>t.directoryExists(e),getDirectories:e=>t.getDirectories(e),readDirectory:(e,r,n,i,a)=>t.readDirectory(e,r,n,i,a),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:e=>t.write(e+t.newLine),createDirectory:e=>t.createDirectory(e),writeFile:(e,r,n)=>t.writeFile(e,r,n),createHash:e.maybeBind(t,t.createHash),createProgram:r||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,now:e.maybeBind(t,t.now)}}function S(t,r,n,i){void 0===t&&(t=e.sys);var a=e=>t.write(e+t.newLine),o=D(t,r);return e.copyProperties(o,x(t,i)),o.afterProgramCreate=r=>{var i=r.getCompilerOptions(),s=e.getNewLineCharacter(i,(()=>t.newLine));b(r,n,a,(t=>o.onWatchStatusChange(e.createCompilerDiagnostic(c(t),t),s,i,t)))},o}function T(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=i,e.createWatchStatusReporter=a,e.parseConfigFileWithSystem=(t,r,n,i,a,o)=>{var s=a;s.onUnRecoverableConfigFileDiagnostic=e=>T(a,o,e);var c=e.getParsedCommandLineOfConfigFile(t,r,s,n,i);return s.onUnRecoverableConfigFileDiagnostic=void 0,c},e.getErrorCountForSummary=o,e.getFilesInErrorForSummary=s,e.getWatchErrorSummaryDiagnosticMessage=c,e.getErrorSummaryText=d,e.isBuilderProgram=u,e.listFiles=p,e.explainFiles=_,e.explainIfFileIsRedirectAndImpliedFormat=m,e.getMatchedFileSpec=g,e.getMatchedIncludeSpec=h,e.fileIncludeReasonToDiagnostics=y,e.emitFilesAndReportErrors=b,e.emitFilesAndReportErrorsAndGetExitStatus=E,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=()=>e.noopFileWatcher,e.createWatchHost=x,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation"},e.createWatchFactory=(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?e=>t.trace(e):e.noop,a=e.getWatchFactory(t,n,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=(t,r,n)=>{void 0===n&&(n=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize((()=>t.getNewLine()));return{getSourceFile(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(e){a&&a(e.message),o=""}return void 0!==o?e.createSourceFile(n,o,i):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:e=>t.getDefaultLibFileName(e),writeFile(r,n,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,n,i,((e,r,n)=>t.writeFile(e,r,n)),(e=>t.createDirectory(e)),(e=>t.directoryExists(e))),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize((()=>t.getCurrentDirectory())),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:()=>e.getNewLineCharacter(r(),a),fileExists:e=>t.fileExists(e),readFile:e=>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)||(()=>""),createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory),disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit}},e.setGetSourceFileAsHashVersioned=(t,r)=>{var n=t.getSourceFile,i=e.maybeBind(r,r.createHash)||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var a=n.call.apply(n,f([t],e,!1));return a&&(a.version=i(a.text)),a}},e.createProgramHost=D,e.createWatchCompilerHostOfConfigFile=e=>{var t=e.configFileName,n=e.optionsToExtend,i=e.watchOptionsToExtend,a=e.extraFileExtensions,o=e.system,s=e.createProgram,c=e.reportDiagnostic,l=e.reportWatchStatus,d=c||r(o),u=S(o,s,d,l);return u.onUnRecoverableConfigFileDiagnostic=e=>T(o,d,e),u.configFileName=t,u.optionsToExtend=n,u.watchOptionsToExtend=i,u.extraFileExtensions=a,u},e.createWatchCompilerHostOfFilesAndCompilerOptions=e=>{var t=e.rootFiles,n=e.options,i=e.watchOptions,a=e.projectReferences,o=e.system,s=e.createProgram,c=e.reportDiagnostic,l=e.reportWatchStatus,d=S(o,s,c||r(o),l);return d.rootFiles=t,d.options=n,d.watchOptions=i,d.projectReferences=a,d},e.performIncrementalCompilation=t=>{var n=t.system||e.sys,i=t.host||(t.host=e.createIncrementalCompilerHost(t.options,n)),a=e.createIncrementalProgram(t),o=E(a,t.reportDiagnostic||r(n),(e=>i.trace&&i.trace(e)),t.reportErrorSummary||t.options.pretty?(e,t)=>n.write(d(e,t,n.newLine,i)):void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(a),o}})(p),(e=>{function t(t,r){var n=e.getTsBuildInfoEmitOutputFilePath(t);if(n){var i;if(r.getBuildInfo){if(!(i=r.getBuildInfo(n,t.configFilePath)))return}else{var a=r.readFile(n);if(!a)return;i=e.getBuildInfo(a)}if(i.version===e.version&&i.program)return e.createBuilderProgramUsingProgramBuildInfo(i.program,n,r)}}function r(t,r){void 0===r&&(r=e.sys);var n=e.createCompilerHostWorker(t,void 0,r);return n.createHash=e.maybeBind(r,r.createHash),n.disableUseFileVersionAsSignature=r.disableUseFileVersionAsSignature,n.storeFilesChangingSignatureDuringEmit=r.storeFilesChangingSignatureDuringEmit,e.setGetSourceFileAsHashVersioned(n,r),e.changeCompilerHostLikeToUseCache(n,(t=>e.toPath(t,n.getCurrentDirectory(),n.getCanonicalFileName))),n}e.readBuilderProgram=t,e.createIncrementalCompilerHost=r,e.createIncrementalProgram=n=>{var i=n.rootNames,a=n.options,o=n.configFileParsingDiagnostics,s=n.projectReferences,c=n.host,l=n.createProgram;return c=c||r(a),(l=l||e.createEmitAndSemanticDiagnosticsBuilderProgram)(i,a,c,t(a,c),o,s)},e.createWatchCompilerHost=(t,r,n,i,a,o,s,c)=>e.isArray(t)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:t,options:r,watchOptions:c,projectReferences:s,system:n,createProgram:i,reportDiagnostic:a,reportWatchStatus:o}):e.createWatchCompilerHostOfConfigFile({configFileName:t,optionsToExtend:r,watchOptionsToExtend:s,extraFileExtensions:c,system:n,createProgram:i,reportDiagnostic:a,reportWatchStatus:o}),e.createWatchProgram=r=>{var n,i,a,o,s,c,l,d,u,p,_,g=r.extendedConfigCache,h=!1,y=new e.Map,v=!1,b=r.useCaseSensitiveFileNames(),E=r.getCurrentDirectory(),x=r.configFileName,D=r.optionsToExtend,S=void 0===D?{}:D,T=r.watchOptionsToExtend,C=r.extraFileExtensions,A=r.createProgram,k=r.rootFiles,N=r.options,w=r.watchOptions,F=r.projectReferences,P=!1,I=!1,O=void 0===x?void 0:e.createCachedDirectoryStructureHost(r,E,b),M=O||r,R=e.parseConfigHostFromCompilerHostLike(r,M),L=Q();x&&r.configFileParsingResult&&(_e(r.configFileParsingResult),L=Q()),ae(e.Diagnostics.Starting_compilation_in_watch_mode),x&&!r.configFileParsingResult&&(L=e.getNewLineCharacter(S,(()=>r.getNewLine())),e.Debug.assert(!k),pe(),L=Q());var B,U=e.createWatchFactory(r,N),j=U.watchFile,V=U.watchDirectory,z=U.writeLog,H=e.createGetCanonicalFileName(b);z("Current directory: ".concat(E," CaseSensitiveFileNames: ").concat(b)),x&&(B=j(x,(()=>{e.Debug.assert(!!x),i=e.ConfigFileProgramReloadLevel.Full,le()}),e.PollingInterval.High,w,e.WatchType.ConfigFile));var W=e.createCompilerHostFromProgramHost(r,(()=>N),M);e.setGetSourceFileAsHashVersioned(W,r);var K=W.getSourceFile;W.getSourceFile=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return re.apply(void 0,f([e,Z(e)],t,!1))},W.getSourceFileByPath=re,W.getNewLine=()=>L,W.fileExists=te,W.onReleaseOldSourceFile=(e,t,r)=>{var n=y.get(e.resolvedPath);void 0!==n&&(ee(n)?(u||(u=[])).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),y.delete(e.resolvedPath),r||J.removeResolutionsOfFile(e.path)))},W.onReleaseParsedCommandLine=t=>{var r,n=Z(t),i=null==l?void 0:l.get(n);i&&(l.delete(n),i.watchedDirectories&&e.clearMap(i.watchedDirectories,e.closeFileWatcherOf),null===(r=i.watcher)||void 0===r||r.close(),e.clearSharedExtendedConfigFileWatcher(n,d))},W.toPath=Z,W.getCompilationSettings=()=>N,W.useSourceOfProjectReferenceRedirect=e.maybeBind(r,r.useSourceOfProjectReferenceRedirect),W.watchDirectoryOfFailedLookupLocation=(t,r,n)=>V(t,r,n,w,e.WatchType.FailedLookupLocations),W.watchAffectingFileLocation=(t,r)=>j(t,r,e.PollingInterval.High,w,e.WatchType.AffectingFileLocation),W.watchTypeRootsDirectory=(t,r,n)=>V(t,r,n,w,e.WatchType.TypeRoots),W.getCachedDirectoryStructureHost=()=>O,W.scheduleInvalidateResolutionsOfFailedLookupLocations=()=>{if(!r.setTimeout||!r.clearTimeout)return J.invalidateResolutionsOfFailedLookupLocations();var e=se();z("Scheduling invalidateFailedLookup".concat(e?", Cancelled earlier one":"")),c=r.setTimeout(ce,250)},W.onInvalidatedResolution=le,W.onChangedAutomaticTypeDirectiveNames=le,W.fileIsOpen=e.returnFalse,W.getCurrentProgram=X,W.writeLog=z,W.getParsedCommandLine=fe;var J=e.createResolutionCache(W,x?e.getDirectoryPath(e.getNormalizedAbsolutePath(x,E)):E,!1);W.resolveModuleNames=r.resolveModuleNames?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.resolveModuleNames.apply(r,e)}:(e,t,r,n,i,a)=>J.resolveModuleNames(e,t,r,n,a),W.resolveTypeReferenceDirectives=r.resolveTypeReferenceDirectives?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.resolveTypeReferenceDirectives.apply(r,e)}:(e,t,r,n,i)=>J.resolveTypeReferenceDirectives(e,t,r,i),W.getModuleResolutionCache=r.resolveModuleNames?e.maybeBind(r,r.getModuleResolutionCache):()=>J.getModuleResolutionCache();var G=!!r.resolveModuleNames||!!r.resolveTypeReferenceDirectives;return n=t(N,W),Y(),be(),x&&xe(Z(x),N,w,e.WatchType.ExtendedConfigFile),x?{getCurrentProgram:q,getProgram:ue,close:$}:{getCurrentProgram:q,getProgram:ue,updateRootFileNames(t){e.Debug.assert(!x,"Cannot update root file names with config file watch mode"),k=t,le()},close:$};function $(){se(),J.clear(),e.clearMap(y,(e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),B&&(B.close(),B=void 0),null==g||g.clear(),g=void 0,d&&(e.clearMap(d,e.closeFileWatcherOf),d=void 0),o&&(e.clearMap(o,e.closeFileWatcherOf),o=void 0),a&&(e.clearMap(a,e.closeFileWatcher),a=void 0),l&&(e.clearMap(l,(t=>{var r;null===(r=t.watcher)||void 0===r||r.close(),t.watcher=void 0,t.watchedDirectories&&e.clearMap(t.watchedDirectories,e.closeFileWatcherOf),t.watchedDirectories=void 0})),l=void 0)}function q(){return n}function X(){return n&&n.getProgramOrUndefined()}function Y(){z("Synchronizing program"),se();var t=q();v&&(L=Q(),t&&e.changesAffectModuleResolution(t.getCompilerOptions(),N)&&J.clear());var i=J.createHasInvalidatedResolution(G);return e.isProgramUptoDate(X(),k,N,ie,te,i,oe,fe,F)?I&&(h&&ae(e.Diagnostics.File_change_detected_Starting_incremental_compilation),n=A(void 0,void 0,W,n,_,F),I=!1):(h&&ae(e.Diagnostics.File_change_detected_Starting_incremental_compilation),(t=>{z("CreatingProgramWith::"),z(" roots: ".concat(JSON.stringify(k))),z(" options: ".concat(JSON.stringify(N))),F&&z(" projectReferences: ".concat(JSON.stringify(F)));var r=v||!X();v=!1,I=!1,J.startCachingPerDirectoryResolution(),W.hasInvalidatedResolution=t,W.hasChangedAutomaticTypeDirectiveNames=oe;var i=X();if(n=A(k,N,W,n,_,F),J.finishCachingPerDirectoryResolution(n.getProgram(),i),e.updateMissingFilePathsWatch(n.getProgram(),a||(a=new e.Map),ye),r&&J.updateTypeRootsWatch(),u){for(var o=0,s=u;o<s.length;o++){var c=s[o];a.has(c)||y.delete(c)}u=void 0}})(i)),h=!1,r.afterProgramCreate&&t!==n&&r.afterProgramCreate(n),n}function Q(){return e.getNewLineCharacter(N||S,(()=>r.getNewLine()))}function Z(t){return e.toPath(t,E,H)}function ee(e){return"boolean"==typeof e}function te(e){var t=Z(e);return!ee(y.get(t))&&M.fileExists(e)}function re(t,r,n,i,a){var o=y.get(r);if(!ee(o)){if(void 0===o||a||(e=>"boolean"==typeof e.version)(o)){var s=K(t,n,i);if(o)s?(o.sourceFile=s,o.version=s.version,o.fileWatcher||(o.fileWatcher=me(r,t,ge,e.PollingInterval.Low,w,e.WatchType.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),y.set(r,!1));else if(s){var c=me(r,t,ge,e.PollingInterval.Low,w,e.WatchType.SourceFile);y.set(r,{sourceFile:s,version:s.version,fileWatcher:c})}else y.set(r,!1);return s}return o.sourceFile}}function ne(e){var t=y.get(e);void 0!==t&&(ee(t)?y.set(e,{version:!1}):t.version=!1)}function ie(e){var t=y.get(e);return t&&t.version?t.version:void 0}function ae(t){r.onWatchStatusChange&&r.onWatchStatusChange(e.createCompilerDiagnostic(t),L,N||S)}function oe(){return J.hasChangedAutomaticTypeDirectiveNames()}function se(){return!!c&&(r.clearTimeout(c),c=void 0,!0)}function ce(){c=void 0,J.invalidateResolutionsOfFailedLookupLocations()&&le()}function le(){r.setTimeout&&r.clearTimeout&&(s&&r.clearTimeout(s),z("Scheduling update"),s=r.setTimeout(de,250))}function de(){s=void 0,h=!0,ue()}function ue(){switch(i){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),z("Reloading new file names and options"),i=e.ConfigFileProgramReloadLevel.None,k=e.getFileNamesFromConfigSpecs(N.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(x),E),N,R,C),e.updateErrorForNoInputFiles(k,e.getNormalizedAbsolutePath(x,E),N.configFile.configFileSpecs,_,P)&&(I=!0),Y();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),z("Reloading config file: ".concat(x)),i=e.ConfigFileProgramReloadLevel.None,O&&O.clearCache(),pe(),v=!0,Y(),be(),xe(Z(x),N,w,e.WatchType.ExtendedConfigFile);break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),Y()}return e.perfLogger.logStopUpdateProgram("Done"),q()}function pe(){_e(e.getParsedCommandLineOfConfigFile(x,S,R,g||(g=new e.Map),T,C))}function _e(t){k=t.fileNames,N=t.options,w=t.watchOptions,F=t.projectReferences,p=t.wildcardDirectories,_=e.getConfigFileParsingDiagnostics(t).slice(),P=e.canJsonReportNoInputFiles(t.raw),I=!0}function fe(t){var n=Z(t),i=null==l?void 0:l.get(n);if(i){if(!i.reloadLevel)return i.parsedCommandLine;if(i.parsedCommandLine&&i.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!r.getParsedCommandLine){z("Reloading new file names and options");var a=e.getFileNamesFromConfigSpecs(i.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),E),N,R);return i.parsedCommandLine=m(m({},i.parsedCommandLine),{fileNames:a}),i.reloadLevel=void 0,i.parsedCommandLine}}z("Loading config file: ".concat(t));var o=r.getParsedCommandLine?r.getParsedCommandLine(t):(t=>{var r=R.onUnRecoverableConfigFileDiagnostic;R.onUnRecoverableConfigFileDiagnostic=e.noop;var n=e.getParsedCommandLineOfConfigFile(t,void 0,R,g||(g=new e.Map),T);return R.onUnRecoverableConfigFileDiagnostic=r,n})(t);return i?(i.parsedCommandLine=o,i.reloadLevel=void 0):(l||(l=new e.Map)).set(n,i={parsedCommandLine:o}),((t,r,n)=>{var i,a,o,s,c;n.watcher||(n.watcher=j(t,((n,i)=>{he(t,r,i);var a=null==l?void 0:l.get(r);a&&(a.reloadLevel=e.ConfigFileProgramReloadLevel.Full),J.removeResolutionsFromProjectReferenceRedirects(r),le()}),e.PollingInterval.High,(null===(i=n.parsedCommandLine)||void 0===i?void 0:i.watchOptions)||w,e.WatchType.ConfigFileOfReferencedProject)),(null===(a=n.parsedCommandLine)||void 0===a?void 0:a.wildcardDirectories)?e.updateWatchingWildcardDirectories(n.watchedDirectories||(n.watchedDirectories=new e.Map),new e.Map(e.getEntries(null===(o=n.parsedCommandLine)||void 0===o?void 0:o.wildcardDirectories)),((i,a)=>{var o;return V(i,(n=>{var a=Z(n);O&&O.addOrDeleteFileOrDirectory(n,a),ne(a);var o=null==l?void 0:l.get(r);(null==o?void 0:o.parsedCommandLine)&&(e.isIgnoredFileFromWildCardWatching({watchedDirPath:Z(i),fileOrDirectory:n,fileOrDirectoryPath:a,configFileName:t,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:E,useCaseSensitiveFileNames:b,writeLog:z,toPath:Z})||o.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(o.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,le()))}),a,(null===(o=n.parsedCommandLine)||void 0===o?void 0:o.watchOptions)||w,e.WatchType.WildcardDirectoryOfReferencedProject)})):n.watchedDirectories&&(e.clearMap(n.watchedDirectories,e.closeFileWatcherOf),n.watchedDirectories=void 0),xe(r,null===(s=n.parsedCommandLine)||void 0===s?void 0:s.options,(null===(c=n.parsedCommandLine)||void 0===c?void 0:c.watchOptions)||w,e.WatchType.ExtendedConfigOfReferencedProject)})(t,n,i),o}function me(e,t,r,n,i,a){return j(t,((t,n)=>r(t,n,e)),n,i,a)}function ge(t,r,n){he(t,n,r),r===e.FileWatcherEventKind.Deleted&&y.has(n)&&J.invalidateResolutionOfFile(n),ne(n),le()}function he(e,t,r){O&&O.addOrDeleteFile(e,t,r)}function ye(t){return(null==l?void 0:l.has(t))?e.noopFileWatcher:me(t,t,ve,e.PollingInterval.Medium,w,e.WatchType.MissingFile)}function ve(t,r,n){he(t,n,r),r===e.FileWatcherEventKind.Created&&a.has(n)&&(a.get(n).close(),a.delete(n),ne(n),le())}function be(){p?e.updateWatchingWildcardDirectories(o||(o=new e.Map),new e.Map(e.getEntries(p)),Ee):o&&e.clearMap(o,e.closeFileWatcherOf)}function Ee(t,r){return V(t,(r=>{e.Debug.assert(!!x);var n=Z(r);O&&O.addOrDeleteFileOrDirectory(r,n),ne(n),e.isIgnoredFileFromWildCardWatching({watchedDirPath:Z(t),fileOrDirectory:r,fileOrDirectoryPath:n,configFileName:x,extraFileExtensions:C,options:N,program:q()||k,currentDirectory:E,useCaseSensitiveFileNames:b,writeLog:z,toPath:Z})||i!==e.ConfigFileProgramReloadLevel.Full&&(i=e.ConfigFileProgramReloadLevel.Partial,le())}),r,w,e.WatchType.WildcardDirectory)}function xe(t,r,n,a){e.updateSharedExtendedConfigFileWatcher(t,r,d||(d=new e.Map),((t,r)=>j(t,((n,a)=>{var o;he(t,r,a),g&&e.cleanExtendedConfigCache(g,r,Z);var s=null===(o=d.get(r))||void 0===o?void 0:o.projects;(null==s?void 0:s.size)&&s.forEach((t=>{if(Z(x)===t)i=e.ConfigFileProgramReloadLevel.Full;else{var r=null==l?void 0:l.get(t);r&&(r.reloadLevel=e.ConfigFileProgramReloadLevel.Full),J.removeResolutionsFromProjectReferenceRedirects(t)}le()}))}),e.PollingInterval.High,n,a)),Z)}}})(p),(e=>{var t;(t=e.UpToDateStatusType||(e.UpToDateStatusType={}))[t.Unbuildable=0]="Unbuildable",t[t.UpToDate=1]="UpToDate",t[t.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",t[t.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",t[t.OutputMissing=4]="OutputMissing",t[t.OutOfDateWithSelf=5]="OutOfDateWithSelf",t[t.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",t[t.OutOfDateBuildInfo=7]="OutOfDateBuildInfo",t[t.UpstreamOutOfDate=8]="UpstreamOutOfDate",t[t.UpstreamBlocked=9]="UpstreamBlocked",t[t.ComputingUpstream=10]="ComputingUpstream",t[t.TsVersionOutputOfDate=11]="TsVersionOutputOfDate",t[t.UpToDateWithInputFileText=12]="UpToDateWithInputFileText",t[t.ContainerOnly=13]="ContainerOnly",t[t.ForceBuild=14]="ForceBuild",e.resolveConfigFileProjectName=t=>e.fileExtensionIs(t,".json")?t:e.combinePaths(t,"tsconfig.json")})(p),(e=>{var t,r,n,i=new Date(-864e13),a=new Date(864e13);function o(t,r){return((t,r,n)=>{var i,a=t.get(r);return a||(i=new e.Map,t.set(r,i)),a||i})(t,r)}function s(e){return e.now?e.now():new Date}function c(e){return!!e&&!!e.buildOrder}function l(e){return c(e)?e.buildOrder:e}function d(t,r){return n=>{var i=r?"[".concat(e.formatColorAndReset(e.getLocaleTimeString(t),e.ForegroundColorEscapeSequences.Grey),"] "):"".concat(e.getLocaleTimeString(t)," - ");i+="".concat(e.flattenDiagnosticMessageText(n.messageText,t.newLine)).concat(t.newLine+t.newLine),t.write(i)}}function u(t,r,n,i){var a=e.createProgramHost(t,r);return a.getModifiedTime=t.getModifiedTime?e=>t.getModifiedTime(e):e.returnUndefined,a.setModifiedTime=t.setModifiedTime?(e,r)=>t.setModifiedTime(e,r):e.noop,a.deleteFile=t.deleteFile?e=>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 p(t,r){return e.toPath(r,t.currentDirectory,t.getCanonicalFileName)}function _(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;var i=p(e,t);return r.set(t,i),i}function m(e){return!!e.options}function g(e,t){var r=e.configFileCache.get(t);return r&&m(r)?r:void 0}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,l=t.baseCompilerOptions,d=t.baseWatchOptions,u=t.extendedConfigCache,p=t.host;return p.getParsedCommandLine?(s=p.getParsedCommandLine(r))||(i=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,r)):(c.onUnRecoverableConfigFileDiagnostic=e=>i=e,s=e.getParsedCommandLineOfConfigFile(r,l,c,u,d),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,l=r;c<l.length;c++)d(l[c]);return i?{buildOrder:n||e.emptyArray,circularDiagnostics:i}:n||e.emptyArray;function d(r,c){var l=_(t,r);if(!o.has(l))if(a.has(l))c||(i||(i=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join("\r\n")));else{a.set(l,!0),s.push(r);var u=h(t,r,l);if(u&&u.projectReferences)for(var p=0,f=u.projectReferences;p<f.length;p++){var m=f[p];d(y(t,m.path),c||m.circular)}s.pop(),o.set(l,!0),(n||(n=[])).push(r)}}}function b(t){return t.buildOrder||(t=>{var r=v(t,t.rootNames.map((e=>y(t,e))));t.resolvedConfigFilePaths.clear();var n=new e.Map(l(r).map((e=>[_(t,e),!0]))),i={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(t.configFileCache,n,i),e.mutateMapSkippingNewValues(t.projectStatus,n,i),e.mutateMapSkippingNewValues(t.builderPrograms,n,i),e.mutateMapSkippingNewValues(t.diagnostics,n,i),e.mutateMapSkippingNewValues(t.projectPendingBuild,n,i),e.mutateMapSkippingNewValues(t.projectErrorsReported,n,i),e.mutateMapSkippingNewValues(t.buildInfoCache,n,i),e.mutateMapSkippingNewValues(t.outputTimeStamps,n,i),t.watch&&(e.mutateMapSkippingNewValues(t.allWatchedConfigFiles,n,{onDeleteValue:e.closeFileWatcher}),t.allWatchedExtendedConfigFiles.forEach((e=>{e.projects.forEach((t=>{n.has(t)||e.projects.delete(t)})),e.close()})),e.mutateMapSkippingNewValues(t.allWatchedWildcardDirectories,n,{onDeleteValue:t=>t.forEach(e.closeFileWatcherOf)}),e.mutateMapSkippingNewValues(t.allWatchedInputFiles,n,{onDeleteValue:t=>t.forEach(e.closeFileWatcher)}),e.mutateMapSkippingNewValues(t.allWatchedPackageJsonFiles,n,{onDeleteValue:t=>t.forEach(e.closeFileWatcher)})),t.buildOrder=r})(t)}function E(t,r,n){var i=r&&y(t,r),a=b(t);if(c(a))return a;if(i){var o=_(t,i);if(-1===e.findIndex(a,(e=>_(t,e)===o)))return}var s=i?v(t,[i]):a;return e.Debug.assert(!c(s)),e.Debug.assert(!n||void 0!==i),e.Debug.assert(!n||s[s.length-1]===i),n?s.slice(0,s.length-1):s}function x(t){t.cache&&D(t);var r=t.compilerHost,n=t.host,i=t.readFileWithCache,a=r.getSourceFile,o=e.changeCompilerHostLikeToUseCache(n,(e=>p(t,e)),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.call.apply(a,f([r],e,!1))})),s=o.originalReadFile,c=o.originalFileExists,l=o.originalDirectoryExists,d=o.originalCreateDirectory,u=o.originalWriteFile,_=o.getSourceFileWithCache,m=o.readFileWithCache;t.readFileWithCache=m,r.getSourceFile=_,t.cache={originalReadFile:s,originalFileExists:c,originalDirectoryExists:l,originalCreateDirectory:d,originalWriteFile:u,originalReadFileWithCache:i,originalGetSourceFile:a}}function D(e){if(e.cache){var t=e.cache,r=e.host,n=e.compilerHost,i=e.extendedConfigCache,a=e.moduleResolutionCache,o=e.typeReferenceDirectiveResolutionCache;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,n.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null==a||a.clear(),null==o||o.clear(),e.cache=void 0}}function S(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function T(e,t,r){var n=e.projectPendingBuild,i=n.get(t);(void 0===i||i<r)&&n.set(t,r)}function C(t,r){t.allProjectBuildPending&&(t.allProjectBuildPending=!1,t.options.watch&&de(t,e.Diagnostics.Starting_compilation_in_watch_mode),x(t),l(b(t)).forEach((r=>t.projectPendingBuild.set(_(t,r),e.ConfigFileProgramReloadLevel.None))),r&&r.throwIfCancellationRequested())}function A(t,r){return t.projectPendingBuild.delete(r),t.diagnostics.has(r)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function k(i,a,o,c,l,d,u){var m,g,v,b=i===r.Build?n.CreateProgram:n.EmitBundle;return i===r.Build?{kind:i,project:o,projectPath:c,buildOrder:u,getCompilerOptions:()=>d.options,getCurrentDirectory:()=>a.currentDirectory,getBuilderProgram:()=>x(e.identity),getProgram:()=>x((e=>e.getProgramOrUndefined())),getSourceFile:e=>x((t=>t.getSourceFile(e))),getSourceFiles:()=>D((e=>e.getSourceFiles())),getOptionsDiagnostics:e=>D((t=>t.getOptionsDiagnostics(e))),getGlobalDiagnostics:e=>D((t=>t.getGlobalDiagnostics(e))),getConfigFileParsingDiagnostics:()=>D((e=>e.getConfigFileParsingDiagnostics())),getSyntacticDiagnostics:(e,t)=>D((r=>r.getSyntacticDiagnostics(e,t))),getAllDependencies:e=>D((t=>t.getAllDependencies(e))),getSemanticDiagnostics:(e,t)=>D((r=>r.getSemanticDiagnostics(e,t))),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>x((r=>r.getSemanticDiagnosticsOfNextAffectedFile&&r.getSemanticDiagnosticsOfNextAffectedFile(e,t))),emit:(e,t,r,i,s)=>e||i?x((n=>{var c,l;return n.emit(e,t,r,i,s||(null===(l=(c=a.host).getCustomTransformers)||void 0===l?void 0:l.call(c,o)))})):(L(n.SemanticDiagnostics,r),b===n.EmitBuildInfo?F(t,r):b===n.Emit?w(t,r,s):void 0),done:E}:{kind:i,project:o,projectPath:c,buildOrder:u,getCompilerOptions:()=>d.options,getCurrentDirectory:()=>a.currentDirectory,emit:(e,t)=>b!==n.EmitBundle?v:R(e,t),done:E};function E(e,t,r){return L(n.Done,e,t,r),A(a,c)}function x(e){return L(n.CreateProgram),m&&e(m)}function D(t){return x(t)||e.emptyArray}function S(){var r,i;if(e.Debug.assert(void 0===m),a.options.dry)return le(a,e.Diagnostics.A_non_dry_build_would_build_project_0,o),g=t.Success,void(b=n.QueueReferencingProjects);if(a.options.verbose&&le(a,e.Diagnostics.Building_project_0,o),0===d.fileNames.length)return pe(a,c,e.getConfigFileParsingDiagnostics(d)),g=t.None,void(b=n.QueueReferencingProjects);var s=a.host,l=a.compilerHost;a.projectCompilerOptions=d.options,null===(r=a.moduleResolutionCache)||void 0===r||r.update(d.options),null===(i=a.typeReferenceDirectiveResolutionCache)||void 0===i||i.update(d.options),m=s.createProgram(d.fileNames,d.options,l,((t,r,n)=>{var i=t.options,a=t.builderPrograms,o=t.compilerHost;if(!i.force)return a.get(r)||e.readBuilderProgram(n.options,o)})(a,c,d),e.getConfigFileParsingDiagnostics(d),d.projectReferences),a.watch&&(a.lastCachedPackageJsonLookups.set(c,a.moduleResolutionCache&&e.map(a.moduleResolutionCache.getPackageJsonInfoCache().entries(),(e=>{var t=e[0],r=e[1];return[a.host.realpath&&r?p(a,a.host.realpath(t)):t,r]}))),a.builderPrograms.set(c,m)),b++}function T(e,t,r){var n;e.length?(n=M(a,c,m,d,e,t,r),g=n.buildResult,b=n.step):b++}function C(r){e.Debug.assertIsDefined(m),T(f(f(f(f([],m.getConfigFileParsingDiagnostics(),!0),m.getOptionsDiagnostics(r),!0),m.getGlobalDiagnostics(r),!0),m.getSyntacticDiagnostics(void 0,r),!0),t.SyntaxErrors,"Syntactic")}function N(r){T(e.Debug.checkDefined(m).getSemanticDiagnostics(void 0,r),t.TypeErrors,"Semantic")}function w(r,i,l){var u,_,f,h;e.Debug.assertIsDefined(m),e.Debug.assert(b===n.Emit);var y,v=m.saveEmitState(),E=[],x=e.emitFilesAndReportErrors(m,(e=>(y||(y=[])).push(e)),void 0,void 0,((e,t,r,n,i,a)=>E.push({name:e,text:t,writeByteOrderMark:r,buildInfo:null==a?void 0:a.buildInfo})),i,!1,l||(null===(f=(_=a.host).getCustomTransformers)||void 0===f?void 0:f.call(_,o))).emitResult;if(y)return m.restoreEmitState(v),u=M(a,c,m,d,y,t.DeclarationEmitErrors,"Declaration file"),g=u.buildResult,b=u.step,{emitSkipped:!0,diagnostics:x.diagnostics};var D,S,T=a.host,C=a.compilerHost,A=(null===(h=m.hasChangedEmitSignature)||void 0===h?void 0:h.call(m))?t.None:t.DeclarationOutputUnchanged,k=e.createDiagnosticCollection(),N=new e.Map,w=m.getCompilerOptions(),F=e.isIncrementalCompilation(w);return E.forEach((t=>{var n=t.name,i=t.text,o=t.writeByteOrderMark,l=t.buildInfo,d=p(a,n);N.set(p(a,n),n),l&&j(a,l,c,w,A),e.writeFile(r?{writeFile:r}:C,k,n,i,o),!F&&a.watch&&(D||(D=U(a,c))).set(d,S||(S=s(a.host)))})),P(k,N,E.length?E[0].name:e.getFirstProjectOutput(d,!T.useCaseSensitiveFileNames()),A),x}function F(r,i){e.Debug.assertIsDefined(m),e.Debug.assert(b===n.EmitBuildInfo);var o=m.emitBuildInfo(((e,n,i,o,s,l)=>{(null==l?void 0:l.buildInfo)&&j(a,l.buildInfo,c,m.getCompilerOptions(),t.DeclarationOutputUnchanged),r?r(e,n,i,o,s,l):a.compilerHost.writeFile(e,n,i,o,s,l)}),i);return o.diagnostics.length&&(ue(a,o.diagnostics),a.diagnostics.set(c,f(f([],a.diagnostics.get(c),!0),o.diagnostics,!0)),g=t.EmitErrors&g),o.emittedFiles&&a.write&&o.emittedFiles.forEach((e=>I(a,d,e))),O(a,m,d),b=n.QueueReferencingProjects,o}function P(r,i,o,s){var l,u=r.getDiagnostics();return u.length?(l=M(a,c,m,d,u,t.EmitErrors,"Emit"),g=l.buildResult,b=l.step,u):(a.write&&i.forEach((e=>I(a,d,e))),J(a,d,c,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,i),a.diagnostics.delete(c),a.projectStatus.set(c,{type:e.UpToDateStatusType.UpToDate,oldestOutputFileName:o}),O(a,m,d),b=n.QueueReferencingProjects,g=s,u)}function R(s,f){var m,E;if(e.Debug.assert(i===r.UpdateBundle),a.options.dry)return le(a,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,o),g=t.Success,void(b=n.QueueReferencingProjects);a.options.verbose&&le(a,e.Diagnostics.Updating_output_of_project_0,o);var x=a.compilerHost;a.projectCompilerOptions=d.options;var D=e.emitUsingBuildInfo(d,x,(e=>{var t=y(a,e.path);return h(a,t,_(a,t))}),f||(null===(E=(m=a.host).getCustomTransformers)||void 0===E?void 0:E.call(m,o)));if(e.isString(D))return le(a,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,o,ce(a,D)),b=n.BuildInvalidatedProjectOfBundle,v=k(r.Build,a,o,c,l,d,u);e.Debug.assert(!!D.length);var S=e.createDiagnosticCollection(),T=new e.Map,C=t.DeclarationOutputUnchanged,A=a.buildInfoCache.get(c).buildInfo;return D.forEach((r=>{var n,i,o=r.name,l=r.text,u=r.writeByteOrderMark,_=r.buildInfo;T.set(p(a,o),o),_&&((null===(n=_.program)||void 0===n?void 0:n.outSignature)!==(null===(i=A.program)||void 0===i?void 0:i.outSignature)&&(C&=~t.DeclarationOutputUnchanged),j(a,_,c,d.options,C)),e.writeFile(s?{writeFile:s}:x,S,o,l,u)})),{emitSkipped:!1,diagnostics:P(S,T,D[0].name,C)}}function L(t,r,i,s){for(;b<=t&&b<n.Done;){var p=b;switch(b){case n.CreateProgram:S();break;case n.SyntaxDiagnostics:C(r);break;case n.SemanticDiagnostics:N(r);break;case n.Emit:w(i,r,s);break;case n.EmitBuildInfo:F(i,r);break;case n.EmitBundle:R(i,s);break;case n.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(v).done(r,i,s),b=n.Done;break;case n.QueueReferencingProjects:q(a,o,c,l,d,u,e.Debug.checkDefined(g)),b++;break;case n.Done:default:e.assertType(b)}e.Debug.assert(b>p)}}}function N(t,r,n){var i=t.options;return!(r.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force&&0!==n.fileNames.length&&!e.getConfigFileParsingDiagnostics(n).length&&e.isIncrementalCompilation(n.options))}function w(t,n,i){if(t.projectPendingBuild.size&&!c(n))for(var a=t.options,o=t.projectPendingBuild,s=0;s<n.length;s++){var l=n[s],d=_(t,l),u=t.projectPendingBuild.get(d);if(void 0!==u){i&&(i=!1,me(t,n));var p=h(t,l,d);if(p){u===e.ConfigFileProgramReloadLevel.Full?(re(t,l,d,p),ne(t,d,p),ie(t,l,d,p),ae(t,l,d,p),oe(t,l,d,p)):u===e.ConfigFileProgramReloadLevel.Partial&&(p.fileNames=e.getFileNamesFromConfigSpecs(p.options.configFile.configFileSpecs,e.getDirectoryPath(l),p.options,t.parseConfigFileHost),e.updateErrorForNoInputFiles(p.fileNames,l,p.options.configFile.configFileSpecs,p.errors,e.canJsonReportNoInputFiles(p.raw)),ae(t,l,d,p),oe(t,l,d,p));var f=K(t,p,d);if(!a.force){if(f.type===e.UpToDateStatusType.UpToDate){ge(t,l,f),pe(t,d,e.getConfigFileParsingDiagnostics(p)),o.delete(d),a.dry&&le(t,e.Diagnostics.Project_0_is_up_to_date,l);continue}if(f.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes||f.type===e.UpToDateStatusType.UpToDateWithInputFileText)return pe(t,d,e.getConfigFileParsingDiagnostics(p)),{kind:r.UpdateOutputFileStamps,status:f,project:l,projectPath:d,projectIndex:s,config:p}}if(f.type!==e.UpToDateStatusType.UpstreamBlocked){if(f.type!==e.UpToDateStatusType.ContainerOnly)return{kind:N(t,f,p)?r.Build:r.UpdateBundle,status:f,project:l,projectPath:d,projectIndex:s,config:p};ge(t,l,f),pe(t,d,e.getConfigFileParsingDiagnostics(p)),o.delete(d)}else ge(t,l,f),pe(t,d,e.getConfigFileParsingDiagnostics(p)),o.delete(d),a.verbose&&le(t,f.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,l,f.upstreamProjectName)}else _e(t,d),o.delete(d)}}}function F(e,t,n){return ge(e,t.project,t.status),t.kind!==r.UpdateOutputFileStamps?k(t.kind,e,t.project,t.projectPath,t.projectIndex,t.config,n):((e,t,n,i,a)=>{var o=!0;return{kind:r.UpdateOutputFileStamps,project:t,projectPath:n,buildOrder:a,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.currentDirectory,updateOutputFileStatmps(){$(e,i,n),o=!1},done:()=>(o&&$(e,i,n),A(e,n))}})(e,t.project,t.projectPath,t.config,n)}function P(e,t,r){var n=w(e,t,r);return n?F(e,n,t):n}function I(e,t,r){var n=e.write;n&&t.options.listEmittedFiles&&n("TSFILE: ".concat(r))}function O(t,r,n){r?(t.write&&e.listFiles(r,t.write),t.host.afterProgramEmitAndDiagnostics&&t.host.afterProgramEmitAndDiagnostics(r),r.releaseProgram()):t.host.afterEmitBundle&&t.host.afterEmitBundle(n),t.projectCompilerOptions=t.baseCompilerOptions}function M(t,r,i,a,o,s,c){var l=i&&!e.outFile(i.getCompilerOptions());return pe(t,r,o),t.projectStatus.set(r,{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(c," errors")}),l?{buildResult:s,step:n.EmitBuildInfo}:(O(t,i,a),{buildResult:s,step:n.QueueReferencingProjects})}function R(e){return!!e.watcher}function L(t,r){var n=p(t,r),i=t.filesWatched.get(n);if(t.watch&&i){if(!R(i))return i;if(i.modifiedTime)return i.modifiedTime}var a=e.getModifiedTime(t.host,r);return t.watch&&(i?i.modifiedTime=a:t.filesWatched.set(n,a)),a}function B(t,r,n,i,a,o,s){var c=p(t,r),l=t.filesWatched.get(c);if(l&&R(l))l.callbacks.push(n);else{var d=t.watchFile(r,((r,n,i)=>{var a=e.Debug.checkDefined(t.filesWatched.get(c));e.Debug.assert(R(a)),a.modifiedTime=i,a.callbacks.forEach((e=>e(r,n,i)))}),i,a,o,s);t.filesWatched.set(c,{callbacks:[n],watcher:d,modifiedTime:l})}return{close(){var r=e.Debug.checkDefined(t.filesWatched.get(c));e.Debug.assert(R(r)),1===r.callbacks.length?(t.filesWatched.delete(c),e.closeFileWatcherOf(r)):e.unorderedRemoveItem(r.callbacks,n)}}}function U(t,r){if(t.watch){var n=t.outputTimeStamps.get(r);return n||t.outputTimeStamps.set(r,n=new e.Map),n}}function j(r,n,i,a,o){var c=e.getTsBuildInfoEmitOutputFilePath(a),l=V(r,c,i),d=s(r.host);l?(l.buildInfo=n,l.modifiedTime=d,o&t.DeclarationOutputUnchanged||(l.latestChangedDtsTime=d)):r.buildInfoCache.set(i,{path:p(r,c),buildInfo:n,modifiedTime:d,latestChangedDtsTime:o&t.DeclarationOutputUnchanged?void 0:d})}function V(e,t,r){var n=p(e,t),i=e.buildInfoCache.get(r);return(null==i?void 0:i.path)===n?i:void 0}function z(t,r,n,i){var a=p(t,r),o=t.buildInfoCache.get(n);if(void 0!==o&&o.path===a)return o.buildInfo||void 0;var s=t.readFileWithCache(r),c=s?e.getBuildInfo(s):void 0;return e.Debug.assert(i||!c),t.buildInfoCache.set(n,{path:a,buildInfo:c||!1,modifiedTime:i||e.missingFileModifiedTime}),c}function H(t,r,n,i){if(n<L(t,r))return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:i,newerInputFileName:r}}function W(e,t,r){return e.buildInfoCache.get(r).path===t.path}function K(t,r,n){if(void 0===r)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var o=t.projectStatus.get(n);if(void 0!==o)return o;var s=((t,r,n)=>{var o,s,c;if(!r.fileNames.length&&!e.canJsonReportNoInputFiles(r.raw))return{type:e.UpToDateStatusType.ContainerOnly};var l=!!t.options.force;if(r.projectReferences){t.projectStatus.set(n,{type:e.UpToDateStatusType.ComputingUpstream});for(var d=0,u=r.projectReferences;d<u.length;d++){var f=u[d],m=e.resolveProjectReferencePath(f),g=_(t,m),y=h(t,m,g);if((oe=K(t,y,g)).type!==e.UpToDateStatusType.ComputingUpstream&&oe.type!==e.UpToDateStatusType.ContainerOnly){if(oe.type===e.UpToDateStatusType.Unbuildable||oe.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:f.path,upstreamProjectBlocked:oe.type===e.UpToDateStatusType.UpstreamBlocked};if(oe.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:f.path};l||(c||(c=[])).push({ref:f,refStatus:oe,resolvedRefPath:g,resolvedConfig:y})}}}if(l)return{type:e.UpToDateStatusType.ForceBuild};var v,b,E,x,D=t.host,S=e.getTsBuildInfoEmitOutputFilePath(r.options),T=a;if(S){var C=V(t,S,n);if((b=(null==C?void 0:C.modifiedTime)||e.getModifiedTime(D,S))===e.missingFileModifiedTime)return C||t.buildInfoCache.set(n,{path:p(t,S),buildInfo:!1,modifiedTime:b}),{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:S};var A=e.Debug.checkDefined(z(t,S,n,b));if((A.bundle||A.program)&&A.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:A.version};if(A.program){if((null===(o=A.program.changeFileSet)||void 0===o?void 0:o.length)||!r.options.noEmit&&(null===(s=A.program.affectedFilesPendingEmit)||void 0===s?void 0:s.length))return{type:e.UpToDateStatusType.OutOfDateBuildInfo,buildInfoFile:S};E=A.program}T=b,v=S}for(var k=void 0,N=i,w=!1,F=0,P=r.fileNames;F<P.length;F++){var I=P[F],O=L(t,I);if(O===e.missingFileModifiedTime)return{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(I," does not exist")};if(b&&b<O){var M=void 0,R=void 0;if(E){x||(x=e.getBuildInfoFileVersionMap(E,S,D));var B=(M=x.get(p(t,I)))?t.readFileWithCache(I):void 0;R=B&&(D.createHash||e.generateDjb2Hash)(B),M&&M===R&&(w=!0)}if(!M||M!==R)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:S,newerInputFileName:I}}O>N&&(k=I,N=O)}if(!S)for(var j=e.getAllProjectOutputs(r,!D.useCaseSensitiveFileNames()),J=U(t,n),$=0,q=j;$<q.length;$++){var X=q[$],Y=p(t,X),Q=null==J?void 0:J.get(Y);if(Q||(Q=e.getModifiedTime(t.host,X),null==J||J.set(Y,Q)),Q===e.missingFileModifiedTime)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:X};if(Q<N)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:X,newerInputFileName:k};Q<T&&(T=Q,v=X)}var Z,ee=t.buildInfoCache.get(n),te=!1,re=!1;if(c)for(var ne=0,ie=c;ne<ie.length;ne++){var ae=ie[ne],oe=(f=ae.ref,ae.refStatus);if(y=ae.resolvedConfig,g=ae.resolvedRefPath,re=re||!!f.prepend,!(oe.newestInputFileTime&&oe.newestInputFileTime<=T)){if(ee&&W(t,ee,g))return{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:S,newerProjectName:f.path};var se=G(t,y.options,g);if(!(se&&se<=T))return e.Debug.assert(void 0!==v,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:v,newerProjectName:f.path};te=!0,Z=f.path}}return H(t,r.options.configFilePath,T,v)||e.forEach(r.options.configFile.extendedSourceFiles||e.emptyArray,(e=>H(t,e,T,v)))||e.forEach(t.lastCachedPackageJsonLookups.get(n)||e.emptyArray,(e=>{var r=e[0];return H(t,r,T,v)}))||(re&&te?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:v,newerProjectName:Z}:{type:te?e.UpToDateStatusType.UpToDateWithUpstreamTypes:w?e.UpToDateStatusType.UpToDateWithInputFileText:e.UpToDateStatusType.UpToDate,newestInputFileTime:N,newestInputFileName:k,oldestOutputFileName:v})})(t,r,n);return t.projectStatus.set(n,s),s}function J(t,r,n,i,a){if(!r.options.noEmit){var o,c=e.getTsBuildInfoEmitOutputFilePath(r.options);if(c)return(null==a?void 0:a.has(p(t,c)))||(t.options.verbose&&le(t,i,r.options.configFilePath),t.host.setModifiedTime(c,o=s(t.host)),V(t,c,n).modifiedTime=o),void t.outputTimeStamps.delete(n);var l=t.host,d=e.getAllProjectOutputs(r,!l.useCaseSensitiveFileNames()),u=U(t,n),_=u?new e.Set:void 0;if(!a||d.length!==a.size)for(var f=!!t.options.verbose,m=0,g=d;m<g.length;m++){var h=g[m],y=p(t,h);(null==a?void 0:a.has(y))||(f&&(f=!1,le(t,i,r.options.configFilePath)),l.setModifiedTime(h,o||(o=s(t.host))),u&&(u.set(y,o),_.add(y)))}null==u||u.forEach(((e,t)=>{(null==a?void 0:a.has(t))||_.has(t)||u.delete(t)}))}}function G(t,r,n){if(r.composite){var i=e.Debug.checkDefined(t.buildInfoCache.get(n));if(void 0!==i.latestChangedDtsTime)return i.latestChangedDtsTime||void 0;var a=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?t.host.getModifiedTime(e.getNormalizedAbsolutePath(i.buildInfo.program.latestChangedDtsFile,e.getDirectoryPath(i.path))):void 0;return i.latestChangedDtsTime=a||!1,a}}function $(t,r,n){if(t.options.dry)return le(t,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,r.options.configFilePath);J(t,r,n,e.Diagnostics.Updating_output_timestamps_of_project_0),t.projectStatus.set(n,{type:e.UpToDateStatusType.UpToDate,oldestOutputFileName:e.getFirstProjectOutput(r,!t.host.useCaseSensitiveFileNames())})}function q(r,n,i,a,o,s,c){if(!(c&t.AnyErrors)&&o.options.composite)for(var l=a+1;l<s.length;l++){var d=s[l],u=_(r,d);if(!r.projectPendingBuild.has(u)){var p=h(r,d,u);if(p&&p.projectReferences)for(var f=0,m=p.projectReferences;f<m.length;f++){var g=m[f];if(_(r,y(r,g.path))===i){var v=r.projectStatus.get(u);if(v)switch(v.type){case e.UpToDateStatusType.UpToDate:if(c&t.DeclarationOutputUnchanged){g.prepend?r.projectStatus.set(u,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:v.oldestOutputFileName,newerProjectName:n}):v.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithInputFileText:case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:c&t.DeclarationOutputUnchanged||r.projectStatus.set(u,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:v.type===e.UpToDateStatusType.OutOfDateWithPrepend?v.outOfDateOutputFileName:v.oldestOutputFileName,newerProjectName:n});break;case e.UpToDateStatusType.UpstreamBlocked:_(r,y(r,v.upstreamProjectName))===i&&S(r,u)}T(r,u,e.ConfigFileProgramReloadLevel.None);break}}}}}function X(t,r,n,i,a,o){var s=E(t,r,o);if(!s)return e.ExitStatus.InvalidProject_OutputsSkipped;C(t,n);for(var d=!0,u=0;;){var p=P(t,s,d);if(!p)break;d=!1,p.done(n,i,null==a?void 0:a(p.project)),t.diagnostics.has(p.projectPath)||u++}return D(t),fe(t,s),((e,t)=>{if(e.watchAllProjectsPending){e.watchAllProjectsPending=!1;for(var r=0,n=l(t);r<n.length;r++){var i=n[r],a=_(e,i),o=h(e,i,a);re(e,i,a,o),ne(e,a,o),o&&(ie(e,i,a,o),ae(e,i,a,o),oe(e,i,a,o))}}})(t,s),c(s)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:s.some((e=>t.diagnostics.has(_(t,e))))?u?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function Y(t,r,n){var i=E(t,r,n);if(!i)return e.ExitStatus.InvalidProject_OutputsSkipped;if(c(i))return ue(t,i.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var a=t.options,o=t.host,s=a.dry?[]:void 0,l=0,d=i;l<d.length;l++){var u=d[l],f=_(t,u),m=h(t,u,f);if(void 0!==m){var g=e.getAllProjectOutputs(m,!o.useCaseSensitiveFileNames());if(g.length)for(var y=new e.Set(m.fileNames.map((e=>p(t,e)))),v=0,b=g;v<b.length;v++){var x=b[v];y.has(p(t,x))||o.fileExists(x)&&(s?s.push(x):(o.deleteFile(x),Q(t,f,e.ConfigFileProgramReloadLevel.None)))}}else _e(t,f)}return s&&le(t,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,s.map((e=>"\r\n * ".concat(e))).join("")),e.ExitStatus.Success}function Q(t,r,n){t.host.getParsedCommandLine&&n===e.ConfigFileProgramReloadLevel.Partial&&(n=e.ConfigFileProgramReloadLevel.Full),n===e.ConfigFileProgramReloadLevel.Full&&(t.configFileCache.delete(r),t.buildOrder=void 0),t.needsSummary=!0,S(t,r),T(t,r,n),x(t)}function Z(e,t,r){e.reportFileChangeDetected=!0,Q(e,t,r),ee(e,250,!0)}function ee(e,t,r){var n=e.hostWithWatch;n.setTimeout&&n.clearTimeout&&(e.timerToBuildInvalidatedProject&&n.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=n.setTimeout(te,t,e,r))}function te(t,n){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),de(t,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var i=0,a=b(t),o=P(t,a,!1);if(o)for(o.done(),i++;t.projectPendingBuild.size;){if(t.timerToBuildInvalidatedProject)return;var s=w(t,a,!1);if(!s)break;if(s.kind!==r.UpdateOutputFileStamps&&(n||5===i))return void ee(t,100,!1);F(t,s,a).done(),s.kind!==r.UpdateOutputFileStamps&&i++}D(t),fe(t,a)}function re(t,r,n,i){t.watch&&!t.allWatchedConfigFiles.has(n)&&t.allWatchedConfigFiles.set(n,B(t,r,(()=>Z(t,n,e.ConfigFileProgramReloadLevel.Full)),e.PollingInterval.High,null==i?void 0:i.watchOptions,e.WatchType.ConfigFile,r))}function ne(t,r,n){e.updateSharedExtendedConfigFileWatcher(r,null==n?void 0:n.options,t.allWatchedExtendedConfigFiles,((r,i)=>B(t,r,(()=>{var r;return null===(r=t.allWatchedExtendedConfigFiles.get(i))||void 0===r?void 0:r.projects.forEach((r=>Z(t,r,e.ConfigFileProgramReloadLevel.Full)))}),e.PollingInterval.High,null==n?void 0:n.watchOptions,e.WatchType.ExtendedConfigFile)),(e=>p(t,e)))}function ie(t,r,n,i){t.watch&&e.updateWatchingWildcardDirectories(o(t.allWatchedWildcardDirectories,n),new e.Map(e.getEntries(i.wildcardDirectories)),((a,o)=>t.watchDirectory(a,(o=>{var s;e.isIgnoredFileFromWildCardWatching({watchedDirPath:p(t,a),fileOrDirectory:o,fileOrDirectoryPath:p(t,o),configFileName:r,currentDirectory:t.currentDirectory,options:i.options,program:t.builderPrograms.get(n)||(null===(s=g(t,n))||void 0===s?void 0:s.fileNames),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:e=>t.writeLog(e),toPath:e=>p(t,e)})||Z(t,n,e.ConfigFileProgramReloadLevel.Partial)}),o,null==i?void 0:i.watchOptions,e.WatchType.WildcardDirectory,r)))}function ae(t,r,n,i){t.watch&&e.mutateMap(o(t.allWatchedInputFiles,n),e.arrayToMap(i.fileNames,(e=>p(t,e))),{createNewValue:(a,o)=>B(t,o,(()=>Z(t,n,e.ConfigFileProgramReloadLevel.None)),e.PollingInterval.Low,null==i?void 0:i.watchOptions,e.WatchType.SourceFile,r),onDeleteValue:e.closeFileWatcher})}function oe(t,r,n,i){t.watch&&t.lastCachedPackageJsonLookups&&e.mutateMap(o(t.allWatchedPackageJsonFiles,n),new e.Map(t.lastCachedPackageJsonLookups.get(n)),{createNewValue:(a,o)=>B(t,a,(()=>Z(t,n,e.ConfigFileProgramReloadLevel.None)),e.PollingInterval.High,null==i?void 0:i.watchOptions,e.WatchType.PackageJson,r),onDeleteValue:e.closeFileWatcher})}function se(t,r,n,i,a){var o=((t,r,n,i,a)=>{var o,s,c=r,l=r,d=c.getCurrentDirectory(),u=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),p=(o=i,s={},e.commonOptionsWithBuild.forEach((t=>{e.hasProperty(o,t.name)&&(s[t.name]=o[t.name])})),s),f=e.createCompilerHostFromProgramHost(c,(()=>S.projectCompilerOptions));e.setGetSourceFileAsHashVersioned(f,c),f.getParsedCommandLine=e=>h(S,e,_(S,e)),f.resolveModuleNames=e.maybeBind(c,c.resolveModuleNames),f.resolveTypeReferenceDirectives=e.maybeBind(c,c.resolveTypeReferenceDirectives),f.getModuleResolutionCache=e.maybeBind(c,c.getModuleResolutionCache);var m=f.resolveModuleNames?void 0:e.createModuleResolutionCache(d,u),g=f.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(d,u,void 0,null==m?void 0:m.getPackageJsonInfoCache());if(!f.resolveModuleNames){var y=(t,r,n,i)=>e.resolveModuleName(t,n,S.projectCompilerOptions,f,m,i,r).resolvedModule;f.resolveModuleNames=(t,r,n,i,a,o)=>e.loadWithModeAwareCache(e.Debug.checkEachDefined(t),e.Debug.checkDefined(o),r,i,y),f.getModuleResolutionCache=()=>m}if(!f.resolveTypeReferenceDirectives){var v=(t,r,n,i)=>e.resolveTypeReferenceDirective(t,r,S.projectCompilerOptions,f,n,S.typeReferenceDirectiveResolutionCache,i).resolvedTypeReferenceDirective;f.resolveTypeReferenceDirectives=(t,r,n,i,a)=>e.loadWithTypeDirectiveCache(e.Debug.checkEachDefined(t),r,n,a,v)}f.getBuildInfo=(e,t)=>z(S,e,_(S,t),void 0);var b=e.createWatchFactory(l,i),E=b.watchFile,x=b.watchDirectory,D=b.writeLog,S={host:c,hostWithWatch:l,currentDirectory:d,getCanonicalFileName:u,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(c),write:e.maybeBind(c,c.trace),options:i,baseCompilerOptions:p,rootNames:n,baseWatchOptions:a,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,extendedConfigCache:new e.Map,buildInfoCache:new e.Map,outputTimeStamps:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:f,moduleResolutionCache:m,typeReferenceDirectiveResolutionCache:g,buildOrder:void 0,readFileWithCache:e=>c.readFile(e),projectCompilerOptions:p,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,watch:t,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,filesWatched:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:E,watchDirectory:x,writeLog:D};return S})(t,r,n,i,a);return{build:(e,t,r,n)=>X(o,e,t,r,n),clean:e=>Y(o,e),buildReferences:(e,t,r,n)=>X(o,e,t,r,n,!0),cleanReferences:e=>Y(o,e,!0),getNextInvalidatedProject:e=>(C(o,e),P(o,b(o),!1)),getBuildOrder:()=>b(o),getUpToDateStatusOfProject(e){var t=y(o,e),r=_(o,t);return K(o,h(o,t,r),r)},invalidateProject:(t,r)=>Q(o,t,r||e.ConfigFileProgramReloadLevel.None),close:()=>(t=>{e.clearMap(t.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(t.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(t.allWatchedWildcardDirectories,(t=>e.clearMap(t,e.closeFileWatcherOf))),e.clearMap(t.allWatchedInputFiles,(t=>e.clearMap(t,e.closeFileWatcher))),e.clearMap(t.allWatchedPackageJsonFiles,(t=>e.clearMap(t,e.closeFileWatcher)))})(o)}}function ce(t,r){return e.convertToRelativePath(r,t.currentDirectory,(e=>t.getCanonicalFileName(e)))}function le(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,f([r],n,!1)))}function de(t,r){for(var n,i,a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];null===(i=(n=t.hostWithWatch).onWatchStatusChange)||void 0===i||i.call(n,e.createCompilerDiagnostic.apply(void 0,f([r],a,!1)),t.host.getNewLine(),t.baseCompilerOptions)}function ue(e,t){var r=e.host;t.forEach((e=>r.reportDiagnostic(e)))}function pe(e,t,r){ue(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function _e(e,t){pe(e,t,[e.configFileCache.get(t)])}function fe(t,r){if(t.needsSummary){t.needsSummary=!1;var n=t.watch||!!t.host.reportErrorSummary,i=t.diagnostics,a=0,o=[];c(r)?(me(t,r.buildOrder),ue(t,r.circularDiagnostics),n&&(a+=e.getErrorCountForSummary(r.circularDiagnostics)),n&&(o=f(f([],o,!0),e.getFilesInErrorForSummary(r.circularDiagnostics),!0))):(r.forEach((r=>{var n=_(t,r);t.projectErrorsReported.has(n)||ue(t,i.get(n)||e.emptyArray)})),n&&i.forEach((t=>a+=e.getErrorCountForSummary(t))),n&&i.forEach((t=>f(f([],o,!0),e.getFilesInErrorForSummary(t),!0)))),t.watch?de(t,e.getWatchErrorSummaryDiagnosticMessage(a),a):t.host.reportErrorSummary&&t.host.reportErrorSummary(a,o)}}function me(t,r){t.options.verbose&&le(t,e.Diagnostics.Projects_in_this_build_Colon_0,r.map((e=>"\r\n * "+ce(t,e))).join(""))}function ge(t,r,n){t.options.verbose&&((t,r,n)=>{switch(n.type){case e.UpToDateStatusType.OutOfDateWithSelf:return le(t,e.Diagnostics.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,ce(t,r),ce(t,n.outOfDateOutputFileName),ce(t,n.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return le(t,e.Diagnostics.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,ce(t,r),ce(t,n.outOfDateOutputFileName),ce(t,n.newerProjectName));case e.UpToDateStatusType.OutputMissing:return le(t,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,ce(t,r),ce(t,n.missingOutputFileName));case e.UpToDateStatusType.OutOfDateBuildInfo:return le(t,e.Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,ce(t,r),ce(t,n.buildInfoFile));case e.UpToDateStatusType.UpToDate:if(void 0!==n.newestInputFileTime)return le(t,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,ce(t,r),ce(t,n.newestInputFileName||""),ce(t,n.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return le(t,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,ce(t,r),ce(t,n.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return le(t,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,ce(t,r));case e.UpToDateStatusType.UpToDateWithInputFileText:return le(t,e.Diagnostics.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,ce(t,r));case e.UpToDateStatusType.UpstreamOutOfDate:return le(t,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,ce(t,r),ce(t,n.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return le(t,n.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,ce(t,r),ce(t,n.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return le(t,e.Diagnostics.Failed_to_parse_file_0_Colon_1,ce(t,r),n.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return le(t,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,ce(t,r),n.version,e.version);case e.UpToDateStatusType.ForceBuild:return le(t,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,ce(t,r));case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(n)}})(t,r,n)}!(e=>{e[e.None=0]="None",e[e.Success=1]="Success",e[e.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",e[e.ConfigFileErrors=4]="ConfigFileErrors",e[e.SyntaxErrors=8]="SyntaxErrors",e[e.TypeErrors=16]="TypeErrors",e[e.DeclarationEmitErrors=32]="DeclarationEmitErrors",e[e.EmitErrors=64]="EmitErrors",e[e.AnyErrors=124]="AnyErrors"})(t||(t={})),e.getCurrentTime=s,e.isCircularBuildOrder=c,e.getBuildOrderFromAnyBuildOrder=l,e.createBuilderStatusReporter=d,e.createSolutionBuilderHost=(t,r,n,i,a)=>{void 0===t&&(t=e.sys);var o=u(t,r,n,i);return o.reportErrorSummary=a,o},e.createSolutionBuilderWithWatchHost=(t,r,n,i,a)=>{void 0===t&&(t=e.sys);var o=u(t,r,n,i),s=e.createWatchHost(t,a);return e.copyProperties(o,s),o},e.createSolutionBuilder=(e,t,r)=>se(!1,e,t,r),e.createSolutionBuilderWithWatch=(e,t,r,n)=>se(!0,e,t,r,n),(e=>{e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"})(r=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={})),(e=>{e[e.CreateProgram=0]="CreateProgram",e[e.SyntaxDiagnostics=1]="SyntaxDiagnostics",e[e.SemanticDiagnostics=2]="SemanticDiagnostics",e[e.Emit=3]="Emit",e[e.EmitBundle=4]="EmitBundle",e[e.EmitBuildInfo=5]="EmitBuildInfo",e[e.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",e[e.QueueReferencingProjects=7]="QueueReferencingProjects",e[e.Done=8]="Done"})(n||(n={}))})(p),(e=>{var t,r;(t=e.server||(e.server={})).ActionSet="action::set",t.ActionInvalidate="action::invalidate",t.ActionPackageInstalled="action::packageInstalled",t.EventTypesRegistry="event::typesRegistry",t.EventBeginInstallTypes="event::beginInstallTypes",t.EventEndInstallTypes="event::endInstallTypes",t.EventInitializationFailed="event::initializationFailed",(r=t.Arguments||(t.Arguments={})).GlobalCacheLocation="--globalTypingsCacheLocation",r.LogFile="--logFile",r.EnableTelemetry="--enableTelemetry",r.TypingSafeListLocation="--typingSafeListLocation",r.TypesMapLocation="--typesMapLocation",r.NpmLocation="--npmLocation",r.ValidateDefaultNpmLocation="--validateDefaultNpmLocation",t.hasArgument=t=>e.sys.args.indexOf(t)>=0,t.findArgument=t=>{var r=e.sys.args.indexOf(t);return r>=0&&r<e.sys.args.length-1?e.sys.args[r+1]:void 0},t.nowString=()=>{var t=new Date;return"".concat(e.padLeft(t.getHours().toString(),2,"0"),":").concat(e.padLeft(t.getMinutes().toString(),2,"0"),":").concat(e.padLeft(t.getSeconds().toString(),2,"0"),".").concat(e.padLeft(t.getMilliseconds().toString(),3,"0"))}})(p),(e=>{!(t=>{function r(t,r){return new e.Version(e.getProperty(r,"ts".concat(e.versionMajorMinor))||e.getProperty(r,"latest")).compareTo(t.version)<=0}t.isTypingUpToDate=r;var n,i=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];function a(e){return t.nodeCoreModules.has(e)?"node":e}function o(e,t){if(!e)return 1;if(e.length>214)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=o(r[1],!1);if(0!==n)return{name:r[1],isScopeName:!0,result:n};var i=o(r[2],!1);return 0!==i?{name:r[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function s(t,r,n,i){var a=i?"Scope":"Package";switch(r){case 1:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot be empty");case 2:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' should be less than ").concat(214," characters");case 3:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '.'");case 4:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '_'");case 5:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}t.prefixedNodeCoreModuleList=i.map((e=>"node:".concat(e))),t.nodeCoreModuleList=f(f([],i,!0),t.prefixedNodeCoreModuleList,!0),t.nodeCoreModules=new e.Set(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=a,t.loadSafeList=(t,r)=>{var n=e.readConfigFile(r,(e=>t.readFile(e)));return new e.Map(e.getEntries(n.config))},t.loadTypesMap=(t,r)=>{var n=e.readConfigFile(r,(e=>t.readFile(e)));if(n.config)return new e.Map(e.getEntries(n.config.simpleMap))},t.discoverTypings=(t,n,i,o,s,c,l,d,u,p)=>{if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var _=new e.Map;i=e.mapDefined(i,(t=>{var r=e.normalizePath(t);if(e.hasJSFileExtension(r))return r}));var f=[];l.include&&S(l.include,"Explicitly included types");var m=l.exclude||[];if(!p.types){var g=new e.Set(i.map(e.getDirectoryPath));g.add(o),g.forEach((e=>{T(e,"bower.json","bower_components",f),T(e,"package.json","node_modules",f)}))}l.disableFilenameBasedTypeAcquisition||(t=>{var r=e.mapDefined(t,(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,(t=>e.fileExtensionIs(t,".jsx")))&&(n&&n("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))})(i),d&&S(e.deduplicate(d.map(a),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach(((e,t)=>{var n=u.get(t);_.has(t)&&void 0===_.get(t)&&void 0!==n&&r(e,n)&&_.set(t,e.typingLocation)}));for(var h=0,y=m;h<y.length;h++){var v=y[h];_.delete(v)&&n&&n("Typing for ".concat(v," is in exclude list, will be ignored."))}var b=[],E=[];_.forEach(((e,t)=>{void 0!==e?E.push(e):b.push(t)}));var x={cachedTypingPaths:E,newTypingNames:b,filesToWatch:f};return n&&n("Result: ".concat(JSON.stringify(x))),x;function D(e){_.has(e)||_.set(e,void 0)}function S(t,r){n&&n("".concat(r,": ").concat(JSON.stringify(t))),e.forEach(t,D)}function T(r,i,a,o){var s,c,l=e.combinePaths(r,i);t.fileExists(l)&&(o.push(l),s=e.readConfigFile(l,(e=>t.readFile(e))).config,S(c=e.flatMap([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],e.getOwnKeys),"Typing names in '".concat(l,"' dependencies")));var d=e.combinePaths(r,a);if(o.push(d),t.directoryExists(d)){var u=[],p=c?c.map((t=>e.combinePaths(d,t,i))):t.readDirectory(d,[".json"],void 0,void 0,3).filter((t=>{if(e.getBaseFileName(t)!==i)return!1;var r=e.getPathComponents(e.normalizePath(t)),n="@"===r[r.length-3][0];return n&&r[r.length-4].toLowerCase()===a||!n&&r[r.length-3].toLowerCase()===a}));n&&n("Searching for typing names in ".concat(d,"; all files: ").concat(JSON.stringify(p)));for(var f=0,m=p;f<m.length;f++){var g=m[f],h=e.normalizePath(g),y=e.readConfigFile(h,(e=>t.readFile(e))).config;if(y.name){var v=y.types||y.typings;if(v){var b=e.getNormalizedAbsolutePath(v,e.getDirectoryPath(h));t.fileExists(b)?(n&&n(" Package '".concat(y.name,"' provides its own types.")),_.set(y.name,b)):n&&n(" Package '".concat(y.name,"' provides its own types but they are missing."))}else u.push(y.name)}}S(u," Found package names")}}},(n=t.NameValidationResult||(t.NameValidationResult={}))[n.Ok=0]="Ok",n[n.EmptyName=1]="EmptyName",n[n.NameTooLong=2]="NameTooLong",n[n.NameStartsWithDot=3]="NameStartsWithDot",n[n.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",n[n.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",t.validatePackageName=e=>o(e,!0),t.renderPackageNameValidationFailure=(e,t)=>"object"==typeof e?s(t,e.result,e.name,e.isScopeName):s(t,e,t,!1)})(e.JsTyping||(e.JsTyping={}))})(p),function(e){var t,r,n,i,a,o,s,c,l,d,u,p,_,f,m,g,h,y,v,b,E;function x(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:t.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:r.Ignore,trimTrailingWhitespace:!0}}b=e.ScriptSnapshot||(e.ScriptSnapshot={}),E=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=()=>{},e}(),b.fromString=e=>new E(e),(v=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}))[v.Dependencies=1]="Dependencies",v[v.DevDependencies=2]="DevDependencies",v[v.PeerDependencies=4]="PeerDependencies",v[v.OptionalDependencies=8]="OptionalDependencies",v[v.All=15]="All",(y=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}))[y.Off=0]="Off",y[y.On=1]="On",y[y.Auto=2]="Auto",(h=e.LanguageServiceMode||(e.LanguageServiceMode={}))[h.Semantic=0]="Semantic",h[h.PartialSemantic=1]="PartialSemantic",h[h.Syntactic=2]="Syntactic",e.emptyOptions={},(g=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})).Original="original",g.TwentyTwenty="2020",(m=e.CompletionTriggerKind||(e.CompletionTriggerKind={}))[m.Invoked=1]="Invoked",m[m.TriggerCharacter=2]="TriggerCharacter",m[m.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",(f=e.InlayHintKind||(e.InlayHintKind={})).Type="Type",f.Parameter="Parameter",f.Enum="Enum",(_=e.HighlightSpanKind||(e.HighlightSpanKind={})).none="none",_.definition="definition",_.reference="reference",_.writtenReference="writtenReference",(e=>{e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"})(t=e.IndentStyle||(e.IndentStyle={})),(e=>{e.Ignore="ignore",e.Insert="insert",e.Remove="remove"})(r=e.SemicolonPreference||(e.SemicolonPreference={})),e.getDefaultFormatCodeSettings=x,e.testFormatSettings=x("\n"),(p=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}))[p.aliasName=0]="aliasName",p[p.className=1]="className",p[p.enumName=2]="enumName",p[p.fieldName=3]="fieldName",p[p.interfaceName=4]="interfaceName",p[p.keyword=5]="keyword",p[p.lineBreak=6]="lineBreak",p[p.numericLiteral=7]="numericLiteral",p[p.stringLiteral=8]="stringLiteral",p[p.localName=9]="localName",p[p.methodName=10]="methodName",p[p.moduleName=11]="moduleName",p[p.operator=12]="operator",p[p.parameterName=13]="parameterName",p[p.propertyName=14]="propertyName",p[p.punctuation=15]="punctuation",p[p.space=16]="space",p[p.text=17]="text",p[p.typeParameterName=18]="typeParameterName",p[p.enumMemberName=19]="enumMemberName",p[p.functionName=20]="functionName",p[p.regularExpressionLiteral=21]="regularExpressionLiteral",p[p.link=22]="link",p[p.linkName=23]="linkName",p[p.linkText=24]="linkText",(u=e.CompletionInfoFlags||(e.CompletionInfoFlags={}))[u.None=0]="None",u[u.MayIncludeAutoImports=1]="MayIncludeAutoImports",u[u.IsImportStatementCompletion=2]="IsImportStatementCompletion",u[u.IsContinuation=4]="IsContinuation",u[u.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",u[u.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",u[u.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",(d=e.OutliningSpanKind||(e.OutliningSpanKind={})).Comment="comment",d.Region="region",d.Code="code",d.Imports="imports",(l=e.OutputFileType||(e.OutputFileType={}))[l.JavaScript=0]="JavaScript",l[l.SourceMap=1]="SourceMap",l[l.Declaration=2]="Declaration",(c=e.EndOfLineState||(e.EndOfLineState={}))[c.None=0]="None",c[c.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",c[c.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",c[c.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",c[c.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",c[c.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",c[c.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(s=e.TokenClass||(e.TokenClass={}))[s.Punctuation=0]="Punctuation",s[s.Keyword=1]="Keyword",s[s.Operator=2]="Operator",s[s.Comment=3]="Comment",s[s.Whitespace=4]="Whitespace",s[s.Identifier=5]="Identifier",s[s.NumberLiteral=6]="NumberLiteral",s[s.BigIntLiteral=7]="BigIntLiteral",s[s.StringLiteral=8]="StringLiteral",s[s.RegExpLiteral=9]="RegExpLiteral",(o=e.ScriptElementKind||(e.ScriptElementKind={})).unknown="",o.warning="warning",o.keyword="keyword",o.scriptElement="script",o.moduleElement="module",o.classElement="class",o.localClassElement="local class",o.interfaceElement="interface",o.typeElement="type",o.enumElement="enum",o.enumMemberElement="enum member",o.variableElement="var",o.localVariableElement="local var",o.functionElement="function",o.localFunctionElement="local function",o.memberFunctionElement="method",o.memberGetAccessorElement="getter",o.memberSetAccessorElement="setter",o.memberVariableElement="property",o.constructorImplementationElement="constructor",o.callSignatureElement="call",o.indexSignatureElement="index",o.constructSignatureElement="construct",o.parameterElement="parameter",o.typeParameterElement="type parameter",o.primitiveType="primitive type",o.label="label",o.alias="alias",o.constElement="const",o.letElement="let",o.directory="directory",o.externalModuleName="external module name",o.jsxAttribute="JSX attribute",o.string="string",o.link="link",o.linkName="link name",o.linkText="link text",(a=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})).none="",a.publicMemberModifier="public",a.privateMemberModifier="private",a.protectedMemberModifier="protected",a.exportedModifier="export",a.ambientModifier="declare",a.staticModifier="static",a.abstractModifier="abstract",a.optionalModifier="optional",a.deprecatedModifier="deprecated",a.dtsModifier=".d.ts",a.tsModifier=".ts",a.tsxModifier=".tsx",a.jsModifier=".js",a.jsxModifier=".jsx",a.jsonModifier=".json",a.dmtsModifier=".d.mts",a.mtsModifier=".mts",a.mjsModifier=".mjs",a.dctsModifier=".d.cts",a.ctsModifier=".cts",a.cjsModifier=".cjs",(i=e.ClassificationTypeNames||(e.ClassificationTypeNames={})).comment="comment",i.identifier="identifier",i.keyword="keyword",i.numericLiteral="number",i.bigintLiteral="bigint",i.operator="operator",i.stringLiteral="string",i.whiteSpace="whitespace",i.text="text",i.punctuation="punctuation",i.className="class name",i.enumName="enum name",i.interfaceName="interface name",i.moduleName="module name",i.typeParameterName="type parameter name",i.typeAliasName="type alias name",i.parameterName="parameter name",i.docCommentTagName="doc comment tag name",i.jsxOpenTagName="jsx open tag name",i.jsxCloseTagName="jsx close tag name",i.jsxSelfClosingTagName="jsx self closing tag name",i.jsxAttribute="jsx attribute",i.jsxText="jsx text",i.jsxAttributeStringLiteralValue="jsx attribute string literal value",(n=e.ClassificationType||(e.ClassificationType={}))[n.comment=1]="comment",n[n.identifier=2]="identifier",n[n.keyword=3]="keyword",n[n.numericLiteral=4]="numericLiteral",n[n.operator=5]="operator",n[n.stringLiteral=6]="stringLiteral",n[n.regularExpressionLiteral=7]="regularExpressionLiteral",n[n.whiteSpace=8]="whiteSpace",n[n.text=9]="text",n[n.punctuation=10]="punctuation",n[n.className=11]="className",n[n.enumName=12]="enumName",n[n.interfaceName=13]="interfaceName",n[n.moduleName=14]="moduleName",n[n.typeParameterName=15]="typeParameterName",n[n.typeAliasName=16]="typeAliasName",n[n.parameterName=17]="parameterName",n[n.docCommentTagName=18]="docCommentTagName",n[n.jsxOpenTagName=19]="jsxOpenTagName",n[n.jsxCloseTagName=20]="jsxCloseTagName",n[n.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",n[n.jsxAttribute=22]="jsxAttribute",n[n.jsxText=23]="jsxText",n[n.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",n[n.bigintLiteral=25]="bigintLiteral"}(p),(e=>{function t(t){switch(t.kind){case 254:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 164:case 203:case 167:case 166:case 296:case 297:case 169:case 168:case 171:case 172:case 173:case 256:case 213:case 214:case 292:case 285:return 1;case 163:case 258:case 259:case 182:return 2;case 345:return void 0===t.name?3:2;case 299:case 257:return 3;case 261:return e.isAmbientModule(t)||1===e.getModuleInstanceState(t)?5:4;case 260:case 269:case 270:case 265:case 266:case 271:case 272:return 7;case 305:return 5}return 7}function r(t){for(;161===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function n(e){return e.expression}function i(e){return e.tag}function a(e){return e.tagName}function o(t,r,n,i,a){var o=i?c(t):s(t);return a&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&r(o.parent)&&n(o.parent)===o}function s(e){return u(e)?e.parent:e}function c(e){return u(e)||p(e)?e.parent:e}function l(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isBreakOrContinueStatement))||void 0===r?void 0:r.label)===t}function d(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isLabeledStatement))||void 0===r?void 0:r.label)===t}function u(t){var r;return(null===(r=e.tryCast(t.parent,e.isPropertyAccessExpression))||void 0===r?void 0:r.name)===t}function p(t){var r;return(null===(r=e.tryCast(t.parent,e.isElementAccessExpression))||void 0===r?void 0:r.argumentExpression)===t}var _;e.scanner=e.createScanner(99,!0),(_=e.SemanticMeaning||(e.SemanticMeaning={}))[_.None=0]="None",_[_.Value=1]="Value",_[_.Type=2]="Type",_[_.Namespace=4]="Namespace",_[_.All=7]="All",e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=n=>{var i=(n=P(n)).parent;return 305===n.kind?1:e.isExportAssignment(i)||e.isExportSpecifier(i)||e.isExternalModuleReference(i)||e.isImportSpecifier(i)||e.isImportClause(i)||e.isImportEqualsDeclaration(i)&&n===i.name?7:r(n)?(t=>{var r=161===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&265===r.parent.kind?7:4})(n):e.isDeclarationName(n)?t(i):e.isEntityName(n)&&e.findAncestor(n,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:(t=>{switch(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),t.kind){case 108:return!e.isExpressionNode(t);case 192:return!0}switch(t.parent.kind){case 178:return!0;case 200:return!t.parent.isTypeOf;case 228:return e.isPartOfTypeNode(t.parent)}return!1})(n)?2:(e=>(e=>{var t=e,r=!0;if(161===t.parent.kind){for(;t.parent&&161===t.parent.kind;)t=t.parent;r=t.right===e}return 178===t.parent.kind&&!r})(e)||(e=>{var t=e,r=!0;if(206===t.parent.kind){for(;t.parent&&206===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&228===t.parent.kind&&291===t.parent.parent.kind){var n=t.parent.parent.parent;return 257===n.kind&&117===t.parent.parent.token||258===n.kind&&94===t.parent.parent.token}return!1})(e))(n)?4:e.isTypeParameterDeclaration(i)?(e.Debug.assert(e.isJSDocTemplateTag(i.parent)),2):e.isLiteralTypeNode(i)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=(t,r,i)=>(void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isCallExpression,n,r,i)),e.isNewExpressionTarget=(t,r,i)=>(void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isNewExpression,n,r,i)),e.isCallOrNewExpressionTarget=(t,r,i)=>(void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isCallOrNewExpression,n,r,i)),e.isTaggedTemplateTag=(t,r,n)=>(void 0===r&&(r=!1),void 0===n&&(n=!1),o(t,e.isTaggedTemplateExpression,i,r,n)),e.isDecoratorTarget=(t,r,i)=>(void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isDecorator,n,r,i)),e.isJsxOpeningLikeElementTagName=(t,r,n)=>(void 0===r&&(r=!1),void 0===n&&(n=!1),o(t,e.isJsxOpeningLikeElement,a,r,n)),e.climbPastPropertyAccess=s,e.climbPastPropertyOrElementAccess=c,e.getTargetLabel=(e,t)=>{for(;e;){if(250===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=(t,r)=>!!e.isPropertyAccessExpression(t.expression)&&t.expression.name.text===r,e.isJumpStatementTarget=l,e.isLabelOfLabeledStatement=d,e.isLabelName=e=>d(e)||l(e),e.isTagName=t=>{var r;return(null===(r=e.tryCast(t.parent,e.isJSDocTag))||void 0===r?void 0:r.tagName)===t},e.isRightSideOfQualifiedName=t=>{var r;return(null===(r=e.tryCast(t.parent,e.isQualifiedName))||void 0===r?void 0:r.right)===t},e.isRightSideOfPropertyAccess=u,e.isArgumentExpressionOfElementAccess=p,e.isNameOfModuleDeclaration=t=>{var r;return(null===(r=e.tryCast(t.parent,e.isModuleDeclaration))||void 0===r?void 0:r.name)===t},e.isNameOfFunctionDeclaration=t=>{var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isFunctionLike))||void 0===r?void 0:r.name)===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=t=>{switch(t.parent.kind){case 167:case 166:case 296:case 299:case 169:case 168:case 172:case 173:case 261:return e.getNameOfDeclaration(t.parent)===t;case 207:return t.parent.argumentExpression===t;case 162:return!0;case 196:return 194===t.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=t=>e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t,e.getContainerNode=t=>{for(e.isJSDocTypeAlias(t)&&(t=t.parent.parent);;){if(!(t=t.parent))return;switch(t.kind){case 305:case 169:case 168:case 256:case 213:case 172:case 173:case 257:case 258:case 260:case 261:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 305:return e.isExternalModule(r)?"module":"script";case 261:return"module";case 257:case 226:return"class";case 258:return"interface";case 259:case 338:case 345:return"type";case 260:return"enum";case 254:return c(r);case 203:return c(e.getRootDeclaration(r));case 214:case 256:case 213:return"function";case 172:return"getter";case 173:return"setter";case 169:case 168:return"method";case 296:var n=r.initializer;return e.isFunctionLike(n)?"method":"property";case 167:case 166:case 297:case 298:return"property";case 176:return"index";case 175:return"construct";case 174:return"call";case 171:case 170:return"constructor";case 163:return"type parameter";case 299:return"enum member";case 164:return e.hasSyntacticModifier(r,16476)?"property":"parameter";case 265:case 270:case 275:case 268:case 274:return"alias";case 221:var i=e.getAssignmentDeclarationKind(r),a=r.right;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:var o=t(a);return""===o?"const":o;case 3:return e.isFunctionExpression(a)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(a)?"method":"property";case 6:return"local class";default:return e.assertType(i),""}case 79:return e.isImportClause(r.parent)?"alias":"";case 271:var s=t(r.expression);return""===s?"const":s;default:return""}function c(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=t=>{switch(t.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(t)&&164===t.parent.kind;default:return!1}};var f,g=/^\/\/\/\s*</;function h(e,t){return v(e.pos,e.end,t)}function y(e,t){return e.pos<t&&t<e.end}function v(e,t,r){return e<=r.pos&&t>=r.end}function b(e,t,r,n){return Math.max(e,r)<Math.min(t,n)}function E(t,r){if(void 0===t||e.nodeIsMissing(t))return!1;switch(t.kind){case 257:case 258:case 260:case 205:case 201:case 182:case 235:case 262:case 263:case 269:case 273:return x(t,19,r);case 292:return E(t.block,r);case 209:if(!t.arguments)return!0;case 208:case 212:case 191:return x(t,21,r);case 179:case 180:return E(t.type,r);case 171:case 172:case 173:case 256:case 213:case 169:case 168:case 175:case 174:case 214:return t.body?E(t.body,r):t.type?E(t.type,r):D(t,21,r);case 261:return!!t.body&&E(t.body,r);case 239:return t.elseStatement?E(t.elseStatement,r):E(t.thenStatement,r);case 238:return E(t.expression,r)||D(t,26,r);case 204:case 202:case 207:case 162:case 184:return x(t,23,r);case 176:return t.type?E(t.type,r):D(t,23,r);case 289:case 290:return!1;case 242:case 243:case 244:case 241:return E(t.statement,r);case 240:return D(t,115,r)?x(t,21,r):E(t.statement,r);case 181:return E(t.exprName,r);case 216:case 215:case 217:case 224:case 225:return E(t.expression,r);case 210:return E(t.template,r);case 223:return E(e.lastOrUndefined(t.templateSpans),r);case 233:return e.nodeIsPresent(t.literal);case 272:case 266:return e.nodeIsPresent(t.moduleSpecifier);case 219:return E(t.operand,r);case 221:return E(t.right,r);case 222:return E(t.whenFalse,r);default:return!0}}function x(t,r,n){var i=t.getChildren(n);if(i.length){var a=e.last(i);if(a.kind===r)return!0;if(26===a.kind&&1!==i.length)return i[i.length-2].kind===r}return!1}function D(e,t,r){return!!S(e,t,r)}function S(t,r,n){return e.find(t.getChildren(n),(e=>e.kind===r))}function T(t){var r=e.find(t.parent.getChildren(),(r=>e.isSyntaxList(r)&&h(r,t)));return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function C(e){return 88===e.kind}function A(e){return 84===e.kind}function k(e){return 98===e.kind}function N(t,r){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(e.isNamedImports(t.importClause.namedBindings)){var n=e.singleOrUndefined(t.importClause.namedBindings.elements);if(!n)return;return n.name}if(e.isNamespaceImport(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!r)return t.moduleSpecifier}function w(t,r){if(t.exportClause){if(e.isNamedExports(t.exportClause)){if(!e.singleOrUndefined(t.exportClause.elements))return;return t.exportClause.elements[0].name}if(e.isNamespaceExport(t.exportClause))return t.exportClause.name}if(!r)return t.moduleSpecifier}function F(t,r){var n=t.parent;if((e.isModifier(t)&&(r||88!==t.kind)?e.canHaveModifiers(n)&&e.contains(n.modifiers,t):84===t.kind?e.isClassDeclaration(n)||e.isClassExpression(t):98===t.kind?e.isFunctionDeclaration(n)||e.isFunctionExpression(t):118===t.kind?e.isInterfaceDeclaration(n):92===t.kind?e.isEnumDeclaration(n):152===t.kind?e.isTypeAliasDeclaration(n):142===t.kind||141===t.kind?e.isModuleDeclaration(n):100===t.kind?e.isImportEqualsDeclaration(n):136===t.kind?e.isGetAccessorDeclaration(n):149===t.kind&&e.isSetAccessorDeclaration(n))&&(a=((t,r)=>{if(!r)switch(t.kind){case 257:case 226:return(t=>{if(e.isNamedDeclaration(t))return t.name;if(e.isClassDeclaration(t)){var r=t.modifiers&&e.find(t.modifiers,C);if(r)return r}if(e.isClassExpression(t)){var n=e.find(t.getChildren(),A);if(n)return n}})(t);case 256:case 213:return(t=>{if(e.isNamedDeclaration(t))return t.name;if(e.isFunctionDeclaration(t)){var r=e.find(t.modifiers,C);if(r)return r}if(e.isFunctionExpression(t)){var n=e.find(t.getChildren(),k);if(n)return n}})(t);case 171:return t}if(e.isNamedDeclaration(t))return t.name})(n,r)))return a;if((113===t.kind||85===t.kind||119===t.kind)&&e.isVariableDeclarationList(n)&&1===n.declarations.length){var i=n.declarations[0];if(e.isIdentifier(i.name))return i.name}if(152===t.kind){if(e.isImportClause(n)&&n.isTypeOnly&&(a=N(n.parent,r)))return a;if(e.isExportDeclaration(n)&&n.isTypeOnly&&(a=w(n,r)))return a}if(127===t.kind){if(e.isImportSpecifier(n)&&n.propertyName||e.isExportSpecifier(n)&&n.propertyName||e.isNamespaceImport(n)||e.isNamespaceExport(n))return n.name;if(e.isExportDeclaration(n)&&n.exportClause&&e.isNamespaceExport(n.exportClause))return n.exportClause.name}if(100===t.kind&&e.isImportDeclaration(n)&&(a=N(n,r)))return a;if(93===t.kind){var a;if(e.isExportDeclaration(n)&&(a=w(n,r)))return a;if(e.isExportAssignment(n))return e.skipOuterExpressions(n.expression)}if(146===t.kind&&e.isExternalModuleReference(n))return n.expression;if(156===t.kind&&(e.isImportDeclaration(n)||e.isExportDeclaration(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((94===t.kind||117===t.kind)&&e.isHeritageClause(n)&&n.token===t.kind&&(a=(e=>{if(1===e.types.length)return e.types[0].expression})(n)))return a;if(94===t.kind){if(e.isTypeParameterDeclaration(n)&&n.constraint&&e.isTypeReferenceNode(n.constraint))return n.constraint.typeName;if(e.isConditionalTypeNode(n)&&e.isTypeReferenceNode(n.extendsType))return n.extendsType.typeName}if(137===t.kind&&e.isInferTypeNode(n))return n.typeParameter.name;if(101===t.kind&&e.isTypeParameterDeclaration(n)&&e.isMappedTypeNode(n.parent))return n.name;if(140===t.kind&&e.isTypeOperatorNode(n)&&140===n.operator&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(145===t.kind&&e.isTypeOperatorNode(n)&&145===n.operator&&e.isArrayTypeNode(n.type)&&e.isTypeReferenceNode(n.type.elementType))return n.type.elementType.typeName;if(!r){if((103===t.kind&&e.isNewExpression(n)||114===t.kind&&e.isVoidExpression(n)||112===t.kind&&e.isTypeOfExpression(n)||132===t.kind&&e.isAwaitExpression(n)||125===t.kind&&e.isYieldExpression(n)||89===t.kind&&e.isDeleteExpression(n))&&n.expression)return e.skipOuterExpressions(n.expression);if((101===t.kind||102===t.kind)&&e.isBinaryExpression(n)&&n.operatorToken===t)return e.skipOuterExpressions(n.right);if(127===t.kind&&e.isAsExpression(n)&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(101===t.kind&&e.isForInStatement(n)||160===t.kind&&e.isForOfStatement(n))return e.skipOuterExpressions(n.expression)}return t}function P(e){return F(e,!1)}function I(e,t,r){return M(e,t,!1,r,!1)}function O(e,t){return M(e,t,!0,void 0,!1)}function M(t,r,n,i,a){var o,s=t,c=()=>{var a=s.getChildren(t),c=e.binarySearchKey(a,r,((e,t)=>t),((e,o)=>{var s=a[e].getEnd();if(s<r)return-1;var c=n?a[e].getFullStart():a[e].getStart(t,!0);return c>r?1:d(a[e],c,s)?a[e-1]&&d(a[e-1])?1:0:i&&c===r&&a[e-1]&&a[e-1].getEnd()===r&&d(a[e-1])?1:-1}));return o?{value:o}:c>=0&&a[c]?(s=a[c],"continue-outer"):{value:s}};e:for(;;){var l=c();if("object"==typeof l)return l.value;switch(l){case"continue-outer":continue e}}function d(e,s,c){if(null!=c||(c=e.getEnd()),c<r)return!1;if(null!=s||(s=n?e.getFullStart():e.getStart(t,!0)),s>r)return!1;if(r<c||r===c&&(1===e.kind||a))return!0;if(i&&c===r){var l=L(r,t,e);if(l&&i(l))return o=l,!0}return!1}}function R(t,r,n){return function r(i){return e.isToken(i)&&i.pos===t.end?i:e.firstDefined(i.getChildren(n),(e=>(e.pos<=t.pos&&e.end>t.end||e.pos===t.end)&&G(e,n)?r(e):void 0))}(r)}function L(t,r,n,i){var a=function a(o){if(B(o)&&1!==o.kind)return o;var s=o.getChildren(r),c=e.binarySearchKey(s,t,((e,t)=>t),((e,r)=>t<s[e].end?!s[e-1]||t>=s[e-1].end?0:1:-1));if(c>=0&&s[c]){var l=s[c];if(t<l.end){if(l.getStart(r,!i)>=t||!G(l,r)||V(l)){var d=j(s,c,r,o.kind);return d&&U(d,r)}return a(l)}}e.Debug.assert(void 0!==n||305===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var u=j(s,s.length,r,o.kind);return u&&U(u,r)}(n||r);return e.Debug.assert(!(a&&V(a))),a}function B(t){return e.isToken(t)&&!V(t)}function U(e,t){if(B(e))return e;var r=e.getChildren(t);if(0===r.length)return e;var n=j(r,r.length,t,e.kind);return n&&U(n,t)}function j(t,r,n,i){for(var a=r-1;a>=0;a--)if(V(t[a]))0!==a||11!==i&&279!==i||e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(G(t[a],n))return t[a]}function V(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function z(t,r,n){var i=e.tokenToString(t.kind),a=e.tokenToString(r),o=t.getFullStart(),s=n.text.lastIndexOf(a,o);if(-1!==s){if(n.text.lastIndexOf(i,o-1)<s){var c=L(s+1,n);if(c&&c.kind===r)return c}for(var l=t.kind,d=0;;){var u=L(t.getFullStart(),n);if(!u)return;if((t=u).kind===r){if(0===d)return t;d--}else t.kind===l&&d++}}}function H(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=H(i,e.isOptionalChainRoot(t.parent),!0)),(e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures()).filter((e=>!!e.typeParameters&&e.typeParameters.length>=r))}function K(t,r){if(-1!==r.text.lastIndexOf("<",t?t.pos:r.text.length))for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=L(n.getFullStart(),r))&&28===n.kind&&(n=L(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=z(n,18,r)))return;break;case 21:if(!(n=z(n,20,r)))return;break;case 23:if(!(n=z(n,22,r)))return;break;case 27:a++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 140:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=L(n.getFullStart(),r)}}function J(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function G(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function $(e,t,r){var n=J(e,t,void 0);return!!n&&r===g.test(e.text.substring(n.pos,n.end))}function q(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||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 Q(e){return 152===e.kind}function Z(t,r){return{fileExists:e=>t.fileExists(e),getCurrentDirectory:()=>r.getCurrentDirectory(),readFile:e.maybeBind(r,r.readFile),useCaseSensitiveFileNames:e.maybeBind(r,r.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(r,r.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(r,r.getModuleSpecifierCache),getPackageJsonInfoCache(){var e;return null===(e=t.getModuleResolutionCache())||void 0===e?void 0:e.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:e.maybeBind(r,r.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:e=>t.getProjectReferenceRedirect(e),isSourceOfProjectReferenceRedirect:e=>t.isSourceOfProjectReferenceRedirect(e),getNearestAncestorDirectoryWithPackageJson:e.maybeBind(r,r.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>t.getFileIncludeReasons()}}function ee(e,t){return m(m({},Z(e,t)),{getCommonSourceDirectory:()=>e.getCommonSourceDirectory()})}function te(t,r,n,i,a){return e.factory.createImportDeclaration(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,void 0)}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,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,(t=>e.isStringLiteral(t)&&!e.nodeIsSynthesized(t.parent)));return n?ne(n,t):1}function ae(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,(t=>{var r=e.getNameOfDeclaration(t);return r&&79===r.kind?r.escapedText:void 0}))}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(t,r,n){var i=r.tryGetSourcePosition(t);return i&&(!n||n(e.normalizePath(i.fileName))?i:void 0)}function le(e,t,r){var n=e.contextSpan&&ce({fileName:e.fileName,pos:e.contextSpan.start},t,r),i=e.contextSpan&&ce({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,r);return n&&i?{start:n.pos,length:i.pos-n.pos}:void 0}function de(t){var r=t.declarations?e.firstOrUndefined(t.declarations):void 0;return!!e.findAncestor(r,(t=>!!e.isParameter(t)||!(e.isBindingElement(t)||e.isObjectBindingPattern(t)||e.isArrayBindingPattern(t))&&"quit"))}e.getLineStartPositionForPosition=(t,r)=>e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line],e.rangeContainsRange=h,e.rangeContainsRangeExclusive=(e,t)=>y(e,t.pos)&&y(e,t.end),e.rangeContainsPosition=(e,t)=>e.pos<=t&&t<=e.end,e.rangeContainsPositionExclusive=y,e.startEndContainsRange=v,e.rangeContainsStartEnd=(e,t,r)=>e.pos<=t&&e.end>=r,e.rangeOverlapsWithStartEnd=(e,t,r)=>b(e.pos,e.end,t,r),e.nodeOverlapsWithStartEnd=(e,t,r,n)=>b(e.getStart(t),e.end,r,n),e.startEndOverlapsWithStartEnd=b,e.positionBelongsToNode=(t,r,n)=>(e.Debug.assert(t.pos<=r),r<t.end||!E(t,n)),e.findListItemInfo=t=>{var r=T(t);if(r){var n=r.getChildren();return{listItemIndex:e.indexOfNode(n,t),list:r}}},e.hasChildOfKind=D,e.findChildOfKind=S,e.findContainingList=T,e.getContextualTypeFromParentOrAncestorTypeNode=(t,r)=>{var n=Be(t,r);if(n)return n;var i=(t=>{var r;return e.findAncestor(t,(t=>(e.isTypeNode(t)&&(r=t),!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent)))),r})(t);return i&&r.getTypeAtLocation(i)},e.getAdjustedReferenceLocation=P,e.getAdjustedRenameLocation=e=>F(e,!0),e.getTouchingPropertyName=(t,r)=>I(t,r,(t=>e.isPropertyNameLiteral(t)||e.isKeyword(t.kind)||e.isPrivateIdentifier(t))),e.getTouchingToken=I,e.getTokenAtPosition=O,e.findFirstNonJsxWhitespaceToken=(e,t)=>{for(var r=O(e,t);V(r);){var n=R(r,r.parent,e);if(!n)return;r=n}return r},e.findTokenOnLeftOfPosition=(t,r)=>{var n=O(t,r);return e.isToken(n)&&r>n.getStart(t)&&r<n.getEnd()?n:L(r,t)},e.findNextToken=R,e.findPrecedingToken=L,e.isInString=(t,r,n)=>{if(void 0===n&&(n=L(r,t)),n&&e.isStringTextContainingNode(n)){var i=n.getStart(t),a=n.getEnd();if(i<r&&r<a)return!0;if(r===a)return!!n.isUnterminated}return!1},e.isInsideJsxElementOrAttribute=(e,t)=>{var r=O(e,t);return!!r&&(11===r.kind||29===r.kind&&11===r.parent.kind||29===r.kind&&288===r.parent.kind||!(!r||19!==r.kind||288!==r.parent.kind)||29===r.kind&&281===r.parent.kind)},e.isInTemplateString=(t,r)=>{var n=O(t,r);return e.isTemplateLiteralKind(n.kind)&&r>n.getStart(t)},e.isInJSXText=(t,r)=>{var n=O(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=(e,t)=>(r=>{for(;r;)if(r.kind>=279&&r.kind<=288||11===r.kind||29===r.kind||31===r.kind||79===r.kind||19===r.kind||18===r.kind||43===r.kind)r=r.parent;else{if(278!==r.kind)return!1;if(t>r.getStart(e))return!0;r=r.parent}return!1})(O(e,t)),e.findPrecedingMatchingToken=z,e.removeOptionality=H,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=K(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=K,e.isInComment=J,e.hasDocComment=(t,r)=>{var n=O(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=(t,r)=>{void 0===r&&(r=0);var n=[],i=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)&~r:0;return 8&i&&n.push("private"),16&i&&n.push("protected"),4&i&&n.push("public"),(32&i||e.isClassStaticBlockDeclaration(t))&&n.push("static"),128&i&&n.push("abstract"),1&i&&n.push("export"),8192&i&&n.push("deprecated"),16777216&t.flags&&n.push("declare"),271===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=t=>178===t.kind||208===t.kind?t.typeArguments:e.isFunctionLike(t)||257===t.kind||258===t.kind?t.typeParameters:void 0,e.isComment=e=>2===e||3===e,e.isStringOrRegularExpressionOrTemplateLiteral=t=>!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t)),e.isPunctuation=e=>18<=e&&e<=78,e.isInsideTemplateLiteral=(t,r,n)=>e.isTemplateLiteralKind(t.kind)&&t.getStart(n)<r&&r<t.end||!!t.isUnterminated&&r===t.end,e.isAccessibilityModifier=e=>{switch(e){case 123:case 121:case 122:return!0}return!1},e.cloneCompilerOptions=t=>{var r=e.clone(t);return e.setConfigFileInOptions(r,t&&t.configFile),r},e.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(t){if(204===t.kind||205===t.kind){if(221===t.parent.kind&&t.parent.left===t&&63===t.parent.operatorToken.kind)return!0;if(244===t.parent.kind&&t.parent.initializer===t)return!0;if(e(296===t.parent.kind?t.parent.parent:t.parent))return!0}return!1},e.isInReferenceComment=(e,t)=>$(e,t,!0),e.isInNonReferenceComment=(e,t)=>$(e,t,!1),e.getReplacementSpanForContextToken=e=>{if(e)switch(e.kind){case 10:case 14:return X(e);default:return q(e)}},e.createTextSpanFromNode=q,e.createTextSpanFromStringLiteralLikeContent=X,e.createTextRangeFromNode=(t,r)=>e.createRange(t.getStart(r),t.end),e.createTextSpanFromRange=t=>e.createTextSpanFromBounds(t.pos,t.end),e.createTextRangeFromSpan=t=>e.createRange(t.start,t.start+t.length),e.createTextChangeFromStartLength=(t,r,n)=>Y(e.createTextSpan(t,r),n),e.createTextChange=Y,e.typeKeywords=[130,128,158,133,95,137,140,143,104,147,148,145,150,151,110,114,153,154,155],e.isTypeKeyword=t=>e.contains(e.typeKeywords,t),e.isTypeKeywordToken=Q,e.isTypeKeywordTokenOrIdentifier=t=>Q(t)||e.isIdentifier(t)&&"type"===t.text,e.isExternalModuleSymbol=e=>!!(1536&e.flags)&&34===e.name.charCodeAt(0),e.nodeSeenTracker=()=>{var t=[];return r=>{var n=e.getNodeId(r);return!t[n]&&(t[n]=!0)}},e.getSnapshotText=e=>e.getText(0,e.getLength()),e.repeatString=(e,t)=>{for(var r="",n=0;n<t;n++)r+=e;return r},e.skipConstraint=e=>e.isTypeParameter()&&e.getConstraint()||e,e.getNameFromPropertyName=t=>162===t.kind?e.isStringOrNumericLiteralLike(t.expression)?t.expression.text:void 0:e.isPrivateIdentifier(t)?e.idText(t):e.getTextOfIdentifierOrLiteral(t),e.programContainsModules=e=>e.getSourceFiles().some((t=>!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator))),e.programContainsEsModules=e=>e.getSourceFiles().some((t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)),e.compilerOptionsIndicateEsModules=t=>!!t.module||e.getEmitScriptTarget(t)>=2||!!t.noEmit,e.createModuleSpecifierResolutionHost=Z,e.getModuleSpecifierResolverHost=ee,e.moduleResolutionRespectsExports=t=>t>=e.ModuleResolutionKind.Node16&&t<=e.ModuleResolutionKind.NodeNext,e.moduleResolutionUsesNodeModules=t=>t===e.ModuleResolutionKind.NodeJs||t>=e.ModuleResolutionKind.Node16&&t<=e.ModuleResolutionKind.NodeNext,e.makeImportIfNecessary=(e,t,r,n)=>e||t&&t.length?te(e,t,r,n):void 0,e.makeImport=te,e.makeStringLiteral=re,(f=e.QuotePreference||(e.QuotePreference={}))[f.Single=0]="Single",f[f.Double=1]="Double",e.quotePreferenceFromString=ne,e.getQuotePreference=ie,e.getQuoteFromPreference=t=>{switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=t=>{var r=ae(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=ae,e.isModuleSpecifierLike=t=>e.isStringLiteralLike(t)&&(e.isExternalModuleReference(t.parent)||e.isImportDeclaration(t.parent)||e.isRequireCall(t.parent,!1)&&t.parent.arguments[0]===t||e.isImportCall(t.parent)&&t.parent.arguments[0]===t),e.isObjectBindingElementWithoutPropertyName=t=>e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName,e.getPropertySymbolFromBindingElement=(e,t)=>{var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getParentNodeInSpan=(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=(t,r)=>e.canHaveModifiers(t)?e.find(t.modifiers,(e=>e.kind===r)):void 0,e.insertImports=(t,r,n,i)=>{var a=237===(e.isArray(n)?n[0]:n).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(r.statements,a),s=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,l=s;c<l.length;c++){var d=l[c],u=e.OrganizeImports.getImportDeclarationInsertionIndex(o,d);if(0===u){var p=o[0]===r.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(r,o[0],d,!1,p)}else{var _=o[u-1];t.insertNodeAfter(r,_,d)}}else{var f=e.lastOrUndefined(o);f?t.insertNodesAfter(r,f,s):t.insertNodesAtTopOfFile(r,s,i)}else t.insertNodesAtTopOfFile(r,s,i)},e.getTypeKeywordOfTypeOnlyImport=(t,r)=>(e.Debug.assert(t.isTypeOnly),e.cast(t.getChildAt(0,r),Q)),e.textSpansEqual=se,e.documentSpansEqual=(e,t)=>e.fileName===t.fileName&&se(e.textSpan,t.textSpan),e.forEachUnique=(e,t)=>{if(e)for(var r=0;r<e.length;r++)if(e.indexOf(e[r])===r){var n=t(e[r],r);if(n)return n}},e.isTextWhiteSpaceLike=(t,r,n)=>{for(var i=r;i<n;i++)if(!e.isWhiteSpaceLike(t.charCodeAt(i)))return!1;return!0},e.getMappedLocation=ce,e.getMappedDocumentSpan=(e,t,r)=>{var n=e.fileName,i=e.textSpan,a=ce({fileName:n,pos:i.start},t,r);if(a){var o=ce({fileName:n,pos:i.start+i.length},t,r),s=o?o.pos-a.pos:i.length;return{fileName:a.fileName,textSpan:{start:a.pos,length:s},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:le(e,t,r),originalContextSpan:e.contextSpan}}},e.getMappedContextSpan=le,e.isFirstDeclarationOfSymbolParameter=de;var ue=(()=>{var t,r,n,i,a=10*e.defaultMaximumTruncationLength;l();var o=t=>c(t,e.SymbolDisplayPartKind.text);return{displayParts(){var r=t.length&&t[t.length-1].text;return i>a&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(_e(" ",e.SymbolDisplayPartKind.space)),t.push(_e("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:t=>c(t,e.SymbolDisplayPartKind.keyword),writeOperator:t=>c(t,e.SymbolDisplayPartKind.operator),writePunctuation:t=>c(t,e.SymbolDisplayPartKind.punctuation),writeTrailingSemicolon:t=>c(t,e.SymbolDisplayPartKind.punctuation),writeSpace:t=>c(t,e.SymbolDisplayPartKind.space),writeStringLiteral:t=>c(t,e.SymbolDisplayPartKind.stringLiteral),writeParameter:t=>c(t,e.SymbolDisplayPartKind.parameterName),writeProperty:t=>c(t,e.SymbolDisplayPartKind.propertyName),writeLiteral:t=>c(t,e.SymbolDisplayPartKind.stringLiteral),writeSymbol(e,r){i>a||(s(),i+=e.length,t.push(pe(e,r)))},writeLine(){i>a||(i+=1,t.push(ve()),r=!0)},write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:e.notImplemented,getIndent:()=>n,increaseIndent(){n++},decreaseIndent(){n--},clear:l,trackSymbol:()=>!1,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 l(){t=[],r=!0,n=0,i=0}})();function pe(t,r){return _e(t,(t=>{var r=t.flags;return 3&r?de(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 fe(t){return _e(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function me(t){return _e(t,e.SymbolDisplayPartKind.text)}function ge(t){return _e(t,e.SymbolDisplayPartKind.linkText)}function he(t,r){return{text:t,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(r).fileName,textSpan:q(r)}}}function ye(t){return _e(t,e.SymbolDisplayPartKind.link)}function ve(){return _e("\n",e.SymbolDisplayPartKind.lineBreak)}function be(e){try{return e(ue),ue.displayParts()}finally{ue.clear()}}function Ee(e){return 0!=(33554432&e.flags)}function xe(e){return 0!=(2097152&e.flags)}function De(e,t){void 0===t&&(t=!0);var r=e&&Te(e);return r&&!t&&ke(r),r}function Se(t,r,n){var i=n(t);return i?e.setOriginalNode(i,t):i=Te(t,n),i&&!r&&ke(i),i}function Te(t,r){var n=r?e=>Se(e,!0,r):De,i=r?e=>e&&Ae(e,!0,r):e=>e&&Ce(e),a=e.visitEachChild(t,n,e.nullTransformationContext,i,n);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 Ce(t,r){return void 0===r&&(r=!0),t&&e.factory.createNodeArray(t.map((e=>De(e,r))),t.hasTrailingComma)}function Ae(t,r,n){return e.factory.createNodeArray(t.map((e=>Se(e,r,n))),t.hasTrailingComma)}function ke(e){Ne(e),we(e)}function Ne(e){Fe(e,512,Pe)}function we(t){Fe(t,1024,e.getLastChild)}function Fe(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&Fe(i,r,n)}function Pe(e){return e.forEachChild((e=>e))}function Ie(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,Re(r,n,i,a,e.addSyntheticLeadingComment))}function Oe(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,Re(r,n,i,a,e.addSyntheticTrailingComment))}function Me(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,Re(r,n,i,a,e.addSyntheticLeadingComment))}function Re(e,t,r,n,i){return(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 Le(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 Be(e,t){var r=e.parent;switch(r.kind){case 209:return t.getContextualType(r);case 221:var n=r,i=n.left,a=n.operatorToken,o=n.right;return Ue(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 289:return r.expression===e?je(r,t):void 0;default:return t.getContextualType(e)}}function Ue(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function je(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Ve(e){return 174===e||175===e||176===e||166===e||168===e}function ze(e){return 256===e||171===e||169===e||172===e||173===e}function He(e){return 261===e}function We(e){return 237===e||238===e||240===e||245===e||246===e||247===e||251===e||253===e||167===e||259===e||266===e||265===e||272===e||264===e||271===e}function Ke(t){var r=0,n=0;return e.forEachChild(t,(function i(a){if(We(a.kind))26===(null==(o=a.getLastToken(t))?void 0:o.kind)?r++:n++;else if(Ve(a.kind)){var o;26===(null==(o=a.getLastToken(t))?void 0:o.kind)?r++:o&&27!==o.kind&&e.getLineAndCharacterOfPosition(t,o.getStart(t)).line!==e.getLineAndCharacterOfPosition(t,e.getSpanOfTokenAtPosition(t,o.end).start).line&&n++}return r+n>=5||e.forEachChild(a,i)})),0===r&&n<=1||r/n>.2}function Je(e,t){return $e(e,e.fileExists,t)}function Ge(e){try{return e()}catch(e){return}}function $e(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return Ge((()=>t&&t.apply(e,r)))}function qe(t,r){if(!r.fileExists)return[];var n=[];return e.forEachAncestorDirectory(e.getDirectoryPath(t),(t=>{var i=e.combinePaths(t,"package.json");if(r.fileExists(i)){var a=Xe(i,r);a&&n.push(a)}})),n}function Xe(t,r){if(r.readFile){var n=(e=>{try{return JSON.parse(e)}catch(e){return}})(r.readFile(t)||""),i={};if(n)for(var a=0,o=["dependencies","devDependencies","optionalDependencies","peerDependencies"];a<o.length;a++){var s=o[a],c=n[s];if(c){var l=new e.Map;for(var d in c)l.set(d,c[d]);i[s]=l}}var u=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return m(m({},i),{parseable:!!n,fileName:t,get:p,has:(e,t)=>!!p(e,t)})}function p(e,t){void 0===t&&(t=15);for(var r=0,n=u;r<n.length;r++){var i=n[r],a=i[0],o=i[1];if(o&&t&a){var s=o.get(e);if(void 0!==s)return s}}}}function Ye(t){return e.some(t.imports,(t=>{var r=t.text;return e.JsTyping.nodeCoreModules.has(r)}))}function Qe(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function Ze(e){return!(33554432&e.flags||"export="!==e.escapedName&&"default"!==e.escapedName)}function et(t){return e.firstDefined(t.declarations,(t=>{var r;return e.isExportAssignment(t)?null===(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))||void 0===r?void 0:r.text:void 0}))}function tt(t){var r;return e.Debug.checkDefined(t.parent,"Symbol parent was undefined. Flags: ".concat(e.Debug.formatSymbolFlags(t.flags),". ")+"Declarations: ".concat(null===(r=t.declarations)||void 0===r?void 0:r.map((t=>{var r=e.Debug.formatSyntaxKind(t.kind),n=e.isInJSFile(t),i=t.expression;return(n?"[JS]":"")+r+(i?" (expression: ".concat(e.Debug.formatSyntaxKind(i.kind),")"):"")})).join(", "),"."))}function rt(t){var r=t.getSourceFile();return!(!r.externalModuleIndicator&&!r.commonJsModuleIndicator)&&(e.isInJSFile(t)||!e.findAncestor(t,e.isGlobalScopeAugmentation))}e.symbolPart=pe,e.displayPart=_e,e.spacePart=()=>_e(" ",e.SymbolDisplayPartKind.space),e.keywordPart=fe,e.punctuationPart=t=>_e(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation),e.operatorPart=t=>_e(e.tokenToString(t),e.SymbolDisplayPartKind.operator),e.parameterNamePart=t=>_e(t,e.SymbolDisplayPartKind.parameterName),e.propertyNamePart=t=>_e(t,e.SymbolDisplayPartKind.propertyName),e.textOrKeywordPart=t=>{var r=e.stringToToken(t);return void 0===r?me(t):fe(r)},e.textPart=me,e.typeAliasNamePart=t=>_e(t,e.SymbolDisplayPartKind.aliasName),e.typeParameterNamePart=t=>_e(t,e.SymbolDisplayPartKind.typeParameterName),e.linkTextPart=ge,e.linkNamePart=he,e.linkPart=ye,e.buildLinkParts=(t,r)=>{var n,i=e.isJSDocLink(t)?"link":e.isJSDocLinkCode(t)?"linkcode":"linkplain",a=[ye("{@".concat(i," "))];if(t.name){var o=null==r?void 0:r.getSymbolAtLocation(t.name),s=(e=>{if(0===e.indexOf("()"))return 2;if("<"!==e[0])return 0;for(var t=0,r=0;r<e.length;)if("<"===e[r]&&t++,">"===e[r]&&t--,r++,!t)return r;return 0})(t.text),c=e.getTextOfNode(t.name)+t.text.slice(0,s),l=(e=>{var t=0;if(124===e.charCodeAt(t++)){for(;t<e.length&&32===e.charCodeAt(t);)t++;return e.slice(t)}return e})(t.text.slice(s)),d=(null==o?void 0:o.valueDeclaration)||(null===(n=null==o?void 0:o.declarations)||void 0===n?void 0:n[0]);d?(a.push(he(c,d)),l&&a.push(ge(l))):a.push(ge(c+(s||0===l.indexOf("://")?"":" ")+l))}else t.text&&a.push(ge(t.text));return a.push(ye("}")),a},e.getNewLineOrDefaultFromHost=(e,t)=>{var r;return(null==t?void 0:t.newLineCharacter)||(null===(r=e.getNewLine)||void 0===r?void 0:r.call(e))||"\r\n"},e.lineBreakPart=ve,e.mapToDisplayParts=be,e.typeToDisplayParts=(e,t,r,n)=>(void 0===n&&(n=0),be((i=>{e.writeType(t,r,17408|n,i)}))),e.symbolToDisplayParts=(e,t,r,n,i)=>(void 0===i&&(i=0),be((a=>{e.writeSymbol(t,r,n,8|i,a)}))),e.signatureToDisplayParts=(e,t,r,n)=>(void 0===n&&(n=0),n|=25632,be((i=>{e.writeSignature(t,r,n,void 0,i)}))),e.nodeToDisplayParts=(t,r)=>{var n=r.getSourceFile();return be((r=>{e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}).writeNode(4,t,n,r)}))},e.isImportOrExportSpecifierName=t=>!!t.parent&&e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t,e.getScriptKind=(t,r)=>e.ensureScriptKind(t,r.getScriptKind&&r.getScriptKind(t)),e.getSymbolTarget=(t,r)=>{for(var n=t;xe(n)||Ee(n)&&n.target;)n=Ee(n)&&n.target?n.target:e.skipAlias(n,r);return n},e.getUniqueSymbolId=(t,r)=>e.getSymbolId(e.skipAlias(t,r)),e.getFirstNonSpaceCharacterPosition=(t,r)=>{for(;e.isWhiteSpaceLike(t.charCodeAt(r));)r+=1;return r},e.getPrecedingNonSpaceCharacterPosition=(t,r)=>{for(;r>-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=De,e.getSynthesizedDeepCloneWithReplacements=Se,e.getSynthesizedDeepClones=Ce,e.getSynthesizedDeepClonesWithReplacements=Ae,e.suppressLeadingAndTrailingTrivia=ke,e.suppressLeadingTrivia=Ne,e.suppressTrailingTrivia=we,e.copyComments=(e,t)=>{var r=e.getSourceFile();((e,t)=>{for(var r=e.getFullStart(),n=e.getStart(),i=r;i<n;i++)if(10===t.charCodeAt(i))return!0;return!1})(e,r.text)?Ie(e,t,r):Me(e,t,r),Oe(e,t,r)},e.getUniqueName=(t,r)=>{for(var n=t,i=1;!e.isFileLevelUniqueName(r,n);i++)n="".concat(t,"_").concat(i);return n},e.getRenameLocation=(t,r,n,i)=>{for(var a=0,o=-1,s=0,c=t;s<c.length;s++){var l=c[s],d=l.fileName,u=l.textChanges;e.Debug.assert(d===r);for(var p=0,_=u;p<_.length;p++){var f=_[p],m=f.span,g=f.newText,h=Le(g,e.escapeString(n));if(-1!==h&&(o=m.start+a+h,!i))return o;a+=g.length-m.length}}return e.Debug.assert(i),e.Debug.assert(o>=0),o},e.copyLeadingComments=Ie,e.copyTrailingComments=Oe,e.copyTrailingAsLeadingComments=Me,e.needsParentheses=t=>e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)||e.isAsExpression(t)&&e.isObjectLiteralExpression(t.expression),e.getContextualTypeFromParent=Be,e.quote=(t,r,n)=>{var i=ie(t,r),a=JSON.stringify(n);return 0===i?"'".concat(e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):a},e.isEqualityOperatorKind=Ue,e.isStringLiteralOrTemplate=e=>{switch(e.kind){case 10:case 14:case 223:case 210:return!0;default:return!1}},e.hasIndexSignature=e=>!!e.getStringIndexType()||!!e.getNumberIndexType(),e.getSwitchedType=je,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=(e,t,r,n)=>{var i=r.getTypeChecker(),a=!0,o=()=>a=!1,s=i.typeToTypeNode(e,t,1,{trackSymbol:(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.syntaxRequiresTrailingSemicolonOrASI=We,e.syntaxMayBeASICandidate=e.or(Ve,ze,He,We),e.positionIsASICandidate=(t,r,n)=>{var i=e.findAncestor(r,(r=>r.end!==t?"quit":e.syntaxMayBeASICandidate(r.kind)));return!!i&&((t,r)=>{var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(Ve(t.kind)){if(n&&27===n.kind)return!1}else if(He(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(ze(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!We(t.kind))return!1;if(240===t.kind)return!0;var a=R(t,e.findAncestor(t,(e=>!e.parent)),r);return!a||19===a.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(a.getStart(r)).line})(i,n)},e.probablyUsesSemicolons=Ke,e.tryGetDirectories=(e,t)=>$e(e,e.getDirectories,t)||[],e.tryReadDirectory=(t,r,n,i,a)=>$e(t,t.readDirectory,r,n,i,a)||e.emptyArray,e.tryFileExists=Je,e.tryDirectoryExists=(t,r)=>Ge((()=>e.directoryProbablyExists(r,t)))||!1,e.tryAndIgnoreErrors=Ge,e.tryIOAndConsumeErrors=$e,e.findPackageJsons=(t,r,n)=>{var i=[];return e.forEachAncestorDirectory(t,(t=>{if(t===n)return!0;var a=e.combinePaths(t,"package.json");Je(r,a)&&i.push(a)})),i},e.findPackageJson=(t,r)=>{var n;return e.forEachAncestorDirectory(t,(t=>"node_modules"===t||!!(n=e.findConfigFile(t,(e=>Je(r,e)),"package.json"))||void 0)),n},e.getPackageJsonsVisibleToFile=qe,e.createPackageJsonInfo=Xe,e.createPackageJsonImportFilter=(t,r,n)=>{var i,a=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(t.fileName)||qe(t.fileName,n)).filter((e=>e.parseable));return{allowsImportingAmbientModule(t,r){if(!a.length||!t.valueDeclaration)return!0;var n=c(t.valueDeclaration.getSourceFile().fileName,r);if(void 0===n)return!0;var i=e.stripQuotes(t.getName());return!!s(i)||o(n)||o(i)},allowsImportingSourceFile(e,t){if(!a.length)return!0;var r=c(e.fileName,t);return!r||o(r)},allowsImportingSpecifier:t=>!(a.length&&!s(t))||!(!e.pathIsRelative(t)&&!e.isRootedDiskPath(t))||o(t)};function o(t){for(var r=l(t),n=0,i=a;n<i.length;n++){var o=i[n];if(o.has(r)||o.has(e.getTypesPackageName(r)))return!0}return!1}function s(r){return!!(e.isSourceFileJS(t)&&e.JsTyping.nodeCoreModules.has(r)&&(void 0===i&&(i=Ye(t)),i))}function c(i,a){if(e.stringContains(i,"node_modules")){var o=e.moduleSpecifiers.getNodeModulesPackageName(n.getCompilationSettings(),t,i,a,r);if(o)return e.pathIsRelative(o)||e.isRootedDiskPath(o)?void 0:l(o)}}function l(t){var r=e.getPathComponents(e.getPackageNameFromTypesPackageName(t)).slice(1);return e.startsWith(r[0],"@")?"".concat(r[0],"/").concat(r[1]):r[0]}},e.consumesNodeCoreModules=Ye,e.isInsideNodeModules=t=>e.contains(e.getPathComponents(t),"node_modules"),e.isDiagnosticWithLocation=Qe,e.findDiagnosticForNode=(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,Qe)}},e.getDiagnosticsWithinSpan=(t,r)=>{var n,i=e.binarySearchKey(r,t.start,(e=>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],Qe);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=t=>{var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)},e.getFixableErrorSpanExpression=(t,r)=>{var n=O(t,r.start);return e.findAncestor(n,(n=>n.getStart(t)<r.start||n.getEnd()>e.textSpanEnd(r)?"quit":e.isExpression(n)&&se(r,q(n,t))))},e.mapOneOrMany=(t,r,n)=>(void 0===n&&(n=e.identity),t?e.isArray(t)?n(e.map(t,r)):r(t,0):void 0),e.firstOrOnly=t=>e.isArray(t)?e.first(t):t,e.getNamesForExportedSymbol=(t,r)=>{if(Ze(t)){var n=et(t);if(n)return n;var i=e.codefix.moduleSymbolToValidIdentifier(tt(t),r,!1),a=e.codefix.moduleSymbolToValidIdentifier(tt(t),r,!0);return i===a?i:[i,a]}return t.name},e.getNameForExportedSymbol=(t,r,n)=>Ze(t)?et(t)||e.codefix.moduleSymbolToValidIdentifier(tt(t),r,!!n):t.name,e.stringContainsAt=(e,t,r)=>{var n=t.length;if(n+r>e.length)return!1;for(var i=0;i<n;i++)if(t.charCodeAt(i)!==e.charCodeAt(i+r))return!1;return!0},e.startsWithUnderscore=e=>95===e.charCodeAt(0),e.isGlobalDeclaration=e=>!rt(e),e.isNonGlobalDeclaration=rt,e.isDeprecatedDeclaration=t=>!!(8192&e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)),e.shouldUseUriStyleNodeCoreModules=(t,r)=>{var n=e.firstDefined(t.imports,(t=>{if(e.JsTyping.nodeCoreModules.has(t.text))return e.startsWith(t.text,"node:")}));return null!=n?n:r.usesUriStyleNodeCoreModules},e.getNewLineKind=e=>"\n"===e?1:0,e.diagnosticToString=t=>e.isArray(t)?e.formatStringFromArgs(e.getLocaleSpecificMessage(t[0]),t.slice(1)):e.getLocaleSpecificMessage(t),e.getFormatCodeSettingsForWriting=(t,r)=>{var n=t.options,i=!n.semicolons||n.semicolons===e.SemicolonPreference.Ignore,a=n.semicolons===e.SemicolonPreference.Remove||i&&!Ke(r);return m(m({},n),{semicolons:a?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})},e.jsxModeNeedsExplicitImport=e=>2===e||3===e})(p),(e=>{function t(t){var r,n=1,i=e.createMultiMap(),a=new e.Map,o=new e.Map,s={isUsableByFile:e=>e===r,isEmpty:()=>!i.size,clear(){i.clear(),a.clear(),r=void 0},add(t,c,l,d,u,p,_,f){var m;if(t!==r&&(s.clear(),r=t),u){var g=e.getNodeModulePathParts(u.fileName);if(g){var h=g.topLevelNodeModulesIndex,y=g.topLevelPackageNameIndex,v=g.packageRootIndex;if(m=e.unmangleScopedPackageName(e.getPackageNameFromTypesPackageName(u.fileName.substring(y+1,v))),e.startsWith(t,u.path.substring(0,h))){var b=o.get(m),E=u.fileName.substring(0,y+1);b?h>b.indexOf(e.nodeModulesPathPart)&&o.set(m,E):o.set(m,E)}}}var x=1===p&&e.getLocalSymbolForExportDefault(c)||c,D=0===p||e.isExternalModuleSymbol(x)?e.unescapeLeadingUnderscores(l):e.getNamesForExportedSymbol(x,void 0),S="string"==typeof D?D:D[0],T="string"==typeof D?void 0:D[1],C=e.stripQuotes(d.name),A=n++,k=e.skipAlias(c,f),N=33554432&c.flags?void 0:c,w=33554432&d.flags?void 0:d;N&&w||a.set(A,[c,d]),i.add(((t,r,n,i)=>{var a=n||"";return"".concat(t,"|").concat(e.getSymbolId(e.skipAlias(r,i)),"|").concat(a)})(S,c,e.isExternalModuleNameRelative(C)?void 0:C,f),{id:A,symbolTableKey:l,symbolName:S,capitalizedSymbolName:T,moduleName:C,moduleFile:u,moduleFileName:null==u?void 0:u.fileName,packageName:m,exportKind:p,targetFlags:k.flags,isFromPackageJson:_,symbol:N,moduleSymbol:w})},get(e,t){if(e===r){var n=i.get(t);return null==n?void 0:n.map(c)}},search(n,a,s,l){n===r&&i.forEach(((r,n)=>{var i=(e=>{var t=e.substring(0,e.indexOf("|")),r=e.substring(e.lastIndexOf("|")+1);return{symbolName:t,ambientModuleName:""===r?void 0:r}})(n),d=i.symbolName,u=i.ambientModuleName,p=a&&r[0].capitalizedSymbolName||d;if(s(p,r[0].targetFlags)){var _=r.map(c).filter(((n,i)=>((r,n)=>{if(!n||!r.moduleFileName)return!0;var i=t.getGlobalTypingsCacheLocation();if(i&&e.startsWith(r.moduleFileName,i))return!0;var a=o.get(n);return!a||e.startsWith(r.moduleFileName,a)})(n,r[i].packageName)));_.length&&l(_,p,!!u,n)}}))},releaseSymbols(){a.clear()},onFileChanged:(t,n,i)=>!(l(t)&&l(n)||(r&&r!==n.path||i&&e.consumesNodeCoreModules(t)!==e.consumesNodeCoreModules(n)||!e.arrayIsEqualTo(t.moduleAugmentations,n.moduleAugmentations)||!((t,r)=>{if(!e.arrayIsEqualTo(t.ambientModuleNames,r.ambientModuleNames))return!1;for(var n=-1,i=-1,a=a=>{var o=t=>e.isNonGlobalAmbientModule(t)&&t.name.text===a;if(n=e.findIndex(t.statements,o,n+1),i=e.findIndex(r.statements,o,i+1),t.statements[n]!==r.statements[i])return{value:!1}},o=0,s=r.ambientModuleNames;o<s.length;o++){var c=a(s[o]);if("object"==typeof c)return c.value}return!0})(t,n)?(s.clear(),0):(r=n.path,1)))};return e.Debug.isDebugging&&Object.defineProperty(s,"__cache",{get:()=>i}),s;function c(r){if(r.symbol&&r.moduleSymbol)return r;var n=r.id,i=r.exportKind,o=r.targetFlags,s=r.isFromPackageJson,c=r.moduleFileName,l=a.get(n)||e.emptyArray,d=l[0],u=l[1];if(d&&u)return{symbol:d,moduleSymbol:u,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:s};var p=(s?t.getPackageJsonAutoImportProvider():t.getCurrentProgram()).getTypeChecker(),_=r.moduleSymbol||u||e.Debug.checkDefined(r.moduleFile?p.getMergedSymbol(r.moduleFile.symbol):p.tryFindAmbientModule(r.moduleName)),f=r.symbol||d||e.Debug.checkDefined(2===i?p.resolveExternalModuleSymbol(_):p.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(r.symbolTableKey),_),"Could not find symbol '".concat(r.symbolName,"' by key '").concat(r.symbolTableKey,"' in module ").concat(_.name));return a.set(n,[f,_]),{symbol:f,moduleSymbol:_,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:s}}function l(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function r(t,r,i,a,o){var s,c,l=e.hostUsesCaseSensitiveFileNames(r),d=i.autoImportFileExcludePatterns&&e.mapDefined(i.autoImportFileExcludePatterns,(t=>{var r=e.getPatternFromSpec(t,"","exclude");return r?e.getRegexFromPattern(r,l):void 0}));n(t.getTypeChecker(),t.getSourceFiles(),d,((e,r)=>o(e,r,t,!1)));var u=a&&(null===(s=r.getPackageJsonAutoImportProvider)||void 0===s?void 0:s.call(r));if(u){var p=e.timestamp();n(u.getTypeChecker(),u.getSourceFiles(),d,((e,t)=>o(e,t,u,!0))),null===(c=r.log)||void 0===c||c.call(r,"forEachExternalModuleToImportFrom autoImportProvider: ".concat(e.timestamp()-p))}}function n(t,r,n,i){for(var a,o=e=>null==n?void 0:n.some((t=>t.test(e))),s=0,c=t.getAmbientModules();s<c.length;s++){var l=c[s];e.stringContains(l.name,"*")||n&&(null===(a=l.declarations)||void 0===a?void 0:a.every((e=>o(e.getSourceFile().fileName))))||i(l,void 0)}for(var d=0,u=r;d<u.length;d++){var p=u[d];e.isExternalOrCommonJsModule(p)&&!o(p.fileName)&&i(t.getMergedSymbol(p.symbol),p)}}function i(e,t,r){var n=((e,t)=>{var r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};var n=t.tryGetMemberInModuleExports("default",e);return n?{symbol:n,exportKind:1}:void 0})(e,t);if(n){var i=n.symbol,a=n.exportKind,s=o(i,t,r);return s&&m({symbol:i,exportKind:a},s)}}function a(t,r){return!(r.isUndefinedSymbol(t)||r.isUnknownSymbol(t)||e.isKnownSymbol(t)||e.isPrivateIdentifierSymbol(t))}function o(t,r,n){var i=e.getLocalSymbolForExportDefault(t);if(i)return{symbolForMeaning:i,name:i.name};var a,s=(a=t).declarations&&e.firstDefined(a.declarations,(t=>{var r;return e.isExportAssignment(t)?null===(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))||void 0===r?void 0:r.text:e.isExportSpecifier(t)?(e.Debug.assert("default"===t.name.text,"Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text):void 0}));if(void 0!==s)return{symbolForMeaning:t,name:s};if(2097152&t.flags){var c=r.getImmediateAliasedSymbol(t);if(c&&c.parent)return o(c,r,n)}return"default"!==t.escapedName&&"export="!==t.escapedName?{symbolForMeaning:t,name:t.getName()}:{symbolForMeaning:t,name:e.getNameForExportedSymbol(t,n.target)}}var s,c;(c=e.ImportKind||(e.ImportKind={}))[c.Named=0]="Named",c[c.Default=1]="Default",c[c.Namespace=2]="Namespace",c[c.CommonJS=3]="CommonJS",(s=e.ExportKind||(e.ExportKind={}))[s.Named=0]="Named",s[s.Default=1]="Default",s[s.ExportEquals=2]="ExportEquals",s[s.UMD=3]="UMD",e.createCacheableExportInfoMap=t,e.isImportableFile=(t,r,n,i,a,o,s)=>{var c;if(r===n)return!1;var l=null==s?void 0:s.get(r.path,n.path,i,{});if(void 0!==(null==l?void 0:l.isBlockedByPackageJsonDependencies))return!l.isBlockedByPackageJsonDependencies;var d=e.hostGetCanonicalFileName(o),u=null===(c=o.getGlobalTypingsCacheLocation)||void 0===c?void 0:c.call(o),p=!!e.moduleSpecifiers.forEachFileNameOfModule(r.fileName,n.fileName,o,!1,(i=>{var a=t.getSourceFile(i);return(a===n||!a)&&((t,r,n,i)=>{var a=e.forEachAncestorDirectory(r,(t=>"node_modules"===e.getBaseFileName(t)?t:void 0)),o=a&&e.getDirectoryPath(n(a));return void 0===o||e.startsWith(n(t),o)||!!i&&e.startsWith(n(i),o)})(r.fileName,i,d,u)}));if(a){var _=p&&a.allowsImportingSourceFile(n,o);return null==s||s.setBlockedByPackageJsonDependencies(r.path,n.path,i,{},!_),_}return p},e.forEachExternalModuleToImportFrom=r,e.getExportInfoMap=(n,o,s,c,l)=>{var d,u,p,_,f,m=e.timestamp();null===(d=o.getPackageJsonAutoImportProvider)||void 0===d||d.call(o);var g=(null===(u=o.getCachedExportInfoMap)||void 0===u?void 0:u.call(o))||t({getCurrentProgram:()=>s,getPackageJsonAutoImportProvider(){var e;return null===(e=o.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(o)},getGlobalTypingsCacheLocation(){var e;return null===(e=o.getGlobalTypingsCacheLocation)||void 0===e?void 0:e.call(o)}});if(g.isUsableByFile(n.path))return null===(p=o.log)||void 0===p||p.call(o,"getExportInfoMap: cache hit"),g;null===(_=o.log)||void 0===_||_.call(o,"getExportInfoMap: cache miss or empty; calculating new results");var h=s.getCompilerOptions(),y=0;try{r(s,o,c,!0,((t,r,o,s)=>{++y%100==0&&(null==l||l.throwIfCancellationRequested());var c=new e.Map,d=o.getTypeChecker(),u=i(t,d,h);u&&a(u.symbol,d)&&g.add(n.path,u.symbol,1===u.exportKind?"default":"export=",t,r,u.exportKind,s,d),d.forEachExportAndPropertyOfModule(t,((i,o)=>{i!==(null==u?void 0:u.symbol)&&a(i,d)&&e.addToSeen(c,o)&&g.add(n.path,i,o,t,r,0,s,d)}))}))}catch(e){throw g.clear(),e}return null===(f=o.log)||void 0===f||f.call(o,"getExportInfoMap: done in ".concat(e.timestamp()-m," ms")),g},e.getDefaultLikeExportInfo=i})(p),(e=>{e.createClassifier=()=>{var o=e.createScanner(99,!1);function s(i,s,c){var l=0,d=0,u=[],p=(t=>{switch(t){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(t)}})(s),_=p.prefix,f=p.pushTemplate;i=_+i;var m=_.length;f&&u.push(15),o.setText(i);var g=0,h=[],y=0;do{l=o.scan(),e.isTrivia(l)||(E(),d=l);var v=o.getTextPos();if(n(o.getTokenPos(),v,m,a(l),h),v>=i.length){var b=r(o,l,e.lastOrUndefined(u));void 0!==b&&(g=b)}}while(1!==l);function E(){switch(l){case 43:case 68:t[d]||13!==o.reScanSlashToken()||(l=13);break;case 29:79===d&&y++;break;case 31:y>0&&y--;break;case 130:case 150:case 147:case 133:case 151:y>0&&!c&&(l=79);break;case 15:u.push(l);break;case 18:u.length>0&&u.push(l);break;case 19:if(u.length>0){var r=e.lastOrUndefined(u);15===r?17===(l=o.reScanTemplateToken(!1))?u.pop():e.Debug.assertEqual(l,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),u.pop())}break;default:if(!e.isKeyword(l))break;(24===d||e.isKeyword(d)&&e.isKeyword(l)&&!((t,r)=>{if(!e.isAccessibilityModifier(t))return!0;switch(r){case 136:case 149:case 134:case 124:return!0;default:return!1}})(d,l))&&(l=79)}}return{endOfLineState:g,spans:h}}return{getClassificationsForLine:(t,r,n)=>((t,r)=>{for(var n=[],a=t.spans,o=0,s=0;s<a.length;s+=3){var c=a[s],l=a[s+1],d=a[s+2];if(o>=0){var u=c-o;u>0&&n.push({length:u,classification:e.TokenClass.Whitespace})}n.push({length:l,classification:i(d)}),o=c+l}var p=r.length-o;return p>0&&n.push({length:p,classification:e.TokenClass.Whitespace}),{entries:n,finalLexState:t.endOfLineState}})(s(t,r,n),t),getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],(e=>e),(()=>!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((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 102:case 101:case 127:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}})(t)||(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<=78)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 79:default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 261:case 257:case 258:case 256:case 226:case 213:case 214:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild((function l(d){if(d&&e.textSpanIntersectsWith(a,d.pos,d.getFullWidth())){if(o(r,d.kind),e.isIdentifier(d)&&!e.nodeIsMissing(d)&&i.has(d.escapedText)){var u=t.getSymbolAtLocation(d),p=u&&c(u,e.getMeaningFromLocation(d),t);p&&((t,r,n)=>{var i=r-t;e.Debug.assert(i>0,"Classification had non-positive length of ".concat(i)),s.push(t),s.push(i),s.push(n)})(d.getStart(n),d.getEnd(),p)}d.forEachChild(l)}})),{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&&(t=>e.some(t.declarations,(t=>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 l(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 d(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i<r.length;i+=3)n.push({textSpan:e.createTextSpan(r[i],r[i+1]),classificationType:l(r[i+2])});return n}function u(t,r,n){var i=n.start,a=n.length,s=e.createScanner(99,!1,r.languageVariant,r.text),c=e.createScanner(99,!1,r.languageVariant,r.text),l=[];return y(r),{spans:l,endOfLineState:0};function d(e,t,r){l.push(e),l.push(t),l.push(r)}function u(t,n,i,a){if(3===n){var o=e.parseIsolatedJSDocComment(r.text,i,a);if(o&&o.jsDoc)return e.setParent(o.jsDoc,t),void(e=>{var t,r,n,i,a,o,s,c=e.pos;if(e.tags)for(var l=0,u=e.tags;l<u.length;l++){var f=u[l];f.pos!==c&&p(c,f.pos-c),d(f.pos,1,10),d(f.tagName.pos,f.tagName.end-f.tagName.pos,18),c=f.tagName.end;var m=f.tagName.end;switch(f.kind){case 340:var g=f;b(g),m=g.isNameFirst&&(null===(t=g.typeExpression)||void 0===t?void 0:t.end)||g.name.end;break;case 347:var h=f;m=h.isNameFirst&&(null===(r=h.typeExpression)||void 0===r?void 0:r.end)||h.name.end;break;case 344:_(f),c=f.end,m=f.typeParameters.end;break;case 345:var v=f;m=309===(null===(n=v.typeExpression)||void 0===n?void 0:n.kind)&&(null===(i=v.fullName)||void 0===i?void 0:i.end)||(null===(a=v.typeExpression)||void 0===a?void 0:a.end)||m;break;case 338:m=f.typeExpression.end;break;case 343:y(f.typeExpression),c=f.end,m=f.typeExpression.end;break;case 342:case 339:m=f.typeExpression.end;break;case 341:y(f.typeExpression),c=f.end,m=(null===(o=f.typeExpression)||void 0===o?void 0:o.end)||m;break;case 346:m=(null===(s=f.name)||void 0===s?void 0:s.end)||m;break;case 328:case 329:m=f.class.end}"object"==typeof f.comment?p(f.comment.pos,f.comment.end-f.comment.pos):"string"==typeof f.comment&&p(m,f.end-m)}return void(c!==e.end&&p(c,e.end-c));function b(e){e.isNameFirst&&(p(c,e.name.pos-c),d(e.name.pos,e.name.end-e.name.pos,17),c=e.name.end),e.typeExpression&&(p(c,e.typeExpression.pos-c),y(e.typeExpression),c=e.typeExpression.end),e.isNameFirst||(p(c,e.name.pos-c),d(e.name.pos,e.name.end-e.name.pos,17),c=e.name.end)}})(o.jsDoc)}else if(2===n&&((t,n)=>{var i=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,a=r.text.substr(t,n),o=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im.exec(a);if(!o)return!1;if(!o[3]||!(o[3]in e.commentPragmas))return!1;var s=t;p(s,o[1].length),d(s+=o[1].length,o[2].length,10),d(s+=o[2].length,o[3].length,21),s+=o[3].length;for(var c=o[4],l=s;;){var u=i.exec(c);if(!u)break;var _=s+u.index+u[1].length;_>l&&(p(l,_-l),l=_),d(l,u[2].length,22),l+=u[2].length,u[3].length&&(p(l,u[3].length),l+=u[3].length),d(l,u[4].length,5),l+=u[4].length,u[5].length&&(p(l,u[5].length),l+=u[5].length),d(l,u[6].length,24),l+=u[6].length}(s+=o[4].length)>l&&p(l,s-l),o[5]&&(d(s,o[5].length,10),s+=o[5].length);var f=t+n;return s<f&&p(s,f-s),!0})(i,a))return;p(i,a)}function p(e,t){d(e,t,1)}function _(e){for(var t=0,r=e.getChildren();t<r.length;t++)y(r[t])}function f(t,r,n){var i;for(i=r;i<n&&!e.isLineBreak(t.charCodeAt(i));i++);for(d(r,i-r,1),c.setTextPos(i);c.getTextPos()<n;)m()}function m(){var e=c.getTextPos(),t=c.scan(),r=c.getTextPos(),n=h(t);n&&d(e,r-e,n)}function g(t){if(e.isJSDoc(t))return!0;if(e.nodeIsMissing(t))return!0;var n=(e=>{switch(e.parent&&e.parent.kind){case 280:if(e.parent.tagName===e)return 19;break;case 281:if(e.parent.tagName===e)return 20;break;case 279:if(e.parent.tagName===e)return 21;break;case 285:if(e.parent.name===e)return 22}})(t);if(!e.isToken(t)&&11!==t.kind&&void 0===n)return!1;var i=11===t.kind?t.pos:(t=>{for(s.setTextPos(t.pos);;){var n=s.getTextPos();if(!e.couldStartTrivia(r.text,n))return n;var i=s.scan(),a=s.getTextPos(),o=a-n;if(!e.isTrivia(i))return n;switch(i){case 4:case 5:continue;case 2:case 3:u(t,i,n,o),s.setTextPos(a);continue;case 7:var c=r.text,l=c.charCodeAt(n);if(60===l||62===l){d(n,o,1);continue}e.Debug.assert(124===l||61===l),f(c,n,a);break;case 6:break;default:e.Debug.assertNever(i)}}})(t),a=t.end-i;if(e.Debug.assert(a>=0),a>0){var o=n||h(t.kind,t);o&&d(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(63===t&&(254===n.kind||167===n.kind||164===n.kind||285===n.kind))return 5;if(221===n.kind||219===n.kind||220===n.kind||222===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&285===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(79===t){if(r){switch(r.parent.kind){case 257:return r.parent.name===r?11:void 0;case 163:return r.parent.name===r?15:void 0;case 258:return r.parent.name===r?13:void 0;case 260:return r.parent.name===r?12:void 0;case 261:return r.parent.name===r?14:void 0;case 164:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}if(e.isConstTypeReference(r.parent))return 3}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);s<c.length;s++){var l=c[s];g(l)||y(l)}}}}e.getSemanticClassifications=(e,t,r,n,i)=>d(s(e,t,r,n,i)),e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=(e,t,r)=>d(u(e,t,r)),e.getEncodedSyntacticClassifications=u})(p),(e=>{var t;(t=>{function r(e,t,r,i){return{spans:n(e,r,i,t),endOfLineState:0}}function n(t,r,n,o){var s=[];return t&&r&&((t,r,n,o,s)=>{var c=t.getTypeChecker(),d=!1;!function u(p){switch(p.kind){case 261:case 257:case 258:case 256:case 226:case 213:case 214:s.throwIfCancellationRequested()}if(p&&e.textSpanIntersectsWith(n,p.pos,p.getFullWidth())&&0!==p.getFullWidth()){var _=d;if((e.isJsxElement(p)||e.isJsxSelfClosingElement(p))&&(d=!0),e.isJsxExpression(p)&&(d=!1),e.isIdentifier(p)&&!d&&!(t=>{var r=t.parent;return r&&(e.isImportClause(r)||e.isImportSpecifier(r)||e.isNamespaceImport(r))})(p)&&!e.isInfinityOrNaNString(p.escapedText)){var f=c.getSymbolAtLocation(p);if(f){2097152&f.flags&&(f=c.getAliasedSymbol(f));var m=((t,r)=>{var n=t.getFlags();if(32&n)return 0;if(384&n)return 1;if(524288&n)return 5;if(64&n){if(2&r)return 2}else if(262144&n)return 4;var a=t.valueDeclaration||t.declarations&&t.declarations[0];return a&&e.isBindingElement(a)&&(a=i(a)),a&&l.get(a.kind)})(f,e.getMeaningFromLocation(p));if(void 0!==m){var g=0;p.parent&&(e.isBindingElement(p.parent)||l.get(p.parent.kind)===m)&&p.parent.name===p&&(g=1),6===m&&a(p)&&(m=9),m=((t,r,n)=>{if(7===n||9===n||6===n){var i=t.getTypeAtLocation(r);if(i){var o=e=>e(i)||i.isUnion()&&i.types.some(e);if(6!==n&&o((e=>e.getConstructSignatures().length>0)))return 0;if(o((e=>e.getCallSignatures().length>0))&&!o((e=>e.getProperties().length>0))||(t=>{for(;a(t);)t=t.parent;return e.isCallExpression(t.parent)&&t.parent.expression===t})(r))return 9===n?11:10}}return n})(c,p,m);var h=f.valueDeclaration;if(h){var y=e.getCombinedModifierFlags(h),v=e.getCombinedNodeFlags(h);32&y&&(g|=2),256&y&&(g|=4),0!==m&&2!==m&&(64&y||2&v||8&f.getFlags())&&(g|=8),7!==m&&10!==m||!((t,r)=>(e.isBindingElement(t)&&(t=i(t)),e.isVariableDeclaration(t)?(!e.isSourceFile(t.parent.parent.parent)||e.isCatchClause(t.parent))&&t.getSourceFile()===r:!!e.isFunctionDeclaration(t)&&!e.isSourceFile(t.parent)&&t.getSourceFile()===r))(h,r)||(g|=32),t.isSourceFileDefaultLibrary(h.getSourceFile())&&(g|=16)}else f.declarations&&f.declarations.some((e=>t.isSourceFileDefaultLibrary(e.getSourceFile())))&&(g|=16);o(p,m,g)}}}e.forEachChild(p,u),d=_}}(r)})(t,r,n,((e,t,n)=>{s.push(e.getStart(r),e.getWidth(r),(t+1<<8)+n)}),o),s}function i(t){for(;;){if(!e.isBindingElement(t.parent.parent))return t.parent.parent;t=t.parent.parent}}function a(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}var o,s,c;(c=t.TokenEncodingConsts||(t.TokenEncodingConsts={}))[c.typeOffset=8]="typeOffset",c[c.modifierMask=255]="modifierMask",(s=t.TokenType||(t.TokenType={}))[s.class=0]="class",s[s.enum=1]="enum",s[s.interface=2]="interface",s[s.namespace=3]="namespace",s[s.typeParameter=4]="typeParameter",s[s.type=5]="type",s[s.parameter=6]="parameter",s[s.variable=7]="variable",s[s.enumMember=8]="enumMember",s[s.property=9]="property",s[s.function=10]="function",s[s.member=11]="member",(o=t.TokenModifier||(t.TokenModifier={}))[o.declaration=0]="declaration",o[o.static=1]="static",o[o.async=2]="async",o[o.readonly=3]="readonly",o[o.defaultLibrary=4]="defaultLibrary",o[o.local=5]="local",t.getSemanticClassifications=(t,n,i,a)=>{var o=r(t,n,i,a);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],l=0;l<s.length;l+=3)c.push({textSpan:e.createTextSpan(s[l],s[l+1]),classificationType:s[l+2]});return c},t.getEncodedSemanticClassifications=r;var l=new e.Map([[254,7],[164,6],[167,9],[261,3],[260,1],[299,8],[257,0],[169,11],[256,10],[213,10],[168,11],[172,9],[173,9],[166,9],[258,2],[259,5],[163,4],[296,9],[297,9]])})((t=e.classifier||(e.classifier={})).v2020||(t.v2020={}))})(p),(e=>{var t;(r=>{var n,i,a,o=((n={}).directory=0,n.script=1,n["external module name"]=2,n);function s(){var t=new e.Map;return{add(e){var r=t.get(e.name);(!r||o[r.kind]<o[e.kind])&&t.set(e.name,e)},has:t.has.bind(t),values:t.values.bind(t)}}function c(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((e=>{var r=e.name,n=e.kind,i=e.span;return{name:r,kind:n,kindModifiers:l(e.extension),sortText:t.SortText.LocationPriority,replacementSpan:i}}))}}function l(t){switch(t){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return e.Debug.fail("Extension ".concat(".tsbuildinfo"," is unsupported."));case void 0:return"";default:return e.Debug.assertNever(t)}}function d(r,n,i,a,o,s,c){var l,d,f=u(n.parent);switch(f.kind){case 196:var m=u(f.parent);switch(m.kind){case 228:case 178:var g=e.findAncestor(f,(e=>e.parent===m));return g?{kind:2,types:_(a.getTypeArgumentConstraint(g)),isNewIdentifier:!1}:void 0;case 194:var h=m,y=h.indexType,v=h.objectType;if(!e.rangeContainsPosition(y,i))return;return p(a.getTypeFromTypeNode(v));case 200:return{kind:0,paths:b(r,n,o,s,a,c)};case 187:if(!e.isTypeReferenceNode(m.parent))return;var E=(l=m,d=f,e.mapDefined(l.types,(t=>t!==d&&e.isLiteralTypeNode(t)&&e.isStringLiteral(t.literal)?t.literal.text:void 0)));return{kind:2,types:_(a.getTypeArgumentConstraint(m)).filter((t=>!e.contains(E,t.value))),isNewIdentifier:!1};default:return}case 296:return e.isObjectLiteralExpression(f.parent)&&f.name===n?((r,n)=>{var i=r.getContextualType(n);if(i){var a=r.getContextualType(n,4);return{kind:1,symbols:t.getPropertiesForObjectExpression(i,a,n,r),hasIndexSignature:e.hasIndexSignature(i)}}})(a,f.parent):C();case 207:var x=f,D=x.expression,S=x.argumentExpression;return n===e.skipParentheses(S)?p(a.getTypeAtLocation(D)):void 0;case 208:case 209:case 285:if(!(t=>e.isCallExpression(t.parent)&&e.firstOrUndefined(t.parent.arguments)===t&&e.isIdentifier(t.parent.expression)&&"require"===t.parent.expression.escapedText)(n)&&!e.isImportCall(f)){var T=e.SignatureHelp.getArgumentInfoForCompletions(285===f.kind?f.parent:n,i,r);return T?((t,r,n,i)=>{var a=!1,o=new e.Map,s=[],c=e.isJsxOpeningLikeElement(t)?e.Debug.checkDefined(e.findAncestor(r.parent,e.isJsxAttribute)):r;return i.getResolvedSignatureForStringLiteralCompletions(t,c,s),{kind:2,types:e.flatMap(s,(r=>{if(e.signatureHasRestParameter(r)||!(n.argumentCount>r.parameters.length)){var s=r.getTypeParameterAtPosition(n.argumentIndex);if(e.isJsxOpeningLikeElement(t)){var l=i.getTypeOfPropertyOfType(s,c.name.text);l&&(s=l)}return a=a||!!(4&s.flags),_(s,o)}})),isNewIdentifier:a}})(T.invocation,n,T,a):C()}case 266:case 272:case 277:return{kind:0,paths:b(r,n,o,s,a,c)};default:return C()}function C(){return{kind:2,types:_(e.getContextualTypeFromParent(n,a)),isNewIdentifier:!1}}}function u(t){switch(t.kind){case 191:return e.walkUpParenthesizedTypes(t);case 212:return e.walkUpParenthesizedExpressions(t);default:return t}}function p(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),(t=>!(t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration)))),hasIndexSignature:e.hasIndexSignature(t)}}function _(t,r){return void 0===r&&(r=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,(e=>_(e,r))):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function g(e,t,r){return{name:e,kind:t,extension:r}}function h(e){return g(e,"directory",void 0)}function v(t,r,n){var i=((t,r)=>{var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf(e.altDirectorySeparator)),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),a=0===t.length?void 0:e.createTextSpan(r,t.length);return n.map((t=>{var r=t.name,n=t.kind,o=t.extension;return-1!==Math.max(r.indexOf(e.directorySeparator),r.indexOf(e.altDirectorySeparator))?{name:r,kind:n,extension:o,span:a}:{name:r,kind:n,extension:o,span:i}}))}function b(t,r,n,i,a,o){return v(r.text,r.getStart(t)+1,((t,r,n,i,a,o)=>{var c=e.normalizeSlashes(r.text),l=e.isStringLiteralLike(r)?e.getModeForUsageLocation(t,r):void 0,d=t.path,u=e.getDirectoryPath(d);return(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})(c)||!n.baseUrl&&(e.isRootedDiskPath(c)||e.isUrl(c))?((t,r,n,i,a,o)=>{var s=E(n,o);return n.rootDirs?((t,r,n,i,a,o,s)=>{var c=((t,r,n,i)=>{t=t.map((t=>e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))));var a=e.firstDefined(t,(t=>e.containsPath(t,n,r,i)?n.substr(t.length):void 0));return e.deduplicate(f(f([],t.map((t=>e.combinePaths(t,a))),!0),[n],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)})(t,a.project||o.getCurrentDirectory(),n,!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()));return e.flatMap(c,(t=>e.arrayFrom(S(r,t,i,o,s).values())))})(n.rootDirs,t,r,s,n,i,a):e.arrayFrom(S(t,r,s,i,a).values())})(c,u,n,i,d,p()):((t,r,n,i,a,o,c)=>{var l=i.baseUrl,d=i.paths,u=s(),p=E(i,o);if(l){var _=i.project||a.getCurrentDirectory(),f=e.normalizePath(e.combinePaths(_,l));S(t,f,p,a,void 0,u),d&&C(u,t,f,p,a,d)}for(var m=N(t),h=0,y=((t,r,n)=>{var i=n.getAmbientModules().map((t=>e.stripQuotes(t.name))).filter((r=>e.startsWith(r,t)));if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map((t=>e.removePrefix(t,a)))}return i})(t,m,c);h<y.length;h++){var v=y[h];u.add(g(v,"external module name",void 0))}if(I(a,i,r,m,p,u),x(i)){var b=!1;if(void 0===m)for(var D=0,T=((t,r)=>{if(!t.readFile||!t.fileExists)return e.emptyArray;for(var n=[],i=0,a=e.findPackageJsons(r,t);i<a.length;i++)for(var o=a[i],s=e.readJson(o,t),c=0,l=M;c<l.length;c++){var d=s[l[c]];if(d)for(var u in d)d.hasOwnProperty(u)&&!e.startsWith(u,"@types/")&&n.push(u)}return n})(a,r);D<T.length;D++){var w=g(T[D],"external module name",void 0);u.has(w.name)||(b=!0,u.add(w))}if(!b){var F=r=>{var n=e.combinePaths(r,"node_modules");e.tryDirectoryExists(a,n)&&S(t,n,p,a,void 0,u)};if(m&&(t=>e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeNext)(i)){var P=F;F=r=>{var i=e.getPathComponents(t);i.shift();var o=i.shift();if(!o)return P(r);if(e.startsWith(o,"@")){var s=i.shift();if(!s)return P(r);o=e.combinePaths(o,s)}var c=e.combinePaths(r,"node_modules",o),l=e.combinePaths(c,"package.json");if(e.tryFileExists(a,l)){var d=e.readJson(l,a).exports;if(d){if("object"!=typeof d||null===d)return;var _=e.getOwnKeys(d),f=i.join("/")+(i.length&&e.hasTrailingDirectorySeparator(t)?"/":""),m=n===e.ModuleKind.ESNext?["node","import","types"]:["node","require","types"];return void A(u,f,c,p,a,_,(t=>e.singleElementArray(k(d[t],m))),e.comparePatternKeys)}}return P(r)}}e.forEachAncestorDirectory(r,F)}}return e.arrayFrom(u.values())})(c,u,l,n,i,p(),a);function p(){var n=e.isStringLiteralLike(r)?e.getModeForUsageLocation(t,r):void 0;return"js"===o.importModuleSpecifierEnding||n===e.ModuleKind.ESNext?2:0}})(t,r,n,i,a,o))}function E(t,r){return void 0===r&&(r=0),{extensions:e.flatten(D(t)),includeExtensionsOption:r}}function x(t){return e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs||e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeNext}function D(t){var r=e.getSupportedExtensions(t);return x(t)?e.getSupportedExtensionsWithJsonIfResolveJsonModule(t,r):r}function S(t,r,n,i,a,o){var c;void 0===o&&(o=s()),void 0===t&&(t=""),t=e.normalizeSlashes(t),e.hasTrailingDirectorySeparator(t)||(t=e.getDirectoryPath(t)),""===t&&(t="."+e.directorySeparator),t=e.ensureTrailingDirectorySeparator(t);var l=e.resolvePath(r,t),d=e.hasTrailingDirectorySeparator(l)?l:e.getDirectoryPath(l),u=e.findPackageJson(d,i);if(u){var p=e.readJson(u,i).typesVersions;if("object"==typeof p){var _=null===(c=e.getPackageJsonTypesVersionsPaths(p))||void 0===c?void 0:c.paths;if(_){var f=e.getDirectoryPath(u);if(C(o,l.slice(e.ensureTrailingDirectorySeparator(f).length),f,n,i,_))return o}}}var m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(i,d))return o;var y=e.tryReadDirectory(i,d,n.extensions,void 0,["./*"]);if(y)for(var v=0,b=y;v<b.length;v++){var E=b[v];if(E=e.normalizePath(E),!a||0!==e.comparePaths(E,a,r,m)){var x=T(e.getBaseFileName(E),i.getCompilationSettings(),n.includeExtensionsOption),D=x.name,S=x.extension;o.add(g(D,"script",S))}}var A=e.tryGetDirectories(i,d);if(A)for(var k=0,N=A;k<N.length;k++){var w=N[k],F=e.getBaseFileName(e.normalizePath(w));"@types"!==F&&o.add(h(F))}return o}function T(t,r,n){var i=e.moduleSpecifiers.tryGetJSExtensionForFile(t,r);return 0!==n||e.fileExtensionIsOneOf(t,[".json",".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])?(e.fileExtensionIsOneOf(t,[".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])||2===n)&&i?{name:e.changeExtension(t,i),extension:i}:{name:t,extension:e.tryGetExtensionFromPath(t)}:{name:e.removeFileExtension(t),extension:e.tryGetExtensionFromPath(t)}}function C(t,r,n,i,a,o){return A(t,r,n,i,a,e.getOwnKeys(o),(e=>o[e]),((t,r)=>{var n=e.tryParsePattern(t),i=e.tryParsePattern(r),a="object"==typeof n?n.prefix.length:t.length,o="object"==typeof i?i.prefix.length:r.length;return e.compareValues(o,a)}))}function A(t,r,n,i,a,o,s,c){for(var l,d=[],u=0,p=o;u<p.length;u++){var _=p[u];if("."!==_){var f=_.replace(/^\.\//,""),m=s(_);if(m){var h=e.tryParsePattern(f);if(!h)continue;var y="object"==typeof h&&e.isPatternMatch(h,r);y&&(void 0===l||-1===c(_,l))&&(l=_,d=d.filter((e=>!e.matchedPattern))),"string"!=typeof h&&void 0!==l&&1===c(_,l)||d.push({matchedPattern:y,results:w(f,m,r,n,i,a).map((e=>g(e.name,e.kind,e.extension)))})}}}return d.forEach((e=>e.results.forEach((e=>t.add(e))))),void 0!==l}function k(t,r){if("string"==typeof t)return t;if(t&&"object"==typeof t&&!e.isArray(t))for(var n in t)if("default"===n||r.indexOf(n)>-1||e.isApplicableVersionedTypesKey(r,n))return k(t[n],r)}function N(t){return R(t)?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0}function w(t,r,n,i,a,o){if(!e.endsWith(t,"*"))return e.stringContains(t,"*")?e.emptyArray:l(t,"script");var s=t.slice(0,t.length-1),c=e.tryRemovePrefix(n,s);return void 0===c?"/"===t[t.length-2]?l(s,"directory"):e.flatMap(r,(e=>{var t;return null===(t=F("",i,e,a,o))||void 0===t?void 0:t.map((e=>{var t=e.name,r=y(e,["name"]);return m({name:s+t},r)}))})):e.flatMap(r,(e=>F(c,i,e,a,o)));function l(t,r){return e.startsWith(t,n)?[{name:e.removeTrailingDirectorySeparator(t),kind:r,extension:void 0}]:e.emptyArray}}function F(t,r,n,i,a){if(a.readDirectory){var o=e.tryParsePattern(n);if(void 0!==o&&!e.isString(o)){var s=e.resolvePath(o.prefix),c=e.hasTrailingDirectorySeparator(o.prefix)?s:e.getDirectoryPath(s),l=e.hasTrailingDirectorySeparator(o.prefix)?"":e.getBaseFileName(s),d=R(t),u=d?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0,p=d?e.combinePaths(c,l+u):c,_=e.normalizePath(o.suffix),m=e.normalizePath(e.combinePaths(r,p)),y=d?m:e.ensureTrailingDirectorySeparator(m)+l,v=_?"**/*"+_:"./*",b=e.mapDefined(e.tryReadDirectory(a,m,i.extensions,void 0,[v]),(t=>{var r,n,o,s,c,l=(r=t,o=e.normalizePath(r),s=y,c=_,void 0===(n=e.startsWith(o,s)&&e.endsWith(o,c)?o.slice(s.length,o.length-c.length):void 0)?void 0:P(n));if(l){if(R(l))return h(e.getPathComponents(P(l))[1]);var d=T(l,a.getCompilationSettings(),i.includeExtensionsOption);return g(d.name,"script",d.extension)}})),E=_?e.emptyArray:e.mapDefined(e.tryGetDirectories(a,m),(e=>"node_modules"===e?void 0:h(e)));return f(f([],b,!0),E,!0)}}}function P(t){return t[0]===e.directorySeparator?t.slice(1):t}function I(t,r,n,i,a,o){void 0===o&&(o=s());for(var c=new e.Map,l=0,d=e.tryAndIgnoreErrors((()=>e.getEffectiveTypeRoots(r,t)))||e.emptyArray;l<d.length;l++)f(d[l]);for(var u=0,p=e.findPackageJsons(n,t);u<p.length;u++){var _=p[u];f(e.combinePaths(e.getDirectoryPath(_),"node_modules/@types"))}return o;function f(n){if(e.tryDirectoryExists(t,n))for(var s=0,l=e.tryGetDirectories(t,n);s<l.length;s++){var d=l[s],u=e.unmangleScopedPackageName(d);if(!r.types||e.contains(r.types,u))if(void 0===i)c.has(u)||(o.add(g(u,"external module name",void 0)),c.set(u,!0));else{var p=e.combinePaths(n,d),_=e.tryRemoveDirectoryPrefix(i,u,e.hostGetCanonicalFileName(t));void 0!==_&&S(_,p,a,t,void 0,o)}}}}r.getStringLiteralCompletions=(r,n,i,a,o,s,l,u)=>{if(e.isInReferenceComment(r,n))return(p=((t,r,n,i)=>{var a=e.getTokenAtPosition(t,r),o=e.getLeadingCommentRanges(t.text,a.pos),s=o&&e.find(o,(e=>r>=e.pos&&r<=e.end));if(s){var c=t.text.slice(s.pos,r),l=O.exec(c);if(l){var d=l[1],u=l[2],p=l[3],_=e.getDirectoryPath(t.path),f="path"===u?S(p,_,E(n,1),i,t.path):"types"===u?I(i,n,_,N(p),E(n)):e.Debug.fail();return v(p,s.pos+d.length,e.arrayFrom(f.values()))}}})(r,n,a,o))&&c(p);if(e.isInString(r,n,i)){if(!i||!e.isStringLiteralLike(i))return;var p;return((r,n,i,a,o,s,l,d)=>{if(void 0!==r){var u=e.createTextSpanFromStringLiteralLikeContent(n);switch(r.kind){case 0:return c(r.paths);case 1:var p=e.createSortedArray();return t.getCompletionEntriesFromSymbols(r.symbols,p,n,n,i,i,a,o,99,s,4,d,l,void 0),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,optionalReplacementSpan:u,entries:p};case 2:return p=r.types.map((r=>({name:r.value,kindModifiers:"",kind:"string",sortText:t.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(n)}))),{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,optionalReplacementSpan:u,entries:p};default:return e.Debug.assertNever(r)}}})(p=d(r,i,n,s.getTypeChecker(),a,o,u),i,r,o,s,l,a,u)}},r.getStringLiteralCompletionDetails=(r,n,i,a,o,s,c,u,p)=>{if(a&&e.isStringLiteralLike(a)){var _=d(n,a,i,o,s,c,p);return _&&((r,n,i,a,o,s)=>{switch(i.kind){case 0:return(c=e.find(i.paths,(e=>e.name===r)))&&t.createCompletionDetails(r,l(c.extension),c.kind,[e.textPart(r)]);case 1:var c;return(c=e.find(i.symbols,(e=>e.name===r)))&&t.createCompletionDetailsForSymbol(c,o,a,n,s);case 2:return e.find(i.types,(e=>e.value===r))?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(i)}})(r,a,_,n,o,u)}},(e=>{e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"})(i||(i={})),(e=>{e[e.Exclude=0]="Exclude",e[e.Include=1]="Include",e[e.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"})(a||(a={}));var O=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,M=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function R(t){return e.stringContains(t,e.directorySeparator)}})((t=e.Completions||(e.Completions={})).StringCompletions||(t.StringCompletions={}))})(p),function(e){!function(t){var r,n,i,a,o,s;function c(e){return!!(e&&4&e.kind)}function l(e){return!(!e||32!==e.kind)}function d(e){return(c(e)||l(e))&&!!e.isFromPackageJson}function u(e){return!!(e&&64&e.kind)}function p(e){return!!(e&&128&e.kind)}function _(r,n,i,a,o,s,c,l,d){var u,p,_,f=e.timestamp(),m=c||e.moduleResolutionRespectsExports(e.getEmitModuleResolutionKind(a.getCompilerOptions())),g=!1,h=0,y=0,v=0,b=0,E=d({tryResolve(e,r,n){if(n){var a=i.getModuleSpecifierForBestExportInfo(e,r,o,l);return a&&h++,a||"failed"}var c=m||s.allowIncompleteCompletions&&y<t.moduleSpecifierResolutionLimit,d=!c&&s.allowIncompleteCompletions&&b<t.moduleSpecifierResolutionCacheAttemptLimit,u=c||d?i.getModuleSpecifierForBestExportInfo(e,r,o,l,d):void 0;return(!c&&!d||d&&!u)&&(g=!0),y+=(null==u?void 0:u.computedWithoutCacheCount)||0,v+=e.length-((null==u?void 0:u.computedWithoutCacheCount)||0),d&&b++,u||(m?"failed":"skipped")},skippedAny:()=>g,resolvedAny:()=>y>0,resolvedBeyondLimit:()=>y>t.moduleSpecifierResolutionLimit}),x=b?" (".concat((v/b*100).toFixed(1),"% hit rate)"):"";return null===(u=n.log)||void 0===u||u.call(n,"".concat(r,": resolved ").concat(y," module specifiers, plus ").concat(h," ambient and ").concat(v," from cache").concat(x)),null===(p=n.log)||void 0===p||p.call(n,"".concat(r,": response is ").concat(g?"incomplete":"complete")),null===(_=n.log)||void 0===_||_.call(n,"".concat(r,": ").concat(e.timestamp()-f)),E}function f(t,r){var n,i,a=e.compareStringsCaseSensitiveUI(t.sortText,r.sortText);return 0===a&&(a=e.compareStringsCaseSensitiveUI(t.name,r.name)),0===a&&(null===(n=t.data)||void 0===n?void 0:n.moduleSpecifier)&&(null===(i=r.data)||void 0===i?void 0:i.moduleSpecifier)&&(a=e.compareNumberOfDirectorySeparators(t.data.moduleSpecifier,r.data.moduleSpecifier)),0===a?-1:a}function g(e){return!!(null==e?void 0:e.moduleSpecifier)}function h(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function y(e,t,r){return{kind:4,keywordCompletions:W(e,t),isNewIdentifierLocation:r}}function v(t){return 79===(null==t?void 0:t.kind)?e.createTextSpanFromNode(t):void 0}function b(t,r){return!e.isSourceFileJS(t)||!!e.isCheckJsEnabledForFile(t,r)}function E(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function x(t,r,n){return"object"==typeof n?e.pseudoBigIntToString(n)+"n":e.isString(n)?e.quote(t,r,n):JSON.stringify(n)}function D(e,r,n){return{name:x(e,r,n),kind:"string",kindModifiers:"",sortText:t.SortText.LocationPriority}}function S(n,i,a,o,s,u,_,f,m,g,h,y,v,b,E,x,D,S,C,k,P,I){var O,M,R,L,B,U,j,V,z=e.getReplacementSpanForContextToken(a),H=F(h),W=f.getTypeChecker(),K=h&&(e=>!!(16&e.kind))(h),J=h&&(e=>!!(2&e.kind))(h)||g;if(h&&(e=>!!(1&e.kind))(h))R=g?"this".concat(K?"?.":"","[").concat(N(u,S,m),"]"):"this".concat(K?"?.":".").concat(m);else if((J||K)&&v){R=J?"[".concat(g?N(u,S,m):m,"]"):m,(K||v.questionDotToken)&&(R="?.".concat(R));var G=e.findChildOfKind(v,24,u)||e.findChildOfKind(v,28,u);if(!G)return;var $=e.startsWith(m,v.name.text)?v.name.end:G.end;z=e.createTextSpanFromBounds(G.getStart(u),$)}if(b&&(void 0===R&&(R=m),R="{".concat(R,"}"),"boolean"!=typeof b&&(z=e.createTextSpanFromNode(b,u))),h&&(e=>!!(8&e.kind))(h)&&v){void 0===R&&(R=m);var q=e.findPrecedingToken(v.pos,u),X="";q&&e.positionIsASICandidate(q.end,q.parent,u)&&(X=";"),X+="(await ".concat(v.expression.getText(),")"),R=g?"".concat(X).concat(R):"".concat(X).concat(K?"?.":".").concat(R),z=e.createTextSpanFromBounds(v.getStart(u),v.end)}if(l(h)&&(U=[e.textPart(h.moduleSpecifier)],E&&(R=(O=((t,r,n,i,a,o,s)=>{var c,l,d,u=r.getSourceFile(),p=e.createTextSpanFromNode(e.findAncestor(r,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration))||r,u),_=e.quote(u,s,i.moduleSpecifier),f=i.isDefaultExport?1:"export="===i.exportName?2:0,m=s.includeCompletionsWithSnippetText?"$1":"",g=e.codefix.getImportKind(u,f,o,!0),h=(null===(l=null===(c=e.tryCast(r,e.isImportDeclaration))||void 0===c?void 0:c.importClause)||void 0===l?void 0:l.isTypeOnly)||(null===(d=e.tryCast(r,e.isImportEqualsDeclaration))||void 0===d?void 0:d.isTypeOnly),y=ne(r,n),v=h?" ".concat(e.tokenToString(152)," "):" ",b=y?"".concat(e.tokenToString(152)," "):"",E=a?";":"";switch(g){case 3:return{replacementSpan:p,insertText:"import".concat(v).concat(e.escapeSnippetText(t)).concat(m," = require(").concat(_,")").concat(E)};case 1:return{replacementSpan:p,insertText:"import".concat(v).concat(e.escapeSnippetText(t)).concat(m," from ").concat(_).concat(E)};case 2:return{replacementSpan:p,insertText:"import".concat(v,"* as ").concat(e.escapeSnippetText(t)," from ").concat(_).concat(E)};case 0:return{replacementSpan:p,insertText:"import".concat(v,"{ ").concat(b).concat(e.escapeSnippetText(t)).concat(m," } from ").concat(_).concat(E)}}})(m,E,o,h,x,D,S)).insertText,z=O.replacementSpan,B=!!S.includeCompletionsWithSnippetText||void 0)),64===(null==h?void 0:h.kind)&&(j=!0),S.includeCompletionsWithClassMemberSnippets&&S.includeCompletionsWithInsertText&&3===C&&((t,r)=>!e.isInJSFile(r)&&!!(106500&t.flags)&&(e.isClassLike(r)||r.parent&&r.parent.parent&&e.isClassElement(r.parent)&&r===r.parent.name&&e.isClassLike(r.parent.parent)||r.parent&&e.isSyntaxList(r)&&e.isClassLike(r.parent)))(n,s)){var Y=void 0;R=(M=T(_,f,D,S,m,n,s,o,k)).insertText,B=M.isSnippet,Y=M.importAdder,z=M.replacementSpan,i=t.SortText.ClassMemberSnippets,(null==Y?void 0:Y.hasFixes())&&(j=!0,H=r.ClassMemberSnippet)}if(h&&p(h)&&(R=h.insertText,B=h.isSnippet,V=h.labelDetails,S.useLabelDetailsInCompletionEntries||(m+=V.detail,V=void 0),H=r.ObjectLiteralMethodSnippet,i=t.SortText.SortBelow(i)),P&&!I&&S.includeCompletionsWithSnippetText&&S.jsxAttributeCompletionStyle&&"none"!==S.jsxAttributeCompletionStyle){var Q="braces"===S.jsxAttributeCompletionStyle,Z=W.getTypeOfSymbolAtLocation(n,s);"auto"!==S.jsxAttributeCompletionStyle||528&Z.flags||1048576&Z.flags&&e.find(Z.types,(e=>!!(528&e.flags)))||(402653316&Z.flags||1048576&Z.flags&&e.every(Z.types,(e=>!!(402686084&e.flags)))?(R="".concat(e.escapeSnippetText(m),"=").concat(e.quote(u,S,"$1")),B=!0):Q=!0),Q&&(R="".concat(e.escapeSnippetText(m),"={$1}"),B=!0)}if(void 0===R||S.includeCompletionsWithInsertText)return(c(h)||l(h))&&(L=A(h),j=!E),{name:m,kind:e.SymbolDisplay.getSymbolKind(W,n,s),kindModifiers:e.SymbolDisplay.getSymbolModifiers(W,n),sortText:i,source:H,hasAction:!!j||void 0,isRecommended:w(n,y,W)||void 0,insertText:R,replacementSpan:z,sourceDisplay:U,labelDetails:V,isSnippet:B,isPackageJsonImport:d(h)||void 0,isImportStatementCompletion:!!E||void 0,data:L}}function T(t,r,n,i,a,o,s,c,l){var d,u,p=e.findAncestor(s,e.isClassLike);if(!p)return{insertText:a};var _,f=a,m=r.getTypeChecker(),g=s.getSourceFile(),h=C({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(n,e.maybeBind(t,t.getNewLine)))}),y=e.codefix.createImportAdder(g,r,i,t);if(i.includeCompletionsWithSnippetText){d=!0;var v=e.factory.createEmptyStatement();_=e.factory.createBlock([v],!0),e.setSnippetElement(v,{kind:0,order:0})}else _=e.factory.createBlock([],!0);var b=0,E=(t=>{if(!t)return{modifiers:0};var r,n,i,a=0;return i=t,(n=e.isModifier(i)?i.kind:e.isIdentifier(i)&&i.originalKeywordKind&&e.isModifierKind(i.originalKeywordKind)?i.originalKeywordKind:void 0)&&(a|=e.modifierToFlag(n),r=e.createTextSpanFromNode(t)),e.isPropertyDeclaration(t.parent)&&(a|=125951&e.modifiersToFlags(t.parent.modifiers),r=e.createTextSpanFromNode(t.parent)),{modifiers:a,span:r}})(c),x=E.modifiers,D=E.span,S=!!(128&x),T=[];if(e.codefix.addNewNodeForMemberSymbol(o,p,g,{program:r,host:t},i,y,(t=>{var r=0;S&&(r|=128),e.isClassElement(t)&&1===m.getMemberOverrideModifierStatus(p,t)&&(r|=16384),T.length||(b=t.modifierFlagsCache|r|x),t=e.factory.updateModifiers(t,b),T.push(t)}),_,2,S),T.length){var A=131073;u=D,f=l?h.printAndFormatSnippetList(A,e.factory.createNodeArray(T),g,l):h.printSnippetList(A,e.factory.createNodeArray(T),g)}return{insertText:f,isSnippet:d,importAdder:y,replacementSpan:u}}function C(t){var r,n=e.textChanges.createWriter(e.getNewLineCharacter(t)),i=e.createPrinter(t,n),a=m(m({},n),{write:e=>o(e,(()=>n.write(e))),nonEscapingWrite:n.write,writeLiteral:e=>o(e,(()=>n.writeLiteral(e))),writeStringLiteral:e=>o(e,(()=>n.writeStringLiteral(e))),writeSymbol:(e,t)=>o(e,(()=>n.writeSymbol(e,t))),writeParameter:e=>o(e,(()=>n.writeParameter(e))),writeComment:e=>o(e,(()=>n.writeComment(e))),writeProperty:e=>o(e,(()=>n.writeProperty(e)))});return{printSnippetList(t,n,i){var a=s(t,n,i);return r?e.textChanges.applyChanges(a,r):a},printAndFormatSnippetList(t,n,i,a){var o={text:s(t,n,i),getLineAndCharacterOfPosition(t){return e.getLineAndCharacterOfPosition(this,t)}},c=e.getFormatCodeSettingsForWriting(a,i),l=e.flatMap(n,(t=>{var r=e.textChanges.assignPositionsToNode(t);return e.formatting.formatNodeGivenIndentation(r,o,i.languageVariant,0,0,m(m({},a),{options:c}))})),d=r?e.stableSort(e.concatenate(l,r),((t,r)=>e.compareTextSpans(t.span,r.span))):l;return e.textChanges.applyChanges(o.text,d)}};function o(t,i){var a=e.escapeSnippetText(t);if(a!==t){var o=n.getTextPos();i();var s=n.getTextPos();r=e.append(r||(r=[]),{newText:a,span:{start:o,length:s-o}})}else i()}function s(e,t,n){return r=void 0,a.clear(),i.writeList(e,t,n,a),a.getText()}}function A(t){var r=t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),n=!!t.isFromPackageJson||void 0;return l(t)?{exportName:t.exportName,moduleSpecifier:t.moduleSpecifier,ambientModuleName:r,fileName:t.fileName,isPackageJsonImport:n}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),isPackageJsonImport:!!t.isFromPackageJson||void 0}}function k(e,t,r){var n="default"===e.exportName,i=!!e.isPackageJsonImport;return g(e)?{kind:32,exportName:e.exportName,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:n,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:n,isFromPackageJson:i}}function N(t,r,n){return/^\d+$/.test(n)?n:e.quote(t,r,n)}function w(e,t,r){return e===t||!!(1048576&e.flags)&&r.getExportSymbolOfSymbol(e)===t}function F(t){return c(t)?e.stripQuotes(t.moduleSymbol.name):l(t)?t.moduleSpecifier:1===(null==t?void 0:t.kind)?r.ThisProperty:64===(null==t?void 0:t.kind)?r.TypeOnlyAlias:void 0}function P(r,n,i,a,o,s,c,l,d,_,m,g,h,y,v,b,E,x,D,T,C,A,k,N){for(var w,F,P=e.timestamp(),I=(F=o,e.findAncestor(F,(t=>e.isFunctionBlock(t)||(t=>t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t)(t)||e.isBindingPattern(t)?"quit":e.isVariableDeclaration(t)))),O=e.probablyUsesSemicolons(s),M=l.getTypeChecker(),R=new e.Map,L=0;L<r.length;L++){var B=r[L],U=null==C?void 0:C[L],j=V(B,d,U,m,!!E);if(j&&(!R.get(j.name)||U&&p(U))&&(1!==m||!A||G(B,A))){var z=j.name,H=j.needsConvertPropertyAccess,W=null!==(w=null==A?void 0:A[e.getSymbolId(B)])&&void 0!==w?w:t.SortText.LocationPriority,K=S(B,se(B,M)?t.SortText.Deprecated(W):W,i,a,o,s,c,l,z,H,U,T,b,x,D,O,h,g,m,y,k,N);if(K){var J=(!U||u(U))&&!(void 0===B.parent&&!e.some(B.declarations,(e=>e.getSourceFile()===o.getSourceFile())));R.set(z,J),e.insertSorted(n,K,f,!0)}}}return _("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-P)),{has:e=>R.has(e),add:e=>R.set(e,!0)};function G(r,n){var i=r.flags;if(!e.isSourceFile(o)){if(e.isExportAssignment(o.parent))return!0;if(I&&r.valueDeclaration===I)return!1;var a=e.skipAlias(r,M);if(s.externalModuleIndicator&&!h.allowUmdGlobalAccess&&n[e.getSymbolId(r)]===t.SortText.GlobalsOrKeywords&&(n[e.getSymbolId(a)]===t.SortText.AutoImportSuggestions||n[e.getSymbolId(a)]===t.SortText.LocationPriority))return!1;if(i|=e.getCombinedLocalAndExportSymbolFlags(a),e.isInRightSideOfInternalImportEqualsDeclaration(o))return!!(1920&i);if(v)return oe(r,M)}return!!(111551&i)}}function I(t,n,i,a,o,s,c){if(o.data){var l=j(o.name,o.data,t,s);if(l){var d=U(a,i),u=d.contextToken,p=d.previousToken;return{type:"symbol",symbol:l.symbol,location:e.getTouchingPropertyName(i,a),previousToken:p,contextToken:u,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:l.origin}}}var _=t.getCompilerOptions(),f=B(t,n,i,_,a,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,s,void 0);if(!f)return{type:"none"};if(0!==f.kind)return{type:"request",request:f};var m=f.symbols,g=f.literals,h=f.location,y=f.completionKind,v=f.symbolToOriginInfoMap,b=f.contextToken,E=f.previousToken,D=f.isJsxInitializer,S=f.isTypeOnlyLocation,T=e.find(g,(e=>x(i,c,e)===o.name));return void 0!==T?{type:"literal",literal:T}:e.firstDefined(m,((t,n)=>{var i=v[n],a=V(t,e.getEmitScriptTarget(_),i,y,f.isJsxIdentifierExpected);return a&&a.name===o.name&&(o.source===r.ClassMemberSnippet&&106500&t.flags||o.source===r.ObjectLiteralMethodSnippet&&8196&t.flags||F(i)===o.source)?{type:"symbol",symbol:t,location:h,origin:i,contextToken:b,previousToken:E,isJsxInitializer:D,isTypeOnlyLocation:S}:void 0}))||{type:"none"}}function O(t,r,n){return R(t,"",r,[e.displayPart(t,n)])}function M(t,r,n,i,a,o,s){var c=r.runWithCancellationToken(a,(r=>e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,n,i,i,7))),l=c.displayParts,d=c.documentation,u=c.symbolKind,p=c.tags;return R(t.name,e.SymbolDisplay.getSymbolModifiers(r,t),u,l,d,p,o,s)}function R(e,t,r,n,i,a,o,s){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:o,source:s,sourceDisplay:s}}function L(t,r,n){var i=n.getAccessibleSymbolChain(t,r,67108863,!1);return i?e.first(i):t.parent&&((e=>{var t;return!!(null===(t=e.declarations)||void 0===t?void 0:t.some((e=>305===e.kind)))})(t.parent)?t:L(t.parent,r,n))}function B(r,n,i,a,o,s,c,l,d,u){var p=r.getTypeChecker(),f=b(i,a),g=e.timestamp(),h=e.getTokenAtPosition(i,o);n("getCompletionData: Get current token: "+(e.timestamp()-g)),g=e.timestamp();var v=e.isInComment(i,o,h);n("getCompletionData: Is inside comment: "+(e.timestamp()-g));var E=!1,x=!1;if(v){if(e.hasDocComment(i,o)){if(64===i.text.charCodeAt(o-1))return{kind:1};var D=e.getLineStartPositionForPosition(o,i);if(!/[^\*|\s(/)]/.test(i.text.substring(D,o)))return{kind:2}}var S=((t,r)=>e.findAncestor(t,(t=>!(!e.isJSDocTag(t)||!e.rangeContainsPosition(t,r))||!!e.isJSDoc(t)&&"quit")))(h,o);if(S){if(S.tagName.pos<=o&&o<=S.tagName.end)return{kind:1};var T=(t=>{if((e=>{switch(e.kind){case 340:case 347:case 341:case 343:case 345:return!0;case 344:return!!e.constraint;default:return!1}})(t)){var r=e.isJSDocTemplateTag(t)?t.constraint:t.typeExpression;return r&&309===r.kind?r:void 0}})(S);if(T&&((h=e.getTokenAtPosition(i,o))&&(e.isDeclarationName(h)||347===h.parent.kind&&h.parent.name===h)||(E=Le(T))),!E&&e.isJSDocParameterTag(S)&&(e.nodeIsMissing(S.name)||S.name.pos<=o&&o<=S.name.end))return{kind:3,tag:S}}if(!E)return void n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}g=e.timestamp();var A=!E&&e.isSourceFileJS(i),k=U(o,i),N=k.previousToken,w=k.contextToken;n("getCompletionData: Get previous token: "+(e.timestamp()-g));var F,P,I,O=h,M=!1,R=!1,B=!1,j=!1,z=!1,H=!1,W=e.getTouchingPropertyName(i,o),K=0,$=!1,Y=0;if(w){var ie=re(w);if($=ie.isNewIdentifierLocation,ie.keywordCompletion){if(ie.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(I=ie.keywordCompletion,{name:e.tokenToString(I),kind:"keyword",kindModifiers:"",sortText:t.SortText.GlobalsOrKeywords})],isNewIdentifierLocation:$};K=(t=>{switch(t){case 152:return 8;default:e.Debug.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}})(ie.keywordCompletion)}if(ie.replacementNode&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(P=ie.replacementNode,Y|=2),!P&&(t=>{var r=e.timestamp(),a=(t=>(e.isRegularExpressionLiteral(t)||e.isStringTextContainingNode(t))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(t)),o)||o===t.end&&(!!t.isUnterminated||e.isRegularExpressionLiteral(t))))(t)||(t=>{var r=t.parent,n=r.kind;switch(t.kind){case 27:return 254===n||(t=>255===t.parent.kind&&!e.isPossiblyTypeArgumentPosition(t,i,p))(t)||237===n||260===n||Ie(n)||258===n||202===n||259===n||e.isClassLike(r)&&!!r.typeParameters&&r.typeParameters.end>=t.pos;case 24:return 202===n;case 58:return 203===n;case 22:return 202===n;case 20:return 292===n||Ie(n);case 18:return 260===n;case 29:return 257===n||226===n||258===n||259===n||e.isFunctionLikeKind(n);case 124:return 167===n&&!e.isClassLike(r.parent);case 25:return 164===n||!!r.parent&&202===r.parent.kind;case 123:case 121:case 122:return 164===n&&!e.isConstructorDeclaration(r.parent);case 127:return 270===n||275===n||268===n;case 136:case 149:return!ee(t);case 79:if(270===n&&t===r.name&&"type"===t.text)return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 137:return!0;case 152:return 270!==n;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(G(q(t))&&ee(t))return!1;if(Fe(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(q(t))||Le(t)))return!1;switch(q(t)){case 126:case 84:case 85:case 135:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 131:return e.isPropertyDeclaration(t.parent)}if(e.findAncestor(t.parent,e.isClassLike)&&t===N&&Pe(t,o))return!1;var a=e.getAncestor(t.parent,167);if(a&&t!==N&&e.isClassLike(N.parent.parent)&&o<=N.end){if(Pe(t,N.end))return!1;if(63!==t.kind&&(e.isInitializedProperty(a)||e.hasType(a)))return!0}return e.isDeclarationName(t)&&!e.isShorthandPropertyAssignment(t.parent)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==N||o>N.end))})(t)||(e=>{if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1})(t)||(e=>{if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(W===e.parent&&(280===W.kind||279===W.kind))return!1;if(280===e.parent.kind)return 280!==W.parent.kind;if(281===e.parent.kind||279===e.parent.kind)return!!e.parent.parent&&278===e.parent.parent.kind}return!1})(t)||e.isBigIntLiteral(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),a})(w))return n("Returning an empty list because completion was requested in an invalid position."),K?y(K,A,we()):void 0;var ae=w.parent;if(24===w.kind||28===w.kind)switch(M=24===w.kind,R=28===w.kind,ae.kind){case 206:O=(F=ae).expression;var se=e.getLeftmostAccessExpression(F);if(e.nodeIsMissing(se)||(e.isCallExpression(O)||e.isFunctionLike(O))&&O.end===w.pos&&O.getChildCount(i)&&21!==e.last(O.getChildren(i)).kind)return;break;case 161:O=ae.left;break;case 261:O=ae.name;break;case 200:O=ae;break;case 231:O=ae.getFirstToken(i),e.Debug.assert(100===O.kind||103===O.kind);break;default:return}else if(!P&&1===i.languageVariant){if(ae&&206===ae.kind&&(w=ae,ae=ae.parent),h.parent===W)switch(h.kind){case 31:278!==h.parent.kind&&280!==h.parent.kind||(W=h);break;case 43:279===h.parent.kind&&(W=h)}switch(ae.kind){case 281:43===w.kind&&(j=!0,W=w);break;case 221:if(!te(ae))break;case 279:case 278:case 280:H=!0,29===w.kind&&(B=!0,W=w);break;case 288:case 287:19===N.kind&&31===h.kind&&(H=!0);break;case 285:if(ae.initializer===N&&N.end<o){H=!0;break}switch(N.kind){case 63:z=!0;break;case 79:H=!0,ae!==N.parent&&!ae.initializer&&e.findChildOfKind(ae,63,i)&&(z=N)}}}}var le,de=e.timestamp(),ue=5,pe=!1,_e=!1,fe=[],me=[],ge=[],he=new e.Map,ye=E||!!P&&e.isTypeOnlyImportOrExportDeclaration(W.parent)||!(t=>t&&(112===t.kind&&(181===t.parent.kind||e.isTypeOfExpression(t.parent))||128===t.kind&&177===t.parent.kind))(w)&&(e.isPossiblyTypeArgumentPosition(w,i,p)||e.isPartOfTypeNode(W)||(t=>{if(t){var r=t.parent.kind;switch(t.kind){case 58:return 167===r||166===r||164===r||254===r||e.isFunctionLikeKind(r);case 63:return 259===r;case 127:return 229===r;case 29:return 178===r||211===r;case 94:return 163===r}}return!1})(w)),ve=e.memoizeOne((t=>e.createModuleSpecifierResolutionHost(t?l.getPackageJsonAutoImportProvider():r,l)));if(M||R)!(()=>{ue=2;var t,r,n=e.isLiteralImportTypeNode(O),a=E||n&&!O.isTypeOf||e.isPartOfTypeNode(O.parent)||e.isPossiblyTypeArgumentPosition(w,i,p),o=e.isInRightSideOfInternalImportEqualsDeclaration(O);if(e.isEntityName(O)||n||e.isPropertyAccessExpression(O)){var c=e.isModuleDeclaration(O.parent);c&&($=!0);var l=p.getSymbolAtLocation(O);if(l&&1920&(l=e.skipAlias(l,p)).flags){var d=p.getExportsOfModule(l);e.Debug.assertEachIsDefined(d,"getExportsOfModule() should all be defined");for(var u=e=>p.isValidPropertyAccess(n?O:O.parent,e.name),_=e=>oe(e,p),f=c?e=>{var t;return!!(1920&e.flags)&&!(null===(t=e.declarations)||void 0===t?void 0:t.every((e=>e.parent===O.parent)))}:o?e=>_(e)||u(e):a?_:u,m=0,g=d;m<g.length;m++){var h=g[m];f(h)&&fe.push(h)}if(!a&&l.declarations&&l.declarations.some((e=>305!==e.kind&&261!==e.kind&&260!==e.kind))){var y=!1;(t=p.getTypeOfSymbolAtLocation(l,O).getNonOptionalType()).isNullableType()&&((r=M&&!R&&!1!==s.includeAutomaticOptionalChainCompletions)||R)&&(t=t.getNonNullableType(),r&&(y=!0)),Te(t,!!(32768&O.flags),y)}return}}a||(p.tryGetThisTypeAt(O,!1),y=!1,(t=p.getTypeAtLocation(O).getNonOptionalType()).isNullableType()&&((r=M&&!R&&!1!==s.includeAutomaticOptionalChainCompletions)||R)&&(t=t.getNonNullableType(),r&&(y=!0)),Te(t,!!(32768&O.flags),y))})();else if(B)fe=p.getJsxIntrinsicTagNamesAt(W),e.Debug.assertEachIsDefined(fe,"getJsxIntrinsicTagNames() should all be defined"),ke(),ue=1,K=0;else if(j){var be=w.parent.parent.openingElement.tagName,Ee=p.getSymbolAtLocation(be);Ee&&(fe=[Ee]),ue=1,K=0}else if(!ke())return K?y(K,A,$):void 0;n("getCompletionData: Semantic work: "+(e.timestamp()-de));var xe=N&&((t,r,n,i)=>{var a=t.parent;switch(t.kind){case 79:return e.getContextualTypeFromParent(t,i);case 63:switch(a.kind){case 254:return i.getContextualType(a.initializer);case 221:return i.getTypeAtLocation(a.left);case 285:return i.getContextualTypeForJsxAttribute(a);default:return}case 103:return i.getContextualType(a);case 82:var o=e.tryCast(a,e.isCaseClause);return o?e.getSwitchedType(o,i):void 0;case 18:return!e.isJsxExpression(a)||e.isJsxElement(a.parent)||e.isJsxFragment(a.parent)?void 0:i.getContextualTypeForJsxAttribute(a.parent);default:var s=e.SignatureHelp.getArgumentInfoForCompletions(t,r,n);return s?i.getContextualTypeForArgumentAtIndex(s.invocation,s.argumentIndex+(27===t.kind?1:0)):e.isEqualityOperatorKind(t.kind)&&e.isBinaryExpression(a)&&e.isEqualityOperatorKind(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(t)}})(N,o,i,p),De=e.mapDefined(xe&&(xe.isUnion()?xe.types:[xe]),(e=>!e.isLiteral()||1024&e.flags?void 0:e.value)),Se=N&&xe&&((t,r,n)=>e.firstDefined(r&&(r.isUnion()?r.types:[r]),(r=>{var i=r&&r.symbol;return i&&424&i.flags&&!e.isAbstractConstructorSymbol(i)?L(i,t,n):void 0})))(N,xe,p);return{kind:0,symbols:fe,completionKind:ue,isInSnippetScope:x,propertyAccessToConvert:F,isNewIdentifierLocation:$,location:W,keywordFilters:K,literals:De,symbolToOriginInfoMap:me,recommendedCompletion:Se,previousToken:N,contextToken:w,isJsxInitializer:z,insideJsDocTagTypeExpression:E,symbolToSortTextMap:ge,isTypeOnlyLocation:ye,isJsxIdentifierExpected:H,isRightOfOpenTag:B,importCompletionNode:P,hasUnresolvedAutoImports:_e,flags:Y};function Te(t,r,n){$=!!t.getStringIndexType(),R&&e.some(t.getCallSignatures())&&($=!0);var i=200===O.kind?O:O.parent;if(f)for(var a=0,o=t.getApparentProperties();a<o.length;a++){var c=o[a];p.isValidPropertyAccessForCompletions(i,t,c)&&Ce(c,!1,n)}else fe.push.apply(fe,e.filter(Q(t,p),(e=>p.isValidPropertyAccessForCompletions(i,t,e))));if(r&&s.includeCompletionsWithInsertText){var l=p.getPromisedTypeOfPromise(t);if(l)for(var d=0,u=l.getApparentProperties();d<u.length;d++)c=u[d],p.isValidPropertyAccessForCompletions(i,l,c)&&Ce(c,!0,n)}}function Ce(n,a,c){var d,u=e.firstDefined(n.declarations,(t=>e.tryCast(e.getNameOfDeclaration(t),e.isComputedPropertyName)));if(u){var _=Ae(u.expression),f=_&&p.getSymbolAtLocation(_),m=f&&L(f,w,p);if(m&&e.addToSeen(he,e.getSymbolId(m))){var g=fe.length;fe.push(m);var h=m.parent;if(h&&e.isExternalModuleSymbol(h)&&p.tryGetMemberInModuleExportsAndProperties(m.name,h)===m){var y=e.isExternalModuleNameRelative(e.stripQuotes(h.name))?null===(d=e.getSourceFileOfModule(h))||void 0===d?void 0:d.fileName:void 0,v=((le||(le=e.codefix.createImportSpecifierResolver(i,r,l,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:y,isFromPackageJson:!1,moduleSymbol:h,symbol:m,targetFlags:e.skipAlias(m,p).flags}],m.name,o,e.isValidTypeOnlyAliasUseSite(W))||{}).moduleSpecifier;if(v){var b={kind:D(6),moduleSymbol:h,isDefaultExport:!1,symbolName:m.name,exportName:m.name,fileName:y,moduleSpecifier:v};me[g]=b}}else me[g]={kind:D(2)}}else s.includeCompletionsWithInsertText&&(x(n),E(n),fe.push(n))}else x(n),E(n),fe.push(n);function E(r){(t=>!!(t.valueDeclaration&&32&e.getEffectiveModifierFlags(t.valueDeclaration)&&e.isClassLike(t.valueDeclaration.parent)))(r)&&(ge[e.getSymbolId(r)]=t.SortText.LocalDeclarationPriority)}function x(t){s.includeCompletionsWithInsertText&&(a&&e.addToSeen(he,e.getSymbolId(t))?me[fe.length]={kind:D(8)}:c&&(me[fe.length]={kind:16}))}function D(e){return c?16|e:e}}function Ae(t){return e.isIdentifier(t)?t:e.isPropertyAccessExpression(t)?Ae(t.expression):void 0}function ke(){return 1===((()=>{var t=(t=>{if(t){var r=t.parent;switch(t.kind){case 18:if(e.isTypeLiteralNode(r))return r;break;case 26:case 27:case 79:if(166===r.kind&&e.isTypeLiteralNode(r.parent))return r.parent}}})(w);if(!t)return 0;var r=(e.isIntersectionTypeNode(t.parent)?t.parent:void 0)||t,n=Z(r,p);if(!n)return 0;var i=p.getTypeFromTypeNode(r),a=Q(n,p),o=Q(i,p),s=new e.Set;return o.forEach((e=>s.add(e.escapedName))),fe=e.concatenate(fe,e.filter(a,(e=>!s.has(e.escapedName)))),ue=0,$=!0,1})()||(()=>{var n,i,o,c,u=fe.length,_=(t=>{if(t){var r=t.parent;switch(t.kind){case 18:case 27:if(e.isObjectLiteralExpression(r)||e.isObjectBindingPattern(r))return r;break;case 41:return e.isMethodDeclaration(r)?e.tryCast(r.parent,e.isObjectLiteralExpression):void 0;case 79:return"async"===t.text&&e.isShorthandPropertyAssignment(t.parent)?t.parent.parent:void 0}}})(w);if(!_)return 0;if(ue=0,205===_.kind){var f=((t,r)=>{var n=r.getContextualType(t);if(n)return n;var i=e.walkUpParenthesizedExpressions(t.parent);return e.isBinaryExpression(i)&&63===i.operatorToken.kind&&t===i.left?r.getTypeAtLocation(i):e.isExpression(i)?r.getContextualType(i):void 0})(_,p);if(void 0===f)return 33554432&_.flags?2:(pe=!0,0);var g=p.getContextualType(_,4),h=(g||f).getStringIndexType(),y=(g||f).getNumberIndexType();if($=!!h||!!y,n=X(f,g,_,p),i=_.properties,0===n.length&&!y)return pe=!0,0}else{e.Debug.assert(201===_.kind),$=!1;var v=e.getRootDeclaration(_.parent);if(!e.isVariableLike(v))return e.Debug.fail("Root declaration is not variable-like.");var b=e.hasInitializer(v)||!!e.getEffectiveTypeAnnotationNode(v)||244===v.parent.parent.kind;if(b||164!==v.kind||(e.isExpression(v.parent)?b=!!p.getContextualType(v.parent):169!==v.parent.kind&&173!==v.parent.kind||(b=e.isExpression(v.parent.parent)&&!!p.getContextualType(v.parent.parent))),b){var E=p.getTypeAtLocation(_);if(!E)return 2;n=p.getPropertiesOfType(E).filter((e=>p.isPropertyAccessible(_,!1,!1,E,e))),i=_.elements}}if(n&&n.length>0){var x=((t,r)=>{if(0===r.length)return t;for(var n=new e.Set,i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];if((296===s.kind||297===s.kind||203===s.kind||169===s.kind||172===s.kind||173===s.kind||298===s.kind)&&!Le(s)){var c=void 0;if(e.isSpreadAssignment(s))Oe(s,n);else if(e.isBindingElement(s)&&s.propertyName)79===s.propertyName.kind&&(c=s.propertyName.escapedText);else{var l=e.getNameOfDeclaration(s);c=l&&e.isPropertyNameLiteral(l)?e.getEscapedTextOfIdentifierOrLiteral(l):void 0}void 0!==c&&i.add(c)}}var d=t.filter((e=>!i.has(e.escapedName)));return Re(n,d),d})(n,e.Debug.checkDefined(i));fe=e.concatenate(fe,x),Me(),205===_.kind&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&((r=>{for(var n,i=r;i<fe.length;i++){var o=fe[i],s=e.getSymbolId(o),c=null==me?void 0:me[i],l=V(o,e.getEmitScriptTarget(a),c,0,!1);if(l){var d=null!==(n=ge[s])&&void 0!==n?n:t.SortText.LocationPriority,u=l.name;ge[s]=t.SortText.ObjectLiteralProperty(d,u)}}})(u),o=x,c=_,e.isInJSFile(W)||o.forEach((t=>{if(8196&t.flags){var n=V(t,e.getEmitScriptTarget(a),void 0,0,!1);if(n){var i=((t,r,n,i,a,o,s,c)=>{var l=s.includeCompletionsWithSnippetText||void 0,d=r,u=n.getSourceFile(),p=((t,r,n,i,a,o)=>{var s=t.getDeclarations();if(s&&s.length){var c=i.getTypeChecker(),l=s[0],d=e.getSynthesizedDeepClone(e.getNameOfDeclaration(l),!1),u=c.getWidenedType(c.getTypeOfSymbolAtLocation(t,r)),p=33554432|(0===e.getQuotePreference(n,o)?268435456:0);switch(l.kind){case 166:case 167:case 168:case 169:var _=1048576&u.flags&&u.types.length<10?c.getUnionType(u.types,2):u;if(1048576&_.flags){var f=e.filter(_.types,(e=>c.getSignaturesOfType(e,0).length>0));if(1!==f.length)return;_=f[0]}if(1!==c.getSignaturesOfType(_,0).length)return;var m=c.typeToTypeNode(_,r,p,e.codefix.getNoopSymbolTrackerWithResolver({program:i,host:a}));if(!m||!e.isFunctionTypeNode(m))return;var g=void 0;if(o.includeCompletionsWithSnippetText){var h=e.factory.createEmptyStatement();g=e.factory.createBlock([h],!0),e.setSnippetElement(h,{kind:0,order:0})}else g=e.factory.createBlock([],!0);var y=m.parameters.map((t=>e.factory.createParameterDeclaration(void 0,t.dotDotDotToken,t.name,t.questionToken,void 0,t.initializer)));return e.factory.createMethodDeclaration(void 0,void 0,d,void 0,void 0,y,void 0,g);default:return}}})(t,n,u,i,a,s);if(p){var _=C({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(o,e.maybeBind(a,a.getNewLine)))});d=c?_.printAndFormatSnippetList(80,e.factory.createNodeArray([p],!0),u,c):_.printSnippetList(80,e.factory.createNodeArray([p],!0),u);var f=e.createPrinter({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),m=e.factory.createMethodSignature(void 0,"",p.questionToken,p.typeParameters,p.parameters,p.type);return{isSnippet:l,insertText:d,labelDetails:{detail:f.printNode(4,m,u)}}}})(t,n.name,c,r,l,a,s,d);if(i){var o=m({kind:128},i);Y|=32,me[fe.length]=o,fe.push(t)}}}})))}return 1})()||(P?($=!0,Ne(),1):0)||(()=>{if(!w)return 0;var t=18===w.kind||27===w.kind?e.tryCast(w.parent,e.isNamedImportsOrExports):e.isTypeKeywordTokenOrIdentifier(w)?e.tryCast(w.parent.parent,e.isNamedImportsOrExports):void 0;if(!t)return 0;e.isTypeKeywordTokenOrIdentifier(w)||(K=8);var r=(269===t.kind?t.parent.parent:t.parent).moduleSpecifier;if(!r)return $=!0,269===t.kind?2:0;var n=p.getSymbolAtLocation(r);if(!n)return $=!0,2;ue=3,$=!1;var i=p.getExportsAndPropertiesOfModule(n),a=new e.Set(t.elements.filter((e=>!Le(e))).map((e=>(e.propertyName||e.name).escapedText))),o=i.filter((e=>"default"!==e.escapedName&&!a.has(e.escapedName)));return fe=e.concatenate(fe,o),o.length||(K=0),1})()||(()=>{var r,n=!w||18!==w.kind&&27!==w.kind?void 0:e.tryCast(w.parent,e.isNamedExports);if(!n)return 0;var i=e.findAncestor(n,e.or(e.isSourceFile,e.isModuleDeclaration));return ue=5,$=!1,null===(r=i.locals)||void 0===r||r.forEach(((r,n)=>{var a,o;fe.push(r),(null===(o=null===(a=i.symbol)||void 0===a?void 0:a.exports)||void 0===o?void 0:o.has(n))&&(ge[e.getSymbolId(r)]=t.SortText.OptionalMember)})),1})()||((t=>{if(t){var r=t.parent;switch(t.kind){case 20:case 27:return e.isConstructorDeclaration(t.parent)?t.parent:void 0;default:if(Fe(t))return r.parent}}})(w)?(ue=5,$=!0,K=4,1):0)||(()=>{var t=((t,r,n,i)=>{switch(n.kind){case 348:return e.tryCast(n.parent,e.isObjectTypeDeclaration);case 1:var a=e.tryCast(e.lastOrUndefined(e.cast(n.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(a&&!e.findChildOfKind(a,19,t))return a;break;case 79:var o=n.originalKeywordKind;if(o&&e.isKeyword(o))return;if(e.isPropertyDeclaration(n.parent)&&n.parent.initializer===n)return;if(ee(n))return e.findAncestor(n,e.isObjectTypeDeclaration)}if(r){if(134===n.kind||e.isIdentifier(r)&&e.isPropertyDeclaration(r.parent)&&e.isClassLike(n))return e.findAncestor(r,e.isClassLike);switch(r.kind){case 63:return;case 26:case 19:return ee(n)&&n.parent.name===n?n.parent.parent:e.tryCast(n,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(r.parent,e.isObjectTypeDeclaration);default:if(!ee(r))return e.getLineAndCharacterOfPosition(t,r.getEnd()).line!==e.getLineAndCharacterOfPosition(t,i).line&&e.isObjectTypeDeclaration(n)?n:void 0;var s=e.isClassLike(r.parent.parent)?G:J;return s(r.kind)||41===r.kind||e.isIdentifier(r)&&s(e.stringToToken(r.text))?r.parent.parent:void 0}}})(i,w,W,o);if(!t)return 0;if(ue=3,$=!0,K=41===w.kind?0:e.isClassLike(t)?2:3,!e.isClassLike(t))return 1;var r=26===w.kind?w.parent.parent:w.parent,n=e.isClassElement(r)?e.getEffectiveModifierFlags(r):0;if(79===w.kind&&!Le(w))switch(w.getText()){case"private":n|=8;break;case"static":n|=32;break;case"override":n|=16384}if(e.isClassStaticBlockDeclaration(r)&&(n|=32),!(8&n)){var a=e.isClassLike(t)&&16384&n?e.singleElementArray(e.getEffectiveBaseTypeNode(t)):e.getAllSuperTypeNodes(t),s=e.flatMap(a,(e=>{var r=p.getTypeAtLocation(e);return 32&n?(null==r?void 0:r.symbol)&&p.getPropertiesOfType(p.getTypeOfSymbolAtLocation(r.symbol,t)):r&&p.getPropertiesOfType(r)}));fe=e.concatenate(fe,((t,r,n)=>{for(var i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];if(!(167!==s.kind&&169!==s.kind&&172!==s.kind&&173!==s.kind||Le(s)||e.hasEffectiveModifier(s,8)||e.isStatic(s)!==!!(32&n))){var c=e.getPropertyNameForPropertyNameNode(s.name);c&&i.add(c)}}return t.filter((t=>!(i.has(t.escapedName)||!t.declarations||8&e.getDeclarationModifierFlagsFromSymbol(t)||t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))))})(s,t.members,n))}return 1})()||(()=>{var t=(t=>{if(t){var r=t.parent;switch(t.kind){case 31:case 30:case 43:case 79:case 206:case 286:case 285:case 287:if(r&&(279===r.kind||280===r.kind)){if(31===t.kind){var n=e.findPrecedingToken(t.pos,i,void 0);if(!r.typeArguments||n&&43===n.kind)break}return r}if(285===r.kind)return r.parent.parent;break;case 10:if(r&&(285===r.kind||287===r.kind))return r.parent.parent;break;case 19:if(r&&288===r.kind&&r.parent&&285===r.parent.kind)return r.parent.parent.parent;if(r&&287===r.kind)return r.parent.parent}}})(w),r=t&&p.getContextualType(t.attributes);if(!r)return 0;var n=t&&p.getContextualType(t.attributes,4);return fe=e.concatenate(fe,((t,r)=>{for(var n=new e.Set,i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];Le(s)||(285===s.kind?n.add(s.name.escapedText):e.isJsxSpreadAttribute(s)&&Oe(s,i))}var c=t.filter((e=>!n.has(e.escapedName)));return Re(i,c),c})(X(r,n,t.attributes,p),t.attributes.properties)),Me(),ue=3,$=!1,1})()||((()=>{K=(t=>{if(t){var r,n=e.findAncestor(t.parent,(t=>e.isClassLike(t)?"quit":!(!e.isFunctionLikeDeclaration(t)||r!==t.body)||(r=t,!1)));return n&&n}})(w)?5:1,ue=1,$=we(),N!==w&&e.Debug.assert(!!N,"Expected 'contextToken' to be defined when different from 'previousToken'.");var r=N!==w?N.getStart():o,n=((t,r,n)=>{for(var i=t;i&&!e.positionBelongsToNode(i,r,n);)i=i.parent;return i})(w,r,i)||i;x=(t=>{switch(t.kind){case 305:case 223:case 288:case 235:return!0;default:return e.isStatement(t)}})(n);var a=2887656|(ye?0:111551),c=N&&!e.isValidTypeOnlyAliasUseSite(N);fe=e.concatenate(fe,p.getSymbolsInScope(n,a)),e.Debug.assertEachIsDefined(fe,"getSymbolsInScope() should all be defined");for(var l=0;l<fe.length;l++){var d=fe[l];if(p.isArgumentsSymbol(d)||e.some(d.declarations,(e=>e.getSourceFile()===i))||(ge[e.getSymbolId(d)]=t.SortText.GlobalsOrKeywords),c&&!(111551&d.flags)){var u=d.declarations&&e.find(d.declarations,e.isTypeOnlyImportOrExportDeclaration);if(u){var _={kind:64,declaration:u};me[l]=_}}}if(s.includeCompletionsWithInsertText&&305!==n.kind){var f=p.tryGetThisTypeAt(n,!1,e.isClassLike(n.parent)?n:void 0);if(f&&!((e,t,r)=>{var n=r.resolveName("self",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return!0;var i=r.resolveName("global",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;var a=r.resolveName("globalThis",void 0,111551,!1);return!(!a||r.getTypeOfSymbolAtLocation(a,t)!==e)})(f,i,p))for(var m=0,g=Q(f,p);m<g.length;m++)d=g[m],me[fe.length]={kind:1},fe.push(d),ge[e.getSymbolId(d)]=t.SortText.SuggestedClassMembers}Ne(),ye&&(K=w&&e.isAssertionExpression(w.parent)?6:7)})(),1))}function Ne(){var n,a;if((P||!pe&&s.includeCompletionsForModuleExports&&(i.externalModuleIndicator||i.commonJsModuleIndicator||e.compilerOptionsIndicateEsModules(r.getCompilerOptions())||e.programContainsModules(r)))&&(e.Debug.assert(!(null==c?void 0:c.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),!c||c.source)){Y|=1;var d=N===w&&P&&ne(P,w)?"":N&&e.isIdentifier(N)?N.text.toLowerCase():"",p=null===(n=l.getModuleSpecifierCache)||void 0===n?void 0:n.call(l),f=e.getExportInfoMap(i,l,r,s,u),m=null===(a=l.getPackageJsonAutoImportProvider)||void 0===a?void 0:a.call(l),g=c?void 0:e.createPackageJsonImportFilter(i,s,l);_("collectAutoImports",l,le||(le=e.codefix.createImportSpecifierResolver(i,r,l,s)),r,o,s,!!P,e.isValidTypeOnlyAliasUseSite(W),(r=>{f.search(i.path,B,((t,r)=>{if(!e.isIdentifierText(t,e.getEmitScriptTarget(l.getCompilationSettings())))return!1;if(!c&&e.isStringANonContextualKeyword(t))return!1;if(!(ye||P||111551&r))return!1;if(ye&&!(790504&r))return!1;var n=t.charCodeAt(0);return(!B||!(n<65||n>90))&&(!!c||ce(t,d))}),((n,i,a,o)=>{var s,l,d,u;if(!c||e.some(n,(t=>c.source===e.stripQuotes(t.moduleSymbol.name)))){var p=e.find(n,h);if(p){var _=r.tryResolve(n,i,a)||{};if("failed"!==_){var f,m=p;"skipped"!==_&&(m=void 0===(s=_.exportInfo)?p:s,f=_.moduleSpecifier);var g=1===m.exportKind;l=g&&e.getLocalSymbolForExportDefault(m.symbol)||m.symbol,d={kind:f?32:4,moduleSpecifier:f,symbolName:i,exportMapKey:o,exportName:2===m.exportKind?"export=":m.symbol.name,fileName:m.moduleFileName,isDefaultExport:g,moduleSymbol:m.moduleSymbol,isFromPackageJson:m.isFromPackageJson},u=e.getSymbolId(l),ge[u]!==t.SortText.GlobalsOrKeywords&&(me[fe.length]=d,ge[u]=P?t.SortText.LocationPriority:t.SortText.AutoImportSuggestions,fe.push(l))}}}})),_e=r.skippedAny(),Y|=r.resolvedAny()?8:0,Y|=r.resolvedBeyondLimit()?16:0}))}function h(t){var n=e.tryCast(t.moduleSymbol.valueDeclaration,e.isSourceFile);if(!n){var a=e.stripQuotes(t.moduleSymbol.name);return(!e.JsTyping.nodeCoreModules.has(a)||e.startsWith(a,"node:")===e.shouldUseUriStyleNodeCoreModules(i,r))&&(!g||g.allowsImportingAmbientModule(t.moduleSymbol,ve(t.isFromPackageJson)))}return e.isImportableFile(t.isFromPackageJson?m:r,i,n,s,g,ve(t.isFromPackageJson),p)}}function we(){if(w){var e=w.parent.kind,t=q(w);switch(t){case 27:return 208===e||171===e||209===e||204===e||221===e||179===e||205===e;case 20:return 208===e||171===e||209===e||212===e||191===e;case 22:return 204===e||176===e||162===e;case 141:case 142:case 100:return!0;case 24:return 261===e;case 18:return 257===e||205===e;case 63:return 254===e||221===e;case 15:return 223===e;case 16:return 233===e;case 131:return 169===e||297===e;case 41:return 169===e}if(G(t))return!0}return!1}function Fe(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function Pe(t,r){return 63!==t.kind&&(26===t.kind||!e.positionsAreOnSameLine(t.end,r,i))}function Ie(t){return e.isFunctionLikeKind(t)&&171!==t}function Oe(e,t){var r=e.expression,n=p.getSymbolAtLocation(r),i=n&&p.getTypeOfSymbolAtLocation(n,r),a=i&&i.properties;a&&a.forEach((e=>{t.add(e.name)}))}function Me(){fe.forEach((r=>{var n;if(16777216&r.flags){var i=e.getSymbolId(r);ge[i]=null!==(n=ge[i])&&void 0!==n?n:t.SortText.OptionalMember}}))}function Re(r,n){if(0!==r.size)for(var i=0,a=n;i<a.length;i++){var o=a[i];r.has(o.name)&&(ge[e.getSymbolId(o)]=t.SortText.MemberDeclaredBySpreadAssignment)}}function Le(e){return e.getStart(i)<=o&&o<=e.getEnd()}}function U(t,r){var n=e.findPrecedingToken(t,r);return n&&t<=n.end&&(e.isMemberName(n)||e.isKeyword(n.kind))?{contextToken:e.findPrecedingToken(n.getFullStart(),r,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function j(t,r,n,i){var a=r.isPackageJsonImport?i.getPackageJsonAutoImportProvider():n,o=a.getTypeChecker(),s=r.ambientModuleName?o.tryFindAmbientModule(r.ambientModuleName):r.fileName?o.getMergedSymbol(e.Debug.checkDefined(a.getSourceFile(r.fileName)).symbol):void 0;if(s){var c="export="===r.exportName?o.resolveExternalModuleSymbol(s):o.tryGetMemberInModuleExportsAndProperties(r.exportName,s);if(c)return{symbol:c="default"===r.exportName&&e.getLocalSymbolForExportDefault(c)||c,origin:k(r,t,s)}}}function V(t,r,n,i,a){var o=(e=>c(e)||l(e))(n)?n.symbolName:t.name;if(!(void 0===o||1536&t.flags&&e.isSingleOrDoubleQuote(o.charCodeAt(0))||e.isKnownSymbol(t))){var s={name:o,needsConvertPropertyAccess:!1};if(e.isIdentifierText(o,r,a?1:0)||t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))return s;switch(i){case 3:return;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return s;default:e.Debug.assertNever(i)}}}t.moduleSpecifierResolutionLimit=100,t.moduleSpecifierResolutionCacheAttemptLimit=1e3,t.SortText={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:e=>"z"+e,ObjectLiteralProperty:(e,t)=>"".concat(e,"\0").concat(t,"\0"),SortBelow:e=>e+"1"},(e=>{e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/"})(r=t.CompletionSource||(t.CompletionSource={})),(e=>{e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport"})(n||(n={})),(e=>{e[e.None=0]="None",e[e.All=1]="All",e[e.ClassElementKeywords=2]="ClassElementKeywords",e[e.InterfaceElementKeywords=3]="InterfaceElementKeywords",e[e.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",e[e.TypeAssertionKeywords=6]="TypeAssertionKeywords",e[e.TypeKeywords=7]="TypeKeywords",e[e.TypeKeyword=8]="TypeKeyword",e[e.Last=8]="Last"})(i||(i={})),(e=>{e[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail"})(a||(a={})),t.getCompletionsAtPosition=(r,n,i,a,o,s,c,l,d,u)=>{var p,y=U(o,a).previousToken;if(!c||e.isInString(a,o,y)||((t,r,n,i)=>{switch(r){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&e.isStringLiteralOrTemplate(n)&&i===n.getStart(t)+1;case"#":return!!n&&e.isPrivateIdentifier(n)&&!!e.getContainingClass(n);case"<":return!!n&&29===n.kind&&(!e.isBinaryExpression(n.parent)||te(n.parent));case"/":return!!n&&(e.isStringLiteralLike(n)?!!e.tryGetImportFromModuleSpecifier(n):43===n.kind&&e.isJsxClosingElement(n.parent));case" ":return!!n&&e.isImportKeyword(n)&&305===n.parent.kind;default:return e.Debug.assertNever(r)}})(a,c,y,o)){if(" "===c)return s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var x=n.getCompilerOptions(),S=s.allowIncompleteCompletions?null===(p=r.getIncompleteCompletionsCache)||void 0===p?void 0:p.call(r):void 0;if(S&&3===l&&y&&e.isIdentifier(y)){var T=((t,r,n,i,a,o,s)=>{var c=t.get();if(c){var l=n.text.toLowerCase(),d=e.getExportInfoMap(r,a,i,o,s),u=_("continuePreviousIncompleteResponse",a,e.codefix.createImportSpecifierResolver(r,i,a,o),i,n.getStart(),o,!1,e.isValidTypeOnlyAliasUseSite(n),(t=>{var n=e.mapDefined(c.entries,(n=>{var o;if(!n.hasAction||!n.source||!n.data||g(n.data))return n;if(ce(n.name,l)){var s=e.Debug.checkDefined(j(n.name,n.data,i,a)).origin,c=d.get(r.path,n.data.exportMapKey),u=c&&t.tryResolve(c,n.name,!e.isExternalModuleNameRelative(e.stripQuotes(s.moduleSymbol.name)));if("skipped"===u)return n;if(u&&"failed"!==u){var p=m(m({},s),{kind:32,moduleSpecifier:u.moduleSpecifier});return n.data=A(p),n.source=F(p),n.sourceDisplay=[e.textPart(p.moduleSpecifier)],n}null===(o=a.log)||void 0===o||o.call(a,"Unexpected failure resolving auto import for '".concat(n.name,"' from '").concat(n.source,"'"))}}));return t.skippedAny()||(c.isIncomplete=void 0),n}));return c.entries=u,c.flags=4|(c.flags||0),c}})(S,a,y,n,r,s,d);if(T)return T}else null==S||S.clear();var C=t.StringCompletions.getStringLiteralCompletions(a,o,y,x,r,n,i,s);if(C)return C;if(y&&e.isBreakOrContinueStatement(y.parent)&&(81===y.kind||86===y.kind||79===y.kind))return(r=>{var n=(r=>{for(var n=[],i=new e.Map,a=r;a&&!e.isFunctionLike(a);){if(e.isLabeledStatement(a)){var o=a.label.text;i.has(o)||(i.set(o,!0),n.push({name:o,kindModifiers:"",kind:"label",sortText:t.SortText.LocationPriority}))}a=a.parent}return n})(r);if(n.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:n}})(y.parent);var k,N=B(n,i,a,x,o,s,void 0,r,u,d);if(N)switch(N.kind){case 0:var w=((r,n,i,a,o,s,c,l,d)=>{var u=s.symbols,p=s.contextToken,_=s.completionKind,m=s.isInSnippetScope,g=s.isNewIdentifierLocation,h=s.location,y=s.propertyAccessToConvert,x=s.keywordFilters,S=s.literals,T=s.symbolToOriginInfoMap,C=s.recommendedCompletion,A=s.isJsxInitializer,k=s.isTypeOnlyLocation,N=s.isJsxIdentifierExpected,w=s.isRightOfOpenTag,F=s.importCompletionNode,I=s.insideJsDocTagTypeExpression,O=s.symbolToSortTextMap,M=s.hasUnresolvedAutoImports;if(1===e.getLanguageVariant(r.scriptKind)){var R=((r,n)=>{var i=e.findAncestor(r,(e=>{switch(e.kind){case 281:return!0;case 43:case 31:case 79:case 206:return!1;default:return"quit"}}));if(i){var a=!!e.findChildOfKind(i,31,n),o=i.parent.openingElement.tagName.getText(n)+(a?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:e.createTextSpanFromNode(i.tagName),entries:[{name:o,kind:"class",kindModifiers:void 0,sortText:t.SortText.LocationPriority}]}}})(h,r);if(R)return R}var L=e.createSortedArray(),B=b(r,a);if(!B||g||u&&0!==u.length||0!==x){var U=P(u,L,void 0,p,h,r,n,i,e.getEmitScriptTarget(a),o,_,c,a,l,k,y,N,A,F,C,T,O,N,w);if(0!==x)for(var j=0,V=W(x,!I&&e.isSourceFileJS(r));j<V.length;j++){var z=V[j];(k&&e.isTypeKeyword(e.stringToToken(z.name))||!U.has(z.name))&&(U.add(z.name),e.insertSorted(L,z,f,!0))}for(var H=0,K=((r,n)=>{var i=[];if(r){var a=r.getSourceFile(),o=r.parent,s=a.getLineAndCharacterOfPosition(r.end).line,c=a.getLineAndCharacterOfPosition(n).line;(e.isImportDeclaration(o)||e.isExportDeclaration(o)&&o.moduleSpecifier)&&r===o.moduleSpecifier&&s===c&&i.push({name:e.tokenToString(129),kind:"keyword",kindModifiers:"",sortText:t.SortText.GlobalsOrKeywords})}return i})(p,d);H<K.length;H++)z=K[H],U.has(z.name)||(U.add(z.name),e.insertSorted(L,z,f,!0));for(var J=0,G=S;J<G.length;J++){var $=D(r,c,G[J]);U.add($.name),e.insertSorted(L,$,f,!0)}return B||((r,n,i,a,o)=>{e.getNameTable(r).forEach(((r,s)=>{if(r!==n){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),e.insertSorted(o,{name:c,kind:"warning",kindModifiers:"",sortText:t.SortText.JavascriptIdentifiers,isFromUncheckedFile:!0},f))}}))})(r,h.pos,U,e.getEmitScriptTarget(a),L),{flags:s.flags,isGlobalCompletion:m,isIncomplete:!(!c.allowIncompleteCompletions||!M)||void 0,isMemberCompletion:E(_),isNewIdentifierLocation:g,optionalReplacementSpan:v(h),entries:L}}})(a,r,n,x,i,N,s,u,o);return(null==w?void 0:w.isIncomplete)&&(null==S||S.set(w)),w;case 1:return h(e.JsDoc.getJSDocTagNameCompletions());case 2:return h(e.JsDoc.getJSDocTagCompletions());case 3:return h(e.JsDoc.getJSDocParameterNameCompletions(N.tag));case 4:return k=N.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:N.isNewIdentifierLocation,entries:k.slice()};default:return e.Debug.assertNever(N)}}},t.getCompletionEntriesFromSymbols=P,t.getCompletionEntryDetails=(n,i,a,o,s,d,p,_,f)=>{var m=n.getTypeChecker(),g=n.getCompilerOptions(),h=s.name,y=s.source,v=s.data,b=e.findPrecedingToken(o,a);if(e.isInString(a,o,b))return t.StringCompletions.getStringLiteralCompletionDetails(h,a,o,b,m,g,d,f,_);var E=I(n,i,a,o,s,d,_);switch(E.type){case"request":var D=E.request;switch(D.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(h);case 2:return e.JsDoc.getJSDocTagCompletionDetails(h);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(h);case 4:return e.some(D.keywordCompletions,(e=>e.name===h))?O(h,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(D)}case"symbol":var S=E.symbol,C=E.location,A=E.contextToken,k=E.origin,N=E.previousToken,w=((t,n,i,a,o,s,d,p,_,f,m,g,h,y,v)=>{if((null==y?void 0:y.moduleSpecifier)&&m&&re(i||m).replacementNode)return{codeActions:void 0,sourceDisplay:[e.textPart(y.moduleSpecifier)]};if(v===r.ClassMemberSnippet){var b=T(d,s,p,h,t,o,n,i,g).importAdder;if(b)return{sourceDisplay:void 0,codeActions:[{changes:e.textChanges.ChangeTracker.with({host:d,formatContext:g,preferences:h},b.writeFixes),description:e.diagnosticToString([e.Diagnostics.Includes_imports_of_types_referenced_by_0,t])}]}}if(u(a)){var E=e.codefix.getPromoteTypeOnlyCompletionAction(_,a.declaration.name,s,d,g,h);return e.Debug.assertIsDefined(E,"Expected to have a code action for promoting type-only alias"),{codeActions:[E],sourceDisplay:void 0}}if(!a||!c(a)&&!l(a))return{codeActions:void 0,sourceDisplay:void 0};var x=a.isFromPackageJson?d.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),D=a.moduleSymbol,S=x.getMergedSymbol(e.skipAlias(o.exportSymbol||o,x)),C=29===(null==i?void 0:i.kind)&&e.isJsxOpeningLikeElement(i.parent),A=e.codefix.getImportCompletionAction(S,D,_,e.getNameForExportedSymbol(o,e.getEmitScriptTarget(p),C),C,d,s,g,m&&e.isIdentifier(m)?m.getStart(_):f,h),k=A.moduleSpecifier,N=A.codeAction;return e.Debug.assert(!(null==y?void 0:y.moduleSpecifier)||k===y.moduleSpecifier),{sourceDisplay:[e.textPart(k)],codeActions:[N]}})(h,C,A,k,S,n,d,g,a,o,N,p,_,v,y);return M(S,m,a,C,f,w.codeActions,w.sourceDisplay);case"literal":var F=E.literal;return O(x(a,_,F),"string","string"==typeof F?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return H().some((e=>e.name===h))?O(h,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(E)}},t.createCompletionDetailsForSymbol=M,t.createCompletionDetails=R,t.getCompletionEntrySymbol=(e,t,r,n,i,a,o)=>{var s=I(e,t,r,n,i,a,o);return"symbol"===s.type?s.symbol:void 0},(e=>{e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName",e[e.Keywords=4]="Keywords"})(o||(o={})),(s=t.CompletionKind||(t.CompletionKind={}))[s.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",s[s.Global=1]="Global",s[s.PropertyAccess=2]="PropertyAccess",s[s.MemberLike=3]="MemberLike",s[s.String=4]="String",s[s.None=5]="None";var z=[],H=e.memoize((()=>{for(var r=[],n=81;n<=160;n++)r.push({name:e.tokenToString(n),kind:"keyword",kindModifiers:"",sortText:t.SortText.GlobalsOrKeywords});return r}));function W(t,r){if(!r)return K(t);var n=t+8+1;return z[n]||(z[n]=K(t).filter((t=>!(e=>{switch(e){case 126:case 130:case 158:case 133:case 135:case 92:case 157:case 117:case 137:case 118:case 139:case 140:case 141:case 142:case 143:case 147:case 148:case 159:case 121:case 122:case 123:case 145:case 150:case 151:case 152:case 154:case 155:return!0;default:return!1}})(e.stringToToken(t.name)))))}function K(t){return z[t]||(z[t]=H().filter((r=>{var n=e.stringToToken(r.name);switch(t){case 0:return!1;case 1:return $(n)||135===n||141===n||152===n||142===n||126===n||e.isTypeKeyword(n)&&153!==n;case 5:return $(n);case 2:return G(n);case 3:return J(n);case 4:return e.isParameterPropertyModifier(n);case 6:return e.isTypeKeyword(n)||85===n;case 7:return e.isTypeKeyword(n);case 8:return 152===n;default:return e.Debug.assertNever(t)}})))}function J(e){return 145===e}function G(t){switch(t){case 126:case 134:case 136:case 149:case 131:case 135:case 159:return!0;default:return e.isClassMemberModifier(t)}}function $(t){return 131===t||132===t||127===t||152===t||!e.isContextualKeyword(t)&&!G(t)}function q(t){return e.isIdentifier(t)?t.originalKeywordKind||0:t.kind}function X(t,r,n,i){var a=r&&r!==t,o=!a||3&r.flags?t:i.getUnionType([t,r]),s=((t,r,n)=>t.isUnion()?n.getAllPossiblePropertiesOfTypes(e.filter(t.types,(t=>!(131068&t.flags||n.isArrayLikeType(t)||n.isTypeInvalidDueToUnionDiscriminant(t,r)||e.typeHasCallOrConstructSignatures(t,n)||t.isClass()&&Y(t.getApparentProperties()))))):t.getApparentProperties())(o,n,i);return o.isClass()&&Y(s)?[]:a?e.filter(s,(t=>!e.length(t.declarations)||e.some(t.declarations,(e=>e.parent!==n)))):s}function Y(t){return e.some(t,(t=>!!(24&e.getDeclarationModifierFlagsFromSymbol(t))))}function Q(t,r){return t.isUnion()?e.Debug.checkEachDefined(r.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function Z(t,r){if(t){if(e.isTypeNode(t)&&e.isTypeReferenceType(t.parent))return r.getTypeArgumentConstraint(t);var n=Z(t.parent,r);if(n)switch(t.kind){case 166:return r.getTypeOfPropertyOfContextualType(n,t.symbol.escapedName);case 188:case 182:case 187:return n}}}function ee(t){return t.parent&&e.isClassOrTypeElement(t.parent)&&e.isObjectTypeDeclaration(t.parent.parent)}function te(t){var r=t.left;return e.nodeIsMissing(r)}function re(t){var r,n=!1,i=(()=>{var i=t.parent;if(e.isImportEqualsDeclaration(i))return r=152===t.kind?void 0:152,ae(i.moduleReference)?i:void 0;if(ne(i,t)&&ie(i.parent))return i;if(!e.isNamedImports(i)&&!e.isNamespaceImport(i))return e.isImportKeyword(t)&&e.isSourceFile(i)?(r=152,t):e.isImportKeyword(t)&&e.isImportDeclaration(i)?(r=152,ae(i.moduleSpecifier)?i:void 0):void 0;if(i.parent.isTypeOnly||18!==t.kind&&100!==t.kind&&27!==t.kind||(r=152),ie(i)){if(19!==t.kind&&79!==t.kind)return i.parent.parent;n=!0,r=156}})();return{isKeywordOnlyCompletion:n,keywordCompletion:r,isNewIdentifierLocation:!(!i&&152!==r),replacementNode:i&&e.rangeIsOnSingleLine(i,i.getSourceFile())?i:void 0}}function ne(t,r){return e.isImportSpecifier(t)&&(t.isTypeOnly||r===t.name&&e.isTypeKeywordTokenOrIdentifier(r))}function ie(t){return ae(t.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(t)||t.elements.length<2)&&!t.parent.name}function ae(t){var r;return!!e.nodeIsMissing(t)||!(null===(r=e.tryCast(e.isExternalModuleReference(t)?t.expression:t,e.isStringLiteralLike))||void 0===r?void 0:r.text)}function oe(t,r,n){return void 0===n&&(n=new e.Map),i(t)||i(e.skipAlias(t.exportSymbol||t,r));function i(t){return!!(788968&t.flags)||r.isUnknownSymbol(t)||!!(1536&t.flags)&&e.addToSeen(n,e.getSymbolId(t))&&r.getExportsOfModule(t).some((e=>oe(e,r,n)))}}function se(t,r){var n=e.skipAlias(t,r).declarations;return!!e.length(n)&&e.every(n,e.isDeprecatedDeclaration)}function ce(e,t){if(0===t.length)return!0;for(var r,n=!1,i=0,a=e.length,o=0;o<a;o++){var s=e.charCodeAt(o),c=t.charCodeAt(i);if((s===c||s===(97<=(l=c)&&l<=122?l-32:l))&&(n||(n=void 0===r||97<=r&&r<=122&&65<=s&&s<=90||95===r&&95!==s),n&&i++,i===t.length))return!0;r=s}var l;return!1}t.getPropertiesForObjectExpression=X}(e.Completions||(e.Completions={}))}(p),(e=>{!(t=>{function r(t,r){return{fileName:r.fileName,textSpan:e.createTextSpanFromNode(t,r),kind:"none"}}function n(t){return e.isThrowStatement(t)?[t]:e.isTryStatement(t)?e.concatenate(t.catchClause?n(t.catchClause):t.tryBlock&&n(t.tryBlock),t.finallyBlock&&n(t.finallyBlock)):e.isFunctionLike(t)?void 0:a(t,n)}function i(t){return e.isBreakOrContinueStatement(t)?[t]:e.isFunctionLike(t)?void 0:a(t,i)}function a(t,r){var n=[];return t.forEachChild((t=>{var i=r(t);void 0!==i&&n.push.apply(n,e.toArray(i))})),n}function o(e,t){var r=s(t);return!!r&&r===e}function s(t){return e.findAncestor(t,(r=>{switch(r.kind){case 249:if(245===t.kind)return!1;case 242:case 243:case 244:case 241:case 240:return!t.label||((t,r)=>!!e.findAncestor(t.parent,(t=>e.isLabeledStatement(t)?t.label.escapedText===r:"quit")))(r,t.label.escapedText);default:return e.isFunctionLike(r)&&"quit"}}))}function c(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return!(!r||!e.contains(n,r.kind)||(t.push(r),0))}function l(t){var r=[];if(c(r,t.getFirstToken(),97,115,90)&&240===t.kind)for(var n=t.getChildren(),a=n.length-1;a>=0&&!c(r,n[a],115);a--);return e.forEach(i(t.statement),(e=>{o(t,e)&&c(r,e.getFirstToken(),81,86)})),r}function d(e){var t=s(e);if(t)switch(t.kind){case 242:case 243:case 244:case 240:case 241:return l(t);case 249:return u(t)}}function u(t){var r=[];return c(r,t.getFirstToken(),107),e.forEach(t.caseBlock.clauses,(n=>{c(r,n.getFirstToken(),82,88),e.forEach(i(n),(e=>{o(t,e)&&c(r,e.getFirstToken(),81)}))})),r}function p(t,r){var n=[];return c(n,t.getFirstToken(),111),t.catchClause&&c(n,t.catchClause.getFirstToken(),83),t.finallyBlock&&c(n,e.findChildOfKind(t,96,r),96),n}function _(t,r){var i=(t=>{for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||305===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),(t=>{a.push(e.findChildOfKind(t,109,r))})),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,(t=>{a.push(e.findChildOfKind(t,105,r))})),a}}function m(t,r){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),(t=>{a.push(e.findChildOfKind(t,105,r))})),e.forEach(n(i.body),(t=>{a.push(e.findChildOfKind(t,109,r))})),a}}function g(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach((e=>{c(n,e,131)})),e.forEachChild(r,(t=>{h(t,(t=>{e.isAwaitExpression(t)&&c(n,t.getFirstToken(),132)}))})),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,(e=>h(e,r)))}t.getDocumentHighlights=(t,n,i,a,o)=>{var s=e.getTouchingPropertyName(i,a);if(s.parent&&(e.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||e.isJsxClosingElement(s.parent))){var y=s.parent.parent,v=[y.openingElement,y.closingElement].map((e=>r(e.tagName,i)));return[{fileName:i.fileName,highlightSpans:v}]}return((t,r,n,i,a)=>{var o=new e.Set(a.map((e=>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),(e=>e.fileName),(e=>e.span)),l=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(c.entries()),(t=>{var r=t[0],i=t[1];if(!o.has(r)){if(!n.redirectTargetsMap.has(e.toPath(r,n.getCurrentDirectory(),l)))return;var s=n.getSourceFile(r);r=e.find(a,(e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===s)).fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}}))}})(a,s,t,n,o)||((t,n)=>{var i=((t,n)=>{switch(t.kind){case 99:case 91:return e.isIfStatement(t.parent)?((t,n)=>{for(var i=((t,r)=>{for(var n=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);c(n,i[0],99);for(var a=i.length-1;a>=0&&!c(n,i[a],91);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n})(t,n),a=[],o=0;o<i.length;o++){if(91===i[o].kind&&o<i.length-1){for(var s=i[o],l=i[o+1],d=!0,u=l.getStart(n)-1;u>=s.end;u--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(u))){d=!1;break}if(d){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),l.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a})(t.parent,n):void 0;case 105:return s(t.parent,e.isReturnStatement,m);case 109:return s(t.parent,e.isThrowStatement,_);case 111:case 83:case 96:return s(83===t.kind?t.parent.parent:t.parent,e.isTryStatement,p);case 107:return s(t.parent,e.isSwitchStatement,u);case 82:case 88:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?s(t.parent.parent.parent,e.isSwitchStatement,u):void 0;case 81:case 86:return s(t.parent,e.isBreakOrContinueStatement,d);case 97:case 115:case 90:return s(t.parent,(t=>e.isIterationStatement(t,!0)),l);case 134:return o(e.isConstructorDeclaration,[134]);case 136:case 149:return o(e.isAccessor,[136,149]);case 132:return s(t.parent,e.isAwaitExpression,g);case 131:return y(g(t));case 125:return y((t=>{var r=e.getContainingFunction(t);if(r){var n=[];return e.forEachChild(r,(t=>{h(t,(t=>{e.isYieldExpression(t)&&c(n,t.getFirstToken(),125)}))})),n}})(t));case 101:return;default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?y((i=t.kind,a=t.parent,e.mapDefined(((t,r)=>{var n=t.parent;switch(n.kind){case 262:case 305:case 235:case 289:case 290:return 128&r&&e.isClassDeclaration(t)?f(f([],t.members,!0),[t],!1):n.statements;case 171:case 169:case 256:return f(f([],n.parameters,!0),e.isClassLike(n.parent)?n.parent.members:[],!0);case 257:case 226:case 258:case 182:var i=n.members;if(92&r){var a=e.find(n.members,e.isConstructorDeclaration);if(a)return f(f([],i,!0),a.parameters,!0)}else if(128&r)return f(f([],i,!0),[n],!1);return i;case 205:return;default:e.Debug.assertNever(n,"Invalid container kind.")}})(a,e.modifierToFlag(i)),(t=>e.findModifier(t,i))))):void 0}var i,a;function o(r,i){return s(t.parent,r,(t=>e.mapDefined(t.symbol.declarations,(t=>r(t)?e.find(t.getChildren(n),(t=>e.contains(i,t.kind))):void 0))))}function s(e,t,r){return t(e)?y(r(e,n)):void 0}function y(e){return e&&e.map((e=>r(e,n)))}})(t,n);return i&&[{fileName:n.fileName,highlightSpans:i}]})(s,i)}})(e.DocumentHighlights||(e.DocumentHighlights={}))})(p),(e=>{function t(e){return!!e.sourceFile}function r(r,n,o){void 0===n&&(n="");var s=new e.Map,c=e.createGetCanonicalFileName(!!r);function l(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function d(e,t,r,n,i,a,o,s){return _(e,t,r,n,i,a,!0,o,s)}function u(e,t,r,n,i,a,o,s){return _(e,t,l(r),n,i,a,!1,o,s)}function p(r,n){var i=t(r)?r:r.get(e.Debug.checkDefined(n,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(void 0===n||!i||i.sourceFile.scriptKind===n,"Script kind should match provided ScriptKind:".concat(n," and sourceFile.scriptKind: ").concat(null==i?void 0:i.sourceFile.scriptKind,", !entry: ").concat(!i)),i}function _(r,n,i,c,d,u,_,f,m){var g,h,y,v;f=e.ensureScriptKind(r,f);var b=l(i),E=i===b?void 0:i,x=6===f?100:e.getEmitScriptTarget(b),D="object"==typeof m?m:{languageVersion:x,impliedNodeFormat:E&&e.getImpliedNodeFormatForFile(n,null===(v=null===(y=null===(h=null===(g=E.getCompilerHost)||void 0===g?void 0:g.call(E))||void 0===h?void 0:h.getModuleResolutionCache)||void 0===y?void 0:y.call(h))||void 0===v?void 0:v.getPackageJsonInfoCache(),E,b),setExternalModuleIndicator:e.getSetExternalModuleIndicator(b)};D.languageVersion=x;var S=s.size,T=a(c,D.impliedNodeFormat),C=e.getOrUpdate(s,T,(()=>new e.Map));if(e.tracing){s.size>S&&e.tracing.instant("session","createdDocumentRegistryBucket",{configFilePath:b.configFilePath,key:T});var A=!e.isDeclarationFileName(n)&&e.forEachEntry(s,((e,t)=>t!==T&&e.has(n)&&t));A&&e.tracing.instant("session","documentRegistryBucketOverlap",{path:n,key1:A,key2:T})}var k=C.get(n),N=k&&p(k,f);if(!N&&o&&(w=o.getDocument(T,n))&&(e.Debug.assert(_),N={sourceFile:w,languageServiceRefCount:0},F()),N)N.sourceFile.version!==u&&(N.sourceFile=e.updateLanguageServiceSourceFile(N.sourceFile,d,u,d.getChangeRange(N.sourceFile.scriptSnapshot)),o&&o.setDocument(T,n,N.sourceFile)),_&&N.languageServiceRefCount++;else{var w=e.createLanguageServiceSourceFile(r,d,D,u,!1,f);o&&o.setDocument(T,n,w),N={sourceFile:w,languageServiceRefCount:1},F()}return e.Debug.assert(0!==N.languageServiceRefCount),N.sourceFile;function F(){if(k)if(t(k)){var r=new e.Map;r.set(k.sourceFile.scriptKind,k),r.set(f,N),C.set(n,r)}else k.set(f,N);else C.set(n,N)}}function f(r,n,i,o){var c=e.Debug.checkDefined(s.get(a(n,o))),l=c.get(r),d=p(l,i);d.languageServiceRefCount--,e.Debug.assert(d.languageServiceRefCount>=0),0===d.languageServiceRefCount&&(t(l)?c.delete(r):(l.delete(i),1===l.size&&c.set(r,e.firstDefinedIterator(l.values(),e.identity))))}return{acquireDocument:(t,r,a,o,s,u)=>d(t,e.toPath(t,n,c),r,i(l(r)),a,o,s,u),acquireDocumentWithKey:d,updateDocument:(t,r,a,o,s,d)=>u(t,e.toPath(t,n,c),r,i(l(r)),a,o,s,d),updateDocumentWithKey:u,releaseDocument:(t,r,a,o)=>f(e.toPath(t,n,c),i(r),a,o),releaseDocumentWithKey:f,getLanguageServiceRefCounts:(t,r)=>e.arrayFrom(s.entries(),(e=>{var n=e[0],i=e[1].get(t),a=i&&p(i,r);return[n,a&&a.languageServiceRefCount]})),reportStats(){var r=e.arrayFrom(s.keys()).filter((e=>e&&"_"===e.charAt(0))).map((e=>{var r=s.get(e),n=[];return r.forEach(((e,r)=>{t(e)?n.push({name:r,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(((e,t)=>n.push({name:r,scriptKind:t,refCount:e.languageServiceRefCount})))})),n.sort(((e,t)=>t.refCount-e.refCount)),{bucket:e,sourceFiles:n}}));return JSON.stringify(r,void 0,2)},getKeyForCompilationSettings:i}}function n(t){var r;if(null===t||"object"!=typeof t)return""+t;if(e.isArray(t))return"[".concat(null===(r=e.map(t,(e=>n(e))))||void 0===r?void 0:r.join(","),"]");var i="{";for(var a in t)e.hasProperty(t,a)&&(i+="".concat(a,": ").concat(n(t[a])));return i+"}"}function i(t){return e.sourceFileAffectingCompilerOptions.map((r=>n(e.getCompilerOptionValue(t,r)))).join("|")+(t.pathsBasePath?"|".concat(t.pathsBasePath):void 0)}function a(e,t){return t?"".concat(e,"|").concat(t):e}e.createDocumentRegistry=(e,t)=>r(e,t),e.createDocumentRegistryInternal=r})(p),(e=>{!(t=>{function r(t,r){return e.forEach(305===t.kind?t.statements:t.body.statements,(t=>r(t)||s(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<a.length;i++){var o=a[i];n(e.importFromModuleSpecifier(o),o)}else r(t,(t=>{switch(t.kind){case 272:case 266:(r=t).moduleSpecifier&&e.isStringLiteral(r.moduleSpecifier)&&n(r,r.moduleSpecifier);break;case 265:var r;c(r=t)&&n(r,r.moduleReference.expression)}}))}function i(t,r,n){var i=t.parent;if(i){var a=n.getMergedSymbol(i);return e.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:r}:void 0}}function a(e,t){return t.getMergedSymbol(o(e).symbol)}function o(t){if(208===t.kind)return t.getSourceFile();var r=t.parent;return 305===r.kind?r:(e.Debug.assert(262===r.kind),e.cast(r.parent,s))}function s(e){return 261===e.kind&&10===e.name.kind}function c(e){return 277===e.moduleReference.kind&&10===e.moduleReference.expression.kind}var l,d;t.createImportTracker=(t,i,l,d)=>{var u=((t,r,i)=>{for(var a=new e.Map,o=0,s=t;o<s.length;o++){var c=s[o];i&&i.throwIfCancellationRequested(),n(c,((t,n)=>{var i=r.getSymbolAtLocation(n);if(i){var o=e.getSymbolId(i).toString(),s=a.get(o);s||a.set(o,s=[]),s.push(t)}}))}return a})(t,l,d);return(n,p,_)=>{var f=((t,n,i,c,l,d)=>{var u=c.exportingModuleSymbol,p=c.exportKind,_=e.nodeSeenTracker(),f=e.nodeSeenTracker(),m=[],g=!!u.globalExports,h=g?void 0:[];return function t(r){var n,i=E(r);if(i)for(var c=0,u=i;c<u.length;c++){var f=u[c];if(_(f))switch(d&&d.throwIfCancellationRequested(),f.kind){case 208:if(e.isImportCall(f)){n=f,b(e.findAncestor(n,s)||n.getSourceFile(),!!y(n,!0));break}if(!g){var h=f.parent;if(2===p&&254===h.kind){var x=h.name;if(79===x.kind){m.push(x);break}}}break;case 79:break;case 265:v(f,f.name,e.hasSyntacticModifier(f,1),!1);break;case 266:m.push(f);var D=f.importClause&&f.importClause.namedBindings;D&&268===D.kind?v(f,D.name,!1,!0):!g&&e.isDefaultImport(f)&&b(o(f));break;case 272:f.exportClause?274===f.exportClause.kind?b(o(f),!0):m.push(f):t(a(f,l));break;case 200:f.isTypeOf&&!f.qualifier&&y(f)&&b(f.getSourceFile(),!0),m.push(f);break;default:e.Debug.failBadSyntaxKind(f,"Unexpected import kind.")}}}(u),{directImports:m,indirectUsers:(()=>{if(g)return t;if(u.declarations)for(var r=0,i=u.declarations;r<i.length;r++){var a=i[r];e.isExternalModuleAugmentation(a)&&n.has(a.getSourceFile().fileName)&&b(a)}return h.map(e.getSourceFileOfNode)})()};function y(t,r){return void 0===r&&(r=!1),e.findAncestor(t,(t=>r&&s(t)?"quit":e.canHaveModifiers(t)&&e.some(t.modifiers,e.isExportModifier)))}function v(t,n,i,a){if(2===p)a||m.push(t);else if(!g){var s=o(t);e.Debug.assert(305===s.kind||261===s.kind),i||((t,n,i)=>{var a=i.getSymbolAtLocation(n);return!!r(t,(t=>{if(e.isExportDeclaration(t)){var r=t.exportClause;return!t.moduleSpecifier&&r&&e.isNamedExports(r)&&r.elements.some((e=>i.getExportSpecifierLocalTargetSymbol(e)===a))}}))})(s,n,l)?b(s,!0):b(s)}}function b(t,r){if(void 0===r&&(r=!1),e.Debug.assert(!g),f(t)&&(h.push(t),r)){var n=l.getMergedSymbol(t.symbol);if(n){e.Debug.assert(!!(1536&n.flags));var i=E(n);if(i)for(var a=0,s=i;a<s.length;a++){var c=s[a];e.isImportTypeNode(c)||b(o(c),!0)}}}}function E(t){return i.get(e.getSymbolId(t).toString())}})(t,i,u,p,l,d),g=f.directImports,h=f.indirectUsers;return m({indirectUsers:h},((t,r,n,i,a)=>{var o=[],s=[];function l(e,t){o.push([e,t])}if(t)for(var d=0,u=t;d<u.length;d++)p(u[d]);return{importSearches:o,singleReferences:s};function p(t){if(265!==t.kind)if(79!==t.kind)if(200!==t.kind){if(10===t.moduleSpecifier.kind)if(272!==t.kind){var o=t.importClause||{name:void 0,namedBindings:void 0},d=o.name,u=o.namedBindings;if(u)switch(u.kind){case 268:_(u.name);break;case 269:0!==n&&1!==n||f(u);break;default:e.Debug.assertNever(u)}!d||1!==n&&2!==n||a&&d.escapedText!==e.symbolEscapedNameNoDefault(r)||l(d,i.getSymbolAtLocation(d))}else t.exportClause&&e.isNamedExports(t.exportClause)&&f(t.exportClause)}else if(t.qualifier){var p=e.getFirstIdentifier(t.qualifier);p.escapedText===e.symbolName(r)&&s.push(p)}else 2===n&&s.push(t.argument.literal);else _(t);else c(t)&&_(t.name)}function _(e){2!==n||a&&!m(e.escapedText)||l(e,i.getSymbolAtLocation(e))}function f(e){if(e)for(var t=0,n=e.elements;t<n.length;t++){var o=n[t],c=o.name,d=o.propertyName;m((d||c).escapedText)&&(d?(s.push(d),a&&c.escapedText!==r.escapedName||l(c,i.getSymbolAtLocation(c))):l(c,275===o.kind&&o.propertyName?i.getExportSpecifierLocalTargetSymbol(o):i.getSymbolAtLocation(c)))}}function m(e){return e===r.escapedName||0!==n&&"default"===e}})(g,n,p.exportKind,l,_))}},(d=t.ExportKind||(t.ExportKind={}))[d.Named=0]="Named",d[d.Default=1]="Default",d[d.ExportEquals=2]="ExportEquals",(l=t.ImportExport||(t.ImportExport={}))[l.Import=0]="Import",l[l.Export=1]="Export",t.findModuleReferences=(e,t,r)=>{for(var i=[],a=e.getTypeChecker(),o=0,s=t;o<s.length;o++){var c=s[o],l=r.valueDeclaration;if(305===(null==l?void 0:l.kind)){for(var d=0,u=c.referencedFiles;d<u.length;d++){var p=u[d];e.getSourceFileFromReference(c,p)===l&&i.push({kind:"reference",referencingFile:c,ref:p})}for(var _=0,f=c.typeReferenceDirectives;_<f.length;_++){p=f[_];var m=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||c.impliedNodeFormat);void 0!==m&&m.resolvedFileName===l.fileName&&i.push({kind:"reference",referencingFile:c,ref:p})}}n(c,((e,t)=>{a.getSymbolAtLocation(t)===r&&i.push({kind:"import",literal:t})}))}return i},t.getImportOrExportSymbol=(t,r,n,a)=>{return a?o():o()||(()=>{if((t=>{var r=t.parent;switch(r.kind){case 265:return r.name===t&&c(r);case 270:return!r.propertyName;case 267:case 268:return e.Debug.assert(r.name===t),!0;case 203:return e.isInJSFile(t)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(r.parent.parent);default:return!1}})(t)){var i=n.getImmediateAliasedSymbol(r);if(i){"export="===(i=((t,r)=>{if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(e.isExportSpecifier(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return r.getExportSpecifierLocalTargetSymbol(a);if(e.isPropertyAccessExpression(a)&&e.isModuleExportsAccessExpression(a.expression)&&!e.isPrivateIdentifier(a.name))return r.getSymbolAtLocation(a);if(e.isShorthandPropertyAssignment(a)&&e.isBinaryExpression(a.parent.parent)&&2===e.getAssignmentDeclarationKind(a.parent.parent))return r.getExportSpecifierLocalTargetSymbol(a.name)}return t})(i,n)).escapedName&&(i=((t,r)=>{if(2097152&t.flags)return e.Debug.checkDefined(r.getImmediateAliasedSymbol(t));var n=e.Debug.checkDefined(t.valueDeclaration);return e.isExportAssignment(n)?e.Debug.checkDefined(n.expression.symbol):e.isBinaryExpression(n)?e.Debug.checkDefined(n.right.symbol):e.isSourceFile(n)?e.Debug.checkDefined(n.symbol):e.Debug.fail()})(i,n));var a=e.symbolEscapedNameNoDefault(i);return void 0===a||"default"===a||a===r.escapedName?{kind:0,symbol:i}:void 0}}})();function o(){var i,o=t.parent,c=o.parent;if(r.exportSymbol)return 206===o.kind?(null===(i=r.declarations)||void 0===i?void 0:i.some((e=>e===o)))&&e.isBinaryExpression(c)?p(c,!1):void 0:s(r.exportSymbol,l(o));var d=((t,r)=>{var n=e.isVariableDeclaration(t)?t:e.isBindingElement(t)?e.walkUpBindingElementsAndPatterns(t):void 0;return n?t.name!==r||e.isCatchClause(n.parent)?void 0:e.isVariableStatement(n.parent.parent)?n.parent.parent:void 0:t})(o,t);if(d&&e.hasSyntacticModifier(d,1)){if(e.isImportEqualsDeclaration(d)&&d.moduleReference===t){if(a)return;return{kind:0,symbol:n.getSymbolAtLocation(d.name)}}return s(r,l(d))}if(e.isNamespaceExport(o))return s(r,0);if(e.isExportAssignment(o))return u(o);if(e.isExportAssignment(c))return u(c);if(e.isBinaryExpression(o))return p(o,!0);if(e.isBinaryExpression(c))return p(c,!0);if(e.isJSDocTypedefTag(o))return s(r,0);function u(e){if(e.symbol.parent){var t=e.isExportEquals?2:1;return{kind:1,symbol:r,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:t}}}}function p(t,i){var a;switch(e.getAssignmentDeclarationKind(t)){case 1:a=0;break;case 2:a=2;break;default:return}var o=i?n.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(t.left,e.isAccessExpression))):r;return o&&s(o,a)}}function s(e,t){var r=i(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function l(t){return e.hasSyntacticModifier(t,512)?1:0}},t.getExportInfo=i})(e.FindAllReferences||(e.FindAllReferences={}))})(p),function(e){!function(t){var r,n,i,a;function o(e,t){return void 0===t&&(t=1),{kind:t,node:e.name||e,context:c(e)}}function s(e){return e&&void 0===e.kind}function c(t){if(e.isDeclaration(t))return l(t);if(t.parent){if(!e.isDeclaration(t.parent)&&!e.isExportAssignment(t.parent)){if(e.isInJSFile(t)){var r=e.isBinaryExpression(t.parent)?t.parent:e.isAccessExpression(t.parent)&&e.isBinaryExpression(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(r&&0!==e.getAssignmentDeclarationKind(r))return l(r)}if(e.isJsxOpeningElement(t.parent)||e.isJsxClosingElement(t.parent))return t.parent.parent;if(e.isJsxSelfClosingElement(t.parent)||e.isLabeledStatement(t.parent)||e.isBreakOrContinueStatement(t.parent))return t.parent;if(e.isStringLiteralLike(t)){var n=e.tryGetImportFromModuleSpecifier(t);if(n){var i=e.findAncestor(n,(t=>e.isDeclaration(t)||e.isStatement(t)||e.isJSDocTag(t)));return e.isDeclaration(i)?l(i):i}}var a=e.findAncestor(t,e.isComputedPropertyName);return a?l(a.parent):void 0}return t.parent.name===t||e.isConstructorDeclaration(t.parent)||e.isExportAssignment(t.parent)||(e.isImportOrExportSpecifier(t.parent)||e.isBindingElement(t.parent))&&t.parent.propertyName===t||88===t.kind&&e.hasSyntacticModifier(t.parent,513)?l(t.parent):void 0}}function l(t){if(t)switch(t.kind){case 254:return e.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?e.isVariableStatement(t.parent.parent)?t.parent.parent:e.isForInOrOfStatement(t.parent.parent)?l(t.parent.parent):t.parent:t;case 203:return l(t.parent.parent);case 270:return t.parent.parent.parent;case 275:case 268:return t.parent.parent;case 267:case 274:return t.parent;case 221:return e.isExpressionStatement(t.parent)?t.parent:t;case 244:case 243:return{start:t.initializer,end:t.expression};case 296:case 297:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)?l(e.findAncestor(t.parent,(t=>e.isBinaryExpression(t)||e.isForInOrOfStatement(t)))):t;default:return t}}function d(e,t,r){if(r){var n=s(r)?b(r.start,t,r.end):b(r,t);return n.start!==e.start||n.length!==e.length?{contextSpan:n}:void 0}}function u(t,n,i,a,s){if(305!==a.kind){var c=t.getTypeChecker();if(297===a.parent.kind){var l=[];return r.getReferenceEntriesForShorthandPropertyAssignment(a,c,(e=>l.push(o(e)))),l}if(106===a.kind||e.isSuperProperty(a.parent)){var d=c.getSymbolAtLocation(a);return d.valueDeclaration&&[o(d.valueDeclaration)]}return p(s,a,t,i,n,{implementations:!0,use:1})}}function p(t,n,i,a,o,s,c){return void 0===s&&(s={}),void 0===c&&(c=new e.Set(a.map((e=>e.fileName)))),_(r.getReferencedSymbolsForNode(t,n,i,a,o,s,c))}function _(t){return t&&e.flatMap(t,(e=>e.references))}function g(t){var r=t.getSourceFile();return{sourceFile:r,textSpan:b(e.isComputedPropertyName(t)?t.expression:t,r)}}function h(t,n,i){var a=r.getIntersectingMeaningFromDeclarations(i,t),o=t.declarations&&e.firstOrUndefined(t.declarations)||i,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,t,o.getSourceFile(),o,o,a);return{displayParts:s.displayParts,kind:s.symbolKind}}function y(e){var t=v(e);if(0===e.kind)return m(m({},t),{isWriteAccess:!1});var r=e.kind,n=e.node;return m(m({},t),{isWriteAccess:x(n),isInString:2===r||void 0})}function v(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var t=e.node.getSourceFile(),r=b(e.node,t);return m({textSpan:r,fileName:t.fileName},d(r,t,e.context))}function b(t,r,n){var i=t.getStart(r),a=(n||t).getEnd();return e.isStringLiteralLike(t)&&a-i>2&&(e.Debug.assert(void 0===n),i+=1,a-=1),e.createTextSpanFromBounds(i,a)}function E(e){return 0===e.kind?e.textSpan:b(e.node,e.node.getSourceFile())}function x(t){var r=e.getDeclarationFromName(t);return!!r&&(t=>{if(16777216&t.flags)return!0;switch(t.kind){case 221:case 203:case 257:case 226:case 88:case 260:case 299:case 275:case 267:case 265:case 270:case 258:case 338:case 345:case 285:case 261:case 264:case 268:case 274:case 164:case 297:case 259:case 163:return!0;case 296:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 256:case 213:case 171:case 169:case 172:case 173:return!!t.body;case 254:case 167:return!!t.initializer||e.isCatchClause(t.parent);case 168:case 166:case 347:case 340:return!1;default:return e.Debug.failBadSyntaxKind(t)}})(r)||88===t.kind||e.isWriteAccess(t)}function D(t,r){var n;if(!r)return!1;var i=e.getDeclarationFromName(t)||(88===t.kind?t.parent:e.isLiteralComputedPropertyDeclarationName(t)||134===t.kind&&e.isConstructorDeclaration(t.parent)?t.parent.parent:void 0),a=i&&e.isBinaryExpression(i)?i.left:void 0;return!(!i||!(null===(n=r.declarations)||void 0===n?void 0:n.some((e=>e===i||e===a))))}(a=t.DefinitionKind||(t.DefinitionKind={}))[a.Symbol=0]="Symbol",a[a.Label=1]="Label",a[a.Keyword=2]="Keyword",a[a.This=3]="This",a[a.String=4]="String",a[a.TripleSlashReference=5]="TripleSlashReference",(i=t.EntryKind||(t.EntryKind={}))[i.Span=0]="Span",i[i.Node=1]="Node",i[i.StringLiteral=2]="StringLiteral",i[i.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",i[i.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",t.nodeEntry=o,t.isContextWithStartAndEndNode=s,t.getContextNode=l,t.toContextSpan=d,(n=t.FindReferencesUse||(t.FindReferencesUse={}))[n.Other=0]="Other",n[n.References=1]="References",n[n.Rename=2]="Rename",t.findReferencedSymbols=(t,n,i,a,o)=>{var s=e.getTouchingPropertyName(a,o),c={use:1},u=r.getReferencedSymbolsForNode(o,s,t,i,n,c),p=t.getTypeChecker(),_=r.getAdjustedNode(s,c),f=(t=>88===t.kind||!!e.getDeclarationFromName(t)||e.isLiteralComputedPropertyDeclarationName(t)||134===t.kind&&e.isConstructorDeclaration(t.parent))(_)?p.getSymbolAtLocation(_):void 0;return u&&u.length?e.mapDefined(u,(t=>{var r=t.definition,i=t.references;return r&&{definition:p.runWithCancellationToken(n,(t=>((t,r,n)=>{var i=(()=>{switch(t.type){case 0:var i=h(p=t.symbol,r,n),a=i.displayParts,o=i.kind,s=a.map((e=>e.text)).join(""),c=p.declarations&&e.firstOrUndefined(p.declarations),d=c?e.getNameOfDeclaration(c)||c:n;return m(m({},g(d)),{name:s,kind:o,displayParts:a,context:l(c)});case 1:return d=t.node,m(m({},g(d)),{name:d.text,kind:"label",displayParts:[e.displayPart(d.text,e.SymbolDisplayPartKind.text)]});case 2:d=t.node;var u=e.tokenToString(d.kind);return m(m({},g(d)),{name:u,kind:"keyword",displayParts:[{text:u,kind:"keyword"}]});case 3:d=t.node;var p,_=(p=r.getSymbolAtLocation(d))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,p,d.getSourceFile(),e.getContainerNode(d),d).displayParts||[e.textPart("this")];return m(m({},g(d)),{name:"this",kind:"var",displayParts:_});case 4:return d=t.node,m(m({},g(d)),{name:d.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(d),e.SymbolDisplayPartKind.stringLiteral)]});case 5:return{textSpan:e.createTextSpanFromRange(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(t.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}})(),a=i.sourceFile,o=i.textSpan,s=i.name,c=i.kind,u=i.displayParts,p=i.context;return m({containerKind:"",containerName:"",fileName:a.fileName,kind:c,name:s,textSpan:o,displayParts:u},d(o,a,p))})(r,t,s))),references:i.map((e=>((e,t)=>{var r=y(e);return t?m(m({},r),{isDefinition:0!==e.kind&&D(e.node,t)}):r})(e,f)))}})):void 0},t.getImplementationsAtPosition=(t,r,n,i,a)=>{var o,s=e.getTouchingPropertyName(i,a),c=u(t,r,n,s,a);if(206===s.parent.kind||203===s.parent.kind||207===s.parent.kind||106===s.kind)o=c&&f([],c,!0);else if(c)for(var l=e.createQueue(c),d=new e.Map;!l.isEmpty();){var p=l.dequeue();if(e.addToSeen(d,e.getNodeId(p.node))){o=e.append(o,p);var _=u(t,r,n,p.node,p.node.pos);_&&l.enqueue.apply(l,_)}}var g=t.getTypeChecker();return e.map(o,(t=>((t,r)=>{var n=v(t);if(0!==t.kind){var i=t.node;return m(m({},n),((t,r)=>{var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?h(n,r,t):205===t.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:226===t.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(t),displayParts:[]}})(i,r))}return m(m({},n),{kind:"",displayParts:[]})})(t,g)))},t.findReferenceOrRenameEntries=(t,n,i,a,o,s,c)=>e.map(_(r.getReferencedSymbolsForNode(o,a,t,i,n,s)),(e=>c(e,a,t.getTypeChecker()))),t.getReferenceEntriesForNode=p,t.toRenameLocation=(t,r,n,i)=>m(m({},v(t)),i&&((t,r,n)=>{if(0!==t.kind&&e.isIdentifier(r)){var i=t.node,a=t.kind,o=i.parent,s=r.text,c=e.isShorthandPropertyAssignment(o);if(c||e.isObjectBindingElementWithoutPropertyName(o)&&o.name===i&&void 0===o.dotDotDotToken){var l={prefixText:s+": "},d={suffixText:": "+s};if(3===a)return l;if(4===a)return d;if(c){var u=o.parent;return e.isObjectLiteralExpression(u)&&e.isBinaryExpression(u.parent)&&e.isModuleExportsAccessExpression(u.parent.left)?l:d}return l}if(e.isImportSpecifier(o)&&!o.propertyName){var p=e.isExportSpecifier(r.parent)?n.getExportSpecifierLocalTargetSymbol(r.parent):n.getSymbolAtLocation(r);return e.contains(p.declarations,o)?{prefixText:s+" as "}:e.emptyOptions}if(e.isExportSpecifier(o)&&!o.propertyName)return r===t.node||n.getSymbolAtLocation(r)===n.getSymbolAtLocation(t.node)?{prefixText:s+" as "}:{suffixText:" as "+s}}return e.emptyOptions})(t,r,n)),t.toReferenceEntry=y,t.toHighlightSpan=e=>{var t=v(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=x(e.node),n=m({textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:n}},t.getTextSpanOfEntry=E,t.isDeclarationOfSymbol=D,function(r){function n(t,r){return 1===r.use?t=e.getAdjustedReferenceLocation(t):2===r.use&&(t=e.getAdjustedRenameLocation(t)),t}function i(t,r,n){for(var i,a=0,o=r.get(t.path)||e.emptyArray;a<o.length;a++){var s=o[a];if(e.isReferencedFile(s)){var c=n.getSourceFileByPath(s.file),l=e.getReferencedFileLocation(n.getSourceFileByPath,s);e.isReferenceFileLocation(l)&&(i=e.append(i,{kind:0,fileName:c.fileName,textSpan:e.createTextSpanFromRange(l)}))}}return i}function a(t,r,n){if(t.parent&&e.isNamespaceExportDeclaration(t.parent)){var i=n.getAliasedSymbol(r),a=n.getMergedSymbol(i);if(i!==a)return a}}function s(t,r,n,i,a,o){var s=1536&t.flags&&t.declarations&&e.find(t.declarations,e.isSourceFile);if(s){var l=t.exports.get("export="),u=d(r,t,!!l,n,o);if(!l||!o.has(s.fileName))return u;var _=r.getTypeChecker();return c(r,u,p(t=e.skipAlias(l,_),void 0,n,o,_,i,a))}}function c(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var a=0,o=n;a<o.length;a++){var s=o[a];if(s&&s.length)if(r)for(var c=n=>{if(!n.definition||0!==n.definition.type)return r.push(n),"continue";var i=n.definition.symbol,a=e.findIndex(r,(e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===i));if(-1===a)return r.push(n),"continue";var o=r[a];r[a]={definition:o.definition,references:o.references.concat(n.references).sort(((r,n)=>{var i=l(t,r),a=l(t,n);if(i!==a)return e.compareValues(i,a);var o=E(r),s=E(n);return o.start!==s.start?e.compareValues(o.start,s.start):e.compareValues(o.length,s.length)}))}},d=0,u=s;d<u.length;d++){var p=u[d];c(p)}else r=s}return r}function l(e,t){var r=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(r)}function d(r,n,i,a,s){e.Debug.assert(!!n.valueDeclaration);var c=e.mapDefined(t.findModuleReferences(r,a,n),(t=>{if("import"===t.kind){var r=t.literal.parent;if(e.isLiteralTypeNode(r)){var n=e.cast(r.parent,e.isImportTypeNode);if(i&&!n.qualifier)return}return o(t.literal)}return{kind:0,fileName:t.referencingFile.fileName,textSpan:e.createTextSpanFromRange(t.ref)}}));if(n.declarations)for(var l=0,d=n.declarations;l<d.length;l++)switch((f=d[l]).kind){case 305:break;case 261:s.has(f.getSourceFile().fileName)&&c.push(o(f.name));break;default:e.Debug.assert(!!(33554432&n.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}var u=n.exports.get("export=");if(null==u?void 0:u.declarations)for(var p=0,_=u.declarations;p<_.length;p++){var f,m=(f=_[p]).getSourceFile();if(s.has(m.fileName)){var g=e.isBinaryExpression(f)&&e.isPropertyAccessExpression(f.left)?f.left.expression:e.isExportAssignment(f)?e.Debug.checkDefined(e.findChildOfKind(f,93,m)):e.getNameOfDeclaration(f)||f;c.push(o(g))}}return c.length?[{definition:{type:0,symbol:n},references:c}]:e.emptyArray}function u(t){return 145===t.kind&&e.isTypeOperatorNode(t.parent)&&145===t.parent.operator}function p(t,r,n,i,a,o,s){var c=r&&((t,r,n,i)=>{var a=r.parent;return e.isExportSpecifier(a)&&i?w(r,t,a,n):e.firstDefined(t.declarations,(i=>{if(!i.parent){if(33554432&t.flags)return;e.Debug.fail("Unexpected symbol at ".concat(e.Debug.formatSyntaxKind(r.kind),": ").concat(e.Debug.formatSymbol(t)))}return e.isTypeLiteralNode(i.parent)&&e.isUnionTypeNode(i.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(i.parent.parent),t.name):void 0}))})(t,r,a,!H(s))||t,l=r?j(r,c):7,d=[],u=new m(n,i,r?(t=>{switch(t.kind){case 171:case 134:return 1;case 79:if(e.isClassLike(t.parent))return e.Debug.assert(t.parent.name===t),2;default:return 0}})(r):0,a,o,l,s,d),p=H(s)&&c.declarations?e.find(c.declarations,e.isExportSpecifier):void 0;if(p)N(p.name,c,p,u.createSearch(r,t,void 0),u,!0,!0);else if(r&&88===r.kind&&"default"===c.escapedName&&c.parent)F(r,c,u),g(r,c,{exportingModuleSymbol:c.parent,exportKind:1},u);else{var f=u.createSearch(r,c,void 0,{allSearchSymbols:r?L(c,r,a,2===s.use,!!s.providePrefixAndSuffixTextForRename,!!s.implementations):[c]});_(c,u,f)}return d}function _(t,r,n){var i=(t=>{var r=t.declarations,n=t.flags,i=t.parent,a=t.valueDeclaration;if(a&&(213===a.kind||226===a.kind))return a;if(r){if(8196&n){var o=e.find(r,(t=>e.hasEffectiveModifier(t,8)||e.isPrivateIdentifierClassElementDeclaration(t)));return o?e.getAncestor(o,257):void 0}if(!r.some(e.isObjectBindingElementWithoutPropertyName)){var s,c=i&&!(262144&t.flags);if(!c||e.isExternalModuleSymbol(i)&&!i.globalExports){for(var l=0,d=r;l<d.length;l++){var u=d[l],p=e.getContainerNode(u);if(s&&s!==p)return;if(!p||305===p.kind&&!e.isExternalOrCommonJsModule(p))return;if(s=p,e.isFunctionExpression(s))for(var _=void 0;_=e.getNextJSDocCommentLocation(s);)s=_}return c?s.getSourceFile():s}}}})(t);if(i)C(i,i.getSourceFile(),n,r,!(e.isSourceFile(i)&&!e.contains(r.sourceFiles,i)));else for(var a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a];r.cancellationToken.throwIfCancellationRequested(),v(s,n,r)}}var f;r.getReferencedSymbolsForNode=(t,r,l,_,f,m,g)=>{var h,y;if(void 0===m&&(m={}),void 0===g&&(g=new e.Set(_.map((e=>e.fileName)))),r=n(r,m),e.isSourceFile(r)){var v=e.GoToDefinition.getReferenceAtPosition(r,t,l);if(!(null==v?void 0:v.file))return;var b=l.getTypeChecker().getMergedSymbol(v.file.symbol);if(b)return d(l,b,!1,_,g);if(!(N=l.getFileIncludeReasons()))return;return[{definition:{type:5,reference:v.reference,file:r},references:i(v.file,N,l)||e.emptyArray}]}if(!m.implementations){var E=((t,r,n)=>{if(e.isTypeKeyword(t.kind)){if(114===t.kind&&e.isVoidExpression(t.parent))return;if(145===t.kind&&!u(t))return;return((t,r,n,i)=>{var a=e.flatMap(t,(t=>(n.throwIfCancellationRequested(),e.mapDefined(x(t,e.tokenToString(r),t),(e=>{if(e.kind===r&&(!i||i(e)))return o(e)})))));return a.length?[{definition:{type:2,node:a[0].node},references:a}]:void 0})(r,t.kind,n,145===t.kind?u:void 0)}if(e.isImportMeta(t.parent)&&t.parent.name===t)return((t,r)=>{var n=e.flatMap(t,(t=>(r.throwIfCancellationRequested(),e.mapDefined(x(t,"meta",t),(t=>{var r=t.parent;if(e.isImportMeta(r))return o(r)})))));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0})(r,n);if(e.isStaticModifier(t)&&e.isClassStaticBlockDeclaration(t.parent))return[{definition:{type:2,node:t},references:[o(t)]}];if(e.isJumpStatementTarget(t)){var i=e.getTargetLabel(t.parent,t.text);return i&&S(i.parent,i)}return e.isLabelOfLabeledStatement(t)?S(t.parent,t):e.isThis(t)?((t,r,n)=>{var i=e.getThisContainer(t,!1),a=32;switch(i.kind){case 169:case 168:if(e.isObjectLiteralMethod(i)){a&=e.getSyntacticModifierFlags(i),i=i.parent;break}case 167:case 166:case 171:case 172:case 173:a&=e.getSyntacticModifierFlags(i),i=i.parent;break;case 305:if(e.isExternalModule(i)||R(t))return;case 256:case 213:break;default:return}var s=e.flatMap(305===i.kind?r:[i.getSourceFile()],(t=>(n.throwIfCancellationRequested(),x(t,"this",e.isSourceFile(i)?t:i).filter((t=>{if(!e.isThis(t))return!1;var r=e.getThisContainer(t,!1);switch(i.kind){case 213:case 256:return i.symbol===r.symbol;case 169:case 168:return e.isObjectLiteralMethod(i)&&i.symbol===r.symbol;case 226:case 257:case 205:return r.parent&&i.symbol===r.parent.symbol&&e.isStatic(r)===!!a;case 305:return 305===r.kind&&!e.isExternalModule(r)&&!R(t)}}))))).map((e=>o(e)));return[{definition:{type:3,node:e.firstDefined(s,(t=>e.isParameter(t.node.parent)?t.node:void 0))||t},references:s}]})(t,r,n):106===t.kind?(t=>{var r=e.getSuperContainer(t,!1);if(r){var n=32;switch(r.kind){case 167:case 166:case 169:case 168:case 171:case 172:case 173:n&=e.getSyntacticModifierFlags(r),r=r.parent;break;default:return}var i=r.getSourceFile(),a=e.mapDefined(x(i,"super",r),(t=>{if(106===t.kind){var i=e.getSuperContainer(t,!1);return i&&e.isStatic(i)===!!n&&i.parent.symbol===r.symbol?o(t):void 0}}));return[{definition:{type:0,symbol:r.symbol},references:a}]}})(t):void 0})(r,_,f);if(E)return E}var D=l.getTypeChecker(),T=D.getSymbolAtLocation(e.isConstructorDeclaration(r)&&r.parent.name||r);if(T){if("export="===T.escapedName)return d(l,T.parent,!1,_,g);var C=s(T,l,_,f,m,g);if(C&&!(33554432&T.flags))return C;var A=a(r,T,D),k=A&&s(A,l,_,f,m,g);return c(l,C,p(T,r,_,g,D,f,m),k)}if(!m.implementations&&e.isStringLiteralLike(r)){if(e.isModuleSpecifierLike(r)){var N=l.getFileIncludeReasons(),w=null===(y=null===(h=r.getSourceFile().resolvedModules)||void 0===h?void 0:h.get(r.text,e.getModeForUsageLocation(r.getSourceFile(),r)))||void 0===y?void 0:y.resolvedFileName,F=w?l.getSourceFile(w):void 0;if(F)return[{definition:{type:4,node:r},references:i(F,N,l)||e.emptyArray}]}return((t,r,n,i)=>{var a=e.getContextualTypeFromParentOrAncestorTypeNode(t,n),s=e.flatMap(r,(r=>(i.throwIfCancellationRequested(),e.mapDefined(x(r,t.text),(i=>{if(e.isStringLiteralLike(i)&&i.text===t.text){if(!a)return e.isNoSubstitutionTemplateLiteral(i)&&!e.rangeIsOnSingleLine(i,r)?void 0:o(i,2);var s=e.getContextualTypeFromParentOrAncestorTypeNode(i,n);if(a!==n.getStringType()&&a===s)return o(i,2)}})))));return[{definition:{type:4,node:t},references:s}]})(r,_,D,f)}},r.getAdjustedNode=n,r.getReferencesForFileName=(t,r,n,a)=>{var o,s;void 0===a&&(a=new e.Set(n.map((e=>e.fileName))));var c=null===(o=r.getSourceFile(t))||void 0===o?void 0:o.symbol;if(c)return(null===(s=d(r,c,!1,n,a)[0])||void 0===s?void 0:s.references)||e.emptyArray;var l=r.getFileIncludeReasons(),u=r.getSourceFile(t);return u&&l&&i(u,l,r)||e.emptyArray},(e=>{e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"})(f||(f={}));var m=function(){function r(t,r,n,i,a,o,s,c){this.sourceFiles=t,this.sourceFilesSet=r,this.specialSearchKind=n,this.checker=i,this.cancellationToken=a,this.searchMeaning=o,this.options=s,this.result=c,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return r.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},r.prototype.getImportSearches=function(e,r){return this.importTracker||(this.importTracker=t.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,r,2===this.options.use)},r.prototype.createSearch=function(t,r,n,i){void 0===i&&(i={});var a=i.text,o=void 0===a?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(r)||(t=>{if(33555968&t.flags){var r=t.declarations&&e.find(t.declarations,(t=>!e.isSourceFile(t)&&!e.isModuleDeclaration(t)));return r&&r.symbol}})(r)||r)):a,s=i.allSearchSymbols,c=void 0===s?[r]:s;return{symbol:r,comingFrom:n,text:o,escapedText:e.escapeLeadingUnderscores(o),parents:this.options.implementations&&t?((t,r,n)=>{var i=e.isRightSideOfPropertyAccess(t)?t.parent:void 0,a=i&&n.getTypeAtLocation(i.expression),o=e.mapDefined(a&&(a.isUnionOrIntersection()?a.types:a.symbol===r.parent?void 0:[a]),(e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0));return 0===o.length?void 0:o})(t,r,this.checker):void 0,allSearchSymbols:c,includes:t=>e.contains(c,t)}},r.prototype.referenceAdder=function(t){var r=e.getSymbolId(t),n=this.symbolIdToReferences[r];return n||(n=this.symbolIdToReferences[r]=[],this.result.push({definition:{type:0,symbol:t},references:n})),(e,t)=>n.push(o(e,t))},r.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})},r.prototype.markSearchedSymbols=function(t,r){for(var n=e.getNodeId(t),i=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new e.Set),a=!1,o=0,s=r;o<s.length;o++){var c=s[o];a=e.tryAddToSet(i,e.getSymbolId(c))||a}return a},r}();function g(e,t,r,n){var i=n.getImportSearches(t,r),a=i.importSearches,o=i.singleReferences,s=i.indirectUsers;if(o.length)for(var c=n.referenceAdder(t),l=0,d=o;l<d.length;l++){var u=d[l];h(u,n)&&c(u)}for(var p=0,_=a;p<_.length;p++){var f=_[p],m=f[0],g=f[1];T(m.getSourceFile(),n.createSearch(m,g,1),n)}if(s.length){var y=void 0;switch(r.exportKind){case 0:y=n.createSearch(e,t,1);break;case 1:y=2===n.options.use?void 0:n.createSearch(e,t,1,{text:"default"})}if(y)for(var b=0,E=s;b<E.length;b++)v(E[b],y,n)}}function h(t,r){return!(!A(t,r)||2===r.options.use&&(!e.isIdentifier(t)||e.isImportOrExportSpecifier(t.parent)&&"default"===t.escapedText))}function y(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r],a=i.getSourceFile();T(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function v(t,r,n){void 0!==e.getNameTable(t).get(r.escapedText)&&T(t,r,n)}function b(t,r,n,i,a){void 0===a&&(a=n);var o=e.isParameterPropertyDeclaration(t.parent,t.parent.parent)?e.first(r.getSymbolsOfParameterPropertyDeclaration(t.parent,t.text)):r.getSymbolAtLocation(t);if(o)for(var s=0,c=x(n,o.name,a);s<c.length;s++){var l=c[s];if(e.isIdentifier(l)&&l!==t&&l.escapedText===t.escapedText){var d=r.getSymbolAtLocation(l);if(d===o||r.getShorthandAssignmentValueSymbol(l.parent)===o||e.isExportSpecifier(l.parent)&&w(l,d,l.parent,r)===o){var u=i(l);if(u)return u}}}}function x(t,r,n){return void 0===n&&(n=t),D(t,r,n).map((r=>e.getTouchingPropertyName(t,r)))}function D(t,r,n){void 0===n&&(n=t);var i=[];if(!r||!r.length)return i;for(var a=t.text,o=a.length,s=r.length,c=a.indexOf(r,n.pos);c>=0&&!(c>n.end);){var l=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||l!==o&&e.isIdentifierPart(a.charCodeAt(l),99)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function S(t,r){var n=t.getSourceFile(),i=r.text,a=e.mapDefined(x(n,i,t),(t=>t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,i)===r?o(t):void 0));return[{definition:{type:1,node:r},references:a}]}function T(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),C(e,e,t,r,n)}function C(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=D(t,r.text,e);a<o.length;a++)k(t,o[a],r,n,i)}function A(t,r){return!!(e.getMeaningFromLocation(t)&r.searchMeaning)}function k(r,n,i,a,o){var s=e.getTouchingPropertyName(r,n);if(((t,r)=>{switch(t.kind){case 80:if(e.isJSDocMemberName(t.parent))return!0;case 79:return t.text.length===r.length;case 14:case 10:var n=t;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)||e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t)||e.isCallExpression(t.parent)&&e.isBindableObjectDefinePropertyCall(t.parent)&&t.parent.arguments[1]===t)&&n.text.length===r.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)&&t.text.length===r.length;case 88:return"default".length===r.length;default:return!1}})(s,i.text)){if(A(s,a)){var c=a.checker.getSymbolAtLocation(s);if(c){var l=s.parent;if(!e.isImportSpecifier(l)||l.propertyName!==s){if(e.isExportSpecifier(l))return e.Debug.assert(79===s.kind),void N(s,c,l,i,a,o);var d=((t,r,n,i)=>{var a=i.checker;return B(r,n,a,!1,2!==i.options.use||!!i.options.providePrefixAndSuffixTextForRename,((n,i,a,o)=>(a&&U(r)!==U(a)&&(a=void 0),t.includes(a||i||n)?{symbol:!i||6&e.getCheckFlags(n)?n:i,kind:o}:void 0)),(e=>!(t.parents&&!t.parents.some((t=>M(e.parent,t,i.inheritsFromCache,a))))))})(i,c,s,a);if(d){switch(a.specialSearchKind){case 0:o&&F(s,d,a);break;case 1:!((t,r,n,i)=>{e.isNewExpressionTarget(t)&&F(t,n.symbol,i);var a,o=()=>i.referenceAdder(n.symbol);if(e.isClassLike(t.parent))e.Debug.assert(88===t.kind||t.parent.name===t),((t,r,n)=>{var i=P(t);if(i&&i.declarations)for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a],c=e.findChildOfKind(s,134,r);e.Debug.assert(171===s.kind&&!!c),n(c)}t.exports&&t.exports.forEach((t=>{var r=t.valueDeclaration;if(r&&169===r.kind){var i=r.body;i&&z(i,108,(t=>{e.isNewExpressionTarget(t)&&n(t)}))}}))})(n.symbol,r,o());else{var s=(a=t,e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(a).parent));s&&(((t,r)=>{var n=P(t.symbol);if(n&&n.declarations)for(var i=0,a=n.declarations;i<a.length;i++){var o=a[i];e.Debug.assert(171===o.kind);var s=o.body;s&&z(s,106,(t=>{e.isCallExpressionTarget(t)&&r(t)}))}})(s,o()),((e,t)=>{if(!(e=>!!P(e.symbol))(e)){var r=e.symbol,n=t.createSearch(void 0,r,void 0);_(r,t,n)}})(s,i))}})(s,r,i,a);break;case 2:!((t,r,n)=>{F(t,r.symbol,n);var i=t.parent;if(2!==n.options.use&&e.isClassLike(i)){e.Debug.assert(i.name===t);for(var a=n.referenceAdder(r.symbol),o=0,s=i.members;o<s.length;o++){var c=s[o];e.isMethodOrAccessor(c)&&e.isStatic(c)&&c.body&&c.body.forEachChild((function t(r){108===r.kind?a(r):e.isFunctionLike(r)||e.isClassLike(r)||r.forEachChild(t)}))}}})(s,i,a);break;default:e.Debug.assertNever(a.specialSearchKind)}e.isInJSFile(s)&&203===s.parent.kind&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(s.parent.parent.parent)&&!(c=s.parent.symbol)||((e,r,n,i)=>{var a=t.getImportOrExportSymbol(e,r,i.checker,1===n.comingFrom);if(a){var o=a.symbol;0===a.kind?H(i.options)||y(o,i):g(e,o,a.exportInfo,i)}})(s,c,i,a)}else!((t,r,n)=>{var i=t.flags,a=t.valueDeclaration,o=n.checker.getShorthandAssignmentValueSymbol(a),s=a&&e.getNameOfDeclaration(a);33554432&i||!s||!r.includes(o)||F(s,o,n)})(c,i,a)}}}}else!a.options.implementations&&(a.options.findInStrings&&e.isInString(r,n)||a.options.findInComments&&e.isInNonReferenceComment(r,n))&&a.addStringOrCommentReference(r.fileName,e.createTextSpan(n,i.text.length))}function N(r,n,i,a,o,s,c){e.Debug.assert(!c||!!o.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var l=i.parent,d=i.propertyName,u=i.name,p=l.parent,_=w(r,n,i,o.checker);if(c||a.includes(_)){if(d?r===d?(p.moduleSpecifier||b(),s&&2!==o.options.use&&o.markSeenReExportRHS(u)&&F(u,e.Debug.checkDefined(i.symbol),o)):o.markSeenReExportRHS(r)&&b():2===o.options.use&&"default"===u.escapedText||b(),!H(o.options)||c){var f=88===r.originalKeywordKind||88===i.name.originalKeywordKind?1:0,m=e.Debug.checkDefined(i.symbol),h=t.getExportInfo(m,f,o.checker);h&&g(r,m,h,o)}if(1!==a.comingFrom&&p.moduleSpecifier&&!d&&!H(o.options)){var v=o.checker.getExportSpecifierLocalTargetSymbol(i);v&&y(v,o)}}function b(){s&&F(r,_,o)}}function w(t,r,n,i){return((t,r)=>{var n=r.parent,i=r.propertyName,a=r.name;return e.Debug.assert(i===t||a===t),i?i===t:!n.parent.moduleSpecifier})(t,n)&&i.getExportSpecifierLocalTargetSymbol(n)||r}function F(t,r,n){var i="kind"in r?r:{kind:void 0,symbol:r},a=i.kind,o=i.symbol;if(2!==n.options.use||88!==t.kind){var s=n.referenceAdder(o);n.options.implementations?((t,r,n)=>{var i;if(!e.isDeclarationName(t)||(16777216&(i=t.parent).flags?e.isInterfaceDeclaration(i)||e.isTypeAliasDeclaration(i):!(e.isVariableLike(i)?e.hasInitializer(i):e.isFunctionLikeDeclaration(i)?i.body:e.isClassLike(i)||e.isModuleOrEnumDeclaration(i)))){if(79===t.kind){297===t.parent.kind&&V(t,n.checker,r);var a=I(t);if(a)r(a);else{var o=e.findAncestor(t,(t=>!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent))),s=o.parent;if(e.hasType(s)&&s.type===o&&n.markSeenContainingTypeReference(s))if(e.hasInitializer(s))l(s.initializer);else if(e.isFunctionLike(s)&&s.body){var c=s.body;235===c.kind?e.forEachReturnStatement(c,(e=>{e.expression&&l(e.expression)})):l(c)}else e.isAssertionExpression(s)&&l(s.expression)}}}else r(t);function l(e){O(e)&&r(e)}})(t,s,n):s(t,a)}}function P(e){return e.members&&e.members.get("__constructor")}function I(t){return e.isIdentifier(t)||e.isPropertyAccessExpression(t)?I(t.parent):e.isExpressionWithTypeArguments(t)?e.tryCast(t.parent.parent,e.isClassLike):void 0}function O(e){switch(e.kind){case 212:return O(e.expression);case 214:case 213:case 205:case 226:case 204:return!0;default:return!1}}function M(t,r,n,i){if(t===r)return!0;var a=e.getSymbolId(t)+","+e.getSymbolId(r),o=n.get(a);if(void 0!==o)return o;n.set(a,!1);var s=!!t.declarations&&t.declarations.some((t=>e.getAllSuperTypeNodes(t).some((e=>{var t=i.getTypeAtLocation(e);return!!t&&!!t.symbol&&M(t.symbol,r,n,i)}))));return n.set(a,s),s}function R(e){return 79===e.kind&&164===e.parent.kind&&e.parent.name===e}function L(e,t,r,n,i,a){var o=[];return B(e,t,r,n,!(n&&i),((t,r,n)=>{n&&U(e)!==U(n)&&(n=void 0),o.push(n||r||t)}),(()=>!a)),o}function B(t,r,n,i,o,s,c){var l=e.getContainingObjectLiteralElement(r);if(l){var d=n.getShorthandAssignmentValueSymbol(r.parent);if(d&&i)return s(d,void 0,void 0,3);var u=n.getContextualType(l.parent),p=u&&e.firstDefined(e.getPropertySymbolsFromContextualType(l,n,u,!0),(e=>S(e,4)));if(p)return p;var _=((t,r)=>e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent)?r.getPropertySymbolOfDestructuringAssignment(t):void 0)(r,n),f=_&&s(_,void 0,void 0,4);if(f)return f;var m=d&&s(d,void 0,void 0,3);if(m)return m}var g=a(r,t,n);if(g){var h=s(g,void 0,void 0,1);if(h)return h}var y=S(t);if(y)return y;if(t.valueDeclaration&&e.isParameterPropertyDeclaration(t.valueDeclaration,t.valueDeclaration.parent)){var v=n.getSymbolsOfParameterPropertyDeclaration(e.cast(t.valueDeclaration,e.isParameter),t.name);return e.Debug.assert(2===v.length&&!!(1&v[0].flags)&&!!(4&v[1].flags)),S(1&t.flags?v[1]:v[0])}var b=e.getDeclarationOfKind(t,275);if(!i||b&&!b.propertyName){var E=b&&n.getExportSpecifierLocalTargetSymbol(b);if(E){var x=s(E,void 0,void 0,1);if(x)return x}}if(!i){var D=void 0;return(D=o?e.isObjectBindingElementWithoutPropertyName(r.parent)?e.getPropertySymbolFromBindingElement(n,r.parent):void 0:T(t,n))&&S(D,4)}if(e.Debug.assert(i),o)return(D=T(t,n))&&S(D,4);function S(t,r){return e.firstDefined(n.getRootSymbols(t),(i=>s(t,i,void 0,r)||(i.parent&&96&i.parent.flags&&c(i)?((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,(a=>e.firstDefined(e.getAllSuperTypeNodes(a),(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)})(i.parent,i.name,n,(e=>s(t,i,e,r))):void 0)))}function T(t,r){var n=e.getDeclarationOfKind(t,203);if(n&&e.isObjectBindingElementWithoutPropertyName(n))return e.getPropertySymbolFromBindingElement(r,n)}}function U(t){return!!t.valueDeclaration&&!!(32&e.getEffectiveModifierFlags(t.valueDeclaration))}function j(t,r){var n=e.getMeaningFromLocation(t),i=r.declarations;if(i){var a=void 0;do{a=n;for(var o=0,s=i;o<s.length;o++){var c=s[o],l=e.getMeaningFromDeclaration(c);l&n&&(n|=l)}}while(n!==a)}return n}function V(t,r,n){var i=r.getSymbolAtLocation(t),a=r.getShorthandAssignmentValueSymbol(i.valueDeclaration);if(a)for(var o=0,s=a.getDeclarations();o<s.length;o++){var c=s[o];1&e.getMeaningFromDeclaration(c)&&n(c)}}function z(t,r,n){e.forEachChild(t,(e=>{e.kind===r&&n(e),z(e,r,n)}))}function H(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}r.eachExportReference=(r,n,i,a,o,s,c,l)=>{for(var d=t.createImportTracker(r,new e.Set(r.map((e=>e.fileName))),n,i)(a,{exportKind:c?1:0,exportingModuleSymbol:o},!1),u=d.importSearches,p=d.indirectUsers,_=d.singleReferences,f=0,m=u;f<m.length;f++)l(m[f][0]);for(var g=0,h=_;g<h.length;g++){var y=h[g];e.isIdentifier(y)&&e.isImportTypeNode(y.parent)&&l(y)}for(var v=0,b=p;v<b.length;v++)for(var E=0,D=x(b[v],c?"default":s);E<D.length;E++){var S=D[E],T=n.getSymbolAtLocation(S),C=e.some(null==T?void 0:T.declarations,(t=>!!e.tryCast(t,e.isExportAssignment)));!e.isIdentifier(S)||e.isImportOrExportSpecifier(S.parent)||T!==a&&!C||l(S)}},r.isSymbolReferencedInFile=(e,t,r,n)=>(void 0===n&&(n=r),b(e,t,r,(()=>!0),n)||!1),r.eachSymbolReferenceInFile=b,r.getTopMostDeclarationNamesInFile=(t,r)=>e.filter(x(r,t),(t=>!!e.getDeclarationFromName(t))).reduce(((t,r)=>{var n=(t=>{for(var r=0;t;)t=e.getContainerNode(t),r++;return r})(r);return e.some(t.declarationNames)&&n!==t.depth?n<t.depth&&(t.declarationNames=[r],t.depth=n):(t.declarationNames.push(r),t.depth=n),t}),{depth:1/0,declarationNames:[]}).declarationNames,r.someSignatureUsage=(t,r,n,i)=>{if(!t.name||!e.isIdentifier(t.name))return!1;for(var a=e.Debug.checkDefined(n.getSymbolAtLocation(t.name)),o=0,s=r;o<s.length;o++)for(var c=0,l=x(s[o],a.name);c<l.length;c++){var d=l[c];if(e.isIdentifier(d)&&d!==t.name&&d.escapedText===t.name.escapedText){var u=e.climbPastPropertyAccess(d),p=e.isCallExpression(u.parent)&&u.parent.expression===u?u.parent:void 0,_=n.getSymbolAtLocation(d);if(_&&n.getRootSymbols(_).some((e=>e===a))&&i(d,p))return!0}}return!1},r.getIntersectingMeaningFromDeclarations=j,r.getReferenceEntriesForShorthandPropertyAssignment=V}(r=t.Core||(t.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(p),(e=>{!(t=>{function r(t){return(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t))&&e.isVariableDeclaration(t.parent)&&t===t.parent.initializer&&e.isIdentifier(t.parent.name)&&!!(2&e.getCombinedNodeFlags(t.parent))}function n(t){return e.isSourceFile(t)||e.isModuleDeclaration(t)||e.isFunctionDeclaration(t)||e.isFunctionExpression(t)||e.isClassDeclaration(t)||e.isClassExpression(t)||e.isClassStaticBlockDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isGetAccessorDeclaration(t)||e.isSetAccessorDeclaration(t)}function i(t){return e.isSourceFile(t)||e.isModuleDeclaration(t)&&e.isIdentifier(t.name)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isClassStaticBlockDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isGetAccessorDeclaration(t)||e.isSetAccessorDeclaration(t)||(t=>(e.isFunctionExpression(t)||e.isClassExpression(t))&&e.isNamedDeclaration(t))(t)||r(t)}function a(t){return e.isSourceFile(t)?t:e.isNamedDeclaration(t)?t.name:r(t)?t.parent.name:e.Debug.checkDefined(t.modifiers&&e.find(t.modifiers,o))}function o(e){return 88===e.kind}function s(e,t){var r=a(t);return r&&e.getSymbolAtLocation(r)}function c(t,r){if(r.body)return r;if(e.isConstructorDeclaration(r))return e.getFirstConstructorWithBody(r.parent);if(e.isFunctionDeclaration(r)||e.isMethodDeclaration(r)){var n=s(t,r);return n&&n.valueDeclaration&&e.isFunctionLikeDeclaration(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return r}function l(t,r){var n,a=s(t,r);if(a&&a.declarations){var o=e.indicesOf(a.declarations),c=e.map(a.declarations,(e=>({file:e.getSourceFile().fileName,pos:e.pos})));o.sort(((t,r)=>e.compareStringsCaseSensitive(c[t].file,c[r].file)||c[t].pos-c[r].pos));for(var l=void 0,d=0,u=e.map(o,(e=>a.declarations[e]));d<u.length;d++){var p=u[d];i(p)&&(l&&l.parent===p.parent&&l.end===p.pos||(n=e.append(n,p)),l=p)}}return n}function d(t,r){var n,i,a;return e.isClassStaticBlockDeclaration(r)?r:e.isFunctionLikeDeclaration(r)?null!==(i=null!==(n=c(t,r))&&void 0!==n?n:l(t,r))&&void 0!==i?i:r:null!==(a=l(t,r))&&void 0!==a?a:r}function u(t,a){for(var o=t.getTypeChecker(),s=!1;;){if(i(a))return d(o,a);var c;if(n(a))return(c=e.findAncestor(a,i))&&d(o,c);if(e.isDeclarationName(a))return i(a.parent)?d(o,a.parent):n(a.parent)?(c=e.findAncestor(a.parent,i))&&d(o,c):e.isVariableDeclaration(a.parent)&&a.parent.initializer&&r(a.parent.initializer)?a.parent.initializer:void 0;if(e.isConstructorDeclaration(a))return i(a.parent)?a.parent:void 0;if(124!==a.kind||!e.isClassStaticBlockDeclaration(a.parent)){if(e.isVariableDeclaration(a)&&a.initializer&&r(a.initializer))return a.initializer;if(!s){var l=o.getSymbolAtLocation(a);if(l&&(2097152&l.flags&&(l=o.getAliasedSymbol(l)),l.valueDeclaration)){s=!0,a=l.valueDeclaration;continue}}return}a=a.parent}}function p(t,n){var i=n.getSourceFile(),a=((t,n)=>{if(e.isSourceFile(n))return{text:n.fileName,pos:0,end:0};if((e.isFunctionDeclaration(n)||e.isClassDeclaration(n))&&!e.isNamedDeclaration(n)){var i=n.modifiers&&e.find(n.modifiers,o);if(i)return{text:"default",pos:i.getStart(),end:i.getEnd()}}if(e.isClassStaticBlockDeclaration(n)){var a=n.getSourceFile(),s=e.skipTrivia(a.text,e.moveRangePastModifiers(n).pos),c=s+6,l=(u=(d=t.getTypeChecker()).getSymbolAtLocation(n.parent))?"".concat(d.symbolToString(u,n.parent)," "):"";return{text:"".concat(l,"static {}"),pos:s,end:c}}var d,u,p=r(n)?n.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(n),"Expected call hierarchy item to have a name"),_=e.isIdentifier(p)?e.idText(p):e.isStringOrNumericLiteralLike(p)?p.text:e.isComputedPropertyName(p)&&e.isStringOrNumericLiteralLike(p.expression)?p.expression.text:void 0;if(void 0===_&&(u=(d=t.getTypeChecker()).getSymbolAtLocation(p))&&(_=d.symbolToString(u,n)),void 0===_){var f=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});_=e.usingSingleLineStringWriter((e=>f.writeNode(4,n,n.getSourceFile(),e)))}return{text:_,pos:p.getStart(),end:p.getEnd()}})(t,n),s=(t=>{var n,i;if(r(t))return e.isModuleBlock(t.parent.parent.parent.parent)&&e.isIdentifier(t.parent.parent.parent.parent.parent.name)?t.parent.parent.parent.parent.parent.name.getText():void 0;switch(t.kind){case 172:case 173:case 169:return 205===t.parent.kind?null===(n=e.getAssignedName(t.parent))||void 0===n?void 0:n.getText():null===(i=e.getNameOfDeclaration(t.parent))||void 0===i?void 0:i.getText();case 256:case 257:case 261:if(e.isModuleBlock(t.parent)&&e.isIdentifier(t.parent.parent.name))return t.parent.parent.name.getText()}})(n),c=e.getNodeKind(n),l=e.getNodeModifiers(n),d=e.createTextSpanFromBounds(e.skipTrivia(i.text,n.getFullStart(),!1,!0),n.getEnd()),u=e.createTextSpanFromBounds(a.pos,a.end);return{file:i.fileName,kind:c,kindModifiers:l,name:a.text,containerName:s,span:d,selectionSpan:u}}function _(e){return void 0!==e}function f(t){if(1===t.kind){var r=t.node;if(e.isCallOrNewExpressionTarget(r,!0,!0)||e.isTaggedTemplateTag(r,!0,!0)||e.isDecoratorTarget(r,!0,!0)||e.isJsxOpeningLikeElementTagName(r,!0,!0)||e.isRightSideOfPropertyAccess(r)||e.isArgumentExpressionOfElementAccess(r)){var n=r.getSourceFile();return{declaration:e.findAncestor(r,i)||n,range:e.createTextRangeFromNode(r,n)}}}}function m(t){return e.getNodeId(t.declaration)}t.resolveCallHierarchyDeclaration=u,t.createCallHierarchyItem=p,t.getIncomingCalls=(t,r,n)=>{if(e.isSourceFile(r)||e.isModuleDeclaration(r)||e.isClassStaticBlockDeclaration(r))return[];var i=a(r),o=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(t,n,t.getSourceFiles(),i,0,{use:1},f),_);return o?e.group(o,m,(r=>((t,r)=>({from:p(t,r[0].declaration),fromSpans:e.map(r,(t=>e.createTextSpanFromRange(t.range)))}))(t,r))):[]},t.getOutgoingCalls=(t,r)=>16777216&r.flags||e.isMethodSignature(r)?[]:e.group(((t,r)=>{var n=[],a=((t,r)=>{function n(n){var i=e.isTaggedTemplateExpression(n)?n.tag:e.isJsxOpeningLikeElement(n)?n.tagName:e.isAccessExpression(n)||e.isClassStaticBlockDeclaration(n)?n:n.expression,a=u(t,i);if(a){var o=e.createTextRangeFromNode(i,n.getSourceFile());if(e.isArray(a))for(var s=0,c=a;s<c.length;s++){var l=c[s];r.push({declaration:l,range:o})}else r.push({declaration:a,range:o})}}return function t(r){if(r&&!(16777216&r.flags))if(i(r)){if(e.isClassLike(r))for(var a=0,o=r.members;a<o.length;a++){var s=o[a];s.name&&e.isComputedPropertyName(s.name)&&t(s.name.expression)}}else{switch(r.kind){case 79:case 265:case 266:case 272:case 258:case 259:return;case 170:return void n(r);case 211:case 229:return void t(r.expression);case 254:case 164:return t(r.name),void t(r.initializer);case 208:case 209:return n(r),t(r.expression),void e.forEach(r.arguments,t);case 210:return n(r),t(r.tag),void t(r.template);case 280:case 279:return n(r),t(r.tagName),void t(r.attributes);case 165:return n(r),void t(r.expression);case 206:case 207:n(r),e.forEachChild(r,t)}e.isPartOfTypeNode(r)||e.forEachChild(r,t)}}})(t,n);switch(r.kind){case 305:!((t,r)=>{e.forEach(t.statements,r)})(r,a);break;case 261:!((t,r)=>{!e.hasSyntacticModifier(t,2)&&t.body&&e.isModuleBlock(t.body)&&e.forEach(t.body.statements,r)})(r,a);break;case 256:case 213:case 214:case 169:case 172:case 173:!((t,r,n)=>{var i=c(t,r);i&&(e.forEach(i.parameters,n),n(i.body))})(t.getTypeChecker(),r,a);break;case 257:case 226:!((t,r)=>{e.forEach(t.modifiers,r);var n=e.getClassExtendsHeritageElement(t);n&&r(n.expression);for(var i=0,a=t.members;i<a.length;i++){var o=a[i];e.canHaveModifiers(o)&&e.forEach(o.modifiers,r),e.isPropertyDeclaration(o)?r(o.initializer):e.isConstructorDeclaration(o)&&o.body?(e.forEach(o.parameters,r),r(o.body)):e.isClassStaticBlockDeclaration(o)&&r(o)}})(r,a);break;case 170:!((e,t)=>{t(e.body)})(r,a);break;default:e.Debug.assertNever(r)}return n})(t,r),m,(r=>((t,r)=>({to:p(t,r[0].declaration),fromSpans:e.map(r,(t=>e.createTextSpanFromRange(t.range)))}))(t,r)))})(e.CallHierarchy||(e.CallHierarchy={}))})(p),(e=>{function t(t,n,i,a){var o=i(t);return t=>{var s=a&&a.tryGetSourcePosition({fileName:t,pos:0}),c=(t=>{if(i(t)===o)return n;var r=e.tryRemoveDirectoryPrefix(t,o,i);return void 0===r?void 0:n+"/"+r})(s?s.fileName:t);return s?void 0===c?void 0:((t,n,i,a)=>{var o=e.getRelativePathFromFile(t,n,a);return r(e.getDirectoryPath(i),o)})(s.fileName,c,t,i):c}}function r(t,r){return e.ensurePathIsNonModuleName(((t,r)=>e.normalizePath(e.combinePaths(t,r)))(t,r))}function n(t,r,n,i){if(r){if(r.resolvedModule){var a=s(r.resolvedModule.resolvedFileName);if(a)return a}return e.forEach(r.failedLookupLocations,(t=>{var r=n(t);return r&&e.find(i,(e=>e.fileName===r))?o(t):void 0}))||e.pathIsRelative(t.text)&&e.forEach(r.failedLookupLocations,o)||r.resolvedModule&&{newFileName:r.resolvedModule.resolvedFileName,updated:!1}}function o(t){return e.endsWith(t,"/package.json")?void 0:s(t)}function s(e){var t=n(e);return t&&{newFileName:t,updated:!0}}}function i(t,r){return e.createRange(t.getStart(r)+1,t.end-1)}function a(t,r){if(e.isObjectLiteralExpression(t))for(var n=0,i=t.properties;n<i.length;n++){var a=i[n];e.isPropertyAssignment(a)&&e.isStringLiteral(a.name)&&r(a,a.name.text)}}e.getEditsForFileRename=(o,s,c,l,d,u,p)=>{var _=e.hostUsesCaseSensitiveFileNames(l),f=e.createGetCanonicalFileName(_),m=t(s,c,f,p),g=t(c,s,f,p);return e.textChanges.ChangeTracker.with({host:l,formatContext:d,preferences:u},(t=>{!((t,n,o,s,c,l,d)=>{var u=t.getCompilerOptions().configFile;if(u){var p=e.getDirectoryPath(u.fileName),_=e.getTsConfigObjectLiteralExpression(u);_&&a(_,((t,r)=>{switch(r){case"files":case"include":case"exclude":if(f(t)||"include"!==r||!e.isArrayLiteralExpression(t.initializer))return;var i=e.mapDefined(t.initializer.elements,(t=>e.isStringLiteral(t)?t.text:void 0));if(0===i.length)return;var o=e.getFileMatcherPatterns(p,[],i,d,l);return void(e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),d).test(s)&&!e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),d).test(c)&&n.insertNodeAfter(u,e.last(t.initializer.elements),e.factory.createStringLiteral(g(c))));case"compilerOptions":return void a(t.initializer,((t,r)=>{var n=e.getOptionFromName(r);n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?f(t):"paths"===r&&a(t.initializer,(t=>{if(e.isArrayLiteralExpression(t.initializer))for(var r=0,n=t.initializer.elements;r<n.length;r++)m(n[r])}))}))}}))}function f(t){for(var r=!1,n=0,i=e.isArrayLiteralExpression(t.initializer)?t.initializer.elements:[t.initializer];n<i.length;n++)r=m(i[n])||r;return r}function m(t){if(!e.isStringLiteral(t))return!1;var a=r(p,t.text),s=o(a);return void 0!==s&&(n.replaceRangeWithText(u,i(t,u),g(s)),!0)}function g(t){return e.getRelativePathFromDirectory(p,t,!d)}})(o,t,m,s,c,l.getCurrentDirectory(),_),((t,a,o,s,c,l)=>{for(var d=t.getSourceFiles(),u=u=>{var p=o(u.fileName),_=null!=p?p:u.fileName,f=e.getDirectoryPath(_),m=s(u.fileName),g=m||u.fileName,h=e.getDirectoryPath(g),y=void 0!==p||void 0!==m;!((t,r,n,a)=>{for(var o=0,s=t.referencedFiles||e.emptyArray;o<s.length;o++){var c=s[o];void 0!==(u=n(c.fileName))&&u!==t.text.slice(c.pos,c.end)&&r.replaceRangeWithText(t,c,u)}for(var l=0,d=t.imports;l<d.length;l++){var u,p=d[l];void 0!==(u=a(p))&&u!==p.text&&r.replaceRangeWithText(t,i(p,t),u)}})(u,a,(t=>{if(e.pathIsRelative(t)){var n=r(h,t),i=o(n);return void 0===i?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(f,i,l))}}),(r=>{var i=t.getTypeChecker().getSymbolAtLocation(r);if(!(null==i?void 0:i.declarations)||!i.declarations.some((t=>e.isAmbientModule(t)))){var a=void 0!==m?n(r,e.resolveModuleName(r.text,g,t.getCompilerOptions(),c),o,d):((t,r,i,a,o,s)=>{if(t){var c=e.find(t.declarations,e.isSourceFile).fileName,l=s(c);return void 0===l?{newFileName:c,updated:!1}:{newFileName:l,updated:!0}}var d=e.getModeForUsageLocation(i,r);return n(r,o.resolveModuleNames?o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName,d):a.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName,d),s,a.getSourceFiles())})(i,r,u,t,c,o);return void 0!==a&&(a.updated||y&&e.pathIsRelative(r.text))?e.moduleSpecifiers.updateModuleSpecifier(t.getCompilerOptions(),u,l(_),a.newFileName,e.createModuleSpecifierResolutionHost(t,c),r.text):void 0}}))},p=0,_=d;p<_.length;p++)u(_[p])})(o,t,m,g,l,f)}))},e.getPathUpdater=t})(p),(e=>{!(t=>{function r(t,r,a,d,p){var _,m,g,h,y,v=i(r,a,t),b=v&&[(g=v.reference.fileName,h=v.fileName,y=v.unverified,{fileName:h,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:g,containerName:void 0,containerKind:void 0,unverified:y})]||e.emptyArray;if(null==v?void 0:v.file)return b;var E=e.getTouchingPropertyName(r,a);if(E!==r){var x=E.parent,D=t.getTypeChecker();if(159===E.kind||e.isIdentifier(E)&&e.isJSDocOverrideTag(x)&&x.tagName===E)return((t,r)=>{var n=e.findAncestor(r,e.isClassElement);if(n&&n.name){var i=e.findAncestor(n,e.isClassLike);if(i){var a=e.getEffectiveBaseTypeNode(i),o=a?t.getTypeAtLocation(a):void 0;if(o){var c=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(n.name)),l=e.hasStaticModifier(n)?t.getPropertyOfType(t.getTypeOfSymbolAtLocation(o.symbol,i),c):t.getPropertyOfType(o,c);if(l)return s(t,l,r)}}}})(D,E)||e.emptyArray;if(e.isJumpStatementTarget(E)){var S=e.getTargetLabel(E.parent,E.text);return S?[l(D,S,"label",E.text,void 0)]:void 0}if(e.isStaticModifier(E)&&e.isClassStaticBlockDeclaration(E.parent)){var T=E.parent.parent,C=o(T,D,p),A=C.symbol,k=C.failedAliasResolution,N=e.filter(T.members,e.isClassStaticBlockDeclaration),w=A?D.symbolToString(A,T):"",F=E.getSourceFile();return e.map(N,(t=>{var r=e.moveRangePastModifiers(t).pos;return r=e.skipTrivia(F.text,r),l(D,t,"constructor","static {}",w,!1,k,{start:r,length:"static".length})}))}var P=o(E,D,p),I=P.symbol,O=P.failedAliasResolution,M=E;if(d&&O){var R=e.forEach(f([E],(null==I?void 0:I.declarations)||e.emptyArray,!0),(t=>e.findAncestor(t,e.isAnyImportOrBareOrAccessedRequire))),L=R&&e.tryGetModuleSpecifierFromDeclaration(R);L&&(I=(_=o(L,D,p)).symbol,O=_.failedAliasResolution,M=L)}if(!I&&e.isModuleSpecifierLike(M)){var B=null===(m=r.resolvedModules)||void 0===m?void 0:m.get(M.text,e.getModeForUsageLocation(r,M));if(B)return[{name:M.text,fileName:B.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:e.createTextSpan(0,0),failedAliasResolution:O,isAmbient:e.isDeclarationFileName(B.resolvedFileName),unverified:M!==E}]}if(!I)return e.concatenate(b,((t,r)=>e.mapDefined(r.getIndexInfosAtLocation(t),(e=>e.declaration&&u(r,e.declaration))))(E,D));if(!d||!e.every(I.declarations,(e=>e.getSourceFile().fileName===r.fileName))){var U=((t,r)=>{var n=(t=>{var r=e.findAncestor(t,(t=>!e.isRightSideOfPropertyAccess(t))),n=null==r?void 0:r.parent;return n&&e.isCallLikeExpression(n)&&e.getInvokedExpression(n)===r?n:void 0})(r),i=n&&t.getResolvedSignature(n);return e.tryCast(i&&i.declaration,(t=>e.isFunctionLike(t)&&!e.isFunctionTypeNode(t)))})(D,E);if(U&&(!e.isJsxOpeningLikeElement(E.parent)||!(e=>{switch(e.kind){case 171:case 180:case 175:return!0;default:return!1}})(U))){var j=u(D,U,O);if(D.getRootSymbols(I).some((t=>((t,r)=>t===r.symbol||t===r.symbol.parent||e.isAssignmentExpression(r.parent)||!e.isCallLikeExpression(r.parent)&&t===r.parent.symbol)(t,U))))return[j];var V=s(D,I,E,O,U)||e.emptyArray;return 106===E.kind?f([j],V,!0):f(f([],V,!0),[j],!1)}if(297===E.parent.kind){var z=D.getShorthandAssignmentValueSymbol(I.valueDeclaration),H=(null==z?void 0:z.declarations)?z.declarations.map((e=>c(e,D,z,E,!1,O))):e.emptyArray;return e.concatenate(H,n(D,E)||e.emptyArray)}if(e.isPropertyName(E)&&e.isBindingElement(x)&&e.isObjectBindingPattern(x.parent)&&E===(x.propertyName||x.name)){var W=e.getNameFromPropertyName(E),K=D.getTypeAtLocation(x.parent);return void 0===W?e.emptyArray:e.flatMap(K.isUnion()?K.types:[K],(e=>{var t=e.getProperty(W);return t&&s(D,t,E)}))}return e.concatenate(b,n(D,E)||s(D,I,E,O))}}}function n(t,r){var n=e.getContainingObjectLiteralElement(r);if(n){var i=n&&t.getContextualType(n.parent);if(i)return e.flatMap(e.getPropertySymbolsFromContextualType(n,t,i,!1),(e=>s(t,e,r)))}}function i(t,r,n){var i,a,o=p(t.referencedFiles,r);if(o)return(l=n.getSourceFileFromReference(t,o))&&{reference:o,fileName:l.fileName,file:l,unverified:!1};var s=p(t.typeReferenceDirectives,r);if(s){var c=n.getResolvedTypeReferenceDirectives().get(s.fileName,s.resolutionMode||t.impliedNodeFormat);return(l=c&&n.getSourceFile(c.resolvedFileName))&&{reference:s,fileName:l.fileName,file:l,unverified:!1}}var l,d=p(t.libReferenceDirectives,r);if(d)return(l=n.getLibFileFromReference(d))&&{reference:d,fileName:l.fileName,file:l,unverified:!1};if(null===(i=t.resolvedModules)||void 0===i?void 0:i.size()){var u=e.getTouchingToken(t,r);if(e.isModuleSpecifierLike(u)&&e.isExternalModuleNameRelative(u.text)&&t.resolvedModules.has(u.text,e.getModeForUsageLocation(t,u))){var _=null===(a=t.resolvedModules.get(u.text,e.getModeForUsageLocation(t,u)))||void 0===a?void 0:a.resolvedFileName,f=_||e.resolvePath(e.getDirectoryPath(t.fileName),u.text);return{file:n.getSourceFile(f),fileName:f,reference:{pos:u.getStart(),end:u.getEnd(),fileName:u.text},unverified:!_}}}}function a(t,r,n,i){return e.flatMap(!t.isUnion()||32&t.flags?[t]:t.types,(e=>e.symbol&&s(r,e.symbol,n,i)))}function o(e,t,r){var n=t.getSymbolAtLocation(e),i=!1;if((null==n?void 0:n.declarations)&&2097152&n.flags&&!r&&((e,t)=>79===e.kind&&(e.parent===t||268!==t.kind))(e,n.declarations[0])){var a=t.getAliasedSymbol(n);if(a.declarations)return{symbol:a};i=!0}return{symbol:n,failedAliasResolution:i}}function s(t,r,n,i,a){var o=e.filter(r.declarations,(e=>e!==a)),s=e.filter(o,(t=>!(t=>{if(!e.isAssignmentDeclaration(t))return!1;var r=e.findAncestor(t,(t=>!!e.isAssignmentExpression(t)||!e.isAssignmentDeclaration(t)&&"quit"));return!!r&&5===e.getAssignmentDeclarationKind(r)})(t))),l=e.some(s)?s:o;return(()=>{if(32&r.flags&&!(19&r.flags)&&(e.isNewExpressionTarget(n)||134===n.kind))return d((e.find(o,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)})()||(e.isCallOrNewExpressionTarget(n)||e.isNameOfFunctionDeclaration(n)?d(o,!1):void 0)||e.map(l,(e=>c(e,t,r,n,!1,i)));function d(a,o){if(a){var s=a.filter(o?e.isConstructorDeclaration:e.isFunctionLike),l=s.filter((e=>!!e.body));return s.length?0!==l.length?l.map((e=>c(e,t,r,n))):[c(e.last(s),t,r,n,!1,i)]:void 0}}}function c(t,r,n,i,a,o){var s=r.symbolToString(n),c=e.SymbolDisplay.getSymbolKind(r,n,i),d=n.parent?r.symbolToString(n.parent,i):"";return l(r,t,c,s,d,a,o)}function l(t,r,n,i,a,o,s,c){var l=r.getSourceFile();if(!c){var u=e.getNameOfDeclaration(r)||r;c=e.createTextSpanFromNode(u,l)}return m(m({fileName:l.fileName,textSpan:c,kind:n,name:i,containerKind:void 0,containerName:a},e.FindAllReferences.toContextSpan(c,l,e.FindAllReferences.getContextNode(r))),{isLocal:!d(t,r),isAmbient:!!(16777216&r.flags),unverified:o,failedAliasResolution:s})}function d(t,r){if(t.isDeclarationVisible(r))return!0;if(!r.parent)return!1;if(e.hasInitializer(r.parent)&&r.parent.initializer===r)return d(t,r.parent);switch(r.kind){case 167:case 172:case 173:case 169:if(e.hasEffectiveModifier(r,8))return!1;case 171:case 296:case 297:case 205:case 226:case 214:case 213:return d(t,r.parent);default:return!1}}function u(e,t,r){return c(t,e,t.symbol,t,!1,r)}function p(t,r){return e.find(t,(t=>e.textRangeContainsPositionInclusive(t,r)))}t.getDefinitionAtPosition=r,t.getReferenceAtPosition=i,t.getTypeDefinitionAtPosition=(t,r,n)=>{var i=e.getTouchingPropertyName(r,n);if(i!==r){if(e.isImportMeta(i.parent)&&i.parent.name===i)return a(t.getTypeAtLocation(i.parent),t,i.parent,!1);var c=o(i,t,!1),l=c.symbol,d=c.failedAliasResolution;if(l){var u=t.getTypeOfSymbolAtLocation(l,i),p=((t,r,n)=>{if(r.symbol===t||t.valueDeclaration&&r.symbol&&e.isVariableDeclaration(t.valueDeclaration)&&t.valueDeclaration.initializer===r.symbol.valueDeclaration){var i=r.getCallSignatures();if(1===i.length)return n.getReturnTypeOfSignature(e.first(i))}})(l,u,t),_=p&&a(p,t,i,d),f=_&&0!==_.length?_:a(u,t,i,d);return f.length?f:!(111551&l.flags)&&788968&l.flags?s(t,e.skipAlias(l,t),i,d):void 0}}},t.getDefinitionAndBoundSpan=(t,n,i)=>{var a=r(t,n,i);if(a&&0!==a.length){var o=p(n.referencedFiles,i)||p(n.typeReferenceDirectives,i)||p(n.libReferenceDirectives,i);if(o)return{definitions:a,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(n,i);return{definitions:a,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},t.createDefinitionInfo=c,t.findReferenceInPosition=p})(e.GoToDefinition||(e.GoToDefinition={}))})(p),(e=>{!(t=>{var r,n,i=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function a(t,r){return e.arraysEqual(t,r,((e,t)=>e.kind===t.kind&&e.text===t.text))}function o(t,r){return"string"==typeof t?[e.textPart(t)]:e.flatMap(t,(t=>321===t.kind?[e.textPart(t.text)]:e.buildLinkParts(t,r)))}function s(t,r){var n=t.comment,i=t.kind,a=(t=>{switch(t){case 340:return e.parameterNamePart;case 347:return e.propertyNamePart;case 344:return e.typeParameterNamePart;case 345:case 338:return e.typeAliasNamePart;default:return e.textPart}})(i);switch(i){case 329:case 328:return u(t.class);case 344:var s=t,c=[];if(s.constraint&&c.push(e.textPart(s.constraint.getText())),e.length(s.typeParameters)){e.length(c)&&c.push(e.spacePart());var l=s.typeParameters[s.typeParameters.length-1];e.forEach(s.typeParameters,(t=>{c.push(a(t.getText())),l!==t&&c.push.apply(c,[e.punctuationPart(27),e.spacePart()])}))}return n&&c.push.apply(c,f([e.spacePart()],o(n,r),!0)),c;case 343:return u(t.typeExpression);case 345:case 338:case 347:case 340:case 346:var d=t.name;return d?u(d):void 0===n?void 0:o(n,r);default:return void 0===n?void 0:o(n,r)}function u(t){return i=t.getText(),n?i.match(/^https?$/)?f([e.textPart(i)],o(n,r),!0):f([a(i),e.spacePart()],o(n,r),!0):[e.textPart(i)];var i}}function c(t){return{name:t,kind:"",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}function l(t,r){switch(t.kind){case 256:case 213:case 169:case 171:case 168:case 214:var n=t;return{commentOwner:t,parameters:n.parameters,hasReturn:d(n,r)};case 296:return l(t.initializer,r);case 257:case 258:case 166:case 260:case 299:case 259:return{commentOwner:t};case 237:var i=t.declarationList.declarations,a=1===i.length&&i[0].initializer?(t=>{for(;212===t.kind;)t=t.expression;switch(t.kind){case 213:case 214:return t;case 226:return e.find(t.members,e.isConstructorDeclaration)}})(i[0].initializer):void 0;return a?{commentOwner:t,parameters:a.parameters,hasReturn:d(a,r)}:{commentOwner:t};case 305:return"quit";case 261:return 261===t.parent.kind?void 0:{commentOwner:t};case 238:return l(t.expression,r);case 221:var o=t;return 0===e.getAssignmentDeclarationKind(o)?"quit":e.isFunctionLike(o.right)?{commentOwner:t,parameters:o.right.parameters,hasReturn:d(o.right,r)}:{commentOwner:t};case 167:var s=t.initializer;if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s)))return{commentOwner:t,parameters:s.parameters,hasReturn:d(s,r)}}}function d(t,r){return!!(null==r?void 0:r.generateReturnInDocTemplate)&&(e.isArrowFunction(t)&&e.isExpression(t.body)||e.isFunctionLikeDeclaration(t)&&t.body&&e.isBlock(t.body)&&!!e.forEachReturnStatement(t.body,(e=>e)))}t.getJsDocCommentsFromDeclarations=(t,r)=>{var n=[];return e.forEachUnique(t,(t=>{for(var i=0,s=(t=>{switch(t.kind){case 340:case 347:return[t];case 338:case 345:return[t,t.parent];default:return e.getJSDocCommentsAndTags(t)}})(t);i<s.length;i++){var c=s[i],l=e.isJSDoc(c)&&c.tags&&e.find(c.tags,(e=>327===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText)));if(!(void 0===c.comment&&!l||e.isJSDoc(c)&&345!==t.kind&&338!==t.kind&&c.tags&&c.tags.some((e=>345===e.kind||338===e.kind))&&!c.tags.some((e=>340===e.kind||341===e.kind)))){var d=c.comment?o(c.comment,r):[];l&&l.comment&&(d=d.concat(o(l.comment,r))),e.contains(n,d,a)||n.push(d)}}})),e.flatten(e.intersperse(n,[e.lineBreakPart()]))},t.getJsDocTagsFromDeclarations=(t,r)=>{var n=[];return e.forEachUnique(t,(t=>{var i=e.getJSDocTags(t);if(!i.some((e=>345===e.kind||338===e.kind))||i.some((e=>340===e.kind||341===e.kind)))for(var a=0,o=i;a<o.length;a++){var c=o[a];n.push({name:c.tagName.text,text:s(c,r)})}})),n},t.getJSDocTagNameCompletions=()=>r||(r=e.map(i,(t=>({name:t,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority})))),t.getJSDocTagNameCompletionDetails=c,t.getJSDocTagCompletions=()=>n||(n=e.map(i,(t=>({name:"@".concat(t),kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority})))),t.getJSDocTagCompletionDetails=c,t.getJSDocParameterNameCompletions=t=>{if(!e.isIdentifier(t.name))return e.emptyArray;var r=t.name.text,n=t.parent,i=n.parent;return e.isFunctionLike(i)?e.mapDefined(i.parameters,(i=>{if(e.isIdentifier(i.name)){var a=i.name.text;if(!n.tags.some((r=>r!==t&&e.isJSDocParameterTag(r)&&e.isIdentifier(r.name)&&r.name.escapedText===a))&&(void 0===r||e.startsWith(a,r)))return{name:a,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}})):[]},t.getJSDocParameterNameCompletionDetails=t=>({name:t,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}),t.getDocCommentTemplateAtPosition=(t,r,n,i)=>{var a=e.getTokenAtPosition(r,n),o=e.findAncestor(a,e.isJSDoc);if(!o||void 0===o.comment&&!e.length(o.tags)){var s=a.getStart(r);if(o||!(s<n)){var c=((t,r)=>e.forEachAncestor(t,(e=>l(e,r))))(a,i);if(c){var d=c.commentOwner,u=c.parameters,p=c.hasReturn,_=e.hasJSDocNodes(d)&&d.jsDoc?d.jsDoc:void 0,f=e.lastOrUndefined(_);if(!(d.getStart(r)<n||f&&o&&f!==o)){var m=((t,r)=>{for(var n=t.text,i=e.getLineStartPositionForPosition(r,t),a=i;a<=r&&e.isWhiteSpaceSingleLine(n.charCodeAt(a));a++);return n.slice(i,a)})(r,n),g=e.hasJSFileExtension(r.fileName),h=(u?((e,t,r,n)=>e.map(((e,i)=>{var a=e.name,o=e.dotDotDotToken,s=79===a.kind?a.text:"param"+i,c=t?o?"{...any} ":"{any} ":"";return"".concat(r," * @param ").concat(c).concat(s).concat(n)})).join(""))(u||[],g,m,t):"")+(p?((e,t)=>"".concat(e," * @returns").concat(t))(m,t):""),y=(_||[]).some((e=>!!e.tags));if(h&&!y){var v="/**"+t+m+" * ";return{newText:v+t+h+m+" */"+(s===n?t+m:""),caretOffset:v.length}}return{newText:"/** */",caretOffset:3}}}}}}})(e.JsDoc||(e.JsDoc={}))})(p),(e=>{!(t=>{function r(e,t){switch(e.kind){case 267:case 270:case 265:var r=t.getSymbolAtLocation(e.name),n=t.getAliasedSymbol(r);return r.escapedName!==n.escapedName;default:return!0}}function n(t,r){var n=e.getNameOfDeclaration(t);return!!n&&(a(n,r)||162===n.kind&&i(n.expression,r))}function i(t,r){return a(t,r)||e.isPropertyAccessExpression(t)&&(r.push(t.name.text),!0)&&i(t.expression,r)}function a(t,r){return e.isPropertyNameLiteral(t)&&(r.push(e.getTextOfIdentifierOrLiteral(t)),!0)}function o(t){var r=[],a=e.getNameOfDeclaration(t);if(a&&162===a.kind&&!i(a.expression,r))return e.emptyArray;r.shift();for(var o=e.getContainerNode(t);o;){if(!n(o,r))return e.emptyArray;o=e.getContainerNode(o)}return r.reverse()}function s(t,r){return e.compareValues(t.matchKind,r.matchKind)||e.compareStringsCaseSensitiveUI(t.name,r.name)}function c(t){var r=t.declaration,n=e.getContainerNode(r),i=n&&e.getNameOfDeclaration(n);return{name:t.name,kind:e.getNodeKind(r),kindModifiers:e.getNodeModifiers(r),matchKind:e.PatternMatchKind[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:e.createTextSpanFromNode(r),containerName:i?i.text:"",containerKind:i?e.getNodeKind(n):""}}t.getNavigateToItems=(t,n,i,a,l,d)=>{var u=e.createPatternMatcher(a);if(!u)return e.emptyArray;for(var p=[],_=e=>{if(i.throwIfCancellationRequested(),d&&e.isDeclarationFile)return"continue";e.getNamedDeclarations().forEach(((t,i)=>{!((e,t,n,i,a,s)=>{var c=e.getMatchForLastSegmentOfPattern(t);if(c)for(var l=0,d=n;l<d.length;l++){var u=d[l];if(r(u,i))if(e.patternContainsDots){var p=e.getFullMatch(o(u),t);p&&s.push({name:t,fileName:a,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:u})}else s.push({name:t,fileName:a,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:u})}})(u,i,t,n,e.fileName,p)}))},f=0,m=t;f<m.length;f++)_(m[f]);return p.sort(s),(void 0===l?p:p.slice(0,l)).map(c)}})(e.NavigateTo||(e.NavigateTo={}))})(p),(e=>{!(t=>{var r,n,i,a,o,s=/\s+/g,c=[],l=[],d=[];function u(){i=void 0,n=void 0,c=[],a=void 0,d=[]}function p(e){return q(e.getText(i))}function _(e){return e.node.kind}function f(e,t){e.children?e.children.push(t):e.children=[t]}function g(t){e.Debug.assert(!c.length);var r={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};a=r;for(var n=0,i=t.statements;n<i.length;n++)A(i[n]);return D(),e.Debug.assert(!a&&!c.length),r}function h(e,t){f(a,y(e,t))}function y(t,r){return{node:t,name:r||(e.isDeclaration(t)||e.isExpression(t)?e.getNameOfDeclaration(t):void 0),additionalNodes:void 0,parent:a,children:void 0,indent:a.indent+1}}function v(t){o||(o=new e.Map),o.set(t,!0)}function b(e){for(var t=0;t<e;t++)D()}function E(t,r){for(var n=[];!e.isPropertyNameLiteral(r);){var i=e.getNameOrArgument(r),a=e.getElementOrPropertyAccessName(r);r=r.expression,"prototype"===a||e.isPrivateIdentifier(i)||n.push(i)}n.push(r);for(var o=n.length-1;o>0;o--)x(t,i=n[o]);return[n.length-1,n[0]]}function x(e,t){var r=y(e,t);f(a,r),c.push(a),l.push(o),o=void 0,a=r}function D(){a.children&&(k(a.children,a),O(a.children)),a=c.pop(),o=l.pop()}function S(e,t,r){x(e,r),A(t),D()}function T(t){t.initializer&&(e=>{switch(e.kind){case 214:case 213:case 226:return!0;default:return!1}})(t.initializer)?(x(t),e.forEachChild(t.initializer,A),D()):S(t,t.initializer)}function C(t){return!e.hasDynamicName(t)||221!==t.kind&&e.isPropertyAccessExpression(t.name.expression)&&e.isIdentifier(t.name.expression.expression)&&"Symbol"===e.idText(t.name.expression.expression)}function A(t){var r;if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 171:var i=t;S(i,i.body);for(var a=0,s=i.parameters;a<s.length;a++){var c=s[a];e.isParameterPropertyDeclaration(c,i)&&h(c)}break;case 169:case 172:case 173:case 168:C(t)&&S(t,t.body);break;case 167:C(t)&&T(t);break;case 166:C(t)&&h(t);break;case 267:var l=t;l.name&&h(l.name);var d=l.namedBindings;if(d)if(268===d.kind)h(d);else for(var u=0,p=d.elements;u<p.length;u++)h(p[u]);break;case 297:S(t,t.name);break;case 298:var _=t.expression;e.isIdentifier(_)?h(t,_):h(t);break;case 203:case 296:case 254:var f=t;e.isBindingPattern(f.name)?A(f.name):T(f);break;case 256:var m=t.name;m&&e.isIdentifier(m)&&v(m.text),S(t,t.body);break;case 214:case 213:S(t,t.body);break;case 260:x(t);for(var g=0,y=t.members;g<y.length;g++)W(w=y[g])||h(w);D();break;case 257:case 226:case 258:x(t);for(var k=0,N=t.members;k<N.length;k++){var w;A(w=N[k])}D();break;case 261:S(t,H(t).body);break;case 271:var F=t.expression;(f=e.isObjectLiteralExpression(F)||e.isCallExpression(F)?F:e.isArrowFunction(F)||e.isFunctionExpression(F)?F.body:void 0)?(x(t),A(f),D()):h(t);break;case 275:case 265:case 176:case 174:case 175:case 259:h(t);break;case 208:case 221:var P=e.getAssignmentDeclarationKind(t);switch(P){case 1:case 2:return void S(t,t.right);case 6:case 3:var I=(j=t).left,O=3===P?I.expression:I,M=0,R=void 0;return e.isIdentifier(O.expression)?(v(O.expression.text),R=O.expression):(M=(r=E(j,O.expression))[0],R=r[1]),6===P?e.isObjectLiteralExpression(j.right)&&j.right.properties.length>0&&(x(j,R),e.forEachChild(j.right,A),D()):e.isFunctionExpression(j.right)||e.isArrowFunction(j.right)?S(t,j.right,R):(x(j,R),S(t,j.right,I.name),D()),void b(M);case 7:case 9:var L=t,B=(R=7===P?L.arguments[0]:L.arguments[0].expression,L.arguments[1]),U=E(t,R);return M=U[0],x(t,U[1]),x(t,e.setTextRange(e.factory.createIdentifier(B.text),B)),A(t.arguments[2]),D(),D(),void b(M);case 5:var j,V=(I=(j=t).left).expression;if(e.isIdentifier(V)&&"prototype"!==e.getElementOrPropertyAccessName(I)&&o&&o.has(V.text))return void(e.isFunctionExpression(j.right)||e.isArrowFunction(j.right)?S(t,j.right,V):e.isBindableStaticAccessExpression(I)&&(x(j,V),S(j.left,j.right,e.getNameOrArgument(I)),D()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(P)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,(t=>{e.forEach(t.tags,(t=>{e.isJSDocTypeAlias(t)&&h(t)}))})),e.forEachChild(t,A)}}function k(t,r){var n=new e.Map;e.filterMutate(t,((t,i)=>{var a=t.name||e.getNameOfDeclaration(t.node),o=a&&p(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,l=s;c<l.length;c++){var d;if(w(d=l[c],t,i,r))return!1}return s.push(t),!0}return!w(d=s,t,i,r)&&(n.set(o,[d,t]),!0)}))}t.getNavigationBarItems=(t,r)=>{n=r,i=t;try{return e.map((a=g(t),o=[],function e(t){if((e=>{if(e.children)return!0;switch(_(e)){case 257:case 226:case 260:case 258:case 261:case 305:case 259:case 345:case 338:return!0;case 214:case 256:case 213:return(e=>{if(!e.node.body)return!1;switch(_(e.parent)){case 262:case 305:case 169:case 171:return!0;default:return!1}})(e);default:return!1}})(t)&&(o.push(t),t.children))for(var r=0,n=t.children;r<n.length;r++)e(n[r])}(a),o),U)}finally{u()}var a,o},t.getNavigationTree=(e,t)=>{n=t,i=e;try{return B(g(e))}finally{u()}};var N=((r={})[5]=!0,r[3]=!0,r[7]=!0,r[9]=!0,r[0]=!1,r[1]=!1,r[2]=!1,r[8]=!1,r[6]=!0,r[4]=!1,r);function w(t,r,n,i){return!!((t,r,n,i)=>{function a(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)||e.isVariableDeclaration(t)}var o=e.isBinaryExpression(r.node)||e.isCallExpression(r.node)?e.getAssignmentDeclarationKind(r.node):0,s=e.isBinaryExpression(t.node)||e.isCallExpression(t.node)?e.getAssignmentDeclarationKind(t.node):0;if(N[o]&&N[s]||a(t.node)&&N[o]||a(r.node)&&N[s]||e.isClassDeclaration(t.node)&&F(t.node)&&N[o]||e.isClassDeclaration(r.node)&&N[s]||e.isClassDeclaration(t.node)&&F(t.node)&&a(r.node)||e.isClassDeclaration(r.node)&&a(t.node)&&F(t.node)){var c=t.additionalNodes&&e.lastOrUndefined(t.additionalNodes)||t.node;if(!e.isClassDeclaration(t.node)&&!e.isClassDeclaration(r.node)||a(t.node)||a(r.node)){var l=a(t.node)?t.node:a(r.node)?r.node:void 0;if(void 0!==l){var d=y(e.setTextRange(e.factory.createConstructorDeclaration(void 0,[],void 0),l));d.indent=t.indent+1,d.children=t.node===l?t.children:r.children,t.children=t.node===l?e.concatenate([d],r.children||[r]):e.concatenate(t.children||[m({},t)],[d])}else(t.children||r.children)&&(t.children=e.concatenate(t.children||[m({},t)],r.children||[r]),t.children&&(k(t.children,t),O(t.children)));c=t.node=e.setTextRange(e.factory.createClassDeclaration(void 0,t.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=e.concatenate(t.children,r.children),t.children&&k(t.children,t);var u=r.node;return i.children[n-1].node.end===c.end?e.setTextRange(c,{pos:c.pos,end:u.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,t.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),r.node))),!0}return 0!==o})(t,r,n,i)||!!((t,r,n)=>{if(t.kind!==r.kind||t.parent!==r.parent&&(!P(t,n)||!P(r,n)))return!1;switch(t.kind){case 167:case 169:case 172:case 173:return e.isStatic(t)===e.isStatic(r);case 261:return I(t,r)&&z(t)===z(r);default:return!0}})(t.node,r.node,i)&&(((t,r)=>{var n;t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(r.node),r.additionalNodes&&(n=t.additionalNodes).push.apply(n,r.additionalNodes),t.children=e.concatenate(t.children,r.children),t.children&&(k(t.children,t),O(t.children))})(t,r),!0)}function F(e){return!!(8&e.flags)}function P(t,r){var n=e.isModuleBlock(t.parent)?t.parent.parent:t.parent;return n===r.node||e.contains(r.additionalNodes,n)}function I(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(261!==e.body.kind||I(e.body,t.body)):e.body===t.body}function O(e){e.sort(M)}function M(t,r){return e.compareStringsCaseSensitiveUI(R(t.node),R(r.node))||e.compareValues(_(t),_(r))}function R(t){if(261===t.kind)return V(t);var r=e.getNameOfDeclaration(t);if(r&&e.isPropertyName(r)){var n=e.getPropertyNameForPropertyNameNode(r);return n&&e.unescapeLeadingUnderscores(n)}switch(t.kind){case 213:case 214:case 226:return G(t);default:return}}function L(t,r){if(261===t.kind)return q(V(t));if(r){var n=e.isIdentifier(r)?r.text:e.isElementAccessExpression(r)?"[".concat(p(r.argumentExpression),"]"):p(r);if(n.length>0)return q(n)}switch(t.kind){case 305:var i=t;return e.isExternalModule(i)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName)))),'"'):"<global>";case 271:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 214:case 256:case 213:case 257:case 226:return 512&e.getSyntacticModifierFlags(t)?"default":G(t);case 171:return"constructor";case 175:return"new()";case 174:return"()";case 176:return"[]";default:return"<unknown>"}}function B(t){return{text:L(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:J(t.node),spans:j(t),nameSpan:t.name&&K(t.name),childItems:e.map(t.children,B)}}function U(t){return{text:L(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:J(t.node),spans:j(t),childItems:e.map(t.children,(t=>({text:L(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:j(t),childItems:d,indent:0,bolded:!1,grayed:!1})))||d,indent:t.indent,bolded:!1,grayed:!1}}function j(e){var t=[K(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var i=n[r];t.push(K(i))}return t}function V(t){return e.isAmbientModule(t)?e.getTextOfNode(t.name):z(t)}function z(t){for(var r=[e.getTextOfIdentifierOrLiteral(t.name)];t.body&&261===t.body.kind;)t=t.body,r.push(e.getTextOfIdentifierOrLiteral(t.name));return r.join(".")}function H(t){return t.body&&e.isModuleDeclaration(t.body)?H(t.body):t}function W(e){return!e.name||162===e.name.kind}function K(t){return 305===t.kind?e.createTextSpanFromRange(t):e.createTextSpanFromNode(t,i)}function J(t){return t.parent&&254===t.parent.kind&&(t=t.parent),e.getNodeModifiers(t)}function G(t){var r=t.parent;if(t.name&&e.getFullWidth(t.name)>0)return q(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return q(e.declarationNameToString(r.name));if(e.isBinaryExpression(r)&&63===r.operatorToken.kind)return p(r.left).replace(s,"");if(e.isPropertyAssignment(r))return p(r.name);if(512&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"<class>";if(e.isCallExpression(r)){var n=$(r.expression);if(void 0!==n){if((n=q(n)).length>150)return"".concat(n," callback");var a=q(e.mapDefined(r.arguments,(t=>e.isStringLiteralLike(t)?t.getText(i):void 0)).join(", "));return"".concat(n,"(").concat(a,") callback")}}return"<function>"}function $(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=$(t.expression),n=t.name.text;return void 0===r?n:"".concat(r,".").concat(n)}}function q(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(e.NavigationBar||(e.NavigationBar={}))})(p),(e=>{!(t=>{function r(t,r){for(var i=e.createScanner(t.languageVersion,!1,t.languageVariant),a=[],o=0,s=0,c=r;s<c.length;s++){var l=c[s];n(t,l,i)&&o++,a[o]||(a[o]=[]),a[o].push(l)}return a}function n(e,t,r){var n=t.getFullStart(),i=t.getStart();r.setText(e.text,n,i-n);for(var a=0;r.getTokenPos()<i;)if(4===r.scan()&&++a>=2)return!0;return!1}function i(t,r){var n=e.isStringLiteral(r)&&r.text;return e.isString(n)&&e.some(t.moduleAugmentations,(t=>e.isStringLiteral(t)&&t.text===n))}function a(t){return void 0!==t&&e.isStringLiteralLike(t)?t.text:void 0}function o(t){var r;if(0===t.length)return t;var n=(t=>{for(var r,n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]},a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s.importClause){var c=s.importClause.isTypeOnly?n:i,l=s.importClause,d=l.name,u=l.namedBindings;d&&c.defaultImports.push(s),u&&(e.isNamespaceImport(u)?c.namespaceImports.push(s):c.namedImports.push(s))}else r=r||s}return{importWithoutClause:r,typeOnlyImports:n,regularImports:i}})(t),i=n.importWithoutClause,a=n.typeOnlyImports,o=n.regularImports,s=[];i&&s.push(i);for(var d=0,u=[o,a];d<u.length;d++){var _=u[d],f=_===a,m=_.defaultImports,h=_.namespaceImports,y=_.namedImports;if(f||1!==m.length||1!==h.length||0!==y.length){for(var v=0,b=e.stableSort(h,((e,t)=>p(e.importClause.namedBindings.name,t.importClause.namedBindings.name)));v<b.length;v++){var E=b[v];s.push(c(E,void 0,E.importClause.namedBindings))}if(0!==m.length||0!==y.length){var x=void 0,D=[];if(1===m.length)x=m[0].importClause.name;else for(var S=0,T=m;S<T.length;S++)N=T[S],D.push(e.factory.createImportSpecifier(!1,e.factory.createIdentifier("default"),N.importClause.name));D.push.apply(D,g(y));var C=l(D),A=m.length>0?m[0]:y[0],k=0===C.length?x?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(C):e.factory.updateNamedImports(y[0].importClause.namedBindings,C);f&&x&&k?(s.push(c(A,x,void 0)),s.push(c(null!==(r=y[0])&&void 0!==r?r:A,void 0,k))):s.push(c(A,x,k))}}else{var N=m[0];s.push(c(N,N.importClause.name,h[0].importClause.namedBindings))}}return s}function s(t){if(0===t.length)return t;var r=(e=>{for(var t,r=[],n=[],i=0,a=e;i<a.length;i++){var o=a[i];void 0===o.exportClause?t=t||o:o.isTypeOnly?n.push(o):r.push(o)}return{exportWithoutClause:t,namedExports:r,typeOnlyExports:n}})(t),n=r.exportWithoutClause,i=r.namedExports,a=r.typeOnlyExports,o=[];n&&o.push(n);for(var s=0,c=[i,a];s<c.length;s++){var d=c[s];if(0!==d.length){var u=[];u.push.apply(u,e.flatMap(d,(t=>t.exportClause&&e.isNamedExports(t.exportClause)?t.exportClause.elements:e.emptyArray)));var p=l(u),_=d[0];o.push(e.factory.updateExportDeclaration(_,_.modifiers,_.isTypeOnly,_.exportClause&&(e.isNamedExports(_.exportClause)?e.factory.updateNamedExports(_.exportClause,p):e.factory.updateNamespaceExport(_.exportClause,_.exportClause.name)),_.moduleSpecifier,_.assertClause))}}return o}function c(t,r,n){return e.factory.updateImportDeclaration(t,t.modifiers,e.factory.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,n),t.moduleSpecifier,t.assertClause)}function l(t){return e.stableSort(t,d)}function d(t,r){return e.compareBooleans(t.isTypeOnly,r.isTypeOnly)||p(t.propertyName||t.name,r.propertyName||r.name)||p(t.name,r.name)}function u(t,r){var n=void 0===t?void 0:a(t),i=void 0===r?void 0:a(r);return e.compareBooleans(void 0===n,void 0===i)||e.compareBooleans(e.isExternalModuleNameRelative(n),e.isExternalModuleNameRelative(i))||e.compareStringsCaseInsensitive(n,i)}function p(t,r){return e.compareStringsCaseInsensitive(t.text,r.text)}function _(t){var r;switch(t.kind){case 265:return null===(r=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===r?void 0:r.expression;case 266:return t.moduleSpecifier;case 237:return t.declarationList.declarations[0].initializer.arguments[0]}}function f(t,r){return u(_(t),_(r))||((t,r)=>e.compareValues(m(t),m(r)))(t,r)}function m(e){var t;switch(e.kind){case 266:return e.importClause?e.importClause.isTypeOnly?1:268===(null===(t=e.importClause.namedBindings)||void 0===t?void 0:t.kind)?2:e.importClause.name?3:4:0;case 265:return 5;case 237:return 6}}function g(t){return e.flatMap(t,(t=>e.map((t=>{var r;return(null===(r=t.importClause)||void 0===r?void 0:r.namedBindings)&&e.isNamedImports(t.importClause.namedBindings)?t.importClause.namedBindings.elements:void 0})(t),(t=>t.name&&t.propertyName&&t.name.escapedText===t.propertyName.escapedText?e.factory.updateImportSpecifier(t,t.isTypeOnly,void 0,t.name):t))))}t.organizeImports=(t,n,l,d,p,_)=>{var m=e.textChanges.ChangeTracker.fromContext({host:l,formatContext:n,preferences:p}),g=r=>e.stableSort(o(((t,r,n,a)=>{if(a)return t;for(var o=n.getTypeChecker(),s=n.getCompilerOptions(),l=o.getJsxNamespace(r),d=o.getJsxFragmentFactory(r),u=!!(2&r.transformFlags),p=[],_=0,f=t;_<f.length;_++){var m=f[_],g=m.importClause,h=m.moduleSpecifier;if(g){var y=g.name,v=g.namedBindings;if(y&&!E(y)&&(y=void 0),v)if(e.isNamespaceImport(v))E(v.name)||(v=void 0);else{var b=v.elements.filter((e=>E(e.name)));b.length<v.elements.length&&(v=b.length?e.factory.updateNamedImports(v,b):void 0)}y||v?p.push(c(m,y,v)):i(r,h)&&(r.isDeclarationFile?p.push(e.factory.createImportDeclaration(m.modifiers,void 0,h,void 0)):p.push(m))}else p.push(m)}return p;function E(t){return u&&(t.text===l||d&&t.text===d)&&e.jsxModeNeedsExplicitImport(s.jsx)||e.FindAllReferences.Core.isSymbolReferencedInFile(t,o,r)}})(r,t,d,_)),((e,t)=>f(e,t)));r(t,t.statements.filter(e.isImportDeclaration)).forEach((e=>b(e,g))),b(t.statements.filter(e.isExportDeclaration),s);for(var h=0,y=t.statements.filter(e.isAmbientModule);h<y.length;h++){var v=y[h];v.body&&(r(t,v.body.statements.filter(e.isImportDeclaration)).forEach((e=>b(e,g))),b(v.body.statements.filter(e.isExportDeclaration),s))}return m.getChanges();function b(r,i){if(0!==e.length(r)){e.suppressLeadingTrivia(r[0]);var o=e.group(r,(e=>a(e.moduleSpecifier))),s=e.stableSort(o,((e,t)=>u(e[0].moduleSpecifier,t[0].moduleSpecifier))),c=e.flatMap(s,(e=>a(e[0].moduleSpecifier)?i(e):e));if(0===c.length)m.deleteNodes(t,r,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var d={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(l,n.options)};m.replaceNodeWithNodes(t,r[0],c,d);var p=m.nodeHasTrailingComment(t,r[0],d);m.deleteNodes(t,r.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},p)}}}},t.coalesceImports=o,t.coalesceExports=s,t.compareImportOrExportSpecifiers=d,t.compareModuleSpecifiers=u,t.importsAreSorted=t=>e.arrayIsSorted(t,f),t.importSpecifiersAreSorted=t=>e.arrayIsSorted(t,d),t.getImportDeclarationInsertionIndex=(t,r)=>{var n=e.binarySearch(t,r,e.identity,f);return n<0?~n:n},t.getImportSpecifierInsertionIndex=(t,r)=>{var n=e.binarySearch(t,r,e.identity,d);return n<0?~n:n},t.compareImportsOrRequireStatements=f})(e.OrganizeImports||(e.OrganizeImports={}))})(p),(e=>{!(t=>{t.collectElements=(t,r)=>{var l=[];return((t,r,n)=>{for(var l=40,d=0,u=f(f([],t.statements,!0),[t.endOfFileToken],!1),p=u.length;d<p;){for(;d<p&&!e.isAnyImportSyntax(u[d]);)g(u[d]),d++;if(d===p)break;for(var _=d;d<p&&e.isAnyImportSyntax(u[d]);)a(u[d],t,r,n),d++;var m=d-1;m!==_&&n.push(o(e.findChildOfKind(u[_],100,t).getStart(t),u[m].getEnd(),"imports"))}function g(d){var u;if(0!==l){r.throwIfCancellationRequested(),(e.isDeclaration(d)||e.isVariableStatement(d)||e.isReturnStatement(d)||e.isCallOrNewExpression(d)||1===d.kind)&&a(d,t,r,n),e.isFunctionLike(d)&&e.isBinaryExpression(d.parent)&&e.isPropertyAccessExpression(d.parent.left)&&a(d.parent.left,t,r,n),(e.isBlock(d)||e.isModuleBlock(d))&&i(d.statements.end,t,r,n),(e.isClassLike(d)||e.isInterfaceDeclaration(d))&&i(d.members.end,t,r,n);var p=((t,r)=>{switch(t.kind){case 235:if(e.isFunctionLike(t.parent))return((t,r,n)=>{var i=((t,r,n)=>{if(e.isNodeArrayMultiLine(t.parameters,n)){var i=e.findChildOfKind(t,20,n);if(i)return i}return e.findChildOfKind(r,18,n)})(t,r,n),a=e.findChildOfKind(r,19,n);return i&&a&&s(i,a,t,n,214!==t.kind)})(t.parent,t,r);switch(t.parent.kind){case 240:case 243:case 244:case 242:case 239:case 241:case 248:case 292:return d(t.parent);case 252:var n=t.parent;if(n.tryBlock===t)return d(t.parent);if(n.finallyBlock===t){var i=e.findChildOfKind(n,96,r);if(i)return d(i)}default:return c(e.createTextSpanFromNode(t,r),"code")}case 262:return d(t.parent);case 257:case 226:case 258:case 260:case 263:case 182:case 201:return d(t);case 184:return d(t,!1,!e.isTupleTypeNode(t.parent),22);case 289:case 290:return(a=t.statements).length?c(e.createTextSpanFromRange(a),"code"):void 0;case 205:return l(t);case 204:return l(t,22);case 278:return(t=>{var n=e.createTextSpanFromBounds(t.openingElement.getStart(r),t.closingElement.getEnd()),i=t.openingElement.tagName.getText(r);return c(n,"code",n,!1,"<"+i+">...</"+i+">")})(t);case 282:return(t=>{var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return c(n,"code",n,!1,"<>...</>")})(t);case 279:case 280:return(e=>{if(0!==e.properties.length)return o(e.getStart(r),e.getEnd(),"code")})(t.attributes);case 223:case 14:return(e=>{if(14!==e.kind||0!==e.text.length)return o(e.getStart(r),e.getEnd(),"code")})(t);case 202:return d(t,!1,!e.isBindingElement(t.parent),22);case 214:return(t=>{if(!(e.isBlock(t.body)||e.isParenthesizedExpression(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 208:return(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);case 212:return(t=>{if(!e.positionsAreOnSameLine(t.getStart(),t.getEnd(),r))return c(e.createTextSpanFromBounds(t.getStart(),t.getEnd()),"code",e.createTextSpanFromNode(t))})(t)}var a;function l(t,r){return void 0===r&&(r=18),d(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function d(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 l=e.findChildOfKind(t,o,r),d=e.findChildOfKind(t,c,r);return l&&d&&s(l,d,n,r,i,a)}})(d,t);p&&n.push(p),l--,e.isCallExpression(d)?(l++,g(d.expression),l--,d.arguments.forEach(g),null===(u=d.typeArguments)||void 0===u||u.forEach(g)):e.isIfStatement(d)&&d.elseStatement&&e.isIfStatement(d.elseStatement)?(g(d.expression),g(d.thenStatement),l++,g(d.elseStatement),l--):d.forEachChild(g),l++}}})(t,r,l),((t,r)=>{for(var i=[],a=0,o=t.getLineStarts();a<o.length;a++){var s=o[a],l=t.getLineEndOfPosition(s),d=n(t.text.substring(s,l));if(d&&!e.isInComment(t,s))if(d[1]){var u=i.pop();u&&(u.textSpan.length=l-u.textSpan.start,u.hintSpan.length=l-u.textSpan.start,r.push(u))}else{var p=e.createTextSpanFromBounds(t.text.indexOf("//",s),l);i.push(c(p,"region",p,!1,d[2]||"#region"))}}})(t,l),l.sort(((e,t)=>e.textSpan.start-t.textSpan.start))};var r=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function n(t){return t=e.trimStringStart(t),e.startsWith(t,"//")?(t=e.trimString(t.slice(2)),r.exec(t)):null}function i(t,r,i,a){var s=e.getLeadingCommentRanges(r.text,t);if(s){for(var c=-1,l=-1,d=0,u=r.getFullText(),p=0,_=s;p<_.length;p++){var f=_[p],m=f.kind,g=f.pos,h=f.end;switch(i.throwIfCancellationRequested(),m){case 2:if(n(u.slice(g,h))){y(),d=0;break}0===d&&(c=g),l=h,d++;break;case 3:y(),a.push(o(g,h,"comment")),d=0;break;default:e.Debug.assertNever(m)}}y()}function y(){d>1&&a.push(o(c,l,"comment"))}}function a(t,r,n,a){e.isJsxText(t)||i(t.pos,r,n,a)}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={}))})(p),(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=((e,t)=>{for(var r=e.length-t.length,n=r=>{if(S(t,((t,n)=>p(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 u=0,_=n(i,o);u<_.length;u++){var f=_[u];if(c(i,f,a.text,!0))return r(t.substring,c(i,f,a.text,!1))}if(a.text.length<i.length&&d(i.charCodeAt(s)))return r(t.substring,!1)}else{if(i.indexOf(a.text)>0)return r(t.substring,!0);if(a.characterSpans.length>0){var m=n(i,o),g=!!l(i,m,a,!1)||!l(i,m,a,!0)&&void 0;if(void 0!==g)return r(t.camelCase,g)}}}function a(e,t,r){if(S(t.totalTextChunk.text,(e=>32!==e&&42!==e))){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s<c.length;s++)a=o(a,i(e,c[s],r));return a}function o(t,r){return e.min(t,r,s)}function s(t,r){return void 0===t?1:void 0===r?-1:e.compareValues(t.kind,r.kind)||e.compareBooleans(!t.isCaseSensitive,!r.isCaseSensitive)}function c(e,t,r,n,i){return void 0===i&&(i={start:0,length:r.length}),i.length<=t.length&&D(0,i.length,(a=>((e,t,r)=>r?p(e)===p(t):e===t)(r.charCodeAt(i.start+a),e.charCodeAt(t.start+a),n)))}function l(t,r,n,i){for(var a=n.characterSpans,o=0,s=0;;){if(s===a.length)return!0;if(o===r.length)return!1;for(var l=r[o],u=!1;s<a.length;s++){var p=a[s];if(u&&(!d(n.text.charCodeAt(a[s-1].start))||!d(n.text.charCodeAt(a[s].start))))break;if(!c(t,l,n.text,i,p))break;u=!0,l=e.createTextSpan(l.start+p.length,l.length-p.length)}o++}}function d(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function u(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 p(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function _(e){return e>=48&&e<=57}function f(e){for(var t=[],r=0,n=0,i=0;i<e.length;i++)d(a=e.charCodeAt(i))||u(a)||_(a)||95===a||36===a?(0===n&&(r=i),n++):n>0&&(t.push(m(e.substr(r,n))),n=0);var a;return n>0&&t.push(m(e.substr(r,n))),t}function m(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:g(e)}}function g(e){return y(e,!1)}function h(e){return y(e,!0)}function y(t,r){for(var n=[],i=0,a=1;a<t.length;a++){var o=_(t.charCodeAt(a-1)),s=_(t.charCodeAt(a)),c=x(t,r,a),l=r&&E(t,a,i);(v(t.charCodeAt(a-1))||v(t.charCodeAt(a))||o!==s||c||l)&&(b(t,i,a)||n.push(e.createTextSpan(i,a-i)),i=a)}return b(t,i,t.length)||n.push(e.createTextSpan(i,t.length-i)),n}function v(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function b(e,t,r){return S(e,(e=>v(e)&&95!==e),t,r)}function E(e,t,r){return t!==r&&t+1<e.length&&d(e.charCodeAt(t))&&u(e.charCodeAt(t+1))&&S(e,d,r,t)}function x(e,t,r){var n=d(e.charCodeAt(r-1));return d(e.charCodeAt(r))&&(!t||!n)}function D(e,t,r){for(var n=e;n<t;n++)if(!r(n))return!1;return!0}function S(e,t,r,n){return void 0===r&&(r=0),void 0===n&&(n=e.length),D(r,n,(r=>t(e.charCodeAt(r),r)))}!(e=>{e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase"})(t=e.PatternMatchKind||(e.PatternMatchKind={})),e.createPatternMatcher=t=>{var r=new e.Map,n=t.trim().split(".").map((e=>{return{totalTextChunk:m(t=e.trim()),subWordTextChunks:f(t)};var t}));if(!n.some((e=>!e.subWordTextChunks.length)))return{getFullMatch:(t,i)=>((t,r,n,i)=>{var s;if(a(r,e.last(n),i)&&!(n.length-1>t.length)){for(var c=n.length-2,l=t.length-1;c>=0;c-=1,l-=1)s=o(s,a(t[l],n[c],i));return s}})(t,i,n,r),getMatchForLastSegmentOfPattern:t=>a(t,e.last(n),r),patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=g,e.breakIntoWordSpans=h})(p),(e=>{e.preProcessFile=(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=[],l=0,d=!1;function u(){return a=o,18===(o=e.scanner.scan())?l++:19===o&&l--,o}function p(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function _(){c.push(p()),f()}function f(){0===l&&(d=!0)}function m(){var t=e.scanner.getToken();return 135===t&&(141===(t=u())&&10===(t=u())&&(i||(i=[]),i.push({ref:p(),depth:l})),!0)}function g(){if(24===a)return!1;var t=e.scanner.getToken();if(100===t){if(20===(t=u())){if(10===(t=u())||14===t)return _(),!0}else{if(10===t)return _(),!0;if(152===t&&e.scanner.lookAhead((()=>{var t=e.scanner.scan();return 156!==t&&(41===t||18===t||79===t||e.isKeyword(t))}))&&(t=u()),79===t||e.isKeyword(t))if(156===(t=u())){if(10===(t=u()))return _(),!0}else if(63===t){if(y(!0))return!0}else{if(27!==t)return!0;t=u()}if(18===t){for(t=u();19!==t&&1!==t;)t=u();19===t&&156===(t=u())&&10===(t=u())&&_()}else 41===t&&127===(t=u())&&(79===(t=u())||e.isKeyword(t))&&156===(t=u())&&10===(t=u())&&_()}return!0}return!1}function h(){var t=e.scanner.getToken();if(93===t){if(f(),152===(t=u())&&e.scanner.lookAhead((()=>{var t=e.scanner.scan();return 41===t||18===t}))&&(t=u()),18===t){for(t=u();19!==t&&1!==t;)t=u();19===t&&156===(t=u())&&10===(t=u())&&_()}else if(41===t)156===(t=u())&&10===(t=u())&&_();else if(100===t&&(152===(t=u())&&e.scanner.lookAhead((()=>{var t=e.scanner.scan();return 79===t||e.isKeyword(t)}))&&(t=u()),(79===t||e.isKeyword(t))&&63===(t=u())&&y(!0)))return!0;return!0}return!1}function y(t,r){void 0===r&&(r=!1);var n=t?u():e.scanner.getToken();return 146===n&&(20===(n=u())&&(10===(n=u())||r&&14===n)&&_(),!0)}function v(){var t=e.scanner.getToken();if(79===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=u()))return!0;if(10===(t=u())||14===t){if(27!==(t=u()))return!0;t=u()}if(22!==t)return!0;for(t=u();23!==t&&1!==t;)10!==t&&14!==t||_(),t=u();return!0}return!1}if(r&&(()=>{for(e.scanner.setText(t),u();1!==e.scanner.getToken();){if(15===e.scanner.getToken()){var r=[e.scanner.getToken()],i=e.scanner.scan();e:for(;e.length(r);){switch(i){case 1:break e;case 100:g();break;case 15:r.push(i);break;case 18:e.length(r)&&r.push(i);break;case 19:e.length(r)&&(15===e.lastOrUndefined(r)?17===e.scanner.reScanTemplateToken(!1)&&r.pop():r.pop())}i=e.scanner.scan()}u()}m()||g()||h()||n&&(y(!1,!0)||v())||u()}e.scanner.setText(void 0)})(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),d){if(i)for(var b=0,E=i;b<E.length;b++){var x=E[b];c.push(x.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:void 0}}var D=void 0;if(i)for(var S=0,T=i;S<T.length;S++)0===(x=T[S]).depth?(D||(D=[]),D.push(x.ref.fileName)):c.push(x.ref);return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:D}}})(p),(e=>{!(t=>{function r(t){var r=e.getPathComponents(t),n=r.lastIndexOf("node_modules");if(-1!==n)return r.slice(0,n+2)}function n(e,t,r,n,i,o){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:n,triggerSpan:a(i,o)}}function i(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t)}}function a(t,r){var n=t.getStart(r),i=t.getWidth(r);return e.isStringLiteralLike(t)&&(n+=1,i-=2),e.createTextSpan(n,i)}function o(t){switch(t.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return!1}}t.getRenameInfo=(t,a,s,c)=>{var l=e.getAdjustedRenameLocation(e.getTouchingPropertyName(a,s));if(o(l)){var d=((t,a,o,s,c)=>{var l=a.getSymbolAtLocation(t);if(l){var d=l.declarations;if(d&&0!==d.length){if(d.some((t=>((t,r)=>{var n=r.getSourceFile();return t.isSourceFileDefaultLibrary(n)&&e.fileExtensionIs(n.fileName,".d.ts")})(s,t))))return i(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(t)&&88===t.originalKeywordKind&&l.parent&&1536&l.parent.flags)){if(e.isStringLiteralLike(t)&&e.tryGetImportFromModuleSpecifier(t))return c.allowRenameOfImportPath?((t,r,n)=>{if(!e.isExternalModuleNameRelative(t.text))return i(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var a=n.declarations&&e.find(n.declarations,e.isSourceFile);if(a){var o=e.endsWith(t.text,"/index")||e.endsWith(t.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(a.fileName),"/index"),s=void 0===o?a.fileName:o,c=void 0===o?"module":"directory",l=t.text.lastIndexOf("/")+1;return{canRename:!0,fileToRename:s,kind:c,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:e.createTextSpan(t.getStart(r)+1+l,t.text.length-l)}}})(t,o,l):void 0;var u=((t,n,i,a)=>{if(!a.providePrefixAndSuffixTextForRename&&2097152&n.flags){var o=n.declarations&&e.find(n.declarations,(t=>e.isImportSpecifier(t)));o&&!o.propertyName&&(n=i.getAliasedSymbol(n))}var s=n.declarations;if(s){var c=r(t.path);if(void 0===c)return e.some(s,(t=>e.isInsideNodeModules(t.getSourceFile().path)))?e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(var l=0,d=s;l<d.length;l++){var u=r(d[l].getSourceFile().path);if(u)for(var p=Math.min(c.length,u.length),_=0;_<=p;_++)if(0!==e.compareStringsCaseSensitive(c[_],u[_]))return e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}})(o,l,a,c);if(u)return i(u);var p=e.SymbolDisplay.getSymbolKind(a,l,t),_=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteralLike(t)&&162===t.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):void 0;return n(_||a.symbolToString(l),_||a.getFullyQualifiedName(l),p,e.SymbolDisplay.getSymbolModifiers(a,l),t,o)}}}else if(e.isStringLiteralLike(t)){var f=e.getContextualTypeFromParentOrAncestorTypeNode(t,a);if(f&&(128&f.flags||1048576&f.flags&&e.every(f.types,(e=>!!(128&e.flags)))))return n(t.text,t.text,"string","",t,o)}else if(e.isLabelName(t)){var m=e.getTextOfNode(t);return n(m,m,"label","",t,o)}})(l,t.getTypeChecker(),a,t,c);if(d)return d}return i(e.Diagnostics.You_cannot_rename_this_element)},t.nodeIsEligibleForRename=o})(e.Rename||(e.Rename={}))})(p),(e=>{!(t=>{function r(t,r,n){return e.Debug.assert(n.pos<=r),r<n.end||n.getEnd()===r&&e.getTouchingPropertyName(t,r).pos<n.end}t.getSmartSelectionRange=(t,n)=>{var a,o,s,d,u={textSpan:e.createTextSpanFromBounds(n.getFullStart(),n.getEnd())},p=n;e:for(;;){var _=i(p);if(!_.length)break;for(var f=0;f<_.length;f++){var g=_[f-1],h=_[f],y=_[f+1];if(e.getTokenPosOfNode(h,n,!0)>t)break e;var v=e.singleOrUndefined(e.getTrailingCommentRanges(n.text,h.end));if(v&&2===v.kind&&T(v.pos,v.end),r(n,t,h)){if(e.isBlock(h)||e.isTemplateSpan(h)||e.isTemplateHead(h)||e.isTemplateTail(h)||g&&e.isTemplateHead(g)||e.isVariableDeclarationList(h)&&e.isVariableStatement(p)||e.isSyntaxList(h)&&e.isVariableDeclarationList(p)||e.isVariableDeclaration(h)&&e.isSyntaxList(p)&&1===_.length||e.isJSDocTypeExpression(h)||e.isJSDocSignature(h)||e.isJSDocTypeLiteral(h)){p=h;break}e.isTemplateSpan(p)&&y&&e.isTemplateMiddleOrTemplateTail(y)&&S(h.getFullStart()-"${".length,y.getStart()+"}".length);var b=e.isSyntaxList(h)&&(18===(d=(s=g)&&s.kind)||22===d||20===d||280===d)&&c(y)&&!e.positionsAreOnSameLine(g.getStart(),y.getStart(),n),E=b?g.getEnd():h.getStart(),x=b?y.getStart():l(n,h);if(e.hasJSDocNodes(h)&&(null===(a=h.jsDoc)||void 0===a?void 0:a.length)&&S(e.first(h.jsDoc).getStart(),x),e.isSyntaxList(h)){var D=h.getChildren()[0];D&&e.hasJSDocNodes(D)&&(null===(o=D.jsDoc)||void 0===o?void 0:o.length)&&D.getStart()!==h.pos&&(E=Math.min(E,e.first(D.jsDoc).getStart()))}S(E,x),(e.isStringLiteral(h)||e.isTemplateLiteral(h))&&S(E+1,x-1),p=h;break}if(f===_.length-1)break e}}return u;function S(r,n){if(r!==n){var i=e.createTextSpanFromBounds(r,n);(!u||!e.textSpansEqual(i,u.textSpan)&&e.textSpanIntersectsWithPosition(i,t))&&(u=m({textSpan:i},u&&{parent:u}))}}function T(e,t){S(e,t);for(var r=e;47===n.text.charCodeAt(r);)r++;S(r,t)}};var n=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function i(t){var r;if(e.isSourceFile(t))return a(t.getChildAt(0).getChildren(),n);if(e.isMappedTypeNode(t)){var i=t.getChildren(),c=i[0],l=i.slice(1),d=e.Debug.checkDefined(l.pop());e.Debug.assertEqual(c.kind,18),e.Debug.assertEqual(d.kind,19);var u=a(l,(e=>e===t.readonlyToken||145===e.kind||e===t.questionToken||57===e.kind));return[c,s(o(a(u,(e=>{var t=e.kind;return 22===t||163===t||23===t})),(e=>58===e.kind))),d]}if(e.isPropertySignature(t)){var p=320===(null===(r=(l=a(t.getChildren(),(r=>r===t.name||e.contains(t.modifiers,r))))[0])||void 0===r?void 0:r.kind)?l[0]:void 0,_=o(p?l.slice(1):l,(e=>58===e.kind));return p?[p,s(_)]:_}if(e.isParameter(t)){var f=a(t.getChildren(),(e=>e===t.dotDotDotToken||e===t.name));return o(a(f,(e=>e===f[0]||e===t.questionToken)),(e=>63===e.kind))}return e.isBindingElement(t)?o(t.getChildren(),(e=>63===e.kind)):t.getChildren()}function a(e,t){for(var r,n=[],i=0,a=e;i<a.length;i++){var o=a[i];t(o)?(r=r||[]).push(o):(r&&(n.push(s(r)),r=void 0),n.push(o))}return r&&n.push(s(r)),n}function o(t,r,n){if(void 0===n&&(n=!0),t.length<2)return t;var i=e.findIndex(t,r);if(-1===i)return t;var a=t.slice(0,i),o=t[i],c=e.last(t),l=n&&26===c.kind,d=t.slice(i+1,l?t.length-1:void 0),u=e.compact([a.length?s(a):void 0,o,d.length?s(d):void 0]);return l?u.concat(c):u}function s(t){return e.Debug.assertGreaterThanOrEqual(t.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(t),t[0].pos,e.last(t).end)}function c(e){var t=e&&e.kind;return 19===t||23===t||21===t||281===t}function l(e,t){switch(t.kind){case 340:case 338:case 347:case 345:case 342:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}})(e.SmartSelectionRange||(e.SmartSelectionRange={}))})(p),(e=>{!(t=>{var r,n;function i(t,r,n){for(var i=t.getFullStart(),a=t.parent;a;){var o=e.findPrecedingToken(i,r,a,!0);if(o)return e.rangeContainsRange(n,o);a=a.parent}return e.Debug.fail("Could not find preceding token")}function a(t,r,n){var i=((t,r)=>{if(29===t.kind||20===t.kind)return{list:p(t.parent,t,r),argumentIndex:0};var n=e.findContainingList(t);return n&&{list:n,argumentIndex:l(n,t)}})(t,n);if(i){var a=i.list,o=i.argumentIndex,s=((t,r)=>{var n=t.getChildren(),i=e.countWhere(n,(e=>27!==e.kind));return!r&&n.length>0&&27===e.last(n).kind&&i++,i})(a,e.isInString(n,r,t));return 0!==o&&e.Debug.assertLessThan(o,s),{list:a,argumentIndex:o,argumentCount:s,argumentsSpan:((t,r)=>{var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)})(a,n)}}}function o(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var o=i,s=a(t,r,n);if(!s)return;var c=s.list,l=s.argumentIndex,u=s.argumentCount,p=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:o},argumentsSpan:p,argumentIndex:l,argumentCount:u}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?d(i,0,n):void 0;if(e.isTemplateHead(t)&&210===i.parent.kind){var _=i,f=_.parent;return e.Debug.assert(223===_.kind),d(f,l=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var m=i;if(f=i.parent.parent,e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return d(f,l=((t,r,n,i)=>(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))(m.parent.templateSpans.indexOf(m),t,r,n),n)}if(e.isJsxOpeningLikeElement(i)){var g=i.attributes.pos,h=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(g,h-g),argumentIndex:0,argumentCount:1}}var y=e.getPossibleTypeArgumentsInfo(t,n);if(y){var v=y.called,b=y.nTypeArguments;return{isTypeParameterList:!0,invocation:o={kind:1,called:v},argumentsSpan:p=e.createTextSpanFromBounds(v.getStart(n),t.end),argumentIndex:b,argumentCount:b+1}}}function s(t){return e.isBinaryExpression(t.parent)?s(t.parent):t}function c(t){return e.isBinaryExpression(t.left)?c(t.left)+1:2}function l(e,t){for(var r=0,n=0,i=e.getChildren();n<i.length;n++){var a=i[n];if(a===t)break;27!==a.kind&&r++}return r}function d(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==r&&e.Debug.assertLessThan(r,i),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:u(t,n),argumentIndex:r,argumentCount:i}}function u(t,r){var n=t.template,i=n.getStart(),a=n.getEnd();return 223===n.kind&&0===e.last(n.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(r.text,a,!1)),e.createTextSpan(i,a-i)}function p(t,r,n){var i=t.getChildren(n),a=i.indexOf(r);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function _(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function m(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!(e=>{e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"})(r||(r={})),t.getSignatureHelpItems=(t,r,n,l,d)=>{var u=t.getTypeChecker(),p=e.findTokenOnLeftOfPosition(r,n);if(p){var f=!!l&&"characterTyped"===l.kind;if(!f||!e.isInString(r,n,p)&&!e.isInComment(r,n)){var g=!!l&&"invoked"===l.kind,v=((t,r,n,i,l)=>{for(var d=t=>{e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",(()=>"Child: ".concat(e.Debug.formatSyntaxKind(t.kind),", parent: ").concat(e.Debug.formatSyntaxKind(t.parent.kind))));var l=((t,r,n,i)=>((t,r,n,i)=>{var o=((t,r,n,i)=>{if(20===t.kind||27===t.kind){var o=t.parent;switch(o.kind){case 212:case 169:case 213:case 214:var l=a(t,n,r);if(!l)return;var d=l.argumentIndex,u=l.argumentCount,p=l.argumentsSpan,_=e.isMethodDeclaration(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return _&&{contextualType:_,argumentIndex:d,argumentCount:u,argumentsSpan:p};case 221:var f=s(o),m=i.getContextualType(f),g=20===t.kind?0:c(o)-1,h=c(f);return m&&{contextualType:m,argumentIndex:g,argumentCount:h,argumentsSpan:e.createTextSpanFromNode(o)};default:return}}})(t,n,r,i);if(o){var l=o.contextualType,d=o.argumentIndex,u=o.argumentCount,p=o.argumentsSpan,_=l.getNonNullableType(),f=_.symbol;if(void 0!==f){var m,g=e.lastOrUndefined(_.getCallSignatures());return void 0===g?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:g,node:t,symbol:(m=f,"__type"===m.name&&e.firstDefined(m.declarations,(t=>e.isFunctionTypeNode(t)?t.parent.symbol:void 0))||m)},argumentsSpan:p,argumentIndex:d,argumentCount:u}}}})(t,r,n,i)||o(t,r,n))(t,r,n,i);if(l)return{value:l}},u=t;!e.isSourceFile(u)&&(l||!e.isBlock(u));u=u.parent){var p=d(u);if("object"==typeof p)return p.value}})(p,n,r,u,g);if(v){d.throwIfCancellationRequested();var b=((t,r,n,a,o)=>{var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!((t,r,n)=>{if(!e.isCallOrNewExpression(r))return!1;var a=r.getChildren(n);switch(t.kind){case 20:return e.contains(a,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(a,o);case 29:return i(t,n,r.expression);default:return!1}})(a,s.node,n))return;var l=[],d=r.getResolvedSignatureForSignatureHelp(s.node,l,c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:d};case 1:var u=s.called;if(o&&!i(a,n,e.isIdentifier(u)?u.parent:u))return;if(0!==(l=e.getPossibleGenericSignatures(u,c,r)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var p=r.getSymbolAtLocation(u);return p&&{kind:1,symbol:p};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}})(v,u,r,p,f);return d.throwIfCancellationRequested(),b?u.runWithCancellationToken(d,(e=>0===b.kind?h(b.candidates,b.resolvedSignature,v,r,e):((e,t,r,n)=>{var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=n.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[y(e,c,n,m(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0})(b.symbol,v,r,e))):e.isSourceFileJS(r)?((t,r,n)=>{if(2!==t.invocation.kind){var i=_(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),(r=>e.firstDefined(r.getNamedDeclarations().get(a),(e=>{var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(e=>h(a,a[0],t,r,e,!0)))}))))}})(v,t,d):void 0}}}},(e=>{e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"})(n||(n={})),t.getArgumentInfoForCompletions=(e,t,r)=>{var n=o(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var g=70246400;function h(t,r,n,i,a,o){var s,c=n.isTypeParameterList,l=n.argumentCount,d=n.argumentsSpan,u=n.invocation,p=n.argumentIndex,g=m(u),h=2===u.kind?u.symbol:a.getSymbolAtLocation(_(u))||o&&(null===(s=r.declaration)||void 0===s?void 0:s.symbol),y=h?e.symbolToDisplayParts(a,h,o?i:void 0,void 0):e.emptyArray,x=e.map(t,(t=>((t,r,n,i,a,o)=>{var s=(n?b:E)(t,i,a,o);return e.map(s,(n=>{var o=n.isVariadic,s=n.parameters,c=n.prefix,l=n.suffix,d=f(f([],r,!0),c,!0),u=f(f([],l,!0),((t,r,n)=>e.mapToDisplayParts((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,a,i),!0),p=t.getDocumentationComment(i),_=t.getJsDocTags();return{isVariadic:o,prefixDisplayParts:d,suffixDisplayParts:u,separatorDisplayParts:v,parameters:s,documentation:p,tags:_}}))})(t,y,c,a,g,i)));0!==p&&e.Debug.assertLessThan(p,l);for(var D=0,S=0,T=0;T<x.length;T++){var C=x[T];if(t[T]===r&&(D=S,C.length>1))for(var A=0,k=0,N=C;k<N.length;k++){var w=N[k];if(w.isVariadic||w.parameters.length>=l){D=S+A;break}A++}S+=C.length}e.Debug.assert(-1!==D);var F={items:e.flatMapToMutable(x,e.identity),applicableSpan:d,selectedItemIndex:D,argumentIndex:p,argumentCount:l},P=F.items[D];if(P.isVariadic){var I=e.findIndex(P.parameters,(e=>!!e.isRest));-1<I&&I<P.parameters.length-1?F.argumentIndex=P.parameters.length:F.argumentIndex=Math.min(F.argumentIndex,P.parameters.length-1)}return F}function y(t,r,n,i,a){var o=e.symbolToDisplayParts(n,t),s=e.createPrinter({removeComments:!0}),c=r.map((e=>x(e,n,i,a,s))),l=t.getDocumentationComment(n),d=t.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:f(f([],o,!0),[e.punctuationPart(29)],!1),suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:v,parameters:c,documentation:l,tags:d}}var v=[e.punctuationPart(27),e.spacePart()];function b(t,r,n,i){var a=(t.target||t).typeParameters,o=e.createPrinter({removeComments:!0}),s=(a||e.emptyArray).map((e=>x(e,r,n,i,o))),c=t.thisParameter?[r.symbolToParameterDeclaration(t.thisParameter,n,g)]:[];return r.getExpandedParameters(t).map((t=>{var a=e.factory.createNodeArray(f(f([],c,!0),e.map(t,(e=>r.symbolToParameterDeclaration(e,n,g))),!0)),l=e.mapToDisplayParts((e=>{o.writeList(2576,a,i,e)}));return{isVariadic:!1,parameters:s,prefix:[e.punctuationPart(29)],suffix:f([e.punctuationPart(31)],l,!0)}}))}function E(t,r,n,i){var a=e.createPrinter({removeComments:!0}),o=e.mapToDisplayParts((o=>{if(t.typeParameters&&t.typeParameters.length){var s=e.factory.createNodeArray(t.typeParameters.map((e=>r.typeParameterToDeclaration(e,n,g))));a.writeList(53776,s,i,o)}})),s=r.getExpandedParameters(t),c=r.hasEffectiveRestParameter(t)?1===s.length?e=>!0:e=>!!(e.length&&32768&e[e.length-1].checkFlags):e=>!1;return s.map((t=>({isVariadic:c(t),parameters:t.map((t=>((t,r,n,i,a)=>{var o=e.mapToDisplayParts((e=>{var o=r.symbolToParameterDeclaration(t,n,g);a.writeNode(4,o,i,e)})),s=r.isOptionalParameter(t.valueDeclaration),c=!!(32768&t.checkFlags);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:o,isOptional:s,isRest:c}})(t,r,n,i,a))),prefix:f(f([],o,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]})))}function x(t,r,n,i,a){var o=e.mapToDisplayParts((e=>{var o=r.typeParameterToDeclaration(t,n,g);a.writeNode(4,o,i,e)}));return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:o,isOptional:!1,isRest:!1}}})(e.SignatureHelp||(e.SignatureHelp={}))})(p),(e=>{!(t=>{function r(e){return"literals"===e.includeInlayParameterNameHints}t.provideInlayHints=t=>{var n=t.file,i=t.program,a=t.span,o=t.cancellationToken,s=t.preferences,c=n.text,l=i.getCompilerOptions(),d=i.getTypeChecker(),u=[];return function t(i){if(i&&0!==i.getFullWidth()){switch(i.kind){case 261:case 257:case 258:case 256:case 226:case 213:case 169:case 214:o.throwIfCancellationRequested()}if(e.textSpanIntersectsWith(a,i.pos,i.getFullWidth())&&(!e.isTypeNode(i)||e.isExpressionWithTypeArguments(i)))return s.includeInlayVariableTypeHints&&e.isVariableDeclaration(i)||s.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(i)?(t=>{if(t.initializer&&!e.isBindingPattern(t.name)&&(!e.isVariableDeclaration(t)||E(t))&&!e.getEffectiveTypeAnnotationNode(t)){var r=d.getTypeAtLocation(t);if(!f(r)){var n=b(r);if(n){if(!1===s.includeInlayVariableTypeHintsWhenTypeMatchesName&&e.equateStringsCaseInsensitive(t.name.getText(),n))return;_(n,t.name.end)}}}})(i):s.includeInlayEnumMemberValueHints&&e.isEnumMember(i)?(e=>{if(!e.initializer){var t,r,n=d.getConstantValue(e);void 0!==n&&(t=n.toString(),r=e.end,u.push({text:"= ".concat(v(t,30)),position:r,kind:"Enum",whitespaceBefore:!0}))}})(i):(e=>"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints)(s)&&(e.isCallExpression(i)||e.isNewExpression(i))?(t=>{var n=t.arguments;if(n&&n.length){var i=[],a=d.getResolvedSignatureForSignatureHelp(t,i);if(a&&i.length)for(var o=0;o<n.length;++o){var c=n[o],l=e.skipParentheses(c);if(!r(s)||h(l)){var u=d.getParameterIdentifierNameAtPosition(a,o);if(u){var _=u[0],f=u[1];if(!s.includeInlayParameterNameHintsWhenArgumentMatchesName&&m(l,_)&&!f)continue;var y=e.unescapeLeadingUnderscores(_);if(g(l,y))continue;p(y,c.getStart(),f)}}}}})(i):(s.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(i)&&e.hasContextSensitiveParameters(i)&&(t=>{var r=d.getSignatureFromDeclaration(t);if(r)for(var n=0;n<t.parameters.length&&n<r.parameters.length;++n){var i=t.parameters[n];if(E(i)&&!e.getEffectiveTypeAnnotationNode(i)){var a=y(r.parameters[n]);a&&_(a,i.questionToken?i.questionToken.end:i.name.end)}}})(i),s.includeInlayFunctionLikeReturnTypeHints&&(t=>e.isArrowFunction(t)||e.isFunctionExpression(t)||e.isFunctionDeclaration(t)||e.isMethodDeclaration(t)||e.isGetAccessorDeclaration(t))(i)&&(t=>{if((!e.isArrowFunction(t)||e.findChildOfKind(t,20,n))&&!e.getEffectiveReturnTypeNode(t)&&t.body){var r=d.getSignatureFromDeclaration(t);if(r){var i=d.getReturnTypeOfSignature(r);if(!f(i)){var a=b(i);a&&_(a,(t=>{var r=e.findChildOfKind(t,21,n);return r?r.end:t.parameters.end})(t))}}}})(i)),e.forEachChild(i,t)}}(n),u;function p(e,t,r){u.push({text:"".concat(r?"...":"").concat(v(e,30),":"),position:t,kind:"Parameter",whitespaceAfter:!0})}function _(e,t){u.push({text:": ".concat(v(e,30)),position:t,kind:"Type",whitespaceBefore:!0})}function f(e){return e.symbol&&1536&e.symbol.flags}function m(t,r){return e.isIdentifier(t)?t.text===r:!!e.isPropertyAccessExpression(t)&&t.name.text===r}function g(t,r){if(!e.isIdentifierText(r,l.target,e.getLanguageVariant(n.scriptKind)))return!1;var i=e.getLeadingCommentRanges(c,t.pos);if(!(null==i?void 0:i.length))return!1;var a=(e=>new RegExp("^\\s?/\\*\\*?\\s?".concat(e,"\\s?\\*\\/\\s?$")))(r);return e.some(i,(e=>a.test(c.substring(e.pos,e.end))))}function h(t){switch(t.kind){case 219:var r=t.operand;return e.isLiteralExpression(r)||e.isIdentifier(r)&&e.isInfinityOrNaNString(r.escapedText);case 110:case 95:case 104:case 14:case 223:return!0;case 79:var n=t.escapedText;return(e=>"undefined"===e)(n)||e.isInfinityOrNaNString(n)}return e.isLiteralExpression(t)}function y(t){var r=t.valueDeclaration;if(r&&e.isParameter(r)){var n=d.getTypeOfSymbolAtLocation(t,r);if(!f(n))return b(n)}}function v(e,t){return e.length>t?e.substr(0,t-"...".length)+"...":e}function b(t){var r=e.createPrinter({removeComments:!0});return e.usingSingleLineStringWriter((i=>{var a=d.typeToTypeNode(t,void 0,71286784,i);e.Debug.assertIsDefined(a,"should always get typenode"),r.writeNode(4,a,n,i)}))}function E(t){if((e.isParameterDeclaration(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&t.initializer){var r=e.skipParentheses(t.initializer);return!(h(r)||e.isNewExpression(r)||e.isObjectLiteralExpression(r)||e.isAssertionExpression(r))}return!0}}})(e.InlayHints||(e.InlayHints={}))})(p),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(i){if(!e.isDeclarationFileName(i.fileName)){var a=c(i.fileName);if(a){var o=t.getProgram();if(!o.isSourceOfProjectReferenceRedirect(a.fileName)){var l=o.getCompilerOptions(),d=e.outFile(l),u=d?e.removeFileExtension(d)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),r);if(void 0!==u){var p=s(u,i.fileName).getGeneratedPosition(i);return p===i?void 0:p}}}}},toLineColumnOffset:(e,t)=>l(e).getLineAndCharacterOfPosition(t),clearCache(){i.clear(),a.clear()}};function o(t){return e.toPath(t,n,r)}function s(n,i){var s,c=o(n),d=a.get(c);if(d)return d;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(n,i);else if(t.readFile){var u=l(n);s=u&&e.getDocumentPositionMapper({getSourceFileLike:l,getCanonicalFileName:r,log:e=>t.log(e)},n,e.getLineInfo(u.text,e.getLineStarts(u)),(e=>!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 l(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(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(n,c),c||void 0}i.set(n,!1)}(r)}},e.getDocumentPositionMapper=(n,i,a,o)=>{var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1]){var l=c[1];return r(n,e.base64decode(e.sys,l),i)}s=void 0}}var d=[];s&&d.push(s),d.push(i+".map");for(var u=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),p=0,_=d;p<_.length;p++){var f=_[p],m=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(i)),g=o(m,u);if(e.isString(g))return r(n,g,m);if(void 0!==g)return g||void 0}}}(p),(e=>{var t=new e.Map;function r(t){return e.isPropertyAccessExpression(t)?r(t.expression):t}function n(t){switch(t.kind){case 266:var r=t.importClause,n=t.moduleSpecifier;return r&&!r.name&&r.namedBindings&&268===r.namedBindings.kind&&e.isStringLiteral(n)?r.namedBindings.name:void 0;case 265:return t.name;default:return}}function i(e,t){var r=t.getSignatureFromDeclaration(e),n=r?t.getReturnTypeOfSignature(r):void 0;return!!n&&!!t.getPromisedTypeOfPromise(n)}function a(t,r){return e.isReturnStatement(t)&&!!t.expression&&o(t.expression,r)}function o(t,r){if(!s(t)||!c(t)||!t.arguments.every((e=>l(e,r))))return!1;for(var n=t.expression.expression;s(n)||e.isPropertyAccessExpression(n);)if(e.isCallExpression(n)){if(!c(n)||!n.arguments.every((e=>l(e,r))))return!1;n=n.expression.expression}else n=n.expression;return!0}function s(t){return e.isCallExpression(t)&&(e.hasPropertyAccessExpressionWithName(t,"then")||e.hasPropertyAccessExpressionWithName(t,"catch")||e.hasPropertyAccessExpressionWithName(t,"finally"))}function c(t){var r=t.expression.name.text,n="then"===r?2:"catch"===r||"finally"===r?1:0;return!(t.arguments.length>n)&&(t.arguments.length<n||1===n||e.some(t.arguments,(t=>104===t.kind||e.isIdentifier(t)&&"undefined"===t.text)))}function l(r,n){switch(r.kind){case 256:case 213:if(1&e.getFunctionFlags(r))return!1;case 214:t.set(d(r),!0);case 104:return!0;case 79:case 206:var i=n.getSymbolAtLocation(r);return!!i&&(n.isUndefinedSymbol(i)||e.some(e.skipAlias(i,n).declarations,(t=>e.isFunctionLike(t)||e.hasInitializer(t)&&!!t.initializer&&e.isFunctionLike(t.initializer))));default:return!1}}function d(e){return"".concat(e.pos.toString(),":").concat(e.end.toString())}function u(e){switch(e.kind){case 256:case 169:case 213:case 214:return!0;default:return!1}}e.computeSuggestionDiagnostics=(o,s,c)=>{s.getSemanticDiagnostics(o,c);var l,p=[],_=s.getTypeChecker();o.impliedNodeFormat!==e.ModuleKind.CommonJS&&!e.fileExtensionIsOneOf(o.fileName,[".cts",".cjs"])&&o.commonJsModuleIndicator&&(e.programContainsEsModules(s)||e.compilerOptionsIndicateEsModules(s.getCompilerOptions()))&&(t=>t.statements.some((t=>{switch(t.kind){case 237:return t.declarationList.declarations.some((t=>!!t.initializer&&e.isRequireCall(r(t.initializer),!0)));case 238: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}})))(o)&&p.push(e.createDiagnosticForNode((l=o.commonJsModuleIndicator,e.isBinaryExpression(l)?l.left:l),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));var f=e.isSourceFileJS(o);if(t.clear(),function r(n){if(f)((t,r)=>{var n,i,a,o;if(213===t.kind){if(e.isVariableDeclaration(t.parent)&&(null===(n=t.symbol.members)||void 0===n?void 0:n.size))return!0;var s=r.getSymbolOfExpando(t,!1);return!(!s||!(null===(i=s.exports)||void 0===i?void 0:i.size)&&!(null===(a=s.members)||void 0===a?void 0:a.size))}return 256===t.kind&&!!(null===(o=t.symbol.members)||void 0===o?void 0:o.size)})(n,_)&&p.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===o&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){var s=n.declarationList.declarations[0].initializer;s&&e.isRequireCall(s,!0)&&p.push(e.createDiagnosticForNode(s,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(n)&&p.push(e.createDiagnosticForNode(n.name||n,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}u(n)&&((r,n,o)=>{((t,r)=>!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&((t,r)=>!!e.forEachReturnStatement(t,(e=>a(e,r))))(t.body,r)&&i(t,r))(r,n)&&!t.has(d(r))&&o.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,_,p),n.forEachChild(r)}(o),e.getAllowSyntheticDefaultImports(s.getCompilerOptions()))for(var m=0,g=o.imports;m<g.length;m++){var h=g[m],y=n(e.importFromModuleSpecifier(h));if(y){var v=e.getResolvedModule(o,h.text,e.getModeForUsageLocation(o,h)),b=v&&s.getSourceFile(v.resolvedFileName);b&&b.externalModuleIndicator&&!0!==b.externalModuleIndicator&&e.isExportAssignment(b.externalModuleIndicator)&&b.externalModuleIndicator.isExportEquals&&p.push(e.createDiagnosticForNode(y,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(p,o.bindSuggestionDiagnostics),e.addRange(p,s.getSuggestionDiagnostics(o,c)),p.sort(((e,t)=>e.start-t.start))},e.returnsPromise=i,e.isReturnStatementWithFixablePromiseHandler=a,e.isFixablePromiseHandler=o,e.canBeConvertedToAsync=u})(p),(e=>{!(t=>{var r=70246400;function n(t,r,n){var a=i(t,r,n);if(""!==a)return a;var o=e.getCombinedLocalAndExportSymbolFlags(r);return 32&o?e.getDeclarationOfKind(r,226)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":a}function i(t,r,n){var i=t.getRootSymbols(r);if(1===i.length&&8192&e.first(i).flags&&0!==t.getTypeOfSymbolAtLocation(r,n).getNonNullableType().getCallSignatures().length)return"method";if(t.isUndefinedSymbol(r))return"var";if(t.isArgumentsSymbol(r))return"local var";if(108===n.kind&&e.isExpression(n)||e.isThisInTypeQuery(n))return"parameter";var a=e.getCombinedLocalAndExportSymbolFlags(r);return 3&a?e.isFirstDeclarationOfSymbolParameter(r)?"parameter":r.valueDeclaration&&e.isVarConst(r.valueDeclaration)?"const":e.forEach(r.declarations,e.isLet)?"let":o(r)?"local var":"var":16&a?o(r)?"local function":"function":32768&a?"getter":65536&a?"setter":8192&a?"method":16384&a?"constructor":4&a?33554432&a&&6&r.checkFlags?e.forEach(t.getRootSymbols(r),(e=>{if(98311&e.getFlags())return"property"}))||(t.getTypeOfSymbolAtLocation(r,n).getCallSignatures().length?"method":"property"):"property":""}function a(t){if(t.declarations&&t.declarations.length){var r=t.declarations,n=r[0],i=r.slice(1),a=e.length(i)&&e.isDeprecatedDeclaration(n)&&e.some(i,(t=>!e.isDeprecatedDeclaration(t)))?8192:0,o=e.getNodeModifiers(n,a);if(o)return o.split(",")}return[]}function o(t){return!t.parent&&e.forEach(t.declarations,(t=>{if(213===t.kind)return!0;if(254!==t.kind&&256!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(305===r.kind||262===r.kind)return!1;return!0}))}t.getSymbolKind=n,t.getSymbolModifiers=(t,r)=>{if(!r)return"";var n=new e.Set(a(r));if(2097152&r.flags){var i=t.getAliasedSymbol(r);i!==r&&e.forEach(a(i),(e=>{n.add(e)}))}return 16777216&r.flags&&n.add("optional"),n.size>0?e.arrayFrom(n.values()).join(","):""},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(a,o,s,c,l,d,u){var p;void 0===d&&(d=e.getMeaningFromLocation(l));var _,f,m,g,h=[],y=[],v=[],b=e.getCombinedLocalAndExportSymbolFlags(o),E=1&d?i(a,o,l):"",x=!1,D=108===l.kind&&e.isInExpressionContext(l)||e.isThisInTypeQuery(l),S=!1;if(108===l.kind&&!D)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==E||32&b||2097152&b){if("getter"===E||"setter"===E)if(K=e.find(o.declarations,(e=>e.name===l)))switch(K.kind){case 172:E="getter";break;case 173:E="setter";break;default:e.Debug.assertNever(K)}else E="property";var T=void 0;if(_=D?a.getTypeAtLocation(l):a.getTypeOfSymbolAtLocation(o,l),l.parent&&206===l.parent.kind){var C=l.parent.name;(C===l||C&&0===C.getFullWidth())&&(l=l.parent)}var A=void 0;if(e.isCallOrNewExpression(l)?A=l:(e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)||l.parent&&(e.isJsxOpeningLikeElement(l.parent)||e.isTaggedTemplateExpression(l.parent))&&e.isFunctionLike(o.valueDeclaration))&&(A=l.parent),A){T=a.getResolvedSignature(A);var k=209===A.kind||e.isCallExpression(A)&&106===A.expression.kind,N=k?_.getConstructSignatures():_.getCallSignatures();if(!T||e.contains(N,T.target)||e.contains(N,T)||(T=N.length?N[0]:void 0),T){switch(k&&32&b?(E="constructor",ee(_.symbol,E)):2097152&b?(te(E="alias"),h.push(e.spacePart()),k&&(4&T.flags&&(h.push(e.keywordPart(126)),h.push(e.spacePart())),h.push(e.keywordPart(103)),h.push(e.spacePart())),Z(o)):ee(o,E),E){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push(e.punctuationPart(58)),h.push(e.spacePart()),16&e.getObjectFlags(_)||!_.symbol||(e.addRange(h,e.symbolToDisplayParts(a,_.symbol,c,void 0,5)),h.push(e.lineBreakPart())),k&&(4&T.flags&&(h.push(e.keywordPart(126)),h.push(e.spacePart())),h.push(e.keywordPart(103)),h.push(e.spacePart())),re(T,N,262144);break;default:re(T,N)}x=!0,S=N.length>1}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&b)||134===l.kind&&171===l.parent.kind){var w=l.parent;o.declarations&&e.find(o.declarations,(e=>e===(134===l.kind?w.parent:w)))&&(N=171===w.kind?_.getNonNullableType().getConstructSignatures():_.getNonNullableType().getCallSignatures(),T=a.isImplementationOfOverload(w)?N[0]:a.getSignatureFromDeclaration(w),171===w.kind?(E="constructor",ee(_.symbol,E)):ee(174!==w.kind||2048&_.symbol.flags||4096&_.symbol.flags?o:_.symbol,E),T&&re(T,N),x=!0,S=N.length>1)}}if(32&b&&!x&&!D&&(Y(),e.getDeclarationOfKind(o,226)?te("local class"):h.push(e.keywordPart(84)),h.push(e.spacePart()),Z(o),ne(o,s)),64&b&&2&d&&(X(),h.push(e.keywordPart(118)),h.push(e.spacePart()),Z(o),ne(o,s)),524288&b&&2&d&&(X(),h.push(e.keywordPart(152)),h.push(e.spacePart()),Z(o),ne(o,s),h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),e.addRange(h,e.typeToDisplayParts(a,e.isConstTypeReference(l.parent)?a.getTypeAtLocation(l.parent):a.getDeclaredTypeOfSymbol(o),c,8388608))),384&b&&(X(),e.some(o.declarations,(t=>e.isEnumDeclaration(t)&&e.isEnumConst(t)))&&(h.push(e.keywordPart(85)),h.push(e.spacePart())),h.push(e.keywordPart(92)),h.push(e.spacePart()),Z(o)),1536&b&&!D){X();var F=(K=e.getDeclarationOfKind(o,261))&&K.name&&79===K.name.kind;h.push(e.keywordPart(F?142:141)),h.push(e.spacePart()),Z(o)}if(262144&b&&2&d)if(X(),h.push(e.punctuationPart(20)),h.push(e.textPart("type parameter")),h.push(e.punctuationPart(21)),h.push(e.spacePart()),Z(o),o.parent)Q(),Z(o.parent,c),ne(o.parent,c);else{var P=e.getDeclarationOfKind(o,163);if(void 0===P)return e.Debug.fail();(K=P.parent)&&(e.isFunctionLikeKind(K.kind)?(Q(),T=a.getSignatureFromDeclaration(K),175===K.kind?(h.push(e.keywordPart(103)),h.push(e.spacePart())):174!==K.kind&&K.name&&Z(K.symbol),e.addRange(h,e.signatureToDisplayParts(a,T,s,32))):259===K.kind&&(Q(),h.push(e.keywordPart(152)),h.push(e.spacePart()),Z(K.symbol),ne(K.symbol,s)))}if(8&b&&(E="enum member",ee(o,"enum member"),299===(null==(K=null===(p=o.declarations)||void 0===p?void 0:p[0])?void 0:K.kind))){var I=a.getConstantValue(K);void 0!==I&&(h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),h.push(e.displayPart(e.getTextOfConstantValue(I),"number"==typeof I?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(X(),!x){var O=a.getAliasedSymbol(o);if(O!==o&&O.declarations&&O.declarations.length>0){var M=O.declarations[0],R=e.getNameOfDeclaration(M);if(R){var L=e.isModuleWithStringLiteralName(M)&&e.hasSyntacticModifier(M,2),B="default"!==o.name&&!L,U=t(a,O,e.getSourceFileOfNode(M),M,R,d,B?o:O);h.push.apply(h,U.displayParts),h.push(e.lineBreakPart()),m=U.documentation,g=U.tags}else m=O.getContextualDocumentationComment(M,a),g=O.getJsDocTags(a)}}if(o.declarations)switch(o.declarations[0].kind){case 264:h.push(e.keywordPart(93)),h.push(e.spacePart()),h.push(e.keywordPart(142));break;case 271:h.push(e.keywordPart(93)),h.push(e.spacePart()),h.push(e.keywordPart(o.declarations[0].isExportEquals?63:88));break;case 275:h.push(e.keywordPart(93));break;default:h.push(e.keywordPart(100))}h.push(e.spacePart()),Z(o),e.forEach(o.declarations,(t=>{if(265===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),h.push(e.keywordPart(146)),h.push(e.punctuationPart(20)),h.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),h.push(e.punctuationPart(21));else{var n=a.getSymbolAtLocation(r.moduleReference);n&&(h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),Z(n,c))}return!0}}))}if(!x)if(""!==E){if(_)if(D?(X(),h.push(e.keywordPart(108))):ee(o,E),"property"===E||"getter"===E||"setter"===E||"JSX attribute"===E||3&b||"local var"===E||D){if(h.push(e.punctuationPart(58)),h.push(e.spacePart()),_.symbol&&262144&_.symbol.flags){var j=e.mapToDisplayParts((t=>{var n=a.typeParameterToDeclaration(_,c,r);q().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)}));e.addRange(h,j)}else e.addRange(h,e.typeToDisplayParts(a,_,c));if(o.target&&o.target.tupleLabelDeclaration){var V=o.target.tupleLabelDeclaration;e.Debug.assertNode(V.name,e.isIdentifier),h.push(e.spacePart()),h.push(e.punctuationPart(20)),h.push(e.textPart(e.idText(V.name))),h.push(e.punctuationPart(21))}}else(16&b||8192&b||16384&b||131072&b||98304&b||"method"===E)&&(N=_.getNonNullableType().getCallSignatures()).length&&(re(N[0],N),S=N.length>1)}else E=n(a,o,l);if(0!==y.length||S||(y=o.getContextualDocumentationComment(c,a)),0===y.length&&4&b&&o.parent&&o.declarations&&e.forEach(o.parent.declarations,(e=>305===e.kind)))for(var z=0,H=o.declarations;z<H.length;z++)if((K=H[z]).parent&&221===K.parent.kind){var W=a.getSymbolAtLocation(K.parent.right);if(W&&(y=W.getDocumentationComment(a),v=W.getJsDocTags(a),y.length>0))break}if(0===y.length&&e.isIdentifier(l)&&o.valueDeclaration&&e.isBindingElement(o.valueDeclaration)){var K,J=(K=o.valueDeclaration).parent;if(e.isIdentifier(K.name)&&e.isObjectBindingPattern(J)){var G=e.getTextOfIdentifierOrLiteral(K.name),$=a.getTypeAtLocation(J);y=e.firstDefined($.isUnion()?$.types:[$],(e=>{var t=e.getProperty(G);return t?t.getDocumentationComment(a):void 0}))||e.emptyArray}}return 0!==v.length||S||(v=o.getContextualJsDocTags(c,a)),0===y.length&&m&&(y=m),0===v.length&&g&&(v=g),{displayParts:h,documentation:y,symbolKind:E,tags:0===v.length?void 0:v};function q(){return f||(f=e.createPrinter({removeComments:!0})),f}function X(){h.length&&h.push(e.lineBreakPart()),Y()}function Y(){u&&(te("alias"),h.push(e.spacePart()))}function Q(){h.push(e.spacePart()),h.push(e.keywordPart(101)),h.push(e.spacePart())}function Z(t,r){u&&t===o&&(t=u);var n=e.symbolToDisplayParts(a,t,r||s,void 0,7);e.addRange(h,n),16777216&o.flags&&h.push(e.punctuationPart(57))}function ee(t,r){X(),r&&(te(r),t&&!e.some(t.declarations,(t=>e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name))&&(h.push(e.spacePart()),Z(t)))}function te(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void h.push(e.textOrKeywordPart(t));default:return h.push(e.punctuationPart(20)),h.push(e.textOrKeywordPart(t)),void h.push(e.punctuationPart(21))}}function re(t,r,n){void 0===n&&(n=0),e.addRange(h,e.signatureToDisplayParts(a,t,c,32|n)),r.length>1&&(h.push(e.spacePart()),h.push(e.punctuationPart(20)),h.push(e.operatorPart(39)),h.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),h.push(e.spacePart()),h.push(e.textPart(2===r.length?"overload":"overloads")),h.push(e.punctuationPart(21))),y=t.getDocumentationComment(a),v=t.getJsDocTags(),r.length>1&&0===y.length&&0===v.length&&(y=r[0].getDocumentationComment(a),v=r[0].getJsDocTags())}function ne(t,n){var i=e.mapToDisplayParts((i=>{var o=a.symbolToTypeParameterDeclarations(t,n,r);q().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)}));e.addRange(h,i)}}})(e.SymbolDisplay||(e.SymbolDisplay={}))})(p),(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,l=e.transpileOptionValueCompilerOptions;c<l.length;c++){var d=l[c];a[d.name]=d.transpileOptionValue}a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0;var u,p,_=e.getNewLineCharacter(a),f={getSourceFile:t=>t===e.normalizePath(m)?g:void 0,writeFile(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(p,void 0,"Unexpected multiple source map outputs, file:",t),p=r):(e.Debug.assertEqual(u,void 0,"Unexpected multiple outputs, file:",t),u=r)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>_,fileExists:e=>e===m,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},m=r.fileName||(r.compilerOptions&&r.compilerOptions.jsx?"module.tsx":"module.ts"),g=e.createSourceFile(m,t,{languageVersion:e.getEmitScriptTarget(a),impliedNodeFormat:e.getImpliedNodeFormatForFile(e.toPath(m,"",f.getCanonicalFileName),void 0,f,a),setExternalModuleIndicator:e.getSetExternalModuleIndicator(a)});r.moduleName&&(g.moduleName=r.moduleName),r.renamedDependencies&&(g.renamedDependencies=new e.Map(e.getEntries(r.renamedDependencies)));var h=e.createProgram([m],a,f);return r.reportDiagnostics&&(e.addRange(i,h.getSyntacticDiagnostics(g)),e.addRange(i,h.getOptionsDiagnostics())),h.emit(void 0,void 0,void 0,void 0,r.transformers),void 0===u?e.Debug.fail("Output generation failed"):{outputText:u,diagnostics:i,sourceMapText:p}}var r;function n(t,n){r=r||e.filter(e.optionDeclarations,(t=>"object"==typeof t.type&&!e.forEachEntry(t.type,(e=>"number"!=typeof e)))),t=e.cloneCompilerOptions(t);for(var i=r=>{if(!e.hasProperty(t,r.name))return"continue";var i=t[r.name];e.isString(i)?t[r.name]=e.parseCustomTypeOption(r,i,n):e.forEachEntry(r.type,(e=>e===i))||n.push(e.createCompilerDiagnosticForInvalidCustomType(r))},a=0,o=r;a<o.length;a++)i(o[a]);return t}e.transpileModule=t,e.transpile=(r,n,i,a,o)=>{var s=t(r,{compilerOptions:n,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText},e.fixupCompilerOptions=n})(p),function(e){!function(t){var r;(r=t.FormattingRequestKind||(t.FormattingRequestKind={}))[r.FormatDocument=0]="FormatDocument",r[r.FormatSelection=1]="FormatSelection",r[r.FormatOnEnter=2]="FormatOnEnter",r[r.FormatOnSemicolon=3]="FormatOnSemicolon",r[r.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",r[r.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace";var n=function(){function t(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}return t.prototype.updateContext=function(t,r,n,i,a){this.currentTokenSpan=e.Debug.checkDefined(t),this.currentTokenParent=e.Debug.checkDefined(r),this.nextTokenSpan=e.Debug.checkDefined(n),this.nextTokenParent=e.Debug.checkDefined(i),this.contextNode=e.Debug.checkDefined(a),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},t.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},t.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},t.prototype.TokensAreOnSameLine=function(){if(void 0===this.tokensAreOnSameLine){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine},t.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},t.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},t.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},t.prototype.BlockIsOnOneLine=function(t){var r=e.findChildOfKind(t,18,this.sourceFile),n=e.findChildOfKind(t,19,this.sourceFile);return!(!r||!n)&&this.sourceFile.getLineAndCharacterOfPosition(r.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line},t}();t.FormattingContext=n}(e.formatting||(e.formatting={}))}(p),(e=>{var t,r,n,i;t=e.formatting||(e.formatting={}),n=e.createScanner(99,!1,0),i=e.createScanner(99,!1,1),(e=>{e[e.Scan=0]="Scan",e[e.RescanGreaterThanToken=1]="RescanGreaterThanToken",e[e.RescanSlashToken=2]="RescanSlashToken",e[e.RescanTemplateToken=3]="RescanTemplateToken",e[e.RescanJsxIdentifier=4]="RescanJsxIdentifier",e[e.RescanJsxText=5]="RescanJsxText",e[e.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"})(r||(r={})),t.getFormattingScanner=(r,a,o,s,c)=>{var l=1===a?i:n;l.setText(r),l.setTextPos(o);var d,u,p,_,f,m=!0,g=c({advance(){f=void 0,l.getStartPos()!==o?m=!!u&&4===e.last(u).kind:l.scan(),d=void 0,u=void 0;for(var t=l.getStartPos();t<s;){var r=l.getToken();if(!e.isTrivia(r))break;l.scan();var n={pos:t,end:l.getStartPos(),kind:r};t=l.getStartPos(),d=e.append(d,n)}p=l.getStartPos()},readTokenInfo(r){e.Debug.assert(h());var n,i=(e=>{switch(e.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1})(r)?1:13===r.kind?2:(e=>16===e.kind||17===e.kind)(r)?3:(t=>{if(t.parent)switch(t.parent.kind){case 285:case 280:case 281:case 279:return e.isKeyword(t.kind)||79===t.kind}return!1})(r)?4:(n=r,e.isJsxText(n)?5:(t=>t.parent&&e.isJsxAttribute(t.parent)&&t.parent.initializer===t)(r)?6:0);if(f&&i===_)return v(f,r);l.getStartPos()!==p&&(e.Debug.assert(void 0!==f),l.setTextPos(p),l.scan());var a=((t,r)=>{var n,i=l.getToken();switch(_=0,r){case 1:if(31===i){_=1;var a=l.reScanGreaterToken();return e.Debug.assert(t.kind===a),a}break;case 2:if(43===(n=i)||68===n)return _=2,a=l.reScanSlashToken(),e.Debug.assert(t.kind===a),a;break;case 3:if(19===i)return _=3,l.reScanTemplateToken(!1);break;case 4:return _=4,l.scanJsxIdentifier();case 5:return _=5,l.reScanJsxToken(!1);case 6:return _=6,l.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(r)}return i})(r,i),o=t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),a);for(u&&(u=void 0);l.getStartPos()<s&&(a=l.scan(),e.isTrivia(a));){var c=t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),a);if(u||(u=[]),u.push(c),4===a){l.scan();break}}return v(f={leadingTrivia:d,trailingTrivia:u,token:o},r)},readEOFTokenRange:()=>(e.Debug.assert(y()),t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),1)),isOnToken:h,isOnEOF:y,getCurrentLeadingTrivia:()=>d,lastTrailingTriviaWasNewLine:()=>m,skipToEndOf(e){l.setTextPos(e.end),p=l.getStartPos(),_=void 0,f=void 0,m=!1,d=void 0,u=void 0},skipToStartOf(e){l.setTextPos(e.pos),p=l.getStartPos(),_=void 0,f=void 0,m=!1,d=void 0,u=void 0},getStartPos(){var e;return null!==(e=null==f?void 0:f.token.pos)&&void 0!==e?e:l.getTokenPos()}});return f=void 0,l.setText(void 0),g;function h(){var t=f?f.token.kind:l.getToken();return 1!==t&&!e.isTrivia(t)}function y(){return 1===(f?f.token.kind:l.getToken())}function v(t,r){return e.isToken(r)&&t.token.kind!==r.kind&&(t.token.kind=r.kind),t}}})(p),(e=>{var t,r,n;(t=e.formatting||(e.formatting={})).anyContext=e.emptyArray,(n=t.RuleAction||(t.RuleAction={}))[n.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",n[n.StopProcessingTokenActions=2]="StopProcessingTokenActions",n[n.InsertSpace=4]="InsertSpace",n[n.InsertNewLine=8]="InsertNewLine",n[n.DeleteSpace=16]="DeleteSpace",n[n.DeleteToken=32]="DeleteToken",n[n.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",n[n.StopAction=3]="StopAction",n[n.ModifySpaceAction=28]="ModifySpaceAction",n[n.ModifyTokenAction=96]="ModifyTokenAction",(r=t.RuleFlags||(t.RuleFlags={}))[r.None=0]="None",r[r.CanDeleteNewLines=1]="CanDeleteNewLines"})(p),(e=>{!(t=>{function r(e,t,r,n,a,o){return void 0===o&&(o=0),{leftTokenRange:i(t),rightTokenRange:i(r),rule:{debugName:e,context:n,action:a,flags:o}}}function n(e){return{tokens:e,isSpecific:!0}}function i(t){return"number"==typeof t?n([t]):e.isArray(t)?n(t):t}function a(t,r,i){void 0===i&&(i=[]);for(var a=[],o=t;o<=r;o++)e.contains(i,o)||a.push(o);return n(a)}function o(e,t){return r=>r.options&&r.options[e]===t}function s(e){return t=>t.options&&t.options.hasOwnProperty(e)&&!!t.options[e]}function c(e){return t=>t.options&&t.options.hasOwnProperty(e)&&!t.options[e]}function l(e){return t=>!t.options||!t.options.hasOwnProperty(e)||!t.options[e]}function d(e){return t=>!t.options||!t.options.hasOwnProperty(e)||!t.options[e]||t.TokensAreOnSameLine()}function u(e){return t=>!t.options||!t.options.hasOwnProperty(e)||!!t.options[e]}function p(e){return 242===e.contextNode.kind}function _(e){return!p(e)}function m(e){switch(e.contextNode.kind){case 221:return 27!==e.contextNode.operatorToken.kind;case 222:case 189:case 229:case 275:case 270:case 177:case 187:case 188:return!0;case 203:case 259:case 265:case 271:case 254:case 164:case 299:case 167:case 166:return 63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 243:case 163:return 101===e.currentTokenSpan.kind||101===e.nextTokenSpan.kind||63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 244:return 160===e.currentTokenSpan.kind||160===e.nextTokenSpan.kind}return!1}function g(e){return!m(e)}function h(e){return!y(e)}function y(t){var r=t.contextNode.kind;return 167===r||166===r||164===r||254===r||e.isFunctionLikeKind(r)}function v(e){return 222===e.contextNode.kind||189===e.contextNode.kind}function b(e){return e.TokensAreOnSameLine()||T(e)}function E(e){return 201===e.contextNode.kind||195===e.contextNode.kind||(e=>S(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine()))(e)}function x(e){return T(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function D(e){return S(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function S(e){return C(e.contextNode)}function T(e){return C(e.nextTokenParent)}function C(e){if(F(e))return!0;switch(e.kind){case 235:case 263:case 205:case 262:return!0}return!1}function A(e){switch(e.contextNode.kind){case 256:case 169:case 168:case 172:case 173:case 174:case 213:case 171:case 214:case 258:return!0}return!1}function k(e){return!A(e)}function N(e){return 256===e.contextNode.kind||213===e.contextNode.kind}function w(e){return F(e.contextNode)}function F(e){switch(e.kind){case 257:case 226:case 258:case 260:case 182:case 261:case 272:case 273:case 266:case 269:return!0}return!1}function P(e){switch(e.currentTokenParent.kind){case 257:case 261:case 260:case 292:case 262:case 249:return!0;case 235:var t=e.currentTokenParent.parent;if(!t||214!==t.kind&&213!==t.kind)return!0}return!1}function I(e){switch(e.contextNode.kind){case 239:case 249:case 242:case 243:case 244:case 241:case 252:case 240:case 248:case 292:return!0;default:return!1}}function O(e){return 205===e.contextNode.kind}function M(e){return(e=>208===e.contextNode.kind)(e)||(e=>209===e.contextNode.kind)(e)}function R(e){return 27!==e.currentTokenSpan.kind}function L(e){return 23!==e.nextTokenSpan.kind}function B(e){return 21!==e.nextTokenSpan.kind}function U(e){return 214===e.contextNode.kind}function j(e){return 200===e.contextNode.kind}function V(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function z(e){return 11!==e.contextNode.kind}function H(e){return 278!==e.contextNode.kind&&282!==e.contextNode.kind}function W(e){return 288===e.contextNode.kind||287===e.contextNode.kind}function K(e){return 285===e.nextTokenParent.kind}function J(e){return 285===e.contextNode.kind}function G(e){return 279===e.contextNode.kind}function $(e){return!A(e)&&!T(e)}function q(t){return t.TokensAreOnSameLine()&&e.hasDecorators(t.contextNode)&&X(t.currentTokenParent)&&!X(t.nextTokenParent)}function X(t){for(;e.isExpressionNode(t);)t=t.parent;return 165===t.kind}function Y(e){return 255===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Q(e){return 2!==e.formattingRequestKind}function Z(e){return 261===e.contextNode.kind}function ee(e){return 182===e.contextNode.kind}function te(e){return 175===e.contextNode.kind}function re(e,t){if(29!==e.kind&&31!==e.kind)return!1;switch(t.kind){case 178:case 211:case 259:case 257:case 226:case 258:case 256:case 213:case 214:case 169:case 168:case 174:case 175:case 208:case 209:case 228:return!0;default:return!1}}function ne(e){return re(e.currentTokenSpan,e.currentTokenParent)||re(e.nextTokenSpan,e.nextTokenParent)}function ie(e){return 211===e.contextNode.kind}function ae(e){return 114===e.currentTokenSpan.kind&&217===e.currentTokenParent.kind}function oe(e){return 224===e.contextNode.kind&&void 0!==e.contextNode.expression}function se(e){return 230===e.contextNode.kind}function ce(e){return!(e=>{switch(e.contextNode.kind){case 239:case 242:case 243:case 244:case 240:case 241:return!0;default:return!1}})(e)}function le(t){var r=t.nextTokenSpan.kind,n=t.nextTokenSpan.pos;if(e.isTrivia(r)){var i=t.nextTokenParent===t.currentTokenParent?e.findNextToken(t.currentTokenParent,e.findAncestor(t.currentTokenParent,(e=>!e.parent)),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!i)return!0;r=i.kind,n=i.getStart(t.sourceFile)}return t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line===t.sourceFile.getLineAndCharacterOfPosition(n).line?19===r||1===r:234!==r&&26!==r&&(258===t.contextNode.kind||259===t.contextNode.kind?!e.isPropertySignature(t.currentTokenParent)||!!t.currentTokenParent.type||20!==r:e.isPropertyDeclaration(t.currentTokenParent)?!t.currentTokenParent.initializer:242!==t.currentTokenParent.kind&&236!==t.currentTokenParent.kind&&234!==t.currentTokenParent.kind&&22!==r&&20!==r&&39!==r&&40!==r&&43!==r&&13!==r&&27!==r&&223!==r&&15!==r&&14!==r&&24!==r)}function de(t){return e.positionIsASICandidate(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}t.getAllRules=()=>{for(var i=[],S=0;S<=160;S++)1!==S&&i.push(S);function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:i.filter((t=>!e.some((e=>e===t)))),isSpecific:!1}}var F={tokens:i,isSpecific:!1},X=n(f(f([],i,!0),[3],!1)),re=n(f(f([],i,!0),[1],!1)),ue=a(81,160),pe=a(29,78),_e=[101,102,160,127,139],fe=f([79],e.typeKeywords,!0),me=X,ge=n([79,3,84,93,100]),he=n([21,3,90,111,96,91]),ye=[r("IgnoreBeforeComment",F,[2,3],t.anyContext,1),r("IgnoreAfterLineComment",2,F,t.anyContext,1),r("NotSpaceBeforeColon",F,58,[V,g,h],16),r("SpaceAfterColon",58,F,[V,g],4),r("NoSpaceBeforeQuestionMark",F,57,[V,g,h],16),r("SpaceAfterQuestionMarkInConditionalOperator",57,F,[V,v],4),r("NoSpaceAfterQuestionMark",57,F,[V],16),r("NoSpaceBeforeDot",F,[24,28],[V],16),r("NoSpaceAfterDot",[24,28],F,[V],16),r("NoSpaceBetweenImportParenInImportType",100,20,[V,j],16),r("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,79,20,22,18,108,103],[V,g],16),r("NoSpaceAfterUnaryPreincrementOperator",45,[79,20,108,103],[V],16),r("NoSpaceAfterUnaryPredecrementOperator",46,[79,20,108,103],[V],16),r("NoSpaceBeforeUnaryPostincrementOperator",[79,21,23,103],45,[V,ce],16),r("NoSpaceBeforeUnaryPostdecrementOperator",[79,21,23,103],46,[V,ce],16),r("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[V,m],4),r("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[V,m],4),r("SpaceAfterAddWhenFollowedByPreincrement",39,45,[V,m],4),r("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[V,m],4),r("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[V,m],4),r("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[V,m],4),r("NoSpaceAfterCloseBrace",19,[27,26],[V],16),r("NewLineBeforeCloseBraceInBlockContext",X,19,[D],8),r("SpaceAfterCloseBrace",19,C(21),[V,P],4),r("SpaceBetweenCloseBraceAndElse",19,91,[V],4),r("SpaceBetweenCloseBraceAndWhile",19,115,[V],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[V,O],16),r("SpaceAfterConditionalClosingParen",21,22,[I],4),r("NoSpaceBetweenFunctionKeywordAndStar",98,41,[N],16),r("SpaceAfterStarInGeneratorDeclaration",41,79,[N],4),r("SpaceAfterFunctionInFuncDecl",98,F,[A],4),r("NewLineAfterOpenBraceInBlockContext",18,F,[D],8),r("SpaceAfterGetSetInMember",[136,149],79,[A],4),r("NoSpaceBetweenYieldKeywordAndStar",125,41,[V,oe],16),r("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],F,[V,oe],4),r("NoSpaceBetweenReturnAndSemicolon",105,26,[V],16),r("SpaceAfterCertainKeywords",[113,109,103,89,105,112,132],F,[V],4),r("SpaceAfterLetConstInVariableDeclaration",[119,85],F,[V,Y],4),r("NoSpaceBeforeOpenParenInFuncCall",F,20,[V,M,R],16),r("SpaceBeforeBinaryKeywordOperator",F,_e,[V,m],4),r("SpaceAfterBinaryKeywordOperator",_e,F,[V,m],4),r("SpaceAfterVoidOperator",114,F,[V,ae],4),r("SpaceBetweenAsyncAndOpenParen",131,20,[U,V],4),r("SpaceBetweenAsyncAndFunctionKeyword",131,[98,79],[V],4),r("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[V],16),r("SpaceBeforeJsxAttribute",F,79,[K,V],4),r("SpaceBeforeSlashInJsxOpeningElement",F,43,[G,V],4),r("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[G,V],16),r("NoSpaceBeforeEqualInJsxAttribute",F,63,[J,V],16),r("NoSpaceAfterEqualInJsxAttribute",63,F,[J,V],16),r("NoSpaceAfterModuleImport",[141,146],20,[V],16),r("SpaceAfterCertainTypeScriptKeywords",[126,84,135,88,92,93,94,136,117,100,118,141,142,121,123,122,145,149,124,152,156,140,137],F,[V],4),r("SpaceBeforeCertainTypeScriptKeywords",F,[94,117,156],[V],4),r("SpaceAfterModuleName",10,18,[Z],4),r("SpaceBeforeArrow",F,38,[V],4),r("SpaceAfterArrow",38,F,[V],4),r("NoSpaceAfterEllipsis",25,79,[V],16),r("NoSpaceAfterOptionalParameters",57,[21,27],[V,g],16),r("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[V,ee],16),r("NoSpaceBeforeOpenAngularBracket",fe,29,[V,ne],16),r("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[V,ne],16),r("NoSpaceAfterOpenAngularBracket",29,F,[V,ne],16),r("NoSpaceBeforeCloseAngularBracket",F,31,[V,ne],16),r("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[V,ne,k],16),r("SpaceBeforeAt",[21,79],59,[V],4),r("NoSpaceAfterAt",59,F,[V],16),r("SpaceAfterDecorator",F,[126,79,93,88,84,124,123,121,122,136,149,22,41],[q],4),r("NoSpaceBeforeNonNullAssertionOperator",F,53,[V,se],16),r("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[V,te],16),r("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[V],4)],ve=[r("SpaceAfterConstructor",134,20,[s("insertSpaceAfterConstructor"),V],4),r("NoSpaceAfterConstructor",134,20,[l("insertSpaceAfterConstructor"),V],16),r("SpaceAfterComma",27,F,[s("insertSpaceAfterCommaDelimiter"),V,H,L,B],4),r("NoSpaceAfterComma",27,F,[l("insertSpaceAfterCommaDelimiter"),V,H],16),r("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[s("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),A],4),r("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[l("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),A],16),r("SpaceAfterKeywordInControl",ue,20,[s("insertSpaceAfterKeywordsInControlFlowStatements"),I],4),r("NoSpaceAfterKeywordInControl",ue,20,[l("insertSpaceAfterKeywordsInControlFlowStatements"),I],16),r("SpaceAfterOpenParen",20,F,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),r("SpaceBeforeCloseParen",F,21,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),r("SpaceBetweenOpenParens",20,20,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),r("NoSpaceBetweenParens",20,21,[V],16),r("NoSpaceAfterOpenParen",20,F,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],16),r("NoSpaceBeforeCloseParen",F,21,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],16),r("SpaceAfterOpenBracket",22,F,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],4),r("SpaceBeforeCloseBracket",F,23,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],4),r("NoSpaceBetweenBrackets",22,23,[V],16),r("NoSpaceAfterOpenBracket",22,F,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],16),r("NoSpaceBeforeCloseBracket",F,23,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],16),r("SpaceAfterOpenBrace",18,F,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),E],4),r("SpaceBeforeCloseBrace",F,19,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),E],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[V,O],16),r("NoSpaceAfterOpenBrace",18,F,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),V],16),r("NoSpaceBeforeCloseBrace",F,19,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),V],16),r("SpaceBetweenEmptyBraceBrackets",18,19,[s("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[c("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),V],16),r("SpaceAfterTemplateHeadAndMiddle",[15,16],F,[s("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),z],4,1),r("SpaceBeforeTemplateMiddleAndTail",F,[16,17],[s("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],4),r("NoSpaceAfterTemplateHeadAndMiddle",[15,16],F,[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),z],16,1),r("NoSpaceBeforeTemplateMiddleAndTail",F,[16,17],[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],16),r("SpaceAfterOpenBraceInJsxExpression",18,F,[s("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,W],4),r("SpaceBeforeCloseBraceInJsxExpression",F,19,[s("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,W],4),r("NoSpaceAfterOpenBraceInJsxExpression",18,F,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,W],16),r("NoSpaceBeforeCloseBraceInJsxExpression",F,19,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,W],16),r("SpaceAfterSemicolonInFor",26,F,[s("insertSpaceAfterSemicolonInForStatements"),V,p],4),r("NoSpaceAfterSemicolonInFor",26,F,[l("insertSpaceAfterSemicolonInForStatements"),V,p],16),r("SpaceBeforeBinaryOperator",F,pe,[s("insertSpaceBeforeAndAfterBinaryOperators"),V,m],4),r("SpaceAfterBinaryOperator",pe,F,[s("insertSpaceBeforeAndAfterBinaryOperators"),V,m],4),r("NoSpaceBeforeBinaryOperator",F,pe,[l("insertSpaceBeforeAndAfterBinaryOperators"),V,m],16),r("NoSpaceAfterBinaryOperator",pe,F,[l("insertSpaceBeforeAndAfterBinaryOperators"),V,m],16),r("SpaceBeforeOpenParenInFuncDecl",F,20,[s("insertSpaceBeforeFunctionParenthesis"),V,A],4),r("NoSpaceBeforeOpenParenInFuncDecl",F,20,[l("insertSpaceBeforeFunctionParenthesis"),V,A],16),r("NewLineBeforeOpenBraceInControl",he,18,[s("placeOpenBraceOnNewLineForControlBlocks"),I,x],8,1),r("NewLineBeforeOpenBraceInFunction",me,18,[s("placeOpenBraceOnNewLineForFunctions"),A,x],8,1),r("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",ge,18,[s("placeOpenBraceOnNewLineForFunctions"),w,x],8,1),r("SpaceAfterTypeAssertion",31,F,[s("insertSpaceAfterTypeAssertion"),V,ie],4),r("NoSpaceAfterTypeAssertion",31,F,[l("insertSpaceAfterTypeAssertion"),V,ie],16),r("SpaceBeforeTypeAnnotation",F,[57,58],[s("insertSpaceBeforeTypeAnnotation"),V,y],4),r("NoSpaceBeforeTypeAnnotation",F,[57,58],[l("insertSpaceBeforeTypeAnnotation"),V,y],16),r("NoOptionalSemicolon",26,re,[o("semicolons",e.SemicolonPreference.Remove),le],32),r("OptionalSemicolon",F,re,[o("semicolons",e.SemicolonPreference.Insert),de],64)],be=[r("NoSpaceBeforeSemicolon",F,26,[V],16),r("SpaceBeforeOpenBraceInControl",he,18,[d("placeOpenBraceOnNewLineForControlBlocks"),I,Q,b],4,1),r("SpaceBeforeOpenBraceInFunction",me,18,[d("placeOpenBraceOnNewLineForFunctions"),A,T,Q,b],4,1),r("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",ge,18,[d("placeOpenBraceOnNewLineForFunctions"),w,Q,b],4,1),r("NoSpaceBeforeComma",F,27,[V],16),r("NoSpaceBeforeOpenBracket",C(131,82),22,[V],16),r("NoSpaceAfterCloseBracket",23,F,[V,$],16),r("SpaceAfterSemicolon",26,F,[V],4),r("SpaceBetweenForAndAwaitKeyword",97,132,[V],4),r("SpaceBetweenStatements",[21,90,91,82],F,[V,H,_],4),r("SpaceAfterTryCatchFinally",[111,83,96],18,[V],4)];return f(f(f([],ye,!0),ve,!0),be,!0)}})(e.formatting||(e.formatting={}))})(p),(e=>{!(t=>{var r;function n(e){var t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function i(t,r){return e.Debug.assert(t<=160&&r<=160,"Must compute formatting context from tokens"),t*o+r}t.getFormatContext=(a,c)=>{return{options:a,getRules:(void 0===r&&(l=t.getAllRules(),d=(e=>{for(var t=new Array(o*o),r=new Array(t.length),n=0,a=e;n<a.length;n++)for(var c=a[n],l=c.leftTokenRange.isSpecific&&c.rightTokenRange.isSpecific,d=0,u=c.leftTokenRange.tokens;d<u.length;d++)for(var p=u[d],_=0,f=c.rightTokenRange.tokens;_<f.length;_++){var m=i(p,f[_]),g=t[m];void 0===g&&(g=t[m]=[]),s(g,c.rule,l,r,m)}return t})(l),r=t=>{var r=d[i(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];if(r){for(var a=[],o=0,s=0,c=r;s<c.length;s++){var l=c[s],u=~n(o);l.action&u&&e.every(l.context,(e=>e(t)))&&(a.push(l),o|=l.action)}if(a.length)return a}}),r),host:c};var l,d};var a,o=161;function s(r,n,i,o,s){var c,l,d,u=3&n.action?i?a.StopRulesSpecific:a.StopRulesAny:n.context!==t.anyContext?i?a.ContextRulesSpecific:a.ContextRulesAny:i?a.NoContextRulesSpecific:a.NoContextRulesAny,p=o[s]||0;r.splice(((e,t)=>{for(var r=0,n=0;n<=t;n+=5)r+=31&e,e>>=5;return r})(p,u),0,n),o[s]=(d=1+((c=p)>>(l=u)&31),e.Debug.assert((31&d)===d,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),c&~(31<<l)|d<<l)}!(e=>{e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=5]="StopRulesAny",e[e.ContextRulesSpecific=10]="ContextRulesSpecific",e[e.ContextRulesAny=15]="ContextRulesAny",e[e.NoContextRulesSpecific=20]="NoContextRulesSpecific",e[e.NoContextRulesAny=25]="NoContextRulesAny"})(a||(a={}))})(e.formatting||(e.formatting={}))})(p),(e=>{!(t=>{var r,n,i,a,o;function s(t,r,n){var i=e.findPrecedingToken(t,n);return i&&i.kind===r&&t===i.getEnd()?i:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!l(t.parent,t);)t=t.parent;return t}function l(t,r){switch(t.kind){case 257:case 258:return e.rangeContainsRange(t.members,r);case 261:var n=t.body;return!!n&&262===n.kind&&e.rangeContainsRange(n.statements,r);case 305:case 235:case 262:return e.rangeContainsRange(t.statements,r);case 292:return e.rangeContainsRange(t.block.statements,r)}return!1}function d(t,r,n,i){return t?u({pos:e.getLineStartPositionForPosition(t.getStart(r),r),end:t.end},r,n,i):[]}function u(r,n,i,a){var o=((t,r)=>function n(i){var a=e.forEachChild(i,(n=>e.startEndContainsRange(n.getStart(r),n.end,t)&&n));if(a){var o=n(a);if(o)return o}return i}(r))(r,n);return t.getFormattingScanner(n.text,n.languageVariant,((t,r,n)=>{var i=t.getStart(n);if(i===r.pos&&t.end===r.end)return i;var a=e.findPrecedingToken(r.pos,n);return a?a.end>=r.pos?t.pos:a.end:t.pos})(o,r,n),r.end,(s=>p(r,o,t.SmartIndenter.getIndentationForNode(o,r,n,i.options),((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,((t,r)=>{if(!t.length)return a;var n=t.filter((t=>e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length))).sort(((e,t)=>e.start-t.start));if(!n.length)return a;var i=0;return 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 p(r,n,i,a,o,s,c,l,d){var u,p,f,m,g,h,y=s.options,v=s.getRules,b=s.host,E=new t.FormattingContext(d,c,y),x=-1,D=[];if(o.advance(),o.isOnToken()){var S=d.getLineAndCharacterOfPosition(n.getStart(d)).line,T=S;e.hasDecorators(n)&&(T=d.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,d)).line),function n(i,a,s,c,u,_){if(e.rangeOverlapsWithStartEnd(r,i.getStart(d),i.getEnd())){var m=w(i,s,u,_),g=a;for(e.forEachChild(i,(e=>{b(e,-1,i,m,s,c,!1)}),(n=>{!((n,a,s,c)=>{e.Debug.assert(e.isNodeArray(n)),e.Debug.assert(!e.nodeIsSynthesized(n));var l=((e,t)=>{switch(e.kind){case 171:case 256:case 213:case 169:case 168:case 214:case 174:case 175:case 179:case 180:case 172:case 173:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 208:case 209:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 257:case 226:case 258:case 259:if(e.typeParameters===t)return 29;break;case 178:case 210:case 181:case 228:case 200:if(e.typeArguments===t)return 29;break;case 182:return 18}return 0})(a,n),u=c,p=s;if(e.rangeOverlapsWithStartEnd(r,n.pos,n.end)){if(0!==l)for(;o.isOnToken()&&o.getStartPos()<r.end&&!((h=o.readTokenInfo(a)).token.end>n.pos);)if(h.token.kind===l){p=d.getLineAndCharacterOfPosition(h.token.pos).line,E(h,a,c,a);var _=void 0;if(-1!==x)_=x;else{var f=e.getLineStartPositionForPosition(h.token.pos,d);_=t.SmartIndenter.findFirstNonWhitespaceColumn(f,h.token.pos,d,y)}u=w(a,s,_,y.indentSize)}else E(h,a,c,a);for(var m=-1,g=0;g<n.length;g++)m=b(n[g],m,i,u,p,p,!0,0===g);var h,v=(e=>{switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0})(l);0!==v&&o.isOnToken()&&o.getStartPos()<r.end&&(27===(h=o.readTokenInfo(a)).token.kind&&(E(h,a,u,a),h=o.isOnToken()?o.readTokenInfo(a):void 0),h&&h.token.kind===v&&e.rangeContainsRange(a,h.token)&&E(h,a,u,a,!0))}else n.end<r.pos&&o.skipToEndOf(n)})(n,i,s,m)}));o.isOnToken()&&o.getStartPos()<r.end;){var v=o.readTokenInfo(i);if(v.token.end>Math.min(i.end,r.end))break;E(v,i,m,i)}}function b(a,s,c,l,u,p,_,f){if(e.Debug.assert(!e.nodeIsSynthesized(a)),e.nodeIsMissing(a))return s;var m=a.getStart(d),v=d.getLineAndCharacterOfPosition(m).line,b=v;e.hasDecorators(a)&&(b=d.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,d)).line);var D=-1;if(_&&e.rangeContainsRange(r,c)&&-1!==(D=((r,n,i,a,o)=>{if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=d.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,d),l=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,d,y);if(s!==i||r===l){var u=t.SmartIndenter.getBaseIndentation(y);return u>l?u:l}}return-1})(m,a.end,u,r,s))&&(s=D),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.end<r.pos&&o.skipToEndOf(a),s;if(0===a.getFullWidth())return s;for(;o.isOnToken()&&o.getStartPos()<r.end;){if((S=o.readTokenInfo(i)).token.end>r.end)return s;if(S.token.end>m){S.token.pos>m&&o.skipToStartOf(a);break}E(S,i,l,i)}if(!o.isOnToken()||o.getStartPos()>=r.end)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,l,a),s}var T=165===a.kind?v:p,C=((e,r,n,i,a,o)=>{var s=t.SmartIndenter.shouldIndentChildNode(y,e)?y.indentSize:0;return o===r?{indentation:r===h?x:a.getIndentation(),delta:Math.min(y.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===h?{indentation:x,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,d)||t.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,r,d)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,d)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}})(a,v,D,i,l,T);return n(a,g,v,b,C.indentation,C.delta),g=i,f&&204===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(),u=!1;t.leadingTrivia&&P(t.leadingTrivia,n,g,i);var _=0,m=e.rangeContainsRange(r,t.token),y=d.getLineAndCharacterOfPosition(t.token.pos);if(m){var v=l(t.token),b=f;if(_=I(t.token,y,n,g,i),!v)if(0===_){var E=b&&d.getLineAndCharacterOfPosition(b.end).line;u=c&&y.line!==E}else u=1===_}if(t.trailingTrivia&&(p=e.last(t.trailingTrivia).end,P(t.trailingTrivia,n,g,i)),u){var D=m&&!l(t.token)?i.getIndentationForToken(y.line,t.token.kind,a,!!s):-1,S=!0;if(t.leadingTrivia){var T=i.getIndentationForComment(t.token.kind,D,a);S=F(t.leadingTrivia,T,S,(e=>M(e.pos,T,!1)))}-1!==D&&S&&(M(t.token.pos,D,1===_),h=y.line,x=D)}o.advance(),g=n}}(n,n,S,T,i,a)}if(!o.isOnToken()){var C=t.SmartIndenter.nodeWillIndentChild(y,n,void 0,d,!1)?i+y.indentSize:i,A=o.getCurrentLeadingTrivia();A&&(F(A,C,!1,(e=>I(e,d.getLineAndCharacterOfPosition(e.pos),n,n,void 0))),!1!==y.trimTrailingWhitespace&&(t=>{for(var n=f?f.end:r.pos,i=0,a=t;i<a.length;i++){var o=a[i];e.isComment(o.kind)&&(n<o.pos&&U(n,o.pos-1,f),n=o.end+1)}n<r.end&&U(n,r.end,f)})(A))}if(f&&o.getStartPos()>=r.end){var k=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(n).token:void 0;if(k&&k.pos===p){var N=(null===(u=e.findPrecedingToken(k.end,d,n))||void 0===u?void 0:u.parent)||m;O(k,d.getLineAndCharacterOfPosition(k.pos).line,N,f,g,m,N,void 0)}}return D;function w(r,n,i,a){return{getIndentationForComment(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:(t,a,s,c)=>!c&&((t,i,a)=>{switch(i){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(a.kind){case 280:case 281:case 279:return!1}break;case 22:case 23:if(195!==a.kind)return!1}return n!==t&&!(e.hasDecorators(r)&&i===(t=>{if(e.canHaveModifiers(t)){var r=e.find(t.modifiers,e.isModifier,e.findIndex(t.modifiers,e.isDecorator));if(r)return r.kind}switch(t.kind){case 257:return 84;case 258:return 118;case 256:return 98;case 260:return 260;case 172:return 136;case 173:return 149;case 169:if(t.asteriskToken)return 41;case 167:case 164:var n=e.getNameOfDeclaration(t);if(n)return n.kind}})(r))})(t,a,s)?i+o(s):i,getIndentation:()=>i,getDelta:o,recomputeIndentation(e,n){t.SmartIndenter.shouldIndentChildNode(y,n,r,d)&&(i+=e?y.indentSize:-y.indentSize,a=t.SmartIndenter.shouldIndentChildNode(y,r)?y.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(y,r,e,d,!0)?a:0}}function F(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o],l=e.rangeContainsRange(r,c);switch(c.kind){case 3:l&&R(c,n,!i),i=!1;break;case 2:i&&l&&a(c),i=!1;break;case 4:i=!0}}return i}function P(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o];e.isComment(c.kind)&&e.rangeContainsRange(r,c)&&I(c,d.getLineAndCharacterOfPosition(c.pos),n,i,a)}}function I(e,t,n,i,a){var o=0;return l(e)||(f?o=O(e,t.line,n,f,g,m,i,a):L(d.getLineAndCharacterOfPosition(r.pos).line,t.line)),f=e,p=e.end,m=n,g=t.line,o}function O(t,r,n,i,a,o,s,c){E.updateContext(i,o,t,n,s);var l=v(E),u=!1!==E.options.trimTrailingWhitespace,p=0;return l?e.forEachRight(l,(o=>{if(p=((t,r,n,i,a)=>{var o,s=a!==n;switch(t.action){case 1:return 0;case 16:if(r.end!==i.pos)return j(r.end,i.pos-r.end),s?2:0;break;case 32:j(r.pos,r.end-r.pos);break;case 8:if(1!==t.flags&&n!==a)return 0;if(1!=a-n)return V(r.end,i.pos-r.end,e.getNewLineOrDefaultFromHost(b,y)),s?0:1;break;case 4:if(1!==t.flags&&n!==a)return 0;if(1!=i.pos-r.end||32!==d.text.charCodeAt(r.end))return V(r.end,i.pos-r.end," "),s?2:0;break;case 64:o=r.end,D.push(e.createTextChangeFromStartLength(o,0,";"))}return 0})(o,i,a,t,r),c)switch(p){case 2:n.getStart(d)===t.pos&&c.recomputeIndentation(!1,s);break;case 1:n.getStart(d)===t.pos&&c.recomputeIndentation(!0,s);break;default:e.Debug.assert(0===p)}u=u&&!(16&o.action)&&1!==o.flags})):u=u&&1!==t.kind,r!==a&&u&&L(a,r,i),p}function M(t,r,n){var i=_(r,y);if(n)V(t,0,i);else{var a=d.getLineAndCharacterOfPosition(t),o=e.getStartPositionOfLine(a.line,d);(r!==((e,t)=>{for(var r=0,n=0;n<t;n++)9===d.text.charCodeAt(e+n)?r+=y.tabSize-r%y.tabSize:r++;return r})(o,a.character)||((e,t)=>e!==d.text.substr(t,e.length))(i,o))&&V(o,a.character,i)}}function R(r,n,i,a){void 0===a&&(a=!0);var o=d.getLineAndCharacterOfPosition(r.pos).line,s=d.getLineAndCharacterOfPosition(r.end).line;if(o!==s){for(var c=[],l=r.pos,u=o;u<s;u++){var p=e.getEndLinePosition(u,d);c.push({pos:l,end:p}),l=e.getStartPositionOfLine(u+1,d)}if(a&&c.push({pos:l,end:r.end}),0!==c.length){var f=e.getStartPositionOfLine(o,d),m=t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(f,c[0].pos,d,y),g=0;i&&(g=1,o++);for(var h=n-m.column,v=g;v<c.length;v++,o++){var b=e.getStartPositionOfLine(o,d),E=0===v?m:t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(c[v].pos,c[v].end,d,y),x=E.column+h;if(x>0){var D=_(x,y);V(b,E.character,D)}else j(b,E.character)}}}else i||M(r.pos,n,!1)}function L(t,r,n){for(var i=t;i<r;i++){var a=e.getStartPositionOfLine(i,d),o=e.getEndLinePosition(i,d);if(!(n&&(e.isComment(n.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(n.kind))&&n.pos<=o&&n.end>o)){var s=B(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(d.text.charCodeAt(s-1))),j(s,o+1-s))}}}function B(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(d.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function U(e,t,r){L(d.getLineAndCharacterOfPosition(e).line,d.getLineAndCharacterOfPosition(t).line+1,r)}function j(t,r){r&&D.push(e.createTextChangeFromStartLength(t,r,""))}function V(t,r,n){(r||n)&&D.push(e.createTextChangeFromStartLength(t,r,n))}}function _(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 l=Math.floor(t/r.tabSize),d=t-l*r.tabSize,u=void 0;return a||(a=[]),void 0===a[l]?a[l]=u=e.repeatString("\t",l):u=a[l],d?u+e.repeatString(" ",d):u}t.createTextRangeWithKind=(t,r,n)=>{var i={pos:t,end:r,kind:n};return e.Debug.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>e.Debug.formatSyntaxKind(n)}),i},(e=>{e[e.Unknown=-1]="Unknown"})(r||(r={})),t.formatOnEnter=(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--,u({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=(e,t,r)=>d(c(s(e,26,t)),t,r,3),t.formatOnOpeningCurly=(t,r,n)=>{var i=s(t,18,r);if(!i)return[];var a=c(i.parent);return u({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=(e,t,r)=>d(c(s(e,19,t)),t,r,5),t.formatDocument=(e,t)=>u({pos:0,end:e.text.length},e,t,0),t.formatSelection=(t,r,n,i)=>u({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1),t.formatNodeGivenIndentation=(e,r,n,i,a,o)=>{var s={pos:e.pos,end:e.end};return t.getFormattingScanner(r.text,n,s.pos,s.end,(t=>p(s,e,i,a,t,o,1,(e=>!1),r)))},(e=>{e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"})(n||(n={})),t.getRangeOfEnclosingComment=(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&&r<i.getEnd())){var o=(n=null===n?void 0:void 0===n?e.findPrecedingToken(r,t):n)&&e.getTrailingCommentRanges(t.text,n.end),s=e.getLeadingCommentRangesOfNode(i,t),c=e.concatenate(o,s);return c&&e.find(c,(n=>e.rangeContainsPositionExclusive(n,r)||r===n.end&&(2===n.kind||r===t.getFullWidth())))}},t.getIndentationString=_})(e.formatting||(e.formatting={}))})(p),(e=>{var t;(r=>{var n,i;function a(e){return e.baseIndentSize||0}function o(e,t,r,n,i,o,l){for(var f,m=e.parent;m;){var h=!0;if(r){var y=e.getStart(i);h=y<r.pos||y>r.end}var v=s(m,e,i),b=v.line===t.line||p(m,e,t.line,i);if(h){var E=null===(f=_(e,i))||void 0===f?void 0:f[0],D=g(e,i,l,!!E&&d(E,i).line>v.line);if(-1!==D)return D+n;if(-1!==(D=c(e,m,t,b,i,l)))return D+n}x(l,m,e,i,o)&&!b&&(n+=l.indentSize);var S=u(m,e,t.line,i);m=(e=m).parent,t=S?i.getLineAndCharacterOfPosition(e.getStart(i)):v}return n+a(l)}function s(e,t,r){var n=_(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)||305!==r.kind&&i?-1:y(n,a,o)}function l(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===d(a,i).line?2:0:0}function d(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function u(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 p(t,r,n,i){if(239===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,91,i);return e.Debug.assert(void 0!==a),d(a,i).line===n}return!1}function _(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(t,r,n,i){switch(n.kind){case 178:return a(n.typeArguments);case 205:return a(n.properties);case 204:return a(n.elements);case 182:return a(n.members);case 256:case 213:case 214:case 169:case 168:case 174:case 171:case 180:case 175:return a(n.typeParameters)||a(n.parameters);case 172:return a(n.parameters);case 257:case 226:case 258:case 259:case 344:return a(n.typeParameters);case 209:case 208:return a(n.typeArguments)||a(n.arguments);case 255:return a(n.declarations);case 269:case 273:return a(n.elements);case 201:case 202:return a(n.elements)}function a(a){return a&&e.rangeContainsStartEnd(((e,t,r)=>{for(var n=e.getChildren(r),i=1;i<n.length-1;i++)if(n[i].pos===t.pos&&n[i].end===t.end)return{pos:n[i-1].end,end:n[i+1].getStart(r)};return t})(n,a,i),t,r)?a:void 0}}function m(e,t,r){return e?y(t.getLineAndCharacterOfPosition(e.pos),t,r):-1}function g(e,t,r,n){if(e.parent&&255===e.parent.kind)return-1;var i=_(e,t);if(i){var a=i.indexOf(e);if(-1!==a){var o=h(i,a,t,r);if(-1!==o)return o}return m(i,t,r)+(n?r.indentSize:0)}return-1}function h(t,r,n,i){e.Debug.assert(r>=0&&r<t.length);for(var a=d(t[r],n),o=r-1;o>=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return y(a,n,i);a=d(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;s<r;s++){var c=n.text.charCodeAt(s);if(!e.isWhiteSpaceSingleLine(c))break;9===c?o+=i.tabSize+o%i.tabSize:o++,a++}return{column:o,character:a}}function b(e,t,r,n){return v(e,t,r,n).column}function E(t,r,n,i,a){var o=n?n.kind:0;switch(r.kind){case 238:case 257:case 226:case 258:case 260:case 259:case 204:case 235:case 262:case 205:case 182:case 195:case 184:case 263:case 290:case 289:case 212:case 206:case 208:case 209:case 237:case 271:case 247:case 222:case 202:case 201:case 280:case 283:case 279:case 288:case 168:case 174:case 175:case 164:case 179:case 180:case 191:case 210:case 218:case 273:case 269:case 275:case 270:case 167:return!0;case 254:case 296:case 221:if(!t.indentMultiLineObjectLiteralBeginningOnBlankLine&&i&&205===o)return D(i,n);if(221===r.kind&&i&&n&&278===o)return i.getLineAndCharacterOfPosition(e.skipTrivia(i.text,r.pos)).line!==i.getLineAndCharacterOfPosition(e.skipTrivia(i.text,n.pos)).line;if(221!==r.kind)return!0;break;case 240:case 241:case 243:case 244:case 242:case 239:case 256:case 213:case 169:case 171:case 172:case 173:return 235!==o;case 214:return i&&212===o?D(i,n):235!==o;case 272:return 273!==o;case 266:return 267!==o||!!n.namedBindings&&269!==n.namedBindings.kind;case 278:return 281!==o;case 282:return 284!==o;case 188:case 187:if(182===o||184===o)return!1}return a}function x(e,t,r,n,i){return void 0===i&&(i=!1),E(e,t,r,n,!1)&&!(i&&r&&((e,t)=>{switch(e){case 247:case 251:case 245:case 246:return 235!==t.kind;default:return!1}})(r.kind,t))}function D(t,r){var n=e.skipTrivia(t.text,r.pos);return t.getLineAndCharacterOfPosition(n).line===t.getLineAndCharacterOfPosition(r.end).line}!(e=>{e[e.Unknown=-1]="Unknown"})(n||(n={})),r.getIndentation=(r,n,i,s)=>{if(void 0===s&&(s=!1),r>n.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),u=t.getRangeOfEnclosingComment(n,r,c||null);if(u&&3===u.kind)return((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),l=c.column,d=c.character;return 0===l?l:42===t.text.charCodeAt(s+d)?l-1:l})(n,r,i,u);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r<c.end)return 0;var p=n.getLineAndCharacterOfPosition(r).line,_=e.getTokenAtPosition(n,r),y=18===_.kind&&205===_.parent.kind;if(i.indentStyle===e.IndentStyle.Block||y)return((t,r,n)=>{for(var i=r;i>0;){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&&221!==c.parent.kind){var E=((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!==E)return E}var D=((e,t,r)=>t&&f(e,e,t,r))(r,c.parent,n);if(D&&!e.rangeContainsRange(D,c)){var S=-1!==[213,214].indexOf(_.parent.kind)?0:i.indentSize;return m(D,n,i)+S}return((t,r,n,i,s,c)=>{for(var u,p=n;p;){if(e.positionBelongsToNode(p,r,t)&&x(c,p,u,t,!0)){var _=d(p,t),f=l(n,p,i,t);return o(p,_,void 0,0!==f?s&&2===f?c.indentSize:0:i!==_.line?c.indentSize:0,t,!0,c)}var m=g(p,t,c,!0);if(-1!==m)return m;u=p,p=p.parent}return a(c)})(n,r,c,p,s,i)},r.getIndentationForNode=(e,t,r,n)=>{var i=r.getLineAndCharacterOfPosition(e.getStart(r));return o(e,i,t,0,r,!1,n)},r.getBaseIndentation=a,(e=>{e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"})(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=u,r.childStartsOnTheSameLineWithElseInIfStatement=p,r.childIsUnindentedBranchOfConditionalExpression=(t,r,n,i)=>{if(e.isConditionalExpression(t)&&(r===t.whenTrue||r===t.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,t.condition.end).line;if(r===t.whenTrue)return n===a;var o=d(t.whenTrue,i).line,s=e.getLineAndCharacterOfPosition(i,t.whenTrue.end).line;return a===o&&s===n}return!1},r.argumentStartsOnSameLineAsPreviousArgument=(t,r,n,i)=>{if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,(e=>e.pos===r.pos));if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;var s=t.arguments[o-1];if(n===e.getLineAndCharacterOfPosition(i,s.getEnd()).line)return!0}return!1},r.getContainingList=_,r.findFirstNonWhitespaceCharacterAndColumn=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=E,r.shouldIndentChildNode=x})((t=e.formatting||(e.formatting={})).SmartIndenter||(t.SmartIndenter={}))})(p),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 i(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function a(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var o,s;function c(t,r){return e.skipTrivia(t,r,!1,!0)}!(e=>{e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"})(o=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),(e=>{e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"})(s=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var l,d={leadingTriviaOption:o.Exclude,trailingTriviaOption:s.Exclude};function u(e,t,r,n){return{pos:p(e,t,n),end:g(e,r,n)}}function p(t,r,n,i){var a,s;void 0===i&&(i=!1);var l=n.leadingTriviaOption;if(l===o.Exclude)return r.getStart(t);if(l===o.StartLine){var d=r.getStart(t),u=e.getLineStartPositionForPosition(d,t);return e.rangeContainsPosition(r,u)?u:d}if(l===o.JSDoc){var p=e.getJSDocCommentRanges(r,t.text);if(null==p?void 0:p.length)return e.getLineStartPositionForPosition(p[0].pos,t)}var _=r.getFullStart(),f=r.getStart(t);if(_===f)return f;var m=e.getLineStartPositionForPosition(_,t);if(e.getLineStartPositionForPosition(f,t)===m)return l===o.IncludeAll?_:f;if(i){var g=(null===(a=e.getLeadingCommentRanges(t.text,_))||void 0===a?void 0:a[0])||(null===(s=e.getTrailingCommentRanges(t.text,_))||void 0===s?void 0:s[0]);if(g)return e.skipTrivia(t.text,g.end,!0,!0)}var h=_>0?1:0,y=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,m)+h,t);return y=c(t.text,y),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,y),t)}function _(t,r,n){var i=r.end;if(n.trailingTriviaOption===s.Include){var a=e.getTrailingCommentRanges(t.text,i);if(a)for(var o=e.getLineOfLocalPosition(t,r.end),c=0,l=a;c<l.length;c++){var d=l[c];if(2===d.kind||e.getLineOfLocalPosition(t,d.pos)>o)break;if(e.getLineOfLocalPosition(t,d.end)>o)return e.skipTrivia(t.text,d.end,!0,!0)}}}function g(t,r,n){var i,a=r.end,o=n.trailingTriviaOption;if(o===s.Exclude)return a;if(o===s.ExcludeWhitespace){var c=e.concatenate(e.getTrailingCommentRanges(t.text,a),e.getLeadingCommentRanges(t.text,a));return(null===(i=null==c?void 0:c[c.length-1])||void 0===i?void 0:i.end)||a}var l=_(t,r,n);if(l)return l;var d=e.skipTrivia(t.text,a,!0);return d===a||o!==s.Include&&!e.isLineBreak(t.text.charCodeAt(d-1))?a:d}function h(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&205===e.parent.kind)}!(e=>{e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"})(l||(l={})),t.isThisTypeAnnotatable=t=>e.isFunctionExpression(t)||e.isFunctionDeclaration(t);var 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=r=>new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext),t.with=(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<i.length;n++){var a=i[n];this.changes.push({kind:l.Text,sourceFile:t,text:a.newText,range:e.createTextRangeFromSpan(a.span)})}},t.prototype.deleteRange=function(e,t){this.changes.push({kind:l.Remove,sourceFile:e,range:t})},t.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},t.prototype.deleteNode=function(e,t,r){void 0===r&&(r={leadingTriviaOption:o.IncludeAll}),this.deleteRange(e,u(e,t,t,r))},t.prototype.deleteNodes=function(e,t,r,n){void 0===r&&(r={leadingTriviaOption:o.IncludeAll});for(var i=0,a=t;i<a.length;i++){var s=a[i],c=p(e,s,r,n),l=g(e,s,r);this.deleteRange(e,{pos:c,end:l}),n=!!_(e,s,r)}},t.prototype.deleteModifier=function(t,r){this.deleteRange(t,{pos:r.getStart(t),end:e.skipTrivia(t.text,r.end,!0)})},t.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:o.IncludeAll});var i=p(e,t,n),a=g(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:o.IncludeAll});var i=p(e,t,n),a=void 0===r?e.text.length:p(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.replaceRange=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:l.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},t.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n=d),this.replaceRange(e,u(e,t,t,n),r,n)},t.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i=d),this.replaceRange(e,u(e,t,r,i),n,i)},t.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:l.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},t.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=d),this.replaceRangeWithNodes(e,u(e,t,t,n),r,n)},t.prototype.replaceNodeWithText=function(e,t,r){this.replaceRangeWithText(e,u(e,t,t,d),r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,i){void 0===i&&(i=d),this.replaceRangeWithNodes(e,u(e,t,r,i),n,i)},t.prototype.nodeHasTrailingComment=(e,t,r)=>(void 0===r&&(r=d),!!_(e,t,r)),t.prototype.nextCommaToken=(t,r)=>{var n=e.findNextToken(r,r.parent,t);return n&&27===n.kind?n:void 0},t.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})},t.prototype.insertNodeAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRange(t,e.createRange(r),n,i)},t.prototype.insertNodesAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRangeWithNodes(t,e.createRange(r),n,i)},t.prototype.insertNodeAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},t.prototype.insertNodesAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},t.prototype.insertAtTopOfFile=function(t,r,n){var i=(t=>{for(var r,n=0,i=t.statements;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))break;r=a}var o=0,s=t.text;if(r)return o=r.end,m(),o;var c=e.getShebang(s);void 0!==c&&(o=c.length,m());var l,d,u=e.getLeadingCommentRanges(s,o);if(!u)return o;for(var p=0,_=u;p<_.length;p++){var f=_[p];if(3===f.kind){if(e.isPinnedComment(s,f.pos)){l={range:f,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(s,f.pos,f.end)){l={range:f,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;if(t.getLineAndCharacterOfPosition(f.pos).line>=t.getLineAndCharacterOfPosition(l.range.end).line+2)break}if(t.statements.length&&(void 0===d&&(d=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),d<t.getLineAndCharacterOfPosition(f.end).line+2))break;l={range:f,pinnedOrTripleSlash:!1}}return l&&(o=l.range.end,m()),o;function m(){if(o<s.length){var t=s.charCodeAt(o);e.isLineBreak(t)&&++o<s.length&&13===t&&10===s.charCodeAt(o)&&o++}}})(t),a={prefix:0===i?void 0:this.newLineCharacter,suffix:(e.isLineBreak(t.text.charCodeAt(i))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")};e.isArray(r)?this.insertNodesAt(t,i,r,a):this.insertNodeAt(t,i,r,a)},t.prototype.insertFirstParameter=function(t,r,n){var i=e.firstOrUndefined(r);i?this.insertNodeBefore(t,i,n):this.insertNodeAt(t,r.pos,n)},t.prototype.insertNodeBefore=function(e,t,r,n,i){void 0===n&&(n=!1),void 0===i&&(i={}),this.insertNodeAt(e,p(e,t,i),r,this.getOptionsForInsertNodeBefore(t,r,n))},t.prototype.insertModifierAt=function(t,r,n,i){void 0===i&&(i={}),this.insertNodeAt(t,r,e.factory.createToken(n),i)},t.prototype.insertModifierBefore=function(e,t,r){return this.insertModifierAt(e,r.getStart(e),t,{suffix:" "})},t.prototype.insertCommentBeforeLine=function(t,r,n,i){var a=e.getStartPositionOfLine(r,t),o=e.getFirstNonSpaceCharacterPosition(t.text,a),s=k(t,o),c=e.getTouchingToken(t,s?o:n),l=t.text.slice(a,o),d="".concat(s?"":this.newLineCharacter,"//").concat(i).concat(this.newLineCharacter).concat(l);this.insertText(t,c.getStart(t),d)},t.prototype.insertJsdocCommentBefore=function(t,r,n){var i=r.getStart(t);if(r.jsDoc)for(var a=0,o=r.jsDoc;a<o.length;a++){var s=o[a];this.deleteRange(t,{pos:e.getLineStartPositionForPosition(s.getStart(t),t),end:g(t,s,{})})}var c=e.getPrecedingNonSpaceCharacterPosition(t.text,i-1),l=t.text.slice(c,i);this.insertNodeAt(t,i,n,{suffix:this.newLineCharacter+l})},t.prototype.createJSDocText=(t,r)=>{var n=e.flatMap(r.jsDoc,(t=>e.isString(t.comment)?e.factory.createJSDocText(t.comment):t.comment)),i=e.singleOrUndefined(r.jsDoc);return i&&e.positionsAreOnSameLine(i.pos,i.end,t)&&0===e.length(n)?void 0:e.factory.createNodeArray(e.intersperse(n,e.factory.createJSDocText("\n")))},t.prototype.replaceJSDocComment=function(t,r,n){this.insertJsdocCommentBefore(t,(e=>{if(214!==e.kind)return e;var t=167===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t.jsDocCache=e.jsDocCache,t})(r),e.factory.createJSDocComment(this.createJSDocText(t,r),e.factory.createNodeArray(n)))},t.prototype.addJSDocTags=function(t,r,n){var i=e.flatMapToMutable(r.jsDoc,(e=>e.tags)),a=n.filter((t=>!i.some(((r,n)=>{var a=((t,r)=>{if(t.kind===r.kind)switch(t.kind){case 340:var n=t,i=r;return e.isIdentifier(n.name)&&e.isIdentifier(i.name)&&n.name.escapedText===i.name.escapedText?e.factory.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0;case 341:return e.factory.createJSDocReturnTag(void 0,r.typeExpression,t.comment);case 343:return e.factory.createJSDocTypeTag(void 0,r.typeExpression,t.comment)}})(r,t);return a&&(i[n]=a),!!a}))));this.replaceJSDocComment(t,r,f(f([],i,!0),a,!0))},t.prototype.filterJSDocTags=function(t,r,n){this.replaceJSDocComment(t,r,e.filter(e.flatMapToMutable(r.jsDoc,(e=>e.tags)),n))},t.prototype.replaceRangeWithText=function(e,t,r){this.changes.push({kind:l.Text,sourceFile:e,range:t,text:r})},t.prototype.insertText=function(t,r,n){this.replaceRangeWithText(t,e.createRange(r),n)},t.prototype.tryInsertTypeAnnotation=function(t,r,n){var i,a;if(e.isFunctionLike(r)){if(!(a=e.findChildOfKind(r,21,t))){if(!e.isArrowFunction(r))return!1;a=e.first(r.parameters)}}else a=null!==(i=254===r.kind?r.exclamationToken:r.questionToken)&&void 0!==i?i:r.name;return this.insertNodeAt(t,a.end,n,{prefix:": "}),!0},t.prototype.tryInsertThisTypeAnnotation=function(t,r,n){var i=e.findChildOfKind(r,20,t).getStart(t)+1,a=r.parameters.length?", ":"";this.insertNodeAt(t,i,n,{prefix:"this: ",suffix:a})},t.prototype.insertTypeParameters=function(t,r,n){var i=(e.findChildOfKind(r,20,t)||e.first(r.parameters)).getStart(t);this.insertNodesAt(t,i,n,{prefix:"<",suffix:">",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 i=e.firstOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeBefore(t,i,n):this.replaceConstructorBody(t,r,f([n],r.body.statements,!0))},t.prototype.insertNodeAtConstructorStartAfterSuperCall=function(t,r,n){var i=e.find(r.body.statements,(t=>e.isExpressionStatement(t)&&e.isSuperCall(t.expression)));i&&r.body.multiLine?this.insertNodeAfter(t,i,n):this.replaceConstructorBody(t,r,f(f([],r.body.statements,!0),[n],!1))},t.prototype.insertNodeAtConstructorEnd=function(t,r,n){var i=e.lastOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeAfter(t,i,n):this.replaceConstructorBody(t,r,f(f([],r.body.statements,!0),[n],!1))},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=p(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.insertMemberAtStart=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,E(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=E(r);a<o.length;a++){var s=o[a];if(e.rangeStartPositionsAreOnSameLine(i,s,t))return;var c=s.getStart(t),l=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(c,t),c,t,this.formatContext.options);if(void 0===n)n=l;else if(l!==n)return;i=s}return n},t.prototype.computeIndentationForNewMember=function(t,r){var n,i=r.getStart(t);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(i,t),i,t,this.formatContext.options)+(null!==(n=this.formatContext.options.indentSize)&&void 0!==n?n:4)},t.prototype.getInsertNodeAtStartInsertOptions=function(t,r,n){var i=0===E(r).length,a=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(r),{node:r,sourceFile:t}),o=e.isObjectLiteralExpression(r)&&(!e.isJsonSourceFile(t)||!i);return{indentation:n,prefix:(e.isObjectLiteralExpression(r)&&e.isJsonSourceFile(t)&&i&&!a?",":"")+this.newLineCharacter,suffix:o?",":e.isInterfaceDeclaration(r)&&i?";":""}},t.prototype.insertNodeAfterComma=function(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})},t.prototype.insertNodesAfter=function(t,r,n){var i=this.insertNodeAfterWorker(t,r,e.first(n));this.insertNodesAt(t,i,n,this.getInsertNodeAfterOptions(t,r))},t.prototype.insertNodeAfterWorker=function(t,r,n){var i,a;return i=r,a=n,((e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&e.isClassOrTypeElement(a)&&162===a.name.kind||e.isStatementButNotDeclaration(i)&&e.isStatementButNotDeclaration(a))&&59!==t.text.charCodeAt(r.end-1)&&this.replaceRange(t,e.createRange(r.end),e.factory.createToken(26)),g(t,r,{})},t.prototype.getInsertNodeAfterOptions=function(t,r){var n=this.getInsertNodeAfterOptionsWorker(r);return m(m({},n),{prefix:r.end===t.end&&e.isStatement(r)?n.prefix?"\n".concat(n.prefix):"\n":n.prefix})},t.prototype.getInsertNodeAfterOptionsWorker=function(t){switch(t.kind){case 257:case 261:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 254:case 10:case 79:return{prefix:", "};case 296:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 164:return{};default:return e.Debug.assert(e.isStatement(t)||e.isClassOrTypeElement(t)),{suffix:this.newLineCharacter}}},t.prototype.insertName=function(t,r,n){if(e.Debug.assert(!r.name),214===r.kind){var i=e.findChildOfKind(r,38,t),a=e.findChildOfKind(r,20,t);a?(this.insertNodesAt(t,a.getStart(t),[e.factory.createToken(98),e.factory.createIdentifier(n)],{joiner:" "}),N(this,t,i)):(this.insertText(t,e.first(r.parameters).getStart(t),"function ".concat(n,"(")),this.replaceRange(t,i,e.factory.createToken(21))),235!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(r,213===r.kind?98:84,t).end;this.insertNodeAt(t,o,e.factory.createIdentifier(n),{prefix:" "})}},t.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},t.prototype.insertImportSpecifierAtIndex=function(t,r,n,i){var a=n.elements[i-1];a?this.insertNodeInListAfter(t,a,r):this.insertNodeBefore(t,n.elements[0],r,!e.positionsAreOnSameLine(n.elements[0].getStart(),n.parent.parent.getStart(),t))},t.prototype.insertNodeInListAfter=function(t,r,n,i){if(void 0===i&&(i=e.formatting.SmartIndenter.getContainingList(r,t)),i){var a=e.indexOfNode(i,r);if(!(a<0)){var o=r.getEnd();if(a!==i.length-1){var s=e.getTokenAtPosition(t,r.end);if(s&&h(r,s)){var l=i[a+1],d=c(t.text,l.getFullStart()),u="".concat(e.tokenToString(s.kind)).concat(t.text.substring(s.end,d));this.insertNodesAt(t,d,[n],{suffix:u})}}else{var p=r.getStart(t),_=e.getLineStartPositionForPosition(p,t),f=void 0,m=!1;if(1===i.length)f=27;else{var g=e.findPrecedingToken(r.pos,t);f=h(r,g)?g.kind:27,m=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==_}if(((t,r)=>{for(var n=r;n<t.length;){var i=t.charCodeAt(n);if(!e.isWhiteSpaceSingleLine(i))return 47===i;n++}return!1})(t.text,r.end)&&(m=!0),m){this.replaceRange(t,e.createRange(o),e.factory.createToken(f));for(var y=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(_,p,t,this.formatContext.options),v=e.skipTrivia(t.text,o,!0,!1);v!==o&&e.isLineBreak(t.text.charCodeAt(v-1));)v--;this.replaceRange(t,e.createRange(v),n,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,e.createRange(o),n,{prefix:"".concat(e.tokenToString(f)," ")})}}}else e.Debug.fail("node is not a list element")},t.prototype.parenthesizeExpression=function(t,r){this.replaceRange(t,e.rangeOfNode(r),e.factory.createParenthesizedExpression(r))},t.prototype.finishClassesWithNodesInsertedAtStart=function(){var t=this;this.classesWithNodesInsertedAtStart.forEach((r=>{var n=r.node,i=r.sourceFile,a=((t,r)=>{var n=e.findChildOfKind(t,18,r),i=e.findChildOfKind(t,19,r);return[null==n?void 0:n.end,null==i?void 0:i.end]})(n,i),o=a[0],s=a[1];if(void 0!==o&&void 0!==s){var c=0===E(n).length,l=e.positionsAreOnSameLine(o,s,i);c&&l&&o!==s-1&&t.deleteRange(i,e.createRange(o,s-1)),l&&t.insertText(i,s-1,t.newLineCharacter)}}))},t.prototype.finishDeleteDeclarations=function(){for(var t=this,r=new e.Set,n=(t,n)=>{i.deletedNodes.some((r=>r.sourceFile===t&&e.rangeContainsRangeExclusive(r.node,n)))||(e.isArray(n)?i.deleteRange(t,e.rangeOfTypeParameters(t,n)):D.deleteDeclaration(i,r,t,n))},i=this,a=0,o=this.deletedNodes;a<o.length;a++){var s=o[a];n(s.sourceFile,s.node)}r.forEach((n=>{var i=n.getSourceFile(),a=e.formatting.SmartIndenter.getContainingList(n,i);if(n===e.last(a)){var o=e.findLastIndex(a,(e=>!r.has(e)),a.length-2);-1!==o&&t.deleteRange(i,{pos:a[o].end,end:b(i,a[o+1])})}}))},t.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var t=y.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),r=0,n=this.newFiles;r<n.length;r++){var i=n[r],a=i.oldFile,o=i.fileName,s=i.statements;t.push(y.newFileChanges(a,o,s,this.newLineCharacter,this.formatContext))}return t},t.prototype.createNewFile=function(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})},t}();function b(t,r){return e.skipTrivia(t.text,p(t,r,{leadingTriviaOption:o.IncludeAll}),!1,!0)}function E(t){return e.isObjectLiteralExpression(t)?t.properties:t.members}function x(t,r){for(var n=r.length-1;n>=0;n--){var i=r[n],a=i.span,o=i.newText;t="".concat(t.substring(0,a.start)).concat(o).concat(t.substring(e.textSpanEnd(a)))}return t}t.ChangeTracker=v,t.getNewFileText=(e,t,r,n)=>y.newFileChangesWorker(void 0,t,e,r,n),function(t){function r(t,r,i,a,o){var s=i.map((e=>4===e?"":n(e,t,a).text)).join(a),c=e.createSourceFile("any file name",s,99,!0,r);return x(s,e.formatting.formatDocument(c,o))+a}function n(t,r,n){var i=A(n),a=e.getNewLineKind(n);return e.createPrinter({newLine:a,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},i).writeNode(4,t,r,i),{text:i.getText(),node:T(t)}}t.getTextChangesFromChanges=function(t,r,i,a){return e.mapDefined(e.group(t,(e=>e.sourceFile.path)),(function(t){for(var o=t[0].sourceFile,s=e.stableSort(t,((e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end)),c=t=>{e.Debug.assert(s[t].range.end<=s[t+1].range.pos,"Changes overlap",(()=>"".concat(JSON.stringify(s[t].range)," and ").concat(JSON.stringify(s[t+1].range))))},d=0;d<s.length-1;d++)c(d);var u=e.mapDefined(s,(function(t){var s=e.createTextSpanFromRange(t.range),c=function(t,r,i,a,o){var s;if(t.kind===l.Remove)return"";if(t.kind===l.Text)return t.text;var c=t.options,d=void 0===c?{}:c,u=t.range.pos,p=function(t){return function(t,r,i,a,o,s,c){var l=a.indentation,d=a.prefix,u=a.delta,p=n(t,r,o),_=p.node,f=p.text;c&&c(_,f);var g=e.getFormatCodeSettingsForWriting(s,r),h=void 0!==l?l:e.formatting.SmartIndenter.getIndentation(i,r,g,d===o||e.getLineStartPositionForPosition(i,r)===i);void 0===u&&(u=e.formatting.SmartIndenter.shouldIndentChildNode(g,t)&&g.indentSize||0);var y={text:f,getLineAndCharacterOfPosition(t){return e.getLineAndCharacterOfPosition(this,t)}};return x(f,e.formatting.formatNodeGivenIndentation(_,y,r.languageVariant,h,u,m(m({},s),{options:g})))}(t,r,u,d,i,a,o)},_=t.kind===l.ReplaceWithMultipleNodes?t.nodes.map((t=>e.removeSuffix(p(t),i))).join((null===(s=t.options)||void 0===s?void 0:s.joiner)||i):p(t.node),f=void 0!==d.indentation||e.getLineStartPositionForPosition(u,r)===u?_:_.replace(/^\s+/,"");return(d.prefix||"")+f+(!d.suffix||e.endsWith(f,d.suffix)?"":d.suffix)}(t,o,r,i,a);if(s.length!==c.length||!e.stringContainsAt(o.text,c,s.start))return e.createTextChange(s,c)}));return u.length>0?{fileName:o.fileName,textChanges:u}:void 0}))},t.newFileChanges=(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=n}(y||(y={})),t.applyChanges=x;var D,S=m(m({},e.nullTransformationContext),{factory:e.createNodeFactory(1|e.nullTransformationContext.factory.flags,e.nullTransformationContext.factory.baseFactory)});function T(t){var n=e.visitEachChild(t,T,S,C,T),a=e.nodeIsSynthesized(n)?n:Object.create(n);return e.setTextRangePosEnd(a,r(t),i(t)),a}function C(t,n,a,o,s){var c=e.visitNodes(t,n,a,o,s);if(!c)return c;var l=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,r(t),i(t)),l}function A(t){var r=0,i=e.createTextWriter(t);function o(t,n){if(n||!(t=>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{onBeforeEmitNode(e){e&&n(e,r)},onAfterEmitNode(e){e&&a(e,r)},onBeforeEmitNodeArray(e){e&&n(e,r)},onAfterEmitNodeArray(e){e&&a(e,r)},onBeforeEmitToken(e){e&&n(e,r)},onAfterEmitToken(e){e&&a(e,r)},write(e){i.write(e),o(e,!1)},writeComment(e){i.writeComment(e)},writeKeyword(e){i.writeKeyword(e),o(e,!1)},writeOperator(e){i.writeOperator(e),o(e,!1)},writePunctuation(e){i.writePunctuation(e),o(e,!1)},writeTrailingSemicolon(e){i.writeTrailingSemicolon(e),o(e,!1)},writeParameter(e){i.writeParameter(e),o(e,!1)},writeProperty(e){i.writeProperty(e),o(e,!1)},writeSpace(e){i.writeSpace(e),o(e,!1)},writeStringLiteral(e){i.writeStringLiteral(e),o(e,!1)},writeSymbol(e,t){i.writeSymbol(e,t),o(e,!1)},writeLine(e){i.writeLine(e)},increaseIndent(){i.increaseIndent()},decreaseIndent(){i.decreaseIndent()},getText:()=>i.getText(),rawWrite(e){i.rawWrite(e),o(e,!1)},writeLiteral(e){i.writeLiteral(e),o(e,!0)},getTextPos:()=>i.getTextPos(),getLine:()=>i.getLine(),getColumn:()=>i.getColumn(),getIndent:()=>i.getIndent(),isAtStartOfLine:()=>i.isAtStartOfLine(),hasTrailingComment:()=>i.hasTrailingComment(),hasTrailingWhitespace:()=>i.hasTrailingWhitespace(),clear(){i.clear(),r=0}}}function k(t,r){return!(e.isInComment(t,r)||e.isInString(t,r)||e.isInTemplateString(t,r)||e.isInJSXText(t,r))}function N(e,t,r,n){void 0===n&&(n={leadingTriviaOption:o.IncludeAll});var i=p(t,r,n),a=g(t,r,n);e.deleteRange(t,{pos:i,end:a})}function w(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])})):N(t,n,i)}t.assignPositionsToNode=T,t.createWriter=A,t.isValidLocationToAddComment=k,(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 N(t,r,e.getAncestor(n,266))}t.deleteDeclaration=(t,n,i,a)=>{switch(a.kind){case 164:var c=a.parent;e.isArrowFunction(c)&&1===c.parameters.length&&!e.findChildOfKind(c,20,i)?t.replaceNodeWithText(i,a,"()"):w(t,n,i,a);break;case 266:case 265:N(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?o.Exclude:e.hasJSDocNodes(a)?o.JSDoc:o.StartLine});break;case 203:var l=a.parent;202===l.kind&&a!==e.last(l.elements)?N(t,i,a):w(t,n,i,a);break;case 254:!((t,r,n,i)=>{var a=i.parent;if(292!==a.kind)if(1===a.declarations.length){var s=a.parent;switch(s.kind){case 244:case 243:t.replaceNode(n,i,e.factory.createObjectLiteralExpression());break;case 242:N(t,n,a);break;case 237:N(t,n,s,{leadingTriviaOption:e.hasJSDocNodes(s)?o.JSDoc:o.StartLine});break;default:e.Debug.assertNever(s)}}else w(t,r,n,i);else t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n))})(t,n,i,a);break;case 163:w(t,n,i,a);break;case 270:var d=a.parent;1===d.elements.length?r(t,i,d):w(t,n,i,a);break;case 268:r(t,i,a);break;case 26:N(t,i,a,{trailingTriviaOption:s.Exclude});break;case 98:N(t,i,a,{leadingTriviaOption:o.Exclude});break;case 257:case 256:N(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?o.JSDoc:o.StartLine});break;default:a.parent?e.isImportClause(a.parent)&&a.parent.name===a?((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 N(t,r,n.name)}else N(t,r,n.parent)})(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?w(t,n,i,a):N(t,i,a):N(t,i,a)}}})(D||(D={})),t.deleteNode=N}(e.textChanges||(e.textChanges={}))}(p),(e=>{!(t=>{var r=e.createMultiMap(),n=new e.Map;function i(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function a(e,t){return{changes:e,commands:t}}function o(t,r,n){for(var i=0,a=s(t);i<a.length;i++){var o=a[i];e.contains(r,o.code)&&n(o)}}function s(t){var r=t.program,n=t.sourceFile,i=t.cancellationToken;return f(f(f([],r.getSemanticDiagnostics(n,i),!0),r.getSyntacticDiagnostics(n,i),!0),e.computeSuggestionDiagnostics(n,r,i),!0)}t.createCodeFixActionWithoutFixAll=(t,r,n)=>i(t,e.diagnosticToString(n),r,void 0,void 0),t.createCodeFixAction=(t,r,n,a,o,s)=>i(t,e.diagnosticToString(n),r,a,e.diagnosticToString(o),s),t.createCodeFixActionMaybeFixAll=(t,r,n,a,o,s)=>i(t,e.diagnosticToString(n),r,a,o&&e.diagnosticToString(o),s),t.registerCodeFix=t=>{for(var i=0,a=t.errorCodes;i<a.length;i++){var o=a[i];r.add(String(o),t)}if(t.fixIds)for(var s=0,c=t.fixIds;s<c.length;s++){var l=c[s];e.Debug.assert(!n.has(l)),n.set(l,t)}},t.getSupportedErrorCodes=()=>e.arrayFrom(r.keys()),t.getFixes=t=>{var n=s(t),i=r.get(String(t.errorCode));return e.flatMap(i,(r=>e.map(r.getCodeActions(t),((t,r)=>{for(var n=t.errorCodes,i=0,a=0,o=r;a<o.length;a++){var s=o[a];if(e.contains(n,s.code)&&i++,i>1)break}var c=i<2;return e=>{var t=e.fixId,r=e.fixAllDescription,n=y(e,["fixId","fixAllDescription"]);return c?n:m(m({},n),{fixId:t,fixAllDescription:r})}})(r,n))))},t.getAllFixes=t=>n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t),t.createCombinedCodeActions=a,t.createFileTextChanges=(e,t)=>({fileName:e,textChanges:t}),t.codeFixAll=(t,r,n)=>{var i=[];return a(e.textChanges.ChangeTracker.with(t,(e=>o(t,r,(t=>n(e,t,i))))),0===i.length?void 0:i)},t.eachDiagnostic=o})(e.codefix||(e.codefix={}))})(p),(e=>{var t,r;t=e.refactor||(e.refactor={}),r=new e.Map,t.registerRefactor=(e,t)=>{r.set(e,t)},t.getApplicableRefactors=n=>e.arrayFrom(e.flatMapIterator(r.values(),(e=>{var r;return n.cancellationToken&&n.cancellationToken.isCancellationRequested()||!(null===(r=e.kinds)||void 0===r?void 0:r.some((e=>t.refactorKindBeginsWith(e,n.kind))))?void 0:e.getAvailableActions(n)}))),t.getEditsForRefactor=(e,t,n)=>{var i=r.get(t);return i&&i.getEditsForAction(e,n)}})(p),(e=>{!(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.isAsExpression(n)?e.factory.createAsExpression(n.expression,e.factory.createKeywordTypeNode(155)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(155),n.expression);t.replaceNode(r,n.expression,i)}function a(t,r){if(!e.isInJSFile(t))return e.findAncestor(e.getTokenAtPosition(t,r),(t=>e.isAsExpression(t)||e.isTypeAssertionExpression(t)))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=a(n.sourceFile,n.span.start);if(void 0!==o){var s=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,o)));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,r,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=a(t.file,t.start);r&&i(e,t.file,r)}))})})(e.codefix||(e.codefix={}))})(p),(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,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions(r){var n=r.sourceFile,i=e.textChanges.ChangeTracker.with(r,(t=>{var r=e.factory.createExportDeclaration(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)]}})})(p),(e=>{!(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((t=>((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,(n=>n.getStart(t)<r.start||n.getEnd()>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(t){var r=t.sourceFile,n=t.errorCode,o=t.cancellationToken,s=t.program,c=t.span,l=e.find(s.getTypeChecker().getDiagnostics(r,o),((t,r)=>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,(t=>t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code))})(c,n)),d=a(r,l&&l.relatedInformation&&e.find(l.relatedInformation,(t=>t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code)));if(d)return[i(t,d,(r=>e.textChanges.ChangeTracker.with(t,r)))]},getAllCodeActions(r){var o=r.sourceFile,s=new e.Set;return t.codeFixAll(r,n,((t,n)=>{var c=n.relatedInformation&&e.find(n.relatedInformation,(t=>t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code)),l=a(o,c);if(l)return i(r,l,(e=>(e(t),[])),s)}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="addMissingAwait",n=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,i=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],a=f([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.This_condition_will_always_return_true_since_this_0_is_always_defined.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_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.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],i,!0);function o(t,r,n,i,a){var o=e.getFixableErrorSpanExpression(t,n);return o&&((t,r,n,i,a)=>{var o=a.getTypeChecker().getDiagnostics(t,i);return e.some(o,(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,(t=>t.code===e.Diagnostics.Did_you_forget_to_use_await.code))}))})(t,r,n,i,a)&&l(o)?o:void 0}function s(r,n,i,o,s,c){var u=r.sourceFile,p=r.program,_=r.cancellationToken,f=((t,r,n,i,o)=>{var s=((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];a<o.length;a++){var s=o[a],c=r.getTypeAtLocation(s);if(r.getPromisedTypeOfPromise(c)){if(!e.isIdentifier(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}})(t,o);if(s){for(var c,d=s.isCompleteFix,u=t=>{var s=o.getSymbolAtLocation(t);if(!s)return"continue";var u=e.tryCast(s.valueDeclaration,e.isVariableDeclaration),p=u&&e.tryCast(u.name,e.isIdentifier),_=e.getAncestor(u,237);if(!u||!_||u.type||!u.initializer||_.getSourceFile()!==r||e.hasSyntacticModifier(_,1)||!p||!l(u.initializer))return d=!1,"continue";var f=i.getSemanticDiagnostics(r,n);if(e.FindAllReferences.Core.eachSymbolReferenceInFile(p,o,r,(n=>t!==n&&!((t,r,n,i)=>{var o=e.isPropertyAccessExpression(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)?t.parent:t,s=e.find(r,(e=>e.start===o.getStart(n)&&e.start+e.length===o.getEnd()));return s&&e.contains(a,s.code)||1&i.getTypeAtLocation(o).flags})(n,f,r,o))))return d=!1,"continue";(c||(c=[])).push({expression:u.initializer,declarationSymbol:s})},p=0,_=s.identifiers;p<_.length;p++)u(_[p]);return c&&{initializers:c,needsSecondPassForFixAll:!d}}})(n,u,_,p,o);if(f){var m=s((t=>{e.forEach(f.initializers,(e=>{var r=e.expression;return d(t,i,u,o,r,c)})),c&&f.needsSecondPassForFixAll&&d(t,i,u,o,n,c)}));return t.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",m,1===f.initializers.length?[e.Diagnostics.Add_await_to_initializer_for_0,f.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function c(n,i,a,o,s,c){var l=s((e=>d(e,a,n.sourceFile,o,i,c)));return t.createCodeFixAction(r,l,e.Diagnostics.Add_await,r,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function l(t){return 32768&t.kind||!!e.findAncestor(t,(t=>t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t||e.isBlock(t)&&(256===t.parent.kind||213===t.parent.kind||214===t.parent.kind||169===t.parent.kind)))}function d(t,r,a,o,s,c){if(e.isBinaryExpression(s))for(var l=0,d=[s.left,s.right];l<d.length;l++){var p=d[l];if(!(c&&e.isIdentifier(p)&&(m=o.getSymbolAtLocation(p))&&c.has(e.getSymbolId(m)))){var _=o.getTypeAtLocation(p),f=o.getPromisedTypeOfPromise(_)?e.factory.createAwaitExpression(p):p;t.replaceNode(a,p,f)}}else if(r===n&&e.isPropertyAccessExpression(s.parent)){if(c&&e.isIdentifier(s.parent.expression)&&(m=o.getSymbolAtLocation(s.parent.expression))&&c.has(e.getSymbolId(m)))return;t.replaceNode(a,s.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s.parent.expression))),u(t,s.parent.expression,a)}else if(e.contains(i,r)&&e.isCallOrNewExpression(s.parent)){if(c&&e.isIdentifier(s)&&(m=o.getSymbolAtLocation(s))&&c.has(e.getSymbolId(m)))return;t.replaceNode(a,s,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s))),u(t,s,a)}else{var m;if(c&&e.isVariableDeclaration(s.parent)&&e.isIdentifier(s.parent.name)&&(m=o.getSymbolAtLocation(s.parent.name))&&!e.tryAddToSet(c,e.getSymbolId(m)))return;t.replaceNode(a,s,e.factory.createAwaitExpression(s))}}function u(t,r,n){var i=e.findPrecedingToken(r.pos,n);i&&e.positionIsASICandidate(i.end,i.parent,n)&&t.insertText(n,r.getStart(n),";")}t.registerCodeFix({fixIds:[r],errorCodes:a,getCodeActions(t){var r=t.sourceFile,n=t.errorCode,i=o(r,n,t.span,t.cancellationToken,t.program);if(i){var a=t.program.getTypeChecker(),l=r=>e.textChanges.ChangeTracker.with(t,r);return e.compact([s(t,i,n,a,l),c(t,i,n,a,l)])}},getAllCodeActions(r){var n=r.sourceFile,i=r.program,l=r.cancellationToken,d=r.program.getTypeChecker(),u=new e.Set;return t.codeFixAll(r,a,((e,t)=>{var a=o(n,t.code,t,l,i);if(a){var p=t=>(t(e),[]);return s(r,a,t.code,d,p,u)||c(r,a,t.code,d,p,u)}}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="addMissingConst",n=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function i(t,r,n,i,s){var c=e.getTokenAtPosition(r,n),l=e.findAncestor(c,(t=>e.isForInOrOfStatement(t.parent)?t.parent.initializer===t:!(e=>{switch(e.kind){case 79:case 204:case 205:case 296:case 297:return!0;default:return!1}})(t)&&"quit"));if(l)return a(t,l,r,s);var d=c.parent;if(e.isBinaryExpression(d)&&63===d.operatorToken.kind&&e.isExpressionStatement(d.parent))return a(t,c,r,s);if(e.isArrayLiteralExpression(d)){var u=i.getTypeChecker();if(!e.every(d.elements,(t=>{return r=t,n=u,!!(i=e.isIdentifier(r)?r:e.isAssignmentExpression(r,!0)&&e.isIdentifier(r.left)?r.left:void 0)&&!n.getSymbolAtLocation(i);var r,n,i})))return;return a(t,d,r,s)}var p=e.findAncestor(c,(t=>!!e.isExpressionStatement(t.parent)||!(e=>{switch(e.kind){case 79:case 221:case 27:return!0;default:return!1}})(t)&&"quit"));if(p){if(!o(p,i.getTypeChecker()))return;return a(t,p,r,s)}}function a(t,r,n,i){i&&!e.tryAddToSet(i,r)||t.insertModifierBefore(n,85,r)}function o(t,r){return!!e.isBinaryExpression(t)&&(27===t.operatorToken.kind?e.every([t.left,t.right],(e=>o(e,r))):63===t.operatorToken.kind&&e.isIdentifier(t.left)&&!r.getSymbolAtLocation(t.left))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start,n.program)));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions(r){var a=new e.Set;return t.codeFixAll(r,n,((e,t)=>i(e,t.file,t.start,r.program,a)))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(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;167!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(r,135,o)}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>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(r){var a=new e.Set;return t.codeFixAll(r,n,((e,t)=>i(e,t.file,t.start,a)))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(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(n){var a=e.textChanges.ChangeTracker.with(n,(e=>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:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t.start)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(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),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.createTypeReferenceNode(a.name,void 0),c=e.factory.createParameterDeclaration(a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,a.dotDotDotToken?e.factory.createArrayTypeNode(s):s,a.initializer);t.replaceNode(r,a,c)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>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:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t.start)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="addOptionalPropertyUndefined",n=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];function i(t,r){var n;if(t){if(e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind)return{source:t.parent.right,target:t.parent.left};if(e.isVariableDeclaration(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(e.isCallExpression(t.parent)){var a=r.getSymbolAtLocation(t.parent.expression);if(!(null==a?void 0:a.valueDeclaration)||!e.isFunctionLikeKind(a.valueDeclaration.kind))return;if(!e.isExpression(t))return;var o=t.parent.arguments.indexOf(t);if(-1===o)return;var s=a.valueDeclaration.parameters[o].name;if(e.isIdentifier(s))return{source:t,target:s}}else if(e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)||e.isShorthandPropertyAssignment(t.parent)){var c=i(t.parent.parent,r);if(!c)return;var l=r.getPropertyOfType(r.getTypeAtLocation(c.target),t.parent.name.text),d=null===(n=null==l?void 0:l.declarations)||void 0===n?void 0:n[0];if(!d)return;return{source:e.isPropertyAssignment(t.parent)?t.parent.initializer:t.parent.name,target:d}}}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=n.program.getTypeChecker(),o=((t,r,n)=>{var a,o,s=i(e.getFixableErrorSpanExpression(t,r),n);if(!s)return e.emptyArray;var c=s.source,l=s.target,d=((t,r,n)=>e.isPropertyAccessExpression(r)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(r.expression)).length&&n.getTypeAtLocation(t)===n.getUndefinedType())(c,l,n)?n.getTypeAtLocation(l.expression):n.getTypeAtLocation(l);return(null===(o=null===(a=d.symbol)||void 0===a?void 0:a.declarations)||void 0===o?void 0:o.some((t=>e.getSourceFileOfNode(t).fileName.match(/\.d\.ts$/))))?e.emptyArray:n.getExactOptionalProperties(d)})(n.sourceFile,n.span,a);if(o.length){var s=e.textChanges.ChangeTracker.with(n,(t=>((t,r)=>{for(var n=0,i=r;n<i.length;n++){var a=i[n].valueDeclaration;if(a&&(e.isPropertySignature(a)||e.isPropertyDeclaration(a))&&a.type){var o=e.factory.createUnionTypeNode(f(f([],187===a.type.kind?a.type.types:[a.type],!0),[e.factory.createTypeReferenceNode("undefined")],!1));t.replaceNode(a.getSourceFile(),a.type,o)}}})(t,o)));return[t.createCodeFixActionWithoutFixAll(r,s,e.Diagnostics.Add_undefined_to_optional_property_type)]}},fixIds:[r]})})(e.codefix||(e.codefix={}))})(p),(e=>{!(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(t=>e.isFunctionLikeDeclaration(t)||254===t.kind||166===t.kind||167===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((t=>!!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;o<s.length;o++){var l=s[o];if(!l.type){var d=e.getJSDocType(l);d&&t.tryInsertTypeAnnotation(r,l,c(d))}}if(a&&t.insertNodeAfter(r,e.last(n.parameters),e.factory.createToken(21)),!n.type){var u=e.getJSDocReturnType(n);u&&t.tryInsertTypeAnnotation(r,n,c(u))}}else{var p=e.Debug.checkDefined(e.getJSDocType(n),"A JSDocType for this declaration should exist");e.Debug.assert(!n.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(r,n,c(p))}}function c(t){switch(t.kind){case 312:case 313:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 316:return(t=>e.factory.createUnionTypeNode([e.visitNode(t.type,c),e.factory.createTypeReferenceNode("undefined",e.emptyArray)]))(t);case 315:return c(t.type);case 314:return(t=>e.factory.createUnionTypeNode([e.visitNode(t.type,c),e.factory.createTypeReferenceNode("null",e.emptyArray)]))(t);case 318:return(t=>e.factory.createArrayTypeNode(e.visitNode(t.type,c)))(t);case 317:return(t=>{var r;return e.factory.createFunctionTypeNode(e.emptyArray,t.parameters.map(l),null!==(r=t.type)&&void 0!==r?r:e.factory.createKeywordTypeNode(130))})(t);case 178:return(t=>{var r=t.typeName,n=t.typeArguments;if(e.isIdentifier(t.typeName)){if(e.isJSDocIndexSignature(t))return(t=>{var r=e.factory.createParameterDeclaration(void 0,void 0,147===t.typeArguments[0].kind?"n":"s",void 0,e.factory.createTypeReferenceNode(147===t.typeArguments[0].kind?"number":"string",[]),void 0),n=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,[r],t.typeArguments[1])]);return e.setEmitFlags(n,1),n})(t);var i=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1)}r=e.factory.createIdentifier(i),n="Array"!==i&&"Promise"!==i||t.typeArguments?e.visitNodes(t.typeArguments,c):e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)])}return e.factory.createTypeReferenceNode(r,n)})(t);default:var r=e.visitEachChild(t,c,e.nullTransformationContext);return e.setEmitFlags(r,1),r}}function l(t){var r=t.parent.parameters.indexOf(t),n=318===t.type.kind&&r===t.parent.parameters.length-1,i=t.name||(n?"rest":"arg"+r),a=n?e.factory.createToken(25):t.dotDotDotToken;return e.factory.createParameterDeclaration(t.modifiers,a,i,t.questionToken,e.visitNode(t.type,c),t.initializer)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=i(n.sourceFile,n.span.start);if(a){var o=e.textChanges.ChangeTracker.with(n,(e=>s(e,n.sourceFile,a)));return[t.createCodeFixAction(r,o,e.Diagnostics.Annotate_with_type_from_JSDoc,r,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&s(e,t.file,r)}))}),t.parameterShouldGetTypeFromJSDoc=a})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="convertFunctionToEs6Class",n=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function i(t,r,n,i,s,c){var l=i.getSymbolAtLocation(e.getTokenAtPosition(r,n));if(l&&l.valueDeclaration&&19&l.flags){var d=l.valueDeclaration;if(e.isFunctionDeclaration(d))t.replaceNode(r,d,(t=>{var r=_(l);t.body&&r.unshift(e.factory.createConstructorDeclaration(void 0,t.parameters,t.body));var n=a(t,93);return e.factory.createClassDeclaration(n,t.name,void 0,void 0,r)})(d));else if(e.isVariableDeclaration(d)){var u=(t=>{var r=t.initializer;if(r&&e.isFunctionExpression(r)&&e.isIdentifier(t.name)){var n=_(t.symbol);r.body&&n.unshift(e.factory.createConstructorDeclaration(void 0,r.parameters,r.body));var i=a(t.parent.parent,93);return e.factory.createClassDeclaration(i,t.name,void 0,void 0,n)}})(d);if(!u)return;var p=d.parent.parent;e.isVariableDeclarationList(d.parent)&&d.parent.declarations.length>1?(t.delete(r,d),t.insertNodeAfter(r,p,u)):t.replaceNode(r,p,u)}}function _(n){var i=[];return n.exports&&n.exports.forEach((t=>{if("prototype"===t.name&&t.declarations){var r=t.declarations[0];1===t.declarations.length&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind&&e.isObjectLiteralExpression(r.parent.right)&&l(r.parent.right.symbol,void 0,i)}else l(t,[e.factory.createToken(124)],i)})),n.members&&n.members.forEach(((a,s)=>{var c,d,u,p;if("constructor"===s&&a.valueDeclaration){var _=null===(p=null===(u=null===(d=null===(c=n.exports)||void 0===c?void 0:c.get("prototype"))||void 0===d?void 0:d.declarations)||void 0===u?void 0:u[0])||void 0===p?void 0:p.parent;_&&e.isBinaryExpression(_)&&e.isObjectLiteralExpression(_.right)&&e.some(_.right.properties,o)||t.delete(r,a.valueDeclaration.parent)}else l(a,void 0,i)})),i;function l(n,i,l){if(8192&n.flags||4096&n.flags){var d,u,p=n.valueDeclaration,_=p.parent,f=_.right;if(d=p,u=f,(e.isAccessExpression(d)?e.isPropertyAccessExpression(d)&&o(d)||e.isFunctionLike(u):e.every(d.properties,(t=>!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t)))))&&!e.some(l,(t=>{var r=e.getNameOfDeclaration(t);return!(!r||!e.isIdentifier(r)||e.idText(r)!==e.symbolName(n))}))){var m=_.parent&&238===_.parent.kind?_.parent:_;if(t.delete(r,m),f){if(e.isAccessExpression(p)&&(e.isFunctionExpression(f)||e.isArrowFunction(f))){var g=e.getQuotePreference(r,s),h=((t,r,n)=>{if(e.isPropertyAccessExpression(t))return t.name;var i=t.argumentExpression;return e.isNumericLiteral(i)?i:e.isStringLiteralLike(i)?e.isIdentifierText(i.text,e.getEmitScriptTarget(r))?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===n):i:void 0})(p,c,g);h&&v(l,f,h)}else if(e.isObjectLiteralExpression(f))e.forEach(f.properties,(t=>{(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t))&&l.push(t),e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&v(l,t.initializer,t.name),o(t)}));else if(!e.isSourceFileJS(r)&&e.isPropertyAccessExpression(p)){var y=e.factory.createPropertyDeclaration(i,p.name,void 0,void 0,f);return e.copyLeadingComments(_.parent,y,r),void l.push(y)}}else l.push(e.factory.createPropertyDeclaration(i,n.name,void 0,void 0,void 0))}}function v(t,n,o){return e.isFunctionExpression(n)?((t,n,o)=>{var s=e.concatenate(i,a(n,131)),c=e.factory.createMethodDeclaration(s,void 0,o,void 0,void 0,n.parameters,void 0,n.body);return e.copyLeadingComments(_,c,r),void t.push(c)})(t,n,o):((t,n,o)=>{var s,c=n.body;s=235===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var l=e.concatenate(i,a(n,131)),d=e.factory.createMethodDeclaration(l,void 0,o,void 0,void 0,n.parameters,void 0,s);e.copyLeadingComments(_,d,r),t.push(d)})(t,n,o)}}}}function a(t,r){return e.canHaveModifiers(t)?e.filter(t.modifiers,(e=>e.kind===r)):void 0}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n.preferences,n.program.getCompilerOptions())));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:e=>t.codeFixAll(e,n,((t,r)=>i(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r,n="convertToAsyncFunction",i=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],a=!0;function o(t,r,n,i){var a,o=e.getTokenAtPosition(r,n);if(a=e.isIdentifier(o)&&e.isVariableDeclaration(o.parent)&&o.parent.initializer&&e.isFunctionLikeDeclaration(o.parent.initializer)?o.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.canBeConvertedToAsync)){var c=new e.Map,l=e.isInJSFile(a),_=((t,r)=>{if(!t.body)return new e.Set;var n=new e.Set;return e.forEachChild(t.body,(function t(i){s(i,r,"then")?(n.add(e.getNodeId(i)),e.forEach(i.arguments,t)):s(i,r,"catch")||s(i,r,"finally")?(n.add(e.getNodeId(i)),e.forEachChild(i,t)):d(i,r)?n.add(e.getNodeId(i)):e.forEachChild(i,t)})),n})(a,i),f=((t,r,n)=>{var i=new e.Map,a=e.createMultiMap();return e.forEachChild(t,(function t(o){if(e.isIdentifier(o)){var s=r.getSymbolAtLocation(o);if(s){var c=S(r.getTypeAtLocation(o),r),l=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||n.has(l)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var d=o.text,p=a.get(d);if(p&&p.some((e=>e!==s))){var _=u(o,a);i.set(l,_.identifier),n.set(l,_),a.add(d,s)}else{var f=e.getSynthesizedDeepClone(o);n.set(l,k(f)),a.add(d,s)}}}else{var m=e.firstOrUndefined(c.parameters),g=(null==m?void 0:m.valueDeclaration)&&e.isParameter(m.valueDeclaration)&&e.tryCast(m.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),h=u(g,a);n.set(l,h),a.add(g.text,s)}}}else e.forEachChild(o,t)})),e.getSynthesizedDeepCloneWithReplacements(t,!0,(t=>{if(e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent)){if((a=(n=r.getSymbolAtLocation(t.name))&&i.get(String(e.getSymbolId(n))))&&a.text!==(t.name||t.propertyName).getText())return e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,a,t.initializer)}else if(e.isIdentifier(t)){var n,a;if(a=(n=r.getSymbolAtLocation(t))&&i.get(String(e.getSymbolId(n))))return e.factory.createIdentifier(a.text)}}))})(a,i,c);if(e.returnsPromise(f,i)){var g=f.body&&e.isBlock(f.body)?((t,r)=>{var n=[];return e.forEachReturnStatement(t,(t=>{e.isReturnStatementWithFixablePromiseHandler(t,r)&&n.push(t)})),n})(f.body,i):e.emptyArray,h={checker:i,synthNamesMap:c,setOfExpressionsToReturn:_,isInJSFile:l};if(g.length){var y=e.skipTrivia(r.text,e.moveRangePastModifiers(a).pos);t.insertModifierAt(r,y,131,{suffix:" "});for(var v=n=>{if(e.forEachChild(n,(function i(a){if(e.isCallExpression(a)){var o=m(a,a,h,!1);if(p())return!0;t.replaceNodeWithNodes(r,n,o)}else if(!e.isFunctionLike(a)&&(e.forEachChild(a,i),p()))return!0})),p())return{value:void 0}},b=0,E=g;b<E.length;b++){var x=v(E[b]);if("object"==typeof x)return x.value}}}}}function s(t,r,n){if(!e.isCallExpression(t))return!1;var i=e.hasPropertyAccessExpressionWithName(t,n)&&r.getTypeAtLocation(t);return!(!i||!r.getPromisedTypeOfPromise(i))}function c(t,r){return 0!=(4&e.getObjectFlags(t))&&t.target===r}function l(t,r,n){if("finally"!==t.expression.name.escapedText){var i=n.getTypeAtLocation(t.expression.expression);if(c(i,n.getPromiseType())||c(i,n.getPromiseLikeType())){if("then"!==t.expression.name.escapedText)return e.elementAt(t.typeArguments,0);if(r===e.elementAt(t.arguments,0))return e.elementAt(t.typeArguments,0);if(r===e.elementAt(t.arguments,1))return e.elementAt(t.typeArguments,1)}}}function d(t,r){return!!e.isExpression(t)&&!!r.getPromisedTypeOfPromise(r.getTypeAtLocation(t))}function u(t,r){var n=(r.get(t.text)||e.emptyArray).length;return k(0===n?t:e.factory.createIdentifier(t.text+"_"+n))}function p(){return!a}function _(){return a=!1,e.emptyArray}function m(t,r,n,i,a){if(s(r,n.checker,"then"))return((t,r,n,i,a,o)=>{if(!r||g(i,r))return v(t,n,i,a,o);if(n&&!g(i,n))return _();var s=C(r,i),c=m(t.expression.expression,t.expression.expression,i,!0,s);if(p())return _();var l=x(r,a,o,s,t,i);return p()?_():e.concatenate(c,l)})(r,e.elementAt(r.arguments,0),e.elementAt(r.arguments,1),n,i,a);if(s(r,n.checker,"catch"))return v(r,e.elementAt(r.arguments,0),n,i,a);if(s(r,n.checker,"finally"))return((t,r,n,i,a)=>{if(!r||g(n,r))return m(t,t.expression.expression,n,i,a);var o=h(t,n,a),s=m(t,t.expression.expression,n,!0,o);if(p())return _();var c=x(r,i,void 0,void 0,t,n);if(p())return _();var l=e.factory.createBlock(s),d=e.factory.createBlock(c);return y(t,n,e.factory.createTryStatement(l,void 0,d),o,a)})(r,e.elementAt(r.arguments,0),n,i,a);if(e.isPropertyAccessExpression(r))return m(t,r.expression,n,i,a);var o=n.checker.getTypeAtLocation(r);return o&&n.checker.getPromisedTypeOfPromise(o)?(e.Debug.assertNode(e.getOriginalNode(r).parent,e.isPropertyAccessExpression),((t,r,n,i,a)=>{if(O(t,n)){var o=e.getSynthesizedDeepClone(r);return i&&(o=e.factory.createAwaitExpression(o)),[e.factory.createReturnStatement(o)]}return b(a,e.factory.createAwaitExpression(r),void 0)})(t,r,n,i,a)):_()}function g(t,r){var n=t.checker;if(104===r.kind)return!0;if(e.isIdentifier(r)&&!e.isGeneratedIdentifier(r)&&"undefined"===e.idText(r)){var i=n.getSymbolAtLocation(r);return!i||n.isUndefinedSymbol(i)}return!1}function h(t,r,n){var i;return n&&!O(t,r)&&(I(n)?(i=n,r.synthNamesMap.forEach(((t,i)=>{if(t.identifier.text===n.identifier.text){var a=(o=n,k(e.factory.createUniqueName(o.identifier.text,16)));r.synthNamesMap.set(i,a)}var o}))):i=k(e.factory.createUniqueName("result",16),n.types),P(i)),i}function y(t,r,n,i,a){var o,s=[];if(i&&!O(t,r)){o=e.getSynthesizedDeepClone(P(i));var c=i.types,l=r.checker.getUnionType(c,2),d=r.isInJSFile?void 0:r.checker.typeToTypeNode(l,void 0,void 0),u=[e.factory.createVariableDeclaration(o,void 0,d)],p=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(u,1));s.push(p)}return s.push(n),a&&o&&1===a.kind&&s.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(F(a)),void 0,void 0,o)],2))),s}function v(t,r,n,i,a){if(!r||g(n,r))return m(t,t.expression.expression,n,i,a);var o=C(r,n),s=h(t,n,a),c=m(t,t.expression.expression,n,!0,s);if(p())return _();var l=x(r,i,s,o,t,n);if(p())return _();var d=e.factory.createBlock(c),u=e.factory.createCatchClause(o&&e.getSynthesizedDeepClone(w(o)),e.factory.createBlock(l));return y(t,n,e.factory.createTryStatement(d,u,void 0),s,a)}function b(t,r,n){return!t||A(t)?[e.factory.createExpressionStatement(r)]:I(t)&&t.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(N(t)),r))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(w(t)),void 0,n,r)],2))]}function E(t,r){if(r&&t){var n=e.factory.createUniqueName("result",16);return f(f([],b(k(n),t,r),!0),[e.factory.createReturnStatement(n)],!1)}return[e.factory.createReturnStatement(t)]}function x(t,r,n,i,a,o){var s;switch(t.kind){case 104:break;case 206:case 79:if(!i)break;var c=e.factory.createCallExpression(e.getSynthesizedDeepClone(t),void 0,I(i)?[N(i)]:[]);if(O(a,o))return E(c,l(a,t,o.checker));var u=o.checker.getTypeAtLocation(t),p=o.checker.getSignaturesOfType(u,0);if(!p.length)return _();var f=p[0].getReturnType(),m=b(n,e.factory.createAwaitExpression(c),l(a,t,o.checker));return n&&n.types.push(o.checker.getAwaitedType(f)||f),m;case 213:case 214:var g=t.body,h=null===(s=S(o.checker.getTypeAtLocation(t),o.checker))||void 0===s?void 0:s.getReturnType();if(e.isBlock(g)){for(var y=[],v=!1,x=0,C=g.statements;x<C.length;x++){var A=C[x];if(e.isReturnStatement(A))if(v=!0,e.isReturnStatementWithFixablePromiseHandler(A,o.checker))y=y.concat(T(o,A,r,n));else{var k=h&&A.expression?D(o.checker,h,A.expression):A.expression;y.push.apply(y,E(k,l(a,t,o.checker)))}else{if(r&&e.forEachReturnStatement(A,e.returnTrue))return _();y.push(A)}}return O(a,o)?y.map((t=>e.getSynthesizedDeepClone(t))):((t,r,n,i)=>{for(var a=[],o=0,s=t;o<s.length;o++){var c=s[o];if(e.isReturnStatement(c)){if(c.expression){var l=d(c.expression,n.checker)?e.factory.createAwaitExpression(c.expression):c.expression;void 0===r?a.push(e.factory.createExpressionStatement(l)):I(r)&&r.hasBeenDeclared?a.push(e.factory.createExpressionStatement(e.factory.createAssignment(N(r),l))):a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(w(r),void 0,void 0,l)],2)))}}else a.push(e.getSynthesizedDeepClone(c))}return i||void 0===r||a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(w(r),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),a})(y,n,o,v)}var F=e.isFixablePromiseHandler(g,o.checker)?T(o,e.factory.createReturnStatement(g),r,n):e.emptyArray;if(F.length>0)return F;if(h){if(k=D(o.checker,h,g),O(a,o))return E(k,l(a,t,o.checker));var P=b(n,k,void 0);return n&&n.types.push(o.checker.getAwaitedType(h)||h),P}return _();default:return _()}return e.emptyArray}function D(t,r,n){var i=e.getSynthesizedDeepClone(n);return t.getPromisedTypeOfPromise(r)?e.factory.createAwaitExpression(i):i}function S(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function T(t,r,n,i){var a=[];return e.forEachChild(r,(function r(o){if(e.isCallExpression(o)){var s=m(o,o,t,n,i);if((a=a.concat(s)).length>0)return}else e.isFunctionLike(o)||e.forEachChild(o,r)})),a}function C(t,r){var n,i=[];if(e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){return e.isIdentifier(r)?a(r):((t,r,n)=>(void 0===r&&(r=e.emptyArray),void 0===n&&(n=[]),{kind:1,bindingPattern:t,elements:r,types:n}))(r,e.flatMap(r.elements,(r=>e.isOmittedExpression(r)?[]:[t(r.name)])))}(t.parameters[0].name)):e.isIdentifier(t)?n=a(t):e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&(n=a(t.name)),n&&(!("identifier"in n)||"undefined"!==n.identifier.text))return n;function a(t){var n,a=(e=>e.symbol?e.symbol:r.checker.getSymbolAtLocation(e))((n=t).original?n.original:n);return a&&r.synthNamesMap.get(e.getSymbolId(a).toString())||k(t,i)}}function A(t){return!t||(I(t)?!t.identifier.text:e.every(t.elements,A))}function k(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function N(e){return e.hasBeenReferenced=!0,e.identifier}function w(e){return I(e)?P(e):F(e)}function F(e){for(var t=0,r=e.elements;t<r.length;t++)w(r[t]);return e.bindingPattern}function P(e){return e.hasBeenDeclared=!0,e.identifier}function I(e){return 0===e.kind}function O(t,r){return!!t.original&&r.setOfExpressionsToReturn.has(e.getNodeId(t.original))}t.registerCodeFix({errorCodes:i,getCodeActions(r){a=!0;var i=e.textChanges.ChangeTracker.with(r,(e=>o(e,r.sourceFile,r.span.start,r.program.getTypeChecker())));return a?[t.createCodeFixAction(n,i,e.Diagnostics.Convert_to_async_function,n,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[n],getAllCodeActions:e=>t.codeFixAll(e,i,((t,r)=>o(t,r.file,r.start,e.program.getTypeChecker())))}),(e=>{e[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"})(r||(r={}))})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{function r(t,r,n,i){for(var a=0,o=t.imports;a<o.length;a++){var s=o[a],c=e.getResolvedModule(t,s.text,e.getModeForUsageLocation(t,s));if(c&&c.resolvedFileName===r.fileName){var l=e.importFromModuleSpecifier(s);switch(l.kind){case 265:n.replaceNode(t,l,e.makeImport(l.name,void 0,s,i));break;case 208:e.isRequireCall(l,!1)&&n.replaceNode(t,l,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(l),"default"))}}}}function n(t,r){t.forEachChild((function n(i){if(e.isPropertyAccessExpression(i)&&e.isExportsOrModuleExportsOrAlias(t,i.expression)&&e.isIdentifier(i.name)){var a=i.parent;r(i,e.isBinaryExpression(a)&&a.left===i&&63===a.operatorToken.kind)}i.forEachChild(n)}))}function i(t,r,n,i,l,d,u,_,f){switch(r.kind){case 237:return a(t,r,i,n,l,d,f),!1;case 238:var h=r.expression;switch(h.kind){case 208:return e.isRequireCall(h,!0)&&i.replaceNode(t,r,e.makeImport(void 0,void 0,h.arguments[0],f)),!1;case 221:return 63===h.operatorToken.kind&&((t,r,n,i,a,l)=>{var d=n.left,u=n.right;if(!e.isPropertyAccessExpression(d))return!1;if(e.isExportsOrModuleExportsOrAlias(t,d)){if(!e.isExportsOrModuleExportsOrAlias(t,u)){var _=e.isObjectLiteralExpression(u)?((t,r)=>{var n=e.mapAllOrFail(t.properties,(t=>{switch(t.kind){case 172:case 173:case 297:case 298:return;case 296:return e.isIdentifier(t.name)?((t,r,n)=>{var i=[e.factory.createToken(93)];switch(r.kind){case 213:var a=r.name;if(a&&a.text!==t)return o();case 214:return p(t,i,r,n);case 226:return((t,r,n,i)=>e.factory.createClassDeclaration(e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.heritageClauses),c(n.members,i)))(t,i,r,n);default:return o()}function o(){return m(i,e.factory.createIdentifier(t),c(r,n))}})(t.name.text,t.initializer,r):void 0;case 169:return e.isIdentifier(t.name)?p(t.name.text,[e.factory.createToken(93)],t,r):void 0;default:e.Debug.assertNever(t,"Convert to ES6 got invalid prop kind ".concat(t.kind))}}));return n&&[n,!1]})(u,l):e.isRequireCall(u,!0)?((t,r)=>{var n=t.text,i=r.getSymbolAtLocation(t),a=i?i.exports:e.emptyMap;return a.has("export=")?[[s(n)],!0]:a.has("default")?a.size>1?[[o(n),s(n)],!0]:[[s(n)],!0]:[[o(n)],!1]})(u.arguments[0],r):void 0;return _?(i.replaceNodeWithNodes(t,n.parent,_[0]),_[1]):(i.replaceRangeWithText(t,e.createRange(d.getStart(t),u.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,d.expression)&&((t,r,n,i)=>{var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[m(void 0,o,r.right),g([e.factory.createExportSpecifier(!1,o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!((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(93),e.factory.createToken(85)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.factory.createToken(93),{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,a);return!1})(t,n,h,i,u,_)}default:return!1}}function a(r,n,i,a,o,s,c){var d,u=n.declarationList,p=!1,g=e.map(u.declarations,(n=>{var i=n.name,d=n.initializer;if(d){if(e.isExportsOrModuleExportsOrAlias(r,d))return p=!0,h([]);if(e.isRequireCall(d,!0))return p=!0,((r,n,i,a,o,s)=>{switch(r.kind){case 201:var c=e.mapAllOrFail(r.elements,(t=>t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:f(t.propertyName&&t.propertyName.text,t.name.text)));if(c)return h([e.makeImport(void 0,c,n,s)]);case 202:var d=l(t.moduleSpecifierToValidIdentifier(n.text,o),a);return h([e.makeImport(e.factory.createIdentifier(d),void 0,n,s),m(void 0,e.getSynthesizedDeepClone(r),e.factory.createIdentifier(d))]);case 79:return((t,r,n,i,a)=>{for(var o,s=n.getSymbolAtLocation(t),c=new e.Map,d=!1,u=0,p=i.original.get(t.text);u<p.length;u++){var _=p[u];if(n.getSymbolAtLocation(_)===s&&_!==t){var f=_.parent;if(e.isPropertyAccessExpression(f)){var m=f.name.text;if("default"===m){d=!0;var g=_.getText();(null!=o?o:o=new e.Map).set(f,e.factory.createIdentifier(g))}else{e.Debug.assert(f.expression===_,"Didn't expect expression === use");var y=c.get(m);void 0===y&&(y=l(m,i),c.set(m,y)),(null!=o?o:o=new e.Map).set(f,e.factory.createIdentifier(y))}}else d=!0}}var v=0===c.size?void 0:e.arrayFrom(e.mapIterator(c.entries(),(t=>{var r=t[0],n=t[1];return e.factory.createImportSpecifier(!1,r===n?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(n))})));return v||(d=!0),h([e.makeImport(d?e.getSynthesizedDeepClone(t):void 0,v,r,a)],o)})(r,n,i,a,s);default:return e.Debug.assertNever(r,"Convert to ES module got invalid name kind ".concat(r.kind))}})(i,d.arguments[0],a,o,s,c);if(e.isPropertyAccessExpression(d)&&e.isRequireCall(d.expression,!0))return p=!0,((t,r,n,i,a)=>{switch(t.kind){case 201:case 202:var o=l(r,i);return h([_(o,r,n,a),m(void 0,t,e.factory.createIdentifier(o))]);case 79:return h([_(t.text,r,n,a)]);default:return e.Debug.assertNever(t,"Convert to ES module got invalid syntax form ".concat(t.kind))}})(i,d.name.text,d.expression.arguments[0],o,c)}return h([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([n],u.flags))])}));if(p)return i.replaceNodeWithNodes(r,n,e.flatMap(g,(e=>e.newImports))),e.forEach(g,(t=>{t.useSitesToUnqualify&&e.copyEntries(t.useSitesToUnqualify,null!=d?d:d=new e.Map)})),d}function o(e){return g(void 0,e)}function s(t){return g([e.factory.createExportSpecifier(!1,void 0,"default")],t)}function c(t,r){return r&&e.some(e.arrayFrom(r.keys()),(r=>e.rangeContainsRange(t,r)))?e.isArray(t)?e.getSynthesizedDeepClonesWithReplacements(t,!0,n):e.getSynthesizedDeepCloneWithReplacements(t,!0,n):t;function n(e){if(206===e.kind){var t=r.get(e);return r.delete(e),t}}}function l(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_".concat(e);return t.additional.add(e),e}function d(t){var r=e.createMultiMap();return u(t,(e=>r.add(e.text,e))),r}function u(t,r){e.isIdentifier(t)&&(e=>{var t=e.parent;switch(t.kind){case 206:return t.name!==e;case 203:case 270:return t.propertyName!==e;default:return!0}})(t)&&r(t),t.forEachChild((e=>u(e,r)))}function p(t,r,n,i){return e.factory.createFunctionDeclaration(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(c(n.body,i)))}function _(t,r,n,i){return"default"===r?e.makeImport(e.factory.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[f(r,t)],n,i)}function f(t,r){return e.factory.createImportSpecifier(!1,void 0!==t&&t!==r?e.factory.createIdentifier(t):void 0,e.factory.createIdentifier(r))}function m(t,r,n){return e.factory.createVariableStatement(t,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(r,void 0,void 0,n)],2))}function g(t,r){return e.factory.createExportDeclaration(void 0,!1,t&&e.factory.createNamedExports(t),void 0===r?void 0:e.factory.createStringLiteral(r))}function h(e,t){return{newImports:e,useSitesToUnqualify:t}}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(o){var s=o.sourceFile,c=o.program,u=o.preferences,p=e.textChanges.ChangeTracker.with(o,(t=>{if(((t,r,o,s,c)=>{var u={original:d(t),additional:new e.Set},p=((t,r,i)=>{var a=new e.Map;return n(t,(t=>{var n=t.name,o=n.text,s=n.originalKeywordKind;!a.has(o)&&(void 0!==s&&e.isNonContextualKeyword(s)||r.resolveName(o,t,111551,!0))&&a.set(o,l("_".concat(o),i))})),a})(t,r,u);!((t,r,i)=>{n(t,((n,a)=>{if(!a){var o=n.name.text;i.replaceNode(t,n,e.factory.createIdentifier(r.get(o)||o))}}))})(t,p,o);for(var _,f=!1,m=0,g=e.filter(t.statements,e.isVariableStatement);m<g.length;m++){var h=g[m],y=a(t,h,o,r,u,s,c);y&&e.copyEntries(y,null!=_?_:_=new e.Map)}for(var v=0,b=e.filter(t.statements,(t=>!e.isVariableStatement(t)));v<b.length;v++){h=b[v];var E=i(t,h,r,o,u,s,p,_,c);f=f||E}return null==_||_.forEach(((e,r)=>{o.replaceNode(t,r,e)})),f})(s,c.getTypeChecker(),t,e.getEmitScriptTarget(c.getCompilerOptions()),e.getQuotePreference(s,u)))for(var o=0,p=c.getSourceFiles();o<p.length;o++){var _=p[o];r(_,s,t,e.getQuotePreference(_,u))}}));return[t.createCodeFixActionWithoutFixAll("convertToEsModule",p,e.Diagnostics.Convert_to_ES_module)]}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="correctQualifiedNameToIndexedAccessType",n=[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.code];function i(t,r){var n=e.findAncestor(e.getTokenAtPosition(t,r),e.isQualifiedName);return e.Debug.assert(!!n,"Expected position to be owned by a qualified name."),e.isIdentifier(n.left)?n:void 0}function a(t,r,n){var i=n.right.text,a=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(n.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(i)));t.replaceNode(r,n,a)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=i(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(e=>a(e,n.sourceFile,o))),c="".concat(o.left.text,'["').concat(o.right.text,'"]');return[t.createCodeFixAction(r,s,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,c],r,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&a(e,t.file,r)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],n="convertToTypeOnlyExport";function i(t,r){return e.tryCast(e.getTokenAtPosition(r,t.start).parent,e.isExportSpecifier)}function a(t,n,i){if(n){var a=n.parent,o=a.parent,s=((t,n)=>{var i=t.parent;if(1===i.elements.length)return i.elements;var a=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(i),n.program.getSemanticDiagnostics(n.sourceFile,n.cancellationToken));return e.filter(i.elements,(n=>{var i;return n===t||(null===(i=e.findDiagnosticForNode(n,a))||void 0===i?void 0:i.code)===r[0]}))})(n,i);if(s.length===a.elements.length)t.insertModifierBefore(i.sourceFile,152,a);else{var c=e.factory.updateExportDeclaration(o,o.modifiers,!1,e.factory.updateNamedExports(a,e.filter(a.elements,(t=>!e.contains(s,t)))),o.moduleSpecifier,void 0),l=e.factory.createExportDeclaration(void 0,!0,e.factory.createNamedExports(s),o.moduleSpecifier,void 0);t.replaceNode(i.sourceFile,o,c,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),t.insertNodeAfter(i.sourceFile,o,l)}}}t.registerCodeFix({errorCodes:r,getCodeActions(r){var o=e.textChanges.ChangeTracker.with(r,(e=>a(e,i(r.span,r.sourceFile),r)));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_to_type_only_export,n,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[n],getAllCodeActions(n){var o=new e.Map;return t.codeFixAll(n,r,((t,r)=>{var s=i(r,n.sourceFile);s&&e.addToSeen(o,e.getNodeId(s.parent.parent))&&a(t,s,n)}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],n="convertToTypeOnlyImport";function i(t,r){return e.tryCast(e.getTokenAtPosition(r,t.start).parent,e.isImportDeclaration)}function a(t,r,n){if(null==r?void 0:r.importClause){var i=r.importClause;t.insertText(n.sourceFile,r.getStart()+"import".length," type"),i.name&&i.namedBindings&&(t.deleteNodeRangeExcludingEnd(n.sourceFile,i.name,r.importClause.namedBindings),t.insertNodeBefore(n.sourceFile,r,e.factory.updateImportDeclaration(r,void 0,e.factory.createImportClause(!0,i.name,void 0),r.moduleSpecifier,void 0)))}}t.registerCodeFix({errorCodes:r,getCodeActions(r){var o=e.textChanges.ChangeTracker.with(r,(e=>{a(e,i(r.span,r.sourceFile),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_to_type_only_import,n,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[n],getAllCodeActions:e=>t.codeFixAll(e,r,((t,r)=>{a(t,i(r,e.sourceFile),e)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="convertLiteralTypeToMappedType",n=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)){var i=e.cast(n.parent.parent,e.isPropertySignature),a=n.getText(t);return{container:e.cast(i.parent,e.isTypeLiteralNode),typeNode:i.type,constraint:a,name:"K"===a?"P":"K"}}}function a(t,r,n){var i=n.container,a=n.typeNode,o=n.constraint,s=n.name;t.replaceNode(r,i,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(void 0,s,e.factory.createTypeReferenceNode(o)),void 0,void 0,a,void 0))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=c.name,d=c.constraint,u=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,u,[e.Diagnostics.Convert_0_to_1_in_0,d,l],r,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&a(e,t.file,r)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],n="fixClassIncorrectlyImplementsInterface";function i(t,r){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(t,r)),"There should be a containing class")}function a(t){return!(t.valueDeclaration&&8&e.getEffectiveModifierFlags(t.valueDeclaration))}function o(r,n,i,o,s,c){var l=r.program.getTypeChecker(),d=((t,r)=>{var n=e.getEffectiveBaseTypeNode(t);if(!n)return e.createSymbolTable();var i=r.getTypeAtLocation(n),o=r.getPropertiesOfType(i);return e.createSymbolTable(o.filter(a))})(o,l),u=l.getTypeAtLocation(n),p=l.getPropertiesOfType(u).filter(e.and(a,(e=>!d.has(e.escapedName)))),_=l.getTypeAtLocation(o),f=e.find(o.members,(t=>e.isConstructorDeclaration(t)));_.getNumberIndexType()||g(u,1),_.getStringIndexType()||g(u,0);var m=t.createImportAdder(i,r.program,c,r.host);function g(e,n){var a=l.getIndexInfoOfType(e,n);a&&h(i,o,l.indexInfoToIndexSignatureDeclaration(a,o,void 0,t.getNoopSymbolTrackerWithResolver(r)))}function h(e,t,r){f?s.insertNodeAfter(e,f,r):s.insertMemberAtStart(e,t,r)}t.createMissingMemberNodes(o,p,i,r,c,m,(e=>h(i,o,e))),m.writeFixes(s)}t.registerCodeFix({errorCodes:r,getCodeActions(r){var a=r.sourceFile,s=r.span,c=i(a,s.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(c),(i=>{var s=e.textChanges.ChangeTracker.with(r,(e=>o(r,i,a,c,e,r.preferences)));return 0===s.length?void 0:t.createCodeFixAction(n,s,[e.Diagnostics.Implement_interface_0,i.getText(a)],n,e.Diagnostics.Implement_all_unimplemented_interfaces)}))},fixIds:[n],getAllCodeActions(n){var a=new e.Map;return t.codeFixAll(n,r,((t,r)=>{var s=i(r.file,r.start);if(e.addToSeen(a,e.getNodeId(s)))for(var c=0,l=e.getEffectiveImplementsTypeNodes(s);c<l.length;c++){var d=l[c];o(n,d,r.file,s,t,n.preferences)}}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{t.importFixName="import";var r,n,i="fixMissingImport",a=[e.Diagnostics.Cannot_find_name_0.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.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code];function o(t,r,n,i,a){var o=r.getCompilerOptions(),c=[],l=[],u=new e.Map,p=new e.Map;return{addImportFromDiagnostic(e,t){var r=h(t,e.code,e.start,n);r&&r.fixes.length&&_(r)},addImportFromExportedSymbol(c,l){var u=e.Debug.checkDefined(c.parent),p=e.getNameForExportedSymbol(c,e.getEmitScriptTarget(o)),f=r.getTypeChecker(),m=f.getMergedSymbol(e.skipAlias(c,f)),h=d(t,m,u,p,!1,a,r,i,n),y=g(t,r),v=s(t,h,u,r,void 0,!!l,y,a,i);v&&_({fixes:[v],symbolName:p,errorIdentifierText:void 0})},writeFixes(r){for(var n,a=e.getQuotePreference(t,i),s=0,d=c;s<d.length;s++){var _=d[s];k(r,t,_)}for(var f=0,m=l;f<m.length;f++)_=m[f],N(r,t,_,a);u.forEach((n=>{var i=n.importClauseOrBindingPattern,a=n.defaultImport,s=n.namedImports;A(r,t,i,a,e.arrayFrom(s.entries(),(e=>{var t=e[0];return{addAsTypeOnly:e[1],name:t}})),o)})),p.forEach(((t,r)=>{var i=t.useRequire,o=t.defaultImport,s=t.namedImports,c=t.namespaceLikeImport,l=(i?I:P)(r.slice(2),a,o,s&&e.arrayFrom(s.entries(),(e=>{var t=e[0];return{addAsTypeOnly:e[1],name:t}})),c);n=e.combine(n,l)})),n&&e.insertImports(r,t,n,!0)},hasFixes:()=>c.length>0||l.length>0||u.size>0||p.size>0};function _(t){var r,n,i=t.fixes,a=t.symbolName,o=e.first(i);switch(o.kind){case 0:c.push(o);break;case 1:l.push(o);break;case 2:var s=o.importClauseOrBindingPattern,d=o.importKind,_=o.addAsTypeOnly,f=String(e.getNodeId(s));if((y=u.get(f))||u.set(f,y={importClauseOrBindingPattern:s,defaultImport:void 0,namedImports:new e.Map}),0===d){var m=null==y?void 0:y.namedImports.get(a);y.namedImports.set(a,v(m,_))}else e.Debug.assert(void 0===y.defaultImport||y.defaultImport.name===a,"(Add to Existing) Default import should be missing or match symbolName"),y.defaultImport={name:a,addAsTypeOnly:v(null===(r=y.defaultImport)||void 0===r?void 0:r.addAsTypeOnly,_)};break;case 3:var g=o.moduleSpecifier,h=(d=o.importKind,o.useRequire),y=((e,t,r,n)=>{var i=b(e,!0),a=b(e,!1),o=p.get(i),s=p.get(a),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:r};return 1===t&&2===n?o||(p.set(i,c),c):1===n&&(o||s)?o||s:s||(p.set(a,c),c)})(g,d,h,_=o.addAsTypeOnly);switch(e.Debug.assert(y.useRequire===h,"(Add new) Tried to add an `import` and a `require` for the same module"),d){case 1:e.Debug.assert(void 0===y.defaultImport||y.defaultImport.name===a,"(Add new) Default import should be missing or match symbolName"),y.defaultImport={name:a,addAsTypeOnly:v(null===(n=y.defaultImport)||void 0===n?void 0:n.addAsTypeOnly,_)};break;case 0:m=(y.namedImports||(y.namedImports=new e.Map)).get(a),y.namedImports.set(a,v(m,_));break;case 3:case 2:e.Debug.assert(void 0===y.namespaceLikeImport||y.namespaceLikeImport.name===a,"Namespacelike import shoudl be missing or match symbolName"),y.namespaceLikeImport={importKind:d,name:a,addAsTypeOnly:_}}break;case 4:break;default:e.Debug.assertNever(o,"fix wasn't never - got kind ".concat(o.kind))}function v(e,t){return Math.max(null!=e?e:0,t)}function b(e,t){return"".concat(t?1:0,"|").concat(e)}}}function s(t,r,n,i,a,o,s,c,l){e.Debug.assert(r.some((e=>e.moduleSymbol===n||e.symbol.parent===n)),"Some exportInfo should match the specified moduleSymbol");var d=e.createPackageJsonImportFilter(t,l,c);return v(u(r,a,o,s,i,t,c,l).fixes,t,i,d,c)}function c(e){return{description:e.description,changes:e.changes,commands:e.commands}}function l(t,r,n,i){var a,o,s=n.getCompilerOptions(),c=d(n.getTypeChecker(),!1);if(c)return c;var l=null===(o=null===(a=i.getPackageJsonAutoImportProvider)||void 0===a?void 0:a.call(i))||void 0===o?void 0:o.getTypeChecker();return e.Debug.checkDefined(l&&d(l,!0),"Could not find symbol in specified module for code actions");function d(n,i){var a=e.getDefaultLikeExportInfo(r,n,s);if(a&&e.skipAlias(a.symbol,n)===t)return{symbol:a.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:a.exportKind,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i};var o=n.tryGetMemberInModuleExportsAndProperties(t.name,r);return o&&e.skipAlias(o,n)===t?{symbol:o,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i}:void 0}}function d(t,r,n,i,a,o,s,c,l){var d=[],u=s.getCompilerOptions(),p=e.memoizeOne((t=>e.createModuleSpecifierResolutionHost(t?o.getPackageJsonAutoImportProvider():s,o)));return e.forEachExternalModuleToImportFrom(s,o,c,l,((o,s,c,l)=>{var p=c.getTypeChecker();if(!s||o===n||!e.startsWith(t.fileName,e.getDirectoryPath(s.fileName))){var f=e.getDefaultLikeExportInfo(o,p,u);f&&(f.name===i||R(o,e.getEmitScriptTarget(u),a)===i)&&e.skipAlias(f.symbol,p)===r&&_(c,s,l)&&d.push({symbol:f.symbol,moduleSymbol:o,moduleFileName:null==s?void 0:s.fileName,exportKind:f.exportKind,targetFlags:e.skipAlias(f.symbol,p).flags,isFromPackageJson:l});for(var m=0,g=p.getExportsAndPropertiesOfModule(o);m<g.length;m++){var h=g[m];h.name===i&&p.getMergedSymbol(e.skipAlias(h,p))===r&&_(c,s,l)&&d.push({symbol:h,moduleSymbol:o,moduleFileName:null==s?void 0:s.fileName,exportKind:0,targetFlags:e.skipAlias(h,p).flags,isFromPackageJson:l})}}})),d;function _(r,n,i){var a;return!n||e.isImportableFile(r,t,n,c,void 0,p(i),null===(a=o.getModuleSpecifierCache)||void 0===a?void 0:a.call(o))}}function u(t,r,n,i,a,o,s,c,l,d){void 0===l&&(l=_(a.getTypeChecker(),o,a.getCompilerOptions()));var u=a.getTypeChecker(),m=e.flatMap(t,l.getImportsForExportInfo),g=r&&((t,r,n,i)=>e.firstDefined(t,(t=>{var a,o=t.declaration,s=(t=>{var r,n,i;switch(t.kind){case 254:return null===(r=e.tryCast(t.name,e.isIdentifier))||void 0===r?void 0:r.text;case 265:return t.name.text;case 266:return null===(i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport))||void 0===i?void 0:i.name.text;default:return e.Debug.assertNever(t)}})(o),c=null===(a=e.tryGetModuleSpecifierFromDeclaration(o))||void 0===a?void 0:a.text;if(s&&c){var l=((t,r)=>{var n;switch(t.kind){case 254:return r.resolveExternalModuleName(t.initializer.arguments[0]);case 265:return r.getAliasedSymbol(t.symbol);case 266:var i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport);return i&&r.getAliasedSymbol(i.symbol);default:return e.Debug.assertNever(t)}})(o,i);if(l&&l.exports.has(e.escapeLeadingUnderscores(r)))return{kind:0,namespacePrefix:s,position:n,moduleSpecifier:c}}})))(m,r.symbolName,r.position,u),h=((t,r,n,i)=>e.firstDefined(t,(t=>{var a=t.declaration,o=t.importKind,s=t.symbol,c=t.targetFlags;if(3!==o&&2!==o&&265!==a.kind){if(254===a.kind)return 0!==o&&1!==o||201!==a.name.kind?void 0:{kind:2,importClauseOrBindingPattern:a.name,importKind:o,moduleSpecifier:a.initializer.arguments[0].text,addAsTypeOnly:4};var l=a.importClause;if(l&&e.isStringLiteralLike(a.moduleSpecifier)){var d=l.name,u=l.namedBindings;if(!l.isTypeOnly||0===o&&u){var _=p(r,!1,s,c,n,i);if(!(1===o&&(d||2===_&&u)||0===o&&268===(null==u?void 0:u.kind)))return{kind:2,importClauseOrBindingPattern:l,importKind:o,moduleSpecifier:a.moduleSpecifier.text,addAsTypeOnly:_}}}}})))(m,n,u,a.getCompilerOptions());if(h)return{computedWithoutCacheCount:0,fixes:f(f([],g?[g]:e.emptyArray,!0),[h],!1)};var y=((t,r,n,i,a,o,s,c,l,d)=>{var u=e.firstDefined(r,(t=>((t,r,n,i,a)=>{var o,s=t.declaration,c=t.importKind,l=t.symbol,d=t.targetFlags,u=null===(o=e.tryGetModuleSpecifierFromDeclaration(s))||void 0===o?void 0:o.text;if(u)return{kind:3,moduleSpecifier:u,importKind:c,addAsTypeOnly:n?4:p(r,!0,l,d,i,a),useRequire:n}})(t,o,s,n.getTypeChecker(),n.getCompilerOptions())));return u?{fixes:[u]}:((t,r,n,i,a,o,s,c,l)=>{var d=e.isSourceFileJS(r),u=t.getCompilerOptions(),_=e.createModuleSpecifierResolutionHost(t,s),f=e.memoizeOne((e=>e?s.getPackageJsonAutoImportProvider().getTypeChecker():t.getTypeChecker())),m=e.moduleResolutionUsesNodeModules(e.getEmitModuleResolutionKind(u)),g=l?t=>({moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(t,r,_,c),computedWithoutCache:!1}):(t,n)=>e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(t,n,u,r,_,c),h=0,y=e.flatMap(o,((t,o)=>{var s=f(t.isFromPackageJson),c=g(t.moduleSymbol,s),l=c.computedWithoutCache,_=c.moduleSpecifiers,y=!!(111551&t.targetFlags),v=p(i,!0,t.symbol,t.targetFlags,s,u);return h+=l?1:0,e.mapDefined(_,(i=>m&&e.pathContainsNodeModules(i)?void 0:!y&&d&&void 0!==n?{kind:1,moduleSpecifier:i,position:n,exportInfo:t,isReExport:o>0}:{kind:3,moduleSpecifier:i,importKind:x(r,t.exportKind,u),useRequire:a,addAsTypeOnly:v,exportInfo:t,isReExport:o>0}))}));return{computedWithoutCacheCount:h,fixes:y}})(n,i,a,o,s,t,c,l,d)})(t,m,a,o,null==r?void 0:r.position,n,i,s,c,d),v=y.fixes,b=y.computedWithoutCacheCount;return{computedWithoutCacheCount:void 0===b?0:b,fixes:f(f([],g?[g]:e.emptyArray,!0),v,!0)}}function p(e,t,r,n,i,a){return e?t&&2===a.importsNotUsedAsValues?2:!a.isolatedModules||!a.preserveValueImports||111551&n&&!i.getTypeOnlyAliasDeclaration(r)?1:2:4}function _(t,r,n){for(var i,a=0,o=r.imports;a<o.length;a++){var s=o[a],c=e.importFromModuleSpecifier(s);if(e.isVariableDeclarationInitializedToRequire(c.parent))(l=t.resolveExternalModuleName(s))&&(i||(i=e.createMultiMap())).add(e.getSymbolId(l),c.parent);else if(266===c.kind||265===c.kind){var l;(l=t.getSymbolAtLocation(s))&&(i||(i=e.createMultiMap())).add(e.getSymbolId(l),c)}}return{getImportsForExportInfo(t){var a=t.moduleSymbol,o=t.exportKind,s=t.targetFlags,c=t.symbol;if(!(111551&s)&&e.isSourceFileJS(r))return e.emptyArray;var l=null==i?void 0:i.get(e.getSymbolId(a));if(!l)return e.emptyArray;var d=x(r,o,n);return l.map((e=>({declaration:e,importKind:d,symbol:c,targetFlags:s})))}}}function g(t,r){if(!e.isSourceFileJS(t))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;var n=r.getCompilerOptions();if(n.configFile)return e.getEmitModuleKind(n)<e.ModuleKind.ES2015;for(var i=0,a=r.getSourceFiles();i<a.length;i++){var o=a[i];if(o!==t&&e.isSourceFileJS(o)&&!r.isSourceFileFromExternalLibrary(o)){if(o.commonJsModuleIndicator&&!o.externalModuleIndicator)return!0;if(o.externalModuleIndicator&&!o.commonJsModuleIndicator)return!1}}return!0}function h(t,r,n,i){var a,o=e.getTokenAtPosition(t.sourceFile,n);if(r===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)a=((t,r)=>{var n,i=t.sourceFile,a=t.program,o=t.host,s=t.preferences,c=a.getTypeChecker(),l=((t,r)=>{var n=e.isIdentifier(t)?r.getSymbolAtLocation(t):void 0;if(e.isUMDExportSymbol(n))return n;var i=t.parent;return e.isJsxOpeningLikeElement(i)&&i.tagName===t||e.isJsxOpeningFragment(i)?e.tryCast(r.resolveName(r.getJsxNamespace(i),e.isJsxOpeningLikeElement(i)?t:i,111551,!1),e.isUMDExportSymbol):void 0})(r,c);if(l){var d=c.getAliasedSymbol(l),p=l.name,_=[{symbol:l,moduleSymbol:d,moduleFileName:void 0,exportKind:3,targetFlags:d.flags,isFromPackageJson:!1}],f=g(i,a),m=e.isIdentifier(r)?r.getStart(i):void 0;return{fixes:u(_,m?{position:m,symbolName:p}:void 0,!1,f,a,i,o,s).fixes,symbolName:p,errorIdentifierText:null===(n=e.tryCast(r,e.isIdentifier))||void 0===n?void 0:n.text}}})(t,o);else{if(!e.isIdentifier(o))return;if(r===e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){var s=S(t.sourceFile,t.program.getTypeChecker(),o,t.program.getCompilerOptions()),c=D(t.sourceFile,o,s,t.program);return c&&{fixes:[c],symbolName:s,errorIdentifierText:o.text}}a=((t,r,n)=>{var i=t.sourceFile,a=t.program,o=t.cancellationToken,s=t.host,c=t.preferences,l=a.getTypeChecker(),d=a.getCompilerOptions(),p=S(i,l,r,d);if("default"!==p){var _=e.isValidTypeOnlyAliasUseSite(r),f=g(i,a),m=((t,r,n,i,a,o,s,c,l)=>{var d,u=e.createMultiMap(),p=e.createPackageJsonImportFilter(a,l,c),_=null===(d=c.getModuleSpecifierCache)||void 0===d?void 0:d.call(c),f=e.memoizeOne((t=>e.createModuleSpecifierResolutionHost(t?c.getPackageJsonAutoImportProvider():o,c)));function m(t,r,n,i,o,s){var c=f(s);if(r&&e.isImportableFile(o,a,r,l,p,c,_)||!r&&p.allowsImportingAmbientModule(t,c)){var d=o.getTypeChecker();u.add(e.getUniqueSymbolId(n,d).toString(),{symbol:n,moduleSymbol:t,moduleFileName:null==r?void 0:r.fileName,exportKind:i,targetFlags:e.skipAlias(n,d).flags,isFromPackageJson:s})}}return e.forEachExternalModuleToImportFrom(o,c,l,s,((a,o,s,c)=>{var l=s.getTypeChecker();i.throwIfCancellationRequested();var d=s.getCompilerOptions(),u=e.getDefaultLikeExportInfo(a,l,d);u&&(u.name===t||R(a,e.getEmitScriptTarget(d),r)===t)&&M(u.symbolForMeaning,n)&&m(a,o,u.symbol,u.exportKind,s,c);var p=l.tryGetMemberInModuleExportsAndProperties(t,a);p&&M(p,n)&&m(a,o,p,0,s,c)})),u})(p,e.isJSXTagName(r),e.getMeaningFromLocation(r),o,i,a,n,s,c);return{fixes:e.arrayFrom(e.flatMapIterator(m.entries(),(e=>u(e[1],{symbolName:p,position:r.getStart(i)},_,f,a,i,s,c).fixes))),symbolName:p,errorIdentifierText:r.text}}})(t,o,i)}var l=e.createPackageJsonImportFilter(t.sourceFile,t.preferences,t.host);return a&&m(m({},a),{fixes:y(a.fixes,t.sourceFile,t.program,l,t.host)})}function y(t,r,n,i,a){var o=t=>e.toPath(t,a.getCurrentDirectory(),e.hostGetCanonicalFileName(a));return e.sort(t,((t,a)=>e.compareValues(t.kind,a.kind)||b(t,a,r,n,i.allowsImportingSpecifier,o)))}function v(t,r,n,i,a){if(e.some(t))return 0===t[0].kind||2===t[0].kind?t[0]:t.reduce(((t,o)=>-1===b(o,t,r,n,i.allowsImportingSpecifier,(t=>e.toPath(t,a.getCurrentDirectory(),e.hostGetCanonicalFileName(a))))?o:t))}function b(t,r,n,i,a,o){return 0!==t.kind&&0!==r.kind?e.compareBooleans(a(r.moduleSpecifier),a(t.moduleSpecifier))||((t,r,n,i)=>e.startsWith(t,"node:")&&!e.startsWith(r,"node:")?e.shouldUseUriStyleNodeCoreModules(n,i)?-1:1:e.startsWith(r,"node:")&&!e.startsWith(t,"node:")?e.shouldUseUriStyleNodeCoreModules(n,i)?1:-1:0)(t.moduleSpecifier,r.moduleSpecifier,n,i)||e.compareBooleans(E(t,n,i.getCompilerOptions(),o),E(r,n,i.getCompilerOptions(),o))||e.compareNumberOfDirectorySeparators(t.moduleSpecifier,r.moduleSpecifier):0}function E(t,r,n,i){var a,o;if(t.isReExport&&(null===(a=t.exportInfo)||void 0===a?void 0:a.moduleFileName)&&e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs&&(o=t.exportInfo.moduleFileName,"index"===e.getBaseFileName(o,[".js",".jsx",".d.ts",".ts",".tsx"],!0))){var s=i(e.getDirectoryPath(t.exportInfo.moduleFileName));return e.startsWith(r.path,s)}return!1}function x(t,r,n,i){switch(r){case 0:return 0;case 1:return 1;case 2:return((t,r,n)=>{var i=e.getAllowSyntheticDefaultImports(r),a=e.isInJSFile(t);if(!a&&e.getEmitModuleKind(r)>=e.ModuleKind.ES2015)return i?1:2;if(a)return e.isExternalModule(t)||n?i?1:2:3;for(var o=0,s=t.statements;o<s.length;o++){var c=s[o];if(e.isImportEqualsDeclaration(c)&&!e.nodeIsMissing(c.moduleReference))return 3}return i?1:3})(t,n,!!i);case 3:return((t,r,n)=>{if(e.getAllowSyntheticDefaultImports(r))return 1;var i=e.getEmitModuleKind(r);switch(i){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(t)&&(e.isExternalModule(t)||n)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return t.impliedNodeFormat===e.ModuleKind.ESNext?2:3;default:return e.Debug.assertNever(i,"Unexpected moduleKind ".concat(i))}})(t,n,!!i);default:return e.Debug.assertNever(r)}}function D(t,r,n,i){var a=i.getTypeChecker(),o=a.resolveName(n,r,111551,!0);if(o){var s=a.getTypeOnlyAliasDeclaration(o);if(s&&e.getSourceFileOfNode(s)===t)return{kind:4,typeOnlyAliasDeclaration:s}}}function S(t,r,n,i){var a=n.parent;if((e.isJsxOpeningLikeElement(a)||e.isJsxClosingElement(a))&&a.tagName===n&&e.jsxModeNeedsExplicitImport(i.jsx)){var o=r.getJsxNamespace(t);if(((t,r,n)=>{if(e.isIntrinsicJsxName(r.text))return!0;var i=n.resolveName(t,r,111551,!0);return!i||e.some(i.declarations,e.isTypeOnlyImportOrExportDeclaration)&&!(111551&i.flags)})(o,n,r))return o}return n.text}function T(r,n,a,o,s,c,l){var d,u=e.textChanges.ChangeTracker.with(r,(t=>{d=((t,r,n,i,a,o,s)=>{switch(i.kind){case 0:return k(t,r,i),[e.Diagnostics.Change_0_to_1,n,"".concat(i.namespacePrefix,".").concat(n)];case 1:return N(t,r,i,o),[e.Diagnostics.Change_0_to_1,n,w(i.moduleSpecifier,o)+n];case 2:var c=i.importClauseOrBindingPattern,l=i.importKind,d=i.addAsTypeOnly,u=i.moduleSpecifier;A(t,r,c,1===l?{name:n,addAsTypeOnly:d}:void 0,0===l?[{name:n,addAsTypeOnly:d}]:e.emptyArray,s);var p=e.stripQuotes(u);return a?[e.Diagnostics.Import_0_from_1,n,p]:[e.Diagnostics.Update_import_from_0,p];case 3:l=i.importKind,u=i.moduleSpecifier,d=i.addAsTypeOnly;var _=i.useRequire?I:P,f=1===l?{name:n,addAsTypeOnly:d}:void 0,m=0===l?[{name:n,addAsTypeOnly:d}]:void 0,g=2===l||3===l?{importKind:l,name:n,addAsTypeOnly:d}:void 0;return e.insertImports(t,r,_(u,o,f,m,g),!0),a?[e.Diagnostics.Import_0_from_1,n,u]:[e.Diagnostics.Add_import_from_0,u];case 4:var h=((t,r,n,i)=>{var a=n.preserveValueImports&&n.isolatedModules;switch(r.kind){case 270:if(r.isTypeOnly){if(r.parent.elements.length>1&&e.OrganizeImports.importSpecifiersAreSorted(r.parent.elements)){t.delete(i,r);var o=e.factory.updateImportSpecifier(r,!1,r.propertyName,r.name),s=e.OrganizeImports.getImportSpecifierInsertionIndex(r.parent.elements,o);t.insertImportSpecifierAtIndex(i,o,r.parent,s)}else t.deleteRange(i,r.getFirstToken());return r}return e.Debug.assert(r.parent.parent.isTypeOnly),c(r.parent.parent),r.parent.parent;case 267:return c(r),r;case 268:return c(r.parent),r.parent;case 265:return t.deleteRange(i,r.getChildAt(1)),r;default:e.Debug.failBadSyntaxKind(r)}function c(n){if(t.delete(i,e.getTypeKeywordOfTypeOnlyImport(n,i)),a){var o=e.tryCast(n.namedBindings,e.isNamedImports);if(o&&o.elements.length>1){e.OrganizeImports.importSpecifiersAreSorted(o.elements)&&270===r.kind&&0!==o.elements.indexOf(r)&&(t.delete(i,r),t.insertImportSpecifierAtIndex(i,r,o,0));for(var s=0,c=o.elements;s<c.length;s++){var l=c[s];l===r||l.isTypeOnly||t.insertModifierBefore(i,152,l)}}}}})(t,i.typeOnlyAliasDeclaration,s,r);return 270===h.kind?[e.Diagnostics.Remove_type_from_import_of_0_from_1,n,C(h.parent.parent)]:[e.Diagnostics.Remove_type_from_import_declaration_from_0,C(h)];default:return e.Debug.assertNever(i,"Unexpected fix kind ".concat(i.kind))}})(t,n,a,o,s,c,l)}));return t.createCodeFixAction(t.importFixName,u,d,i,e.Diagnostics.Add_all_missing_imports)}function C(t){var r,n;return 265===t.kind?(null===(n=e.tryCast(null===(r=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===r?void 0:r.expression,e.isStringLiteralLike))||void 0===n?void 0:n.text)||t.moduleReference.getText():e.cast(t.parent.moduleSpecifier,e.isStringLiteral).text}function A(t,r,n,i,a,o){var s;if(201!==n.kind){var c=n.isTypeOnly&&e.some(f([i],a,!0),(e=>4===(null==e?void 0:e.addAsTypeOnly))),l=n.namedBindings&&(null===(s=e.tryCast(n.namedBindings,e.isNamedImports))||void 0===s?void 0:s.elements),d=c&&o.preserveValueImports&&o.isolatedModules;if(i&&(e.Debug.assert(!n.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(r,n.getStart(r),e.factory.createIdentifier(i.name),{suffix:", "})),a.length){var u=e.stableSort(a.map((t=>e.factory.createImportSpecifier((!n.isTypeOnly||c)&&F(t),void 0,e.factory.createIdentifier(t.name)))),e.OrganizeImports.compareImportOrExportSpecifiers);if((null==l?void 0:l.length)&&e.OrganizeImports.importSpecifiersAreSorted(l))for(var p=0,_=u;p<_.length;p++){var m=_[p],g=d&&!m.isTypeOnly?0:e.OrganizeImports.getImportSpecifierInsertionIndex(l,m);t.insertImportSpecifierAtIndex(r,m,n.namedBindings,g)}else if(null==l?void 0:l.length)for(var h=0,y=u;h<y.length;h++)m=y[h],t.insertNodeInListAfter(r,e.last(l),m,l);else if(u.length){var v=e.factory.createNamedImports(u);n.namedBindings?t.replaceNode(r,n.namedBindings,v):t.insertNodeAfter(r,e.Debug.checkDefined(n.name,"Import clause must have either named imports or a default import"),v)}}if(c&&(t.delete(r,e.getTypeKeywordOfTypeOnlyImport(n,r)),d&&l))for(var b=0,E=l;b<E.length;b++)S=E[b],t.insertModifierBefore(r,152,S)}else{i&&T(n,i.name,"default");for(var x=0,D=a;x<D.length;x++){var S=D[x];T(n,S.name,void 0)}}function T(n,i,a){var o=e.factory.createBindingElement(void 0,a,i);n.elements.length?t.insertNodeInListAfter(r,e.last(n.elements),o):t.replaceNode(r,n,e.factory.createObjectBindingPattern([o]))}}function k(e,t,r){var n=r.namespacePrefix,i=r.position;e.insertText(t,i,n+".")}function N(e,t,r,n){var i=r.moduleSpecifier,a=r.position;e.insertText(t,a,w(i,n))}function w(t,r){var n=e.getQuoteFromPreference(r);return"import(".concat(n).concat(t).concat(n,").")}function F(e){return 2===e.addAsTypeOnly}function P(t,r,n,i,a){var o,s=e.makeStringLiteral(t,r);if(void 0!==n||(null==i?void 0:i.length)){var c=(!n||F(n))&&e.every(i,F);o=e.combine(o,e.makeImport(n&&e.factory.createIdentifier(n.name),null==i?void 0:i.map((t=>{var r=t.addAsTypeOnly,n=t.name;return e.factory.createImportSpecifier(!c&&2===r,void 0,e.factory.createIdentifier(n))})),t,r,c))}if(a){var l=3===a.importKind?e.factory.createImportEqualsDeclaration(void 0,F(a),e.factory.createIdentifier(a.name),e.factory.createExternalModuleReference(s)):e.factory.createImportDeclaration(void 0,e.factory.createImportClause(F(a),void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(a.name))),s,void 0);o=e.combine(o,l)}return e.Debug.checkDefined(o)}function I(t,r,n,i,a){var o,s=e.makeStringLiteral(t,r);if(n||(null==i?void 0:i.length)){var c=(null==i?void 0:i.map((t=>{var r=t.name;return e.factory.createBindingElement(void 0,void 0,r)})))||[];n&&c.unshift(e.factory.createBindingElement(void 0,"default",n.name));var l=O(e.factory.createObjectBindingPattern(c),s);o=e.combine(o,l)}return a&&(l=O(a.name,s),o=e.combine(o,l)),e.Debug.checkDefined(o)}function O(t,r){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration("string"==typeof t?e.factory.createIdentifier(t):t,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[r]))],2))}function M(t,r){var n=t.declarations;return e.some(n,(t=>!!(e.getMeaningFromDeclaration(t)&r)))}function R(t,r,n){return L(e.removeFileExtension(e.stripQuotes(t.name)),r,n)}function L(t,r,n){var i=e.getBaseFileName(e.removeSuffix(t,"/index")),a="",o=!0,s=i.charCodeAt(0);e.isIdentifierStart(s,r)?(a+=String.fromCharCode(s),n&&(a=a.toUpperCase())):o=!1;for(var c=1;c<i.length;c++){var l=i.charCodeAt(c),d=e.isIdentifierPart(l,r);if(d){var u=String.fromCharCode(l);o||(u=u.toUpperCase()),a+=u}o=d}return e.isStringANonContextualKeyword(a)?"_".concat(a):a||"_"}t.registerCodeFix({errorCodes:a,getCodeActions(t){var r=t.errorCode,n=t.preferences,i=t.sourceFile,a=t.span,o=t.program,s=h(t,r,a.start,!0);if(s){var c=s.fixes,l=s.symbolName,d=s.errorIdentifierText,u=e.getQuotePreference(i,n);return c.map((e=>T(t,i,l,e,l!==d,u,o.getCompilerOptions())))}},fixIds:[i],getAllCodeActions(r){var n=o(r.sourceFile,r.program,!0,r.preferences,r.host);return t.eachDiagnostic(r,a,(e=>n.addImportFromDiagnostic(e,r))),t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,n.writeFixes))}}),t.createImportAdder=(e,t,r,n)=>o(e,t,!1,r,n),t.createImportSpecifierResolver=(t,r,n,i)=>{var a=e.createPackageJsonImportFilter(t,i,n),o=_(r.getTypeChecker(),t,r.getCompilerOptions());return{getModuleSpecifierForBestExportInfo(e,s,c,l,d){var p=u(e,{symbolName:s,position:c},l,!1,r,t,n,i,o,d),_=p.fixes,f=p.computedWithoutCacheCount,g=v(_,t,r,a,n);return g&&m(m({},g),{computedWithoutCacheCount:f})}}},(e=>{e[e.UseNamespace=0]="UseNamespace",e[e.JsdocTypeImport=1]="JsdocTypeImport",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew",e[e.PromoteTypeOnly=4]="PromoteTypeOnly"})(r||(r={})),(e=>{e[e.Allowed=1]="Allowed",e[e.Required=2]="Required",e[e.NotAllowed=4]="NotAllowed"})(n||(n={})),t.getImportCompletionAction=(t,r,n,i,a,o,u,p,_,f)=>{var m=u.getCompilerOptions(),h=e.pathIsBareSpecifier(e.stripQuotes(r.name))?[l(t,r,u,o)]:d(n,t,r,i,a,o,u,f,!0),y=g(n,u),v=e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(n,_)),b=e.Debug.checkDefined(s(n,h,r,u,{symbolName:i,position:_},v,y,o,f));return{moduleSpecifier:b.moduleSpecifier,codeAction:c(T({host:o,formatContext:p,preferences:f},n,i,b,!1,e.getQuotePreference(n,f),m))}},t.getPromoteTypeOnlyCompletionAction=(e,t,r,n,i,a)=>{var o=r.getCompilerOptions(),s=S(e,r.getTypeChecker(),t,o),l=D(e,t,s,r),d=s!==t.text;return l&&c(T({host:n,formatContext:i,preferences:a},e,s,l,d,1,o))},t.getImportKind=x,t.moduleSymbolToValidIdentifier=R,t.moduleSpecifierToValidIdentifier=L})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="addMissingConstraint",n=[e.Diagnostics.Type_0_is_not_comparable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.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_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Property_0_is_incompatible_with_index_signature.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code];function i(t,r,n){var i,a,o,s,c=e.find(t.getSemanticDiagnostics(r),(e=>e.start===n.start&&e.length===n.length));if(void 0!==c&&void 0!==c.relatedInformation){var l=e.find(c.relatedInformation,(t=>t.code===e.Diagnostics.This_type_parameter_might_need_an_extends_0_constraint.code));if(void 0!==l&&void 0!==l.file&&void 0!==l.start&&void 0!==l.length){var d=((t,r)=>{for(var n=e.textSpanEnd(r),i=e.getTokenAtPosition(t,r.start);i.end<n;)i=i.parent;return i})(l.file,e.createTextSpan(l.start,l.length));if(void 0!==d&&(e.isIdentifier(d)&&e.isTypeParameterDeclaration(d.parent)&&(d=d.parent),e.isTypeParameterDeclaration(d))){if(e.isMappedTypeNode(d.parent))return;var u=e.getTokenAtPosition(r,n.start);return{constraint:(o=t.getTypeChecker(),s=u,(e.isTypeNode(s.parent)?o.getTypeArgumentConstraint(s.parent):(e.isExpression(s)?o.getContextualType(s):void 0)||o.getTypeAtLocation(s))||(i=l.messageText,a=e.flattenDiagnosticMessageText(i,"\n",0).match(/`extends (.*)`/)||[],a[1])),declaration:d,token:u}}}}}function a(r,n,i,a,o,s){var c=s.declaration,l=s.constraint,d=n.getTypeChecker();if(e.isString(l))r.insertText(o,c.name.end," extends ".concat(l));else{var u=e.getEmitScriptTarget(n.getCompilerOptions()),p=t.getNoopSymbolTrackerWithResolver({program:n,host:a}),_=t.createImportAdder(o,n,i,a),f=t.typeToAutoImportableTypeNode(d,_,l,void 0,u,void 0,p);f&&(r.replaceNode(o,c,e.factory.updateTypeParameterDeclaration(c,void 0,c.name,f,c.default)),_.writeFixes(r))}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=n.program,l=n.preferences,d=n.host,u=i(c,o,s);if(void 0!==u){var p=e.textChanges.ChangeTracker.with(n,(e=>a(e,c,l,d,o,u)));return[t.createCodeFixAction(r,p,e.Diagnostics.Add_extends_constraint,r,e.Diagnostics.Add_extends_constraint_to_all_type_parameters)]}},fixIds:[r],getAllCodeActions(r){var o=r.program,s=r.preferences,c=r.host,l=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(d=>{t.eachDiagnostic(r,n,(t=>{var r=i(o,t.file,e.createTextSpan(t.start,t.length));if(r&&e.addToSeen(l,e.getNodeId(r.declaration)))return a(d,o,s,c,t.file,r)}))})))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r,n="fixOverrideModifier",i="fixAddOverrideModifier",a="fixRemoveOverrideModifier",o=[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],s=((r={})[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},r[e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},r[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:a,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},r[e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:a,fixAllDescriptions:e.Diagnostics.Remove_override_modifier},r[e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},r[e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},r[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},r[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:a,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},r[e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:a,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},r);function c(t,r,n,i){switch(n){case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return((t,r,n)=>{var i=d(r,n);if(e.isSourceFileJS(r))t.addJSDocTags(r,i,[e.factory.createJSDocOverrideTag(e.factory.createIdentifier("override"))]);else{var a=i.modifiers||e.emptyArray,o=e.find(a,e.isStaticModifier),s=e.find(a,e.isAbstractModifier),c=e.find(a,(t=>e.isAccessibilityModifier(t.kind))),l=e.findLast(a,e.isDecorator),u=s?s.end:o?o.end:c?c.end:l?e.skipTrivia(r.text,l.end):i.getStart(r),p=c||o||s?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,u,159,p)}})(t,r.sourceFile,i);case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return((t,r,n)=>{var i=d(r,n);if(e.isSourceFileJS(r))t.filterJSDocTags(r,i,e.not(e.isJSDocOverrideTag));else{var a=e.find(i.modifiers,e.isOverrideModifier);e.Debug.assertIsDefined(a),t.deleteModifier(r,a)}})(t,r.sourceFile,i);default:e.Debug.fail("Unexpected error code: "+n)}}function l(t){switch(t.kind){case 171:case 167:case 169:case 172:case 173:return!0;case 164:return e.isParameterPropertyDeclaration(t,t.parent);default:return!1}}function d(t,r){var n=e.getTokenAtPosition(t,r),i=e.findAncestor(n,(t=>e.isClassLike(t)?"quit":l(t)));return e.Debug.assert(i&&l(i)),i}t.registerCodeFix({errorCodes:o,getCodeActions(r){var i=r.errorCode,a=r.span,o=s[i];if(!o)return e.emptyArray;var l=o.descriptions,d=o.fixId,u=o.fixAllDescriptions,p=e.textChanges.ChangeTracker.with(r,(e=>c(e,r,i,a.start)));return[t.createCodeFixActionMaybeFixAll(n,p,l,d,u)]},fixIds:[n,i,a],getAllCodeActions:e=>t.codeFixAll(e,o,((t,r)=>{var n=r.code,i=r.start,a=s[n];a&&a.fixId===e.fixId&&c(t,e,n,i)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixNoPropertyAccessFromIndexSignature",n=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function i(t,r,n,i){var a=e.getQuotePreference(r,i),o=e.factory.createStringLiteral(n.name.text,0===a);t.replaceNode(r,n,e.isPropertyAccessChain(n)?e.factory.createElementAccessChain(n.expression,n.questionDotToken,o):e.factory.createElementAccessExpression(n.expression,o))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isPropertyAccessExpression)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions(n){var o=n.sourceFile,s=n.span,c=n.preferences,l=a(o,s.start),d=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,l,c)));return[t.createCodeFixAction(r,d,[e.Diagnostics.Use_element_access_for_0,l.name.text],r,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>i(t,r.file,a(r.file,r.start),e.preferences)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixImplicitThis",n=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(e.isThis(a)){var o=e.getThisContainer(a,!1);if((e.isFunctionDeclaration(o)||e.isFunctionExpression(o))&&!e.isSourceFile(e.getThisContainer(o,!1))){var s=e.Debug.checkDefined(e.findChildOfKind(o,98,r)),c=o.name,l=e.Debug.checkDefined(o.body);if(e.isFunctionExpression(o)){if(c&&e.FindAllReferences.Core.isSymbolReferencedInFile(c,i,r,l))return;return t.delete(r,s),c&&t.delete(r,c),t.insertText(r,l.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(r,s,e.factory.createToken(85)),t.insertText(r,c.end," = "),t.insertText(r,l.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a,o=n.sourceFile,s=n.program,c=n.span,l=e.textChanges.ChangeTracker.with(n,(e=>{a=i(e,o,c.start,s.getTypeChecker())}));return a?[t.createCodeFixAction(r,l,a,r,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{i(t,r.file,r.start,e.program.getTypeChecker())}))})})(e.codefix||(e.codefix={}))})(p),(e=>{var t,r,n;t=e.codefix||(e.codefix={}),r="fixIncorrectNamedTupleSyntax",n=[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],t.registerCodeFix({errorCodes:n,getCodeActions(n){var i=n.sourceFile,a=n.span,o=((t,r)=>{var n=e.getTokenAtPosition(t,r);return e.findAncestor(n,(e=>197===e.kind))})(i,a.start),s=e.textChanges.ChangeTracker.with(n,(t=>((t,r,n)=>{if(n){for(var i=n.type,a=!1,o=!1;185===i.kind||186===i.kind||191===i.kind;)185===i.kind?a=!0:186===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,o)));return[t.createCodeFixAction(r,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,r,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r]})})(p),(e=>{!(t=>{var r="fixSpelling",n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_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._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function i(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.isMemberName(a),"Expected an identifier for spelling (property access)");var l=c.getTypeAtLocation(o.expression);32&o.flags&&(l=c.getNonNullableType(l)),s=c.getSuggestedSymbolForNonexistentProperty(a,l)}else if(e.isBinaryExpression(o)&&101===o.operatorToken.kind&&o.left===a&&e.isPrivateIdentifier(a)){var d=c.getTypeAtLocation(o.right);s=c.getSuggestedSymbolForNonexistentProperty(a,d)}else if(e.isQualifiedName(o)&&o.right===a){var u=c.getSymbolAtLocation(o.left);u&&1536&u.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,u))}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var p=((t,r,n)=>{if(n&&e.isStringLiteralLike(n.moduleSpecifier)){var i=e.getResolvedModule(t,n.moduleSpecifier.text,e.getModeForUsageLocation(t,n.moduleSpecifier));return i?r.program.getSourceFile(i.resolvedFileName):void 0}})(t,n,e.findAncestor(a,e.isImportDeclaration));p&&p.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,p.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),f=c.getContextualTypeForArgumentAtIndex(_,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,f)}else if(e.hasSyntacticModifier(o,16384)&&e.isClassElement(o)&&o.name===a){var m=e.findAncestor(a,e.isClassLike),g=m?e.getEffectiveBaseTypeNode(m):void 0,h=g?c.getTypeAtLocation(g):void 0;h&&(s=c.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(a),h))}else{var y=e.getMeaningFromLocation(a),v=e.getTextOfNode(a);e.Debug.assert(void 0!==v,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,v,(e=>{var t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t})(y))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function a(t,r,n,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(n.parent)){var s=i.valueDeclaration;s&&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:n,getCodeActions(n){var o=n.sourceFile,s=n.errorCode,c=i(o,n.span.start,n,s);if(c){var l=c.node,d=c.suggestedSymbol,u=e.getEmitScriptTarget(n.host.getCompilationSettings()),p=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,l,d,u)));return[t.createCodeFixAction("spelling",p,[e.Diagnostics.Change_spelling_to_0,e.symbolName(d)],r,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[r],getAllCodeActions:r=>t.codeFixAll(r,n,((t,n)=>{var o=i(n.file,n.start,r,n.code),s=e.getEmitScriptTarget(r.host.getCompilationSettings());o&&a(t,r.sourceFile,o.node,o.suggestedSymbol,s)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r,n="returnValueCorrect",i="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",o="fixWrapTheBlockWithParen",s=[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 c(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,[],[],[])}function l(t,n,i,a){if(n.body&&e.isBlock(n.body)&&1===e.length(n.body.statements)){var o=e.first(n.body.statements);if(e.isExpressionStatement(o)&&d(t,n,t.getTypeAtLocation(o.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:o.expression,statement:o,commentSource:o.expression};if(e.isLabeledStatement(o)&&e.isExpressionStatement(o.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(d(t,n,c(t,o.label,o.statement.expression),i,a))return e.isArrowFunction(n)?{declaration:n,kind:r.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var l=e.first(o.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)&&(s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]),d(t,n,c(t,l.label,l.statement.expression),i,a)))return{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:l}}}}function d(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],[],[])}else n=t.getAnyType()}return t.isTypeAssignableTo(n,i)}function u(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(a.parent){var o=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(!(o&&o.body&&o.type&&e.rangeContainsRange(o.type,a)))return;return l(t,o,t.getTypeFromTypeNode(o.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!e.isCallExpression(o.parent)||!o.body)return;var s=o.parent.arguments.indexOf(o),c=t.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return l(t,o,c,!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 d=(t=>{switch(t.kind){case 254:case 164:case 203:case 167:case 296:return t.initializer;case 285:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 297:case 166:case 299:case 347:case 340:return}})(a.parent);if(!d||!e.isFunctionLikeDeclaration(d)||!d.body)return;return l(t,d,t.getTypeAtLocation(a.parent),!0)}}}function p(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 _(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 f(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function m(r,a,o){var s=e.textChanges.ChangeTracker.with(r,(e=>p(e,r.sourceFile,a,o)));return t.createCodeFixAction(n,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function g(r,i,a){var s=e.textChanges.ChangeTracker.with(r,(e=>f(e,r.sourceFile,i,a)));return t.createCodeFixAction(n,s,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,o,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!(e=>{e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"})(r||(r={})),t.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions(i){var o=i.program,s=i.sourceFile,c=i.span.start,l=i.errorCode,d=u(o.getTypeChecker(),s,c,l);if(d)return d.kind===r.MissingReturnStatement?e.append([m(i,d.expression,d.statement)],e.isArrowFunction(d.declaration)?((r,i,o,s)=>{var c=e.textChanges.ChangeTracker.with(r,(e=>_(e,r.sourceFile,i,o,s,!1)));return t.createCodeFixAction(n,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)})(i,d.declaration,d.expression,d.commentSource):void 0):[g(i,d.declaration,d.expression)]},getAllCodeActions:r=>t.codeFixAll(r,s,((t,n)=>{var s=u(r.program.getTypeChecker(),n.file,n.start,n.code);if(s)switch(r.fixId){case i:p(t,n.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;_(t,n.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;f(t,n.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r,n="fixMissingMember",i="fixMissingProperties",a="fixMissingAttributes",o="fixMissingFunctionDeclaration",s=[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,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];function c(t,r,n,i,a){var o=e.getTokenAtPosition(t,r),s=o.parent;if(n===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(18!==o.kind||!e.isObjectLiteralExpression(s)||!e.isCallExpression(s.parent))return;var c=e.findIndex(s.parent.arguments,(e=>e===s));if(c<0)return;var d=e.singleOrUndefined(i.getSignaturesOfType(i.getTypeAtLocation(s.parent.expression),0));if(!(d&&d.declaration&&d.parameters[c]))return;var u=d.parameters[c].valueDeclaration;if(!(u&&e.isParameter(u)&&e.isIdentifier(u.name)))return;var p=e.arrayFrom(i.getUnmatchedProperties(i.getTypeAtLocation(s),i.getParameterType(d,c),!1,!1));if(!e.length(p))return;return{kind:3,token:u.name,properties:p,parentDeclaration:s}}if(e.isMemberName(o)){if(e.isIdentifier(o)&&e.hasInitializer(s)&&s.initializer&&e.isObjectLiteralExpression(s.initializer)){if(p=e.arrayFrom(i.getUnmatchedProperties(i.getTypeAtLocation(s.initializer),i.getTypeAtLocation(o),!1,!1)),!e.length(p))return;return{kind:3,token:o,properties:p,parentDeclaration:s.initializer}}if(e.isIdentifier(o)&&e.isJsxOpeningLikeElement(o.parent)){var _=((t,r,n)=>{var i=t.getContextualType(n.attributes);if(void 0===i)return e.emptyArray;var a=i.getProperties();if(!e.length(a))return e.emptyArray;for(var o=new e.Set,s=0,c=n.attributes.properties;s<c.length;s++){var l=c[s];if(e.isJsxAttribute(l)&&o.add(l.name.escapedText),e.isJsxSpreadAttribute(l))for(var d=0,u=t.getTypeAtLocation(l.expression).getProperties();d<u.length;d++){var p=u[d];o.add(p.escapedName)}}return e.filter(a,(t=>e.isIdentifierText(t.name,r,1)&&!(16777216&t.flags||48&e.getCheckFlags(t)||o.has(t.escapedName))))})(i,e.getEmitScriptTarget(a.getCompilerOptions()),o.parent);if(!e.length(_))return;return{kind:4,token:o,attributes:_,parentDeclaration:o.parent}}if(e.isIdentifier(o)&&e.isCallExpression(s)&&s.expression===o)return{kind:2,token:o,call:s,sourceFile:t,modifierFlags:0,parentDeclaration:t};if(e.isPropertyAccessExpression(s)){var f=e.skipConstraint(i.getTypeAtLocation(s.expression)),m=f.symbol;if(m&&m.declarations){if(e.isIdentifier(o)&&e.isCallExpression(s.parent)){var g=e.find(m.declarations,e.isModuleDeclaration),h=null==g?void 0:g.getSourceFile();if(g&&h&&!l(a,h))return{kind:2,token:o,call:s.parent,sourceFile:t,modifierFlags:1,parentDeclaration:g};var y=e.find(m.declarations,e.isSourceFile);if(t.commonJsModuleIndicator)return;if(y&&!l(a,y))return{kind:2,token:o,call:s.parent,sourceFile:y,modifierFlags:1,parentDeclaration:y}}var v=e.find(m.declarations,e.isClassLike);if(v||!e.isPrivateIdentifier(o)){var b=v||e.find(m.declarations,(t=>e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)));if(b&&!l(a,b.getSourceFile())){var E=!e.isTypeLiteralNode(b)&&(f.target||f)!==i.getDeclaredTypeOfSymbol(m);if(E&&(e.isPrivateIdentifier(o)||e.isInterfaceDeclaration(b)))return;var x=b.getSourceFile(),D=e.isTypeLiteralNode(b)?0:(E?32:0)|(e.startsWithUnderscore(o.text)?8:0),S=e.isSourceFileJS(x);return{kind:0,token:o,call:e.tryCast(s.parent,e.isCallExpression),modifierFlags:D,parentDeclaration:b,declSourceFile:x,isJSFile:S}}var T=e.find(m.declarations,e.isEnumDeclaration);return!T||e.isPrivateIdentifier(o)||l(a,T.getSourceFile())?void 0:{kind:1,token:o,parentDeclaration:T}}}}}}function l(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function d(t,r,n,i,a){var o=i.text;if(a){if(226===n.kind)return;var s=n.name.getText(),c=u(e.factory.createIdentifier(s),o);t.insertNodeAfter(r,n,c)}else if(e.isPrivateIdentifier(i)){var l=e.factory.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),d=m(n);d?t.insertNodeAfter(r,d,l):t.insertMemberAtStart(r,n,l)}else{var p=e.getFirstConstructorWithBody(n);if(!p)return;var _=u(e.factory.createThis(),o);t.insertNodeAtConstructorEnd(r,p,_)}}function u(t,r){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(t,r),x()))}function p(t,r,n){var i;if(221===n.parent.parent.kind){var a=n.parent.parent,o=n.parent===a.left?a.right:a.left,s=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(o)));i=t.typeToTypeNode(s,r,1)}else{var c=t.getContextualType(n.parent);i=c?t.typeToTypeNode(c,void 0,1):void 0}return i||e.factory.createKeywordTypeNode(130)}function _(t,r,n,i,a,o){var s=o?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(o)):void 0,c=e.isClassLike(n)?e.factory.createPropertyDeclaration(s,i,void 0,a,void 0):e.factory.createPropertySignature(void 0,i,void 0,a),l=m(n);l?t.insertNodeAfter(r,l,c):t.insertMemberAtStart(r,n,c)}function m(t){for(var r,n=0,i=t.members;n<i.length;n++){var a=i[n];if(!e.isPropertyDeclaration(a))break;r=a}return r}function g(r,n,i,a,o,s,c){var l=t.createImportAdder(c,r.program,r.preferences,r.host),d=e.isClassLike(s)?169:168,u=t.createSignatureDeclarationFromCallExpression(d,r,l,i,a,o,s),p=((t,r)=>{if(!e.isTypeLiteralNode(t)){var n=e.findAncestor(r,(t=>e.isMethodDeclaration(t)||e.isConstructorDeclaration(t)));return n&&n.parent===t?n:void 0}})(s,i);p?n.insertNodeAfter(c,p,u):n.insertMemberAtStart(c,s,u),l.writeFixes(n)}function h(t,r,n){var i=n.token,a=n.parentDeclaration,o=e.some(a.members,(e=>{var t=r.getTypeAtLocation(e);return!!(t&&402653316&t.flags)})),s=e.factory.createEnumMember(i,o?e.factory.createStringLiteral(i.text):void 0);t.replaceNode(a.getSourceFile(),a,e.factory.updateEnumDeclaration(a,a.modifiers,a.name,e.concatenate(a.members,e.singleElementArray(s))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function y(r,n,i){var a=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),o=t.createSignatureDeclarationFromCallExpression(256,n,a,i.call,e.idText(i.token),i.modifierFlags,i.parentDeclaration);r.insertNodeAtEndOfScope(i.sourceFile,i.parentDeclaration,o),a.writeFixes(r)}function v(r,n,i){var a=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),o=e.getQuotePreference(n.sourceFile,n.preferences),s=n.program.getTypeChecker(),c=i.parentDeclaration.attributes,l=e.some(c.properties,e.isJsxSpreadAttribute),d=e.map(i.attributes,(t=>{var r=E(n,s,a,o,s.getTypeOfSymbol(t),i.parentDeclaration),c=e.factory.createIdentifier(t.name),l=e.factory.createJsxAttribute(c,e.factory.createJsxExpression(void 0,r));return e.setParent(c,l),l})),u=e.factory.createJsxAttributes(l?f(f([],d,!0),c.properties,!0):f(f([],c.properties,!0),d,!0)),p={prefix:c.pos===c.end?" ":void 0};r.replaceNode(n.sourceFile,c,u,p),a.writeFixes(r)}function b(r,n,i){var a=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),o=e.getQuotePreference(n.sourceFile,n.preferences),s=e.getEmitScriptTarget(n.program.getCompilerOptions()),c=n.program.getTypeChecker(),l=e.map(i.properties,(t=>{var r=E(n,c,a,o,c.getTypeOfSymbol(t),i.parentDeclaration);return e.factory.createPropertyAssignment(((t,r,n,i)=>{if(e.isTransientSymbol(t)&&t.nameType&&8192&t.nameType.flags){var a=i.symbolToExpression(t.nameType.symbol,111551,t.valueDeclaration,1048576);if(a)return e.factory.createComputedPropertyName(a)}return e.createPropertyNameNodeForIdentifierOrLiteral(t.name,r,0===n)})(t,s,o,c),r)})),d={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,indentation:i.indentation};r.replaceNode(n.sourceFile,i.parentDeclaration,e.factory.createObjectLiteralExpression(f(f([],i.parentDeclaration.properties,!0),l,!0),!0),d),a.writeFixes(r)}function E(r,n,i,a,o,s){if(3&o.flags)return x();if(134217732&o.flags)return e.factory.createStringLiteral("",0===a);if(8&o.flags)return e.factory.createNumericLiteral(0);if(64&o.flags)return e.factory.createBigIntLiteral("0n");if(16&o.flags)return e.factory.createFalse();if(1056&o.flags){var c=o.symbol.exports?e.firstOrUndefined(e.arrayFrom(o.symbol.exports.values())):o.symbol,l=n.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,void 0);return void 0===c||void 0===l?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(l,n.symbolToString(c))}if(256&o.flags)return e.factory.createNumericLiteral(o.value);if(2048&o.flags)return e.factory.createBigIntLiteral(o.value);if(128&o.flags)return e.factory.createStringLiteral(o.value,0===a);if(512&o.flags)return o===n.getFalseType()||o===n.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(65536&o.flags)return e.factory.createNull();if(1048576&o.flags){var d=e.firstDefined(o.types,(e=>E(r,n,i,a,e,s)));return null!=d?d:x()}if(n.isArrayLikeType(o))return e.factory.createArrayLiteralExpression();if((t=>524288&t.flags&&(128&e.getObjectFlags(t)||t.symbol&&e.tryCast(e.singleOrUndefined(t.symbol.declarations),e.isTypeLiteralNode)))(o)){var u=e.map(n.getPropertiesOfType(o),(t=>{var o=t.valueDeclaration?E(r,n,i,a,n.getTypeAtLocation(t.valueDeclaration),s):x();return e.factory.createPropertyAssignment(t.name,o)}));return e.factory.createObjectLiteralExpression(u,!0)}if(16&e.getObjectFlags(o)){if(void 0===e.find(o.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration)))return x();var p=n.getSignaturesOfType(o,0);if(void 0===p)return x();var _=t.createSignatureDeclarationFromSignature(213,r,a,p[0],t.createStubbedBody(e.Diagnostics.Function_not_implemented.message,a),void 0,void 0,void 0,s,i);return null!=_?_:x()}if(1&e.getObjectFlags(o)){var f=e.getClassLikeDeclarationOfSymbol(o.symbol);if(void 0===f||e.hasAbstractModifier(f))return x();var m=e.getFirstConstructorWithBody(f);return m&&e.length(m.parameters)?x():e.factory.createNewExpression(e.factory.createIdentifier(o.symbol.name),void 0,void 0)}return x()}function x(){return e.factory.createIdentifier("undefined")}t.registerCodeFix({errorCodes:s,getCodeActions(r){var s=r.program.getTypeChecker(),l=c(r.sourceFile,r.span.start,r.errorCode,s,r.program);if(l){if(3===l.kind){var u=e.textChanges.ChangeTracker.with(r,(e=>b(e,r,l)));return[t.createCodeFixAction(i,u,e.Diagnostics.Add_missing_properties,i,e.Diagnostics.Add_all_missing_properties)]}return 4===l.kind?(u=e.textChanges.ChangeTracker.with(r,(e=>v(e,r,l))),[t.createCodeFixAction(a,u,e.Diagnostics.Add_missing_attributes,a,e.Diagnostics.Add_all_missing_attributes)]):2===l.kind?(u=e.textChanges.ChangeTracker.with(r,(e=>y(e,r,l))),[t.createCodeFixAction(o,u,[e.Diagnostics.Add_missing_function_declaration_0,l.token.text],o,e.Diagnostics.Add_all_missing_function_declarations)]):1===l.kind?(u=e.textChanges.ChangeTracker.with(r,(e=>h(e,r.program.getTypeChecker(),l))),[t.createCodeFixAction(n,u,[e.Diagnostics.Add_missing_enum_member_0,l.token.text],n,e.Diagnostics.Add_all_missing_members)]):e.concatenate(((r,i)=>{var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,l=i.call;if(void 0!==l&&!e.isPrivateIdentifier(c)){var d=c.text,u=t=>e.textChanges.ChangeTracker.with(r,(e=>g(r,e,l,c,t,a,o))),p=[t.createCodeFixAction(n,u(32&s),[32&s?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,d],n,e.Diagnostics.Add_all_missing_members)];return 8&s&&p.unshift(t.createCodeFixActionWithoutFixAll(n,u(8),[e.Diagnostics.Declare_private_method_0,d])),p}})(r,l),((r,i)=>i.isJSFile?e.singleElementArray(((r,i)=>{var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token;if(!e.isInterfaceDeclaration(a)&&!e.isTypeLiteralNode(a)){var l=e.textChanges.ChangeTracker.with(r,(e=>d(e,o,a,c,!!(32&s))));if(0!==l.length){var u=32&s?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(c)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return t.createCodeFixAction(n,l,[u,c.text],n,e.Diagnostics.Add_all_missing_members)}}})(r,i)):((r,i)=>{var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,l=c.text,d=32&s,u=p(r.program.getTypeChecker(),a,c),f=t=>e.textChanges.ChangeTracker.with(r,(e=>_(e,o,a,l,u,t))),m=[t.createCodeFixAction(n,f(32&s),[d?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,l],n,e.Diagnostics.Add_all_missing_members)];return d||e.isPrivateIdentifier(c)||(8&s&&m.unshift(t.createCodeFixActionWithoutFixAll(n,f(8),[e.Diagnostics.Declare_private_property_0,l])),m.push(((r,i,a,o,s)=>{var c=e.factory.createKeywordTypeNode(150),l=e.factory.createParameterDeclaration(void 0,void 0,"x",void 0,c,void 0),d=e.factory.createIndexSignature(void 0,[l],s),u=e.textChanges.ChangeTracker.with(r,(e=>e.insertMemberAtStart(i,a,d)));return t.createCodeFixActionWithoutFixAll(n,u,[e.Diagnostics.Add_index_signature_for_property_0,o])})(r,o,a,c.text,u))),m})(r,i))(r,l))}},fixIds:[n,o,i,a],getAllCodeActions(r){var n=r.program,l=r.fixId,u=n.getTypeChecker(),f=new e.Map,m=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(n=>{t.eachDiagnostic(r,s,(t=>{var s=c(t.file,t.start,t.code,u,r.program);if(s&&e.addToSeen(f,e.getNodeId(s.parentDeclaration)+"#"+s.token.text))if(l===o&&2===s.kind)y(n,r,s);else if(l===i&&3===s.kind)b(n,r,s);else if(l===a&&4===s.kind)v(n,r,s);else if(1===s.kind&&h(n,u,s),0===s.kind){var d=s.parentDeclaration,p=s.token,_=e.getOrUpdate(m,d,(()=>[]));_.some((e=>e.token.text===p.text))||_.push(s)}})),m.forEach(((i,a)=>{for(var o=e.isTypeLiteralNode(a)?void 0:t.getAllSupers(a,u),s=t=>{if(null==o?void 0:o.some((e=>{var r=m.get(e);return!!r&&r.some((e=>e.token.text===t.token.text))})))return"continue";var i=t.parentDeclaration,a=t.declSourceFile,s=t.modifierFlags,c=t.token,l=t.call,f=t.isJSFile;if(l&&!e.isPrivateIdentifier(c))g(r,n,l,c,32&s,i,a);else if(!f||e.isInterfaceDeclaration(i)||e.isTypeLiteralNode(i)){var h=p(u,i,c);_(n,a,i,c.text,h,32&s)}else d(n,a,i,c,!!(32&s))},c=0,l=i;c<l.length;c++)s(l[c])}))})))}}),(e=>{e[e.TypeLikeDeclaration=0]="TypeLikeDeclaration",e[e.Enum=1]="Enum",e[e.Function=2]="Function",e[e.ObjectLiteral=3]="ObjectLiteral",e[e.JsxAttributes=4]="JsxAttributes"})(r||(r={}))})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="addMissingNewOperator",n=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function i(t,r,n){var i=e.cast(((t,r)=>{for(var n=e.getTokenAtPosition(t,r.start),i=e.textSpanEnd(r);n.end<i;)n=n.parent;return n})(r,n),e.isCallExpression),a=e.factory.createNewExpression(i.expression,i.typeArguments,i.arguments);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=n.sourceFile,o=n.span,s=e.textChanges.ChangeTracker.with(n,(e=>i(e,a,o)));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_new_operator_to_call,r,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>i(t,e.sourceFile,r)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="installTypesPackage",n=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,i=[n,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function a(e,t){return{type:"install package",file:e,packageName:t}}function o(t,r){var n=e.tryCast(e.getTokenAtPosition(t,r),e.isStringLiteral);if(n){var i=n.text,a=e.parsePackageName(i).packageName;return e.isExternalModuleNameRelative(a)?void 0:a}}function s(t,r,i){var a;return i===n?e.JsTyping.nodeCoreModules.has(t)?"@types/node":void 0:(null===(a=r.isKnownTypesPackageName)||void 0===a?void 0:a.call(r,t))?e.getTypesPackageName(t):void 0}t.registerCodeFix({errorCodes:i,getCodeActions(n){var i=n.host,c=n.sourceFile,l=o(c,n.span.start);if(void 0!==l){var d=s(l,i,n.errorCode);return void 0===d?[]:[t.createCodeFixAction("fixCannotFindModule",[],[e.Diagnostics.Install_0,d],r,e.Diagnostics.Install_all_missing_types_packages,a(c.fileName,d))]}},fixIds:[r],getAllCodeActions:n=>t.codeFixAll(n,i,((t,i,c)=>{var l=o(i.file,i.start);if(void 0!==l)switch(n.fixId){case r:var d=s(l,n.host,i.code);d&&c.push(a(i.file.fileName,d));break;default:e.Debug.fail("Bad fixId: ".concat(n.fixId))}}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],n="fixClassDoesntImplementInheritedAbstractMember";function i(t,r){var n=e.getTokenAtPosition(t,r);return e.cast(n.parent,e.isClassLike)}function a(r,n,i,a,s){var c=e.getEffectiveBaseTypeNode(r),l=i.program.getTypeChecker(),d=l.getTypeAtLocation(c),u=l.getPropertiesOfType(d).filter(o),p=t.createImportAdder(n,i.program,s,i.host);t.createMissingMemberNodes(r,u,n,i,s,p,(e=>a.insertMemberAtStart(n,r,e))),p.writeFixes(a)}function o(t){var r=e.getSyntacticModifierFlags(e.first(t.getDeclarations()));return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:r,getCodeActions(r){var o=r.sourceFile,s=r.span,c=e.textChanges.ChangeTracker.with(r,(e=>a(i(o,s.start),o,r,e,r.preferences)));return 0===c.length?void 0:[t.createCodeFixAction(n,c,e.Diagnostics.Implement_inherited_abstract_class,n,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[n],getAllCodeActions(n){var o=new e.Map;return t.codeFixAll(n,r,((t,r)=>{var s=i(r.file,r.start);e.addToSeen(o,e.getNodeId(s))&&a(s,n.sourceFile,n,t,n.preferences)}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="classSuperMustPrecedeThisAccess",n=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function i(e,t,r,n){e.insertNodeAtConstructorStart(t,r,n),e.delete(t,n)}function a(t,r){var n=e.getTokenAtPosition(t,r);if(108===n.kind){var i=e.getContainingFunction(n),a=o(i.body);return a&&!a.expression.arguments.some((t=>e.isPropertyAccessExpression(t)&&t.expression===n))?{constructor:i,superCall:a}:void 0}}function o(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,o)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=a(o,s.start);if(c){var l=c.constructor,d=c.superCall,u=e.textChanges.ChangeTracker.with(n,(e=>i(e,o,l,d)));return[t.createCodeFixAction(r,u,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,r,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[r],getAllCodeActions(r){var o=r.sourceFile,s=new e.Map;return t.codeFixAll(r,n,((t,r)=>{var n=a(r.file,r.start);if(n){var c=n.constructor,l=n.superCall;e.addToSeen(s,e.getNodeId(c.parent))&&i(t,o,c,l)}}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="constructorForDerivedNeedSuperCall",n=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(e.isConstructorDeclaration(n.parent),"token should be at the constructor declaration"),n.parent}function a(t,r,n){var i=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));t.insertNodeAtConstructorStart(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_missing_super_call,r,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>a(t,e.sourceFile,i(r.file,r.start))))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="enableExperimentalDecorators",n=[e.Diagnostics.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.code];function i(r,n){t.setJsonCompilerOptionValue(r,n,"experimentalDecorators",e.factory.createTrue())}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=n.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(n,(e=>i(e,a)));return[t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,(t=>{var r=e.program.getCompilerOptions().configFile;void 0!==r&&i(t,r)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixEnableJsxFlag",n=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function i(r,n){t.setJsonCompilerOptionValue(r,n,"jsx",e.factory.createStringLiteral("react"))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=n.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(n,(e=>i(e,a)));return[t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,(t=>{var r=e.program.getCompilerOptions().configFile;void 0!==r&&i(t,r)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions(r){var n=r.program.getCompilerOptions(),i=n.configFile;if(void 0!==i){var a=[],o=e.getEmitModuleKind(n);if(o>=e.ModuleKind.ES2015&&o<e.ModuleKind.ESNext){var s=e.textChanges.ChangeTracker.with(r,(r=>{t.setJsonCompilerOptionValue(r,i,"module",e.factory.createStringLiteral("esnext"))}));a.push(t.createCodeFixActionWithoutFixAll("fixModuleOption",s,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var c=e.getEmitScriptTarget(n);return(c<4||c>99)&&(s=e.textChanges.ChangeTracker.with(r,(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}}})})(p),(e=>{!(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(n){var o=a(n.sourceFile,n.span.start),s=e.textChanges.ChangeTracker.with(n,(e=>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:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,a(t.file,t.start))))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(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 94===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.factory.createToken(117)),2===i.length&&94===i[0].token&&117===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<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(c));)c++;t.deleteRange(r,{pos:a.getStart(),end:c})}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=i(o,n.span.start);if(s){var c=s.extendsToken,l=s.heritageClauses,d=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c,l)));return[t.createCodeFixAction(r,d,e.Diagnostics.Change_extends_to_implements,r,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&a(e,t.file,r.extendsToken,r.heritageClauses)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="forgottenThisPropertyAccess",n=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,i=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,n];function a(t,r,i){var a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a)||e.isPrivateIdentifier(a))return{node:a,className:i===n?e.getContainingClass(a).name.text:void 0}}function o(t,r,n){var i=n.node,a=n.className;e.suppressLeadingAndTrailingTrivia(i),t.replaceNode(r,i,e.factory.createPropertyAccessExpression(a?e.factory.createIdentifier(a):e.factory.createThis(),i))}t.registerCodeFix({errorCodes:i,getCodeActions(n){var i=n.sourceFile,s=a(i,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(e=>o(e,i,s)));return[t.createCodeFixAction(r,c,[e.Diagnostics.Add_0_to_unresolved_variable,s.className||"this"],r,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,i,((t,r)=>{var n=a(r.file,r.start,r.code);n&&o(t,e.sourceFile,n)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixInvalidJsxCharacters_expression",n="fixInvalidJsxCharacters_htmlEntity",i=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];t.registerCodeFix({errorCodes:i,fixIds:[r,n],getCodeActions(i){var a=i.sourceFile,s=i.preferences,c=i.span,l=e.textChanges.ChangeTracker.with(i,(e=>o(e,s,a,c.start,!1))),d=e.textChanges.ChangeTracker.with(i,(e=>o(e,s,a,c.start,!0)));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,r,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),t.createCodeFixAction(n,d,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,n,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>t.codeFixAll(e,i,((t,r)=>o(t,e.preferences,r.file,r.start,e.fixId===n)))});var a={">":">","}":"}"};function o(t,r,n,i,o){var s=n.getText()[i];if((t=>e.hasProperty(a,t))(s)){var c=o?a[s]:"{".concat(e.quote(n,r,s),"}");t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="deleteUnmatchedParameter",n="renameUnmatchedParameter",i=[e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function a(t,r){var n=e.getTokenAtPosition(t,r);if(n.parent&&e.isJSDocParameterTag(n.parent)&&e.isIdentifier(n.parent.name)){var i=n.parent,a=e.getHostSignatureFromJSDoc(i);if(a)return{signature:a,name:n.parent.name,jsDocParameterTag:i}}}t.registerCodeFix({fixIds:[r,n],errorCodes:i,getCodeActions(i){var o=[],s=a(i.sourceFile,i.span.start);if(s)return e.append(o,((n,i)=>{var a=i.name,o=i.signature,s=i.jsDocParameterTag,c=e.textChanges.ChangeTracker.with(n,(e=>e.filterJSDocTags(n.sourceFile,o,(e=>e!==s))));return t.createCodeFixAction(r,c,[e.Diagnostics.Delete_unused_param_tag_0,a.getText(n.sourceFile)],r,e.Diagnostics.Delete_all_unused_param_tags)})(i,s)),e.append(o,((r,i)=>{var a=i.name,o=i.signature,s=i.jsDocParameterTag;if(e.length(o.parameters)){for(var c=r.sourceFile,l=e.getJSDocTags(o),d=new e.Set,u=0,p=l;u<p.length;u++){var _=p[u];e.isJSDocParameterTag(_)&&e.isIdentifier(_.name)&&d.add(_.name.escapedText)}var f=e.firstDefined(o.parameters,(t=>e.isIdentifier(t.name)&&!d.has(t.name.escapedText)?t.name.getText(c):void 0));if(void 0!==f){var m=e.factory.updateJSDocParameterTag(s,s.tagName,e.factory.createIdentifier(f),s.isBracketed,s.typeExpression,s.isNameFirst,s.comment),g=e.textChanges.ChangeTracker.with(r,(t=>t.replaceJSDocComment(c,o,e.map(l,(e=>e===s?m:e)))));return t.createCodeFixActionWithoutFixAll(n,g,[e.Diagnostics.Rename_param_tag_name_0_to_1,a.getText(c),f])}}})(i,s)),o},getAllCodeActions(n){var o=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(n,(s=>{t.eachDiagnostic(n,i,(t=>{var r=a(t.file,t.start);r&&o.set(r.signature,e.append(o.get(r.signature),r.jsDocParameterTag))})),o.forEach(((t,i)=>{if(n.fixId===r){var a=new e.Set(t);s.filterJSDocTags(i.getSourceFile(),i,(e=>!a.has(e)))}}))})))}})})(e.codefix||(e.codefix={}))})(p),(e=>{var t,r,n;t=e.codefix||(e.codefix={}),r="fixUnreferenceableDecoratorMetadata",n=[e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],t.registerCodeFix({errorCodes:n,getCodeActions(n){var i=((t,r,n)=>{var i=e.tryCast(e.getTokenAtPosition(t,n),e.isIdentifier);if(i&&178===i.parent.kind){var a=r.getTypeChecker().getSymbolAtLocation(i);return e.find((null==a?void 0:a.declarations)||e.emptyArray,e.or(e.isImportClause,e.isImportSpecifier,e.isImportEqualsDeclaration))}})(n.sourceFile,n.program,n.span.start);if(i){var a,o=e.textChanges.ChangeTracker.with(n,(t=>270===i.kind&&((t,r,n,i)=>{e.refactor.doChangeNamedToNamespaceOrDefault(r,i,t,n.parent)})(t,n.sourceFile,i,n.program))),s=e.textChanges.ChangeTracker.with(n,(t=>((t,r,n,i)=>{if(265!==n.kind){var a=267===n.kind?n:n.parent.parent;if(!a.name||!a.namedBindings){var o=i.getTypeChecker();e.forEachImportClauseDeclaration(a,(t=>{if(111551&e.skipAlias(t.symbol,o).flags)return!0}))||t.insertModifierBefore(r,152,a)}}else t.insertModifierBefore(r,152,n.name)})(t,n.sourceFile,i,n.program)));return o.length&&(a=e.append(a,t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Convert_named_imports_to_namespace_import))),s.length&&(a=e.append(a,t.createCodeFixActionWithoutFixAll(r,s,e.Diagnostics.Convert_to_type_only_import))),a}},fixIds:[r]})})(p),(e=>{!(t=>{var r="unusedIdentifier",n="unusedIdentifier_prefix",i="unusedIdentifier_delete",a="unusedIdentifier_deleteImports",o="unusedIdentifier_infer",s=[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 c(t,r,n){t.replaceNode(r,n.parent,e.factory.createKeywordTypeNode(155))}function l(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function d(t,r,n){t.delete(r,e.Debug.checkDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function u(e){return 100===e.kind||79===e.kind&&(270===e.parent.kind||267===e.parent.kind)}function p(t){return 100===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 f(e,t,r){e.delete(t,237===r.parent.kind?r.parent:r)}function m(t,r,n,i){r!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(137===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&(e=>{switch(e.parent.kind){case 164:case 163:return!0;case 254:switch(e.parent.parent.parent.kind){case 244:case 243:return!0}}return!1})(i)&&(t.replaceNode(n,i,e.factory.createIdentifier("_".concat(i.text))),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach((r=>{e.isIdentifier(r.name)&&t.replaceNode(n,r.name,e.factory.createIdentifier("_".concat(r.name.text)))}))))}function g(t,r,n,i,a,o,s,c){!((t,r,n,i,a,o,s,c)=>{var l=t.parent;if(e.isParameter(l))!((t,r,n,i,a,o,s,c)=>{if(void 0===c&&(c=!1),((t,r,n,i,a,o,s)=>{var c=n.parent;switch(c.kind){case 169:case 171:var l=c.parameters.indexOf(n),d=e.isMethodDeclaration(c)?c.name:c,u=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,d,a,i,o);if(u)for(var p=0,_=u;p<_.length;p++)for(var f=0,m=_[p].references;f<m.length;f++){var g=m[f];if(1===g.kind){var h=e.isSuperKeyword(g.node)&&e.isCallExpression(g.node.parent)&&g.node.parent.arguments.length>l,v=e.isPropertyAccessExpression(g.node.parent)&&e.isSuperKeyword(g.node.parent.expression)&&e.isCallExpression(g.node.parent.parent)&&g.node.parent.parent.arguments.length>l,b=(e.isMethodDeclaration(g.node.parent)||e.isMethodSignature(g.node.parent))&&g.node.parent!==n.parent&&g.node.parent.parameters.length>l;if(h||v||b)return!1}}return!0;case 256:return!c.name||!((t,r,n)=>!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n,t,r,(t=>e.isIdentifier(t)&&e.isCallExpression(t.parent)&&t.parent.arguments.indexOf(t)>=0)))(t,r,c.name)||y(c,n,s);case 213:case 214:return y(c,n,s);case 173:return!1;case 172:return!0;default:return e.Debug.failBadSyntaxKind(c)}})(i,r,n,a,o,s,c))if(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r)))for(var l=0,d=n.modifiers;l<d.length;l++){var u=d[l];e.isModifier(u)&&t.deleteModifier(r,u)}else!n.initializer&&h(n,i,a)&&t.delete(r,n)})(r,n,l,i,a,o,s,c);else if(!(c&&e.isIdentifier(t)&&e.FindAllReferences.Core.isSymbolReferencedInFile(t,i,n))){var d=e.isImportClause(l)?t:e.isComputedPropertyName(l)?l.parent:l;e.Debug.assert(d!==n,"should not delete whole source file"),r.delete(n,d)}})(r,n,t,i,a,o,s,c),e.isIdentifier(r)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(r,i,t,(r=>{var i;e.isPropertyAccessExpression(r.parent)&&r.parent.name===r&&(r=r.parent),!c&&(i=r,(e.isBinaryExpression(i.parent)&&i.parent.left===i||(e.isPostfixUnaryExpression(i.parent)||e.isPrefixUnaryExpression(i.parent))&&i.parent.operand===i)&&e.isExpressionStatement(i.parent.parent))&&n.delete(t,r.parent.parent)}))}function h(t,r,n){var i=t.parent.parameters.indexOf(t);return!e.FindAllReferences.Core.someSignatureUsage(t.parent,n,r,((e,t)=>!t||t.arguments.length>i))}function y(t,r,n){var i=t.parameters,a=i.indexOf(r);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),n?i.slice(a+1).every((t=>e.isIdentifier(t.name)&&!t.symbol.isReferenced)):a===i.length-1}t.registerCodeFix({errorCodes:s,getCodeActions(i){var s=i.errorCode,h=i.sourceFile,y=i.program,v=i.cancellationToken,b=y.getTypeChecker(),E=y.getSourceFiles(),x=e.getTokenAtPosition(h,i.span.start);if(e.isJSDocTemplateTag(x))return[l(e.textChanges.ChangeTracker.with(i,(e=>e.delete(h,x))),e.Diagnostics.Remove_template_tag)];if(29===x.kind)return[l(S=e.textChanges.ChangeTracker.with(i,(e=>d(e,h,x))),e.Diagnostics.Remove_type_parameters)];var D=p(x);if(D){var S=e.textChanges.ChangeTracker.with(i,(e=>e.delete(h,D)));return[t.createCodeFixAction(r,S,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(D)],a,e.Diagnostics.Delete_all_unused_imports)]}if(u(x)&&(N=e.textChanges.ChangeTracker.with(i,(e=>g(h,x,e,b,E,y,v,!1)))).length)return[t.createCodeFixAction(r,N,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,x.getText(h)],a,e.Diagnostics.Delete_all_unused_imports)];if(e.isObjectBindingPattern(x.parent)||e.isArrayBindingPattern(x.parent)){if(e.isParameter(x.parent.parent)){var T=x.parent.elements,C=[T.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(T,(e=>e.getText(h))).join(", ")];return[l(e.textChanges.ChangeTracker.with(i,(t=>((t,r,n)=>{e.forEach(n.elements,(e=>t.delete(r,e)))})(t,h,x.parent))),C)]}return[l(e.textChanges.ChangeTracker.with(i,(e=>e.delete(h,x.parent.parent))),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(_(h,x))return[l(e.textChanges.ChangeTracker.with(i,(e=>f(e,h,x.parent))),e.Diagnostics.Remove_variable_statement)];var A=[];if(137===x.kind){S=e.textChanges.ChangeTracker.with(i,(e=>c(e,h,x)));var k=e.cast(x.parent,e.isInferTypeNode).typeParameter.name.text;A.push(t.createCodeFixAction(r,S,[e.Diagnostics.Replace_infer_0_with_unknown,k],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var N;(N=e.textChanges.ChangeTracker.with(i,(e=>g(h,x,e,b,E,y,v,!1)))).length&&(k=e.isComputedPropertyName(x.parent)?x.parent:x,A.push(l(N,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,k.getText(h)])))}var w=e.textChanges.ChangeTracker.with(i,(e=>m(e,s,h,x)));return w.length&&A.push(t.createCodeFixAction(r,w,[e.Diagnostics.Prefix_0_with_an_underscore,x.getText(h)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),A},fixIds:[n,i,a,o],getAllCodeActions(r){var l=r.sourceFile,y=r.program,v=r.cancellationToken,b=y.getTypeChecker(),E=y.getSourceFiles();return t.codeFixAll(r,s,((t,s)=>{var x=e.getTokenAtPosition(l,s.start);switch(r.fixId){case n:m(t,s.code,l,x);break;case a:var D=p(x);D?t.delete(l,D):u(x)&&g(l,x,t,b,E,y,v,!0);break;case i:if(137===x.kind||u(x))break;if(e.isJSDocTemplateTag(x))t.delete(l,x);else if(29===x.kind)d(t,l,x);else if(e.isObjectBindingPattern(x.parent)){if(x.parent.parent.initializer)break;e.isParameter(x.parent.parent)&&!h(x.parent.parent,b,E)||t.delete(l,x.parent.parent)}else{if(e.isArrayBindingPattern(x.parent.parent)&&x.parent.parent.parent.initializer)break;_(l,x)?f(t,l,x.parent):g(l,x,t,b,E,y,v,!0)}break;case o:137===x.kind&&c(t,l,x);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(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 l=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(l.kind){case 239:if(l.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.factory.createBlock(e.emptyArray))}case 241:case 242:return void t.delete(r,l)}if(e.isBlock(s.parent)){var d=n+i,u=e.Debug.checkDefined(((e,t)=>{for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(!(a.pos<d))break;r=a}return r})(e.sliceAfter(s.parent.statements,s)),"Some statement should be last");t.deleteNodeRange(r,s,u)}else t.delete(r,s)}t.registerCodeFix({errorCodes:n,getCodeActions(n){if(!n.program.getSyntacticDiagnostics(n.sourceFile,n.cancellationToken).length){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start,n.span.length,n.errorCode)));return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unreachable_code,r,e.Diagnostics.Remove_all_unreachable_code)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t.start,t.length,t.code)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixUnusedLabel",n=[e.Diagnostics.Unused_label.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.cast(i.parent,e.isLabeledStatement),o=i.getStart(r),s=a.statement.getStart(r),c=e.positionsAreOnSameLine(o,s,r)?s:e.skipTrivia(r.text,e.findChildOfKind(a,58,r).end,!0);t.deleteRange(r,{pos:o,end:c})}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start)));return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unused_label,r,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t.start)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixJSDocTypes_plain",n="fixJSDocTypes_nullable",i=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function a(e,t,r,n,i){e.replaceNode(t,r,i.typeToTypeNode(n,r,void 0))}function o(t,r,n){var i=e.findAncestor(e.getTokenAtPosition(t,r),s),a=i&&i.type;return a&&{typeNode:a,type:n.getTypeFromTypeNode(a)}}function s(e){switch(e.kind){case 229:case 174:case 175:case 256:case 172:case 176:case 195:case 169:case 168:case 164:case 167:case 166:case 173:case 259:case 211:case 254:return!0;default:return!1}}t.registerCodeFix({errorCodes:i,getCodeActions(i){var s=i.sourceFile,c=i.program.getTypeChecker(),l=o(s,i.span.start,c);if(l){var d=l.typeNode,u=l.type,p=d.getText(s),_=[f(u,r,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 314===d.kind&&_.push(f(c.getNullableType(u,32768),n,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),_}function f(r,n,o){var l=e.textChanges.ChangeTracker.with(i,(e=>a(e,s,d,r,c)));return t.createCodeFixAction("jdocTypes",l,[e.Diagnostics.Change_0_to_1,p,c.typeToString(r)],n,o)}},fixIds:[r,n],getAllCodeActions(e){var r=e.fixId,s=e.program,c=e.sourceFile,l=s.getTypeChecker();return t.codeFixAll(e,i,((e,t)=>{var i=o(t.file,t.start,l);if(i){var s=i.typeNode,d=i.type,u=314===s.kind&&r===n?l.getNullableType(d,32768):d;a(e,c,s,u,l)}}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixMissingCallParentheses",n=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function i(e,t,r){e.replaceNodeWithText(t,r,"".concat(r.text,"()"))}function a(t,r){var n=e.getTokenAtPosition(t,r);if(e.isPropertyAccessExpression(n.parent)){for(var i=n.parent;e.isPropertyAccessExpression(i.parent);)i=i.parent;return i.name}if(e.isIdentifier(n))return n}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions(n){var o=a(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,o)));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_call_parentheses,r,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=a(t.file,t.start);r&&i(e,t.file,r)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixAwaitInSyncFunction",n=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingFunction(n);if(i){var a,o;switch(i.kind){case 169:a=i.name;break;case 256:case 213:a=e.findChildOfKind(i,98,t);break;case 214:var s=i.typeParameters?29:20;a=e.findChildOfKind(i,s,t)||e.first(i.parameters);break;default:return}return a&&{insertBefore:a,returnType:(o=i,o.type?o.type:e.isVariableDeclaration(o.parent)&&o.parent.type&&e.isFunctionTypeNode(o.parent.type)?o.parent.type.type:void 0)}}}function a(t,r,n){var i=n.insertBefore,a=n.returnType;if(a){var o=e.getEntityNameFromTypeNode(a);o&&79===o.kind&&"Promise"===o.text||t.replaceNode(r,a,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([a])))}t.insertModifierBefore(r,131,i)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[r],getAllCodeActions(r){var o=new e.Map;return t.codeFixAll(r,n,((t,n)=>{var s=i(n.file,n.start);s&&e.addToSeen(o,e.getNodeId(s.insertBefore))&&a(t,r.sourceFile,s)}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],n="fixPropertyOverrideAccessor";function i(r,n,i,a,o){var s,c;if(a===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=n,c=n+i;else if(a===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var l=o.program.getTypeChecker(),d=e.getTokenAtPosition(r,n).parent;e.Debug.assert(e.isAccessor(d),"error span of fixPropertyOverrideAccessor should only be on an accessor");var u=d.parent;e.Debug.assert(e.isClassLike(u),"erroneous accessors should only be inside classes");var p=e.singleOrUndefined(t.getAllSupers(u,l));if(!p)return[];var _=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(d.name)),f=l.getPropertyOfType(l.getTypeAtLocation(p),_);if(!f||!f.valueDeclaration)return[];s=f.valueDeclaration.pos,c=f.valueDeclaration.end,r=e.getSourceFileOfNode(f.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+a);return t.generateAccessorFromProperty(r,o.program,s,c,o,e.Diagnostics.Generate_get_and_set_accessors.message)}t.registerCodeFix({errorCodes:r,getCodeActions(r){var a=i(r.sourceFile,r.span.start,r.span.length,r.errorCode,r);if(a)return[t.createCodeFixAction(n,a,e.Diagnostics.Generate_get_and_set_accessors,n,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[n],getAllCodeActions:e=>t.codeFixAll(e,r,((t,r)=>{var n=i(r.file,r.start,r.length,r.code,e);if(n)for(var a=0,o=n;a<o.length;a++){var s=o[a];t.pushRaw(e.sourceFile,s)}}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="inferFromUsage",n=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function i(t,r){switch(t){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(r))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function a(r,n,i,a,d,f,m,g,h){if(e.isParameterPropertyModifier(i.kind)||79===i.kind||25===i.kind||108===i.kind){var y=i.parent,v=t.createImportAdder(n,d,h,g);switch(a=(t=>{switch(t){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return t})(a)){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(y)&&m(y)||e.isPropertyDeclaration(y)||e.isPropertySignature(y))return o(r,v,n,y,d,g,f),v.writeFixes(r),y;if(e.isPropertyAccessExpression(y)){var b=u(y.name,d,f),E=e.getTypeNodeIfAccessible(b,y,d,g);if(E){var x=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(E),void 0);r.addJSDocTags(n,e.cast(y.parent.parent,e.isExpressionStatement),[x])}return v.writeFixes(r),y}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var D=d.getTypeChecker().getSymbolAtLocation(i);return D&&D.valueDeclaration&&e.isVariableDeclaration(D.valueDeclaration)&&m(D.valueDeclaration)?(o(r,v,e.getSourceFileOfNode(D.valueDeclaration),D.valueDeclaration,d,g,f),v.writeFixes(r),D.valueDeclaration):void 0}var S=e.getContainingFunction(i);if(void 0!==S){var T;switch(a){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(S)){s(r,v,n,S,d,g,f),T=S;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(m(S)){var C=e.cast(y,e.isParameter);!((t,r,n,i,a,o,s,d)=>{if(e.isIdentifier(i.name)){var f=((t,r,n,i)=>{var a=p(t,r,n,i);return a&&_(n,a,i).parameters(t)||t.parameters.map((t=>({declaration:t,type:e.isIdentifier(t.name)?u(t.name,n,i):n.getTypeChecker().getAnyType()})))})(a,n,o,d);if(e.Debug.assert(a.parameters.length===f.length,"Parameter count and inference count should match"),e.isInJSFile(a))l(t,n,f,o,s);else{var m=e.isArrowFunction(a)&&!e.findChildOfKind(a,20,n);m&&t.insertNodeBefore(n,e.first(a.parameters),e.factory.createToken(20));for(var g=0,h=f;g<h.length;g++){var y=h[g],v=y.declaration,b=y.type;!v||v.type||v.initializer||c(t,r,n,v,b,o,s)}m&&t.insertNodeAfter(n,e.last(a.parameters),e.factory.createToken(21))}}})(r,v,n,C,S,d,g,f),T=C}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(S)&&e.isIdentifier(S.name)&&(c(r,v,n,S,u(S.name,d,f),d,g),T=S);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(S)&&(s(r,v,n,S,d,g,f),T=S);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(S)&&m(S)&&(((t,r,n,i,a,o)=>{var s=p(n,r,i,o);if(s&&s.length){var c=_(i,s,o).thisParameter(),l=e.getTypeNodeIfAccessible(c,n,i,a);l&&(e.isInJSFile(n)?((t,r,n,i)=>{t.addJSDocTags(r,n,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(i))])})(t,r,n,l):t.tryInsertThisTypeAnnotation(r,n,l))}})(r,n,S,d,g,f),T=S);break;default:return e.Debug.fail(String(a))}return v.writeFixes(r),T}}}function o(t,r,n,i,a,o,s){e.isIdentifier(i.name)&&c(t,r,n,i,u(i.name,a,s),a,o)}function s(t,r,n,i,a,o,s){var d=e.firstOrUndefined(i.parameters);if(d&&e.isIdentifier(i.name)&&e.isIdentifier(d.name)){var p=u(i.name,a,s);p===a.getTypeChecker().getAnyType()&&(p=u(d.name,a,s)),e.isInJSFile(i)?l(t,n,[{declaration:d,type:p}],a,o):c(t,r,n,d,p,a,o)}}function c(r,n,i,a,o,s,c){var l=e.getTypeNodeIfAccessible(o,a,s,c);if(l)if(e.isInJSFile(i)&&166!==a.kind){var d=e.isVariableDeclaration(a)?e.tryCast(a.parent.parent,e.isVariableStatement):a;if(!d)return;var u=e.factory.createJSDocTypeExpression(l),p=e.isGetAccessorDeclaration(a)?e.factory.createJSDocReturnTag(void 0,u,void 0):e.factory.createJSDocTypeTag(void 0,u,void 0);r.addJSDocTags(i,d,[p])}else((r,n,i,a,o,s)=>{var c=t.tryGetAutoImportableReferenceFromTypeNode(r,s);return!(!c||!a.tryInsertTypeAnnotation(i,n,c.typeNode)||(e.forEach(c.symbols,(e=>o.addImportFromExportedSymbol(e,!0))),0))})(l,a,i,r,n,e.getEmitScriptTarget(s.getCompilerOptions()))||r.tryInsertTypeAnnotation(i,a,l)}function l(t,r,n,i,a){var o=n.length&&n[0].declaration.parent;if(o){var s=e.mapDefined(n,(t=>{var r=t.declaration;if(!r.initializer&&!e.getJSDocType(r)&&e.isIdentifier(r.name)){var n=t.type&&e.getTypeNodeIfAccessible(t.type,r,i,a);if(n){var o=e.factory.cloneNode(r.name);return e.setEmitFlags(o,3584),{name:e.factory.cloneNode(r.name),param:r,isOptional:!!t.isOptional,typeNode:n}}}}));if(s.length)if(e.isArrowFunction(o)||e.isFunctionExpression(o)){var c=e.isArrowFunction(o)&&!e.findChildOfKind(o,20,r);c&&t.insertNodeBefore(r,e.first(o.parameters),e.factory.createToken(20)),e.forEach(s,(n=>{var i=n.typeNode,a=n.param,o=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(i)),s=e.factory.createJSDocComment(void 0,[o]);t.insertNodeAt(r,a.getStart(r),s,{suffix:" "})})),c&&t.insertNodeAfter(r,e.last(o.parameters),e.factory.createToken(21))}else{var l=e.map(s,(t=>{var r=t.name,n=t.typeNode,i=t.isOptional;return e.factory.createJSDocParameterTag(void 0,r,!!i,e.factory.createJSDocTypeExpression(n),!1,void 0)}));t.addJSDocTags(r,o,l)}}}function d(t,r,n){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n),(t=>0!==t.kind?e.tryCast(t.node,e.isIdentifier):void 0))}function u(e,t,r){return _(t,d(e,t,r),r).single()}function p(t,r,n,i){var a;switch(t.kind){case 171:a=e.findChildOfKind(t,134,r);break;case 214:case 213:var o=t.parent;a=(e.isVariableDeclaration(o)||e.isPropertyDeclaration(o))&&e.isIdentifier(o.name)?o.name:t.name;break;case 256:case 169:case 168:a=t.name}if(a)return d(a,n,i)}function _(t,r,n){var i=t.getTypeChecker(),a={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:e=>i.createArrayType(e),Promise:e=>i.createPromiseType(e)},o=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:()=>_(c(r)),parameters(a){if(0!==r.length&&a.parameters){for(var o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},s=0,u=r;s<u.length;s++){var p=u[s];n.throwIfCancellationRequested(),l(p,o)}var m=f(f([],o.constructs||[],!0),o.calls||[],!0);return a.parameters.map(((r,o)=>{for(var s=[],l=e.isRestParameter(r),u=!1,p=0,f=m;p<f.length;p++){var g=f[p];if(g.argumentTypes.length<=o)u=e.isInJSFile(a),s.push(i.getUndefinedType());else if(l)for(var h=o;h<g.argumentTypes.length;h++)s.push(i.getBaseTypeOfLiteralType(g.argumentTypes[h]));else s.push(i.getBaseTypeOfLiteralType(g.argumentTypes[o]))}if(e.isIdentifier(r.name)){var y=c(d(r.name,t,n));s.push.apply(s,l?e.mapDefined(y,i.getElementTypeOfArrayType):y)}var v=_(s);return{type:l?i.createArrayType(v):v,isOptional:u&&!l,declaration:r}}))}},thisParameter(){for(var t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},i=0,a=r;i<a.length;i++){var o=a[i];n.throwIfCancellationRequested(),l(o,t)}return _(t.candidateThisTypes||e.emptyArray)}};function s(t){for(var r=new e.Map,n=0,i=t;n<i.length;n++){var a=i[n];a.properties&&a.properties.forEach(((e,t)=>{r.has(t)||r.set(t,[]),r.get(t).push(e)}))}var o=new e.Map;return r.forEach(((e,t)=>{o.set(t,s(e))})),{isNumber:t.some((e=>e.isNumber)),isString:t.some((e=>e.isString)),isNumberOrString:t.some((e=>e.isNumberOrString)),candidateTypes:e.flatMap(t,(e=>e.candidateTypes)),properties:o,calls:e.flatMap(t,(e=>e.calls)),constructs:e.flatMap(t,(e=>e.constructs)),numberIndex:e.forEach(t,(e=>e.numberIndex)),stringIndex:e.forEach(t,(e=>e.stringIndex)),candidateThisTypes:e.flatMap(t,(e=>e.candidateThisTypes)),inferredTypes:void 0}}function c(e){for(var t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},r=0,i=e;r<i.length;r++){var a=i[r];n.throwIfCancellationRequested(),l(a,t)}return m(t)}function l(t,r){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;switch(t.parent.kind){case 238:!((t,r)=>{v(r,e.isCallExpression(t)?i.getVoidType():i.getAnyType())})(t,r);break;case 220:r.isNumber=!0;break;case 219:!((e,t)=>{switch(e.operator){case 45:case 46:case 40:case 54:t.isNumber=!0;break;case 39:t.isNumberOrString=!0}})(t.parent,r);break;case 221:!((t,r,n)=>{switch(r.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:var a=i.getTypeAtLocation(r.left===t?r.right:r.left);1056&a.flags?v(n,a):n.isNumber=!0;break;case 64:case 39:var o=i.getTypeAtLocation(r.left===t?r.right:r.left);1056&o.flags?v(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:v(n,i.getTypeAtLocation(r.left===t?r.right:r.left));break;case 101:t===r.left&&(n.isString=!0);break;case 56:case 60:t!==r.left||254!==t.parent.parent.kind&&!e.isAssignmentExpression(t.parent.parent,!0)||v(n,i.getTypeAtLocation(r.right))}})(t,t.parent,r);break;case 289:case 290:!((e,t)=>{v(t,i.getTypeAtLocation(e.parent.parent.expression))})(t.parent,r);break;case 208:case 209:t.parent.expression===t?((e,t)=>{var r={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(var n=0,a=e.arguments;n<a.length;n++){var o=a[n];r.argumentTypes.push(i.getTypeAtLocation(o))}l(e,r.return_),208===e.kind?(t.calls||(t.calls=[])).push(r):(t.constructs||(t.constructs=[])).push(r)})(t.parent,r):u(t,r);break;case 206:!((t,r)=>{var n=e.escapeLeadingUnderscores(t.name.text);r.properties||(r.properties=new e.Map);var i=r.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(t,i),r.properties.set(n,i)})(t.parent,r);break;case 207:!((e,t,r)=>{if(t!==e.argumentExpression){var n=i.getTypeAtLocation(e.argumentExpression),a={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(e,a),296&n.flags?r.numberIndex=a:r.stringIndex=a}else r.isNumberOrString=!0})(t.parent,t,r);break;case 296:case 297:!((t,r)=>{var n=e.isVariableDeclaration(t.parent.parent)?t.parent.parent:t.parent;b(r,i.getTypeAtLocation(n))})(t.parent,r);break;case 167:!((e,t)=>{b(t,i.getTypeAtLocation(e.parent))})(t.parent,r);break;case 254:var n=t.parent,a=n.name,o=n.initializer;if(t===a){o&&v(r,i.getTypeAtLocation(o));break}default:return u(t,r)}}function u(t,r){e.isExpressionNode(t)&&v(r,i.getContextualType(t))}function p(e){return _(m(e))}function _(t){if(!t.length)return i.getAnyType();var r=i.getUnionType([i.getStringType(),i.getNumberType()]),n=((t,r)=>{for(var n=[],i=0,a=t;i<a.length;i++)for(var o=a[i],s=0,c=r;s<c.length;s++){var l=c[s],d=l.high,u=l.low;d(o)&&(e.Debug.assert(!u(o),"Priority can't have both low and high"),n.push(u))}return t.filter((e=>n.every((t=>!t(e)))))})(t,[{high:e=>e===i.getStringType()||e===i.getNumberType(),low:e=>e===r},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:t=>!(114689&t.flags||16&e.getObjectFlags(t)),low:t=>!!(16&e.getObjectFlags(t))}]),a=n.filter((t=>16&e.getObjectFlags(t)));return a.length&&(n=n.filter((t=>!(16&e.getObjectFlags(t))))).push((t=>{if(1===t.length)return t[0];for(var r=[],n=[],a=[],o=[],s=!1,c=!1,l=e.createMultiMap(),d=0,u=t;d<u.length;d++){for(var p=u[d],_=0,f=i.getPropertiesOfType(p);_<f.length;_++){var m=f[_];l.add(m.name,m.valueDeclaration?i.getTypeOfSymbolAtLocation(m,m.valueDeclaration):i.getAnyType())}r.push.apply(r,i.getSignaturesOfType(p,0)),n.push.apply(n,i.getSignaturesOfType(p,1));var g=i.getIndexInfoOfType(p,0);g&&(a.push(g.type),s=s||g.isReadonly);var h=i.getIndexInfoOfType(p,1);h&&(o.push(h.type),c=c||h.isReadonly)}var y=e.mapEntries(l,((e,r)=>{var n=r.length<t.length?16777216:0,a=i.createSymbol(4|n,e);return a.type=i.getUnionType(r),[e,a]})),v=[];return a.length&&v.push(i.createIndexInfo(i.getStringType(),i.getUnionType(a),s)),o.length&&v.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(o),c)),i.createAnonymousType(t[0].symbol,y,r,n,v)})(a)),i.getWidenedType(i.getUnionType(n.map(i.getBaseTypeOfLiteralType),2))}function m(t){var r,n,s,c=[];t.isNumber&&c.push(i.getNumberType()),t.isString&&c.push(i.getStringType()),t.isNumberOrString&&c.push(i.getUnionType([i.getStringType(),i.getNumberType()])),t.numberIndex&&c.push(i.createArrayType(p(t.numberIndex))),((null===(r=t.properties)||void 0===r?void 0:r.size)||(null===(n=t.constructs)||void 0===n?void 0:n.length)||t.stringIndex)&&c.push(g(t));var l=(t.candidateTypes||[]).map((e=>i.getBaseTypeOfLiteralType(e))),d=(null===(s=t.calls)||void 0===s?void 0:s.length)?g(t):void 0;return d&&l?c.push(i.getUnionType(f([d],l,!0),2)):(d&&c.push(d),e.length(l)&&c.push.apply(c,l)),c.push.apply(c,(t=>{if(!t.properties||!t.properties.size)return[];var r=o.filter((r=>((t,r)=>!!r.properties&&!e.forEachEntry(r.properties,((r,n)=>{var a,o=i.getTypeOfPropertyOfType(t,n);return!(o&&(r.calls?i.getSignaturesOfType(o,0).length&&i.isTypeAssignableTo(o,(a=r.calls,i.createAnonymousType(void 0,e.createSymbolTable(),[y(a)],e.emptyArray,e.emptyArray))):i.isTypeAssignableTo(o,p(r))))})))(r,t)));return 0<r.length&&r.length<3?r.map((r=>((t,r)=>{if(!(4&e.getObjectFlags(t)&&r.properties))return t;var n=t.target,o=e.singleOrUndefined(n.typeParameters);if(!o)return t;var s=[];return r.properties.forEach(((t,r)=>{var a=i.getTypeOfPropertyOfType(n,r);e.Debug.assert(!!a,"generic should have all the properties of its reference."),s.push.apply(s,h(a,p(t),o))})),a[t.symbol.escapedName](_(s))})(r,t))):[]})(t)),c}function g(t){var r=new e.Map;t.properties&&t.properties.forEach(((e,t)=>{var n=i.createSymbol(4,t);n.type=p(e),r.set(t,n)}));var n=t.calls?[y(t.calls)]:[],a=t.constructs?[y(t.constructs)]:[],o=t.stringIndex?[i.createIndexInfo(i.getStringType(),p(t.stringIndex),!1)]:[];return i.createAnonymousType(void 0,r,n,a,o)}function h(t,r,n){if(t===n)return[r];if(3145728&t.flags)return e.flatMap(t.types,(e=>h(e,r,n)));if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)){var a=i.getTypeArguments(t),o=i.getTypeArguments(r),s=[];if(a&&o)for(var c=0;c<a.length;c++)o[c]&&s.push.apply(s,h(a[c],o[c],n));return s}var l=i.getSignaturesOfType(t,0),d=i.getSignaturesOfType(r,0);return 1===l.length&&1===d.length?((t,r,n)=>{for(var a=[],o=0;o<t.parameters.length;o++){var s=t.parameters[o],c=r.parameters[o],l=t.declaration&&e.isRestParameter(t.declaration.parameters[o]);if(!c)break;var d=s.valueDeclaration?i.getTypeOfSymbolAtLocation(s,s.valueDeclaration):i.getAnyType(),u=l&&i.getElementTypeOfArrayType(d);u&&(d=u);var p=c.type||(c.valueDeclaration?i.getTypeOfSymbolAtLocation(c,c.valueDeclaration):i.getAnyType());a.push.apply(a,h(d,p,n))}var _=i.getReturnTypeOfSignature(t),f=i.getReturnTypeOfSignature(r);return a.push.apply(a,h(_,f,n)),a})(l[0],d[0],n):[]}function y(t){for(var r=[],n=Math.max.apply(Math,t.map((e=>e.argumentTypes.length))),a=n=>{var a=i.createSymbol(1,e.escapeLeadingUnderscores("arg".concat(n)));a.type=_(t.map((e=>e.argumentTypes[n]||i.getUndefinedType()))),t.some((e=>void 0===e.argumentTypes[n]))&&(a.flags|=16777216),r.push(a)},o=0;o<n;o++)a(o);var c=p(s(t.map((e=>e.return_))));return i.createSignature(void 0,void 0,void 0,r,c,void 0,n,0)}function v(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function b(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o,s=n.sourceFile,c=n.program,l=n.span.start,d=n.errorCode,u=n.cancellationToken,p=n.host,_=n.preferences,f=e.getTokenAtPosition(s,l),m=e.textChanges.ChangeTracker.with(n,(t=>{o=a(t,s,f,d,c,u,e.returnTrue,p,_)})),g=o&&e.getNameOfDeclaration(o);return g&&0!==m.length?[t.createCodeFixAction(r,m,[i(d,f),e.getTextOfNode(g)],r,e.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[r],getAllCodeActions(r){var i=r.sourceFile,o=r.program,s=r.cancellationToken,c=r.host,l=r.preferences,d=e.nodeSeenTracker();return t.codeFixAll(r,n,((t,r)=>{a(t,i,e.getTokenAtPosition(r.file,r.start),r.code,o,s,d,c,l)}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixReturnTypeInAsyncFunction",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.code];function i(t,r,n){if(!e.isInJSFile(t)){var i=e.getTokenAtPosition(t,n),a=e.findAncestor(i,e.isFunctionLikeDeclaration),o=null==a?void 0:a.type;if(o){var s=r.getTypeFromTypeNode(o),c=r.getAwaitedType(s)||r.getVoidType(),l=r.typeToTypeNode(c,o,void 0);return l?{returnTypeNode:o,returnType:s,promisedTypeNode:l,promisedType:c}:void 0}}}function a(t,r,n,i){t.replaceNode(r,n,e.factory.createTypeReferenceNode("Promise",[i]))}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions(n){var o=n.sourceFile,s=n.program,c=n.span,l=s.getTypeChecker(),d=i(o,s.getTypeChecker(),c.start);if(d){var u=d.returnTypeNode,p=d.returnType,_=d.promisedTypeNode,f=d.promisedType,m=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,u,_)));return[t.createCodeFixAction(r,m,[e.Diagnostics.Replace_0_with_Promise_1,l.typeToString(p),l.typeToString(f)],r,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{var n=i(r.file,e.program.getTypeChecker(),r.start);n&&a(t,r.file,n.returnTypeNode,n.promisedTypeNode)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="disableJsDiagnostics",n="disableJsDiagnostics",i=e.mapDefined(Object.keys(e.Diagnostics),(t=>{var r=e.Diagnostics[t];return r.category===e.DiagnosticCategory.Error?r.code:void 0}));function a(t,r,n,i){var a=e.getLineAndCharacterOfPosition(r,n).line;i&&!e.tryAddToSet(i,a)||t.insertCommentBeforeLine(r,a,n," @ts-ignore")}t.registerCodeFix({errorCodes:i,getCodeActions(i){var o=i.sourceFile,s=i.program,c=i.span,l=i.host,d=i.formatContext;if(e.isInJSFile(o)&&e.isCheckJsEnabledForFile(o,s.getCompilerOptions())){var u=o.checkJsDirective?"":e.getNewLineOrDefaultFromHost(l,d.options),p=[t.createCodeFixActionWithoutFixAll(r,[t.createFileTextChanges(o.fileName,[e.createTextChange(o.checkJsDirective?e.createTextSpanFromBounds(o.checkJsDirective.pos,o.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck".concat(u))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(o,c.start)&&p.unshift(t.createCodeFixAction(r,e.textChanges.ChangeTracker.with(i,(e=>a(e,o,c.start))),e.Diagnostics.Ignore_this_error_message,n,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),p}},fixIds:[n],getAllCodeActions(r){var n=new e.Set;return t.codeFixAll(r,i,((t,r)=>{e.textChanges.isValidLocationToAddComment(r.file,r.start)&&a(t,r.file,r.start,n)}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{function r(t){return{trackSymbol:()=>!1,moduleResolverHost:e.getModuleSpecifierResolverHost(t.program,t.host)}}function n(t,n,a,o,s,c,l,p,_,f){void 0===_&&(_=3),void 0===f&&(f=!1);var m=t.getDeclarations();if(m&&m.length){var h=o.program.getTypeChecker(),v=e.getEmitScriptTarget(o.program.getCompilerOptions()),b=m[0],E=e.getSynthesizedDeepClone(e.getNameOfDeclaration(b),!1),x=(t=>4&t?e.factory.createToken(123):16&t?e.factory.createToken(122):void 0)(e.getEffectiveModifierFlags(b)),D=x?e.factory.createNodeArray([x]):void 0,S=h.getWidenedType(h.getTypeOfSymbolAtLocation(t,n)),T=!!(16777216&t.flags),C=!!(16777216&n.flags)||f,A=e.getQuotePreference(a,s);switch(b.kind){case 166:case 167:var k=0===A?268435456:void 0,N=h.typeToTypeNode(S,n,k,r(o));c&&(w=g(N,v))&&(N=w.typeNode,y(c,w.symbols)),l(e.factory.createPropertyDeclaration(D,E,T&&2&_?e.factory.createToken(57):void 0,N,void 0));break;case 172:case 173:var w,F=h.typeToTypeNode(S,n,void 0,r(o)),P=e.getAllAccessorDeclarations(m,b),I=P.secondAccessor?[P.firstAccessor,P.secondAccessor]:[P.firstAccessor];c&&(w=g(F,v))&&(F=w.typeNode,y(c,w.symbols));for(var O=0,M=I;O<M.length;O++){var R=M[O];if(e.isGetAccessorDeclaration(R))l(e.factory.createGetAccessorDeclaration(D,E,e.emptyArray,F,C?void 0:p||u(A)));else{e.Debug.assertNode(R,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var L=e.getSetAccessorValueParameter(R),B=L&&e.isIdentifier(L.name)?e.idText(L.name):void 0;l(e.factory.createSetAccessorDeclaration(D,E,d(1,[B],[F],1,!1),C?void 0:p||u(A)))}}break;case 168:case 169:var U=S.isUnion()?e.flatMap(S.types,(e=>e.getCallSignatures())):S.getCallSignatures();if(!e.some(U))break;if(1===m.length){e.Debug.assert(1===U.length,"One declaration implies one signature"),z(A,U[0],D,E,C?void 0:p||u(A));break}for(var j=0,V=U;j<V.length;j++)z(A,V[j],e.getSynthesizedDeepClones(D,!1),e.getSynthesizedDeepClone(E,!1));C||(m.length>U.length?z(A,h.getSignatureFromDeclaration(m[m.length-1]),D,E,p||u(A)):(e.Debug.assert(m.length===U.length,"Declarations and signatures should match count"),l(((t,n,i,a,o,s,c,l,p)=>{for(var _=a[0],f=a[0].minArgumentCount,m=!1,g=0,h=a;g<h.length;g++){var y=h[g];f=Math.min(y.minArgumentCount,f),e.signatureHasRestParameter(y)&&(m=!0),y.parameters.length>=_.parameters.length&&(!e.signatureHasRestParameter(y)||e.signatureHasRestParameter(_))&&(_=y)}var v=_.parameters.length-(e.signatureHasRestParameter(_)?1:0),b=_.parameters.map((e=>e.name)),E=d(v,b,void 0,f,!1);if(m){var x=e.factory.createParameterDeclaration(void 0,e.factory.createToken(25),b[v]||"rest",v>=f?e.factory.createToken(57):void 0,e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(155)),void 0);E.push(x)}return((t,r,n,i,a,o,s,c)=>e.factory.createMethodDeclaration(t,void 0,r,n?e.factory.createToken(57):void 0,void 0,a,o,c||u(s)))(c,o,s,0,E,((t,n,i,a)=>{if(e.length(t)){var o=n.getUnionType(e.map(t,n.getReturnTypeOfSignature));return n.typeToTypeNode(o,a,void 0,r(i))}})(a,t,n,i),l,p)})(h,o,n,U,E,T&&!!(1&_),D,A,p))))}}function z(e,t,r,a,s){var d=i(169,o,e,t,s,a,r,T&&!!(1&_),n,c);d&&l(d)}}function i(t,n,i,a,o,s,c,l,d,u){var p=n.program,_=p.getTypeChecker(),f=e.getEmitScriptTarget(p.getCompilerOptions()),m=524545|(0===i?268435456:0),h=_.signatureToSignatureDeclaration(a,t,d,m,r(n));if(h){var v=h.typeParameters,b=h.parameters,E=h.type;if(u){if(v){var x=e.sameMap(v,(t=>{var r,n=t.constraint,i=t.default;return n&&(r=g(n,f))&&(n=r.typeNode,y(u,r.symbols)),i&&(r=g(i,f))&&(i=r.typeNode,y(u,r.symbols)),e.factory.updateTypeParameterDeclaration(t,t.modifiers,t.name,n,i)}));v!==x&&(v=e.setTextRange(e.factory.createNodeArray(x,v.hasTrailingComma),v))}var D=e.sameMap(b,(t=>{var r=g(t.type,f),n=t.type;return r&&(n=r.typeNode,y(u,r.symbols)),e.factory.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,n,t.initializer)}));if(b!==D&&(b=e.setTextRange(e.factory.createNodeArray(D,b.hasTrailingComma),b)),E){var S=g(E,f);S&&(E=S.typeNode,y(u,S.symbols))}}var T=l?e.factory.createToken(57):void 0,C=h.asteriskToken;return e.isFunctionExpression(h)?e.factory.updateFunctionExpression(h,c,h.asteriskToken,e.tryCast(s,e.isIdentifier),v,b,E,null!=o?o:h.body):e.isArrowFunction(h)?e.factory.updateArrowFunction(h,c,v,b,E,h.equalsGreaterThanToken,null!=o?o:h.body):e.isMethodDeclaration(h)?e.factory.updateMethodDeclaration(h,c,C,null!=s?s:e.factory.createIdentifier(""),T,v,b,E,o):void 0}}function a(e){return 84+e<=90?String.fromCharCode(84+e):"T".concat(e)}function o(t,r,n,i,a,o,s){var c=t.typeToTypeNode(n,i,o,s);if(c&&e.isImportTypeNode(c)){var l=g(c,a);l&&(y(r,l.symbols),c=l.typeNode)}return e.getSynthesizedDeepClone(c)}function s(e){return e.isUnionOrIntersection()?e.types.some(s):262144&e.flags}function c(t,r,n,i,c,d,u){for(var p,_=[],f=new e.Map,m=0;m<n.length;m+=1){var g=n[m];if(g.isUnionOrIntersection()&&g.types.some(s)){var h=a(m);_.push(e.factory.createTypeReferenceNode(h)),f.set(h,void 0)}else{var y=t.getBaseTypeOfLiteralType(g),v=o(t,r,y,i,c,d,u);if(v){_.push(v);var b=l(g),E=!g.isTypeParameter()||!g.constraint||524288&(p=g.constraint).flags&&16===p.objectFlags?void 0:o(t,r,g.constraint,i,c,d,u);b&&f.set(b,{argumentType:g,constraint:E})}}}return{argumentTypeNodes:_,argumentTypeParameters:e.arrayFrom(f.entries())}}function l(e){var t;if(3145728&e.flags)for(var r=0,n=e.types;r<n.length;r++){var i=l(n[r]);if(i)return i}return 262144&e.flags?null===(t=e.getSymbol())||void 0===t?void 0:t.getName():void 0}function d(t,r,n,i,a){for(var o=[],s=new e.Map,c=0;c<t;c++){var l=(null==r?void 0:r[c])||"arg".concat(c),d=s.get(l);s.set(l,(d||0)+1);var u=e.factory.createParameterDeclaration(void 0,void 0,l+(d||""),void 0!==i&&c>=i?e.factory.createToken(57):void 0,a?void 0:(null==n?void 0:n[c])||e.factory.createKeywordTypeNode(155),void 0);o.push(u)}return o}function u(t){return p(e.Diagnostics.Method_not_implemented.message,t)}function p(t,r){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(t,0===r)]))],!0)}function _(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(i){var a=m(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=n;s<c.length;s++){var l=c[s],d=l[0],u=l[1],p=m(o,d);void 0===p?t.insertNodeAtObjectStart(r,o,f(d,u)):t.replaceNode(r,p.initializer,u)}}else t.insertNodeAtObjectStart(r,i,f("compilerOptions",e.factory.createObjectLiteralExpression(n.map((e=>f(e[0],e[1]))),!0)))}}function f(t,r){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(t),r)}function m(t,r){return e.find(t.properties,(t=>e.isPropertyAssignment(t)&&!!t.name&&e.isStringLiteral(t.name)&&t.name.text===r))}function g(t,r){var n,i=e.visitNode(t,(function t(i){var a;if(e.isLiteralImportTypeNode(i)&&i.qualifier){var o=e.getFirstIdentifier(i.qualifier),s=e.getNameForExportedSymbol(o.symbol,r),c=s!==o.text?h(i.qualifier,e.factory.createIdentifier(s)):i.qualifier;n=e.append(n,o.symbol);var l=null===(a=i.typeArguments)||void 0===a?void 0:a.map(t);return e.factory.createTypeReferenceNode(c,l)}return e.visitEachChild(i,t,e.nullTransformationContext)}));if(n&&i)return{typeNode:i,symbols:n}}function h(t,r){return 79===t.kind?r:e.factory.createQualifiedName(h(t.left,r),t.right)}function y(e,t){t.forEach((t=>e.addImportFromExportedSymbol(t,!0)))}var v;t.createMissingMemberNodes=(e,t,r,i,a,o,s)=>{for(var c=e.symbol.members,l=0,d=t;l<d.length;l++){var u=d[l];c.has(u.escapedName)||n(u,e,r,i,a,o,s,void 0)}},t.getNoopSymbolTrackerWithResolver=r,(v=t.PreserveOptionalFlags||(t.PreserveOptionalFlags={}))[v.Method=1]="Method",v[v.Property=2]="Property",v[v.All=3]="All",t.addNewNodeForMemberSymbol=n,t.createSignatureDeclarationFromSignature=i,t.createSignatureDeclarationFromCallExpression=(t,n,i,o,s,l,_)=>{var f=e.getQuotePreference(n.sourceFile,n.preferences),m=e.getEmitScriptTarget(n.program.getCompilerOptions()),g=r(n),h=n.program.getTypeChecker(),y=e.isInJSFile(_),v=o.typeArguments,b=o.arguments,E=o.parent,x=y?void 0:h.getContextualType(o),D=e.map(b,(t=>e.isIdentifier(t)?t.text:e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)?t.name.text:void 0)),S=y?[]:e.map(b,(e=>h.getTypeAtLocation(e))),T=c(h,i,S,_,m,void 0,g),C=T.argumentTypeNodes,A=T.argumentTypeParameters,k=l?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(l)):void 0,N=e.isYieldExpression(E)?e.factory.createToken(41):void 0,w=y?void 0:((t,r,n)=>{var i=new e.Set(r.map((e=>e[0]))),o=new e.Map(r);if(n)for(var s=n.filter((e=>!r.some((r=>{var n;return t.getTypeAtLocation(e)===(null===(n=r[1])||void 0===n?void 0:n.argumentType)})))),c=i.size+s.length,l=0;i.size<c;l+=1)i.add(a(l));return e.map(e.arrayFrom(i.values()),(t=>{var r;return e.factory.createTypeParameterDeclaration(void 0,t,null===(r=o.get(t))||void 0===r?void 0:r.constraint)}))})(h,A,v),F=d(b.length,D,C,void 0,y),P=y||void 0===x?void 0:h.typeToTypeNode(x,_,void 0,g);switch(t){case 169:return e.factory.createMethodDeclaration(k,N,s,void 0,w,F,P,u(f));case 168:return e.factory.createMethodSignature(k,s,void 0,w,F,void 0===P?e.factory.createKeywordTypeNode(155):P);case 256:return e.factory.createFunctionDeclaration(k,N,s,w,F,P,p(e.Diagnostics.Function_not_implemented.message,f));default:e.Debug.fail("Unexpected kind")}},t.typeToAutoImportableTypeNode=o,t.getArgumentTypesAndTypeParameters=c,t.createStubbedBody=p,t.setJsonCompilerOptionValues=_,t.setJsonCompilerOptionValue=(e,t,r,n)=>{_(e,t,[[r,n]])},t.createJsonPropertyAssignment=f,t.findJsonProperty=m,t.tryGetAutoImportableReferenceFromTypeNode=g,t.importSymbols=y})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{function r(t){return e.isParameterPropertyDeclaration(t,t.parent)||e.isPropertyDeclaration(t)||e.isPropertyAssignment(t)}function n(t,r){return e.isIdentifier(r)?e.factory.createIdentifier(t):e.factory.createStringLiteral(t)}function i(t,r,n){var i=r?n.name:e.factory.createThis();return e.isIdentifier(t)?e.factory.createPropertyAccessExpression(i,t):e.factory.createElementAccessExpression(i,e.factory.createStringLiteralFromNode(t))}function a(t,i,a,o,c){void 0===c&&(c=!0);var l=e.getTokenAtPosition(t,a),d=a===o&&c,u=e.findAncestor(l.parent,r);if(!u||!e.nodeOverlapsWithStartEnd(u.name,t,a,o)&&!d)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!(t=>e.isIdentifier(t)||e.isStringLiteral(t))(u.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if(124!=(125951&e.getEffectiveModifierFlags(u)|124))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var p=u.name.text,_=e.startsWithUnderscore(p),f=n(_?p:e.getUniqueName("_".concat(p),t),u.name),m=n(_?e.getUniqueName(p.substring(1),t):p,u.name);return{isStatic:e.hasStaticModifier(u),isReadonly:e.hasEffectiveReadonlyModifier(u),type:s(u,i),container:164===u.kind?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:f,accessorName:m,renameAccessor:_}}function o(t,r,n,i,a){e.isParameterPropertyDeclaration(i,i.parent)?t.insertMemberAtStart(r,a,n):e.isPropertyAssignment(i)?t.insertNodeAfterComma(r,i,n):t.insertNodeAfter(r,i,n)}function s(t,r){var n=e.getTypeAnnotationNode(t);if(e.isPropertyDeclaration(t)&&n&&t.questionToken){var i=r.getTypeChecker(),a=i.getTypeFromTypeNode(n);if(!i.isTypeAssignableTo(i.getUndefinedType(),a)){var o=e.isUnionTypeNode(n)?n.types:[n];return e.factory.createUnionTypeNode(f(f([],o,!0),[e.factory.createKeywordTypeNode(153)],!1))}}return n}t.generateAccessorFromProperty=(t,r,n,s,c,l)=>{var d=a(t,r,n,s);if(d&&!e.refactor.isRefactorErrorInfo(d)){var u,p,_=e.textChanges.ChangeTracker.fromContext(c),f=d.isStatic,m=d.isReadonly,g=d.fieldName,h=d.accessorName,y=d.originalName,v=d.type,b=d.container,E=d.declaration;if(e.suppressLeadingAndTrailingTrivia(g),e.suppressLeadingAndTrailingTrivia(h),e.suppressLeadingAndTrailingTrivia(E),e.suppressLeadingAndTrailingTrivia(b),e.isClassLike(b)){var x=e.getEffectiveModifierFlags(E);if(e.isSourceFileJS(t)){var D=e.createModifiers(x);u=D,p=D}else u=e.createModifiers((e=>(e&=-65,16&(e&=-9)||(e|=4),e))(x)),p=e.createModifiers((e=>8|-5&e&-17)(x));e.canHaveDecorators(E)&&(p=e.concatenate(e.getDecorators(E),p))}!((t,r,n,i,a,o)=>{e.isPropertyDeclaration(n)?((t,r,n,i,a,o)=>{var s=e.factory.updatePropertyDeclaration(n,o,a,n.questionToken||n.exclamationToken,i,n.initializer);t.replaceNode(r,n,s)})(t,r,n,i,a,o):e.isPropertyAssignment(n)?((t,r,n,i)=>{var a=e.factory.updatePropertyAssignment(n,i,n.initializer);t.replacePropertyAssignment(r,n,a)})(t,r,n,a):t.replaceNode(r,n,e.factory.updateParameterDeclaration(n,o,n.dotDotDotToken,e.cast(a,e.isIdentifier),n.questionToken,n.type,n.initializer))})(_,t,E,v,g,p);var S=((t,r,n,a,o,s)=>e.factory.createGetAccessorDeclaration(a,r,void 0,n,e.factory.createBlock([e.factory.createReturnStatement(i(t,o,s))],!0)))(g,h,v,u,f,b);if(e.suppressLeadingAndTrailingTrivia(S),o(_,t,S,E,b),m){var T=e.getFirstConstructorWithBody(b);T&&((t,r,n,i,a)=>{n.body&&n.body.forEachChild((function n(o){e.isElementAccessExpression(o)&&108===o.expression.kind&&e.isStringLiteral(o.argumentExpression)&&o.argumentExpression.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.argumentExpression,e.factory.createStringLiteral(i)),e.isPropertyAccessExpression(o)&&108===o.expression.kind&&o.name.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.name,e.factory.createIdentifier(i)),e.isFunctionLike(o)||e.isClassLike(o)||o.forEachChild(n)}))})(_,t,T,g.text,y)}else{var C=((t,r,n,a,o,s)=>e.factory.createSetAccessorDeclaration(a,r,[e.factory.createParameterDeclaration(void 0,void 0,e.factory.createIdentifier("value"),void 0,n)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(i(t,o,s),e.factory.createIdentifier("value")))],!0)))(g,h,v,u,f,b);e.suppressLeadingAndTrailingTrivia(C),o(_,t,C,E,b)}return _.getChanges()}},t.getAccessorConvertiblePropertyAtPosition=a,t.getAllSupers=(t,r)=>{for(var n=[];t;){var i=e.getClassExtendsHeritageElement(t),a=i&&r.getSymbolAtLocation(i.expression);if(!a)break;var o=2097152&a.flags?r.getAliasedSymbol(a):a,s=o.declarations&&e.find(o.declarations,e.isClassLike);if(!s)break;n.push(s),t=s}return n}})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="invalidImportSyntax";function n(n,i,a,o){var s=e.textChanges.ChangeTracker.with(n,(e=>e.replaceNode(i,a,o)));return t.createCodeFixActionWithoutFixAll(r,s,[e.Diagnostics.Replace_import_with_0,s[0].textChanges[0].newText])}function i(i,a){var o=i.program.getTypeChecker().getTypeAtLocation(a);if(!o.symbol||!o.symbol.originatingImport)return[];var s=[],c=o.symbol.originatingImport;if(e.isImportCall(c)||e.addRange(s,((t,r)=>{var i=e.getSourceFileOfNode(r),a=e.getNamespaceDeclarationNode(r),o=t.program.getCompilerOptions(),s=[];return s.push(n(t,i,r,e.makeImport(a.name,void 0,r.moduleSpecifier,e.getQuotePreference(i,t.preferences)))),e.getEmitModuleKind(o)===e.ModuleKind.CommonJS&&s.push(n(t,i,r,e.factory.createImportEqualsDeclaration(void 0,!1,a.name,e.factory.createExternalModuleReference(r.moduleSpecifier)))),s})(i,c)),e.isExpression(a)&&(!e.isNamedDeclaration(a.parent)||a.parent.name!==a)){var l=i.sourceFile,d=e.textChanges.ChangeTracker.with(i,(t=>t.replaceNode(l,a,e.factory.createPropertyAccessExpression(a,"default"),{})));s.push(t.createCodeFixActionWithoutFixAll(r,d,e.Diagnostics.Use_synthetic_default_member))}return s}t.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions(t){var r=t.sourceFile,n=e.Diagnostics.This_expression_is_not_callable.code===t.errorCode?208:209,a=e.findAncestor(e.getTokenAtPosition(r,t.span.start),(e=>e.kind===n));return a?i(t,a.expression):[]}}),t.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions(t){var r=t.sourceFile,n=e.findAncestor(e.getTokenAtPosition(r,t.span.start),(e=>e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length));return n?i(t,n):[]}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="strictClassInitialization",n="addMissingPropertyDefiniteAssignmentAssertions",i="addMissingPropertyUndefinedType",a="addMissingPropertyInitializer",o=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function s(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)&&e.isPropertyDeclaration(n.parent)){var i=e.getEffectiveTypeAnnotationNode(n.parent);if(i)return{type:i,prop:n.parent,isJs:e.isInJSFile(n.parent)}}}function c(t,r,n){e.suppressLeadingAndTrailingTrivia(n);var i=e.factory.updatePropertyDeclaration(n,n.modifiers,n.name,e.factory.createToken(53),n.type,n.initializer);t.replaceNode(r,n,i)}function l(t,r,n){var i=e.factory.createKeywordTypeNode(153),a=e.isUnionTypeNode(n.type)?n.type.types.concat(i):[n.type,i],o=e.factory.createUnionTypeNode(a);n.isJs?t.addJSDocTags(r,n.prop,[e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(o))]):t.replaceNode(r,n.type,o)}function d(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.factory.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,i);t.replaceNode(r,n,a)}function u(e,t){return p(e,e.getTypeFromTypeNode(t.type))}function p(t,r){if(512&r.flags)return r===t.getFalseType()||r===t.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(r.isStringLiteral())return e.factory.createStringLiteral(r.value);if(r.isNumberLiteral())return e.factory.createNumericLiteral(r.value);if(2048&r.flags)return e.factory.createBigIntLiteral(r.value);if(r.isUnion())return e.firstDefined(r.types,(e=>p(t,e)));if(r.isClass()){var n=e.getClassLikeDeclarationOfSymbol(r.symbol);if(!n||e.hasSyntacticModifier(n,128))return;var i=e.getFirstConstructorWithBody(n);if(i&&i.parameters.length)return;return e.factory.createNewExpression(e.factory.createIdentifier(r.symbol.name),void 0,void 0)}return t.isArrayLikeType(r)?e.factory.createArrayLiteralExpression():void 0}t.registerCodeFix({errorCodes:o,getCodeActions(o){var p=s(o.sourceFile,o.span.start);if(p){var _=[];return e.append(_,((n,a)=>{var o=e.textChanges.ChangeTracker.with(n,(e=>l(e,n.sourceFile,a)));return t.createCodeFixAction(r,o,[e.Diagnostics.Add_undefined_type_to_property_0,a.prop.name.getText()],i,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)})(o,p)),e.append(_,((i,a)=>{if(!a.isJs){var o=e.textChanges.ChangeTracker.with(i,(e=>c(e,i.sourceFile,a.prop)));return t.createCodeFixAction(r,o,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,a.prop.getText()],n,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}})(o,p)),e.append(_,((n,i)=>{if(!i.isJs){var o=u(n.program.getTypeChecker(),i.prop);if(o){var s=e.textChanges.ChangeTracker.with(n,(e=>d(e,n.sourceFile,i.prop,o)));return t.createCodeFixAction(r,s,[e.Diagnostics.Add_initializer_to_property_0,i.prop.name.getText()],a,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}}})(o,p)),_}},fixIds:[n,i,a],getAllCodeActions:r=>t.codeFixAll(r,o,((t,o)=>{var p=s(o.file,o.start);if(p)switch(r.fixId){case n:c(t,o.file,p.prop);break;case i:l(t,o.file,p);break;case a:var _=u(r.program.getTypeChecker(),p.prop);if(!_)return;d(t,o.file,p.prop,_);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="requireInTs",n=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];function i(t,r,n){var i=n.allowSyntheticDefaults,a=n.defaultImportName,o=n.namedImports,s=n.statement,c=n.required;t.replaceNode(r,s,a&&!i?e.factory.createImportEqualsDeclaration(void 0,!1,a,e.factory.createExternalModuleReference(c)):e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,a,o),c,void 0))}function a(t,r,n){var i=e.getTokenAtPosition(t,n).parent;if(!e.isRequireCall(i,!0))throw e.Debug.failBadSyntaxKind(i);var a=e.cast(i.parent,e.isVariableDeclaration),o=e.tryCast(a.name,e.isIdentifier),s=e.isObjectBindingPattern(a.name)?(t=>{for(var r=[],n=0,i=t.elements;n<i.length;n++){var a=i[n];if(!e.isIdentifier(a.name)||a.initializer)return;r.push(e.factory.createImportSpecifier(!1,e.tryCast(a.propertyName,e.isIdentifier),a.name))}if(r.length)return e.factory.createNamedImports(r)})(a.name):void 0;if(o||s)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(r.getCompilerOptions()),defaultImportName:o,namedImports:s,statement:e.cast(a.parent.parent,e.isVariableStatement),required:e.first(i.arguments)}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=a(n.sourceFile,n.program,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,o)));return[t.createCodeFixAction(r,s,e.Diagnostics.Convert_require_to_import,r,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{var n=a(r.file,e.program,r.start);n&&i(t,e.sourceFile,n)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="useDefaultImport",n=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];function i(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)){var i=n.parent;if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(e.isNamespaceImport(i)){var a=i.parent.parent;return{importNode:a,name:n,moduleSpecifier:a.moduleSpecifier}}}}function a(t,r,n,i){t.replaceNode(r,n.importNode,e.makeImport(n.name,void 0,n.moduleSpecifier,e.getQuotePreference(r,i)))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span.start,c=i(o,s);if(c){var l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c,n.preferences)));return[t.createCodeFixAction(r,l,e.Diagnostics.Convert_to_default_import,r,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{var n=i(r.file,r.start);n&&a(t,r.file,n,e.preferences)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="useBigintLiteral",n=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),e.isNumericLiteral);if(i){var a=i.getText(r)+"n";t.replaceNode(r,i,e.factory.createBigIntLiteral(a))}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span)));if(a.length>0)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:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(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(100===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(200===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.assertions,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>a(t,e.sourceFile,i(r.file,r.start))))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(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)||(n=n.parent,e.isBinaryExpression(n)))&&e.nodeIsMissing(n.operatorToken))return n}function a(t,r,n){var i=(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(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_in_JSX_fragment,r,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{var n=i(e.sourceFile,r.start);n&&a(t,e.sourceFile,n)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixConvertToMappedObjectType",n=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.tryCast(n.parent.parent,e.isIndexSignatureDeclaration);if(i){var a=e.isInterfaceDeclaration(i.parent)?i.parent:e.tryCast(i.parent.parent,e.isTypeAliasDeclaration);if(a)return{indexSignature:i,container:a}}}function a(t,r,n){var i,a,o=n.indexSignature,s=n.container,c=(e.isInterfaceDeclaration(s)?s.members:s.type.members).filter((t=>!e.isIndexSignatureDeclaration(t))),l=e.first(o.parameters),d=e.factory.createTypeParameterDeclaration(void 0,e.cast(l.name,e.isIdentifier),l.type),u=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(o)?e.factory.createModifier(145):void 0,d,void 0,o.questionToken,o.type,void 0),p=e.factory.createIntersectionTypeNode(f(f(f([],e.getAllSuperTypeNodes(s),!0),[u],!1),c.length?[e.factory.createTypeLiteralNode(c)]:e.emptyArray,!0));t.replaceNode(r,s,(i=s,a=p,e.factory.createTypeAliasDeclaration(i.modifiers,i.name,i.typeParameters,a)))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c))),d=e.idText(c.container.name);return[t.createCodeFixAction(r,l,[e.Diagnostics.Convert_0_to_mapped_object_type,d],r,[e.Diagnostics.Convert_0_to_mapped_object_type,d])]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&a(e,t.file,r)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{var t,r,n;t=e.codefix||(e.codefix={}),r="removeAccidentalCallParentheses",n=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],t.registerCodeFix({errorCodes:n,getCodeActions(n){var i=e.findAncestor(e.getTokenAtPosition(n.sourceFile,n.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(n,(e=>{e.deleteRange(n.sourceFile,{pos:i.expression.end,end:i.end})}));return[t.createCodeFixActionWithoutFixAll(r,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[r]})})(p),(e=>{!(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),(e=>132===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&&103!==c.kind&&(o=a.parent)}}t.replaceNode(r,o,a.expression)}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>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:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(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.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),r.moduleSpecifier,r.assertClause)),t.insertNodeAfter(n.sourceFile,r,e.factory.createImportDeclaration(void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),r.moduleSpecifier,r.assertClause))}}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions(r){var o=e.textChanges.ChangeTracker.with(r,(e=>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:e=>t.codeFixAll(e,r,((t,r)=>{a(t,i(e.sourceFile,r),e)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{var t,r,n;t=e.codefix||(e.codefix={}),r="fixConvertConstToLet",n=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code],t.registerCodeFix({errorCodes:n,getCodeActions(n){var i=n.sourceFile,a=n.span,o=n.program,s=((t,r,n)=>{var i,a=n.getTypeChecker().getSymbolAtLocation(e.getTokenAtPosition(t,r)),o=e.tryCast(null===(i=null==a?void 0:a.valueDeclaration)||void 0===i?void 0:i.parent,e.isVariableDeclarationList);if(void 0!==o){var s=e.findChildOfKind(o,85,t);if(void 0!==s)return e.createRange(s.pos,s.end)}})(i,a.start,o);if(void 0!==s){var c=e.textChanges.ChangeTracker.with(n,(e=>((e,t,r)=>{e.replaceRangeWithText(t,r,"let")})(e,i,s)));return[t.createCodeFixAction(r,c,e.Diagnostics.Convert_const_to_let,r,e.Diagnostics.Convert_const_to_let)]}},fixIds:[r]})})(p),(e=>{!(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(n){var o=n.sourceFile,s=i(o,n.span.start);if(s){var c=e.textChanges.ChangeTracker.with(n,(e=>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:e=>t.codeFixAll(e,n,((t,r)=>{var n=i(r.file,r.start);n&&a(t,e.sourceFile,n)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="addVoidToPromise",n=[e.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=i.getTypeChecker(),c=s.getSymbolAtLocation(o),l=null==c?void 0:c.valueDeclaration;if(l&&e.isParameter(l)&&e.isNewExpression(l.parent.parent)&&!(null==a?void 0:a.has(l))){null==a||a.add(l);var d=(t=>{var r;if(!e.isInJSFile(t))return t.typeArguments;if(e.isParenthesizedExpression(t.parent)){var n=null===(r=e.getJSDocTypeTag(t.parent))||void 0===r?void 0:r.typeExpression.type;if(n&&e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Promise"===e.idText(n.typeName))return n.typeArguments}})(l.parent.parent);if(e.some(d)){var u=d[0],p=!e.isUnionTypeNode(u)&&!e.isParenthesizedTypeNode(u)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([u,e.factory.createKeywordTypeNode(114)]).types[0]);p&&t.insertText(r,u.pos,"("),t.insertText(r,u.end,p?") | void":" | void")}else{var _=s.getResolvedSignature(o.parent),f=null==_?void 0:_.parameters[0],m=f&&s.getTypeOfSymbolAtLocation(f,l.parent.parent);e.isInJSFile(l)?(!m||3&m.flags)&&(t.insertText(r,l.parent.parent.end,")"),t.insertText(r,e.skipTrivia(r.text,l.parent.parent.pos),"/** @type {Promise<void>} */(")):(!m||2&m.flags)&&t.insertText(r,l.parent.parent.expression.end,"<void>")}}}}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span,n.program)));if(a.length>0)return[t.createCodeFixAction("addVoidToPromise",a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,r,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:r=>t.codeFixAll(r,n,((t,n)=>i(t,n.file,n,r.program,new e.Set)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="Convert export",n={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},i={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};function a(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),o=e.getTokenAtPosition(n,a.start),s=o.parent&&1&e.getSyntacticModifierFlags(o.parent)&&r?o.parent:e.getParentNodeInSpan(o,n,a);if(!s||!(e.isSourceFile(s.parent)||e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var c=i.getTypeChecker(),l=((t,r)=>{var n=t.parent;if(e.isSourceFile(n))return n.symbol;var i=n.parent.symbol;return i.valueDeclaration&&e.isExternalModuleAugmentation(i.valueDeclaration)?r.getMergedSymbol(i):i})(s,c),d=e.getSyntacticModifierFlags(s)||(e.isExportAssignment(s)&&!s.isExportEquals?513:0),u=!!(512&d);if(!(1&d)||!u&&l.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var p=t=>e.isIdentifier(t)&&c.getSymbolAtLocation(t)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)};switch(s.kind){case 256:case 257:case 258:case 260:case 259:case 261:if(!(m=s).name)return;return p(m.name)||{exportNode:m,exportName:m.name,wasDefault:u,exportingModuleSymbol:l};case 237:var _=s;if(!(2&_.declarationList.flags)||1!==_.declarationList.declarations.length)return;var f=e.first(_.declarationList.declarations);if(!f.initializer)return;return e.Debug.assert(!u,"Can't have a default flag here"),p(f.name)||{exportNode:_,exportName:f.name,wasDefault:u,exportingModuleSymbol:l};case 271:var m;if((m=s).isExportEquals)return;return p(m.expression)||{exportNode:m,exportName:m.expression,wasDefault:u,exportingModuleSymbol:l};default:return}}function o(t,r){return e.factory.createImportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}function s(t,r){return e.factory.createExportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}t.registerRefactor(r,{kinds:[n.kind,i.kind],getAvailableActions(o){var s=a(o,"invoked"===o.triggerReason);if(!s)return e.emptyArray;if(!t.isRefactorErrorInfo(s)){var c=s.wasDefault?n:i;return[{name:r,description:c.description,actions:[c]}]}return o.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[m(m({},n),{notApplicableReason:s.error}),m(m({},i),{notApplicableReason:s.error})]}]:e.emptyArray},getEditsForAction(r,c){e.Debug.assert(c===n.name||c===i.name,"Unexpected action name");var l=a(r);return e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(t=>((t,r,n,i,a)=>{((t,r,n,i)=>{var a=r.wasDefault,o=r.exportNode,c=r.exportName;if(a)if(e.isExportAssignment(o)&&!o.isExportEquals){var l=o.expression,d=s(l.text,l.text);n.replaceNode(t,o,e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([d])))}else n.delete(t,e.Debug.checkDefined(e.findModifier(o,88),"Should find a default keyword in modifier list"));else{var u=e.Debug.checkDefined(e.findModifier(o,93),"Should find an export keyword in modifier list");switch(o.kind){case 256:case 257:case 258:n.insertNodeAfter(t,u,e.factory.createToken(88));break;case 237:var p=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(c,i,t)&&!p.type){n.replaceNode(t,o,e.factory.createExportDefault(e.Debug.checkDefined(p.initializer,"Initializer was previously known to be present")));break}case 260:case 259:case 261:n.deleteModifier(t,u),n.insertNodeAfter(t,o,e.factory.createExportDefault(e.factory.createIdentifier(c.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(o.kind))}}})(t,n,i,r.getTypeChecker()),((t,r,n,i)=>{var a=r.wasDefault,c=r.exportName,l=r.exportingModuleSymbol,d=t.getTypeChecker(),u=e.Debug.checkDefined(d.getSymbolAtLocation(c),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),d,i,u,l,c.text,a,(t=>{if(c!==t){var r=t.getSourceFile();a?((t,r,n,i)=>{var a=r.parent;switch(a.kind){case 206:n.replaceNode(t,r,e.factory.createIdentifier(i));break;case 270:case 275:var s=a;n.replaceNode(t,s,o(i,s.name.text));break;case 267:var c=a;e.Debug.assert(c.name===r,"Import clause name should match provided ref"),s=o(i,r.text);var l=c.namedBindings;if(l)if(268===l.kind){n.deleteRange(t,{pos:r.getStart(t),end:l.getStart(t)});var d=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,u=e.makeImport(void 0,[o(i,r.text)],c.parent.moduleSpecifier,d);n.insertNodeAfter(t,c.parent,u)}else n.delete(t,r),n.insertNodeAtEndOfList(t,l.elements,s);else n.replaceNode(t,r,e.factory.createNamedImports([s]));break;case 200:var p=a;n.replaceNode(t,a,e.factory.createImportTypeNode(p.argument,p.assertions,e.factory.createIdentifier(i),p.typeArguments,p.isTypeOf));break;default:e.Debug.failBadSyntaxKind(a)}})(r,t,n,c.text):((t,r,n)=>{var i=r.parent;switch(i.kind){case 206:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 270:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?n.replaceNode(t,i.parent,a):(n.delete(t,i),n.insertNodeBefore(t,i.parent,a));break;case 275:n.replaceNode(t,i,s("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind ".concat(i.kind))}})(r,t,n)}}))})(r,n,i,a)})(r.file,r.program,l,t,r.cancellationToken))),renameFilename:void 0,renameLocation:void 0}}})})(e.refactor||(e.refactor={}))})(p),(e=>{!(t=>{var r,n="Convert import",i=((r={})[0]={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},r[2]={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},r[1]={name:"Convert named imports to default import",description:e.Diagnostics.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"},r);function a(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),s=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,i);if(!s||!e.isImportDeclaration(s))return{error:"Selection is not an import declaration."};var c=i.start+i.length,l=e.findNextToken(s,s.parent,n);if(!(l&&c>l.getStart())){var d=s.importClause;return d?d.namedBindings?268===d.namedBindings.kind?{convertTo:0,import:d.namedBindings}:o(t.program,d)?{convertTo:1,import:d.namedBindings}:{convertTo:2,import:d.namedBindings}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function o(t,r){return e.getAllowSyntheticDefaultImports(t.getCompilerOptions())&&(n=r.parent.moduleSpecifier,!!(a=(i=t.getTypeChecker()).resolveExternalModuleName(n))&&a!==i.resolveExternalModuleSymbol(a));var n,i,a}function s(t){return e.isPropertyAccessExpression(t)?t.name:t.right}function c(t,r,n,i,a){void 0===a&&(a=o(r,i.parent));var s=r.getTypeChecker(),c=i.parent.parent,d=c.moduleSpecifier,u=new e.Set;i.elements.forEach((e=>{var t=s.getSymbolAtLocation(e.name);t&&u.add(t)}));for(var p=d&&e.isStringLiteral(d)?e.codefix.moduleSpecifierToValidIdentifier(d.text,99):"module",_=i.elements.some((r=>!!e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,s,t,(t=>{var r=s.resolveName(p,t,67108863,!0);return!!r&&(!u.has(r)||e.isExportSpecifier(t.parent))}))))?e.getUniqueName(p,t):p,f=new e.Set,m=r=>{var i=(r.propertyName||r.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,s,t,(a=>{var o=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(_),i);e.isShorthandPropertyAssignment(a.parent)?n.replaceNode(t,a.parent,e.factory.createPropertyAssignment(a.text,o)):e.isExportSpecifier(a.parent)?f.add(r):n.replaceNode(t,a,o)}))},g=0,h=i.elements;g<h.length;g++)m(h[g]);if(n.replaceNode(t,i,a?e.factory.createIdentifier(_):e.factory.createNamespaceImport(e.factory.createIdentifier(_))),f.size){var y=e.arrayFrom(f.values()).map((t=>e.factory.createImportSpecifier(t.isTypeOnly,t.propertyName&&e.factory.createIdentifier(t.propertyName.text),e.factory.createIdentifier(t.name.text))));n.insertNodeAfter(t,i.parent.parent,l(c,void 0,y))}}function l(t,r,n){return e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,r,n&&n.length?e.factory.createNamedImports(n):void 0),t.moduleSpecifier,void 0)}t.registerRefactor(n,{kinds:e.getOwnValues(i).map((e=>e.kind)),getAvailableActions(r){var o=a(r,"invoked"===r.triggerReason);if(!o)return e.emptyArray;if(!t.isRefactorErrorInfo(o)){var s=i[o.convertTo];return[{name:n,description:s.description,actions:[s]}]}return r.preferences.provideRefactorNotApplicableReason?e.getOwnValues(i).map((e=>({name:n,description:e.description,actions:[m(m({},e),{notApplicableReason:o.error})]}))):e.emptyArray},getEditsForAction(r,n){e.Debug.assert(e.some(e.getOwnValues(i),(e=>e.name===n)),"Unexpected action name");var o=a(r);return e.Debug.assert(o&&!t.isRefactorErrorInfo(o),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(t=>((t,r,n,i)=>{var a=r.getTypeChecker();0===i.convertTo?((t,r,n,i,a)=>{var o=!1,c=[],d=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,r,t,(t=>{if(e.isPropertyAccessOrQualifiedName(t.parent)){var n=s(t.parent).text;r.resolveName(n,t,67108863,!0)&&d.set(n,!0),e.Debug.assert((t=>e.isPropertyAccessExpression(t)?t.expression:t.left)(t.parent)===t,"Parent expression should match id"),c.push(t.parent)}else o=!0}));for(var u=new e.Map,p=0,_=c;p<_.length;p++){var f=_[p],m=s(f).text,g=u.get(m);void 0===g&&u.set(m,g=d.has(m)?e.getUniqueName(m,t):m),n.replaceNode(t,f,e.factory.createIdentifier(g))}var h=[];u.forEach(((t,r)=>{h.push(e.factory.createImportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(t)))}));var y=i.parent.parent;o&&!a?n.insertNodeAfter(t,y,l(y,void 0,h)):n.replaceNode(t,y,l(y,o?e.factory.createIdentifier(i.name.text):void 0,h))})(t,a,n,i.import,e.getAllowSyntheticDefaultImports(r.getCompilerOptions())):c(t,r,n,i.import,1===i.convertTo)})(r.file,r.program,t,o))),renameFilename:void 0,renameLocation:void 0}}}),t.doChangeNamedToNamespaceOrDefault=c})(e.refactor||(e.refactor={}))})(p),(e=>{var t;(r=>{var n="Convert to optional chain expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),a={name:n,description:i,kind:"refactor.rewrite.expression.optionalChain"};function o(t){return e.isBinaryExpression(t)||e.isConditionalExpression(t)}function s(t){return o(t)||(t=>e.isExpressionStatement(t)||e.isReturnStatement(t)||e.isVariableStatement(t))(t)}function c(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),c=0===a.length;if(!c||r){var u=e.getTokenAtPosition(n,a.start),_=e.findTokenOnLeftOfPosition(n,a.start+a.length),f=e.createTextSpanFromBounds(u.pos,_&&_.end>=u.pos?_.getEnd():u.getEnd()),m=c?(e=>{for(;e.parent;){if(s(e)&&!s(e.parent))return e;e=e.parent}})(u):((e,t)=>{for(;e.parent;){if(s(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}})(u,f),g=m&&s(m)?(t=>{if(o(t))return t;if(e.isVariableStatement(t)){var r=e.getSingleVariableOfVariableStatement(t),n=null==r?void 0:r.initializer;return n&&o(n)?n:void 0}return t.expression&&o(t.expression)?t.expression:void 0})(m):void 0;if(!g)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var h=i.getTypeChecker();return e.isConditionalExpression(g)?((t,r)=>{var n=t.condition,i=p(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))&&d(n,i.expression))return{finalExpression:i,occurrences:[n],expression:t};if(e.isBinaryExpression(n)){var a=l(i.expression,n);return a?{finalExpression:i,occurrences:a,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}})(g,h):(t=>{if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var r=p(t.right);if(!r)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var n=l(r.expression,t.left);return n?{finalExpression:r,occurrences:n,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}})(g)}}function l(t,r){for(var n=[];e.isBinaryExpression(r)&&55===r.operatorToken.kind;){var i=d(e.skipParentheses(t),e.skipParentheses(r.right));if(!i)break;n.push(i),t=i,r=r.left}var a=d(t,r);return a&&n.push(a),n.length>0?n:void 0}function d(t,r){if(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))return((t,r)=>{for(;(e.isCallExpression(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&u(t)!==u(r);)t=t.expression;for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r)||e.isElementAccessExpression(t)&&e.isElementAccessExpression(r);){if(u(t)!==u(r))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 u(t){return e.isIdentifier(t)||e.isStringOrNumericLiteralLike(t)?t.getText():e.isPropertyAccessExpression(t)?u(t.name):e.isElementAccessExpression(t)?u(t.argumentExpression):void 0}function p(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?p(t.left):(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t))&&!e.isOptionalChain(t)?t:void 0}function _(t,r,n){if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(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 o?e.factory.createCallChain(i,e.factory.createToken(28),r.typeArguments,r.arguments):e.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(e.isPropertyAccessExpression(r))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),r.name):e.factory.createPropertyAccessChain(i,r.questionDotToken,r.name);if(e.isElementAccessExpression(r))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),r.argumentExpression):e.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}return r}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction(r,n){var i=c(r);return e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(t=>((t,r,n,i,a)=>{var o=i.finalExpression,s=i.occurrences,c=i.expression,l=s[s.length-1],d=_(r,o,s);d&&(e.isPropertyAccessExpression(d)||e.isElementAccessExpression(d)||e.isCallExpression(d))&&(e.isBinaryExpression(c)?n.replaceNodeRange(t,l,o,d):e.isConditionalExpression(c)&&n.replaceNode(t,c,e.factory.createBinaryExpression(d,e.factory.createToken(60),c.whenFalse)))})(r.file,r.program.getTypeChecker(),t,i))),renameFilename:void 0,renameLocation:void 0}},getAvailableActions(r){var o=c(r,"invoked"===r.triggerReason);return o?t.isRefactorErrorInfo(o)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[m(m({},a),{notApplicableReason:o.error})]}]:e.emptyArray:[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))})(p),(e=>{var t;(r=>{var n="Convert overload list to single signature",i=e.Diagnostics.Convert_overload_list_to_single_signature.message,a={name:n,description:i,kind:"refactor.rewrite.function.overloadList"};function o(e){switch(e.kind){case 168:case 169:case 174:case 171:case 175:case 256:return!0}return!1}function s(t,r,n){var i=e.getTokenAtPosition(t,r),a=e.findAncestor(i,o);if(a&&!(e.isFunctionLikeDeclaration(a)&&a.body&&e.rangeContainsPosition(a.body,r))){var s=n.getTypeChecker(),c=a.symbol;if(c){var l=c.declarations;if(!(e.length(l)<=1)&&e.every(l,(r=>e.getSourceFileOfNode(r)===t))&&o(l[0])){var d=l[0].kind;if(e.every(l,(e=>e.kind===d))){var u=l;if(!e.some(u,(t=>!!t.typeParameters||e.some(t.parameters,(t=>!!t.modifiers||!e.isIdentifier(t.name)))))){var p=e.mapDefined(u,(e=>s.getSignatureFromDeclaration(e)));if(e.length(p)===e.length(l)){var _=s.getReturnTypeOfSignature(p[0]);if(e.every(p,(e=>s.getReturnTypeOfSignature(e)===_)))return u}}}}}}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction(t){var r=t.file,n=t.startPosition,i=t.program,a=s(r,n,i);if(a){var o=i.getTypeChecker(),c=a[a.length-1],l=c;switch(c.kind){case 168:l=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,d(a),c.type);break;case 169:l=e.factory.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,d(a),c.type,c.body);break;case 174:l=e.factory.updateCallSignature(c,c.typeParameters,d(a),c.type);break;case 171:l=e.factory.updateConstructorDeclaration(c,c.modifiers,d(a),c.body);break;case 175:l=e.factory.updateConstructSignature(c,c.typeParameters,d(a),c.type);break;case 256:l=e.factory.updateFunctionDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.typeParameters,d(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(l!==c)return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(e=>{e.replaceNodeRange(r,a[0],a[a.length-1],l)}))}}function d(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,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,u)))])}function u(t){var r=e.map(t.parameters,p);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,(t=>!!e.length(e.getSyntheticLeadingComments(t))))?0:1)}function p(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(130)),t),n=t.symbol&&t.symbol.getDocumentationComment(o);if(n){var i=e.displayPartsToString(n);i.length&&e.setSyntheticLeadingComments(r,[{text:"*\n".concat(i.split("\n").map((e=>" * ".concat(e))).join("\n"),"\n "),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return r}},getAvailableActions:t=>s(t.file,t.startPosition,t.program)?[{name:n,description:i,actions:[a]}]:e.emptyArray})})((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))})(p),(e=>{var t;(r=>{var n,i,a,o,s="Extract Symbol",c={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},l={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function d(r){var n=r.kind,i=p(r.file,e.getRefactorContextSpan(r),"invoked"===r.triggerReason),a=i.targetRange;if(void 0===a){if(!i.errors||0===i.errors.length||!r.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var o=[];return t.refactorKindBeginsWith(l.kind,n)&&o.push({name:s,description:l.description,actions:[m(m({},l),{notApplicableReason:N(i.errors)})]}),t.refactorKindBeginsWith(c.kind,n)&&o.push({name:s,description:c.description,actions:[m(m({},c),{notApplicableReason:N(i.errors)})]}),o}var d=((t,r)=>{var n=g(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope;return i.map(((t,r)=>{var n,i,a=(t=>e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function")(t),c=(t=>e.isClassLike(t)?"readonly field":"constant")(t),l=e.isFunctionLikeDeclaration(t)?(t=>{switch(t.kind){case 171:return"constructor";case 213:case 256:return t.name?"function '".concat(t.name.text,"'"):e.ANONYMOUS;case 214:return"arrow function";case 169:return"method '".concat(t.name.getText(),"'");case 172:return"'get ".concat(t.name.getText(),"'");case 173:return"'set ".concat(t.name.getText(),"'");default:throw e.Debug.assertNever(t,"Unexpected scope kind ".concat(t.kind))}})(t):e.isClassLike(t)?(e=>257===e.kind?e.name?"class '".concat(e.name.text,"'"):"anonymous class declaration":e.name?"class expression '".concat(e.name.text,"'"):"anonymous class expression")(t):(e=>262===e.kind?"namespace '".concat(e.parent.name.getText(),"'"):e.externalModuleIndicator?0:1)(t);return 1===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"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),[a,l]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,l])),0!==r||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:n,errors:o[r]},constantExtraction:{description:i,errors:s[r]}}}))})(a,r);if(void 0===d)return e.emptyArray;for(var u,_,f=[],h=new e.Map,y=[],v=new e.Map,b=0,E=0,x=d;E<x.length;E++){var D=x[E],S=D.functionExtraction,T=D.constantExtraction,C=S.description;if(t.refactorKindBeginsWith(l.kind,n)&&(0===S.errors.length?h.has(C)||(h.set(C,!0),f.push({description:C,name:"function_scope_".concat(b),kind:l.kind})):u||(u={description:C,name:"function_scope_".concat(b),notApplicableReason:N(S.errors),kind:l.kind})),t.refactorKindBeginsWith(c.kind,n))if(0===T.errors.length){var A=T.description;v.has(A)||(v.set(A,!0),y.push({description:A,name:"constant_scope_".concat(b),kind:c.kind}))}else _||(_={description:C,name:"constant_scope_".concat(b),notApplicableReason:N(T.errors),kind:c.kind});b++}var k=[];return f.length?k.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:f}):r.preferences.provideRefactorNotApplicableReason&&u&&k.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[u]}),y.length?k.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:y}):r.preferences.provideRefactorNotApplicableReason&&_&&k.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[_]}),k.length?k:e.emptyArray;function N(e){var t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function u(t,r){var n=p(t.file,e.getRefactorContextSpan(t)).targetRange,a=/^function_scope_(\d+)$/.exec(r);if(a){var o=+a[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index"),((t,r,n)=>{var a=g(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,l=s.usagesPerScope,d=s.functionErrorsPerScope,u=s.exposedVariableDeclarations;return e.Debug.assert(!d[n].length,"The extraction went missing? How?"),r.cancellationToken.throwIfCancellationRequested(),((t,r,n,a,o,s)=>{var c,l,d=n.usages,u=n.typeParameterUsages,p=n.substitutions,_=s.program.getTypeChecker(),f=e.getEmitScriptTarget(s.program.getCompilerOptions()),m=e.codefix.createImportAdder(s.file,s.program,s.preferences,s.host),g=r.getSourceFile(),E=e.getUniqueName(e.isClassLike(r)?"newMethod":"newFunction",g),x=e.isInJSFile(r),S=e.factory.createIdentifier(E),T=[],C=[];d.forEach(((t,n)=>{var i;if(!x){var a=_.getTypeOfSymbolAtLocation(t.symbol,t.node);a=_.getBaseTypeOfLiteralType(a),i=e.codefix.typeToAutoImportableTypeNode(_,m,a,r,f,1)}var o=e.factory.createParameterDeclaration(void 0,void 0,n,void 0,i);T.push(o),2===t.usage&&(l||(l=[])).push(t),C.push(e.factory.createIdentifier(n))}));var A=e.arrayFrom(u.values()).map((e=>({type:e,declaration:h(e)}))).sort(y),k=0===A.length?void 0:A.map((e=>e.declaration)),N=void 0!==k?k.map((t=>e.factory.createTypeReferenceNode(t.name,void 0))):void 0;if(e.isExpression(t)&&!x){var w=_.getContextualType(t);c=_.typeToTypeNode(w,r,1)}var F,P=((t,r,n,i,a)=>{var o,s=void 0!==n||r.length>0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,l=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(e.skipParentheses(t))]);if(s||i.size){var d=e.visitNodes(l,(function t(a){if(!c&&e.isReturnStatement(a)&&s){var l=v(r,n);return a.expression&&(o||(o="__return"),l.unshift(e.factory.createPropertyAssignment(o,e.visitNode(a.expression,t)))),1===l.length?e.factory.createReturnStatement(l[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(l))}var d=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var u=i.get(e.getNodeId(a).toString()),p=u?e.getSynthesizedDeepClone(u):e.visitEachChild(a,t,e.nullTransformationContext);return c=d,p})).slice();if(s&&!a&&e.isStatement(t)){var u=v(r,n);1===u.length?d.push(e.factory.createReturnStatement(u[0].name)):d.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(u)))}return{body:e.factory.createBlock(d,!0),returnValueProperty:o}}return{body:e.factory.createBlock(l,!0),returnValueProperty:void 0}})(t,a,l,p,!!(o.facts&i.HasReturn)),I=P.body,O=P.returnValueProperty;e.suppressLeadingAndTrailingTrivia(I);var M=!!(o.facts&i.UsesThisInFunction);if(e.isClassLike(r)){var R=x?[]:[e.factory.createModifier(121)];o.facts&i.InStaticRegion&&R.push(e.factory.createModifier(124)),o.facts&i.IsAsyncFunction&&R.push(e.factory.createModifier(131)),F=e.factory.createMethodDeclaration(R.length?R:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,S,void 0,k,T,c,I)}else M&&T.unshift(e.factory.createParameterDeclaration(void 0,void 0,"this",void 0,_.typeToTypeNode(_.getTypeAtLocation(o.thisNode),r,1),void 0)),F=e.factory.createFunctionDeclaration(o.facts&i.IsAsyncFunction?[e.factory.createToken(131)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,S,k,T,c,I);var L=e.textChanges.ChangeTracker.fromContext(s),B=((t,r)=>e.find((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),(r=>r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r))))((b(o.range)?e.last(o.range):o.range).end,r);B?L.insertNodeBefore(s.file,B,F,!0):L.insertNodeAtEndOfScope(s.file,r,F),m.writeFixes(L);var U=[],j=((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,E);M&&C.unshift(e.factory.createIdentifier("this"));var V=e.factory.createCallExpression(M?e.factory.createPropertyAccessExpression(j,"call"):j,N,C);if(o.facts&i.IsGenerator&&(V=e.factory.createYieldExpression(e.factory.createToken(41),V)),o.facts&i.IsAsyncFunction&&(V=e.factory.createAwaitExpression(V)),D(t)&&(V=e.factory.createJsxExpression(void 0,V)),a.length&&!l)if(e.Debug.assert(!O,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var z=a[0];U.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(z.name),void 0,e.getSynthesizedDeepClone(z.type),V)],z.parent.flags)))}else{for(var H=[],W=[],K=a[0].parent.flags,J=!1,G=0,$=a;G<$.length;G++){z=$[G],H.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(z.name)));var q=_.typeToTypeNode(_.getBaseTypeOfLiteralType(_.getTypeAtLocation(z)),r,1);W.push(e.factory.createPropertySignature(void 0,z.symbol.name,void 0,q)),J=J||void 0!==z.type,K&=z.parent.flags}var X=J?e.factory.createTypeLiteralNode(W):void 0;X&&e.setEmitFlags(X,1),U.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(H),void 0,X,V)],K)))}else if(a.length||l){if(a.length)for(var Y=0,Q=a;Y<Q.length;Y++){var Z=(z=Q[Y]).parent.flags;2&Z&&(Z=-3&Z|1),U.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(z.symbol.name,void 0,ne(z.type))],Z)))}O&&U.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(O,void 0,ne(c))],1)));var ee=v(a,l);O&&ee.unshift(e.factory.createShorthandPropertyAssignment(O)),1===ee.length?(e.Debug.assert(!O,"Shouldn't have returnValueProperty here"),U.push(e.factory.createExpressionStatement(e.factory.createAssignment(ee[0].name,V))),o.facts&i.HasReturn&&U.push(e.factory.createReturnStatement())):(U.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(ee),V))),O&&U.push(e.factory.createReturnStatement(e.factory.createIdentifier(O))))}else o.facts&i.HasReturn?U.push(e.factory.createReturnStatement(V)):b(o.range)?U.push(e.factory.createExpressionStatement(V)):U.push(V);b(o.range)?L.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),U):L.replaceNodeWithNodes(s.file,o.range,U);var te=L.getChanges(),re=(b(o.range)?e.first(o.range):o.range).getSourceFile().fileName;return{renameFilename:re,renameLocation:e.getRenameLocation(te,re,E,!1),edits:te};function ne(t){if(void 0!==t){for(var r=e.getSynthesizedDeepClone(t),n=r;e.isParenthesizedTypeNode(n);)n=n.type;return e.isUnionTypeNode(n)&&e.find(n.types,(e=>153===e.kind))?r:e.factory.createUnionTypeNode([r,e.factory.createKeywordTypeNode(153)])}}})(c,o[n],l[n],u,t,r)})(n,t,o)}var s=/^constant_scope_(\d+)$/.exec(r);if(s)return o=+s[1],e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index"),((t,r,n)=>{var a=g(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,l=s.usagesPerScope,d=s.constantErrorsPerScope,u=s.exposedVariableDeclarations;return e.Debug.assert(!d[n].length,"The extraction went missing? How?"),e.Debug.assert(0===u.length,"Extract constant accepted a range containing a variable declaration?"),r.cancellationToken.throwIfCancellationRequested(),((t,r,n,a,o)=>{var s,c=n.substitutions,l=o.program.getTypeChecker(),d=r.getSourceFile(),u=!e.isPropertyAccessExpression(t)||e.isClassLike(r)||l.resolveName(t.name.text,t,111551,!1)||e.isPrivateIdentifier(t.name)||e.isKeyword(t.name.originalKeywordKind)?e.getUniqueName(e.isClassLike(r)?"newProperty":"newLocal",d):t.name.text,p=e.isInJSFile(r),_=p||!l.isContextSensitive(t)?void 0:l.typeToTypeNode(l.getContextualType(t),r,1),m=((t,r)=>r.size?function t(n){var i=r.get(e.getNodeId(n).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(n,t,e.nullTransformationContext)}(t):t)(e.skipParentheses(t),c);_=(s=((n,i)=>{if(void 0===n)return{variableType:n,initializer:i};if(!e.isFunctionExpression(i)&&!e.isArrowFunction(i)||i.typeParameters)return{variableType:n,initializer:i};var a=l.getTypeAtLocation(t),o=e.singleOrUndefined(l.getSignaturesOfType(a,0));if(!o)return{variableType:n,initializer:i};if(o.getTypeParameters())return{variableType:n,initializer:i};for(var s=[],c=!1,d=0,u=i.parameters;d<u.length;d++){var p=u[d];if(p.type)s.push(p);else{var _=l.getTypeAtLocation(p);_===l.getAnyType()&&(c=!0),s.push(e.factory.updateParameterDeclaration(p,p.modifiers,p.dotDotDotToken,p.name,p.questionToken,p.type||l.typeToTypeNode(_,r,1),p.initializer))}}if(c)return{variableType:n,initializer:i};if(n=void 0,e.isArrowFunction(i))i=e.factory.updateArrowFunction(i,e.canHaveModifiers(t)?e.getModifiers(t):void 0,i.typeParameters,s,i.type||l.typeToTypeNode(o.getReturnType(),r,1),i.equalsGreaterThanToken,i.body);else{if(o&&o.thisParameter){var f=e.firstOrUndefined(s);if(!f||e.isIdentifier(f.name)&&"this"!==f.name.escapedText){var m=l.getTypeOfSymbolAtLocation(o.thisParameter,t);s.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,"this",void 0,l.typeToTypeNode(m,r,1)))}}i=e.factory.updateFunctionExpression(i,e.canHaveModifiers(t)?e.getModifiers(t):void 0,i.asteriskToken,i.name,i.typeParameters,s,i.type||l.typeToTypeNode(o.getReturnType(),r,1),i.body)}return{variableType:n,initializer:i}})(_,m)).variableType,m=s.initializer,e.suppressLeadingAndTrailingTrivia(m);var g=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(r)){e.Debug.assert(!p,"Cannot extract to a JS class");var h=[];h.push(e.factory.createModifier(121)),a&i.InStaticRegion&&h.push(e.factory.createModifier(124)),h.push(e.factory.createModifier(145));var y=e.factory.createPropertyDeclaration(h,u,void 0,_,m),v=e.factory.createPropertyAccessExpression(a&i.InStaticRegion?e.factory.createIdentifier(r.name.getText()):e.factory.createThis(),e.factory.createIdentifier(u));D(t)&&(v=e.factory.createJsxExpression(void 0,v));var b=((t,r)=>{var n,i=r.members;e.Debug.assert(i.length>0,"Found no members");for(var a=!0,o=0,s=i;o<s.length;o++){var c=s[o];if(c.pos>t)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);g.insertNodeBefore(o.file,b,y,!0),g.replaceNode(o.file,t,v)}else{var E=e.factory.createVariableDeclaration(u,void 0,_,m),S=((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(S)g.insertNodeBefore(o.file,S,E),v=e.factory.createIdentifier(u),g.replaceNode(o.file,t,v);else if(238===t.parent.kind&&r===e.findAncestor(t,f)){var T=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([E],2));g.replaceNode(o.file,t.parent,T)}else T=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([E],2)),0===(b=((t,r)=>{var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)f(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(x(i)){for(var a=void 0,o=0,s=i.statements;o<s.length;o++){var c=s[o];if(c.pos>t.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?g.insertNodeAtTopOfFile(o.file,T,!1):g.insertNodeBefore(o.file,b,T,!1),238===t.parent.kind?g.delete(o.file,t.parent):(v=e.factory.createIdentifier(u),D(t)&&(v=e.factory.createJsxExpression(void 0,v)),g.replaceNode(o.file,t,v))}var C=g.getChanges(),A=t.getSourceFile().fileName;return{renameFilename:A,renameLocation:e.getRenameLocation(C,A,u,!0),edits:C}})(e.isExpression(c)?c:c.statements[0].expression,o[n],l[n],t.facts,r)})(n,t,o);e.Debug.fail("Unrecognized action name")}function p(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,c=0===o&&a,l=e.findFirstNonJsxWhitespaceToken(t,r.start),d=e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),u=l&&d&&a?((e,t,r)=>{var n=e.getStart(r),i=t.getEnd();return 59===r.text.charCodeAt(i)&&i++,{start:n,length:i-n}})(l,d,t):r,p=c?(t=>e.findAncestor(t,(t=>t.parent&&E(t)&&!e.isBinaryExpression(t.parent))))(l):e.getParentNodeInSpan(l,t,u),f=c?p:e.getParentNodeInSpan(d,t,u),m=[],g=i.None;if(!p||!f)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(8388608&p.flags)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractJSDoc)]};if(p.parent!==f.parent)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(p!==f){if(!x(p.parent))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};for(var h=[],y=0,v=p.parent.statements;y<v.length;y++){var b=v[y];if(b===p||h.length){var D=A(b);if(D)return{errors:D};h.push(b)}if(b===f)break}return h.length?{targetRange:{range:h,facts:g,declarations:m,thisNode:s}}:{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]}}if(e.isReturnStatement(p)&&!p.expression)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};var T=(t=>{if(e.isReturnStatement(t)){if(t.expression)return t.expression}else if(e.isVariableStatement(t)||e.isVariableDeclarationList(t)){for(var r=0,n=void 0,i=0,a=e.isVariableStatement(t)?t.declarationList.declarations:t.declarations;i<a.length;i++){var o=a[i];o.initializer&&(r++,n=o.initializer)}if(1===r)return n}else if(e.isVariableDeclaration(t)&&t.initializer)return t.initializer;return t})(p),C=(t=>{if(e.isIdentifier(e.isExpressionStatement(t)?t.expression:t))return[e.createDiagnosticForNode(t,n.cannotExtractIdentifier)]})(T)||A(T);return C?{errors:C}:{targetRange:{range:_(T),facts:g,declarations:m,thisNode:s}};function A(t){var a;if((e=>{e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return"})(a||(a={})),e.Debug.assert(t.pos<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(t.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(e.isStatement(t)||e.isExpressionNode(t)&&E(t)||S(t)))return[e.createDiagnosticForNode(t,n.statementOrExpressionExpected)];if(16777216&t.flags)return[e.createDiagnosticForNode(t,n.cannotExtractAmbientBlock)];var o,c=e.getContainingClass(t);c&&((t,r)=>{for(var n=t;n!==r;){if(167===n.kind){e.isStatic(n)&&(g|=i.InStaticRegion);break}if(164===n.kind){171===e.getContainingFunction(n).kind&&(g|=i.InStaticRegion);break}169===n.kind&&e.isStatic(n)&&(g|=i.InStaticRegion),n=n.parent}})(t,c);var l,d=4;if(function t(a){if(o)return!0;if(e.isDeclaration(a)){var c=254===a.kind?a.parent.parent:a;if(e.hasSyntacticModifier(c,1))return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;m.push(a.symbol)}switch(a.kind){case 266:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractImport)),!0;case 271:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;case 106:if(208===a.parent.kind){var u=e.getContainingClass(a);if(void 0===u||u.pos<r.start||u.end>=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else g|=i.UsesThis,s=a;break;case 214:e.forEachChild(a,(function t(r){if(e.isThis(r))g|=i.UsesThis,s=a;else{if(e.isClassLike(r)||e.isFunctionLike(r)&&!e.isArrowFunction(r))return!1;e.forEachChild(r,t)}}));case 257:case 256:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope));case 226:case 213:case 169:case 171:case 172:case 173:return!1}var p=d;switch(a.kind){case 239:d&=-5;break;case 252:d=0;break;case 235:a.parent&&252===a.parent.kind&&a.parent.finallyBlock===a&&(d=4);break;case 290:case 289:d|=1;break;default:e.isIterationStatement(a,!1)&&(d|=3)}switch(a.kind){case 192:case 108:g|=i.UsesThis,s=a;break;case 250:var _=a.label;(l||(l=[])).push(_.escapedText),e.forEachChild(a,t),l.pop();break;case 246:case 245:(_=a.label)?e.contains(l,_.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):d&(246===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 218:g|=i.IsAsyncFunction;break;case 224:g|=i.IsGenerator;break;case 247:4&d?g|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}d=p}(t),g&i.UsesThis){var u=e.getThisContainer(t,!1);(256===u.kind||169===u.kind&&205===u.parent.kind||213===u.kind)&&(g|=i.UsesThisInFunction)}return o}}function _(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:S(t)?t:void 0}function f(t){return e.isArrowFunction(t)?e.isFunctionBody(t.body):e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function g(t,r){var a=r.file,o=(t=>{var r=b(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis&&!(t.facts&i.UsesThisInFunction)){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(164===(r=r.parent).kind&&(r=e.findAncestor(r,(t=>e.isFunctionLikeDeclaration(t))).parent),f(r)&&(o.push(r),305===r.kind))return o})(t);return{scopes:o,readsAndWrites:((t,r,a,o,s,c)=>{var l,d,u=new e.Map,p=[],_=[],f=[],m=[],g=[],h=new e.Map,y=[],v=b(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===v){var E=t.range,x=e.first(E).getStart(),D=e.last(E).end;d=e.createFileDiagnostic(o,x,D-x,n.expressionExpected)}else 147456&s.getTypeAtLocation(v).flags&&(d=e.createDiagnosticForNode(v,n.uselessConstantType));for(var S=0,T=r;S<T.length;S++){var C=T[S];p.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),_.push(new e.Map),f.push([]);var A=[];d&&A.push(d),e.isClassLike(C)&&e.isInJSFile(C)&&A.push(e.createDiagnosticForNode(C,n.cannotExtractToJSClass)),e.isArrowFunction(C)&&!e.isBlock(C.body)&&A.push(e.createDiagnosticForNode(C,n.cannotExtractToExpressionArrowFunction)),m.push(A)}var k,N=new e.Map,w=b(t.range)?e.factory.createBlock(t.range):t.range,F=b(t.range)?e.first(t.range):t.range,P=(k=F,!!e.findAncestor(k,(t=>e.isDeclarationWithTypeParameters(t)&&0!==e.getEffectiveTypeParameterDeclarations(t).length)));if(function c(l,d){if(void 0===d&&(d=1),P&&H(s.getTypeAtLocation(l)),e.isDeclaration(l)&&l.symbol&&g.push(l),e.isAssignmentExpression(l))c(l.left,2),c(l.right);else if(e.isUnaryExpressionWithWrite(l))c(l.operand,2);else if(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l))e.forEachChild(l,c);else if(e.isIdentifier(l)){if(!l.parent)return;if(e.isQualifiedName(l.parent)&&l!==l.parent.left)return;if(e.isPropertyAccessExpression(l.parent)&&l!==l.parent.expression)return;!((c,l,d)=>{var u=((c,l,d)=>{var u=W(c);if(u){var g=e.getSymbolId(u).toString(),h=N.get(g);if(h&&h>=l)return g;if(N.set(g,l),h){for(var y=0,v=p;y<v.length;y++){var b=v[y];b.usages.get(c.text)&&b.usages.set(c.text,{usage:l,symbol:u,node:c})}return g}var E=u.getDeclarations(),x=E&&e.find(E,(e=>e.getSourceFile()===o));if(x&&!e.rangeContainsStartEnd(a,x.getStart(),x.end)){if(t.facts&i.IsGenerator&&2===l){for(var D=e.createDiagnosticForNode(c,n.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),S=0,T=f;S<T.length;S++)T[S].push(D);for(var C=0,A=m;C<A.length;C++)A[C].push(D)}for(var k=0;k<r.length;k++){var w=r[k];if(s.resolveName(u.name,w,u.flags,!1)!==u&&!_[k].has(g)){var F=K(u.exportSymbol||u,w,d);F?_[k].set(g,F):d?262144&u.flags||(D=e.createDiagnosticForNode(c,n.typeWillNotBeVisibleInTheNewScope),f[k].push(D),m[k].push(D)):p[k].usages.set(c.text,{usage:l,symbol:u,node:c})}}return g}}})(c,l,d);if(u)for(var g=0;g<r.length;g++){var h=_[g].get(u);h&&p[g].substitutions.set(e.getNodeId(c).toString(),h)}})(l,d,e.isPartOfTypeNode(l))}else e.forEachChild(l,c)}(w),!P||b(t.range)||e.isJsxAttribute(t.range)||H(s.getContextualType(t.range)),u.size>0){for(var I=new e.Map,O=0,M=F;void 0!==M&&O<r.length;M=M.parent)if(M===r[O]&&(I.forEach(((e,t)=>{p[O].typeParameterUsages.set(t,e)})),O++),e.isDeclarationWithTypeParameters(M))for(var R=0,L=e.getEffectiveTypeParameterDeclarations(M);R<L.length;R++){var B=L[R],U=s.getTypeAtLocation(B);u.has(U.id.toString())&&I.set(U.id.toString(),U)}e.Debug.assert(O===r.length,"Should have iterated all scopes")}if(g.length){var j=e.isBlockScope(r[0],r[0].parent)?r[0]:e.getEnclosingBlockScopeContainer(r[0]);e.forEachChild(j,(function r(n){if(!(n===t.range||b(t.range)&&t.range.indexOf(n)>=0)){var i=e.isIdentifier(n)?W(n):s.getSymbolAtLocation(n);if(i){var a=e.find(g,(e=>e.symbol===i));if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();h.has(o)||(y.push(a),h.set(o,!0))}else l=l||a}e.forEachChild(n,r)}}))}for(var V=a=>{var o=p[a];if(a>0&&(o.usages.size>0||o.typeParameterUsages.size>0)){var s=b(t.range)?t.range[0]:t.range;m[a].push(e.createDiagnosticForNode(s,n.cannotAccessVariablesFromNestedScopes))}t.facts&i.UsesThisInFunction&&e.isClassLike(r[a])&&f[a].push(e.createDiagnosticForNode(t.thisNode,n.cannotExtractFunctionsContainingThisToMethod));var c,d=!1;if(p[a].usages.forEach((t=>{2===t.usage&&(d=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(c=t.symbol.valueDeclaration))})),e.Debug.assert(b(t.range)||0===y.length,"No variable declarations expected if something was extracted"),d&&!b(t.range)){var u=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[a].push(u),m[a].push(u)}else c&&a>0?(u=e.createDiagnosticForNode(c,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor),f[a].push(u),m[a].push(u)):l&&(u=e.createDiagnosticForNode(l,n.cannotExtractExportedEntity),f[a].push(u),m[a].push(u))},z=0;z<r.length;z++)V(z);return{target:w,usagesPerScope:p,functionErrorsPerScope:f,constantErrorsPerScope:m,exposedVariableDeclarations:y};function H(e){for(var t=0,r=s.getSymbolWalker((()=>(c.throwIfCancellationRequested(),!0))).walkType(e).visitedTypes;t<r.length;t++){var n=r[t];n.isTypeParameter()&&u.set(n.id.toString(),n)}}function W(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function K(t,r,n){if(t){var i=t.getDeclarations();if(i&&i.some((e=>e.parent===r)))return e.factory.createIdentifier(t.name);var a=K(t.parent,r,n);if(void 0!==a)return n?e.factory.createQualifiedName(a,e.factory.createIdentifier(t.name)):e.factory.createPropertyAccessExpression(a,t.name)}}})(t,o,((t,r)=>b(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range)(t,a),a,r.program.getTypeChecker(),r.cancellationToken)}}function h(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];(void 0===t||a.pos<t.pos)&&(t=a)}return t}function y(t,r){var n=t.type,i=t.declaration,a=r.type,o=r.declaration;return e.compareProperties(i,o,"pos",e.compareValues)||e.compareStringsCaseSensitive(n.symbol?n.symbol.getName():"",a.symbol?a.symbol.getName():"")||e.compareValues(n.id,a.id)}function v(t,r){var n=e.map(t,(t=>e.factory.createShorthandPropertyAssignment(t.symbol.name))),i=e.map(r,(t=>e.factory.createShorthandPropertyAssignment(t.symbol.name)));return void 0===n?i:void 0===i?n:n.concat(i)}function b(t){return e.isArray(t)}function E(e){var t=e.parent;switch(t.kind){case 299:return!1}switch(e.kind){case 10:return 266!==t.kind&&270!==t.kind;case 225:case 201:case 203:return!1;case 79:return 203!==t.kind&&270!==t.kind&&275!==t.kind}return!0}function x(e){switch(e.kind){case 235:case 305:case 262:case 289:return!0;default:return!1}}function D(t){return S(t)||(e.isJsxElement(t)||e.isJsxSelfClosingElement(t)||e.isJsxFragment(t))&&(e.isJsxElement(t.parent)||e.isJsxFragment(t.parent))}function S(t){return e.isStringLiteral(t)&&t.parent&&e.isJsxAttribute(t.parent)}t.registerRefactor(s,{kinds:[c.kind,l.kind],getEditsForAction:u,getAvailableActions:d}),r.getRefactorActionsToExtractSymbol=d,r.getRefactorEditsToExtractSymbol=u,(t=>{function r(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.cannotExtractRange=r("Cannot extract range."),t.cannotExtractImport=r("Cannot extract import statement."),t.cannotExtractSuper=r("Cannot extract super call."),t.cannotExtractJSDoc=r("Cannot extract JSDoc."),t.cannotExtractEmpty=r("Cannot extract empty range."),t.expressionExpected=r("expression expected."),t.uselessConstantType=r("No reason to extract constant of type."),t.statementOrExpressionExpected=r("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=r("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=r("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=r("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=r("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=r("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=r("Function will not visible in the new scope."),t.cannotExtractIdentifier=r("Select more than a single identifier."),t.cannotExtractExportedEntity=r("Cannot extract exported declaration"),t.cannotWriteInExpression=r("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=r("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=r("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=r("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=r("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=r("Cannot extract constant to an arrow function without a block"),t.cannotExtractFunctionsContainingThisToMethod=r("Cannot extract functions containing this to method")})(n=r.Messages||(r.Messages={})),(e=>{e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion"})(i||(i={})),r.getRangeToExtract=p,(e=>{e[e.Module=0]="Module",e[e.Global=1]="Global"})(a||(a={})),(e=>{e[e.Read=1]="Read",e[e.Write=2]="Write"})(o||(o={}))})((t=e.refactor||(e.refactor={})).extractSymbol||(t.extractSymbol={}))})(p),(e=>{!(t=>{var r="Extract type",n={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},i={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},a={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};function o(t,r){void 0===r&&(r=!0);var n=t.file,i=t.startPosition,a=e.isSourceFileJS(n),o=e.getTokenAtPosition(n,i),l=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),d=l.pos===l.end&&r,u=e.findAncestor(o,(t=>t.parent&&e.isTypeNode(t)&&!c(l,t.parent,n)&&(d||e.nodeOverlapsWithStartEnd(o,n,l.pos,l.end))));if(!u||!e.isTypeNode(u))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var p=t.program.getTypeChecker(),_=e.Debug.checkDefined(e.findAncestor(u,e.isStatement),"Should find a statement"),f=((t,r,n,i)=>{var a=[];return function o(s){if(e.isTypeReferenceNode(s)){if(e.isIdentifier(s.typeName))for(var l=s.typeName,d=0,u=(null==(m=t.resolveName(l.text,l,262144,!0))?void 0:m.declarations)||e.emptyArray;d<u.length;d++){var p=u[d];if(e.isTypeParameterDeclaration(p)&&p.getSourceFile()===i){if(p.name.escapedText===l.escapedText&&c(p,r,i))return!0;if(c(n,p,i)&&!c(r,p,i)){e.pushIfUnique(a,p);break}}}}else if(e.isInferTypeNode(s)){var _=e.findAncestor(s,(t=>e.isConditionalTypeNode(t)&&c(t.extendsType,s,i)));if(!_||!c(r,_,i))return!0}else if(e.isTypePredicateNode(s)||e.isThisTypeNode(s)){var f=e.findAncestor(s.parent,e.isFunctionLike);if(f&&f.type&&c(f.type,s,i)&&!c(r,f,i))return!0}else if(e.isTypeQueryNode(s)){var m;if(e.isIdentifier(s.exprName)){if((null==(m=t.resolveName(s.exprName.text,s.exprName,111551,!1))?void 0:m.valueDeclaration)&&c(n,m.valueDeclaration,i)&&!c(r,m.valueDeclaration,i))return!0}else if(e.isThisIdentifier(s.exprName.left)&&!c(r,s.parent,i))return!0}return i&&e.isTupleTypeNode(s)&&e.getLineAndCharacterOfPosition(i,s.pos).line===e.getLineAndCharacterOfPosition(i,s.end).line&&e.setEmitFlags(s,1),e.forEachChild(s,o)}(r)?void 0:a})(p,u,_,n);return f?{isJS:a,selection:u,firstStatement:_,typeParameters:f,typeElements:s(p,u)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)}}function s(t,r){if(r){if(e.isIntersectionTypeNode(r)){for(var n=[],i=new e.Map,a=0,o=r.types;a<o.length;a++){var c=s(t,o[a]);if(!c||!c.every((t=>t.name&&e.addToSeen(i,e.getNameFromPropertyName(t.name)))))return;e.addRange(n,c)}return n}return e.isParenthesizedTypeNode(r)?s(t,r.type):e.isTypeLiteralNode(r)?r.members:void 0}}function c(t,r,n){return e.rangeContainsStartEnd(t,e.skipTrivia(n.text,r.pos),r.end)}t.registerRefactor(r,{kinds:[n.kind,i.kind,a.kind],getAvailableActions(s){var c=o(s,"invoked"===s.triggerReason);return c?t.isRefactorErrorInfo(c)?s.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[m(m({},a),{notApplicableReason:c.error}),m(m({},n),{notApplicableReason:c.error}),m(m({},i),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:r,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:c.isJS?[a]:e.append([n],c.typeElements&&i)}]:e.emptyArray},getEditsForAction(r,s){var c=r.file,l=o(r);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected to find a range to extract");var d=e.getUniqueName("NewType",c),u=e.textChanges.ChangeTracker.with(r,(t=>{switch(s){case n.name:return e.Debug.assert(!l.isJS,"Invalid actionName/JS combo"),((t,r,n,i)=>{var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=e.factory.createTypeAliasDeclaration(void 0,n,s.map((t=>e.factory.updateTypeParameterDeclaration(t,t.modifiers,t.name,t.constraint,void 0))),o);t.insertNodeBefore(r,a,e.ignoreSourceNewlines(c),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((t=>e.factory.createTypeReferenceNode(t.name,void 0)))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})})(t,c,d,l);case a.name:return e.Debug.assert(l.isJS,"Invalid actionName/JS combo"),((t,r,n,i)=>{var a=i.firstStatement,o=i.selection,s=i.typeParameters;e.setEmitFlags(o,3584);var c=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(o),e.factory.createIdentifier(n)),l=[];e.forEach(s,(t=>{var r=e.getEffectiveConstraintOfTypeParameter(t),n=e.factory.createTypeParameterDeclaration(void 0,t.name),i=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),r&&e.cast(r,e.isJSDocTypeExpression),[n]);l.push(i)})),t.insertNodeBefore(r,a,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(l,[c]))),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((t=>e.factory.createTypeReferenceNode(t.name,void 0)))))})(t,c,d,l);case i.name:return e.Debug.assert(!l.isJS&&!!l.typeElements,"Invalid actionName/JS combo"),((t,r,n,i)=>{var a,o=i.firstStatement,s=i.selection,c=i.typeParameters,l=i.typeElements,d=e.factory.createInterfaceDeclaration(void 0,n,c,void 0,l);e.setTextRange(d,null===(a=l[0])||void 0===a?void 0:a.parent),t.insertNodeBefore(r,o,e.ignoreSourceNewlines(d),!0),t.replaceNode(r,s,e.factory.createTypeReferenceNode(n,c.map((t=>e.factory.createTypeReferenceNode(t.name,void 0)))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})})(t,c,d,l);default:e.Debug.fail("Unexpected action name")}})),p=c.fileName;return{edits:u,renameFilename:p,renameLocation:e.getRenameLocation(u,p,d,!1)}}})})(e.refactor||(e.refactor={}))})(p),(e=>{var t,r,n,i;(t=e.refactor||(e.refactor={})).generateGetAccessorAndSetAccessor||(t.generateGetAccessorAndSetAccessor={}),r="Generate 'get' and 'set' accessors",n=e.Diagnostics.Generate_get_and_set_accessors.message,i={name:r,description:n,kind:"refactor.rewrite.property.generateAccessors"},t.registerRefactor(r,{kinds:[i.kind],getEditsForAction(r,n){if(r.endPosition){var i=e.codefix.getAccessorConvertiblePropertyAtPosition(r.file,r.program,r.startPosition,r.endPosition);e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info");var a=e.codefix.generateAccessorFromProperty(r.file,r.program,r.startPosition,r.endPosition,r,n);if(a){var o=r.file.fileName,s=i.renameAccessor?i.accessorName:i.fieldName;return{renameFilename:o,renameLocation:(e.isIdentifier(s)?0:-1)+e.getRenameLocation(a,o,s.text,e.isParameter(i.declaration)),edits:a}}}},getAvailableActions(a){if(!a.endPosition)return e.emptyArray;var o=e.codefix.getAccessorConvertiblePropertyAtPosition(a.file,a.program,a.startPosition,a.endPosition,"invoked"===a.triggerReason);return o?t.isRefactorErrorInfo(o)?a.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[m(m({},i),{notApplicableReason:o.error})]}]:e.emptyArray:[{name:r,description:n,actions:[i]}]:e.emptyArray}})})(p),(e=>{var t;(t=e.refactor||(e.refactor={})).isRefactorErrorInfo=e=>void 0!==e.error,t.refactorKindBeginsWith=(e,t)=>!t||e.substr(0,t.length)===t})(p),function(e){!function(t){var r="Move to a new file",n=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),i={name:r,description:n,kind:"refactor.move.newFile"};function a(t){var r=(t=>{var r=t.file,n=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),i=r.statements,a=e.findIndex(i,(e=>e.end>n.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,(e=>e.end>n.end),a);if(-1===s||!(0===s||i[s].getStart(r)<n.end))return{toMove:i.slice(a,-1===s?i.length:s),afterLast:-1===s?void 0:i[s]}}}})(t);if(void 0!==r){var n=[],i=[],a=r.toMove,s=r.afterLast;return e.getRangesWhere(a,o,((e,t)=>{for(var r=e;r<t;r++)n.push(a[r]);i.push({first:a[e],afterLast:s})})),0===n.length?void 0:{all:n,ranges:i}}}function o(t){return!(t=>{switch(t.kind){case 266:return!0;case 265:return!e.hasSyntacticModifier(t,1);case 237:return t.declarationList.declarations.every((t=>!!t.initializer&&e.isRequireCall(t.initializer,!0)));default:return!1}})(t)&&!e.isPrologueDirective(t)}function s(e,t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n],o=a.first,s=a.afterLast;r.deleteNodeRangeExcludingEnd(e,o,s)}}function c(e){return 266===e.kind?e.moduleSpecifier:265===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function l(t,r){if(e.isImportDeclaration(t))e.isStringLiteral(t.moduleSpecifier)&&r(t);else if(e.isImportEqualsDeclaration(t))e.isExternalModuleReference(t.moduleReference)&&e.isStringLiteralLike(t.moduleReference.expression)&&r(t);else if(e.isVariableStatement(t))for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];a.initializer&&e.isRequireCall(a.initializer,!0)&&r(a)}}function d(t,r,n,i,a){if(n=e.ensurePathIsNonModuleName(n),i){var o=r.map((t=>e.factory.createImportSpecifier(!1,void 0,e.factory.createIdentifier(t))));return e.makeImportIfNecessary(t,o,n,a)}e.Debug.assert(!t,"No default import should exist");var s=r.map((t=>e.factory.createBindingElement(void 0,void 0,t)));return s.length?u(e.factory.createObjectBindingPattern(s),void 0,p(e.factory.createStringLiteral(n))):void 0}function u(t,r,n,i){return void 0===i&&(i=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(t,void 0,r,n)],i))}function p(t){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[t])}function _(t,r,n,i){switch(r.kind){case 266:!((t,r,n,i)=>{if(r.importClause){var a=r.importClause,o=a.name,s=a.namedBindings,c=!o||i(o),l=!s||(268===s.kind?i(s.name):0!==s.elements.length&&s.elements.every((e=>i(e.name))));if(c&&l)n.delete(t,r);else if(o&&c&&n.delete(t,o),s)if(l)n.replaceNode(t,r.importClause,e.factory.updateImportClause(r.importClause,r.importClause.isTypeOnly,o,void 0));else if(269===s.kind)for(var d=0,u=s.elements;d<u.length;d++){var p=u[d];i(p.name)&&n.delete(t,p)}}})(t,r,n,i);break;case 265:i(r.name)&&n.delete(t,r);break;case 254:!((t,r,n,i)=>{var a=r.name;switch(a.kind){case 79:i(a)&&n.delete(t,a);break;case 202:break;case 201:if(a.elements.every((t=>e.isIdentifier(t.name)&&i(t.name))))n.delete(t,e.isVariableDeclarationList(r.parent)&&1===r.parent.declarations.length?r.parent.parent:r);else for(var o=0,s=a.elements;o<s.length;o++){var c=s[o];e.isIdentifier(c.name)&&i(c.name)&&n.delete(t,c.name)}}})(t,r,n,i);break;default:e.Debug.assertNever(r,"Unexpected import decl kind ".concat(r.kind))}}function g(t){switch(t.kind){case 265:case 270:case 267:case 268:return!0;case 254:return h(t);case 203:return e.isVariableDeclaration(t.parent.parent)&&h(t.parent.parent);default:return!1}}function h(t){return e.isSourceFile(t.parent.parent.parent)&&!!t.initializer&&e.isRequireCall(t.initializer,!0)}function y(t,r,n){switch(t.kind){case 266:var i=t.importClause;if(!i)return;var a=i.name&&n(i.name)?i.name:void 0,o=i.namedBindings&&((t,r)=>{if(268===t.kind)return r(t.name)?t:void 0;var n=t.elements.filter((e=>r(e.name)));return n.length?e.factory.createNamedImports(n):void 0})(i.namedBindings,n);return a||o?e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,a,o),r,void 0):void 0;case 265:return n(t.name)?t:void 0;case 254:var s=((t,r)=>{switch(t.kind){case 79:return r(t)?t:void 0;case 202:return t;case 201:var n=t.elements.filter((t=>t.propertyName||!e.isIdentifier(t.name)||r(t.name)));return n.length?e.factory.createObjectBindingPattern(n):void 0}})(t.name,n);return s?u(s,t.type,p(r),t.parent.flags):void 0;default:return e.Debug.assertNever(t,"Unexpected import kind ".concat(t.kind))}}function v(t,r,n){t.forEachChild((function t(i){if(e.isIdentifier(i)&&!e.isDeclarationName(i)){var a=r.getSymbolAtLocation(i);a&&n(a)}else i.forEachChild(t)}))}t.registerRefactor(r,{kinds:[i.kind],getAvailableActions(t){var o=a(t);return t.preferences.allowTextChangesInNewFiles&&o?[{name:r,description:n,actions:[i]}]:t.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[m(m({},i),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction(t,n){e.Debug.assert(n===r,"Wrong refactor invoked");var i=e.Debug.checkDefined(a(t));return{edits:e.textChanges.ChangeTracker.with(t,(r=>{return n=t.file,a=t.program,o=i,u=r,m=t.host,h=t.preferences,S=a.getTypeChecker(),F=((t,r,n)=>{var i=new b,a=new b,o=new b,s=(t=>{if(void 0!==t){var r=n.getJsxNamespace(t),i=n.resolveName(r,t,1920,!0);return i&&e.some(i.declarations,g)?i:void 0}})(e.find(r,(e=>!!(2&e.transformFlags))));s&&a.add(s);for(var c=0,l=r;c<l.length;c++)D(h=l[c],(t=>{i.add(e.Debug.checkDefined(e.isExpressionStatement(t)?n.getSymbolAtLocation(t.expression.left):t.symbol,"Need a symbol here"))}));for(var d=0,u=r;d<u.length;d++)v(h=u[d],n,(r=>{if(r.declarations)for(var n=0,s=r.declarations;n<s.length;n++){var c=s[n];g(c)?a.add(r):E(c)&&(l=c,(e.isVariableDeclaration(l)?l.parent.parent.parent:l.parent)===t)&&!i.has(r)&&o.add(r)}var l}));for(var p=a.clone(),_=new b,f=0,m=t.statements;f<m.length;f++){var h=m[f];e.contains(r,h)||(s&&2&h.transformFlags&&p.delete(s),v(h,n,(e=>{i.has(e)&&_.add(e),p.delete(e)})))}return{movedSymbols:i,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:_,oldImportsNeededByNewFile:a,unusedImportsFromOldFile:p}})(n,o.all,S),P=e.getDirectoryPath(n.fileName),I=e.extensionFromPath(n.fileName),M=(O=((t,r,n,i)=>{for(var a=t,o=1;;o++){var s=e.combinePaths(n,a+r);if(!i.fileExists(s))return a;a="".concat(t,".").concat(o)}})((R=F.oldFileImportsFromNewFile,L=F.movedSymbols,R.forEachEntry(e.symbolNameNoDefault)||L.forEachEntry(e.symbolNameNoDefault)||"newFile"),I,P,m))+I,u.createNewFile(n,e.combinePaths(P,M),((t,r,n,i,a,o,u)=>{var m=a.getTypeChecker(),g=e.takeWhile(t.statements,e.isPrologueDirective);if(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)return s(t,i.ranges,n),f(f([],g,!0),i.all,!0);var h=!!t.externalModuleIndicator,v=e.getQuotePreference(t,u),b=((t,r,n,i)=>{var a,o=[];return t.forEach((t=>{"default"===t.escapedName?a=e.factory.createIdentifier(e.symbolNameNoDefault(t)):o.push(t.name)})),d(a,o,r,n,i)})(r.oldFileImportsFromNewFile,o,h,v);b&&e.insertImports(n,t,b,!0),((t,r,n,i,a)=>{for(var o=0,s=t.statements;o<s.length;o++){var c=s[o];e.contains(r,c)||l(c,(e=>_(t,e,n,(e=>i.has(a.getSymbolAtLocation(e))))))}})(t,i.all,n,r.unusedImportsFromOldFile,m),s(t,i.ranges,n),((t,r,n,i,a)=>{for(var o=r.getTypeChecker(),s=r=>{if(r===n)return"continue";for(var s=s=>{l(s,(l=>{if(o.getSymbolAtLocation(c(l))===n.symbol){var d=t=>{var r=e.isBindingElement(t.parent)?e.getPropertySymbolFromBindingElement(o,t.parent):e.skipAlias(o.getSymbolAtLocation(t),o);return!!r&&i.has(r)};_(r,l,t,d);var u=e.combinePaths(e.getDirectoryPath(c(l).text),a),f=y(l,e.factory.createStringLiteral(u),d);f&&t.insertNodeAfter(r,s,f);var m=(t=>{switch(t.kind){case 266:return t.importClause&&t.importClause.namedBindings&&268===t.importClause.namedBindings.kind?t.importClause.namedBindings.name:void 0;case 265:return t.name;case 254:return e.tryCast(t.name,e.isIdentifier);default:return e.Debug.assertNever(t,"Unexpected node kind ".concat(t.kind))}})(l);m&&((t,r,n,i,a,o,s,c)=>{var l=e.codefix.moduleSpecifierToValidIdentifier(a,99),d=!1,u=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(s,n,r,(t=>{e.isPropertyAccessExpression(t.parent)&&(d=d||!!n.resolveName(l,t,67108863,!0),i.has(n.getSymbolAtLocation(t.parent.name))&&u.push(t))})),u.length){for(var _=d?e.getUniqueName(l,r):l,f=0,m=u;f<m.length;f++){var g=m[f];t.replaceNode(r,g,e.factory.createIdentifier(_))}t.insertNodeAfter(r,c,((t,r,n)=>{var i=e.factory.createIdentifier(r),a=e.factory.createStringLiteral(n);switch(t.kind){case 266:return e.factory.createImportDeclaration(void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(i)),a,void 0);case 265:return e.factory.createImportEqualsDeclaration(void 0,!1,i,e.factory.createExternalModuleReference(a));case 254:return e.factory.createVariableDeclaration(i,void 0,void 0,p(a));default:return e.Debug.assertNever(t,"Unexpected node kind ".concat(t.kind))}})(c,a,o))}})(t,r,o,i,a,u,m,l)}}))},d=0,u=r.statements;d<u.length;d++)s(u[d])},d=0,u=r.getSourceFiles();d<u.length;d++)s(u[d])})(n,a,t,r.movedSymbols,o);var S=((t,r,n,i,a,o,s)=>{for(var u,p=[],_=0,f=t.statements;_<f.length;_++)l(f[_],(t=>{e.append(p,y(t,c(t),(e=>r.has(a.getSymbolAtLocation(e)))))}));var m=[],g=e.nodeSeenTracker();return n.forEach((r=>{if(r.declarations)for(var n=0,a=r.declarations;n<a.length;n++){var s=a[n];if(E(s)){var c=(d=s,e.isExpressionStatement(d)?e.tryCast(d.expression.left.name,e.isIdentifier):e.tryCast(d.name,e.isIdentifier));if(c){var l=T(s);g(l)&&C(t,l,c,i,o),e.hasSyntacticModifier(s,512)?u=c:m.push(c.text)}}}var d})),e.append(p,d(u,m,e.removeFileExtension(e.getBaseFileName(t.fileName)),o,s)),p})(t,r.oldImportsNeededByNewFile,r.newFileImportsFromOldFile,n,m,h,v),F=((t,r,n,i)=>e.flatMap(r,(r=>{if(o=r,e.Debug.assert(e.isSourceFile(o.parent),"Node parent should be a SourceFile"),(x(o)||e.isVariableStatement(o))&&!A(t,r,i)&&D(r,(t=>n.has(e.Debug.checkDefined(t.symbol))))){var a=((e,t)=>t?[k(e)]:(e=>f([e],N(e).map(w),!0))(e))(r,i);if(a)return a}var o;return r})))(t,i.all,r.oldFileImportsFromNewFile,h);return S.length&&F.length?f(f(f(f([],g,!0),S,!0),[4],!1),F,!0):f(f(f([],g,!0),S,!0),F,!0)})(n,F,u,o,a,O,h)),void((t,r,n,i,a)=>{var o=t.getCompilerOptions().configFile;if(o){var s=e.normalizePath(e.combinePaths(n,"..",i)),c=e.getRelativePathFromFile(o.fileName,s,a),l=o.statements[0]&&e.tryCast(o.statements[0].expression,e.isObjectLiteralExpression),d=l&&e.find(l.properties,(t=>e.isPropertyAssignment(t)&&e.isStringLiteral(t.name)&&"files"===t.name.text));d&&e.isArrayLiteralExpression(d.initializer)&&r.insertNodeInListAfter(o,e.last(d.initializer.elements),e.factory.createStringLiteral(c),d.initializer.elements)}})(a,u,n.fileName,M,e.hostGetCanonicalFileName(m));var n,a,o,u,m,h,S,F,P,I,O,M,R,L})),renameFilename:void 0,renameLocation:void 0}}});var b=function(){function t(){this.map=new e.Map}return t.prototype.add=function(t){this.map.set(String(e.getSymbolId(t)),t)},t.prototype.has=function(t){return this.map.has(String(e.getSymbolId(t)))},t.prototype.delete=function(t){this.map.delete(String(e.getSymbolId(t)))},t.prototype.forEach=function(e){this.map.forEach(e)},t.prototype.forEachEntry=function(t){return e.forEachEntry(this.map,t)},t.prototype.clone=function(){var r=new t;return e.copyEntries(this.map,r.map),r},t}();function E(t){return x(t)&&e.isSourceFile(t.parent)||e.isVariableDeclaration(t)&&e.isSourceFile(t.parent.parent.parent)}function x(e){switch(e.kind){case 256:case 257:case 261:case 260:case 259:case 258:case 265:return!0;default:return!1}}function D(t,r){switch(t.kind){case 256:case 257:case 261:case 260:case 259:case 258:case 265:return r(t);case 237:return e.firstDefined(t.declarationList.declarations,(e=>S(e.name,r)));case 238:var n=t.expression;return e.isBinaryExpression(n)&&1===e.getAssignmentDeclarationKind(n)?r(t):void 0}}function S(t,r){switch(t.kind){case 79:return r(e.cast(t.parent,(t=>e.isVariableDeclaration(t)||e.isBindingElement(t))));case 202:case 201:return e.firstDefined(t.elements,(t=>e.isOmittedExpression(t)?void 0:S(t.name,r)));default:return e.Debug.assertNever(t,"Unexpected name kind ".concat(t.kind))}}function T(t){switch(t.kind){case 254:return t.parent.parent;case 203:return T(e.cast(t.parent.parent,(t=>e.isVariableDeclaration(t)||e.isBindingElement(t))));default:return t}}function C(t,r,n,i,a){if(!A(t,r,a,n))if(a)e.isExpressionStatement(r)||i.insertExportModifier(t,r);else{var o=N(r);0!==o.length&&i.insertNodesAfter(t,r,o.map(w))}}function A(t,r,n,i){var a;return n?!e.isExpressionStatement(r)&&e.hasSyntacticModifier(r,1)||!(!i||!(null===(a=t.symbol.exports)||void 0===a?void 0:a.has(i.escapedText))):N(r).some((r=>t.symbol.exports.has(e.escapeLeadingUnderscores(r))))}function k(t){var r=e.canHaveModifiers(t)?e.concatenate([e.factory.createModifier(93)],e.getModifiers(t)):void 0;switch(t.kind){case 256:return e.factory.updateFunctionDeclaration(t,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 257:var n=e.canHaveDecorators(t)?e.getDecorators(t):void 0;return e.factory.updateClassDeclaration(t,e.concatenate(n,r),t.name,t.typeParameters,t.heritageClauses,t.members);case 237:return e.factory.updateVariableStatement(t,r,t.declarationList);case 261:return e.factory.updateModuleDeclaration(t,r,t.name,t.body);case 260:return e.factory.updateEnumDeclaration(t,r,t.name,t.members);case 259:return e.factory.updateTypeAliasDeclaration(t,r,t.name,t.typeParameters,t.type);case 258:return e.factory.updateInterfaceDeclaration(t,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 265:return e.factory.updateImportEqualsDeclaration(t,r,t.isTypeOnly,t.name,t.moduleReference);case 238:return e.Debug.fail();default:return e.Debug.assertNever(t,"Unexpected declaration kind ".concat(t.kind))}}function N(t){switch(t.kind){case 256:case 257:return[t.name.text];case 237:return e.mapDefined(t.declarationList.declarations,(t=>e.isIdentifier(t.name)?t.name.text:void 0));case 261:case 260:case 259:case 258:case 265:return e.emptyArray;case 238:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(t,"Unexpected decl kind ".concat(t.kind))}}function w(t){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(t)),63,e.factory.createIdentifier(t)))}}(e.refactor||(e.refactor={}))}(p),(e=>{var t;(r=>{var n="Add or remove braces in an arrow function",i=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,a={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},o={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};function s(r,n,i,s){void 0===i&&(i=!0);var c=e.getTokenAtPosition(r,n),l=e.getContainingFunction(c);if(!l)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(l))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(e.rangeContainsRange(l,c)&&(!e.rangeContainsRange(l.body,c)||i)){if(t.refactorKindBeginsWith(a.kind,s)&&e.isExpression(l.body))return{func:l,addBraces:!0,expression:l.body};if(t.refactorKindBeginsWith(o.kind,s)&&e.isBlock(l.body)&&1===l.body.statements.length){var d=e.first(l.body.statements);if(e.isReturnStatement(d))return{func:l,addBraces:!1,expression:d.expression,returnStatement:d}}}}t.registerRefactor(n,{kinds:[o.kind],getEditsForAction(r,n){var i=r.file,c=r.startPosition,l=s(i,c);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info");var d,u=l.expression,p=l.returnStatement,_=l.func;if(n===a.name){var f=e.factory.createReturnStatement(u);d=e.factory.createBlock([f],!0),e.copyLeadingComments(u,f,i,3,!0)}else if(n===o.name&&p){var m=u||e.factory.createVoidZero();d=e.needsParentheses(m)?e.factory.createParenthesizedExpression(m):m,e.copyTrailingAsLeadingComments(p,d,i,3,!1),e.copyLeadingComments(p,d,i,3,!1),e.copyTrailingComments(p,d,i,3,!1)}else e.Debug.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(e=>{e.replaceNode(i,_.body,d)}))}},getAvailableActions(r){var c=s(r.file,r.startPosition,"invoked"===r.triggerReason);return c?t.isRefactorErrorInfo(c)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[m(m({},a),{notApplicableReason:c.error}),m(m({},o),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:n,description:i,actions:[c.addBraces?a:o]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))})(p),(e=>{var t;(r=>{var n="Convert parameters to destructured object",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),a={name:n,description:i,kind:"refactor.rewrite.parameters.toDestructured"};function o(t,r){var n=e.getContainingObjectLiteralElement(t);if(n){var i=r.getContextualTypeForObjectLiteralElement(n),a=null==i?void 0:i.getSymbol();if(a&&!(6&e.getCheckFlags(a)))return a}}function s(t){var r=t.node;return e.isImportSpecifier(r.parent)||e.isImportClause(r.parent)||e.isImportEqualsDeclaration(r.parent)||e.isNamespaceImport(r.parent)||e.isExportSpecifier(r.parent)||e.isExportAssignment(r.parent)?r:void 0}function c(t){if(e.isDeclaration(t.node.parent))return t.node}function l(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 208:case 209:var i=e.tryCast(n,e.isCallOrNewExpression);if(i&&i.expression===r)return i;break;case 206:var a=e.tryCast(n,e.isPropertyAccessExpression);if(a&&a.parent&&a.name===r){var o=e.tryCast(a.parent,e.isCallOrNewExpression);if(o&&o.expression===a)return o}break;case 207:var s=e.tryCast(n,e.isElementAccessExpression);if(s&&s.parent&&s.argumentExpression===r){var c=e.tryCast(s.parent,e.isCallOrNewExpression);if(c&&c.expression===s)return c}}}}function d(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 206:var i=e.tryCast(n,e.isPropertyAccessExpression);if(i&&i.expression===r)return i;break;case 207:var a=e.tryCast(n,e.isElementAccessExpression);if(a&&a.expression===r)return a}}}function u(t){var r=t.node;if(2===e.getMeaningFromLocation(r)||e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent))return r}function p(t,r,n){var i=e.getTouchingToken(t,r),a=e.getContainingFunctionDeclaration(i);if(!(t=>{var r=e.findAncestor(t,e.isJSDocNode);if(r){var n=e.findAncestor(r,(t=>!e.isJSDocNode(t)));return!!n&&e.isFunctionLikeDeclaration(n)}return!1})(i))return!(a&&((t,r)=>{var n;if(!((t,r)=>(e=>h(e)?e.length-1:e.length)(t)>=1&&e.every(t,(t=>((t,r)=>{if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&e.isIdentifier(t.name)})(t,r))))(t.parameters,r))return!1;switch(t.kind){case 256:return m(t)&&_(t,r);case 169:if(e.isObjectLiteralExpression(t.parent)){var i=o(t.name,r);return 1===(null===(n=null==i?void 0:i.declarations)||void 0===n?void 0:n.length)&&_(t,r)}return _(t,r);case 171:return e.isClassDeclaration(t.parent)?m(t.parent)&&_(t,r):g(t.parent.parent)&&_(t,r);case 213:case 214:return g(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 m(t){return!!t.name||!!e.findModifier(t,88)}function g(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function h(t){return t.length>0&&e.isThis(t[0].name)}function y(t){return h(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function v(t,r){var n=y(t.parameters),i=e.isRestParameter(e.last(n)),a=i?r.slice(0,n.length-1):r,o=e.map(a,((t,r)=>{var i,a,o=(i=E(n[r]),a=t,e.isIdentifier(a)&&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(E(e.last(n)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function b(t,r,n){var i,a,o,s=r.getTypeChecker(),c=y(t.parameters),l=e.map(c,(t=>{var r=e.factory.createBindingElement(void 0,void 0,E(t),e.isRestParameter(t)&&m(t)?e.factory.createArrayLiteralExpression():t.initializer);return e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&e.copyComments(t.initializer,r.initializer),r})),d=e.factory.createObjectBindingPattern(l),u=(i=c,a=e.map(i,(t=>{var i,a,o=t.type;o||!t.initializer&&!e.isRestParameter(t)||(i=t,a=s.getTypeAtLocation(i),o=e.getTypeNodeIfAccessible(a,i,r,n));var c=e.factory.createPropertySignature(void 0,E(t),m(t)?e.factory.createToken(57):t.questionToken,o);return e.suppressLeadingAndTrailingTrivia(c),e.copyComments(t.name,c.name),t.type&&c.type&&e.copyComments(t.type,c.type),c})),e.addEmitFlags(e.factory.createTypeLiteralNode(a),1));e.every(c,m)&&(o=e.factory.createObjectLiteralExpression());var p=e.factory.createParameterDeclaration(void 0,void 0,d,void 0,u,o);if(h(t.parameters)){var _=t.parameters[0],f=e.factory.createParameterDeclaration(void 0,void 0,_.name,void 0,_.type);return e.suppressLeadingAndTrailingTrivia(f.name),e.copyComments(_.name,f.name),_.type&&(e.suppressLeadingAndTrailingTrivia(f.type),e.copyComments(_.type,f.type)),e.factory.createNodeArray([f,p])}return e.factory.createNodeArray([p]);function m(t){if(e.isRestParameter(t)){var r=s.getTypeAtLocation(t);return!s.isTupleType(r)}return s.isOptionalParameter(t)}}function E(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction(t,r){e.Debug.assert(r===n,"Unexpected action name");var i=t.file,a=t.startPosition,_=t.program,m=t.cancellationToken,g=t.host,h=p(i,a,_.getTypeChecker());if(h&&m){var y=((t,r,n)=>{var i=(t=>{switch(t.kind){case 256:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,88),"Nameless function declaration should be a default export")];case 169:return[t.name];case 171:var r=e.Debug.checkDefined(e.findChildOfKind(t,134,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 226===t.parent.kind?[t.parent.parent.name,r]:[r];case 214:return[t.parent.name];case 213:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind ".concat(t.kind))}})(t),a=e.isConstructorDeclaration(t)?(t=>{switch(t.parent.kind){case 257:var r=t.parent;return r.name?[r.name]:[e.Debug.checkDefined(e.findModifier(r,88),"Nameless class declaration should be a default export")];case 226:var n=t.parent,i=t.parent.parent,a=n.name;return a?[a,i.name]:[i.name]}})(t):[],p=e.deduplicate(f(f([],i,!0),a,!0),e.equateValues),_=r.getTypeChecker(),m=(r=>{for(var n={accessExpressions:[],typeUsages:[]},p={functionCalls:[],declarations:[],classReferences:n,valid:!0},f=e.map(i,g),m=e.map(a,g),h=e.isConstructorDeclaration(t),y=e.map(i,(e=>o(e,_))),v=0,b=r;v<b.length;v++){var E=b[v];if(0!==E.kind){if(e.contains(y,g(E.node))){if(A=E.node.parent,e.isMethodSignature(A)&&(e.isInterfaceDeclaration(A.parent)||e.isTypeLiteralNode(A.parent))){p.signature=E.node.parent;continue}if(D=l(E)){p.functionCalls.push(D);continue}}var x=o(E.node,_);if(x&&e.contains(y,x)&&(S=c(E))){p.declarations.push(S);continue}if(e.contains(f,g(E.node))||e.isNewExpressionTarget(E.node)){var D;if(s(E))continue;if(S=c(E)){p.declarations.push(S);continue}if(D=l(E)){p.functionCalls.push(D);continue}}if(h&&e.contains(m,g(E.node))){var S;if(s(E))continue;if(S=c(E)){p.declarations.push(S);continue}var T=d(E);if(T){n.accessExpressions.push(T);continue}if(e.isClassDeclaration(t.parent)){var C=u(E);if(C){n.typeUsages.push(C);continue}}}p.valid=!1}else p.valid=!1}var A;return p})(e.flatMap(p,(t=>e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n))));return e.every(m.declarations,(t=>e.contains(p,t)))||(m.valid=!1),m;function g(t){var r=_.getSymbolAtLocation(t);return r&&e.getSymbolTarget(r,_)}})(h,_,m);return y.valid?{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(t=>((t,r,n,i,a,o)=>{var s=o.signature,c=e.map(b(a,r,n),(t=>e.getSynthesizedDeepClone(t)));s&&_(s,e.map(b(s,r,n),(t=>e.getSynthesizedDeepClone(t)))),_(a,c);for(var l=0,d=e.sortAndDeduplicate(o.functionCalls,((t,r)=>e.compareValues(t.pos,r.pos)));l<d.length;l++){var u=d[l];if(u.arguments&&u.arguments.length){var p=e.getSynthesizedDeepClone(v(a,u.arguments),!0);i.replaceNodeRange(e.getSourceFileOfNode(u),e.first(u.arguments),e.last(u.arguments),p,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function _(r,n){i.replaceNodeRangeWithNodes(t,e.first(r.parameters),e.last(r.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}})(i,_,g,t,h,y)))}:{edits:[]}}},getAvailableActions(t){var r=t.file,o=t.startPosition;return e.isSourceFileJS(r)?e.emptyArray:p(r,o,t.program.getTypeChecker())?[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).convertParamsToDestructuredObject||(t.convertParamsToDestructuredObject={}))})(p),(e=>{var t;(r=>{var n="Convert to template string",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),a={name:n,description:i,kind:"refactor.rewrite.string"};function o(t,r){var n=e.getTokenAtPosition(t,r),i=c(n);return!l(i).isValidConcatenation&&e.isParenthesizedExpression(i.parent)&&e.isBinaryExpression(i.parent.parent)?i.parent.parent:n}function s(t,r){var n=c(r),i=t.file,a=((t,r)=>{var n=t.nodes,i=((t,r)=>(n,i)=>{n<t.length&&e.copyTrailingComments(t[n],i,r,3,!1)})(t.operators,r),a=((t,r,n)=>(i,a)=>{for(;i.length>0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}})(n,r,i),o=u(0,n),s=o[0],c=o[1],l=o[2],_=o[3];if(s===n.length){var f=e.factory.createNoSubstitutionTemplateLiteral(c,l);return a(_,f),f}var m=[],g=e.factory.createTemplateHead(c,l);a(_,g);for(var h,y=t=>{var r=(t=>(e.isParenthesizedExpression(t)&&(p(t),t=t.expression),t))(n[t]);i(t,r);var o=u(t+1,n),s=o[0],c=o[1],l=o[2],_=o[3],f=(t=s-1)==n.length-1;if(e.isTemplateExpression(r)){var g=e.map(r.templateSpans,((t,n)=>{p(t);var i=n===r.templateSpans.length-1,a=t.literal.text+(i?c:""),o=d(t.literal)+(i?l:"");return e.factory.createTemplateSpan(t.expression,f&&i?e.factory.createTemplateTail(a,o):e.factory.createTemplateMiddle(a,o))}));m.push.apply(m,g)}else{var y=f?e.factory.createTemplateTail(c,l):e.factory.createTemplateMiddle(c,l);a(_,y),m.push(e.factory.createTemplateSpan(r,y))}h=t},v=s;v<n.length;v++)y(v),v=h;return e.factory.createTemplateExpression(g,m)})(l(n),i),o=e.getTrailingCommentRanges(i.text,n.end);if(o){var s=o[o.length-1],_={pos:o[0].pos,end:s.end};return e.textChanges.ChangeTracker.with(t,(e=>{e.deleteRange(i,_),e.replaceNode(i,n,a)}))}return e.textChanges.ChangeTracker.with(t,(e=>e.replaceNode(i,n,a)))}function c(t){return e.findAncestor(t.parent,(t=>{switch(t.kind){case 206:case 207:return!1;case 223:case 221:return!(e.isBinaryExpression(t.parent)&&(r=t.parent,63!==r.operatorToken.kind));default:return"quit"}var r}))||t}function l(t){var r=t=>{if(!e.isBinaryExpression(t))return{nodes:[t],operators:[],validOperators:!0,hasString:e.isStringLiteral(t)||e.isNoSubstitutionTemplateLiteral(t)};var n=r(t.left),i=n.nodes,a=n.operators,o=n.hasString,s=n.validOperators;if(!(o||e.isStringLiteral(t.right)||e.isTemplateExpression(t.right)))return{nodes:[t],operators:[],hasString:!1,validOperators:!0};var c=39===t.operatorToken.kind,l=s&&c;return i.push(t.right),a.push(t.operatorToken),{nodes:i,operators:a,hasString:!0,validOperators:l}},n=r(t),i=n.nodes,a=n.operators,o=n.validOperators,s=n.hasString;return{nodes:i,operators:a,isValidConcatenation:o&&s}}function d(t){var r=e.isTemplateHead(t)||e.isTemplateMiddle(t)?-2:-1;return e.getTextOfNode(t).slice(1,r)}function u(t,r){for(var n=[],i="",a="";t<r.length;){var o=r[t];if(!e.isStringLiteralLike(o)){if(e.isTemplateExpression(o)){i+=o.head.text,a+=d(o.head);break}break}i+=o.text,a+=e.getTextOfNode(o).slice(1,-1).replace(/\\.|[$`]/g,(e=>"\\"===e[0]?e:"\\"+e)),n.push(t),t++}return[t,i,a,n]}function p(t){var r=t.getSourceFile();e.copyTrailingComments(t,t.expression,r,3,!1),e.copyTrailingAsLeadingComments(t.expression,t.expression,r,3,!1)}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction(t,r){var n=o(t.file,t.startPosition);switch(r){case i:return{edits:s(t,n)};default:return e.Debug.fail("invalid action")}},getAvailableActions(t){var r=c(o(t.file,t.startPosition)),s={name:n,description:i,actions:[]};return e.isBinaryExpression(r)&&l(r).isValidConcatenation?(s.actions.push(a),[s]):t.preferences.provideRefactorNotApplicableReason?(s.actions.push(m(m({},a),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[s]):e.emptyArray}})})((t=e.refactor||(e.refactor={})).convertStringOrTemplateLiteral||(t.convertStringOrTemplateLiteral={}))})(p),(e=>{var t;(r=>{var n="Convert arrow function or function expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),a={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},o={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},s={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function c(t){var r=!1;return t.forEachChild((function t(n){e.isThis(n)?r=!0:e.isClassLike(n)||e.isFunctionDeclaration(n)||e.isFunctionExpression(n)||e.forEachChild(n,t)})),r}function l(t,r,n){var i=e.getTokenAtPosition(t,r),a=n.getTypeChecker(),o=((t,r,n)=>{if((t=>e.isVariableDeclaration(t)||e.isVariableDeclarationList(t)&&1===t.declarations.length)(n)){var i=(e.isVariableDeclaration(n)?n:e.first(n.declarations)).initializer;return i&&(e.isArrowFunction(i)||e.isFunctionExpression(i)&&!u(t,r,i))?i:void 0}})(t,a,i.parent);if(o&&!c(o.body)&&!a.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};var s=e.getContainingFunction(i);if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s))&&!e.rangeContainsRange(s.body,i)&&!c(s.body)&&!a.containsArgumentsReference(s)){if(e.isFunctionExpression(s)&&u(t,a,s))return;return{selectedVariableDeclaration:!1,func:s}}}function d(t){if(e.isExpression(t)){var r=e.factory.createReturnStatement(t),n=t.getSourceFile();return e.suppressLeadingAndTrailingTrivia(r),e.copyTrailingAsLeadingComments(t,r,n,void 0,!0),e.factory.createBlock([r],!0)}return t}function u(t,r,n){return!!n.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,r,t)}t.registerRefactor(n,{kinds:[a.kind,o.kind,s.kind],getEditsForAction(t,r){var n=l(t.file,t.startPosition,t.program);if(n){var i=n.func,c=[];switch(r){case a.name:c.push.apply(c,((t,r)=>{var n=t.file,i=d(r.body),a=e.factory.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,r.typeParameters,r.parameters,r.type,i);return e.textChanges.ChangeTracker.with(t,(e=>e.replaceNode(n,r,a)))})(t,i));break;case o.name:var u=(t=>{var r=t.parent;if(e.isVariableDeclaration(r)&&e.isVariableDeclarationInVariableStatement(r)){var n=r.parent,i=n.parent;return e.isVariableDeclarationList(n)&&e.isVariableStatement(i)&&e.isIdentifier(r.name)?{variableDeclaration:r,variableDeclarationList:n,statement:i,name:r.name}:void 0}})(i);if(!u)return;c.push.apply(c,((t,r,n)=>{var i=t.file,a=d(r.body),o=n.variableDeclaration,s=n.variableDeclarationList,c=n.statement,l=n.name;e.suppressLeadingTrivia(c);var u=1&e.getCombinedModifierFlags(o)|e.getEffectiveModifierFlags(r),p=e.factory.createModifiersFromModifierFlags(u),_=e.factory.createFunctionDeclaration(e.length(p)?p:void 0,r.asteriskToken,l,r.typeParameters,r.parameters,r.type,a);return 1===s.declarations.length?e.textChanges.ChangeTracker.with(t,(e=>e.replaceNode(i,c,_))):e.textChanges.ChangeTracker.with(t,(e=>{e.delete(i,o),e.insertNodeAfter(i,c,_)}))})(t,i,u));break;case s.name:if(!e.isFunctionExpression(i))return;c.push.apply(c,((t,r)=>{var n,i=t.file,a=r.body.statements[0];((t,r)=>1===t.statements.length&&e.isReturnStatement(r)&&!!r.expression)(r.body,a)?(n=a.expression,e.suppressLeadingAndTrailingTrivia(n),e.copyComments(a,n)):n=r.body;var o=e.factory.createArrowFunction(r.modifiers,r.typeParameters,r.parameters,r.type,e.factory.createToken(38),n);return e.textChanges.ChangeTracker.with(t,(e=>e.replaceNode(i,r,o)))})(t,i));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:c}}},getAvailableActions(r){var c=r.file,d=r.startPosition,u=r.program,p=r.kind,_=l(c,d,u);if(!_)return e.emptyArray;var f,g=_.selectedVariableDeclaration,h=_.func,y=[],v=[];return t.refactorKindBeginsWith(o.kind,p)&&((f=g||e.isArrowFunction(h)&&e.isVariableDeclaration(h.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function))?v.push(m(m({},o),{notApplicableReason:f})):y.push(o)),t.refactorKindBeginsWith(a.kind,p)&&((f=!g&&e.isArrowFunction(h)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function))?v.push(m(m({},a),{notApplicableReason:f})):y.push(a)),t.refactorKindBeginsWith(s.kind,p)&&((f=e.isFunctionExpression(h)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function))?v.push(m(m({},s),{notApplicableReason:f})):y.push(s)),[{name:n,description:i,actions:0===y.length&&r.preferences.provideRefactorNotApplicableReason?v:y}]}})})((t=e.refactor||(e.refactor={})).convertArrowFunctionOrFunctionExpression||(t.convertArrowFunctionOrFunctionExpression={}))})(p),(e=>{var t;(r=>{var n="Infer function return type",i=e.Diagnostics.Infer_function_return_type.message,a={name:n,description:i,kind:"refactor.rewrite.function.returnType"};function o(r){if(!e.isInJSFile(r.file)&&t.refactorKindBeginsWith(a.kind,r.kind)){var n=e.getTokenAtPosition(r.file,r.startPosition),i=e.findAncestor(n,(t=>e.isBlock(t)||t.parent&&e.isArrowFunction(t.parent)&&(38===t.kind||t.parent.body===t)?"quit":(e=>{switch(e.kind){case 256:case 213:case 214:case 169:return!0;default:return!1}})(t)));if(!i||!i.body||i.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var o=r.program.getTypeChecker(),s=((t,r)=>{if(t.isImplementationOfOverload(r)){var n=t.getTypeAtLocation(r).getCallSignatures();if(n.length>1)return t.getUnionType(e.mapDefined(n,(e=>e.getReturnType())))}var i=t.getSignatureFromDeclaration(r);if(i)return t.getReturnTypeOfSignature(i)})(o,i);if(!s)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var c=o.typeToTypeNode(s,i,1);return c?{declaration:i,returnTypeNode:c}:void 0}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction(r){var n=o(r);if(n&&!t.isRefactorErrorInfo(n))return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(t=>{return i=r.file,a=t,o=n.declaration,s=n.returnTypeNode,c=e.findChildOfKind(o,21,i),void((d=(l=e.isArrowFunction(o)&&void 0===c)?e.first(o.parameters):c)&&(l&&(a.insertNodeBefore(i,d,e.factory.createToken(20)),a.insertNodeAfter(i,d,e.factory.createToken(21))),a.insertNodeAt(i,d.end,s,{prefix:": "})));var i,a,o,s,c,l,d}))}},getAvailableActions(r){var s=o(r);return s?t.isRefactorErrorInfo(s)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[m(m({},a),{notApplicableReason:s.error})]}]:e.emptyArray:[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).inferFunctionReturnType||(t.inferFunctionReturnType={}))})(p),function(e){function t(t,n,i,a){var l=e.isNodeKind(t)?new r(t,n,i):79===t?new s(79,n,i):80===t?new c(80,n,i):new o(t,n,i);return l.parent=a,l.flags=50720768&a.flags,l}e.servicesVersion="0.8";var r=function(){function r(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return r.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},r.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},r.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},r.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},r.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},r.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(e){return this.getChildren(e).length},r.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},r.prototype.getChildren=function(r){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=((r,i)=>{if(!e.isNodeKind(r.kind))return e.emptyArray;var a=[];if(e.isJSDocCommentContainingNode(r))return r.forEachChild((e=>{a.push(e)})),a;e.scanner.setText((i||r.getSourceFile()).text);var o=r.pos,s=e=>{n(a,o,e.pos,r),a.push(e),o=e.end};return e.forEach(r.jsDoc,s),o=r.pos,r.forEachChild(s,(e=>{n(a,o,e.pos,r),a.push(((e,r)=>{var i=t(348,e.pos,e.end,r);i._children=[];for(var a=e.pos,o=0,s=e;o<s.length;o++){var c=s[o];n(i._children,a,c.pos,r),i._children.push(c),a=c.end}return n(i._children,a,e.end,r),i})(e,r)),o=e.end})),n(a,o,r.end,r),e.scanner.setText(void 0),a})(this,r))},r.prototype.getFirstToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t);if(r.length){var n=e.find(r,(e=>e.kind<309||e.kind>347));return n.kind<161?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<161?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<i;){var o=e.scanner.scan(),s=e.scanner.getTextPos();if(s<=i&&(79===o&&e.Debug.fail("Did not expect ".concat(e.Debug.formatSyntaxKind(a.kind)," to have an Identifier in its trivia")),r.push(t(o,n,s,a))),n=s,1===o)break}}var i=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,r){return e.getTokenPosOfNode(this,t,r)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(){return this.getChildren().length},t.prototype.getChildAt=function(e){return this.getChildren()[e]},t.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||e.emptyArray},t.prototype.getFirstToken=()=>{},t.prototype.getLastToken=()=>{},t.prototype.forEachChild=()=>{},t}(),a=function(){function t(e,t){this.flags=e,this.escapedName=t}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get(){return e.symbolName(this)},enumerable:!1,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(t){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var r=this.target.tupleLabelDeclaration;this.documentationComment=_([r],t)}else this.documentationComment=_(this.declarations,t);return this.documentationComment},t.prototype.getContextualDocumentationComment=function(t,r){if(t){if(e.isGetAccessor(t)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=_(e.filter(this.declarations,e.isGetAccessor),r)),e.length(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(e.isSetAccessor(t)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=_(e.filter(this.declarations,e.isSetAccessor),r)),e.length(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(r)},t.prototype.getJsDocTags=function(e){return void 0===this.tags&&(this.tags=p(this.declarations,e)),this.tags},t.prototype.getContextualJsDocTags=function(t,r){if(t){if(e.isGetAccessor(t)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=p(e.filter(this.declarations,e.isGetAccessor),r)),e.length(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(e.isSetAccessor(t)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=p(e.filter(this.declarations,e.isSetAccessor),r)),e.length(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(r)},t}(),o=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.kind=t,i}return v(t,e),t}(i),s=function(t){function r(e,r,n){var i=t.call(this,r,n)||this;return i.kind=79,i}return v(r,t),Object.defineProperty(r.prototype,"text",{get(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(i);s.prototype.kind=79;var c=function(t){function r(e,r,n){return t.call(this,r,n)||this}return v(r,t),Object.defineProperty(r.prototype,"text",{get(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(i);c.prototype.kind=80;var l=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getFlags=function(){return this.flags},t.prototype.getSymbol=function(){return this.symbol},t.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},t.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},t.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},t.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},t.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},t.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},t.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},t.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},t.prototype.isNullableType=function(){return this.checker.isNullableType(this)},t.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},t.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},t.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},t.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},t.prototype.isUnion=function(){return!!(1048576&this.flags)},t.prototype.isIntersection=function(){return!!(2097152&this.flags)},t.prototype.isUnionOrIntersection=function(){return!!(3145728&this.flags)},t.prototype.isLiteral=function(){return!!(384&this.flags)},t.prototype.isStringLiteral=function(){return!!(128&this.flags)},t.prototype.isNumberLiteral=function(){return!!(256&this.flags)},t.prototype.isTypeParameter=function(){return!!(262144&this.flags)},t.prototype.isClassOrInterface=function(){return!!(3&e.getObjectFlags(this))},t.prototype.isClass=function(){return!!(1&e.getObjectFlags(this))},t.prototype.isIndexType=function(){return!!(4194304&this.flags)},Object.defineProperty(t.prototype,"typeArguments",{get(){if(4&e.getObjectFlags(this))return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),t}(),d=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getTypeParameterAtPosition=function(t){var r=this.checker.getParameterType(this,t);if(r.isIndexType()&&e.isThisTypeParameter(r.type)){var n=r.type.getConstraint();if(n)return this.checker.getIndexType(n)}return r},t.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=_(e.singleElementArray(this.declaration),this.checker))},t.prototype.getJsDocTags=function(){return this.jsDocTags||(this.jsDocTags=p(e.singleElementArray(this.declaration),this.checker))},t}();function u(t){return e.getJSDocTags(t).some((e=>"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text))}function p(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocTagsFromDeclarations(t,r);if(r&&(0===n.length||t.some(u)))for(var i=new e.Set,a=e=>{var t=g(r,e,(t=>{var n;if(!i.has(t))return i.add(t),172===e.kind||173===e.kind?t.getContextualJsDocTags(e,r):1===(null===(n=t.declarations)||void 0===n?void 0:n.length)?t.getJsDocTags():void 0}));t&&(n=f(f([],t,!0),n,!0))},o=0,s=t;o<s.length;o++)a(s[o]);return n}function _(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocCommentsFromDeclarations(t,r);if(r&&(0===n.length||t.some(u)))for(var i=new e.Set,a=t=>{var a=g(r,t,(e=>{if(!i.has(e))return i.add(e),172===t.kind||173===t.kind?e.getContextualDocumentationComment(t,r):e.getDocumentationComment(r)}));a&&(n=0===n.length?a.slice():a.concat(e.lineBreakPart(),n))},o=0,s=t;o<s.length;o++)a(s[o]);return n}function g(t,r,n){var i,a=171===(null===(i=r.parent)||void 0===i?void 0:i.kind)?r.parent.parent:r.parent;if(a){var o=e.hasStaticModifier(r);return e.firstDefined(e.getAllSuperTypeNodes(a),(e=>{var i=t.getTypeAtLocation(e),a=o&&i.symbol?t.getTypeOfSymbol(i.symbol):i,s=t.getPropertyOfType(a,r.symbol.name);return s?n(s):void 0}))}}var h=function(t){function r(e,r,n){var i=t.call(this,e,r,n)||this;return i.kind=305,i}return v(r,t),r.prototype.update=function(t,r){return e.updateSourceFile(this,t,r)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,r,n){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),t,r,this.text,n)},r.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,n=this.getLineStarts();r+1>=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 256:case 213:case 169:case 168:var o=a,s=n(o);if(s){var c=(e=>{var r=t.get(e);return r||t.set(e,r=[]),r})(s),l=e.lastOrUndefined(c);l&&o.parent===l.parent&&o.symbol===l.symbol?o.body&&!l.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 257:case 226:case 258:case 259:case 260:case 261:case 265:case 275:case 270:case 267:case 268:case 172:case 173:case 182:r(a),e.forEachChild(a,i);break;case 164:if(!e.hasSyntacticModifier(a,16476))break;case 254:case 203:var d=a;if(e.isBindingPattern(d.name)){e.forEachChild(d.name,i);break}d.initializer&&i(d.initializer);case 299:case 167:case 166:r(a);break;case 272:var u=a;u.exportClause&&(e.isNamedExports(u.exportClause)?e.forEach(u.exportClause.elements,i):i(u.exportClause.name));break;case 266:var p=a.importClause;p&&(p.name&&r(p.name),p.namedBindings&&(268===p.namedBindings.kind?r(p.namedBindings):e.forEach(p.namedBindings.elements,i)));break;case 221: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),y=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 b(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!E(n)){r=!1;break}if(r)return t;var i={};for(var n in t)e.hasProperty(t,n)&&(i[E(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]);return i}function E(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}e.toEditorSettings=b,e.displayPartsToString=t=>t?e.map(t,(e=>e.text)).join(""):"",e.getDefaultCompilerOptions=()=>({target:1,jsx:1}),e.getSupportedCodeFixes=()=>e.codefix.getSupportedErrorCodes();var x=function(){function t(e){this.host=e}return t.prototype.getCurrentSourceFile=function(t){var r,n,i,a,o,s,c,l,d=this.host.getScriptSnapshot(t);if(!d)throw new Error("Could not find file: '"+t+"'.");var u,p=e.getScriptKind(t,this.host),_=this.host.getScriptVersion(t);if(this.currentFileName!==t)u=S(t,d,{languageVersion:99,impliedNodeFormat:e.getImpliedNodeFormatForFile(e.toPath(t,this.host.getCurrentDirectory(),(null===(i=null===(n=(r=this.host).getCompilerHost)||void 0===n?void 0:n.call(r))||void 0===i?void 0:i.getCanonicalFileName)||e.hostGetCanonicalFileName(this.host)),null===(l=null===(c=null===(s=null===(o=(a=this.host).getCompilerHost)||void 0===o?void 0:o.call(a))||void 0===s?void 0:s.getModuleResolutionCache)||void 0===c?void 0:c.call(s))||void 0===l?void 0:l.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:e.getSetExternalModuleIndicator(this.host.getCompilationSettings())},_,!0,p);else if(this.currentFileVersion!==_){var f=d.getChangeRange(this.currentFileScriptSnapshot);u=T(this.currentSourceFile,d,_,f)}return u&&(this.currentFileVersion=_,this.currentFileName=t,this.currentFileScriptSnapshot=d,this.currentSourceFile=u),this.currentSourceFile},t}();function D(e,t,r){e.version=r,e.scriptSnapshot=t}function S(t,r,n,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(r),n,a,o);return D(s,r,i),s}function T(t,r,n,i,a){if(i&&n!==t.version){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var l=r.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+l+c:s?s+l:l+c}var d=e.updateSourceFile(t,o,i,a);return D(d,r,n),d.nameTable=void 0,t!==d&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),d}var u={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator};return S(t.fileName,r,u,n,!0,t.scriptKind)}e.createLanguageServiceSourceFile=S,e.updateLanguageServiceSourceFile=T;var C={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},A=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},t}(),k=function(){function t(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},t}();e.ThrottledCancellationToken=k;var N=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],w=f(f([],N,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function F(t){var r=(t=>{switch(t.kind){case 10:case 14:case 8:if(162===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 79:return!e.isObjectLiteralElement(t.parent)||205!==t.parent.parent.kind&&286!==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 P(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,(n=>(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(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,(e=>e.getProperty(a))):s}e.createLanguageService=(t,r,n)=>{var i,a,o;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),o=void 0===n?e.LanguageServiceMode.Semantic:"boolean"==typeof n?n?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:n;var s,c,l=new x(t),d=0,u=t.getCancellationToken?new A(t.getCancellationToken()):C,p=t.getCurrentDirectory();function _(e){t.log&&t.log(e)}e.maybeSetLocalizedDiagnosticMessages(null===(a=t.getLocalizedDiagnosticMessages)||void 0===a?void 0:a.bind(t));var g=e.hostUsesCaseSensitiveFileNames(t),h=e.createGetCanonicalFileName(g),y=e.getSourceMapper({useCaseSensitiveFileNames:()=>g,getCurrentDirectory:()=>p,getProgram:D,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:_});function v(e){var t=s.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '".concat(e,"'."));throw r.ProgramFiles=s.getSourceFiles().map((e=>e.fileName)),r}return t}function E(){var n,i,a;if(e.Debug.assert(o!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var l=t.getProjectVersion();if(l){if(c===l&&!(null===(n=t.hasChangedAutomaticTypeDirectiveNames)||void 0===n?void 0:n.call(t)))return;c=l}}var m=t.getTypeRootsVersion?t.getTypeRootsVersion():0;d!==m&&(_("TypeRoots version has changed; provide new program"),s=void 0,d=m);var v,b=t.getScriptFileNames().slice(),E=t.getCompilationSettings()||{target:1,jsx:1},x=t.hasInvalidatedResolution||e.returnFalse,D=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),S=null===(i=t.getProjectReferences)||void 0===i?void 0:i.call(t),T={getSourceFile:I,getSourceFileByPath:O,getCancellationToken:()=>u,getCanonicalFileName:h,useCaseSensitiveFileNames:()=>g,getNewLine:()=>e.getNewLineCharacter(E,(()=>e.getNewLineOrDefaultFromHost(t))),getDefaultLibFileName:e=>t.getDefaultLibFileName(e),writeFile:e.noop,getCurrentDirectory:()=>p,fileExists:e=>t.fileExists(e),readFile:e=>t.readFile&&t.readFile(e),getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:r=>e.directoryProbablyExists(r,t),getDirectories:e=>t.getDirectories?t.getDirectories(e):[],readDirectory:(r,n,i,a,o)=>(e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)),onReleaseOldSourceFile:P,onReleaseParsedCommandLine(e,r,n){var i;t.getParsedCommandLine?null===(i=t.onReleaseParsedCommandLine)||void 0===i||i.call(t,e,r,n):r&&P(r.sourceFile,n)},hasInvalidatedResolution:x,hasChangedAutomaticTypeDirectiveNames:D,trace:e.maybeBind(t,t.trace),resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),getModuleResolutionCache:e.maybeBind(t,t.getModuleResolutionCache),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:F},C=T.getSourceFile,A=e.changeCompilerHostLikeToUseCache(T,(t=>e.toPath(t,p,h)),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return C.call.apply(C,f([T],e,!1))})).getSourceFileWithCache;T.getSourceFile=A,null===(a=t.setCompilerHost)||void 0===a||a.call(t,T);var k={useCaseSensitiveFileNames:g,fileExists:e=>T.fileExists(e),readFile:e=>T.readFile(e),readDirectory(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=T).readDirectory.apply(e,t)},trace:T.trace,getCurrentDirectory:T.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:e.noop};if(!e.isProgramUptoDate(s,b,E,((e,r)=>t.getScriptVersion(r)),(e=>T.fileExists(e)),x,D,F,S)){var N=r.getKeyForCompilationSettings(E),w={rootNames:b,options:E,host:T,oldProgram:s,projectReferences:S};return s=e.createProgram(w),T=void 0,v=void 0,y.clearCache(),void s.getTypeChecker()}function F(r){var n=e.toPath(r,p,h),i=null==v?void 0:v.get(n);if(void 0!==i)return i||void 0;var a=t.getParsedCommandLine?t.getParsedCommandLine(r):(t=>{var r=I(t,100);return r?(r.path=e.toPath(t,p,h),r.resolvedPath=r.path,r.originalFileName=r.fileName,e.parseJsonSourceFileConfigFileContent(r,k,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),p),void 0,e.getNormalizedAbsolutePath(t,p))):void 0})(r);return(v||(v=new e.Map)).set(n,a||!1),a}function P(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind,e.impliedNodeFormat)}function I(t,r,n,i){return O(t,e.toPath(t,p,h),r,0,i)}function O(n,i,a,o,c){e.Debug.assert(T,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var l=t.getScriptSnapshot(n);if(l){var d=e.getScriptKind(n,t),u=t.getScriptVersion(n);if(!c){var p=s&&s.getSourceFileByPath(i);if(p){if(d===p.scriptKind)return r.updateDocumentWithKey(n,i,t,N,l,u,d,a);r.releaseDocumentWithKey(p.resolvedPath,r.getKeyForCompilationSettings(s.getCompilerOptions()),p.scriptKind,p.impliedNodeFormat)}}return r.acquireDocumentWithKey(n,i,t,N,l,u,d,a)}}}function D(){if(o!==e.LanguageServiceMode.Syntactic)return E(),s;e.Debug.assert(void 0===s)}function S(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some((t=>e.normalizePath(t)===i))),E();var a=e.mapDefined(n,(e=>s.getSourceFile(e))),o=v(t);return e.DocumentHighlights.getDocumentHighlights(s,u,o,r,a)}function T(t,r,n,i){E();var a=n&&2===n.use?s.getSourceFiles().filter((e=>!s.isSourceFileDefaultLibrary(e))):s.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(s,u,a,t,r,n,i)}var k=new e.Map(e.getEntries(((i={})[18]=19,i[20]=21,i[22]=23,i[31]=29,i)));function I(r){var n;return e.Debug.assertEqual(r.type,"install package"),t.installPackage?t.installPackage({fileName:(n=r.file,e.toPath(n,p,h)),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`")}function O(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=O(i,r),s=o.lineStarts,c=o.firstLine,d=o.lastLine,u=n||!1,p=Number.MAX_VALUE,_=new e.Map,f=new RegExp(/\S/),m=e.isInsideJsxElement(i,s[c]),g=m?"{/*":"//",h=c;h<=d;h++){var y=i.text.substring(s[h],i.getLineEndOfPosition(s[h])),v=f.exec(y);v&&(p=Math.min(p,v.index),_.set(h.toString(),v.index),y.substr(v.index,g.length)!==g&&(u=void 0===n||n))}for(h=c;h<=d;h++)if(c===d||s[h]!==r.end){var b=_.get(h.toString());void 0!==b&&(m?a.push.apply(a,R(t,{pos:s[h]+p,end:i.getLineEndOfPosition(s[h])},u,m)):u?a.push({newText:g,span:{length:0,start:s[h]+p}}):i.text.substr(s[h]+b,g.length)===g&&a.push({newText:"",span:{length:g.length,start:s[h]+b}}))}return a}function R(t,r,n,i){for(var a,o=l.getCurrentSourceFile(t),s=[],c=o.text,d=!1,u=n||!1,p=[],_=r.pos,f=void 0!==i?i:e.isInsideJsxElement(o,_),m=f?"{/*":"/*",g=f?"*/}":"*/",h=f?"\\{\\/\\*":"\\/\\*",y=f?"\\*\\/\\}":"\\*\\/";_<=r.end;){var v=c.substr(_,m.length)===m?m.length:0,b=e.isInComment(o,_+v);if(b)f&&(b.pos--,b.end++),p.push(b.pos),3===b.kind&&p.push(b.end),d=!0,_=b.end+1;else{var E=c.substring(_,r.end).search("(".concat(h,")|(").concat(y,")"));u=void 0!==n?n:u||!e.isTextWhiteSpaceLike(c,_,-1===E?r.end:_+E),_=-1===E?r.end+1:_+E+g.length}}if(u||!d){2!==(null===(a=e.isInComment(o,r.pos))||void 0===a?void 0:a.kind)&&e.insertSorted(p,r.pos,e.compareValues),e.insertSorted(p,r.end,e.compareValues);var x=p[0];c.substr(x,m.length)!==m&&s.push({newText:m,span:{length:0,start:x}});for(var D=1;D<p.length-1;D++)c.substr(p[D]-g.length,g.length)!==g&&s.push({newText:g,span:{length:0,start:p[D]}}),c.substr(p[D],m.length)!==m&&s.push({newText:m,span:{length:0,start:p[D]}});s.length%2!=0&&s.push({newText:g,span:{length:0,start:p[p.length-1]}})}else for(var S=0,T=p;S<T.length;S++){var C=T[S],A=C-g.length>0?C-g.length:0;v=c.substr(A,g.length)===g?g.length:0,s.push({newText:"",span:{length:m.length,start:C-v}})}return s}function L(t){var r=t.openingElement,n=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,n.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&L(i)}function B(t){var r=t.closingFragment,n=t.parent;return!!(131072&r.flags)||e.isJsxFragment(n)&&B(n)}function U(r,n,i,a,o,s){var c="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:c[0],endPosition:c[1],program:D(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:u,preferences:i,triggerReason:o,kind:s}}k.forEach(((e,t)=>k.set(e.toString(),Number(t))));var j={dispose(){if(s){var n=r.getKeyForCompilationSettings(s.getCompilerOptions());e.forEach(s.getSourceFiles(),(e=>r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind,e.impliedNodeFormat))),s=void 0}t=void 0},cleanupSemanticCache(){s=void 0},getSyntacticDiagnostics:e=>(E(),s.getSyntacticDiagnostics(v(e),u).slice()),getSemanticDiagnostics(t){E();var r=v(t),n=s.getSemanticDiagnostics(r,u);if(!e.getEmitDeclarations(s.getCompilerOptions()))return n.slice();var i=s.getDeclarationDiagnostics(r,u);return f(f([],n,!0),i,!0)},getSuggestionDiagnostics:t=>(E(),e.computeSuggestionDiagnostics(v(t),s,u)),getCompilerOptionsDiagnostics:()=>(E(),f(f([],s.getOptionsDiagnostics(u),!0),s.getGlobalDiagnostics(u),!0)),getSyntacticClassifications:(t,r)=>e.getSyntacticClassifications(u,l.getCurrentSourceFile(t),r),getSemanticClassifications:(t,r,n)=>(E(),"2020"===(n||"original")?e.classifier.v2020.getSemanticClassifications(s,u,v(t),r):e.getSemanticClassifications(s.getTypeChecker(),u,v(t),s.getClassifiableNames(),r)),getEncodedSyntacticClassifications:(t,r)=>e.getEncodedSyntacticClassifications(u,l.getCurrentSourceFile(t),r),getEncodedSemanticClassifications:(t,r,n)=>(E(),"original"===(n||"original")?e.getEncodedSemanticClassifications(s.getTypeChecker(),u,v(t),s.getClassifiableNames(),r):e.classifier.v2020.getEncodedSemanticClassifications(s,u,v(t),r)),getCompletionsAtPosition(r,n,i,a){void 0===i&&(i=e.emptyOptions);var o=m(m({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return E(),e.Completions.getCompletionsAtPosition(t,s,_,v(r),n,o,i.triggerCharacter,i.triggerKind,u,a&&e.formatting.getFormatContext(a,t))},getCompletionEntryDetails:(r,n,i,a,o,c,l)=>(void 0===c&&(c=e.emptyOptions),E(),e.Completions.getCompletionEntryDetails(s,_,v(r),n,{name:i,source:o,data:l},t,a&&e.formatting.getFormatContext(a,t),c,u)),getCompletionEntrySymbol:(r,n,i,a,o)=>(void 0===o&&(o=e.emptyOptions),E(),e.Completions.getCompletionEntrySymbol(s,_,v(r),n,{name:i,source:a},t,o)),getSignatureHelpItems(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;E();var a=v(t);return e.SignatureHelp.getSignatureHelpItems(s,a,r,i,u)},getQuickInfoAtPosition(t,r){E();var n=v(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=s.getTypeChecker(),o=(t=>e.isNewExpression(t.parent)&&t.pos===t.parent.pos?t.parent.expression:e.isNamedTupleMember(t.parent)&&t.pos===t.parent.pos||e.isImportMeta(t.parent)&&t.parent.name===t?t.parent:t)(i),c=((t,r)=>{var n=F(t);if(n){var i=r.getContextualType(n.parent),a=i&&P(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)})(o,a);if(!c||a.isUnknownSymbol(c)){var l=((t,r,n)=>{switch(r.kind){case 79:return!e.isLabelName(r)&&!e.isTagName(r)&&!e.isConstTypeReference(r.parent);case 206:case 161:return!e.isInComment(t,n);case 108:case 192:case 106:case 197:return!0;case 231:return e.isImportMeta(r);default:return!1}})(n,o,r)?a.getTypeAtLocation(o):void 0;return l&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,n),displayParts:a.runWithCancellationToken(u,(t=>e.typeToDisplayParts(t,l,e.getContainerNode(o)))),documentation:l.symbol?l.symbol.getDocumentationComment(a):void 0,tags:l.symbol?l.symbol.getJsDocTags(a):void 0}}var d=a.runWithCancellationToken(u,(t=>e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,c,n,e.getContainerNode(o),o))),p=d.symbolKind,_=d.displayParts,f=d.documentation,m=d.tags;return{kind:p,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,c),textSpan:e.createTextSpanFromNode(o,n),displayParts:_,documentation:f,tags:m}}},getDefinitionAtPosition:(t,r,n,i)=>(E(),e.GoToDefinition.getDefinitionAtPosition(s,v(t),r,n,i)),getDefinitionAndBoundSpan:(t,r)=>(E(),e.GoToDefinition.getDefinitionAndBoundSpan(s,v(t),r)),getImplementationAtPosition:(t,r)=>(E(),e.FindAllReferences.getImplementationsAtPosition(s,u,s.getSourceFiles(),v(t),r)),getTypeDefinitionAtPosition:(t,r)=>(E(),e.GoToDefinition.getTypeDefinitionAtPosition(s.getTypeChecker(),v(t),r)),getReferencesAtPosition:(t,r)=>(E(),T(e.getTouchingPropertyName(v(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)),findReferences:(t,r)=>(E(),e.FindAllReferences.findReferencedSymbols(s,u,s.getSourceFiles(),v(t),r)),getFileReferences:t=>(E(),e.FindAllReferences.Core.getReferencesForFileName(t,s,s.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)),getOccurrencesAtPosition:(t,r)=>e.flatMap(S(t,r,[t]),(e=>e.highlightSpans.map((t=>m(m({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan}))))),getDocumentHighlights:S,getNameOrDottedNameSpan(t,r,n){var i=l.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 206:case 161:case 10:case 95:case 110:case 104:case 106:case 108:case 192:case 79:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(261!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition(t,r){var n=l.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems(t,r,n,i){void 0===i&&(i=!1),E();var a=n?[v(n)]:s.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,s.getTypeChecker(),u,t,r,i)},getRenameInfo:(t,r,n)=>(E(),e.Rename.getRenameInfo(s,v(t),r,n||{})),getSmartSelectionRange:(t,r)=>e.SmartSelectionRange.getSmartSelectionRange(r,l.getCurrentSourceFile(t)),findRenameLocations(t,r,n,i,a){E();var o=v(t),s=e.getAdjustedRenameLocation(e.getTouchingPropertyName(o,r));if(e.Rename.nodeIsEligibleForRename(s)){if(e.isIdentifier(s)&&(e.isJsxOpeningElement(s.parent)||e.isJsxClosingElement(s.parent))&&e.isIntrinsicJsxName(s.escapedText)){var c=s.parent.parent;return[c.openingElement,c.closingElement].map((t=>{var r=e.createTextSpanFromNode(t.tagName,o);return m({fileName:o.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,o,t.parent))}))}return T(s,r,{findInStrings:n,findInComments:i,providePrefixAndSuffixTextForRename:a,use:2},((t,r,n)=>e.FindAllReferences.toRenameLocation(t,r,n,a||!1)))}},getNavigationBarItems:t=>e.NavigationBar.getNavigationBarItems(l.getCurrentSourceFile(t),u),getNavigationTree:t=>e.NavigationBar.getNavigationTree(l.getCurrentSourceFile(t),u),getOutliningSpans(t){var r=l.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,u)},getTodoComments(t,r){E();var n=v(t);u.throwIfCancellationRequested();var i,a,o=n.text,s=[];if(r.length>0&&(a=n.fileName,!e.stringContains(a,"/node_modules/")))for(var c=(()=>{var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+e.map(r,(e=>"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")")).join("|")+")";return new RegExp(t+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")})(),l=void 0;l=c.exec(o);){u.throwIfCancellationRequested(),e.Debug.assert(l.length===r.length+3);var d=l[1],p=l.index+d.length;if(e.isInComment(n,p)){for(var _=void 0,f=0;f<r.length;f++)l[f+3]&&(_=r[f]);if(void 0===_)return e.Debug.fail();if(!((i=o.charCodeAt(p+_.text.length))>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var m=l[2];s.push({descriptor:_,message:m,position:p})}}}return s},getBraceMatchingAtPosition(t,r){var n=l.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?k.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(((e,t)=>e.start-t.start)):e.emptyArray},getIndentationAtPosition(t,r,n){var i=e.timestamp(),a=b(n),o=l.getCurrentSourceFile(t);_("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return _("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange(r,n,i,a){var o=l.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,o,e.formatting.getFormatContext(b(a),t))},getFormattingEditsForDocument:(r,n)=>e.formatting.formatDocument(l.getCurrentSourceFile(r),e.formatting.getFormatContext(b(n),t)),getFormattingEditsAfterKeystroke(r,n,i,a){var o=l.getCurrentSourceFile(r),s=e.formatting.getFormatContext(b(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:(r,n,i)=>e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),l.getCurrentSourceFile(r),n,i),isValidBraceCompletionAtPosition(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(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)&&e.isJsxElement(i.parent)?i.parent:void 0;if(a&&L(a))return{newText:"</".concat(a.openingElement.tagName.getText(n),">")};var o=31===i.kind&&e.isJsxOpeningFragment(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxFragment(i.parent)?i.parent:void 0;return o&&B(o)?{newText:"</>"}:void 0}},getSpanOfEnclosingComment(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(r,n,i,a,o,c){void 0===c&&(c=e.emptyOptions),E();var l=v(r),d=e.createTextSpanFromBounds(n,i),p=e.formatting.getFormatContext(o,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(r=>(u.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:l,span:d,program:s,host:t,cancellationToken:u,formatContext:p,preferences:c}))))},getCombinedCodeFix(r,n,i,a){void 0===a&&(a=e.emptyOptions),E(),e.Debug.assert("file"===r.type);var o=v(r.fileName),c=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:n,sourceFile:o,program:s,host:t,cancellationToken:u,formatContext:c,preferences:a})},applyCodeActionCommand(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map((e=>I(e)))):I(n)},organizeImports(r,n,i){void 0===i&&(i=e.emptyOptions),E(),e.Debug.assert("file"===r.type);var a=v(r.fileName),o=e.formatting.getFormatContext(n,t);return e.OrganizeImports.organizeImports(a,o,t,s,i,r.skipDestructiveCodeActions)},getEditsForFileRename:(r,n,i,a)=>(void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(D(),r,n,t,e.formatting.getFormatContext(i,t),a,y)),getEmitOutput(r,n,i){E();var a=v(r),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(s,a,!!n,u,o,i)},getNonBoundSourceFile:e=>l.getCurrentSourceFile(e),getProgram:D,getCurrentProgram:()=>s,getAutoImportProvider(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},updateIsDefinitionOfReferencedSymbols(r,n){var i=s.getTypeChecker(),a=(()=>{for(var a=0,o=r;a<o.length;a++)for(var s=0,c=o[a].references;s<c.length;s++){var l=c[s];if(n.has(l)){var d=f(l);return e.Debug.assertIsDefined(d),i.getSymbolAtLocation(d)}var u=e.getMappedDocumentSpan(l,y,e.maybeBind(t,t.fileExists));if(u&&n.has(u)&&(d=f(u)))return i.getSymbolAtLocation(d)}})();if(!a)return!1;for(var o=0,c=r;o<c.length;o++)for(var l=0,d=c[o].references;l<d.length;l++){var u=d[l],p=f(u);if(e.Debug.assertIsDefined(p),n.has(u)||e.FindAllReferences.isDeclarationOfSymbol(p,a)){n.add(u),u.isDefinition=!0;var _=e.getMappedDocumentSpan(u,y,e.maybeBind(t,t.fileExists));_&&n.add(_)}else u.isDefinition=!1}return!0;function f(t){var r=s.getSourceFile(t.fileName);if(r){var n=e.getTouchingPropertyName(r,t.textSpan.start);return e.FindAllReferences.Core.getAdjustedNode(n,{use:1})}}},getApplicableRefactors(t,r,n,i,a){void 0===n&&(n=e.emptyOptions),E();var o=v(t);return e.refactor.getApplicableRefactors(U(o,r,n,e.emptyOptions,i,a))},getEditsForRefactor(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),E();var s=v(t);return e.refactor.getEditsForRefactor(U(s,n,o,r),i,a)},toLineColumnOffset:(e,t)=>0===t?{line:0,character:0}:y.toLineColumnOffset(e,t),getSourceMapper:()=>y,clearSourceMapperCache:()=>y.clearCache(),prepareCallHierarchy(t,r){E();var n=e.CallHierarchy.resolveCallHierarchyDeclaration(s,e.getTouchingPropertyName(v(t),r));return n&&e.mapOneOrMany(n,(t=>e.CallHierarchy.createCallHierarchyItem(s,t)))},provideCallHierarchyIncomingCalls(t,r){E();var n=v(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(s,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getIncomingCalls(s,i,u):[]},provideCallHierarchyOutgoingCalls(t,r){E();var n=v(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(s,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getOutgoingCalls(s,i):[]},toggleLineComment:M,toggleMultilineComment:R,commentSelection(e,t){var r=O(l.getCurrentSourceFile(e),t);return r.firstLine===r.lastLine&&t.pos!==t.end?R(e,t,!0):M(e,t,!0)},uncommentSelection(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,R(t,{end:c.end,pos:c.pos+1},!1))}s=c.end+1}}return i},provideInlayHints(r,n,i){void 0===i&&(i=e.emptyOptions),E();var a=v(r);return e.InlayHints.provideInlayHints(((e,r,n)=>({file:e,program:D(),host:t,span:r,preferences:n,cancellationToken:u}))(a,n,i))}};switch(o){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:N.forEach((e=>j[e]=()=>{throw new Error("LanguageService Operation: ".concat(e," not allowed in LanguageServiceMode.PartialSemantic"))}));break;case e.LanguageServiceMode.Syntactic:w.forEach((e=>j[e]=()=>{throw new Error("LanguageService Operation: ".concat(e," not allowed in LanguageServiceMode.Syntactic"))}));break;default:e.Debug.assertNever(o)}return j},e.getNameTable=t=>(t.nameTable||(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)&&(t=>e.isDeclarationName(t)||277===t.parent.kind||(e=>e&&e.parent&&207===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)&&(i=n.escapedText,r.set(i,void 0===r.get(i)?n.pos:-1));if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a<o.length;a++){var s=o[a];e.forEachChild(s,t)}}))})(t),t.nameTable),e.getContainingObjectLiteralElement=F,e.getPropertySymbolsFromContextualType=P,e.setObjectAllocator({getNodeConstructor:()=>r,getTokenConstructor:()=>o,getIdentifierConstructor:()=>s,getPrivateIdentifierConstructor:()=>c,getSourceFileConstructor:()=>h,getSymbolConstructor:()=>a,getTypeConstructor:()=>l,getSignatureConstructor:()=>d,getSourceMapSourceConstructor:()=>y})}(p),(e=>{(e.BreakpointResolver||(e.BreakpointResolver={})).spanInSourceFileAtLocation=(t,r)=>{if(!t.isDeclarationFile){var n=e.getTokenAtPosition(t,r),i=t.getLineAndCharacterOfPosition(r).line;if(t.getLineAndCharacterOfPosition(n.getStart(t)).line>i){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(16777216&n.flags))return u(n)}function o(r,n){var i=e.canHaveDecorators(r)?e.findLast(r.modifiers,e.isDecorator):void 0,a=i?e.skipTrivia(t.text,i.end):r.getStart(t);return e.createTextSpanFromBounds(a,(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?u(e):u(r)}function l(r){return u(e.findPrecedingToken(r.pos,t))}function d(r){return u(e.findNextToken(r,r.parent,t))}function u(r){if(r){var n=r.parent;switch(r.kind){case 237:return b(r.declarationList.declarations[0]);case 254:case 167:case 166:return b(r);case 164:return function t(r){if(e.isBindingPattern(r.name))return S(r.name);if((t=>!!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]):u(n.body)}(r);case 256:case 169:case 168:case 172:case 173:case 171:case 213:case 214:return(e=>{if(e.body)return E(e)?o(e):u(e.body)})(r);case 235:if(e.isFunctionBlock(r))return y=(h=r).statements.length?h.statements[0]:h.getLastToken(),E(h.parent)?c(h.parent,y):u(y);case 262:return x(r);case 292:return x(r.block);case 238:return o(r.expression);case 247:return o(r.getChildAt(0),r.expression);case 241:return s(r,r.expression);case 240:return u(r.statement);case 253:return o(r.getChildAt(0));case 239:return s(r,r.expression);case 250:return u(r.statement);case 246:case 245:return o(r.getChildAt(0),r.label);case 242:return(g=r).initializer?D(g):g.condition?o(g.condition):g.incrementor?o(g.incrementor):void 0;case 243:return s(r,r.expression);case 244:return D(r);case 249:return s(r,r.expression);case 289:case 290:return u(r.statements[0]);case 252:return x(r.tryBlock);case 251:case 271:return o(r,r.expression);case 265:return o(r,r.moduleReference);case 266:case 272:return o(r,r.moduleSpecifier);case 261:if(1!==e.getModuleInstanceState(r))return;case 257:case 260:case 299:case 203:return o(r);case 248:return u(r.statement);case 165:return((r,n,i)=>{if(r){var a=r.indexOf(n);if(a>=0){for(var s=a,c=a+1;s>0&&i(r[s-1]);)s--;for(;c<r.length&&i(r[c]);)c++;return e.createTextSpanFromBounds(e.skipTrivia(t.text,r[s].pos),r[c-1].end)}}return o(n)})(n.modifiers,r,e.isDecorator);case 201:case 202:return S(r);case 258:case 259:return;case 26:case 1:return c(e.findPrecedingToken(r.pos,t));case 27:return l(r);case 18:return(r=>{switch(r.parent.kind){case 260:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 257:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 263:return c(r.parent.parent,r.parent.clauses[0])}return u(r.parent)})(r);case 19:return(t=>{switch(t.parent.kind){case 262:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 260:case 257:return o(t);case 235:if(e.isFunctionBlock(t.parent))return o(t);case 292:return u(e.lastOrUndefined(t.parent.statements));case 263:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?u(e.lastOrUndefined(n.statements)):void 0;case 201:var i=t.parent;return u(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return o(e.lastOrUndefined(a.properties)||a)}return u(t.parent)}})(r);case 23:return(t=>{switch(t.parent.kind){case 202: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 u(t.parent)}})(r);case 20:return(e=>240===e.parent.kind||208===e.parent.kind||209===e.parent.kind?l(e):212===e.parent.kind?d(e):u(e.parent))(r);case 21:return(e=>{switch(e.parent.kind){case 213:case 256:case 214:case 169:case 168:case 172:case 173:case 171:case 241:case 240:case 242:case 244:case 208:case 209:case 212:return l(e);default:return u(e.parent)}})(r);case 58:return(t=>e.isFunctionLike(t.parent)||296===t.parent.kind||164===t.parent.kind?l(t):u(t.parent))(r);case 31:case 29:return(e=>211===e.parent.kind?d(e):u(e.parent))(r);case 115:return(e=>240===e.parent.kind?s(e,e.parent.expression):u(e.parent))(r);case 91:case 83:case 96:return d(r);case 160:return(e=>244===e.parent.kind?d(e):u(e.parent))(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return T(r);if((79===r.kind||225===r.kind||296===r.kind||297===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(221===r.kind){var i=r,a=i.left,p=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return T(a);if(63===p.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return o(r);if(27===p.kind)return u(a)}if(e.isExpressionNode(r))switch(n.kind){case 240:return l(r);case 165:return u(r.parent);case 242:case 244:return o(r);case 221:if(27===r.parent.operatorToken.kind)return o(r);break;case 214:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 296:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return u(r.parent.initializer);break;case 211:if(r.parent.type===r)return d(r.parent.type);break;case 254:case 164:var _=r.parent,f=_.initializer,m=_.type;if(f===r||m===r||e.isAssignmentOperator(r.kind))return l(r);break;case 221:if(a=r.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a)return l(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return l(r)}return u(r.parent)}}var g,h,y;function v(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function b(r){if(243===r.parent.parent.kind)return u(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?S(r.name):e.hasOnlyExpressionInitializer(r)&&r.initializer||e.hasSyntacticModifier(r,1)||244===n.parent.kind?v(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?u(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function E(t){return e.hasSyntacticModifier(t,1)||257===t.parent.kind&&171!==t.kind}function x(r){switch(r.parent.kind){case 261:if(1!==e.getModuleInstanceState(r.parent))return;case 241:case 239:case 243:return c(r.parent,r.statements[0]);case 242:case 244:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return u(r.statements[0])}function D(e){if(255!==e.initializer.kind)return u(e.initializer);var t=e.initializer;return t.declarations.length>0?u(t.declarations[0]):void 0}function S(t){var r=e.forEach(t.elements,(e=>227!==e.kind?e:void 0));return r?u(r):203===t.parent.kind?o(t.parent):v(t.parent)}function T(t){e.Debug.assert(202!==t.kind&&201!==t.kind);var r=204===t.kind?t.elements:t.properties,n=e.forEach(r,(e=>227!==e.kind?e:void 0));return n?u(n):o(221===t.parent.kind?t.parent:t)}}}})(p),(e=>{e.transform=(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}})(p);var b=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=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.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=(t,n)=>{var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,(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=e=>r.shimHost.directoryExists(e)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(t,n)=>{var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,(t=>e.getProperty(i,e.isString(t)?t:t.fileName.toLowerCase())))})}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(e){return this.log(e.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 i=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=e=>t.shimHost.directoryExists(e):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=e=>t.shimHost.realpath(e):this.realpath=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 a(e,t,r,n){return o(e,t,!0,r,n)}function o(r,n,i,a,o){try{var s=((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("".concat(r," completed in ").concat(s-a," msec")),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length=".concat(c.length,", result='").concat(JSON.stringify(c),"'"))}}return o})(r,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(r,i),i.description=n,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=i;var s=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function c(t,r){return t.map((t=>((t,r)=>({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=c;var l=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 v(r,t),r.prototype.forwardJSONCall=function(e,t){return a(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,b&&b.CollectGarbage&&(b.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh(".concat(e,")"),(()=>null))},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(()=>(e.languageService.cleanupSemanticCache(),null)))},r.prototype.realizeDiagnostics=function(t){return c(t,e.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(()=>i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))))},r.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(()=>i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))))},r.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(()=>d(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))))},r.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(()=>d(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))))},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(e,"')"),(()=>{var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(e,"')"),(()=>{var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(e,"')"),(()=>t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))))},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(()=>{var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)}))},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getQuickInfoAtPosition(e,t)))},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(e,"', ").concat(t,", ").concat(r,")"),(()=>n.languageService.getNameOrDottedNameSpan(e,t,r)))},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getBreakpointStatementAtPosition(e,t)))},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(e,"', ").concat(t,")"),(()=>n.languageService.getSignatureHelpItems(e,t,r)))},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getDefinitionAtPosition(e,t)))},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getDefinitionAndBoundSpan(e,t)))},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getTypeDefinitionAtPosition(e,t)))},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getImplementationAtPosition(e,t)))},r.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('".concat(e,"', ").concat(t,")"),(()=>n.languageService.getRenameInfo(e,t,r)))},r.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getSmartSelectionRange(e,t)))},r.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,", ").concat(i,")"),(()=>a.languageService.findRenameLocations(e,t,r,n,i)))},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getBraceMatchingAtPosition(e,t)))},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(e,"', ").concat(t,", ").concat(r,")"),(()=>n.languageService.isValidBraceCompletionAtPosition(e,t,r)))},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(e,"', ").concat(t,")"),(()=>n.languageService.getSpanOfEnclosingComment(e,t,r)))},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(e,"', ").concat(t,")"),(()=>{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('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getReferencesAtPosition(e,t)))},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('".concat(e,"', ").concat(t,")"),(()=>r.languageService.findReferences(e,t)))},r.prototype.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('".concat(e,")"),(()=>t.languageService.getFileReferences(e)))},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getOccurrencesAtPosition(e,t)))},r.prototype.getDocumentHighlights=function(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('".concat(t,"', ").concat(r,")"),(()=>{var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,(t=>e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o))}))},r.prototype.getCompletionsAtPosition=function(e,t,r,n){var i=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,")"),(()=>i.languageService.getCompletionsAtPosition(e,t,r,n)))},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(e,"', ").concat(t,", '").concat(r,"')"),(()=>{var c=void 0===n?void 0:JSON.parse(n);return s.languageService.getCompletionEntryDetails(e,t,r,c,i,a,o)}))},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(e,"', ").concat(t,", ").concat(r,")"),(()=>{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('".concat(e,"')"),(()=>{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('".concat(e,"', ").concat(t,", '").concat(r,"')"),(()=>{var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)}))},r.prototype.getDocCommentTemplateAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(e,"', ").concat(t,")"),(()=>n.languageService.getDocCommentTemplateAtPosition(e,t,r)))},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('".concat(e,"', ").concat(t,", ").concat(r,")"),(()=>n.languageService.getNavigateToItems(e,t,r)))},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('".concat(e,"')"),(()=>t.languageService.getNavigationBarItems(e)))},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('".concat(e,"')"),(()=>t.languageService.getNavigationTree(e)))},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('".concat(e,"')"),(()=>t.languageService.getOutliningSpans(e)))},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('".concat(e,"')"),(()=>r.languageService.getTodoComments(e,JSON.parse(t))))},r.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(e,"', ").concat(t,")"),(()=>r.languageService.prepareCallHierarchy(e,t)))},r.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(e,"', ").concat(t,")"),(()=>r.languageService.provideCallHierarchyIncomingCalls(e,t)))},r.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(e,"', ").concat(t,")"),(()=>r.languageService.provideCallHierarchyOutgoingCalls(e,t)))},r.prototype.provideInlayHints=function(e,t,r){var n=this;return this.forwardJSONCall("provideInlayHints('".concat(e,"', '").concat(JSON.stringify(t),"', ").concat(JSON.stringify(r),")"),(()=>n.languageService.provideInlayHints(e,t,r)))},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('".concat(e,"')"),(()=>{var r=t.languageService.getEmitOutput(e),n=r.diagnostics,i=y(r,["diagnostics"]);return m(m({},i),{diagnostics:t.realizeDiagnostics(n)})}))},r.prototype.getEmitOutputObject=function(e){var t=this;return o(this.logger,"getEmitOutput('".concat(e,"')"),!1,(()=>t.languageService.getEmitOutput(e)),this.logPerformance)},r.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(()=>r.languageService.toggleLineComment(e,t)))},r.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(()=>r.languageService.toggleMultilineComment(e,t)))},r.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(()=>r.languageService.commentSelection(e,t)))},r.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(()=>r.languageService.uncommentSelection(e,t)))},r}(s);function d(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var u=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 v(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),a(this.logger,"getEncodedLexicalClassifications",(()=>d(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<o.length;a++){var s=o[a];i+=s.length+"\n",i+=s.classification+"\n"}return i+n.finalLexState},r}(s),p=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.logger=r,i.host=n,i.logPerformance=!1,i}return v(r,t),r.prototype.forwardJSONCall=function(e,t){return a(this.logger,e,t,this.logPerformance)},r.prototype.resolveModuleName=function(t,r,n){var i=this;return this.forwardJSONCall("resolveModuleName('".concat(t,"')"),(()=>{var a=JSON.parse(n),o=e.resolveModuleName(r,e.normalizeSlashes(t),a,i.host),s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&".ts"!==o.resolvedModule.extension&&".tsx"!==o.resolvedModule.extension&&".d.ts"!==o.resolvedModule.extension&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations,affectingLocations:o.affectingLocations}}))},r.prototype.resolveTypeReferenceDirective=function(t,r,n){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(t,")"),(()=>{var a=JSON.parse(n),o=e.resolveTypeReferenceDirective(r,e.normalizeSlashes(t),a,i.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}}))},r.prototype.getPreProcessedFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getPreProcessedFileInfo('".concat(t,"')"),(()=>{var t=e.preProcessFile(e.getSnapshotText(r),!0,!0);return{referencedFiles:n.convertFileReferences(t.referencedFiles),importedFiles:n.convertFileReferences(t.importedFiles),ambientExternalModules:t.ambientExternalModules,isLibFile:t.isLibFile,typeReferenceDirectives:n.convertFileReferences(t.typeReferenceDirectives),libReferenceDirectives:n.convertFileReferences(t.libReferenceDirectives)}}))},r.prototype.getAutomaticTypeDirectiveNames=function(t){var r=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(t,"')"),(()=>{var n=JSON.parse(t);return e.getAutomaticTypeDirectiveNames(n,r.host)}))},r.prototype.convertFileReferences=t=>{if(t){for(var r=[],n=0,i=t;n<i.length;n++){var a=i[n];r.push({path:e.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return r}},r.prototype.getTSConfigFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getTSConfigFileInfo('".concat(t,"')"),(()=>{var i=e.parseJsonText(t,e.getSnapshotText(r)),a=e.normalizeSlashes(t),o=e.parseJsonSourceFileConfigFileContent(i,n.host,e.getDirectoryPath(a),{},a);return{options:o.options,typeAcquisition:o.typeAcquisition,files:o.fileNames,raw:o.raw,errors:c(f(f([],i.parseDiagnostics,!0),o.errors,!0),"\r\n")}}))},r.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",(()=>e.getDefaultCompilerOptions()))},r.prototype.discoverTypings=function(t){var r=this,n=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",(()=>{var i=JSON.parse(t);return void 0===r.safeList&&(r.safeList=e.JsTyping.loadSafeList(r.host,e.toPath(i.safeListPath,i.safeListPath,n))),e.JsTyping.discoverTypings(r.host,(e=>r.logger.log(e)),i.fileNames,e.toPath(i.projectRootPath,i.projectRootPath,n),r.safeList,i.packageNameToTypingLocation,i.typeAcquisition,i.unresolvedImports,i.typesRegistry,e.emptyOptions)}))},r}(s),_=function(){function r(){this._shims=[]}return r.prototype.getServicesVersion=()=>e.servicesVersion,r.prototype.createLanguageServiceShim=function(r){try{void 0===this.documentRegistry&&(this.documentRegistry=e.createDocumentRegistry(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames(),r.getCurrentDirectory()));var i=new n(r),a=e.createLanguageService(i,this.documentRegistry,!1);return new l(this,r,a)}catch(e){throw t(r,e),e}},r.prototype.createClassifierShim=function(e){try{return new u(this,e)}catch(r){throw t(e,r),r}},r.prototype.createCoreServicesShim=function(e){try{var r=new i(e);return new p(this,e,r)}catch(r){throw t(e,r),r}},r.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},r.prototype.registerShim=function(e){this._shims.push(e)},r.prototype.unregisterShim=function(e){for(var t=0;t<this._shims.length;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},r}();e.TypeScriptServicesFactory=_}(p),function(){if("object"!=typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get(){return this},configurable:!0}),__magic__.globalThis=__magic__,"undefined"==typeof globalThis&&(window.globalThis=window),delete Object.prototype.__magic__}catch(e){window.globalThis=window}}(),(void 0===r||r.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=p.TypeScriptServicesFactory,globalThis.toolsVersion=p.versionMajorMinor),"undefined"!=typeof module&&module.exports&&(module.exports=p),(e=>{function t(t,r,n,i){if(Object.defineProperty(l,"name",m(m({},Object.getOwnPropertyDescriptor(l,"name")),{value:t})),i)for(var a=0,o=Object.keys(i);a<o.length;a++){var s=+o[a];!isNaN(s)&&e.hasProperty(r,"".concat(s))&&(r[s]=e.Debug.deprecate(r[s],m(m({},i[s]),{name:t})))}var c=((t,r)=>n=>{for(var i=0;e.hasProperty(t,"".concat(i))&&e.hasProperty(r,"".concat(i));i++)if((0,r[i])(n))return i})(r,n);return l;function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=c(e),i=void 0!==n?r[n]:void 0;if("function"==typeof i)return i.apply(void 0,e);throw new TypeError("Invalid arguments")}}e.createOverload=t,e.buildOverload=e=>({overload:r=>({bind:n=>({finish:()=>t(e,r,n),deprecate:i=>({finish:()=>t(e,r,n,i)})})})})})(p),(e=>{var t={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,t),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,t),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,t),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,t),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,t),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,t),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,t),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,t),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,t),e.createSuper=e.Debug.deprecate(e.factory.createSuper,t),e.createThis=e.Debug.deprecate(e.factory.createThis,t),e.createNull=e.Debug.deprecate(e.factory.createNull,t),e.createTrue=e.Debug.deprecate(e.factory.createTrue,t),e.createFalse=e.Debug.deprecate(e.factory.createFalse,t),e.createModifier=e.Debug.deprecate(e.factory.createModifier,t),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,t),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,t),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,t),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,t),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,t),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,t),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,t),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,t),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,t),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,t),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,t),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,t),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,t),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,t),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,t),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,t),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,t),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,t),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,t),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,t),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,t),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,t),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,t),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,t),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,t),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,t),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,t),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,t),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,t),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,t),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,t),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,t),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,t),e.createConstructorTypeNode=e.Debug.deprecate(((t,r,n)=>e.factory.createConstructorTypeNode(void 0,t,r,n)),t),e.updateConstructorTypeNode=e.Debug.deprecate(((t,r,n,i)=>e.factory.updateConstructorTypeNode(t,t.modifiers,r,n,i)),t),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,t),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,t),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,t),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,t),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,t),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,t),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,t),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,t),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,t),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,t),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,t),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,t),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,t),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,t),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,t),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,t),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,t),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,t),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,t),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,t),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,t),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,t),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,t),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,t),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,t),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,t),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,t),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,t),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,t),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,t),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,t),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,t),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,t),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,t),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,t),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,t),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,t),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,t),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,t),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,t),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,t),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,t),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,t),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,t),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,t),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,t),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,t),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,t),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,t),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,t),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,t),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,t),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,t),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,t),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,t),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,t),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,t),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,t),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,t),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,t),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,t),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,t),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,t),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,t),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,t),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,t),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,t),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,t),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,t),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,t),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,t),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,t),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,t),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,t),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,t),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,t),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,t),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,t),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,t),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,t),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,t),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,t),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,t),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,t),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,t),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,t),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,t),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,t),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,t),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,t),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,t),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,t),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,t),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,t),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,t),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,t),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,t),e.createBlock=e.Debug.deprecate(e.factory.createBlock,t),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,t),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,t),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,t),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,t),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,t),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,t),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,t),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,t),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,t),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,t),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,t),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,t),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,t),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,t),e.createFor=e.Debug.deprecate(e.factory.createForStatement,t),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,t),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,t),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,t),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,t),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,t),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,t),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,t),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,t),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,t),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,t),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,t),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,t),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,t),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,t),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,t),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,t),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,t),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,t),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,t),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,t),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,t),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,t),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,t),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,t),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,t),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,t),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,t),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,t),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,t),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,t),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,t),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,t),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,t),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,t),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,t),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,t),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,t),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,t),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,t),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,t),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,t),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,t),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,t),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,t),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,t),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,t),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,t),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,t),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,t),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,t),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,t),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,t),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,t),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,t),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,t),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,t),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,t),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,t),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,t),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,t),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,t),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,t),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,t),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,t),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,t),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,t),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,t),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,t),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,t),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,t),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,t),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,t),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,t),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,t),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,t),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,t),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,t),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,t),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,t),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,t),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,t),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,t),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,t),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,t),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,t),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,t),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,t),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,t),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,t),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,t),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,t),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,t),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,t),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,t),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,t),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,t),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,t),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,t),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,t),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,t),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,t),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,t),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,t),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,t),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,t),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,t),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,t),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,t),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,t),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,t),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,t),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,t),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,t),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,t),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,t),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,t),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,t),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,t),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,t),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,t),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,t),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,t),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,t),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,t),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,t),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,t),e.createBundle=e.Debug.deprecate(e.factory.createBundle,t),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,t),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,t),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,t),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,t),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,t),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,t),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,t),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,t),e.createToken=e.Debug.deprecate((t=>e.factory.createToken(t)),t),e.createIdentifier=e.Debug.deprecate((t=>e.factory.createIdentifier(t,void 0,void 0)),t),e.createTempVariable=e.Debug.deprecate((t=>e.factory.createTempVariable(t,void 0)),t),e.getGeneratedNameForNode=e.Debug.deprecate((t=>e.factory.getGeneratedNameForNode(t,void 0)),t),e.createOptimisticUniqueName=e.Debug.deprecate((t=>e.factory.createUniqueName(t,16)),t),e.createFileLevelUniqueName=e.Debug.deprecate((t=>e.factory.createUniqueName(t,48)),t),e.createIndexSignature=e.Debug.deprecate(((t,r,n,i)=>e.factory.createIndexSignature(t,r,n,i)),t),e.createTypePredicateNode=e.Debug.deprecate(((t,r)=>e.factory.createTypePredicateNode(void 0,t,r)),t),e.updateTypePredicateNode=e.Debug.deprecate(((t,r,n)=>e.factory.updateTypePredicateNode(t,void 0,r,n)),t),e.createLiteral=e.Debug.deprecate((t=>"number"==typeof t?e.factory.createNumericLiteral(t):"object"==typeof t&&"base10Value"in t?e.factory.createBigIntLiteral(t):"boolean"==typeof t?t?e.factory.createTrue():e.factory.createFalse():"string"==typeof t?e.factory.createStringLiteral(t,void 0):e.factory.createStringLiteralFromNode(t)),{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(((t,r,n,i,a)=>e.factory.createMethodSignature(void 0,i,a,t,r,n)),t),e.updateMethodSignature=e.Debug.deprecate(((t,r,n,i,a,o)=>e.factory.updateMethodSignature(t,t.modifiers,a,o,r,n,i)),t),e.createTypeOperatorNode=e.Debug.deprecate(((t,r)=>{var n;return r?n=t:(r=t,n=140),e.factory.createTypeOperatorNode(n,r)}),t),e.createTaggedTemplate=e.Debug.deprecate(((t,r,n)=>{var i;return n?i=r:n=r,e.factory.createTaggedTemplateExpression(t,i,n)}),t),e.updateTaggedTemplate=e.Debug.deprecate(((t,r,n,i)=>{var a;return i?a=n:i=n,e.factory.updateTaggedTemplateExpression(t,r,a,i)}),t),e.updateBinary=e.Debug.deprecate(((t,r,n,i)=>(void 0===i&&(i=t.operatorToken),"number"==typeof i&&(i=i===t.operatorToken.kind?t.operatorToken:e.factory.createToken(i)),e.factory.updateBinaryExpression(t,r,i,n))),t),e.createConditional=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.createConditionalExpression(t,r,n,i,a):3===arguments.length?e.factory.createConditionalExpression(t,e.factory.createToken(57),r,e.factory.createToken(58),n):e.Debug.fail("Argument count mismatch")}),t),e.createYield=e.Debug.deprecate(((t,r)=>{var n;return r?n=t:r=t,e.factory.createYieldExpression(n,r)}),t),e.createClassExpression=e.Debug.deprecate(((t,r,n,i,a)=>e.factory.createClassExpression(void 0,t,r,n,i,a)),t),e.updateClassExpression=e.Debug.deprecate(((t,r,n,i,a,o)=>e.factory.updateClassExpression(t,void 0,r,n,i,a,o)),t),e.createPropertySignature=e.Debug.deprecate(((t,r,n,i,a)=>{var o=e.factory.createPropertySignature(t,r,n,i);return o.initializer=a,o}),t),e.updatePropertySignature=e.Debug.deprecate(((t,r,n,i,a,o)=>{var s=e.factory.updatePropertySignature(t,r,n,i,a);return t.initializer!==o&&(s===t&&(s=e.factory.cloneNode(t)),s.initializer=o),s}),t),e.createExpressionWithTypeArguments=e.Debug.deprecate(((t,r)=>e.factory.createExpressionWithTypeArguments(r,t)),t),e.updateExpressionWithTypeArguments=e.Debug.deprecate(((t,r,n)=>e.factory.updateExpressionWithTypeArguments(t,n,r)),t),e.createArrowFunction=e.Debug.deprecate((function(t,r,n,i,a,o){return 6===arguments.length?e.factory.createArrowFunction(t,r,n,i,a,o):5===arguments.length?e.factory.createArrowFunction(t,r,n,i,void 0,a):e.Debug.fail("Argument count mismatch")}),t),e.updateArrowFunction=e.Debug.deprecate((function(t,r,n,i,a,o,s){return 7===arguments.length?e.factory.updateArrowFunction(t,r,n,i,a,o,s):6===arguments.length?e.factory.updateArrowFunction(t,r,n,i,a,t.equalsGreaterThanToken,o):e.Debug.fail("Argument count mismatch")}),t),e.createVariableDeclaration=e.Debug.deprecate((function(t,r,n,i){return 4===arguments.length?e.factory.createVariableDeclaration(t,r,n,i):arguments.length>=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(((t,r,n)=>(void 0===n&&(n=!1),e.factory.createImportClause(n,t,r))),t),e.updateImportClause=e.Debug.deprecate(((t,r,n,i)=>e.factory.updateImportClause(t,i,r,n)),t),e.createExportDeclaration=e.Debug.deprecate(((t,r,n,i,a)=>(void 0===a&&(a=!1),e.factory.createExportDeclaration(t,r,a,n,i))),t),e.updateExportDeclaration=e.Debug.deprecate(((t,r,n,i,a,o)=>e.factory.updateExportDeclaration(t,r,n,o,i,a,t.assertClause)),t),e.createJSDocParamTag=e.Debug.deprecate(((t,r,n,i)=>e.factory.createJSDocParameterTag(void 0,t,r,n,!1,i?e.factory.createNodeArray([e.factory.createJSDocText(i)]):void 0)),t),e.createComma=e.Debug.deprecate(((t,r)=>e.factory.createComma(t,r)),t),e.createLessThan=e.Debug.deprecate(((t,r)=>e.factory.createLessThan(t,r)),t),e.createAssignment=e.Debug.deprecate(((t,r)=>e.factory.createAssignment(t,r)),t),e.createStrictEquality=e.Debug.deprecate(((t,r)=>e.factory.createStrictEquality(t,r)),t),e.createStrictInequality=e.Debug.deprecate(((t,r)=>e.factory.createStrictInequality(t,r)),t),e.createAdd=e.Debug.deprecate(((t,r)=>e.factory.createAdd(t,r)),t),e.createSubtract=e.Debug.deprecate(((t,r)=>e.factory.createSubtract(t,r)),t),e.createLogicalAnd=e.Debug.deprecate(((t,r)=>e.factory.createLogicalAnd(t,r)),t),e.createLogicalOr=e.Debug.deprecate(((t,r)=>e.factory.createLogicalOr(t,r)),t),e.createPostfixIncrement=e.Debug.deprecate((t=>e.factory.createPostfixIncrement(t)),t),e.createLogicalNot=e.Debug.deprecate((t=>e.factory.createLogicalNot(t)),t),e.createNode=e.Debug.deprecate(((t,r,n)=>(void 0===r&&(r=0),void 0===n&&(n=0),e.setTextRangePosEnd(305===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):79===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):80===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((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 an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."})})(p),(e=>{e.isTypeAssertion=e.Debug.deprecate((e=>211===e.kind),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})})(p),(e=>{e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate((t=>e.isMemberName(t)),{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(p),(e=>{function t(t){var r=t.createConstructorTypeNode,n=t.updateConstructorTypeNode;t.createConstructorTypeNode=e.buildOverload("createConstructorTypeNode").overload({0:(e,t,n,i)=>r(e,t,n,i),1:(e,t,n)=>r(void 0,e,t,n)}).bind({0:e=>4===e.length,1:e=>3===e.length}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish(),t.updateConstructorTypeNode=e.buildOverload("updateConstructorTypeNode").overload({0:(e,t,r,i,a)=>n(e,t,r,i,a),1:(e,t,r,i)=>n(e,e.modifiers,t,r,i)}).bind({0:e=>5===e.length,1:e=>4===e.length}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish()}var r=e.createNodeFactory;e.createNodeFactory=(e,n)=>{var i=r(e,n);return t(i),i},t(e.factory)})(p),(e=>{function t(t){var r=t.createImportTypeNode,n=t.updateImportTypeNode;t.createImportTypeNode=e.buildOverload("createImportTypeNode").overload({0:(e,t,n,i,a)=>r(e,t,n,i,a),1:(e,t,n,i)=>r(e,void 0,t,n,i)}).bind({0(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.isImportTypeAssertionContainer(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||"boolean"==typeof a)},1(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.isEntityName(r))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish(),t.updateImportTypeNode=e.buildOverload("updateImportTypeNode").overload({0:(e,t,r,i,a,o)=>n(e,t,r,i,a,o),1:(e,t,r,i,a)=>n(e,t,e.assertions,r,i,a)}).bind({0(t){var r=t[2],n=t[3],i=t[4],a=t[5];return(void 0===r||e.isImportTypeAssertionContainer(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||"boolean"==typeof a)},1(t){var r=t[2],n=t[3],i=t[4];return void 0===t[5]&&(void 0===r||e.isEntityName(r))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish()}var r=e.createNodeFactory;e.createNodeFactory=(e,n)=>{var i=r(e,n);return t(i),i},t(e.factory)})(p),(e=>{function t(t){var r=t.createTypeParameterDeclaration,n=t.updateTypeParameterDeclaration;t.createTypeParameterDeclaration=e.buildOverload("createTypeParameterDeclaration").overload({0:(e,t,n,i)=>r(e,t,n,i),1:(e,t,n)=>r(void 0,e,t,n)}).bind({0(t){var r=t[0];return void 0===r||e.isArray(r)},1(t){var r=t[0];return void 0!==r&&!e.isArray(r)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish(),t.updateTypeParameterDeclaration=e.buildOverload("updateTypeParameterDeclaration").overload({0:(e,t,r,i,a)=>n(e,t,r,i,a),1:(e,t,r,i)=>n(e,e.modifiers,t,r,i)}).bind({0(t){var r=t[1];return void 0===r||e.isArray(r)},1(t){var r=t[1];return void 0!==r&&!e.isArray(r)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish()}var r=e.createNodeFactory;e.createNodeFactory=(e,n)=>{var i=r(e,n);return t(i),i},t(e.factory)})(p),(e=>{var t={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators have been combined with modifiers. Callers should switch to an overload that does not accept a 'decorators' parameter."},r={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter."},n={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators and modifiers are no longer supported for this function. Callers should switch to an overload that does not accept the 'decorators' and 'modifiers' parameters."};function i(i){var a=i.createParameterDeclaration,o=i.updateParameterDeclaration,s=i.createPropertyDeclaration,c=i.updatePropertyDeclaration,l=i.createMethodDeclaration,d=i.updateMethodDeclaration,u=i.createConstructorDeclaration,p=i.updateConstructorDeclaration,_=i.createGetAccessorDeclaration,f=i.updateGetAccessorDeclaration,m=i.createSetAccessorDeclaration,g=i.updateSetAccessorDeclaration,h=i.createIndexSignature,y=i.updateIndexSignature,v=i.createClassStaticBlockDeclaration,b=i.updateClassStaticBlockDeclaration,E=i.createClassExpression,x=i.updateClassExpression,D=i.createFunctionDeclaration,S=i.updateFunctionDeclaration,T=i.createClassDeclaration,C=i.updateClassDeclaration,A=i.createInterfaceDeclaration,k=i.updateInterfaceDeclaration,N=i.createTypeAliasDeclaration,w=i.updateTypeAliasDeclaration,F=i.createEnumDeclaration,P=i.updateEnumDeclaration,I=i.createModuleDeclaration,O=i.updateModuleDeclaration,M=i.createImportEqualsDeclaration,R=i.updateImportEqualsDeclaration,L=i.createImportDeclaration,B=i.updateImportDeclaration,U=i.createExportAssignment,j=i.updateExportAssignment,V=i.createExportDeclaration,z=i.updateExportDeclaration;i.createParameterDeclaration=e.buildOverload("createParameterDeclaration").overload({0:(e,t,r,n,i,o)=>a(e,t,r,n,i,o),1:(t,r,n,i,o,s,c)=>a(e.concatenate(t,r),n,i,o,s,c)}).bind({0(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isBindingName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isDotDotDotToken(n))&&(void 0===i||"string"==typeof i||e.isBindingName(i))&&(void 0===a||e.isQuestionToken(a))&&(void 0===o||e.isTypeNode(o))&&(void 0===s||e.isExpression(s))}}).deprecate({1:t}).finish(),i.updateParameterDeclaration=e.buildOverload("updateParameterDeclaration").overload({0:(e,t,r,n,i,a,s)=>o(e,t,r,n,i,a,s),1:(t,r,n,i,a,s,c,l)=>o(t,e.concatenate(r,n),i,a,s,c,l)}).bind({0(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return void 0===t[7]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isBindingName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))},1(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isDotDotDotToken(n))&&(void 0===i||"string"==typeof i||e.isBindingName(i))&&(void 0===a||e.isQuestionToken(a))&&(void 0===o||e.isTypeNode(o))&&(void 0===s||e.isExpression(s))}}).deprecate({1:t}).finish(),i.createPropertyDeclaration=e.buildOverload("createPropertyDeclaration").overload({0:(e,t,r,n,i)=>s(e,t,r,n,i),1:(t,r,n,i,a,o)=>s(e.concatenate(t,r),n,i,a,o)}).bind({0(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isQuestionOrExclamationToken(n))&&(void 0===i||e.isTypeNode(i))&&(void 0===a||e.isExpression(a))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||e.isQuestionOrExclamationToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))}}).deprecate({1:t}).finish(),i.updatePropertyDeclaration=e.buildOverload("updatePropertyDeclaration").overload({0:(e,t,r,n,i,a)=>c(e,t,r,n,i,a),1:(t,r,n,i,a,o,s)=>c(t,e.concatenate(r,n),i,a,o,s)}).bind({0(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isQuestionOrExclamationToken(n))&&(void 0===i||e.isTypeNode(i))&&(void 0===a||e.isExpression(a))},1(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||e.isQuestionOrExclamationToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))}}).deprecate({1:t}).finish(),i.createMethodDeclaration=e.buildOverload("createMethodDeclaration").overload({0:(e,t,r,n,i,a,o,s)=>l(e,t,r,n,i,a,o,s),1:(t,r,n,i,a,o,s,c,d)=>l(e.concatenate(t,r),n,i,a,o,s,c,d)}).bind({0(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7];return void 0===t[8]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isArray(a))&&(void 0===o||!e.some(o,e.isTypeParameterDeclaration))&&(void 0===s||!e.isArray(s))&&(void 0===c||e.isBlock(c))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isAsteriskToken(n))&&(void 0===i||"string"==typeof i||e.isPropertyName(i))&&(void 0===a||!e.isArray(a))&&(void 0===o||!e.some(o,e.isParameter))&&(void 0===s||e.isArray(s))&&(void 0===c||e.isTypeNode(c))&&(void 0===l||e.isBlock(l))}}).deprecate({1:t}).finish(),i.updateMethodDeclaration=e.buildOverload("updateMethodDeclaration").overload({0:(e,t,r,n,i,a,o,s,c)=>d(e,t,r,n,i,a,o,s,c),1:(t,r,n,i,a,o,s,c,l,u)=>d(t,e.concatenate(r,n),i,a,o,s,c,l,u)}).bind({0(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8];return void 0===t[9]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isArray(a))&&(void 0===o||!e.some(o,e.isTypeParameterDeclaration))&&(void 0===s||!e.isArray(s))&&(void 0===c||e.isBlock(c))},1(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8],l=t[9];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isAsteriskToken(n))&&(void 0===i||"string"==typeof i||e.isPropertyName(i))&&(void 0===a||!e.isArray(a))&&(void 0===o||!e.some(o,e.isParameter))&&(void 0===s||e.isArray(s))&&(void 0===c||e.isTypeNode(c))&&(void 0===l||e.isBlock(l))}}).deprecate({1:t}).finish(),i.createConstructorDeclaration=e.buildOverload("createConstructorDeclaration").overload({0:(e,t,r)=>u(e,t,r),1:(e,t,r,n)=>u(t,r,n)}).bind({0(t){var r=t[0],n=t[1],i=t[2];return!(void 0!==t[3]||void 0!==r&&e.some(r,e.isDecorator)||void 0!==n&&e.some(n,e.isModifier)||void 0!==i&&e.isArray(i))},1(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||!e.some(r,e.isModifier))&&(void 0===n||!e.some(n,e.isParameter))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:r}).finish(),i.updateConstructorDeclaration=e.buildOverload("updateConstructorDeclaration").overload({0:(e,t,r,n)=>p(e,t,r,n),1:(e,t,r,n,i)=>p(e,r,n,i)}).bind({0(t){var r=t[1],n=t[2],i=t[3];return!(void 0!==t[4]||void 0!==r&&e.some(r,e.isDecorator)||void 0!==n&&e.some(n,e.isModifier)||void 0!==i&&e.isArray(i))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||!e.some(r,e.isModifier))&&(void 0===n||!e.some(n,e.isParameter))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:r}).finish(),i.createGetAccessorDeclaration=e.buildOverload("createGetAccessorDeclaration").overload({0:(e,t,r,n,i)=>_(e,t,r,n,i),1:(t,r,n,i,a,o)=>_(e.concatenate(t,r),n,i,a,o)}).bind({0(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isBlock(a))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isBlock(o))}}).deprecate({1:t}).finish(),i.updateGetAccessorDeclaration=e.buildOverload("updateGetAccessorDeclaration").overload({0:(e,t,r,n,i,a)=>f(e,t,r,n,i,a),1:(t,r,n,i,a,o,s)=>f(t,e.concatenate(r,n),i,a,o,s)}).bind({0(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isBlock(a))},1(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isBlock(o))}}).deprecate({1:t}).finish(),i.createSetAccessorDeclaration=e.buildOverload("createSetAccessorDeclaration").overload({0:(e,t,r,n)=>m(e,t,r,n),1:(t,r,n,i,a)=>m(e.concatenate(t,r),n,i,a)}).bind({0(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:t}).finish(),i.updateSetAccessorDeclaration=e.buildOverload("updateSetAccessorDeclaration").overload({0:(e,t,r,n,i)=>g(e,t,r,n,i),1:(t,r,n,i,a,o)=>g(t,e.concatenate(r,n),i,a,o)}).bind({0(t){var r=t[2],n=t[3],i=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))},1(t){var r=t[2],n=t[3],i=t[4],a=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:t}).finish(),i.createIndexSignature=e.buildOverload("createIndexSignature").overload({0:(e,t,r)=>h(e,t,r),1:(e,t,r,n)=>h(t,r,n)}).bind({0(t){var r=t[0],n=t[1],i=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||e.every(n,e.isParameter))&&(void 0===i||!e.isArray(i))},1(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.every(n,e.isModifier))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))}}).deprecate({1:r}).finish(),i.updateIndexSignature=e.buildOverload("updateIndexSignature").overload({0:(e,t,r,n)=>y(e,t,r,n),1:(e,t,r,n,i)=>y(e,r,n,i)}).bind({0(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||e.every(n,e.isParameter))&&(void 0===i||!e.isArray(i))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.every(n,e.isModifier))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))}}).deprecate({1:r}).finish(),i.createClassStaticBlockDeclaration=e.buildOverload("createClassStaticBlockDeclaration").overload({0:e=>v(e),1:(e,t,r)=>v(r)}).bind({0(t){var r=t[0],n=t[1],i=t[2];return void 0===n&&void 0===i&&(void 0===r||!e.isArray(r))},1(t){var r=t[0],n=t[1],i=t[2];return(void 0===r||e.isArray(r))&&(void 0===n||e.isArray(r))&&(void 0===i||e.isBlock(i))}}).deprecate({1:n}).finish(),i.updateClassStaticBlockDeclaration=e.buildOverload("updateClassStaticBlockDeclaration").overload({0:(e,t)=>b(e,t),1:(e,t,r,n)=>b(e,n)}).bind({0(t){var r=t[1],n=t[2],i=t[3];return void 0===n&&void 0===i&&(void 0===r||!e.isArray(r))},1(t){var r=t[1],n=t[2],i=t[3];return(void 0===r||e.isArray(r))&&(void 0===n||e.isArray(r))&&(void 0===i||e.isBlock(i))}}).deprecate({1:n}).finish(),i.createClassExpression=e.buildOverload("createClassExpression").overload({0:(e,t,r,n,i)=>E(e,t,r,n,i),1:(t,r,n,i,a,o)=>E(e.concatenate(t,r),n,i,a,o)}).bind({0(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:r}).finish(),i.updateClassExpression=e.buildOverload("updateClassExpression").overload({0:(e,t,r,n,i,a)=>x(e,t,r,n,i,a),1:(t,r,n,i,a,o,s)=>x(t,e.concatenate(r,n),i,a,o,s)}).bind({0(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:r}).finish(),i.createFunctionDeclaration=e.buildOverload("createFunctionDeclaration").overload({0:(e,t,r,n,i,a,o)=>D(e,t,r,n,i,a,o),1:(e,t,r,n,i,a,o,s)=>D(t,r,n,i,a,o,s)}).bind({0(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return void 0===t[7]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isIdentifier(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isParameter))&&(void 0===o||!e.isArray(o))&&(void 0===s||e.isBlock(s))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7];return(void 0===r||e.isArray(r))&&(void 0===n||"string"!=typeof n&&e.isAsteriskToken(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.isArray(o))&&(void 0===s||e.isTypeNode(s))&&(void 0===c||e.isBlock(c))}}).deprecate({1:r}).finish(),i.updateFunctionDeclaration=e.buildOverload("updateFunctionDeclaration").overload({0:(e,t,r,n,i,a,o,s)=>S(e,t,r,n,i,a,o,s),1:(e,t,r,n,i,a,o,s,c)=>S(e,r,n,i,a,o,s,c)}).bind({0(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7];return void 0===t[8]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isIdentifier(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isParameter))&&(void 0===o||!e.isArray(o))&&(void 0===s||e.isBlock(s))},1(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8];return(void 0===r||e.isArray(r))&&(void 0===n||"string"!=typeof n&&e.isAsteriskToken(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.isArray(o))&&(void 0===s||e.isTypeNode(s))&&(void 0===c||e.isBlock(c))}}).deprecate({1:r}).finish(),i.createClassDeclaration=e.buildOverload("createClassDeclaration").overload({0:(e,t,r,n,i)=>T(e,t,r,n,i),1:(t,r,n,i,a,o)=>T(e.concatenate(t,r),n,i,a,o)}).bind({0(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:()=>!0}).deprecate({1:t}).finish(),i.updateClassDeclaration=e.buildOverload("updateClassDeclaration").overload({0:(e,t,r,n,i,a)=>C(e,t,r,n,i,a),1:(t,r,n,i,a,o,s)=>C(t,e.concatenate(r,n),i,a,o,s)}).bind({0(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:t}).finish(),i.createInterfaceDeclaration=e.buildOverload("createInterfaceDeclaration").overload({0:(e,t,r,n,i)=>A(e,t,r,n,i),1:(e,t,r,n,i,a)=>A(t,r,n,i,a)}).bind({0(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.every(o,e.isTypeElement))},1(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.every(o,e.isHeritageClause))&&(void 0===s||e.every(s,e.isTypeElement))}}).deprecate({1:r}).finish(),i.updateInterfaceDeclaration=e.buildOverload("updateInterfaceDeclaration").overload({0:(e,t,r,n,i,a)=>k(e,t,r,n,i,a),1:(e,t,r,n,i,a,o)=>k(e,r,n,i,a,o)}).bind({0(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.every(o,e.isTypeElement))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.every(o,e.isHeritageClause))&&(void 0===s||e.every(s,e.isTypeElement))}}).deprecate({1:r}).finish(),i.createTypeAliasDeclaration=e.buildOverload("createTypeAliasDeclaration").overload({0:(e,t,r,n)=>N(e,t,r,n),1:(e,t,r,n,i)=>N(t,r,n,i)}).bind({0(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||!e.isArray(a))},1(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))&&(void 0===o||e.isTypeNode(o))}}).deprecate({1:r}).finish(),i.updateTypeAliasDeclaration=e.buildOverload("updateTypeAliasDeclaration").overload({0:(e,t,r,n,i)=>w(e,t,r,n,i),1:(e,t,r,n,i,a)=>w(e,r,n,i,a)}).bind({0(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||!e.isArray(a))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))&&(void 0===o||e.isTypeNode(o))}}).deprecate({1:r}).finish(),i.createEnumDeclaration=e.buildOverload("createEnumDeclaration").overload({0:(e,t,r)=>F(e,t,r),1:(e,t,r,n)=>F(t,r,n)}).bind({0(t){var r=t[0],n=t[1],i=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))},1(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))}}).deprecate({1:r}).finish(),i.updateEnumDeclaration=e.buildOverload("updateEnumDeclaration").overload({0:(e,t,r,n)=>P(e,t,r,n),1:(e,t,r,n,i)=>P(e,r,n,i)}).bind({0(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))}}).deprecate({1:r}).finish(),i.createModuleDeclaration=e.buildOverload("createModuleDeclaration").overload({0:(e,t,r,n)=>I(e,t,r,n),1:(e,t,r,n,i)=>I(t,r,n,i)}).bind({0(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&void 0!==n&&!e.isArray(n)&&(void 0===i||e.isModuleBody(i))&&(void 0===a||"number"==typeof a)},1(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&void 0!==i&&e.isModuleName(i)&&(void 0===a||"object"==typeof a)&&(void 0===o||"number"==typeof o)}}).deprecate({1:r}).finish(),i.updateModuleDeclaration=e.buildOverload("updateModuleDeclaration").overload({0:(e,t,r,n)=>O(e,t,r,n),1:(e,t,r,n,i)=>O(e,r,n,i)}).bind({0(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isModuleBody(i))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&void 0!==i&&e.isModuleName(i)&&(void 0===a||e.isModuleBody(a))}}).deprecate({1:r}).finish(),i.createImportEqualsDeclaration=e.buildOverload("createImportEqualsDeclaration").overload({0:(e,t,r,n)=>M(e,t,r,n),1:(e,t,r,n,i)=>M(t,r,n,i)}).bind({0(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||"boolean"==typeof n)&&"boolean"!=typeof i&&"string"!=typeof a},1(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)&&("string"==typeof a||e.isIdentifier(a))&&void 0!==o&&e.isModuleReference(o)}}).deprecate({1:r}).finish(),i.updateImportEqualsDeclaration=e.buildOverload("updateImportEqualsDeclaration").overload({0:(e,t,r,n,i)=>R(e,t,r,n,i),1:(e,t,r,n,i,a)=>R(e,r,n,i,a)}).bind({0(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||"boolean"==typeof n)&&"boolean"!=typeof i&&"string"!=typeof a},1(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)&&("string"==typeof a||e.isIdentifier(a))&&void 0!==o&&e.isModuleReference(o)}}).deprecate({1:r}).finish(),i.createImportDeclaration=e.buildOverload("createImportDeclaration").overload({0:(e,t,r,n)=>L(e,t,r,n),1:(e,t,r,n,i)=>L(t,r,n,i)}).bind({0(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&void 0!==i&&e.isExpression(i)&&(void 0===a||e.isAssertClause(a))},1(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||e.isImportClause(i))&&void 0!==a&&e.isExpression(a)&&(void 0===o||e.isAssertClause(o))}}).deprecate({1:r}).finish(),i.updateImportDeclaration=e.buildOverload("updateImportDeclaration").overload({0:(e,t,r,n,i)=>B(e,t,r,n,i),1:(e,t,r,n,i,a)=>B(e,r,n,i,a)}).bind({0(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isExpression(i))&&(void 0===a||e.isAssertClause(a))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||e.isImportClause(i))&&void 0!==a&&e.isExpression(a)&&(void 0===o||e.isAssertClause(o))}}).deprecate({1:r}).finish(),i.createExportAssignment=e.buildOverload("createExportAssignment").overload({0:(e,t,r)=>U(e,t,r),1:(e,t,r,n)=>U(t,r,n)}).bind({0(t){var r=t[0],n=t[1],i=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||"boolean"==typeof n)&&"object"==typeof i},1(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)&&void 0!==a&&e.isExpression(a)}}).deprecate({1:r}).finish(),i.updateExportAssignment=e.buildOverload("updateExportAssignment").overload({0:(e,t,r)=>j(e,t,r),1:(e,t,r,n)=>j(e,r,n)}).bind({0(t){var r=t[1],n=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&void 0!==n&&!e.isArray(n)},1(t){var r=t[1],n=t[2],i=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&void 0!==i&&e.isExpression(i)}}).deprecate({1:r}).finish(),i.createExportDeclaration=e.buildOverload("createExportDeclaration").overload({0:(e,t,r,n,i)=>V(e,t,r,n,i),1:(e,t,r,n,i,a)=>V(t,r,n,i,a)}).bind({0(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&"boolean"==typeof n&&"boolean"!=typeof i&&(void 0===a||e.isExpression(a))&&(void 0===o||e.isAssertClause(o))},1(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&"boolean"==typeof i&&(void 0===a||e.isNamedExportBindings(a))&&(void 0===o||e.isExpression(o))&&(void 0===s||e.isAssertClause(s))}}).deprecate({1:r}).finish(),i.updateExportDeclaration=e.buildOverload("updateExportDeclaration").overload({0:(e,t,r,n,i,a)=>z(e,t,r,n,i,a),1:(e,t,r,n,i,a,o)=>z(e,r,n,i,a,o)}).bind({0(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===r||e.every(r,e.isModifier))&&"boolean"==typeof n&&"boolean"!=typeof i&&(void 0===a||e.isExpression(a))&&(void 0===o||e.isAssertClause(o))},1(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&"boolean"==typeof i&&(void 0===a||e.isNamedExportBindings(a))&&(void 0===o||e.isExpression(o))&&(void 0===s||e.isAssertClause(s))}}).deprecate({1:r}).finish()}var a=e.createNodeFactory;e.createNodeFactory=(e,t)=>{var r=a(e,t);return i(r),r},i(e.factory)})(p),(e=>{"undefined"!=typeof console&&(e.Debug.loggingHost={log(t,r){switch(t){case e.LogLevel.Error:return console.error(r);case e.LogLevel.Warning:return console.warn(r);case e.LogLevel.Info:case e.LogLevel.Verbose:return console.log(r)}}})})(p);const E="$",x="collection-manifest.json",D=(e,t)=>{let r=0;"shadow"===e.encapsulation?(r|=1,e.shadowDelegatesFocus&&(r|=16)):"scoped"===e.encapsulation&&(r|=2),"shadow"!==e.encapsulation&&e.htmlTagNames.includes("slot")&&(r|=4),e.hasMode&&(r|=32);const n=T(e,t),i=P(e);return O([r,e.tagName,Object.keys(n).length>0?n:void 0,i.length>0?i:void 0])},S=e=>{const t=JSON.stringify(e);return t.length>1e4?`JSON.parse(${JSON.stringify(t)})`:t},T=(e,t=!0)=>({...C(e.properties),...w(e.states),...t?F(e.methods):{}}),C=e=>{const t={};return e.forEach((e=>{t[e.name]=O([A(e),k(e)])})),t},A=e=>{let t=N(e.type);return e.mutable&&(t|=1024),e.reflect&&(t|=512),t},k=e=>{if("string"==typeof e.attribute){if(e.name===e.attribute)return;return e.attribute}},N=e=>"string"===e?1:"number"===e?2:"boolean"===e?4:"any"===e?8:16,w=e=>{const t={};return e.forEach((e=>{t[e.name]=[32]})),t},F=e=>{const t={};return e.forEach((e=>{t[e.name]=[64]})),t},P=e=>e.listeners.map((e=>[I(e),e.name,e.method])),I=e=>{let t=0;switch(e.capture&&(t|=2),e.passive&&(t|=1),e.target){case"document":t|=4;break;case"window":t|=8;break;case"body":t|=16;break;case"parent":t|=32}return t},O=e=>{const t=e;for(let e=t.length-1;e>=0&&!t[e];e--)t.pop();return t},M=e=>e.replace(/([A-Z0-9])/g,(e=>` ${e[0]}`)).trim().split(" ").join("-").toLowerCase(),R=e=>e.toLowerCase().split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(""),L=e=>e.charAt(0).toUpperCase()+e.slice(1),B=()=>{},U=(e,t)=>e.slice().sort(((e,r)=>{const n=t(e),i=t(r);return n<i?-1:n>i?1:0})),j=e=>e.flat?e.flat(1):e.reduce(((e,t)=>(e.push(...t),e)),[]),V=(e,t=(e=>e))=>{const r=new Set;return e.filter((e=>{const n=t(e);return null==n||!r.has(n)&&(r.add(n),!0)}))},z=(e,t)=>t.reduce(((t,r)=>(e[r]&&(t[r]=e[r]),t)),{}),H=e=>"boolean"==typeof e,W=e=>"function"==typeof e,K=e=>"number"==typeof e,J=e=>null!=e&&"object"==typeof e&&!1===Array.isArray(e),G=e=>"string"==typeof e,$=e=>(e=>null!=e)(e)&&W(e[Symbol.iterator]),q=e=>!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then,X=e=>{const t={"{":"}","(":")","[":"]"},r=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(""===e)return!1;let n;for(;n=r.exec(e);){if(n[2])return!0;let r=n.index+n[0].length;const i=n[1],a=i?t[i]:null;if(i&&a){const t=e.indexOf(a,r);-1!==t&&(r=t+1)}e=e.slice(r)}return!1},Y=e=>"/"===e||Q.test(e),Q=/^(?:[a-zA-Z]:|[\\/]{2}[^\\/]+[\\/]+[^\\/]+)?[\\/]$/,Z=e=>{const t={level:"error",type:"build",header:"Build Error",messageText:"build error",relFilePath:null,absFilePath:null,lines:[]};return e&&e.push(t),t},ee=e=>{const t={level:"warn",type:"build",header:"Build Warn",messageText:"build warn",relFilePath:null,absFilePath:null,lines:[]};return e.push(t),t},te=(e,t,r,n,i)=>{const a=Z(t);if(a.messageText=n,a.absFilePath=r,"string"==typeof i)try{const t=e.fs.readFileSync(r).replace(/\r/g,"\n").split("\n");for(let e=0;e<t.length;e++){const r=t[e],n=r.indexOf(i);if(n>-1){const o={lineIndex:e,lineNumber:e+1,text:r,errorCharStart:n,errorLength:i.length};if(a.lineNumber=o.lineNumber,a.columnNumber=n+1,a.lines.push(o),e>=0){const r={lineIndex:o.lineIndex-1,lineNumber:o.lineNumber-1,text:t[e-1],errorCharStart:-1,errorLength:-1};a.lines.unshift(r)}if(e<t.length){const r={lineIndex:o.lineIndex+1,lineNumber:o.lineNumber+1,text:t[e+1],errorCharStart:-1,errorLength:-1};a.lines.push(r)}break}}}catch(e){}return a},re=(e,t,r)=>{const n={level:"error",type:"build",header:"Build Error",messageText:"build error",relFilePath:null,absFilePath:null,lines:[]};return G(r)?n.messageText=r.length?r:"UNKNOWN ERROR":null!=t&&(null!=t.stack?n.messageText=t.stack.toString():null!=t.message?n.messageText=t.message.length?t.message:"UNKNOWN ERROR":n.messageText=t.toString()),null==e||ie(n.messageText)||e.push(n),n},ne=e=>null!=e&&0!==e.length&&e.some((e=>"error"===e.level&&"runtime"!==e.type)),ie=e=>e===ae,ae="task canceled",oe=(e,t)=>{const r=[],n=[],i=new Set;for(let a=0;a<t.length;a++){const o=se(e,t[a]),s=o.absFilePath+o.code+o.messageText+o.type;if(i.has(s))continue;i.add(s);const c=r.length+n.length;"error"===o.level?r.push(o):c<25&&n.push(o)}return[...r,...n]},se=(e,t)=>{if(t.messageText&&("string"==typeof t.messageText.message?t.messageText=t.messageText.message:"string"==typeof t.messageText&&0===t.messageText.indexOf("Error: ")&&(t.messageText=t.messageText.slice(7))),t.messageText&&t.messageText.includes("Cannot find name 'h'")){t.header='Missing "h" import for JSX types',t.messageText='In order to load accurate JSX types for components, the "h" function must be imported from "@stencil/core" by each component using JSX. For example: import { Component, h } from \'@stencil/core\';';try{const r=e.fs.readFileSync(t.absFilePath),n=ce(r);for(let e=0;e<n.length;e++){const r=n[e];if(r.includes("@stencil/core")){const i=[],a=e-1;if(a>-1){const e={lineIndex:a,lineNumber:a+1,text:n[a],errorCharStart:-1,errorLength:-1};i.push(e)}const o={lineIndex:e,lineNumber:e+1,text:r,errorCharStart:0,errorLength:-1};i.push(o),t.lineNumber=o.lineNumber,t.columnNumber=r.indexOf("}");const s=e+1;if(s<n.length){const e={lineIndex:s,lineNumber:s+1,text:n[s],errorCharStart:-1,errorLength:-1};i.push(e)}t.lines=i;break}}}catch(e){}}return t},ce=e=>"string"!=typeof e?[]:(e=e.replace(/\\r/g,"\n")).split("\n"),le=e=>void 0===e?"undefined":null===e?"null":("string"!=typeof e&&(e=e.toString()),e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")),de=(e,t,r,n)=>{const i=fe(n.code),a={level:"error",type:"bundling",language:"javascript",code:n.code,header:"Rollup"+(i.length>0?": "+i:""),messageText:i,relFilePath:null,absFilePath:null,lines:[]};"debug"===e.logLevel&&n.stack?a.messageText=n.stack:n.message&&(a.messageText=n.message),n.plugin&&(a.messageText+=` (plugin: ${n.plugin}${n.hook?`, ${n.hook}`:""})`);const o=n.loc;if(null!=o){const e=o.file||n.id;if(G(e))try{const r=t.fs.readFileSync(e);if(r){a.absFilePath=e;try{const e=ce(r),t={lineIndex:o.line-1,lineNumber:o.line,text:e[o.line-1],errorCharStart:o.column,errorLength:0};a.lineNumber=t.lineNumber,a.columnNumber=t.errorCharStart;const n=t.text.slice(o.column);for(let e=0;e<n.length&&!_e.has(n.charAt(e));e++)t.errorLength++;if(a.lines.push(t),0===t.errorLength&&t.errorCharStart>0&&(t.errorLength=1,t.errorCharStart--),t.lineIndex>0){const r={lineIndex:t.lineIndex-1,lineNumber:t.lineNumber-1,text:e[t.lineIndex-1],errorCharStart:-1,errorLength:-1};a.lines.unshift(r)}if(t.lineIndex+1<e.length){const r={lineIndex:t.lineIndex+1,lineNumber:t.lineNumber+1,text:e[t.lineIndex+1],errorCharStart:-1,errorLength:-1};a.lines.push(r)}}catch(e){a.messageText+=`\nError parsing: ${a.absFilePath}, line: ${o.line}, column: ${o.column}`,a.debugText=r}}else"string"==typeof n.frame&&(a.messageText+="\n"+n.frame)}catch(e){}}r.diagnostics.push(a)},ue=(e,t)=>{const r=new Set;return n=>{if(null==n||pe.has(n.code)||r.has(n.message))return;r.add(n.message);let i="";t&&(i=t.reduce(((e,t)=>(e.push(...t.cmps),e)),[]).join(", ").trim(),i.length&&(i+=": "));const a=ee(e);a.header=`Bundling Warning ${n.code}`,a.messageText=i+(n.message||n)}},pe=new Set(["THIS_IS_UNDEFINED","NON_EXISTENT_EXPORT","CIRCULAR_DEPENDENCY","EMPTY_BUNDLE","UNUSED_EXTERNAL_IMPORT"]),_e=new Set([" ","=",".",",","?",":",";","(",")","{","}","[","]","|","'",'"',"`"]),fe=e=>"string"==typeof e?e.split("_").map((e=>L(e.toLowerCase()))).join(" "):(e||"").trim(),me=e=>{if("string"!=typeof e)throw new Error("invalid path to normalize");e=ge(e.trim());const t=De(e,ve(e)),r=ye(t),n=r[0],i=r[1],a=n+r.slice(1).join("/");return""===a?".":""===n&&i&&e.includes("/")&&!i.startsWith(".")&&!i.startsWith("@")?"./"+a:a},ge=e=>e.replace(he,"/"),he=/\\/g,ye=e=>{if(!Array.isArray(e)||0===e.length)return[];const t=[e[0]];for(let r=1;r<e.length;r++){const n=e[r];if(n&&"."!==n){if(".."===n)if(t.length>1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(n)}}return t},ve=e=>{const t=be(e);return t<0?~t:t},be=e=>{if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const r=e.indexOf(47===t?"/":"\\",2);return r<0?e.length:r+1}if(Ee(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const r=e.indexOf("://");if(-1!==r){const t=r+"://".length,n=e.indexOf("/",t);if(-1!==n){const i=e.slice(0,r),a=e.slice(t,n);if("file"===i&&(""===a||"localhost"===a)&&Ee(e.charCodeAt(n+1))){const t=xe(e,n+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(n+1)}return~e.length}return 0},Ee=e=>e>=97&&e<=122||e>=65&&e<=90,xe=(e,t)=>{const r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){const r=e.charCodeAt(t+2);if(97===r||65===r)return t+3}return-1},De=(e,t)=>{const r=e.substring(0,t),n=e.substring(t).split("/"),i=n.length;return i>0&&!n[i-1]&&n.pop(),[r,...n]},Se=e=>me(e.split("?")[0].replace(/\0/g,"")),Te=(e,t)=>{if(!t)return e;const r=t.getSourceFile();if(!r)return e;e.absFilePath=me(r.fileName);const n=r.text,i=ce(n),a=t.getStart(),o=t.getEnd(),s=r.getLineAndCharacterOfPosition(a),c={lineIndex:s.line,lineNumber:s.line+1,text:i[s.line],errorCharStart:s.character,errorLength:Math.max(o-a,1)};if(e.lineNumber=c.lineNumber,e.columnNumber=c.errorCharStart+1,e.lines.push(c),0===c.errorLength&&c.errorCharStart>0&&(c.errorLength=1,c.errorCharStart--),c.lineIndex>0){const t={lineIndex:c.lineIndex-1,lineNumber:c.lineNumber-1,text:i[c.lineIndex-1],errorCharStart:-1,errorLength:-1};e.lines.unshift(t)}if(c.lineIndex+1<i.length){const t={lineIndex:c.lineIndex+1,lineNumber:c.lineNumber+1,text:i[c.lineIndex+1],errorCharStart:-1,errorLength:-1};e.lines.push(t)}return e},Ce=e=>{const t=[],r=Math.min(e.length,50);for(let n=0;n<r;n++)t.push(Ae(e[n]));return t},Ae=e=>{const t={level:"warn",type:"typescript",language:"typescript",header:"TypeScript",code:e.code.toString(),messageText:ke(e,e.messageText),relFilePath:null,absFilePath:null,lines:[]};if(1===e.category&&(t.level="error"),e.file){t.absFilePath=e.file.fileName;const r=e.file.text,n=ce(r),i=e.file.getLineAndCharacterOfPosition(e.start),a={lineIndex:i.line,lineNumber:i.line+1,text:n[i.line],errorCharStart:i.character,errorLength:Math.max(e.length,1)};if(t.lineNumber=a.lineNumber,t.columnNumber=a.errorCharStart+1,t.lines.push(a),0===a.errorLength&&a.errorCharStart>0&&(a.errorLength=1,a.errorCharStart--),a.lineIndex>0){const e={lineIndex:a.lineIndex-1,lineNumber:a.lineNumber-1,text:n[a.lineIndex-1],errorCharStart:-1,errorLength:-1};t.lines.unshift(e)}if(a.lineIndex+1<n.length){const e={lineIndex:a.lineIndex+1,lineNumber:a.lineNumber+1,text:n[a.lineIndex+1],errorCharStart:-1,errorLength:-1};t.lines.push(e)}}return t},ke=(e,t)=>{var r,n;if("string"==typeof t)return t;if(void 0===t)return"";const i=[],a=(null!==(n=null===(r=e.file)||void 0===r?void 0:r.fileName)&&void 0!==n?n:"").includes("stencil.config");a&&i.push(2322);let o="";if(!i.includes(t.code)&&(o=t.messageText,$(t.next)))for(const r of t.next)o+=ke(e,r);return a&&(o=o.replace("type 'StencilConfig'","Stencil Config"),o=o.replace("Object literal may only specify known properties, but ",""),o=o.replace("Object literal may only specify known properties, and ","")),o.trim()},Ne=e=>e?{file:e.file,mappings:e.mappings,names:e.names,sources:e.sources,sourcesContent:e.sourcesContent,version:e.version}:null,we=e=>`\n${(e=>{return`//# sourceMappingURL=${t=e,encodeURIComponent(t).replace(/[!'()*]/g,(e=>"%"+e.charCodeAt(0).toString(16)))}`;var t})(e)}.map`,Fe=e=>!!G(e)&&((e=e.toLowerCase()).startsWith("https://")||e.startsWith("http://")),Pe=e=>(G(e)&&(e=(e=(e=(e=e.split("?")[0]).split("#")[0]).split("&")[0]).split("=")[0],e=(e=M(e)).replace(/[|;$%@"<>()+,.{}_\!\/\\]/g,"-"),(e=(e=R(e)).length>1?e[0].toLowerCase()+e.slice(1):e.toLowerCase()).length>0&&!isNaN(e[0])&&(e="_"+e)),e),Ie=e=>{const{preamble:t}=e;if(!t)return"";const r=t.split("\n").map((e=>` * ${e}`));return r.unshift("/*!"),r.push(" */"),r.join("\n")},Oe=/\r?\n|\r/g;function Me(e){return null==e?"":`${e.text.replace(Oe," ")}\n${e.tags.filter((e=>"internal"!==e.name)).map((e=>`@${e.name} ${(e.text||"").replace(Oe," ")}`)).join("\n")}`.trim()}const Re=(e,t)=>{const r={diagnostic:null,data:null,filePath:t};try{r.data=JSON.parse(e)}catch(e){r.diagnostic=Z(),r.diagnostic.absFilePath=G(t)?t:void 0,r.diagnostic.header="Error Parsing JSON",e instanceof Error&&(r.diagnostic.messageText=e.message)}return r},Le=["@stencil/core"],Be=e=>{if("string"!=typeof e)return`Tag "${e}" must be a string type`;if(e!==e.trim())return"Tag can not contain white spaces";if(e!==e.toLowerCase())return"Tag can not contain upper case characters";if(0===e.length)return"Received empty tag value";if(e.indexOf(" ")>-1)return`"${e}" tag cannot contain a space`;if(e.indexOf(",")>-1)return`"${e}" tag cannot be used for multiple tags`;const t=e.replace(/\w|-/g,"");return""!==t?`"${e}" tag contains invalid characters: ${t}`:-1===e.indexOf("-")?`"${e}" tag must contain a dash (-) to work as a valid web component`:e.indexOf("--")>-1?`"${e}" tag cannot contain multiple dashes (--) next to each other`:0===e.indexOf("-")?`"${e}" tag cannot start with a dash (-)`:e.lastIndexOf("-")===e.length-1?`"${e}" tag cannot end with a dash (-)`:void 0};function Ue(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function je(e,t){for(var r,n="",i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(a===s-1||1===o);else if(a!==s-1&&2===o){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),a=s,o=0;continue}}else if(2===n.length||1===n.length){n="",i=0,a=s,o=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===r&&-1!==o?++o:o=-1}return n}var Ve={resolve(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var a;i>=0?a=arguments[i]:(void 0===e&&(e=r.cwd()),a=e),Ue(a),0!==a.length&&(t=a+"/"+t,n=47===a.charCodeAt(0))}return t=je(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(Ue(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=je(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(Ue(e),e.length>0&&47===e.charCodeAt(0)),join(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];Ue(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":Ve.normalize(e)},relative(e,t){if(Ue(e),Ue(t),e===t)return"";if((e=Ve.resolve(e))===(t=Ve.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var n=e.length,i=n-r,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var o=t.length-a,s=i<o?i:o,c=-1,l=0;l<=s;++l){if(l===s){if(o>s){if(47===t.charCodeAt(a+l))return t.slice(a+l+1);if(0===l)return t.slice(a+l)}else i>s&&(47===e.charCodeAt(r+l)?c=l:0===l&&(c=0));break}var d=e.charCodeAt(r+l);if(d!==t.charCodeAt(a+l))break;47===d&&(c=l)}var u="";for(l=r+c+1;l<=n;++l)l!==n&&47!==e.charCodeAt(l)||(0===u.length?u+="..":u+="/..");return u.length>0?u+t.slice(a+c):(a+=c,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:e=>e,dirname(e){if(Ue(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){n=a;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Ue(e);var r,n=0,i=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var o=t.length-1,s=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){n=r+1;break}}else-1===s&&(a=!1,s=r+1),o>=0&&(c===t.charCodeAt(o)?-1==--o&&(i=r):(o=-1,i=s))}return n===i?i=s:-1===i&&(i=e.length),e.slice(n,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break}}else-1===i&&(a=!1,i=r+1);return-1===i?"":e.slice(n,i)},extname(e){Ue(e);for(var t=-1,r=0,n=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===n&&(i=!1,n=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){r=o+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)},format(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return((e,t)=>{var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n})(0,e)},parse(e){Ue(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),i=47===n;i?(t.root="/",r=1):r=0;for(var a=-1,o=0,s=-1,c=!0,l=e.length-1,d=0;l>=r;--l)if(47!==(n=e.charCodeAt(l)))-1===s&&(c=!1,s=l+1),46===n?-1===a?a=l:1!==d&&(d=1):-1!==a&&(d=-1);else if(!c){o=l+1;break}return-1===a||-1===s||0===d||1===d&&a===s-1&&a===o+1?-1!==s&&(t.base=t.name=0===o&&i?e.slice(1,s):e.slice(o,s)):(0===o&&i?(t.name=e.slice(1,a),t.base=e.slice(1,s)):(t.name=e.slice(o,a),t.base=e.slice(o,s)),t.ext=e.slice(a,s)),o>0?t.dir=e.slice(0,o-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ve.posix=Ve;var ze=Ve;let He,We,Ke,Je,Ge,$e,qe,Xe,Ye,Qe,Ze,et,tt;const rt={},nt=e=>{e||(e=ze),Object.assign(rt,e);const t=rt.normalize,r=rt.join,n=rt.relative,i=rt.resolve;$e=rt.normalize=(...e)=>me(t.apply(rt,e)),Ge=rt.join=(...e)=>me(r.apply(rt,e)),Xe=rt.relative=(...e)=>me(n.apply(rt,e)),Ye=rt.resolve=(...e)=>me(i.apply(rt,e)),He=rt.basename,We=rt.dirname,Ke=rt.extname,Je=rt.isAbsolute,qe=rt.parse,Qe=rt.sep,Ze=rt.delimiter,et=rt.posix,rt.win32?tt=rt.win32:(tt={...et},tt.sep="\\")};nt(i?d("path"):ze);const it={__proto__:null,get basename(){return He},get dirname(){return We},get extname(){return Ke},get isAbsolute(){return Je},get join(){return Ge},get normalize(){return $e},get parse(){return qe},get relative(){return Xe},get resolve(){return Ye},get sep(){return Qe},get delimiter(){return Ze},get posix(){return et},get win32(){return tt},path:rt,setPlatformPath:nt,default:rt};function at(e,t,r){return e(r={path:t,exports:{},require:(e,t)=>(()=>{throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")})()},r.exports),r.exports}function ot(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((r=>{var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})})),t}var st=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).process;const ct=Object.assign(Object.create(null),st,{default:st}),lt="4.8.4",dt="2.20.0",ut={stencil:dt,parse5:"7.1.2",rollup:"2.42.3",sizzle:"2.42.3",terser:"5.6.1",typescript:lt},pt=()=>{const e=[],t=t=>{const r=e.findIndex((e=>e.callback===t));return r>-1&&(e.splice(r,1),!0)};return{emit(t,r){const n=t.toLowerCase().trim(),i=e.slice();for(const e of i)if(null==e.eventName)try{e.callback(t,r)}catch(e){console.error(e)}else if(e.eventName===n)try{e.callback(r)}catch(e){console.error(e)}},on(r,n){if("function"==typeof r){const n=null,i=r;return e.push({eventName:n,callback:i}),()=>t(i)}if("string"==typeof r&&"function"==typeof n){const i=r.toLowerCase().trim(),a=n;return e.push({eventName:i,callback:a}),()=>t(a)}return()=>!1},unsubscribeAll(){e.length=0}}},_t=()=>{let e=o,t="info";return{enableColors:t=>e=t,getLevel:()=>t,setLevel:e=>t=e,emoji:e=>e,info:console.log.bind(console),warn:console.warn.bind(console),error:console.error.bind(console),debug:console.debug.bind(console),red:e=>e,green:e=>e,yellow:e=>e,blue:e=>e,magenta:e=>e,cyan:e=>e,gray:e=>e,bold:e=>e,dim:e=>e,bgRed:e=>e,createTimeSpan:(e,t=!1)=>({duration:()=>0,finish:()=>0}),printDiagnostics(t){t.forEach((t=>ft(t,e)))}}},ft=(e,t)=>{let r=ht,n="Build",i="";"error"===e.level?(r=gt,n="Error"):"warn"===e.level&&(r=mt,n="Warning"),e.header&&(n=e.header);const a=e.relFilePath||e.absFilePath;if(a&&(i+=a,"number"==typeof e.lineNumber&&e.lineNumber>0&&(i+=", line "+e.lineNumber,"number"==typeof e.columnNumber&&e.columnNumber>0&&(i+=", column "+e.columnNumber)),i+="\n"),i+=e.messageText,e.lines&&e.lines.length>0&&(e.lines.forEach((e=>{i+="\n"+e.lineNumber+": "+e.text})),i+="\n"),t){const e=["%c"+n,`background: ${r}; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;`];console.log(...e,i)}else"error"===e.level?console.error(i):"warn"===e.level?console.warn(i):console.log(i)},mt="#f39c12",gt="#c0392b",ht="#3498db",yt=(e,t)=>{t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))},vt=(...e)=>e.forEach((e=>console.log(e))),bt=e=>"function"==typeof e[bt.custom]?function(...t){return e[bt.custom].apply(this,t)}:function(...t){return new Promise(((r,n)=>{t.push(((e,t)=>{null!=e?n(e):r(t)})),e.apply(this,t)}))};bt.custom=Symbol("promisify.custom");const Et={inherits:yt,inspect:vt,promisify:bt},xt={__proto__:null,inherits:yt,inspect:vt,promisify:bt,default:Et};class Dt extends Error{constructor(e,t,r="ENOENT",n=-2){super(`ENOENT: no such file or directory, ${e} '${t}'`),this.syscall=e,this.path=t,this.code=r,this.errno=n}}const St={__sys:{}},Tt=St.exists=(e,t)=>{St.__sys.access(e).then(t).catch((()=>t(!1)))};Tt[bt.custom]=e=>St.__sys.access(e);const Ct=St.existsSync=e=>St.__sys.accessSync(e),At=St.mkdir=(e,t,r)=>{r="function"==typeof r?r:"function"==typeof t?t:null,t="function"==typeof t?void 0:t,St.__sys.createDir(e,t).then((t=>{r&&(t.error?r(new Dt("mkdir",e)):r(null))})).catch((e=>{r&&r(e)}))},kt=St.mkdirSync=(e,t)=>{if(St.__sys.createDirSync(e,t).error)throw new Dt("mkdir",e)},Nt=St.readdirSync=e=>St.__sys.readDirSync(e).map((e=>He(e))),wt=St.readFile=async(e,t,r)=>{const n="object"==typeof t?t.encoding:"string"==typeof t?t:"utf-8";r="function"==typeof r?r:"function"==typeof t?t:null,St.__sys.readFile(e,n).then((t=>{r&&r("string"==typeof t?null:new Dt("open",e),t)})).catch((e=>{r&&r(e)}))},Ft=St.readFileSync=(e,t)=>{const r="object"==typeof t?t.encoding:"string"==typeof t?t:"utf-8",n=St.__sys.readFileSync(e,r);if("string"!=typeof n)throw new Dt("open",e);return n},Pt=St.realpath=(e,t,r)=>{r="function"==typeof r?r:"function"==typeof t?t:null,St.__sys.realpath(e).then((e=>{r&&r(e.error,e.path)})).catch((e=>{r&&r(e)}))},It=St.realpathSync=e=>{const t=St.__sys.realpathSync(e);if(t.error)throw t.error;return me(t.path)},Ot=St.statSync=e=>{const t=St.__sys.statSync(e);if(t.error)throw new Dt("statSync",e);return{isDirectory:()=>t.isDirectory,isFile:()=>t.isFile,isSymbolicLink:()=>t.isSymbolicLink,size:t.size,mtimeMs:t.mtimeMs}},Mt=St.lstatSync=Ot,Rt=St.stat=(e,t,r)=>{r="function"==typeof r?r:"function"==typeof t?t:null,St.__sys.stat(e).then((t=>{r&&(t.error?r(new Dt("stat",e)):r({isDirectory:()=>t.isDirectory,isFile:()=>t.isFile,isSymbolicLink:()=>t.isSymbolicLink,size:t.size,mtimeMs:t.mtimeMs}))})).catch((e=>{r&&r(e)}))},Lt=St.watch=()=>{throw new Error("fs.watch() not implemented")},Bt=St.writeFile=(e,t,r,n)=>{n="function"==typeof n?n:"function"==typeof r?r:null,St.__sys.writeFile(e,t).then((t=>{n&&(t.error?n(new Dt("writeFile",e)):n(null))})).catch((e=>{n&&n(e)}))},Ut={__proto__:null,exists:Tt,existsSync:Ct,mkdir:At,mkdirSync:kt,readdirSync:Nt,readFile:wt,readFileSync:Ft,realpath:Pt,realpathSync:It,statSync:Ot,lstatSync:Mt,stat:Rt,watch:Lt,writeFile:Bt,default:St};var jt=()=>{var e=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;var t=(new Error).stack;return Error.prepareStackTrace=e,t[2].getFileName()},Vt=at((e=>{var t="win32"===r.platform,n=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,i={parse:e=>{if("string"!=typeof e)throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t,r=(t=e,n.exec(t).slice(1));if(!r||5!==r.length)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0]===r[1]?r[0]:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}}},a=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,o={parse:e=>{if("string"!=typeof e)throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t,r=(t=e,a.exec(t).slice(1));if(!r||5!==r.length)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}}};e.exports=t?i.parse:o.parse,e.exports.posix=o.parse,e.exports.win32=i.parse}));const zt=ot(it);var Ht=zt.parse||Vt,Wt=(e,t)=>{var r="/";/^([A-Za-z]:)/.test(e)?r="":/^\\\\/.test(e)&&(r="\\\\");for(var n=[e],i=Ht(e);i.dir!==n[n.length-1];)n.push(i.dir),i=Ht(i.dir);return n.reduce(((e,n)=>e.concat(t.map((e=>zt.resolve(r,n,e))))),[])},Kt=(e,t,r)=>{var n=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&"function"==typeof t.paths)return t.paths(r,e,(()=>Wt(e,n)),t);var i=Wt(e,n);return t&&t.paths?i.concat(t.paths):i},Jt=(e,t)=>t||{},Gt="Function.prototype.bind called on incompatible ",$t=Array.prototype.slice,qt=Object.prototype.toString,Xt="[object Function]",Yt=(Function.prototype.bind||function(e){var t=this;if("function"!=typeof t||qt.call(t)!==Xt)throw new TypeError(Gt+t);for(var r,n=$t.call(arguments,1),i=function(){if(this instanceof r){var i=t.apply(this,n.concat($t.call(arguments)));return Object(i)===i?i:this}return t.apply(e,n.concat($t.call(arguments)))},a=Math.max(0,t.length-n.length),o=[],s=0;s<a;s++)o.push("$"+s);if(r=Function("binder","return function ("+o.join(",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var c=()=>{};c.prototype=t.prototype,r.prototype=new c,c.prototype=null}return r}).call(Function.call,Object.prototype.hasOwnProperty);const Qt={assert:!0,"assert/strict":">= 15",async_hooks:">= 8",buffer_ieee754:"< 0.9.7",buffer:!0,child_process:!0,cluster:!0,console:!0,constants:!0,crypto:!0,_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,diagnostics_channel:">= 15.1",dns:!0,"dns/promises":">= 15",domain:">= 0.7.12",events:!0,freelist:"< 6",fs:!0,"fs/promises":[">= 10 && < 10.1",">= 14"],_http_agent:">= 0.11.1",_http_client:">= 0.11.1",_http_common:">= 0.11.1",_http_incoming:">= 0.11.1",_http_outgoing:">= 0.11.1",_http_server:">= 0.11.1",http:!0,http2:">= 8.8",https:!0,inspector:">= 8.0.0",_linklist:"< 8",module:!0,net:!0,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12",os:!0,path:!0,"path/posix":">= 15.3","path/win32":">= 15.3",perf_hooks:">= 8.5",process:">= 1",punycode:!0,querystring:!0,readline:!0,repl:!0,smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4",_stream_transform:">= 0.9.4",_stream_wrap:">= 1.4.1",_stream_passthrough:">= 0.9.4",_stream_readable:">= 0.9.4",_stream_writable:">= 0.9.4",stream:!0,"stream/promises":">= 15",string_decoder:!0,sys:[">= 0.6 && < 0.7",">= 0.8"],timers:!0,"timers/promises":">= 15",_tls_common:">= 0.11.13",_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3",tls:!0,trace_events:">= 10",tty:!0,url:!0,util:!0,"util/types":">= 15.3","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],v8:">= 1",vm:!0,wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7",zlib:!0};function Zt(e,t){for(var r=e.split("."),n=t.split(" "),i=n.length>1?n[0]:"=",a=(n.length>1?n[1]:n[0]).split("."),o=0;o<3;++o){var s=parseInt(r[o]||0,10),c=parseInt(a[o]||0,10);if(s!==c)return"<"===i?s<c:">="===i&&s>=c}return">="===i}function er(e,t){var r=t.split(/ ?&& ?/);if(0===r.length)return!1;for(var n=0;n<r.length;++n)if(!Zt(e,r[n]))return!1;return!0}var tr=(e,t)=>Yt(Qt,e)&&((e,t)=>{if("boolean"==typeof t)return t;var n=void 0===e?r.versions&&r.versions.node&&r.versions.node:e;if("string"!=typeof n)throw new TypeError(void 0===e?"Unable to determine current node version":"If provided, a valid node version is required");if(t&&"object"==typeof t){for(var i=0;i<t.length;++i)if(er(n,t[i]))return!0;return!1}return er(n,t)})(t,Qt[e]);const rr=ot(Ut);var nr=rr.realpath&&"function"==typeof rr.realpath.native?rr.realpath.native:rr.realpath,ir=(e,t)=>{rr.stat(e,((e,r)=>e?"ENOENT"===e.code||"ENOTDIR"===e.code?t(null,!1):t(e):t(null,r.isFile()||r.isFIFO())))},ar=(e,t)=>{rr.stat(e,((e,r)=>e?"ENOENT"===e.code||"ENOTDIR"===e.code?t(null,!1):t(e):t(null,r.isDirectory())))},or=(e,t)=>{nr(e,((r,n)=>{r&&"ENOENT"!==r.code?t(r):t(null,r?e:n)}))},sr=(e,t,r,n)=>{r&&!1===r.preserveSymlinks?e(t,n):n(null,t)},cr=(e,t,r)=>{e(t,((e,t)=>{if(e)r(e);else try{var n=JSON.parse(t);r(null,n)}catch(e){r(null)}}))},lr=(e,t,n)=>{var i=n,a=t;if("function"==typeof t&&(i=a,a={}),"string"!=typeof e){var o=new TypeError("Path must be a string.");return r.nextTick((()=>{i(o)}))}var s=(a=Jt(0,a)).isFile||ir,c=a.isDirectory||ar,l=a.readFile||rr.readFile,d=a.realpath||or,u=a.readPackage||cr;if(a.readFile&&a.readPackage){var p=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return r.nextTick((()=>{i(p)}))}var _=a.packageIterator,f=a.extensions||[".js"],m=!1!==a.includeCoreModules,g=a.basedir||zt.dirname(jt()),h=a.filename||g;a.paths=a.paths||[];var y,v=zt.resolve(g);function b(t,r,n){t?i(t):r?i(null,r,n):D(y,((t,r,n)=>{if(t)i(t);else if(r)sr(d,r,a,((e,t)=>{e?i(e):i(null,t,n)}));else{var o=new Error("Cannot find module '"+e+"' from '"+h+"'");o.code="MODULE_NOT_FOUND",i(o)}}))}function E(e,t,r){var n=t,i=r;"function"==typeof n&&(i=n,n=void 0),function e(t,r,n){if(0===t.length)return i(null,void 0,n);var o=r+t[0],c=n;function l(n,l,u){if(c=l,n)return i(n);if(u&&c&&a.pathFilter){var p=zt.relative(u,o),_=p.slice(0,p.length-t[0].length),m=a.pathFilter(c,r,_);if(m)return e([""].concat(f.slice()),zt.resolve(u,m),c)}s(o,d)}function d(n,a){return n?i(n):a?i(null,o,c):(e(t.slice(1),r,c),void 0)}c?l(null,c):x(zt.dirname(o),l)}([""].concat(f),e,n)}function x(e,t){return""===e||"/"===e||"win32"===r.platform&&/^\w:[/\\]*$/.test(e)||/[/\\]node_modules[/\\]*$/.test(e)?t(null):(sr(d,e,a,((r,n)=>{if(r)return x(zt.dirname(e),t);var i=zt.join(n,"package.json");s(i,((r,n)=>{if(!n)return x(zt.dirname(e),t);u(l,i,((r,n)=>{r&&t(r);var o=n;o&&a.packageFilter&&(o=a.packageFilter(o,i)),t(null,o,e)}))}))})),void 0)}function D(e,t,r){var n=r,i=t;"function"==typeof i&&(n=i,i=a.package),sr(d,e,a,((t,r)=>{if(t)return n(t);var o=zt.join(r,"package.json");s(o,((t,r)=>t?n(t):r?(u(l,o,((t,r)=>{if(t)return n(t);var i=r;if(i&&a.packageFilter&&(i=a.packageFilter(i,o)),i&&i.main){if("string"!=typeof i.main){var s=new TypeError("package “"+i.name+"” `main` must be a string");return s.code="INVALID_PACKAGE_MAIN",n(s)}return"."!==i.main&&"./"!==i.main||(i.main="index"),E(zt.resolve(e,i.main),i,((t,r,i)=>t?n(t):r?n(null,r,i):i?(D(zt.resolve(e,i.main),i,((t,r,i)=>t?n(t):r?n(null,r,i):(E(zt.join(e,"index"),i,n),void 0))),void 0):E(zt.join(e,"index"),i,n))),void 0}E(zt.join(e,"/index"),i,n)})),void 0):E(zt.join(e,"index"),i,n)))}))}function S(e,t){if(0===t.length)return e(null,void 0);var r=t[0];function n(t,n,o){return t?e(t):n?e(null,n,o):(D(r,a.package,i),void 0)}function i(r,n,i){return r?e(r):n?e(null,n,i):(S(e,t.slice(1)),void 0)}c(zt.dirname(r),((i,o)=>i?e(i):o?(E(r,a.package,n),void 0):S(e,t.slice(1))))}sr(d,v,a,((t,r)=>{t?i(t):!(t=>{if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))y=zt.resolve(t,e),"."!==e&&".."!==e&&"/"!==e.slice(-1)||(y+="/"),/\/$/.test(e)&&y===t?D(y,a.package,b):E(y,a.package,b);else{if(m&&tr(e))return i(null,e);!((e,t,r)=>{var n=()=>((e,t,r)=>{for(var n=Kt(t,r,e),i=0;i<n.length;i++)n[i]=zt.join(n[i],e);return n})(e,t,a);S(r,_?_(e,t,n,a):n())})(e,t,((t,r,n)=>{if(t)i(t);else{if(r)return sr(d,r,a,((e,t)=>{e?i(e):i(null,t,n)}));var o=new Error("Cannot find module '"+e+"' from '"+h+"'");o.code="MODULE_NOT_FOUND",i(o)}}))}})(r)}))};const dr={assert:!0,"assert/strict":">= 15",async_hooks:">= 8",buffer_ieee754:"< 0.9.7",buffer:!0,child_process:!0,cluster:!0,console:!0,constants:!0,crypto:!0,_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,diagnostics_channel:">= 15.1",dns:!0,"dns/promises":">= 15",domain:">= 0.7.12",events:!0,freelist:"< 6",fs:!0,"fs/promises":[">= 10 && < 10.1",">= 14"],_http_agent:">= 0.11.1",_http_client:">= 0.11.1",_http_common:">= 0.11.1",_http_incoming:">= 0.11.1",_http_outgoing:">= 0.11.1",_http_server:">= 0.11.1",http:!0,http2:">= 8.8",https:!0,inspector:">= 8.0.0",_linklist:"< 8",module:!0,net:!0,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12",os:!0,path:!0,"path/posix":">= 15.3","path/win32":">= 15.3",perf_hooks:">= 8.5",process:">= 1",punycode:!0,querystring:!0,readline:!0,repl:!0,smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4",_stream_transform:">= 0.9.4",_stream_wrap:">= 1.4.1",_stream_passthrough:">= 0.9.4",_stream_readable:">= 0.9.4",_stream_writable:">= 0.9.4",stream:!0,"stream/promises":">= 15",string_decoder:!0,sys:[">= 0.6 && < 0.7",">= 0.8"],timers:!0,"timers/promises":">= 15",_tls_common:">= 0.11.13",_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3",tls:!0,trace_events:">= 10",tty:!0,url:!0,util:!0,"util/types":">= 15.3","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],v8:">= 1",vm:!0,wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7",zlib:!0};var ur=r.versions&&r.versions.node&&r.versions.node.split(".")||[];function pr(e){for(var t=e.split(" "),r=t.length>1?t[0]:"=",n=(t.length>1?t[1]:t[0]).split("."),i=0;i<3;++i){var a=parseInt(ur[i]||0,10),o=parseInt(n[i]||0,10);if(a!==o)return"<"===r?a<o:">="===r&&a>=o}return">="===r}function _r(e){var t=e.split(/ ?&& ?/);if(0===t.length)return!1;for(var r=0;r<t.length;++r)if(!pr(t[r]))return!1;return!0}function fr(e){if("boolean"==typeof e)return e;if(e&&"object"==typeof e){for(var t=0;t<e.length;++t)if(_r(e[t]))return!0;return!1}return _r(e)}var mr={};for(var gr in dr)Object.prototype.hasOwnProperty.call(dr,gr)&&(mr[gr]=fr(dr[gr]));var hr=mr,yr=rr.realpathSync&&"function"==typeof rr.realpathSync.native?rr.realpathSync.native:rr.realpathSync,vr=e=>{try{var t=rr.statSync(e)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return!1;throw e}return t.isFile()||t.isFIFO()},br=e=>{try{var t=rr.statSync(e)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return!1;throw e}return t.isDirectory()},Er=e=>{try{return yr(e)}catch(e){if("ENOENT"!==e.code)throw e}return e},xr=(e,t,r)=>r&&!1===r.preserveSymlinks?e(t):t,Dr=(e,t)=>{var r=e(t);try{return JSON.parse(r)}catch(e){}};lr.core=hr,lr.isCore=e=>tr(e),lr.sync=(e,t)=>{if("string"!=typeof e)throw new TypeError("Path must be a string.");var n=Jt(0,t),i=n.isFile||vr,a=n.readFileSync||rr.readFileSync,o=n.isDirectory||br,s=n.realpathSync||Er,c=n.readPackageSync||Dr;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var l=n.packageIterator,d=n.extensions||[".js"],u=!1!==n.includeCoreModules,p=n.basedir||zt.dirname(jt()),_=n.filename||p;n.paths=n.paths||[];var f=xr(s,zt.resolve(p),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var m=zt.resolve(f,e);"."!==e&&".."!==e&&"/"!==e.slice(-1)||(m+="/");var g=v(m)||E(m);if(g)return xr(s,g,n)}else{if(u&&tr(e))return e;var h=((e,t)=>{for(var r=()=>((e,t,r)=>{for(var n=Kt(t,r,e),i=0;i<n.length;i++)n[i]=zt.join(n[i],e);return n})(e,t,n),i=l?l(e,t,r,n):r(),a=0;a<i.length;a++){var s=i[a];if(o(zt.dirname(s))){var c=v(s);if(c)return c;var d=E(s);if(d)return d}}})(e,f);if(h)return xr(s,h,n)}var y=new Error("Cannot find module '"+e+"' from '"+_+"'");throw y.code="MODULE_NOT_FOUND",y;function v(e){var t=b(zt.dirname(e));if(t&&t.dir&&t.pkg&&n.pathFilter){var r=zt.relative(t.dir,e),a=n.pathFilter(t.pkg,e,r);a&&(e=zt.resolve(t.dir,a))}if(i(e))return e;for(var o=0;o<d.length;o++){var s=e+d[o];if(i(s))return s}}function b(e){if(""!==e&&"/"!==e&&!("win32"===r.platform&&/^\w:[/\\]*$/.test(e)||/[/\\]node_modules[/\\]*$/.test(e))){var t=zt.join(xr(s,e,n),"package.json");if(!i(t))return b(zt.dirname(e));var o=c(a,t);return o&&n.packageFilter&&(o=n.packageFilter(o,e)),{pkg:o,dir:e}}}function E(e){var t=zt.join(xr(s,e,n),"/package.json");if(i(t)){try{var r=c(a,t)}catch(e){}if(r&&n.packageFilter&&(r=n.packageFilter(r,e)),r&&r.main){if("string"!=typeof r.main){var o=new TypeError("package “"+r.name+"” `main` must be a string");throw o.code="INVALID_PACKAGE_MAIN",o}"."!==r.main&&"./"!==r.main||(r.main="index");try{var l=v(zt.resolve(e,r.main));if(l)return l;var d=E(zt.resolve(e,r.main));if(d)return d}catch(e){}}}return v(zt.join(e,"/index"))}};var Sr=lr;const Tr=[".tsx",".ts",".mjs",".js",".jsx",".json",".md"],Cr=["package.json","index.js","index.mjs"],Ar=e=>e.endsWith(".d.ts"),kr=e=>!Ar(e)&&e.endsWith(".ts"),Nr=e=>e.endsWith(".tsx"),wr=e=>e.endsWith(".jsx"),Fr=e=>e.endsWith(".js"),Pr=(e,t)=>e+"/"+t,Ir=e=>Tr.some((t=>e.endsWith(t))),Or=(e,t)=>{try{const r=JSON.parse(t);r.name&&r.version&&((e,t,r)=>{e.set(t,r)})(e,r.name,r.version)}catch(e){}},Mr=e=>e.startsWith(".")||e.startsWith("/"),Rr=e=>l&&o&&Lr(e),Lr=e=>me(e).split("/").includes("node_modules"),Br=e=>{e.startsWith("~")&&(e=e.substring(1));const t=e.split("/"),r={moduleId:null,filePath:null,scope:null,scopeSubModuleId:null};return e.startsWith("@")&&t.length>1?(r.moduleId=t.slice(0,2).join("/"),r.filePath=t.slice(2).join("/"),r.scope=t[0],r.scopeSubModuleId=t[1]):(r.moduleId=t[0],r.filePath=t.slice(1).join("/")),r},Ur=(e,t)=>{const r=me(e).split("/"),n=Br(t);for(let e=r.length-1;e>=1;e--)if("node_modules"===r[e-1])if(n.scope){if(r[e]===n.scope&&r[e+1]===n.scopeSubModuleId)return r.slice(0,e+2).join("/")}else if(r[e]===n.moduleId)return r.slice(0,e+1).join("/");return null},jr=new Map,Vr=new Set,zr=(e,t)=>{let r=(t=me(t)).split("/");const n=r.lastIndexOf("node_modules");n>-1&&n<r.length-1&&(r=r.slice(n+1),r=r[0].startsWith("@")?r.slice(2):r.slice(1),t=r.join("/"));const i=new URL("../",e).href;return new URL("./"+t,i).href},Hr=(e,t,r,n)=>Wr(e,t,r)+"/"+n,Wr=(e,t,r)=>{let n=(r=me(r)).split("/").filter((e=>e.length));const i=n.lastIndexOf("node_modules");i>-1&&i<n.length-1&&(n=n.slice(i+1));let a=n.shift();a.startsWith("@")&&(a+="/"+n.shift());const o=n.join("/");if("@stencil/core"===a){const t=e.getCompilerExecutingPath();return zr(t,o)}return e.getRemoteModuleUrl({moduleId:a,version:t.get(a),path:o})},Kr=e=>{if(kr(e)||Nr(e))return!0;const t=e.split("/"),r=t[t.length-2],n=t[t.length-1];return!("node_modules"!==r||!Ir(n))},Jr=e=>Gr.some((t=>e.endsWith(t))),Gr=["/@stencil/core/internal.js","/@stencil/core/internal.json","/@stencil/core/internal.mjs","/@stencil/core/internal/stencil-core.js/index.json","/@stencil/core/internal/stencil-core.js.json","/@stencil/core/internal/stencil-core.js/package.json","/@stencil/core.js","/@stencil/core.json","/@stencil/core.mjs","/@stencil/core.css","/@stencil/core/index.js","/@stencil/core/index.json","/@stencil/core/index.mjs","/@stencil/core/index.css","/@stencil/package.json"],$r=async(e,t,r,n,i)=>{if(!(Kr(i)||Vr.has(n)||Jr(n)))try{const a=await((e,t,r)=>e&&W(e.fetch)?e.fetch(t,r):fetch(t,r))(e,n);if(a){if(a.ok){const o=await a.clone().text();return await(async(e,t,r,n,i,a)=>{r.endsWith("package.json")&&Or(a,i);let o=We(n);for(;"/"!==o&&""!==o;)t?(t.clearFileCache(o),await t.sys.createDir(o)):await e.createDir(o),o=We(o);t?(t.clearFileCache(n),await t.sys.writeFile(n,i)):await e.writeFile(n,i)})(e,t,n,i,o,r),o}404===a.status&&Vr.add(n)}}catch(e){console.error(e)}},qr=(e,t,r)=>{const n=Xr(e,t,r.exts);return n.basedir=We(Se(r.containingFile)),r.packageFilter?n.packageFilter=r.packageFilter:null!==r.packageFilter&&(n.packageFilter=e=>(G(e.main)&&""!==e.main||(e.main="package.json"),e)),new Promise(((e,t)=>{Sr(r.moduleId,n,((n,i,a)=>{if(n)t(n);else{i=me(i);const t={moduleId:r.moduleId,resolveId:i,pkgData:a,pkgDirPath:Ur(i,r.moduleId)};e(t)}}))}))},Xr=(e,t,r)=>({async isFile(n,i){const a=Se(n);if((await t.stat(a)).isFile)return i(null,!0),void 0;if(Rr(a)&&r.some((e=>a.endsWith(e)))){const r=Wr(e,jr,a);return i(null,"string"==typeof await $r(e,t,jr,r,a)),void 0}i(null,!1)},async isDirectory(r,n){const i=Se(r);if((await t.stat(i)).isDirectory)return n(null,!0),void 0;if(Rr(i)){if("node_modules"===He(i))return t.sys.createDirSync(i),t.clearFileCache(i),n(null,!0),void 0;if(Ir(i))return n(null,!1),void 0;for(const r of Cr){const a=Hr(e,jr,i,r),o=Pr(i,r),s=await $r(e,t,jr,a,o);if(G(s))return n(null,!0),void 0}}n(null,!1)},async readFile(e,r){const n=Se(e),i=await t.readFile(n);return G(i)?r(null,i):r(`readFile not found: ${e}`)},async realpath(t,r){const n=Se(t),i=await e.realpath(n);i.error&&"ENOENT"!==i.error.code?r(i.error):r(null,i.error?n:i.path)},extensions:r}),Yr=e=>{var t;const r=null!==(t=null==e?void 0:e.logger)&&void 0!==t?t:_t(),n=new Map,i=new Set,a=e=>i.add(e),l=e=>i.delete(e),d=pt(),u=o&&navigator.hardwareConcurrency||1,p=e=>{if("/"===e||""===e)return"/";const t=We(e),r=He(e);return t.endsWith("/")?me(`${t}${r}`):me(`${t}/${r}`)},_=e=>{const t=n.get(p(e));return!(!t||!(t.isDirectory||t.isFile&&"string"==typeof t.data))},f=(e,t)=>{e=p(e);const r={basename:He(e),dirname:We(e),path:e,newDirs:[],error:null};return m(e,t,r),r},m=(e,t,r)=>{const i=We(e);t&&t.recursive&&!Y(i)&&m(i,t,r);const a=n.get(e);a?(a.isDirectory=!0,a.isFile=!1):(n.set(e,{basename:He(e),dirname:i,isDirectory:!0,isFile:!1,watcherCallbacks:null,data:void 0}),r.newDirs.push(e),S(e,new Set))},g=e=>{e=p(e);const t=[],r=n.get(e);return r&&r.isDirectory&&n.forEach(((r,n)=>{"/"!==n&&(r.isDirectory||r.isFile&&"string"==typeof r.data)&&(e.endsWith("/")&&`${e}${r.basename}`===n||`${e}/${r.basename}`===n)&&t.push(n)})),t.sort()},h=e=>{e=p(e);const t=n.get(e);if(t&&t.isFile)return t.data},y=e=>({path:p(e),error:null}),v=(e,t,r)=>{const i=x(e);if(!i.error&&!r.error)if(i.isFile){const i=We(t),a=f(i,{recursive:!0}),o=n.get(e).data,s=T(t,o);r.newDirs.push(...a.newDirs),r.renamed.push({oldPath:e,newPath:t,isDirectory:!1,isFile:!0}),s.error?r.error=s.error:r.newFiles.push(t)}else if(i.isDirectory){const n=g(e),i=f(t,{recursive:!0});r.newDirs.push(...i.newDirs),r.renamed.push({oldPath:e,newPath:t,isDirectory:!0,isFile:!1});for(const i of n){const n=i.replace(e,t);v(i,n,r)}}},b=(e,t={})=>{const r={basename:He(e),dirname:We(e),path:e,removedDirs:[],removedFiles:[],error:null};return E(e,t,r),r},E=(e,t,r)=>{if(!r.error){e=p(e);const i=g(e);if(t&&t.recursive)for(const e of i){const i=n.get(e);if(i)if(i.isDirectory)E(e,t,r);else if(i.isFile){const t=D(e);t.error?r.error=t.error:r.removedFiles.push(e)}}else if(i.length>0)return r.error="cannot delete directory that contains files/subdirectories",void 0;n.delete(e),S(e,new Set),r.removedDirs.push(e)}},x=e=>{e=p(e);const t=n.get(e);return t&&(t.isDirectory||t.isFile&&"string"==typeof t.data)?{isDirectory:t.isDirectory,isFile:t.isFile,isSymbolicLink:!1,size:t.isFile&&t.data?t.data.length:0,error:null}:{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,error:`ENOENT: no such file or directory, statSync '${e}'`}},D=e=>{e=p(e);const t={basename:He(e),dirname:We(e),path:e,error:null},r=n.get(e);if(r){if(r.watcherCallbacks)for(const t of r.watcherCallbacks)t(e,"fileDelete");n.delete(e),S(e,new Set)}return t},S=(e,t)=>{const r=p(We(e)),i=n.get(r);if(i&&i.isDirectory&&i.watcherCallbacks)for(const t of i.watcherCallbacks)t(e,null);t.has(r)||(t.add(r),S(r,t))},T=(e,t)=>{const r={path:e=p(e),error:null},i=n.get(e);if(i){const r=i.data!==t;if(i.data=t,r&&i.watcherCallbacks)for(const t of i.watcherCallbacks)t(e,"fileUpdate")}else n.set(e,{basename:He(e),dirname:We(e),isDirectory:!1,isFile:!0,watcherCallbacks:null,data:t}),S(e,new Set);return r},C="undefined"!=typeof self?null===self||void 0===self?void 0:self.fetch:"undefined"!=typeof window?null===window||void 0===window?void 0:window.fetch:"undefined"!=typeof global?null===global||void 0===global?void 0:global.fetch:void 0,A=Promise.resolve();f("/");const k={name:"in-memory",version:dt,events:d,access:async e=>_(e),accessSync:_,addDestory:a,copyFile:async(e,t)=>(T(t,h(e)),!0),createDir:async(e,t)=>f(e,t),createDirSync:f,homeDir:()=>(void 0)(),isTTY(){var e;return!!(null===(e=null==ct?void 0:st.stdout)||void 0===e?void 0:e.isTTY)},getEnvironmentVar:e=>null==ct?void 0:st.env[e],async destroy(){const e=[];i.forEach((t=>{try{const r=t();r&&r.then&&e.push(r)}catch(e){r.error(`stencil sys destroy: ${e}`)}})),await Promise.all(e),i.clear()},encodeToBase64:e=>btoa(unescape(encodeURIComponent(e))),exit:async e=>r.warn(`exit ${e}`),getCurrentDirectory:()=>"/",getCompilerExecutingPath:()=>s?location.href:k.getRemoteModuleUrl({moduleId:"@stencil/core",path:"compiler/stencil.min.js"}),getLocalModulePath:e=>Ge(e.rootDir,"node_modules",e.moduleId,e.path),getRemoteModuleUrl(e){const t=`${e.moduleId}${e.version?"@"+e.version:""}/${e.path}`;return new URL(t,"https://cdn.jsdelivr.net/npm/").href},hardwareConcurrency:u,isSymbolicLink:async e=>!1,nextTick:e=>A.then(e),normalizePath:p,platformPath:ze,readDir:async e=>g(e),readDirSync:g,readFile:async e=>h(e),readFileSync:h,realpath:async e=>y(e),realpathSync:y,removeDestory:l,async rename(e,t){const r={oldPath:e=me(e),newPath:t=me(t),renamed:[],oldDirs:[],oldFiles:[],newDirs:[],newFiles:[],isFile:!1,isDirectory:!1,error:null},n=x(e);if(n.error)r.error=`${e} does not exist`;else if(n.isFile?r.isFile=!0:n.isDirectory&&(r.isDirectory=!0),v(e,t,r),!r.error)if(r.isDirectory){const t=b(e,{recursive:!0});t.error?r.error=t.error:(r.oldDirs.push(...t.removedDirs),r.oldFiles.push(...t.removedFiles))}else if(r.isFile){const t=D(e);t.error?r.error=t.error:r.oldFiles.push(e)}return r},fetch:C,resolvePath:e=>p(e),removeDir:async(e,t={})=>b(e,t),removeDirSync:b,stat:async e=>x(e),statSync:x,tmpDirSync:()=>"/.tmp",removeFile:async e=>D(e),removeFileSync:D,watchDirectory(e,t){e=p(e);const r=n.get(e),i=()=>{const r=n.get(e);if(r&&r.watcherCallbacks){const e=r.watcherCallbacks.indexOf(t);e>-1&&r.watcherCallbacks.splice(e,1)}};return a(i),r?(r.isDirectory=!0,r.isFile=!1,r.watcherCallbacks=r.watcherCallbacks||[],r.watcherCallbacks.push(t)):n.set(e,{basename:He(e),dirname:We(e),isDirectory:!0,isFile:!1,watcherCallbacks:[t],data:void 0}),{close(){l(i),i()}}},watchFile(e,t){e=p(e);const r=n.get(e),i=()=>{const r=n.get(e);if(r&&r.watcherCallbacks){const e=r.watcherCallbacks.indexOf(t);e>-1&&r.watcherCallbacks.splice(e,1)}};return a(i),r?(r.isDirectory=!1,r.isFile=!0,r.watcherCallbacks=r.watcherCallbacks||[],r.watcherCallbacks.push(t)):n.set(e,{basename:He(e),dirname:We(e),isDirectory:!1,isFile:!0,watcherCallbacks:[t],data:void 0}),{close(){l(i),i()}}},watchTimeout:32,writeFile:async(e,t)=>T(e,t),writeFileSync:T,async generateContentHash(e,t){const r=await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e));let n=Array.from(new Uint8Array(r)).map((e=>e.toString(16).padStart(2,"0"))).join("");return"number"==typeof t&&(n=n.slice(0,t)),n},createWorkerController:c?e=>((e,t)=>{let r,n=0,i=!1,a=!1,o=0;const s=new Map,c=[],l=[],d=Math.max(Math.min(t,e.hardwareConcurrency),2)-1,u=Promise.resolve(),p=e=>console.error(e),_=()=>{let t=null;const n=e.getCompilerExecutingPath(),a={name:"stencil.worker."+o++};try{t=new Worker(n,a)}catch(e){null==r&&(r=new Blob([`importScripts('${n}');`],{type:"application/javascript"})),t=new Worker(URL.createObjectURL(r),a)}const c={worker:t,activeTasks:0,sendQueue:[]};return t.onerror=p,t.onmessage=e=>((e,t)=>{if(!i){const r=t.data;if(Array.isArray(r))for(const t of r)if(t){const r=s.get(t.stencilId);r?(s.delete(t.stencilId),t.stencilRtnError?r.reject(t.stencilRtnError):r.resolve(t.stencilRtnValue),e.activeTasks--,(e.activeTasks<0||e.activeTasks>50)&&(e.activeTasks=0)):t.stencilRtnError&&console.error(t.stencilRtnError)}}})(c,e),c},f=e=>{e.sendQueue.length>0&&(e.worker.postMessage(e.sendQueue),e.sendQueue.length=0)},m=e=>{let t;if(l.length>0){if(t=l[0],d>1){for(const e of l)e.activeTasks<t.activeTasks&&(t=e);t.activeTasks>0&&l.length<d&&(t=_(),l.push(t))}}else t=_(),l.push(t);t.activeTasks++,t.sendQueue.push(e)},g=()=>{a=!1,c.forEach(m),c.length=0,l.forEach(f)},h=(...e)=>new Promise(((t,r)=>{if(i)r(ae);else{const i={stencilId:n++,args:e};c.push(i),s.set(i.stencilId,{resolve:t,reject:r}),a||(a=!0,u.then(g))}}));return{send:h,destroy(){i=!0,s.forEach((e=>e.reject(ae))),s.clear(),l.forEach((e=>e.worker.terminate())),l.length=0},handler(e){return(...t)=>h(e,...t)},maxWorkers:d}})(k,e):null,details:{cpuModel:"",freemem:()=>0,platform:"",release:"",totalmem:0},copy:async(e,t)=>(r.info("todo, copy task",e.length,t),{diagnostics:[],dirPaths:[],filePaths:[]}),resolveModuleId(e){return qr(k,null,e)}};return k};let Qr;const Zr={overrideBrowserslist:["last 2 versions","iOS >= 9","Android >= 4.4","Explorer >= 11","ExplorerMobile >= 11"],cascade:!1,remove:!1,flexbox:"no-2009"},en=(e,t)=>{let r=1,n=1;const i=[],a=e=>{const t=e.match(/\n/g);t&&(r+=t.length);const i=e.lastIndexOf("\n");n=~i?e.length-i:n+e.length},o=()=>{const e={line:r,column:n};return t=>(t.position=new T(e),p(),t)},s=a=>{const o=e.split("\n"),s={level:"error",type:"css",language:"css",header:"CSS Parse",messageText:a,absFilePath:t,lines:[{lineIndex:r-1,lineNumber:r,errorCharStart:n,text:e[r-1]}]};if(r>1){const t={lineIndex:r-1,lineNumber:r-1,text:e[r-2],errorCharStart:-1,errorLength:-1};s.lines.unshift(t)}if(r+2<o.length){const e={lineIndex:r,lineNumber:r+1,text:o[r],errorCharStart:-1,errorLength:-1};s.lines.push(e)}return i.push(s),null},c=()=>d(/^{\s*/),l=()=>d(/^}/),d=t=>{const r=t.exec(e);if(!r)return;const n=r[0];return a(n),e=e.slice(n.length),r},u=()=>{let t;const r=[];for(p(),_(r);e.length&&"}"!==e.charAt(0)&&(t=D()||S());)!1!==t&&(r.push(t),_(r));return r},p=()=>d(/^\s*/),_=e=>{let t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e},f=()=>{const t=o();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;let r=2;for(;""!==e.charAt(r)&&("*"!==e.charAt(r)||"/"!==e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return s("End of comment missing");const i=e.slice(2,r-2);return n+=2,a(i),e=e.slice(r),n+=2,t({type:1,comment:i})},m=()=>{const e=d(/^([^{]+)/);return e?tn(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(e=>e.replace(/,/g,""))).split(/\s*(?![^(]*\)),\s*/).map((e=>e.replace(/\u200C/g,","))):null},g=()=>{const e=o();let t=d(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return null;if(t=tn(t[0]),!d(/^:\s*/))return s("property missing ':'");const r=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),n=e({type:4,property:t.replace(nn,""),value:r?tn(r[0]).replace(nn,""):""});return d(/^[;\s]*/),n},h=()=>{const e=[];if(!c())return s("missing '{'");let t;for(_(e);t=g();)!1!==t&&(e.push(t),_(e));return l()?e:s("missing '}'")},y=()=>{let e;const t=[],r=o();for(;e=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),d(/^,\s*/);return t.length?r({type:9,values:t,declarations:h()}):null},v=(e,t)=>{const r=new RegExp("^@"+e+"\\s*([^;]+);");return()=>{const n=o(),i=d(r);if(!i)return null;const a={type:t};return a[e]=i[1].trim(),n(a)}},b=v("import",7),E=v("charset",0),x=v("namespace",11),D=()=>"@"!==e[0]?null:(()=>{const e=o();let t=d(/^@([-\w]+)?keyframes\s*/);if(!t)return null;const r=t[1];if(t=d(/^([-\w]+)\s*/),!t)return s("@keyframes missing name");const n=t[1];if(!c())return s("@keyframes missing '{'");let i,a=_();for(;i=y();)a.push(i),a=a.concat(_());return l()?e({type:8,name:n,vendor:r,keyframes:a}):s("@keyframes missing '}'")})()||(()=>{const e=o(),t=d(/^@media *([^{]+)/);if(!t)return null;const r=tn(t[1]);if(!c())return s("@media missing '{'");const n=_().concat(u());return l()?e({type:10,media:r,rules:n}):s("@media missing '}'")})()||(()=>{const e=o(),t=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);return t?e({type:2,name:tn(t[1]),media:tn(t[2])}):null})()||(()=>{const e=o(),t=d(/^@supports *([^{]+)/);if(!t)return null;const r=tn(t[1]);if(!c())return s("@supports missing '{'");const n=_().concat(u());return l()?e({type:15,supports:r,rules:n}):s("@supports missing '}'")})()||b()||E()||x()||(()=>{const e=o(),t=d(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const r=tn(t[1]),n=tn(t[2]);if(!c())return s("@document missing '{'");const i=_().concat(u());return l()?e({type:3,document:n,vendor:r,rules:i}):s("@document missing '}'")})()||(()=>{const e=o();if(!d(/^@page */))return null;const t=m()||[];if(!c())return s("@page missing '{'");let r,n=_();for(;r=g();)n.push(r),n=n.concat(_());return l()?e({type:12,selectors:t,declarations:n}):s("@page missing '}'")})()||(()=>{const e=o();if(!d(/^@host\s*/))return null;if(!c())return s("@host missing '{'");const t=_().concat(u());return l()?e({type:6,rules:t}):s("@host missing '}'")})()||(()=>{const e=o();if(!d(/^@font-face\s*/))return null;if(!c())return s("@font-face missing '{'");let t,r=_();for(;t=g();)r.push(t),r=r.concat(_());return l()?e({type:5,declarations:r}):s("@font-face missing '}'")})(),S=()=>{const e=o(),t=m();return t?(_(),e({type:13,selectors:t,declarations:h()})):s("selector missing")};class T{constructor(e){this.start=e,this.end={line:r,column:n},this.source=t}}return T.prototype.content=e,{diagnostics:i,...rn((()=>{const e=u();return{type:14,stylesheet:{source:t,rules:e}}})())}},tn=e=>e?e.trim():"",rn=(e,t)=>{const r=e&&"string"==typeof e.type,n=r?e:t;for(const t in e){const r=e[t];Array.isArray(r)?r.forEach((e=>{rn(e,n)})):r&&"object"==typeof r&&rn(r,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e},nn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,an=e=>{on.all.length=on.tags.length=on.classNames.length=on.ids.length=on.attrs.length=0;const t=(e=e.replace(/\./g," .").replace(/\#/g," #").replace(/\[/g," [").replace(/\>/g," > ").replace(/\+/g," + ").replace(/\~/g," ~ ").replace(/\*/g," * ").replace(/\:not\((.*?)\)/g," ")).split(" ");for(let e=0,r=t.length;e<r;e++)t[e]=t[e].split(":")[0],0!==t[e].length&&("."===t[e].charAt(0)?on.classNames.push(t[e].slice(1)):"#"===t[e].charAt(0)?on.ids.push(t[e].slice(1)):"["===t[e].charAt(0)?(t[e]=t[e].slice(1).split("=")[0].split("]")[0].trim(),on.attrs.push(t[e].toLowerCase())):/[a-z]/g.test(t[e].charAt(0))&&on.tags.push(t[e].toLowerCase()));return on.classNames=on.classNames.sort(((e,t)=>e.length<t.length?-1:e.length>t.length?1:0)),on},on={all:[],tags:[],classNames:[],ids:[],attrs:[]},sn=(e,t,r,n)=>{const i=t.type;return 4===i?ln(t,r,n):13===i?cn(e,t):1===i?"!"===t.comment[0]?`/*${t.comment}*/`:"":10===i?dn(e,t):8===i?un(e,t):9===i?pn(e,t):5===i?_n(e,t):15===i?fn(e,t):7===i?"@import "+t.import+";":0===i?"@charset "+t.charset+";":12===i?mn(e,t):6===i?"@host{"+hn(e,t.rules)+"}":2===i?"@custom-media "+t.name+" "+t.media+";":3===i?gn(e,t):11===i?"@namespace "+t.namespace+";":""},cn=(e,t)=>{const r=t.declarations,n=e.usedSelectors,i=t.selectors.slice();if(null==r||0===r.length)return"";if(n){let t,r,a=!0;for(t=i.length-1;t>=0;t--){const o=an(i[t]);a=!0;let s=o.classNames.length;if(s>0&&e.hasUsedClassNames)for(r=0;r<s;r++)if(!n.classNames.has(o.classNames[r])){a=!1;break}if(a&&e.hasUsedTags&&(s=o.tags.length,s>0))for(r=0;r<s;r++)if(!n.tags.has(o.tags[r])){a=!1;break}if(a&&e.hasUsedAttrs&&(s=o.attrs.length,s>0))for(r=0;r<s;r++)if(!n.attrs.has(o.attrs[r])){a=!1;break}if(a&&e.hasUsedIds&&(s=o.ids.length,s>0))for(r=0;r<s;r++)if(!n.ids.has(o.ids[r])){a=!1;break}a||i.splice(t,1)}}if(0===i.length)return"";const a=[];let o="";for(const e of t.selectors)o=yn(e),a.includes(o)||a.push(o);return`${a}{${hn(e,r)}}`},ln=(e,t,r)=>""===e.value?"":r-1===t?e.property+":"+e.value:e.property+":"+e.value+";",dn=(e,t)=>{const r=hn(e,t.rules);return""===r?"":"@media "+vn(t.media)+"{"+r+"}"},un=(e,t)=>{const r=hn(e,t.keyframes);return""===r?"":"@"+(t.vendor||"")+"keyframes "+t.name+"{"+r+"}"},pn=(e,t)=>t.values.join(",")+"{"+hn(e,t.declarations)+"}",_n=(e,t)=>{const r=hn(e,t.declarations);return""===r?"":"@font-face{"+r+"}"},fn=(e,t)=>{const r=hn(e,t.rules);return""===r?"":"@supports "+t.supports+"{"+r+"}"},mn=(e,t)=>"@page "+t.selectors.join(", ")+"{"+hn(e,t.declarations)+"}",gn=(e,t)=>{const r=hn(e,t.rules),n="@"+(t.vendor||"")+"document "+t.document;return""===r?"":n+"{"+r+"}"},hn=(e,t)=>{let r="";if(t)for(let n=0,i=t.length;n<i;n++)r+=sn(e,t[n],n,i);return r},yn=e=>{let t="",r="",n=!1;for(let i=0,a=(e=e.trim()).length;i<a;i++)if(r=e[i],"["===r&&"\\"!==t[t.length-1]?n=!0:"]"===r&&"\\"!==t[t.length-1]&&(n=!1),!n&&bn.test(r)){if(En.test(e[i+1]))continue;if(xn.test(t[t.length-1]))continue;t+=" "}else t+=r;return t},vn=e=>{let t="",r="";for(let n=0,i=(e=e.trim()).length;n<i;n++)if(r=e[n],bn.test(r)){if(bn.test(t[t.length-1]))continue;t+=" "}else t+=r;return t},bn=/\s/,En=/[>\(\)\~\,\+\s]/,xn=/[>\(\~\,\+]/,Dn=async e=>{const t=en(e.css);return ne(t.diagnostics)?e.css:(W(e.resolveUrl)&&t.stylesheet&&Array.isArray(t.stylesheet.rules)&&await Sn(t.stylesheet.rules,e.resolveUrl),((e,t)=>{const r={}.usedSelectors||null,n={usedSelectors:r||null,hasUsedAttrs:!!r&&r.attrs.size>0,hasUsedClassNames:!!r&&r.classNames.size>0,hasUsedIds:!!r&&r.ids.size>0,hasUsedTags:!!r&&r.tags.size>0},i=e.rules;if(!i)return"";const a=i.length,o=[];for(let e=0;e<a;e++)o.push(sn(n,i[e],e,a));return o.join("")})(t.stylesheet))},Sn=async(e,t,r)=>{for(const r of e){if(4===r.type&&G(r.value)&&r.value.includes("url(")){const e=r.value.split(",").map((e=>e.trim()));for(let r=0;r<e.length;r++){const n=/url\((.*?)\)/.exec(e[r]);if(n)try{const i=n[1].replace(/(\'|\")/g,""),a=await t(i);e[r]=e[r].replace(i,a)}catch(e){}}r.value=e.join(",")}Array.isArray(r.declarations)&&await Sn(r.declarations,t),Array.isArray(r.rules)&&await Sn(r.rules,t),Array.isArray(r.keyframes)&&await Sn(r.keyframes,t)}},Tn=async e=>{let t={output:e.input,diagnostics:[]};return!1!==e.autoprefixer&&null!==e.autoprefixer&&(t=await(async(e,t)=>{const r={output:e,diagnostics:[]};if(!i)return r;try{const n=(e=>{const{postcss:t,autoprefixer:r}=d("../sys/node/autoprefixer.js");return Qr||(Qr=t([r(e)])),Qr})(null!=t&&"object"==typeof t?t:Zr),i=await n.process(e,{map:null});i.warnings().forEach((e=>{r.diagnostics.push({header:`Autoprefix CSS: ${e.plugin}`,messageText:e.text,level:"warn",type:"css"})})),r.output=i.css}catch(e){const t={header:"Autoprefix CSS",messageText:"CSS Error"+e,level:"error",type:"css"};if("string"==typeof e.name&&(t.header=e.name),"string"==typeof e.reason&&(t.messageText=e.reason),"string"==typeof e.source&&"number"==typeof e.line){const r=e.source.replace(/\r/g,"\n").split("\n");if(r.length>0){const n=e=>{const n=r[e];if("string"==typeof n){const e={lineIndex:-1,lineNumber:-1,text:n,errorCharStart:-1,errorLength:-1};t.lines=t.lines||[],t.lines.push(e)}};n(e.line-3),n(e.line-2),n(e.line-1),n(e.line),n(e.line+1),n(e.line+2),n(e.line+3)}}r.diagnostics.push(t)}return r})(e.input,e.autoprefixer),ne(t.diagnostics))||!1!==e.minify&&(t.output=await Dn({css:t.output,resolveUrl:e.resolveUrl})),t};var Cn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),An=e=>{if(0<=e&&e<Cn.length)return Cn[e];throw new TypeError("Must be between 0 and 63: "+e)},kn=e=>{var t,r="",n=(e=>e<0?1+(-e<<1):0+(e<<1))(e);do{t=31&n,(n>>>=5)>0&&(t|=32),r+=An(t)}while(n>0);return r},Nn=(e,t,r)=>{var n,i,a,o,s,c=e.length,l=0,d=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1==(i=65<=(s=e.charCodeAt(t++))&&s<=90?s-65:97<=s&&s<=122?s-97+26:48<=s&&s<=57?s-48+52:43==s?62:47==s?63:-1))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&i),l+=(i&=31)<<d,d+=5}while(n);r.value=(o=(a=l)>>1,1==(1&a)?-o:o),r.rest=t},wn=at(((e,t)=>{t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),l=0,d=c.length-1;d>=0;d--)"."===(o=c[d])?c.splice(d,1):".."===o?l++:l>0&&(""===o?(c.splice(d+1,l),l=0):(c.splice(d,2),l--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=s,t.isAbsolute=e=>"/"===e.charAt(0)||r.test(e),t.relative=(e,t)=>{""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function l(e){return e}function d(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function u(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?l:e=>d(e)?"$"+e:e,t.fromSetString=c?l:e=>d(e)?e.slice(1):e,t.compareByOriginalPositions=(e,t,r)=>{var n=u(e.source,t.source);return 0!==n||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)||r||0!=(n=e.generatedColumn-t.generatedColumn)||0!=(n=e.generatedLine-t.generatedLine)?n:u(e.name,t.name)},t.compareByGeneratedPositionsDeflated=(e,t,r)=>{var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=u(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:u(e.name,t.name)},t.compareByGeneratedPositionsInflated=(e,t)=>{var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=u(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:u(e.name,t.name)},t.parseSourceMapInput=e=>JSON.parse(e.replace(/^\)]}'[^\n]*\n/,"")),t.computeSourceURL=(e,t,r)=>{if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=s(a(n),t)}return o(t)}})),Fn=Object.prototype.hasOwnProperty,Pn="undefined"!=typeof Map;function In(){this._array=[],this._set=Pn?new Map:Object.create(null)}In.fromArray=(e,t)=>{for(var r=new In,n=0,i=e.length;n<i;n++)r.add(e[n],t);return r},In.prototype.size=function(){return Pn?this._set.size:Object.getOwnPropertyNames(this._set).length},In.prototype.add=function(e,t){var r=Pn?e:wn.toSetString(e),n=Pn?this.has(e):Fn.call(this._set,r),i=this._array.length;n&&!t||this._array.push(e),n||(Pn?this._set.set(e,i):this._set[r]=i)},In.prototype.has=function(e){if(Pn)return this._set.has(e);var t=wn.toSetString(e);return Fn.call(this._set,t)},In.prototype.indexOf=function(e){if(Pn){var t=this._set.get(e);if(t>=0)return t}else{var r=wn.toSetString(e);if(Fn.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},In.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},In.prototype.toArray=function(){return this._array.slice()};var On=In;function Mn(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Mn.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},Mn.prototype.add=function(e){var t,r,n,i,a,o;r=e,n=(t=this._last).generatedLine,i=r.generatedLine,a=t.generatedColumn,o=r.generatedColumn,i>n||i==n&&o>=a||wn.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Mn.prototype.toArray=function(){return this._sorted||(this._array.sort(wn.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var Rn=On,Ln={MappingList:Mn}.MappingList;function Bn(e){e||(e={}),this._file=wn.getArg(e,"file",null),this._sourceRoot=wn.getArg(e,"sourceRoot",null),this._skipValidation=wn.getArg(e,"skipValidation",!1),this._sources=new Rn,this._names=new Rn,this._mappings=new Ln,this._sourcesContents=null}Bn.prototype._version=3,Bn.fromSourceMap=e=>{var t=e.sourceRoot,r=new Bn({file:e.file,sourceRoot:t});return e.eachMapping((e=>{var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=wn.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((n=>{var i=n;null!==t&&(i=wn.relative(t,n)),r._sources.has(i)||r._sources.add(i);var a=e.sourceContentFor(n);null!=a&&r.setSourceContent(n,a)})),r},Bn.prototype.addMapping=function(e){var t=wn.getArg(e,"generated"),r=wn.getArg(e,"original",null),n=wn.getArg(e,"source",null),i=wn.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,i),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},Bn.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=wn.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[wn.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[wn.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Bn.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var i=this._sourceRoot;null!=i&&(n=wn.relative(i,n));var a=new Rn,o=new Rn;this._mappings.unsortedForEach((t=>{if(t.source===n&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=r&&(t.source=wn.join(r,t.source)),null!=i&&(t.source=wn.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var c=t.source;null==c||a.has(c)||a.add(c);var l=t.name;null==l||o.has(l)||o.add(l)}),this),this._sources=a,this._names=o,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=wn.join(r,t)),null!=i&&(t=wn.relative(i,t)),this.setSourceContent(t,n))}),this)},Bn.prototype._validateMapping=(e,t,r,n)=>{if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},Bn.prototype._serializeMappings=function(){for(var e,t,r,n,i=0,a=1,o=0,s=0,c=0,l=0,d="",u=this._mappings.toArray(),p=0,_=u.length;p<_;p++){if(e="",(t=u[p]).generatedLine!==a)for(i=0;t.generatedLine!==a;)e+=";",a++;else if(p>0){if(!wn.compareByGeneratedPositionsInflated(t,u[p-1]))continue;e+=","}e+=kn(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=kn(n-l),l=n,e+=kn(t.originalLine-1-s),s=t.originalLine-1,e+=kn(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=kn(r-c),c=r)),d+=e}return d},Bn.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=wn.relative(t,e));var r=wn.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},Bn.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},Bn.prototype.toString=function(){return JSON.stringify(this.toJSON())};var Un={SourceMapGenerator:Bn},jn=at(((e,t)=>{function r(e,n,i,a,o,s){var c=Math.floor((n-e)/2)+e,l=o(i,a[c],!0);return 0===l?c:l>0?n-c>1?r(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n<a.length?n:-1:c:c-e>1?r(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=(e,n,i,a)=>{if(0===n.length)return-1;var o=r(-1,n.length,e,n,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(n[o],n[o-1],!0);)--o;return o}}));function Vn(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function zn(e,t,r,n){if(r<n){var i=r-1;Vn(e,(c=r,l=n,Math.round(c+Math.random()*(l-c))),n);for(var a=e[n],o=r;o<n;o++)t(e[o],a)<=0&&Vn(e,i+=1,o);Vn(e,i+1,o);var s=i+1;zn(e,t,r,s-1),zn(e,t,s+1,n)}var c,l}var Hn=On,Wn=(e,t)=>{zn(e,t,0,e.length-1)};function Kn(e,t){var r=e;return"string"==typeof e&&(r=wn.parseSourceMapInput(e)),null!=r.sections?new Xn(r,t):new Gn(r,t)}Kn.fromSourceMap=(e,t)=>Gn.fromSourceMap(e,t),Kn.prototype._version=3,Kn.prototype.__generatedMappings=null,Object.defineProperty(Kn.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),Kn.prototype.__originalMappings=null,Object.defineProperty(Kn.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),Kn.prototype._charIsMappingSeparator=(e,t)=>{var r=e.charAt(t);return";"===r||","===r},Kn.prototype._parseMappings=(e,t)=>{throw new Error("Subclasses must implement _parseMappings")},Kn.GENERATED_ORDER=1,Kn.ORIGINAL_ORDER=2,Kn.GREATEST_LOWER_BOUND=1,Kn.LEAST_UPPER_BOUND=2,Kn.prototype.eachMapping=function(e,t,r){var n,i=t||null;switch(r||Kn.GENERATED_ORDER){case Kn.GENERATED_ORDER:n=this._generatedMappings;break;case Kn.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;n.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=wn.computeSourceURL(a,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},Kn.prototype.allGeneratedPositionsFor=function(e){var t=wn.getArg(e,"line"),r={source:wn.getArg(e,"source"),originalLine:t,originalColumn:wn.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var n=[],i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",wn.compareByOriginalPositions,jn.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)n.push({line:wn.getArg(a,"generatedLine",null),column:wn.getArg(a,"generatedColumn",null),lastColumn:wn.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)n.push({line:wn.getArg(a,"generatedLine",null),column:wn.getArg(a,"generatedColumn",null),lastColumn:wn.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n};var Jn=Kn;function Gn(e,t){var r=e;"string"==typeof e&&(r=wn.parseSourceMapInput(e));var n=wn.getArg(r,"version"),i=wn.getArg(r,"sources"),a=wn.getArg(r,"names",[]),o=wn.getArg(r,"sourceRoot",null),s=wn.getArg(r,"sourcesContent",null),c=wn.getArg(r,"mappings"),l=wn.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=wn.normalize(o)),i=i.map(String).map(wn.normalize).map((e=>o&&wn.isAbsolute(o)&&wn.isAbsolute(e)?wn.relative(o,e):e)),this._names=Hn.fromArray(a.map(String),!0),this._sources=Hn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map((e=>wn.computeSourceURL(o,e,t))),this.sourceRoot=o,this.sourcesContent=s,this._mappings=c,this._sourceMapURL=t,this.file=l}function $n(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Gn.prototype=Object.create(Kn.prototype),Gn.prototype.consumer=Kn,Gn.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=wn.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},Gn.fromSourceMap=(e,t)=>{var r=Object.create(Gn.prototype),n=r._names=Hn.fromArray(e._names.toArray(),!0),i=r._sources=Hn.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map((e=>wn.computeSourceURL(r.sourceRoot,e,t)));for(var a=e._mappings.toArray().slice(),o=r.__generatedMappings=[],s=r.__originalMappings=[],c=0,l=a.length;c<l;c++){var d=a[c],u=new $n;u.generatedLine=d.generatedLine,u.generatedColumn=d.generatedColumn,d.source&&(u.source=i.indexOf(d.source),u.originalLine=d.originalLine,u.originalColumn=d.originalColumn,d.name&&(u.name=n.indexOf(d.name)),s.push(u)),o.push(u)}return Wn(r.__originalMappings,wn.compareByOriginalPositions),r},Gn.prototype._version=3,Object.defineProperty(Gn.prototype,"sources",{get(){return this._absoluteSources.slice()}}),Gn.prototype._parseMappings=function(e,t){for(var r,n,i,a,o,s=1,c=0,l=0,d=0,u=0,p=0,_=e.length,f=0,m={},g={},h=[],y=[];f<_;)if(";"===e.charAt(f))s++,f++,c=0;else if(","===e.charAt(f))f++;else{for((r=new $n).generatedLine=s,a=f;a<_&&!this._charIsMappingSeparator(e,a);a++);if(i=m[n=e.slice(f,a)])f+=n.length;else{for(i=[];f<a;)Nn(e,f,g),o=g.value,f=g.rest,i.push(o);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");m[n]=i}r.generatedColumn=c+i[0],c=r.generatedColumn,i.length>1&&(r.source=u+i[1],u+=i[1],r.originalLine=l+i[2],l=r.originalLine,r.originalLine+=1,r.originalColumn=d+i[3],d=r.originalColumn,i.length>4&&(r.name=p+i[4],p+=i[4])),y.push(r),"number"==typeof r.originalLine&&h.push(r)}Wn(y,wn.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,Wn(h,wn.compareByOriginalPositions),this.__originalMappings=h},Gn.prototype._findMapping=(e,t,r,n,i,a)=>{if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return jn.search(e,t,i,a)},Gn.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},Gn.prototype.originalPositionFor=function(e){var t={generatedLine:wn.getArg(e,"line"),generatedColumn:wn.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",wn.compareByGeneratedPositionsDeflated,wn.getArg(e,"bias",Kn.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var i=wn.getArg(n,"source",null);null!==i&&(i=this._sources.at(i),i=wn.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=wn.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:wn.getArg(n,"originalLine",null),column:wn.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},Gn.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((e=>null==e))},Gn.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var n,i=e;if(null!=this.sourceRoot&&(i=wn.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(n=wn.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!n.path||"/"==n.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},Gn.prototype.generatedPositionFor=function(e){var t=wn.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:wn.getArg(e,"line"),originalColumn:wn.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",wn.compareByOriginalPositions,wn.getArg(e,"bias",Kn.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===r.source)return{line:wn.getArg(i,"generatedLine",null),column:wn.getArg(i,"generatedColumn",null),lastColumn:wn.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var qn=Gn;function Xn(e,t){var r=e;"string"==typeof e&&(r=wn.parseSourceMapInput(e));var n=wn.getArg(r,"version"),i=wn.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Hn,this._names=new Hn;var a={line:-1,column:0};this._sections=i.map((e=>{if(e.url)throw new Error("Support for url field in sections not implemented.");var r=wn.getArg(e,"offset"),n=wn.getArg(r,"line"),i=wn.getArg(r,"column");if(n<a.line||n===a.line&&i<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=r,{generatedOffset:{generatedLine:n+1,generatedColumn:i+1},consumer:new Kn(wn.getArg(e,"map"),t)}}))}Xn.prototype=Object.create(Kn.prototype),Xn.prototype.constructor=Kn,Xn.prototype._version=3,Object.defineProperty(Xn.prototype,"sources",{get(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),Xn.prototype.originalPositionFor=function(e){var t={generatedLine:wn.getArg(e,"line"),generatedColumn:wn.getArg(e,"column")},r=jn.search(t,this._sections,((e,t)=>e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn)),n=this._sections[r];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},Xn.prototype.hasContentsOfAllSources=function(){return this._sections.every((e=>e.consumer.hasContentsOfAllSources()))},Xn.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},Xn.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer._findSourceIndex(wn.getArg(e,"source"))){var n=r.consumer.generatedPositionFor(e);if(n)return{line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},Xn.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],i=n.consumer._generatedMappings,a=0;a<i.length;a++){var o=i[a],s=n.consumer._sources.at(o.source);s=wn.computeSourceURL(n.consumer.sourceRoot,s,this._sourceMapURL),this._sources.add(s),s=this._sources.indexOf(s);var c=null;o.name&&(c=n.consumer._names.at(o.name),this._names.add(c),c=this._names.indexOf(c));var l={source:s,generatedLine:o.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(n.generatedOffset.generatedLine===o.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:c};this.__generatedMappings.push(l),"number"==typeof l.originalLine&&this.__originalMappings.push(l)}Wn(this.__generatedMappings,wn.compareByGeneratedPositionsDeflated),Wn(this.__originalMappings,wn.compareByOriginalPositions)};var Yn={SourceMapConsumer:Jn,BasicSourceMapConsumer:qn,IndexedSourceMapConsumer:Xn},Qn=Un.SourceMapGenerator,Zn=/(\r?\n)/,ei="$$$isSourceNode$$$";function ti(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[ei]=!0,null!=n&&this.add(n)}ti.fromStringWithSourceMap=function(e,t,r){var n=new ti,i=e.split(Zn),a=0,o=()=>{return e()+(e()||"");function e(){return a<i.length?i[a++]:void 0}},s=1,c=0,l=null;return t.eachMapping((e=>{if(null!==l){if(!(s<e.generatedLine)){var t=(r=i[a]||"").substr(0,e.generatedColumn-c);return i[a]=r.substr(e.generatedColumn-c),c=e.generatedColumn,d(l,t),l=e,void 0}d(l,o()),s++,c=0}for(;s<e.generatedLine;)n.add(o()),s++;if(c<e.generatedColumn){var r=i[a]||"";n.add(r.substr(0,e.generatedColumn)),i[a]=r.substr(e.generatedColumn),c=e.generatedColumn}l=e}),this),a<i.length&&(l&&d(l,o()),n.add(i.splice(a).join(""))),t.sources.forEach((e=>{var i=t.sourceContentFor(e);null!=i&&(null!=r&&(e=wn.join(r,e)),n.setSourceContent(e,i))})),n;function d(e,t){if(null===e||void 0===e.source)n.add(t);else{var i=r?wn.join(r,e.source):e.source;n.add(new ti(e.originalLine,e.originalColumn,i,t,e.name))}}},ti.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[ei]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},ti.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[ei]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},ti.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[ei]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},ti.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},ti.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[ei]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},ti.prototype.setSourceContent=function(e,t){this.sourceContents[wn.toSetString(e)]=t},ti.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][ei]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(wn.fromSetString(n[t]),this.sourceContents[n[t]])},ti.prototype.toString=function(){var e="";return this.walk((t=>{e+=t})),e},ti.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new Qn(e),n=!1,i=null,a=null,o=null,s=null;return this.walk(((e,c)=>{t.code+=e,null!==c.source&&null!==c.line&&null!==c.column?(i===c.source&&a===c.line&&o===c.column&&s===c.name||r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:t.line,column:t.column},name:c.name}),i=c.source,a=c.line,o=c.column,s=c.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),i=null,n=!1);for(var l=0,d=e.length;l<d;l++)10===e.charCodeAt(l)?(t.line++,t.column=0,l+1===d?(i=null,n=!1):n&&r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:t.line,column:t.column},name:c.name})):t.column++})),this.walkSourceContents(((e,t)=>{r.setSourceContent(e,t)})),{code:t.code,map:r}};var ri={SourceMapGenerator:Un.SourceMapGenerator,SourceMapConsumer:Yn.SourceMapConsumer,SourceNode:{SourceNode:ti}.SourceNode},ni=ri.SourceMapConsumer,ii=ri.SourceMapGenerator;function ai(e){return e.split("")}function oi(e,t){return t.includes(e)}class si extends Error{constructor(e,t){super(),this.name="DefaultsError",this.message=e,this.defs=t}}function ci(e,t,r){!0===e&&(e={}),null!=e&&"object"==typeof e&&(e=Object.assign({},e));const n=e||{};if(r)for(const e in n)if(Di(n,e)&&!Di(t,e))throw new si("`"+e+"` is not a supported option",t);for(const r in t)if(Di(t,r))if(e&&Di(e,r))if("ecma"===r){let t=0|e[r];t>5&&t<2015&&(t+=2009),n[r]=t}else n[r]=e&&Di(e,r)?e[r]:t[r];else n[r]=t[r];return n}function li(){}function di(){return!1}function ui(){return!0}function pi(){return this}function _i(){return null}var fi=function(){function e(e,a,o){var s,c=[],l=[];function d(){var d=a(e[s],s),u=d instanceof i;return u&&(d=d.v),d instanceof r?(d=d.v)instanceof n?l.push.apply(l,o?d.v.slice().reverse():d.v):l.push(d):d!==t&&(d instanceof n?c.push.apply(c,o?d.v.slice().reverse():d.v):c.push(d)),u}if(Array.isArray(e))if(o){for(s=e.length;--s>=0&&!d(););c.reverse(),l.reverse()}else for(s=0;s<e.length&&!d();++s);else for(s in e)if(Di(e,s)&&d())break;return l.concat(c)}e.at_top=e=>new r(e),e.splice=e=>new n(e),e.last=e=>new i(e);var t=e.skip={};function r(e){this.v=e}function n(e){this.v=e}function i(e){this.v=e}return e}();function mi(e,t,r){return r||(r={}),t&&(r.start||(r.start=t.start),r.end||(r.end=t.end)),new e(r)}function gi(e,t){e.includes(t)||e.push(t)}function hi(e,t){return e.replace(/{(.+?)}/g,((e,r)=>t&&t[r]))}function yi(e,t){for(var r=e.length;--r>=0;)e[r]===t&&e.splice(r,1)}function vi(e,t){return e.length<2?e.slice():function e(r){if(r.length<=1)return r;var n=Math.floor(r.length/2),i=r.slice(0,n),a=r.slice(n);return((e,r)=>{for(var n=[],i=0,a=0,o=0;i<e.length&&a<r.length;)t(e[i],r[a])<=0?n[o++]=e[i++]:n[o++]=r[a++];return i<e.length&&n.push.apply(n,e.slice(i)),a<r.length&&n.push.apply(n,r.slice(a)),n})(i=e(i),a=e(a))}(e)}function bi(e){return Array.isArray(e)||(e=e.split(" ")),new Set(e)}function Ei(e,t,r){e.has(t)?e.get(t).push(r):e.set(t,[r])}function xi(e){var t=Object.create(null);return e.forEach(((e,r)=>{t["$"+r]=e})),t}function Di(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Si(e,t){return!0===e||e instanceof RegExp&&e.test(t)}var Ti={"\0":"0","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Ci(e){return e.replace(/[\0\n\r\u2028\u2029]/g,((t,r)=>("\\"!=e[r-1]||"\\"==e[r-2]&&!/(?:^|[^\\])(?:\\{2})*$/.test(e.slice(0,r-1))?"\\":"")+Ti[t]))}function Ai(e,t){return e._annotations&t}function ki(e,t){e._annotations|=t}var Ni="",wi=!0,Fi="break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with",Pi="false null true",Ii="enum implements import interface package private protected public static super this "+Pi+" "+Fi,Oi="return new delete throw else case yield await";Fi=bi(Fi),Ii=bi(Ii),Oi=bi(Oi),Pi=bi(Pi);var Mi=bi(ai("+-*&%=<>!?|~^")),Ri=/[0-9a-f]/i,Li=/^0x[0-9a-f]+$/i,Bi=/^0[0-7]+$/,Ui=/^0o[0-7]+$/i,ji=/^0b[01]+$/i,Vi=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,zi=/^(0[xob])?[0-9a-f]+n$/i,Hi=bi(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","||=","&&=","??=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","??","||"]),Wi=bi(ai(" \n\r\t\f\v \u2028\u2029 \ufeff")),Ki=bi(ai("\n\r\u2028\u2029")),Ji=bi(ai(";]),:")),Gi=bi(ai("[{(,;:")),$i=bi(ai("[]{}(),;:")),qi={ID_Start:/[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/(?:[$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])+/};function Xi(e,t){if(Yi(e.charCodeAt(t))){if(Qi(e.charCodeAt(t+1)))return e.charAt(t)+e.charAt(t+1)}else if(Qi(e.charCodeAt(t))&&Yi(e.charCodeAt(t-1)))return e.charAt(t-1)+e.charAt(t);return e.charAt(t)}function Yi(e){return e>=55296&&e<=56319}function Qi(e){return e>=56320&&e<=57343}function Zi(e){return e>=48&&e<=57}function ea(e){return qi.ID_Start.test(e)}function ta(e){return qi.ID_Continue.test(e)}const ra=/^[a-z_$][a-z0-9_$]*$/i;function na(e){return ra.test(e)}function ia(e,t){if(ra.test(e))return!0;if(!t&&/[\ud800-\udfff]/.test(e))return!1;var r=qi.ID_Start.exec(e);return!(!r||0!==r.index||(e=e.slice(r[0].length))&&(!(r=qi.ID_Continue.exec(e))||r[0].length!==e.length))}function aa(e,t=!0){if(!t&&e.includes("e"))return NaN;if(Li.test(e))return parseInt(e.substr(2),16);if(Bi.test(e))return parseInt(e.substr(1),8);if(Ui.test(e))return parseInt(e.substr(2),8);if(ji.test(e))return parseInt(e.substr(2),2);if(Vi.test(e))return parseFloat(e);var r=parseFloat(e);return r==e?r:void 0}class oa extends Error{constructor(e,t,r,n,i){super(),this.name="SyntaxError",this.message=e,this.filename=t,this.line=r,this.col=n,this.pos=i}}function sa(e,t,r,n,i){throw new oa(e,t,r,n,i)}function ca(e,t,r){return e.type==t&&(null==r||e.value==r)}var la={};function da(e,t,r,n){var i={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function a(){return Xi(i.text,i.pos)}function o(){if(46!==i.text.charCodeAt(i.pos+1))return!1;const e=i.text.charCodeAt(i.pos+2);return e<48||e>57}function s(e,t){var r=Xi(i.text,i.pos++);if(e&&!r)throw la;return Ki.has(r)?(i.newline_before=i.newline_before||!t,++i.line,i.col=0,"\r"==r&&"\n"==a()&&(++i.pos,r="\n")):(r.length>1&&(++i.pos,++i.col),++i.col),r}function c(e){for(;e--;)s()}function l(e){return i.text.substr(i.pos,e.length)==e}function d(e,t){var r=i.text.indexOf(e,i.pos);if(t&&-1==r)throw la;return r}function u(){i.tokline=i.line,i.tokcol=i.col,i.tokpos=i.pos}var p=!1,_=null;function f(e,r,n){i.regex_allowed="operator"==e&&!pa.has(r)||"keyword"==e&&Oi.has(r)||"punc"==e&&Gi.has(r)||"arrow"==e,"punc"!=e||"."!=r&&"?."!=r?n||(p=!1):p=!0;const a=i.tokline,o=i.tokcol,s=i.tokpos,c=i.newline_before,l=t;let d=[],u=[];n||(d=i.comments_before,u=i.comments_before=[]),i.newline_before=!1;const f=new Ea(e,r,a,o,s,c,d,u,l);return n||(_=f),f}function m(){for(;Wi.has(a());)s()}function g(e){sa(e,t,i.tokline,i.tokcol,i.tokpos)}function h(e){var t=!1,r=!1,n=!1,i="."==e,o=!1,c=!1,l=(e=>{for(var t,r="",n=0;(t=a())&&e(t,n++);)r+=s();return r})(((a,s)=>{if(o)return!1;switch(a.charCodeAt(0)){case 95:return c=!0;case 98:case 66:return n=!0;case 111:case 79:case 120:case 88:return!n&&(n=!0);case 101:case 69:return!!n||!t&&(t=r=!0);case 45:return r||0==s&&!e;case 43:return r;case r=!1,46:return!(i||n||t)&&(i=!0)}return"n"===a?(o=!0,!0):Ri.test(a)}));if(e&&(l=e+l),Ni=l,Bi.test(l)&&w.has_directive("use strict")&&g("Legacy octal literals are not allowed in strict mode"),c&&(l.endsWith("_")?g("Numeric separators are not allowed at the end of numeric literals"):l.includes("__")&&g("Only one underscore is allowed as numeric separator"),l=l.replace(/_/g,"")),l.endsWith("n")){const e=l.slice(0,-1),t=aa(e,Li.test(e));if(!i&&zi.test(l)&&!isNaN(t))return f("big_int",e);g("Invalid or unexpected token")}var d=aa(l);if(!isNaN(d))return f("num",d);g("Invalid syntax: "+l)}function y(e){return e>="0"&&e<="7"}function v(e,t,r){var n=s(!0,e);switch(n.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(b(2,t));case 117:if("{"==a()){for(s(!0),"}"===a()&&g("Expecting hex-character between {}");"0"==a();)s(!0);var o,c=d("}",!0)-i.pos;return(c>6||(o=b(c,t))>1114111)&&g("Unicode reference out of bounds"),s(!0),(e=>e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e))(o)}return String.fromCharCode(b(4,t));case 10:return"";case 13:if("\n"==a())return s(!0,e),""}return y(n)?(r&&t&&("0"===n&&!y(a())||g("Octal escape sequences are not allowed in template strings")),((e,t)=>{var r=a();return r>="0"&&r<="7"&&(e+=s(!0))[0]<="3"&&(r=a())>="0"&&r<="7"&&(e+=s(!0)),"0"===e?"\0":(e.length>0&&w.has_directive("use strict")&&t&&g("Legacy octal escape sequences are not allowed in strict mode"),String.fromCharCode(parseInt(e,8)))})(n,t)):n}function b(e,t){for(var r=0;e>0;--e){if(!t&&isNaN(parseInt(a(),16)))return parseInt(r,16)||"";var n=s(!0);isNaN(parseInt(n,16))&&g("Invalid hex-character pattern in string"),r+=n}return parseInt(r,16)}var E=N("Unterminated string constant",(()=>{const e=i.pos;for(var t=s(),r=[];;){var n=s(!0,!0);if("\\"==n)n=v(!0,!0);else if("\r"==n||"\n"==n)g("Unterminated string constant");else if(n==t)break;r.push(n)}var a=f("string",r.join(""));return Ni=i.text.slice(e,i.pos),a.quote=t,a})),x=N("Unterminated template",(e=>{e&&i.template_braces.push(i.brace_counter);var t,r,n="",o="";for(s(!0,!0);"`"!=(t=s(!0,!0));){if("\r"==t)"\n"==a()&&++i.pos,t="\n";else if("$"==t&&"{"==a())return s(!0,!0),i.brace_counter++,r=f(e?"template_head":"template_substitution",n),Ni=o,wi=!1,r;if(o+=t,"\\"==t){var c=i.pos;t=v(!0,!(_&&("name"===_.type||"punc"===_.type&&(")"===_.value||"]"===_.value))),!0),o+=i.text.substr(c,i.pos-c)}n+=t}return i.template_braces.pop(),r=f(e?"template_head":"template_substitution",n),Ni=o,wi=!0,r}));function D(e){var t,r=i.regex_allowed,n=(()=>{for(var e=i.text,t=i.pos,r=i.text.length;t<r;++t){var n=e[t];if(Ki.has(n))return t}return-1})();return-1==n?(t=i.text.substr(i.pos),i.pos=i.text.length):(t=i.text.substring(i.pos,n),i.pos=n),i.col=i.tokcol+(i.pos-i.tokpos),i.comments_before.push(f(e,t,!0)),i.regex_allowed=r,w}var S=N("Unterminated multiline comment",(()=>{var e=i.regex_allowed,t=d("*/",!0),r=i.text.substring(i.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,"\n");return c((e=>{for(var t=0,r=0;r<e.length;r++)Yi(e.charCodeAt(r))&&Qi(e.charCodeAt(r+1))&&(t++,r++);return e.length-t})(r)+2),i.comments_before.push(f("comment2",r,!0)),i.newline_before=i.newline_before||r.includes("\n"),i.regex_allowed=e,w})),T=N("Unterminated identifier name",(()=>{var e,t=[],r=!1,n=()=>(r=!0,s(),"u"!==a()&&g("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}"),v(!1,!0));if("\\"===(e=a()))ea(e=n())||g("First identifier char is an invalid identifier char");else{if(!ea(e))return"";s()}for(t.push(e);null!=(e=a());){if("\\"===(e=a()))ta(e=n())||g("Invalid escaped identifier char");else{if(!ta(e))break;s()}t.push(e)}const i=t.join("");return Ii.has(i)&&r&&g("Escaped characters are not allowed in keywords"),i})),C=N("Unterminated regular expression",(e=>{for(var t,r=!1,n=!1;t=s(!0);)if(Ki.has(t))g("Unexpected line terminator");else if(r)e+="\\"+t,r=!1;else if("["==t)n=!0,e+=t;else if("]"==t&&n)n=!1,e+=t;else{if("/"==t&&!n)break;"\\"==t?r=!0:e+=t}return f("regexp","/"+e+"/"+T())}));function A(e){return f("operator",function e(t){if(!a())return t;var r=t+a();return Hi.has(r)?(s(),e(r)):t}(e||s()))}function k(){switch(s(),a()){case"/":return s(),D("comment1");case"*":return s(),S()}return i.regex_allowed?C(""):A("/")}function N(e,t){return r=>{try{return t(r)}catch(t){if(t!==la)throw t;g(e)}}}function w(e){if(null!=e)return C(e);for(n&&0==i.pos&&l("#!")&&(u(),c(2),D("comment5"));;){if(m(),u(),r){if(l("\x3c!--")){c(4),D("comment3");continue}if(l("--\x3e")&&i.newline_before){c(3),D("comment4");continue}}var t=a();if(!t)return f("eof");var d=t.charCodeAt(0);switch(d){case 34:case 39:return E();case 46:return s(),Zi(a().charCodeAt(0))?h("."):"."===a()?(s(),s(),f("expand","...")):f("punc",".");case 47:var _=k();if(_===w)continue;return _;case 61:return s(),">"===a()?(s(),f("arrow","=>")):A("=");case 63:if(!o())break;return s(),s(),f("punc","?.");case 96:return x(!0);case 123:i.brace_counter++;break;case 125:if(i.brace_counter--,i.template_braces.length>0&&i.template_braces[i.template_braces.length-1]===i.brace_counter)return x(!1)}if(Zi(d))return h();if($i.has(t))return f("punc",s());if(Mi.has(t))return A();if(92==d||ea(t))return y=T(),p?f("name",y):Pi.has(y)?f("atom",y):Fi.has(y)?Hi.has(y)?f("operator",y):f("keyword",y):f("name",y);if(35==d)return s(),f("privatename",T());break}var y;g("Unexpected character '"+t+"'")}return w.next=s,w.peek=a,w.context=e=>(e&&(i=e),i),w.add_directive=e=>{i.directive_stack[i.directive_stack.length-1].push(e),void 0===i.directives[e]?i.directives[e]=1:i.directives[e]++},w.push_directives_stack=()=>{i.directive_stack.push([])},w.pop_directives_stack=()=>{for(var e=i.directive_stack[i.directive_stack.length-1],t=0;t<e.length;t++)i.directives[e[t]]--;i.directive_stack.pop()},w.has_directive=e=>i.directives[e]>0,w}var ua=bi(["typeof","void","delete","--","++","!","~","-","+"]),pa=bi(["--","++"]),_a=bi(["=","+=","-=","??=","&&=","||=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]),fa=bi(["??=","&&=","||="]),ma=((e,t)=>{for(var r=0;r<e.length;++r)for(var n=e[r],i=0;i<n.length;++i)t[n[i]]=r+1;return t})([["||"],["??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{}),ga=bi(["atom","num","big_int","string","regexp","name"]);function ha(e,t){const r=new WeakMap;t=ci(t,{bare_returns:!1,ecma:null,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var n={input:"string"==typeof e?da(e,t.filename,t.html5_comments,t.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:!0,in_loop:0,labels:[]};function i(e,t){return ca(n.token,e,t)}function a(){return n.peeked||(n.peeked=n.input())}function o(){return n.prev=n.token,n.peeked||a(),n.token=n.peeked,n.peeked=null,n.in_directives=n.in_directives&&("string"==n.token.type||i("punc",";")),n.token}function s(){return n.prev}function c(e,t,r,i){var a=n.input.context();sa(e,a.filename,null!=t?t:a.tokline,null!=r?r:a.tokcol,null!=i?i:a.tokpos)}function l(e,t){c(t,e.line,e.col)}function d(e){null==e&&(e=n.token),l(e,"Unexpected token: "+e.type+" ("+e.value+")")}function u(e,t){if(i(e,t))return o();l(n.token,"Unexpected token "+n.token.type+" «"+n.token.value+"», expected "+e+" «"+t+"»")}function p(e){return u("punc",e)}function _(e){return e.nlb||!e.comments_before.every((e=>!e.nlb))}function f(){return!t.strict&&(i("eof")||i("punc","}")||_(n.token))}function m(){return n.in_generator===n.in_function}function g(){return n.in_async===n.in_function||0===n.in_function&&n.input.has_directive("use strict")}function h(e){i("punc",";")?o():e||f()||d()}function y(){p("(");var e=me(!0);return p(")"),e}function v(e){return(...t)=>{const r=n.token,i=e(...t);return i.start=r,i.end=s(),i}}function b(){(i("operator","/")||i("operator","/="))&&(n.peeked=null,n.token=n.input(n.token.value.substr(1)))}n.token=o();var E=v((function e(r,m,v){switch(b(),n.token.type){case"string":if(n.in_directives){var E=a();!Ni.includes("\\")&&(ca(E,"punc",";")||ca(E,"punc","}")||_(E)||ca(E,"eof"))?n.input.add_directive(n.token.value):n.in_directives=!1}var k=n.in_directives,w=D();return k&&w.body instanceof ks?new Ta(w.body):w;case"template_head":case"num":case"big_int":case"regexp":case"operator":case"atom":return D();case"name":if("async"==n.token.value&&ca(a(),"keyword","function"))return o(),o(),m&&c("functions are not allowed as the body of a loop"),N(qa,!1,!0,r);if("import"==n.token.value&&!ca(a(),"punc","(")&&!ca(a(),"punc",".")){o();var P=(()=>{var e,t,r=s();i("name")&&(e=ae(ys)),i("punc",",")&&o(),((t=Z(!0))||e)&&u("name","from");var a=n.token;return"string"!==a.type&&d(),o(),new So({start:r,imported_name:e,imported_names:t,module_name:new ks({start:a,value:a.value,quote:a.quote,end:a}),end:n.token})})();return h(),P}return ca(a(),"punc",":")?x():D();case"punc":switch(n.token.value){case"{":return new wa({start:n.token,body:M(),end:s()});case"[":case"(":return D();case";":return n.in_directives=!1,o(),new Fa;default:d()}case"keyword":switch(n.token.value){case"break":return o(),S(ao);case"continue":return o(),S(oo);case"debugger":return o(),h(),new Sa;case"do":o();var I=ge(e);u("keyword","while");var L=y();return h(!0),new Ra({body:I,condition:L});case"while":return o(),new La({condition:y(),body:ge((()=>e(!1,!0)))});case"for":return o(),(()=>{var e="`for await` invalid in this context",t=n.token;"name"==t.type&&"await"==t.value?(g()||l(t,e),o()):t=!1,p("(");var r=null;if(i("punc",";"))t&&l(t,e);else{r=i("keyword","var")?(o(),B(!0)):i("keyword","let")?(o(),U(!0)):i("keyword","const")?(o(),j(!0)):me(!0,!0);var a=i("operator","in"),s=i("name","of");if(t&&!s&&l(t,e),a||s)return r instanceof yo?r.definitions.length>1&&l(r.start,"Only one variable declaration allowed in for..in loop"):pe(r)||(r=_e(r))instanceof Xa||l(r.start,"Invalid left-hand side in for..in loop"),o(),a?A(r):C(r,!!t)}return T(r)})();case"class":return o(),m&&c("classes are not allowed as the body of a loop"),v&&c("classes are not allowed as the body of an if"),q(ts);case"function":return o(),m&&c("functions are not allowed as the body of a loop"),N(qa,!1,!1,r);case"if":return o(),O();case"return":0!=n.in_function||t.bare_returns||c("'return' outside of function"),o();var V=null;return i("punc",";")?o():f()||(V=me(!0),h()),new ro({value:V});case"switch":return o(),new uo({expression:y(),body:ge(R)});case"throw":return o(),_(n.token)&&c("Illegal newline after 'throw'"),V=me(!0),h(),new no({value:V});case"try":return o(),(()=>{var e=M(),t=null,r=null;if(i("keyword","catch")){var a=n.token;if(o(),i("punc","{"))var l=null;else p("("),l=F(void 0,hs),p(")");t=new go({start:a,argname:l,body:M(),end:s()})}return i("keyword","finally")&&(a=n.token,o(),r=new ho({start:a,body:M(),end:s()})),t||r||c("Missing catch/finally blocks"),new mo({body:e,bcatch:t,bfinally:r})})();case"var":return o(),P=B(),h(),P;case"let":return o(),P=U(),h(),P;case"const":return o(),P=j(),h(),P;case"with":return n.input.has_directive("use strict")&&c("Strict mode may not include a with statement"),o(),new Va({expression:y(),body:e()});case"export":if(!ca(a(),"punc","("))return o(),P=ee(),i("punc",";")&&h(),P}}d()}));function x(){var e=ae(bs);"await"===e.name&&n.in_async===n.in_function&&l(n.prev,"await cannot be used as label inside async function"),n.labels.some((t=>t.name===e.name))&&c("Label "+e.name+" defined twice"),p(":"),n.labels.push(e);var t=E();return n.labels.pop(),t instanceof Oa||e.references.forEach((t=>{t instanceof oo&&(t=t.label.start,c("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos))})),new Ia({body:t,label:e})}function D(e){return new Ca({body:(e=me(!0),h(),e)})}function S(e){var t,r=null;f()||(r=ae(Ss,!0)),null!=r?((t=n.labels.find((e=>e.name===r.name)))||c("Undefined label "+r.name),r.thedef=t):0==n.in_loop&&c(e.TYPE+" not inside a loop or switch"),h();var i=new e({label:r});return t&&t.references.push(i),i}function T(e){p(";");var t=i("punc",";")?null:me(!0);p(";");var r=i("punc",")")?null:me(!0);return p(")"),new Ba({init:e,condition:t,step:r,body:ge((()=>E(!1,!0)))})}function C(e,t){var r=e instanceof yo?e.definitions[0].name:null,n=me(!0);return p(")"),new ja({await:t,init:e,name:r,object:n,body:ge((()=>E(!1,!0)))})}function A(e){var t=me(!0);return p(")"),new Ua({init:e,object:t,body:ge((()=>E(!1,!0)))})}var k=(e,t,r)=>{_(n.token)&&c("Unexpected newline before arrow (=>)"),u("arrow","=>");var a=I(i("punc","{"),!1,r),o=a instanceof Array&&a.length?a[a.length-1].end:a instanceof Array?e:a.end;return new $a({start:e,end:o,async:r,argnames:t,body:a})},N=(e,t,r,n)=>{var a=e===qa,c=i("operator","*");c&&o();var l=i("name")?ae(a?us:fs):null;a&&!l&&(n?e=Ga:d()),!l||e===Ja||l instanceof as||d(s());var u=[],p=I(!0,c||t,r,l,u);return new e({start:u.start,end:p.end,is_generator:c,async:r,name:l,argnames:u,body:p})};function w(e,t){var r=new Set,n=!1,i=!1,a=!1,o=!!t,s={add_parameter(t){if(r.has(t.value))!1===n&&(n=t),s.check_strict();else if(r.add(t.value),e)switch(t.value){case"arguments":case"eval":case"yield":o&&l(t,"Unexpected "+t.value+" identifier as parameter inside strict mode");break;default:Ii.has(t.value)&&d()}},mark_default_assignment(e){!1===i&&(i=e)},mark_spread(e){!1===a&&(a=e)},mark_strict_mode(){o=!0},is_strict:()=>!1!==i||!1!==a||o,check_strict(){s.is_strict()&&!1!==n&&l(n,"Parameter "+n.value+" was used already")}};return s}function F(e,t){var r,a=!1;return void 0===e&&(e=w(!0,n.input.has_directive("use strict"))),i("expand","...")&&(a=n.token,e.mark_spread(n.token),o()),r=P(e,t),i("operator","=")&&!1===a&&(e.mark_default_assignment(n.token),o(),r=new Vo({start:r.start,left:r,operator:"=",right:me(!1),end:n.token})),!1!==a&&(i("punc",")")||d(),r=new Wa({start:a,expression:r,end:a})),e.check_strict(),r}function P(e,t){var r,l=[],u=!0,_=!1,f=n.token;if(void 0===e&&(e=w(!1,n.input.has_directive("use strict"))),t=void 0===t?ds:t,i("punc","[")){for(o();!i("punc","]");){if(u?u=!1:p(","),i("expand","...")&&(_=!0,r=n.token,e.mark_spread(n.token),o()),i("punc"))switch(n.token.value){case",":l.push(new Rs({start:n.token,end:n.token}));continue;case"]":break;case"[":case"{":l.push(P(e,t));break;default:d()}else i("name")?(e.add_parameter(n.token),l.push(ae(t))):c("Invalid function parameter");i("operator","=")&&!1===_&&(e.mark_default_assignment(n.token),o(),l[l.length-1]=new Vo({start:l[l.length-1].start,left:l[l.length-1],operator:"=",right:me(!1),end:n.token})),_&&(i("punc","]")||c("Rest element must be last element"),l[l.length-1]=new Wa({start:r,expression:l[l.length-1],end:r}))}return p("]"),e.check_strict(),new Xa({start:f,names:l,is_array:!0,end:s()})}if(i("punc","{")){for(o();!i("punc","}");){if(u?u=!1:p(","),i("expand","...")&&(_=!0,r=n.token,e.mark_spread(n.token),o()),i("name")&&(ca(a(),"punc")||ca(a(),"operator"))&&[",","}","="].includes(a().value)){e.add_parameter(n.token);var m=s(),g=ae(t);_?l.push(new Wa({start:r,expression:g,end:g.end})):l.push(new Ko({start:m,key:g.name,value:g,end:g.end}))}else{if(i("punc","}"))continue;var h=n.token,y=te();null===y?d(s()):"name"!==s().type||i("punc",":")?(p(":"),l.push(new Ko({start:h,quote:h.quote,key:y,value:P(e,t),end:s()}))):l.push(new Ko({start:s(),key:y,value:new t({start:s(),name:y,end:s()}),end:s()}))}_?i("punc","}")||c("Rest element must be last element"):i("operator","=")&&(e.mark_default_assignment(n.token),o(),l[l.length-1].value=new Vo({start:l[l.length-1].value.start,left:l[l.length-1].value,operator:"=",right:me(!1),end:n.token}))}return p("}"),e.check_strict(),new Xa({start:f,names:l,is_array:!1,end:s()})}if(i("name"))return e.add_parameter(n.token),ae(t);c("Invalid function parameter")}function I(e,t,r,a,s){var c=n.in_loop,l=n.labels,d=n.in_generator,u=n.in_async;if(++n.in_function,t&&(n.in_generator=n.in_function),r&&(n.in_async=n.in_function),s&&(e=>{var t=w(!0,n.input.has_directive("use strict"));for(p("(");!i("punc",")");){var r=F(t);if(e.push(r),i("punc",")")||p(","),r instanceof Wa)break}o()})(s),e&&(n.in_directives=!0),n.in_loop=0,n.labels=[],e){n.input.push_directives_stack();var _=M();a&&ie(a),s&&s.forEach(ie),n.input.pop_directives_stack()}else _=[new ro({start:n.token,value:me(!1),end:n.token})];return--n.in_function,n.in_loop=c,n.labels=l,n.in_generator=d,n.in_async=u,_}function O(){var e=y(),t=E(!1,!1,!0),r=null;return i("keyword","else")&&(o(),r=E(!1,!1,!0)),new lo({condition:e,body:t,alternative:r})}function M(){p("{");for(var e=[];!i("punc","}");)i("eof")&&d(),e.push(E());return o(),e}function R(){p("{");for(var e,t=[],r=null,a=null;!i("punc","}");)i("eof")&&d(),i("keyword","case")?(a&&(a.end=s()),r=[],a=new fo({start:(e=n.token,o(),e),expression:me(!0),body:r}),t.push(a),p(":")):i("keyword","default")?(a&&(a.end=s()),r=[],a=new _o({start:(e=n.token,o(),p(":"),e),body:r}),t.push(a)):(r||d(),r.push(E()));return a&&(a.end=s()),o(),t}function L(e,t){for(var r,a=[];;){var l="var"===t?os:"const"===t?cs:"let"===t?ls:null;if(i("punc","{")||i("punc","[")?r=new xo({start:n.token,name:P(void 0,l),value:i("operator","=")?(u("operator","="),me(!1,e)):null,end:s()}):"import"==(r=new xo({start:n.token,name:ae(l),value:i("operator","=")?(o(),me(!1,e)):e||"const"!==t?null:c("Missing initializer in const declaration"),end:s()})).name.name&&c("Unexpected token: import"),a.push(r),!i("punc",","))break;o()}return a}var B=e=>new vo({start:s(),definitions:L(e,"var"),end:s()}),U=e=>new bo({start:s(),definitions:L(e,"let"),end:s()}),j=e=>new Eo({start:s(),definitions:L(e,"const"),end:s()});function V(){var e,t=n.token;switch(t.type){case"name":e=ne(Es);break;case"num":e=new Ns({start:t,end:t,value:t.value,raw:Ni});break;case"big_int":e=new ws({start:t,end:t,value:t.value});break;case"string":e=new ks({start:t,end:t,value:t.value,quote:t.quote});break;case"regexp":const[r,n,i]=t.value.match(/^\/(.*)\/(\w*)$/);e=new Fs({start:t,end:t,value:{source:n,flags:i}});break;case"atom":switch(t.value){case"false":e=new Us({start:t,end:t});break;case"true":e=new js({start:t,end:t});break;case"null":e=new Is({start:t,end:t})}}return o(),e}function z(e,t){var r=(e,t)=>t?new Vo({start:e.start,left:e,operator:"=",right:t,end:t.end}):e;return e instanceof Ho?r(new Xa({start:e.start,end:e.end,is_array:!1,names:e.properties.map((e=>z(e)))}),t):e instanceof Ko?(e.value=z(e.value),r(e,t)):e instanceof Rs?e:e instanceof Xa?(e.names=e.names.map((e=>z(e))),r(e,t)):e instanceof Es?r(new ds({name:e.name,start:e.start,end:e.end}),t):e instanceof Wa?(e.expression=z(e.expression),r(e,t)):e instanceof zo?r(new Xa({start:e.start,end:e.end,is_array:!0,names:e.elements.map((e=>z(e)))}),t):e instanceof jo?r(z(e.left,e.right),t):e instanceof Vo?(e.left=z(e.left),e):void c("Invalid function parameter",e.start.line,e.start.col)}var H=(e,t)=>{if(i("operator","new"))return(e=>{var t=n.token;if(u("operator","new"),i("punc","."))return o(),u("name","target"),se(new is({start:t,end:s()}),e);var r,a=H(!1);i("punc","(")?(o(),r=K(")",!0)):r=[];var c=new ko({start:t,expression:a,args:r,end:s()});return oe(c),se(c,e)})(e);if(i("operator","import"))return(()=>{var e=n.token;return u("operator","import"),u("punc","."),u("name","meta"),se(new To({start:e,end:s()}),!1)})();var c,l=n.token,_=i("name","async")&&"["!=(c=a()).value&&"arrow"!=c.type&&V();if(i("punc")){switch(n.token.value){case"(":if(_&&!e)break;var f=((e,t)=>{var r,a,c,l=[];for(p("(");!i("punc",")");)r&&d(r),i("expand","...")?(r=n.token,t&&(a=n.token),o(),l.push(new Wa({start:s(),expression:me(),end:n.token}))):l.push(me()),i("punc",")")||(p(","),i("punc",")")&&(c=s(),t&&(a=c)));return p(")"),e&&i("arrow","=>")?r&&c&&d(c):a&&d(a),l})(t,!_);if(t&&i("arrow","=>"))return k(l,f.map((e=>z(e))),!!_);var m=_?new Ao({expression:_,args:f}):1==f.length?f[0]:new No({expressions:f});if(m.start){const e=l.comments_before.length;if(r.set(l,e),m.start.comments_before.unshift(...l.comments_before),l.comments_before=m.start.comments_before,0==e&&l.comments_before.length>0){var g=l.comments_before[0];g.nlb||(g.nlb=l.nlb,l.nlb=!1)}l.comments_after=m.start.comments_after}m.start=l;var h=s();return m.end&&(h.comments_before=m.end.comments_before,m.end.comments_after.push(...h.comments_after),h.comments_after=m.end.comments_after),m.end=h,m instanceof Ao&&oe(m),se(m,e);case"[":return se(J(),e);case"{":return se($(),e)}_||d()}if(t&&i("name")&&ca(a(),"arrow")){var y=new ds({name:n.token.value,start:l,end:l});return o(),k(l,[y],!!_)}if(i("keyword","function")){o();var v=N(Ga,!1,!!_);return v.start=l,v.end=s(),se(v,e)}if(_)return se(_,e);if(i("keyword","class")){o();var b=q(rs);return b.start=l,b.end=s(),se(b,e)}return i("template_head")?se(W(),e):ga.has(n.token.type)?se(V(),e):void d()};function W(){var e=[],t=n.token;for(e.push(new Za({start:n.token,raw:Ni,value:n.token.value,end:n.token}));!wi;)o(),b(),e.push(me(!0)),e.push(new Za({start:n.token,raw:Ni,value:n.token.value,end:n.token}));return o(),new Qa({start:t,segments:e,end:n.token})}function K(e,t,r){for(var a=!0,c=[];!i("punc",e)&&(a?a=!1:p(","),!t||!i("punc",e));)i("punc",",")&&r?c.push(new Rs({start:n.token,end:n.token})):i("expand","...")?(o(),c.push(new Wa({start:s(),expression:me(),end:n.token}))):c.push(me(!1));return o(),c}var J=v((()=>(p("["),new zo({elements:K("]",!t.strict,!0)})))),G=v(((e,t)=>N(Ja,e,t))),$=v((()=>{var e=n.token,r=!0,a=[];for(p("{");!i("punc","}")&&(r?r=!1:p(","),t.strict||!i("punc","}"));)if("expand"!=(e=n.token).type){var c,l=te();if(i("punc",":"))null===l?d(s()):(o(),c=me(!1));else{var u=X(l,e);if(u){a.push(u);continue}c=new Es({start:s(),name:l,end:s()})}i("operator","=")&&(o(),c=new jo({start:e,left:c,operator:"=",right:me(!1),logical:!1,end:s()})),a.push(new Ko({start:e,quote:e.quote,key:l instanceof xa?l:""+l,value:c,end:s()}))}else o(),a.push(new Wa({start:e,expression:me(!1),end:s()}));return o(),new Ho({properties:a})}));function q(e){var t,r,a,c,l=[];for(n.input.push_directives_stack(),n.input.add_directive("use strict"),"name"==n.token.type&&"extends"!=n.token.value&&(a=ae(e===ts?ms:gs)),e!==ts||a||d(),"extends"==n.token.value&&(o(),c=me(!0)),p("{");i("punc",";");)o();for(;!i("punc","}");)for(t=n.token,(r=X(te(),t,!0))||d(),l.push(r);i("punc",";");)o();return n.input.pop_directives_stack(),o(),new e({start:t,name:a,extends:c,properties:l,end:s()})}function X(e,t,r){var a=(e,t)=>"string"==typeof e||"number"==typeof e?new ps({start:t,name:""+e,end:s()}):(null===e&&d(),e),c="privatename"==t.type,l=!1,u=!1,p=!1,_=t;if(r&&"static"===e&&!i("punc","(")&&(u=!0,c="privatename"==(_=n.token).type,e=te()),"async"!==e||i("punc","(")||i("punc",",")||i("punc","}")||i("operator","=")||(l=!0,c="privatename"==(_=n.token).type,e=te()),null===e&&(p=!0,c="privatename"==(_=n.token).type,null===(e=te())&&d()),i("punc","("))return e=a(e,t),new(c?Yo:Xo)({start:t,static:u,is_generator:p,async:l,key:e,quote:e instanceof ps?_.quote:void 0,value:G(p,l),end:s()});const f=n.token;if(("get"===e||"set"===e)&&"privatename"===f.type)return o(),new("get"===e?Go:Jo)({start:t,static:u,key:a(f.value,t),value:G(),end:s()});if("get"==e){if(!i("punc")||i("punc","["))return e=a(te(),t),new qo({start:t,static:u,key:e,quote:e instanceof ps?f.quote:void 0,value:G(),end:s()})}else if("set"==e&&(!i("punc")||i("punc","[")))return e=a(te(),t),new $o({start:t,static:u,key:e,quote:e instanceof ps?f.quote:void 0,value:G(),end:s()});if(r){const r=(e=>"string"==typeof e||"number"==typeof e?new _s({start:_,end:_,name:""+e}):(null===e&&d(),e))(e),n=r instanceof _s?_.quote:void 0,a=c?es:Zo;if(i("operator","="))return o(),new a({start:t,static:u,quote:n,key:r,value:me(!1),end:s()});if(i("name")||i("privatename")||i("operator","*")||i("punc",";")||i("punc","}"))return new a({start:t,static:u,quote:n,key:r,end:s()})}}function Y(e){function t(e){return new e({name:te(),start:s(),end:s()})}var r,a,c=e?vs:Ds,l=e?ys:xs,d=n.token;return e?r=t(c):a=t(l),i("name","as")?(o(),e?a=t(l):r=t(c)):e?a=new l(r):r=new c(a),new Do({start:d,foreign_name:r,name:a,end:s()})}function Q(e,t){var r,i=e?vs:Ds,a=e?ys:xs,o=n.token,c=s();return t=t||new a({name:"*",start:o,end:c}),r=new i({name:"*",start:o,end:c}),new Do({start:o,foreign_name:r,name:t,end:c})}function Z(e){var t;if(i("punc","{")){for(o(),t=[];!i("punc","}");)t.push(Y(e)),i("punc",",")&&o();o()}else if(i("operator","*")){var r;o(),e&&i("name","as")&&(o(),r=ae(e?ys:Ds)),t=[Q(e,r)]}return t}function ee(){var e,t,r,c,l,u=n.token;if(i("keyword","default"))e=!0,o();else if(t=Z(!1)){if(i("name","from")){o();var p=n.token;return"string"!==p.type&&d(),o(),new Co({start:u,is_default:e,exported_names:t,module_name:new ks({start:p,value:p.value,quote:p.quote,end:p}),end:s()})}return new Co({start:u,is_default:e,exported_names:t,end:s()})}return i("punc","{")||e&&(i("keyword","class")||i("keyword","function"))&&ca(a(),"punc")?(c=me(!1),h()):(r=E(e))instanceof yo&&e?d(r.start):r instanceof yo||r instanceof Ka||r instanceof ts?l=r:r instanceof Ca?c=r.body:d(r.start),new Co({start:u,is_default:e,exported_value:c,exported_definition:l,end:s()})}function te(){var e=n.token;switch(e.type){case"punc":if("["===e.value){o();var t=me(!1);return p("]"),t}d(e);case"operator":if("*"===e.value)return o(),null;["delete","in","instanceof","new","typeof","void"].includes(e.value)||d(e);case"name":case"privatename":case"string":case"num":case"big_int":case"keyword":case"atom":return o(),e.value;default:d(e)}}function re(){var e=n.token;return"name"!=e.type&&"privatename"!=e.type&&d(),o(),e.value}function ne(e){var t=n.token.value;return new("this"==t?Ts:"super"==t?Cs:e)({name:String(t),start:n.token,end:n.token})}function ie(e){var t=e.name;m()&&"yield"==t&&l(e.start,"Yield cannot be used as identifier inside generators"),n.input.has_directive("use strict")&&("yield"==t&&l(e.start,"Unexpected yield identifier inside strict mode"),e instanceof as&&("arguments"==t||"eval"==t)&&l(e.start,"Unexpected "+t+" in strict mode"))}function ae(e,t){if(!i("name"))return t||c("Name expected"),null;var r=ne(e);return ie(r),o(),r}function oe(e){var t=e.start,n=t.comments_before;const i=r.get(t);for(var a=null!=i?i:n.length;--a>=0;){var o=n[a];if(/[@#]__/.test(o.value)){if(/[@#]__PURE__/.test(o.value)){ki(e,Js);break}if(/[@#]__INLINE__/.test(o.value)){ki(e,Gs);break}if(/[@#]__NOINLINE__/.test(o.value)){ki(e,$s);break}}}}var se=(e,t,r)=>{var n=e.start;if(i("punc",".")){o();const a=i("privatename")?Po:Fo;return se(new a({start:n,expression:e,optional:!1,property:re(),end:s()}),t,r)}if(i("punc","[")){o();var a=me(!0);return p("]"),se(new Io({start:n,expression:e,optional:!1,property:a,end:s()}),t,r)}if(t&&i("punc","(")){o();var c=new Ao({start:n,expression:e,optional:!1,args:ce(),end:s()});return oe(c),se(c,!0,r)}if(i("punc","?.")){let r;if(o(),t&&i("punc","(")){o();const t=new Ao({start:n,optional:!0,expression:e,args:ce(),end:s()});oe(t),r=se(t,!0,!0)}else if(i("name")||i("privatename")){const a=i("privatename")?Po:Fo;r=se(new a({start:n,expression:e,optional:!0,property:re(),end:s()}),t,!0)}else if(i("punc","[")){o();const i=me(!0);p("]"),r=se(new Io({start:n,expression:e,optional:!0,property:i,end:s()}),t,!0)}return r||d(),r instanceof Oo?r:new Oo({start:n,expression:r,end:s()})}return i("template_head")?(r&&d(),se(new Ya({start:n,prefix:e,template_string:W(),end:s()}),t)):e};function ce(){for(var e=[];!i("punc",")");)i("expand","...")?(o(),e.push(new Wa({start:s(),expression:me(!1),end:s()}))):e.push(me(!1)),i("punc",")")||p(",");return o(),e}var le=(e,t)=>{var r=n.token;if("name"==r.type&&"await"==r.value&&g())return o(),g()||c("Unexpected await expression outside async function",n.prev.line,n.prev.col,n.prev.pos),new so({start:s(),end:n.token,expression:le(!0)});if(i("operator")&&ua.has(r.value)){o(),b();var a=de(Ro,r,le(e));return a.start=r,a.end=s(),a}for(var l=H(e,t);i("operator")&&pa.has(n.token.value)&&!_(n.token);)l instanceof $a&&d(),(l=de(Lo,n.token,l)).start=r,l.end=n.token,o();return l};function de(e,t,r){var i=t.value;switch(i){case"++":case"--":pe(r)||c("Invalid use of "+i+" operator",t.line,t.col,t.pos);break;case"delete":r instanceof Es&&n.input.has_directive("use strict")&&c("Calling delete on expression not allowed in strict mode",r.start.line,r.start.col,r.start.pos)}return new e({operator:i,expression:r})}var ue=(e,t,r)=>{var a=i("operator")?n.token.value:null;"in"==a&&r&&(a=null),"**"==a&&e instanceof Ro&&!ca(e.start,"punc","(")&&"--"!==e.operator&&"++"!==e.operator&&d(e.start);var s=null!=a?ma[a]:null;if(null!=s&&(s>t||"**"===a&&t===s)){o();var c=ue(le(!0),s,r);return ue(new Bo({start:e.start,left:e,operator:a,right:c,end:c.end}),t,r)}return e};function pe(e){return e instanceof wo||e instanceof Es}function _e(e){if(e instanceof Ho)e=new Xa({start:e.start,names:e.properties.map(_e),is_array:!1,end:e.end});else if(e instanceof zo){for(var t=[],r=0;r<e.elements.length;r++)e.elements[r]instanceof Wa&&(r+1!==e.elements.length&&l(e.elements[r].start,"Spread must the be last element in destructuring array"),e.elements[r].expression=_e(e.elements[r].expression)),t.push(_e(e.elements[r]));e=new Xa({start:e.start,names:t,is_array:!0,end:e.end})}else e instanceof Wo?e.value=_e(e.value):e instanceof jo&&(e=new Vo({start:e.start,left:e.left,operator:"=",right:e.right,end:e.end}));return e}var fe=e=>{b();var t=n.token;if("name"==t.type&&"yield"==t.value){if(m())return o(),(()=>{m()||c("Unexpected yield expression outside generator function",n.prev.line,n.prev.col,n.prev.pos);var e=n.token,t=!1,r=!0;return f()||i("punc")&&Ji.has(n.token.value)?r=!1:i("operator","*")&&(t=!0,o()),new co({start:e,is_star:t,expression:r?me():null,end:s()})})();n.input.has_directive("use strict")&&l(n.token,"Unexpected yield identifier inside strict mode")}var r=(e=>{var t=n.token,r=(e=>ue(le(!0,!0),0,e))(e);if(i("operator","?")){o();var a=me(!1);return p(":"),new Uo({start:t,condition:r,consequent:a,alternative:me(!1,e),end:s()})}return r})(e),a=n.token.value;if(i("operator")&&_a.has(a)){if(pe(r)||(r=_e(r))instanceof Xa)return o(),new jo({start:t,left:r,operator:a,right:fe(e),logical:fa.has(a),end:s()});c("Invalid assignment")}return r},me=(e,t)=>{for(var r=n.token,s=[];s.push(fe(t)),e&&i("punc",",");)o(),e=!0;return 1==s.length?s[0]:new No({start:r,expressions:s,end:a()})};function ge(e){++n.in_loop;var t=e();return--n.in_loop,t}return t.expression?me(!0):(()=>{var e=n.token,r=[];for(n.input.push_directives_stack(),t.module&&n.input.add_directive("use strict");!i("eof");)r.push(E());n.input.pop_directives_stack();var a=s(),o=t.toplevel;return o?(o.body=o.body.concat(r),o.end=a):o=new Ha({start:e,body:r,end:a}),o})()}function ya(e,t,r,n=xa){var i=t=t?t.split(/\s+/):[];n&&n.PROPS&&(t=t.concat(n.PROPS));for(var a="return function AST_"+e+"(props){ if (props) { ",o=t.length;--o>=0;)a+="this."+t[o]+" = props."+t[o]+";";const s=n&&Object.create(n.prototype);(s&&s.initialize||r&&r.initialize)&&(a+="this.initialize();"),a+="}",a+="this.flags = 0;",a+="}";var c=new Function(a)();if(s&&(c.prototype=s,c.BASE=n),n&&n.SUBCLASSES.push(c),c.prototype.CTOR=c,c.prototype.constructor=c,c.PROPS=t||null,c.SELF_PROPS=i,c.SUBCLASSES=[],e&&(c.prototype.TYPE=c.TYPE=e),r)for(o in r)Di(r,o)&&("$"===o[0]?c[o.substr(1)]=r[o]:c.prototype[o]=r[o]);return c.DEFMETHOD=function(e,t){this.prototype[e]=t},c}const va=(e,t)=>Boolean(e.flags&t),ba=(e,t,r)=>{r?e.flags|=t:e.flags&=~t};class Ea{constructor(e,t,r,n,i,a,o,s,c){this.flags=a?1:0,this.type=e,this.value=t,this.line=r,this.col=n,this.pos=i,this.comments_before=o,this.comments_after=s,this.file=c,Object.seal(this)}get nlb(){return va(this,1)}set nlb(e){ba(this,1,e)}get quote(){return va(this,4)?va(this,2)?"'":'"':""}set quote(e){ba(this,2,"'"===e),ba(this,4,!!e)}}var xa=ya("Node","start end",{_clone(e){if(e){var t=this.clone();return t.transform(new Ks((e=>{if(e!==t)return e.clone(!0)})))}return new this.CTOR(this)},clone(e){return this._clone(e)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk(e){return e._visit(this)},walk(e){return this._walk(e)},_children_backwards(){}},null),Da=ya("Statement",null,{$documentation:"Base class of all statements"}),Sa=ya("Debugger",null,{$documentation:"Represents a debugger statement"},Da),Ta=ya("Directive","value quote",{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},Da),Ca=ya("SimpleStatement","body",{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk(e){return e._visit(this,(function(){this.body._walk(e)}))},_children_backwards(e){e(this.body)}},Da);function Aa(e,t){const r=e.body;for(var n=0,i=r.length;n<i;n++)r[n]._walk(t)}function ka(e){var t=this._clone(e);return this.block_scope&&(t.block_scope=this.block_scope.clone()),t}var Na=ya("Block","body block_scope",{$documentation:"A body of statements (usually braced)",$propdoc:{body:"[AST_Statement*] an array of statements",block_scope:"[AST_Scope] the block scope"},_walk(e){return e._visit(this,(function(){Aa(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t])},clone:ka},Da),wa=ya("BlockStatement",null,{$documentation:"A block statement"},Na),Fa=ya("EmptyStatement",null,{$documentation:"The empty statement (empty block or simply a semicolon)"},Da),Pa=ya("StatementWithBody","body",{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},Da),Ia=ya("LabeledStatement","label",{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk(e){return e._visit(this,(function(){this.label._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.label)},clone(e){var t=this._clone(e);if(e){var r=t.label,n=this.label;t.walk(new Ws((e=>{e instanceof io&&e.label&&e.label.thedef===n&&(e.label.thedef=r,r.references.push(e))})))}return t}},Pa),Oa=ya("IterationStatement","block_scope",{$documentation:"Internal class. All loops inherit from it.",$propdoc:{block_scope:"[AST_Scope] the block scope for this iteration statement."},clone:ka},Pa),Ma=ya("DWLoop","condition",{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition. Should not be instanceof AST_Statement"}},Oa),Ra=ya("Do",null,{$documentation:"A `do` statement",_walk(e){return e._visit(this,(function(){this.body._walk(e),this.condition._walk(e)}))},_children_backwards(e){e(this.condition),e(this.body)}},Ma),La=ya("While",null,{$documentation:"A `while` statement",_walk(e){return e._visit(this,(function(){this.condition._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.condition)}},Ma),Ba=ya("For","init condition step",{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk(e){return e._visit(this,(function(){this.init&&this.init._walk(e),this.condition&&this.condition._walk(e),this.step&&this.step._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),this.step&&e(this.step),this.condition&&e(this.condition),this.init&&e(this.init)}},Oa),Ua=ya("ForIn","init object",{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk(e){return e._visit(this,(function(){this.init._walk(e),this.object._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),this.object&&e(this.object),this.init&&e(this.init)}},Oa),ja=ya("ForOf","await",{$documentation:"A `for ... of` statement"},Ua),Va=ya("With","expression",{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk(e){return e._visit(this,(function(){this.expression._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.expression)}},Pa),za=ya("Scope","variables functions uses_with uses_eval parent_scope enclosed cname",{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Map/S] a map of name -> SymbolDef for all variables/functions defined in this scope",functions:"[Map/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"},get_defun_scope(){for(var e=this;e.is_block_scope();)e=e.parent_scope;return e},clone(e,t){var r=this._clone(e);return e&&this.variables&&t&&!this._block_scope?r.figure_out_scope({},{toplevel:t,parent_scope:this.parent_scope}):(this.variables&&(r.variables=new Map(this.variables)),this.functions&&(r.functions=new Map(this.functions)),this.enclosed&&(r.enclosed=this.enclosed.slice()),this._block_scope&&(r._block_scope=this._block_scope)),r},pinned(){return this.uses_eval||this.uses_with}},Na),Ha=ya("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Map/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs(e){var t=this.body,r="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";return(r=ha(r)).transform(new Ks((e=>{if(e instanceof Ta&&"$ORIG"==e.value)return fi.splice(t)})))},wrap_enclose(e){"string"!=typeof e&&(e="");var t=e.indexOf(":");t<0&&(t=e.length);var r=this.body;return ha(["(function(",e.slice(0,t),'){"$ORIG"})(',e.slice(t+1),")"].join("")).transform(new Ks((e=>{if(e instanceof Ta&&"$ORIG"==e.value)return fi.splice(r)})))}},za),Wa=ya("Expansion","expression",{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk(e){return e._visit(this,(function(){this.expression.walk(e)}))},_children_backwards(e){e(this.expression)}}),Ka=ya("Lambda","name argnames uses_arguments is_generator async",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names(){for(var e=[],t=0;t<this.argnames.length;t++)this.argnames[t]instanceof Xa?e.push(...this.argnames[t].all_symbols()):e.push(this.argnames[t]);return e},_walk(e){return e._visit(this,(function(){this.name&&this.name._walk(e);for(var t=this.argnames,r=0,n=t.length;r<n;r++)t[r]._walk(e);Aa(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);for(t=this.argnames.length;t--;)e(this.argnames[t]);this.name&&e(this.name)},is_braceless(){return this.body[0]instanceof ro&&this.body[0].value}},za),Ja=ya("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},Ka),Ga=ya("Function",null,{$documentation:"A function expression"},Ka),$a=ya("Arrow",null,{$documentation:"An ES6 Arrow function ((a) => b)"},Ka),qa=ya("Defun",null,{$documentation:"A function definition"},Ka),Xa=ya("Destructuring","names is_array",{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk(e){return e._visit(this,(function(){this.names.forEach((t=>{t._walk(e)}))}))},_children_backwards(e){let t=this.names.length;for(;t--;)e(this.names[t])},all_symbols(){var e=[];return this.walk(new Ws((t=>{t instanceof ns&&e.push(t)}))),e}}),Ya=ya("PrefixedTemplateString","template_string prefix",{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_Node] The prefix, which will get called."},_walk(e){return e._visit(this,(function(){this.prefix._walk(e),this.template_string._walk(e)}))},_children_backwards(e){e(this.template_string),e(this.prefix)}}),Qa=ya("TemplateString","segments",{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk(e){return e._visit(this,(function(){this.segments.forEach((t=>{t._walk(e)}))}))},_children_backwards(e){let t=this.segments.length;for(;t--;)e(this.segments[t])}}),Za=ya("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw source of the segment"}}),eo=ya("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},Da),to=ya("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk(e){return e._visit(this,this.value&&function(){this.value._walk(e)})},_children_backwards(e){this.value&&e(this.value)}},eo),ro=ya("Return",null,{$documentation:"A `return` statement"},to),no=ya("Throw",null,{$documentation:"A `throw` statement"},to),io=ya("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk(e){return e._visit(this,this.label&&function(){this.label._walk(e)})},_children_backwards(e){this.label&&e(this.label)}},eo),ao=ya("Break",null,{$documentation:"A `break` statement"},io),oo=ya("Continue",null,{$documentation:"A `continue` statement"},io),so=ya("Await","expression",{$documentation:"An `await` statement",$propdoc:{expression:"[AST_Node] the mandatory expression being awaited"},_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}}),co=ya("Yield","expression is_star",{$documentation:"A `yield` statement",$propdoc:{expression:"[AST_Node?] the value returned or thrown by this statement; could be null (representing undefined) but only when is_star is set to false",is_star:"[Boolean] Whether this is a yield or yield* statement"},_walk(e){return e._visit(this,this.expression&&function(){this.expression._walk(e)})},_children_backwards(e){this.expression&&e(this.expression)}}),lo=ya("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk(e){return e._visit(this,(function(){this.condition._walk(e),this.body._walk(e),this.alternative&&this.alternative._walk(e)}))},_children_backwards(e){this.alternative&&e(this.alternative),e(this.body),e(this.condition)}},Pa),uo=ya("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk(e){return e._visit(this,(function(){this.expression._walk(e),Aa(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);e(this.expression)}},Na),po=ya("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},Na),_o=ya("Default",null,{$documentation:"A `default` switch branch"},po),fo=ya("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk(e){return e._visit(this,(function(){this.expression._walk(e),Aa(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);e(this.expression)}},po),mo=ya("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk(e){return e._visit(this,(function(){Aa(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)}))},_children_backwards(e){this.bfinally&&e(this.bfinally),this.bcatch&&e(this.bcatch);let t=this.body.length;for(;t--;)e(this.body[t])}},Na),go=ya("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk(e){return e._visit(this,(function(){this.argname&&this.argname._walk(e),Aa(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);this.argname&&e(this.argname)}},Na),ho=ya("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},Na),yo=ya("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk(e){return e._visit(this,(function(){for(var t=this.definitions,r=0,n=t.length;r<n;r++)t[r]._walk(e)}))},_children_backwards(e){let t=this.definitions.length;for(;t--;)e(this.definitions[t])}},Da),vo=ya("Var",null,{$documentation:"A `var` statement"},yo),bo=ya("Let",null,{$documentation:"A `let` statement"},yo),Eo=ya("Const",null,{$documentation:"A `const` statement"},yo),xo=ya("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_Destructuring|AST_SymbolConst|AST_SymbolLet|AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk(e){return e._visit(this,(function(){this.name._walk(e),this.value&&this.value._walk(e)}))},_children_backwards(e){this.value&&e(this.value),e(this.name)}}),Do=ya("NameMapping","foreign_name name",{$documentation:"The part of the export/import statement that declare names from a module.",$propdoc:{foreign_name:"[AST_SymbolExportForeign|AST_SymbolImportForeign] The name being exported/imported (as specified in the module)",name:"[AST_SymbolExport|AST_SymbolImport] The name as it is visible to this module."},_walk(e){return e._visit(this,(function(){this.foreign_name._walk(e),this.name._walk(e)}))},_children_backwards(e){e(this.name),e(this.foreign_name)}}),So=ya("Import","imported_name imported_names module_name",{$documentation:"An `import` statement",$propdoc:{imported_name:"[AST_SymbolImport] The name of the variable holding the module's default export.",imported_names:"[AST_NameMapping*] The names of non-default imported variables",module_name:"[AST_String] String literal describing where this module came from"},_walk(e){return e._visit(this,(function(){this.imported_name&&this.imported_name._walk(e),this.imported_names&&this.imported_names.forEach((t=>{t._walk(e)})),this.module_name._walk(e)}))},_children_backwards(e){if(e(this.module_name),this.imported_names){let t=this.imported_names.length;for(;t--;)e(this.imported_names[t])}this.imported_name&&e(this.imported_name)}}),To=ya("ImportMeta",null,{$documentation:"A reference to import.meta"}),Co=ya("Export","exported_definition exported_value is_default exported_names module_name",{$documentation:"An `export` statement",$propdoc:{exported_definition:"[AST_Defun|AST_Definitions|AST_DefClass?] An exported definition",exported_value:"[AST_Node?] An exported value",exported_names:"[AST_NameMapping*?] List of exported names",module_name:"[AST_String?] Name of the file to load exports from",is_default:"[Boolean] Whether this is the default exported value of this module"},_walk(e){return e._visit(this,(function(){this.exported_definition&&this.exported_definition._walk(e),this.exported_value&&this.exported_value._walk(e),this.exported_names&&this.exported_names.forEach((t=>{t._walk(e)})),this.module_name&&this.module_name._walk(e)}))},_children_backwards(e){if(this.module_name&&e(this.module_name),this.exported_names){let t=this.exported_names.length;for(;t--;)e(this.exported_names[t])}this.exported_value&&e(this.exported_value),this.exported_definition&&e(this.exported_definition)}},Da),Ao=ya("Call","expression args optional _annotations",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments",optional:"[boolean] whether this is an optional call (IE ?.() )",_annotations:"[number] bitfield containing information about the call"},initialize(){null==this._annotations&&(this._annotations=0)},_walk(e){return e._visit(this,(function(){for(var t=this.args,r=0,n=t.length;r<n;r++)t[r]._walk(e);this.expression._walk(e)}))},_children_backwards(e){let t=this.args.length;for(;t--;)e(this.args[t]);e(this.expression)}}),ko=ya("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},Ao),No=ya("Sequence","expressions",{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk(e){return e._visit(this,(function(){this.expressions.forEach((t=>{t._walk(e)}))}))},_children_backwards(e){let t=this.expressions.length;for(;t--;)e(this.expressions[t])}}),wo=ya("PropAccess","expression property optional",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot & AST_DotHash this is always a plain string, while for AST_Sub it's an arbitrary AST_Node",optional:"[boolean] whether this is an optional property access (IE ?.)"}}),Fo=ya("Dot","quote",{$documentation:"A dotted property access expression",$propdoc:{quote:"[string] the original quote character when transformed from AST_Sub"},_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}},wo),Po=ya("DotHash","",{$documentation:"A dotted property access to a private property",_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}},wo),Io=ya("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk(e){return e._visit(this,(function(){this.expression._walk(e),this.property._walk(e)}))},_children_backwards(e){e(this.property),e(this.expression)}},wo),Oo=ya("Chain","expression",{$documentation:"A chain expression like a?.b?.(c)?.[d]",$propdoc:{expression:"[AST_Call|AST_Dot|AST_DotHash|AST_Sub] chain element."},_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}}),Mo=ya("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}}),Ro=ya("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},Mo),Lo=ya("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},Mo),Bo=ya("Binary","operator left right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk(e){return e._visit(this,(function(){this.left._walk(e),this.right._walk(e)}))},_children_backwards(e){e(this.right),e(this.left)}}),Uo=ya("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk(e){return e._visit(this,(function(){this.condition._walk(e),this.consequent._walk(e),this.alternative._walk(e)}))},_children_backwards(e){e(this.alternative),e(this.consequent),e(this.condition)}}),jo=ya("Assign","logical",{$documentation:"An assignment expression — `a = b + 5`",$propdoc:{logical:"Whether it's a logical assignment"}},Bo),Vo=ya("DefaultAssign",null,{$documentation:"A default assignment expression like in `(a = 3) => a`"},Bo),zo=ya("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk(e){return e._visit(this,(function(){for(var t=this.elements,r=0,n=t.length;r<n;r++)t[r]._walk(e)}))},_children_backwards(e){let t=this.elements.length;for(;t--;)e(this.elements[t])}}),Ho=ya("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk(e){return e._visit(this,(function(){for(var t=this.properties,r=0,n=t.length;r<n;r++)t[r]._walk(e)}))},_children_backwards(e){let t=this.properties.length;for(;t--;)e(this.properties[t])}}),Wo=ya("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_Node] property name. For ObjectKeyVal this is a string. For getters, setters and computed property this is an AST_Node.",value:"[AST_Node] property value. For getters and setters this is an AST_Accessor."},_walk(e){return e._visit(this,(function(){this.key instanceof xa&&this.key._walk(e),this.value._walk(e)}))},_children_backwards(e){e(this.value),this.key instanceof xa&&e(this.key)}}),Ko=ya("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"},computed_key(){return this.key instanceof xa}},Wo),Jo=ya("PrivateSetter","static",{$propdoc:{static:"[boolean] whether this is a static private setter"},$documentation:"A private setter property",computed_key:()=>!1},Wo),Go=ya("PrivateGetter","static",{$propdoc:{static:"[boolean] whether this is a static private getter"},$documentation:"A private getter property",computed_key:()=>!1},Wo),$o=ya("ObjectSetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static setter (classes only)"},$documentation:"An object setter property",computed_key(){return!(this.key instanceof ps)}},Wo),qo=ya("ObjectGetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static getter (classes only)"},$documentation:"An object getter property",computed_key(){return!(this.key instanceof ps)}},Wo),Xo=ya("ConciseMethod","quote static is_generator async",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] is this method static (classes only)",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},$documentation:"An ES6 concise method inside an object or class",computed_key(){return!(this.key instanceof ps)}},Wo),Yo=ya("PrivateMethod","",{$documentation:"A private class method inside a class"},Xo),Qo=ya("Class","name extends properties",{$propdoc:{name:"[AST_SymbolClass|AST_SymbolDefClass?] optional class name.",extends:"[AST_Node]? optional parent class",properties:"[AST_ObjectProperty*] array of properties"},$documentation:"An ES6 class",_walk(e){return e._visit(this,(function(){this.name&&this.name._walk(e),this.extends&&this.extends._walk(e),this.properties.forEach((t=>t._walk(e)))}))},_children_backwards(e){let t=this.properties.length;for(;t--;)e(this.properties[t]);this.extends&&e(this.extends),this.name&&e(this.name)}},za),Zo=ya("ClassProperty","static quote",{$documentation:"A class property",$propdoc:{static:"[boolean] whether this is a static key",quote:"[string] which quote is being used"},_walk(e){return e._visit(this,(function(){this.key instanceof xa&&this.key._walk(e),this.value instanceof xa&&this.value._walk(e)}))},_children_backwards(e){this.value instanceof xa&&e(this.value),this.key instanceof xa&&e(this.key)},computed_key(){return!(this.key instanceof _s)}},Wo),es=ya("ClassProperty","",{$documentation:"A class property for a private property"},Zo),ts=ya("DefClass",null,{$documentation:"A class definition"},Qo),rs=ya("ClassExpression",null,{$documentation:"A class expression."},Qo),ns=ya("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),is=ya("NewTarget",null,{$documentation:"A reference to new.target"}),as=ya("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},ns),os=ya("SymbolVar",null,{$documentation:"Symbol defining a variable"},as),ss=ya("SymbolBlockDeclaration",null,{$documentation:"Base class for block-scoped declaration symbols"},as),cs=ya("SymbolConst",null,{$documentation:"A constant declaration"},ss),ls=ya("SymbolLet",null,{$documentation:"A block-scoped `let` declaration"},ss),ds=ya("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},os),us=ya("SymbolDefun",null,{$documentation:"Symbol defining a function"},as),ps=ya("SymbolMethod",null,{$documentation:"Symbol in an object defining a method"},ns),_s=ya("SymbolClassProperty",null,{$documentation:"Symbol for a class property"},ns),fs=ya("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},as),ms=ya("SymbolDefClass",null,{$documentation:"Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class."},ss),gs=ya("SymbolClass",null,{$documentation:"Symbol naming a class's name. Lexically scoped to the class."},as),hs=ya("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},ss),ys=ya("SymbolImport",null,{$documentation:"Symbol referring to an imported name"},ss),vs=ya("SymbolImportForeign",null,{$documentation:"A symbol imported from a module, but it is defined in the other module, and its real name is irrelevant for this module's purposes"},ns),bs=ya("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize(){this.references=[],this.thedef=this}},ns),Es=ya("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},ns),xs=ya("SymbolExport",null,{$documentation:"Symbol referring to a name to export"},Es),Ds=ya("SymbolExportForeign",null,{$documentation:"A symbol exported from this module, but it is used in the other module, and its real name is irrelevant for this module's purposes"},ns),Ss=ya("LabelRef",null,{$documentation:"Reference to a label symbol"},ns),Ts=ya("This",null,{$documentation:"The `this` symbol"},ns),Cs=ya("Super",null,{$documentation:"The `super` symbol"},Ts),As=ya("Constant",null,{$documentation:"Base class for all constants",getValue(){return this.value}}),ks=ya("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},As),Ns=ya("Number","value raw",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",raw:"[string] numeric value as string"}},As),ws=ya("BigInt","value",{$documentation:"A big int literal",$propdoc:{value:"[string] big int value"}},As),Fs=ya("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},As),Ps=ya("Atom",null,{$documentation:"Base class for atoms"},As),Is=ya("Null",null,{$documentation:"The `null` atom",value:null},Ps),Os=ya("NaN",null,{$documentation:"The impossible value",value:NaN},Ps),Ms=ya("Undefined",null,{$documentation:"The `undefined` value",value:void 0},Ps),Rs=ya("Hole",null,{$documentation:"A hole in an array",value:void 0},Ps),Ls=ya("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},Ps),Bs=ya("Boolean",null,{$documentation:"Base class for booleans"},Ps),Us=ya("False",null,{$documentation:"The `false` atom",value:!1},Bs),js=ya("True",null,{$documentation:"The `true` atom",value:!0},Bs);function Vs(e,t,r=[e]){const n=r.push.bind(r);for(;r.length;){const e=r.pop(),i=t(e,r);if(i){if(i===Hs)return!0}else e._children_backwards(n)}return!1}function zs(e,t,r){const n=[e],i=n.push.bind(n),a=r?r.slice():[],o=[];let s;const c={parent:(e=0)=>-1===e?s:r&&e>=a.length?(e-=a.length,r[r.length-(e+1)]):a[a.length-(1+e)]};for(;n.length;){for(s=n.pop();o.length&&n.length==o[o.length-1];)a.pop(),o.pop();const e=t(s,c);if(e){if(e===Hs)return!0;continue}const r=n.length;s._children_backwards(i),n.length>r&&(a.push(s),o.push(r-1))}return!1}const Hs=Symbol("abort walk");class Ws{constructor(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}_visit(e,t){this.push(e);var r=this.visit(e,t?()=>{t.call(e)}:li);return!r&&t&&t.call(e),this.pop(),r}parent(e){return this.stack[this.stack.length-2-(e||0)]}push(e){e instanceof Ka?this.directives=Object.create(this.directives):e instanceof Ta&&!this.directives[e.value]?this.directives[e.value]=e:e instanceof Qo&&(this.directives=Object.create(this.directives),this.directives["use strict"]||(this.directives["use strict"]=e)),this.stack.push(e)}pop(){var e=this.stack.pop();(e instanceof Ka||e instanceof Qo)&&(this.directives=Object.getPrototypeOf(this.directives))}self(){return this.stack[this.stack.length-1]}find_parent(e){for(var t=this.stack,r=t.length;--r>=0;){var n=t[r];if(n instanceof e)return n}}has_directive(e){var t=this.directives[e];if(t)return t;var r=this.stack[this.stack.length-1];if(r instanceof za&&r.body)for(var n=0;n<r.body.length;++n){var i=r.body[n];if(!(i instanceof Ta))break;if(i.value==e)return i}}loopcontrol_target(e){var t=this.stack;if(e.label){for(var r=t.length;--r>=0;)if((n=t[r])instanceof Ia&&n.label.name==e.label.name)return n.body}else for(r=t.length;--r>=0;){var n;if((n=t[r])instanceof Oa||e instanceof ao&&n instanceof uo)return n}}}class Ks extends Ws{constructor(e,t){super(),this.before=e,this.after=t}}const Js=1,Gs=2,$s=4,qs=Object.freeze({__proto__:null,AST_Accessor:Ja,AST_Array:zo,AST_Arrow:$a,AST_Assign:jo,AST_Atom:Ps,AST_Await:so,AST_BigInt:ws,AST_Binary:Bo,AST_Block:Na,AST_BlockStatement:wa,AST_Boolean:Bs,AST_Break:ao,AST_Call:Ao,AST_Case:fo,AST_Catch:go,AST_Chain:Oo,AST_Class:Qo,AST_ClassExpression:rs,AST_ClassPrivateProperty:es,AST_ClassProperty:Zo,AST_ConciseMethod:Xo,AST_Conditional:Uo,AST_Const:Eo,AST_Constant:As,AST_Continue:oo,AST_Debugger:Sa,AST_Default:_o,AST_DefaultAssign:Vo,AST_DefClass:ts,AST_Definitions:yo,AST_Defun:qa,AST_Destructuring:Xa,AST_Directive:Ta,AST_Do:Ra,AST_Dot:Fo,AST_DotHash:Po,AST_DWLoop:Ma,AST_EmptyStatement:Fa,AST_Exit:to,AST_Expansion:Wa,AST_Export:Co,AST_False:Us,AST_Finally:ho,AST_For:Ba,AST_ForIn:Ua,AST_ForOf:ja,AST_Function:Ga,AST_Hole:Rs,AST_If:lo,AST_Import:So,AST_ImportMeta:To,AST_Infinity:Ls,AST_IterationStatement:Oa,AST_Jump:eo,AST_Label:bs,AST_LabeledStatement:Ia,AST_LabelRef:Ss,AST_Lambda:Ka,AST_Let:bo,AST_LoopControl:io,AST_NameMapping:Do,AST_NaN:Os,AST_New:ko,AST_NewTarget:is,AST_Node:xa,AST_Null:Is,AST_Number:Ns,AST_Object:Ho,AST_ObjectGetter:qo,AST_ObjectKeyVal:Ko,AST_ObjectProperty:Wo,AST_ObjectSetter:$o,AST_PrefixedTemplateString:Ya,AST_PrivateGetter:Go,AST_PrivateMethod:Yo,AST_PrivateSetter:Jo,AST_PropAccess:wo,AST_RegExp:Fs,AST_Return:ro,AST_Scope:za,AST_Sequence:No,AST_SimpleStatement:Ca,AST_Statement:Da,AST_StatementWithBody:Pa,AST_String:ks,AST_Sub:Io,AST_Super:Cs,AST_Switch:uo,AST_SwitchBranch:po,AST_Symbol:ns,AST_SymbolBlockDeclaration:ss,AST_SymbolCatch:hs,AST_SymbolClass:gs,AST_SymbolClassProperty:_s,AST_SymbolConst:cs,AST_SymbolDeclaration:as,AST_SymbolDefClass:ms,AST_SymbolDefun:us,AST_SymbolExport:xs,AST_SymbolExportForeign:Ds,AST_SymbolFunarg:ds,AST_SymbolImport:ys,AST_SymbolImportForeign:vs,AST_SymbolLambda:fs,AST_SymbolLet:ls,AST_SymbolMethod:ps,AST_SymbolRef:Es,AST_SymbolVar:os,AST_TemplateSegment:Za,AST_TemplateString:Qa,AST_This:Ts,AST_Throw:no,AST_Token:Ea,AST_Toplevel:Ha,AST_True:js,AST_Try:mo,AST_Unary:Mo,AST_UnaryPostfix:Lo,AST_UnaryPrefix:Ro,AST_Undefined:Ms,AST_Var:vo,AST_VarDef:xo,AST_While:La,AST_With:Va,AST_Yield:co,TreeTransformer:Ks,TreeWalker:Ws,walk:Vs,walk_abort:Hs,walk_body:Aa,walk_parent:zs,_INLINE:Gs,_NOINLINE:$s,_PURE:Js});function Xs(e,t){e.DEFMETHOD("transform",(function(e,r){let n;if(e.push(this),e.before&&(n=e.before(this,t,r)),void 0===n&&(n=this,t(n,e),e.after)){const t=e.after(n,r);void 0!==t&&(n=t)}return e.pop(),n}))}function Ys(e,t){return fi(e,(e=>e.transform(t,!0)))}function Qs(e){let t=e.parent(-1);for(let r,n=0;r=e.parent(n);n++){if(r instanceof Da&&r.body===t)return!0;if(!(r instanceof No&&r.expressions[0]===t||"Call"===r.TYPE&&r.expression===t||r instanceof Ya&&r.prefix===t||r instanceof Fo&&r.expression===t||r instanceof Io&&r.expression===t||r instanceof Uo&&r.condition===t||r instanceof Bo&&r.left===t||r instanceof Lo&&r.expression===t))return!1;t=r}}function Zs(e){return e instanceof Ho||(e instanceof No?Zs(e.expressions[0]):"Call"===e.TYPE?Zs(e.expression):e instanceof Ya?Zs(e.prefix):e instanceof Fo||e instanceof Io?Zs(e.expression):e instanceof Uo?Zs(e.condition):e instanceof Bo?Zs(e.left):e instanceof Lo&&Zs(e.expression))}Xs(xa,li),Xs(Ia,((e,t)=>{e.label=e.label.transform(t),e.body=e.body.transform(t)})),Xs(Ca,((e,t)=>{e.body=e.body.transform(t)})),Xs(Na,((e,t)=>{e.body=Ys(e.body,t)})),Xs(Ra,((e,t)=>{e.body=e.body.transform(t),e.condition=e.condition.transform(t)})),Xs(La,((e,t)=>{e.condition=e.condition.transform(t),e.body=e.body.transform(t)})),Xs(Ba,((e,t)=>{e.init&&(e.init=e.init.transform(t)),e.condition&&(e.condition=e.condition.transform(t)),e.step&&(e.step=e.step.transform(t)),e.body=e.body.transform(t)})),Xs(Ua,((e,t)=>{e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)})),Xs(Va,((e,t)=>{e.expression=e.expression.transform(t),e.body=e.body.transform(t)})),Xs(to,((e,t)=>{e.value&&(e.value=e.value.transform(t))})),Xs(io,((e,t)=>{e.label&&(e.label=e.label.transform(t))})),Xs(lo,((e,t)=>{e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&(e.alternative=e.alternative.transform(t))})),Xs(uo,((e,t)=>{e.expression=e.expression.transform(t),e.body=Ys(e.body,t)})),Xs(fo,((e,t)=>{e.expression=e.expression.transform(t),e.body=Ys(e.body,t)})),Xs(mo,((e,t)=>{e.body=Ys(e.body,t),e.bcatch&&(e.bcatch=e.bcatch.transform(t)),e.bfinally&&(e.bfinally=e.bfinally.transform(t))})),Xs(go,((e,t)=>{e.argname&&(e.argname=e.argname.transform(t)),e.body=Ys(e.body,t)})),Xs(yo,((e,t)=>{e.definitions=Ys(e.definitions,t)})),Xs(xo,((e,t)=>{e.name=e.name.transform(t),e.value&&(e.value=e.value.transform(t))})),Xs(Xa,((e,t)=>{e.names=Ys(e.names,t)})),Xs(Ka,((e,t)=>{e.name&&(e.name=e.name.transform(t)),e.argnames=Ys(e.argnames,t),e.body instanceof xa?e.body=e.body.transform(t):e.body=Ys(e.body,t)})),Xs(Ao,((e,t)=>{e.expression=e.expression.transform(t),e.args=Ys(e.args,t)})),Xs(No,((e,t)=>{const r=Ys(e.expressions,t);e.expressions=r.length?r:[new Ns({value:0})]})),Xs(Fo,((e,t)=>{e.expression=e.expression.transform(t)})),Xs(Io,((e,t)=>{e.expression=e.expression.transform(t),e.property=e.property.transform(t)})),Xs(Oo,((e,t)=>{e.expression=e.expression.transform(t)})),Xs(co,((e,t)=>{e.expression&&(e.expression=e.expression.transform(t))})),Xs(so,((e,t)=>{e.expression=e.expression.transform(t)})),Xs(Mo,((e,t)=>{e.expression=e.expression.transform(t)})),Xs(Bo,((e,t)=>{e.left=e.left.transform(t),e.right=e.right.transform(t)})),Xs(Uo,((e,t)=>{e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)})),Xs(zo,((e,t)=>{e.elements=Ys(e.elements,t)})),Xs(Ho,((e,t)=>{e.properties=Ys(e.properties,t)})),Xs(Wo,((e,t)=>{e.key instanceof xa&&(e.key=e.key.transform(t)),e.value&&(e.value=e.value.transform(t))})),Xs(Qo,((e,t)=>{e.name&&(e.name=e.name.transform(t)),e.extends&&(e.extends=e.extends.transform(t)),e.properties=Ys(e.properties,t)})),Xs(Wa,((e,t)=>{e.expression=e.expression.transform(t)})),Xs(Do,((e,t)=>{e.foreign_name=e.foreign_name.transform(t),e.name=e.name.transform(t)})),Xs(So,((e,t)=>{e.imported_name&&(e.imported_name=e.imported_name.transform(t)),e.imported_names&&Ys(e.imported_names,t),e.module_name=e.module_name.transform(t)})),Xs(Co,((e,t)=>{e.exported_definition&&(e.exported_definition=e.exported_definition.transform(t)),e.exported_value&&(e.exported_value=e.exported_value.transform(t)),e.exported_names&&Ys(e.exported_names,t),e.module_name&&(e.module_name=e.module_name.transform(t))})),Xs(Qa,((e,t)=>{e.segments=Ys(e.segments,t)})),Xs(Ya,((e,t)=>{e.prefix=e.prefix.transform(t),e.template_string=e.template_string.transform(t)})),function(){var e=e=>{for(var t=!0,r=0;r<e.length;r++)t&&e[r]instanceof Da&&e[r].body instanceof ks?e[r]=new Ta({start:e[r].start,end:e[r].end,value:e[r].body.value}):!t||e[r]instanceof Da&&e[r].body instanceof ks||(t=!1);return e},t={Program:t=>new Ha({start:r(t),end:n(t),body:e(t.body.map(o))}),ArrayPattern:e=>new Xa({start:r(e),end:n(e),names:e.elements.map((e=>null===e?new Rs:o(e))),is_array:!0}),ObjectPattern:e=>new Xa({start:r(e),end:n(e),names:e.properties.map(o),is_array:!1}),AssignmentPattern:e=>new Vo({start:r(e),end:n(e),left:o(e.left),operator:"=",right:o(e.right)}),SpreadElement:e=>new Wa({start:r(e),end:n(e),expression:o(e.argument)}),RestElement:e=>new Wa({start:r(e),end:n(e),expression:o(e.argument)}),TemplateElement:e=>new Za({start:r(e),end:n(e),value:e.value.cooked,raw:e.value.raw}),TemplateLiteral(e){for(var t=[],i=0;i<e.quasis.length;i++)t.push(o(e.quasis[i])),e.expressions[i]&&t.push(o(e.expressions[i]));return new Qa({start:r(e),end:n(e),segments:t})},TaggedTemplateExpression:e=>new Ya({start:r(e),end:n(e),template_string:o(e.quasi),prefix:o(e.tag)}),FunctionDeclaration:t=>new qa({start:r(t),end:n(t),name:o(t.id),argnames:t.params.map(o),is_generator:t.generator,async:t.async,body:e(o(t.body).body)}),FunctionExpression:t=>new Ga({start:r(t),end:n(t),name:o(t.id),argnames:t.params.map(o),is_generator:t.generator,async:t.async,body:e(o(t.body).body)}),ArrowFunctionExpression(e){const t="BlockStatement"===e.body.type?o(e.body).body:[mi(ro,{},{value:o(e.body)})];return new $a({start:r(e),end:n(e),argnames:e.params.map(o),body:t,async:e.async})},ExpressionStatement:e=>new Ca({start:r(e),end:n(e),body:o(e.expression)}),TryStatement(e){var t=e.handlers||[e.handler];if(t.length>1||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new mo({start:r(e),end:n(e),body:o(e.block).body,bcatch:o(t[0]),bfinally:e.finalizer?new ho(o(e.finalizer)):null})},Property(e){var t=e.key,i={start:r(t||e.value),end:n(e.value),key:"Identifier"==t.type?t.name:t.value,value:o(e.value)};return e.computed&&(i.key=o(e.key)),e.method?(i.is_generator=e.value.generator,i.async=e.value.async,e.computed?i.key=o(e.key):i.key=new ps({name:i.key}),new Xo(i)):"init"==e.kind?("Identifier"!=t.type&&"Literal"!=t.type&&(i.key=o(t)),new Ko(i)):("string"!=typeof i.key&&"number"!=typeof i.key||(i.key=new ps({name:i.key})),i.value=new Ja(i.value),"get"==e.kind?new qo(i):"set"==e.kind?new $o(i):"method"==e.kind?(i.async=e.value.async,i.is_generator=e.value.generator,i.quote=e.computed?'"':null,new Xo(i)):void 0)},MethodDefinition(e){var t={start:r(e),end:n(e),key:e.computed?o(e.key):new ps({name:e.key.name||e.key.value}),value:o(e.value),static:e.static};return"get"==e.kind?new qo(t):"set"==e.kind?new $o(t):(t.is_generator=e.value.generator,t.async=e.value.async,new Xo(t))},FieldDefinition(e){let t;if(e.computed)t=o(e.key);else{if("Identifier"!==e.key.type)throw new Error("Non-Identifier key in FieldDefinition");t=o(e.key)}return new Zo({start:r(e),end:n(e),key:t,value:o(e.value),static:e.static})},PropertyDefinition(e){let t;if(e.computed)t=o(e.key);else{if("Identifier"!==e.key.type)throw new Error("Non-Identifier key in PropertyDefinition");t=o(e.key)}return new Zo({start:r(e),end:n(e),key:t,value:o(e.value),static:e.static})},ArrayExpression:e=>new zo({start:r(e),end:n(e),elements:e.elements.map((e=>null===e?new Rs:o(e)))}),ObjectExpression:e=>new Ho({start:r(e),end:n(e),properties:e.properties.map((e=>("SpreadElement"===e.type||(e.type="Property"),o(e))))}),SequenceExpression:e=>new No({start:r(e),end:n(e),expressions:e.expressions.map(o)}),MemberExpression:e=>new(e.computed?Io:Fo)({start:r(e),end:n(e),property:e.computed?o(e.property):e.property.name,expression:o(e.object),optional:e.optional||!1}),ChainExpression:e=>new Oo({start:r(e),end:n(e),expression:o(e.expression)}),SwitchCase:e=>new(e.test?fo:_o)({start:r(e),end:n(e),expression:o(e.test),body:e.consequent.map(o)}),VariableDeclaration:e=>new("const"===e.kind?Eo:"let"===e.kind?bo:vo)({start:r(e),end:n(e),definitions:e.declarations.map(o)}),ImportDeclaration(e){var t=null,i=null;return e.specifiers.forEach((e=>{"ImportSpecifier"===e.type?(i||(i=[]),i.push(new Do({start:r(e),end:n(e),foreign_name:o(e.imported),name:o(e.local)}))):"ImportDefaultSpecifier"===e.type?t=o(e.local):"ImportNamespaceSpecifier"===e.type&&(i||(i=[]),i.push(new Do({start:r(e),end:n(e),foreign_name:new vs({name:"*"}),name:o(e.local)})))})),new So({start:r(e),end:n(e),imported_name:t,imported_names:i,module_name:o(e.source)})},ExportAllDeclaration:e=>new Co({start:r(e),end:n(e),exported_names:[new Do({name:new Ds({name:"*"}),foreign_name:new Ds({name:"*"})})],module_name:o(e.source)}),ExportNamedDeclaration:e=>new Co({start:r(e),end:n(e),exported_definition:o(e.declaration),exported_names:e.specifiers&&e.specifiers.length?e.specifiers.map((e=>new Do({foreign_name:o(e.exported),name:o(e.local)}))):null,module_name:o(e.source)}),ExportDefaultDeclaration:e=>new Co({start:r(e),end:n(e),exported_value:o(e.declaration),is_default:!0}),Literal(e){var t=e.value,i={start:r(e),end:n(e)},a=e.regex;if(a&&a.pattern)return i.value={source:a.pattern,flags:a.flags},new Fs(i);if(a){const r=e.raw||t,n=r.match(/^\/(.*)\/(\w*)$/);if(!n)throw new Error("Invalid regex source "+r);const[a,o,s]=n;return i.value={source:o,flags:s},new Fs(i)}if(null===t)return new Is(i);switch(typeof t){case"string":return i.value=t,new ks(i);case"number":return i.value=t,i.raw=e.raw||t.toString(),new Ns(i);case"boolean":return new(t?js:Us)(i)}},MetaProperty:e=>"new"===e.meta.name&&"target"===e.property.name?new is({start:r(e),end:n(e)}):"import"===e.meta.name&&"meta"===e.property.name?new To({start:r(e),end:n(e)}):void 0,Identifier(e){var t=a[a.length-2];return new("LabeledStatement"==t.type?bs:"VariableDeclarator"==t.type&&t.id===e?"const"==t.kind?cs:"let"==t.kind?ls:os:/Import.*Specifier/.test(t.type)?t.local===e?ys:vs:"ExportSpecifier"==t.type?t.local===e?xs:Ds:"FunctionExpression"==t.type?t.id===e?fs:ds:"FunctionDeclaration"==t.type?t.id===e?us:ds:"ArrowFunctionExpression"==t.type?t.params.includes(e)?ds:Es:"ClassExpression"==t.type?t.id===e?gs:Es:"Property"==t.type?t.key===e&&t.computed||t.value===e?Es:ps:"PropertyDefinition"==t.type||"FieldDefinition"===t.type?t.key===e&&t.computed||t.value===e?Es:_s:"ClassDeclaration"==t.type?t.id===e?ms:Es:"MethodDefinition"==t.type?t.computed?Es:ps:"CatchClause"==t.type?hs:"BreakStatement"==t.type||"ContinueStatement"==t.type?Ss:Es)({start:r(e),end:n(e),name:e.name})},BigIntLiteral:e=>new ws({start:r(e),end:n(e),value:e.value})};function r(e){var t=e.loc,r=t&&t.start,n=e.range;return new Ea("","",r&&r.line||0,r&&r.column||0,n?n[0]:e.start,!1,[],[],t&&t.source)}function n(e){var t=e.loc,r=t&&t.end,n=e.range;return new Ea("","",r&&r.line||0,r&&r.column||0,n?n[0]:e.end,!1,[],[],t&&t.source)}function i(e,i,a){var c="function From_Moz_"+e+"(M){\n";c+="return new U2."+i.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var d="function To_Moz_"+e+"(M){\n";d+="return {\ntype: "+JSON.stringify(e),a&&a.split(/\s*,\s*/).forEach((e=>{var t=/([a-z0-9$_]+)([=@>%])([a-z0-9$_]+)/i.exec(e);if(!t)throw new Error("Can't understand property map: "+e);var r=t[1],n=t[2],i=t[3];switch(c+=",\n"+i+": ",d+=",\n"+r+": ",n){case"@":c+="M."+r+".map(from_moz)",d+="M."+i+".map(to_moz)";break;case">":c+="from_moz(M."+r+")",d+="to_moz(M."+i+")";break;case"=":c+="M."+r,d+="M."+i;break;case"%":c+="from_moz(M."+r+").body",d+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}})),c+="\n})\n}",d+="\n}\n}",c=new Function("U2","my_start_token","my_end_token","from_moz","return("+c+")")(qs,r,n,o),d=new Function("to_moz","to_moz_block","to_moz_scope","return("+d+")")(l,u,p),t[e]=c,s(i,d)}t.UpdateExpression=t.UnaryExpression=e=>new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?Ro:Lo)({start:r(e),end:n(e),operator:e.operator,expression:o(e.argument)}),t.ClassDeclaration=t.ClassExpression=e=>new("ClassDeclaration"===e.type?ts:rs)({start:r(e),end:n(e),name:o(e.id),extends:o(e.superClass),properties:e.body.body.map(o)}),i("EmptyStatement",Fa),i("BlockStatement",wa,"body@body"),i("IfStatement",lo,"test>condition, consequent>body, alternate>alternative"),i("LabeledStatement",Ia,"label>label, body>body"),i("BreakStatement",ao,"label>label"),i("ContinueStatement",oo,"label>label"),i("WithStatement",Va,"object>expression, body>body"),i("SwitchStatement",uo,"discriminant>expression, cases@body"),i("ReturnStatement",ro,"argument>value"),i("ThrowStatement",no,"argument>value"),i("WhileStatement",La,"test>condition, body>body"),i("DoWhileStatement",Ra,"test>condition, body>body"),i("ForStatement",Ba,"init>init, test>condition, update>step, body>body"),i("ForInStatement",Ua,"left>init, right>object, body>body"),i("ForOfStatement",ja,"left>init, right>object, body>body, await=await"),i("AwaitExpression",so,"argument>expression"),i("YieldExpression",co,"argument>expression, delegate=is_star"),i("DebuggerStatement",Sa),i("VariableDeclarator",xo,"id>name, init>value"),i("CatchClause",go,"param>argname, body%body"),i("ThisExpression",Ts),i("Super",Cs),i("BinaryExpression",Bo,"operator=operator, left>left, right>right"),i("LogicalExpression",Bo,"operator=operator, left>left, right>right"),i("AssignmentExpression",jo,"operator=operator, left>left, right>right"),i("ConditionalExpression",Uo,"test>condition, consequent>consequent, alternate>alternative"),i("NewExpression",ko,"callee>expression, arguments@args"),i("CallExpression",Ao,"callee>expression, optional=optional, arguments@args"),s(Ha,(e=>p("Program",e))),s(Wa,(e=>({type:d()?"RestElement":"SpreadElement",argument:l(e.expression)}))),s(Ya,(e=>({type:"TaggedTemplateExpression",tag:l(e.prefix),quasi:l(e.template_string)}))),s(Qa,(e=>{for(var t=[],r=[],n=0;n<e.segments.length;n++)n%2!=0?r.push(l(e.segments[n])):t.push({type:"TemplateElement",value:{raw:e.segments[n].raw,cooked:e.segments[n].value},tail:n===e.segments.length-1});return{type:"TemplateLiteral",quasis:t,expressions:r}})),s(qa,(e=>({type:"FunctionDeclaration",id:l(e.name),params:e.argnames.map(l),generator:e.is_generator,async:e.async,body:p("BlockStatement",e)}))),s(Ga,((e,t)=>{var r=void 0!==t.is_generator?t.is_generator:e.is_generator;return{type:"FunctionExpression",id:l(e.name),params:e.argnames.map(l),generator:r,async:e.async,body:p("BlockStatement",e)}})),s($a,(e=>{var t={type:"BlockStatement",body:e.body.map(l)};return{type:"ArrowFunctionExpression",params:e.argnames.map(l),async:e.async,body:t}})),s(Xa,(e=>e.is_array?{type:"ArrayPattern",elements:e.names.map(l)}:{type:"ObjectPattern",properties:e.names.map(l)})),s(Ta,(e=>({type:"ExpressionStatement",expression:{type:"Literal",value:e.value,raw:e.print_to_string()},directive:e.value}))),s(Ca,(e=>({type:"ExpressionStatement",expression:l(e.body)}))),s(po,(e=>({type:"SwitchCase",test:l(e.expression),consequent:e.body.map(l)}))),s(mo,(e=>({type:"TryStatement",block:u(e),handler:l(e.bcatch),guardedHandlers:[],finalizer:l(e.bfinally)}))),s(go,(e=>({type:"CatchClause",param:l(e.argname),guard:null,body:u(e)}))),s(yo,(e=>({type:"VariableDeclaration",kind:e instanceof Eo?"const":e instanceof bo?"let":"var",declarations:e.definitions.map(l)}))),s(Co,(e=>e.exported_names?"*"===e.exported_names[0].name.name?{type:"ExportAllDeclaration",source:l(e.module_name)}:{type:"ExportNamedDeclaration",specifiers:e.exported_names.map((e=>({type:"ExportSpecifier",exported:l(e.foreign_name),local:l(e.name)}))),declaration:l(e.exported_definition),source:l(e.module_name)}:{type:e.is_default?"ExportDefaultDeclaration":"ExportNamedDeclaration",declaration:l(e.exported_value||e.exported_definition)})),s(So,(e=>{var t=[];return e.imported_name&&t.push({type:"ImportDefaultSpecifier",local:l(e.imported_name)}),e.imported_names&&"*"===e.imported_names[0].foreign_name.name?t.push({type:"ImportNamespaceSpecifier",local:l(e.imported_names[0].name)}):e.imported_names&&e.imported_names.forEach((e=>{t.push({type:"ImportSpecifier",local:l(e.name),imported:l(e.foreign_name)})})),{type:"ImportDeclaration",specifiers:t,source:l(e.module_name)}})),s(To,(()=>({type:"MetaProperty",meta:{type:"Identifier",name:"import"},property:{type:"Identifier",name:"meta"}}))),s(No,(e=>({type:"SequenceExpression",expressions:e.expressions.map(l)}))),s(Po,(e=>({type:"MemberExpression",object:l(e.expression),computed:!1,property:{type:"PrivateIdentifier",name:e.property},optional:e.optional}))),s(wo,(e=>{var t=e instanceof Io;return{type:"MemberExpression",object:l(e.expression),computed:t,property:t?l(e.property):{type:"Identifier",name:e.property},optional:e.optional}})),s(Oo,(e=>({type:"ChainExpression",expression:l(e.expression)}))),s(Mo,(e=>({type:"++"==e.operator||"--"==e.operator?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof Ro,argument:l(e.expression)}))),s(Bo,(e=>"="==e.operator&&d()?{type:"AssignmentPattern",left:l(e.left),right:l(e.right)}:{type:"&&"==e.operator||"||"==e.operator||"??"===e.operator?"LogicalExpression":"BinaryExpression",left:l(e.left),operator:e.operator,right:l(e.right)})),s(zo,(e=>({type:"ArrayExpression",elements:e.elements.map(l)}))),s(Ho,(e=>({type:"ObjectExpression",properties:e.properties.map(l)}))),s(Wo,((e,t)=>{var r,n=e.key instanceof xa?l(e.key):{type:"Identifier",value:e.key};"number"==typeof e.key&&(n={type:"Literal",value:Number(e.key)}),"string"==typeof e.key&&(n={type:"Identifier",name:e.key});var i="string"==typeof e.key||"number"==typeof e.key,a=!i&&(!(e.key instanceof ns)||e.key instanceof Es);return e instanceof Ko?(r="init",a=!i):e instanceof qo?r="get":e instanceof $o&&(r="set"),e instanceof Go||e instanceof Jo?{type:"MethodDefinition",computed:!1,kind:e instanceof Go?"get":"set",static:e.static,key:{type:"PrivateIdentifier",name:e.key.name},value:l(e.value)}:e instanceof es?{type:"PropertyDefinition",key:{type:"PrivateIdentifier",name:e.key.name},value:l(e.value),computed:!1,static:e.static}:e instanceof Zo?{type:"PropertyDefinition",key:n,value:l(e.value),computed:a,static:e.static}:t instanceof Qo?{type:"MethodDefinition",computed:a,kind:r,static:e.static,key:l(e.key),value:l(e.value)}:{type:"Property",computed:a,kind:r,key:n,value:l(e.value)}})),s(Xo,((e,t)=>{if(t instanceof Ho)return{type:"Property",computed:!(e.key instanceof ns)||e.key instanceof Es,kind:"init",method:!0,shorthand:!1,key:l(e.key),value:l(e.value)};const r=e instanceof Yo?{type:"PrivateIdentifier",name:e.key.name}:l(e.key);return{type:"MethodDefinition",kind:"constructor"===e.key?"constructor":"method",key:r,value:l(e.value),computed:!(e.key instanceof ns)||e.key instanceof Es,static:e.static}})),s(Qo,(e=>({type:e instanceof rs?"ClassExpression":"ClassDeclaration",superClass:l(e.extends),id:e.name?l(e.name):null,body:{type:"ClassBody",body:e.properties.map(l)}}))),s(is,(()=>({type:"MetaProperty",meta:{type:"Identifier",name:"new"},property:{type:"Identifier",name:"target"}}))),s(ns,((e,t)=>{if(e instanceof ps&&t.quote)return{type:"Literal",value:e.name};var r=e.definition();return{type:"Identifier",name:r?r.mangled_name||r.name:e.name}})),s(Fs,(e=>{const t=e.value.source,r=e.value.flags;return{type:"Literal",value:null,raw:e.print_to_string(),regex:{pattern:t,flags:r}}})),s(As,(e=>({type:"Literal",value:e.value,raw:e.raw||e.print_to_string()}))),s(Ps,(e=>({type:"Identifier",name:String(e.value)}))),s(ws,(e=>({type:"BigIntLiteral",value:e.value}))),Bs.DEFMETHOD("to_mozilla_ast",As.prototype.to_mozilla_ast),Is.DEFMETHOD("to_mozilla_ast",As.prototype.to_mozilla_ast),Rs.DEFMETHOD("to_mozilla_ast",(()=>null)),Na.DEFMETHOD("to_mozilla_ast",wa.prototype.to_mozilla_ast),Ka.DEFMETHOD("to_mozilla_ast",Ga.prototype.to_mozilla_ast);var a=null;function o(e){a.push(e);var r=null!=e?t[e.type](e):null;return a.pop(),r}function s(e,t){e.DEFMETHOD("to_mozilla_ast",(function(e){return r=t(this,e),n=this.start,i=this.end,n&&i?(null!=n.pos&&null!=i.endpos&&(r.range=[n.pos,i.endpos]),n.line&&(r.loc={start:{line:n.line,column:n.col},end:i.endline?{line:i.endline,column:i.endcol}:null},n.file&&(r.loc.source=n.file)),r):r;var r,n,i}))}xa.from_mozilla_ast=e=>{var t=a;a=[];var r=o(e);return a=t,r};var c=null;function l(e){null===c&&(c=[]),c.push(e);var t=null!=e?e.to_mozilla_ast(c[c.length-2]):null;return c.pop(),0===c.length&&(c=null),t}function d(){for(var e=c.length;e--;)if(c[e]instanceof Xa)return!0;return!1}function u(e){return{type:"BlockStatement",body:e.body.map(l)}}function p(e,t){var r=t.body.map(l);return t.body[0]instanceof Ca&&t.body[0].body instanceof ks&&r.unshift(l(new Fa(t.body[0]))),{type:e,body:r}}}();const ec=/^$|[;{][\s\n]*$/,tc=/[@#]__(PURE|INLINE|NOINLINE)__/g;function rc(e){return("comment2"===e.type||"comment1"===e.type)&&/@preserve|@lic|@cc_on|^\**!/i.test(e.value)}function nc(e){var t=!e;void 0===(e=ci(e,{ascii_only:!1,beautify:!1,braces:!1,comments:"some",ecma:5,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_numbers:!1,keep_quoted_props:!1,max_line_len:!1,preamble:null,preserve_annotations:!1,quote_keys:!1,quote_style:0,safari10:!1,semicolons:!0,shebang:!0,shorthand:void 0,source_map:null,webkit:!1,width:80,wrap_iife:!1,wrap_func_args:!0},!0)).shorthand&&(e.shorthand=e.ecma>5);var r=di;if(e.comments){let t=e.comments;if("string"==typeof e.comments&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var n=e.comments.lastIndexOf("/");t=new RegExp(e.comments.substr(1,n-1),e.comments.substr(n+1))}r=t instanceof RegExp?e=>"comment5"!=e.type&&t.test(e.value):"function"==typeof t?function(e){return"comment5"!=e.type&&t(this,e)}:"some"===t?rc:ui}var i=0,a=0,o=1,s=0,c="";let l=new Set;var d=e.ascii_only?(t,r)=>(e.ecma>=2015&&!e.safari10&&(t=t.replace(/[\ud800-\udbff][\udc00-\udfff]/g,(e=>"\\u{"+((e,t)=>Yi(e.charCodeAt(0))?65536+(e.charCodeAt(0)-55296<<10)+e.charCodeAt(1)-56320:e.charCodeAt(0))(e).toString(16)+"}"))),t.replace(/[\u0000-\u001f\u007f-\uffff]/g,(e=>{var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!r){for(;t.length<2;)t="0"+t;return"\\x"+t}for(;t.length<4;)t="0"+t;return"\\u"+t}))):e=>e.replace(/[\ud800-\udbff][\udc00-\udfff]|([\ud800-\udbff]|[\udc00-\udfff])/g,((e,t)=>t?"\\u"+t.charCodeAt(0).toString(16):e));function u(t,r){var n=((t,r)=>{var n=0,i=0;function a(){return"'"+t.replace(/\x27/g,"\\'")+"'"}function o(){return'"'+t.replace(/\x22/g,'\\"')+'"'}if(t=t.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,((r,a)=>{switch(r){case'"':return++n,'"';case"'":return++i,"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return e.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(Xi(t,a+1))?"\\x00":"\\0"}return r})),t=d(t),"`"===r)return"`"+t.replace(/`/g,"\\`")+"`";switch(e.quote_style){case 1:return a();case 2:return o();case 3:return"'"==r?a():o();default:return n>i?a():o()}})(t,r);return e.inline_script&&(n=(n=(n=n.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2")).replace(/\x3c!--/g,"\\x3c!--")).replace(/--\x3e/g,"--\\x3e")),n}var p,_,f=!1,m=!1,g=!1,h=0,y=!1,v=!1,b=-1,E="",x=e.source_map&&[],D=x?()=>{x.forEach((t=>{try{e.source_map.add(t.token.file,t.line,t.col,t.token.line,t.token.col,t.name||"name"!=t.token.type?t.name:t.token.value)}catch(e){}})),x=[]}:li,S=e.max_line_len?()=>{if(a>e.max_line_len&&h){var t=c.slice(0,h),r=c.slice(h);if(x){var n=r.length-a;x.forEach((e=>{e.line++,e.col+=n}))}c=t+"\n"+r,o++,s++,a=r.length}h&&(h=0,D())}:li,T=bi("( [ + * / - , . `");function C(t){var r=Xi(t=String(t),0);y&&r&&(y=!1,"\n"!==r&&(C("\n"),k())),v&&r&&(v=!1,/[\s;})]/.test(r)||A()),b=-1;var n=E.charAt(E.length-1);g&&(g=!1,(":"!==n||"}"!==r)&&(r&&";}".includes(r)||";"===n)||(e.semicolons||T.has(r)?(c+=";",a++,s++):(S(),a>0&&(c+="\n",s++,o++,a=0),/^\s+$/.test(t)&&(g=!0)),e.beautify||(m=!1))),m&&((ta(n)&&(ta(r)||"\\"==r)||"/"==r&&r==n||("+"==r||"-"==r)&&r==E)&&(c+=" ",a++,s++),m=!1),p&&(x.push({token:p,name:_,line:o,col:a}),p=!1,h||D()),c+=t,f="("==t[t.length-1],s+=t.length;var i=t.split(/\r?\n/),l=i.length-1;o+=l,a+=i[0].length,l>0&&(S(),a=i[l].length),E=t}var A=e.beautify?()=>{C(" ")}:()=>{m=!0},k=e.beautify?t=>{var r;e.beautify&&C((r=t?.5:0," ".repeat(e.indent_start+i-r*e.indent_level)))}:li,N=e.beautify?(e,t)=>{!0===e&&(e=I());var r=i;i=e;var n=t();return i=r,n}:(e,t)=>t(),w=e.beautify?()=>{if(b<0)return C("\n");"\n"!=c[b]&&(c=c.slice(0,b)+"\n"+c.slice(b),s++,o++),b++}:e.max_line_len?()=>{S(),h=c.length}:li,F=e.beautify?()=>{C(";")}:()=>{g=!0};function P(){g=!1,C(";")}function I(){return i+e.indent_level}function O(){return h&&S(),c}function M(){let e=c.length-1;for(;e>=0;){const t=c.charCodeAt(e);if(10===t)return!0;if(32!==t)return!1;e--}return!0}function R(t){return e.preserve_annotations||(t=t.replace(tc," ")),/^\s*$/.test(t)?"":t.replace(/(<\s*\/\s*)(script)/i,"<\\/$2")}var L=[];return{get:O,toString:O,indent:k,in_directive:!1,use_asm:null,active_scope:null,indentation:()=>i,current_width:()=>a-i,should_break(){return e.width&&this.current_width()>=e.width},has_parens:()=>f,newline:w,print:C,star(){C("*")},space:A,comma(){C(","),A()},colon(){C(":"),A()},last:()=>E,semicolon:F,force_semicolon:P,to_utf8:d,print_name(e){C((e=>(e=e.toString(),d(e,!0)))(e))},print_string(e,t,r){var n=u(e,t);!0!==r||n.includes("\\")||(ec.test(c)||P(),P()),C(n)},print_template_string_chars(e){var t=u(e,"`").replace(/\${/g,"\\${");return C(t.substr(1,t.length-2))},encode_string:u,next_indent:I,with_indent:N,with_block(e){var t;return C("{"),w(),N(I(),(()=>{t=e()})),k(),C("}"),t},with_parens(e){C("(");var t=e();return C(")"),t},with_square(e){C("[");var t=e();return C("]"),t},add_mapping:x?(e,t)=>{p=e,_=t}:li,option:t=>e[t],printed_comments:l,prepend_comments:t?li:function(t){var n=t.start;if(!n)return;var i=this.printed_comments;const a=t instanceof to&&t.value;if(n.comments_before&&i.has(n.comments_before)){if(!a)return;n.comments_before=[]}var o=n.comments_before;if(o||(o=n.comments_before=[]),i.add(o),a){var c=new Ws((e=>{var t=c.parent();if(!(t instanceof to||t instanceof Bo&&t.left===e||"Call"==t.TYPE&&t.expression===e||t instanceof Uo&&t.condition===e||t instanceof Fo&&t.expression===e||t instanceof No&&t.expressions[0]===e||t instanceof Io&&t.expression===e||t instanceof Lo))return!0;if(e.start){var r=e.start.comments_before;r&&!i.has(r)&&(i.add(r),o=o.concat(r))}}));c.push(t),t.value.walk(c)}if(0==s){o.length>0&&e.shebang&&"comment5"===o[0].type&&!i.has(o[0])&&(C("#!"+o.shift().value+"\n"),k());var l=e.preamble;l&&C(l.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}if(0!=(o=o.filter(r,t).filter((e=>!i.has(e)))).length){var d=M();o.forEach(((e,t)=>{if(i.add(e),d||(e.nlb?(C("\n"),k(),d=!0):t>0&&A()),/comment[134]/.test(e.type))(r=R(e.value))&&(C("//"+r+"\n"),k()),d=!0;else if("comment2"==e.type){var r;(r=R(e.value))&&C("/*"+r+"*/"),d=!1}})),d||(n.nlb?(C("\n"),k()):A())}},append_comments:t||r===di?li:function(e,t){var n=e.end;if(n){var i=this.printed_comments,a=n[t?"comments_before":"comments_after"];if(a&&!i.has(a)&&(e instanceof Da||a.every((e=>!/comment[134]/.test(e.type))))){i.add(a);var o=c.length;a.filter(r,e).forEach(((e,r)=>{if(!i.has(e))if(i.add(e),v=!1,y?(C("\n"),k(),y=!1):e.nlb&&(r>0||!M())?(C("\n"),k()):(r>0||!t)&&A(),/comment[134]/.test(e.type)){const t=R(e.value);t&&C("//"+t),y=!0}else if("comment2"==e.type){const t=R(e.value);t&&C("/*"+t+"*/"),v=!0}})),c.length>o&&(b=o)}}},line:()=>o,col:()=>a,pos:()=>s,push_node(e){L.push(e)},pop_node:()=>L.pop(),parent:e=>L[L.length-2-(e||0)]}}!function(){function e(e,t){e.DEFMETHOD("_codegen",t)}function t(e,r){Array.isArray(e)?e.forEach((e=>{t(e,r)})):e.DEFMETHOD("needs_parens",r)}function r(e,t,r,n){var i=e.length-1;r.in_directive=n,e.forEach(((e,n)=>{!0!==r.in_directive||e instanceof Ta||e instanceof Fa||e instanceof Ca&&e.body instanceof ks||(r.in_directive=!1),e instanceof Fa||(r.indent(),e.print(r),n==i&&t||(r.newline(),t&&r.newline())),!0===r.in_directive&&e instanceof Ca&&e.body instanceof ks&&(r.in_directive=!1)})),r.in_directive=!1}function n(e,t){t.print("{"),t.with_indent(t.next_indent(),(()=>{t.append_comments(e,!0)})),t.print("}")}function i(e,t,i){e.body.length>0?t.with_block((()=>{r(e.body,!1,t,i)})):n(e,t)}function a(e,t,r){var n=!1;r&&(n=Vs(e,(e=>e instanceof za||(e instanceof Bo&&"in"==e.operator?Hs:void 0)))),e.print(t,n)}function o(e,t,r){return r.option("quote_keys")?r.print_string(e):""+ +e==e&&e>=0?r.option("keep_numbers")?r.print(e):r.print(d(e)):(Ii.has(e)?r.option("ie8"):r.option("ecma")<2015||r.option("safari10")?!na(e):!ia(e,!0))||t&&r.option("keep_quoted_props")?r.print_string(e,t):r.print_name(e)}xa.DEFMETHOD("print",(function(e,t){var r=this,n=r._codegen;function i(){e.prepend_comments(r),r.add_source_map(e),n(r,e),e.append_comments(r)}r instanceof za?e.active_scope=r:!e.use_asm&&r instanceof Ta&&"use asm"==r.value&&(e.use_asm=e.active_scope),e.push_node(r),t||r.needs_parens(e)?e.with_parens(i):i(),e.pop_node(),r===e.use_asm&&(e.use_asm=null)})),xa.DEFMETHOD("_print",xa.prototype.print),xa.DEFMETHOD("print_to_string",(function(e){var t=nc(e);return this.print(t),t.get()})),t(xa,di),t(Ga,(function(e){return!((e.has_parens()||!Qs(e))&&!(e.option("webkit")&&(t=e.parent())instanceof wo&&t.expression===this)&&!(e.option("wrap_iife")&&(t=e.parent())instanceof Ao&&t.expression===this)&&!(e.option("wrap_func_args")&&(t=e.parent())instanceof Ao&&t.args.includes(this)));var t})),t($a,(function(e){var t=e.parent();return!!(e.option("wrap_func_args")&&t instanceof Ao&&t.args.includes(this))||t instanceof wo&&t.expression===this})),t(Ho,(e=>!e.has_parens()&&Qs(e))),t(rs,Qs),t(Mo,(function(e){var t=e.parent();return t instanceof wo&&t.expression===this||t instanceof Ao&&t.expression===this||t instanceof Bo&&"**"===t.operator&&this instanceof Ro&&t.left===this&&"++"!==this.operator&&"--"!==this.operator})),t(so,(function(e){var t=e.parent();return t instanceof wo&&t.expression===this||t instanceof Ao&&t.expression===this||t instanceof Bo&&"**"===t.operator&&t.left===this||e.option("safari10")&&t instanceof Ro})),t(No,(function(e){var t=e.parent();return t instanceof Ao||t instanceof Mo||t instanceof Bo||t instanceof xo||t instanceof wo||t instanceof zo||t instanceof Wo||t instanceof Uo||t instanceof $a||t instanceof Vo||t instanceof Wa||t instanceof ja&&this===t.object||t instanceof co||t instanceof Co})),t(Bo,(function(e){var t=e.parent();if(t instanceof Ao&&t.expression===this)return!0;if(t instanceof Mo)return!0;if(t instanceof wo&&t.expression===this)return!0;if(t instanceof Bo){const e=t.operator,r=this.operator;if("??"===r&&("||"===e||"&&"===e))return!0;if("??"===e&&("||"===r||"&&"===r))return!0;const n=ma[e],i=ma[r];if(n>i||n==i&&(this===t.right||"**"==e))return!0}})),t(co,(function(e){var t=e.parent();return t instanceof Bo&&"="!==t.operator||t instanceof Ao&&t.expression===this||t instanceof Uo&&t.condition===this||t instanceof Mo||t instanceof wo&&t.expression===this||void 0})),t(wo,(function(e){var t=e.parent();if(t instanceof ko&&t.expression===this)return Vs(this,(e=>e instanceof za||(e instanceof Ao?Hs:void 0)))})),t(Ao,(function(e){var t,r=e.parent();return!!(r instanceof ko&&r.expression===this||r instanceof Co&&r.is_default&&this.expression instanceof Ga)||this.expression instanceof Ga&&r instanceof wo&&r.expression===this&&(t=e.parent(1))instanceof jo&&t.left===r})),t(ko,(function(e){var t=e.parent();if(0===this.args.length&&(t instanceof wo||t instanceof Ao&&t.expression===this))return!0})),t(Ns,(function(e){var t=e.parent();if(t instanceof wo&&t.expression===this){var r=this.getValue();if(r<0||/^0/.test(d(r)))return!0}})),t(ws,(function(e){var t=e.parent();if(t instanceof wo&&t.expression===this&&this.getValue().startsWith("-"))return!0})),t([jo,Uo],(function(e){var t=e.parent();return t instanceof Mo||t instanceof Bo&&!(t instanceof jo)||t instanceof Ao&&t.expression===this||t instanceof Uo&&t.condition===this||t instanceof wo&&t.expression===this||this instanceof jo&&this.left instanceof Xa&&!1===this.left.is_array||void 0})),e(Ta,((e,t)=>{t.print_string(e.value,e.quote),t.semicolon()})),e(Wa,((e,t)=>{t.print("..."),e.expression.print(t)})),e(Xa,((e,t)=>{t.print(e.is_array?"[":"{");var r=e.names.length;e.names.forEach(((e,n)=>{n>0&&t.comma(),e.print(t),n==r-1&&e instanceof Rs&&t.comma()})),t.print(e.is_array?"]":"}")})),e(Sa,((e,t)=>{t.print("debugger"),t.semicolon()})),Pa.DEFMETHOD("_do_print_body",(function(e){l(this.body,e)})),e(Da,((e,t)=>{e.body.print(t),t.semicolon()})),e(Ha,((e,t)=>{r(e.body,!0,t,!0),t.print("")})),e(Ia,((e,t)=>{e.label.print(t),t.colon(),e.body.print(t)})),e(Ca,((e,t)=>{e.body.print(t),t.semicolon()})),e(wa,((e,t)=>{i(e,t)})),e(Fa,((e,t)=>{t.semicolon()})),e(Ra,((e,t)=>{t.print("do"),t.space(),u(e.body,t),t.space(),t.print("while"),t.space(),t.with_parens((()=>{e.condition.print(t)})),t.semicolon()})),e(La,((e,t)=>{t.print("while"),t.space(),t.with_parens((()=>{e.condition.print(t)})),t.space(),e._do_print_body(t)})),e(Ba,((e,t)=>{t.print("for"),t.space(),t.with_parens((()=>{e.init?(e.init instanceof yo?e.init.print(t):a(e.init,t,!0),t.print(";"),t.space()):t.print(";"),e.condition?(e.condition.print(t),t.print(";"),t.space()):t.print(";"),e.step&&e.step.print(t)})),t.space(),e._do_print_body(t)})),e(Ua,((e,t)=>{t.print("for"),e.await&&(t.space(),t.print("await")),t.space(),t.with_parens((()=>{e.init.print(t),t.space(),t.print(e instanceof ja?"of":"in"),t.space(),e.object.print(t)})),t.space(),e._do_print_body(t)})),e(Va,((e,t)=>{t.print("with"),t.space(),t.with_parens((()=>{e.expression.print(t)})),t.space(),e._do_print_body(t)})),Ka.DEFMETHOD("_do_print",(function(e,t){var r=this;t||(r.async&&(e.print("async"),e.space()),e.print("function"),r.is_generator&&e.star(),r.name&&e.space()),r.name instanceof ns?r.name.print(e):t&&r.name instanceof xa&&e.with_square((()=>{r.name.print(e)})),e.with_parens((()=>{r.argnames.forEach(((t,r)=>{r&&e.comma(),t.print(e)}))})),e.space(),i(r,e,!0)})),e(Ka,((e,t)=>{e._do_print(t)})),e(Ya,((e,t)=>{var r=e.prefix,n=r instanceof Ka||r instanceof Bo||r instanceof Uo||r instanceof No||r instanceof Mo||r instanceof Fo&&r.expression instanceof Ho;n&&t.print("("),e.prefix.print(t),n&&t.print(")"),e.template_string.print(t)})),e(Qa,((e,t)=>{var r=t.parent()instanceof Ya;t.print("`");for(var n=0;n<e.segments.length;n++)e.segments[n]instanceof Za?r?t.print(e.segments[n].raw):t.print_template_string_chars(e.segments[n].value):(t.print("${"),e.segments[n].print(t),t.print("}"));t.print("`")})),e(Za,((e,t)=>{t.print_template_string_chars(e.value)})),$a.DEFMETHOD("_do_print",(function(e){var t=this,r=e.parent(),n=r instanceof Bo&&!(r instanceof jo)||r instanceof Mo||r instanceof Ao&&t===r.expression;n&&e.print("("),t.async&&(e.print("async"),e.space()),1===t.argnames.length&&t.argnames[0]instanceof ns?t.argnames[0].print(e):e.with_parens((()=>{t.argnames.forEach(((t,r)=>{r&&e.comma(),t.print(e)}))})),e.space(),e.print("=>"),e.space();const a=t.body[0];if(1===t.body.length&&a instanceof ro){const t=a.value;t?Zs(t)?(e.print("("),t.print(e),e.print(")")):t.print(e):e.print("{}")}else i(t,e);n&&e.print(")")})),to.DEFMETHOD("_do_print",(function(e,t){if(e.print(t),this.value){e.space();const t=this.value.start.comments_before;t&&t.length&&!e.printed_comments.has(t)?(e.print("("),this.value.print(e),e.print(")")):this.value.print(e)}e.semicolon()})),e(ro,((e,t)=>{e._do_print(t,"return")})),e(no,((e,t)=>{e._do_print(t,"throw")})),e(co,((e,t)=>{var r=e.is_star?"*":"";t.print("yield"+r),e.expression&&(t.space(),e.expression.print(t))})),e(so,((e,t)=>{t.print("await"),t.space();var r=e.expression,n=!(r instanceof Ao||r instanceof Es||r instanceof wo||r instanceof Mo||r instanceof As||r instanceof so||r instanceof Ho);n&&t.print("("),e.expression.print(t),n&&t.print(")")})),io.DEFMETHOD("_do_print",(function(e,t){e.print(t),this.label&&(e.space(),this.label.print(e)),e.semicolon()})),e(ao,((e,t)=>{e._do_print(t,"break")})),e(oo,((e,t)=>{e._do_print(t,"continue")})),e(lo,((e,t)=>{t.print("if"),t.space(),t.with_parens((()=>{e.condition.print(t)})),t.space(),e.alternative?(((e,t)=>{var r=e.body;if(t.option("braces")||t.option("ie8")&&r instanceof Ra)return u(r,t);if(!r)return t.force_semicolon();for(;;)if(r instanceof lo){if(!r.alternative)return void u(e.body,t);r=r.alternative}else{if(!(r instanceof Pa))break;r=r.body}l(e.body,t)})(e,t),t.space(),t.print("else"),t.space(),e.alternative instanceof lo?e.alternative.print(t):l(e.alternative,t)):e._do_print_body(t)})),e(uo,((e,t)=>{t.print("switch"),t.space(),t.with_parens((()=>{e.expression.print(t)})),t.space();var r=e.body.length-1;r<0?n(e,t):t.with_block((()=>{e.body.forEach(((e,n)=>{t.indent(!0),e.print(t),n<r&&e.body.length>0&&t.newline()}))}))})),po.DEFMETHOD("_do_print_body",(function(e){e.newline(),this.body.forEach((t=>{e.indent(),t.print(e),e.newline()}))})),e(_o,((e,t)=>{t.print("default:"),e._do_print_body(t)})),e(fo,((e,t)=>{t.print("case"),t.space(),e.expression.print(t),t.print(":"),e._do_print_body(t)})),e(mo,((e,t)=>{t.print("try"),t.space(),i(e,t),e.bcatch&&(t.space(),e.bcatch.print(t)),e.bfinally&&(t.space(),e.bfinally.print(t))})),e(go,((e,t)=>{t.print("catch"),e.argname&&(t.space(),t.with_parens((()=>{e.argname.print(t)}))),t.space(),i(e,t)})),e(ho,((e,t)=>{t.print("finally"),t.space(),i(e,t)})),yo.DEFMETHOD("_do_print",(function(e,t){e.print(t),e.space(),this.definitions.forEach(((t,r)=>{r&&e.comma(),t.print(e)}));var r=e.parent();(!(r instanceof Ba||r instanceof Ua)||r&&r.init!==this)&&e.semicolon()})),e(bo,((e,t)=>{e._do_print(t,"let")})),e(vo,((e,t)=>{e._do_print(t,"var")})),e(Eo,((e,t)=>{e._do_print(t,"const")})),e(So,((e,t)=>{t.print("import"),t.space(),e.imported_name&&e.imported_name.print(t),e.imported_name&&e.imported_names&&(t.print(","),t.space()),e.imported_names&&(1===e.imported_names.length&&"*"===e.imported_names[0].foreign_name.name?e.imported_names[0].print(t):(t.print("{"),e.imported_names.forEach(((r,n)=>{t.space(),r.print(t),n<e.imported_names.length-1&&t.print(",")})),t.space(),t.print("}"))),(e.imported_name||e.imported_names)&&(t.space(),t.print("from"),t.space()),e.module_name.print(t),t.semicolon()})),e(To,((e,t)=>{t.print("import.meta")})),e(Do,((e,t)=>{var r=t.parent()instanceof So,n=e.name.definition();(n&&n.mangled_name||e.name.name)!==e.foreign_name.name?(r?t.print(e.foreign_name.name):e.name.print(t),t.space(),t.print("as"),t.space(),r?e.name.print(t):t.print(e.foreign_name.name)):e.name.print(t)})),e(Co,((e,t)=>{if(t.print("export"),t.space(),e.is_default&&(t.print("default"),t.space()),e.exported_names)1===e.exported_names.length&&"*"===e.exported_names[0].name.name?e.exported_names[0].print(t):(t.print("{"),e.exported_names.forEach(((r,n)=>{t.space(),r.print(t),n<e.exported_names.length-1&&t.print(",")})),t.space(),t.print("}"));else if(e.exported_value)e.exported_value.print(t);else if(e.exported_definition&&(e.exported_definition.print(t),e.exported_definition instanceof yo))return;e.module_name&&(t.space(),t.print("from"),t.space(),e.module_name.print(t)),(e.exported_value&&!(e.exported_value instanceof qa||e.exported_value instanceof Ga||e.exported_value instanceof Qo)||e.module_name||e.exported_names)&&t.semicolon()})),e(xo,((e,t)=>{if(e.name.print(t),e.value){t.space(),t.print("="),t.space();var r=t.parent(1),n=r instanceof Ba||r instanceof Ua;a(e.value,t,n)}})),e(Ao,((e,t)=>{e.expression.print(t),e instanceof ko&&0===e.args.length||((e.expression instanceof Ao||e.expression instanceof Ka)&&t.add_mapping(e.start),e.optional&&t.print("?."),t.with_parens((()=>{e.args.forEach(((e,r)=>{r&&t.comma(),e.print(t)}))})))})),e(ko,((e,t)=>{t.print("new"),t.space(),Ao.prototype._codegen(e,t)})),No.DEFMETHOD("_do_print",(function(e){this.expressions.forEach(((t,r)=>{r>0&&(e.comma(),e.should_break()&&(e.newline(),e.indent())),t.print(e)}))})),e(No,((e,t)=>{e._do_print(t)})),e(Fo,((e,t)=>{var r=e.expression;r.print(t);var n=e.property,i=Ii.has(n)?t.option("ie8"):!ia(n,t.option("ecma")>=2015||t.option("safari10"));e.optional&&t.print("?."),i?(t.print("["),t.add_mapping(e.end),t.print_string(n),t.print("]")):(r instanceof Ns&&r.getValue()>=0&&(/[xa-f.)]/i.test(t.last())||t.print(".")),e.optional||t.print("."),t.add_mapping(e.end),t.print_name(n))})),e(Po,((e,t)=>{e.expression.print(t);var r=e.property;e.optional&&t.print("?"),t.print(".#"),t.print_name(r)})),e(Io,((e,t)=>{e.expression.print(t),e.optional&&t.print("?."),t.print("["),e.property.print(t),t.print("]")})),e(Oo,((e,t)=>{e.expression.print(t)})),e(Ro,((e,t)=>{var r=e.operator;t.print(r),(/^[a-z]/i.test(r)||/[+-]$/.test(r)&&e.expression instanceof Ro&&/^[+-]/.test(e.expression.operator))&&t.space(),e.expression.print(t)})),e(Lo,((e,t)=>{e.expression.print(t),t.print(e.operator)})),e(Bo,((e,t)=>{var r=e.operator;e.left.print(t),">"==r[0]&&e.left instanceof Lo&&"--"==e.left.operator?t.print(" "):t.space(),t.print(r),("<"==r||"<<"==r)&&e.right instanceof Ro&&"!"==e.right.operator&&e.right.expression instanceof Ro&&"--"==e.right.expression.operator?t.print(" "):t.space(),e.right.print(t)})),e(Uo,((e,t)=>{e.condition.print(t),t.space(),t.print("?"),t.space(),e.consequent.print(t),t.space(),t.colon(),e.alternative.print(t)})),e(zo,((e,t)=>{t.with_square((()=>{var r=e.elements,n=r.length;n>0&&t.space(),r.forEach(((e,r)=>{r&&t.comma(),e.print(t),r===n-1&&e instanceof Rs&&t.comma()})),n>0&&t.space()}))})),e(Ho,((e,t)=>{e.properties.length>0?t.with_block((()=>{e.properties.forEach(((e,r)=>{r&&(t.print(","),t.newline()),t.indent(),e.print(t)})),t.newline()})):n(e,t)})),e(Qo,((e,t)=>{if(t.print("class"),t.space(),e.name&&(e.name.print(t),t.space()),e.extends){var r=!(e.extends instanceof Es||e.extends instanceof wo||e.extends instanceof rs||e.extends instanceof Ga);t.print("extends"),r?t.print("("):t.space(),e.extends.print(t),r?t.print(")"):t.space()}e.properties.length>0?t.with_block((()=>{e.properties.forEach(((e,r)=>{r&&t.newline(),t.indent(),e.print(t)})),t.newline()})):t.print("{}")})),e(is,((e,t)=>{t.print("new.target")})),e(Ko,((e,t)=>{function r(e){var t=e.definition();return t?t.mangled_name||t.name:e.name}var n=t.option("shorthand");n&&e.value instanceof ns&&ia(e.key,t.option("ecma")>=2015||t.option("safari10"))&&r(e.value)===e.key&&!Ii.has(e.key)?o(e.key,e.quote,t):n&&e.value instanceof Vo&&e.value.left instanceof ns&&ia(e.key,t.option("ecma")>=2015||t.option("safari10"))&&r(e.value.left)===e.key?(o(e.key,e.quote,t),t.space(),t.print("="),t.space(),e.value.right.print(t)):(e.key instanceof xa?t.with_square((()=>{e.key.print(t)})):o(e.key,e.quote,t),t.colon(),e.value.print(t))})),e(es,((e,t)=>{e.static&&(t.print("static"),t.space()),t.print("#"),o(e.key.name,e.quote,t),e.value&&(t.print("="),e.value.print(t)),t.semicolon()})),e(Zo,((e,t)=>{e.static&&(t.print("static"),t.space()),e.key instanceof _s?o(e.key.name,e.quote,t):(t.print("["),e.key.print(t),t.print("]")),e.value&&(t.print("="),e.value.print(t)),t.semicolon()})),Wo.DEFMETHOD("_print_getter_setter",(function(e,t,r){var n=this;n.static&&(r.print("static"),r.space()),e&&(r.print(e),r.space()),n.key instanceof ps?(t&&r.print("#"),o(n.key.name,n.quote,r)):r.with_square((()=>{n.key.print(r)})),n.value._do_print(r,!0)})),e($o,((e,t)=>{e._print_getter_setter("set",!1,t)})),e(qo,((e,t)=>{e._print_getter_setter("get",!1,t)})),e(Jo,((e,t)=>{e._print_getter_setter("set",!0,t)})),e(Go,((e,t)=>{e._print_getter_setter("get",!0,t)})),e(Yo,((e,t)=>{var r;e.is_generator&&e.async?r="async*":e.is_generator?r="*":e.async&&(r="async"),e._print_getter_setter(r,!0,t)})),e(Xo,((e,t)=>{var r;e.is_generator&&e.async?r="async*":e.is_generator?r="*":e.async&&(r="async"),e._print_getter_setter(r,!1,t)})),ns.DEFMETHOD("_do_print",(function(e){var t=this.definition();e.print_name(t?t.mangled_name||t.name:this.name)})),e(ns,((e,t)=>{e._do_print(t)})),e(Rs,li),e(Ts,((e,t)=>{t.print("this")})),e(Cs,((e,t)=>{t.print("super")})),e(As,((e,t)=>{t.print(e.getValue())})),e(ks,((e,t)=>{t.print_string(e.getValue(),e.quote,t.in_directive)})),e(Ns,((e,t)=>{(t.option("keep_numbers")||t.use_asm)&&e.raw?t.print(e.raw):t.print(d(e.getValue()))})),e(ws,((e,t)=>{t.print(e.getValue()+"n")}));const s=/(<\s*\/\s*script)/i,c=(e,t)=>t.replace("/","\\/");function l(e,t){t.option("braces")?u(e,t):!e||e instanceof Fa?t.force_semicolon():e.print(t)}function d(e){var t,r,n,i=e.toString(10).replace(/^0\./,".").replace("e+","e"),a=[i];return Math.floor(e)===e&&(e<0?a.push("-0x"+(-e).toString(16).toLowerCase()):a.push("0x"+e.toString(16).toLowerCase())),(t=/^\.0+/.exec(i))?(r=t[0].length,n=i.slice(r),a.push(n+"e-"+(n.length+r-1))):(t=/0+$/.exec(i))?(r=t[0].length,a.push(i.slice(0,-r)+"e"+r)):(t=/^(\d)\.(\d+)e(-?\d+)$/.exec(i))&&a.push(t[1]+t[2]+"e"+(t[3]-t[2].length)),(e=>{for(var t=e[0],r=t.length,n=1;n<e.length;++n)e[n].length<r&&(r=(t=e[n]).length);return t})(a)}function u(e,t){!e||e instanceof Fa?t.print("{}"):e instanceof wa?e.print(t):t.with_block((()=>{t.indent(),e.print(t),t.newline()}))}function p(e,t){e.forEach((e=>{e.DEFMETHOD("add_source_map",t)}))}e(Fs,((e,t)=>{let{source:r,flags:n}=e.getValue();r=Ci(r),n=n?(e=>{const t=new Set(e.split(""));let r="";for(const e of"gimuy")t.has(e)&&(r+=e,t.delete(e));return t.size&&t.forEach((e=>{r+=e})),r})(n):"",r=r.replace(s,c),t.print(t.to_utf8(`/${r}/${n}`));const i=t.parent();i instanceof Bo&&/^\w/.test(i.operator)&&i.left===e&&t.print(" ")})),p([xa,Ia,Ha],li),p([zo,wa,go,Qo,As,Sa,yo,Ta,ho,eo,Ka,ko,Ho,Pa,ns,uo,po,Qa,Za,mo],(function(e){e.add_mapping(this.start)})),p([qo,$o],(function(e){e.add_mapping(this.start,this.key.name)})),p([Wo],(function(e){e.add_mapping(this.start,this.key)}))}();const ic=(e,t)=>null===e&&null===t||e.TYPE===t.TYPE&&e.shallow_cmp(t),ac=e=>{const t=Object.keys(e).map((t=>{if("eq"===e[t])return`this.${t} === other.${t}`;if("exist"===e[t])return`(this.${t} == null ? other.${t} == null : this.${t} === other.${t})`;throw new Error(`mkshallow: Unexpected instruction: ${e[t]}`)})).join(" && ");return new Function("other","return "+t)},oc=()=>!0;xa.prototype.shallow_cmp=function(){throw new Error("did not find a shallow_cmp function for "+this.constructor.name)},Sa.prototype.shallow_cmp=oc,Ta.prototype.shallow_cmp=ac({value:"eq"}),Ca.prototype.shallow_cmp=oc,Na.prototype.shallow_cmp=oc,Fa.prototype.shallow_cmp=oc,Ia.prototype.shallow_cmp=ac({"label.name":"eq"}),Ra.prototype.shallow_cmp=oc,La.prototype.shallow_cmp=oc,Ba.prototype.shallow_cmp=ac({init:"exist",condition:"exist",step:"exist"}),Ua.prototype.shallow_cmp=oc,ja.prototype.shallow_cmp=oc,Va.prototype.shallow_cmp=oc,Ha.prototype.shallow_cmp=oc,Wa.prototype.shallow_cmp=oc,Ka.prototype.shallow_cmp=ac({is_generator:"eq",async:"eq"}),Xa.prototype.shallow_cmp=ac({is_array:"eq"}),Ya.prototype.shallow_cmp=oc,Qa.prototype.shallow_cmp=oc,Za.prototype.shallow_cmp=ac({value:"eq"}),eo.prototype.shallow_cmp=oc,io.prototype.shallow_cmp=oc,so.prototype.shallow_cmp=oc,co.prototype.shallow_cmp=ac({is_star:"eq"}),lo.prototype.shallow_cmp=ac({alternative:"exist"}),uo.prototype.shallow_cmp=oc,po.prototype.shallow_cmp=oc,mo.prototype.shallow_cmp=ac({bcatch:"exist",bfinally:"exist"}),go.prototype.shallow_cmp=ac({argname:"exist"}),ho.prototype.shallow_cmp=oc,yo.prototype.shallow_cmp=oc,xo.prototype.shallow_cmp=ac({value:"exist"}),Do.prototype.shallow_cmp=oc,So.prototype.shallow_cmp=ac({imported_name:"exist",imported_names:"exist"}),To.prototype.shallow_cmp=oc,Co.prototype.shallow_cmp=ac({exported_definition:"exist",exported_value:"exist",exported_names:"exist",module_name:"eq",is_default:"eq"}),Ao.prototype.shallow_cmp=oc,No.prototype.shallow_cmp=oc,wo.prototype.shallow_cmp=oc,Oo.prototype.shallow_cmp=oc,Fo.prototype.shallow_cmp=ac({property:"eq"}),Mo.prototype.shallow_cmp=ac({operator:"eq"}),Bo.prototype.shallow_cmp=ac({operator:"eq"}),Uo.prototype.shallow_cmp=oc,zo.prototype.shallow_cmp=oc,Ho.prototype.shallow_cmp=oc,Wo.prototype.shallow_cmp=oc,Ko.prototype.shallow_cmp=ac({key:"eq"}),$o.prototype.shallow_cmp=ac({static:"eq"}),qo.prototype.shallow_cmp=ac({static:"eq"}),Xo.prototype.shallow_cmp=ac({static:"eq",is_generator:"eq",async:"eq"}),Qo.prototype.shallow_cmp=ac({name:"exist",extends:"exist"}),Zo.prototype.shallow_cmp=ac({static:"eq"}),ns.prototype.shallow_cmp=ac({name:"eq"}),is.prototype.shallow_cmp=oc,Ts.prototype.shallow_cmp=oc,Cs.prototype.shallow_cmp=oc,ks.prototype.shallow_cmp=ac({value:"eq"}),Ns.prototype.shallow_cmp=ac({value:"eq"}),ws.prototype.shallow_cmp=ac({value:"eq"}),Fs.prototype.shallow_cmp=function(e){return this.value.flags===e.value.flags&&this.value.source===e.value.source},Ps.prototype.shallow_cmp=oc;let sc=null,cc=null;class lc{constructor(e,t,r){this.name=t.name,this.orig=[t],this.init=r,this.eliminated=0,this.assignments=0,this.scope=e,this.replaced=0,this.global=!1,this.export=0,this.mangled_name=null,this.undeclared=!1,this.id=lc.next_id++,this.chained=!1,this.direct_access=!1,this.escaped=0,this.recursive_refs=0,this.references=[],this.should_replace=void 0,this.single_use=!1,this.fixed=!1,Object.seal(this)}fixed_value(){return!this.fixed||this.fixed instanceof xa?this.fixed:this.fixed()}unmangleable(e){return e||(e={}),!!(sc&&sc.has(this.id)&&Si(e.keep_fnames,this.orig[0].name))||this.global&&!e.toplevel||1&this.export||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof fs||this.orig[0]instanceof us)&&Si(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof ps||(this.orig[0]instanceof gs||this.orig[0]instanceof ms)&&Si(e.keep_classnames,this.orig[0].name)}mangle(e){const t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name))this.mangled_name=t.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var r=this.scope,n=this.orig[0];e.ie8&&n instanceof fs&&(r=r.parent_scope);const i=dc(this);this.mangled_name=i?i.mangled_name||i.name:r.next_mangled(e,this),this.global&&t&&t.set(this.name,this.mangled_name)}}}function dc(e){if(e.orig[0]instanceof hs&&e.scope.is_block_scope())return e.scope.get_defun_scope().variables.get(e.name)}function uc(e,t){var r=e.enclosed;e:for(;;){var n=pc(++e.cname);if(!Ii.has(n)&&!(t.reserved.has(n)||cc&&cc.has(n))){for(let e=r.length;--e>=0;){const i=r[e];if(n==(i.mangled_name||i.unmangleable(t)&&i.name))continue e}return n}}}lc.next_id=1,za.DEFMETHOD("figure_out_scope",(function(e,{parent_scope:t=null,toplevel:r=this}={}){if(e=ci(e,{cache:null,ie8:!1,safari10:!1}),!(r instanceof Ha))throw new Error("Invalid toplevel scope");var n=this.parent_scope=t,i=new Map,a=null,o=null,s=[],c=new Ws(((t,r)=>{if(t.is_block_scope()){const i=n;t.block_scope=n=new za(t),n._block_scope=!0;const a=t instanceof go?i.parent_scope:i;if(n.init_scope_vars(a),n.uses_with=i.uses_with,n.uses_eval=i.uses_eval,e.safari10&&(t instanceof Ba||t instanceof Ua)&&s.push(n),t instanceof uo){const e=n;n=i,t.expression.walk(c),n=e;for(let e=0;e<t.body.length;e++)t.body[e].walk(c)}else r();return n=i,!0}if(t instanceof Xa){const e=o;return o=t,r(),o=e,!0}if(t instanceof za){t.init_scope_vars(n);var d=n,u=a,p=i;return a=n=t,i=new Map,r(),n=d,a=u,i=p,!0}if(t instanceof Ia){var _=t.label;if(i.has(_.name))throw new Error(hi("Label {name} defined twice",_));return i.set(_.name,_),r(),i.delete(_.name),!0}if(t instanceof Va)for(var f=n;f;f=f.parent_scope)f.uses_with=!0;else{if(t instanceof ns&&(t.scope=n),t instanceof bs&&(t.thedef=t,t.references=[]),t instanceof fs)a.def_function(t,"arguments"==t.name?void 0:a);else if(t instanceof us)l((t.scope=a.parent_scope.get_defun_scope()).def_function(t,a),1);else if(t instanceof gs)l(a.def_variable(t,a),1);else if(t instanceof ys)n.def_variable(t);else if(t instanceof ms)l((t.scope=a.parent_scope).def_function(t,a),1);else if(t instanceof os||t instanceof ls||t instanceof cs||t instanceof hs){if((m=t instanceof ss?n.def_variable(t,null):a.def_variable(t,"SymbolVar"==t.TYPE?null:void 0)).orig.every((e=>e===t||(t instanceof ss?e instanceof fs:!(e instanceof ls||e instanceof cs))))||sa(`"${t.name}" is redeclared`,t.start.file,t.start.line,t.start.col,t.start.pos),t instanceof ds||l(m,2),a!==n){t.mark_enclosed();var m=n.find_variable(t);t.thedef!==m&&(t.thedef=m,t.reference())}}else if(t instanceof Ss){var g=i.get(t.name);if(!g)throw new Error(hi("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=g}n instanceof Ha||!(t instanceof Co||t instanceof So)||sa(`"${t.TYPE}" statement may only appear at the top level`,t.start.file,t.start.line,t.start.col,t.start.pos)}}));function l(e,t){if(o){var r=0;do{t++}while(c.parent(r++)!==o)}var n=c.parent(t);if(e.export=n instanceof Co?1:0){var i=n.exported_definition;(i instanceof qa||i instanceof ts)&&n.is_default&&(e.export=2)}}if(this.walk(c),this instanceof Ha&&(this.globals=new Map),c=new Ws((e=>{if(e instanceof io&&e.label)return e.label.thedef.references.push(e),!0;if(e instanceof Es){var t,n=e.name;if("eval"==n&&c.parent()instanceof Ao)for(var i=e.scope;i&&!i.uses_eval;i=i.parent_scope)i.uses_eval=!0;return c.parent()instanceof Do&&c.parent(1).module_name||!(t=e.scope.find_variable(n))?(t=r.def_global(e),e instanceof xs&&(t.export=1)):t.scope instanceof Ka&&"arguments"==n&&(t.scope.uses_arguments=!0),e.thedef=t,e.reference(),!e.scope.is_block_scope()||t.orig[0]instanceof ss||(e.scope=e.scope.get_defun_scope()),!0}var a;if(e instanceof hs&&(a=dc(e.definition())))for(i=e.scope;i&&(gi(i.enclosed,a),i!==a.scope);)i=i.parent_scope})),this.walk(c),(e.ie8||e.safari10)&&Vs(this,(e=>{if(e instanceof hs){var t=e.name,n=e.thedef.references,i=e.scope.get_defun_scope(),a=i.find_variable(t)||r.globals.get(t)||i.def_variable(e);return n.forEach((e=>{e.thedef=a,e.reference()})),e.thedef=a,e.reference(),!0}})),e.safari10)for(const e of s)e.parent_scope.variables.forEach((t=>{gi(e.enclosed,t)}))})),Ha.DEFMETHOD("def_global",(function(e){var t=this.globals,r=e.name;if(t.has(r))return t.get(r);var n=new lc(this,e);return n.undeclared=!0,n.global=!0,t.set(r,n),n})),za.DEFMETHOD("init_scope_vars",(function(e){this.variables=new Map,this.functions=new Map,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1})),za.DEFMETHOD("conflicting_def",(function(e){return this.enclosed.find((t=>t.name===e))||this.variables.has(e)||this.parent_scope&&this.parent_scope.conflicting_def(e)})),za.DEFMETHOD("conflicting_def_shallow",(function(e){return this.enclosed.find((t=>t.name===e))||this.variables.has(e)})),za.DEFMETHOD("add_child_scope",(function(e){if(e.parent_scope===this)return;e.parent_scope=this;const t=(()=>{const e=[];let t=this;do{e.push(t)}while(t=t.parent_scope);return e.reverse(),e})(),r=new Set(e.enclosed),n=[];for(const e of t){n.forEach((t=>gi(e.enclosed,t)));for(const t of e.variables.values())r.has(t)&&(gi(n,t),gi(e.enclosed,t))}})),za.DEFMETHOD("create_symbol",(function(e,{source:t,tentative_name:r,scope:n,conflict_scopes:i=[n],init:a=null}={}){let o;if(i=(e=>{const t=new Set;for(const r of new Set(e))!function e(r){null==r||t.has(r)||(t.add(r),e(r.parent_scope))}(r);return[...t]})(i),r){r=o=r.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_");let e=0;for(;i.find((e=>e.conflicting_def_shallow(o)));)o=r+"$"+e++}if(!o)throw new Error("No symbol name could be generated in create_symbol()");const s=mi(e,t,{name:o,scope:n});return this.def_variable(s,a||null),s.mark_enclosed(),s})),xa.DEFMETHOD("is_block_scope",di),Qo.DEFMETHOD("is_block_scope",di),Ka.DEFMETHOD("is_block_scope",di),Ha.DEFMETHOD("is_block_scope",di),po.DEFMETHOD("is_block_scope",di),Na.DEFMETHOD("is_block_scope",ui),za.DEFMETHOD("is_block_scope",(function(){return this._block_scope||!1})),Oa.DEFMETHOD("is_block_scope",ui),Ka.DEFMETHOD("init_scope_vars",(function(){za.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new ds({name:"arguments",start:this.start,end:this.end}))})),$a.DEFMETHOD("init_scope_vars",(function(){za.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1})),ns.DEFMETHOD("mark_enclosed",(function(){for(var e=this.definition(),t=this.scope;t&&(gi(t.enclosed,e),t!==e.scope);)t=t.parent_scope})),ns.DEFMETHOD("reference",(function(){this.definition().references.push(this),this.mark_enclosed()})),za.DEFMETHOD("find_variable",(function(e){return e instanceof ns&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)})),za.DEFMETHOD("def_function",(function(e,t){var r=this.def_variable(e,t);return(!r.init||r.init instanceof qa)&&(r.init=t),this.functions.set(e.name,r),r})),za.DEFMETHOD("def_variable",(function(e,t){var r=this.variables.get(e.name);return r?(r.orig.push(e),r.init&&(r.scope!==e.scope||r.init instanceof Ga)&&(r.init=t)):(r=new lc(this,e,t),this.variables.set(e.name,r),r.global=!this.parent_scope),e.thedef=r})),za.DEFMETHOD("next_mangled",(function(e){return uc(this,e)})),Ha.DEFMETHOD("next_mangled",(function(e){let t;const r=this.mangled_names;do{t=uc(this,e)}while(r.has(t));return t})),Ga.DEFMETHOD("next_mangled",(function(e,t){for(var r=t.orig[0]instanceof ds&&this.name&&this.name.definition(),n=r?r.mangled_name||r.name:null;;){var i=uc(this,e);if(!n||n!=i)return i}})),ns.DEFMETHOD("unmangleable",(function(e){var t=this.definition();return!t||t.unmangleable(e)})),bs.DEFMETHOD("unmangleable",di),ns.DEFMETHOD("unreferenced",(function(){return!this.definition().references.length&&!this.scope.pinned()})),ns.DEFMETHOD("definition",(function(){return this.thedef})),ns.DEFMETHOD("global",(function(){return this.thedef.global})),Ha.DEFMETHOD("_default_mangler_options",(e=>((e=ci(e,{eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,reserved:[],toplevel:!1})).module&&(e.toplevel=!0),Array.isArray(e.reserved)||e.reserved instanceof Set||(e.reserved=[]),e.reserved=new Set(e.reserved),e.reserved.add("arguments"),e))),Ha.DEFMETHOD("mangle_names",(function(e){e=this._default_mangler_options(e);var t=-1,r=[];e.keep_fnames&&(sc=new Set);const n=this.mangled_names=new Set;e.cache&&(this.globals.forEach(a),e.cache.props&&e.cache.props.forEach((e=>{n.add(e)})));var i=new Ws(((n,i)=>{if(n instanceof Ia){var o=t;return i(),t=o,!0}if(n instanceof za)n.variables.forEach(a);else if(n.is_block_scope())n.block_scope.variables.forEach(a);else if(sc&&n instanceof xo&&n.value instanceof Ka&&!n.value.name&&Si(e.keep_fnames,n.name.name))sc.add(n.name.definition().id);else{if(n instanceof bs){let e;do{e=pc(++t)}while(Ii.has(e));return n.mangled_name=e,!0}!e.ie8&&!e.safari10&&n instanceof hs&&r.push(n.definition())}}));function a(t){!(e.reserved.has(t.name)||1&t.export)&&r.push(t)}this.walk(i),(e.keep_fnames||e.keep_classnames)&&(cc=new Set,r.forEach((t=>{t.name.length<6&&t.unmangleable(e)&&cc.add(t.name)}))),r.forEach((t=>{t.mangle(e)})),sc=null,cc=null})),Ha.DEFMETHOD("find_colliding_names",(function(e){const t=e.cache&&e.cache.props,r=new Set;return e.reserved.forEach(n),this.globals.forEach(i),this.walk(new Ws((e=>{e instanceof za&&e.variables.forEach(i),e instanceof hs&&i(e.definition())}))),r;function n(e){r.add(e)}function i(r){var i=r.name;if(r.global&&t&&t.has(i))i=t.get(i);else if(!r.unmangleable(e))return;n(i)}})),Ha.DEFMETHOD("expand_names",(function(e){pc.reset(),pc.sort(),e=this._default_mangler_options(e);var t=this.find_colliding_names(e),r=0;function n(n){if(n.global&&e.cache)return;if(n.unmangleable(e))return;if(e.reserved.has(n.name))return;const i=dc(n),a=n.name=i?i.name:(()=>{var e;do{e=pc(r++)}while(t.has(e)||Ii.has(e));return e})();n.orig.forEach((e=>{e.name=a})),n.references.forEach((e=>{e.name=a}))}this.globals.forEach(n),this.walk(new Ws((e=>{e instanceof za&&e.variables.forEach(n),e instanceof hs&&n(e.definition())})))})),xa.DEFMETHOD("tail_node",pi),No.DEFMETHOD("tail_node",(function(){return this.expressions[this.expressions.length-1]})),Ha.DEFMETHOD("compute_char_frequency",(function(e){e=this._default_mangler_options(e);try{xa.prototype.print=function(r,n){this._print(r,n),this instanceof ns&&!this.unmangleable(e)?pc.consider(this.name,-1):e.properties&&(this instanceof Po?pc.consider("#"+this.property,-1):this instanceof Fo?pc.consider(this.property,-1):this instanceof Io&&t(this.property))},pc.consider(this.print_to_string(),1)}finally{xa.prototype.print=xa.prototype._print}function t(e){e instanceof ks?pc.consider(e.value,-1):e instanceof Uo?(t(e.consequent),t(e.alternative)):e instanceof No&&t(e.tail_node())}pc.sort()}));const pc=(()=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split(""),t="0123456789".split("");let r,n;function i(){n=new Map,e.forEach((e=>{n.set(e,0)})),t.forEach((e=>{n.set(e,0)}))}function a(e,t){return n.get(t)-n.get(e)}function o(e){var t="",n=54;e++;do{e--,t+=r[e%n],e=Math.floor(e/n),n=64}while(e>0);return t}return o.consider=(e,t)=>{for(var r=e.length;--r>=0;)n.set(e[r],n.get(e[r])+t)},o.sort=()=>{r=vi(e,a).concat(vi(t,a))},o.reset=i,i(),o})();let _c;xa.prototype.size=function(e,t){_c=e&&e.mangle_options;let r=0;return zs(this,((e,t)=>{if(r+=e._size(t),e instanceof $a&&e.is_braceless())return r+=e.body[0].value._size(t),!0}),t||e&&e.stack),_c=void 0,r},xa.prototype._size=()=>0,Sa.prototype._size=()=>8,Ta.prototype._size=function(){return 2+this.value.length};const fc=e=>e.length&&e.length-1;Na.prototype._size=function(){return 2+fc(this.body)},Ha.prototype._size=function(){return fc(this.body)},Fa.prototype._size=()=>1,Ia.prototype._size=()=>2,Ra.prototype._size=()=>9,La.prototype._size=()=>7,Ba.prototype._size=()=>8,Ua.prototype._size=()=>8,Va.prototype._size=()=>6,Wa.prototype._size=()=>3;const mc=e=>(e.is_generator?1:0)+(e.async?6:0);Ja.prototype._size=function(){return mc(this)+4+fc(this.argnames)+fc(this.body)},Ga.prototype._size=function(e){return 2*!!Qs(e)+mc(this)+12+fc(this.argnames)+fc(this.body)},qa.prototype._size=function(){return mc(this)+13+fc(this.argnames)+fc(this.body)},$a.prototype._size=function(){let e=2+fc(this.argnames);1===this.argnames.length&&this.argnames[0]instanceof ns||(e+=2);const t=this.is_braceless()?0:fc(this.body)+2;return mc(this)+e+t},Xa.prototype._size=()=>2,Qa.prototype._size=function(){return 2+3*Math.floor(this.segments.length/2)},Za.prototype._size=function(){return this.value.length},ro.prototype._size=function(){return this.value?7:6},no.prototype._size=()=>6,ao.prototype._size=function(){return this.label?6:5},oo.prototype._size=function(){return this.label?9:8},lo.prototype._size=()=>4,uo.prototype._size=function(){return 8+fc(this.body)},fo.prototype._size=function(){return 5+fc(this.body)},_o.prototype._size=function(){return 8+fc(this.body)},mo.prototype._size=function(){return 3+fc(this.body)},go.prototype._size=function(){let e=7+fc(this.body);return this.argname&&(e+=2),e},ho.prototype._size=function(){return 7+fc(this.body)};const gc=(e,t)=>e+fc(t.definitions);vo.prototype._size=function(){return gc(4,this)},bo.prototype._size=function(){return gc(4,this)},Eo.prototype._size=function(){return gc(6,this)},xo.prototype._size=function(){return this.value?1:0},Do.prototype._size=function(){return this.name?4:0},So.prototype._size=function(){let e=6;return this.imported_name&&(e+=1),(this.imported_name||this.imported_names)&&(e+=5),this.imported_names&&(e+=2+fc(this.imported_names)),e},To.prototype._size=()=>11,Co.prototype._size=function(){let e=7+(this.is_default?8:0);return this.exported_value&&(e+=this.exported_value._size()),this.exported_names&&(e+=2+fc(this.exported_names)),this.module_name&&(e+=5),e},Ao.prototype._size=function(){return this.optional?4+fc(this.args):2+fc(this.args)},ko.prototype._size=function(){return 6+fc(this.args)},No.prototype._size=function(){return fc(this.expressions)},Fo.prototype._size=function(){return this.optional?this.property.length+2:this.property.length+1},Po.prototype._size=function(){return this.optional?this.property.length+3:this.property.length+2},Io.prototype._size=function(){return this.optional?4:2},Mo.prototype._size=function(){return"typeof"===this.operator?7:"void"===this.operator?5:this.operator.length},Bo.prototype._size=function(e){if("in"===this.operator)return 4;let t=this.operator.length;return("+"===this.operator||"-"===this.operator)&&this.right instanceof Mo&&this.right.operator===this.operator&&(t+=1),this.needs_parens(e)&&(t+=2),t},Uo.prototype._size=()=>3,zo.prototype._size=function(){return 2+fc(this.elements)},Ho.prototype._size=function(e){let t=2;return Qs(e)&&(t+=2),t+fc(this.properties)};const hc=e=>"string"==typeof e?e.length:0;Ko.prototype._size=function(){return hc(this.key)+1};const yc=e=>e?7:0;qo.prototype._size=function(){return 5+yc(this.static)+hc(this.key)},$o.prototype._size=function(){return 5+yc(this.static)+hc(this.key)},Xo.prototype._size=function(){return yc(this.static)+hc(this.key)+mc(this)},Yo.prototype._size=function(){return Xo.prototype._size.call(this)+1},Go.prototype._size=Jo.prototype._size=function(){return Xo.prototype._size.call(this)+4},Qo.prototype._size=function(){return(this.name?8:7)+(this.extends?8:0)},Zo.prototype._size=function(){return yc(this.static)+("string"==typeof this.key?this.key.length+2:0)+(this.value?1:0)},es.prototype._size=function(){return Zo.prototype._size.call(this)+1},ns.prototype._size=function(){return!_c||this.definition().unmangleable(_c)?this.name.length:1},_s.prototype._size=function(){return this.name.length},Es.prototype._size=as.prototype._size=function(){const{name:e,thedef:t}=this;return t&&t.global?e.length:"arguments"===e?9:ns.prototype._size.call(this)},is.prototype._size=()=>10,vs.prototype._size=function(){return this.name.length},Ds.prototype._size=function(){return this.name.length},Ts.prototype._size=()=>4,Cs.prototype._size=()=>5,ks.prototype._size=function(){return this.value.length+2},Ns.prototype._size=function(){const{value:e}=this;return 0===e?1:e>0&&Math.floor(e)===e?Math.floor(Math.log10(e)+1):e.toString().length},ws.prototype._size=function(){return this.value.length},Fs.prototype._size=function(){return this.value.toString().length},Is.prototype._size=()=>4,Os.prototype._size=()=>3,Ms.prototype._size=()=>6,Rs.prototype._size=()=>0,Ls.prototype._size=()=>8,js.prototype._size=()=>4,Us.prototype._size=()=>5,so.prototype._size=()=>6,co.prototype._size=()=>6;const vc=(e,t)=>e.flags&t,bc=(e,t)=>{e.flags|=t},Ec=(e,t)=>{e.flags&=~t};class xc extends Ws{constructor(e,{false_by_default:t=!1,mangle_options:r=!1}){super(),void 0===e.defaults||e.defaults||(t=!0),this.options=ci(e,{arguments:!1,arrows:!t,booleans:!t,booleans_as_integers:!1,collapse_vars:!t,comparisons:!t,computed_props:!t,conditionals:!t,dead_code:!t,defaults:!0,directives:!t,drop_console:!1,drop_debugger:!t,ecma:5,evaluate:!t,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!t,hoist_vars:!1,ie8:!1,if_return:!t,inline:!t,join_vars:!t,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!t,module:!1,negate_iife:!t,passes:1,properties:!t,pure_getters:!t&&"strict",pure_funcs:null,reduce_funcs:null,reduce_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!(!e||!e.top_retain),typeofs:!t,unsafe:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_symbols:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!t,warnings:!1},!0);var n=this.options.global_defs;if("object"==typeof n)for(var i in n)"@"===i[0]&&Di(n,i)&&(n[i.slice(1)]=ha(n[i],{expression:!0}));!0===this.options.inline&&(this.options.inline=3);var a=this.options.pure_funcs;this.pure_funcs="function"==typeof a?a:a?e=>!a.includes(e.expression.print_to_string()):ui;var o=this.options.top_retain;o instanceof RegExp?this.top_retain=e=>o.test(e.name):"function"==typeof o?this.top_retain=o:o&&("string"==typeof o&&(o=o.split(/,/)),this.top_retain=e=>o.includes(e.name)),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var s=this.options.toplevel;this.toplevel="string"==typeof s?{funcs:/funcs/.test(s),vars:/vars/.test(s)}:{funcs:s,vars:s};var c=this.options.sequences;this.sequences_limit=1==c?800:0|c,this.evaluated_regexps=new Map,this._toplevel=void 0,this.mangle_options=r}option(e){return this.options[e]}exposed(e){if(e.export)return!0;if(e.global)for(var t=0,r=e.orig.length;t<r;t++)if(!this.toplevel[e.orig[t]instanceof us?"funcs":"vars"])return!0;return!1}in_boolean_context(){if(!this.option("booleans"))return!1;for(var e,t=this.self(),r=0;e=this.parent(r);r++){if(e instanceof Ca||e instanceof Uo&&e.condition===t||e instanceof Ma&&e.condition===t||e instanceof Ba&&e.condition===t||e instanceof lo&&e.condition===t||e instanceof Ro&&"!"==e.operator&&e.expression===t)return!0;if(!(e instanceof Bo&&("&&"==e.operator||"||"==e.operator||"??"==e.operator)||e instanceof Uo||e.tail_node()===t))return!1;t=e}}get_toplevel(){return this._toplevel}compress(e){e=e.resolve_defines(this),this._toplevel=e,this.option("expression")&&this._toplevel.process_expression(!0);for(var t=+this.options.passes||1,r=1/0,n=!1,i={ie8:this.option("ie8")},a=0;a<t;a++)if(this._toplevel.figure_out_scope(i),0===a&&this.option("drop_console")&&(this._toplevel=this._toplevel.drop_console()),(a>0||this.option("reduce_vars"))&&this._toplevel.reset_opt_flags(this),this._toplevel=this._toplevel.transform(this),t>1){let e=0;if(Vs(this._toplevel,(()=>{e++})),e<r)r=e,n=!1;else{if(n)break;n=!0}}return this.option("expression")&&this._toplevel.process_expression(!1),e=this._toplevel,this._toplevel=void 0,e}before(e,t){if(vc(e,256))return e;var r=!1;e instanceof za&&(e=(e=e.hoist_properties(this)).hoist_declarations(this),r=!0),t(e,this),t(e,this);var n=e.optimize(this);return r&&n instanceof za&&(n.drop_unused(this),t(n,this)),n===e&&bc(n,256),n}}function Dc(e,t){e.DEFMETHOD("optimize",(function(e){var r=this;if(vc(r,512))return r;if(e.has_directive("use asm"))return r;var n=t(r,e);return bc(n,512),n}))}function Sc(e,t){if(!((t=Jc(t))instanceof xa)){var r;if(e instanceof zo){var n=e.elements;if("length"==t)return Pc(n.length,e);"number"==typeof t&&t in n&&(r=n[t])}else if(e instanceof Ho){t=""+t;for(var i=e.properties,a=i.length;--a>=0;){if(!(i[a]instanceof Ko))return;r||i[a].key!==t||(r=i[a].value)}}return r instanceof Es&&r.fixed_value()||r}}function Tc(e,t,r,n,i,a){var o=t.parent(i),s=Xc(r,o);if(s)return s;if(!a&&o instanceof Ao&&o.expression===r&&!(n instanceof $a)&&!(n instanceof Qo)&&!o.is_expr_pure(e)&&(!(n instanceof Ga)||!(o instanceof ko)&&n.contains_this()))return!0;if(o instanceof zo)return Tc(e,t,o,o,i+1);if(o instanceof Ko&&r===o.value){var c=t.parent(i+1);return Tc(e,t,c,c,i+2)}if(o instanceof wo&&o.expression===r){var l=Sc(n,o.property);return!a&&Tc(e,t,o,l,i+1)}}function Cc(e){return e instanceof $a||e instanceof Ga}function Ac(e){if(e instanceof Ts)return!0;if(e instanceof Es)return e.definition().orig[0]instanceof fs;if(e instanceof wo){if((e=e.expression)instanceof Es){if(e.is_immutable())return!1;e=e.fixed_value()}return!e||!(e instanceof Fs)&&(e instanceof As||Ac(e))}return!1}function kc(e,t){if(!(e instanceof Es))return!1;for(var r=e.definition().orig,n=r.length;--n>=0;)if(r[n]instanceof t)return!0}function Nc(e){for(let t=0;;t++){const r=e.parent(t);if(r instanceof Ha)return r;if(r instanceof Ka)return r;if(r.block_scope)return r.block_scope}}function wc(e,t){for(var r,n=0;(r=e.parent(n++))&&!(r instanceof za);)if(r instanceof go&&r.argname){r=r.argname.definition().scope;break}return r.find_variable(t)}function Fc(e,t){if(1==t.length)return t[0];if(0==t.length)throw new Error("trying to create a sequence with length zero!");return mi(No,e,{expressions:t.reduce(Oc,[])})}function Pc(e,t){switch(typeof e){case"string":return mi(ks,t,{value:e});case"number":return isNaN(e)?mi(Os,t):isFinite(e)?1/e<0?mi(Ro,t,{operator:"-",expression:mi(Ns,t,{value:-e})}):mi(Ns,t,{value:e}):e<0?mi(Ro,t,{operator:"-",expression:mi(Ls,t)}):mi(Ls,t);case"boolean":return mi(e?js:Us,t);case"undefined":return mi(Ms,t);default:if(null===e)return mi(Is,t,{value:null});if(e instanceof RegExp)return mi(Fs,t,{value:{source:Ci(e.source),flags:e.flags}});throw new Error(hi("Can't handle constant of type: {type}",{type:typeof e}))}}function Ic(e,t,r){return e instanceof Ro&&"delete"==e.operator||e instanceof Ao&&e.expression===t&&(r instanceof wo||r instanceof Es&&"eval"==r.name)?Fc(t,[mi(Ns,t,{value:0}),r]):r}function Oc(e,t){return t instanceof No?e.push(...t.expressions):e.push(t),e}function Mc(e){if(null===e)return[];if(e instanceof wa)return e.body;if(e instanceof Fa)return[];if(e instanceof Da)return[e];throw new Error("Can't convert thing to statement array")}function Rc(e){return null===e||e instanceof Fa||e instanceof wa&&0==e.body.length}function Lc(e){return!(e instanceof ts||e instanceof qa||e instanceof bo||e instanceof Eo||e instanceof Co||e instanceof So)}function Bc(e){return e instanceof Oa&&e.body instanceof wa?e.body:e}function Uc(e){return"Call"==e.TYPE&&(e.expression instanceof Ga||Uc(e.expression))}function jc(e){return e instanceof Es&&e.definition().undeclared}Dc(xa,(e=>e)),Ha.DEFMETHOD("drop_console",(function(){return this.transform(new Ks((e=>{if("Call"==e.TYPE){var t=e.expression;if(t instanceof wo){for(var r=t.expression;r.expression;)r=r.expression;if(jc(r)&&"console"==r.name)return mi(Ms,e)}}})))})),xa.DEFMETHOD("equivalent_to",(function(e){return((e,t)=>{if(!ic(e,t))return!1;const r=[e],n=[t],i=r.push.bind(r),a=n.push.bind(n);for(;r.length&&n.length;){const e=r.pop(),t=n.pop();if(!ic(e,t))return!1;if(e._children_backwards(i),t._children_backwards(a),r.length!==n.length)return!1}return 0==r.length&&0==n.length})(this,e)})),za.DEFMETHOD("process_expression",(function(e,t){var r=this,n=new Ks((i=>{if(e&&i instanceof Ca)return mi(ro,i,{value:i.body});if(!e&&i instanceof ro){if(t){var a=i.value&&i.value.drop_side_effect_free(t,!0);return a?mi(Ca,i,{body:a}):mi(Fa,i)}return mi(Ca,i,{body:i.value||mi(Ro,i,{operator:"void",expression:mi(Ns,i,{value:0})})})}if(i instanceof Qo||i instanceof Ka&&i!==r)return i;if(i instanceof Na){var o=i.body.length-1;o>=0&&(i.body[o]=i.body[o].transform(n))}else i instanceof lo?(i.body=i.body.transform(n),i.alternative&&(i.alternative=i.alternative.transform(n))):i instanceof Va&&(i.body=i.body.transform(n));return i}));r.transform(n)})),function(e){function t(e,t){t.assignments=0,t.chained=!1,t.direct_access=!1,t.escaped=0,t.recursive_refs=0,t.references=[],t.single_use=void 0,t.scope.pinned()?t.fixed=!1:t.orig[0]instanceof cs||!e.exposed(t)?t.fixed=t.init:t.fixed=!1}function r(e,r,n){n.variables.forEach((n=>{t(r,n),null===n.fixed?(e.defs_to_safe_ids.set(n.id,e.safe_ids),o(e,n,!0)):n.fixed&&(e.loop_ids.set(n.id,e.in_loop),o(e,n,!0))}))}function n(e,r){r.block_scope&&r.block_scope.variables.forEach((r=>{t(e,r)}))}function i(e){e.safe_ids=Object.create(e.safe_ids)}function a(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function o(e,t,r){e.safe_ids[t.id]=r}function s(e,t){if("m"==t.single_use)return!1;if(e.safe_ids[t.id]){if(null==t.fixed){var r=t.orig[0];if(r instanceof ds||"arguments"==r.name)return!1;t.fixed=mi(Ms,r)}return!0}return t.fixed instanceof qa}function c(e,t,r,n){if(void 0===t.fixed)return!0;let i;return null===t.fixed&&(i=e.defs_to_safe_ids.get(t.id))?(i[t.id]=!1,e.defs_to_safe_ids.delete(t.id),!0):!!Di(e.safe_ids,t.id)&&!!s(e,t)&&!1!==t.fixed&&!(null!=t.fixed&&(!n||t.references.length>t.assignments))&&(t.fixed instanceof qa?n instanceof xa&&t.fixed.parent_scope===r:t.orig.every((e=>!(e instanceof cs||e instanceof us||e instanceof fs))))}function l(e,t,r,n,i,a=0,o=1){var s=e.parent(a);if(i){if(i.is_constant())return;if(i instanceof rs)return}if(s instanceof jo&&("="===s.operator||s.logical)&&n===s.right||s instanceof Ao&&(n!==s.expression||s instanceof ko)||s instanceof to&&n===s.value&&n.scope!==t.scope||s instanceof xo&&n===s.value||s instanceof co&&n===s.value&&n.scope!==t.scope)return!(o>1)||i&&i.is_constant_expression(r)||(o=1),void((!t.escaped||t.escaped>o)&&(t.escaped=o));if(s instanceof zo||s instanceof so||s instanceof Bo&&$c.has(s.operator)||s instanceof Uo&&n!==s.condition||s instanceof Wa||s instanceof No&&n===s.tail_node())l(e,t,r,s,s,a+1,o);else if(s instanceof Ko&&n===s.value){var c=e.parent(a+1);l(e,t,r,c,c,a+2,o)}else if(s instanceof wo&&n===s.expression&&(l(e,t,r,s,i=Sc(i,s.property),a+1,o+1),i))return;a>0||s instanceof No&&n!==s.tail_node()||s instanceof Ca||(t.direct_access=!0)}e(xa,li);const d=e=>Vs(e,(e=>{if(e instanceof ns){var t=e.definition();t&&(e instanceof Es&&t.references.push(e),t.fixed=!1)}}));e(Ja,(function(e,t,n){return i(e),r(e,n,this),t(),a(e),!0})),e(jo,(function(e,t,r){var n=this;if(n.left instanceof Xa)return void d(n.left);const s=()=>{if(n.logical)return n.left.walk(e),i(e),n.right.walk(e),a(e),!0};var u=n.left;if(!(u instanceof Es))return s();var p=u.definition(),_=c(e,p,u.scope,n.right);if(p.assignments++,!_)return s();var f=p.fixed;if(!f&&"="!=n.operator&&!n.logical)return s();var m="="==n.operator,g=m?n.right:n;return Tc(r,e,n,g,0)?s():(p.references.push(u),n.logical||(m||(p.chained=!0),p.fixed=m?()=>n.right:()=>mi(Bo,n,{operator:n.operator.slice(0,-1),left:f instanceof xa?f:f(),right:n.right})),n.logical?(o(e,p,!1),i(e),n.right.walk(e),a(e),!0):(o(e,p,!1),n.right.walk(e),o(e,p,!0),l(e,p,u.scope,n,g,0,1),!0))})),e(Bo,(function(e){if($c.has(this.operator))return this.left.walk(e),i(e),this.right.walk(e),a(e),!0})),e(Na,(function(e,t,r){n(r,this)})),e(fo,(function(e){return i(e),this.expression.walk(e),a(e),i(e),Aa(this,e),a(e),!0})),e(Qo,(function(e,t){return Ec(this,16),i(e),t(),a(e),!0})),e(Uo,(function(e){return this.condition.walk(e),i(e),this.consequent.walk(e),a(e),i(e),this.alternative.walk(e),a(e),!0})),e(Oo,((e,t)=>{const r=e.safe_ids;return t(),e.safe_ids=r,!0})),e(Ao,(function(e){this.expression.walk(e),this.optional&&i(e);for(const t of this.args)t.walk(e);return!0})),e(wo,(function(e){if(this.optional)return this.expression.walk(e),i(e),this.property instanceof xa&&this.property.walk(e),!0})),e(_o,((e,t)=>(i(e),t(),a(e),!0))),e(Ka,(function(e,t,n){return Ec(this,16),i(e),r(e,n,this),this.uses_arguments?(t(),void a(e)):(!this.name&&(s=e.parent())instanceof Ao&&s.expression===this&&!s.args.some((e=>e instanceof Wa))&&this.argnames.every((e=>e instanceof ns))&&this.argnames.forEach(((t,r)=>{if(t.definition){var n=t.definition();n.orig.length>1||(void 0!==n.fixed||this.uses_arguments&&!e.has_directive("use strict")?n.fixed=!1:(n.fixed=()=>s.args[r]||mi(Ms,s),e.loop_ids.set(n.id,e.in_loop),o(e,n,!0)))}})),t(),a(e),!0);var s})),e(Ra,(function(e,t,r){n(r,this);const o=e.in_loop;return e.in_loop=this,i(e),this.body.walk(e),dl(this)&&(a(e),i(e)),this.condition.walk(e),a(e),e.in_loop=o,!0})),e(Ba,(function(e,t,r){n(r,this),this.init&&this.init.walk(e);const o=e.in_loop;return e.in_loop=this,i(e),this.condition&&this.condition.walk(e),this.body.walk(e),this.step&&(dl(this)&&(a(e),i(e)),this.step.walk(e)),a(e),e.in_loop=o,!0})),e(Ua,(function(e,t,r){n(r,this),d(this.init),this.object.walk(e);const o=e.in_loop;return e.in_loop=this,i(e),this.body.walk(e),a(e),e.in_loop=o,!0})),e(lo,(function(e){return this.condition.walk(e),i(e),this.body.walk(e),a(e),this.alternative&&(i(e),this.alternative.walk(e),a(e)),!0})),e(Ia,(function(e){return i(e),this.body.walk(e),a(e),!0})),e(hs,(function(){this.definition().fixed=!1})),e(Es,(function(e,t,r){var n,i,a=this.definition();a.references.push(this),1==a.references.length&&!a.fixed&&a.orig[0]instanceof us&&e.loop_ids.set(a.id,e.in_loop),void 0!==a.fixed&&s(e,a)?a.fixed&&((n=this.fixed_value())instanceof Ka&&fl(e,a)?a.recursive_refs++:n&&!r.exposed(a)&&((e,t,r)=>t.option("unused")&&!r.scope.pinned()&&r.references.length-r.recursive_refs==1&&e.loop_ids.get(r.id)===e.in_loop)(e,r,a)?a.single_use=n instanceof Ka&&!n.pinned()||n instanceof Qo||a.scope===this.scope&&n.is_constant_expression():a.single_use=!1,Tc(r,e,this,n,0,!!(i=n)&&(i.is_constant()||i instanceof Ka||i instanceof Ts))&&(a.single_use?a.single_use="m":a.fixed=!1)):a.fixed=!1,l(e,a,this.scope,this,n,0,1)})),e(Ha,(function(e,n,i){this.globals.forEach((e=>{t(i,e)})),r(e,i,this)})),e(mo,(function(e,t,r){return n(r,this),i(e),Aa(this,e),a(e),this.bcatch&&(i(e),this.bcatch.walk(e),a(e)),this.bfinally&&this.bfinally.walk(e),!0})),e(Mo,(function(e){var t=this;if("++"===t.operator||"--"===t.operator){var r=t.expression;if(r instanceof Es){var n=r.definition(),i=c(e,n,r.scope,!0);if(n.assignments++,i){var a=n.fixed;if(a)return n.references.push(r),n.chained=!0,n.fixed=()=>mi(Bo,t,{operator:t.operator.slice(0,-1),left:mi(Ro,t,{operator:"+",expression:a instanceof xa?a:a()}),right:mi(Ns,t,{value:1})}),o(e,n,!0),!0}}}})),e(xo,(function(e,t){var r=this;if(r.name instanceof Xa)d(r.name);else{var n=r.name.definition();if(r.value){if(c(e,n,r.name.scope,r.value))return n.fixed=()=>r.value,e.loop_ids.set(n.id,e.in_loop),o(e,n,!1),t(),o(e,n,!0),!0;n.fixed=!1}}})),e(La,(function(e,t,r){n(r,this);const o=e.in_loop;return e.in_loop=this,i(e),t(),a(e),e.in_loop=o,!0}))}(((e,t)=>{e.DEFMETHOD("reduce_vars",t)})),Ha.DEFMETHOD("reset_opt_flags",(function(e){const t=this,r=e.option("reduce_vars"),n=new Ws(((i,a)=>{if(Ec(i,1792),r)return e.top_retain&&i instanceof qa&&n.parent()===t&&bc(i,1024),i.reduce_vars(n,a,e)}));n.safe_ids=Object.create(null),n.in_loop=null,n.loop_ids=new Map,n.defs_to_safe_ids=new Map,t.walk(n)})),ns.DEFMETHOD("fixed_value",(function(){var e=this.thedef.fixed;return!e||e instanceof xa?e:e()})),Es.DEFMETHOD("is_immutable",(function(){var e=this.definition().orig;return 1==e.length&&e[0]instanceof fs}));var Vc=bi("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");Es.DEFMETHOD("is_declared",(function(e){return!this.definition().undeclared||e.option("unsafe")&&Vc.has(this.name)}));var zc=bi("Infinity NaN undefined");function Hc(e){return e instanceof Ls||e instanceof Os||e instanceof Ms}function Wc(e,t){var r,n,i=t.find_parent(za).get_defun_scope();!(()=>{var e=t.self(),a=0;do{if(e instanceof go||e instanceof ho)a++;else if(e instanceof Oa)r=!0;else{if(e instanceof za){i=e;break}e instanceof mo&&(n=!0)}}while(e=t.parent(a++))})();var a,o=10;do{a=!1,c(e),t.option("dead_code")&&d(e,t),t.option("if_return")&&l(e,t),t.sequences_limit>0&&(p(e,t),f(e,t)),t.option("join_vars")&&g(e),t.option("collapse_vars")&&s(e,t)}while(a&&o-- >0);function s(e,t){if(i.pinned())return e;for(var o,s=[],c=e.length,l=new Ks((e=>{if(T)return e;if(!S)return e!==u[p]?e:++p<u.length?P(e):(S=!0,(m=R(e,0))===e&&(T=!0),e);var r,i=l.parent();if(e instanceof jo&&(e.logical||"="!=e.operator&&h.equivalent_to(e.left))||e instanceof so||e instanceof Ao&&h instanceof wo&&h.equivalent_to(e.expression)||e instanceof Sa||e instanceof Xa||e instanceof Wa&&e.expression instanceof ns&&(e.expression instanceof Ts||e.expression.definition().references.length>1)||e instanceof Oa&&!(e instanceof Ba)||e instanceof io||e instanceof mo||e instanceof Va||e instanceof co||e instanceof Co||e instanceof Qo||i instanceof Ba&&e!==i.init||!E&&e instanceof Es&&!e.is_declared(t)&&!al.has(e)||e instanceof Es&&i instanceof Ao&&Ai(i,$s))return T=!0,e;if(g||v&&E||!(i instanceof Bo&&$c.has(i.operator)&&i.left!==e||i instanceof Uo&&i.condition!==e||i instanceof lo&&i.condition!==e)||(g=i),A&&!(e instanceof as)&&h.equivalent_to(e)){if(g)return T=!0,e;if(Xc(e,i))return f&&C++,e;if(C++,f&&_ instanceof xo)return e;if(a=T=!0,_ instanceof Lo)return mi(Ro,_,_);if(_ instanceof xo){var o=_.name.definition(),s=_.value;return o.references.length-o.replaced!=1||t.exposed(o)?mi(jo,_,{operator:"=",logical:!1,left:mi(Es,_.name,_.name),right:s}):(o.replaced++,D&&Hc(s)?s.transform(t):Ic(i,e,s))}return Ec(_,32),_}return(e instanceof Ao||e instanceof to&&(b||h instanceof wo||H(h))||e instanceof wo&&(b||e.expression.may_throw_on_access(t))||e instanceof Es&&(y.get(e.name)||b&&H(e))||e instanceof xo&&e.value&&(y.has(e.name.name)||b&&H(e.name))||(r=Xc(e.left,e))&&(r instanceof wo||y.has(r.name))||x&&(n?e.has_side_effects(t):W(e)))&&(m=e,e instanceof za&&(T=!0)),P(e)}),(e=>{T||(m===e&&(T=!0),g===e&&(g=null))})),d=new Ks((e=>{if(T)return e;if(!S){if(e!==u[p])return e;if(++p<u.length)return;return S=!0,e}return e instanceof Es&&e.name==w.name?(--C||(T=!0),Xc(e,d.parent())?e:(w.replaced++,f.replaced--,_.value)):e instanceof _o||e instanceof za?e:void 0}));--c>=0;){0==c&&t.option("unused")&&O();var u=[];for(M(e[c]);s.length>0;){u=s.pop();var p=0,_=u[u.length-1],f=null,m=null,g=null,h=L(_);if(h&&!Ac(h)&&!h.has_side_effects(t)){var y=U(_),v=V(h);h instanceof Es&&y.set(h.name,!1);var b=(F=_)instanceof Mo?qc.has(F.operator):B(F).has_side_effects(t),E=z(),x=_.may_throw(t),D=_.name instanceof ds,S=D,T=!1,C=0,A=!o||!S;if(!A){for(var k=t.self().argnames.lastIndexOf(_.name)+1;!T&&k<o.length;k++)o[k].transform(l);A=!0}for(var N=c;!T&&N<e.length;N++)e[N].transform(l);if(f){var w=_.name.definition();if(T&&w.references.length-w.replaced>C)C=!1;else{for(T=!1,p=0,S=D,N=c;!T&&N<e.length;N++)e[N].transform(d);f.single_use=!1}}C&&!j(_)&&e.splice(c,1)}}}var F;function P(e){if(e instanceof za)return e;if(e instanceof uo){e.expression=e.expression.transform(l);for(var t=0,r=e.body.length;!T&&t<r;t++){var n=e.body[t];if(n instanceof fo){if(!S){if(n!==u[p])continue;p++}if(n.expression=n.expression.transform(l),!E)break}}return T=!0,e}}function I(e,t,r){var n=!1,a=!(e instanceof $a);return t.walk(new Ws(((t,o)=>{if(n)return!0;if(t instanceof Es&&(e.variables.has(t.name)||((e,t)=>{if(e.global)return!1;let r=e.scope;for(;r&&r!==t;){if(r.variables.has(e.name))return!0;r=r.parent_scope}return!1})(t.definition(),e))){var s=t.definition().scope;if(s!==i)for(;s=s.parent_scope;)if(s===i)return!0;return n=!0}if((r||a)&&t instanceof Ts)return n=!0;if(t instanceof za&&!(t instanceof $a)){var c=a;return a=!1,o(),a=c,!0}}))),n}function O(){var e,r=t.self();if(Cc(r)&&!r.name&&!r.uses_arguments&&!r.pinned()&&(e=t.parent())instanceof Ao&&e.expression===r&&e.args.every((e=>!(e instanceof Wa)))){var n=t.has_directive("use strict");n&&!oi(n,r.body)&&(n=!1);var i=r.argnames.length;o=e.args.slice(i);for(var a=new Set,c=i;--c>=0;){var l=r.argnames[c],d=e.args[c];const i=l.definition&&l.definition();if(!(i&&i.orig.length>1||(o.unshift(mi(xo,l,{name:l,value:d})),a.has(l.name))))if(a.add(l.name),l instanceof Wa){var u=e.args.slice(c);u.every((e=>!I(r,e,n)))&&s.unshift([mi(xo,l,{name:l.expression,value:mi(zo,e,{elements:u})})])}else d?(d instanceof Ka&&d.pinned()||I(r,d,n))&&(d=null):d=mi(Ms,l).transform(t),d&&s.unshift([mi(xo,l,{name:l,value:d})])}}}function M(e){if(u.push(e),e instanceof jo)e.left.has_side_effects(t)||s.push(u.slice()),M(e.right);else if(e instanceof Bo)M(e.left),M(e.right);else if(e instanceof Ao&&!Ai(e,$s))M(e.expression),e.args.forEach(M);else if(e instanceof fo)M(e.expression);else if(e instanceof Uo)M(e.condition),M(e.consequent),M(e.alternative);else if(e instanceof yo){var r=e.definitions.length,n=r-200;for(n<0&&(n=0);n<r;n++)M(e.definitions[n])}else e instanceof Ma?(M(e.condition),e.body instanceof Na||M(e.body)):e instanceof to?e.value&&M(e.value):e instanceof Ba?(e.init&&M(e.init),e.condition&&M(e.condition),e.step&&M(e.step),e.body instanceof Na||M(e.body)):e instanceof Ua?(M(e.object),e.body instanceof Na||M(e.body)):e instanceof lo?(M(e.condition),e.body instanceof Na||M(e.body),!e.alternative||e.alternative instanceof Na||M(e.alternative)):e instanceof No?e.expressions.forEach(M):e instanceof Ca?M(e.body):e instanceof uo?(M(e.expression),e.body.forEach(M)):e instanceof Mo?"++"!=e.operator&&"--"!=e.operator||s.push(u.slice()):e instanceof xo&&e.value&&(s.push(u.slice()),M(e.value));u.pop()}function R(e,t,r){var n=l.parent(t);return n instanceof jo?!r||n.logical||n.left instanceof wo||y.has(n.left.name)?e:R(n,t+1,r):n instanceof Bo?!r||$c.has(n.operator)&&n.left!==e?e:R(n,t+1,r):n instanceof Ao||n instanceof fo?e:n instanceof Uo?r&&n.condition===e?R(n,t+1,r):e:n instanceof yo?R(n,t+1,!0):n instanceof to?r?R(n,t+1,r):e:n instanceof lo?r&&n.condition===e?R(n,t+1,r):e:n instanceof Oa?e:n instanceof No?R(n,t+1,n.tail_node()!==e):n instanceof Ca?R(n,t+1,!0):n instanceof uo||n instanceof xo?e:null}function L(e){if(e instanceof jo&&e.logical)return!1;if(!(e instanceof xo&&e.name instanceof as)){const t=e instanceof jo?e.left:e.expression;return!kc(t,cs)&&!kc(t,ls)&&t}var r=e.name.definition();if(oi(e.name,r.orig)){var n=r.references.length-r.replaced;if(n)return r.orig.length-r.eliminated>1&&!(e.name instanceof ds)||(n>1?(e=>{var t=e.value;if(t instanceof Es&&"arguments"!=t.name){var r=t.definition();if(!r.undeclared)return f=r}})(e):!t.exposed(r))?mi(Es,e.name,e.name):void 0}}function B(e){return e instanceof jo?e.right:e.value}function U(e){var r=new Map;if(e instanceof Mo)return r;var n=new Ws((e=>{for(var i=e;i instanceof wo;)i=i.expression;(i instanceof Es||i instanceof Ts)&&r.set(i.name,r.get(i.name)||Tc(t,n,e,e,0))}));return B(e).walk(n),r}function j(r){if(r.name instanceof ds){var n=t.parent(),i=t.self().argnames,a=i.indexOf(r.name);if(a<0)n.args.length=Math.min(n.args.length,i.length-1);else{var o=n.args;o[a]&&(o[a]=mi(Ns,o[a],{value:0}))}return!0}var s=!1;return e[c].transform(new Ks(((e,t,n)=>s?e:e===r||e.body===r?(s=!0,e instanceof xo?(e.value=e.name instanceof cs?mi(Ms,e.value):null,e):n?fi.skip:null):void 0),(e=>{if(e instanceof No)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}})))}function V(e){for(;e instanceof wo;)e=e.expression;return e instanceof Es&&e.definition().scope===i&&!(r&&(y.has(e.name)||_ instanceof Mo||_ instanceof jo&&!_.logical&&"="!=_.operator))}function z(){if(b)return!1;if(f)return!0;if(h instanceof Es){var e=h.definition();if(e.references.length-e.replaced==(_ instanceof xo?1:2))return!0}return!1}function H(e){if(!e.definition)return!0;var t=e.definition();return!(1==t.orig.length&&t.orig[0]instanceof us||t.scope.get_defun_scope()===i&&t.references.every((e=>{var t=e.scope.get_defun_scope();return"Scope"==t.TYPE&&(t=t.parent_scope),t===i})))}function W(e,t){if(e instanceof jo)return W(e.left,!0);if(e instanceof Mo)return W(e.expression,!0);if(e instanceof xo)return e.value&&W(e.value);if(t){if(e instanceof Fo)return W(e.expression,!0);if(e instanceof Io)return W(e.expression,!0);if(e instanceof Es)return e.definition().scope!==i}return!1}}function c(e){for(var t=[],r=0;r<e.length;){var n=e[r];n instanceof wa&&n.body.every(Lc)?(a=!0,c(n.body),e.splice(r,1,...n.body),r+=n.body.length):n instanceof Fa?(a=!0,e.splice(r,1)):n instanceof Ta?t.indexOf(n.value)<0?(r++,t.push(n.value)):(a=!0,e.splice(r,1)):r++}}function l(e,t){for(var r=t.self(),n=(e=>{for(var t=0,r=e.length;--r>=0;){var n=e[r];if(n instanceof lo&&n.body instanceof ro&&++t>1)return!0}return!1})(e),i=r instanceof Ka,o=e.length;--o>=0;){var s=e[o],c=y(o),l=e[c];if(i&&!l&&s instanceof ro){if(!s.value){a=!0,e.splice(o,1);continue}if(s.value instanceof Ro&&"void"==s.value.operator){a=!0,e[o]=mi(Ca,s,{body:s.value.expression});continue}}if(s instanceof lo){var d;if(m(d=ol(s.body))){d.label&&yi(d.label.thedef.references,d),a=!0,(s=s.clone()).condition=s.condition.negate(t);var p=h(s.body,d);s.body=mi(wa,s,{body:Mc(s.alternative).concat(g())}),s.alternative=mi(wa,s,{body:p}),e[o]=s.transform(t);continue}if(m(d=ol(s.alternative))){d.label&&yi(d.label.thedef.references,d),a=!0,(s=s.clone()).body=mi(wa,s.body,{body:Mc(s.body).concat(g())}),p=h(s.alternative,d),s.alternative=mi(wa,s.alternative,{body:p}),e[o]=s.transform(t);continue}}if(s instanceof lo&&s.body instanceof ro){var _=s.body.value;if(!_&&!s.alternative&&(i&&!l||l instanceof ro&&!l.value)){a=!0,e[o]=mi(Ca,s.condition,{body:s.condition});continue}if(_&&!s.alternative&&l instanceof ro&&l.value){a=!0,(s=s.clone()).alternative=l,e[o]=s.transform(t),e.splice(c,1);continue}if(_&&!s.alternative&&(!l&&i&&n||l instanceof ro)){a=!0,(s=s.clone()).alternative=l||mi(ro,s,{value:null}),e[o]=s.transform(t),l&&e.splice(c,1);continue}var f=e[v(o)];if(t.option("sequences")&&i&&!s.alternative&&f instanceof lo&&f.body instanceof ro&&y(c)==e.length&&l instanceof Ca){a=!0,(s=s.clone()).alternative=mi(wa,l,{body:[l,mi(ro,l,{value:null})]}),e[o]=s.transform(t),e.splice(c,1);continue}}}function m(n){if(!n)return!1;for(var a=o+1,s=e.length;a<s;a++){var c=e[a];if(c instanceof Eo||c instanceof bo)return!1}var l=n instanceof io?t.loopcontrol_target(n):null;return n instanceof ro&&i&&(e=>!e||e instanceof Ro&&"void"==e.operator)(n.value)||n instanceof oo&&r===Bc(l)||n instanceof ao&&l instanceof wa&&r===l}function g(){var t=e.slice(o+1);return e.length=o+1,t.filter((t=>!(t instanceof qa&&(e.push(t),1))))}function h(e,t){var r=Mc(e).slice(0,-1);return t.value&&r.push(mi(Ca,t.value,{body:t.value.expression})),r}function y(t){for(var r=t+1,n=e.length;r<n;r++){var i=e[r];if(!(i instanceof vo&&u(i)))break}return r}function v(t){for(var r=t;--r>=0;){var n=e[r];if(!(n instanceof vo&&u(n)))break}return r}}function d(e,t){for(var r,n=t.self(),i=0,o=0,s=e.length;i<s;i++){var c=e[i];if(c instanceof io){var l=t.loopcontrol_target(c);c instanceof ao&&!(l instanceof Oa)&&Bc(l)===n||c instanceof oo&&Bc(l)===n?c.label&&yi(c.label.thedef.references,c):e[o++]=c}else e[o++]=c;if(ol(c)){r=e.slice(i+1);break}}e.length=o,a=o!=s,r&&r.forEach((r=>{Kc(t,r,e)}))}function u(e){return e.definitions.every((e=>!e.value))}function p(e,t){if(!(e.length<2)){for(var r=[],n=0,i=0,o=e.length;i<o;i++){var s=e[i];if(s instanceof Ca){r.length>=t.sequences_limit&&l();var c=s.body;r.length>0&&(c=c.drop_side_effect_free(t)),c&&Oc(r,c)}else s instanceof yo&&u(s)||s instanceof qa||l(),e[n++]=s}l(),e.length=n,n!=o&&(a=!0)}function l(){if(r.length){var t=Fc(r[0],r);e[n++]=mi(Ca,t,{body:t}),r=[]}}}function _(e,t){if(!(e instanceof wa))return e;for(var r=null,n=0,i=e.body.length;n<i;n++){var a=e.body[n];if(a instanceof vo&&u(a))t.push(a);else{if(r)return!1;r=a}}return r}function f(e,t){function r(e){i--,a=!0;var r=n.body;return Fc(r,[r,e]).transform(t)}for(var n,i=0,o=0;o<e.length;o++){var s=e[o];if(n&&(s instanceof to?s.value=r(s.value||mi(Ms,s).transform(t)):s instanceof Ba?s.init instanceof yo||Vs(n.body,(e=>e instanceof za||(e instanceof Bo&&"in"===e.operator?Hs:void 0)))||(s.init?s.init=r(s.init):(s.init=n.body,i--,a=!0)):s instanceof Ua?s.init instanceof Eo||s.init instanceof bo||(s.object=r(s.object)):s instanceof lo?s.condition=r(s.condition):(s instanceof uo||s instanceof Va)&&(s.expression=r(s.expression))),t.option("conditionals")&&s instanceof lo){var c=[],l=_(s.body,c),d=_(s.alternative,c);if(!1!==l&&!1!==d&&c.length>0){var u=c.length;c.push(mi(lo,s,{condition:s.condition,body:l||mi(Fa,s.body),alternative:d})),c.unshift(i,1),[].splice.apply(e,c),o+=u,i+=u+1,n=null,a=!0;continue}}e[i++]=s,n=s instanceof Ca?s:null}e.length=i}function m(e,r){if(e instanceof yo){var n,a=e.definitions[e.definitions.length-1];if(a.value instanceof Ho&&(r instanceof jo&&!r.logical?n=[r]:r instanceof No&&(n=r.expressions.slice()),n)){var o=!1;do{var s=n[0];if(!(s instanceof jo))break;if("="!=s.operator)break;if(!(s.left instanceof wo))break;var c=s.left.expression;if(!(c instanceof Es))break;if(a.name.name!=c.name)break;if(!s.right.is_constant_expression(i))break;var l=s.left.property;if(l instanceof xa&&(l=l.evaluate(t)),l instanceof xa)break;l=""+l;var d=t.option("ecma")<2015&&t.has_directive("use strict")?e=>e.key!=l&&e.key&&e.key.name!=l:e=>e.key&&e.key.name!=l;if(!a.value.properties.every(d))break;var u=a.value.properties.filter((e=>e.key===l))[0];u?u.value=new No({start:u.start,expressions:[u.value.clone(),s.right.clone()],end:u.end}):a.value.properties.push(mi(Ko,s,{key:l,value:s.right})),n.shift(),o=!0}while(n.length);return o&&n}}}function g(e){for(var t,r=0,n=-1,i=e.length;r<i;r++){var o=e[r],s=e[n];if(o instanceof yo)s&&s.TYPE==o.TYPE?(s.definitions=s.definitions.concat(o.definitions),a=!0):t&&t.TYPE==o.TYPE&&u(o)?(t.definitions=t.definitions.concat(o.definitions),a=!0):(e[++n]=o,t=o);else if(o instanceof to)o.value=l(o.value);else if(o instanceof Ba)(c=m(s,o.init))?(a=!0,o.init=c.length?Fc(o.init,c):null,e[++n]=o):s instanceof vo&&(!o.init||o.init.TYPE==s.TYPE)?(o.init&&(s.definitions=s.definitions.concat(o.init.definitions)),o.init=s,e[n]=o,a=!0):t&&o.init&&t.TYPE==o.init.TYPE&&u(o.init)?(t.definitions=t.definitions.concat(o.init.definitions),o.init=null,e[++n]=o,a=!0):e[++n]=o;else if(o instanceof Ua)o.object=l(o.object);else if(o instanceof lo)o.condition=l(o.condition);else if(o instanceof Ca){var c;if(c=m(s,o.body)){if(a=!0,!c.length)continue;o.body=Fc(o.body,c)}e[++n]=o}else o instanceof uo||o instanceof Va?o.expression=l(o.expression):e[++n]=o}function l(t){e[++n]=o;var r=m(s,t);return r?(a=!0,r.length?Fc(t,r):t instanceof No?t.tail_node().left:t.left):t}e.length=n+1}}function Kc(e,t,r){Vs(t,(n=>n instanceof vo?(n.remove_initializers(),r.push(n),!0):n instanceof qa&&(n===t||!e.has_directive("use strict"))?(r.push(n===t?n:mi(vo,n,{definitions:[mi(xo,n,{name:mi(os,n.name,n.name),value:null})]})),!0):n instanceof Co||n instanceof So?(r.push(n),!0):n instanceof za||void 0))}function Jc(e){return e instanceof As?e.getValue():e instanceof Ro&&"void"==e.operator&&e.expression instanceof As?void 0:e}function Gc(e,t){return vc(e,8)||e instanceof Ms||e instanceof Ro&&"void"==e.operator&&!e.expression.has_side_effects(t)}!function(e){function t(e){return/strict/.test(e.option("pure_getters"))}xa.DEFMETHOD("may_throw_on_access",(function(e){return!e.option("pure_getters")||this._dot_throw(e)})),e(xa,t),e(Is,ui),e(Ms,ui),e(As,di),e(zo,di),e(Ho,(function(e){if(!t(e))return!1;for(var r=this.properties.length;--r>=0;)if(this.properties[r]._dot_throw(e))return!0;return!1})),e(Qo,di),e(Wo,di),e(qo,ui),e(Wa,(function(e){return this.expression._dot_throw(e)})),e(Ga,di),e($a,di),e(Lo,di),e(Ro,(function(){return"void"==this.operator})),e(Bo,(function(e){return("&&"==this.operator||"||"==this.operator||"??"==this.operator)&&(this.left._dot_throw(e)||this.right._dot_throw(e))})),e(jo,(function(e){return!!this.logical||"="==this.operator&&this.right._dot_throw(e)})),e(Uo,(function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)})),e(Fo,(function(e){return!(!t(e)||"prototype"==this.property&&(this.expression instanceof Ga||this.expression instanceof Qo))})),e(Oo,(function(e){return this.expression._dot_throw(e)})),e(No,(function(e){return this.tail_node()._dot_throw(e)})),e(Es,(function(e){if("arguments"===this.name)return!1;if(vc(this,8))return!0;if(!t(e))return!1;if(jc(this)&&this.is_declared(e))return!1;if(this.is_immutable())return!1;var r=this.fixed_value();return!r||r._dot_throw(e)}))}(((e,t)=>{e.DEFMETHOD("_dot_throw",t)})),function(e){const t=bi("! delete"),r=bi("in instanceof == != === !== < <= >= >");e(xa,di),e(Ro,(function(){return t.has(this.operator)})),e(Bo,(function(){return r.has(this.operator)||$c.has(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()})),e(Uo,(function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()})),e(jo,(function(){return"="==this.operator&&this.right.is_boolean()})),e(No,(function(){return this.tail_node().is_boolean()})),e(js,ui),e(Us,ui)}(((e,t)=>{e.DEFMETHOD("is_boolean",t)})),function(e){e(xa,di),e(Ns,ui);var t=bi("+ - ~ ++ --");e(Mo,(function(){return t.has(this.operator)}));var r=bi("- * / % & | ^ << >> >>>");e(Bo,(function(e){return r.has(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)})),e(jo,(function(e){return r.has(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)})),e(No,(function(e){return this.tail_node().is_number(e)})),e(Uo,(function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)}))}(((e,t)=>{e.DEFMETHOD("is_number",t)})),function(e){e(xa,di),e(ks,ui),e(Qa,ui),e(Ro,(function(){return"typeof"==this.operator})),e(Bo,(function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))})),e(jo,(function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)})),e(No,(function(e){return this.tail_node().is_string(e)})),e(Uo,(function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)}))}(((e,t)=>{e.DEFMETHOD("is_string",t)}));var $c=bi("&& || ??"),qc=bi("delete ++ --");function Xc(e,t){return t instanceof Mo&&qc.has(t.operator)?t.expression:t instanceof jo&&t.left===e?e:void 0}function Yc(e,t){return e.size()>t.size()?t:e}function Qc(e,t){return Yc(mi(Ca,e,{body:e}),mi(Ca,t,{body:t})).body}function Zc(e,t,r){return(Qs(e)?Qc:Yc)(t,r)}function el(e){const t=new Map;for(var r of Object.keys(e))t.set(r,bi(e[r]));return t}!function(e){function t(e,r){if(e instanceof xa)return mi(e.CTOR,r,e);if(Array.isArray(e))return mi(zo,r,{elements:e.map((e=>t(e,r)))});if(e&&"object"==typeof e){var n=[];for(var i in e)Di(e,i)&&n.push(mi(Ko,r,{key:i,value:t(e[i],r)}));return mi(Ho,r,{properties:n})}return Pc(e,r)}Ha.DEFMETHOD("resolve_defines",(function(e){return e.option("global_defs")?(this.figure_out_scope({ie8:e.option("ie8")}),this.transform(new Ks((function(t){var r=t._find_defs(e,"");if(r){for(var n,i=0,a=t;(n=this.parent(i++))&&n instanceof wo&&n.expression===a;)a=n;if(!Xc(a,n))return r}})))):this})),e(xa,li),e(Oo,(function(e,t){return this.expression._find_defs(e,t)})),e(Fo,(function(e,t){return this.expression._find_defs(e,"."+this.property+t)})),e(as,(function(){this.global()})),e(Es,(function(e,r){if(this.global()){var n=e.option("global_defs"),i=this.name+r;return Di(n,i)?t(n[i],this):void 0}}))}(((e,t)=>{e.DEFMETHOD("_find_defs",t)}));var tl=["constructor","toString","valueOf"],rl=el({Array:["indexOf","join","lastIndexOf","slice"].concat(tl),Boolean:tl,Function:tl,Number:["toExponential","toFixed","toPrecision"].concat(tl),Object:tl,RegExp:["test"].concat(tl),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(tl)}),nl=el({Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","keys"],String:["fromCharCode"]});!function(e){xa.DEFMETHOD("evaluate",(function(e){if(!e.option("evaluate"))return this;var t=this._eval(e,1);return!t||t instanceof RegExp?t:"function"==typeof t||"object"==typeof t?this:t}));var t=bi("! ~ - + void");xa.DEFMETHOD("is_constant",(function(){return this instanceof As?!(this instanceof Fs):this instanceof Ro&&this.expression instanceof As&&t.has(this.operator)})),e(Da,(function(){throw new Error(hi("Cannot evaluate a statement [{file}:{line},{col}]",this.start))})),e(Ka,pi),e(Qo,pi),e(xa,pi),e(As,(function(){return this.getValue()})),e(ws,pi),e(Fs,(function(e){let t=e.evaluated_regexps.get(this);if(void 0===t){try{t=(0,eval)(this.print_to_string())}catch(e){t=null}e.evaluated_regexps.set(this,t)}return t||this})),e(Qa,(function(){return 1!==this.segments.length?this:this.segments[0].value})),e(Ga,(function(e){if(e.option("unsafe")){var t=()=>{};return t.node=this,t.toString=function(){return this.node.print_to_string()},t}return this})),e(zo,(function(e,t){if(e.option("unsafe")){for(var r=[],n=0,i=this.elements.length;n<i;n++){var a=this.elements[n],o=a._eval(e,t);if(a===o)return this;r.push(o)}return r}return this})),e(Ho,(function(e,t){if(e.option("unsafe")){for(var r={},n=0,i=this.properties.length;n<i;n++){var a=this.properties[n];if(a instanceof Wa)return this;var o=a.key;if(o instanceof ns)o=o.name;else if(o instanceof xa&&(o=o._eval(e,t))===a.key)return this;if("function"==typeof Object.prototype[o])return this;if(!(a.value instanceof Ga)&&(r[o]=a.value._eval(e,t),r[o]===a.value))return this}return r}return this}));var r=bi("! typeof void");e(Ro,(function(e,t){var n=this.expression;if(e.option("typeofs")&&"typeof"==this.operator&&(n instanceof Ka||n instanceof Es&&n.fixed_value()instanceof Ka))return"function";if(r.has(this.operator)||t++,(n=n._eval(e,t))===this.expression)return this;switch(this.operator){case"!":return!n;case"typeof":return n instanceof RegExp?this:typeof n;case"void":return;case"~":return~n;case"-":return-n;case"+":return+n}return this}));var n=bi("&& || ?? === !==");const i=bi("== != === !=="),a=e=>"object"==typeof e||"function"==typeof e||"symbol"==typeof e;e(Bo,(function(e,t){n.has(this.operator)||t++;var r=this.left._eval(e,t);if(r===this.left)return this;var o,s=this.right._eval(e,t);if(s===this.right)return this;if(null!=r&&null!=s&&i.has(this.operator)&&a(r)&&a(s)&&typeof r==typeof s)return this;switch(this.operator){case"&&":o=r&&s;break;case"||":o=r||s;break;case"??":o=null!=r?r:s;break;case"|":o=r|s;break;case"&":o=r&s;break;case"^":o=r^s;break;case"+":o=r+s;break;case"*":o=r*s;break;case"**":o=Math.pow(r,s);break;case"/":o=r/s;break;case"%":o=r%s;break;case"-":o=r-s;break;case"<<":o=r<<s;break;case">>":o=r>>s;break;case">>>":o=r>>>s;break;case"==":o=r==s;break;case"===":o=r===s;break;case"!=":o=r!=s;break;case"!==":o=r!==s;break;case"<":o=r<s;break;case"<=":o=r<=s;break;case">":o=r>s;break;case">=":o=r>=s;break;default:return this}return isNaN(o)&&e.find_parent(Va)?this:o})),e(Uo,(function(e,t){var r=this.condition._eval(e,t);if(r===this.condition)return this;var n=r?this.consequent:this.alternative,i=n._eval(e,t);return i===n?this:i}));const o=new Set;e(Es,(function(e,t){if(o.has(this))return this;var r=this.fixed_value();if(!r)return this;o.add(this);const n=r._eval(e,t);if(o.delete(this),n===r)return this;if(n&&"object"==typeof n){var i=this.definition().escaped;if(i&&t>i)return this}return n}));var s={Array,Math,Number,Object,String},c=el({Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]});e(wo,(function(e,t){if(!this.optional||null!=this.expression._eval(e,t)){if(e.option("unsafe")){var r=this.property;if(r instanceof xa&&(r=r._eval(e,t))===this.property)return this;var n,i=this.expression;if(jc(i)){var a,o="hasOwnProperty"===i.name&&"call"===r&&(a=e.parent()&&e.parent().args)&&a&&a[0]&&a[0].evaluate(e);if(null==(o=o instanceof Fo?o.expression:o)||o.thedef&&o.thedef.undeclared)return this.clone();var l=c.get(i.name);if(!l||!l.has(r))return this;n=s[i.name]}else{if(!(n=i._eval(e,t+1))||n===i||!Di(n,r))return this;if("function"==typeof n)switch(r){case"name":return n.node.name?n.node.name.name:"";case"length":return n.node.argnames.length;default:return this}}return n[r]}return this}})),e(Oo,(function(e,t){const r=this.expression._eval(e,t);return r===this.expression?this:r})),e(Ao,(function(e,t){var r=this.expression;if(!this.optional||null!=this.expression._eval(e,t)){if(e.option("unsafe")&&r instanceof wo){var n,i=r.property;if(i instanceof xa&&(i=i._eval(e,t))===r.property)return this;var a=r.expression;if(jc(a)){var o="hasOwnProperty"===a.name&&"call"===i&&this.args[0]&&this.args[0].evaluate(e);if(null==(o=o instanceof Fo?o.expression:o)||o.thedef&&o.thedef.undeclared)return this.clone();var c=nl.get(a.name);if(!c||!c.has(i))return this;n=s[a.name]}else{if((n=a._eval(e,t+1))===a||!n)return this;var l=rl.get(n.constructor.name);if(!l||!l.has(i))return this}for(var d=[],u=0,p=this.args.length;u<p;u++){var _=this.args[u],f=_._eval(e,t);if(_===f)return this;d.push(f)}try{return n[i].apply(n,d)}catch(e){}}return this}})),e(ko,pi)}(((e,t)=>{e.DEFMETHOD("_eval",t)})),function(e){function t(e){return mi(Ro,e,{operator:"!",expression:e})}function r(e,r,n){var i=t(e);if(n){var a=mi(Ca,r,{body:r});return Yc(i,a)===a?r:i}return Yc(i,r)}e(xa,(function(){return t(this)})),e(Da,(()=>{throw new Error("Cannot negate a statement")})),e(Ga,(function(){return t(this)})),e($a,(function(){return t(this)})),e(Ro,(function(){return"!"==this.operator?this.expression:t(this)})),e(No,(function(e){var t=this.expressions.slice();return t.push(t.pop().negate(e)),Fc(this,t)})),e(Uo,(function(e,t){var n=this.clone();return n.consequent=n.consequent.negate(e),n.alternative=n.alternative.negate(e),r(this,n,t)})),e(Bo,(function(e,n){var i=this.clone(),a=this.operator;if(e.option("unsafe_comps"))switch(a){case"<=":return i.operator=">",i;case"<":return i.operator=">=",i;case">=":return i.operator="<",i;case">":return i.operator="<=",i}switch(a){case"==":return i.operator="!=",i;case"!=":return i.operator="==",i;case"===":return i.operator="!==",i;case"!==":return i.operator="===",i;case"&&":return i.operator="||",i.left=i.left.negate(e,n),i.right=i.right.negate(e),r(this,i,n);case"||":return i.operator="&&",i.left=i.left.negate(e,n),i.right=i.right.negate(e),r(this,i,n);case"??":return i.right=i.right.negate(e),r(this,i,n)}return t(this)}))}((function(e,t){e.DEFMETHOD("negate",(function(e,r){return t.call(this,e,r)}))}));var il=bi("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");Ao.DEFMETHOD("is_expr_pure",(function(e){if(e.option("unsafe")){var t=this.expression,r=this.args&&this.args[0]&&this.args[0].evaluate(e);if(t.expression&&"hasOwnProperty"===t.expression.name&&(null==r||r.thedef&&r.thedef.undeclared))return!1;if(jc(t)&&il.has(t.name))return!0;let n;if(t instanceof Fo&&jc(t.expression)&&(n=nl.get(t.expression.name))&&n.has(t.property))return!0}return!!Ai(this,Js)||!e.pure_funcs(this)})),xa.DEFMETHOD("is_call_pure",di),Fo.DEFMETHOD("is_call_pure",(function(e){if(!e.option("unsafe"))return;const t=this.expression;let r;return t instanceof zo?r=rl.get("Array"):t.is_boolean()?r=rl.get("Boolean"):t.is_number(e)?r=rl.get("Number"):t instanceof Fs?r=rl.get("RegExp"):t.is_string(e)?r=rl.get("String"):this.may_throw_on_access(e)||(r=rl.get("Object")),r&&r.has(this.property)}));const al=new Set(["Number","String","Array","Object","Function","Promise"]);function ol(e){return e&&e.aborts()}!function(e){function t(e,t){for(var r=e.length;--r>=0;)if(e[r].has_side_effects(t))return!0;return!1}e(xa,ui),e(Fa,di),e(As,di),e(Ts,di),e(Na,(function(e){return t(this.body,e)})),e(Ao,(function(e){return!(this.is_expr_pure(e)||this.expression.is_call_pure(e)&&!this.expression.has_side_effects(e))||t(this.args,e)})),e(uo,(function(e){return this.expression.has_side_effects(e)||t(this.body,e)})),e(fo,(function(e){return this.expression.has_side_effects(e)||t(this.body,e)})),e(mo,(function(e){return t(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)})),e(lo,(function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)})),e(Ia,(function(e){return this.body.has_side_effects(e)})),e(Ca,(function(e){return this.body.has_side_effects(e)})),e(Ka,di),e(Qo,(function(e){return!(!this.extends||!this.extends.has_side_effects(e))||t(this.properties,e)})),e(Bo,(function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)})),e(jo,ui),e(Uo,(function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)})),e(Mo,(function(e){return qc.has(this.operator)||this.expression.has_side_effects(e)})),e(Es,(function(e){return!this.is_declared(e)&&!al.has(this.name)})),e(_s,di),e(as,di),e(Ho,(function(e){return t(this.properties,e)})),e(Wo,(function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.value&&this.value.has_side_effects(e)})),e(Zo,(function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.static&&this.value&&this.value.has_side_effects(e)})),e(Xo,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e(qo,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e($o,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e(zo,(function(e){return t(this.elements,e)})),e(Fo,(function(e){return!this.optional&&this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)})),e(Io,(function(e){return(!this.optional||!bl(this.expression))&&(!this.optional&&this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e))})),e(Oo,(function(e){return this.expression.has_side_effects(e)})),e(No,(function(e){return t(this.expressions,e)})),e(yo,(function(e){return t(this.definitions,e)})),e(xo,(function(){return this.value})),e(Za,di),e(Qa,(function(e){return t(this.segments,e)}))}(((e,t)=>{e.DEFMETHOD("has_side_effects",t)})),function(e){function t(e,t){for(var r=e.length;--r>=0;)if(e[r].may_throw(t))return!0;return!1}e(xa,ui),e(As,di),e(Fa,di),e(Ka,di),e(as,di),e(Ts,di),e(Qo,(function(e){return!(!this.extends||!this.extends.may_throw(e))||t(this.properties,e)})),e(zo,(function(e){return t(this.elements,e)})),e(jo,(function(e){return!!this.right.may_throw(e)||!(!e.has_directive("use strict")&&"="==this.operator&&this.left instanceof Es)&&this.left.may_throw(e)})),e(Bo,(function(e){return this.left.may_throw(e)||this.right.may_throw(e)})),e(Na,(function(e){return t(this.body,e)})),e(Ao,(function(e){return(!this.optional||!bl(this.expression))&&(!!t(this.args,e)||!this.is_expr_pure(e)&&(!!this.expression.may_throw(e)||!(this.expression instanceof Ka)||t(this.expression.body,e)))})),e(fo,(function(e){return this.expression.may_throw(e)||t(this.body,e)})),e(Uo,(function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)})),e(yo,(function(e){return t(this.definitions,e)})),e(lo,(function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)})),e(Ia,(function(e){return this.body.may_throw(e)})),e(Ho,(function(e){return t(this.properties,e)})),e(Wo,(function(e){return!!this.value&&this.value.may_throw(e)})),e(Zo,(function(e){return this.computed_key()&&this.key.may_throw(e)||this.static&&this.value&&this.value.may_throw(e)})),e(Xo,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e(qo,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e($o,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e(ro,(function(e){return this.value&&this.value.may_throw(e)})),e(No,(function(e){return t(this.expressions,e)})),e(Ca,(function(e){return this.body.may_throw(e)})),e(Fo,(function(e){return!this.optional&&this.expression.may_throw_on_access(e)||this.expression.may_throw(e)})),e(Io,(function(e){return(!this.optional||!bl(this.expression))&&(!this.optional&&this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e))})),e(Oo,(function(e){return this.expression.may_throw(e)})),e(uo,(function(e){return this.expression.may_throw(e)||t(this.body,e)})),e(Es,(function(e){return!this.is_declared(e)&&!al.has(this.name)})),e(_s,di),e(mo,(function(e){return this.bcatch?this.bcatch.may_throw(e):t(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)})),e(Mo,(function(e){return!("typeof"==this.operator&&this.expression instanceof Es)&&this.expression.may_throw(e)})),e(xo,(function(e){return!!this.value&&this.value.may_throw(e)}))}(((e,t)=>{e.DEFMETHOD("may_throw",t)})),function(e){function t(e){let t=!0;return Vs(this,(r=>{if(r instanceof Es){if(vc(this,16))return t=!1,Hs;var n=r.definition();if(oi(n,this.enclosed)&&!this.variables.has(n.name)){if(e){var i=e.find_variable(r);if(n.undeclared?!i:i===n)return t="f",!0}return t=!1,Hs}return!0}if(r instanceof Ts&&this instanceof $a)return t=!1,Hs})),t}e(xa,di),e(As,ui),e(Qo,(function(e){if(this.extends&&!this.extends.is_constant_expression(e))return!1;for(const t of this.properties){if(t.computed_key()&&!t.key.is_constant_expression(e))return!1;if(t.static&&t.value&&!t.value.is_constant_expression(e))return!1}return t.call(this,e)})),e(Ka,t),e(Mo,(function(){return this.expression.is_constant_expression()})),e(Bo,(function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()})),e(zo,(function(){return this.elements.every((e=>e.is_constant_expression()))})),e(Ho,(function(){return this.properties.every((e=>e.is_constant_expression()))})),e(Wo,(function(){return!(this.key instanceof xa||!this.value||!this.value.is_constant_expression())}))}(((e,t)=>{e.DEFMETHOD("is_constant_expression",t)})),function(e){function t(){for(var e=0;e<this.body.length;e++)if(ol(this.body[e]))return this.body[e];return null}e(Da,_i),e(eo,pi),e(So,(()=>null)),e(wa,t),e(po,t),e(lo,(function(){return this.alternative&&ol(this.body)&&ol(this.alternative)&&this}))}(((e,t)=>{e.DEFMETHOD("aborts",t)}));var sl=new Set(["use asm","use strict"]);function cl(e,t){return Wc(e.body,t),t.option("side_effects")&&1==e.body.length&&e.body[0]===t.has_directive("use strict")&&(e.body.length=0),e}Dc(Ta,((e,t)=>!t.option("directives")||sl.has(e.value)&&t.has_directive(e.value)===e?e:mi(Fa,e))),Dc(Sa,((e,t)=>t.option("drop_debugger")?mi(Fa,e):e)),Dc(Ia,((e,t)=>e.body instanceof ao&&t.loopcontrol_target(e.body)===e.body?mi(Fa,e):0==e.label.references.length?e.body:e)),Dc(Na,((e,t)=>(Wc(e.body,t),e))),Dc(wa,((e,t)=>{switch(Wc(e.body,t),e.body.length){case 1:if(!t.has_directive("use strict")&&t.parent()instanceof lo&&(e=>!(e instanceof Eo||e instanceof bo||e instanceof Qo))(e.body[0])||Lc(e.body[0]))return e.body[0];break;case 0:return mi(Fa,e)}return e})),Dc(Ka,cl);const ll=/keep_assign/;function dl(e,t){var r=!1,n=new Ws((t=>!!(r||t instanceof za)||(t instanceof io&&n.loopcontrol_target(t)===e?r=!0:void 0)));return t instanceof Ia&&n.push(t),n.push(e),e.body.walk(n),r}function ul(e,t){var r=e.body instanceof wa?e.body.body[0]:e.body;if(t.option("dead_code")&&i(r)){var n=[];return e.init instanceof Da?n.push(e.init):e.init&&n.push(mi(Ca,e.init,{body:e.init})),e.condition&&n.push(mi(Ca,e.condition,{body:e.condition})),Kc(t,e.body,n),mi(wa,e,{body:n})}return r instanceof lo&&(i(r.body)?(e.condition?e.condition=mi(Bo,e.condition,{left:e.condition,operator:"&&",right:r.condition.negate(t)}):e.condition=r.condition.negate(t),a(r.alternative)):i(r.alternative)&&(e.condition?e.condition=mi(Bo,e.condition,{left:e.condition,operator:"&&",right:r.condition}):e.condition=r.condition,a(r.body))),e;function i(e){return e instanceof ao&&t.loopcontrol_target(e)===t.self()}function a(r){r=Mc(r),e.body instanceof wa?(e.body=e.body.clone(),e.body.body=r.concat(e.body.body.slice(1)),e.body=e.body.transform(t)):e.body=mi(wa,e.body,{body:r}).transform(t),e=ul(e,t)}}function pl(e,t){return t.top_retain&&e instanceof qa&&vc(e,1024)&&e.name&&t.top_retain(e.name)}za.DEFMETHOD("drop_unused",(function(e){if(!e.option("unused"))return;if(e.has_directive("use asm"))return;var t=this;if(t.pinned())return;var r=!(t instanceof Ha)||e.toplevel.funcs,n=!(t instanceof Ha)||e.toplevel.vars;const i=ll.test(e.option("unused"))?di:e=>e instanceof jo&&!e.logical&&(vc(e,32)||"="==e.operator)?e.left:e instanceof Mo&&vc(e,32)?e.expression:void 0;var a=new Map,o=new Map;t instanceof Ha&&e.top_retain&&t.variables.forEach((t=>{e.top_retain(t)&&!a.has(t.id)&&a.set(t.id,t)}));var s=new Map,c=new Map,l=this,d=new Ws(((i,u)=>{if(i instanceof Ka&&i.uses_arguments&&!d.has_directive("use strict")&&i.argnames.forEach((e=>{if(e instanceof as){var t=e.definition();a.has(t.id)||a.set(t.id,t)}})),i!==t){if(i instanceof qa||i instanceof ts){var _=i.name.definition();if((d.parent()instanceof Co||!r&&l===t)&&_.global&&!a.has(_.id)&&a.set(_.id,_),i instanceof ts){i.extends&&(i.extends.has_side_effects(e)||i.extends.may_throw(e))&&i.extends.walk(d);for(const t of i.properties)(t.has_side_effects(e)||t.may_throw(e))&&t.walk(d)}return Ei(c,_.id,i),!0}if(i instanceof ds&&l===t&&Ei(s,i.definition().id,i),i instanceof yo&&l===t){const t=d.parent()instanceof Co;return i.definitions.forEach((r=>{if(r.name instanceof os&&Ei(s,r.name.definition().id,r),!t&&n||Vs(r.name,(e=>{if(e instanceof as){const r=e.definition();!t&&!r.global||a.has(r.id)||a.set(r.id,r)}})),r.value){if(r.name instanceof Xa)r.walk(d);else{var i=r.name.definition();Ei(c,i.id,r.value),i.chained||r.name.fixed_value()!==r.value||o.set(i.id,r)}r.value.has_side_effects(e)&&r.value.walk(d)}})),!0}return p(i,u)}}));t.walk(d),d=new Ws(p),a.forEach((e=>{var t=c.get(e.id);t&&t.forEach((e=>{e.walk(d)}))}));var u=new Ks((function(c,d,p){var _=u.parent();if(n){const e=i(c);if(e instanceof Es){var f=e.definition(),m=a.has(f.id);if(c instanceof jo){if(!m||o.has(f.id)&&o.get(f.id)!==c)return Ic(_,c,c.right.transform(u))}else if(!m)return p?fi.skip:mi(Ns,c,{value:0})}}if(l===t){if(c.name&&(c instanceof rs&&!Si(e.option("keep_classnames"),(f=c.name.definition()).name)||c instanceof Ga&&!Si(e.option("keep_fnames"),(f=c.name.definition()).name))&&(!a.has(f.id)||f.orig.length>1)&&(c.name=null),c instanceof Ka&&!(c instanceof Ja))for(var g=!e.option("keep_fargs"),h=c.argnames,y=h.length;--y>=0;){var v=h[y];v instanceof Wa&&(v=v.expression),v instanceof Vo&&(v=v.left),v instanceof Xa||a.has(v.definition().id)?g=!1:(bc(v,1),g&&h.pop())}if((c instanceof qa||c instanceof ts)&&c!==t){const t=c.name.definition();if(!(t.global&&!r||a.has(t.id))){if(t.eliminated++,c instanceof ts){const t=c.drop_side_effect_free(e);if(t)return mi(Ca,c,{body:t})}return p?fi.skip:mi(Fa,c)}}if(c instanceof yo&&!(_ instanceof Ua&&_.init===c)){var b=!(_ instanceof Ha||c instanceof vo),E=[],x=[],D=[],S=[];switch(c.definitions.forEach((t=>{t.value&&(t.value=t.value.transform(u));var r=t.name instanceof Xa,i=r?new lc(null,{name:"<destructure>"}):t.name.definition();if(b&&i.global)return D.push(t);if(!n&&!b||r&&(t.name.names.length||t.name.is_array||1!=e.option("pure_getters"))||a.has(i.id)){if(t.value&&o.has(i.id)&&o.get(i.id)!==t&&(t.value=t.value.drop_side_effect_free(e)),t.name instanceof os){var l=s.get(i.id);if(l.length>1&&(!t.value||i.orig.indexOf(t.name)>i.eliminated)){if(t.value){var d=mi(Es,t.name,t.name);i.references.push(d);var p=mi(jo,t,{operator:"=",logical:!1,left:d,right:t.value});o.get(i.id)===t&&o.set(i.id,p),S.push(p.transform(u))}return yi(l,t),void i.eliminated++}}t.value?(S.length>0&&(D.length>0?(S.push(t.value),t.value=Fc(t.value,S)):E.push(mi(Ca,c,{body:Fc(c,S)})),S=[]),D.push(t)):x.push(t)}else if(i.orig[0]instanceof hs)(_=t.value&&t.value.drop_side_effect_free(e))&&S.push(_),t.value=null,x.push(t);else{var _;(_=t.value&&t.value.drop_side_effect_free(e))&&S.push(_),i.eliminated++}})),(x.length>0||D.length>0)&&(c.definitions=x.concat(D),E.push(c)),S.length>0&&E.push(mi(Ca,c,{body:Fc(c,S)})),E.length){case 0:return p?fi.skip:mi(Fa,c);case 1:return E[0];default:return p?fi.splice(E):mi(wa,c,{body:E})}}if(c instanceof Ba)return d(c,this),c.init instanceof wa&&(T=c.init,c.init=T.body.pop(),T.body.push(c)),c.init instanceof Ca?c.init=c.init.body:Rc(c.init)&&(c.init=null),T?p?fi.splice(T.body):T:c;if(c instanceof Ia&&c.body instanceof Ba){if(d(c,this),c.body instanceof wa){var T=c.body;return c.body=T.body.pop(),T.body.push(c),p?fi.splice(T.body):T}return c}if(c instanceof wa)return d(c,this),p&&c.body.every(Lc)?fi.splice(c.body):c;if(c instanceof za){const e=l;return l=c,d(c,this),l=e,c}}}));function p(e,r){var n;const s=i(e);if(s instanceof Es&&!kc(e.left,ss)&&t.variables.get(s.name)===(n=s.definition()))return e instanceof jo&&(e.right.walk(d),n.chained||e.left.fixed_value()!==e.right||o.set(n.id,e)),!0;if(e instanceof Es){if(n=e.definition(),!a.has(n.id)&&(a.set(n.id,n),n.orig[0]instanceof hs)){const e=n.scope.is_block_scope()&&n.scope.get_defun_scope().variables.get(n.name);e&&a.set(e.id,e)}return!0}if(e instanceof za){var c=l;return l=e,r(),l=c,!0}}t.transform(u)})),za.DEFMETHOD("hoist_declarations",(function(e){var t=this;if(e.has_directive("use asm"))return t;if(!Array.isArray(t.body))return t;var r=e.option("hoist_funs"),n=e.option("hoist_vars");if(r||n){var i=[],a=[],o=new Map,s=0,c=0;Vs(t,(e=>e instanceof za&&e!==t||(e instanceof vo?(++c,!0):void 0))),n=n&&c>1;var l=new Ks((c=>{if(c!==t){if(c instanceof Ta)return i.push(c),mi(Fa,c);if(r&&c instanceof qa&&!(l.parent()instanceof Co)&&l.parent()===t)return a.push(c),mi(Fa,c);if(n&&c instanceof vo&&!c.definitions.some((e=>e.name instanceof Xa))){c.definitions.forEach((e=>{o.set(e.name.name,e),++s}));var d=c.to_assignments(e),u=l.parent();if(u instanceof Ua&&u.init===c){if(null==d){var p=c.definitions[0].name;return mi(Es,p,p)}return d}return u instanceof Ba&&u.init===c?d:d?mi(Ca,c,{body:d}):mi(Fa,c)}if(c instanceof za)return c}}));if(t=t.transform(l),s>0){var d=[];const e=t instanceof Ka,r=e?t.args_as_names():null;if(o.forEach(((t,n)=>{e&&r.some((e=>e.name===t.name.name))?o.delete(n):((t=t.clone()).value=null,d.push(t),o.set(n,t))})),d.length>0){for(;0<t.body.length;){if(t.body[0]instanceof Ca){var u,p,_=t.body[0].body;if(_ instanceof jo&&"="==_.operator&&(u=_.left)instanceof ns&&o.has(u.name)){if((f=o.get(u.name)).value)break;f.value=_.right,yi(d,f),d.push(f),t.body.splice(0,1);continue}if(_ instanceof No&&(p=_.expressions[0])instanceof jo&&"="==p.operator&&(u=p.left)instanceof ns&&o.has(u.name)){var f;if((f=o.get(u.name)).value)break;f.value=p.right,yi(d,f),d.push(f),t.body[0].body=Fc(_,_.expressions.slice(1));continue}}if(t.body[0]instanceof Fa)t.body.splice(0,1);else{if(!(t.body[0]instanceof wa))break;t.body.splice(0,1,...t.body[0].body)}}d=mi(vo,t,{definitions:d}),a.push(d)}}t.body=i.concat(a,t.body)}return t})),za.DEFMETHOD("hoist_properties",(function(e){var t=this;if(!e.option("hoist_props")||e.has_directive("use asm"))return t;var r=t instanceof Ha&&e.top_retain||di,n=new Map,i=new Ks((function(a,o){if(a instanceof yo&&i.parent()instanceof Co)return a;if(a instanceof xo){const s=a.name;let c,l;if(s.scope===t&&1!=(c=s.definition()).escaped&&!c.assignments&&!c.direct_access&&!c.single_use&&!e.exposed(c)&&!r(c)&&(l=s.fixed_value())===a.value&&l instanceof Ho&&!l.properties.some((e=>e instanceof Wa||e.computed_key()))){o(a,this);const e=new Map,r=[];return l.properties.forEach((({key:n,value:o})=>{const c=Nc(i),l=t.create_symbol(s.CTOR,{source:s,scope:c,conflict_scopes:new Set([c,...s.definition().references.map((e=>e.scope))]),tentative_name:s.name+"_"+n});e.set(String(n),l.definition()),r.push(mi(xo,a,{name:l,value:o}))})),n.set(c.id,e),fi.splice(r)}}else if(a instanceof wo&&a.expression instanceof Es){const e=n.get(a.expression.definition().id);if(e){const t=e.get(String(Jc(a.property))),r=mi(Es,a,{name:t.name,scope:a.expression.scope,thedef:t});return r.reference({}),r}}}));return t.transform(i)})),function(e){function t(e,t,r){var n=e.length;if(!n)return null;for(var i=[],a=!1,o=0;o<n;o++){var s=e[o].drop_side_effect_free(t,r);a|=s!==e[o],s&&(i.push(s),r=!1)}return a?i.length?i:null:e}e(xa,pi),e(As,_i),e(Ts,_i),e(Ao,(function(e,r){if(this.optional&&bl(this.expression))return mi(Ms,this);if(!this.is_expr_pure(e)){if(this.expression.is_call_pure(e)){var n=this.args.slice();return n.unshift(this.expression.expression),(n=t(n,e,r))&&Fc(this,n)}if(Cc(this.expression)&&(!this.expression.name||!this.expression.name.definition().references.length)){var i=this.clone();return i.expression.process_expression(!1,e),i}return this}var a=t(this.args,e,r);return a&&Fc(this,a)})),e(Ja,_i),e(Ga,_i),e($a,_i),e(Qo,(function(e){const t=[],r=this.extends&&this.extends.drop_side_effect_free(e);r&&t.push(r);for(const r of this.properties){const n=r.drop_side_effect_free(e);n&&t.push(n)}return t.length?Fc(this,t):null})),e(Bo,(function(e,t){var r=this.right.drop_side_effect_free(e);if(!r)return this.left.drop_side_effect_free(e,t);if($c.has(this.operator)){if(r===this.right)return this;var n=this.clone();return n.right=r,n}var i=this.left.drop_side_effect_free(e,t);return i?Fc(this,[i,r]):this.right.drop_side_effect_free(e,t)})),e(jo,(function(e){if(this.logical)return this;var t=this.left;if(t.has_side_effects(e)||e.has_directive("use strict")&&t instanceof wo&&t.expression.is_constant())return this;for(bc(this,32);t instanceof wo;)t=t.expression;return t.is_constant_expression(e.find_parent(za))?this.right.drop_side_effect_free(e):this})),e(Uo,(function(e){var t=this.consequent.drop_side_effect_free(e),r=this.alternative.drop_side_effect_free(e);if(t===this.consequent&&r===this.alternative)return this;if(!t)return r?mi(Bo,this,{operator:"||",left:this.condition,right:r}):this.condition.drop_side_effect_free(e);if(!r)return mi(Bo,this,{operator:"&&",left:this.condition,right:t});var n=this.clone();return n.consequent=t,n.alternative=r,n})),e(Mo,(function(e,t){if(qc.has(this.operator))return this.expression.has_side_effects(e)?Ec(this,32):bc(this,32),this;if("typeof"==this.operator&&this.expression instanceof Es)return null;var r=this.expression.drop_side_effect_free(e,t);return t&&r&&Uc(r)?r===this.expression&&"!"==this.operator?this:r.negate(e,t):r})),e(Es,(function(e){return this.is_declared(e)||al.has(this.name)?null:this})),e(Ho,(function(e,r){var n=t(this.properties,e,r);return n&&Fc(this,n)})),e(Wo,(function(e,t){const r=this instanceof Ko&&this.key instanceof xa&&this.key.drop_side_effect_free(e,t),n=this.value&&this.value.drop_side_effect_free(e,t);return r&&n?Fc(this,[r,n]):r||n})),e(Zo,(function(e){const t=this.computed_key()&&this.key.drop_side_effect_free(e),r=this.static&&this.value&&this.value.drop_side_effect_free(e);return t&&r?Fc(this,[t,r]):t||r||null})),e(Xo,(function(){return this.computed_key()?this.key:null})),e(qo,(function(){return this.computed_key()?this.key:null})),e($o,(function(){return this.computed_key()?this.key:null})),e(zo,(function(e,r){var n=t(this.elements,e,r);return n&&Fc(this,n)})),e(Fo,(function(e,t){return this.optional?bl(this.expression)?mi(Ms,this):this:this.expression.may_throw_on_access(e)?this:this.expression.drop_side_effect_free(e,t)})),e(Io,(function(e,t){if(this.optional)return bl(this.expression)?mi(Ms,this):this;if(this.expression.may_throw_on_access(e))return this;var r=this.expression.drop_side_effect_free(e,t);if(!r)return this.property.drop_side_effect_free(e,t);var n=this.property.drop_side_effect_free(e);return n?Fc(this,[r,n]):r})),e(Oo,(function(e,t){return this.expression.drop_side_effect_free(e,t)})),e(No,(function(e){var t=this.tail_node(),r=t.drop_side_effect_free(e);if(r===t)return this;var n=this.expressions.slice(0,-1);return r&&n.push(r),n.length?Fc(this,n):mi(Ns,this,{value:0})})),e(Wa,(function(e,t){return this.expression.drop_side_effect_free(e,t)})),e(Za,_i),e(Qa,(function(e){var r=t(this.segments,e,Qs);return r&&Fc(this,r)}))}(((e,t)=>{e.DEFMETHOD("drop_side_effect_free",t)})),Dc(Ca,((e,t)=>{if(t.option("side_effects")){var r=e.body,n=r.drop_side_effect_free(t,!0);if(!n)return mi(Fa,e);if(n!==r)return mi(Ca,e,{body:n})}return e})),Dc(La,((e,t)=>t.option("loops")?mi(Ba,e,e).optimize(t):e)),Dc(Ra,((e,t)=>{if(!t.option("loops"))return e;var r=e.condition.tail_node().evaluate(t);if(!(r instanceof xa)){if(r)return mi(Ba,e,{body:mi(wa,e.body,{body:[e.body,mi(Ca,e.condition,{body:e.condition})]})}).optimize(t);if(!dl(e,t.parent()))return mi(wa,e.body,{body:[e.body,mi(Ca,e.condition,{body:e.condition})]}).optimize(t)}return e})),Dc(Ba,((e,t)=>{if(!t.option("loops"))return e;if(t.option("side_effects")&&e.init&&(e.init=e.init.drop_side_effect_free(t)),e.condition){var r=e.condition.evaluate(t);if(!(r instanceof xa))if(r)e.condition=null;else if(!t.option("dead_code")){var n=e.condition;e.condition=Pc(r,e.condition),e.condition=Yc(e.condition.transform(t),n)}if(t.option("dead_code")&&(r instanceof xa&&(r=e.condition.tail_node().evaluate(t)),!r)){var i=[];return Kc(t,e.body,i),e.init instanceof Da?i.push(e.init):e.init&&i.push(mi(Ca,e.init,{body:e.init})),i.push(mi(Ca,e.condition,{body:e.condition})),mi(wa,e,{body:i}).optimize(t)}}return ul(e,t)})),Dc(lo,((e,t)=>{if(Rc(e.alternative)&&(e.alternative=null),!t.option("conditionals"))return e;var r=e.condition.evaluate(t);if(!(t.option("dead_code")||r instanceof xa)){var n=e.condition;e.condition=Pc(r,n),e.condition=Yc(e.condition.transform(t),n)}if(t.option("dead_code")){if(r instanceof xa&&(r=e.condition.tail_node().evaluate(t)),!r){var i=[];return Kc(t,e.body,i),i.push(mi(Ca,e.condition,{body:e.condition})),e.alternative&&i.push(e.alternative),mi(wa,e,{body:i}).optimize(t)}if(!(r instanceof xa))return(i=[]).push(mi(Ca,e.condition,{body:e.condition})),i.push(e.body),e.alternative&&Kc(t,e.alternative,i),mi(wa,e,{body:i}).optimize(t)}var a=e.condition.negate(t),o=e.condition.size(),s=a.size(),c=s<o;if(e.alternative&&c){c=!1,e.condition=a;var l=e.body;e.body=e.alternative||mi(Fa,e),e.alternative=l}if(Rc(e.body)&&Rc(e.alternative))return mi(Ca,e.condition,{body:e.condition.clone()}).optimize(t);if(e.body instanceof Ca&&e.alternative instanceof Ca)return mi(Ca,e,{body:mi(Uo,e,{condition:e.condition,consequent:e.body.body,alternative:e.alternative.body})}).optimize(t);if(Rc(e.alternative)&&e.body instanceof Ca)return o===s&&!c&&e.condition instanceof Bo&&"||"==e.condition.operator&&(c=!0),c?mi(Ca,e,{body:mi(Bo,e,{operator:"||",left:a,right:e.body.body})}).optimize(t):mi(Ca,e,{body:mi(Bo,e,{operator:"&&",left:e.condition,right:e.body.body})}).optimize(t);if(e.body instanceof Fa&&e.alternative instanceof Ca)return mi(Ca,e,{body:mi(Bo,e,{operator:"||",left:e.condition,right:e.alternative.body})}).optimize(t);if(e.body instanceof to&&e.alternative instanceof to&&e.body.TYPE==e.alternative.TYPE)return mi(e.body.CTOR,e,{value:mi(Uo,e,{condition:e.condition,consequent:e.body.value||mi(Ms,e.body),alternative:e.alternative.value||mi(Ms,e.alternative)}).transform(t)}).optimize(t);if(e.body instanceof lo&&!e.body.alternative&&!e.alternative&&(e=mi(lo,e,{condition:mi(Bo,e.condition,{operator:"&&",left:e.condition,right:e.body.condition}),body:e.body.body,alternative:null})),ol(e.body)&&e.alternative){var d=e.alternative;return e.alternative=null,mi(wa,e,{body:[e,d]}).optimize(t)}return ol(e.alternative)?(i=e.body,e.body=e.alternative,e.condition=c?a:e.condition.negate(t),e.alternative=null,mi(wa,e,{body:[e,i]}).optimize(t)):e})),Dc(uo,((e,t)=>{if(!t.option("switches"))return e;var r,n=e.expression.evaluate(t);if(!(n instanceof xa)){var i=e.expression;e.expression=Pc(n,i),e.expression=Yc(e.expression.transform(t),i)}if(!t.option("dead_code"))return e;n instanceof xa&&(n=e.expression.tail_node().evaluate(t));for(var a,o,s=[],c=[],l=0,d=e.body.length;l<d&&!o;l++){if((r=e.body[l])instanceof _o)a?y(r,c[c.length-1]):a=r;else if(!(n instanceof xa)){if(!((g=r.expression.evaluate(t))instanceof xa)&&g!==n){y(r,c[c.length-1]);continue}if(g instanceof xa&&(g=r.expression.tail_node().evaluate(t)),g===n&&(o=r,a)){var u=c.indexOf(a);c.splice(u,1),y(a,c[u-1]),a=null}}if(ol(r)){var p=c[c.length-1];ol(p)&&p.body.length==r.body.length&&mi(wa,p,p).equivalent_to(mi(wa,r,r))&&(p.body=[])}c.push(r)}for(;l<d;)y(e.body[l++],c[c.length-1]);for(c.length>0&&(c[0].body=s.concat(c[0].body)),e.body=c;r=c[c.length-1];){var _=r.body[r.body.length-1];if(_ instanceof ao&&t.loopcontrol_target(_)===e&&r.body.pop(),r.body.length||r instanceof fo&&(a||r.expression.has_side_effects(t)))break;c.pop()===a&&(a=null)}if(0==c.length)return mi(wa,e,{body:s.concat(mi(Ca,e.expression,{body:e.expression}))}).optimize(t);if(1==c.length&&(c[0]===o||c[0]===a)){var f=!1,m=new Ws((t=>{if(f||t instanceof Ka||t instanceof Ca)return!0;t instanceof ao&&m.loopcontrol_target(t)===e&&(f=!0)}));if(e.walk(m),!f){var g,h=c[0].body.slice();return(g=c[0].expression)&&h.unshift(mi(Ca,g,{body:g})),h.unshift(mi(Ca,e.expression,{body:e.expression})),mi(wa,e,{body:h}).optimize(t)}}return e;function y(e,r){r&&!ol(r)?r.body=r.body.concat(e.body):Kc(t,e,s)}})),Dc(mo,((e,t)=>{if(Wc(e.body,t),e.bcatch&&e.bfinally&&e.bfinally.body.every(Rc)&&(e.bfinally=null),t.option("dead_code")&&e.body.every(Rc)){var r=[];return e.bcatch&&Kc(t,e.bcatch,r),e.bfinally&&r.push(...e.bfinally.body),mi(wa,e,{body:r}).optimize(t)}return e})),yo.DEFMETHOD("remove_initializers",(function(){var e=[];this.definitions.forEach((t=>{t.name instanceof as?(t.value=null,e.push(t)):Vs(t.name,(r=>{r instanceof as&&e.push(mi(xo,t,{name:r,value:null}))}))})),this.definitions=e})),yo.DEFMETHOD("to_assignments",(function(e){var t=e.option("reduce_vars"),r=[];for(const e of this.definitions){if(e.value){var n=mi(Es,e.name,e.name);r.push(mi(jo,e,{operator:"=",logical:!1,left:n,right:e.value})),t&&(n.definition().fixed=!1)}else if(e.value){var i=mi(xo,e,{name:e.name,value:e.value}),a=mi(vo,e,{definitions:[i]});r.push(a)}const o=e.name.definition();o.eliminated++,o.replaced--}return 0==r.length?null:Fc(this,r)})),Dc(yo,(e=>0==e.definitions.length?mi(Fa,e):e)),Dc(xo,(e=>(e.name instanceof ls&&null!=e.value&&Gc(e.value)&&(e.value=null),e))),Dc(So,(e=>e)),Dc(Ao,(function(e,t){var r=e.expression,n=r;Dl(e.args);var i=e.args.every((e=>!(e instanceof Wa)));if(t.option("reduce_vars")&&n instanceof Es&&!Ai(e,$s)){const e=n.fixed_value();pl(e,t)||(n=e)}if(e.optional&&bl(n))return mi(Ms,e);var a=n instanceof Ka;if(a&&n.pinned())return e;if(t.option("unused")&&i&&a&&!n.uses_arguments){for(var o=0,s=0,c=0,l=e.args.length;c<l;c++){if(n.argnames[c]instanceof Wa){if(vc(n.argnames[c].expression,1))for(;c<l;)(f=e.args[c++].drop_side_effect_free(t))&&(e.args[o++]=f);else for(;c<l;)e.args[o++]=e.args[c++];s=o;break}var d=c>=n.argnames.length;if(d||vc(n.argnames[c],1)){if(f=e.args[c].drop_side_effect_free(t))e.args[o++]=f;else if(!d){e.args[o++]=mi(Ns,e.args[c],{value:0});continue}}else e.args[o++]=e.args[c];s=o}e.args.length=s}if(t.option("unsafe"))if(jc(r))switch(r.name){case"Array":if(1!=e.args.length)return mi(zo,e,{elements:e.args}).optimize(t);if(e.args[0]instanceof Ns&&e.args[0].value<=11){const t=[];for(let r=0;r<e.args[0].value;r++)t.push(new Rs);return new zo({elements:t})}break;case"Object":if(0==e.args.length)return mi(Ho,e,{properties:[]});break;case"String":if(0==e.args.length)return mi(ks,e,{value:""});if(e.args.length<=1)return mi(Bo,e,{left:e.args[0],operator:"+",right:mi(ks,e,{value:""})}).optimize(t);break;case"Number":if(0==e.args.length)return mi(Ns,e,{value:0});if(1==e.args.length&&t.option("unsafe_math"))return mi(Ro,e,{expression:e.args[0],operator:"+"}).optimize(t);break;case"Symbol":1==e.args.length&&e.args[0]instanceof ks&&t.option("unsafe_symbols")&&(e.args.length=0);break;case"Boolean":if(0==e.args.length)return mi(Us,e);if(1==e.args.length)return mi(Ro,e,{expression:mi(Ro,e,{expression:e.args[0],operator:"!"}),operator:"!"}).optimize(t);break;case"RegExp":var u=[];if(e.args.length>=1&&e.args.length<=2&&e.args.every((e=>{var r=e.evaluate(t);return u.push(r),e!==r}))){let[r,n]=u;r=Ci(new RegExp(r).source);const i=mi(Fs,e,{value:{source:r,flags:n}});if(i._eval(t)!==i)return i}}else if(r instanceof Fo)switch(r.property){case"toString":if(0==e.args.length&&!r.expression.may_throw_on_access(t))return mi(Bo,e,{left:mi(ks,e,{value:""}),operator:"+",right:r.expression}).optimize(t);break;case"join":if(r.expression instanceof zo)e:{var p;if(!(e.args.length>0&&(p=e.args[0].evaluate(t))===e.args[0])){var _,f,m=[],g=[];for(c=0,l=r.expression.elements.length;c<l;c++){var h=r.expression.elements[c];if(h instanceof Wa)break e;var y=h.evaluate(t);y!==h?g.push(y):(g.length>0&&(m.push(mi(ks,e,{value:g.join(p)})),g.length=0),m.push(h))}return g.length>0&&m.push(mi(ks,e,{value:g.join(p)})),0==m.length?mi(ks,e,{value:""}):1==m.length?m[0].is_string(t)?m[0]:mi(Bo,m[0],{operator:"+",left:mi(ks,e,{value:""}),right:m[0]}):""==p?(_=m[0].is_string(t)||m[1].is_string(t)?m.shift():mi(ks,e,{value:""}),m.reduce(((e,t)=>mi(Bo,t,{operator:"+",left:e,right:t})),_).optimize(t)):((f=e.clone()).expression=f.expression.clone(),f.expression.expression=f.expression.expression.clone(),f.expression.expression.elements=m,Zc(t,e,f))}}break;case"charAt":if(r.expression.is_string(t)){var v=e.args[0],b=v?v.evaluate(t):0;if(b!==v)return mi(Io,r,{expression:r.expression,property:Pc(0|b,v||r)}).optimize(t)}break;case"apply":if(2==e.args.length&&e.args[1]instanceof zo)return(I=e.args[1].elements.slice()).unshift(e.args[0]),mi(Ao,e,{expression:mi(Fo,r,{expression:r.expression,optional:!1,property:"call"}),args:I}).optimize(t);break;case"call":var E=r.expression;if(E instanceof Es&&(E=E.fixed_value()),E instanceof Ka&&!E.contains_this())return(e.args.length?Fc(this,[e.args[0],mi(Ao,e,{expression:r.expression,args:e.args.slice(1)})]):mi(Ao,e,{expression:r.expression,args:[]})).optimize(t)}if(t.option("unsafe_Function")&&jc(r)&&"Function"==r.name){if(0==e.args.length)return mi(Ga,e,{argnames:[],body:[]}).optimize(t);if(e.args.every((e=>e instanceof ks)))try{var x=ha(C="n(function("+e.args.slice(0,-1).map((e=>e.value)).join(",")+"){"+e.args[e.args.length-1].value+"})"),D={ie8:t.option("ie8")};x.figure_out_scope(D);var S,T=new xc(t.options,{mangle_options:t.mangle_options});(x=x.transform(T)).figure_out_scope(D),pc.reset(),x.compute_char_frequency(D),x.mangle_names(D),Vs(x,(e=>{if(Cc(e))return S=e,Hs}));var C=nc();return wa.prototype._codegen.call(S,S,C),e.args=[mi(ks,e,{value:S.argnames.map((e=>e.print_to_string())).join(",")}),mi(ks,e.args[e.args.length-1],{value:C.get().replace(/^{|}$/g,"")})],e}catch(e){if(!(e instanceof oa))throw e}}var A=a&&n.body[0],k=a&&!n.is_generator&&!n.async,N=k&&t.option("inline")&&!e.is_expr_pure(t);if(N&&A instanceof ro){let r=A.value;if(!r||r.is_constant_expression()){r=r?r.clone(!0):mi(Ms,e);const n=e.args.concat(r);return Fc(e,n).optimize(t)}if(1===n.argnames.length&&n.argnames[0]instanceof ds&&e.args.length<2&&r instanceof Es&&r.name===n.argnames[0].name){const r=(e.args[0]||mi(Ms)).optimize(t);let n;return r instanceof wo&&(n=t.parent())instanceof Ao&&n.expression===e?Fc(e,[mi(Ns,e,{value:0}),r]):r}}if(N){var w,F,P=-1;let a,o,s;if(i&&!n.uses_arguments&&!(t.parent()instanceof Qo)&&!(n.name&&n instanceof Ga)&&(o=(e=>{var r=n.body,i=r.length;if(t.option("inline")<3)return 1==i&&M(e);e=null;for(var a=0;a<i;a++){var o=r[a];if(o instanceof vo){if(e&&!o.definitions.every((e=>!e.value)))return!1}else{if(e)return!1;o instanceof Fa||(e=o)}}return M(e)})(A))&&(r===n||Ai(e,Gs)||t.option("unused")&&1==(a=r.definition()).references.length&&!fl(t,a)&&n.is_constant_expression(r.scope))&&!Ai(e,Js|$s)&&!n.contains_this()&&(()=>{var e=new Set;do{if((w=t.parent(++P)).is_block_scope()&&w.block_scope&&w.block_scope.variables.forEach((t=>{e.add(t.name)})),w instanceof go)w.argname&&e.add(w.argname.name);else if(w instanceof Oa)F=[];else if(w instanceof Es&&w.fixed_value()instanceof za)return!1}while(!(w instanceof za));var r=!(w instanceof Ha)||t.toplevel.vars,i=t.option("inline");return!(!((e,t)=>{for(var r=n.body.length,i=0;i<r;i++){var a=n.body[i];if(a instanceof vo){if(!t)return!1;for(var o=a.definitions.length;--o>=0;){var s=a.definitions[o].name;if(s instanceof Xa||e.has(s.name)||zc.has(s.name)||w.conflicting_def(s.name))return!1;F&&F.push(s.definition())}}}return!0})(e,i>=3&&r)||!((e,t)=>{for(var r=0,i=n.argnames.length;r<i;r++){var a=n.argnames[r];if(a instanceof Vo){if(vc(a.left,1))continue;return!1}if(a instanceof Xa)return!1;if(a instanceof Wa){if(vc(a.expression,1))continue;return!1}if(!vc(a,1)){if(!t||e.has(a.name)||zc.has(a.name)||w.conflicting_def(a.name))return!1;F&&F.push(a.definition())}}return!0})(e,i>=2&&r)||F&&0!=F.length&&hl(n,F))})()&&(s=Nc(t))&&!ml(s,n)&&!(()=>{let e,r=0;for(;e=t.parent(r++);){if(e instanceof Vo)return!0;if(e instanceof Na)break}return!1})()&&!(w instanceof Qo))return bc(n,256),s.add_child_scope(n),Fc(e,(r=>{var i=[],a=[];if(((t,r)=>{for(var i=n.argnames.length,a=e.args.length;--a>=i;)r.push(e.args[a]);for(a=i;--a>=0;){var o=n.argnames[a],s=e.args[a];if(vc(o,1)||!o.name||w.conflicting_def(o.name))s&&r.push(s);else{var c=mi(os,o,o);o.definition().orig.push(c),!s&&F&&(s=mi(Ms,e)),R(t,r,c,s)}}t.reverse(),r.reverse()})(i,a),((e,t)=>{for(var r=t.length,i=0,a=n.body.length;i<a;i++){var o=n.body[i];if(o instanceof vo)for(var s=0,c=o.definitions.length;s<c;s++){var l=o.definitions[s],d=l.name;if(R(e,t,d,l.value),F&&n.argnames.every((e=>e.name!=d.name))){var u=n.variables.get(d.name),p=mi(Es,d,d);u.references.push(p),t.splice(r++,0,mi(jo,l,{operator:"=",logical:!1,left:p,right:mi(Ms,d)}))}}}})(i,a),a.push(r),i.length){const e=w.body.indexOf(t.parent(P-1))+1;w.body.splice(e,0,mi(vo,n,{definitions:i}))}return a.map((e=>e.clone(!0)))})(o)).optimize(t)}if(N&&Ai(e,Gs))return bc(n,256),(n=mi(n.CTOR===qa?Ga:n.CTOR,n,n)).figure_out_scope({},{parent_scope:Nc(t),toplevel:t.get_toplevel()}),mi(Ao,e,{expression:n,args:e.args}).optimize(t);if(k&&t.option("side_effects")&&n.body.every(Rc)){var I=e.args.concat(mi(Ms,e));return Fc(e,I).optimize(t)}if(t.option("negate_iife")&&t.parent()instanceof Ca&&Uc(e))return e.negate(t,!0);var O=e.evaluate(t);return O!==e?(O=Pc(O,e).optimize(t),Zc(t,O,e)):e;function M(t){return t?t instanceof ro?t.value?t.value.clone(!0):mi(Ms,e):t instanceof Ca?mi(Ro,t,{operator:"void",expression:t.body.clone(!0)}):void 0:mi(Ms,e)}function R(t,r,n,i){var a=n.definition();w.variables.has(n.name)||(w.variables.set(n.name,a),w.enclosed.push(a),t.push(mi(xo,n,{name:n,value:null})));var o=mi(Es,n,n);a.references.push(o),i&&r.push(mi(jo,e,{operator:"=",logical:!1,left:o,right:i.clone()}))}})),Dc(ko,((e,t)=>t.option("unsafe")&&jc(e.expression)&&["Object","RegExp","Function","Error","Array"].includes(e.expression.name)?mi(Ao,e,e).transform(t):e)),Dc(No,((e,t)=>{if(!t.option("side_effects"))return e;var r,n,i=[];r=Qs(t),n=e.expressions.length-1,e.expressions.forEach(((e,a)=>{a<n&&(e=e.drop_side_effect_free(t,r)),e&&(Oc(i,e),r=!1)}));var a=i.length-1;return(()=>{for(;a>0&&Gc(i[a],t);)a--;a<i.length-1&&(i[a]=mi(Ro,e,{operator:"void",expression:i[a]}),i.length=a+1)})(),0==a?((e=Ic(t.parent(),t.self(),i[0]))instanceof No||(e=e.optimize(t)),e):(e.expressions=i,e)})),Mo.DEFMETHOD("lift_sequences",(function(e){if(e.option("sequences")&&this.expression instanceof No){var t=this.expression.expressions.slice(),r=this.clone();return r.expression=t.pop(),t.push(r),Fc(this,t).optimize(e)}return this})),Dc(Lo,((e,t)=>e.lift_sequences(t))),Dc(Ro,((e,t)=>{var r=e.expression;if("delete"==e.operator&&!(r instanceof Es||r instanceof wo||Hc(r))){if(r instanceof No){const n=r.expressions.slice();return n.push(mi(js,e)),Fc(e,n).optimize(t)}return Fc(e,[r,mi(js,e)]).optimize(t)}var n=e.lift_sequences(t);if(n!==e)return n;if(t.option("side_effects")&&"void"==e.operator)return(r=r.drop_side_effect_free(t))?(e.expression=r,e):mi(Ms,e).optimize(t);if(t.in_boolean_context())switch(e.operator){case"!":if(r instanceof Ro&&"!"==r.operator)return r.expression;r instanceof Bo&&(e=Zc(t,e,r.negate(t,Qs(t))));break;case"typeof":return(r instanceof Es?mi(js,e):Fc(e,[r,mi(js,e)])).optimize(t)}if("-"==e.operator&&r instanceof Ls&&(r=r.transform(t)),r instanceof Bo&&("+"==e.operator||"-"==e.operator)&&("*"==r.operator||"/"==r.operator||"%"==r.operator))return mi(Bo,e,{operator:r.operator,left:mi(Ro,r.left,{operator:e.operator,expression:r.left}),right:r.right});if("-"!=e.operator||!(r instanceof Ns||r instanceof Ls||r instanceof ws)){var i=e.evaluate(t);if(i!==e)return Zc(t,i=Pc(i,e).optimize(t),e)}return e})),Bo.DEFMETHOD("lift_sequences",(function(e){if(e.option("sequences")){if(this.left instanceof No){var t=this.left.expressions.slice();return(r=this.clone()).left=t.pop(),t.push(r),Fc(this,t).optimize(e)}if(this.right instanceof No&&!this.left.has_side_effects(e)){for(var r,n="="==this.operator&&this.left instanceof Es,i=(t=this.right.expressions).length-1,a=0;a<i&&(n||!t[a].has_side_effects(e));a++);if(a==i)return t=t.slice(),(r=this.clone()).right=t.pop(),t.push(r),Fc(this,t).optimize(e);if(a>0)return(r=this.clone()).right=Fc(this.right,t.slice(a)),(t=t.slice(0,a)).push(r),Fc(this,t).optimize(e)}}return this}));var _l=bi("== === != !== * & | ^");function fl(e,t){for(var r,n=0;r=e.parent(n);n++)if(r instanceof Ka||r instanceof Qo){var i=r.name;if(i&&i.definition()===t)break}return r}function ml(e,t){for(const r of t.enclosed){if(t.variables.has(r.name))continue;const n=e.find_variable(r.name);if(n){if(n===r)continue;return!0}}return!1}function gl(e,t){return e instanceof Es||e.TYPE===t.TYPE}function hl(e,t){const r=e=>{if(e instanceof Es&&oi(e.definition(),t))return Hs};return zs(e,((t,n)=>{if(t instanceof za&&t!==e){var i=n.parent();if(i instanceof Ao&&i.expression===t)return;return!Vs(t,r)||Hs}}))}Dc(Bo,((e,t)=>{function r(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function n(t){if(r()){t&&(e.operator=t);var n=e.left;e.left=e.right,e.right=n}}if(_l.has(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof Bo&&ma[e.left.operator]>=ma[e.operator]||n()),e=e.lift_sequences(t),t.option("comparisons"))switch(e.operator){case"===":case"!==":var i=!0;(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_number(t)&&e.right.is_number(t)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right))&&(e.operator=e.operator.substr(0,2));case"==":case"!=":if(!i&&Gc(e.left,t))e.left=mi(Is,e.left);else if(t.option("typeofs")&&e.left instanceof ks&&"undefined"==e.left.value&&e.right instanceof Ro&&"typeof"==e.right.operator){var a=e.right.expression;(a instanceof Es?!a.is_declared(t):a instanceof wo&&t.option("ie8"))||(e.right=a,e.left=mi(Ms,e.left).optimize(t),2==e.operator.length&&(e.operator+="="))}else if(e.left instanceof Es&&e.right instanceof Es&&e.left.definition()===e.right.definition()&&(e=>e instanceof zo||e instanceof Ka||e instanceof Ho||e instanceof Qo)(e.left.fixed_value()))return mi("="==e.operator[0]?js:Us,e);break;case"&&":case"||":var o=e.left;if(o.operator==e.operator&&(o=o.right),o instanceof Bo&&o.operator==("&&"==e.operator?"!==":"===")&&e.right instanceof Bo&&o.operator==e.right.operator&&(Gc(o.left,t)&&e.right.left instanceof Is||o.left instanceof Is&&Gc(e.right.left,t))&&!o.right.has_side_effects(t)&&o.right.equivalent_to(e.right.right)){var s=mi(Bo,e,{operator:o.operator.slice(0,-1),left:mi(Is,e),right:o.right});return o!==e.left&&(s=mi(Bo,e,{operator:e.operator,left:e.left.left,right:s})),s}}if("+"==e.operator&&t.in_boolean_context()){var c=e.left.evaluate(t),l=e.right.evaluate(t);if(c&&"string"==typeof c)return Fc(e,[e.right,mi(js,e)]).optimize(t);if(l&&"string"==typeof l)return Fc(e,[e.left,mi(js,e)]).optimize(t)}if(t.option("comparisons")&&e.is_boolean()){if(!(t.parent()instanceof Bo)||t.parent()instanceof jo){var d=mi(Ro,e,{operator:"!",expression:e.negate(t,Qs(t))});e=Zc(t,e,d)}if(t.option("unsafe_comps"))switch(e.operator){case"<":n(">");break;case"<=":n(">=")}}if("+"==e.operator){if(e.right instanceof ks&&""==e.right.getValue()&&e.left.is_string(t))return e.left;if(e.left instanceof ks&&""==e.left.getValue()&&e.right.is_string(t))return e.right;if(e.left instanceof Bo&&"+"==e.left.operator&&e.left.left instanceof ks&&""==e.left.left.getValue()&&e.right.is_string(t))return e.left=e.left.right,e}if(t.option("evaluate")){switch(e.operator){case"&&":if(!(c=!!vc(e.left,2)||!vc(e.left,4)&&e.left.evaluate(t)))return Ic(t.parent(),t.self(),e.left).optimize(t);if(!(c instanceof xa))return Fc(e,[e.left,e.right]).optimize(t);if(l=e.right.evaluate(t)){if(!(l instanceof xa)&&("&&"==(u=t.parent()).operator&&u.left===t.self()||t.in_boolean_context()))return e.left.optimize(t)}else{if(t.in_boolean_context())return Fc(e,[e.left,mi(Us,e)]).optimize(t);bc(e,4)}if("||"==e.left.operator&&!(p=e.left.right.evaluate(t)))return mi(Uo,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(t);break;case"||":var u,p;if(!(c=!!vc(e.left,2)||!vc(e.left,4)&&e.left.evaluate(t)))return Fc(e,[e.left,e.right]).optimize(t);if(!(c instanceof xa))return Ic(t.parent(),t.self(),e.left).optimize(t);if(l=e.right.evaluate(t)){if(!(l instanceof xa)){if(t.in_boolean_context())return Fc(e,[e.left,mi(js,e)]).optimize(t);bc(e,2)}}else if("||"==(u=t.parent()).operator&&u.left===t.self()||t.in_boolean_context())return e.left.optimize(t);if("&&"==e.left.operator&&(p=e.left.right.evaluate(t))&&!(p instanceof xa))return mi(Uo,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(t);break;case"??":if(bl(e.left))return e.right;if(!((c=e.left.evaluate(t))instanceof xa))return null==c?e.right:e.left;if(t.in_boolean_context()){const r=e.right.evaluate(t);if(!(r instanceof xa||r))return e.left}}var _=!0;switch(e.operator){case"+":if(e.right instanceof As&&e.left instanceof Bo&&"+"==e.left.operator&&e.left.is_string(t)){var f=(m=mi(Bo,e,{operator:"+",left:e.left.right,right:e.right})).optimize(t);m!==f&&(e=mi(Bo,e,{operator:"+",left:e.left.left,right:f}))}if(e.left instanceof Bo&&"+"==e.left.operator&&e.left.is_string(t)&&e.right instanceof Bo&&"+"==e.right.operator&&e.right.is_string(t)){var m,g=(m=mi(Bo,e,{operator:"+",left:e.left.right,right:e.right.left})).optimize(t);m!==g&&(e=mi(Bo,e,{operator:"+",left:mi(Bo,e.left,{operator:"+",left:e.left.left,right:g}),right:e.right.right}))}if(e.right instanceof Ro&&"-"==e.right.operator&&e.left.is_number(t)){e=mi(Bo,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof Ro&&"-"==e.left.operator&&r()&&e.right.is_number(t)){e=mi(Bo,e,{operator:"-",left:e.right,right:e.left.expression});break}if(e.left instanceof Qa){var h=e.left;if((f=e.right.evaluate(t))!=e.right)return h.segments[h.segments.length-1].value+=String(f),h}if(e.right instanceof Qa&&(f=e.right,(h=e.left.evaluate(t))!=e.left))return f.segments[0].value=String(h)+f.segments[0].value,f;if(e.left instanceof Qa&&e.right instanceof Qa){var y=(h=e.left).segments;f=e.right,y[y.length-1].value+=f.segments[0].value;for(var v=1;v<f.segments.length;v++)y.push(f.segments[v]);return h}case"*":_=t.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(t)&&e.right.is_number(t)&&r()&&!(e.left instanceof Bo&&e.left.operator!=e.operator&&ma[e.left.operator]>=ma[e.operator])){var b=mi(Bo,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof As&&!(e.left instanceof As)?Zc(t,b,e):Zc(t,e,b)}_&&e.is_number(t)&&(e.right instanceof Bo&&e.right.operator==e.operator&&(e=mi(Bo,e,{operator:e.operator,left:mi(Bo,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof As&&e.left instanceof Bo&&e.left.operator==e.operator&&(e.left.left instanceof As?e=mi(Bo,e,{operator:e.operator,left:mi(Bo,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof As&&(e=mi(Bo,e,{operator:e.operator,left:mi(Bo,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof Bo&&e.left.operator==e.operator&&e.left.right instanceof As&&e.right instanceof Bo&&e.right.operator==e.operator&&e.right.left instanceof As&&(e=mi(Bo,e,{operator:e.operator,left:mi(Bo,e.left,{operator:e.operator,left:mi(Bo,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}}if(e.right instanceof Bo&&e.right.operator==e.operator&&($c.has(e.operator)||"+"==e.operator&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t))))return e.left=mi(Bo,e.left,{operator:e.operator,left:e.left.transform(t),right:e.right.left.transform(t)}),e.right=e.right.right.transform(t),e.transform(t);var E=e.evaluate(t);return E!==e?(E=Pc(E,e).optimize(t),Zc(t,E,e)):e})),Dc(xs,(e=>e)),Dc(Es,((e,t)=>{if(!t.option("ie8")&&jc(e)&&!t.find_parent(Va))switch(e.name){case"undefined":return mi(Ms,e).optimize(t);case"NaN":return mi(Os,e).optimize(t);case"Infinity":return mi(Ls,e).optimize(t)}const r=t.parent();if(t.option("reduce_vars")&&Xc(e,r)!==e){const a=e.definition(),o=Nc(t);if(t.top_retain&&a.global&&t.top_retain(a))return a.fixed=!1,a.single_use=!1,e;let s=e.fixed_value(),c=a.single_use&&!(r instanceof Ao&&r.is_expr_pure(t)||Ai(r,$s))&&!(r instanceof Co&&s instanceof Ka&&s.name);if(c&&(s instanceof Ka||s instanceof Qo))if(pl(s,t))c=!1;else if(a.scope!==e.scope&&(1==a.escaped||vc(s,16)||(e=>{for(var t,r=0;t=e.parent(r++);){if(t instanceof Da)return!1;if(t instanceof zo||t instanceof Ko||t instanceof Ho)return!0}return!1})(t)))c=!1;else if(fl(t,a))c=!1;else if((a.scope!==e.scope||a.orig[0]instanceof ds)&&(c=s.is_constant_expression(e.scope),"f"==c)){var n=e.scope;do{(n instanceof qa||Cc(n))&&bc(n,16)}while(n=n.parent_scope)}if(c&&s instanceof Ka&&(c=a.scope===e.scope&&!ml(o,s)||r instanceof Ao&&r.expression===e&&!ml(o,s)&&!(s.name&&s.name.definition().recursive_refs>0)),c&&s instanceof Qo&&(c=!(s.extends&&(s.extends.may_throw(t)||s.extends.has_side_effects(t))||s.properties.some((e=>e.may_throw(t)||e.has_side_effects(t))))),c&&s){if(s instanceof ts&&(bc(s,256),s=mi(rs,s,s)),s instanceof qa&&(bc(s,256),s=mi(Ga,s,s)),a.recursive_refs>0&&s.name instanceof us){const e=s.name.definition();let t=s.variables.get(s.name.name),r=t&&t.orig[0];r instanceof fs||(r=mi(fs,s.name,s.name),r.scope=s,s.name=r,t=s.def_function(r)),Vs(s,(r=>{r instanceof Es&&r.definition()===e&&(r.thedef=t,t.references.push(r))}))}return(s instanceof Ka||s instanceof Qo)&&s.parent_scope!==o&&(s=s.clone(!0,t.get_toplevel()),o.add_child_scope(s)),s.optimize(t)}if(s){let r;if(s instanceof Ts)a.orig[0]instanceof ds||!a.references.every((e=>a.scope===e.scope))||(r=s);else{var i=s.evaluate(t);i===s||!t.option("unsafe_regexp")&&i instanceof RegExp||(r=Pc(i,s))}if(r){const n=e.size(t),i=r.size(t);let o=0;if(t.option("unused")&&!t.exposed(a)&&(o=(n+2+i)/(a.references.length-a.assignments)),i<=n+o)return r}}}return e})),Dc(Ms,((e,t)=>{if(t.option("unsafe_undefined")){var r=wc(t,"undefined");if(r){var n=mi(Es,e,{name:"undefined",scope:r.scope,thedef:r});return bc(n,8),n}}var i=Xc(t.self(),t.parent());return i&&gl(i,e)?e:mi(Ro,e,{operator:"void",expression:mi(Ns,e,{value:0})})})),Dc(Ls,((e,t)=>{var r=Xc(t.self(),t.parent());return r&&gl(r,e)?e:!t.option("keep_infinity")||r&&!gl(r,e)||wc(t,"Infinity")?mi(Bo,e,{operator:"/",left:mi(Ns,e,{value:1}),right:mi(Ns,e,{value:0})}):e})),Dc(Os,((e,t)=>{var r=Xc(t.self(),t.parent());return r&&!gl(r,e)||wc(t,"NaN")?mi(Bo,e,{operator:"/",left:mi(Ns,e,{value:0}),right:mi(Ns,e,{value:0})}):e}));const yl=bi("+ - / * % >> << >>> | ^ &"),vl=bi("* | ^ &");function bl(e){let t;return e instanceof Is||Gc(e)||e instanceof Es&&(t=e.definition().fixed)instanceof xa&&bl(t)||e instanceof wo&&e.optional&&bl(e.expression)||e instanceof Ao&&e.optional&&bl(e.expression)||e instanceof Oo&&bl(e.expression)}function El(e,t){return e instanceof Es&&(e=e.fixed_value()),!!e&&(!(e instanceof Ka||e instanceof Qo)||!(e instanceof Ka&&e.contains_this())||t.parent()instanceof ko)}function xl(e,t){return t.in_boolean_context()?Zc(t,e,Fc(e,[e,mi(js,e)]).optimize(t)):e}function Dl(e){for(var t=0;t<e.length;t++){var r=e[t];if(r instanceof Wa){var n=r.expression;n instanceof zo&&!n.elements.some((e=>e instanceof Rs))&&(e.splice(t,1,...n.elements),t--)}}}function Sl(e,t){if(!t.option("computed_props"))return e;if(!(e.key instanceof As))return e;if(e.key instanceof ks||e.key instanceof Ns){if("__proto__"===e.key.value)return e;if("constructor"==e.key.value&&t.parent()instanceof Qo)return e;e.key=e instanceof Ko?e.key.value:mi(e instanceof Zo?_s:ps,e.key,{name:e.key.value})}return e}Dc(jo,((e,t)=>{if(e.logical)return e.lift_sequences(t);var r;if(t.option("dead_code")&&e.left instanceof Es&&(r=e.left.definition()).scope===t.find_parent(Ka)){var n,i=0,a=e;do{if(n=a,(a=t.parent(i++))instanceof to){if(o(i,a))break;if(hl(r.scope,[r]))break;return"="==e.operator?e.right:(r.fixed=!1,mi(Bo,e,{operator:e.operator.slice(0,-1),left:e.left,right:e.right}).optimize(t))}}while(a instanceof Bo&&a.right===n||a instanceof No&&a.tail_node()===n)}return"="==(e=e.lift_sequences(t)).operator&&e.left instanceof Es&&e.right instanceof Bo&&(e.right.left instanceof Es&&e.right.left.name==e.left.name&&yl.has(e.right.operator)?(e.operator=e.right.operator+"=",e.right=e.right.right):e.right.right instanceof Es&&e.right.right.name==e.left.name&&vl.has(e.right.operator)&&!e.right.left.has_side_effects(t)&&(e.operator=e.right.operator+"=",e.right=e.right.left)),e;function o(r,n){var i=e.right;e.right=mi(Is,i);var a=n.may_throw(t);e.right=i;for(var o,s=e.left.definition().scope;(o=t.parent(r++))!==s;)if(o instanceof mo){if(o.bfinally)return!0;if(a&&o.bcatch)return!0}}})),Dc(Vo,((e,t)=>{if(!t.option("evaluate"))return e;var r=e.right.evaluate(t);return void 0===r?e=e.left:r!==e.right&&(r=Pc(r,e.right),e.right=Yc(r,e.right)),e})),Dc(Uo,((e,t)=>{if(!t.option("conditionals"))return e;if(e.condition instanceof No){var r=e.condition.expressions.slice();return e.condition=r.pop(),r.push(e),Fc(e,r)}var n=e.condition.evaluate(t);if(n!==e.condition)return Ic(t.parent(),t.self(),n?e.consequent:e.alternative);var i=n.negate(t,Qs(t));Zc(t,n,i)===i&&(e=mi(Uo,e,{condition:i,consequent:e.alternative,alternative:e.consequent}));var a,o=e.condition,s=e.consequent,c=e.alternative;if(o instanceof Es&&s instanceof Es&&o.definition()===s.definition())return mi(Bo,e,{operator:"||",left:o,right:c});if(s instanceof jo&&c instanceof jo&&s.operator===c.operator&&s.logical===c.logical&&s.left.equivalent_to(c.left)&&(!e.condition.has_side_effects(t)||"="==s.operator&&!s.left.has_side_effects(t)))return mi(jo,e,{operator:s.operator,left:s.left,logical:s.logical,right:mi(Uo,e,{condition:e.condition,consequent:s.right,alternative:c.right})});if(s instanceof Ao&&c.TYPE===s.TYPE&&s.args.length>0&&s.args.length==c.args.length&&s.expression.equivalent_to(c.expression)&&!e.condition.has_side_effects(t)&&!s.expression.has_side_effects(t)&&"number"==typeof(a=(()=>{for(var e=s.args,t=c.args,r=0,n=e.length;r<n;r++){if(e[r]instanceof Wa)return;if(!e[r].equivalent_to(t[r])){if(t[r]instanceof Wa)return;for(var i=r+1;i<n;i++){if(e[i]instanceof Wa)return;if(!e[i].equivalent_to(t[i]))return}return r}}})())){var l=s.clone();return l.args[a]=mi(Uo,e,{condition:e.condition,consequent:s.args[a],alternative:c.args[a]}),l}if(c instanceof Uo&&s.equivalent_to(c.consequent))return mi(Uo,e,{condition:mi(Bo,e,{operator:"||",left:o,right:c.condition}),consequent:s,alternative:c.alternative}).optimize(t);if(t.option("ecma")>=2020&&((e,t,r)=>{if(t.may_throw(r))return!1;let n;if(e instanceof Bo&&"=="===e.operator&&((n=bl(e.left)&&e.left)||(n=bl(e.right)&&e.right))&&(n===e.left?e.right:e.left).equivalent_to(t))return!0;if(e instanceof Bo&&"||"===e.operator){let r,n;const i=e=>{if(!(e instanceof Bo)||"==="!==e.operator&&"=="!==e.operator)return!1;let i,a=0;return e.left instanceof Is&&(a++,r=e,i=e.right),e.right instanceof Is&&(a++,r=e,i=e.left),Gc(e.left)&&(a++,n=e,i=e.right),Gc(e.right)&&(a++,n=e,i=e.left),1===a&&!!i.equivalent_to(t)};if(!i(e.left))return!1;if(!i(e.right))return!1;if(r&&n&&r!==n)return!0}return!1})(o,c,t))return mi(Bo,e,{operator:"??",left:c,right:s}).optimize(t);if(c instanceof No&&s.equivalent_to(c.expressions[c.expressions.length-1]))return Fc(e,[mi(Bo,e,{operator:"||",left:o,right:Fc(e,c.expressions.slice(0,-1))}),s]).optimize(t);if(c instanceof Bo&&"&&"==c.operator&&s.equivalent_to(c.right))return mi(Bo,e,{operator:"&&",left:mi(Bo,e,{operator:"||",left:o,right:c.left}),right:s}).optimize(t);if(s instanceof Uo&&s.alternative.equivalent_to(c))return mi(Uo,e,{condition:mi(Bo,e,{left:e.condition,operator:"&&",right:s.condition}),consequent:s.consequent,alternative:c});if(s.equivalent_to(c))return Fc(e,[e.condition,s]).optimize(t);if(s instanceof Bo&&"||"==s.operator&&s.right.equivalent_to(c))return mi(Bo,e,{operator:"||",left:mi(Bo,e,{operator:"&&",left:e.condition,right:s.left}),right:c}).optimize(t);var d=t.in_boolean_context();return p(e.consequent)?_(e.alternative)?u(e.condition):mi(Bo,e,{operator:"||",left:u(e.condition),right:e.alternative}):_(e.consequent)?p(e.alternative)?u(e.condition.negate(t)):mi(Bo,e,{operator:"&&",left:u(e.condition.negate(t)),right:e.alternative}):p(e.alternative)?mi(Bo,e,{operator:"||",left:u(e.condition.negate(t)),right:e.consequent}):_(e.alternative)?mi(Bo,e,{operator:"&&",left:u(e.condition),right:e.consequent}):e;function u(e){return e.is_boolean()?e:mi(Ro,e,{operator:"!",expression:e.negate(t)})}function p(e){return e instanceof js||d&&e instanceof As&&e.getValue()||e instanceof Ro&&"!"==e.operator&&e.expression instanceof As&&!e.expression.getValue()}function _(e){return e instanceof Us||d&&e instanceof As&&!e.getValue()||e instanceof Ro&&"!"==e.operator&&e.expression instanceof As&&e.expression.getValue()}})),Dc(Bs,((e,t)=>{if(t.in_boolean_context())return mi(Ns,e,{value:+e.value});var r=t.parent();return t.option("booleans_as_integers")?(r instanceof Bo&&("==="==r.operator||"!=="==r.operator)&&(r.operator=r.operator.replace(/=$/,"")),mi(Ns,e,{value:+e.value})):t.option("booleans")?r instanceof Bo&&("=="==r.operator||"!="==r.operator)?mi(Ns,e,{value:+e.value}):mi(Ro,e,{operator:"!",expression:mi(Ns,e,{value:1-e.value})}):e})),wo.DEFMETHOD("flatten_object",(function(e,t){if(t.option("properties")){var r=t.option("unsafe_arrows")&&t.option("ecma")>=2015,n=this.expression;if(n instanceof Ho)for(var i=n.properties,a=i.length;--a>=0;){var o=i[a];if(""+(o instanceof Xo?o.key.name:o.key)==e){if(!i.every((e=>e instanceof Ko||r&&e instanceof Xo&&!e.is_generator)))break;if(!El(o.value,t))break;return mi(Io,this,{expression:mi(zo,n,{elements:i.map((e=>{var t=e.value;t instanceof Ja&&(t=mi(Ga,t,t));var r=e.key;return r instanceof xa&&!(r instanceof ps)?Fc(e,[r,t]):t}))}),property:mi(Ns,this,{value:a})})}}}})),Dc(Io,((e,t)=>{var r,n=e.expression,i=e.property;if(t.option("properties")){var a=i.evaluate(t);if(a!==i){"string"==typeof a&&("undefined"==a?a=void 0:(E=parseFloat(a)).toString()==a&&(a=E)),i=e.property=Yc(i,Pc(a,i).transform(t));var o=""+a;if(na(o)&&o.length<=i.size()+1)return mi(Fo,e,{expression:n,optional:e.optional,property:o,quote:i.quote}).optimize(t)}}e:if(t.option("arguments")&&n instanceof Es&&"arguments"==n.name&&1==n.definition().orig.length&&(r=n.scope)instanceof Ka&&r.uses_arguments&&!(r instanceof $a)&&i instanceof Ns){for(var s=i.getValue(),c=new Set,l=r.argnames,d=0;d<l.length;d++){if(!(l[d]instanceof ds))break e;var u=l[d].name;if(c.has(u))break e;c.add(u)}var p=r.argnames[s];if(p&&t.has_directive("use strict")){var _=p.definition();(!t.option("reduce_vars")||_.assignments||_.orig.length>1)&&(p=null)}else if(!p&&!t.option("keep_fargs")&&s<r.argnames.length+5)for(;s>=r.argnames.length;)p=r.create_symbol(ds,{source:r,scope:r,tentative_name:"argument_"+r.argnames.length}),r.argnames.push(p);if(p){var f=mi(Es,e,p);return f.reference({}),Ec(p,1),f}}if(Xc(e,t.parent()))return e;if(a!==i){var m=e.flatten_object(o,t);m&&(n=e.expression=m.expression,i=e.property=m.property)}if(t.option("properties")&&t.option("side_effects")&&i instanceof Ns&&n instanceof zo){s=i.getValue();var g=n.elements,h=g[s];e:if(El(h,t)){for(var y=!0,v=[],b=g.length;--b>s;)(E=g[b].drop_side_effect_free(t))&&(v.unshift(E),y&&E.has_side_effects(t)&&(y=!1));if(h instanceof Wa)break e;for(h=h instanceof Rs?mi(Ms,h):h,y||v.unshift(h);--b>=0;){var E;if((E=g[b])instanceof Wa)break e;(E=E.drop_side_effect_free(t))?v.unshift(E):s--}return y?(v.push(h),Fc(e,v).optimize(t)):mi(Io,e,{expression:mi(zo,n,{elements:v}),property:mi(Ns,i,{value:s})})}}var x=e.evaluate(t);return x!==e?Zc(t,x=Pc(x,e).optimize(t),e):e.optional&&bl(e.expression)?mi(Ms,e):e})),Dc(Oo,((e,t)=>(e.expression=e.expression.optimize(t),e))),Ka.DEFMETHOD("contains_this",(function(){return Vs(this,(e=>e instanceof Ts?Hs:e!==this&&e instanceof za&&!(e instanceof $a)||void 0))})),Dc(Fo,((e,t)=>{const r=t.parent();if(Xc(e,r))return e;if(t.option("unsafe_proto")&&e.expression instanceof Fo&&"prototype"==e.expression.property){var n=e.expression.expression;if(jc(n))switch(n.name){case"Array":e.expression=mi(zo,e.expression,{elements:[]});break;case"Function":e.expression=mi(Ga,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=mi(Ns,e.expression,{value:0});break;case"Object":e.expression=mi(Ho,e.expression,{properties:[]});break;case"RegExp":e.expression=mi(Fs,e.expression,{value:{source:"t",flags:""}});break;case"String":e.expression=mi(ks,e.expression,{value:""})}}if(!(r instanceof Ao&&Ai(r,$s))){const r=e.flatten_object(e.property,t);if(r)return r.optimize(t)}let i=e.evaluate(t);return i!==e?(i=Pc(i,e).optimize(t),Zc(t,i,e)):e.optional&&bl(e.expression)?mi(Ms,e):e})),Dc(zo,((e,t)=>{var r=xl(e,t);return r!==e?r:(Dl(e.elements),e)})),Dc(Ho,((e,t)=>{var r=xl(e,t);return r!==e?r:((e=>{for(var t=0;t<e.length;t++){var r=e[t];if(r instanceof Wa){const n=r.expression;n instanceof Ho&&n.properties.every((e=>e instanceof Ko))?(e.splice(t,1,...n.properties),t--):n instanceof As&&!(n instanceof ks)&&e.splice(t,1)}}})(e.properties),e)})),Dc(Fs,xl),Dc(ro,((e,t)=>(e.value&&Gc(e.value,t)&&(e.value=null),e))),Dc($a,cl),Dc(Ga,((e,t)=>(e=cl(e,t),!(t.option("unsafe_arrows")&&t.option("ecma")>=2015)||e.name||e.is_generator||e.uses_arguments||e.pinned()||Vs(e,(e=>{if(e instanceof Ts)return Hs}))?e:mi($a,e,e).optimize(t)))),Dc(Qo,(e=>e)),Dc(co,((e,t)=>(e.expression&&!e.is_star&&Gc(e.expression,t)&&(e.expression=null),e))),Dc(Qa,((e,t)=>{if(!t.option("evaluate")||t.parent()instanceof Ya)return e;for(var r=[],n=0;n<e.segments.length;n++){var i=e.segments[n];if(i instanceof xa){var a=i.evaluate(t);if(a!==i&&(a+"").length<=i.size()+"${}".length){r[r.length-1].value=r[r.length-1].value+a+e.segments[++n].value;continue}if(i instanceof Qa){var o=i.segments;r[r.length-1].value+=o[0].value;for(var s=1;s<o.length;s++)i=o[s],r.push(i);continue}}r.push(i)}if(e.segments=r,1==r.length)return mi(ks,e,r[0]);if(3===r.length&&r[1]instanceof xa&&(r[1].is_string(t)||r[1].is_number(t)||bl(r[1])||t.option("unsafe"))){if(""===r[2].value)return mi(Bo,e,{operator:"+",left:mi(ks,e,{value:r[0].value}),right:r[1]});if(""===r[0].value)return mi(Bo,e,{operator:"+",left:r[1],right:mi(ks,e,{value:r[2].value})})}return e})),Dc(Ya,(e=>e)),Dc(Wo,Sl),Dc(Xo,((e,t)=>{if(Sl(e,t),t.option("arrows")&&t.parent()instanceof Ho&&!e.is_generator&&!e.value.uses_arguments&&!e.value.pinned()&&1==e.value.body.length&&e.value.body[0]instanceof ro&&e.value.body[0].value&&!e.value.contains_this()){var r=mi($a,e.value,e.value);return r.async=e.async,r.is_generator=e.is_generator,mi(Ko,e,{key:e.key instanceof ps?e.key.name:e.key,value:r,quote:e.quote})}return e})),Dc(Ko,((e,t)=>{Sl(e,t);var r=t.option("unsafe_methods");if(r&&t.option("ecma")>=2015&&(!(r instanceof RegExp)||r.test(e.key+""))){var n=e.key,i=e.value;if((i instanceof $a&&Array.isArray(i.body)&&!i.contains_this()||i instanceof Ga)&&!i.name)return mi(Xo,e,{async:i.async,is_generator:i.is_generator,key:n instanceof xa?n:mi(ps,e,{name:n}),value:mi(Ja,i,i),quote:e.quote})}return e})),Dc(Xa,((e,t)=>{if(1==t.option("pure_getters")&&t.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!(e=>{for(var t=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],r=0,n=0,i=t.length;r<i;n++){var a=e.parent(n);if(!a)return!1;if(0!==r||"Destructuring"!=a.TYPE){if(!t[r].test(a.TYPE))return!1;r++}}return!0})(t)&&!(e.names[e.names.length-1]instanceof Wa)){for(var r=[],n=0;n<e.names.length;n++){var i=e.names[n];i instanceof Ko&&"string"==typeof i.key&&i.value instanceof as&&!a(t,i.value.definition())||r.push(i)}r.length!=e.names.length&&(e.names=r)}return e;function a(e,t){return!!t.references.length||!!t.global&&(!e.toplevel.vars||!!e.top_retain&&e.top_retain(t))}}));var Tl=["$&","$'","$*","$+","$1","$2","$3","$4","$5","$6","$7","$8","$9","$_","$`","$input","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-fill-mode","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-border-end","-moz-border-end-color","-moz-border-end-style","-moz-border-end-width","-moz-border-image","-moz-border-start","-moz-border-start-color","-moz-border-start-style","-moz-border-start-width","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-float-edge","-moz-font-feature-settings","-moz-font-language-override","-moz-force-broken-image-icon","-moz-hyphens","-moz-image-region","-moz-margin-end","-moz-margin-start","-moz-orient","-moz-osx-font-smoothing","-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-padding-end","-moz-padding-start","-moz-perspective","-moz-perspective-origin","-moz-tab-size","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transform-style","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-input","-moz-user-modify","-moz-user-select","-moz-window-dragging","-webkit-align-content","-webkit-align-items","-webkit-align-self","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-origin","-webkit-background-size","-webkit-border-bottom-left-radius","-webkit-border-bottom-right-radius","-webkit-border-image","-webkit-border-radius","-webkit-border-top-left-radius","-webkit-border-top-right-radius","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-shadow","-webkit-box-sizing","-webkit-filter","-webkit-flex","-webkit-flex-basis","-webkit-flex-direction","-webkit-flex-flow","-webkit-flex-grow","-webkit-flex-shrink","-webkit-flex-wrap","-webkit-justify-content","-webkit-line-clamp","-webkit-mask","-webkit-mask-clip","-webkit-mask-composite","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-position","-webkit-mask-position-x","-webkit-mask-position-y","-webkit-mask-repeat","-webkit-mask-size","-webkit-order","-webkit-perspective","-webkit-perspective-origin","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-transform","-webkit-transform-origin","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-select","0","1","10","11","12","13","14","15","16","17","18","19","2","20","3","4","5","6","7","8","9","@@iterator","ABORT_ERR","ACTIVE","ACTIVE_ATTRIBUTES","ACTIVE_TEXTURE","ACTIVE_UNIFORMS","ACTIVE_UNIFORM_BLOCKS","ADDITION","ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE","ALLOW_KEYBOARD_INPUT","ALLPASS","ALPHA","ALPHA_BITS","ALREADY_SIGNALED","ALT_MASK","ALWAYS","ANY_SAMPLES_PASSED","ANY_SAMPLES_PASSED_CONSERVATIVE","ANY_TYPE","ANY_UNORDERED_NODE_TYPE","ARRAY_BUFFER","ARRAY_BUFFER_BINDING","ATTACHED_SHADERS","ATTRIBUTE_NODE","AT_TARGET","AbortController","AbortSignal","AbsoluteOrientationSensor","AbstractRange","Accelerometer","AddSearchProvider","AggregateError","AnalyserNode","Animation","AnimationEffect","AnimationEvent","AnimationPlaybackEvent","AnimationTimeline","AnonXMLHttpRequest","Any","ApplicationCache","ApplicationCacheErrorEvent","Array","ArrayBuffer","ArrayType","Atomics","Attr","Audio","AudioBuffer","AudioBufferSourceNode","AudioContext","AudioDestinationNode","AudioListener","AudioNode","AudioParam","AudioParamMap","AudioProcessingEvent","AudioScheduledSourceNode","AudioStreamTrack","AudioWorklet","AudioWorkletNode","AuthenticatorAssertionResponse","AuthenticatorAttestationResponse","AuthenticatorResponse","AutocompleteErrorEvent","BACK","BAD_BOUNDARYPOINTS_ERR","BAD_REQUEST","BANDPASS","BLEND","BLEND_COLOR","BLEND_DST_ALPHA","BLEND_DST_RGB","BLEND_EQUATION","BLEND_EQUATION_ALPHA","BLEND_EQUATION_RGB","BLEND_SRC_ALPHA","BLEND_SRC_RGB","BLUE_BITS","BLUR","BOOL","BOOLEAN_TYPE","BOOL_VEC2","BOOL_VEC3","BOOL_VEC4","BOTH","BROWSER_DEFAULT_WEBGL","BUBBLING_PHASE","BUFFER_SIZE","BUFFER_USAGE","BYTE","BYTES_PER_ELEMENT","BackgroundFetchManager","BackgroundFetchRecord","BackgroundFetchRegistration","BarProp","BarcodeDetector","BaseAudioContext","BaseHref","BatteryManager","BeforeInstallPromptEvent","BeforeLoadEvent","BeforeUnloadEvent","BigInt","BigInt64Array","BigUint64Array","BiquadFilterNode","Blob","BlobEvent","Bluetooth","BluetoothCharacteristicProperties","BluetoothDevice","BluetoothRemoteGATTCharacteristic","BluetoothRemoteGATTDescriptor","BluetoothRemoteGATTServer","BluetoothRemoteGATTService","BluetoothUUID","Boolean","BroadcastChannel","ByteLengthQueuingStrategy","CAPTURING_PHASE","CCW","CDATASection","CDATA_SECTION_NODE","CHANGE","CHARSET_RULE","CHECKING","CLAMP_TO_EDGE","CLICK","CLOSED","CLOSING","COLOR","COLOR_ATTACHMENT0","COLOR_ATTACHMENT1","COLOR_ATTACHMENT10","COLOR_ATTACHMENT11","COLOR_ATTACHMENT12","COLOR_ATTACHMENT13","COLOR_ATTACHMENT14","COLOR_ATTACHMENT15","COLOR_ATTACHMENT2","COLOR_ATTACHMENT3","COLOR_ATTACHMENT4","COLOR_ATTACHMENT5","COLOR_ATTACHMENT6","COLOR_ATTACHMENT7","COLOR_ATTACHMENT8","COLOR_ATTACHMENT9","COLOR_BUFFER_BIT","COLOR_CLEAR_VALUE","COLOR_WRITEMASK","COMMENT_NODE","COMPARE_REF_TO_TEXTURE","COMPILE_STATUS","COMPRESSED_RGBA_S3TC_DXT1_EXT","COMPRESSED_RGBA_S3TC_DXT3_EXT","COMPRESSED_RGBA_S3TC_DXT5_EXT","COMPRESSED_RGB_S3TC_DXT1_EXT","COMPRESSED_TEXTURE_FORMATS","CONDITION_SATISFIED","CONFIGURATION_UNSUPPORTED","CONNECTING","CONSTANT_ALPHA","CONSTANT_COLOR","CONSTRAINT_ERR","CONTEXT_LOST_WEBGL","CONTROL_MASK","COPY_READ_BUFFER","COPY_READ_BUFFER_BINDING","COPY_WRITE_BUFFER","COPY_WRITE_BUFFER_BINDING","COUNTER_STYLE_RULE","CSS","CSS2Properties","CSSAnimation","CSSCharsetRule","CSSConditionRule","CSSCounterStyleRule","CSSFontFaceRule","CSSFontFeatureValuesRule","CSSGroupingRule","CSSImageValue","CSSImportRule","CSSKeyframeRule","CSSKeyframesRule","CSSKeywordValue","CSSMathInvert","CSSMathMax","CSSMathMin","CSSMathNegate","CSSMathProduct","CSSMathSum","CSSMathValue","CSSMatrixComponent","CSSMediaRule","CSSMozDocumentRule","CSSNameSpaceRule","CSSNamespaceRule","CSSNumericArray","CSSNumericValue","CSSPageRule","CSSPerspective","CSSPositionValue","CSSPrimitiveValue","CSSRotate","CSSRule","CSSRuleList","CSSScale","CSSSkew","CSSSkewX","CSSSkewY","CSSStyleDeclaration","CSSStyleRule","CSSStyleSheet","CSSStyleValue","CSSSupportsRule","CSSTransformComponent","CSSTransformValue","CSSTransition","CSSTranslate","CSSUnitValue","CSSUnknownRule","CSSUnparsedValue","CSSValue","CSSValueList","CSSVariableReferenceValue","CSSVariablesDeclaration","CSSVariablesRule","CSSViewportRule","CSS_ATTR","CSS_CM","CSS_COUNTER","CSS_CUSTOM","CSS_DEG","CSS_DIMENSION","CSS_EMS","CSS_EXS","CSS_FILTER_BLUR","CSS_FILTER_BRIGHTNESS","CSS_FILTER_CONTRAST","CSS_FILTER_CUSTOM","CSS_FILTER_DROP_SHADOW","CSS_FILTER_GRAYSCALE","CSS_FILTER_HUE_ROTATE","CSS_FILTER_INVERT","CSS_FILTER_OPACITY","CSS_FILTER_REFERENCE","CSS_FILTER_SATURATE","CSS_FILTER_SEPIA","CSS_GRAD","CSS_HZ","CSS_IDENT","CSS_IN","CSS_INHERIT","CSS_KHZ","CSS_MATRIX","CSS_MATRIX3D","CSS_MM","CSS_MS","CSS_NUMBER","CSS_PC","CSS_PERCENTAGE","CSS_PERSPECTIVE","CSS_PRIMITIVE_VALUE","CSS_PT","CSS_PX","CSS_RAD","CSS_RECT","CSS_RGBCOLOR","CSS_ROTATE","CSS_ROTATE3D","CSS_ROTATEX","CSS_ROTATEY","CSS_ROTATEZ","CSS_S","CSS_SCALE","CSS_SCALE3D","CSS_SCALEX","CSS_SCALEY","CSS_SCALEZ","CSS_SKEW","CSS_SKEWX","CSS_SKEWY","CSS_STRING","CSS_TRANSLATE","CSS_TRANSLATE3D","CSS_TRANSLATEX","CSS_TRANSLATEY","CSS_TRANSLATEZ","CSS_UNKNOWN","CSS_URI","CSS_VALUE_LIST","CSS_VH","CSS_VMAX","CSS_VMIN","CSS_VW","CULL_FACE","CULL_FACE_MODE","CURRENT_PROGRAM","CURRENT_QUERY","CURRENT_VERTEX_ATTRIB","CUSTOM","CW","Cache","CacheStorage","CanvasCaptureMediaStream","CanvasCaptureMediaStreamTrack","CanvasGradient","CanvasPattern","CanvasRenderingContext2D","CaretPosition","ChannelMergerNode","ChannelSplitterNode","CharacterData","ClientRect","ClientRectList","Clipboard","ClipboardEvent","ClipboardItem","CloseEvent","Collator","CommandEvent","Comment","CompileError","CompositionEvent","CompressionStream","Console","ConstantSourceNode","Controllers","ConvolverNode","CountQueuingStrategy","Counter","Credential","CredentialsContainer","Crypto","CryptoKey","CustomElementRegistry","CustomEvent","DATABASE_ERR","DATA_CLONE_ERR","DATA_ERR","DBLCLICK","DECR","DECR_WRAP","DELETE_STATUS","DEPTH","DEPTH24_STENCIL8","DEPTH32F_STENCIL8","DEPTH_ATTACHMENT","DEPTH_BITS","DEPTH_BUFFER_BIT","DEPTH_CLEAR_VALUE","DEPTH_COMPONENT","DEPTH_COMPONENT16","DEPTH_COMPONENT24","DEPTH_COMPONENT32F","DEPTH_FUNC","DEPTH_RANGE","DEPTH_STENCIL","DEPTH_STENCIL_ATTACHMENT","DEPTH_TEST","DEPTH_WRITEMASK","DEVICE_INELIGIBLE","DIRECTION_DOWN","DIRECTION_LEFT","DIRECTION_RIGHT","DIRECTION_UP","DISABLED","DISPATCH_REQUEST_ERR","DITHER","DOCUMENT_FRAGMENT_NODE","DOCUMENT_NODE","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_DISCONNECTED","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC","DOCUMENT_POSITION_PRECEDING","DOCUMENT_TYPE_NODE","DOMCursor","DOMError","DOMException","DOMImplementation","DOMImplementationLS","DOMMatrix","DOMMatrixReadOnly","DOMParser","DOMPoint","DOMPointReadOnly","DOMQuad","DOMRect","DOMRectList","DOMRectReadOnly","DOMRequest","DOMSTRING_SIZE_ERR","DOMSettableTokenList","DOMStringList","DOMStringMap","DOMTokenList","DOMTransactionEvent","DOM_DELTA_LINE","DOM_DELTA_PAGE","DOM_DELTA_PIXEL","DOM_INPUT_METHOD_DROP","DOM_INPUT_METHOD_HANDWRITING","DOM_INPUT_METHOD_IME","DOM_INPUT_METHOD_KEYBOARD","DOM_INPUT_METHOD_MULTIMODAL","DOM_INPUT_METHOD_OPTION","DOM_INPUT_METHOD_PASTE","DOM_INPUT_METHOD_SCRIPT","DOM_INPUT_METHOD_UNKNOWN","DOM_INPUT_METHOD_VOICE","DOM_KEY_LOCATION_JOYSTICK","DOM_KEY_LOCATION_LEFT","DOM_KEY_LOCATION_MOBILE","DOM_KEY_LOCATION_NUMPAD","DOM_KEY_LOCATION_RIGHT","DOM_KEY_LOCATION_STANDARD","DOM_VK_0","DOM_VK_1","DOM_VK_2","DOM_VK_3","DOM_VK_4","DOM_VK_5","DOM_VK_6","DOM_VK_7","DOM_VK_8","DOM_VK_9","DOM_VK_A","DOM_VK_ACCEPT","DOM_VK_ADD","DOM_VK_ALT","DOM_VK_ALTGR","DOM_VK_AMPERSAND","DOM_VK_ASTERISK","DOM_VK_AT","DOM_VK_ATTN","DOM_VK_B","DOM_VK_BACKSPACE","DOM_VK_BACK_QUOTE","DOM_VK_BACK_SLASH","DOM_VK_BACK_SPACE","DOM_VK_C","DOM_VK_CANCEL","DOM_VK_CAPS_LOCK","DOM_VK_CIRCUMFLEX","DOM_VK_CLEAR","DOM_VK_CLOSE_BRACKET","DOM_VK_CLOSE_CURLY_BRACKET","DOM_VK_CLOSE_PAREN","DOM_VK_COLON","DOM_VK_COMMA","DOM_VK_CONTEXT_MENU","DOM_VK_CONTROL","DOM_VK_CONVERT","DOM_VK_CRSEL","DOM_VK_CTRL","DOM_VK_D","DOM_VK_DECIMAL","DOM_VK_DELETE","DOM_VK_DIVIDE","DOM_VK_DOLLAR","DOM_VK_DOUBLE_QUOTE","DOM_VK_DOWN","DOM_VK_E","DOM_VK_EISU","DOM_VK_END","DOM_VK_ENTER","DOM_VK_EQUALS","DOM_VK_EREOF","DOM_VK_ESCAPE","DOM_VK_EXCLAMATION","DOM_VK_EXECUTE","DOM_VK_EXSEL","DOM_VK_F","DOM_VK_F1","DOM_VK_F10","DOM_VK_F11","DOM_VK_F12","DOM_VK_F13","DOM_VK_F14","DOM_VK_F15","DOM_VK_F16","DOM_VK_F17","DOM_VK_F18","DOM_VK_F19","DOM_VK_F2","DOM_VK_F20","DOM_VK_F21","DOM_VK_F22","DOM_VK_F23","DOM_VK_F24","DOM_VK_F25","DOM_VK_F26","DOM_VK_F27","DOM_VK_F28","DOM_VK_F29","DOM_VK_F3","DOM_VK_F30","DOM_VK_F31","DOM_VK_F32","DOM_VK_F33","DOM_VK_F34","DOM_VK_F35","DOM_VK_F36","DOM_VK_F4","DOM_VK_F5","DOM_VK_F6","DOM_VK_F7","DOM_VK_F8","DOM_VK_F9","DOM_VK_FINAL","DOM_VK_FRONT","DOM_VK_G","DOM_VK_GREATER_THAN","DOM_VK_H","DOM_VK_HANGUL","DOM_VK_HANJA","DOM_VK_HASH","DOM_VK_HELP","DOM_VK_HK_TOGGLE","DOM_VK_HOME","DOM_VK_HYPHEN_MINUS","DOM_VK_I","DOM_VK_INSERT","DOM_VK_J","DOM_VK_JUNJA","DOM_VK_K","DOM_VK_KANA","DOM_VK_KANJI","DOM_VK_L","DOM_VK_LEFT","DOM_VK_LEFT_TAB","DOM_VK_LESS_THAN","DOM_VK_M","DOM_VK_META","DOM_VK_MODECHANGE","DOM_VK_MULTIPLY","DOM_VK_N","DOM_VK_NONCONVERT","DOM_VK_NUMPAD0","DOM_VK_NUMPAD1","DOM_VK_NUMPAD2","DOM_VK_NUMPAD3","DOM_VK_NUMPAD4","DOM_VK_NUMPAD5","DOM_VK_NUMPAD6","DOM_VK_NUMPAD7","DOM_VK_NUMPAD8","DOM_VK_NUMPAD9","DOM_VK_NUM_LOCK","DOM_VK_O","DOM_VK_OEM_1","DOM_VK_OEM_102","DOM_VK_OEM_2","DOM_VK_OEM_3","DOM_VK_OEM_4","DOM_VK_OEM_5","DOM_VK_OEM_6","DOM_VK_OEM_7","DOM_VK_OEM_8","DOM_VK_OEM_COMMA","DOM_VK_OEM_MINUS","DOM_VK_OEM_PERIOD","DOM_VK_OEM_PLUS","DOM_VK_OPEN_BRACKET","DOM_VK_OPEN_CURLY_BRACKET","DOM_VK_OPEN_PAREN","DOM_VK_P","DOM_VK_PA1","DOM_VK_PAGEDOWN","DOM_VK_PAGEUP","DOM_VK_PAGE_DOWN","DOM_VK_PAGE_UP","DOM_VK_PAUSE","DOM_VK_PERCENT","DOM_VK_PERIOD","DOM_VK_PIPE","DOM_VK_PLAY","DOM_VK_PLUS","DOM_VK_PRINT","DOM_VK_PRINTSCREEN","DOM_VK_PROCESSKEY","DOM_VK_PROPERITES","DOM_VK_Q","DOM_VK_QUESTION_MARK","DOM_VK_QUOTE","DOM_VK_R","DOM_VK_REDO","DOM_VK_RETURN","DOM_VK_RIGHT","DOM_VK_S","DOM_VK_SCROLL_LOCK","DOM_VK_SELECT","DOM_VK_SEMICOLON","DOM_VK_SEPARATOR","DOM_VK_SHIFT","DOM_VK_SLASH","DOM_VK_SLEEP","DOM_VK_SPACE","DOM_VK_SUBTRACT","DOM_VK_T","DOM_VK_TAB","DOM_VK_TILDE","DOM_VK_U","DOM_VK_UNDERSCORE","DOM_VK_UNDO","DOM_VK_UNICODE","DOM_VK_UP","DOM_VK_V","DOM_VK_VOLUME_DOWN","DOM_VK_VOLUME_MUTE","DOM_VK_VOLUME_UP","DOM_VK_W","DOM_VK_WIN","DOM_VK_WINDOW","DOM_VK_WIN_ICO_00","DOM_VK_WIN_ICO_CLEAR","DOM_VK_WIN_ICO_HELP","DOM_VK_WIN_OEM_ATTN","DOM_VK_WIN_OEM_AUTO","DOM_VK_WIN_OEM_BACKTAB","DOM_VK_WIN_OEM_CLEAR","DOM_VK_WIN_OEM_COPY","DOM_VK_WIN_OEM_CUSEL","DOM_VK_WIN_OEM_ENLW","DOM_VK_WIN_OEM_FINISH","DOM_VK_WIN_OEM_FJ_JISHO","DOM_VK_WIN_OEM_FJ_LOYA","DOM_VK_WIN_OEM_FJ_MASSHOU","DOM_VK_WIN_OEM_FJ_ROYA","DOM_VK_WIN_OEM_FJ_TOUROKU","DOM_VK_WIN_OEM_JUMP","DOM_VK_WIN_OEM_PA1","DOM_VK_WIN_OEM_PA2","DOM_VK_WIN_OEM_PA3","DOM_VK_WIN_OEM_RESET","DOM_VK_WIN_OEM_WSCTRL","DOM_VK_X","DOM_VK_XF86XK_ADD_FAVORITE","DOM_VK_XF86XK_APPLICATION_LEFT","DOM_VK_XF86XK_APPLICATION_RIGHT","DOM_VK_XF86XK_AUDIO_CYCLE_TRACK","DOM_VK_XF86XK_AUDIO_FORWARD","DOM_VK_XF86XK_AUDIO_LOWER_VOLUME","DOM_VK_XF86XK_AUDIO_MEDIA","DOM_VK_XF86XK_AUDIO_MUTE","DOM_VK_XF86XK_AUDIO_NEXT","DOM_VK_XF86XK_AUDIO_PAUSE","DOM_VK_XF86XK_AUDIO_PLAY","DOM_VK_XF86XK_AUDIO_PREV","DOM_VK_XF86XK_AUDIO_RAISE_VOLUME","DOM_VK_XF86XK_AUDIO_RANDOM_PLAY","DOM_VK_XF86XK_AUDIO_RECORD","DOM_VK_XF86XK_AUDIO_REPEAT","DOM_VK_XF86XK_AUDIO_REWIND","DOM_VK_XF86XK_AUDIO_STOP","DOM_VK_XF86XK_AWAY","DOM_VK_XF86XK_BACK","DOM_VK_XF86XK_BACK_FORWARD","DOM_VK_XF86XK_BATTERY","DOM_VK_XF86XK_BLUE","DOM_VK_XF86XK_BLUETOOTH","DOM_VK_XF86XK_BOOK","DOM_VK_XF86XK_BRIGHTNESS_ADJUST","DOM_VK_XF86XK_CALCULATOR","DOM_VK_XF86XK_CALENDAR","DOM_VK_XF86XK_CD","DOM_VK_XF86XK_CLOSE","DOM_VK_XF86XK_COMMUNITY","DOM_VK_XF86XK_CONTRAST_ADJUST","DOM_VK_XF86XK_COPY","DOM_VK_XF86XK_CUT","DOM_VK_XF86XK_CYCLE_ANGLE","DOM_VK_XF86XK_DISPLAY","DOM_VK_XF86XK_DOCUMENTS","DOM_VK_XF86XK_DOS","DOM_VK_XF86XK_EJECT","DOM_VK_XF86XK_EXCEL","DOM_VK_XF86XK_EXPLORER","DOM_VK_XF86XK_FAVORITES","DOM_VK_XF86XK_FINANCE","DOM_VK_XF86XK_FORWARD","DOM_VK_XF86XK_FRAME_BACK","DOM_VK_XF86XK_FRAME_FORWARD","DOM_VK_XF86XK_GAME","DOM_VK_XF86XK_GO","DOM_VK_XF86XK_GREEN","DOM_VK_XF86XK_HIBERNATE","DOM_VK_XF86XK_HISTORY","DOM_VK_XF86XK_HOME_PAGE","DOM_VK_XF86XK_HOT_LINKS","DOM_VK_XF86XK_I_TOUCH","DOM_VK_XF86XK_KBD_BRIGHTNESS_DOWN","DOM_VK_XF86XK_KBD_BRIGHTNESS_UP","DOM_VK_XF86XK_KBD_LIGHT_ON_OFF","DOM_VK_XF86XK_LAUNCH0","DOM_VK_XF86XK_LAUNCH1","DOM_VK_XF86XK_LAUNCH2","DOM_VK_XF86XK_LAUNCH3","DOM_VK_XF86XK_LAUNCH4","DOM_VK_XF86XK_LAUNCH5","DOM_VK_XF86XK_LAUNCH6","DOM_VK_XF86XK_LAUNCH7","DOM_VK_XF86XK_LAUNCH8","DOM_VK_XF86XK_LAUNCH9","DOM_VK_XF86XK_LAUNCH_A","DOM_VK_XF86XK_LAUNCH_B","DOM_VK_XF86XK_LAUNCH_C","DOM_VK_XF86XK_LAUNCH_D","DOM_VK_XF86XK_LAUNCH_E","DOM_VK_XF86XK_LAUNCH_F","DOM_VK_XF86XK_LIGHT_BULB","DOM_VK_XF86XK_LOG_OFF","DOM_VK_XF86XK_MAIL","DOM_VK_XF86XK_MAIL_FORWARD","DOM_VK_XF86XK_MARKET","DOM_VK_XF86XK_MEETING","DOM_VK_XF86XK_MEMO","DOM_VK_XF86XK_MENU_KB","DOM_VK_XF86XK_MENU_PB","DOM_VK_XF86XK_MESSENGER","DOM_VK_XF86XK_MON_BRIGHTNESS_DOWN","DOM_VK_XF86XK_MON_BRIGHTNESS_UP","DOM_VK_XF86XK_MUSIC","DOM_VK_XF86XK_MY_COMPUTER","DOM_VK_XF86XK_MY_SITES","DOM_VK_XF86XK_NEW","DOM_VK_XF86XK_NEWS","DOM_VK_XF86XK_OFFICE_HOME","DOM_VK_XF86XK_OPEN","DOM_VK_XF86XK_OPEN_URL","DOM_VK_XF86XK_OPTION","DOM_VK_XF86XK_PASTE","DOM_VK_XF86XK_PHONE","DOM_VK_XF86XK_PICTURES","DOM_VK_XF86XK_POWER_DOWN","DOM_VK_XF86XK_POWER_OFF","DOM_VK_XF86XK_RED","DOM_VK_XF86XK_REFRESH","DOM_VK_XF86XK_RELOAD","DOM_VK_XF86XK_REPLY","DOM_VK_XF86XK_ROCKER_DOWN","DOM_VK_XF86XK_ROCKER_ENTER","DOM_VK_XF86XK_ROCKER_UP","DOM_VK_XF86XK_ROTATE_WINDOWS","DOM_VK_XF86XK_ROTATION_KB","DOM_VK_XF86XK_ROTATION_PB","DOM_VK_XF86XK_SAVE","DOM_VK_XF86XK_SCREEN_SAVER","DOM_VK_XF86XK_SCROLL_CLICK","DOM_VK_XF86XK_SCROLL_DOWN","DOM_VK_XF86XK_SCROLL_UP","DOM_VK_XF86XK_SEARCH","DOM_VK_XF86XK_SEND","DOM_VK_XF86XK_SHOP","DOM_VK_XF86XK_SPELL","DOM_VK_XF86XK_SPLIT_SCREEN","DOM_VK_XF86XK_STANDBY","DOM_VK_XF86XK_START","DOM_VK_XF86XK_STOP","DOM_VK_XF86XK_SUBTITLE","DOM_VK_XF86XK_SUPPORT","DOM_VK_XF86XK_SUSPEND","DOM_VK_XF86XK_TASK_PANE","DOM_VK_XF86XK_TERMINAL","DOM_VK_XF86XK_TIME","DOM_VK_XF86XK_TOOLS","DOM_VK_XF86XK_TOP_MENU","DOM_VK_XF86XK_TO_DO_LIST","DOM_VK_XF86XK_TRAVEL","DOM_VK_XF86XK_USER1KB","DOM_VK_XF86XK_USER2KB","DOM_VK_XF86XK_USER_PB","DOM_VK_XF86XK_UWB","DOM_VK_XF86XK_VENDOR_HOME","DOM_VK_XF86XK_VIDEO","DOM_VK_XF86XK_VIEW","DOM_VK_XF86XK_WAKE_UP","DOM_VK_XF86XK_WEB_CAM","DOM_VK_XF86XK_WHEEL_BUTTON","DOM_VK_XF86XK_WLAN","DOM_VK_XF86XK_WORD","DOM_VK_XF86XK_WWW","DOM_VK_XF86XK_XFER","DOM_VK_XF86XK_YELLOW","DOM_VK_XF86XK_ZOOM_IN","DOM_VK_XF86XK_ZOOM_OUT","DOM_VK_Y","DOM_VK_Z","DOM_VK_ZOOM","DONE","DONT_CARE","DOWNLOADING","DRAGDROP","DRAW_BUFFER0","DRAW_BUFFER1","DRAW_BUFFER10","DRAW_BUFFER11","DRAW_BUFFER12","DRAW_BUFFER13","DRAW_BUFFER14","DRAW_BUFFER15","DRAW_BUFFER2","DRAW_BUFFER3","DRAW_BUFFER4","DRAW_BUFFER5","DRAW_BUFFER6","DRAW_BUFFER7","DRAW_BUFFER8","DRAW_BUFFER9","DRAW_FRAMEBUFFER","DRAW_FRAMEBUFFER_BINDING","DST_ALPHA","DST_COLOR","DYNAMIC_COPY","DYNAMIC_DRAW","DYNAMIC_READ","DataChannel","DataTransfer","DataTransferItem","DataTransferItemList","DataView","Date","DateTimeFormat","DecompressionStream","DelayNode","DeprecationReportBody","DesktopNotification","DesktopNotificationCenter","DeviceLightEvent","DeviceMotionEvent","DeviceMotionEventAcceleration","DeviceMotionEventRotationRate","DeviceOrientationEvent","DeviceProximityEvent","DeviceStorage","DeviceStorageChangeEvent","Directory","DisplayNames","Document","DocumentFragment","DocumentTimeline","DocumentType","DragEvent","DynamicsCompressorNode","E","ELEMENT_ARRAY_BUFFER","ELEMENT_ARRAY_BUFFER_BINDING","ELEMENT_NODE","EMPTY","ENCODING_ERR","ENDED","END_TO_END","END_TO_START","ENTITY_NODE","ENTITY_REFERENCE_NODE","EPSILON","EQUAL","EQUALPOWER","ERROR","EXPONENTIAL_DISTANCE","Element","ElementInternals","ElementQuery","EnterPictureInPictureEvent","Entity","EntityReference","Error","ErrorEvent","EvalError","Event","EventException","EventSource","EventTarget","External","FASTEST","FIDOSDK","FILTER_ACCEPT","FILTER_INTERRUPT","FILTER_REJECT","FILTER_SKIP","FINISHED_STATE","FIRST_ORDERED_NODE_TYPE","FLOAT","FLOAT_32_UNSIGNED_INT_24_8_REV","FLOAT_MAT2","FLOAT_MAT2x3","FLOAT_MAT2x4","FLOAT_MAT3","FLOAT_MAT3x2","FLOAT_MAT3x4","FLOAT_MAT4","FLOAT_MAT4x2","FLOAT_MAT4x3","FLOAT_VEC2","FLOAT_VEC3","FLOAT_VEC4","FOCUS","FONT_FACE_RULE","FONT_FEATURE_VALUES_RULE","FRAGMENT_SHADER","FRAGMENT_SHADER_DERIVATIVE_HINT","FRAGMENT_SHADER_DERIVATIVE_HINT_OES","FRAMEBUFFER","FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE","FRAMEBUFFER_ATTACHMENT_BLUE_SIZE","FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING","FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE","FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE","FRAMEBUFFER_ATTACHMENT_GREEN_SIZE","FRAMEBUFFER_ATTACHMENT_OBJECT_NAME","FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE","FRAMEBUFFER_ATTACHMENT_RED_SIZE","FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE","FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE","FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER","FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL","FRAMEBUFFER_BINDING","FRAMEBUFFER_COMPLETE","FRAMEBUFFER_DEFAULT","FRAMEBUFFER_INCOMPLETE_ATTACHMENT","FRAMEBUFFER_INCOMPLETE_DIMENSIONS","FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT","FRAMEBUFFER_INCOMPLETE_MULTISAMPLE","FRAMEBUFFER_UNSUPPORTED","FRONT","FRONT_AND_BACK","FRONT_FACE","FUNC_ADD","FUNC_REVERSE_SUBTRACT","FUNC_SUBTRACT","FeaturePolicy","FeaturePolicyViolationReportBody","FederatedCredential","Feed","FeedEntry","File","FileError","FileList","FileReader","FileSystem","FileSystemDirectoryEntry","FileSystemDirectoryReader","FileSystemEntry","FileSystemFileEntry","FinalizationRegistry","FindInPage","Float32Array","Float64Array","FocusEvent","FontFace","FontFaceSet","FontFaceSetLoadEvent","FormData","FormDataEvent","FragmentDirective","Function","GENERATE_MIPMAP_HINT","GEQUAL","GREATER","GREEN_BITS","GainNode","Gamepad","GamepadAxisMoveEvent","GamepadButton","GamepadButtonEvent","GamepadEvent","GamepadHapticActuator","GamepadPose","Geolocation","GeolocationCoordinates","GeolocationPosition","GeolocationPositionError","GestureEvent","Global","Gyroscope","HALF_FLOAT","HAVE_CURRENT_DATA","HAVE_ENOUGH_DATA","HAVE_FUTURE_DATA","HAVE_METADATA","HAVE_NOTHING","HEADERS_RECEIVED","HIDDEN","HIERARCHY_REQUEST_ERR","HIGHPASS","HIGHSHELF","HIGH_FLOAT","HIGH_INT","HORIZONTAL","HORIZONTAL_AXIS","HRTF","HTMLAllCollection","HTMLAnchorElement","HTMLAppletElement","HTMLAreaElement","HTMLAudioElement","HTMLBRElement","HTMLBaseElement","HTMLBaseFontElement","HTMLBlockquoteElement","HTMLBodyElement","HTMLButtonElement","HTMLCanvasElement","HTMLCollection","HTMLCommandElement","HTMLContentElement","HTMLDListElement","HTMLDataElement","HTMLDataListElement","HTMLDetailsElement","HTMLDialogElement","HTMLDirectoryElement","HTMLDivElement","HTMLDocument","HTMLElement","HTMLEmbedElement","HTMLFieldSetElement","HTMLFontElement","HTMLFormControlsCollection","HTMLFormElement","HTMLFrameElement","HTMLFrameSetElement","HTMLHRElement","HTMLHeadElement","HTMLHeadingElement","HTMLHtmlElement","HTMLIFrameElement","HTMLImageElement","HTMLInputElement","HTMLIsIndexElement","HTMLKeygenElement","HTMLLIElement","HTMLLabelElement","HTMLLegendElement","HTMLLinkElement","HTMLMapElement","HTMLMarqueeElement","HTMLMediaElement","HTMLMenuElement","HTMLMenuItemElement","HTMLMetaElement","HTMLMeterElement","HTMLModElement","HTMLOListElement","HTMLObjectElement","HTMLOptGroupElement","HTMLOptionElement","HTMLOptionsCollection","HTMLOutputElement","HTMLParagraphElement","HTMLParamElement","HTMLPictureElement","HTMLPreElement","HTMLProgressElement","HTMLPropertiesCollection","HTMLQuoteElement","HTMLScriptElement","HTMLSelectElement","HTMLShadowElement","HTMLSlotElement","HTMLSourceElement","HTMLSpanElement","HTMLStyleElement","HTMLTableCaptionElement","HTMLTableCellElement","HTMLTableColElement","HTMLTableElement","HTMLTableRowElement","HTMLTableSectionElement","HTMLTemplateElement","HTMLTextAreaElement","HTMLTimeElement","HTMLTitleElement","HTMLTrackElement","HTMLUListElement","HTMLUnknownElement","HTMLVideoElement","HashChangeEvent","Headers","History","Hz","ICE_CHECKING","ICE_CLOSED","ICE_COMPLETED","ICE_CONNECTED","ICE_FAILED","ICE_GATHERING","ICE_WAITING","IDBCursor","IDBCursorWithValue","IDBDatabase","IDBDatabaseException","IDBFactory","IDBFileHandle","IDBFileRequest","IDBIndex","IDBKeyRange","IDBMutableFile","IDBObjectStore","IDBOpenDBRequest","IDBRequest","IDBTransaction","IDBVersionChangeEvent","IDLE","IIRFilterNode","IMPLEMENTATION_COLOR_READ_FORMAT","IMPLEMENTATION_COLOR_READ_TYPE","IMPORT_RULE","INCR","INCR_WRAP","INDEX_SIZE_ERR","INT","INTERLEAVED_ATTRIBS","INT_2_10_10_10_REV","INT_SAMPLER_2D","INT_SAMPLER_2D_ARRAY","INT_SAMPLER_3D","INT_SAMPLER_CUBE","INT_VEC2","INT_VEC3","INT_VEC4","INUSE_ATTRIBUTE_ERR","INVALID_ACCESS_ERR","INVALID_CHARACTER_ERR","INVALID_ENUM","INVALID_EXPRESSION_ERR","INVALID_FRAMEBUFFER_OPERATION","INVALID_INDEX","INVALID_MODIFICATION_ERR","INVALID_NODE_TYPE_ERR","INVALID_OPERATION","INVALID_STATE_ERR","INVALID_VALUE","INVERSE_DISTANCE","INVERT","IceCandidate","IdleDeadline","Image","ImageBitmap","ImageBitmapRenderingContext","ImageCapture","ImageData","Infinity","InputDeviceCapabilities","InputDeviceInfo","InputEvent","InputMethodContext","InstallTrigger","InstallTriggerImpl","Instance","Int16Array","Int32Array","Int8Array","Intent","InternalError","IntersectionObserver","IntersectionObserverEntry","Intl","IsSearchProviderInstalled","Iterator","JSON","KEEP","KEYDOWN","KEYFRAMES_RULE","KEYFRAME_RULE","KEYPRESS","KEYUP","KeyEvent","Keyboard","KeyboardEvent","KeyboardLayoutMap","KeyframeEffect","LENGTHADJUST_SPACING","LENGTHADJUST_SPACINGANDGLYPHS","LENGTHADJUST_UNKNOWN","LEQUAL","LESS","LINEAR","LINEAR_DISTANCE","LINEAR_MIPMAP_LINEAR","LINEAR_MIPMAP_NEAREST","LINES","LINE_LOOP","LINE_STRIP","LINE_WIDTH","LINK_STATUS","LIVE","LN10","LN2","LOADED","LOADING","LOG10E","LOG2E","LOWPASS","LOWSHELF","LOW_FLOAT","LOW_INT","LSException","LSParserFilter","LUMINANCE","LUMINANCE_ALPHA","LargestContentfulPaint","LayoutShift","LayoutShiftAttribution","LinearAccelerationSensor","LinkError","ListFormat","LocalMediaStream","Locale","Location","Lock","LockManager","MAX","MAX_3D_TEXTURE_SIZE","MAX_ARRAY_TEXTURE_LAYERS","MAX_CLIENT_WAIT_TIMEOUT_WEBGL","MAX_COLOR_ATTACHMENTS","MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_COMBINED_UNIFORM_BLOCKS","MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_DRAW_BUFFERS","MAX_ELEMENTS_INDICES","MAX_ELEMENTS_VERTICES","MAX_ELEMENT_INDEX","MAX_FRAGMENT_INPUT_COMPONENTS","MAX_FRAGMENT_UNIFORM_BLOCKS","MAX_FRAGMENT_UNIFORM_COMPONENTS","MAX_FRAGMENT_UNIFORM_VECTORS","MAX_PROGRAM_TEXEL_OFFSET","MAX_RENDERBUFFER_SIZE","MAX_SAFE_INTEGER","MAX_SAMPLES","MAX_SERVER_WAIT_TIMEOUT","MAX_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_LOD_BIAS","MAX_TEXTURE_MAX_ANISOTROPY_EXT","MAX_TEXTURE_SIZE","MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS","MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS","MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS","MAX_UNIFORM_BLOCK_SIZE","MAX_UNIFORM_BUFFER_BINDINGS","MAX_VALUE","MAX_VARYING_COMPONENTS","MAX_VARYING_VECTORS","MAX_VERTEX_ATTRIBS","MAX_VERTEX_OUTPUT_COMPONENTS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_BLOCKS","MAX_VERTEX_UNIFORM_COMPONENTS","MAX_VERTEX_UNIFORM_VECTORS","MAX_VIEWPORT_DIMS","MEDIA_ERR_ABORTED","MEDIA_ERR_DECODE","MEDIA_ERR_ENCRYPTED","MEDIA_ERR_NETWORK","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_KEYERR_CLIENT","MEDIA_KEYERR_DOMAIN","MEDIA_KEYERR_HARDWARECHANGE","MEDIA_KEYERR_OUTPUT","MEDIA_KEYERR_SERVICE","MEDIA_KEYERR_UNKNOWN","MEDIA_RULE","MEDIUM_FLOAT","MEDIUM_INT","META_MASK","MIDIAccess","MIDIConnectionEvent","MIDIInput","MIDIInputMap","MIDIMessageEvent","MIDIOutput","MIDIOutputMap","MIDIPort","MIN","MIN_PROGRAM_TEXEL_OFFSET","MIN_SAFE_INTEGER","MIN_VALUE","MIRRORED_REPEAT","MODE_ASYNCHRONOUS","MODE_SYNCHRONOUS","MODIFICATION","MOUSEDOWN","MOUSEDRAG","MOUSEMOVE","MOUSEOUT","MOUSEOVER","MOUSEUP","MOZ_KEYFRAMES_RULE","MOZ_KEYFRAME_RULE","MOZ_SOURCE_CURSOR","MOZ_SOURCE_ERASER","MOZ_SOURCE_KEYBOARD","MOZ_SOURCE_MOUSE","MOZ_SOURCE_PEN","MOZ_SOURCE_TOUCH","MOZ_SOURCE_UNKNOWN","MSGESTURE_FLAG_BEGIN","MSGESTURE_FLAG_CANCEL","MSGESTURE_FLAG_END","MSGESTURE_FLAG_INERTIA","MSGESTURE_FLAG_NONE","MSPOINTER_TYPE_MOUSE","MSPOINTER_TYPE_PEN","MSPOINTER_TYPE_TOUCH","MS_ASYNC_CALLBACK_STATUS_ASSIGN_DELEGATE","MS_ASYNC_CALLBACK_STATUS_CANCEL","MS_ASYNC_CALLBACK_STATUS_CHOOSEANY","MS_ASYNC_CALLBACK_STATUS_ERROR","MS_ASYNC_CALLBACK_STATUS_JOIN","MS_ASYNC_OP_STATUS_CANCELED","MS_ASYNC_OP_STATUS_ERROR","MS_ASYNC_OP_STATUS_SUCCESS","MS_MANIPULATION_STATE_ACTIVE","MS_MANIPULATION_STATE_CANCELLED","MS_MANIPULATION_STATE_COMMITTED","MS_MANIPULATION_STATE_DRAGGING","MS_MANIPULATION_STATE_INERTIA","MS_MANIPULATION_STATE_PRESELECT","MS_MANIPULATION_STATE_SELECTING","MS_MANIPULATION_STATE_STOPPED","MS_MEDIA_ERR_ENCRYPTED","MS_MEDIA_KEYERR_CLIENT","MS_MEDIA_KEYERR_DOMAIN","MS_MEDIA_KEYERR_HARDWARECHANGE","MS_MEDIA_KEYERR_OUTPUT","MS_MEDIA_KEYERR_SERVICE","MS_MEDIA_KEYERR_UNKNOWN","Map","Math","MathMLElement","MediaCapabilities","MediaCapabilitiesInfo","MediaController","MediaDeviceInfo","MediaDevices","MediaElementAudioSourceNode","MediaEncryptedEvent","MediaError","MediaKeyError","MediaKeyEvent","MediaKeyMessageEvent","MediaKeyNeededEvent","MediaKeySession","MediaKeyStatusMap","MediaKeySystemAccess","MediaKeys","MediaList","MediaMetadata","MediaQueryList","MediaQueryListEvent","MediaRecorder","MediaRecorderErrorEvent","MediaSession","MediaSettingsRange","MediaSource","MediaStream","MediaStreamAudioDestinationNode","MediaStreamAudioSourceNode","MediaStreamEvent","MediaStreamTrack","MediaStreamTrackAudioSourceNode","MediaStreamTrackEvent","Memory","MessageChannel","MessageEvent","MessagePort","Methods","MimeType","MimeTypeArray","Module","MouseEvent","MouseScrollEvent","MozAnimation","MozAnimationDelay","MozAnimationDirection","MozAnimationDuration","MozAnimationFillMode","MozAnimationIterationCount","MozAnimationName","MozAnimationPlayState","MozAnimationTimingFunction","MozAppearance","MozBackfaceVisibility","MozBinding","MozBorderBottomColors","MozBorderEnd","MozBorderEndColor","MozBorderEndStyle","MozBorderEndWidth","MozBorderImage","MozBorderLeftColors","MozBorderRightColors","MozBorderStart","MozBorderStartColor","MozBorderStartStyle","MozBorderStartWidth","MozBorderTopColors","MozBoxAlign","MozBoxDirection","MozBoxFlex","MozBoxOrdinalGroup","MozBoxOrient","MozBoxPack","MozBoxSizing","MozCSSKeyframeRule","MozCSSKeyframesRule","MozColumnCount","MozColumnFill","MozColumnGap","MozColumnRule","MozColumnRuleColor","MozColumnRuleStyle","MozColumnRuleWidth","MozColumnWidth","MozColumns","MozContactChangeEvent","MozFloatEdge","MozFontFeatureSettings","MozFontLanguageOverride","MozForceBrokenImageIcon","MozHyphens","MozImageRegion","MozMarginEnd","MozMarginStart","MozMmsEvent","MozMmsMessage","MozMobileMessageThread","MozOSXFontSmoothing","MozOrient","MozOsxFontSmoothing","MozOutlineRadius","MozOutlineRadiusBottomleft","MozOutlineRadiusBottomright","MozOutlineRadiusTopleft","MozOutlineRadiusTopright","MozPaddingEnd","MozPaddingStart","MozPerspective","MozPerspectiveOrigin","MozPowerManager","MozSettingsEvent","MozSmsEvent","MozSmsMessage","MozStackSizing","MozTabSize","MozTextAlignLast","MozTextDecorationColor","MozTextDecorationLine","MozTextDecorationStyle","MozTextSizeAdjust","MozTransform","MozTransformOrigin","MozTransformStyle","MozTransition","MozTransitionDelay","MozTransitionDuration","MozTransitionProperty","MozTransitionTimingFunction","MozUserFocus","MozUserInput","MozUserModify","MozUserSelect","MozWindowDragging","MozWindowShadow","MutationEvent","MutationObserver","MutationRecord","NAMESPACE_ERR","NAMESPACE_RULE","NEAREST","NEAREST_MIPMAP_LINEAR","NEAREST_MIPMAP_NEAREST","NEGATIVE_INFINITY","NETWORK_EMPTY","NETWORK_ERR","NETWORK_IDLE","NETWORK_LOADED","NETWORK_LOADING","NETWORK_NO_SOURCE","NEVER","NEW","NEXT","NEXT_NO_DUPLICATE","NICEST","NODE_AFTER","NODE_BEFORE","NODE_BEFORE_AND_AFTER","NODE_INSIDE","NONE","NON_TRANSIENT_ERR","NOTATION_NODE","NOTCH","NOTEQUAL","NOT_ALLOWED_ERR","NOT_FOUND_ERR","NOT_READABLE_ERR","NOT_SUPPORTED_ERR","NO_DATA_ALLOWED_ERR","NO_ERR","NO_ERROR","NO_MODIFICATION_ALLOWED_ERR","NUMBER_TYPE","NUM_COMPRESSED_TEXTURE_FORMATS","NaN","NamedNodeMap","NavigationPreloadManager","Navigator","NearbyLinks","NetworkInformation","Node","NodeFilter","NodeIterator","NodeList","Notation","Notification","NotifyPaintEvent","Number","NumberFormat","OBJECT_TYPE","OBSOLETE","OK","ONE","ONE_MINUS_CONSTANT_ALPHA","ONE_MINUS_CONSTANT_COLOR","ONE_MINUS_DST_ALPHA","ONE_MINUS_DST_COLOR","ONE_MINUS_SRC_ALPHA","ONE_MINUS_SRC_COLOR","OPEN","OPENED","OPENING","ORDERED_NODE_ITERATOR_TYPE","ORDERED_NODE_SNAPSHOT_TYPE","OTHER_ERROR","OUT_OF_MEMORY","Object","OfflineAudioCompletionEvent","OfflineAudioContext","OfflineResourceList","OffscreenCanvas","OffscreenCanvasRenderingContext2D","Option","OrientationSensor","OscillatorNode","OverconstrainedError","OverflowEvent","PACK_ALIGNMENT","PACK_ROW_LENGTH","PACK_SKIP_PIXELS","PACK_SKIP_ROWS","PAGE_RULE","PARSE_ERR","PATHSEG_ARC_ABS","PATHSEG_ARC_REL","PATHSEG_CLOSEPATH","PATHSEG_CURVETO_CUBIC_ABS","PATHSEG_CURVETO_CUBIC_REL","PATHSEG_CURVETO_CUBIC_SMOOTH_ABS","PATHSEG_CURVETO_CUBIC_SMOOTH_REL","PATHSEG_CURVETO_QUADRATIC_ABS","PATHSEG_CURVETO_QUADRATIC_REL","PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS","PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL","PATHSEG_LINETO_ABS","PATHSEG_LINETO_HORIZONTAL_ABS","PATHSEG_LINETO_HORIZONTAL_REL","PATHSEG_LINETO_REL","PATHSEG_LINETO_VERTICAL_ABS","PATHSEG_LINETO_VERTICAL_REL","PATHSEG_MOVETO_ABS","PATHSEG_MOVETO_REL","PATHSEG_UNKNOWN","PATH_EXISTS_ERR","PEAKING","PERMISSION_DENIED","PERSISTENT","PI","PIXEL_PACK_BUFFER","PIXEL_PACK_BUFFER_BINDING","PIXEL_UNPACK_BUFFER","PIXEL_UNPACK_BUFFER_BINDING","PLAYING_STATE","POINTS","POLYGON_OFFSET_FACTOR","POLYGON_OFFSET_FILL","POLYGON_OFFSET_UNITS","POSITION_UNAVAILABLE","POSITIVE_INFINITY","PREV","PREV_NO_DUPLICATE","PROCESSING_INSTRUCTION_NODE","PageChangeEvent","PageTransitionEvent","PaintRequest","PaintRequestList","PannerNode","PasswordCredential","Path2D","PaymentAddress","PaymentInstruments","PaymentManager","PaymentMethodChangeEvent","PaymentRequest","PaymentRequestUpdateEvent","PaymentResponse","Performance","PerformanceElementTiming","PerformanceEntry","PerformanceEventTiming","PerformanceLongTaskTiming","PerformanceMark","PerformanceMeasure","PerformanceNavigation","PerformanceNavigationTiming","PerformanceObserver","PerformanceObserverEntryList","PerformancePaintTiming","PerformanceResourceTiming","PerformanceServerTiming","PerformanceTiming","PeriodicSyncManager","PeriodicWave","PermissionStatus","Permissions","PhotoCapabilities","PictureInPictureWindow","Plugin","PluginArray","PluralRules","PointerEvent","PopStateEvent","PopupBlockedEvent","Presentation","PresentationAvailability","PresentationConnection","PresentationConnectionAvailableEvent","PresentationConnectionCloseEvent","PresentationConnectionList","PresentationReceiver","PresentationRequest","ProcessingInstruction","ProgressEvent","Promise","PromiseRejectionEvent","PropertyNodeList","Proxy","PublicKeyCredential","PushManager","PushSubscription","PushSubscriptionOptions","Q","QUERY_RESULT","QUERY_RESULT_AVAILABLE","QUOTA_ERR","QUOTA_EXCEEDED_ERR","QueryInterface","R11F_G11F_B10F","R16F","R16I","R16UI","R32F","R32I","R32UI","R8","R8I","R8UI","R8_SNORM","RASTERIZER_DISCARD","READ_BUFFER","READ_FRAMEBUFFER","READ_FRAMEBUFFER_BINDING","READ_ONLY","READ_ONLY_ERR","READ_WRITE","RED","RED_BITS","RED_INTEGER","REMOVAL","RENDERBUFFER","RENDERBUFFER_ALPHA_SIZE","RENDERBUFFER_BINDING","RENDERBUFFER_BLUE_SIZE","RENDERBUFFER_DEPTH_SIZE","RENDERBUFFER_GREEN_SIZE","RENDERBUFFER_HEIGHT","RENDERBUFFER_INTERNAL_FORMAT","RENDERBUFFER_RED_SIZE","RENDERBUFFER_SAMPLES","RENDERBUFFER_STENCIL_SIZE","RENDERBUFFER_WIDTH","RENDERER","RENDERING_INTENT_ABSOLUTE_COLORIMETRIC","RENDERING_INTENT_AUTO","RENDERING_INTENT_PERCEPTUAL","RENDERING_INTENT_RELATIVE_COLORIMETRIC","RENDERING_INTENT_SATURATION","RENDERING_INTENT_UNKNOWN","REPEAT","REPLACE","RG","RG16F","RG16I","RG16UI","RG32F","RG32I","RG32UI","RG8","RG8I","RG8UI","RG8_SNORM","RGB","RGB10_A2","RGB10_A2UI","RGB16F","RGB16I","RGB16UI","RGB32F","RGB32I","RGB32UI","RGB565","RGB5_A1","RGB8","RGB8I","RGB8UI","RGB8_SNORM","RGB9_E5","RGBA","RGBA16F","RGBA16I","RGBA16UI","RGBA32F","RGBA32I","RGBA32UI","RGBA4","RGBA8","RGBA8I","RGBA8UI","RGBA8_SNORM","RGBA_INTEGER","RGBColor","RGB_INTEGER","RG_INTEGER","ROTATION_CLOCKWISE","ROTATION_COUNTERCLOCKWISE","RTCCertificate","RTCDTMFSender","RTCDTMFToneChangeEvent","RTCDataChannel","RTCDataChannelEvent","RTCDtlsTransport","RTCError","RTCErrorEvent","RTCIceCandidate","RTCIceTransport","RTCPeerConnection","RTCPeerConnectionIceErrorEvent","RTCPeerConnectionIceEvent","RTCRtpReceiver","RTCRtpSender","RTCRtpTransceiver","RTCSctpTransport","RTCSessionDescription","RTCStatsReport","RTCTrackEvent","RadioNodeList","Range","RangeError","RangeException","ReadableStream","ReadableStreamDefaultReader","RecordErrorEvent","Rect","ReferenceError","Reflect","RegExp","RelativeOrientationSensor","RelativeTimeFormat","RemotePlayback","Report","ReportBody","ReportingObserver","Request","ResizeObserver","ResizeObserverEntry","ResizeObserverSize","Response","RuntimeError","SAMPLER_2D","SAMPLER_2D_ARRAY","SAMPLER_2D_ARRAY_SHADOW","SAMPLER_2D_SHADOW","SAMPLER_3D","SAMPLER_BINDING","SAMPLER_CUBE","SAMPLER_CUBE_SHADOW","SAMPLES","SAMPLE_ALPHA_TO_COVERAGE","SAMPLE_BUFFERS","SAMPLE_COVERAGE","SAMPLE_COVERAGE_INVERT","SAMPLE_COVERAGE_VALUE","SAWTOOTH","SCHEDULED_STATE","SCISSOR_BOX","SCISSOR_TEST","SCROLL_PAGE_DOWN","SCROLL_PAGE_UP","SDP_ANSWER","SDP_OFFER","SDP_PRANSWER","SECURITY_ERR","SELECT","SEPARATE_ATTRIBS","SERIALIZE_ERR","SEVERITY_ERROR","SEVERITY_FATAL_ERROR","SEVERITY_WARNING","SHADER_COMPILER","SHADER_TYPE","SHADING_LANGUAGE_VERSION","SHIFT_MASK","SHORT","SHOWING","SHOW_ALL","SHOW_ATTRIBUTE","SHOW_CDATA_SECTION","SHOW_COMMENT","SHOW_DOCUMENT","SHOW_DOCUMENT_FRAGMENT","SHOW_DOCUMENT_TYPE","SHOW_ELEMENT","SHOW_ENTITY","SHOW_ENTITY_REFERENCE","SHOW_NOTATION","SHOW_PROCESSING_INSTRUCTION","SHOW_TEXT","SIGNALED","SIGNED_NORMALIZED","SINE","SOUNDFIELD","SQLException","SQRT1_2","SQRT2","SQUARE","SRC_ALPHA","SRC_ALPHA_SATURATE","SRC_COLOR","SRGB","SRGB8","SRGB8_ALPHA8","START_TO_END","START_TO_START","STATIC_COPY","STATIC_DRAW","STATIC_READ","STENCIL","STENCIL_ATTACHMENT","STENCIL_BACK_FAIL","STENCIL_BACK_FUNC","STENCIL_BACK_PASS_DEPTH_FAIL","STENCIL_BACK_PASS_DEPTH_PASS","STENCIL_BACK_REF","STENCIL_BACK_VALUE_MASK","STENCIL_BACK_WRITEMASK","STENCIL_BITS","STENCIL_BUFFER_BIT","STENCIL_CLEAR_VALUE","STENCIL_FAIL","STENCIL_FUNC","STENCIL_INDEX","STENCIL_INDEX8","STENCIL_PASS_DEPTH_FAIL","STENCIL_PASS_DEPTH_PASS","STENCIL_REF","STENCIL_TEST","STENCIL_VALUE_MASK","STENCIL_WRITEMASK","STREAM_COPY","STREAM_DRAW","STREAM_READ","STRING_TYPE","STYLE_RULE","SUBPIXEL_BITS","SUPPORTS_RULE","SVGAElement","SVGAltGlyphDefElement","SVGAltGlyphElement","SVGAltGlyphItemElement","SVGAngle","SVGAnimateColorElement","SVGAnimateElement","SVGAnimateMotionElement","SVGAnimateTransformElement","SVGAnimatedAngle","SVGAnimatedBoolean","SVGAnimatedEnumeration","SVGAnimatedInteger","SVGAnimatedLength","SVGAnimatedLengthList","SVGAnimatedNumber","SVGAnimatedNumberList","SVGAnimatedPreserveAspectRatio","SVGAnimatedRect","SVGAnimatedString","SVGAnimatedTransformList","SVGAnimationElement","SVGCircleElement","SVGClipPathElement","SVGColor","SVGComponentTransferFunctionElement","SVGCursorElement","SVGDefsElement","SVGDescElement","SVGDiscardElement","SVGDocument","SVGElement","SVGElementInstance","SVGElementInstanceList","SVGEllipseElement","SVGException","SVGFEBlendElement","SVGFEColorMatrixElement","SVGFEComponentTransferElement","SVGFECompositeElement","SVGFEConvolveMatrixElement","SVGFEDiffuseLightingElement","SVGFEDisplacementMapElement","SVGFEDistantLightElement","SVGFEDropShadowElement","SVGFEFloodElement","SVGFEFuncAElement","SVGFEFuncBElement","SVGFEFuncGElement","SVGFEFuncRElement","SVGFEGaussianBlurElement","SVGFEImageElement","SVGFEMergeElement","SVGFEMergeNodeElement","SVGFEMorphologyElement","SVGFEOffsetElement","SVGFEPointLightElement","SVGFESpecularLightingElement","SVGFESpotLightElement","SVGFETileElement","SVGFETurbulenceElement","SVGFilterElement","SVGFontElement","SVGFontFaceElement","SVGFontFaceFormatElement","SVGFontFaceNameElement","SVGFontFaceSrcElement","SVGFontFaceUriElement","SVGForeignObjectElement","SVGGElement","SVGGeometryElement","SVGGlyphElement","SVGGlyphRefElement","SVGGradientElement","SVGGraphicsElement","SVGHKernElement","SVGImageElement","SVGLength","SVGLengthList","SVGLineElement","SVGLinearGradientElement","SVGMPathElement","SVGMarkerElement","SVGMaskElement","SVGMatrix","SVGMetadataElement","SVGMissingGlyphElement","SVGNumber","SVGNumberList","SVGPaint","SVGPathElement","SVGPathSeg","SVGPathSegArcAbs","SVGPathSegArcRel","SVGPathSegClosePath","SVGPathSegCurvetoCubicAbs","SVGPathSegCurvetoCubicRel","SVGPathSegCurvetoCubicSmoothAbs","SVGPathSegCurvetoCubicSmoothRel","SVGPathSegCurvetoQuadraticAbs","SVGPathSegCurvetoQuadraticRel","SVGPathSegCurvetoQuadraticSmoothAbs","SVGPathSegCurvetoQuadraticSmoothRel","SVGPathSegLinetoAbs","SVGPathSegLinetoHorizontalAbs","SVGPathSegLinetoHorizontalRel","SVGPathSegLinetoRel","SVGPathSegLinetoVerticalAbs","SVGPathSegLinetoVerticalRel","SVGPathSegList","SVGPathSegMovetoAbs","SVGPathSegMovetoRel","SVGPatternElement","SVGPoint","SVGPointList","SVGPolygonElement","SVGPolylineElement","SVGPreserveAspectRatio","SVGRadialGradientElement","SVGRect","SVGRectElement","SVGRenderingIntent","SVGSVGElement","SVGScriptElement","SVGSetElement","SVGStopElement","SVGStringList","SVGStyleElement","SVGSwitchElement","SVGSymbolElement","SVGTRefElement","SVGTSpanElement","SVGTextContentElement","SVGTextElement","SVGTextPathElement","SVGTextPositioningElement","SVGTitleElement","SVGTransform","SVGTransformList","SVGUnitTypes","SVGUseElement","SVGVKernElement","SVGViewElement","SVGViewSpec","SVGZoomAndPan","SVGZoomEvent","SVG_ANGLETYPE_DEG","SVG_ANGLETYPE_GRAD","SVG_ANGLETYPE_RAD","SVG_ANGLETYPE_UNKNOWN","SVG_ANGLETYPE_UNSPECIFIED","SVG_CHANNEL_A","SVG_CHANNEL_B","SVG_CHANNEL_G","SVG_CHANNEL_R","SVG_CHANNEL_UNKNOWN","SVG_COLORTYPE_CURRENTCOLOR","SVG_COLORTYPE_RGBCOLOR","SVG_COLORTYPE_RGBCOLOR_ICCCOLOR","SVG_COLORTYPE_UNKNOWN","SVG_EDGEMODE_DUPLICATE","SVG_EDGEMODE_NONE","SVG_EDGEMODE_UNKNOWN","SVG_EDGEMODE_WRAP","SVG_FEBLEND_MODE_COLOR","SVG_FEBLEND_MODE_COLOR_BURN","SVG_FEBLEND_MODE_COLOR_DODGE","SVG_FEBLEND_MODE_DARKEN","SVG_FEBLEND_MODE_DIFFERENCE","SVG_FEBLEND_MODE_EXCLUSION","SVG_FEBLEND_MODE_HARD_LIGHT","SVG_FEBLEND_MODE_HUE","SVG_FEBLEND_MODE_LIGHTEN","SVG_FEBLEND_MODE_LUMINOSITY","SVG_FEBLEND_MODE_MULTIPLY","SVG_FEBLEND_MODE_NORMAL","SVG_FEBLEND_MODE_OVERLAY","SVG_FEBLEND_MODE_SATURATION","SVG_FEBLEND_MODE_SCREEN","SVG_FEBLEND_MODE_SOFT_LIGHT","SVG_FEBLEND_MODE_UNKNOWN","SVG_FECOLORMATRIX_TYPE_HUEROTATE","SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA","SVG_FECOLORMATRIX_TYPE_MATRIX","SVG_FECOLORMATRIX_TYPE_SATURATE","SVG_FECOLORMATRIX_TYPE_UNKNOWN","SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE","SVG_FECOMPONENTTRANSFER_TYPE_GAMMA","SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY","SVG_FECOMPONENTTRANSFER_TYPE_LINEAR","SVG_FECOMPONENTTRANSFER_TYPE_TABLE","SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_ARITHMETIC","SVG_FECOMPOSITE_OPERATOR_ATOP","SVG_FECOMPOSITE_OPERATOR_IN","SVG_FECOMPOSITE_OPERATOR_OUT","SVG_FECOMPOSITE_OPERATOR_OVER","SVG_FECOMPOSITE_OPERATOR_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_XOR","SVG_INVALID_VALUE_ERR","SVG_LENGTHTYPE_CM","SVG_LENGTHTYPE_EMS","SVG_LENGTHTYPE_EXS","SVG_LENGTHTYPE_IN","SVG_LENGTHTYPE_MM","SVG_LENGTHTYPE_NUMBER","SVG_LENGTHTYPE_PC","SVG_LENGTHTYPE_PERCENTAGE","SVG_LENGTHTYPE_PT","SVG_LENGTHTYPE_PX","SVG_LENGTHTYPE_UNKNOWN","SVG_MARKERUNITS_STROKEWIDTH","SVG_MARKERUNITS_UNKNOWN","SVG_MARKERUNITS_USERSPACEONUSE","SVG_MARKER_ORIENT_ANGLE","SVG_MARKER_ORIENT_AUTO","SVG_MARKER_ORIENT_UNKNOWN","SVG_MASKTYPE_ALPHA","SVG_MASKTYPE_LUMINANCE","SVG_MATRIX_NOT_INVERTABLE","SVG_MEETORSLICE_MEET","SVG_MEETORSLICE_SLICE","SVG_MEETORSLICE_UNKNOWN","SVG_MORPHOLOGY_OPERATOR_DILATE","SVG_MORPHOLOGY_OPERATOR_ERODE","SVG_MORPHOLOGY_OPERATOR_UNKNOWN","SVG_PAINTTYPE_CURRENTCOLOR","SVG_PAINTTYPE_NONE","SVG_PAINTTYPE_RGBCOLOR","SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR","SVG_PAINTTYPE_UNKNOWN","SVG_PAINTTYPE_URI","SVG_PAINTTYPE_URI_CURRENTCOLOR","SVG_PAINTTYPE_URI_NONE","SVG_PAINTTYPE_URI_RGBCOLOR","SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR","SVG_PRESERVEASPECTRATIO_NONE","SVG_PRESERVEASPECTRATIO_UNKNOWN","SVG_PRESERVEASPECTRATIO_XMAXYMAX","SVG_PRESERVEASPECTRATIO_XMAXYMID","SVG_PRESERVEASPECTRATIO_XMAXYMIN","SVG_PRESERVEASPECTRATIO_XMIDYMAX","SVG_PRESERVEASPECTRATIO_XMIDYMID","SVG_PRESERVEASPECTRATIO_XMIDYMIN","SVG_PRESERVEASPECTRATIO_XMINYMAX","SVG_PRESERVEASPECTRATIO_XMINYMID","SVG_PRESERVEASPECTRATIO_XMINYMIN","SVG_SPREADMETHOD_PAD","SVG_SPREADMETHOD_REFLECT","SVG_SPREADMETHOD_REPEAT","SVG_SPREADMETHOD_UNKNOWN","SVG_STITCHTYPE_NOSTITCH","SVG_STITCHTYPE_STITCH","SVG_STITCHTYPE_UNKNOWN","SVG_TRANSFORM_MATRIX","SVG_TRANSFORM_ROTATE","SVG_TRANSFORM_SCALE","SVG_TRANSFORM_SKEWX","SVG_TRANSFORM_SKEWY","SVG_TRANSFORM_TRANSLATE","SVG_TRANSFORM_UNKNOWN","SVG_TURBULENCE_TYPE_FRACTALNOISE","SVG_TURBULENCE_TYPE_TURBULENCE","SVG_TURBULENCE_TYPE_UNKNOWN","SVG_UNIT_TYPE_OBJECTBOUNDINGBOX","SVG_UNIT_TYPE_UNKNOWN","SVG_UNIT_TYPE_USERSPACEONUSE","SVG_WRONG_TYPE_ERR","SVG_ZOOMANDPAN_DISABLE","SVG_ZOOMANDPAN_MAGNIFY","SVG_ZOOMANDPAN_UNKNOWN","SYNC_CONDITION","SYNC_FENCE","SYNC_FLAGS","SYNC_FLUSH_COMMANDS_BIT","SYNC_GPU_COMMANDS_COMPLETE","SYNC_STATUS","SYNTAX_ERR","SavedPages","Screen","ScreenOrientation","Script","ScriptProcessorNode","ScrollAreaEvent","SecurityPolicyViolationEvent","Selection","Sensor","SensorErrorEvent","ServiceWorker","ServiceWorkerContainer","ServiceWorkerRegistration","SessionDescription","Set","ShadowRoot","SharedArrayBuffer","SharedWorker","SimpleGestureEvent","SourceBuffer","SourceBufferList","SpeechSynthesis","SpeechSynthesisErrorEvent","SpeechSynthesisEvent","SpeechSynthesisUtterance","SpeechSynthesisVoice","StaticRange","StereoPannerNode","StopIteration","Storage","StorageEvent","StorageManager","String","StructType","StylePropertyMap","StylePropertyMapReadOnly","StyleSheet","StyleSheetList","SubmitEvent","SubtleCrypto","Symbol","SyncManager","SyntaxError","TEMPORARY","TEXTPATH_METHODTYPE_ALIGN","TEXTPATH_METHODTYPE_STRETCH","TEXTPATH_METHODTYPE_UNKNOWN","TEXTPATH_SPACINGTYPE_AUTO","TEXTPATH_SPACINGTYPE_EXACT","TEXTPATH_SPACINGTYPE_UNKNOWN","TEXTURE","TEXTURE0","TEXTURE1","TEXTURE10","TEXTURE11","TEXTURE12","TEXTURE13","TEXTURE14","TEXTURE15","TEXTURE16","TEXTURE17","TEXTURE18","TEXTURE19","TEXTURE2","TEXTURE20","TEXTURE21","TEXTURE22","TEXTURE23","TEXTURE24","TEXTURE25","TEXTURE26","TEXTURE27","TEXTURE28","TEXTURE29","TEXTURE3","TEXTURE30","TEXTURE31","TEXTURE4","TEXTURE5","TEXTURE6","TEXTURE7","TEXTURE8","TEXTURE9","TEXTURE_2D","TEXTURE_2D_ARRAY","TEXTURE_3D","TEXTURE_BASE_LEVEL","TEXTURE_BINDING_2D","TEXTURE_BINDING_2D_ARRAY","TEXTURE_BINDING_3D","TEXTURE_BINDING_CUBE_MAP","TEXTURE_COMPARE_FUNC","TEXTURE_COMPARE_MODE","TEXTURE_CUBE_MAP","TEXTURE_CUBE_MAP_NEGATIVE_X","TEXTURE_CUBE_MAP_NEGATIVE_Y","TEXTURE_CUBE_MAP_NEGATIVE_Z","TEXTURE_CUBE_MAP_POSITIVE_X","TEXTURE_CUBE_MAP_POSITIVE_Y","TEXTURE_CUBE_MAP_POSITIVE_Z","TEXTURE_IMMUTABLE_FORMAT","TEXTURE_IMMUTABLE_LEVELS","TEXTURE_MAG_FILTER","TEXTURE_MAX_ANISOTROPY_EXT","TEXTURE_MAX_LEVEL","TEXTURE_MAX_LOD","TEXTURE_MIN_FILTER","TEXTURE_MIN_LOD","TEXTURE_WRAP_R","TEXTURE_WRAP_S","TEXTURE_WRAP_T","TEXT_NODE","TIMEOUT","TIMEOUT_ERR","TIMEOUT_EXPIRED","TIMEOUT_IGNORED","TOO_LARGE_ERR","TRANSACTION_INACTIVE_ERR","TRANSFORM_FEEDBACK","TRANSFORM_FEEDBACK_ACTIVE","TRANSFORM_FEEDBACK_BINDING","TRANSFORM_FEEDBACK_BUFFER","TRANSFORM_FEEDBACK_BUFFER_BINDING","TRANSFORM_FEEDBACK_BUFFER_MODE","TRANSFORM_FEEDBACK_BUFFER_SIZE","TRANSFORM_FEEDBACK_BUFFER_START","TRANSFORM_FEEDBACK_PAUSED","TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN","TRANSFORM_FEEDBACK_VARYINGS","TRIANGLE","TRIANGLES","TRIANGLE_FAN","TRIANGLE_STRIP","TYPE_BACK_FORWARD","TYPE_ERR","TYPE_MISMATCH_ERR","TYPE_NAVIGATE","TYPE_RELOAD","TYPE_RESERVED","Table","TaskAttributionTiming","Text","TextDecoder","TextDecoderStream","TextEncoder","TextEncoderStream","TextEvent","TextMetrics","TextTrack","TextTrackCue","TextTrackCueList","TextTrackList","TimeEvent","TimeRanges","Touch","TouchEvent","TouchList","TrackEvent","TransformStream","TransitionEvent","TreeWalker","TrustedHTML","TrustedScript","TrustedScriptURL","TrustedTypePolicy","TrustedTypePolicyFactory","TypeError","TypedObject","U2F","UIEvent","UNCACHED","UNIFORM_ARRAY_STRIDE","UNIFORM_BLOCK_ACTIVE_UNIFORMS","UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES","UNIFORM_BLOCK_BINDING","UNIFORM_BLOCK_DATA_SIZE","UNIFORM_BLOCK_INDEX","UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER","UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER","UNIFORM_BUFFER","UNIFORM_BUFFER_BINDING","UNIFORM_BUFFER_OFFSET_ALIGNMENT","UNIFORM_BUFFER_SIZE","UNIFORM_BUFFER_START","UNIFORM_IS_ROW_MAJOR","UNIFORM_MATRIX_STRIDE","UNIFORM_OFFSET","UNIFORM_SIZE","UNIFORM_TYPE","UNKNOWN_ERR","UNKNOWN_RULE","UNMASKED_RENDERER_WEBGL","UNMASKED_VENDOR_WEBGL","UNORDERED_NODE_ITERATOR_TYPE","UNORDERED_NODE_SNAPSHOT_TYPE","UNPACK_ALIGNMENT","UNPACK_COLORSPACE_CONVERSION_WEBGL","UNPACK_FLIP_Y_WEBGL","UNPACK_IMAGE_HEIGHT","UNPACK_PREMULTIPLY_ALPHA_WEBGL","UNPACK_ROW_LENGTH","UNPACK_SKIP_IMAGES","UNPACK_SKIP_PIXELS","UNPACK_SKIP_ROWS","UNSCHEDULED_STATE","UNSENT","UNSIGNALED","UNSIGNED_BYTE","UNSIGNED_INT","UNSIGNED_INT_10F_11F_11F_REV","UNSIGNED_INT_24_8","UNSIGNED_INT_2_10_10_10_REV","UNSIGNED_INT_5_9_9_9_REV","UNSIGNED_INT_SAMPLER_2D","UNSIGNED_INT_SAMPLER_2D_ARRAY","UNSIGNED_INT_SAMPLER_3D","UNSIGNED_INT_SAMPLER_CUBE","UNSIGNED_INT_VEC2","UNSIGNED_INT_VEC3","UNSIGNED_INT_VEC4","UNSIGNED_NORMALIZED","UNSIGNED_SHORT","UNSIGNED_SHORT_4_4_4_4","UNSIGNED_SHORT_5_5_5_1","UNSIGNED_SHORT_5_6_5","UNSPECIFIED_EVENT_TYPE_ERR","UPDATEREADY","URIError","URL","URLSearchParams","URLUnencoded","URL_MISMATCH_ERR","USB","USBAlternateInterface","USBConfiguration","USBConnectionEvent","USBDevice","USBEndpoint","USBInTransferResult","USBInterface","USBIsochronousInTransferPacket","USBIsochronousInTransferResult","USBIsochronousOutTransferPacket","USBIsochronousOutTransferResult","USBOutTransferResult","UTC","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","UserActivation","UserMessageHandler","UserMessageHandlersNamespace","UserProximityEvent","VALIDATE_STATUS","VALIDATION_ERR","VARIABLES_RULE","VENDOR","VERSION","VERSION_CHANGE","VERSION_ERR","VERTEX_ARRAY_BINDING","VERTEX_ATTRIB_ARRAY_BUFFER_BINDING","VERTEX_ATTRIB_ARRAY_DIVISOR","VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE","VERTEX_ATTRIB_ARRAY_ENABLED","VERTEX_ATTRIB_ARRAY_INTEGER","VERTEX_ATTRIB_ARRAY_NORMALIZED","VERTEX_ATTRIB_ARRAY_POINTER","VERTEX_ATTRIB_ARRAY_SIZE","VERTEX_ATTRIB_ARRAY_STRIDE","VERTEX_ATTRIB_ARRAY_TYPE","VERTEX_SHADER","VERTICAL","VERTICAL_AXIS","VER_ERR","VIEWPORT","VIEWPORT_RULE","VRDisplay","VRDisplayCapabilities","VRDisplayEvent","VREyeParameters","VRFieldOfView","VRFrameData","VRPose","VRStageParameters","VTTCue","VTTRegion","ValidityState","VideoPlaybackQuality","VideoStreamTrack","VisualViewport","WAIT_FAILED","WEBKIT_FILTER_RULE","WEBKIT_KEYFRAMES_RULE","WEBKIT_KEYFRAME_RULE","WEBKIT_REGION_RULE","WRONG_DOCUMENT_ERR","WakeLock","WakeLockSentinel","WasmAnyRef","WaveShaperNode","WeakMap","WeakRef","WeakSet","WebAssembly","WebGL2RenderingContext","WebGLActiveInfo","WebGLBuffer","WebGLContextEvent","WebGLFramebuffer","WebGLProgram","WebGLQuery","WebGLRenderbuffer","WebGLRenderingContext","WebGLSampler","WebGLShader","WebGLShaderPrecisionFormat","WebGLSync","WebGLTexture","WebGLTransformFeedback","WebGLUniformLocation","WebGLVertexArray","WebGLVertexArrayObject","WebKitAnimationEvent","WebKitBlobBuilder","WebKitCSSFilterRule","WebKitCSSFilterValue","WebKitCSSKeyframeRule","WebKitCSSKeyframesRule","WebKitCSSMatrix","WebKitCSSRegionRule","WebKitCSSTransformValue","WebKitDataCue","WebKitGamepad","WebKitMediaKeyError","WebKitMediaKeyMessageEvent","WebKitMediaKeySession","WebKitMediaKeys","WebKitMediaSource","WebKitMutationObserver","WebKitNamespace","WebKitPlaybackTargetAvailabilityEvent","WebKitPoint","WebKitShadowRoot","WebKitSourceBuffer","WebKitSourceBufferList","WebKitTransitionEvent","WebSocket","WebkitAlignContent","WebkitAlignItems","WebkitAlignSelf","WebkitAnimation","WebkitAnimationDelay","WebkitAnimationDirection","WebkitAnimationDuration","WebkitAnimationFillMode","WebkitAnimationIterationCount","WebkitAnimationName","WebkitAnimationPlayState","WebkitAnimationTimingFunction","WebkitAppearance","WebkitBackfaceVisibility","WebkitBackgroundClip","WebkitBackgroundOrigin","WebkitBackgroundSize","WebkitBorderBottomLeftRadius","WebkitBorderBottomRightRadius","WebkitBorderImage","WebkitBorderRadius","WebkitBorderTopLeftRadius","WebkitBorderTopRightRadius","WebkitBoxAlign","WebkitBoxDirection","WebkitBoxFlex","WebkitBoxOrdinalGroup","WebkitBoxOrient","WebkitBoxPack","WebkitBoxShadow","WebkitBoxSizing","WebkitFilter","WebkitFlex","WebkitFlexBasis","WebkitFlexDirection","WebkitFlexFlow","WebkitFlexGrow","WebkitFlexShrink","WebkitFlexWrap","WebkitJustifyContent","WebkitLineClamp","WebkitMask","WebkitMaskClip","WebkitMaskComposite","WebkitMaskImage","WebkitMaskOrigin","WebkitMaskPosition","WebkitMaskPositionX","WebkitMaskPositionY","WebkitMaskRepeat","WebkitMaskSize","WebkitOrder","WebkitPerspective","WebkitPerspectiveOrigin","WebkitTextFillColor","WebkitTextSizeAdjust","WebkitTextStroke","WebkitTextStrokeColor","WebkitTextStrokeWidth","WebkitTransform","WebkitTransformOrigin","WebkitTransformStyle","WebkitTransition","WebkitTransitionDelay","WebkitTransitionDuration","WebkitTransitionProperty","WebkitTransitionTimingFunction","WebkitUserSelect","WheelEvent","Window","Worker","Worklet","WritableStream","WritableStreamDefaultWriter","XMLDocument","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestException","XMLHttpRequestProgressEvent","XMLHttpRequestUpload","XMLSerializer","XMLStylesheetProcessingInstruction","XPathEvaluator","XPathException","XPathExpression","XPathNSResolver","XPathResult","XRBoundedReferenceSpace","XRDOMOverlayState","XRFrame","XRHitTestResult","XRHitTestSource","XRInputSource","XRInputSourceArray","XRInputSourceEvent","XRInputSourcesChangeEvent","XRLayer","XRPose","XRRay","XRReferenceSpace","XRReferenceSpaceEvent","XRRenderState","XRRigidTransform","XRSession","XRSessionEvent","XRSpace","XRSystem","XRTransientInputHitTestResult","XRTransientInputHitTestSource","XRView","XRViewerPose","XRViewport","XRWebGLLayer","XSLTProcessor","ZERO","_XD0M_","_YD0M_","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","__opera","__proto__","_browserjsran","a","aLink","abbr","abort","aborted","abs","absolute","acceleration","accelerationIncludingGravity","accelerator","accept","acceptCharset","acceptNode","accessKey","accessKeyLabel","accuracy","acos","acosh","action","actionURL","actions","activated","active","activeCues","activeElement","activeSourceBuffers","activeSourceCount","activeTexture","activeVRDisplays","actualBoundingBoxAscent","actualBoundingBoxDescent","actualBoundingBoxLeft","actualBoundingBoxRight","add","addAll","addBehavior","addCandidate","addColorStop","addCue","addElement","addEventListener","addFilter","addFromString","addFromUri","addIceCandidate","addImport","addListener","addModule","addNamed","addPageRule","addPath","addPointer","addRange","addRegion","addRule","addSearchEngine","addSourceBuffer","addStream","addTextTrack","addTrack","addTransceiver","addWakeLockListener","added","addedNodes","additionalName","additiveSymbols","addons","address","addressLine","adoptNode","adoptedStyleSheets","adr","advance","after","album","alert","algorithm","align","align-content","align-items","align-self","alignContent","alignItems","alignSelf","alignmentBaseline","alinkColor","all","allSettled","allow","allowFullscreen","allowPaymentRequest","allowedDirections","allowedFeatures","allowedToPlay","allowsFeature","alpha","alt","altGraphKey","altHtml","altKey","altLeft","alternate","alternateSetting","alternates","altitude","altitudeAccuracy","amplitude","ancestorOrigins","anchor","anchorNode","anchorOffset","anchors","and","angle","angularAcceleration","angularVelocity","animVal","animate","animatedInstanceRoot","animatedNormalizedPathSegList","animatedPathSegList","animatedPoints","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationStartTime","animationTimingFunction","animationsPaused","anniversary","antialias","anticipatedRemoval","any","app","appCodeName","appMinorVersion","appName","appNotifications","appVersion","appearance","append","appendBuffer","appendChild","appendData","appendItem","appendMedium","appendNamed","appendRule","appendStream","appendWindowEnd","appendWindowStart","applets","applicationCache","applicationServerKey","apply","applyConstraints","applyElement","arc","arcTo","archive","areas","arguments","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDescription","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRelevant","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","arrayBuffer","artist","artwork","as","asIntN","asUintN","asin","asinh","assert","assign","assignedElements","assignedNodes","assignedSlot","async","asyncIterator","atEnd","atan","atan2","atanh","atob","attachEvent","attachInternals","attachShader","attachShadow","attachments","attack","attestationObject","attrChange","attrName","attributeFilter","attributeName","attributeNamespace","attributeOldValue","attributeStyleMap","attributes","attribution","audioBitsPerSecond","audioTracks","audioWorklet","authenticatedSignedWrites","authenticatorData","autoIncrement","autobuffer","autocapitalize","autocomplete","autocorrect","autofocus","automationRate","autoplay","availHeight","availLeft","availTop","availWidth","availability","available","aversion","ax","axes","axis","ay","azimuth","b","back","backface-visibility","backfaceVisibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundFetch","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize","badInput","badge","balance","baseFrequencyX","baseFrequencyY","baseLatency","baseLayer","baseNode","baseOffset","baseURI","baseVal","baselineShift","battery","bday","before","beginElement","beginElementAt","beginPath","beginQuery","beginTransformFeedback","behavior","behaviorCookie","behaviorPart","behaviorUrns","beta","bezierCurveTo","bgColor","bgProperties","bias","big","bigint64","biguint64","binaryType","bind","bindAttribLocation","bindBuffer","bindBufferBase","bindBufferRange","bindFramebuffer","bindRenderbuffer","bindSampler","bindTexture","bindTransformFeedback","bindVertexArray","blendColor","blendEquation","blendEquationSeparate","blendFunc","blendFuncSeparate","blink","blitFramebuffer","blob","block-size","blockDirection","blockSize","blockedURI","blue","bluetooth","blur","body","bodyUsed","bold","bookmarks","booleanValue","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderBoxSize","borderCollapse","borderColor","borderColorDark","borderColorLight","borderEndEndRadius","borderEndStartRadius","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderInline","borderInlineColor","borderInlineEnd","borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth","borderInlineStart","borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth","borderInlineStyle","borderInlineWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStartEndRadius","borderStartStartRadius","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","bottomMargin","bound","boundElements","boundingClientRect","boundingHeight","boundingLeft","boundingTop","boundingWidth","bounds","boundsGeometry","box-decoration-break","box-shadow","box-sizing","boxDecorationBreak","boxShadow","boxSizing","break-after","break-before","break-inside","breakAfter","breakBefore","breakInside","broadcast","browserLanguage","btoa","bubbles","buffer","bufferData","bufferDepth","bufferSize","bufferSubData","buffered","bufferedAmount","bufferedAmountLowThreshold","buildID","buildNumber","button","buttonID","buttons","byteLength","byteOffset","bytesWritten","c","cache","caches","call","caller","canBeFormatted","canBeMounted","canBeShared","canHaveChildren","canHaveHTML","canInsertDTMF","canMakePayment","canPlayType","canPresent","canTrickleIceCandidates","cancel","cancelAndHoldAtTime","cancelAnimationFrame","cancelBubble","cancelIdleCallback","cancelScheduledValues","cancelVideoFrameCallback","cancelWatchAvailability","cancelable","candidate","canonicalUUID","canvas","capabilities","caption","caption-side","captionSide","capture","captureEvents","captureStackTrace","captureStream","caret-color","caretBidiLevel","caretColor","caretPositionFromPoint","caretRangeFromPoint","cast","catch","category","cbrt","cd","ceil","cellIndex","cellPadding","cellSpacing","cells","ch","chOff","chain","challenge","changeType","changedTouches","channel","channelCount","channelCountMode","channelInterpretation","char","charAt","charCode","charCodeAt","charIndex","charLength","characterData","characterDataOldValue","characterSet","characteristic","charging","chargingTime","charset","check","checkEnclosure","checkFramebufferStatus","checkIntersection","checkValidity","checked","childElementCount","childList","childNodes","children","chrome","ciphertext","cite","city","claimInterface","claimed","classList","className","classid","clear","clearAppBadge","clearAttributes","clearBufferfi","clearBufferfv","clearBufferiv","clearBufferuiv","clearColor","clearData","clearDepth","clearHalt","clearImmediate","clearInterval","clearLiveSeekableRange","clearMarks","clearMaxGCPauseAccumulator","clearMeasures","clearParameters","clearRect","clearResourceTimings","clearShadow","clearStencil","clearTimeout","clearWatch","click","clickCount","clientDataJSON","clientHeight","clientInformation","clientLeft","clientRect","clientRects","clientTop","clientWaitSync","clientWidth","clientX","clientY","clip","clip-path","clip-rule","clipBottom","clipLeft","clipPath","clipPathUnits","clipRight","clipRule","clipTop","clipboard","clipboardData","clone","cloneContents","cloneNode","cloneRange","close","closePath","closed","closest","clz","clz32","cm","cmp","code","codeBase","codePointAt","codeType","colSpan","collapse","collapseToEnd","collapseToStart","collapsed","collect","colno","color","color-adjust","color-interpolation","color-interpolation-filters","colorAdjust","colorDepth","colorInterpolation","colorInterpolationFilters","colorMask","colorType","cols","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columnCount","columnFill","columnGap","columnNumber","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","command","commit","commitPreferences","commitStyles","commonAncestorContainer","compact","compareBoundaryPoints","compareDocumentPosition","compareEndPoints","compareExchange","compareNode","comparePoint","compatMode","compatible","compile","compileShader","compileStreaming","complete","component","componentFromPoint","composed","composedPath","composite","compositionEndOffset","compositionStartOffset","compressedTexImage2D","compressedTexImage3D","compressedTexSubImage2D","compressedTexSubImage3D","computedStyleMap","concat","conditionText","coneInnerAngle","coneOuterAngle","coneOuterGain","configuration","configurationName","configurationValue","configurations","confirm","confirmComposition","confirmSiteSpecificTrackingException","confirmWebWideTrackingException","connect","connectEnd","connectShark","connectStart","connected","connection","connectionList","connectionSpeed","connectionState","connections","console","consolidate","constraint","constrictionActive","construct","constructor","contactID","contain","containerId","containerName","containerSrc","containerType","contains","containsNode","content","contentBoxSize","contentDocument","contentEditable","contentHint","contentOverflow","contentRect","contentScriptType","contentStyleType","contentType","contentWindow","context","contextMenu","contextmenu","continue","continuePrimaryKey","continuous","control","controlTransferIn","controlTransferOut","controller","controls","controlsList","convertPointFromNode","convertQuadFromNode","convertRectFromNode","convertToBlob","convertToSpecifiedUnits","cookie","cookieEnabled","coords","copyBufferSubData","copyFromChannel","copyTexImage2D","copyTexSubImage2D","copyTexSubImage3D","copyToChannel","copyWithin","correspondingElement","correspondingUseElement","corruptedVideoFrames","cos","cosh","count","countReset","counter-increment","counter-reset","counter-set","counterIncrement","counterReset","counterSet","country","cpuClass","cpuSleepAllowed","create","createAnalyser","createAnswer","createAttribute","createAttributeNS","createBiquadFilter","createBuffer","createBufferSource","createCDATASection","createCSSStyleSheet","createCaption","createChannelMerger","createChannelSplitter","createComment","createConstantSource","createContextualFragment","createControlRange","createConvolver","createDTMFSender","createDataChannel","createDelay","createDelayNode","createDocument","createDocumentFragment","createDocumentType","createDynamicsCompressor","createElement","createElementNS","createEntityReference","createEvent","createEventObject","createExpression","createFramebuffer","createFunction","createGain","createGainNode","createHTML","createHTMLDocument","createIIRFilter","createImageBitmap","createImageData","createIndex","createJavaScriptNode","createLinearGradient","createMediaElementSource","createMediaKeys","createMediaStreamDestination","createMediaStreamSource","createMediaStreamTrackSource","createMutableFile","createNSResolver","createNodeIterator","createNotification","createObjectStore","createObjectURL","createOffer","createOscillator","createPanner","createPattern","createPeriodicWave","createPolicy","createPopup","createProcessingInstruction","createProgram","createQuery","createRadialGradient","createRange","createRangeCollection","createReader","createRenderbuffer","createSVGAngle","createSVGLength","createSVGMatrix","createSVGNumber","createSVGPathSegArcAbs","createSVGPathSegArcRel","createSVGPathSegClosePath","createSVGPathSegCurvetoCubicAbs","createSVGPathSegCurvetoCubicRel","createSVGPathSegCurvetoCubicSmoothAbs","createSVGPathSegCurvetoCubicSmoothRel","createSVGPathSegCurvetoQuadraticAbs","createSVGPathSegCurvetoQuadraticRel","createSVGPathSegCurvetoQuadraticSmoothAbs","createSVGPathSegCurvetoQuadraticSmoothRel","createSVGPathSegLinetoAbs","createSVGPathSegLinetoHorizontalAbs","createSVGPathSegLinetoHorizontalRel","createSVGPathSegLinetoRel","createSVGPathSegLinetoVerticalAbs","createSVGPathSegLinetoVerticalRel","createSVGPathSegMovetoAbs","createSVGPathSegMovetoRel","createSVGPoint","createSVGRect","createSVGTransform","createSVGTransformFromMatrix","createSampler","createScript","createScriptProcessor","createScriptURL","createSession","createShader","createShadowRoot","createStereoPanner","createStyleSheet","createTBody","createTFoot","createTHead","createTextNode","createTextRange","createTexture","createTouch","createTouchList","createTransformFeedback","createTreeWalker","createVertexArray","createWaveShaper","creationTime","credentials","crossOrigin","crossOriginIsolated","crypto","csi","csp","cssFloat","cssRules","cssText","cssValueType","ctrlKey","ctrlLeft","cues","cullFace","currentDirection","currentLocalDescription","currentNode","currentPage","currentRect","currentRemoteDescription","currentScale","currentScript","currentSrc","currentState","currentStyle","currentTarget","currentTime","currentTranslate","currentView","cursor","curve","customElements","customError","cx","cy","d","data","dataFld","dataFormatAs","dataLoss","dataLossMessage","dataPageSize","dataSrc","dataTransfer","database","databases","dataset","dateTime","db","debug","debuggerEnabled","declare","decode","decodeAudioData","decodeURI","decodeURIComponent","decodedBodySize","decoding","decodingInfo","decrypt","default","defaultCharset","defaultChecked","defaultMuted","defaultPlaybackRate","defaultPolicy","defaultPrevented","defaultRequest","defaultSelected","defaultStatus","defaultURL","defaultValue","defaultView","defaultstatus","defer","define","defineMagicFunction","defineMagicVariable","defineProperties","defineProperty","deg","delay","delayTime","delegatesFocus","delete","deleteBuffer","deleteCaption","deleteCell","deleteContents","deleteData","deleteDatabase","deleteFramebuffer","deleteFromDocument","deleteIndex","deleteMedium","deleteObjectStore","deleteProgram","deleteProperty","deleteQuery","deleteRenderbuffer","deleteRow","deleteRule","deleteSampler","deleteShader","deleteSync","deleteTFoot","deleteTHead","deleteTexture","deleteTransformFeedback","deleteVertexArray","deliverChangeRecords","delivery","deliveryInfo","deliveryStatus","deliveryTimestamp","delta","deltaMode","deltaX","deltaY","deltaZ","dependentLocality","depthFar","depthFunc","depthMask","depthNear","depthRange","deref","deriveBits","deriveKey","description","deselectAll","designMode","desiredSize","destination","destinationURL","detach","detachEvent","detachShader","detail","details","detect","detune","device","deviceClass","deviceId","deviceMemory","devicePixelContentBoxSize","devicePixelRatio","deviceProtocol","deviceSubclass","deviceVersionMajor","deviceVersionMinor","deviceVersionSubminor","deviceXDPI","deviceYDPI","didTimeout","diffuseConstant","digest","dimensions","dir","dirName","direction","dirxml","disable","disablePictureInPicture","disableRemotePlayback","disableVertexAttribArray","disabled","dischargingTime","disconnect","disconnectShark","dispatchEvent","display","displayId","displayName","disposition","distanceModel","div","divisor","djsapi","djsproxy","doImport","doNotTrack","doScroll","doctype","document","documentElement","documentMode","documentURI","dolphin","dolphinGameCenter","dolphininfo","dolphinmeta","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","domOverlayState","domain","domainLookupEnd","domainLookupStart","dominant-baseline","dominantBaseline","done","dopplerFactor","dotAll","downDegrees","downlink","download","downloadTotal","downloaded","dpcm","dpi","dppx","dragDrop","draggable","drawArrays","drawArraysInstanced","drawArraysInstancedANGLE","drawBuffers","drawCustomFocusRing","drawElements","drawElementsInstanced","drawElementsInstancedANGLE","drawFocusIfNeeded","drawImage","drawImageFromRect","drawRangeElements","drawSystemFocusRing","drawingBufferHeight","drawingBufferWidth","dropEffect","droppedVideoFrames","dropzone","dtmf","dump","dumpProfile","duplicate","durability","duration","dvname","dvnum","dx","dy","dynsrc","e","edgeMode","effect","effectAllowed","effectiveDirective","effectiveType","elapsedTime","element","elementFromPoint","elementTiming","elements","elementsFromPoint","elevation","ellipse","em","email","embeds","emma","empty","empty-cells","emptyCells","emptyHTML","emptyScript","emulatedPosition","enable","enableBackground","enableDelegations","enableStyleSheetsForSet","enableVertexAttribArray","enabled","enabledPlugin","encode","encodeInto","encodeURI","encodeURIComponent","encodedBodySize","encoding","encodingInfo","encrypt","enctype","end","endContainer","endElement","endElementAt","endOfStream","endOffset","endQuery","endTime","endTransformFeedback","ended","endpoint","endpointNumber","endpoints","endsWith","enterKeyHint","entities","entries","entryType","enumerate","enumerateDevices","enumerateEditable","environmentBlendMode","equals","error","errorCode","errorDetail","errorText","escape","estimate","eval","evaluate","event","eventPhase","every","ex","exception","exchange","exec","execCommand","execCommandShowHelp","execScript","exitFullscreen","exitPictureInPicture","exitPointerLock","exitPresent","exp","expand","expandEntityReferences","expando","expansion","expiration","expirationTime","expires","expiryDate","explicitOriginalTarget","expm1","exponent","exponentialRampToValueAtTime","exportKey","exports","extend","extensions","extentNode","extentOffset","external","externalResourcesRequired","extractContents","extractable","eye","f","face","factoryReset","failureReason","fallback","family","familyName","farthestViewportElement","fastSeek","fatal","featureId","featurePolicy","featureSettings","features","fenceSync","fetch","fetchStart","fftSize","fgColor","fieldOfView","file","fileCreatedDate","fileHandle","fileModifiedDate","fileName","fileSize","fileUpdatedDate","filename","files","filesystem","fill","fill-opacity","fill-rule","fillLightMode","fillOpacity","fillRect","fillRule","fillStyle","fillText","filter","filterResX","filterResY","filterUnits","filters","finally","find","findIndex","findRule","findText","finish","finished","fireEvent","firesTouchEvents","firstChild","firstElementChild","firstPage","fixed","flags","flat","flatMap","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","flipX","flipY","float","float32","float64","flood-color","flood-opacity","floodColor","floodOpacity","floor","flush","focus","focusNode","focusOffset","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontOpticalSizing","fontSize","fontSizeAdjust","fontSmoothingEnabled","fontStretch","fontStyle","fontSynthesis","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontVariationSettings","fontWeight","fontcolor","fontfaces","fonts","fontsize","for","forEach","force","forceRedraw","form","formAction","formData","formEnctype","formMethod","formNoValidate","formTarget","format","formatToParts","forms","forward","forwardX","forwardY","forwardZ","foundation","fr","fragmentDirective","frame","frameBorder","frameElement","frameSpacing","framebuffer","framebufferHeight","framebufferRenderbuffer","framebufferTexture2D","framebufferTextureLayer","framebufferWidth","frames","freeSpace","freeze","frequency","frequencyBinCount","from","fromCharCode","fromCodePoint","fromElement","fromEntries","fromFloat32Array","fromFloat64Array","fromMatrix","fromPoint","fromQuad","fromRect","frontFace","fround","fullPath","fullScreen","fullscreen","fullscreenElement","fullscreenEnabled","fx","fy","gain","gamepad","gamma","gap","gatheringState","gatt","genderIdentity","generateCertificate","generateKey","generateMipmap","generateRequest","geolocation","gestureObject","get","getActiveAttrib","getActiveUniform","getActiveUniformBlockName","getActiveUniformBlockParameter","getActiveUniforms","getAdjacentText","getAll","getAllKeys","getAllResponseHeaders","getAllowlistForFeature","getAnimations","getAsFile","getAsString","getAttachedShaders","getAttribLocation","getAttribute","getAttributeNS","getAttributeNames","getAttributeNode","getAttributeNodeNS","getAttributeType","getAudioTracks","getAvailability","getBBox","getBattery","getBigInt64","getBigUint64","getBlob","getBookmark","getBoundingClientRect","getBounds","getBoxQuads","getBufferParameter","getBufferSubData","getByteFrequencyData","getByteTimeDomainData","getCSSCanvasContext","getCTM","getCandidateWindowClientRect","getCanonicalLocales","getCapabilities","getChannelData","getCharNumAtPosition","getCharacteristic","getCharacteristics","getClientExtensionResults","getClientRect","getClientRects","getCoalescedEvents","getCompositionAlternatives","getComputedStyle","getComputedTextLength","getComputedTiming","getConfiguration","getConstraints","getContext","getContextAttributes","getContributingSources","getCounterValue","getCueAsHTML","getCueById","getCurrentPosition","getCurrentTime","getData","getDatabaseNames","getDate","getDay","getDefaultComputedStyle","getDescriptor","getDescriptors","getDestinationInsertionPoints","getDevices","getDirectory","getDisplayMedia","getDistributedNodes","getEditable","getElementById","getElementsByClassName","getElementsByName","getElementsByTagName","getElementsByTagNameNS","getEnclosureList","getEndPositionOfChar","getEntries","getEntriesByName","getEntriesByType","getError","getExtension","getExtentOfChar","getEyeParameters","getFeature","getFile","getFiles","getFilesAndDirectories","getFingerprints","getFloat32","getFloat64","getFloatFrequencyData","getFloatTimeDomainData","getFloatValue","getFragDataLocation","getFrameData","getFramebufferAttachmentParameter","getFrequencyResponse","getFullYear","getGamepads","getHitTestResults","getHitTestResultsForTransientInput","getHours","getIdentityAssertion","getIds","getImageData","getIndexedParameter","getInstalledRelatedApps","getInt16","getInt32","getInt8","getInternalformatParameter","getIntersectionList","getItem","getItems","getKey","getKeyframes","getLayers","getLayoutMap","getLineDash","getLocalCandidates","getLocalParameters","getLocalStreams","getMarks","getMatchedCSSRules","getMaxGCPauseSinceClear","getMeasures","getMetadata","getMilliseconds","getMinutes","getModifierState","getMonth","getNamedItem","getNamedItemNS","getNativeFramebufferScaleFactor","getNotifications","getNotifier","getNumberOfChars","getOffsetReferenceSpace","getOutputTimestamp","getOverrideHistoryNavigationMode","getOverrideStyle","getOwnPropertyDescriptor","getOwnPropertyDescriptors","getOwnPropertyNames","getOwnPropertySymbols","getParameter","getParameters","getParent","getPathSegAtLength","getPhotoCapabilities","getPhotoSettings","getPointAtLength","getPose","getPredictedEvents","getPreference","getPreferenceDefault","getPresentationAttribute","getPreventDefault","getPrimaryService","getPrimaryServices","getProgramInfoLog","getProgramParameter","getPropertyCSSValue","getPropertyPriority","getPropertyShorthand","getPropertyType","getPropertyValue","getPrototypeOf","getQuery","getQueryParameter","getRGBColorValue","getRandomValues","getRangeAt","getReader","getReceivers","getRectValue","getRegistration","getRegistrations","getRemoteCandidates","getRemoteCertificates","getRemoteParameters","getRemoteStreams","getRenderbufferParameter","getResponseHeader","getRoot","getRootNode","getRotationOfChar","getSVGDocument","getSamplerParameter","getScreenCTM","getSeconds","getSelectedCandidatePair","getSelection","getSenders","getService","getSettings","getShaderInfoLog","getShaderParameter","getShaderPrecisionFormat","getShaderSource","getSimpleDuration","getSiteIcons","getSources","getSpeculativeParserUrls","getStartPositionOfChar","getStartTime","getState","getStats","getStatusForPolicy","getStorageUpdates","getStreamById","getStringValue","getSubStringLength","getSubscription","getSupportedConstraints","getSupportedExtensions","getSupportedFormats","getSyncParameter","getSynchronizationSources","getTags","getTargetRanges","getTexParameter","getTime","getTimezoneOffset","getTiming","getTotalLength","getTrackById","getTracks","getTransceivers","getTransform","getTransformFeedbackVarying","getTransformToElement","getTransports","getType","getTypeMapping","getUTCDate","getUTCDay","getUTCFullYear","getUTCHours","getUTCMilliseconds","getUTCMinutes","getUTCMonth","getUTCSeconds","getUint16","getUint32","getUint8","getUniform","getUniformBlockIndex","getUniformIndices","getUniformLocation","getUserMedia","getVRDisplays","getValues","getVarDate","getVariableValue","getVertexAttrib","getVertexAttribOffset","getVideoPlaybackQuality","getVideoTracks","getViewerPose","getViewport","getVoices","getWakeLockState","getWriter","getYear","givenName","global","globalAlpha","globalCompositeOperation","globalThis","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","go","grabFrame","grad","gradientTransform","gradientUnits","grammars","green","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","gripSpace","group","groupCollapsed","groupEnd","groupId","hadRecentInput","hand","handedness","hapticActuators","hardwareConcurrency","has","hasAttribute","hasAttributeNS","hasAttributes","hasBeenActive","hasChildNodes","hasComposition","hasEnrolledInstrument","hasExtension","hasExternalDisplay","hasFeature","hasFocus","hasInstance","hasLayout","hasOrientation","hasOwnProperty","hasPointerCapture","hasPosition","hasReading","hasStorageAccess","hash","head","headers","heading","height","hidden","hide","hideFocus","high","highWaterMark","hint","history","honorificPrefix","honorificSuffix","horizontalOverflow","host","hostCandidate","hostname","href","hrefTranslate","hreflang","hspace","html5TagCheckInerface","htmlFor","htmlText","httpEquiv","httpRequestStatusCode","hwTimestamp","hyphens","hypot","iccId","iceConnectionState","iceGatheringState","iceTransport","icon","iconURL","id","identifier","identity","idpLoginUrl","ignoreBOM","ignoreCase","ignoreDepthValues","image-orientation","image-rendering","imageHeight","imageOrientation","imageRendering","imageSizes","imageSmoothingEnabled","imageSmoothingQuality","imageSrcset","imageWidth","images","ime-mode","imeMode","implementation","importKey","importNode","importStylesheet","imports","impp","imul","in","in1","in2","inBandMetadataTrackDispatchType","inRange","includes","incremental","indeterminate","index","indexNames","indexOf","indexedDB","indicate","inertiaDestinationX","inertiaDestinationY","info","init","initAnimationEvent","initBeforeLoadEvent","initClipboardEvent","initCloseEvent","initCommandEvent","initCompositionEvent","initCustomEvent","initData","initDataType","initDeviceMotionEvent","initDeviceOrientationEvent","initDragEvent","initErrorEvent","initEvent","initFocusEvent","initGestureEvent","initHashChangeEvent","initKeyEvent","initKeyboardEvent","initMSManipulationEvent","initMessageEvent","initMouseEvent","initMouseScrollEvent","initMouseWheelEvent","initMutationEvent","initNSMouseEvent","initOverflowEvent","initPageEvent","initPageTransitionEvent","initPointerEvent","initPopStateEvent","initProgressEvent","initScrollAreaEvent","initSimpleGestureEvent","initStorageEvent","initTextEvent","initTimeEvent","initTouchEvent","initTransitionEvent","initUIEvent","initWebKitAnimationEvent","initWebKitTransitionEvent","initWebKitWheelEvent","initWheelEvent","initialTime","initialize","initiatorType","inline-size","inlineSize","inlineVerticalFieldOfView","inner","innerHTML","innerHeight","innerText","innerWidth","input","inputBuffer","inputEncoding","inputMethod","inputMode","inputSource","inputSources","inputType","inputs","insertAdjacentElement","insertAdjacentHTML","insertAdjacentText","insertBefore","insertCell","insertDTMF","insertData","insertItemBefore","insertNode","insertRow","insertRule","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","installing","instanceRoot","instantiate","instantiateStreaming","instruments","int16","int32","int8","integrity","interactionMode","intercept","interfaceClass","interfaceName","interfaceNumber","interfaceProtocol","interfaceSubclass","interfaces","interimResults","internalSubset","interpretation","intersectionRatio","intersectionRect","intersectsNode","interval","invalidIteratorState","invalidateFramebuffer","invalidateSubFramebuffer","inverse","invertSelf","is","is2D","isActive","isAlternate","isArray","isBingCurrentSearchDefault","isBuffer","isCandidateWindowVisible","isChar","isCollapsed","isComposing","isConcatSpreadable","isConnected","isContentEditable","isContentHandlerRegistered","isContextLost","isDefaultNamespace","isDirectory","isDisabled","isEnabled","isEqual","isEqualNode","isExtensible","isExternalCTAP2SecurityKeySupported","isFile","isFinite","isFramebuffer","isFrozen","isGenerator","isHTML","isHistoryNavigation","isId","isIdentity","isInjected","isInteger","isIntersecting","isLockFree","isMap","isMultiLine","isNaN","isOpen","isPointInFill","isPointInPath","isPointInRange","isPointInStroke","isPrefAlternate","isPresenting","isPrimary","isProgram","isPropertyImplicit","isProtocolHandlerRegistered","isPrototypeOf","isQuery","isRenderbuffer","isSafeInteger","isSameNode","isSampler","isScript","isScriptURL","isSealed","isSecureContext","isSessionSupported","isShader","isSupported","isSync","isTextEdit","isTexture","isTransformFeedback","isTrusted","isTypeSupported","isUserVerifyingPlatformAuthenticatorAvailable","isVertexArray","isView","isVisible","isochronousTransferIn","isochronousTransferOut","isolation","italics","item","itemId","itemProp","itemRef","itemScope","itemType","itemValue","items","iterateNext","iterationComposite","iterator","javaEnabled","jobTitle","join","json","justify-content","justify-items","justify-self","justifyContent","justifyItems","justifySelf","k1","k2","k3","k4","kHz","keepalive","kernelMatrix","kernelUnitLengthX","kernelUnitLengthY","kerning","key","keyCode","keyFor","keyIdentifier","keyLightEnabled","keyLocation","keyPath","keyStatuses","keySystem","keyText","keyUsage","keyboard","keys","keytype","kind","knee","label","labels","lang","language","languages","largeArcFlag","lastChild","lastElementChild","lastEventId","lastIndex","lastIndexOf","lastInputTime","lastMatch","lastMessageSubject","lastMessageType","lastModified","lastModifiedDate","lastPage","lastParen","lastState","lastStyleSheetSet","latitude","layerX","layerY","layoutFlow","layoutGrid","layoutGridChar","layoutGridLine","layoutGridMode","layoutGridType","lbound","left","leftContext","leftDegrees","leftMargin","leftProjectionMatrix","leftViewMatrix","length","lengthAdjust","lengthComputable","letter-spacing","letterSpacing","level","lighting-color","lightingColor","limitingConeAngle","line","line-break","line-height","lineAlign","lineBreak","lineCap","lineDashOffset","lineHeight","lineJoin","lineNumber","lineTo","lineWidth","linearAcceleration","linearRampToValueAtTime","linearVelocity","lineno","lines","link","linkColor","linkProgram","links","list","list-style","list-style-image","list-style-position","list-style-type","listStyle","listStyleImage","listStylePosition","listStyleType","listener","load","loadEventEnd","loadEventStart","loadTime","loadTimes","loaded","loading","localDescription","localName","localService","localStorage","locale","localeCompare","location","locationbar","lock","locked","lockedFile","locks","log","log10","log1p","log2","logicalXDPI","logicalYDPI","longDesc","longitude","lookupNamespaceURI","lookupPrefix","loop","loopEnd","loopStart","looping","low","lower","lowerBound","lowerOpen","lowsrc","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44","makeXRCompatible","manifest","manufacturer","manufacturerName","map","mapping","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marginBlock","marginBlockEnd","marginBlockStart","marginBottom","marginHeight","marginInline","marginInlineEnd","marginInlineStart","marginLeft","marginRight","marginTop","marginWidth","mark","marker","marker-end","marker-mid","marker-offset","marker-start","markerEnd","markerHeight","markerMid","markerOffset","markerStart","markerUnits","markerWidth","marks","mask","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-position-x","mask-position-y","mask-repeat","mask-size","mask-type","maskClip","maskComposite","maskContentUnits","maskImage","maskMode","maskOrigin","maskPosition","maskPositionX","maskPositionY","maskRepeat","maskSize","maskType","maskUnits","match","matchAll","matchMedia","matchMedium","matches","matrix","matrixTransform","max","max-block-size","max-height","max-inline-size","max-width","maxActions","maxAlternatives","maxBlockSize","maxChannelCount","maxChannels","maxConnectionsPerServer","maxDecibels","maxDistance","maxHeight","maxInlineSize","maxLayers","maxLength","maxMessageSize","maxPacketLifeTime","maxRetransmits","maxTouchPoints","maxValue","maxWidth","measure","measureText","media","mediaCapabilities","mediaDevices","mediaElement","mediaGroup","mediaKeys","mediaSession","mediaStream","mediaText","meetOrSlice","memory","menubar","mergeAttributes","message","messageClass","messageHandlers","messageType","metaKey","metadata","method","methodDetails","methodName","mid","mimeType","mimeTypes","min","min-block-size","min-height","min-inline-size","min-width","minBlockSize","minDecibels","minHeight","minInlineSize","minLength","minValue","minWidth","miterLimit","mix-blend-mode","mixBlendMode","mm","mode","modify","mount","move","moveBy","moveEnd","moveFirst","moveFocusDown","moveFocusLeft","moveFocusRight","moveFocusUp","moveNext","moveRow","moveStart","moveTo","moveToBookmark","moveToElementText","moveToPoint","movementX","movementY","mozAdd","mozAnimationStartTime","mozAnon","mozApps","mozAudioCaptured","mozAudioChannelType","mozAutoplayEnabled","mozCancelAnimationFrame","mozCancelFullScreen","mozCancelRequestAnimationFrame","mozCaptureStream","mozCaptureStreamUntilEnded","mozClearDataAt","mozContact","mozContacts","mozCreateFileHandle","mozCurrentTransform","mozCurrentTransformInverse","mozCursor","mozDash","mozDashOffset","mozDecodedFrames","mozExitPointerLock","mozFillRule","mozFragmentEnd","mozFrameDelay","mozFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozGetAll","mozGetAllKeys","mozGetAsFile","mozGetDataAt","mozGetMetadata","mozGetUserMedia","mozHasAudio","mozHasItem","mozHidden","mozImageSmoothingEnabled","mozIndexedDB","mozInnerScreenX","mozInnerScreenY","mozInputSource","mozIsTextField","mozItem","mozItemCount","mozItems","mozLength","mozLockOrientation","mozMatchesSelector","mozMovementX","mozMovementY","mozOpaque","mozOrientation","mozPaintCount","mozPaintedFrames","mozParsedFrames","mozPay","mozPointerLockElement","mozPresentedFrames","mozPreservesPitch","mozPressure","mozPrintCallback","mozRTCIceCandidate","mozRTCPeerConnection","mozRTCSessionDescription","mozRemove","mozRequestAnimationFrame","mozRequestFullScreen","mozRequestPointerLock","mozSetDataAt","mozSetImageElement","mozSourceNode","mozSrcObject","mozSystem","mozTCPSocket","mozTextStyle","mozTypesAt","mozUnlockOrientation","mozUserCancelled","mozVisibilityState","ms","msAnimation","msAnimationDelay","msAnimationDirection","msAnimationDuration","msAnimationFillMode","msAnimationIterationCount","msAnimationName","msAnimationPlayState","msAnimationStartTime","msAnimationTimingFunction","msBackfaceVisibility","msBlockProgression","msCSSOMElementFloatMetrics","msCaching","msCachingEnabled","msCancelRequestAnimationFrame","msCapsLockWarningOff","msClearImmediate","msClose","msContentZoomChaining","msContentZoomFactor","msContentZoomLimit","msContentZoomLimitMax","msContentZoomLimitMin","msContentZoomSnap","msContentZoomSnapPoints","msContentZoomSnapType","msContentZooming","msConvertURL","msCrypto","msDoNotTrack","msElementsFromPoint","msElementsFromRect","msExitFullscreen","msExtendedCode","msFillRule","msFirstPaint","msFlex","msFlexAlign","msFlexDirection","msFlexFlow","msFlexItemAlign","msFlexLinePack","msFlexNegative","msFlexOrder","msFlexPack","msFlexPositive","msFlexPreferredSize","msFlexWrap","msFlowFrom","msFlowInto","msFontFeatureSettings","msFullscreenElement","msFullscreenEnabled","msGetInputContext","msGetRegionContent","msGetUntransformedBounds","msGraphicsTrustStatus","msGridColumn","msGridColumnAlign","msGridColumnSpan","msGridColumns","msGridRow","msGridRowAlign","msGridRowSpan","msGridRows","msHidden","msHighContrastAdjust","msHyphenateLimitChars","msHyphenateLimitLines","msHyphenateLimitZone","msHyphens","msImageSmoothingEnabled","msImeAlign","msIndexedDB","msInterpolationMode","msIsStaticHTML","msKeySystem","msKeys","msLaunchUri","msLockOrientation","msManipulationViewsEnabled","msMatchMedia","msMatchesSelector","msMaxTouchPoints","msOrientation","msOverflowStyle","msPerspective","msPerspectiveOrigin","msPlayToDisabled","msPlayToPreferredSourceUri","msPlayToPrimary","msPointerEnabled","msRegionOverflow","msReleasePointerCapture","msRequestAnimationFrame","msRequestFullscreen","msSaveBlob","msSaveOrOpenBlob","msScrollChaining","msScrollLimit","msScrollLimitXMax","msScrollLimitXMin","msScrollLimitYMax","msScrollLimitYMin","msScrollRails","msScrollSnapPointsX","msScrollSnapPointsY","msScrollSnapType","msScrollSnapX","msScrollSnapY","msScrollTranslation","msSetImmediate","msSetMediaKeys","msSetPointerCapture","msTextCombineHorizontal","msTextSizeAdjust","msToBlob","msTouchAction","msTouchSelect","msTraceAsyncCallbackCompleted","msTraceAsyncCallbackStarting","msTraceAsyncOperationCompleted","msTraceAsyncOperationStarting","msTransform","msTransformOrigin","msTransformStyle","msTransition","msTransitionDelay","msTransitionDuration","msTransitionProperty","msTransitionTimingFunction","msUnlockOrientation","msUpdateAsyncCallbackRelation","msUserSelect","msVisibilityState","msWrapFlow","msWrapMargin","msWrapThrough","msWriteProfilerMark","msZoom","msZoomTo","mt","mul","multiEntry","multiSelectionObj","multiline","multiple","multiply","multiplySelf","mutableFile","muted","n","name","nameProp","namedItem","namedRecordset","names","namespaceURI","namespaces","naturalHeight","naturalWidth","navigate","navigation","navigationMode","navigationPreload","navigationStart","navigator","near","nearestViewportElement","negative","negotiated","netscape","networkState","newScale","newTranslate","newURL","newValue","newValueSpecifiedUnits","newVersion","newhome","next","nextElementSibling","nextHopProtocol","nextNode","nextPage","nextSibling","nickname","noHref","noModule","noResize","noShade","noValidate","noWrap","node","nodeName","nodeType","nodeValue","nonce","normalize","normalizedPathSegList","notationName","notations","note","noteGrainOn","noteOff","noteOn","notify","now","numOctaves","number","numberOfChannels","numberOfInputs","numberOfItems","numberOfOutputs","numberValue","oMatchesSelector","object","object-fit","object-position","objectFit","objectPosition","objectStore","objectStoreNames","objectType","observe","of","offscreenBuffering","offset","offset-anchor","offset-distance","offset-path","offset-rotate","offsetAnchor","offsetDistance","offsetHeight","offsetLeft","offsetNode","offsetParent","offsetPath","offsetRotate","offsetTop","offsetWidth","offsetX","offsetY","ok","oldURL","oldValue","oldVersion","olderShadowRoot","onLine","onabort","onabsolutedeviceorientation","onactivate","onactive","onaddsourcebuffer","onaddstream","onaddtrack","onafterprint","onafterscriptexecute","onafterupdate","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onappinstalled","onaudioend","onaudioprocess","onaudiostart","onautocomplete","onautocompleteerror","onauxclick","onbeforeactivate","onbeforecopy","onbeforecut","onbeforedeactivate","onbeforeeditfocus","onbeforeinstallprompt","onbeforepaste","onbeforeprint","onbeforescriptexecute","onbeforeunload","onbeforeupdate","onbeforexrselect","onbegin","onblocked","onblur","onbounce","onboundary","onbufferedamountlow","oncached","oncancel","oncandidatewindowhide","oncandidatewindowshow","oncandidatewindowupdate","oncanplay","oncanplaythrough","once","oncellchange","onchange","oncharacteristicvaluechanged","onchargingchange","onchargingtimechange","onchecking","onclick","onclose","onclosing","oncompassneedscalibration","oncomplete","onconnect","onconnecting","onconnectionavailable","onconnectionstatechange","oncontextmenu","oncontrollerchange","oncontrolselect","oncopy","oncuechange","oncut","ondataavailable","ondatachannel","ondatasetchanged","ondatasetcomplete","ondblclick","ondeactivate","ondevicechange","ondevicelight","ondevicemotion","ondeviceorientation","ondeviceorientationabsolute","ondeviceproximity","ondischargingtimechange","ondisconnect","ondisplay","ondownloading","ondrag","ondragend","ondragenter","ondragexit","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onencrypted","onend","onended","onenter","onenterpictureinpicture","onerror","onerrorupdate","onexit","onfilterchange","onfinish","onfocus","onfocusin","onfocusout","onformdata","onfreeze","onfullscreenchange","onfullscreenerror","ongatheringstatechange","ongattserverdisconnected","ongesturechange","ongestureend","ongesturestart","ongotpointercapture","onhashchange","onhelp","onicecandidate","onicecandidateerror","oniceconnectionstatechange","onicegatheringstatechange","oninactive","oninput","oninputsourceschange","oninvalid","onkeydown","onkeypress","onkeystatuseschange","onkeyup","onlanguagechange","onlayoutcomplete","onleavepictureinpicture","onlevelchange","onload","onloadeddata","onloadedmetadata","onloadend","onloading","onloadingdone","onloadingerror","onloadstart","onlosecapture","onlostpointercapture","only","onmark","onmessage","onmessageerror","onmidimessage","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onmove","onmoveend","onmovestart","onmozfullscreenchange","onmozfullscreenerror","onmozorientationchange","onmozpointerlockchange","onmozpointerlockerror","onmscontentzoom","onmsfullscreenchange","onmsfullscreenerror","onmsgesturechange","onmsgesturedoubletap","onmsgestureend","onmsgesturehold","onmsgesturestart","onmsgesturetap","onmsgotpointercapture","onmsinertiastart","onmslostpointercapture","onmsmanipulationstatechanged","onmsneedkey","onmsorientationchange","onmspointercancel","onmspointerdown","onmspointerenter","onmspointerhover","onmspointerleave","onmspointermove","onmspointerout","onmspointerover","onmspointerup","onmssitemodejumplistitemremoved","onmsthumbnailclick","onmute","onnegotiationneeded","onnomatch","onnoupdate","onobsolete","onoffline","ononline","onopen","onorientationchange","onpagechange","onpagehide","onpageshow","onpaste","onpause","onpayerdetailchange","onpaymentmethodchange","onplay","onplaying","onpluginstreamstart","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointerlockchange","onpointerlockerror","onpointermove","onpointerout","onpointerover","onpointerrawupdate","onpointerup","onpopstate","onprocessorerror","onprogress","onpropertychange","onratechange","onreading","onreadystatechange","onrejectionhandled","onrelease","onremove","onremovesourcebuffer","onremovestream","onremovetrack","onrepeat","onreset","onresize","onresizeend","onresizestart","onresourcetimingbufferfull","onresult","onresume","onrowenter","onrowexit","onrowsdelete","onrowsinserted","onscroll","onsearch","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectedcandidatepairchange","onselectend","onselectionchange","onselectstart","onshippingaddresschange","onshippingoptionchange","onshow","onsignalingstatechange","onsoundend","onsoundstart","onsourceclose","onsourceclosed","onsourceended","onsourceopen","onspeechend","onspeechstart","onsqueeze","onsqueezeend","onsqueezestart","onstalled","onstart","onstatechange","onstop","onstorage","onstoragecommit","onsubmit","onsuccess","onsuspend","onterminate","ontextinput","ontimeout","ontimeupdate","ontoggle","ontonechange","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontrack","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onunhandledrejection","onunload","onunmute","onupdate","onupdateend","onupdatefound","onupdateready","onupdatestart","onupgradeneeded","onuserproximity","onversionchange","onvisibilitychange","onvoiceschanged","onvolumechange","onvrdisplayactivate","onvrdisplayconnect","onvrdisplaydeactivate","onvrdisplaydisconnect","onvrdisplaypresentchange","onwaiting","onwaitingforkey","onwarning","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkitcurrentplaybacktargetiswirelesschanged","onwebkitfullscreenchange","onwebkitfullscreenerror","onwebkitkeyadded","onwebkitkeyerror","onwebkitkeymessage","onwebkitneedkey","onwebkitorientationchange","onwebkitplaybacktargetavailabilitychanged","onwebkitpointerlockchange","onwebkitpointerlockerror","onwebkitresourcetimingbufferfull","onwebkittransitionend","onwheel","onzoom","opacity","open","openCursor","openDatabase","openKeyCursor","opened","opener","opera","operationType","operator","opr","optimum","options","or","order","orderX","orderY","ordered","org","organization","orient","orientAngle","orientType","orientation","orientationX","orientationY","orientationZ","origin","originalPolicy","originalTarget","orphans","oscpu","outerHTML","outerHeight","outerText","outerWidth","outline","outline-color","outline-offset","outline-style","outline-width","outlineColor","outlineOffset","outlineStyle","outlineWidth","outputBuffer","outputLatency","outputs","overflow","overflow-anchor","overflow-block","overflow-inline","overflow-wrap","overflow-x","overflow-y","overflowAnchor","overflowBlock","overflowInline","overflowWrap","overflowX","overflowY","overrideMimeType","oversample","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","overscrollBehavior","overscrollBehaviorBlock","overscrollBehaviorInline","overscrollBehaviorX","overscrollBehaviorY","ownKeys","ownerDocument","ownerElement","ownerNode","ownerRule","ownerSVGElement","owningElement","p1","p2","p3","p4","packetSize","packets","pad","padEnd","padStart","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","paddingBlock","paddingBlockEnd","paddingBlockStart","paddingBottom","paddingInline","paddingInlineEnd","paddingInlineStart","paddingLeft","paddingRight","paddingTop","page","page-break-after","page-break-before","page-break-inside","pageBreakAfter","pageBreakBefore","pageBreakInside","pageCount","pageLeft","pageTop","pageX","pageXOffset","pageY","pageYOffset","pages","paint-order","paintOrder","paintRequests","paintType","paintWorklet","palette","pan","panningModel","parameters","parent","parentElement","parentNode","parentRule","parentStyleSheet","parentTextEdit","parentWindow","parse","parseAll","parseFloat","parseFromString","parseInt","part","participants","passive","password","pasteHTML","path","pathLength","pathSegList","pathSegType","pathSegTypeAsLetter","pathname","pattern","patternContentUnits","patternMismatch","patternTransform","patternUnits","pause","pauseAnimations","pauseOnExit","pauseProfilers","pauseTransformFeedback","paused","payerEmail","payerName","payerPhone","paymentManager","pc","peerIdentity","pending","pendingLocalDescription","pendingRemoteDescription","percent","performance","periodicSync","permission","permissionState","permissions","persist","persisted","personalbar","perspective","perspective-origin","perspectiveOrigin","phone","phoneticFamilyName","phoneticGivenName","photo","pictureInPictureElement","pictureInPictureEnabled","pictureInPictureWindow","ping","pipeThrough","pipeTo","pitch","pixelBottom","pixelDepth","pixelHeight","pixelLeft","pixelRight","pixelStorei","pixelTop","pixelUnitToMillimeterX","pixelUnitToMillimeterY","pixelWidth","place-content","place-items","place-self","placeContent","placeItems","placeSelf","placeholder","platform","platforms","play","playEffect","playState","playbackRate","playbackState","playbackTime","played","playoutDelayHint","playsInline","plugins","pluginspage","pname","pointer-events","pointerBeforeReferenceNode","pointerEnabled","pointerEvents","pointerId","pointerLockElement","pointerType","points","pointsAtX","pointsAtY","pointsAtZ","polygonOffset","pop","populateMatrix","popupWindowFeatures","popupWindowName","popupWindowURI","port","port1","port2","ports","posBottom","posHeight","posLeft","posRight","posTop","posWidth","pose","position","positionAlign","positionX","positionY","positionZ","postError","postMessage","postalCode","poster","pow","powerEfficient","powerOff","preMultiplySelf","precision","preferredStyleSheetSet","preferredStylesheetSet","prefix","preload","prepend","presentation","preserveAlpha","preserveAspectRatio","preserveAspectRatioString","pressed","pressure","prevValue","preventDefault","preventExtensions","preventSilentAccess","previousElementSibling","previousNode","previousPage","previousRect","previousScale","previousSibling","previousTranslate","primaryKey","primitiveType","primitiveUnits","principals","print","priority","privateKey","probablySupportsContext","process","processIceMessage","processingEnd","processingStart","product","productId","productName","productSub","profile","profileEnd","profiles","projectionMatrix","promise","prompt","properties","propertyIsEnumerable","propertyName","protocol","protocolLong","prototype","provider","pseudoClass","pseudoElement","pt","publicId","publicKey","published","pulse","push","pushManager","pushNotification","pushState","put","putImageData","px","quadraticCurveTo","qualifier","quaternion","query","queryCommandEnabled","queryCommandIndeterm","queryCommandState","queryCommandSupported","queryCommandText","queryCommandValue","querySelector","querySelectorAll","queueMicrotask","quote","quotes","r","r1","r2","race","rad","radiogroup","radiusX","radiusY","random","range","rangeCount","rangeMax","rangeMin","rangeOffset","rangeOverflow","rangeParent","rangeUnderflow","rate","ratio","raw","rawId","read","readAsArrayBuffer","readAsBinaryString","readAsBlob","readAsDataURL","readAsText","readBuffer","readEntries","readOnly","readPixels","readReportRequested","readText","readValue","readable","ready","readyState","reason","reboot","receivedAlert","receiver","receivers","recipient","reconnect","recordNumber","recordsAvailable","recordset","rect","red","redEyeReduction","redirect","redirectCount","redirectEnd","redirectStart","redirected","reduce","reduceRight","reduction","refDistance","refX","refY","referenceNode","referenceSpace","referrer","referrerPolicy","refresh","region","regionAnchorX","regionAnchorY","regionId","regions","register","registerContentHandler","registerElement","registerProperty","registerProtocolHandler","reject","rel","relList","relatedAddress","relatedNode","relatedPort","relatedTarget","release","releaseCapture","releaseEvents","releaseInterface","releaseLock","releasePointerCapture","releaseShaderCompiler","reliable","reliableWrite","reload","rem","remainingSpace","remote","remoteDescription","remove","removeAllRanges","removeAttribute","removeAttributeNS","removeAttributeNode","removeBehavior","removeChild","removeCue","removeEventListener","removeFilter","removeImport","removeItem","removeListener","removeNamedItem","removeNamedItemNS","removeNode","removeParameter","removeProperty","removeRange","removeRegion","removeRule","removeSiteSpecificTrackingException","removeSourceBuffer","removeStream","removeTrack","removeVariable","removeWakeLockListener","removeWebWideTrackingException","removed","removedNodes","renderHeight","renderState","renderTime","renderWidth","renderbufferStorage","renderbufferStorageMultisample","renderedBuffer","renderingMode","renotify","repeat","replace","replaceAdjacentText","replaceAll","replaceChild","replaceChildren","replaceData","replaceId","replaceItem","replaceNode","replaceState","replaceSync","replaceTrack","replaceWholeText","replaceWith","reportValidity","request","requestAnimationFrame","requestAutocomplete","requestData","requestDevice","requestFrame","requestFullscreen","requestHitTestSource","requestHitTestSourceForTransientInput","requestId","requestIdleCallback","requestMIDIAccess","requestMediaKeySystemAccess","requestPermission","requestPictureInPicture","requestPointerLock","requestPresent","requestReferenceSpace","requestSession","requestStart","requestStorageAccess","requestSubmit","requestVideoFrameCallback","requestingWindow","requireInteraction","required","requiredExtensions","requiredFeatures","reset","resetPose","resetTransform","resize","resizeBy","resizeTo","resolve","response","responseBody","responseEnd","responseReady","responseStart","responseText","responseType","responseURL","responseXML","restartIce","restore","result","resultIndex","resultType","results","resume","resumeProfilers","resumeTransformFeedback","retry","returnValue","rev","reverse","reversed","revocable","revokeObjectURL","rgbColor","right","rightContext","rightDegrees","rightMargin","rightProjectionMatrix","rightViewMatrix","role","rolloffFactor","root","rootBounds","rootElement","rootMargin","rotate","rotateAxisAngle","rotateAxisAngleSelf","rotateFromVector","rotateFromVectorSelf","rotateSelf","rotation","rotationAngle","rotationRate","round","row-gap","rowGap","rowIndex","rowSpan","rows","rtcpTransport","rtt","ruby-align","ruby-position","rubyAlign","rubyOverhang","rubyPosition","rules","runtime","runtimeStyle","rx","ry","s","safari","sample","sampleCoverage","sampleRate","samplerParameterf","samplerParameteri","sandbox","save","saveData","scale","scale3d","scale3dSelf","scaleNonUniform","scaleNonUniformSelf","scaleSelf","scheme","scissor","scope","scopeName","scoped","screen","screenBrightness","screenEnabled","screenLeft","screenPixelToMillimeterX","screenPixelToMillimeterY","screenTop","screenX","screenY","scriptURL","scripts","scroll","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","scrollAmount","scrollBehavior","scrollBy","scrollByLines","scrollByPages","scrollDelay","scrollHeight","scrollIntoView","scrollIntoViewIfNeeded","scrollLeft","scrollLeftMax","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollMaxX","scrollMaxY","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollRestoration","scrollSnapAlign","scrollSnapType","scrollTo","scrollTop","scrollTopMax","scrollWidth","scrollX","scrollY","scrollbar-color","scrollbar-width","scrollbar3dLightColor","scrollbarArrowColor","scrollbarBaseColor","scrollbarColor","scrollbarDarkShadowColor","scrollbarFaceColor","scrollbarHighlightColor","scrollbarShadowColor","scrollbarTrackColor","scrollbarWidth","scrollbars","scrolling","scrollingElement","sctp","sctpCauseCode","sdp","sdpLineNumber","sdpMLineIndex","sdpMid","seal","search","searchBox","searchBoxJavaBridge_","searchParams","sectionRowIndex","secureConnectionStart","security","seed","seekToNextFrame","seekable","seeking","select","selectAllChildren","selectAlternateInterface","selectConfiguration","selectNode","selectNodeContents","selectNodes","selectSingleNode","selectSubString","selected","selectedIndex","selectedOptions","selectedStyleSheetSet","selectedStylesheetSet","selection","selectionDirection","selectionEnd","selectionStart","selector","selectorText","self","send","sendAsBinary","sendBeacon","sender","sentAlert","sentTimestamp","separator","serialNumber","serializeToString","serverTiming","service","serviceWorker","session","sessionId","sessionStorage","set","setActionHandler","setActive","setAlpha","setAppBadge","setAttribute","setAttributeNS","setAttributeNode","setAttributeNodeNS","setBaseAndExtent","setBigInt64","setBigUint64","setBingCurrentSearchDefault","setCapture","setCodecPreferences","setColor","setCompositeOperation","setConfiguration","setCurrentTime","setCustomValidity","setData","setDate","setDragImage","setEnd","setEndAfter","setEndBefore","setEndPoint","setFillColor","setFilterRes","setFloat32","setFloat64","setFloatValue","setFormValue","setFullYear","setHeaderValue","setHours","setIdentityProvider","setImmediate","setInt16","setInt32","setInt8","setInterval","setItem","setKeyframes","setLineCap","setLineDash","setLineJoin","setLineWidth","setLiveSeekableRange","setLocalDescription","setMatrix","setMatrixValue","setMediaKeys","setMilliseconds","setMinutes","setMiterLimit","setMonth","setNamedItem","setNamedItemNS","setNonUserCodeExceptions","setOrientToAngle","setOrientToAuto","setOrientation","setOverrideHistoryNavigationMode","setPaint","setParameter","setParameters","setPeriodicWave","setPointerCapture","setPosition","setPositionState","setPreference","setProperty","setPrototypeOf","setRGBColor","setRGBColorICCColor","setRadius","setRangeText","setRemoteDescription","setRequestHeader","setResizable","setResourceTimingBufferSize","setRotate","setScale","setSeconds","setSelectionRange","setServerCertificate","setShadow","setSinkId","setSkewX","setSkewY","setStart","setStartAfter","setStartBefore","setStdDeviation","setStreams","setStringValue","setStrokeColor","setSuggestResult","setTargetAtTime","setTargetValueAtTime","setTime","setTimeout","setTransform","setTranslate","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setUint16","setUint32","setUint8","setUri","setValidity","setValueAtTime","setValueCurveAtTime","setVariable","setVelocity","setVersion","setYear","settingName","settingValue","sex","shaderSource","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","shadowRoot","shape","shape-image-threshold","shape-margin","shape-outside","shape-rendering","shapeImageThreshold","shapeMargin","shapeOutside","shapeRendering","sheet","shift","shiftKey","shiftLeft","shippingAddress","shippingOption","shippingType","show","showHelp","showModal","showModalDialog","showModelessDialog","showNotification","sidebar","sign","signal","signalingState","signature","silent","sin","singleNodeValue","sinh","sinkId","sittingToStandingTransform","size","sizeToContent","sizeX","sizeZ","sizes","skewX","skewXSelf","skewY","skewYSelf","slice","slope","slot","small","smil","smooth","smoothingTimeConstant","snapToLines","snapshotItem","snapshotLength","some","sort","sortingCode","source","sourceBuffer","sourceBuffers","sourceCapabilities","sourceFile","sourceIndex","sources","spacing","span","speak","speakAs","speaking","species","specified","specularConstant","specularExponent","speechSynthesis","speed","speedOfSound","spellcheck","splice","split","splitText","spreadMethod","sqrt","src","srcElement","srcFilter","srcObject","srcUrn","srcdoc","srclang","srcset","stack","stackTraceLimit","stacktrace","stageParameters","standalone","standby","start","startContainer","startIce","startMessages","startNotifications","startOffset","startProfiling","startRendering","startShark","startTime","startsWith","state","status","statusCode","statusMessage","statusText","statusbar","stdDeviationX","stdDeviationY","stencilFunc","stencilFuncSeparate","stencilMask","stencilMaskSeparate","stencilOp","stencilOpSeparate","step","stepDown","stepMismatch","stepUp","sticky","stitchTiles","stop","stop-color","stop-opacity","stopColor","stopImmediatePropagation","stopNotifications","stopOpacity","stopProfiling","stopPropagation","stopShark","stopped","storage","storageArea","storageName","storageStatus","store","storeSiteSpecificTrackingException","storeWebWideTrackingException","stpVersion","stream","streams","stretch","strike","string","stringValue","stringify","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeRect","strokeStyle","strokeText","strokeWidth","style","styleFloat","styleMap","styleMedia","styleSheet","styleSheetSets","styleSheets","sub","subarray","subject","submit","submitFrame","submitter","subscribe","substr","substring","substringData","subtle","subtree","suffix","suffixes","summary","sup","supported","supportedContentEncodings","supportedEntryTypes","supports","supportsSession","surfaceScale","surroundContents","suspend","suspendRedraw","swapCache","swapNode","sweepFlag","symbols","sync","sysexEnabled","system","systemCode","systemId","systemLanguage","systemXDPI","systemYDPI","tBodies","tFoot","tHead","tabIndex","table","table-layout","tableLayout","tableValues","tag","tagName","tagUrn","tags","taintEnabled","takePhoto","takeRecords","tan","tangentialPressure","tanh","target","targetElement","targetRayMode","targetRaySpace","targetTouches","targetX","targetY","tcpType","tee","tel","terminate","test","texImage2D","texImage3D","texParameterf","texParameteri","texStorage2D","texStorage3D","texSubImage2D","texSubImage3D","text","text-align","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","textAlign","textAlignLast","textAnchor","textAutospace","textBaseline","textCombineUpright","textContent","textDecoration","textDecorationBlink","textDecorationColor","textDecorationLine","textDecorationLineThrough","textDecorationNone","textDecorationOverline","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textDecorationUnderline","textEmphasis","textEmphasisColor","textEmphasisPosition","textEmphasisStyle","textIndent","textJustify","textJustifyTrim","textKashida","textKashidaSpace","textLength","textOrientation","textOverflow","textRendering","textShadow","textTracks","textTransform","textUnderlineOffset","textUnderlinePosition","then","threadId","threshold","thresholds","tiltX","tiltY","time","timeEnd","timeLog","timeOrigin","timeRemaining","timeStamp","timecode","timeline","timelineTime","timeout","timestamp","timestampOffset","timing","title","to","toArray","toBlob","toDataURL","toDateString","toElement","toExponential","toFixed","toFloat32Array","toFloat64Array","toGMTString","toISOString","toJSON","toLocaleDateString","toLocaleFormat","toLocaleLowerCase","toLocaleString","toLocaleTimeString","toLocaleUpperCase","toLowerCase","toMatrix","toMethod","toPrecision","toPrimitive","toSdp","toSource","toStaticHTML","toString","toStringTag","toSum","toTimeString","toUTCString","toUpperCase","toggle","toggleAttribute","toggleLongPressEnabled","tone","toneBuffer","tooLong","tooShort","toolbar","top","topMargin","total","totalFrameDelay","totalVideoFrames","touch-action","touchAction","touched","touches","trace","track","trackVisibility","transaction","transactions","transceiver","transferControlToOffscreen","transferFromImageBitmap","transferImageBitmap","transferIn","transferOut","transferSize","transferToImageBitmap","transform","transform-box","transform-origin","transform-style","transformBox","transformFeedbackVaryings","transformOrigin","transformPoint","transformString","transformStyle","transformToDocument","transformToFragment","transition","transition-delay","transition-duration","transition-property","transition-timing-function","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateSelf","translationX","translationY","transport","trim","trimEnd","trimLeft","trimRight","trimStart","trueSpeed","trunc","truncate","trustedTypes","turn","twist","type","typeDetail","typeMismatch","typeMustMatch","types","u2f","ubound","uint16","uint32","uint8","uint8Clamped","undefined","unescape","uneval","unicode","unicode-bidi","unicodeBidi","unicodeRange","uniform1f","uniform1fv","uniform1i","uniform1iv","uniform1ui","uniform1uiv","uniform2f","uniform2fv","uniform2i","uniform2iv","uniform2ui","uniform2uiv","uniform3f","uniform3fv","uniform3i","uniform3iv","uniform3ui","uniform3uiv","uniform4f","uniform4fv","uniform4i","uniform4iv","uniform4ui","uniform4uiv","uniformBlockBinding","uniformMatrix2fv","uniformMatrix2x3fv","uniformMatrix2x4fv","uniformMatrix3fv","uniformMatrix3x2fv","uniformMatrix3x4fv","uniformMatrix4fv","uniformMatrix4x2fv","uniformMatrix4x3fv","unique","uniqueID","uniqueNumber","unit","unitType","units","unloadEventEnd","unloadEventStart","unlock","unmount","unobserve","unpause","unpauseAnimations","unreadCount","unregister","unregisterContentHandler","unregisterProtocolHandler","unscopables","unselectable","unshift","unsubscribe","unsuspendRedraw","unsuspendRedrawAll","unwatch","unwrapKey","upDegrees","upX","upY","upZ","update","updateCommands","updateIce","updateInterval","updatePlaybackRate","updateRenderState","updateSettings","updateTiming","updateViaCache","updateWith","updated","updating","upgrade","upload","uploadTotal","uploaded","upper","upperBound","upperOpen","uri","url","urn","urns","usages","usb","usbVersionMajor","usbVersionMinor","usbVersionSubminor","useCurrentView","useMap","useProgram","usedSpace","user-select","userActivation","userAgent","userChoice","userHandle","userHint","userLanguage","userSelect","userVisibleOnly","username","usernameFragment","utterance","uuid","v8BreakIterator","vAlign","vLink","valid","validate","validateProgram","validationMessage","validity","value","valueAsDate","valueAsNumber","valueAsString","valueInSpecifiedUnits","valueMissing","valueOf","valueText","valueType","values","variable","variant","variationSettings","vector-effect","vectorEffect","velocityAngular","velocityExpansion","velocityX","velocityY","vendor","vendorId","vendorSub","verify","version","vertexAttrib1f","vertexAttrib1fv","vertexAttrib2f","vertexAttrib2fv","vertexAttrib3f","vertexAttrib3fv","vertexAttrib4f","vertexAttrib4fv","vertexAttribDivisor","vertexAttribDivisorANGLE","vertexAttribI4i","vertexAttribI4iv","vertexAttribI4ui","vertexAttribI4uiv","vertexAttribIPointer","vertexAttribPointer","vertical","vertical-align","verticalAlign","verticalOverflow","vh","vibrate","vibrationActuator","videoBitsPerSecond","videoHeight","videoTracks","videoWidth","view","viewBox","viewBoxString","viewTarget","viewTargetString","viewport","viewportAnchorX","viewportAnchorY","viewportElement","views","violatedDirective","visibility","visibilityState","visible","visualViewport","vlinkColor","vmax","vmin","voice","voiceURI","volume","vrml","vspace","vw","w","wait","waitSync","waiting","wake","wakeLock","wand","warn","wasClean","wasDiscarded","watch","watchAvailability","watchPosition","webdriver","webkitAddKey","webkitAlignContent","webkitAlignItems","webkitAlignSelf","webkitAnimation","webkitAnimationDelay","webkitAnimationDirection","webkitAnimationDuration","webkitAnimationFillMode","webkitAnimationIterationCount","webkitAnimationName","webkitAnimationPlayState","webkitAnimationTimingFunction","webkitAppearance","webkitAudioContext","webkitAudioDecodedByteCount","webkitAudioPannerNode","webkitBackfaceVisibility","webkitBackground","webkitBackgroundAttachment","webkitBackgroundClip","webkitBackgroundColor","webkitBackgroundImage","webkitBackgroundOrigin","webkitBackgroundPosition","webkitBackgroundPositionX","webkitBackgroundPositionY","webkitBackgroundRepeat","webkitBackgroundSize","webkitBackingStorePixelRatio","webkitBorderBottomLeftRadius","webkitBorderBottomRightRadius","webkitBorderImage","webkitBorderImageOutset","webkitBorderImageRepeat","webkitBorderImageSlice","webkitBorderImageSource","webkitBorderImageWidth","webkitBorderRadius","webkitBorderTopLeftRadius","webkitBorderTopRightRadius","webkitBoxAlign","webkitBoxDirection","webkitBoxFlex","webkitBoxOrdinalGroup","webkitBoxOrient","webkitBoxPack","webkitBoxShadow","webkitBoxSizing","webkitCancelAnimationFrame","webkitCancelFullScreen","webkitCancelKeyRequest","webkitCancelRequestAnimationFrame","webkitClearResourceTimings","webkitClosedCaptionsVisible","webkitConvertPointFromNodeToPage","webkitConvertPointFromPageToNode","webkitCreateShadowRoot","webkitCurrentFullScreenElement","webkitCurrentPlaybackTargetIsWireless","webkitDecodedFrameCount","webkitDirectionInvertedFromDevice","webkitDisplayingFullscreen","webkitDroppedFrameCount","webkitEnterFullScreen","webkitEnterFullscreen","webkitEntries","webkitExitFullScreen","webkitExitFullscreen","webkitExitPointerLock","webkitFilter","webkitFlex","webkitFlexBasis","webkitFlexDirection","webkitFlexFlow","webkitFlexGrow","webkitFlexShrink","webkitFlexWrap","webkitFullScreenKeyboardInputAllowed","webkitFullscreenElement","webkitFullscreenEnabled","webkitGenerateKeyRequest","webkitGetAsEntry","webkitGetDatabaseNames","webkitGetEntries","webkitGetEntriesByName","webkitGetEntriesByType","webkitGetFlowByName","webkitGetGamepads","webkitGetImageDataHD","webkitGetNamedFlows","webkitGetRegionFlowRanges","webkitGetUserMedia","webkitHasClosedCaptions","webkitHidden","webkitIDBCursor","webkitIDBDatabase","webkitIDBDatabaseError","webkitIDBDatabaseException","webkitIDBFactory","webkitIDBIndex","webkitIDBKeyRange","webkitIDBObjectStore","webkitIDBRequest","webkitIDBTransaction","webkitImageSmoothingEnabled","webkitIndexedDB","webkitInitMessageEvent","webkitIsFullScreen","webkitJustifyContent","webkitKeys","webkitLineClamp","webkitLineDashOffset","webkitLockOrientation","webkitMask","webkitMaskClip","webkitMaskComposite","webkitMaskImage","webkitMaskOrigin","webkitMaskPosition","webkitMaskPositionX","webkitMaskPositionY","webkitMaskRepeat","webkitMaskSize","webkitMatchesSelector","webkitMediaStream","webkitNotifications","webkitOfflineAudioContext","webkitOrder","webkitOrientation","webkitPeerConnection00","webkitPersistentStorage","webkitPerspective","webkitPerspectiveOrigin","webkitPointerLockElement","webkitPostMessage","webkitPreservesPitch","webkitPutImageDataHD","webkitRTCPeerConnection","webkitRegionOverset","webkitRelativePath","webkitRequestAnimationFrame","webkitRequestFileSystem","webkitRequestFullScreen","webkitRequestFullscreen","webkitRequestPointerLock","webkitResolveLocalFileSystemURL","webkitSetMediaKeys","webkitSetResourceTimingBufferSize","webkitShadowRoot","webkitShowPlaybackTargetPicker","webkitSlice","webkitSpeechGrammar","webkitSpeechGrammarList","webkitSpeechRecognition","webkitSpeechRecognitionError","webkitSpeechRecognitionEvent","webkitStorageInfo","webkitSupportsFullscreen","webkitTemporaryStorage","webkitTextFillColor","webkitTextSizeAdjust","webkitTextStroke","webkitTextStrokeColor","webkitTextStrokeWidth","webkitTransform","webkitTransformOrigin","webkitTransformStyle","webkitTransition","webkitTransitionDelay","webkitTransitionDuration","webkitTransitionProperty","webkitTransitionTimingFunction","webkitURL","webkitUnlockOrientation","webkitUserSelect","webkitVideoDecodedByteCount","webkitVisibilityState","webkitWirelessVideoPlaybackDisabled","webkitdirectory","webkitdropzone","webstore","weight","whatToShow","wheelDelta","wheelDeltaX","wheelDeltaY","whenDefined","which","white-space","whiteSpace","wholeText","widows","width","will-change","willChange","willValidate","window","withCredentials","word-break","word-spacing","word-wrap","wordBreak","wordSpacing","wordWrap","workerStart","wrap","wrapKey","writable","writableAuxiliaries","write","writeText","writeValue","writeWithoutResponse","writeln","writing-mode","writingMode","x","x1","x2","xChannelSelector","xmlEncoding","xmlStandalone","xmlVersion","xmlbase","xmllang","xmlspace","xor","xr","y","y1","y2","yChannelSelector","yandex","z","z-index","zIndex","zoom","zoomAndPan","zoomRectScreen"];function Cl(e,t){e.walk(new Ws((e=>(e instanceof No?Cl(e.tail_node(),t):e instanceof ks?t(e.value):e instanceof Uo&&(Cl(e.consequent,t),Cl(e.alternative,t)),!0))))}var Al="undefined"==typeof atob?e=>t.from(e,"base64").toString():atob,kl="undefined"==typeof btoa?e=>t.from(e).toString("base64"):btoa;function Nl(e){var t=/(?:^|[^.])\/\/# sourceMappingURL=data:application\/json(;[\w=-]*)?;base64,([+/0-9A-Za-z]*=*)\s*$/.exec(e);return t?Al(t[2]):(console.warn("inline source map not found"),null)}function wl(e,t,r){t[e]&&r.forEach((r=>{t[r]&&("object"!=typeof t[r]&&(t[r]={}),e in t[r]||(t[r][e]=t[e]))}))}function Fl(e){e&&("props"in e?e.props instanceof Map||(e.props=(e=>{var t=new Map;for(var r in e)Di(e,r)&&"$"===r.charAt(0)&&t.set(r.substr(1),e[r]);return t})(e.props)):e.props=new Map)}function Pl(e){return{props:xi(e.props)}}async function Il(e,t){var r,n,i=(t=ci(t,{compress:{},ecma:void 0,enclose:!1,ie8:!1,keep_classnames:void 0,keep_fnames:!1,mangle:{},module:!1,nameCache:null,output:null,format:null,parse:{},rename:void 0,safari10:!1,sourceMap:!1,timings:!1,toplevel:!1,warnings:!1,wrap:!1},!0)).timings&&{start:Date.now()};if(void 0===t.keep_classnames&&(t.keep_classnames=t.keep_fnames),void 0===t.rename&&(t.rename=t.compress&&t.mangle),t.output&&t.format)throw new Error("Please only specify either output or format option, preferrably format.");if(t.format=t.format||t.output||{},wl("ecma",t,["parse","compress","format"]),wl("ie8",t,["compress","mangle","format"]),wl("keep_classnames",t,["compress","mangle"]),wl("keep_fnames",t,["compress","mangle"]),wl("module",t,["parse","compress","mangle"]),wl("safari10",t,["mangle","format"]),wl("toplevel",t,["compress","mangle"]),wl("warnings",t,["compress"]),t.mangle&&(t.mangle=ci(t.mangle,{cache:t.nameCache&&(t.nameCache.vars||{}),eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,properties:!1,reserved:[],safari10:!1,toplevel:!1},!0),t.mangle.properties&&("object"!=typeof t.mangle.properties&&(t.mangle.properties={}),t.mangle.properties.keep_quoted&&(r=t.mangle.properties.reserved,Array.isArray(r)||(r=[]),t.mangle.properties.reserved=r),t.nameCache&&!("cache"in t.mangle.properties)&&(t.mangle.properties.cache=t.nameCache.props||{})),Fl(t.mangle.cache),Fl(t.mangle.properties.cache)),t.sourceMap&&(t.sourceMap=ci(t.sourceMap,{asObject:!1,content:null,filename:null,includeSources:!1,root:null,url:null},!0)),i&&(i.parse=Date.now()),e instanceof Ha)n=e;else{for(var a in"string"==typeof e&&(e=[e]),t.parse=t.parse||{},t.parse.toplevel=null,e)if(Di(e,a)&&(t.parse.filename=a,t.parse.toplevel=ha(e[a],t.parse),t.sourceMap&&"inline"==t.sourceMap.content)){if(Object.keys(e).length>1)throw new Error("inline source map only works with singular input");t.sourceMap.content=Nl(e[a])}n=t.parse.toplevel}r&&"strict"!==t.mangle.properties.keep_quoted&&((e,t)=>{function r(e){gi(t,e)}e.walk(new Ws((e=>{e instanceof Ko&&e.quote?r(e.key):e instanceof Wo&&e.quote?r(e.key.name):e instanceof Io&&Cl(e.property,r)})))})(n,r),t.wrap&&(n=n.wrap_commonjs(t.wrap)),t.enclose&&(n=n.wrap_enclose(t.enclose)),i&&(i.rename=Date.now()),i&&(i.compress=Date.now()),t.compress&&(n=new xc(t.compress,{mangle_options:t.mangle}).compress(n)),i&&(i.scope=Date.now()),t.mangle&&n.figure_out_scope(t.mangle),i&&(i.mangle=Date.now()),t.mangle&&(pc.reset(),n.compute_char_frequency(t.mangle),n.mangle_names(t.mangle)),i&&(i.properties=Date.now()),t.mangle&&t.mangle.properties&&(n=function(e,t){var r=(t=ci(t,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,only_cache:!1,regex:null,reserved:null,undeclared:!1},!0)).reserved;Array.isArray(r)||(r=[r]);var n=new Set(r);t.builtins||(e=>{Tl.forEach(n);var t={},r="object"==typeof global?global:self;function n(t){e.add(t)}["Symbol","Map","Promise","Proxy","Reflect","Set","WeakMap","WeakSet"].forEach((e=>{t[e]=r[e]||new Function})),["null","true","false","NaN","Infinity","-Infinity","undefined"].forEach(n),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp,t.Symbol,ArrayBuffer,DataView,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,eval,EvalError,Float32Array,Float64Array,Int8Array,Int16Array,Int32Array,isFinite,isNaN,JSON,t.Map,parseFloat,parseInt,t.Promise,t.Proxy,RangeError,ReferenceError,t.Reflect,t.Set,SyntaxError,TypeError,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,URIError,t.WeakMap,t.WeakSet].forEach((e=>{Object.getOwnPropertyNames(e).map(n),e.prototype&&Object.getOwnPropertyNames(e.prototype).map(n)}))})(n);var i,a=-1,o=-1,s=new Map;t.cache?(i=t.cache.props).forEach((e=>{n.add(e)})):i=new Map;var c,l=t.regex&&new RegExp(t.regex),d=!1!==t.debug;d&&(c=!0===t.debug?"":t.debug);var u=new Set,p=new Set,_=new Set,f="strict"===t.keep_quoted;return e.walk(new Ws((e=>{if(e instanceof es||e instanceof Yo)_.add(e.key.name);else if(e instanceof Po)_.add(e.property);else if(e instanceof Ko)"string"!=typeof e.key||f&&e.quote||h(e.key);else if(e instanceof Wo)f&&e.key.end.quote||h(e.key.name);else if(e instanceof Fo){var r=!!t.undeclared;if(!r){for(var n=e;n.expression;)n=n.expression;r=!(n.thedef&&n.thedef.undeclared)}!r||f&&e.quote||h(e.property)}else e instanceof Io?f||Cl(e.property,h):e instanceof Ao&&"Object.defineProperty"==e.expression.print_to_string()?Cl(e.args[1],h):e instanceof Bo&&"in"===e.operator&&Cl(e.left,h)}))),e.transform(new Ks((e=>{e instanceof es||e instanceof Yo?e.key.name=v(e.key.name):e instanceof Po?e.property=v(e.property):e instanceof Ko?"string"!=typeof e.key||f&&e.quote||(e.key=y(e.key)):e instanceof Wo?f&&e.key.end.quote||(e.key.name=y(e.key.name)):e instanceof Fo?f&&e.quote||(e.property=y(e.property)):!t.keep_quoted&&e instanceof Io?e.property=b(e.property):e instanceof Ao&&"Object.defineProperty"==e.expression.print_to_string()?e.args[1]=b(e.args[1]):e instanceof Bo&&"in"===e.operator&&(e.left=b(e.left))})));function m(e){return!p.has(e)&&!n.has(e)&&(t.only_cache?i.has(e):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(e))}function g(e){return!(l&&!l.test(e))&&!n.has(e)&&(i.has(e)||u.has(e))}function h(e){m(e)&&u.add(e),g(e)||p.add(e)}function y(e){if(!g(e))return e;var t=i.get(e);if(!t){if(d){var r="_$"+e+"$"+c+"_";m(r)&&(t=r)}if(!t)do{t=pc(++a)}while(!m(t));i.set(e,t)}return t}function v(e){let t=s.get(e);return t||(t=pc(++o),s.set(e,t)),t}function b(e){return e.transform(new Ks((e=>{if(e instanceof No){var t=e.expressions.length-1;e.expressions[t]=b(e.expressions[t])}else e instanceof ks?e.value=y(e.value):e instanceof Uo&&(e.consequent=b(e.consequent),e.alternative=b(e.alternative));return e})))}}(n,t.mangle.properties)),i&&(i.format=Date.now());var o={};if(t.format.ast&&(o.ast=n),!Di(t.format,"code")||t.format.code){if(t.sourceMap&&(t.format.source_map=await(async e=>{var t;e=ci(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var r=new ri.SourceMapGenerator({file:e.file,sourceRoot:e.root});return e.orig&&(t=await new ri.SourceMapConsumer(e.orig)).sources.forEach((e=>{var n=t.sourceContentFor(e,!0);n&&r.setSourceContent(e,n)})),{add(n,i,a,o,s,c){if(t){var l=t.originalPositionFor({line:o,column:s});if(null===l.source)return;n=l.source,o=l.line,s=l.column,c=l.name||c}r.addMapping({generated:{line:i+e.dest_line_diff,column:a},original:{line:o+e.orig_line_diff,column:s},source:n,name:c})},get(){return r},toString(){return r.toString()},destroy(){t&&t.destroy&&t.destroy()}}})({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root}),t.sourceMap.includeSources)){if(e instanceof Ha)throw new Error("original source content unavailable");for(var a in e)Di(e,a)&&t.format.source_map.get().setSourceContent(a,e[a])}delete t.format.ast,delete t.format.code;var s=nc(t.format);if(n.print(s),o.code=s.get(),t.sourceMap)if(t.sourceMap.asObject?o.map=t.format.source_map.get().toJSON():o.map=t.format.source_map.toString(),"inline"==t.sourceMap.url){var c="object"==typeof o.map?JSON.stringify(o.map):o.map;o.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+kl(c)}else t.sourceMap.url&&(o.code+="\n//# sourceMappingURL="+t.sourceMap.url)}return t.nameCache&&t.mangle&&(t.mangle.cache&&(t.nameCache.vars=Pl(t.mangle.cache)),t.mangle.properties&&t.mangle.properties.cache&&(t.nameCache.props=Pl(t.mangle.properties.cache))),t.format&&t.format.source_map&&t.format.source_map.destroy(),i&&(i.end=Date.now(),o.timings={parse:.001*(i.rename-i.parse),rename:.001*(i.compress-i.rename),compress:.001*(i.scope-i.compress),scope:.001*(i.mangle-i.scope),mangle:.001*(i.properties-i.mangle),properties:.001*(i.format-i.properties),format:.001*(i.end-i.format),total:.001*(i.end-i.start)}),o}const Ol=async(e,t)=>{const r={output:e,sourceMap:null,diagnostics:[]};if(t){const e=t.mangle;if(e){const t=e.properties;t&&t.regex&&(t.regex=new RegExp(t.regex))}t.sourceMap&&(t.compress=void 0)}try{const n=await Il(e,t);r.output=n.code,r.sourceMap="string"==typeof n.map?JSON.parse(n.map):n.map;const i=t.compress;i&&i.module&&r.output.endsWith("};")&&(r.output=r.output.substring(0,r.output.length-1))}catch(t){t instanceof Error&&console.log(t.stack),Ml(e,r.diagnostics,t)}return r},Ml=(e,t,r)=>{const n={level:"error",type:"build",language:"javascript",header:"Minify JS",code:"",messageText:r.message,absFilePath:null,relFilePath:null,lines:[]},i=r;if("number"==typeof i.line&&i.line>-1){const t=ce(e),r={lineIndex:i.line-1,lineNumber:i.line,text:t[i.line-1],errorCharStart:i.col,errorLength:0};n.lineNumber=r.lineNumber,n.columnNumber=r.errorCharStart;const a=r.text.slice(n.columnNumber);for(let e=0;e<a.length&&!Rl.has(a.charAt(e));e++)r.errorLength++;if(n.lines.push(r),0===r.errorLength&&r.errorCharStart>0&&(r.errorLength=1,r.errorCharStart--),r.lineIndex>0){const e={lineIndex:r.lineIndex-1,lineNumber:r.lineNumber-1,text:t[r.lineIndex-1],errorCharStart:-1,errorLength:-1};n.lines.unshift(e)}if(r.lineIndex+1<t.length){const e={lineIndex:r.lineIndex+1,lineNumber:r.lineNumber+1,text:t[r.lineIndex+1],errorCharStart:-1,errorLength:-1};n.lines.push(e)}}t.push(n)},Rl=new Set([" ","=",".",",","?",":",";","(",")","{","}","[","]","|","'",'"',"`"]),Ll=async(e,t,r)=>{if(!r.minify&&"es5"!==r.sourceTarget||""===r.input)return{output:r.input,diagnostics:[],sourceMap:r.sourceMap};const n="debug"===e.logLevel,i=await t.cache.createKey("optimizeModule","terser5.6.1_7",r,n),a=await t.cache.get(i);if(null!=a){const e=await t.cache.get(i+"Map");return{output:a,diagnostics:[],sourceMap:e?JSON.parse(e):null}}let o,s=r.input;if(r.isCore&&(s=s.replace(/\/\* IS_ESM_BUILD \*\//g,"&& false /* IS_SYSTEM_JS_BUILD */")),"es5"===r.sourceTarget||r.minify){o=Bl(e,r.sourceTarget,n),e.sourceMap&&(o.sourceMap={content:r.sourceMap});const t=o.compress,i=o.mangle;"es5"!==r.sourceTarget&&r.isCore&&(n||(t.passes=2,t.global_defs={supportsListenerOptions:!0,"plt.$cssShim$":!1},t.pure_funcs=t.pure_funcs||[],t.pure_funcs=["getHostRef",...t.pure_funcs]),i.properties={regex:"^\\$.+\\$$",debug:n},t.inline=1,t.unsafe=!0,t.unsafe_undefined=!0)}const c="es5"===r.sourceTarget,l=await t.worker.prepareModule(s,o,c,r.inlineHelpers);return null!=l&&"string"==typeof l.output&&0===l.diagnostics.length&&null!=t&&(r.isCore&&(l.output=l.output.replace(/disconnectedCallback\(\)\{\},/g,"")),await t.cache.put(i,l.output),l.sourceMap&&await t.cache.put(i+"Map",JSON.stringify(l.sourceMap))),l},Bl=(e,t,r)=>{const n={ie8:!1,safari10:!!e.extras.safari10,format:{},sourceMap:e.sourceMap};return"es5"===t?(n.ecma=n.format.ecma=5,n.compress=!1,n.mangle=!0):(n.mangle={properties:{regex:"^\\$.+\\$$"}},n.compress={pure_getters:!0,keep_fargs:!1,passes:2},n.ecma=n.format.ecma=n.compress.ecma=2018,n.toplevel=!0,n.module=!0,n.mangle.toplevel=!0,n.compress.arrows=!0,n.compress.module=!0,n.compress.toplevel=!0),r&&(n.mangle={keep_fnames:!0},n.compress={},n.compress.drop_console=!1,n.compress.drop_debugger=!1,n.compress.pure_funcs=[],n.format.beautify=!0,n.format.indent_level=2,n.format.comments="all"),n},Ul=async(e,t,r,n)=>{var i;const a={output:e,diagnostics:[],sourceMap:null};if(r){const r=p.transpileModule(e,{fileName:"module.ts",compilerOptions:{sourceMap:!!t.sourceMap,allowJs:!0,target:p.ScriptTarget.ES5,module:p.ModuleKind.ESNext,removeComments:!1,isolatedModules:!0,skipLibCheck:!0,noEmitHelpers:!n,importHelpers:!n},reportDiagnostics:!1});if(a.output=r.outputText,r.sourceMapText){const e=((e,t)=>{if(!e)return t;if(!t)return e;var r=new ni(e),n=new ni(t),i=new ii;return n.eachMapping((e=>{if(null!=e.originalLine){var t=r.originalPositionFor({line:e.originalLine,column:e.originalColumn});null!=t.source&&i.addMapping({original:{line:t.line,column:t.column},generated:{line:e.generatedLine,column:e.generatedColumn},source:t.source,name:t.name})}})),[r,n].forEach((e=>{e.sources.forEach((t=>{i._sources.add(t);var r=e.sourceContentFor(t);null!=r&&i.setSourceContent(t,r)}))})),i._sourceRoot=e.sourceRoot,i._file=e.file,JSON.parse(i.toString())})(null===(i=t.sourceMap)||void 0===i?void 0:i.content,JSON.parse(r.sourceMapText));t.sourceMap={content:e}}}return t?Ol(a.output,t):a},jl=(e,t,r,n,i)=>{if(!Array.isArray(i)||0===i.length)return[];const a=r.pathname.split("/");return i.filter((r=>{if("function"==typeof e.filterAnchor)try{if(!1===e.filterAnchor(r,n))return!1}catch(e){return re(t,e),!1}return Vl(t,r)})).map((r=>{if("function"==typeof e.normalizeUrl)try{const i=e.normalizeUrl(r.href,n);return zl(t,i.href,n)}catch(e){re(t,e)}return zl(t,r.href,n)})).filter((r=>{if("function"==typeof e.filterUrl)try{if(!1===e.filterUrl(r,n))return!1}catch(e){return re(t,e),!1}return Hl(t,r,n,a)})).map((r=>Wl(e,t,r))).reduce(((e,t)=>(e.includes(t)||e.push(t),e)),[]).sort(((e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?-1:r>n?1:e<t?-1:e>t?1:0}))},Vl=(e,t,r)=>{try{let e=t.href;if("string"==typeof t.download)return!1;if("string"==typeof e&&(e=e.trim(),""!==e&&!e.startsWith("#")&&!e.startsWith("?")))return"string"!=typeof t.target||"_self"===t.target.trim().toLowerCase()}catch(t){re(e,t)}return!1},zl=(e,t,r)=>{if("string"==typeof t)try{const e=new URL(t,r.href);e.protocol=r.href,e.hash="",e.search="";const n=e.pathname.split("/"),i=n[n.length-1];return"index.html"!==i&&"index.htm"!==i||(n.pop(),e.pathname=n.join("/")),e}catch(t){re(e,t)}return null},Hl=(e,t,r,n)=>{try{if(null!=t.hostname&&null!=r.hostname&&t.hostname!==r.hostname)return!1;if(Kl(t.pathname))return!1;const e=t.pathname.split("/");if(e.length<n.length)return!1;for(let t=0;t<n.length;t++){const r=n[t],i=e[t];if(n.length-1===t&&""===r)break;if(r!==i)return!1}return!0}catch(t){re(e,t)}return!1},Wl=(e,t,r)=>{try{if(null!=r&&"string"==typeof r.href){let t=r.href.trim();if(e.trailingSlash){if(!t.endsWith("/")){const e=r.pathname.split("/");e[e.length-1].includes(".")||(t+="/")}}else t.endsWith("/")&&"/"!==r.pathname&&(t=t.slice(0,-1));return t}}catch(e){re(t,e)}return null},Kl=e=>Gl.has(Jl(e).toLowerCase()),Jl=e=>{const t=e.split(".");return t[t.length-1].toLowerCase()},Gl=new Set(["zip","rar","tar","gz","bz2","png","jpeg","jpg","gif","pdf","tiff","psd"]),$l=e=>{const t={module:void 0,id:e,diagnostics:[]};if(i)try{const r=require("fs"),n=require("path");t.id=n.resolve(e),delete require.cache[t.id],require.extensions[".ts"]=(e,n)=>{let i=r.readFileSync(n,"utf8");if(n.endsWith(".ts")){const e=p.transpileModule(i,{fileName:n,compilerOptions:{module:p.ModuleKind.CommonJS,moduleResolution:p.ModuleResolutionKind.NodeJs,esModuleInterop:!0,target:p.ScriptTarget.ES2017,allowJs:!0}});i=e.outputText,t.diagnostics.push(...e.diagnostics.map(Ae))}else i=i.replace(/export\s+\w+\s+(\w+)/gm,"exports.$1");try{e._compile(i,n)}catch(e){re(t.diagnostics,e)}},t.module=require(t.id),require.extensions[".ts"]=void 0}catch(e){re(t.diagnostics,e)}return t},ql=(e,t)=>{const r={};if(G(t)){const n=$l(t);e.push(...n.diagnostics),null!=n.module&&"object"==typeof n.module&&(null!=n.module.config&&"object"==typeof n.module.config?Object.assign(r,n.module.config):Object.assign(r,n.module))}return r},Xl=(e,t,r)=>{const n=t.href,i={url:n,addModulePreloads:!0,approximateLineWidth:100,hashAssets:"querystring",inlineExternalStyleSheets:!1,minifyScriptElements:!0,minifyStyleElements:!0,removeAttributeQuotes:!0,removeBooleanAttributeQuotes:!0,removeEmptyAttributes:!0,removeHtmlComments:!0};if(null===e.canonicalUrl||!1===e.canonicalUrl)i.canonicalUrl=null;else if("function"==typeof e.canonicalUrl)try{i.canonicalUrl=e.canonicalUrl(t)}catch(e){re(r,e)}else i.canonicalUrl=n;if("function"==typeof e.hydrateOptions)try{const r=e.hydrateOptions(t);null!=r&&(r.prettyHtml&&"boolean"!=typeof r.removeAttributeQuotes&&(i.removeAttributeQuotes=!1),Object.assign(i,r))}catch(e){re(r,e)}return i},Yl=e=>{const t=Xe(e.dir,e.buildDir);return Ge("/",t)+"/"},Ql=(e,t)=>{const r=Array.from(e.querySelectorAll("link[rel=modulepreload]")).map((e=>e.getAttribute("href"))),n=t.filter((e=>!r.includes(e))).map((t=>Zl(e,t))),i=e.head,a=i.querySelector("script");if(a)for(const e of n)i.insertBefore(e,a);else for(const e of n)i.appendChild(e)},Zl=(e,t)=>{const r=e.createElement("link");return r.setAttribute("rel","modulepreload"),r.setAttribute("href",t),r},ed=async e=>{const t={output:e.input,diagnostics:[],sourceMap:null};try{const r=!!e.pretty,n={extras:{safari10:!0}},i="es5"===e.target?"es5":"latest",a=Bl(n,i,r),o=await Ol(e.input,a);o.diagnostics.length>0?t.diagnostics.push(...o.diagnostics):(t.output=o.output,t.sourceMap=o.sourceMap)}catch(e){re(t.diagnostics,e)}return t},td=(e,t)=>"sc-"+e+(t&&t!==E?"-"+t:""),rd=async(e,t)=>{const r=Array.from(e.querySelectorAll("script")).filter((e=>{if(e.hasAttribute("src")||e.hasAttribute(_d))return!1;const t=e.getAttribute("type");return"string"!=typeof t||"module"===t||"text/javascript"===t}));0!==r.length&&await Promise.all(r.map((async e=>{const r=e.innerHTML.trim();if(r.length>0){const n={input:r,sourceMap:!1,target:"latest"};"module"!==e.getAttribute("type")&&(n.target="es5");const i=await ed(n);0===i.diagnostics.length&&(e.innerHTML=i.output),t&&e.setAttribute(_d,"")}})))},nd=async(e,t,r,n,i)=>{const a=Array.from(r.querySelectorAll("style")).filter((e=>!e.hasAttribute(_d)));await Promise.all(a.map((async r=>{const a=r.innerHTML.trim();if(a.length>0){const o=await Tn({input:a,minify:!0,async resolveUrl(r){const i=new URL(r,n),a=await pd(e,t,i);return i.searchParams.append("v",a),i.pathname+i.search}});0===o.diagnostics.length&&(r.innerHTML=o.output),i&&r.setAttribute(_d,"")}})))},id="\n(function(){\nvar s=document.querySelector('[data-stencil-namespace=\"__NAMESPACE__\"]');\ns&&((s['data-opts']=s['data-opts']||{}).exclude=__EXCLUDE__);\n})();\n".replace(/\n/g,"").trim(),ad=e=>{const t=e.querySelectorAll('link[rel="modulepreload"]');for(let e=t.length-1;e>=0;e--){const r=t[e].getAttribute("href");r&&r.includes("/p-")&&t[e].remove()}},od=e=>{const t=e.querySelectorAll("script[data-stencil]");for(let e=t.length-1;e>=0;e--)t[e].remove()},sd=async(e,t,r,n,i,a,o)=>{const s=Array.from(n.querySelectorAll(a));for(const n of s)for(const a of o){const o=ld(a,n.getAttribute(a));for(const s of o){const o=new URL(s.src,i);if(o.hostname===i.hostname&&"querystring"===t.hashAssets&&!o.searchParams.has("v"))try{const t=await pd(e,r,o);if(G(t)){o.searchParams.append("v",t);const e=dd(o,s.descriptor);n.setAttribute(a,e)}}catch(e){}}}},cd=async(e,t,r,n,i,a)=>{const o=a[0],s=a[1];if(G(o)){if(s&&("img"===o||"source"===o))for(const i of["src","srcset"]){const a=ld(i,s[i]);for(const o of a){const a=new URL(o.src,n);if(a.hostname===n.hostname&&"querystring"===t.hashAssets&&!a.searchParams.has("v"))try{const t=await pd(e,r,a);if(G(t)){a.searchParams.append("v",t);const e=dd(a,o.descriptor);s[i]=e}}catch(e){}}}for(let o=2,s=a.length;o<s;o++)Array.isArray(a[o])&&await cd(e,t,r,n,i,a[o])}},ld=(e,t)=>{const r=[];return G(t)&&("srcset"===e.toLowerCase()?t.split(",").map((e=>e.trim())).filter((e=>e.length>0)).forEach((e=>{const t=e.split(" ");t[0].length>0&&r.push({src:t[0],descriptor:t[1]})})):r.push({src:t})),r},dd=(e,t)=>{let r=e.pathname+e.search;return G(t)&&(r+=" "+t),r},ud=new Map,pd=async(e,t,r)=>{let n=ud.get(r.pathname);if(!n){const i=Ge(t,r.pathname);n=e.generateFileHash(i,10),ud.set(r.pathname,n)}return n},_d="data-m",fd={buildId:null,componentGraph:null,prerenderConfig:null,ensuredDirs:null,templateHtml:null,hashedFile:null},md=e=>(e.buildId!==fd.buildId&&(fd.buildId=e.buildId,fd.componentGraph=null,fd.prerenderConfig=null,fd.ensuredDirs=new Set,fd.templateHtml=null,fd.hashedFile=new Set),fd),gd=(e,t,r)=>{if(null!=r){if(null==t.componentGraph){const n=JSON.parse(e.readFileSync(r));t.componentGraph=new Map(Object.entries(n))}return t.componentGraph}},hd=(e,t,r)=>{const n=[];for(;"string"==typeof(r=me(e.platformPath.dirname(r)))&&r.length>0&&!Y(r);)n.push(r);n.reverse();for(let r=0;r<n.length;r++){const i=n[r];t.ensuredDirs.has(i)||(t.ensuredDirs.add(i),e.createDirSync(i))}};function yd(e){var t="";e=e<0?-e<<1|1:e<<1;do{var r=31&e;(e>>>=5)>0&&(r|=32),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[r]}while(e>0);return t}class vd{constructor(e){this.bits=e instanceof vd?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(31&e)}has(e){return!!(this.bits[e>>5]&1<<(31&e))}}class bd{constructor(e,t,r){this.start=e,this.end=t,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new bd(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;for(;t;)e(t),t=t.next}eachPrevious(e){let t=this;for(;t;)e(t),t=t.previous}edit(e,t,r){return this.content=e,r||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}split(e){const t=e-this.start,r=this.original.slice(0,t),n=this.original.slice(t);this.original=r;const i=new bd(e,this.end,n);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)}}function Ed(){return"undefined"!=typeof window&&"function"==typeof window.btoa?e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof t?e=>t.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const xd=Ed();class Dd{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=(e=>{for(var t=0,r=0,n=0,i=0,a="",o=0;o<e.length;o++){var s=e[o];if(o>0&&(a+=";"),0!==s.length){for(var c=0,l=[],d=0,u=s;d<u.length;d++){var p=u[d],_=yd(p[0]-c);c=p[0],p.length>1&&(_+=yd(p[1]-t)+yd(p[2]-r)+yd(p[3]-n),t=p[1],r=p[2],n=p[3]),5===p.length&&(_+=yd(p[4]-i),i=p[4]),l.push(_)}a+=l.join(",")}}return a})(e.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+xd(this.toString())}}function Sd(e,t){const r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let e=r.length;for(;e--;)r[e]=".."}return r.concat(n).join("/")}const Td=Object.prototype.toString;function Cd(e){const t=e.split("\n"),r=[];for(let e=0,n=0;e<t.length;e++)r.push(n),n+=t[e].length+1;return e=>{let t=0,n=r.length;for(;t<n;){const i=t+n>>1;e<r[i]?n=i:t=i+1}const i=t-1;return{line:i,column:e-r[i]}}}class Ad{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,t,r,n){if(t.length){const t=[this.generatedCodeColumn,e,r.line,r.column];n>=0&&t.push(n),this.rawSegments.push(t)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null}addUneditedChunk(e,t,r,n,i){let a=t.start,o=!0;for(;a<t.end;)(this.hires||o||i.has(a))&&this.rawSegments.push([this.generatedCodeColumn,e,n.line,n.column]),"\n"===r[a]?(n.line+=1,n.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(n.column+=1,this.generatedCodeColumn+=1,o=!1),a+=1;this.pending=null}advance(e){if(!e)return;const t=e.split("\n");if(t.length>1){for(let e=0;e<t.length-1;e++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}}const kd="\n",Nd={insertLeft:!1,insertRight:!1,storeName:!1};class wd{constructor(e,t={}){const r=new bd(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new vd},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0}}),this.byStart[0]=r,this.byEnd[e.length]=r}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const r=this.byEnd[e];return r?r.appendLeft(t):this.intro+=t,this}appendRight(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const r=this.byStart[e];return r?r.appendRight(t):this.outro+=t,this}clone(){const e=new wd(this.original,{filename:this.filename});let t=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=t.clone();for(;t;){e.byStart[r.start]=r,e.byEnd[r.end]=r;const n=t.next,i=n&&n.clone();i&&(r.next=i,i.previous=r,r=i),t=n}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new vd(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const t=Object.keys(this.storedNames),r=new Ad(e.hires),n=Cd(this.original);return this.intro&&r.advance(this.intro),this.firstChunk.eachNext((e=>{const i=n(e.start);e.intro.length&&r.advance(e.intro),e.edited?r.addEdit(0,e.content,i,e.storeName?t.indexOf(e.original):-1):r.addUneditedChunk(0,e,this.original,i,this.sourcemapLocations),e.outro.length&&r.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?Sd(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:t,mappings:r.raw}}generateMap(e){return new Dd(this.generateDecodedMap(e))}_ensureindentStr(){void 0===this.indentStr&&(this.indentStr=(e=>{const t=e.split("\n"),r=t.filter((e=>/^\t+/.test(e))),n=t.filter((e=>/^ {2,}/.test(e)));if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";const i=n.reduce(((e,t)=>{const r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),1/0);return new Array(i+1).join(" ")})(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),null===this.indentStr?"\t":this.indentStr}indent(e,t){const r=/^[^\r\n]/gm;var n;if(n=e,"[object Object]"===Td.call(n)&&(t=e,e=void 0),void 0===e&&(this._ensureindentStr(),e=this.indentStr||"\t"),""===e)return this;const i={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((e=>{for(let t=e[0];t<e[1];t+=1)i[t]=!0}));let a=!1!==t.indentStart;const o=t=>a?`${e}${t}`:(a=!0,t);this.intro=this.intro.replace(r,o);let s=0,c=this.firstChunk;for(;c;){const t=c.end;if(c.edited)i[s]||(c.content=c.content.replace(r,o),c.content.length&&(a="\n"===c.content[c.content.length-1]));else for(s=c.start;s<t;){if(!i[s]){const t=this.original[s];"\n"===t?a=!0:"\r"!==t&&a&&(a=!1,s===c.start||(this._splitChunk(c,s),c=c.next),c.prependRight(e))}s+=1}s=c.end,c=c.next}return this.outro=this.outro.replace(r,o),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,t){return Nd.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Nd.insertLeft=!0),this.appendLeft(e,t)}insertRight(e,t){return Nd.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Nd.insertRight=!0),this.prependRight(e,t)}move(e,t,r){if(r>=e&&r<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(r);const n=this.byStart[e],i=this.byEnd[t],a=n.previous,o=i.next,s=this.byStart[r];if(!s&&i===this.lastChunk)return this;const c=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),c&&(c.next=n),s&&(s.previous=i),n.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=n.previous,this.lastChunk.next=null),n.previous=c,i.next=s||null,c||(this.firstChunk=n),s||(this.lastChunk=i),this}overwrite(e,t,r,n){return n=n||{},this.update(e,t,r,{...n,overwrite:!n.contentOnly})}update(e,t,r,n){if("string"!=typeof r)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===n&&(Nd.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Nd.storeName=!0),n={storeName:!0});const i=void 0!==n&&n.storeName,a=void 0!==n&&n.overwrite;if(i){const r=this.original.slice(e,t);Object.defineProperty(this.storedNames,r,{writable:!0,value:!0,enumerable:!0})}const o=this.byStart[e],s=this.byEnd[t];if(o){let e=o;for(;e!==s;){if(e.next!==this.byStart[e.end])throw new Error("Cannot overwrite across a split point");e=e.next,e.edit("",!1)}o.edit(r,i,!a)}else{const n=new bd(e,t,"").edit(r,i);s.next=n,n.previous=s}return this}prepend(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const r=this.byEnd[e];return r?r.prependLeft(t):this.intro=t+this.intro,this}prependRight(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const r=this.byStart[e];return r?r.prependRight(t):this.outro=t+this.outro,this}remove(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);let r=this.byStart[e];for(;r;)r.intro="",r.outro="",r.edit(""),r=t>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(kd);if(-1!==e)return this.outro.substr(e+1);let t=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(e=r.outro.lastIndexOf(kd),-1!==e)return r.outro.substr(e+1)+t;t=r.outro+t}if(r.content.length>0){if(e=r.content.lastIndexOf(kd),-1!==e)return r.content.substr(e+1)+t;t=r.content+t}if(r.intro.length>0){if(e=r.intro.lastIndexOf(kd),-1!==e)return r.intro.substr(e+1)+t;t=r.intro+t}}while(r=r.previous);return e=this.intro.lastIndexOf(kd),-1!==e?this.intro.substr(e+1)+t:this.intro+t}slice(e=0,t=this.original.length){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;let r="",n=this.firstChunk;for(;n&&(n.start>e||n.end<=e);){if(n.start<t&&n.end>=t)return r;n=n.next}if(n&&n.edited&&n.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const i=n;for(;n;){!n.intro||i===n&&n.start!==e||(r+=n.intro);const a=n.start<t&&n.end>=t;if(a&&n.edited&&n.end!==t)throw new Error(`Cannot use replaced character ${t} as slice end anchor.`);const o=i===n?e-n.start:0,s=a?n.content.length+t-n.end:n.content.length;if(r+=n.content.slice(o,s),!n.outro||a&&n.end!==t||(r+=n.outro),a)break;n=n.next}return r}snip(e,t){const r=this.clone();return r.remove(0,e),r.remove(t,r.original.length),r}_split(e){if(this.byStart[e]||this.byEnd[e])return;let t=this.lastSearchedChunk;const r=e>t.end;for(;t;){if(t.contains(e))return this._splitChunk(t,e);t=r?this.byStart[t.end]:this.byEnd[t.start]}}_splitChunk(e,t){if(e.edited&&e.content.length){const r=Cd(this.original)(t);throw new Error(`Cannot split a chunk that has already been edited (${r.line}:${r.column} – "${e.original}")`)}const r=e.split(t);return this.byEnd[t]=e,this.byStart[t]=r,this.byEnd[r.end]=r,e===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,t=this.firstChunk;for(;t;)e+=t.toString(),t=t.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0}length(){let e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.lastChunk;do{const e=r.end,n=r.trimEnd(t);if(r.end!==e&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),n)return!0;r=r.previous}while(r);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.firstChunk;do{const e=r.end,n=r.trimStart(t);if(r.end!==e&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),n)return!0;r=r.next}while(r);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,t){function r(e,r){return"string"==typeof t?t.replace(/\$(\$|&|\d+)/g,((t,r)=>"$"===r?"$":"&"===r?e[0]:+r<e.length?e[+r]:`$${r}`)):t(...e,e.index,r,e.groups)}if(e.global)((e,t)=>{let r;const n=[];for(;r=e.exec(t);)n.push(r);return n})(e,this.original).forEach((e=>{null!=e.index&&this.overwrite(e.index,e.index+e[0].length,r(e,this.original))}));else{const t=this.original.match(e);t&&null!=t.index&&this.overwrite(t.index,t.index+t[0].length,r(t,this.original))}return this}_replaceString(e,t){const{original:r}=this,n=r.indexOf(e);return-1!==n&&this.overwrite(n,n+e.length,t),this}replace(e,t){return"string"==typeof e?this._replaceString(e,t):this._replaceRegexp(e,t)}_replaceAllString(e,t){const{original:r}=this,n=e.length;for(let i=r.indexOf(e);-1!==i;i=r.indexOf(e,i+n))this.overwrite(i,i+n,t);return this}replaceAll(e,t){if("string"==typeof e)return this._replaceAllString(e,t);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,t)}}const Fd="-shadowcsshost",Pd=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Id=new RegExp("(-shadowcsshost"+Pd,"gim"),Od=new RegExp("(-shadowcsscontext"+Pd,"gim"),Md=new RegExp("(-shadowcssslotted"+Pd,"gim"),Rd="-shadowcsshost-no-combinator",Ld=/-shadowcsshost-no-combinator([^\s]*)/,Bd=[/::shadow/g,/::content/g],Ud=/-shadowcsshost/gim,jd=/:host/gim,Vd=/::slotted/gim,zd=/:host-context/gim,Hd=/\/\*\s*[\s\S]*?\*\//g,Wd=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,Kd=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Jd=/([{}])/g,Gd=/(^.*?[^\\])??((:+)(.*)|$)/,$d="%BLOCK%",qd=(e,t)=>{const r=Xd(e);let n=0;return r.escapedString.replace(Kd,((...e)=>{const i=e[2];let a="",o=e[4],s="";o&&o.startsWith("{%BLOCK%")&&(a=r.blocks[n++],o=o.substring($d.length+1),s="{");const c=t({selector:i,content:a});return`${e[1]}${c.selector}${e[3]}${s}${c.content}${o}`}))},Xd=e=>{const t=e.split(Jd),r=[],n=[];let i=0,a=[];for(let e=0;e<t.length;e++){const o=t[e];"}"===o&&i--,i>0?a.push(o):(a.length>0&&(n.push(a.join("")),r.push($d),a=[]),r.push(o)),"{"===o&&i++}return a.length>0&&(n.push(a.join("")),r.push($d)),{escapedString:r.join(""),blocks:n}},Yd=(e,t,r)=>e.replace(t,((...e)=>{if(e[2]){const t=e[2].split(","),n=[];for(let i=0;i<t.length;i++){const a=t[i].trim();if(!a)break;n.push(r(Rd,a,e[3]))}return n.join(",")}return Rd+e[3]})),Qd=(e,t,r)=>e+t.replace(Fd,"")+r,Zd=(e,t,r)=>t.indexOf(Fd)>-1?Qd(e,t,r):e+t+r+", "+t+" "+e+r,eu=(e,t)=>e.replace(Gd,((e,r="",n,i="",a="")=>r+t+i+a)),tu=(e,t,r,n,i)=>qd(e,(e=>{let i=e.selector,a=e.content;return"@"!==e.selector[0]?i=((e,t,r,n)=>e.split(",").map((e=>n&&e.indexOf("."+n)>-1?e.trim():((e,t)=>!(e=>(e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(t).test(e))(e,t)?((e,t,r)=>{const n="."+(t=t.replace(/\[is=([^\]]*)\]/g,((e,...t)=>t[0]))),i=e=>{let i=e.trim();if(!i)return"";if(e.indexOf(Rd)>-1)i=((e,t,r)=>{if(Ud.lastIndex=0,Ud.test(e)){const t=`.${r}`;return e.replace(Ld,((e,r)=>eu(r,t))).replace(Ud,t+" ")}return t+" "+e})(e,t,r);else{const t=e.replace(Ud,"");t.length>0&&(i=eu(t,n))}return i},a=(e=>{const t=[];let r=0;return{content:(e=e.replace(/(\[[^\]]*\])/g,((e,n)=>{const i=`__ph-${r}__`;return t.push(n),r++,i}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,((e,n,i)=>{const a=`__ph-${r}__`;return t.push(i),r++,n+a})),placeholders:t}})(e);let o,s="",c=0;const l=/( |>|\+|~(?!=))\s*/g;let d=!((e=a.content).indexOf(Rd)>-1);for(;null!==(o=l.exec(e));){const t=o[1],r=e.slice(c,o.index).trim();d=d||r.indexOf(Rd)>-1,s+=`${d?i(r):r} ${t} `,c=l.lastIndex}const u=e.substring(c);return d=d||u.indexOf(Rd)>-1,s+=d?i(u):u,p=a.placeholders,s.replace(/__ph-(\d+)__/g,((e,t)=>p[+t]));var p})(e,t,r).trim():e.trim())).join(", "))(e.selector,t,r,n):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(a=tu(e.content,t,r,n)),{selector:i.replace(/\s{2,}/g," ").trim(),content:a}})),ru=(e,t,r)=>{const n=t+"-h",i=t+"-s",a=e.match(Wd)||[];e=e.replace(Hd,"");const o=[];if(r){const t=e=>{const t=`/*!@___${o.length}___*/`,r=`/*!@${e.selector}*/`;return o.push({placeholder:t,comment:r}),e.selector=t+e.selector,e};e=qd(e,(e=>"@"!==e.selector[0]?t(e):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")?(e.content=qd(e.content,t),e):e))}const s=((e,t,r,n,i)=>{const a=((e,t)=>{const r="."+t+" > ",n=[];return e=e.replace(Md,((...e)=>{if(e[2]){const t=e[2].trim(),i=e[3],a=r+t+i;let o="";for(let t=e[4]-1;t>=0;t--){const r=e[5][t];if("}"===r||","===r)break;o=r+o}const s=o+a,c=`${o.trimRight()}${a.trim()}`;if(s.trim()!==c.trim()){const e=`${c}, ${s}`;n.push({orgSelector:s,updatedSelector:e})}return a}return Rd+e[3]})),{selectors:n,cssText:e}})(e=(e=>Yd(e,Od,Zd))(e=(e=>Yd(e,Id,Qd))(e=e.replace(zd,"-shadowcsscontext").replace(jd,Fd).replace(Vd,"-shadowcssslotted"))),n);return e=(e=>Bd.reduce(((e,t)=>e.replace(t," ")),e))(e=a.cssText),t&&(e=tu(e,t,r,n)),{cssText:(e=(e=e.replace(/-shadowcsshost-no-combinator/g,`.${r}`)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:a.selectors}})(e,t,n,i);return e=[s.cssText,...a].join("\n"),r&&o.forEach((({placeholder:t,comment:r})=>{e=e.replace(t,r)})),s.slottedSelectors.forEach((t=>{e=e.replace(t.orgSelector,t.updatedSelector)})),e};function nu(e,t){if("string"!=typeof t)return;let r;for(;(r=t.indexOf(au))>-1;){const n=(t=t.substring(r+au.length)).indexOf(ou);if(-1===n)break;iu(e,t.substring(0,n)),t=t.substring(n+ou.length)}}function iu(e,t){const r=t.split(/\r?\n/).map((e=>{for(e=e.trim();e.startsWith("*");)e=e.substring(1).trim();return e}));for(t=r.join(" ").replace(/\t/g," ").trim();t.includes(" ");)t=t.replace(" "," ");t.split(su).forEach((t=>{const r=t.trim();if(!r.startsWith("--"))return;const n=r.split(":"),i={name:n[0].trim(),docs:(n.shift()&&n.join(":")).trim(),annotation:"prop"};e.some((e=>e.name===i.name&&"prop"===e.annotation))||e.push(i)}))}const au="/**",ou="*/",su="@prop",cu=(e,t)=>{let r=e.importeePath;if(G(r)&&(G(e.importerPath)&&Je(e.importeePath)&&(r=Xe(We(e.importerPath),e.importeePath)),r=me(r),r.startsWith(".")||(r="./"+r),"queryparams"===t||void 0===t)){const t={};G(e.tag)&&(t.tag=e.tag),G(e.mode)&&e.mode!==E&&(t.mode=e.mode),G(e.encapsulation)&&"none"!==e.encapsulation&&(t.encapsulation=e.encapsulation);const n=Object.entries(t);n.length>0&&(r+="?"+new URLSearchParams(n).toString())}return r},lu=e=>{const t={importPath:e,basename:null,ext:null,data:null};if(G(e)){const r=e.split("?");t.basename=He(r[0].trim());const n=t.basename.toLowerCase().split(".");if(n.length>1&&(t.ext=n[n.length-1],"ts"===t.ext&&"d"===n[n.length-2]&&(t.ext="d.ts")),r.length>1){const e=r[1],n=new URLSearchParams(e),i=n.get("tag");null!=i&&(t.data={tag:i,encapsulation:n.get("encapsulation")||"none",mode:n.get("mode")||E})}else t.basename.endsWith(".css")&&(t.data={encapsulation:"none"})}return t},du=e=>{let t=null,r="",n="";for(let i=0;i<e.length;i++)if(r=e[i],"\\"!==e[i-1]&&('"'!==r&&"'"!==r||(t===r?t=null:t||(t=r))),t||"/"!==r||"*"!==e[i+1])n+=r;else{let t=i+2;for(;t<e.length&&("*"!==e[t]||"/"!==e[t+1]);t++);i=t+1}return n},uu=/(@import)\s+(url\()?\s?(.*?)\s?\)?([^;]*);?/gi,pu=async e=>{const t=_u(e),r=await Tn({autoprefixer:e.autoprefixer,input:t.styleText,filePath:e.file,minify:!0,sourceMap:e.sourceMap});return t.diagnostics.push(...r.diagnostics),ne(r.diagnostics)?t:(t.styleText=r.output,fu(e,t))},_u=e=>{const t={styleText:e.input,output:"",map:null,diagnostics:[],imports:[],defaultVarName:yu(e.file,e.mode),styleDocs:[]};e.docs&&nu(t.styleDocs,e.input);try{const r=new Set([t.defaultVarName]);if(G(e.tag)&&("scoped"===e.encapsulation||"shadow"===e.encapsulation&&e.commentOriginalSelector)){const r=td(e.tag,e.mode);t.styleText=ru(t.styleText,r,e.commentOriginalSelector)}mu(r,t.styleText,e.file,e.mode).forEach((r=>{t.styleText=t.styleText.replace(r.srcImportText,"");const n=cu({importeePath:r.filePath,importerPath:e.file,tag:e.tag,encapsulation:e.encapsulation,mode:e.mode},e.styleImportData);t.imports.push({varName:r.varName,importPath:n})}))}catch(e){re(t.diagnostics,e)}return t},fu=(e,t)=>{const r=new wd("");return"cjs"===e.module?(t.imports.forEach((e=>{r.append(`const ${e.varName} = require('${e.importPath}');\n`)})),r.append(`const ${t.defaultVarName} = `),t.imports.forEach((e=>{r.append(`${e.varName} + `)})),r.append(`${JSON.stringify(t.styleText)};\n`),r.append(`module.exports = ${t.defaultVarName};`)):(t.imports.forEach((e=>{r.append(`import ${e.varName} from '${e.importPath}';\n`)})),r.append(`const ${t.defaultVarName} = `),t.imports.forEach((e=>{r.append(`${e.varName} + `)})),r.append(`${JSON.stringify(t.styleText)};\n`),r.append(`export default ${t.defaultVarName};`)),t.output=r.toString(),t},mu=(e,t,r,n)=>{const i=[];if(!t.includes("@import"))return i;t=du(t);const a=rt.dirname(r);let o;for(;o=uu.exec(t);){const t={srcImportText:o[0],url:o[4].replace(/[\"\'\)]/g,""),filePath:null,varName:null};hu(t.srcImportText)&&(gu(t.url)||(rt.isAbsolute(t.url)?t.filePath=me(t.url):t.filePath=me(rt.resolve(a,t.url)),t.varName=yu(t.filePath,n),e.has(t.varName)&&(t.varName+=e.size),e.add(t.varName),i.push(t)))}return i},gu=e=>e.startsWith("~"),hu=e=>!(e=e.toLowerCase()).includes("url(")||!(e=(e=(e=e.replace(/\"/g,"")).replace(/\'/g,"")).replace(/\s/g,"")).includes("url(http")&&!e.includes("url(//"),yu=(e,t)=>{let r=rt.basename(e);return t&&t!==E&&!r.includes(t)&&(r=t+"-"+r),Pe(r)},vu=e=>({transformCssToEsm:pu,prepareModule:Ul,optimizeCss:Tn,prerenderWorker:t=>(async(e,t)=>{const r={diagnostics:[],anchorUrls:[],filePath:t.writeToFilePath};try{const n=md(t),i=new URL(t.url,t.devServerHostUrl),a=new URL(t.baseUrl),o=gd(e,n,t.componentGraphPath),s=d(t.hydrateAppFilePath);null==n.templateHtml&&(n.templateHtml=e.readFileSync(t.templateId));const c=s.createWindowFromHtml(n.templateHtml,t.templateId),l=c.document;c.location.href=i.href,W(e.applyPrerenderGlobalPatch)&&e.applyPrerenderGlobalPatch({devServerHostUrl:t.devServerHostUrl,window:c}),null==n.prerenderConfig&&(n.prerenderConfig=ql(r.diagnostics,t.prerenderConfigPath));const u=n.prerenderConfig,p=Xl(u,i,r.diagnostics);if((t.staticSite||p.staticDocument)&&(p.addModulePreloads=!1,p.clientHydrateAnnotations=!1),"string"!=typeof p.buildId&&(p.buildId=t.buildId),"function"==typeof u.beforeHydrate)try{const e=u.beforeHydrate(l,i);q(e)&&await e}catch(e){re(r.diagnostics,e)}const _=await s.hydrateDocument(l,p);if(r.diagnostics.push(..._.diagnostics),"function"==typeof u.filePath)try{const e=u.filePath(i,r.filePath);"string"==typeof e&&(r.filePath=e)}catch(e){re(r.diagnostics,e)}p.staticDocument?(od(l),ad(l)):(Array.isArray(p.staticComponents)&&((e,t,r)=>{const n=t.staticComponents.filter((e=>r.components.some((t=>t.tag===e))));if(n.length>0){const t=e.querySelector("script[data-stencil-namespace]");if(t){const r=t.getAttribute("data-stencil-namespace");let i=id.replace("__NAMESPACE__",r);i=i.replace("__EXCLUDE__",JSON.stringify(n));const a=e.createElement("script");a.innerHTML=i,a.setAttribute(_d,""),t.parentNode.insertBefore(a,t.nextSibling)}}})(l,p,_),p.addModulePreloads?t.isDebug||((e,t,r,n)=>{if(!n)return!1;const i=t.staticComponents||[],a=r.components.filter((e=>!i.includes(e.tag))),o=V(j(a.map((e=>td(e.tag,e.mode))).map((e=>n.get(e)||[]))));Ql(e,o)})(l,p,_,o):ad(l));const f=[];if(p.minifyStyleElements&&!t.isDebug&&f.push(nd(e,t.appDir,l,i,!1)),p.minifyScriptElements&&!t.isDebug&&f.push(rd(l,!1)),p.hashAssets&&!t.isDebug)try{f.push((async(e,t,r,n,i,a,o)=>{const s=Array.from(a.querySelectorAll("link[rel=stylesheet][href]"));for(const n of s){const a=n.getAttribute("href");if(G(a)&&a.length>0){const n=new URL(a,o);if(o.host===n.host)try{const r=Ge(i,n.pathname);if(t.hashedFile.has(r))continue;t.hashedFile.add(r);let a=await e.readFile(r);G(a)&&a.length>0&&(a=await Dn({css:a,async resolveUrl(t){const r=new URL(t,n),a=await pd(e,i,r);return r.searchParams.append("v",a),r.pathname+r.search}}),e.writeFileSync(r,a))}catch(e){re(r,e)}}}await sd(e,n,i,a,o,'link[rel="stylesheet"]',["href"]),await sd(e,n,i,a,o,'link[rel="prefetch"]',["href"]),await sd(e,n,i,a,o,'link[rel="preload"]',["href"]),await sd(e,n,i,a,o,'link[rel="modulepreload"]',["href"]),await sd(e,n,i,a,o,'link[rel="icon"]',["href"]),await sd(e,n,i,a,o,'link[rel="apple-touch-icon"]',["href"]),await sd(e,n,i,a,o,'link[rel="manifest"]',["href"]),await sd(e,n,i,a,o,"script",["src"]),await sd(e,n,i,a,o,"img",["src","srcset"]),await sd(e,n,i,a,o,"picture > source",["srcset"]);const c=Array.from(a.querySelectorAll('script[data-stencil-static="page.state"][type="application/json"]'));c.length>0&&await Promise.all(c.map((async t=>{const r=JSON.parse(t.textContent);if(r&&Array.isArray(r.ast)){for(const a of r.ast)Array.isArray(a)&&await cd(e,n,i,o,t,a);t.textContent=JSON.stringify(r)}})))})(e,n,r.diagnostics,p,t.appDir,l,i))}catch(e){re(r.diagnostics,e)}if(f.length>0&&await Promise.all(f),!1!==u.crawlUrls&&(r.anchorUrls=jl(u,r.diagnostics,a,i,_.anchors)),"function"==typeof u.afterHydrate)try{const e=u.afterHydrate(l,i,r);q(e)&&await e}catch(e){re(r.diagnostics,e)}if("number"==typeof _.httpStatus&&_.httpStatus>=400){try{c.close()}catch(e){}return r}const m=s.serializeDocumentToString(l,p);hd(e,n,r.filePath);const g=e.writeFile(r.filePath,m);if(Array.isArray(_.staticData)&&_.staticData.length>0){const t=We(r.filePath);await Promise.all(_.staticData.map((async r=>{if("application/json"===r.type){const n={[r.id]:JSON.parse(r.content),components:_.components.map((e=>e.tag))},i=`${r.id}.json`,a=Ge(t,i);await e.writeFile(a,JSON.stringify(n))}else{const n=`${r.id}.txt`,i=Ge(t,n);await e.writeFile(i,r.content)}})))}await g;try{c.close()}catch(e){}}catch(e){re(r.diagnostics,e)}return r})(e,t)}),bu=e=>{const t=vu(e);return e=>{const r=e.args[0],n=e.args.slice(1),i=t[r];if("function"==typeof i)return i(...n)}};class Eu{constructor(){this.version=2,this.activeBuildId=-1,this.activeFilesAdded=[],this.activeFilesDeleted=[],this.activeFilesUpdated=[],this.activeDirsAdded=[],this.activeDirsDeleted=[],this.addWatchDir=B,this.addWatchFile=B,this.cssModuleImports=new Map,this.changedFiles=new Set,this.changedModules=new Set,this.collections=[],this.compilerOptions=null,this.events=pt(),this.hasSuccessfulBuild=!1,this.isActivelyBuilding=!1,this.lastBuildResults=null,this.moduleMap=new Map,this.nodeMap=new WeakMap,this.resolvedCollections=new Set,this.rollupCache=new Map,this.rollupCacheHydrate=null,this.rollupCacheLazy=null,this.rollupCacheNative=null,this.styleModeNames=new Set,this.worker=null}reset(){this.cache.clear(),this.cssModuleImports.clear(),this.cachedGlobalStyle=null,this.collections.length=0,this.compilerOptions=null,this.hasSuccessfulBuild=!1,this.rollupCacheHydrate=null,this.rollupCacheLazy=null,this.rollupCacheNative=null,this.moduleMap.clear(),this.resolvedCollections.clear(),null!=this.fs&&this.fs.clearCache()}}const xu=(e,t,r,n=!0)=>{let i=Xe(We(e),We(t));return n&&(""===i?i=".":"."!==i[0]&&(i="./"+i)),me(`${i}/${He(t,r)}`)},Du=e=>Ge(e.typesDir,cp),Su=e=>e.type===Ju,Tu=e=>e.type===Gu,Cu=e=>e.type===$u,Au=e=>e.type===qu,ku=e=>e.type===Wu,Nu=e=>e.type===Qu,wu=e=>e.type===Hu,Fu=e=>e.type===Zu,Pu=e=>e.type===ep,Iu=e=>e.type===Yu,Ou=e=>e.type===Ku,Mu=e=>e.type===np||e.type===rp||e.type===tp||e.type===ip,Ru=e=>e.type===np,Lu=e=>e.type===rp,Bu=e=>e.type===tp,Uu=e=>e.type===ip,ju=e=>e.type===op,Vu=e=>e.type===ap,zu=e=>e.type===Xu,Hu="angular",Wu="copy",Ku="custom",Ju="dist",Gu="dist-collection",$u="dist-custom-elements",qu="dist-custom-elements-bundle",Xu="dist-types",Yu="dist-hydrate-script",Qu="dist-lazy",Zu="dist-lazy-loader",ep="dist-global-styles",tp="docs-custom",rp="docs-json",np="docs-readme",ip="docs-vscode",ap="stats",op="www",sp=[op,Ju,Gu,$u,qu,Qu,Yu,rp,np,ip,tp,Hu,Wu,Ku,ap],cp="components.d.ts",lp=e=>({experimentalDecorators:!0,declaration:e.outputTargets.some(zu),module:p.ModuleKind.ESNext,moduleResolution:p.ModuleResolutionKind.NodeJs,noEmitOnError:!1,outDir:e.cacheDir||e.sys.tmpDirSync(),sourceMap:e.sourceMap,inlineSources:e.sourceMap}),dp="{visibility:hidden}.hydrated{visibility:inherit}",up="http://www.w3.org/1999/xlink",pp={get(e,t){return t in e?e[t]:"symbol"==typeof t||isNaN(t)?void 0:e.__items[t]}},_p=e=>new Proxy(new fp(e),pp);class fp{constructor(e=!1){this.caseInsensitive=e,this.__items=[]}get length(){return this.__items.length}item(e){return this.__items[e]||null}setNamedItem(e){e.namespaceURI=null,this.setNamedItemNS(e)}setNamedItemNS(e){null!=e&&null!=e.value&&(e.value=String(e.value));const t=this.__items.find((t=>t.name===e.name&&t.namespaceURI===e.namespaceURI));null!=t?t.value=e.value:this.__items.push(e)}getNamedItem(e){return this.caseInsensitive&&(e=e.toLowerCase()),this.getNamedItemNS(null,e)}getNamedItemNS(e,t){return e=mp(e),this.__items.find((r=>r.name===t&&mp(r.namespaceURI)===e))||null}removeNamedItem(e){this.removeNamedItemNS(e)}removeNamedItemNS(e){for(let t=0,r=this.__items.length;t<r;t++)if(this.__items[t].name===e.name&&this.__items[t].namespaceURI===e.namespaceURI){this.__items.splice(t,1);break}}[Symbol.iterator](){let e=0;return{next:()=>({done:e===this.length,value:this.item(e++)})}}get[Symbol.toStringTag](){return"MockAttributeMap"}}function mp(e){return e===up?null:e}function gp(e,t=!1){const r=new fp(e.caseInsensitive);if(null!=e){const n=e.length;if(t&&n>1){const t=[];for(let r=0;r<n;r++){const n=e.item(r),i=new yp(n.name,n.value,n.namespaceURI);t.push(i)}t.sort(hp).forEach((e=>{r.setNamedItemNS(e)}))}else for(let t=0;t<n;t++){const n=e.item(t),i=new yp(n.name,n.value,n.namespaceURI);r.setNamedItemNS(i)}}return r}function hp(e,t){return e.name<t.name?-1:e.name>t.name?1:0}class yp{constructor(e,t,r=null){this._name=e,this._value=String(t),this._namespaceURI=r}get name(){return this._name}set name(e){this._name=e}get value(){return this._value}set value(e){this._value=String(e)}get nodeName(){return this._name}set nodeName(e){this._name=e}get nodeValue(){return this._value}set nodeValue(e){this._value=String(e)}get namespaceURI(){return this._namespaceURI}set namespaceURI(e){this._namespaceURI=e}}class vp{constructor(e){this.elm=e}add(...e){const t=Ep(this.elm);let r=!1;e.forEach((e=>{bp(e=String(e)),!1===t.includes(e)&&(t.push(e),r=!0)})),r&&this.elm.setAttributeNS(null,"class",t.join(" "))}remove(...e){const t=Ep(this.elm);let r=!1;e.forEach((e=>{bp(e=String(e));const n=t.indexOf(e);n>-1&&(t.splice(n,1),r=!0)})),r&&this.elm.setAttributeNS(null,"class",t.filter((e=>e.length>0)).join(" "))}contains(e){return e=String(e),Ep(this.elm).includes(e)}toggle(e){e=String(e),!0===this.contains(e)?this.remove(e):this.add(e)}get length(){return Ep(this.elm).length}item(e){return Ep(this.elm)[e]}toString(){return Ep(this.elm).join(" ")}}function bp(e){if(""===e)throw new Error("The token provided must not be empty.");if(/\s/.test(e))throw new Error(`The token provided ('${e}') contains HTML space characters, which are not valid in tokens.`)}function Ep(e){const t=e.getAttribute("class");return"string"==typeof t&&t.length>0?t.trim().split(" ").filter((e=>e.length>0)):[]}class xp{constructor(){this._styles=new Map}setProperty(e,t){e=Tp(e),null==t||""===t?this._styles.delete(e):this._styles.set(e,String(t))}getPropertyValue(e){return e=Tp(e),String(this._styles.get(e)||"")}removeProperty(e){e=Tp(e),this._styles.delete(e)}get length(){return this._styles.size}get cssText(){const e=[];return this._styles.forEach(((t,r)=>{e.push(`${r}: ${t};`)})),e.join(" ").trim()}set cssText(e){if(null==e||""===e)return this._styles.clear(),void 0;e.split(";").forEach((e=>{if((e=e.trim()).length>0){const t=e.split(":");if(t.length>1){const e=t[0].trim(),r=t.slice(1).join(":").trim();""!==e&&""!==r&&this._styles.set(Tp(e),r)}}}))}}function Dp(){return new Proxy(new xp,Sp)}const Sp={get(e,t){return t in e?e[t]:((r=t).length>1&&!0===r.includes("-")&&(r=(r=r.toLowerCase().split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("")).slice(0,1).toLowerCase()+r.slice(1)),t=r,e.getPropertyValue(t));var r},set(e,t,r){return t in e?e[t]=r:e.setProperty(t,r),!0}};function Tp(e){return e.length>1&&!1===e.includes("-")&&!0===/[A-Z]/.test(e)&&(e=e.replace(/([A-Z])/g,(e=>" "+e[0])).trim().replace(/ /g,"-").toLowerCase()),e}class Cp{constructor(e){this.win=e}define(e,t,r){if(e.toLowerCase()!==e)throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': "${e}" is not a valid custom element name`);if(null==this.__registry&&(this.__registry=new Map),this.__registry.set(e,{cstr:t,options:r}),null!=this.__whenDefined){const t=this.__whenDefined.get(e);null!=t&&(t.forEach((e=>{e()})),t.length=0,this.__whenDefined.delete(e))}const n=this.win.document;null!=n&&n.querySelectorAll(e).forEach((t=>{if(!1===Np.has(t)){Mp.add(n);const r=Ap(this,n,e);for(let e=0;e<t.childNodes.length;e++){const n=t.childNodes[e];n.remove(),r.appendChild(n)}Mp.delete(n),kp.has(t)&&kp.set(t,r)}Fp(t)}))}get(e){if(null!=this.__registry){const t=this.__registry.get(e.toLowerCase());if(null!=t)return t.cstr}}upgrade(e){}clear(){null!=this.__registry&&this.__registry.clear(),null!=this.__whenDefined&&this.__whenDefined.clear()}whenDefined(e){return e=e.toLowerCase(),null!=this.__registry&&!0===this.__registry.has(e)?Promise.resolve(this.__registry.get(e).cstr):new Promise((t=>{null==this.__whenDefined&&(this.__whenDefined=new Map);let r=this.__whenDefined.get(e);null==r&&(r=[],this.__whenDefined.set(e,r)),r.push(t)}))}}function Ap(e,t,r){const n=e.get(r);if(null!=n){const e=new n(t);return e.nodeName=r.toUpperCase(),Np.add(e),e}const i=new Proxy({},{get(e,t){const r=kp.get(i);return null!=r?r[t]:e[t]},set(e,t,r){const n=kp.get(i);return null!=n?n[t]=r:e[t]=r,!0},has(e,t){return t in kp.get(i)||t in e}}),a=new E_(t,r);return kp.set(i,a),i}const kp=new WeakMap,Np=new WeakSet;function wp(e,t){if(t.ownerDocument=e,1===t.nodeType){if(null!=e&&t.nodeName.includes("-")){null!=e.defaultView&&"function"==typeof t.connectedCallback&&t.isConnected&&Fp(t);const r=t.shadowRoot;null!=r&&r.childNodes.forEach((t=>{wp(e,t)}))}t.childNodes.forEach((t=>{wp(e,t)}))}else t.childNodes.forEach((t=>{t.ownerDocument=e}))}function Fp(e){if("function"==typeof e.connectedCallback&&!1===Mp.has(e.ownerDocument))try{e.connectedCallback()}catch(e){console.error(e)}}function Pp(e){if(1===e.nodeType){if(!0===e.nodeName.includes("-")&&"function"==typeof e.disconnectedCallback&&!1===Mp.has(e.ownerDocument))try{e.disconnectedCallback()}catch(e){console.error(e)}e.childNodes.forEach(Pp)}}function Ip(e,t,r,n){t=t.toLowerCase();const i=e.constructor.observedAttributes;if(!0===Array.isArray(i)&&!0===i.some((e=>e.toLowerCase()===t)))try{e.attributeChangedCallback(t,r,n)}catch(e){console.error(e)}}function Op(e){return!0===e.nodeName.includes("-")&&"function"==typeof e.attributeChangedCallback}const Mp=new Set;class Rp{constructor(e,t){if(this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.composed=!1,this.currentTarget=null,this.defaultPrevented=!1,this.srcElement=null,this.target=null,"string"!=typeof e)throw new Error("Event type required");this.type=e,this.timeStamp=Date.now(),null!=t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this.cancelBubble=!0}composedPath(){const e=[];let t=this.target;for(;t;){if(e.push(t),!t.parentElement&&"#document"===t.nodeName){e.push(t.defaultView);break}t=t.parentElement}return e}}class Lp extends Rp{constructor(e,t){super(e),this.detail=null,this.view=null,null!=t&&Object.assign(this,t)}}class Bp extends Lp{constructor(e,t){super(e),this.relatedTarget=null,null!=t&&Object.assign(this,t)}}class Up{constructor(e,t){this.type=e,this.handler=t}}function jp(e,t,r){const n=e;null==n.__listeners&&(n.__listeners=[]),n.__listeners.push(new Up(t,r))}function Vp(e,t,r){const n=e;if(null!=n&&!0===Array.isArray(n.__listeners)){const e=n.__listeners.find((e=>e.type===t&&e.handler===r));if(null!=e){const t=n.__listeners.indexOf(e);n.__listeners.splice(t,1)}}}function zp(e){null!=e&&null!=e.__listeners&&(e.__listeners=null)}function Hp(e,t){if(null==e||!0===t.cancelBubble)return;const r=e;t.currentTarget=e,!0===Array.isArray(r.__listeners)&&r.__listeners.filter((e=>e.type===t.type)).forEach((e=>{try{e.handler.call(r,t)}catch(e){console.error(e)}})),!1!==t.bubbles&&("#document"===e.nodeName?Hp(e.defaultView,t):Hp(e.parentElement,t))}function Wp(e,t){return t.target=e,Hp(e,t),!0}const Kp=function(e){const t=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),r="�";var n;!(e=>{e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(n=n||(n={}));const i="[CDATA[",a="doctype",o="script";function s(e){return e>=55296&&e<=57343}function c(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function l(e){return e>=64976&&e<=65007||t.has(e)}var d,u;!(e=>{e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(d=d||(d={}));class p{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){const{line:t,col:r,offset:n}=this;return{code:e,startLine:t,endLine:t,startCol:r,endCol:r,startOffset:n,endOffset:n}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if((e=>e>=56320&&e<=57343)(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,n.EOF;return this._err(d.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,n.EOF;const r=this.html.charCodeAt(t);return r===n.CARRIAGE_RETURN?n.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,n.EOF;let e=this.html.charCodeAt(this.pos);return e===n.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,n.LINE_FEED):e===n.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,s(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===n.LINE_FEED||e===n.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){c(e)?this._err(d.controlCharacterInInputStream):l(e)&&this._err(d.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function _(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}!(e=>{e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(u=u||(u={}));var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(e,t,r){return e(r={path:t,exports:{},require:(e,t)=>(()=>{throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")})()},r.exports),r.exports}var g,h,y,v,b,E=m(((e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0))))})),x=m(((e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))))})),D=m(((e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=n.get(e))&&void 0!==t?t:e}t.fromCodePoint=null!==(r=String.fromCodePoint)&&void 0!==r?r:e=>{var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+String.fromCharCode(e)},t.replaceCodePoint=i,t.default=e=>(0,t.fromCodePoint)(i(e))})),S=m(((e,t)=>{var r=f&&f.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTML=t.determineBranch=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var n=r(E);t.htmlDecodeTree=n.default;var i=r(x);t.xmlDecodeTree=i.default;var a=r(D);t.decodeCodePoint=a.default;var o,s,c=D;function l(e){return(t,r)=>{for(var n="",i=0,c=0;(c=t.indexOf("&",c))>=0;)if(n+=t.slice(i,c),i=c,c+=1,t.charCodeAt(c)!==o.NUM){for(var l=0,u=1,p=0,_=e[p];c<t.length&&!((p=d(e,_,p+1,t.charCodeAt(c)))<0);c++,u++){var f=(_=e[p])&s.VALUE_LENGTH;if(f){var m;if(r&&t.charCodeAt(c)!==o.SEMI||(l=p,u=0),0==(m=(f>>14)-1))break;p+=m}}0!==l&&(n+=1==(m=(e[l]&s.VALUE_LENGTH)>>14)?String.fromCharCode(e[l]&~s.VALUE_LENGTH):2===m?String.fromCharCode(e[l+1]):String.fromCharCode(e[l+1],e[l+2]),i=c-u+1)}else{var g=c+1,h=10,y=t.charCodeAt(g);(y|o.To_LOWER_BIT)===o.LOWER_X&&(h=16,c+=1,g+=1);do{y=t.charCodeAt(++c)}while(y>=o.ZERO&&y<=o.NINE||16===h&&(y|o.To_LOWER_BIT)>=o.LOWER_A&&(y|o.To_LOWER_BIT)<=o.LOWER_F);if(g!==c){var v=t.substring(g,c),b=parseInt(v,h);if(t.charCodeAt(c)===o.SEMI)c+=1;else if(r)continue;n+=(0,a.default)(b),i=c}}return n+t.slice(i)}}function d(e,t,r,n){var i=(t&s.BRANCH_LENGTH)>>7,a=t&s.JUMP_TABLE;if(0===i)return 0!==a&&n===a?r:-1;if(a){var o=n-a;return o<0||o>=i?-1:e[r+o]-1}for(var c=r,l=c+i-1;c<=l;){var d=c+l>>>1,u=e[d];if(u<n)c=d+1;else{if(!(u>n))return e[d+i];l=d-1}}return-1}Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:()=>c.replaceCodePoint}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:()=>c.fromCodePoint}),(e=>{e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.To_LOWER_BIT=32]="To_LOWER_BIT"})(o||(o={})),(e=>{e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(s=t.BinTrieFlags||(t.BinTrieFlags={})),t.determineBranch=d;var u=l(n.default),p=l(i.default);t.decodeHTML=e=>u(e,!1),t.decodeHTMLStrict=e=>u(e,!0),t.decodeXML=e=>p(e,!0)}));!(e=>{e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(g=g||(g={})),(e=>{e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(h=h||(h={})),(e=>{e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(y=y||(y={})),(e=>{e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(v=v||(v={})),(e=>{e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(b=b||(b={}));const T=new Map([[v.A,b.A],[v.ADDRESS,b.ADDRESS],[v.ANNOTATION_XML,b.ANNOTATION_XML],[v.APPLET,b.APPLET],[v.AREA,b.AREA],[v.ARTICLE,b.ARTICLE],[v.ASIDE,b.ASIDE],[v.B,b.B],[v.BASE,b.BASE],[v.BASEFONT,b.BASEFONT],[v.BGSOUND,b.BGSOUND],[v.BIG,b.BIG],[v.BLOCKQUOTE,b.BLOCKQUOTE],[v.BODY,b.BODY],[v.BR,b.BR],[v.BUTTON,b.BUTTON],[v.CAPTION,b.CAPTION],[v.CENTER,b.CENTER],[v.CODE,b.CODE],[v.COL,b.COL],[v.COLGROUP,b.COLGROUP],[v.DD,b.DD],[v.DESC,b.DESC],[v.DETAILS,b.DETAILS],[v.DIALOG,b.DIALOG],[v.DIR,b.DIR],[v.DIV,b.DIV],[v.DL,b.DL],[v.DT,b.DT],[v.EM,b.EM],[v.EMBED,b.EMBED],[v.FIELDSET,b.FIELDSET],[v.FIGCAPTION,b.FIGCAPTION],[v.FIGURE,b.FIGURE],[v.FONT,b.FONT],[v.FOOTER,b.FOOTER],[v.FOREIGN_OBJECT,b.FOREIGN_OBJECT],[v.FORM,b.FORM],[v.FRAME,b.FRAME],[v.FRAMESET,b.FRAMESET],[v.H1,b.H1],[v.H2,b.H2],[v.H3,b.H3],[v.H4,b.H4],[v.H5,b.H5],[v.H6,b.H6],[v.HEAD,b.HEAD],[v.HEADER,b.HEADER],[v.HGROUP,b.HGROUP],[v.HR,b.HR],[v.HTML,b.HTML],[v.I,b.I],[v.IMG,b.IMG],[v.IMAGE,b.IMAGE],[v.INPUT,b.INPUT],[v.IFRAME,b.IFRAME],[v.KEYGEN,b.KEYGEN],[v.LABEL,b.LABEL],[v.LI,b.LI],[v.LINK,b.LINK],[v.LISTING,b.LISTING],[v.MAIN,b.MAIN],[v.MALIGNMARK,b.MALIGNMARK],[v.MARQUEE,b.MARQUEE],[v.MATH,b.MATH],[v.MENU,b.MENU],[v.META,b.META],[v.MGLYPH,b.MGLYPH],[v.MI,b.MI],[v.MO,b.MO],[v.MN,b.MN],[v.MS,b.MS],[v.MTEXT,b.MTEXT],[v.NAV,b.NAV],[v.NOBR,b.NOBR],[v.NOFRAMES,b.NOFRAMES],[v.NOEMBED,b.NOEMBED],[v.NOSCRIPT,b.NOSCRIPT],[v.OBJECT,b.OBJECT],[v.OL,b.OL],[v.OPTGROUP,b.OPTGROUP],[v.OPTION,b.OPTION],[v.P,b.P],[v.PARAM,b.PARAM],[v.PLAINTEXT,b.PLAINTEXT],[v.PRE,b.PRE],[v.RB,b.RB],[v.RP,b.RP],[v.RT,b.RT],[v.RTC,b.RTC],[v.RUBY,b.RUBY],[v.S,b.S],[v.SCRIPT,b.SCRIPT],[v.SECTION,b.SECTION],[v.SELECT,b.SELECT],[v.SOURCE,b.SOURCE],[v.SMALL,b.SMALL],[v.SPAN,b.SPAN],[v.STRIKE,b.STRIKE],[v.STRONG,b.STRONG],[v.STYLE,b.STYLE],[v.SUB,b.SUB],[v.SUMMARY,b.SUMMARY],[v.SUP,b.SUP],[v.TABLE,b.TABLE],[v.TBODY,b.TBODY],[v.TEMPLATE,b.TEMPLATE],[v.TEXTAREA,b.TEXTAREA],[v.TFOOT,b.TFOOT],[v.TD,b.TD],[v.TH,b.TH],[v.THEAD,b.THEAD],[v.TITLE,b.TITLE],[v.TR,b.TR],[v.TRACK,b.TRACK],[v.TT,b.TT],[v.U,b.U],[v.UL,b.UL],[v.SVG,b.SVG],[v.VAR,b.VAR],[v.WBR,b.WBR],[v.XMP,b.XMP]]);function C(e){var t;return null!==(t=T.get(e))&&void 0!==t?t:b.UNKNOWN}const A=b,k={[g.HTML]:new Set([A.ADDRESS,A.APPLET,A.AREA,A.ARTICLE,A.ASIDE,A.BASE,A.BASEFONT,A.BGSOUND,A.BLOCKQUOTE,A.BODY,A.BR,A.BUTTON,A.CAPTION,A.CENTER,A.COL,A.COLGROUP,A.DD,A.DETAILS,A.DIR,A.DIV,A.DL,A.DT,A.EMBED,A.FIELDSET,A.FIGCAPTION,A.FIGURE,A.FOOTER,A.FORM,A.FRAME,A.FRAMESET,A.H1,A.H2,A.H3,A.H4,A.H5,A.H6,A.HEAD,A.HEADER,A.HGROUP,A.HR,A.HTML,A.IFRAME,A.IMG,A.INPUT,A.LI,A.LINK,A.LISTING,A.MAIN,A.MARQUEE,A.MENU,A.META,A.NAV,A.NOEMBED,A.NOFRAMES,A.NOSCRIPT,A.OBJECT,A.OL,A.P,A.PARAM,A.PLAINTEXT,A.PRE,A.SCRIPT,A.SECTION,A.SELECT,A.SOURCE,A.STYLE,A.SUMMARY,A.TABLE,A.TBODY,A.TD,A.TEMPLATE,A.TEXTAREA,A.TFOOT,A.TH,A.THEAD,A.TITLE,A.TR,A.TRACK,A.UL,A.WBR,A.XMP]),[g.MATHML]:new Set([A.MI,A.MO,A.MN,A.MS,A.MTEXT,A.ANNOTATION_XML]),[g.SVG]:new Set([A.TITLE,A.FOREIGN_OBJECT,A.DESC]),[g.XLINK]:new Set,[g.XML]:new Set,[g.XMLNS]:new Set};function N(e){return e===A.H1||e===A.H2||e===A.H3||e===A.H4||e===A.H5||e===A.H6}const w=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var F;!(e=>{e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(F||(F={}));const P={DATA:F.DATA,RCDATA:F.RCDATA,RAWTEXT:F.RAWTEXT,SCRIPT_DATA:F.SCRIPT_DATA,PLAINTEXT:F.PLAINTEXT,CDATA_SECTION:F.CDATA_SECTION};function I(e){return e>=n.DIGIT_0&&e<=n.DIGIT_9}function O(e){return e>=n.LATIN_CAPITAL_A&&e<=n.LATIN_CAPITAL_Z}function M(e){return(e=>e>=n.LATIN_SMALL_A&&e<=n.LATIN_SMALL_Z)(e)||O(e)}function R(e){return M(e)||I(e)}function L(e){return e>=n.LATIN_CAPITAL_A&&e<=n.LATIN_CAPITAL_F}function B(e){return e>=n.LATIN_SMALL_A&&e<=n.LATIN_SMALL_F}function U(e){return e+32}function j(e){return e===n.SPACE||e===n.LINE_FEED||e===n.TABULATION||e===n.FORM_FEED}function V(e){return j(e)||e===n.SOLIDUS||e===n.GREATER_THAN_SIGN}class z{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=F.DATA,this.returnState=F.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new p(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,r;null===(r=(t=this.handler).onParseError)||void 0===r||r.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==r||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:u.START_TAG,tagName:"",tagID:b.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:u.END_TAG,tagName:"",tagID:b.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:u.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:u.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const r=this.currentToken;null===_(r,this.currentAttr.name)?(r.attrs.push(this.currentAttr),r.location&&this.currentLocation&&((null!==(e=(t=r.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(d.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=C(e.tagName),e.type===u.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(d.endTagWithAttributes),e.selfClosing&&this._err(d.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case u.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case u.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case u.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:u.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=j(e)?u.WHITESPACE_CHARACTER:e===n.NULL?u.NULL_CHARACTER:u.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(u.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,r=0,i=!1;for(let o=0,s=S.htmlDecodeTree[0];o>=0&&(o=S.determineBranch(S.htmlDecodeTree,s,o+1,e),!(o<0));e=this._consume()){r+=1,s=S.htmlDecodeTree[o];const c=s&S.BinTrieFlags.VALUE_LENGTH;if(c){const s=(c>>14)-1;if(e!==n.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((a=this.preprocessor.peek(1))===n.EQUALS_SIGN||R(a))?(t=[n.AMPERSAND],o+=s):(t=0===s?[S.htmlDecodeTree[o]&~S.BinTrieFlags.VALUE_LENGTH]:1===s?[S.htmlDecodeTree[++o]]:[S.htmlDecodeTree[++o],S.htmlDecodeTree[++o]],r=0,i=e!==n.SEMICOLON),0===s){this._consume();break}}}var a;return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(d.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===F.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case F.DATA:this._stateData(e);break;case F.RCDATA:this._stateRcdata(e);break;case F.RAWTEXT:this._stateRawtext(e);break;case F.SCRIPT_DATA:this._stateScriptData(e);break;case F.PLAINTEXT:this._statePlaintext(e);break;case F.TAG_OPEN:this._stateTagOpen(e);break;case F.END_TAG_OPEN:this._stateEndTagOpen(e);break;case F.TAG_NAME:this._stateTagName(e);break;case F.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case F.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case F.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case F.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case F.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case F.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case F.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case F.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case F.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case F.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case F.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case F.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case F.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case F.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case F.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case F.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case F.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case F.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case F.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case F.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case F.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case F.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case F.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case F.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case F.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case F.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case F.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case F.BOGUS_COMMENT:this._stateBogusComment(e);break;case F.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case F.COMMENT_START:this._stateCommentStart(e);break;case F.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case F.COMMENT:this._stateComment(e);break;case F.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case F.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case F.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case F.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case F.COMMENT_END:this._stateCommentEnd(e);break;case F.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case F.DOCTYPE:this._stateDoctype(e);break;case F.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case F.DOCTYPE_NAME:this._stateDoctypeName(e);break;case F.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case F.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case F.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case F.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case F.CDATA_SECTION:this._stateCdataSection(e);break;case F.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case F.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case F.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case F.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case F.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case F.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case F.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case F.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case F.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case F.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case n.LESS_THAN_SIGN:this.state=F.TAG_OPEN;break;case n.AMPERSAND:this.returnState=F.DATA,this.state=F.CHARACTER_REFERENCE;break;case n.NULL:this._err(d.unexpectedNullCharacter),this._emitCodePoint(e);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case n.AMPERSAND:this.returnState=F.RCDATA,this.state=F.CHARACTER_REFERENCE;break;case n.LESS_THAN_SIGN:this.state=F.RCDATA_LESS_THAN_SIGN;break;case n.NULL:this._err(d.unexpectedNullCharacter),this._emitChars(r);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case n.LESS_THAN_SIGN:this.state=F.RAWTEXT_LESS_THAN_SIGN;break;case n.NULL:this._err(d.unexpectedNullCharacter),this._emitChars(r);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case n.LESS_THAN_SIGN:this.state=F.SCRIPT_DATA_LESS_THAN_SIGN;break;case n.NULL:this._err(d.unexpectedNullCharacter),this._emitChars(r);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case n.NULL:this._err(d.unexpectedNullCharacter),this._emitChars(r);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(M(e))this._createStartTagToken(),this.state=F.TAG_NAME,this._stateTagName(e);else switch(e){case n.EXCLAMATION_MARK:this.state=F.MARKUP_DECLARATION_OPEN;break;case n.SOLIDUS:this.state=F.END_TAG_OPEN;break;case n.QUESTION_MARK:this._err(d.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=F.BOGUS_COMMENT,this._stateBogusComment(e);break;case n.EOF:this._err(d.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(d.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=F.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(M(e))this._createEndTagToken(),this.state=F.TAG_NAME,this._stateTagName(e);else switch(e){case n.GREATER_THAN_SIGN:this._err(d.missingEndTagName),this.state=F.DATA;break;case n.EOF:this._err(d.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(d.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:this.state=F.BEFORE_ATTRIBUTE_NAME;break;case n.SOLIDUS:this.state=F.SELF_CLOSING_START_TAG;break;case n.GREATER_THAN_SIGN:this.state=F.DATA,this.emitCurrentTagToken();break;case n.NULL:this._err(d.unexpectedNullCharacter),t.tagName+=r;break;case n.EOF:this._err(d.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(O(e)?U(e):e)}}_stateRcdataLessThanSign(e){e===n.SOLIDUS?this.state=F.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){M(e)?(this.state=F.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=F.BEFORE_ATTRIBUTE_NAME,!1;case n.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=F.SELF_CLOSING_START_TAG,!1;case n.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=F.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===n.SOLIDUS?this.state=F.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){M(e)?(this.state=F.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case n.SOLIDUS:this.state=F.SCRIPT_DATA_END_TAG_OPEN;break;case n.EXCLAMATION_MARK:this.state=F.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=F.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){M(e)?(this.state=F.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===n.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===n.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case n.HYPHEN_MINUS:this.state=F.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case n.LESS_THAN_SIGN:this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case n.NULL:this._err(d.unexpectedNullCharacter),this._emitChars(r);break;case n.EOF:this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case n.HYPHEN_MINUS:this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case n.LESS_THAN_SIGN:this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case n.NULL:this._err(d.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(r);break;case n.EOF:this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case n.HYPHEN_MINUS:this._emitChars("-");break;case n.LESS_THAN_SIGN:this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case n.GREATER_THAN_SIGN:this.state=F.SCRIPT_DATA,this._emitChars(">");break;case n.NULL:this._err(d.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(r);break;case n.EOF:this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===n.SOLIDUS?this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:M(e)?(this._emitChars("<"),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){M(e)?(this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(o,!1)&&V(this.preprocessor.peek(o.length))){this._emitCodePoint(e);for(let e=0;e<o.length;e++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case n.HYPHEN_MINUS:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case n.LESS_THAN_SIGN:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case n.NULL:this._err(d.unexpectedNullCharacter),this._emitChars(r);break;case n.EOF:this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case n.HYPHEN_MINUS:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case n.LESS_THAN_SIGN:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case n.NULL:this._err(d.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(r);break;case n.EOF:this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case n.HYPHEN_MINUS:this._emitChars("-");break;case n.LESS_THAN_SIGN:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case n.GREATER_THAN_SIGN:this.state=F.SCRIPT_DATA,this._emitChars(">");break;case n.NULL:this._err(d.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(r);break;case n.EOF:this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===n.SOLIDUS?(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(o,!1)&&V(this.preprocessor.peek(o.length))){this._emitCodePoint(e);for(let e=0;e<o.length;e++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.SOLIDUS:case n.GREATER_THAN_SIGN:case n.EOF:this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case n.EQUALS_SIGN:this._err(d.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=F.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:case n.SOLIDUS:case n.GREATER_THAN_SIGN:case n.EOF:this._leaveAttrName(),this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case n.EQUALS_SIGN:this._leaveAttrName(),this.state=F.BEFORE_ATTRIBUTE_VALUE;break;case n.QUOTATION_MARK:case n.APOSTROPHE:case n.LESS_THAN_SIGN:this._err(d.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case n.NULL:this._err(d.unexpectedNullCharacter),this.currentAttr.name+=r;break;default:this.currentAttr.name+=String.fromCodePoint(O(e)?U(e):e)}}_stateAfterAttributeName(e){switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.SOLIDUS:this.state=F.SELF_CLOSING_START_TAG;break;case n.EQUALS_SIGN:this.state=F.BEFORE_ATTRIBUTE_VALUE;break;case n.GREATER_THAN_SIGN:this.state=F.DATA,this.emitCurrentTagToken();break;case n.EOF:this._err(d.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.QUOTATION_MARK:this.state=F.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case n.APOSTROPHE:this.state=F.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case n.GREATER_THAN_SIGN:this._err(d.missingAttributeValue),this.state=F.DATA,this.emitCurrentTagToken();break;default:this.state=F.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case n.QUOTATION_MARK:this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case n.AMPERSAND:this.returnState=F.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=F.CHARACTER_REFERENCE;break;case n.NULL:this._err(d.unexpectedNullCharacter),this.currentAttr.value+=r;break;case n.EOF:this._err(d.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case n.APOSTROPHE:this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case n.AMPERSAND:this.returnState=F.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=F.CHARACTER_REFERENCE;break;case n.NULL:this._err(d.unexpectedNullCharacter),this.currentAttr.value+=r;break;case n.EOF:this._err(d.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break;case n.AMPERSAND:this.returnState=F.ATTRIBUTE_VALUE_UNQUOTED,this.state=F.CHARACTER_REFERENCE;break;case n.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break;case n.NULL:this._err(d.unexpectedNullCharacter),this.currentAttr.value+=r;break;case n.QUOTATION_MARK:case n.APOSTROPHE:case n.LESS_THAN_SIGN:case n.EQUALS_SIGN:case n.GRAVE_ACCENT:this._err(d.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case n.EOF:this._err(d.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break;case n.SOLIDUS:this._leaveAttrValue(),this.state=F.SELF_CLOSING_START_TAG;break;case n.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break;case n.EOF:this._err(d.eofInTag),this._emitEOFToken();break;default:this._err(d.missingWhitespaceBetweenAttributes),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case n.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=F.DATA,this.emitCurrentTagToken();break;case n.EOF:this._err(d.eofInTag),this._emitEOFToken();break;default:this._err(d.unexpectedSolidusInTag),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case n.GREATER_THAN_SIGN:this.state=F.DATA,this.emitCurrentComment(t);break;case n.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case n.NULL:this._err(d.unexpectedNullCharacter),t.data+=r;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken("--".length+1),this.state=F.COMMENT_START):this._consumeSequenceIfMatch(a,!1)?(this.currentLocation=this.getCurrentLocation(a.length+1),this.state=F.DOCTYPE):this._consumeSequenceIfMatch(i,!0)?this.inForeignNode?this.state=F.CDATA_SECTION:(this._err(d.cdataInHtmlContent),this._createCommentToken(i.length+1),this.currentToken.data="[CDATA[",this.state=F.BOGUS_COMMENT):this._ensureHibernation()||(this._err(d.incorrectlyOpenedComment),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case n.HYPHEN_MINUS:this.state=F.COMMENT_START_DASH;break;case n.GREATER_THAN_SIGN:{this._err(d.abruptClosingOfEmptyComment),this.state=F.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=F.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case n.HYPHEN_MINUS:this.state=F.COMMENT_END;break;case n.GREATER_THAN_SIGN:this._err(d.abruptClosingOfEmptyComment),this.state=F.DATA,this.emitCurrentComment(t);break;case n.EOF:this._err(d.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=F.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case n.HYPHEN_MINUS:this.state=F.COMMENT_END_DASH;break;case n.LESS_THAN_SIGN:t.data+="<",this.state=F.COMMENT_LESS_THAN_SIGN;break;case n.NULL:this._err(d.unexpectedNullCharacter),t.data+=r;break;case n.EOF:this._err(d.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case n.EXCLAMATION_MARK:t.data+="!",this.state=F.COMMENT_LESS_THAN_SIGN_BANG;break;case n.LESS_THAN_SIGN:t.data+="<";break;default:this.state=F.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===n.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=F.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===n.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=F.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==n.GREATER_THAN_SIGN&&e!==n.EOF&&this._err(d.nestedComment),this.state=F.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case n.HYPHEN_MINUS:this.state=F.COMMENT_END;break;case n.EOF:this._err(d.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=F.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case n.GREATER_THAN_SIGN:this.state=F.DATA,this.emitCurrentComment(t);break;case n.EXCLAMATION_MARK:this.state=F.COMMENT_END_BANG;break;case n.HYPHEN_MINUS:t.data+="-";break;case n.EOF:this._err(d.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=F.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case n.HYPHEN_MINUS:t.data+="--!",this.state=F.COMMENT_END_DASH;break;case n.GREATER_THAN_SIGN:this._err(d.incorrectlyClosedComment),this.state=F.DATA,this.emitCurrentComment(t);break;case n.EOF:this._err(d.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=F.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:this.state=F.BEFORE_DOCTYPE_NAME;break;case n.GREATER_THAN_SIGN:this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case n.EOF:{this._err(d.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(d.missingWhitespaceBeforeDoctypeName),this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(O(e))this._createDoctypeToken(String.fromCharCode(U(e))),this.state=F.DOCTYPE_NAME;else switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.NULL:this._err(d.unexpectedNullCharacter),this._createDoctypeToken(r),this.state=F.DOCTYPE_NAME;break;case n.GREATER_THAN_SIGN:{this._err(d.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=F.DATA;break}case n.EOF:{this._err(d.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=F.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:this.state=F.AFTER_DOCTYPE_NAME;break;case n.GREATER_THAN_SIGN:this.state=F.DATA,this.emitCurrentDoctype(t);break;case n.NULL:this._err(d.unexpectedNullCharacter),t.name+=r;break;case n.EOF:this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(O(e)?U(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.GREATER_THAN_SIGN:this.state=F.DATA,this.emitCurrentDoctype(t);break;case n.EOF:this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=F.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=F.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(d.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:this.state=F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case n.QUOTATION_MARK:this._err(d.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case n.APOSTROPHE:this._err(d.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case n.GREATER_THAN_SIGN:this._err(d.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(t);break;case n.EOF:this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(d.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.QUOTATION_MARK:t.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case n.APOSTROPHE:t.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case n.GREATER_THAN_SIGN:this._err(d.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(t);break;case n.EOF:this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(d.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case n.QUOTATION_MARK:this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case n.NULL:this._err(d.unexpectedNullCharacter),t.publicId+=r;break;case n.GREATER_THAN_SIGN:this._err(d.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=F.DATA;break;case n.EOF:this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case n.APOSTROPHE:this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case n.NULL:this._err(d.unexpectedNullCharacter),t.publicId+=r;break;case n.GREATER_THAN_SIGN:this._err(d.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=F.DATA;break;case n.EOF:this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:this.state=F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case n.GREATER_THAN_SIGN:this.state=F.DATA,this.emitCurrentDoctype(t);break;case n.QUOTATION_MARK:this._err(d.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case n.APOSTROPHE:this._err(d.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case n.EOF:this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=F.DATA;break;case n.QUOTATION_MARK:t.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case n.APOSTROPHE:t.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case n.EOF:this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:this.state=F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case n.QUOTATION_MARK:this._err(d.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case n.APOSTROPHE:this._err(d.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case n.GREATER_THAN_SIGN:this._err(d.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(t);break;case n.EOF:this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.QUOTATION_MARK:t.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case n.APOSTROPHE:t.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case n.GREATER_THAN_SIGN:this._err(d.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(t);break;case n.EOF:this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case n.QUOTATION_MARK:this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case n.NULL:this._err(d.unexpectedNullCharacter),t.systemId+=r;break;case n.GREATER_THAN_SIGN:this._err(d.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=F.DATA;break;case n.EOF:this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case n.APOSTROPHE:this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case n.NULL:this._err(d.unexpectedNullCharacter),t.systemId+=r;break;case n.GREATER_THAN_SIGN:this._err(d.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=F.DATA;break;case n.EOF:this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=F.DATA;break;case n.EOF:this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(d.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case n.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=F.DATA;break;case n.NULL:this._err(d.unexpectedNullCharacter);break;case n.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case n.RIGHT_SQUARE_BRACKET:this.state=F.CDATA_SECTION_BRACKET;break;case n.EOF:this._err(d.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===n.RIGHT_SQUARE_BRACKET?this.state=F.CDATA_SECTION_END:(this._emitChars("]"),this.state=F.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case n.GREATER_THAN_SIGN:this.state=F.DATA;break;case n.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=F.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(e){e===n.NUMBER_SIGN?this.state=F.NUMERIC_CHARACTER_REFERENCE:R(e)?(this.state=F.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(n.AMPERSAND),this._reconsumeInState(this.returnState,e))}_stateNamedCharacterReference(e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation());else if(t){for(let e=0;e<t.length;e++)this._flushCodePointConsumedAsCharacterReference(t[e]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(n.AMPERSAND),this.state=F.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(e){R(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===n.SEMICOLON&&this._err(d.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,e))}_stateNumericCharacterReference(e){this.charRefCode=0,e===n.LATIN_SMALL_X||e===n.LATIN_CAPITAL_X?this.state=F.HEXADEMICAL_CHARACTER_REFERENCE_START:I(e)?(this.state=F.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(e)):(this._err(d.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(n.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(n.NUMBER_SIGN),this._reconsumeInState(this.returnState,e))}_stateHexademicalCharacterReferenceStart(e){(e=>I(e)||L(e)||B(e))(e)?(this.state=F.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(e)):(this._err(d.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(n.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(n.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(e){L(e)?this.charRefCode=16*this.charRefCode+e-55:B(e)?this.charRefCode=16*this.charRefCode+e-87:I(e)?this.charRefCode=16*this.charRefCode+e-48:e===n.SEMICOLON?this.state=F.NUMERIC_CHARACTER_REFERENCE_END:(this._err(d.missingSemicolonAfterCharacterReference),this.state=F.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateDecimalCharacterReference(e){I(e)?this.charRefCode=10*this.charRefCode+e-48:e===n.SEMICOLON?this.state=F.NUMERIC_CHARACTER_REFERENCE_END:(this._err(d.missingSemicolonAfterCharacterReference),this.state=F.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateNumericCharacterReferenceEnd(e){if(this.charRefCode===n.NULL)this._err(d.nullCharacterReference),this.charRefCode=n.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(d.characterReferenceOutsideUnicodeRange),this.charRefCode=n.REPLACEMENT_CHARACTER;else if(s(this.charRefCode))this._err(d.surrogateCharacterReference),this.charRefCode=n.REPLACEMENT_CHARACTER;else if(l(this.charRefCode))this._err(d.noncharacterCharacterReference);else if(c(this.charRefCode)||this.charRefCode===n.CARRIAGE_RETURN){this._err(d.controlCharacterReference);const e=w.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}const H=new Set([b.DD,b.DT,b.LI,b.OPTGROUP,b.OPTION,b.P,b.RB,b.RP,b.RT,b.RTC]),W=new Set([...H,b.CAPTION,b.COLGROUP,b.TBODY,b.TD,b.TFOOT,b.TH,b.THEAD,b.TR]),K=new Map([[b.APPLET,g.HTML],[b.CAPTION,g.HTML],[b.HTML,g.HTML],[b.MARQUEE,g.HTML],[b.OBJECT,g.HTML],[b.TABLE,g.HTML],[b.TD,g.HTML],[b.TEMPLATE,g.HTML],[b.TH,g.HTML],[b.ANNOTATION_XML,g.MATHML],[b.MI,g.MATHML],[b.MN,g.MATHML],[b.MO,g.MATHML],[b.MS,g.MATHML],[b.MTEXT,g.MATHML],[b.DESC,g.SVG],[b.FOREIGN_OBJECT,g.SVG],[b.TITLE,g.SVG]]),J=[b.H1,b.H2,b.H3,b.H4,b.H5,b.H6],G=[b.TR,b.TEMPLATE,b.HTML],$=[b.TBODY,b.TFOOT,b.THEAD,b.TEMPLATE,b.HTML],q=[b.TABLE,b.TEMPLATE,b.HTML],X=[b.TD,b.TH];class Y{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,r){this.treeAdapter=t,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=b.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===b.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===g.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){const n=this._indexOf(e)+1;this.items.splice(n,0,t),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==g.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(J,g.HTML)}popUntilTableCellPopped(){this.popUntilPopped(X,g.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let r=this.stackTop;r>=0;r--)if(e.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return-1}clearBackTo(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(q,g.HTML)}clearBackToTableBodyContext(){this.clearBackTo($,g.HTML)}clearBackToTableRowContext(){this.clearBackTo(G,g.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===b.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===b.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===g.HTML)return!0;if(K.get(r)===n)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(N(t)&&r===g.HTML)return!0;if(K.get(t)===r)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===g.HTML)return!0;if((r===b.UL||r===b.OL)&&n===g.HTML||K.get(r)===n)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===g.HTML)return!0;if(r===b.BUTTON&&n===g.HTML||K.get(r)===n)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===g.HTML){if(r===e)return!0;if(r===b.TABLE||r===b.TEMPLATE||r===b.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===g.HTML){if(t===b.TBODY||t===b.THEAD||t===b.TFOOT)return!0;if(t===b.TABLE||t===b.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===g.HTML){if(r===e)return!0;if(r!==b.OPTION&&r!==b.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;H.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;W.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&W.has(this.currentTagId);)this.pop()}}var Q;!(e=>{e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Q=Q||(Q={}));const Z={type:Q.Marker};class ee{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const r=[],n=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){const t=this.entries[e];if(t.type===Q.Marker)break;const{element:o}=t;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===a){const t=this.treeAdapter.getAttrList(o);t.length===n&&r.push({idx:e,attrs:t})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,t);if(r.length<3)return;const n=new Map(t.map((e=>[e.name,e.value])));let i=0;for(let e=0;e<r.length;e++){const t=r[e];t.attrs.every((e=>n.get(e.name)===e.value))&&(i+=1,i>=3&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(Z)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Q.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Q.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(Z);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===Q.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===Q.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===Q.Element&&t.element===e))}}function te(e){return{nodeName:"#text",value:e,parentNode:null}}const re={createDocument:()=>({nodeName:"#document",mode:y.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,r)=>({nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,r,n){const i=e.childNodes.find((e=>"#documentType"===e.nodeName));if(i)i.name=t,i.publicId=r,i.systemId=n;else{const i={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};re.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(re.isTextNode(r))return void(r.value+=t)}re.appendChild(e,te(t))},insertTextBefore(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&re.isTextNode(n)?n.value+=t:re.insertBefore(e,te(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map((e=>e.name)));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},ne="html",ie=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],ae=[...ie,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],oe=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),se=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],ce=[...se,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function le(e,t){return t.some((t=>e.startsWith(t)))}const de=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),ue=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:g.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:g.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:g.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:g.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:g.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:g.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:g.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:g.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:g.XML}],["xml:space",{prefix:"xml",name:"space",namespace:g.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:g.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:g.XMLNS}]]),pe=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),_e=new Set([b.B,b.BIG,b.BLOCKQUOTE,b.BODY,b.BR,b.CENTER,b.CODE,b.DD,b.DIV,b.DL,b.DT,b.EM,b.EMBED,b.H1,b.H2,b.H3,b.H4,b.H5,b.H6,b.HEAD,b.HR,b.I,b.IMG,b.LI,b.LISTING,b.MENU,b.META,b.NOBR,b.OL,b.P,b.PRE,b.RUBY,b.S,b.SMALL,b.SPAN,b.STRONG,b.STRIKE,b.SUB,b.SUP,b.TABLE,b.TT,b.U,b.UL,b.VAR]);function fe(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function me(e){for(let t=0;t<e.attrs.length;t++){const r=de.get(e.attrs[t].name);null!=r&&(e.attrs[t].name=r)}}function ge(e){for(let t=0;t<e.attrs.length;t++){const r=ue.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}var he;!(e=>{e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(he||(he={}));const ye={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ve=new Set([b.TABLE,b.TBODY,b.TFOOT,b.THEAD,b.TR]),be={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:re,onParseError:null};class Ee{constructor(e,t,r=null,n=null){this.fragmentContext=r,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=he.INITIAL,this.originalInsertionMode=he.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...be,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new z(this.options,this),this.activeFormattingElements=new ee(this.treeAdapter),this.fragmentContextID=r?C(this.treeAdapter.getTagName(r)):b.UNKNOWN,this._setContextModes(null!=r?r:this.document,this.fragmentContextID),this.openElements=new Y(this.document,this.treeAdapter,this)}static parse(e,t){const r=new this(t);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,t){const r={...be,...t};null!=e||(e=r.treeAdapter.createElement(v.TEMPLATE,g.HTML,[]));const n=r.treeAdapter.createElement("documentmock",g.HTML,[]),i=new this(r,n,e);return i.fragmentContextID===b.TEMPLATE&&i.tmplInsertionModeStack.unshift(he.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,r){var n;if(!this.onParseError)return;const i=null!==(n=e.location)&&void 0!==n?n:ye,a={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(e,t,r){var n,i;null===(i=(n=this.treeAdapter).onItemPush)||void 0===i||i.call(n,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var r,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(n=(r=this.treeAdapter).onItemPop)||void 0===n||n.call(r,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const r=e===this.document||this.treeAdapter.getNamespaceURI(e)===g.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,g.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=he.TEXT}switchToPlaintextParsing(){this.insertionMode=he.TEXT,this.originalInsertionMode=he.IN_BODY,this.tokenizer.state=P.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===v.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===g.HTML)switch(this.fragmentContextID){case b.TITLE:case b.TEXTAREA:this.tokenizer.state=P.RCDATA;break;case b.STYLE:case b.XMP:case b.IFRAME:case b.NOEMBED:case b.NOFRAMES:case b.NOSCRIPT:this.tokenizer.state=P.RAWTEXT;break;case b.SCRIPT:this.tokenizer.state=P.SCRIPT_DATA;break;case b.PLAINTEXT:this.tokenizer.state=P.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",n=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,n),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const r=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,t){const r=this.treeAdapter.createElement(e,g.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,g.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(v.HTML,g.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,b.HTML)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let t,r;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:r}=this._findFosterParentingLocation()),r?this.treeAdapter.insertTextBefore(t,e.chars,r):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const n=this.treeAdapter.getChildNodes(t),i=r?n.lastIndexOf(r):n.length,a=n[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:t,endCol:r,endOffset:n}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:r,endOffset:n})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,n=this.treeAdapter.getTagName(e),i=t.type===u.END_TAG&&n===t.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,r;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,r=this.fragmentContextID):({current:t,currentTagId:r}=this.openElements),(e.tagID!==b.SVG||this.treeAdapter.getTagName(t)!==v.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==g.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===b.MGLYPH||e.tagID===b.MALIGNMARK)&&!this._isIntegrationPoint(r,t,g.HTML))}_processToken(e){switch(e.type){case u.CHARACTER:this.onCharacter(e);break;case u.NULL_CHARACTER:this.onNullCharacter(e);break;case u.COMMENT:this.onComment(e);break;case u.DOCTYPE:this.onDoctype(e);break;case u.START_TAG:this._processStartTag(e);break;case u.END_TAG:this.onEndTag(e);break;case u.EOF:this.onEof(e);break;case u.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,r){return((e,t,r,n)=>(!n||n===g.HTML)&&((e,t,r)=>{if(t===g.MATHML&&e===b.ANNOTATION_XML)for(let e=0;e<r.length;e++)if(r[e].name===h.ENCODING){const t=r[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}return t===g.SVG&&(e===b.FOREIGN_OBJECT||e===b.DESC||e===b.TITLE)})(e,t,r)||(!n||n===g.MATHML)&&((e,t)=>t===g.MATHML&&(e===b.MI||e===b.MO||e===b.MN||e===b.MS||e===b.MTEXT))(e,t))(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),r)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===Q.Marker||this.openElements.contains(e.element)));for(let r=t<0?e-1:t-1;r>=0;r--){const e=this.activeFormattingElements.entries[r];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=he.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(b.P),this.openElements.popUntilTagNamePopped(b.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case b.TR:return void(this.insertionMode=he.IN_ROW);case b.TBODY:case b.THEAD:case b.TFOOT:return void(this.insertionMode=he.IN_TABLE_BODY);case b.CAPTION:return void(this.insertionMode=he.IN_CAPTION);case b.COLGROUP:return void(this.insertionMode=he.IN_COLUMN_GROUP);case b.TABLE:return void(this.insertionMode=he.IN_TABLE);case b.BODY:return void(this.insertionMode=he.IN_BODY);case b.FRAMESET:return void(this.insertionMode=he.IN_FRAMESET);case b.SELECT:return void this._resetInsertionModeForSelect(e);case b.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case b.HTML:return void(this.insertionMode=this.headElement?he.AFTER_HEAD:he.BEFORE_HEAD);case b.TD:case b.TH:if(e>0)return void(this.insertionMode=he.IN_CELL);break;case b.HEAD:if(e>0)return void(this.insertionMode=he.IN_HEAD)}this.insertionMode=he.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===b.TEMPLATE)break;if(e===b.TABLE)return void(this.insertionMode=he.IN_SELECT_IN_TABLE)}this.insertionMode=he.IN_SELECT}_isElementCausesFosterParenting(e){return ve.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case b.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===g.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case b.TABLE:{const r=this.treeAdapter.getParentNode(t);return r?{parent:r,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const r=this.treeAdapter.getNamespaceURI(e);return k[r].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!((e,t)=>{e._insertCharacters(t),e.framesetOk=!1})(this,e);else switch(this.insertionMode){case he.INITIAL:Fe(this,e);break;case he.BEFORE_HTML:Pe(this,e);break;case he.BEFORE_HEAD:Ie(this,e);break;case he.IN_HEAD:Re(this,e);break;case he.IN_HEAD_NO_SCRIPT:Le(this,e);break;case he.AFTER_HEAD:Be(this,e);break;case he.IN_BODY:case he.IN_CAPTION:case he.IN_CELL:case he.IN_TEMPLATE:Ve(this,e);break;case he.TEXT:case he.IN_SELECT:case he.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case he.IN_TABLE:case he.IN_TABLE_BODY:case he.IN_ROW:Xe(this,e);break;case he.IN_TABLE_TEXT:tt(this,e);break;case he.IN_COLUMN_GROUP:at(this,e);break;case he.AFTER_BODY:ft(this,e);break;case he.AFTER_AFTER_BODY:mt(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!((e,t)=>{t.chars=r,e._insertCharacters(t)})(this,e);else switch(this.insertionMode){case he.INITIAL:Fe(this,e);break;case he.BEFORE_HTML:Pe(this,e);break;case he.BEFORE_HEAD:Ie(this,e);break;case he.IN_HEAD:Re(this,e);break;case he.IN_HEAD_NO_SCRIPT:Le(this,e);break;case he.AFTER_HEAD:Be(this,e);break;case he.TEXT:this._insertCharacters(e);break;case he.IN_TABLE:case he.IN_TABLE_BODY:case he.IN_ROW:Xe(this,e);break;case he.IN_COLUMN_GROUP:at(this,e);break;case he.AFTER_BODY:ft(this,e);break;case he.AFTER_AFTER_BODY:mt(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)Ne(this,e);else switch(this.insertionMode){case he.INITIAL:case he.BEFORE_HTML:case he.BEFORE_HEAD:case he.IN_HEAD:case he.IN_HEAD_NO_SCRIPT:case he.AFTER_HEAD:case he.IN_BODY:case he.IN_TABLE:case he.IN_CAPTION:case he.IN_COLUMN_GROUP:case he.IN_TABLE_BODY:case he.IN_ROW:case he.IN_CELL:case he.IN_SELECT:case he.IN_SELECT_IN_TABLE:case he.IN_TEMPLATE:case he.IN_FRAMESET:case he.AFTER_FRAMESET:Ne(this,e);break;case he.IN_TABLE_TEXT:rt(this,e);break;case he.AFTER_BODY:!((e,t)=>{e._appendCommentNode(t,e.openElements.items[0])})(this,e);break;case he.AFTER_AFTER_BODY:case he.AFTER_AFTER_FRAMESET:!((e,t)=>{e._appendCommentNode(t,e.document)})(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case he.INITIAL:!((e,t)=>{e._setDocumentType(t);const r=t.forceQuirks?y.QUIRKS:(e=>{if(e.name!==ne)return y.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return y.QUIRKS;let{publicId:r}=e;if(null!==r){if(r=r.toLowerCase(),oe.has(r))return y.QUIRKS;let e=null===t?ae:ie;if(le(r,e))return y.QUIRKS;if(e=null===t?se:ce,le(r,e))return y.LIMITED_QUIRKS}return y.NO_QUIRKS})(t);(e=>e.name===ne&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId))(t)||e._err(t,d.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=he.BEFORE_HTML})(this,e);break;case he.BEFORE_HEAD:case he.IN_HEAD:case he.IN_HEAD_NO_SCRIPT:case he.AFTER_HEAD:this._err(e,d.misplacedDoctype);break;case he.IN_TABLE_TEXT:rt(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,d.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?((e,t)=>{if((e=>{const t=e.tagID;return t===b.FONT&&e.attrs.some((({name:e})=>e===h.COLOR||e===h.SIZE||e===h.FACE))||_e.has(t)})(t))gt(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===g.MATHML?fe(t):n===g.SVG&&((e=>{const t=pe.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=C(e.tagName))})(t),me(t)),ge(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}})(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case he.INITIAL:Fe(this,e);break;case he.BEFORE_HTML:!((e,t)=>{t.tagID===b.HTML?(e._insertElement(t,g.HTML),e.insertionMode=he.BEFORE_HEAD):Pe(e,t)})(this,e);break;case he.BEFORE_HEAD:!((e,t)=>{switch(t.tagID){case b.HTML:Je(e,t);break;case b.HEAD:e._insertElement(t,g.HTML),e.headElement=e.openElements.current,e.insertionMode=he.IN_HEAD;break;default:Ie(e,t)}})(this,e);break;case he.IN_HEAD:Oe(this,e);break;case he.IN_HEAD_NO_SCRIPT:!((e,t)=>{switch(t.tagID){case b.HTML:Je(e,t);break;case b.BASEFONT:case b.BGSOUND:case b.HEAD:case b.LINK:case b.META:case b.NOFRAMES:case b.STYLE:Oe(e,t);break;case b.NOSCRIPT:e._err(t,d.nestedNoscriptInHead);break;default:Le(e,t)}})(this,e);break;case he.AFTER_HEAD:!((e,t)=>{switch(t.tagID){case b.HTML:Je(e,t);break;case b.BODY:e._insertElement(t,g.HTML),e.framesetOk=!1,e.insertionMode=he.IN_BODY;break;case b.FRAMESET:e._insertElement(t,g.HTML),e.insertionMode=he.IN_FRAMESET;break;case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:case b.NOFRAMES:case b.SCRIPT:case b.STYLE:case b.TEMPLATE:case b.TITLE:e._err(t,d.abandonedHeadElementChild),e.openElements.push(e.headElement,b.HEAD),Oe(e,t),e.openElements.remove(e.headElement);break;case b.HEAD:e._err(t,d.misplacedStartTagForHeadElement);break;default:Be(e,t)}})(this,e);break;case he.IN_BODY:Je(this,e);break;case he.IN_TABLE:Ye(this,e);break;case he.IN_TABLE_TEXT:rt(this,e);break;case he.IN_CAPTION:!((e,t)=>{const r=t.tagID;nt.has(r)?e.openElements.hasInTableScope(b.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=he.IN_TABLE,Ye(e,t)):Je(e,t)})(this,e);break;case he.IN_COLUMN_GROUP:it(this,e);break;case he.IN_TABLE_BODY:ot(this,e);break;case he.IN_ROW:ct(this,e);break;case he.IN_CELL:!((e,t)=>{const r=t.tagID;nt.has(r)?(e.openElements.hasInTableScope(b.TD)||e.openElements.hasInTableScope(b.TH))&&(e._closeTableCell(),ct(e,t)):Je(e,t)})(this,e);break;case he.IN_SELECT:dt(this,e);break;case he.IN_SELECT_IN_TABLE:!((e,t)=>{const r=t.tagID;r===b.CAPTION||r===b.TABLE||r===b.TBODY||r===b.TFOOT||r===b.THEAD||r===b.TR||r===b.TD||r===b.TH?(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),e._processStartTag(t)):dt(e,t)})(this,e);break;case he.IN_TEMPLATE:!((e,t)=>{switch(t.tagID){case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:case b.NOFRAMES:case b.SCRIPT:case b.STYLE:case b.TEMPLATE:case b.TITLE:Oe(e,t);break;case b.CAPTION:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:e.tmplInsertionModeStack[0]=he.IN_TABLE,e.insertionMode=he.IN_TABLE,Ye(e,t);break;case b.COL:e.tmplInsertionModeStack[0]=he.IN_COLUMN_GROUP,e.insertionMode=he.IN_COLUMN_GROUP,it(e,t);break;case b.TR:e.tmplInsertionModeStack[0]=he.IN_TABLE_BODY,e.insertionMode=he.IN_TABLE_BODY,ot(e,t);break;case b.TD:case b.TH:e.tmplInsertionModeStack[0]=he.IN_ROW,e.insertionMode=he.IN_ROW,ct(e,t);break;default:e.tmplInsertionModeStack[0]=he.IN_BODY,e.insertionMode=he.IN_BODY,Je(e,t)}})(this,e);break;case he.AFTER_BODY:!((e,t)=>{t.tagID===b.HTML?Je(e,t):ft(e,t)})(this,e);break;case he.IN_FRAMESET:!((e,t)=>{switch(t.tagID){case b.HTML:Je(e,t);break;case b.FRAMESET:e._insertElement(t,g.HTML);break;case b.FRAME:e._appendElement(t,g.HTML),t.ackSelfClosing=!0;break;case b.NOFRAMES:Oe(e,t)}})(this,e);break;case he.AFTER_FRAMESET:!((e,t)=>{switch(t.tagID){case b.HTML:Je(e,t);break;case b.NOFRAMES:Oe(e,t)}})(this,e);break;case he.AFTER_AFTER_BODY:!((e,t)=>{t.tagID===b.HTML?Je(e,t):mt(e,t)})(this,e);break;case he.AFTER_AFTER_FRAMESET:!((e,t)=>{switch(t.tagID){case b.HTML:Je(e,t);break;case b.NOFRAMES:Oe(e,t)}})(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?((e,t)=>{if(t.tagID===b.P||t.tagID===b.BR)return gt(e),void e._endTagOutsideForeignContent(t);for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===g.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}})(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case he.INITIAL:Fe(this,e);break;case he.BEFORE_HTML:!((e,t)=>{const r=t.tagID;r!==b.HTML&&r!==b.HEAD&&r!==b.BODY&&r!==b.BR||Pe(e,t)})(this,e);break;case he.BEFORE_HEAD:!((e,t)=>{const r=t.tagID;r===b.HEAD||r===b.BODY||r===b.HTML||r===b.BR?Ie(e,t):e._err(t,d.endTagWithoutMatchingOpenElement)})(this,e);break;case he.IN_HEAD:!((e,t)=>{switch(t.tagID){case b.HEAD:e.openElements.pop(),e.insertionMode=he.AFTER_HEAD;break;case b.BODY:case b.BR:case b.HTML:Re(e,t);break;case b.TEMPLATE:Me(e,t);break;default:e._err(t,d.endTagWithoutMatchingOpenElement)}})(this,e);break;case he.IN_HEAD_NO_SCRIPT:!((e,t)=>{switch(t.tagID){case b.NOSCRIPT:e.openElements.pop(),e.insertionMode=he.IN_HEAD;break;case b.BR:Le(e,t);break;default:e._err(t,d.endTagWithoutMatchingOpenElement)}})(this,e);break;case he.AFTER_HEAD:!((e,t)=>{switch(t.tagID){case b.BODY:case b.HTML:case b.BR:Be(e,t);break;case b.TEMPLATE:Me(e,t);break;default:e._err(t,d.endTagWithoutMatchingOpenElement)}})(this,e);break;case he.IN_BODY:$e(this,e);break;case he.TEXT:!((e,t)=>{var r;t.tagID===b.SCRIPT&&(null===(r=e.scriptHandler)||void 0===r||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode})(this,e);break;case he.IN_TABLE:Qe(this,e);break;case he.IN_TABLE_TEXT:rt(this,e);break;case he.IN_CAPTION:!((e,t)=>{const r=t.tagID;switch(r){case b.CAPTION:case b.TABLE:e.openElements.hasInTableScope(b.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=he.IN_TABLE,r===b.TABLE&&Qe(e,t));break;case b.BODY:case b.COL:case b.COLGROUP:case b.HTML:case b.TBODY:case b.TD:case b.TFOOT:case b.TH:case b.THEAD:case b.TR:break;default:$e(e,t)}})(this,e);break;case he.IN_COLUMN_GROUP:!((e,t)=>{switch(t.tagID){case b.COLGROUP:e.openElements.currentTagId===b.COLGROUP&&(e.openElements.pop(),e.insertionMode=he.IN_TABLE);break;case b.TEMPLATE:Me(e,t);break;case b.COL:break;default:at(e,t)}})(this,e);break;case he.IN_TABLE_BODY:st(this,e);break;case he.IN_ROW:lt(this,e);break;case he.IN_CELL:!((e,t)=>{const r=t.tagID;switch(r){case b.TD:case b.TH:e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=he.IN_ROW);break;case b.TABLE:case b.TBODY:case b.TFOOT:case b.THEAD:case b.TR:e.openElements.hasInTableScope(r)&&(e._closeTableCell(),lt(e,t));break;case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:break;default:$e(e,t)}})(this,e);break;case he.IN_SELECT:ut(this,e);break;case he.IN_SELECT_IN_TABLE:!((e,t)=>{const r=t.tagID;r===b.CAPTION||r===b.TABLE||r===b.TBODY||r===b.TFOOT||r===b.THEAD||r===b.TR||r===b.TD||r===b.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),e.onEndTag(t)):ut(e,t)})(this,e);break;case he.IN_TEMPLATE:!((e,t)=>{t.tagID===b.TEMPLATE&&Me(e,t)})(this,e);break;case he.AFTER_BODY:_t(this,e);break;case he.IN_FRAMESET:!((e,t)=>{t.tagID!==b.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===b.FRAMESET||(e.insertionMode=he.AFTER_FRAMESET))})(this,e);break;case he.AFTER_FRAMESET:!((e,t)=>{t.tagID===b.HTML&&(e.insertionMode=he.AFTER_AFTER_FRAMESET)})(this,e);break;case he.AFTER_AFTER_BODY:mt(this,e)}}onEof(e){switch(this.insertionMode){case he.INITIAL:Fe(this,e);break;case he.BEFORE_HTML:Pe(this,e);break;case he.BEFORE_HEAD:Ie(this,e);break;case he.IN_HEAD:Re(this,e);break;case he.IN_HEAD_NO_SCRIPT:Le(this,e);break;case he.AFTER_HEAD:Be(this,e);break;case he.IN_BODY:case he.IN_TABLE:case he.IN_CAPTION:case he.IN_COLUMN_GROUP:case he.IN_TABLE_BODY:case he.IN_ROW:case he.IN_CELL:case he.IN_SELECT:case he.IN_SELECT_IN_TABLE:qe(this,e);break;case he.TEXT:!((e,t)=>{e._err(t,d.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)})(this,e);break;case he.IN_TABLE_TEXT:rt(this,e);break;case he.IN_TEMPLATE:pt(this,e);break;case he.AFTER_BODY:case he.IN_FRAMESET:case he.AFTER_FRAMESET:case he.AFTER_AFTER_BODY:case he.AFTER_AFTER_FRAMESET:we(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===n.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case he.IN_HEAD:case he.IN_HEAD_NO_SCRIPT:case he.AFTER_HEAD:case he.TEXT:case he.IN_COLUMN_GROUP:case he.IN_SELECT:case he.IN_SELECT_IN_TABLE:case he.IN_FRAMESET:case he.AFTER_FRAMESET:this._insertCharacters(e);break;case he.IN_BODY:case he.IN_CAPTION:case he.IN_CELL:case he.IN_TEMPLATE:case he.AFTER_BODY:case he.AFTER_AFTER_BODY:case he.AFTER_AFTER_FRAMESET:je(this,e);break;case he.IN_TABLE:case he.IN_TABLE_BODY:case he.IN_ROW:Xe(this,e);break;case he.IN_TABLE_TEXT:et(this,e)}}}function xe(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):Ge(e,t),r}function De(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[n])&&(r=i)}return r||(e.openElements.shortenToLength(n<0?0:n),e.activeFormattingElements.removeEntry(t)),r}function Se(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==r;a++,o=i){i=e.openElements.getCommonAncestor(o);const r=e.activeFormattingElements.getElementEntry(o),s=r&&a>=3;!r||s?(s&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(o)):(o=Te(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(o,n),n=o)}return n}function Te(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function Ce(e,t,r){const n=C(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(n))e._fosterParentElement(r);else{const i=e.treeAdapter.getNamespaceURI(t);n===b.TEMPLATE&&i===g.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Ae(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,a=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,a,i.tagID)}function ke(e,t){for(let r=0;r<8;r++){const r=xe(e,t);if(!r)break;const n=De(e,r);if(!n)break;e.activeFormattingElements.bookmark=r;const i=Se(e,n,r.element),a=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),a&&Ce(e,a,i),Ae(e,n,r)}}function Ne(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function we(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(r);if(n&&!n.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const r=e.openElements.items[1],n=e.treeAdapter.getNodeSourceCodeLocation(r);n&&!n.endTag&&e._setEndLocation(r,t)}}}}function Fe(e,t){e._err(t,d.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,y.QUIRKS),e.insertionMode=he.BEFORE_HTML,e._processToken(t)}function Pe(e,t){e._insertFakeRootElement(),e.insertionMode=he.BEFORE_HEAD,e._processToken(t)}function Ie(e,t){e._insertFakeElement(v.HEAD,b.HEAD),e.headElement=e.openElements.current,e.insertionMode=he.IN_HEAD,e._processToken(t)}function Oe(e,t){switch(t.tagID){case b.HTML:Je(e,t);break;case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:e._appendElement(t,g.HTML),t.ackSelfClosing=!0;break;case b.TITLE:e._switchToTextParsing(t,P.RCDATA);break;case b.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,P.RAWTEXT):(e._insertElement(t,g.HTML),e.insertionMode=he.IN_HEAD_NO_SCRIPT);break;case b.NOFRAMES:case b.STYLE:e._switchToTextParsing(t,P.RAWTEXT);break;case b.SCRIPT:e._switchToTextParsing(t,P.SCRIPT_DATA);break;case b.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=he.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(he.IN_TEMPLATE);break;case b.HEAD:e._err(t,d.misplacedStartTagForHeadElement);break;default:Re(e,t)}}function Me(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==b.TEMPLATE&&e._err(t,d.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(b.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,d.endTagWithoutMatchingOpenElement)}function Re(e,t){e.openElements.pop(),e.insertionMode=he.AFTER_HEAD,e._processToken(t)}function Le(e,t){const r=t.type===u.EOF?d.openElementsLeftAfterEof:d.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=he.IN_HEAD,e._processToken(t)}function Be(e,t){e._insertFakeElement(v.BODY,b.BODY),e.insertionMode=he.IN_BODY,Ue(e,t)}function Ue(e,t){switch(t.type){case u.CHARACTER:Ve(e,t);break;case u.WHITESPACE_CHARACTER:je(e,t);break;case u.COMMENT:Ne(e,t);break;case u.START_TAG:Je(e,t);break;case u.END_TAG:$e(e,t);break;case u.EOF:qe(e,t)}}function je(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Ve(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ze(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,g.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function He(e){const t=_(e,h.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function We(e,t){e._switchToTextParsing(t,P.RAWTEXT)}function Ke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML)}function Je(e,t){switch(t.tagID){case b.I:case b.S:case b.B:case b.U:case b.EM:case b.TT:case b.BIG:case b.CODE:case b.FONT:case b.SMALL:case b.STRIKE:case b.STRONG:!((e,t)=>{e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)})(e,t);break;case b.A:!((e,t)=>{const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(v.A);r&&(ke(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)})(e,t);break;case b.H1:case b.H2:case b.H3:case b.H4:case b.H5:case b.H6:!((e,t)=>{e.openElements.hasInButtonScope(b.P)&&e._closePElement(),N(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,g.HTML)})(e,t);break;case b.P:case b.DL:case b.OL:case b.UL:case b.DIV:case b.DIR:case b.NAV:case b.MAIN:case b.MENU:case b.ASIDE:case b.CENTER:case b.FIGURE:case b.FOOTER:case b.HEADER:case b.HGROUP:case b.DIALOG:case b.DETAILS:case b.ADDRESS:case b.ARTICLE:case b.SECTION:case b.SUMMARY:case b.FIELDSET:case b.BLOCKQUOTE:case b.FIGCAPTION:!((e,t)=>{e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,g.HTML)})(e,t);break;case b.LI:case b.DD:case b.DT:!((e,t)=>{e.framesetOk=!1;const r=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){const n=e.openElements.tagIDs[t];if(r===b.LI&&n===b.LI||(r===b.DD||r===b.DT)&&(n===b.DD||n===b.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==b.ADDRESS&&n!==b.DIV&&n!==b.P&&e._isSpecialElement(e.openElements.items[t],n))break}e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,g.HTML)})(e,t);break;case b.BR:case b.IMG:case b.WBR:case b.AREA:case b.EMBED:case b.KEYGEN:ze(e,t);break;case b.HR:!((e,t)=>{e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._appendElement(t,g.HTML),e.framesetOk=!1,t.ackSelfClosing=!0})(e,t);break;case b.RB:case b.RTC:!((e,t)=>{e.openElements.hasInScope(b.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,g.HTML)})(e,t);break;case b.RT:case b.RP:!((e,t)=>{e.openElements.hasInScope(b.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(b.RTC),e._insertElement(t,g.HTML)})(e,t);break;case b.PRE:case b.LISTING:!((e,t)=>{e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,g.HTML),e.skipNextNewLine=!0,e.framesetOk=!1})(e,t);break;case b.XMP:!((e,t)=>{e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,P.RAWTEXT)})(e,t);break;case b.SVG:!((e,t)=>{e._reconstructActiveFormattingElements(),me(t),ge(t),t.selfClosing?e._appendElement(t,g.SVG):e._insertElement(t,g.SVG),t.ackSelfClosing=!0})(e,t);break;case b.HTML:!((e,t)=>{0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)})(e,t);break;case b.BASE:case b.LINK:case b.META:case b.STYLE:case b.TITLE:case b.SCRIPT:case b.BGSOUND:case b.BASEFONT:case b.TEMPLATE:Oe(e,t);break;case b.BODY:!((e,t)=>{const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))})(e,t);break;case b.FORM:!((e,t)=>{const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,g.HTML),r||(e.formElement=e.openElements.current))})(e,t);break;case b.NOBR:!((e,t)=>{e._reconstructActiveFormattingElements(),e.openElements.hasInScope(b.NOBR)&&(ke(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,g.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)})(e,t);break;case b.MATH:!((e,t)=>{e._reconstructActiveFormattingElements(),fe(t),ge(t),t.selfClosing?e._appendElement(t,g.MATHML):e._insertElement(t,g.MATHML),t.ackSelfClosing=!0})(e,t);break;case b.TABLE:!((e,t)=>{e.treeAdapter.getDocumentMode(e.document)!==y.QUIRKS&&e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,g.HTML),e.framesetOk=!1,e.insertionMode=he.IN_TABLE})(e,t);break;case b.INPUT:!((e,t)=>{e._reconstructActiveFormattingElements(),e._appendElement(t,g.HTML),He(t)||(e.framesetOk=!1),t.ackSelfClosing=!0})(e,t);break;case b.PARAM:case b.TRACK:case b.SOURCE:!((e,t)=>{e._appendElement(t,g.HTML),t.ackSelfClosing=!0})(e,t);break;case b.IMAGE:!((e,t)=>{t.tagName=v.IMG,t.tagID=b.IMG,ze(e,t)})(e,t);break;case b.BUTTON:!((e,t)=>{e.openElements.hasInScope(b.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.framesetOk=!1})(e,t);break;case b.APPLET:case b.OBJECT:case b.MARQUEE:!((e,t)=>{e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1})(e,t);break;case b.IFRAME:!((e,t)=>{e.framesetOk=!1,e._switchToTextParsing(t,P.RAWTEXT)})(e,t);break;case b.SELECT:!((e,t)=>{e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===he.IN_TABLE||e.insertionMode===he.IN_CAPTION||e.insertionMode===he.IN_TABLE_BODY||e.insertionMode===he.IN_ROW||e.insertionMode===he.IN_CELL?he.IN_SELECT_IN_TABLE:he.IN_SELECT})(e,t);break;case b.OPTION:case b.OPTGROUP:!((e,t)=>{e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML)})(e,t);break;case b.NOEMBED:We(e,t);break;case b.FRAMESET:!((e,t)=>{const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,g.HTML),e.insertionMode=he.IN_FRAMESET)})(e,t);break;case b.TEXTAREA:!((e,t)=>{e._insertElement(t,g.HTML),e.skipNextNewLine=!0,e.tokenizer.state=P.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=he.TEXT})(e,t);break;case b.NOSCRIPT:e.options.scriptingEnabled?We(e,t):Ke(e,t);break;case b.PLAINTEXT:!((e,t)=>{e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,g.HTML),e.tokenizer.state=P.PLAINTEXT})(e,t);break;case b.COL:case b.TH:case b.TD:case b.TR:case b.HEAD:case b.FRAME:case b.TBODY:case b.TFOOT:case b.THEAD:case b.CAPTION:case b.COLGROUP:break;default:Ke(e,t)}}function Ge(e,t){const r=t.tagName,n=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){const i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(n===a&&(n!==b.UNKNOWN||e.treeAdapter.getTagName(i)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function $e(e,t){switch(t.tagID){case b.A:case b.B:case b.I:case b.S:case b.U:case b.EM:case b.TT:case b.BIG:case b.CODE:case b.FONT:case b.NOBR:case b.SMALL:case b.STRIKE:case b.STRONG:ke(e,t);break;case b.P:!(e=>{e.openElements.hasInButtonScope(b.P)||e._insertFakeElement(v.P,b.P),e._closePElement()})(e);break;case b.DL:case b.UL:case b.OL:case b.DIR:case b.DIV:case b.NAV:case b.PRE:case b.MAIN:case b.MENU:case b.ASIDE:case b.BUTTON:case b.CENTER:case b.FIGURE:case b.FOOTER:case b.HEADER:case b.HGROUP:case b.DIALOG:case b.ADDRESS:case b.ARTICLE:case b.DETAILS:case b.SECTION:case b.SUMMARY:case b.LISTING:case b.FIELDSET:case b.BLOCKQUOTE:case b.FIGCAPTION:!((e,t)=>{const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))})(e,t);break;case b.LI:!(e=>{e.openElements.hasInListItemScope(b.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(b.LI),e.openElements.popUntilTagNamePopped(b.LI))})(e);break;case b.DD:case b.DT:!((e,t)=>{const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))})(e,t);break;case b.H1:case b.H2:case b.H3:case b.H4:case b.H5:case b.H6:!(e=>{e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())})(e);break;case b.BR:!(e=>{e._reconstructActiveFormattingElements(),e._insertFakeElement(v.BR,b.BR),e.openElements.pop(),e.framesetOk=!1})(e);break;case b.BODY:!((e,t)=>{if(e.openElements.hasInScope(b.BODY)&&(e.insertionMode=he.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}})(e,t);break;case b.HTML:!((e,t)=>{e.openElements.hasInScope(b.BODY)&&(e.insertionMode=he.AFTER_BODY,_t(e,t))})(e,t);break;case b.FORM:!(e=>{const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(b.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(b.FORM):r&&e.openElements.remove(r))})(e);break;case b.APPLET:case b.OBJECT:case b.MARQUEE:!((e,t)=>{const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())})(e,t);break;case b.TEMPLATE:Me(e,t);break;default:Ge(e,t)}}function qe(e,t){e.tmplInsertionModeStack.length>0?pt(e,t):we(e,t)}function Xe(e,t){if(ve.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=he.IN_TABLE_TEXT,t.type){case u.CHARACTER:tt(e,t);break;case u.WHITESPACE_CHARACTER:et(e,t)}else Ze(e,t)}function Ye(e,t){switch(t.tagID){case b.TD:case b.TH:case b.TR:!((e,t)=>{e.openElements.clearBackToTableContext(),e._insertFakeElement(v.TBODY,b.TBODY),e.insertionMode=he.IN_TABLE_BODY,ot(e,t)})(e,t);break;case b.STYLE:case b.SCRIPT:case b.TEMPLATE:Oe(e,t);break;case b.COL:!((e,t)=>{e.openElements.clearBackToTableContext(),e._insertFakeElement(v.COLGROUP,b.COLGROUP),e.insertionMode=he.IN_COLUMN_GROUP,it(e,t)})(e,t);break;case b.FORM:!((e,t)=>{e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,g.HTML),e.formElement=e.openElements.current,e.openElements.pop())})(e,t);break;case b.TABLE:!((e,t)=>{e.openElements.hasInTableScope(b.TABLE)&&(e.openElements.popUntilTagNamePopped(b.TABLE),e._resetInsertionMode(),e._processStartTag(t))})(e,t);break;case b.TBODY:case b.TFOOT:case b.THEAD:!((e,t)=>{e.openElements.clearBackToTableContext(),e._insertElement(t,g.HTML),e.insertionMode=he.IN_TABLE_BODY})(e,t);break;case b.INPUT:!((e,t)=>{He(t)?e._appendElement(t,g.HTML):Ze(e,t),t.ackSelfClosing=!0})(e,t);break;case b.CAPTION:!((e,t)=>{e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,g.HTML),e.insertionMode=he.IN_CAPTION})(e,t);break;case b.COLGROUP:!((e,t)=>{e.openElements.clearBackToTableContext(),e._insertElement(t,g.HTML),e.insertionMode=he.IN_COLUMN_GROUP})(e,t);break;default:Ze(e,t)}}function Qe(e,t){switch(t.tagID){case b.TABLE:e.openElements.hasInTableScope(b.TABLE)&&(e.openElements.popUntilTagNamePopped(b.TABLE),e._resetInsertionMode());break;case b.TEMPLATE:Me(e,t);break;case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TBODY:case b.TD:case b.TFOOT:case b.TH:case b.THEAD:case b.TR:break;default:Ze(e,t)}}function Ze(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Ue(e,t),e.fosterParentingEnabled=r}function et(e,t){e.pendingCharacterTokens.push(t)}function tt(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function rt(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Ze(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const nt=new Set([b.CAPTION,b.COL,b.COLGROUP,b.TBODY,b.TD,b.TFOOT,b.TH,b.THEAD,b.TR]);function it(e,t){switch(t.tagID){case b.HTML:Je(e,t);break;case b.COL:e._appendElement(t,g.HTML),t.ackSelfClosing=!0;break;case b.TEMPLATE:Oe(e,t);break;default:at(e,t)}}function at(e,t){e.openElements.currentTagId===b.COLGROUP&&(e.openElements.pop(),e.insertionMode=he.IN_TABLE,e._processToken(t))}function ot(e,t){switch(t.tagID){case b.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,g.HTML),e.insertionMode=he.IN_ROW;break;case b.TH:case b.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(v.TR,b.TR),e.insertionMode=he.IN_ROW,ct(e,t);break;case b.CAPTION:case b.COL:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=he.IN_TABLE,Ye(e,t));break;default:Ye(e,t)}}function st(e,t){const r=t.tagID;switch(t.tagID){case b.TBODY:case b.TFOOT:case b.THEAD:e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=he.IN_TABLE);break;case b.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=he.IN_TABLE,Qe(e,t));break;case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TD:case b.TH:case b.TR:break;default:Qe(e,t)}}function ct(e,t){switch(t.tagID){case b.TH:case b.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,g.HTML),e.insertionMode=he.IN_CELL,e.activeFormattingElements.insertMarker();break;case b.CAPTION:case b.COL:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:case b.TR:e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=he.IN_TABLE_BODY,ot(e,t));break;default:Ye(e,t)}}function lt(e,t){switch(t.tagID){case b.TR:e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=he.IN_TABLE_BODY);break;case b.TABLE:e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=he.IN_TABLE_BODY,st(e,t));break;case b.TBODY:case b.TFOOT:case b.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(b.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=he.IN_TABLE_BODY,st(e,t));break;case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TD:case b.TH:break;default:Qe(e,t)}}function dt(e,t){switch(t.tagID){case b.HTML:Je(e,t);break;case b.OPTION:e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e._insertElement(t,g.HTML);break;case b.OPTGROUP:e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e.openElements.currentTagId===b.OPTGROUP&&e.openElements.pop(),e._insertElement(t,g.HTML);break;case b.INPUT:case b.KEYGEN:case b.TEXTAREA:case b.SELECT:e.openElements.hasInSelectScope(b.SELECT)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),t.tagID!==b.SELECT&&e._processStartTag(t));break;case b.SCRIPT:case b.TEMPLATE:Oe(e,t)}}function ut(e,t){switch(t.tagID){case b.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===b.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===b.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===b.OPTGROUP&&e.openElements.pop();break;case b.OPTION:e.openElements.currentTagId===b.OPTION&&e.openElements.pop();break;case b.SELECT:e.openElements.hasInSelectScope(b.SELECT)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode());break;case b.TEMPLATE:Me(e,t)}}function pt(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(b.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):we(e,t)}function _t(e,t){var r;if(t.tagID===b.HTML){if(e.fragmentContext||(e.insertionMode=he.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===b.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(null===(r=e.treeAdapter.getNodeSourceCodeLocation(n))||void 0===r?void 0:r.endTag)&&e._setEndLocation(n,t)}}else ft(e,t)}function ft(e,t){e.insertionMode=he.IN_BODY,Ue(e,t)}function mt(e,t){e.insertionMode=he.IN_BODY,Ue(e,t)}function gt(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==g.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}return e.parse=(e,t)=>Ee.parse(e,t),e.parseFragment=(e,t,r)=>{"string"==typeof e&&(r=t,t=e,e=null);const n=Ee.getFragmentParser(e,r);return n.tokenizer.write(t,!0),n.getFragment()},Object.defineProperty(e,"__esModule",{value:!0}),e}({}),Jp=Kp.parse,Gp=Kp.parseFragment,$p=new WeakMap;function qp(e,t){const r=Jp(t.trim(),Yp(e));return r.documentElement=r.firstElementChild,r.head=r.documentElement.firstElementChild,r.body=r.head.nextElementSibling,r}function Xp(e,t){return t="string"==typeof t?t.trim():"",Gp(t,Yp(e))}function Yp(e){let t=$p.get(e);return null!=t||(t={treeAdapter:{createDocument(){const t=e.createElement("#document");return t["x-mode"]="no-quirks",t},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},createDocumentFragment(){return e.createDocumentFragment()},createElement(t,r,n){const i=e.createElementNS(r,t);for(let e=0;e<n.length;e++){const t=n[e];null==t.namespace||"http://www.w3.org/1999/xhtml"===t.namespace?i.setAttribute(t.name,t.value):i.setAttributeNS(t.namespace,t.name,t.value)}return i},createCommentNode(t){return e.createComment(t)},appendChild(e,t){e.appendChild(t)},insertBefore(e,t,r){e.insertBefore(t,r)},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(t,r,n,i){let a=t.childNodes.find((e=>10===e.nodeType));null==a&&(a=e.createDocumentTypeNode(),t.insertBefore(a,t.firstChild)),a.nodeValue="!DOCTYPE",a["x-name"]=r,a["x-publicId"]=n,a["x-systemId"]=i},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){e.remove()},insertText(t,r){const n=t.lastChild;null!=n&&3===n.nodeType?n.nodeValue+=r:t.appendChild(e.createTextNode(r))},insertTextBefore(t,r,n){const i=t.childNodes[t.childNodes.indexOf(n)-1];null!=i&&3===i.nodeType?i.nodeValue+=r:t.insertBefore(e.createTextNode(r),n)},adoptAttributes(e,t){for(let r=0;r<t.length;r++){const n=t[r];!1===e.hasAttributeNS(n.namespace,n.name)&&e.setAttributeNS(n.namespace,n.name,n.value)}},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attributes.__items.map((e=>({name:e.name,value:e.value,namespace:e.namespaceURI,prefix:null})))},getTagName(e){return"http://www.w3.org/1999/xhtml"===e.namespaceURI?e.nodeName.toLowerCase():e.nodeName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.nodeValue},getCommentNodeContent(e){return e.nodeValue},getDocumentTypeNodeName(e){return e["x-name"]},getDocumentTypeNodePublicId(e){return e["x-publicId"]},getDocumentTypeNodeSystemId(e){return e["x-systemId"]},isTextNode(e){return 3===e.nodeType},isCommentNode(e){return 8===e.nodeType},isDocumentTypeNode(e){return 10===e.nodeType},isElementNode(e){return 1===e.nodeType}}},$p.set(e,t)),t}const Qp=(()=>{const e={exports:{}};return!(t=>{var r,n,i,a,o,s,c,l,d,u,p,_,f,m,g,h,y,v,b,E="sizzle"+1*new Date,x=t.document,D=0,S=0,T=le(),C=le(),A=le(),k=le(),N=(e,t)=>(e===t&&(p=!0),0),w={}.hasOwnProperty,F=[],P=F.pop,I=F.push,O=F.push,M=F.slice,R=(e,t)=>{for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",U="(?:\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\["+B+"*("+U+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+B+"*\\]",V=":("+U+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",z=new RegExp(B+"+","g"),H=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),W=new RegExp("^"+B+"*,"+B+"*"),K=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),J=new RegExp(B+"|>"),G=new RegExp(V),$=new RegExp("^"+U+"$"),q={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,ee=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,te=/[+~]/,re=new RegExp("\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\([^\\r\\n\\f])","g"),ne=(e,t)=>{var r="0x"+e.slice(1)-65536;return t||(r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=(e,t)=>t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e,oe=()=>{_()},se=ve((e=>!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()),{dir:"parentNode",next:"legend"});try{O.apply(F=M.call(x.childNodes),x.childNodes),F[x.childNodes.length].nodeType}catch(t){O={apply:F.length?(e,t)=>{I.apply(e,M.call(t))}:(e,t)=>{for(var r=e.length,n=0;e[r++]=t[n++];);e.length=r-1}}}function ce(e,t,r,i){var a,o,c,d,u,p,m,y=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==v&&9!==v&&11!==v)return r;if(!i&&(_(t),t=t||f,g)){if(11!==v&&(u=ee.exec(e)))if(a=u[1]){if(9===v){if(!(c=t.getElementById(a)))return r;if(c.id===a)return r.push(c),r}else if(y&&(c=y.getElementById(a))&&b(t,c)&&c.id===a)return r.push(c),r}else{if(u[2])return O.apply(r,t.getElementsByTagName(e)),r;if((a=u[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!k[e+" "]&&(!h||!h.test(e))&&(1!==v||"object"!==t.nodeName.toLowerCase())){if(m=e,y=t,1===v&&(J.test(e)||K.test(e))){for((y=te.test(e)&&ge(t.parentNode)||t)===t&&n.scope||((d=t.getAttribute("id"))?d=d.replace(ie,ae):t.setAttribute("id",d=E)),o=(p=s(e)).length;o--;)p[o]=(d?"#"+d:":scope")+" "+ye(p[o]);m=p.join(",")}try{if(n.cssSupportsSelector&&!CSS.supports("selector("+m+")"))throw new Error;return O.apply(r,y.querySelectorAll(m)),r}catch(t){k(e,!0)}finally{d===E&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,r,i)}function le(){var e=[];return function t(r,n){return e.push(r+" ")>i.cacheLength&&delete t[e.shift()],t[r+" "]=n}}function de(e){return e[E]=!0,e}function ue(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function pe(e,t){for(var r=e.split("|"),n=r.length;n--;)i.attrHandle[r[n]]=t}function _e(e,t){var r=t&&e,n=r&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(r)for(;r=r.nextSibling;)if(r===t)return-1;return e?1:-1}function fe(e){return t=>"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}function me(e){return de((t=>(t=+t,de(((r,n)=>{for(var i,a=e([],r.length,t),o=a.length;o--;)r[i=a[o]]&&(r[i]=!(n[i]=r[i]))})))))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(r in n=ce.support={},o=ce.isXML=e=>{var t=e&&e.namespaceURI,r=e&&(e.ownerDocument||e).documentElement;return!X.test(t||r&&r.nodeName||"HTML")},_=ce.setDocument=e=>{var t,r,a=e?e.ownerDocument||e:x;return a!=f&&9===a.nodeType&&a.documentElement?(m=(f=a).documentElement,g=!o(f),x!=f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),n.scope=ue((e=>(m.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length))),n.cssSupportsSelector=ue((()=>CSS.supports("selector(*)")&&f.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))"))),n.attributes=ue((e=>(e.className="i",!e.getAttribute("className")))),n.getElementsByTagName=ue((e=>(e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length))),n.getElementsByClassName=Z.test(f.getElementsByClassName),n.getById=ue((e=>(m.appendChild(e).id=E,!f.getElementsByName||!f.getElementsByName(E).length))),n.getById?(i.filter.ID=e=>{var t=e.replace(re,ne);return e=>e.getAttribute("id")===t},i.find.ID=(e,t)=>{if(void 0!==t.getElementById&&g){var r=t.getElementById(e);return r?[r]:[]}}):(i.filter.ID=e=>{var t=e.replace(re,ne);return e=>{var r=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return r&&r.value===t}},i.find.ID=(e,t)=>{if(void 0!==t.getElementById&&g){var r,n,i,a=t.getElementById(e);if(a){if((r=a.getAttributeNode("id"))&&r.value===e)return[a];for(i=t.getElementsByName(e),n=0;a=i[n++];)if((r=a.getAttributeNode("id"))&&r.value===e)return[a]}return[]}}),i.find.TAG=n.getElementsByTagName?(e,t)=>void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0:(e,t)=>{var r,n=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;r=a[i++];)1===r.nodeType&&n.push(r);return n}return a},i.find.CLASS=n.getElementsByClassName&&((e,t)=>{if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)}),y=[],h=[],(n.qsa=Z.test(f.querySelectorAll))&&(ue((e=>{var t;m.appendChild(e).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\["+B+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+E+"-]").length||h.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+B+"*name"+B+"*="+B+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")})),ue((e=>{e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")}))),(n.matchesSelector=Z.test(v=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ue((e=>{n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),y.push("!=",V)})),n.cssSupportsSelector||h.push(":has"),h=h.length&&new RegExp(h.join("|")),y=y.length&&new RegExp(y.join("|")),t=Z.test(m.compareDocumentPosition),b=t||Z.test(m.contains)?(e,t)=>{var r=9===e.nodeType&&e.documentElement||e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(r.contains?r.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:(e,t)=>{if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?(e,t)=>{if(e===t)return p=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==f||e.ownerDocument==x&&b(x,e)?-1:t==f||t.ownerDocument==x&&b(x,t)?1:u?R(u,e)-R(u,t):0:4&r?-1:1)}:(e,t)=>{if(e===t)return p=!0,0;var r,n=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e==f?-1:t==f?1:i?-1:a?1:u?R(u,e)-R(u,t):0;if(i===a)return _e(e,t);for(r=e;r=r.parentNode;)o.unshift(r);for(r=t;r=r.parentNode;)s.unshift(r);for(;o[n]===s[n];)n++;return n?_e(o[n],s[n]):o[n]==x?-1:s[n]==x?1:0},f):f},ce.matches=(e,t)=>ce(e,null,null,t),ce.matchesSelector=(e,t)=>{if(_(e),n.matchesSelector&&g&&!k[t+" "]&&(!y||!y.test(t))&&(!h||!h.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){k(t,!0)}return ce(t,f,null,[e]).length>0},ce.contains=(e,t)=>((e.ownerDocument||e)!=f&&_(e),b(e,t)),ce.attr=(e,t)=>{(e.ownerDocument||e)!=f&&_(e);var r=i.attrHandle[t.toLowerCase()],a=r&&w.call(i.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==a?a:n.attributes||!g?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},ce.escape=e=>(e+"").replace(ie,ae),ce.error=e=>{throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=e=>{var t,r=[],i=0,a=0;if(p=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(N),p){for(;t=e[a++];)t===e[a]&&(i=r.push(a));for(;i--;)e.splice(r[i],1)}return u=null,e},a=ce.getText=e=>{var t,r="",n=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[n++];)r+=a(t);return r},(i=ce.selectors={cacheLength:50,createPseudo:de,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:e=>(e[1]=e[1].replace(re,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(re,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)),CHILD:e=>(e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ce.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ce.error(e[0]),e),PSEUDO(e){var t,r=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&G.test(r)&&(t=s(r,!0))&&(t=r.indexOf(")",r.length-t)-r.length)&&(e[0]=e[0].slice(0,t),e[2]=r.slice(0,t)),e.slice(0,3))}},filter:{TAG(e){var t=e.replace(re,ne).toLowerCase();return"*"===e?()=>!0:e=>e.nodeName&&e.nodeName.toLowerCase()===t},CLASS(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&T(e,(e=>t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")))},ATTR:(e,t,r)=>n=>{var i=ce.attr(n,e);return null==i?"!="===t:!t||(i+="","="===t?i===r:"!="===t?i!==r:"^="===t?r&&0===i.indexOf(r):"*="===t?r&&i.indexOf(r)>-1:"$="===t?r&&i.slice(-r.length)===r:"~="===t?(" "+i.replace(z," ")+" ").indexOf(r)>-1:"|="===t&&(i===r||i.slice(0,r.length+1)===r+"-"))},CHILD(e,t,r,n,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===n&&0===i?e=>!!e.parentNode:(t,r,c)=>{var l,d,u,p,_,f,m=a!==o?"nextSibling":"previousSibling",g=t.parentNode,h=s&&t.nodeName.toLowerCase(),y=!c&&!s,v=!1;if(g){if(a){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===h:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&y){for(v=(_=(l=(d=(u=(p=g)[E]||(p[E]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]||[])[0]===D&&l[1])&&l[2],p=_&&g.childNodes[_];p=++_&&p&&p[m]||(v=_=0)||f.pop();)if(1===p.nodeType&&++v&&p===t){d[e]=[D,_,v];break}}else if(y&&(v=_=(l=(d=(u=(p=t)[E]||(p[E]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]||[])[0]===D&&l[1]),!1===v)for(;(p=++_&&p&&p[m]||(v=_=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==h:1!==p.nodeType)||!++v||(y&&((d=(u=p[E]||(p[E]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]=[D,v]),p!==t)););return(v-=i)===n||v%n==0&&v/n>=0}}},PSEUDO(e,t){var r,n=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ce.error("unsupported pseudo: "+e);return n[E]?n(t):n.length>1?(r=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?de(((e,r)=>{for(var i,a=n(e,t),o=a.length;o--;)e[i=R(e,a[o])]=!(r[i]=a[o])})):e=>n(e,0,r)):n}},pseudos:{not:de((e=>{var t=[],r=[],n=c(e.replace(H,"$1"));return n[E]?de(((e,t,r,i)=>{for(var a,o=n(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))})):(e,i,a)=>(t[0]=e,n(t,null,a,r),t[0]=null,!r.pop())})),has:de((e=>t=>ce(e,t).length>0)),contains:de((e=>(e=e.replace(re,ne),t=>(t.textContent||a(t)).indexOf(e)>-1))),lang:de((e=>($.test(e||"")||ce.error("unsupported lang: "+e),e=e.replace(re,ne).toLowerCase(),t=>{var r;do{if(r=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(r=r.toLowerCase())===e||0===r.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}))),target(e){var r=t.location&&t.location.hash;return r&&r.slice(1)===e.id},root:e=>e===m,focus:e=>e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex),enabled:fe(!1),disabled:fe(!0),checked(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:e=>!0===e.selected,empty(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:e=>!i.pseudos.empty(e),header:e=>Q.test(e.nodeName),input:e=>Y.test(e.nodeName),button(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((()=>[0])),last:me(((e,t)=>[t-1])),eq:me(((e,t,r)=>[r<0?r+t:r])),even:me(((e,t)=>{for(var r=0;r<t;r+=2)e.push(r);return e})),odd:me(((e,t)=>{for(var r=1;r<t;r+=2)e.push(r);return e})),lt:me(((e,t,r)=>{for(var n=r<0?r+t:r>t?t:r;--n>=0;)e.push(n);return e})),gt:me(((e,t,r)=>{for(var n=r<0?r+t:r;++n<t;)e.push(n);return e}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[r]=(e=>t=>"input"===t.nodeName.toLowerCase()&&t.type===e)(r);for(r in{submit:!0,reset:!0})i.pseudos[r]=(e=>t=>{var r=t.nodeName.toLowerCase();return("input"===r||"button"===r)&&t.type===e})(r);function he(){}function ye(e){for(var t=0,r=e.length,n="";t<r;t++)n+=e[t].value;return n}function ve(e,t,r){var n=t.dir,i=t.next,a=i||n,o=r&&"parentNode"===a,s=S++;return t.first?(t,r,i)=>{for(;t=t[n];)if(1===t.nodeType||o)return e(t,r,i);return!1}:(t,r,c)=>{var l,d,u,p=[D,s];if(c){for(;t=t[n];)if((1===t.nodeType||o)&&e(t,r,c))return!0}else for(;t=t[n];)if(1===t.nodeType||o)if(d=(u=t[E]||(t[E]={}))[t.uniqueID]||(u[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[n]||t;else{if((l=d[a])&&l[0]===D&&l[1]===s)return p[2]=l[2];if(d[a]=p,p[2]=e(t,r,c))return!0}return!1}}function be(e){return e.length>1?(t,r,n)=>{for(var i=e.length;i--;)if(!e[i](t,r,n))return!1;return!0}:e[0]}function Ee(e,t,r,n,i){for(var a,o=[],s=0,c=e.length,l=null!=t;s<c;s++)(a=e[s])&&(r&&!r(a,n,i)||(o.push(a),l&&t.push(s)));return o}function xe(e,t,r,n,i,a){return n&&!n[E]&&(n=xe(n)),i&&!i[E]&&(i=xe(i,a)),de(((a,o,s,c)=>{var l,d,u,p=[],_=[],f=o.length,m=a||((e,t,r)=>{for(var n=0,i=t.length;n<i;n++)ce(e,t[n],r);return r})(t||"*",s.nodeType?[s]:s,[]),g=!e||!a&&t?m:Ee(m,p,e,s,c),h=r?i||(a?e:f||n)?[]:o:g;if(r&&r(g,h,s,c),n)for(l=Ee(h,_),n(l,[],s,c),d=l.length;d--;)(u=l[d])&&(h[_[d]]=!(g[_[d]]=u));if(a){if(i||e){if(i){for(l=[],d=h.length;d--;)(u=h[d])&&l.push(g[d]=u);i(null,h=[],l,c)}for(d=h.length;d--;)(u=h[d])&&(l=i?R(a,u):p[d])>-1&&(a[l]=!(o[l]=u))}}else h=Ee(h===o?h.splice(f,h.length):h),i?i(null,o,h,c):O.apply(o,h)}))}function De(e){for(var t,r,n,a=e.length,o=i.relative[e[0].type],s=o||i.relative[" "],c=o?1:0,l=ve((e=>e===t),s,!0),u=ve((e=>R(t,e)>-1),s,!0),p=[(e,r,n)=>{var i=!o&&(n||r!==d)||((t=r).nodeType?l(e,r,n):u(e,r,n));return t=null,i}];c<a;c++)if(r=i.relative[e[c].type])p=[ve(be(p),r)];else{if((r=i.filter[e[c].type].apply(null,e[c].matches))[E]){for(n=++c;n<a&&!i.relative[e[n].type];n++);return xe(c>1&&be(p),c>1&&ye(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(H,"$1"),r,c<n&&De(e.slice(c,n)),n<a&&De(e=e.slice(n)),n<a&&ye(e))}p.push(r)}return be(p)}function Se(e,t){var r=t.length>0,n=e.length>0,a=(a,o,s,c,l)=>{var u,p,m,h=0,y="0",v=a&&[],b=[],E=d,x=a||n&&i.find.TAG("*",l),S=D+=null==E?1:Math.random()||.1,T=x.length;for(l&&(d=o==f||o||l);y!==T&&null!=(u=x[y]);y++){if(n&&u){for(p=0,o||u.ownerDocument==f||(_(u),s=!g);m=e[p++];)if(m(u,o||f,s)){c.push(u);break}l&&(D=S)}r&&((u=!m&&u)&&h--,a&&v.push(u))}if(h+=y,r&&y!==h){for(p=0;m=t[p++];)m(v,b,o,s);if(a){if(h>0)for(;y--;)v[y]||b[y]||(b[y]=P.call(c));b=Ee(b)}O.apply(c,b),l&&!a&&b.length>0&&h+t.length>1&&ce.uniqueSort(c)}return l&&(D=S,d=E),v};return r?de(a):a}he.prototype=i.filters=i.pseudos,i.setFilters=new he,s=ce.tokenize=(e,t)=>{var r,n,a,o,s,c,l,d=C[e+" "];if(d)return t?0:d.slice(0);for(s=e,c=[],l=i.preFilter;s;){for(o in r&&!(n=W.exec(s))||(n&&(s=s.slice(n[0].length)||s),c.push(a=[])),r=!1,(n=K.exec(s))&&(r=n.shift(),a.push({value:r,type:n[0].replace(H," ")}),s=s.slice(r.length)),i.filter)!(n=q[o].exec(s))||l[o]&&!(n=l[o](n))||(r=n.shift(),a.push({value:r,type:o,matches:n}),s=s.slice(r.length));if(!r)break}return t?s.length:s?ce.error(e):C(e,c).slice(0)},c=ce.compile=(e,t)=>{var r,n=[],i=[],a=A[e+" "];if(!a){for(t||(t=s(e)),r=t.length;r--;)(a=De(t[r]))[E]?n.push(a):i.push(a);(a=A(e,Se(i,n))).selector=e}return a},l=ce.select=(e,t,r,n)=>{var a,o,l,d,u,p="function"==typeof e&&e,_=!n&&s(e=p.selector||e);if(r=r||[],1===_.length){if((o=_[0]=_[0].slice(0)).length>2&&"ID"===(l=o[0]).type&&9===t.nodeType&&g&&i.relative[o[1].type]){if(!(t=(i.find.ID(l.matches[0].replace(re,ne),t)||[])[0]))return r;p&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(a=q.needsContext.test(e)?0:o.length;a--&&(l=o[a],!i.relative[d=l.type]);)if((u=i.find[d])&&(n=u(l.matches[0].replace(re,ne),te.test(o[0].type)&&ge(t.parentNode)||t))){if(o.splice(a,1),!(e=n.length&&ye(o)))return O.apply(r,n),r;break}}return(p||c(e,_))(n,t,!g,r,!t||te.test(e)&&ge(t.parentNode)||t),r},n.sortStable=E.split("").sort(N).join("")===E,n.detectDuplicates=!!p,_(),n.sortDetached=ue((e=>1&e.compareDocumentPosition(f.createElement("fieldset")))),ue((e=>(e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href"))))||pe("type|href|height|width",((e,t,r)=>{if(!r)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((e=>(e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value"))))||pe("value",((e,t,r)=>{if(!r&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((e=>null==e.getAttribute("disabled")))||pe(L,((e,t,r)=>{var n;if(!r)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}));var Te=t.Sizzle;ce.noConflict=()=>(t.Sizzle===ce&&(t.Sizzle=Te),ce),"function"==typeof define&&define.amd?define((()=>ce)):void 0!==e&&e.exports?e.exports=ce:t.Sizzle=ce})({document:{createElement(){return{}},nodeType:9,documentElement:{nodeType:1,nodeName:"HTML"}}}),e.exports})();function Zp(e,t={}){const r={currentLineWidth:0,indent:0,isWithinBody:!1,text:[]};if(t.prettyHtml?("number"!=typeof t.indentSpaces&&(t.indentSpaces=2),"boolean"!=typeof t.newLines&&(t.newLines=!0),t.approximateLineWidth=-1):(t.prettyHtml=!1,"boolean"!=typeof t.newLines&&(t.newLines=!1),"number"!=typeof t.indentSpaces&&(t.indentSpaces=0)),"number"!=typeof t.approximateLineWidth&&(t.approximateLineWidth=-1),"boolean"!=typeof t.removeEmptyAttributes&&(t.removeEmptyAttributes=!0),"boolean"!=typeof t.removeAttributeQuotes&&(t.removeAttributeQuotes=!1),"boolean"!=typeof t.removeBooleanAttributeQuotes&&(t.removeBooleanAttributeQuotes=!1),"boolean"!=typeof t.removeHtmlComments&&(t.removeHtmlComments=!1),"boolean"!=typeof t.serializeShadowRoot&&(t.serializeShadowRoot=!1),t.outerHtml)e_(e,t,r,!1);else for(let n=0,i=e.childNodes.length;n<i;n++)e_(e.childNodes[n],t,r,!1);return"\n"===r.text[0]&&r.text.shift(),"\n"===r.text[r.text.length-1]&&r.text.pop(),r.text.join("")}function e_(e,t,r,n){if(1===e.nodeType||n){const a=n?"mock:shadow-root":"http://www.w3.org/1999/xhtml"===(i=e).namespaceURI?i.nodeName.toLowerCase():i.nodeName;"body"===a&&(r.isWithinBody=!0);const o=null!=t.excludeTags&&t.excludeTags.includes(a);if(!1===o){const n=!!(t.newLines||t.indentSpaces>0)&&c_(e);if(t.newLines&&!n&&(r.text.push("\n"),r.currentLineWidth=0),t.indentSpaces>0&&!n){for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}r.text.push("<"+a),r.currentLineWidth+=a.length+1;const i=e.attributes.length,o=t.prettyHtml&&i>1?gp(e.attributes,!0):e.attributes;for(let e=0;e<i;e++){const n=o.item(e),i=n.name;if("style"===i)continue;let a=n.value;if(t.removeEmptyAttributes&&""===a&&p_.has(i))continue;const s=n.namespaceURI;if(null==s?(r.currentLineWidth+=i.length+1,t.approximateLineWidth>0&&r.currentLineWidth>t.approximateLineWidth?(r.text.push("\n"+i),r.currentLineWidth=0):r.text.push(" "+i)):"http://www.w3.org/XML/1998/namespace"===s?(r.text.push(" xml:"+i),r.currentLineWidth+=i.length+5):"http://www.w3.org/2000/xmlns/"===s?"xmlns"!==i?(r.text.push(" xmlns:"+i),r.currentLineWidth+=i.length+7):(r.text.push(" "+i),r.currentLineWidth+=i.length+1):s===up?(r.text.push(" xlink:"+i),r.currentLineWidth+=i.length+7):(r.text.push(" "+s+":"+i),r.currentLineWidth+=s.length+i.length+2),t.prettyHtml&&"class"===i&&(a=n.value=a.split(" ").filter((e=>""!==e)).sort().join(" ").trim()),""===a){if(t.removeBooleanAttributeQuotes&&__.has(i))continue;if(t.removeEmptyAttributes&&i.startsWith("data-"))continue}t.removeAttributeQuotes&&o_.test(a)?(r.text.push("="+s_(a,!0)),r.currentLineWidth+=a.length+1):(r.text.push('="'+s_(a,!0)+'"'),r.currentLineWidth+=a.length+3)}if(e.hasAttribute("style")){const n=e.style.cssText;t.approximateLineWidth>0&&r.currentLineWidth+n.length+10>t.approximateLineWidth?(r.text.push(`\nstyle="${n}">`),r.currentLineWidth=0):(r.text.push(` style="${n}">`),r.currentLineWidth+=n.length+10)}else r.text.push(">"),r.currentLineWidth+=1}if(!1===u_.has(a)){if(t.serializeShadowRoot&&null!=e.shadowRoot&&(r.indent=r.indent+t.indentSpaces,e_(e.shadowRoot,t,r,!0),r.indent=r.indent-t.indentSpaces,t.newLines&&(0===e.childNodes.length||1===e.childNodes.length&&3===e.childNodes[0].nodeType&&""===e.childNodes[0].nodeValue.trim()))){r.text.push("\n"),r.currentLineWidth=0;for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}if(null==t.excludeTagContent||!1===t.excludeTagContent.includes(a)){const n="template"===a?e.content.childNodes:e.childNodes,i=n.length;if(i>0&&(1!==i||3!==n[0].nodeType||"string"==typeof n[0].nodeValue&&""!==n[0].nodeValue.trim())){const a=!!(t.newLines||t.indentSpaces>0)&&c_(e);!a&&t.indentSpaces>0&&!1===o&&(r.indent=r.indent+t.indentSpaces);for(let e=0;e<i;e++)e_(n[e],t,r,!1);if(!1===o&&(t.newLines&&!a&&(r.text.push("\n"),r.currentLineWidth=0),t.indentSpaces>0&&!a)){r.indent=r.indent-t.indentSpaces;for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}}!1===o&&(r.text.push("</"+a+">"),r.currentLineWidth+=a.length+3)}}t.approximateLineWidth>0&&f_.has(a)&&(r.text.push("\n"),r.currentLineWidth=0),"body"===a&&(r.isWithinBody=!1)}else if(3===e.nodeType){let n=e.nodeValue;if("string"==typeof n){const i=n.trim();if(""===i)c_(e)?(r.text.push(n),r.currentLineWidth+=n.length):t.approximateLineWidth>0&&!r.isWithinBody||t.prettyHtml||(r.currentLineWidth+=1,t.approximateLineWidth>0&&r.currentLineWidth>t.approximateLineWidth?(r.text.push("\n"),r.currentLineWidth=0):r.text.push(" "));else{const a=!!(t.newLines||t.indentSpaces>0||t.prettyHtml)&&c_(e);if(t.newLines&&!a&&(r.text.push("\n"),r.currentLineWidth=0),t.indentSpaces>0&&!a){for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}let o=n.length;if(o>0){const s=null!=e.parentNode&&1===e.parentNode.nodeType?e.parentNode.nodeName:null;l_.has(s)?(c_(e)?r.text.push(n):(r.text.push(i),o=i.length),r.currentLineWidth+=o):t.prettyHtml&&!a?(r.text.push(s_(n.replace(/\s\s+/g," ").trim(),!1)),r.currentLineWidth+=o):(c_(e)||(/\s/.test(n.charAt(0))&&(n=" "+n.trimLeft()),o=n.length,o>1&&/\s/.test(n.charAt(o-1))&&(t.approximateLineWidth>0&&r.currentLineWidth+o>t.approximateLineWidth?(n=n.trimRight()+"\n",r.currentLineWidth=0):n=n.trimRight()+" ")),r.currentLineWidth+=o,r.text.push(s_(n,!1)))}}}}else if(8===e.nodeType){const n=e.nodeValue;if(t.removeHtmlComments&&!(n.startsWith("r.")||n.startsWith("o.")||n.startsWith("s.")||n.startsWith("t.")))return;const i=!!(t.newLines||t.indentSpaces>0)&&c_(e);if(t.newLines&&!i&&(r.text.push("\n"),r.currentLineWidth=0),t.indentSpaces>0&&!i){for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}r.text.push("\x3c!--"+n+"--\x3e"),r.currentLineWidth+=n.length+7}else 10===e.nodeType&&r.text.push("<!doctype html>");var i}const t_=/&/g,r_=/\u00a0/g,n_=/"/g,i_=/</g,a_=/>/g,o_=/^[^ \t\n\f\r"'`=<>\/\\-]+$/;function s_(e,t){return e=e.replace(t_,"&").replace(r_," "),t?e.replace(n_,"""):e.replace(i_,"<").replace(a_,">")}function c_(e){for(;null!=e;){if(d_.has(e.nodeName))return!0;e=e.parentNode}return!1}const l_=new Set(["STYLE","SCRIPT","IFRAME","NOSCRIPT","XMP","NOEMBED","NOFRAMES","PLAINTEXT"]),d_=new Set(["CODE","OUTPUT","PLAINTEXT","PRE","SCRIPT","TEMPLATE","TEXTAREA"]),u_=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","meta","param","source","trace","wbr"]),p_=new Set(["class","dir","id","lang","name","title"]),__=new Set(["allowfullscreen","async","autofocus","autoplay","checked","compact","controls","declare","default","defaultchecked","defaultmuted","defaultselected","defer","disabled","enabled","formnovalidate","hidden","indeterminate","inert","ismap","itemscope","loop","multiple","muted","nohref","nomodule","noresize","noshade","novalidate","nowrap","open","pauseonexit","readonly","required","reversed","scoped","seamless","selected","sortable","truespeed","typemustmatch","visible"]),f_=new Set(["html","body","head","iframe","meta","link","base","title","script","style"]);class m_{constructor(e,t,r,n){this.ownerDocument=e,this.nodeType=t,this.nodeName=r,this._nodeValue=n,this.parentNode=null,this.childNodes=[]}appendChild(e){if(11===e.nodeType){const t=e.childNodes.slice();for(const e of t)this.appendChild(e)}else e.remove(),e.parentNode=this,this.childNodes.push(e),wp(this.ownerDocument,e);return e}append(...e){e.forEach((e=>{const t="object"==typeof e&&null!==e&&"nodeType"in e;this.appendChild(t?e:this.ownerDocument.createTextNode(String(e)))}))}prepend(...e){const t=this.firstChild;e.forEach((e=>{const r="object"==typeof e&&null!==e&&"nodeType"in e;t&&this.insertBefore(r?e:this.ownerDocument.createTextNode(String(e)),t)}))}cloneNode(e){throw new Error(`invalid node type to clone: ${this.nodeType}, deep: ${e}`)}compareDocumentPosition(e){return-1}get firstChild(){return this.childNodes[0]||null}insertBefore(e,t){if(11===e.nodeType)for(let r=0,n=e.childNodes.length;r<n;r++)b_(this,e.childNodes[r],t);else b_(this,e,t);return e}get isConnected(){let e=this;for(;null!=e;){if(9===e.nodeType)return!0;e=e.parentNode,null!=e&&11===e.nodeType&&(e=e.host)}return!1}isSameNode(e){return this===e}get lastChild(){return this.childNodes[this.childNodes.length-1]||null}get nextSibling(){if(null!=this.parentNode){const e=this.parentNode.childNodes.indexOf(this)+1;return this.parentNode.childNodes[e]||null}return null}get nodeValue(){var e;return null!==(e=this._nodeValue)&&void 0!==e?e:""}set nodeValue(e){this._nodeValue=e}get parentElement(){return this.parentNode||null}set parentElement(e){this.parentNode=e}get previousSibling(){if(null!=this.parentNode){const e=this.parentNode.childNodes.indexOf(this)-1;return this.parentNode.childNodes[e]||null}return null}contains(e){if(e===this)return!0;const t=Array.from(this.childNodes);return!!t.includes(e)||t.some((t=>this.contains.bind(t)(e)))}removeChild(e){const t=this.childNodes.indexOf(e);if(!(t>-1))throw new Error("node not found within childNodes during removeChild");if(this.childNodes.splice(t,1),1===this.nodeType){const t=this.isConnected;e.parentNode=null,!0===t&&Pp(e)}else e.parentNode=null;return e}remove(){null!=this.parentNode&&this.parentNode.removeChild(this)}replaceChild(e,t){return t.parentNode===this?(this.insertBefore(e,t),t.remove(),e):null}get textContent(){var e;return null!==(e=this._nodeValue)&&void 0!==e?e:""}set textContent(e){this._nodeValue=String(e)}}m_.ELEMENT_NODE=1,m_.TEXT_NODE=3,m_.PROCESSING_INSTRUCTION_NODE=7,m_.COMMENT_NODE=8,m_.DOCUMENT_NODE=9,m_.DOCUMENT_TYPE_NODE=10,m_.DOCUMENT_FRAGMENT_NODE=11;class g_ extends m_{constructor(e,t){super(e,1,"string"==typeof t?t:null,null),this.namespaceURI=null,this.__shadowRoot=null,this.__attributeMap=null}addEventListener(e,t){jp(this,e,t)}attachShadow(e){const t=this.ownerDocument.createDocumentFragment();return this.shadowRoot=t,t}blur(){Wp(this,new Bp("blur",{relatedTarget:null,bubbles:!0,cancelable:!0,composed:!0}))}get shadowRoot(){return this.__shadowRoot||null}set shadowRoot(e){null!=e?(e.host=this,this.__shadowRoot=e):delete this.__shadowRoot}get attributes(){if(null==this.__attributeMap){const e=_p(!1);return this.__attributeMap=e,e}return this.__attributeMap}set attributes(e){this.__attributeMap=e}get children(){return this.childNodes.filter((e=>1===e.nodeType))}get childElementCount(){return this.childNodes.filter((e=>1===e.nodeType)).length}get className(){return this.getAttributeNS(null,"class")||""}set className(e){this.setAttributeNS(null,"class",e)}get classList(){return new vp(this)}click(){Wp(this,new Rp("click",{bubbles:!0,cancelable:!0,composed:!0}))}cloneNode(e){return null}closest(e){let t=this;for(;null!=t;){if(t.matches(e))return t;t=t.parentNode}return null}get dataset(){return function(e){const t={},r=e.attributes,n=r.length;for(let e=0;e<n;e++){const n=r.item(e),a=n.nodeName;a.startsWith("data-")&&(t[(i=a,(i=String(i).slice(5)).split("-").map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.slice(1):e.charAt(0).toUpperCase()+e.slice(1))).join(""))]=n.nodeValue)}var i;return new Proxy(t,{get:(e,r)=>t[r],set(t,r,n){const i="data-"+String(r).replace(/([A-Z0-9])/g,(e=>" "+e[0])).trim().replace(/ /g,"-").toLowerCase();return e.setAttribute(i,n),!0}})}(this)}get dir(){return this.getAttributeNS(null,"dir")||""}set dir(e){this.setAttributeNS(null,"dir",e)}dispatchEvent(e){return Wp(this,e)}get firstElementChild(){return this.children[0]||null}focus(e){Wp(this,new Bp("focus",{relatedTarget:null,bubbles:!0,cancelable:!0,composed:!0}))}getAttribute(e){if("style"===e)return null!=this.__style&&this.__style.length>0?this.style.cssText:null;const t=this.attributes.getNamedItem(e);return null!=t?t.value:null}getAttributeNS(e,t){const r=this.attributes.getNamedItemNS(e,t);return null!=r?r.value:null}getBoundingClientRect(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}getRootNode(e){const t=null!=e&&!0===e.composed;let r=this;for(;null!=r.parentNode;)r=r.parentNode,!0===t&&null==r.parentNode&&null!=r.host&&(r=r.host);return r}get draggable(){return"true"===this.getAttributeNS(null,"draggable")}set draggable(e){this.setAttributeNS(null,"draggable",e)}hasChildNodes(){return this.childNodes.length>0}get id(){return this.getAttributeNS(null,"id")||""}set id(e){this.setAttributeNS(null,"id",e)}get innerHTML(){return 0===this.childNodes.length?"":Zp(this,{newLines:!1,indentSpaces:0})}set innerHTML(e){var t;if(!0===l_.has(null!==(t=this.nodeName)&&void 0!==t?t:""))S_(this,e);else{for(let e=this.childNodes.length-1;e>=0;e--)this.removeChild(this.childNodes[e]);if("string"==typeof e){const t=Xp(this.ownerDocument,e);for(;t.childNodes.length>0;)this.appendChild(t.childNodes[0])}}}get innerText(){const e=[];return D_(this.childNodes,e),e.join("")}set innerText(e){S_(this,e)}insertAdjacentElement(e,t){return"beforebegin"===e?b_(this.parentNode,t,this):"afterbegin"===e?this.prepend(t):"beforeend"===e?this.appendChild(t):"afterend"===e&&b_(this.parentNode,t,this.nextSibling),t}insertAdjacentHTML(e,t){const r=Xp(this.ownerDocument,t);if("beforebegin"===e)for(;r.childNodes.length>0;)b_(this.parentNode,r.childNodes[0],this);else if("afterbegin"===e)for(;r.childNodes.length>0;)this.prepend(r.childNodes[r.childNodes.length-1]);else if("beforeend"===e)for(;r.childNodes.length>0;)this.appendChild(r.childNodes[0]);else if("afterend"===e)for(;r.childNodes.length>0;)b_(this.parentNode,r.childNodes[r.childNodes.length-1],this.nextSibling)}insertAdjacentText(e,t){const r=this.ownerDocument.createTextNode(t);"beforebegin"===e?b_(this.parentNode,r,this):"afterbegin"===e?this.prepend(r):"beforeend"===e?this.appendChild(r):"afterend"===e&&b_(this.parentNode,r,this.nextSibling)}hasAttribute(e){return"style"===e?null!=this.__style&&this.__style.length>0:null!==this.getAttribute(e)}hasAttributeNS(e,t){return null!==this.getAttributeNS(e,t)}get hidden(){return this.hasAttributeNS(null,"hidden")}set hidden(e){!0===e?this.setAttributeNS(null,"hidden",""):this.removeAttributeNS(null,"hidden")}get lang(){return this.getAttributeNS(null,"lang")||""}set lang(e){this.setAttributeNS(null,"lang",e)}get lastElementChild(){const e=this.children;return e[e.length-1]||null}matches(e){return((e,t)=>Qp.matches(e,[t]).length>0)(e,this)}get nextElementSibling(){const e=this.parentElement;if(null!=e&&(1===e.nodeType||11===e.nodeType||9===e.nodeType)){const t=e.children.indexOf(this)+1;return e.children[t]||null}return null}get outerHTML(){return Zp(this,{newLines:!1,outerHtml:!0,indentSpaces:0})}get previousElementSibling(){const e=this.parentElement;if(null!=e&&(1===e.nodeType||11===e.nodeType||9===e.nodeType)){const t=e.children.indexOf(this)-1;return e.children[t]||null}return null}getElementsByClassName(e){const t=[];return h_(this,e.trim().split(" ").filter((e=>e.length>0)),t),t}getElementsByTagName(e){const t=[];return y_(this,e.toLowerCase(),t),t}querySelector(e){return((e,t)=>Qp(e,t)[0]||null)(e,this)}querySelectorAll(e){return((e,t)=>Qp(e,t))(e,this)}removeAttribute(e){if("style"===e)delete this.__style;else{const t=this.attributes.getNamedItem(e);null!=t&&(this.attributes.removeNamedItemNS(t),!0===Op(this)&&Ip(this,e,t.value,null))}}removeAttributeNS(e,t){const r=this.attributes.getNamedItemNS(e,t);null!=r&&(this.attributes.removeNamedItemNS(r),!0===Op(this)&&Ip(this,t,r.value,null))}removeEventListener(e,t){Vp(this,e,t)}setAttribute(e,t){if("style"===e)this.style=t;else{const r=this.attributes;let n=r.getNamedItem(e);const i=Op(this);if(null!=n)if(!0===i){const e=n.value;n.value=t,e!==n.value&&Ip(this,n.name,e,n.value)}else n.value=t;else r.caseInsensitive&&(e=e.toLowerCase()),n=new yp(e,t),r.__items.push(n),!0===i&&Ip(this,e,null,n.value)}}setAttributeNS(e,t,r){const n=this.attributes;let i=n.getNamedItemNS(e,t);const a=Op(this);if(null!=i)if(!0===a){const e=i.value;i.value=r,e!==i.value&&Ip(this,i.name,e,i.value)}else i.value=r;else i=new yp(t,r,e),n.__items.push(i),!0===a&&Ip(this,t,null,i.value)}get style(){return null==this.__style&&(this.__style=Dp()),this.__style}set style(e){"string"==typeof e?(null==this.__style&&(this.__style=Dp()),this.__style.cssText=e):this.__style=e}get tabIndex(){return parseInt(this.getAttributeNS(null,"tabindex")||"-1",10)}set tabIndex(e){this.setAttributeNS(null,"tabindex",e)}get tagName(){var e;return null!==(e=this.nodeName)&&void 0!==e?e:""}set tagName(e){this.nodeName=e}get textContent(){const e=[];return D_(this.childNodes,e),e.join("")}set textContent(e){S_(this,e)}get title(){return this.getAttributeNS(null,"title")||""}set title(e){this.setAttributeNS(null,"title",e)}animate(){}onanimationstart(){}onanimationend(){}onanimationiteration(){}onabort(){}onauxclick(){}onbeforecopy(){}onbeforecut(){}onbeforepaste(){}onblur(){}oncancel(){}oncanplay(){}oncanplaythrough(){}onchange(){}onclick(){}onclose(){}oncontextmenu(){}oncopy(){}oncuechange(){}oncut(){}ondblclick(){}ondrag(){}ondragend(){}ondragenter(){}ondragleave(){}ondragover(){}ondragstart(){}ondrop(){}ondurationchange(){}onemptied(){}onended(){}onerror(){}onfocus(){}onfocusin(){}onfocusout(){}onformdata(){}onfullscreenchange(){}onfullscreenerror(){}ongotpointercapture(){}oninput(){}oninvalid(){}onkeydown(){}onkeypress(){}onkeyup(){}onload(){}onloadeddata(){}onloadedmetadata(){}onloadstart(){}onlostpointercapture(){}onmousedown(){}onmouseenter(){}onmouseleave(){}onmousemove(){}onmouseout(){}onmouseover(){}onmouseup(){}onmousewheel(){}onpaste(){}onpause(){}onplay(){}onplaying(){}onpointercancel(){}onpointerdown(){}onpointerenter(){}onpointerleave(){}onpointermove(){}onpointerout(){}onpointerover(){}onpointerup(){}onprogress(){}onratechange(){}onreset(){}onresize(){}onscroll(){}onsearch(){}onseeked(){}onseeking(){}onselect(){}onselectstart(){}onstalled(){}onsubmit(){}onsuspend(){}ontimeupdate(){}ontoggle(){}onvolumechange(){}onwaiting(){}onwebkitfullscreenchange(){}onwebkitfullscreenerror(){}onwheel(){}requestFullscreen(){}scrollBy(){}scrollTo(){}scrollIntoView(){}toString(e){return Zp(this,e)}}function h_(e,t,r){const n=e.children;for(let e=0,i=n.length;e<i;e++){const i=n[e];for(let e=0,n=t.length;e<n;e++)i.classList.contains(t[e])&&r.push(i);h_(i,t,r)}}function y_(e,t,r){var n;const i=e.children;for(let e=0,a=i.length;e<a;e++){const a=i[e];"*"!==t&&(null!==(n=a.nodeName)&&void 0!==n?n:"").toLowerCase()!==t||r.push(a),y_(a,t,r)}}function v_(e){zp(e),delete e.__attributeMap,delete e.__shadowRoot,delete e.__style}function b_(e,t,r){if(t!==r){if(t.remove(),t.parentNode=e,t.ownerDocument=e.ownerDocument,null!=r){const n=e.childNodes.indexOf(r);if(!(n>-1))throw new Error("referenceNode not found in parentNode.childNodes");e.childNodes.splice(n,0,t)}else e.childNodes.push(t);wp(e.ownerDocument,t)}return t}class E_ extends g_{constructor(e,t){super(e,"string"==typeof t?t.toUpperCase():null),this.namespaceURI="http://www.w3.org/1999/xhtml"}get tagName(){var e;return null!==(e=this.nodeName)&&void 0!==e?e:""}set tagName(e){this.nodeName=e}get attributes(){if(null==this.__attributeMap){const e=_p(!0);return this.__attributeMap=e,e}return this.__attributeMap}set attributes(e){this.__attributeMap=e}}class x_ extends m_{constructor(e,t){super(e,3,"#text",t)}cloneNode(e){return new x_(null,this.nodeValue)}get textContent(){return this.nodeValue}set textContent(e){this.nodeValue=e}get data(){return this.nodeValue}set data(e){this.nodeValue=e}get wholeText(){if(null!=this.parentNode){const e=[];for(let t=0,r=this.parentNode.childNodes.length;t<r;t++){const r=this.parentNode.childNodes[t];3===r.nodeType&&e.push(r.nodeValue)}return e.join("")}return this.nodeValue}}function D_(e,t){for(let r=0,n=e.length;r<n;r++){const n=e[r];3===n.nodeType?t.push(n.nodeValue):1===n.nodeType&&D_(n.childNodes,t)}}function S_(e,t){for(let t=e.childNodes.length-1;t>=0;t--)e.removeChild(e.childNodes[t]);const r=new x_(e.ownerDocument,t);e.appendChild(r)}class T_ extends m_{constructor(e,t){super(e,8,"#comment",t)}cloneNode(e){return new T_(null,this.nodeValue)}get textContent(){return this.nodeValue}set textContent(e){this.nodeValue=e}}class C_ extends E_{constructor(e){super(e,null),this.nodeName="#document-fragment",this.nodeType=11}getElementById(e){return Af(this,e)}cloneNode(e){const t=new C_(null);if(e)for(let e=0,r=this.childNodes.length;e<r;e++){const r=this.childNodes[e];if(1===r.nodeType||3===r.nodeType||8===r.nodeType){const r=this.childNodes[e].cloneNode(!0);t.appendChild(r)}}return t}}class A_ extends E_{constructor(e){super(e,"!DOCTYPE"),this.nodeType=10,this.setAttribute("html","")}}class k_{constructor(e){this.parentStyleSheet=e,this.cssText="",this.type=0}}class N_{constructor(e){this.type="text/css",this.parentStyleSheet=null,this.cssRules=[],this.ownerNode=e}get rules(){return this.cssRules}set rules(e){this.cssRules=e}deleteRule(e){e>=0&&e<this.cssRules.length&&(this.cssRules.splice(e,1),P_(this.ownerNode))}insertRule(e,t=0){"number"!=typeof t&&(t=0),t<0&&(t=0),t>this.cssRules.length&&(t=this.cssRules.length);const r=new k_(this);return r.cssText=e,this.cssRules.splice(t,0,r),P_(this.ownerNode),t}}function w_(e){const t=[];for(let r=0;r<e.childNodes.length;r++)t.push(e.childNodes[r].nodeValue);return t.join("")}function F_(e,t){const r=e.sheet;r.cssRules.length=0,r.insertRule(t),P_(e)}function P_(e){const t=e.childNodes.length;if(t>1)for(let r=t-1;r>=1;r--)e.removeChild(e.childNodes[r]);else t<1&&e.appendChild(e.ownerDocument.createTextNode(""));e.childNodes[0].nodeValue=e.sheet.cssRules.map((e=>e.cssText)).join("\n")}function I_(e,t){if("string"!=typeof t||""===t||!/^[a-z0-9-_:]+$/i.test(t))throw new Error(`The tag name provided (${t}) is not a valid name.`);switch(t=t.toLowerCase()){case"a":return new O_(e);case"base":return new X_(e);case"button":return new M_(e);case"canvas":return new Z_(e);case"form":return new B_(e);case"img":return new R_(e);case"input":return new L_(e);case"link":return new U_(e);case"meta":return new j_(e);case"script":return new V_(e);case"style":return new K_(e);case"template":return new Y_(e);case"title":return new Q_(e)}if(null!=e&&t.includes("-")){const r=e.defaultView;if(null!=r&&null!=r.customElements)return Ap(r.customElements,e,t)}return new E_(e,t)}class O_ extends E_{constructor(e){super(e,"a")}get href(){return ef(this,"href")}set href(e){this.setAttribute("href",e)}get pathname(){return new URL(this.href).pathname}}class M_ extends E_{constructor(e){super(e,"button")}}tf(M_.prototype,{type:String},{type:"submit"});class R_ extends E_{constructor(e){super(e,"img")}get draggable(){return"false"!==this.getAttributeNS(null,"draggable")}set draggable(e){this.setAttributeNS(null,"draggable",e)}get src(){return ef(this,"src")}set src(e){this.setAttribute("src",e)}}tf(R_.prototype,{height:Number,width:Number});class L_ extends E_{constructor(e){super(e,"input")}get list(){const e=this.getAttribute("list");return e?this.ownerDocument.getElementById(e):null}}tf(L_.prototype,{accept:String,autocomplete:String,autofocus:Boolean,capture:String,checked:Boolean,disabled:Boolean,form:String,formaction:String,formenctype:String,formmethod:String,formnovalidate:String,formtarget:String,height:Number,inputmode:String,max:String,maxLength:Number,min:String,minLength:Number,multiple:Boolean,name:String,pattern:String,placeholder:String,required:Boolean,readOnly:Boolean,size:Number,spellCheck:Boolean,src:String,step:String,type:String,value:String,width:Number},{type:"text"});class B_ extends E_{constructor(e){super(e,"form")}}tf(B_.prototype,{name:String});class U_ extends E_{constructor(e){super(e,"link")}get href(){return ef(this,"href")}set href(e){this.setAttribute("href",e)}}tf(U_.prototype,{crossorigin:String,media:String,rel:String,type:String});class j_ extends E_{constructor(e){super(e,"meta")}}tf(j_.prototype,{charset:String,content:String,name:String});class V_ extends E_{constructor(e){super(e,"script")}get src(){return ef(this,"src")}set src(e){this.setAttribute("src",e)}}tf(V_.prototype,{type:String});class z_{constructor(){this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0,this.m11=1,this.m12=0,this.m13=0,this.m14=0,this.m21=0,this.m22=1,this.m23=0,this.m24=0,this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m41=0,this.m42=0,this.m43=0,this.m44=1,this.is2D=!0,this.isIdentity=!0}static fromMatrix(){return new z_}inverse(){return new z_}flipX(){return new z_}flipY(){return new z_}multiply(){return new z_}rotate(){return new z_}rotateAxisAngle(){return new z_}rotateFromVector(){return new z_}scale(){return new z_}scaleNonUniform(){return new z_}skewX(){return new z_}skewY(){return new z_}toJSON(){}toString(){}transformPoint(){return new H_}translate(){return new z_}}class H_{constructor(){this.w=1,this.x=0,this.y=0,this.z=0}toJSON(){}matrixTransform(){return new z_}}class W_{constructor(){this.height=10,this.width=10,this.x=0,this.y=0}}class K_ extends E_{constructor(e){super(e,"style"),this.sheet=new N_(this)}get innerHTML(){return w_(this)}set innerHTML(e){F_(this,e)}get innerText(){return w_(this)}set innerText(e){F_(this,e)}get textContent(){return w_(this)}set textContent(e){F_(this,e)}}class J_ extends g_{get ownerSVGElement(){return null}get viewportElement(){return null}onunload(){}get pathLength(){return 0}isPointInFill(e){return!1}isPointInStroke(e){return!1}getTotalLength(){return 0}}class G_ extends J_{getBBox(e){return new W_}getCTM(){return new z_}getScreenCTM(){return new z_}}class $_ extends G_{createSVGPoint(){return new H_}}class q_ extends G_{getComputedTextLength(){return 0}}class X_ extends E_{constructor(e){super(e,"base")}get href(){return ef(this,"href")}set href(e){this.setAttribute("href",e)}}class Y_ extends E_{constructor(e){super(e,"template"),this.content=new C_(e)}get innerHTML(){return this.content.innerHTML}set innerHTML(e){this.content.innerHTML=e}cloneNode(e){const t=new Y_(null);t.attributes=gp(this.attributes);const r=this.getAttribute("style");if(null!=r&&r.length>0&&t.setAttribute("style",r),t.content=this.content.cloneNode(e),e)for(let e=0,r=this.childNodes.length;e<r;e++){const r=this.childNodes[e].cloneNode(!0);t.appendChild(r)}return t}}class Q_ extends E_{constructor(e){super(e,"title")}get text(){return this.textContent}set text(e){this.textContent=e}}class Z_ extends E_{constructor(e){super(e,"canvas")}getContext(){return{fillRect(){},clearRect(){},getImageData:(e,t,r,n)=>({data:new Array(r*n*4)}),putImageData(){},createImageData:()=>[],setTransform(){},drawImage(){},save(){},fillText(){},restore(){},beginPath(){},moveTo(){},lineTo(){},closePath(){},stroke(){},translate(){},scale(){},rotate(){},arc(){},fill(){},measureText(){return{width:0}},transform(){},rect(){},clip(){}}}}function ef(e,t){const r=e.getAttribute(t)||"";if(null!=e.ownerDocument){const t=e.ownerDocument.defaultView;if(null!=t){const e=t.location;if(null!=e)try{return new URL(r,e.href).href}catch(e){}}}return r.replace(/\'|\"/g,"").trim()}function tf(e,t,r={}){Object.keys(t).forEach((n=>{const i=t[n],a=r[n];i===Boolean?Object.defineProperty(e,n,{get(){return this.hasAttribute(n)},set(e){e?this.setAttribute(n,""):this.removeAttribute(n)}}):i===Number?Object.defineProperty(e,n,{get(){const e=this.getAttribute(n);return e?parseInt(e,10):void 0===a?0:a},set(e){this.setAttribute(n,e)}}):Object.defineProperty(e,n,{get(){return this.hasAttribute(n)?this.getAttribute(n):a||""},set(e){this.setAttribute(n,e)}})}))}let rf;g_.prototype.cloneNode=function(e){const t=I_(this.ownerDocument,this.nodeName);t.attributes=gp(this.attributes);const r=this.getAttribute("style");if(null!=r&&r.length>0&&t.setAttribute("style",r),e)for(let e=0,r=this.childNodes.length;e<r;e++){const r=this.childNodes[e].cloneNode(!0);t.appendChild(r)}return t};const nf=()=>{};class af{constructor(e){if(this._values=[],"object"==typeof e)if("function"==typeof e[Symbol.iterator]){const t=[];for(const r of e)"function"==typeof r[Symbol.iterator]&&t.push([...r]);for(const e of t)this.append(e[0],e[1])}else for(const t in e)this.append(t,e[t])}append(e,t){this._values.push([e,t+""])}delete(e){e=e.toLowerCase();for(let t=this._values.length-1;t>=0;t--)this._values[t][0].toLowerCase()===e&&this._values.splice(t,1)}entries(){const e=[];for(const t of this.keys())e.push([t,this.get(t)]);let t=-1;return{next(){return t++,{value:e[t],done:!e[t]}},[Symbol.iterator](){return this}}}forEach(e){for(const t of this.entries())e(t[1],t[0])}get(e){const t=[];e=e.toLowerCase();for(const r of this._values)r[0].toLowerCase()===e&&t.push(r[1]);return t.length>0?t.join(", "):null}has(e){e=e.toLowerCase();for(const t of this._values)if(t[0].toLowerCase()===e)return!0;return!1}keys(){const e=[];for(const t of this._values){const r=t[0].toLowerCase();e.includes(r)||e.push(r)}let t=-1;return{next(){return t++,{value:e[t],done:!e[t]}},[Symbol.iterator](){return this}}}set(e,t){for(const r of this._values)if(r[0].toLowerCase()===e.toLowerCase())return r[1]=t+"",void 0;this.append(e,t)}values(){const e=this._values;let t=-1;return{next(){t++;const r=!e[t];return{value:r?void 0:e[t][1],done:r}},[Symbol.iterator](){return this}}}[Symbol.iterator](){return this.entries()}}class of{constructor(e,t={}){this._method="GET",this._url="/",this.bodyUsed=!1,this.cache="default",this.credentials="same-origin",this.integrity="",this.keepalive=!1,this.mode="cors",this.redirect="follow",this.referrer="about:client",this.referrerPolicy="","string"==typeof e?this.url=e:e&&(Object.assign(this,e),this.headers=new af(e.headers)),Object.assign(this,t),t.headers&&(this.headers=new af(t.headers)),this.headers||(this.headers=new af)}get url(){return"string"==typeof this._url?new URL(this._url,location.href).href:new URL("/",location.href).href}set url(e){this._url=e}get method(){return"string"==typeof this._method?this._method.toUpperCase():"GET"}set method(e){this._method=e}clone(){const e={...this};return e.headers=new af(this.headers),new of(e)}}class sf{constructor(e,t={}){this.ok=!0,this.status=200,this.statusText="",this.type="default",this.url="",this._body=e,t&&Object.assign(this,t),this.headers=new af(t.headers)}async json(){return JSON.parse(this._body)}async text(){return this._body}clone(){const e={...this};return e.headers=new af(this.headers),new sf(this._body,e)}}const cf=[["CustomEvent",class extends Rp{constructor(e,t){super(e),this.detail=null,null!=t&&Object.assign(this,t)}}],["Event",Rp],["Headers",af],["FocusEvent",Bp],["KeyboardEvent",class extends Rp{constructor(e,t){super(e),this.code="",this.key="",this.altKey=!1,this.ctrlKey=!1,this.metaKey=!1,this.shiftKey=!1,this.location=0,this.repeat=!1,null!=t&&Object.assign(this,t)}}],["MouseEvent",class extends Rp{constructor(e,t){super(e),this.screenX=0,this.screenY=0,this.clientX=0,this.clientY=0,this.ctrlKey=!1,this.shiftKey=!1,this.altKey=!1,this.metaKey=!1,this.button=0,this.buttons=0,this.relatedTarget=null,null!=t&&Object.assign(this,t)}}],["Request",of],["Response",sf],["DOMParser",class{parseFromString(e,t){return"text/html"!==t&&console.error("XML parsing not implemented yet, continuing as html"),((e,t=null)=>(null==t&&(null==rf&&(rf=new Sf),t=rf),qp(t,e)))(e)}}],["HTMLAnchorElement",O_],["HTMLBaseElement",X_],["HTMLButtonElement",M_],["HTMLCanvasElement",Z_],["HTMLFormElement",B_],["HTMLImageElement",R_],["HTMLInputElement",L_],["HTMLLinkElement",U_],["HTMLMetaElement",j_],["HTMLScriptElement",V_],["HTMLStyleElement",K_],["HTMLTemplateElement",Y_],["HTMLTitleElement",Q_]];class lf{constructor(){this.items=[]}get length(){return this.items.length}back(){this.go(-1)}forward(){this.go(1)}go(e){}pushState(e,t,r){}replaceState(e,t,r){}}class df{constructor(){}disconnect(){}observe(){}takeRecords(){return[]}unobserve(){}}class uf{constructor(){this.ancestorOrigins=null,this.protocol="",this.host="",this.hostname="",this.port="",this.pathname="",this.search="",this.hash="",this.username="",this.password="",this.origin="",this._href=""}get href(){return this._href}set href(e){const t=new URL(e,"http://mockdoc.stenciljs.com");this._href=t.href,this.protocol=t.protocol,this.host=t.host,this.hostname=t.hostname,this.port=t.port,this.pathname=t.pathname,this.search=t.search,this.hash=t.hash,this.username=t.username,this.password=t.password,this.origin=t.origin}assign(e){}reload(e){}replace(e){}toString(){return this.href}}class pf{constructor(){this.appCodeName="MockNavigator",this.appName="MockNavigator",this.appVersion="MockNavigator",this.platform="MockNavigator",this.userAgent="MockNavigator"}}class _f{constructor(){this.timeOrigin=Date.now(),this.eventCounts=new Map}addEventListener(){}clearMarks(){}clearMeasures(){}clearResourceTimings(){}dispatchEvent(){return!0}getEntries(){return[]}getEntriesByName(){return[]}getEntriesByType(){return[]}mark(){}measure(){}get navigation(){return{}}now(){return Date.now()-this.timeOrigin}get onresourcetimingbufferfull(){return null}removeEventListener(){}setResourceTimingBufferSize(){}get timing(){return{}}toJSON(){}}class ff{constructor(){this.items=new Map}key(e){}getItem(e){return e=String(e),this.items.has(e)?this.items.get(e):null}setItem(e,t){null==t&&(t="null"),this.items.set(String(e),String(t))}removeItem(e){this.items.delete(String(e))}clear(){this.items.clear()}}const mf=clearInterval,gf=clearTimeout,hf=setInterval,yf=setTimeout,vf=URL;class bf{constructor(e=null){this.document=!1!==e?new Sf(e,this):null,this.performance=new _f,this.customElements=new Cp(this),this.console={debug:nf,error:nf,info:nf,log:nf,warn:nf,dir:nf,dirxml:nf,table:nf,trace:nf,group:nf,groupCollapsed:nf,groupEnd:nf,clear:nf,count:nf,countReset:nf,assert:nf,profile:nf,profileEnd:nf,time:nf,timeLog:nf,timeEnd:nf,timeStamp:nf,context:nf,memory:nf},xf(this),Df(this)}addEventListener(e,t){jp(this,e,t)}alert(e){this.console?this.console.debug(e):console.debug(e)}blur(){}cancelAnimationFrame(e){this.__clearTimeout(e)}cancelIdleCallback(e){this.__clearTimeout(e)}get CharacterData(){if(null==this.__charDataCstr){const e=this.document;this.__charDataCstr=class extends m_{constructor(){throw super(e,0,"test",""),new Error("Illegal constructor: cannot construct CharacterData")}}}return this.__charDataCstr}set CharacterData(e){this.__charDataCstr=e}clearInterval(e){this.__clearInterval(e)}clearTimeout(e){this.__clearTimeout(e)}close(){!(e=>{if(null!=e){e.__timeouts&&(e.__timeouts.forEach((e=>{mf(e),gf(e)})),e.__timeouts.clear()),e.customElements&&e.customElements.clear&&e.customElements.clear(),(e=>{if(null!=e){zp(e);const t=e.documentElement;if(null!=t){v_(t);for(let e=0,r=t.childNodes.length;e<r;e++){const r=t.childNodes[e];v_(r),r.childNodes.length=0}}for(const t in e)e.hasOwnProperty(t)&&!Cf.has(t)&&delete e[t];try{e.nodeName="#document"}catch(e){}try{e.nodeType=9}catch(e){}try{e.cookie=""}catch(e){}try{e.referrer=""}catch(e){}}})(e.document),(e=>{if(null!=e)try{e.timeOrigin=Date.now()}catch(e){}})(e.performance);for(const t in e)e.hasOwnProperty(t)&&"document"!==t&&"performance"!==t&&"customElements"!==t&&delete e[t];if(xf(e),Df(e),zp(e),null!=e.document)try{e.document.defaultView=e}catch(e){}e.fetch=null,e.Headers=null,e.Request=null,e.Response=null,e.FetchError=null}})(this)}confirm(){return!1}get CSS(){return{supports:()=>!0}}get Document(){if(null==this.__docCstr){const e=this;this.__docCstr=class extends Sf{constructor(){throw super(!1,e),new Error("Illegal constructor: cannot construct Document")}}}return this.__docCstr}set Document(e){this.__docCstr=e}get DocumentFragment(){if(null==this.__docFragCstr){const e=this.document;this.__docFragCstr=class extends C_{constructor(){throw super(e),new Error("Illegal constructor: cannot construct DocumentFragment")}}}return this.__docFragCstr}set DocumentFragment(e){this.__docFragCstr=e}get DocumentType(){if(null==this.__docTypeCstr){const e=this.document;this.__docTypeCstr=class extends m_{constructor(){throw super(e,0,"test",""),new Error("Illegal constructor: cannot construct DocumentType")}}}return this.__docTypeCstr}set DocumentType(e){this.__docTypeCstr=e}get DOMTokenList(){return null==this.__domTokenListCstr&&(this.__domTokenListCstr=class{}),this.__domTokenListCstr}set DOMTokenList(e){this.__domTokenListCstr=e}dispatchEvent(e){return Wp(this,e)}get Element(){if(null==this.__elementCstr){const e=this.document;this.__elementCstr=class extends g_{constructor(){throw super(e,""),new Error("Illegal constructor: cannot construct Element")}}}return this.__elementCstr}fetch(e,t){if("function"==typeof fetch)return fetch(e,t);throw new Error("fetch() not implemented")}focus(){}getComputedStyle(e){return{cssText:"",length:0,parentRule:null,getPropertyPriority(){return null},getPropertyValue(){return""},item(){return null},removeProperty(){return null},setProperty(){return null}}}get globalThis(){return this}get history(){return null==this.__history&&(this.__history=new lf),this.__history}set history(e){this.__history=e}get JSON(){return JSON}get HTMLElement(){if(null==this.__htmlElementCstr){const e=this.document;this.__htmlElementCstr=class extends E_{constructor(){super(e,"");const t=this.constructor.observedAttributes;Array.isArray(t)&&"function"==typeof this.attributeChangedCallback&&t.forEach((e=>{const t=this.getAttribute(e);null!=t&&this.attributeChangedCallback(e,null,t)}))}}}return this.__htmlElementCstr}set HTMLElement(e){this.__htmlElementCstr=e}get IntersectionObserver(){return df}get localStorage(){return null==this.__localStorage&&(this.__localStorage=new ff),this.__localStorage}set localStorage(e){this.__localStorage=e}get location(){return null==this.__location&&(this.__location=new uf),this.__location}set location(e){"string"==typeof e?(null==this.__location&&(this.__location=new uf),this.__location.href=e):this.__location=e}matchMedia(){return{matches:!1}}get Node(){if(null==this.__nodeCstr){const e=this.document;this.__nodeCstr=class extends m_{constructor(){throw super(e,0,"test",""),new Error("Illegal constructor: cannot construct Node")}}}return this.__nodeCstr}get NodeList(){if(null==this.__nodeListCstr){const e=this.document;this.__nodeListCstr=class extends class{constructor(e,t,r){this.ownerDocument=e,this.childNodes=t,this.length=r}}{constructor(){throw super(e,[],0),new Error("Illegal constructor: cannot construct NodeList")}}}return this.__nodeListCstr}get navigator(){return null==this.__navigator&&(this.__navigator=new pf),this.__navigator}set navigator(e){this.__navigator=e}get parent(){return null}prompt(){return""}open(){return null}get origin(){return this.location.origin}removeEventListener(e,t){Vp(this,e,t)}requestAnimationFrame(e){return this.setTimeout((()=>{e(Date.now())}),0)}requestIdleCallback(e){return this.setTimeout((()=>{e({didTimeout:!1,timeRemaining:()=>0})}),0)}scroll(e,t){}scrollBy(e,t){}scrollTo(e,t){}get self(){return this}get sessionStorage(){return null==this.__sessionStorage&&(this.__sessionStorage=new ff),this.__sessionStorage}set sessionStorage(e){this.__sessionStorage=e}setInterval(e,t,...r){if(null==this.__timeouts&&(this.__timeouts=new Set),t=Math.min(t,this.__maxTimeout),this.__allowInterval){const n=this.__setInterval((()=>{if(this.__timeouts){this.__timeouts.delete(n);try{e(...r)}catch(e){this.console?this.console.error(e):console.error(e)}}}),t);return this.__timeouts&&this.__timeouts.add(n),n}const n=this.__setTimeout((()=>{if(this.__timeouts){this.__timeouts.delete(n);try{e(...r)}catch(e){this.console?this.console.error(e):console.error(e)}}}),t);return this.__timeouts&&this.__timeouts.add(n),n}setTimeout(e,t,...r){null==this.__timeouts&&(this.__timeouts=new Set),t=Math.min(t,this.__maxTimeout);const n=this.__setTimeout((()=>{if(this.__timeouts){this.__timeouts.delete(n);try{e(...r)}catch(e){this.console?this.console.error(e):console.error(e)}}}),t);return this.__timeouts&&this.__timeouts.add(n),n}get top(){return this}get window(){return this}onanimationstart(){}onanimationend(){}onanimationiteration(){}onabort(){}onauxclick(){}onbeforecopy(){}onbeforecut(){}onbeforepaste(){}onblur(){}oncancel(){}oncanplay(){}oncanplaythrough(){}onchange(){}onclick(){}onclose(){}oncontextmenu(){}oncopy(){}oncuechange(){}oncut(){}ondblclick(){}ondrag(){}ondragend(){}ondragenter(){}ondragleave(){}ondragover(){}ondragstart(){}ondrop(){}ondurationchange(){}onemptied(){}onended(){}onerror(){}onfocus(){}onfocusin(){}onfocusout(){}onformdata(){}onfullscreenchange(){}onfullscreenerror(){}ongotpointercapture(){}oninput(){}oninvalid(){}onkeydown(){}onkeypress(){}onkeyup(){}onload(){}onloadeddata(){}onloadedmetadata(){}onloadstart(){}onlostpointercapture(){}onmousedown(){}onmouseenter(){}onmouseleave(){}onmousemove(){}onmouseout(){}onmouseover(){}onmouseup(){}onmousewheel(){}onpaste(){}onpause(){}onplay(){}onplaying(){}onpointercancel(){}onpointerdown(){}onpointerenter(){}onpointerleave(){}onpointermove(){}onpointerout(){}onpointerover(){}onpointerup(){}onprogress(){}onratechange(){}onreset(){}onresize(){}onscroll(){}onsearch(){}onseeked(){}onseeking(){}onselect(){}onselectstart(){}onstalled(){}onsubmit(){}onsuspend(){}ontimeupdate(){}ontoggle(){}onvolumechange(){}onwaiting(){}onwebkitfullscreenchange(){}onwebkitfullscreenerror(){}onwheel(){}}var Ef;function xf(e){e.__clearInterval=mf,e.__clearTimeout=gf,e.__setInterval=hf,e.__setTimeout=yf,e.__maxTimeout=3e4,e.__allowInterval=!0,e.URL=vf}function Df(e){try{e.devicePixelRatio=1,e.innerHeight=768,e.innerWidth=1366,e.pageXOffset=0,e.pageYOffset=0,e.screenLeft=0,e.screenTop=0,e.screenX=0,e.screenY=0,e.scrollX=0,e.scrollY=0,e.screen={availHeight:e.innerHeight,availLeft:0,availTop:0,availWidth:e.innerWidth,colorDepth:24,height:e.innerHeight,keepAwake:!1,orientation:{angle:0,type:"portrait-primary"},pixelDepth:24,width:e.innerWidth}}catch(e){}}Ef=bf.prototype,void cf.forEach((([e,t])=>{Object.defineProperty(Ef,e,{get(){return this["__"+e]||t},set(t){this["__"+e]=t},configurable:!0,enumerable:!0})}));class Sf extends E_{constructor(e=null,t=null){if(super(null,null),this.nodeName="#document",this.nodeType=9,this.defaultView=t,this.cookie="",this.referrer="",this.appendChild(this.createDocumentTypeNode()),"string"==typeof e){const t=qp(this,e).children.find((e=>"HTML"===e.nodeName));null!=t&&(this.appendChild(t),Nf(t,this))}else if(!1!==e){const e=new E_(this,"html");this.appendChild(e),e.appendChild(new E_(this,"head")),e.appendChild(new E_(this,"body"))}}get dir(){return this.documentElement.dir}set dir(e){this.documentElement.dir=e}get location(){return null!=this.defaultView?this.defaultView.location:null}set location(e){null!=this.defaultView&&(this.defaultView.location=e)}get baseURI(){const e=this.head.childNodes.find((e=>"BASE"===e.nodeName));return e?e.href:this.URL}get URL(){return this.location.href}get styleSheets(){return this.querySelectorAll("style")}get scripts(){return this.querySelectorAll("script")}get forms(){return this.querySelectorAll("form")}get images(){return this.querySelectorAll("img")}get scrollingElement(){return this.documentElement}get documentElement(){for(let e=this.childNodes.length-1;e>=0;e--)if("HTML"===this.childNodes[e].nodeName)return this.childNodes[e];const e=new E_(this,"html");return this.appendChild(e),e}set documentElement(e){for(let e=this.childNodes.length-1;e>=0;e--)10!==this.childNodes[e].nodeType&&this.childNodes[e].remove();null!=e&&(this.appendChild(e),Nf(e,this))}get head(){const e=this.documentElement;for(let t=0;t<e.childNodes.length;t++)if("HEAD"===e.childNodes[t].nodeName)return e.childNodes[t];const t=new E_(this,"head");return e.insertBefore(t,e.firstChild),t}set head(e){const t=this.documentElement;for(let e=t.childNodes.length-1;e>=0;e--)"HEAD"===t.childNodes[e].nodeName&&t.childNodes[e].remove();null!=e&&(t.insertBefore(e,t.firstChild),Nf(e,this))}get body(){const e=this.documentElement;for(let t=e.childNodes.length-1;t>=0;t--)if("BODY"===e.childNodes[t].nodeName)return e.childNodes[t];const t=new E_(this,"body");return e.appendChild(t),t}set body(e){const t=this.documentElement;for(let e=t.childNodes.length-1;e>=0;e--)"BODY"===t.childNodes[e].nodeName&&t.childNodes[e].remove();null!=e&&(t.appendChild(e),Nf(e,this))}appendChild(e){return e.remove(),e.parentNode=this,this.childNodes.push(e),e}createComment(e){return new T_(this,e)}createAttribute(e){return new yp(e.toLowerCase(),"")}createAttributeNS(e,t){return new yp(t,"",e)}createElement(e){if("#document"===e){const t=new Sf(!1);return t.nodeName=e,t.parentNode=null,t}return I_(this,e)}createElementNS(e,t){const r=((e,t,r)=>{if("http://www.w3.org/1999/xhtml"===t)return I_(e,r);if("http://www.w3.org/2000/svg"!==t)return new g_(e,r);switch(r.toLowerCase()){case"text":case"tspan":case"tref":case"altglyph":case"textpath":return new q_(e,r);case"circle":case"ellipse":case"image":case"line":case"path":case"polygon":case"polyline":case"rect":case"use":return new G_(e,r);case"svg":return new $_(e,r);default:return new J_(e,r)}})(this,e,t);return r.namespaceURI=e,r}createTextNode(e){return new x_(this,e)}createDocumentFragment(){return new C_(this)}createDocumentTypeNode(){return new A_(this)}getElementById(e){return Af(this,e)}getElementsByName(e){return kf(this,e.toLowerCase())}get title(){const e=this.head.childNodes.find((e=>"TITLE"===e.nodeName));return null!=e&&"string"==typeof e.textContent?e.textContent.trim():""}set title(e){const t=this.head;let r=t.childNodes.find((e=>"TITLE"===e.nodeName));null==r&&(r=this.createElement("title"),t.appendChild(r)),r.textContent=e}}function Tf(e=null){return new bf(e).document}const Cf=new Set(["nodeName","nodeType","nodeValue","ownerDocument","parentNode","childNodes","_shadowRoot"]);function Af(e,t){const r=e.children;for(let e=0,n=r.length;e<n;e++){const n=r[e];if(n.id===t)return n;const i=Af(n,t);if(null!=i)return i}return null}function kf(e,t,r=[]){const n=e.children;for(let e=0,i=n.length;e<i;e++){const i=n[e];i.name&&i.name.toLowerCase()===t&&r.push(i),kf(i,t,r)}return r}function Nf(e,t){for(let r=0,n=e.childNodes.length;r<n;r++)e.childNodes[r].ownerDocument=t,1===e.childNodes[r].nodeType&&Nf(e.childNodes[r],t)}var wf="object"==typeof r&&r&&"win32"===r.platform?{sep:"\\"}:{sep:"/"},Ff=Pf;function Pf(e,t,r){e instanceof RegExp&&(e=If(e,r)),t instanceof RegExp&&(t=If(t,r));var n=Of(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function If(e,t){var r=t.match(e);return r?r[0]:null}function Of(e,t,r){var n,i,a,o,s,c=r.indexOf(e),l=r.indexOf(t,c+1),d=c;if(c>=0&&l>0){for(n=[],a=r.length;d>=0&&!s;)d==c?(n.push(d),c=r.indexOf(e,d+1)):1==n.length?s=[n.pop(),l]:((i=n.pop())<a&&(a=i,o=l),l=r.indexOf(t,d+1)),d=c<l&&c>=0?c:l;n.length&&(s=[a,o])}return s}Pf.range=Of;var Mf="\0SLASH"+Math.random()+"\0",Rf="\0OPEN"+Math.random()+"\0",Lf="\0CLOSE"+Math.random()+"\0",Bf="\0COMMA"+Math.random()+"\0",Uf="\0PERIOD"+Math.random()+"\0";function jf(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Vf(e){return e.split(Mf).join("\\").split(Rf).join("{").split(Lf).join("}").split(Bf).join(",").split(Uf).join(".")}function zf(e){if(!e)return[""];var t=[],r=Ff("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,a=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var s=zf(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function Hf(e){return"{"+e+"}"}function Wf(e){return/^-?0\d/.test(e)}function Kf(e,t){return e<=t}function Jf(e,t){return e>=t}function Gf(e,t){var r=[],n=Ff("{","}",e);if(!n)return[e];var i=n.pre,a=n.post.length?Gf(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<a.length;o++){var s=i+"{"+n.body+"}"+a[o];r.push(s)}else{var c,l,d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),p=d||u,_=n.body.indexOf(",")>=0;if(!p&&!_)return n.post.match(/,.*\}/)?Gf(e=n.pre+"{"+n.body+Lf+n.post):[e];if(p)c=n.body.split(/\.\./);else if(1===(c=zf(n.body)).length&&1===(c=Gf(c[0],!1).map(Hf)).length)return a.map((e=>n.pre+c[0]+e));if(p){var f=jf(c[0]),m=jf(c[1]),g=Math.max(c[0].length,c[1].length),h=3==c.length?Math.abs(jf(c[2])):1,y=Kf;m<f&&(h*=-1,y=Jf);var v=c.some(Wf);l=[];for(var b=f;y(b,m);b+=h){var E;if(u)"\\"===(E=String.fromCharCode(b))&&(E="");else if(E=String(b),v){var x=g-E.length;if(x>0){var D=new Array(x+1).join("0");E=b<0?"-"+D+E.slice(1):D+E}}l.push(E)}}else{l=[];for(var S=0;S<c.length;S++)l.push.apply(l,Gf(c[S],!1))}for(S=0;S<l.length;S++)for(o=0;o<a.length;o++)s=i+l[S]+a[o],(!t||p||s)&&r.push(s)}return r}var $f=at((function(e){const t=e.exports=(e,t,r={})=>(p(t),!(!r.nocomment&&"#"===t.charAt(0))&&new f(t,r).match(e));e.exports=t,t.sep=wf.sep;const r=Symbol("globstar **");t.GLOBSTAR=r;const n={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},i="[^/]",a="[^/]*?",o=e=>e.split("").reduce(((e,t)=>(e[t]=!0,e)),{}),s=o("().*{}+?[]^$\\!"),c=o("[.("),l=/\/+/;t.filter=(e,r={})=>(n,i,a)=>t(n,e,r);const d=(e,t={})=>{const r={};return Object.keys(e).forEach((t=>r[t]=e[t])),Object.keys(t).forEach((e=>r[e]=t[e])),r};t.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return t;const r=t,n=(t,n,i)=>r(t,n,d(e,i));return(n.Minimatch=class extends r.Minimatch{constructor(t,r){super(t,d(e,r))}}).defaults=t=>r.defaults(d(e,t)).Minimatch,n.filter=(t,n)=>r.filter(t,d(e,n)),n.defaults=t=>r.defaults(d(e,t)),n.makeRe=(t,n)=>r.makeRe(t,d(e,n)),n.braceExpand=(t,n)=>r.braceExpand(t,d(e,n)),n.match=(t,n,i)=>r.match(t,n,d(e,i)),n},t.braceExpand=(e,t)=>u(e,t);const u=(e,t={})=>{return p(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(r=e)?("{}"===r.substr(0,2)&&(r="\\{\\}"+r.substr(2)),Gf((e=>e.split("\\\\").join(Mf).split("\\{").join(Rf).split("\\}").join(Lf).split("\\,").join(Bf).split("\\.").join(Uf))(r),!0).map(Vf)):[];var r},p=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},_=Symbol("subparse");t.makeRe=(e,t)=>new f(e,t||{}).makeRe(),t.match=(e,t,r={})=>{const n=new f(t,r);return e=e.filter((e=>n.match(e))),n.options.nonull&&!e.length&&e.push(t),e};class f{constructor(e,t){p(e),t||(t={}),this.options=t,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return this.comment=!0,void 0;if(!e)return this.empty=!0,void 0;this.parseNegate();let r=this.globSet=this.braceExpand();t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,r),r=this.globParts=r.map((e=>e.split(l))),this.debug(this.pattern,r),r=r.map(((e,t,r)=>e.map(this.parse,this))),this.debug(this.pattern,r),r=r.filter((e=>-1===e.indexOf(!1))),this.debug(this.pattern,r),this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=!1,r=0;for(let n=0;n<e.length&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}matchOne(e,t,n){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var a=0,o=0,s=e.length,c=t.length;a<s&&o<c;a++,o++){this.debug("matchOne loop");var l,d=t[o],u=e[a];if(this.debug(t,d,u),!1===d)return!1;if(d===r){this.debug("GLOBSTAR",[t,d,u]);var p=a,_=o+1;if(_===c){for(this.debug("** at the end");a<s;a++)if("."===e[a]||".."===e[a]||!i.dot&&"."===e[a].charAt(0))return!1;return!0}for(;p<s;){var f=e[p];if(this.debug("\nglobstar while",e,p,t,_,f),this.matchOne(e.slice(p),t.slice(_),n))return this.debug("globstar found match!",p,s,f),!0;if("."===f||".."===f||!i.dot&&"."===f.charAt(0)){this.debug("dot detected!",e,p,t,_);break}this.debug("globstar swallow a segment, and continue"),p++}return!(!n||(this.debug("\n>>> no match, partial?",e,p,t,_),p!==s))}if("string"==typeof d?(l=u===d,this.debug("string match",d,u,l)):(l=u.match(d),this.debug("pattern match",d,u,l)),!l)return!1}if(a===s&&o===c)return!0;if(a===s)return n;if(o===c)return a===s-1&&""===e[a];throw new Error("wtf?")}braceExpand(){return u(this.pattern,this.options)}parse(e,t){p(e);const o=this.options;if("**"===e){if(!o.noglobstar)return r;e="*"}if(""===e)return"";let l="",d=!!o.nocase,u=!1;const f=[],m=[];let g,h,y,v,b=!1,E=-1,x=-1;const D="."===e.charAt(0)?"":o.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=()=>{if(g){switch(g){case"*":l+=a,d=!0;break;case"?":l+=i,d=!0;break;default:l+="\\"+g}this.debug("clearStateChar %j %j",g,l),g=!1}};for(let t,r=0;r<e.length&&(t=e.charAt(r));r++)if(this.debug("%s\t%s %s %j",e,r,l,t),u){if("/"===t)return!1;s[t]&&(l+="\\"),l+=t,u=!1}else switch(t){case"/":return!1;case"\\":S(),u=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,r,l,t),b){this.debug(" in class"),"!"===t&&r===x+1&&(t="^"),l+=t;continue}this.debug("call clearStateChar %j",g),S(),g=t,o.noext&&S();continue;case"(":if(b){l+="(";continue}if(!g){l+="\\(";continue}f.push({type:g,start:r-1,reStart:l.length,open:n[g].open,close:n[g].close}),l+="!"===g?"(?:(?!(?:":"(?:",this.debug("plType %j %j",g,l),g=!1;continue;case")":if(b||!f.length){l+="\\)";continue}S(),d=!0,y=f.pop(),l+=y.close,"!"===y.type&&m.push(y),y.reEnd=l.length;continue;case"|":if(b||!f.length){l+="\\|";continue}S(),l+="|";continue;case"[":if(S(),b){l+="\\"+t;continue}b=!0,x=r,E=l.length,l+=t;continue;case"]":if(r===x+1||!b){l+="\\"+t;continue}h=e.substring(x+1,r);try{RegExp("["+h+"]")}catch(e){v=this.parse(h,_),l=l.substr(0,E)+"\\["+v[0]+"\\]",d=d||v[1],b=!1;continue}d=!0,b=!1,l+=t;continue;default:S(),!s[t]||"^"===t&&b||(l+="\\"),l+=t}for(b&&(h=e.substr(x+1),v=this.parse(h,_),l=l.substr(0,E)+"\\["+v[0],d=d||v[1]),y=f.pop();y;y=f.pop()){let e;e=l.slice(y.reStart+y.open.length),this.debug("setting tail",l,y),e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>(r||(r="\\"),t+t+r+"|"))),this.debug("tail=%j\n %s",e,e,y,l);const t="*"===y.type?a:"?"===y.type?i:"\\"+y.type;d=!0,l=l.slice(0,y.reStart)+t+"\\("+e}S(),u&&(l+="\\\\");const T=c[l.charAt(0)];for(let e=m.length-1;e>-1;e--){const r=m[e],n=l.slice(0,r.reStart),i=l.slice(r.reStart,r.reEnd-8);let a=l.slice(r.reEnd);const o=l.slice(r.reEnd-8,r.reEnd)+a,s=n.split("(").length-1;let c=a;for(let e=0;e<s;e++)c=c.replace(/\)[+*?]?/,"");a=c,l=n+i+a+(""===a&&t!==_?"$":"")+o}if(""!==l&&d&&(l="(?=.)"+l),T&&(l=D+l),t===_)return[l,d];if(!d)return(e=>e.replace(/\\(.)/g,"$1"))(e);const C=o.nocase?"i":"";try{return Object.assign(new RegExp("^"+l+"$",C),{_glob:e,_src:l})}catch(e){return new RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const t=this.options,n=t.noglobstar?a:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=t.nocase?"i":"";let o=e.map((e=>((e=e.map((e=>"string"==typeof e?(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(e):e===r?r:e._src)).reduce(((e,t)=>(e[e.length-1]===r&&t===r||e.push(t),e)),[])).forEach(((t,i)=>{t===r&&e[i-1]!==r&&(0===i?e.length>1?e[i+1]="(?:\\/|"+n+"\\/)?"+e[i+1]:e[i]=n:i===e.length-1?e[i-1]+="(?:\\/|"+n+")?":(e[i-1]+="(?:\\/|\\/"+n+"\\/)"+e[i+1],e[i+1]=r))})),e.filter((e=>e!==r)).join("/")))).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,i)}catch(e){this.regexp=!1}return this.regexp}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;const r=this.options;"/"!==wf.sep&&(e=e.split(wf.sep).join("/")),e=e.split(l),this.debug(this.pattern,"split",e);const n=this.set;let i;this.debug(this.pattern,"set",n);for(let t=e.length-1;t>=0&&(i=e[t],!i);t--);for(let a=0;a<n.length;a++){const o=n[a];let s=e;if(r.matchBase&&1===o.length&&(s=[i]),this.matchOne(s,o,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(e){return t.defaults(e).Minimatch}}t.Minimatch=f}));const qf=(e,t,r)=>{if(r)return Je(r)?r:Ge(t,r);if(Je(e))throw new Error(`copy task, "dest" property must exist if "src" property is an absolute path: ${e}`);return t},Xf=async(e,t,r)=>{const n=e.outputTargets.filter(ku);if(0===n.length)return;const i=[...r.filesUpdated,...r.filesAdded,...r.dirsAdded],a=[],o=!((e,t,r)=>{if(!e.hasSuccessfulBuild)return!1;let n=!0;return r.forEach((e=>{const r=me(We(e));t.forEach((e=>{e.cmps.forEach((e=>{null!=e.assetsDirs&&e.assetsDirs.forEach((e=>{const t=me(e.absolutePath);if(r===t)return n=!1,void 0}))}))}))})),n})(t,r.entryModules,r.filesChanged);if(n.forEach((t=>{o&&t.copyAssets&&a.push(...((e,t,r,n)=>{if(!r)return[];const i=[];return t.components.filter((e=>null!=e.assetsDirs&&e.assetsDirs.length>0)).forEach((t=>{n?t.excludeFromCollection||t.isCollectionDependency||t.assetsDirs.forEach((t=>{const n=Ge(r,Xe(e.srcDir,t.absolutePath));i.push({src:t.absolutePath,dest:n,warn:!1,keepDirStructure:!1})})):t.assetsDirs.forEach((e=>{i.push({src:e.absolutePath,dest:Ge(r,e.cmpRelativePath),warn:!1,keepDirStructure:!1})}))})),t.debug(`getComponentAssetsCopyTasks: ${i.length}`),i})(e,r,t.dir,"collection"===t.copyAssets)),a.push(...Yf(e,r,t,i))})),a.length>0){const n=r.createTimeSpan("copy started");let i=0;try{const n=await e.sys.copy(a,e.srcDir);null!=n&&(r.diagnostics.push(...n.diagnostics),t.fs.cancelDeleteDirectoriesFromDisk(n.dirPaths),t.fs.cancelDeleteFilesFromDisk(n.filePaths),i=n.filePaths.length)}catch(e){const t=Z(r.diagnostics);e instanceof Error&&(t.messageText=e.message)}n.finish(`copy finished (${i} file${1===i?"":"s"})`)}},Yf=(e,t,r,n)=>Array.isArray(r.copy)?(!t.isRebuild||t.requiresFullBuild?r.copy:Qf(e,r.copy,n)).map((e=>Zf(e,r.dir))):[],Qf=(e,t,r)=>Array.isArray(t)?t.filter((t=>{let n=t.src;if(X(n)){if(n=Ge(e.srcDir,n),r.some($f.filter(n)))return!0}else if(n=me(((e,t)=>Je(t)?t:Ge(e.srcDir,t))(e,n+"/")),r.some((e=>e.startsWith(n))))return!0;return!1})):[],Zf=(e,t)=>({src:e.src,dest:qf(e.src,t,e.dest),keepDirStructure:"boolean"==typeof e.keepDirStructure?e.keepDirStructure:null==e.dest,warn:!1!==e.warn}),em=["Component"],tm=["Element","Event","Listen","Method","Prop","State","Watch"],rm=["State","Prop"],nm=e=>{var t;return!!(null===(t=Pm(e))||void 0===t?void 0:t.some((e=>e.kind===p.SyntaxKind.PrivateKeyword||e.kind===p.SyntaxKind.ProtectedKeyword)))},im=(e,t=null)=>(null==t&&(t=new WeakSet),e===String?p.factory.createIdentifier("String"):e===Number?p.factory.createIdentifier("Number"):e===Boolean?p.factory.createIdentifier("Boolean"):void 0===e?p.factory.createIdentifier("undefined"):null===e?p.factory.createIdentifier("null"):Array.isArray(e)?am(e,t):"object"==typeof e?e.__identifier&&e.__escapedText?p.factory.createIdentifier(e.__escapedText):om(e,t):"number"==typeof e?p.factory.createNumericLiteral(e):"object"==typeof e&&"base10Value"in e?p.factory.createBigIntLiteral(e):"boolean"==typeof e?e?p.factory.createTrue():p.factory.createFalse():"string"==typeof e?p.factory.createStringLiteral(e,void 0):p.factory.createStringLiteralFromNode(e)),am=(e,t)=>{const r=e.map((e=>im(e,t)));return p.factory.createArrayLiteralExpression(r)},om=(e,t)=>{if(t.has(e))return p.factory.createIdentifier("undefined");t.add(e);const r=Object.keys(e).map((r=>p.factory.createPropertyAssignment(p.factory.createStringLiteral(r),im(e[r],t))));return p.factory.createObjectLiteralExpression(r,!0)},sm=(e,t)=>p.factory.createGetAccessorDeclaration([p.factory.createToken(p.SyntaxKind.StaticKeyword)],e,[],void 0,p.factory.createBlock([p.factory.createReturnStatement(t)])),cm=(e,t)=>{const r=e.find((e=>e.name.escapedText===t));if(!r||!r.body||!r.body.statements)return null;const n=r.body.statements.find((e=>e.kind===p.SyntaxKind.ReturnStatement));if(!n||!n.expression)return null;const i=n.expression.kind;if(i===p.SyntaxKind.StringLiteral)return n.expression.text;if(i===p.SyntaxKind.NoSubstitutionTemplateLiteral)return n.expression.text;if(i===p.SyntaxKind.TrueKeyword)return!0;if(i===p.SyntaxKind.FalseKeyword)return!1;if(i===p.SyntaxKind.ObjectLiteralExpression)return dm(n.expression);if(i===p.SyntaxKind.ArrayLiteralExpression&&n.expression.elements)return lm(n.expression);if(i===p.SyntaxKind.Identifier){const e=n.expression;if("string"==typeof e.escapedText)return um(e.escapedText);if(e.escapedText){const t={};return Object.keys(e.escapedText).forEach((r=>{t[r]=um(e.escapedText[r])})),t}}return null},lm=e=>e.elements.map((e=>{let t;switch(e.kind){case p.SyntaxKind.ObjectLiteralExpression:t=dm(e);break;case p.SyntaxKind.StringLiteral:t=e.text;break;case p.SyntaxKind.TrueKeyword:t=!0;break;case p.SyntaxKind.FalseKeyword:t=!1;break;case p.SyntaxKind.Identifier:const r=e.escapedText;"String"===r?t=String:"Number"===r?t=Number:"Boolean"===r&&(t=Boolean);break;case p.SyntaxKind.PropertyAccessExpression:default:t=e}return t})),dm=e=>{const t=e.properties,r={};for(const e of t){const t=pm(e.name);let n;if(p.isShorthandPropertyAssignment(e))n=um(t);else if(p.isPropertyAssignment(e))switch(e.initializer.kind){case p.SyntaxKind.ArrayLiteralExpression:n=lm(e.initializer);break;case p.SyntaxKind.ObjectLiteralExpression:n=dm(e.initializer);break;case p.SyntaxKind.StringLiteral:case p.SyntaxKind.NoSubstitutionTemplateLiteral:n=e.initializer.text;break;case p.SyntaxKind.TrueKeyword:n=!0;break;case p.SyntaxKind.FalseKeyword:n=!1;break;case p.SyntaxKind.Identifier:const t=e.initializer.escapedText;n="String"===t?String:"Number"===t?Number:"Boolean"===t?Boolean:"undefined"===t?void 0:"null"===t?null:um(e.initializer.escapedText);break;case p.SyntaxKind.PropertyAccessExpression:default:n=e.initializer}r[t]=n}return r},um=e=>({__identifier:!0,__escapedText:e}),pm=e=>{switch(e.kind){case p.SyntaxKind.Identifier:return e.text;case p.SyntaxKind.StringLiteral:case p.SyntaxKind.NumericLiteral:return e.text;case p.SyntaxKind.ComputedPropertyName:const t=e.expression;if(p.isStringLiteral(t)||p.isNumericLiteral(t))return e.expression.text}},_m=(e,t)=>{const r={};return mm(e).forEach((e=>{r[e]=hm(e,t)})),r},fm=e=>p.isIdentifier(e)?e.escapedText.toString():fm(e.left),mm=e=>{const t=[],r=e=>(p.isTypeReferenceNode(e)&&(t.push(fm(e.typeName)),e.typeArguments&&e.typeArguments.filter((e=>p.isTypeReferenceNode(e))).forEach((e=>{const r=e.typeName;r&&r.escapedText&&t.push(r.escapedText.toString())}))),p.forEachChild(e,r));return r(e),t},gm=(e,t,r)=>{Object.keys(t).forEach((n=>{if("@stencil/core"===t[n].path&&tm.includes(n)){const t=Z(e);Te(t,r)}}))},hm=(e,t)=>{const r=t.getSourceFile(),n=r.statements.find((t=>!!(p.isImportDeclaration(t)&&t.importClause&&p.isImportClause(t.importClause)&&t.importClause.namedBindings&&p.isNamedImports(t.importClause.namedBindings)&&Array.isArray(t.importClause.namedBindings.elements)&&t.importClause.namedBindings.elements.find((t=>t.name.getText()===e)))));return n?{location:"import",path:n.moduleSpecifier.text}:r.statements.some((t=>{const r=Pm(t),n=p.isInterfaceDeclaration(t)&&t.name.getText()===e&&Array.isArray(r)&&r.some((e=>e.kind===p.SyntaxKind.ExportKeyword)),i=p.isTypeAliasDeclaration(t)&&t.name.getText()===e&&Array.isArray(r)&&r.some((e=>e.kind===p.SyntaxKind.ExportKeyword)),a=p.isExportDeclaration(t)&&p.isNamedExports(t.exportClause)&&t.exportClause.elements.some((t=>t.name.getText()===e));return n||i||a}))?{location:"local"}:{location:"global"}},ym=(e,t)=>{const r=new Set;bm(e,t,r);const n=r.delete("true"),i=r.delete("false");(n||i)&&r.add("boolean");let a=Array.from(r.keys()).sort();return a.length>1&&(a=a.map((e=>e.indexOf("=>")>=0?`(${e})`:e))),a.length>20?vm(e,t):a.join(" | ")},vm=(e,t)=>{const r=p.TypeFormatFlags.NoTruncation|p.TypeFormatFlags.InTypeAlias|p.TypeFormatFlags.InElementType;return e.typeToString(t,void 0,r)},bm=(e,t,r)=>{if(t.isUnion())t.types.forEach((t=>{bm(e,t,r)}));else{const n=vm(e,t);r.add(n)}},Em=(e,t)=>{const r=me(t.fileName),n=e.moduleMap.get(r);return null!=n?n:Array.from(e.moduleMap.values()).find((e=>e.jsFilePath===r))},xm=(e,t,r)=>{const n=e.nodeMap.get(r);if(n)return n;const i=Em(e,t);if(null!=i&&null!=r.members){const e=r.members.filter(Sm),t=Dm(e);if("string"==typeof t)return i.cmps.find((e=>e.tagName===t))}},Dm=e=>{if(e.length>0){const t=cm(e,"is");if("string"==typeof t&&t.includes("-"))return t}return null},Sm=e=>{var t;const r=Pm(e);return null!==(t=e.kind===p.SyntaxKind.GetAccessor&&Array.isArray(r)&&r.some((({kind:e})=>e===p.SyntaxKind.StaticKeyword)))&&void 0!==t&&t},Tm=(e,t)=>e&&t?{tags:Cm(t.getJsDocTags()),text:p.displayPartsToString(t.getDocumentationComment(e))}:{tags:[],text:""},Cm=e=>e.map((e=>{var t;return{...e,text:null===(t=e.text)||void 0===t?void 0:t.map((e=>e.text)).join("")}})),Am=e=>e&&e.tags.some((e=>"internal"===e.name)),km=(e,t)=>p.isMethodDeclaration(e)&&e.name&&e.name.escapedText===t,Nm=(e,t)=>{const r=e.map((e=>{const t=e.split(" as ");let r=e,n=e;return t.length>1&&(r=t[1],n=t[0]),p.factory.createImportSpecifier(!1,"string"==typeof n&&n!==r?p.factory.createIdentifier(n):void 0,p.factory.createIdentifier(r))}));return p.factory.createImportDeclaration(void 0,p.factory.createImportClause(!1,void 0,p.factory.createNamedImports(r)),p.factory.createStringLiteral(t))},wm=e=>{var t,r;return[...null!==(t=Fm(e))&&void 0!==t?t:[],...null!==(r=Pm(e))&&void 0!==r?r:[]]},Fm=e=>p.canHaveDecorators(e)?p.getDecorators(e):void 0,Pm=e=>p.canHaveModifiers(e)?p.getModifiers(e):void 0,Im=(e,t,r)=>n=>{const i=p.createCompilerHost(e.tsCompilerOptions),a=o=>s=>{var c,l;if(r.transformAliasedImportPaths&&p.isImportDeclaration(s)&&p.isStringLiteral(s.moduleSpecifier)){let a=s.moduleSpecifier.text;if(!a.startsWith(".")){const n=p.resolveModuleName(a,o,e.tsCompilerOptions,i),s=null!=(null===(c=n.resolvedModule)||void 0===c?void 0:c.resolvedFileName),d=!0===(null===(l=n.resolvedModule)||void 0===l?void 0:l.isExternalLibraryImport);if(s&&!d){const i=new RegExp(Object.values(p.Extension).map((e=>`${e}$`)).join("|")),o=n.resolvedModule.resolvedFileName.replace(e.srcDir,r.collectionDir);a=me(Xe(We(t),o).replace(i,""))}}return n.factory.updateImportDeclaration(s,Pm(s),s.importClause,n.factory.createStringLiteral(a),s.assertClause)}return p.visitEachChild(s,a(o),n)};return e=>p.visitEachChild(e,a(e.fileName),n)},Om=async(e,t,r,n)=>{const i=e.outputTargets.filter(Tu);if(0===i.length)return;const a="generate collections"+(e.sourceMap?" + source maps":""),o=r.createTimeSpan(`${a} started`,!0);try{await Promise.all(n.map((async r=>{let n=r.staticSourceFileText;e.preamble&&(n=`${Ie(e)}\n${n}`);const a=r.sourceMapFileText;await Promise.all(i.map((async i=>{const o=Xe(e.srcDir,r.jsFilePath),s=Ge(i.collectionDir,o),{outputText:c}=p.transpileModule(n,{fileName:r.sourceFilePath,compilerOptions:{target:p.ScriptTarget.Latest},transformers:{after:[Im(e,s,i)]}});if(await t.fs.writeFile(s,c,{outputTargetType:i.type}),r.sourceMapPath){const n=Xe(e.srcDir,r.sourceMapPath),o=Ge(i.collectionDir,n);await t.fs.writeFile(o,a,{outputTargetType:i.type})}})))}))),await Mm(e,t,r,i)}catch(e){re(r.diagnostics,e)}o.finish(`${a} finished`)},Mm=async(e,t,r,n)=>{const i=JSON.stringify(Lm(e,t,r),null,2);return Promise.all(n.map((e=>Rm(t,i,e))))},Rm=async(e,t,r)=>{const n=me(r.collectionDir),i=me(Ge(n,x));await e.fs.writeFile(i,t)},Lm=(e,t,r)=>{const n={entries:r.moduleFiles.filter((e=>!e.isCollectionDependency&&e.cmps.length>0)).map((t=>Xe(e.srcDir,t.jsFilePath))),compiler:{name:"@stencil/core",version:dt,typescriptVersion:lt},collections:Bm(t),bundles:e.bundles.map((e=>({components:e.components.slice().sort()})))};if(e.globalScript){const r=t.moduleMap.get(me(e.globalScript));r&&(n.global=Xe(e.srcDir,r.jsFilePath))}return n},Bm=e=>{const t=e.collections.map((e=>({name:e.collectionName,tags:j(e.moduleFiles.map((e=>e.cmps))).map((e=>e.tagName)).sort()})));return U(t,(e=>e.name))},Um=["_http_agent","_http_client","_http_common","_http_incoming","_http_outgoing","_http_server","_stream_duplex","_stream_passthrough","_stream_readable","_stream_transform","_stream_wrap","_stream_writable","_tls_common","_tls_wrap","assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","fs/promises","http","http2","https","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","trace_events","tty","url","util","v8","vm","worker_threads","zlib"];var jm="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Vm(e,t,r){return e(r={path:t,exports:{},require:(e,t)=>(()=>{throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")})()},r.exports),r.exports}const zm="\\.{1,2}(?:\\/|$)",Hm={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:zm,NO_DOT:"(?!\\.)",NO_DOTS:`(?!(?:^|\\/)${zm})`,NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:`(?!${zm})`,QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},Wm={...Hm,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};var Km={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:rt.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return!0===e?Wm:Hm}},Jm=Vm(((e,t)=>{const n="win32"===r.platform,{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:a,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:s}=Km;t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>o.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(s,"\\$1"),t.toPosixSlashes=e=>e.replace(i,"/"),t.removeBackslashes=e=>e.replace(a,(e=>"\\"===e?"":e)),t.supportsLookbehinds=()=>{const e=r.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===n||"\\"===rt.sep,t.escapeLast=(e,r,n)=>{const i=e.lastIndexOf(r,n);return-1===i?e:"\\"===e[i-1]?t.escapeLast(e,r,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let n=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(n=`(?:^(?!${n}).*$)`),n}}));const{CHAR_ASTERISK:Gm,CHAR_AT:$m,CHAR_BACKWARD_SLASH:qm,CHAR_COMMA:Xm,CHAR_DOT:Ym,CHAR_EXCLAMATION_MARK:Qm,CHAR_FORWARD_SLASH:Zm,CHAR_LEFT_CURLY_BRACE:eg,CHAR_LEFT_PARENTHESES:tg,CHAR_LEFT_SQUARE_BRACKET:rg,CHAR_PLUS:ng,CHAR_QUESTION_MARK:ig,CHAR_RIGHT_CURLY_BRACE:ag,CHAR_RIGHT_PARENTHESES:og,CHAR_RIGHT_SQUARE_BRACKET:sg}=Km,cg=e=>e===Zm||e===qm,lg=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};const{MAX_LENGTH:dg,POSIX_REGEX_SOURCE:ug,REGEX_NON_SPECIAL_CHARS:pg,REGEX_SPECIAL_CHARS_BACKREF:_g,REPLACEMENTS:fg}=Km,mg=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>Jm.escapeRegex(e))).join("..")}return r},gg=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,hg=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=fg[e]||e;const r={...t},n="number"==typeof r.maxLength?Math.min(dg,r.maxLength):dg;let i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);const a={type:"bos",value:"",output:r.prepend||""},o=[a],s=r.capture?"":"?:",c=Jm.isWindows(t),l=Km.globChars(c),d=Km.extglobChars(l),{DOT_LITERAL:u,PLUS_LITERAL:p,SLASH_LITERAL:_,ONE_CHAR:f,DOTS_SLASH:m,NO_DOT:g,NO_DOT_SLASH:h,NO_DOTS_SLASH:y,QMARK:v,QMARK_NO_DOT:b,STAR:E,START_ANCHOR:x}=l,D=e=>`(${s}(?:(?!${x}${e.dot?m:u}).)*?)`,S=r.dot?"":g,T=r.dot?v:b;let C=!0===r.bash?D(r):E;r.capture&&(C=`(${C})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);const A={input:e,index:-1,start:0,dot:!0===r.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=Jm.removePrefix(e,A),i=e.length;const k=[],N=[],w=[];let F,P=a;const I=()=>A.index===i-1,O=A.peek=(t=1)=>e[A.index+t],M=A.advance=()=>e[++A.index]||"",R=()=>e.slice(A.index+1),L=(e="",t=0)=>{A.consumed+=e,A.index+=t},B=e=>{A.output+=null!=e.output?e.output:e.value,L(e.value)},U=()=>{let e=1;for(;"!"===O()&&("("!==O(2)||"?"===O(3));)M(),A.start++,e++;return e%2!=0&&(A.negated=!0,A.start++,!0)},j=e=>{A[e]++,w.push(e)},V=e=>{A[e]--,w.pop()},z=e=>{if("globstar"===P.type){const t=A.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||k.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(A.output=A.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=C,A.output+=P.output)}if(k.length&&"paren"!==e.type&&(k[k.length-1].inner+=e.value),(e.value||e.output)&&B(e),P&&"text"===P.type&&"text"===e.type)return P.value+=e.value,P.output=(P.output||"")+e.value,void 0;e.prev=P,o.push(e),P=e},H=(e,t)=>{const n={...d[t],conditions:1,inner:""};n.prev=P,n.parens=A.parens,n.output=A.output;const i=(r.capture?"(":"")+n.open;j("parens"),z({type:e,value:t,output:A.output?"":f}),z({type:"paren",extglob:!0,value:M(),output:i}),k.push(n)},W=e=>{let n,i=e.close+(r.capture?")":"");if("negate"===e.type){let a=C;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(a=D(r)),(a!==C||I()||/^\)+$/.test(R()))&&(i=e.close=`)$))${a}`),e.inner.includes("*")&&(n=R())&&/^\.[^\\/.]+$/.test(n)){const r=hg(n,{...t,fastpaths:!1}).output;i=e.close=`)${r})${a})`}"bos"===e.prev.type&&(A.negatedExtglob=!0)}z({type:"paren",extglob:!0,value:F,output:i}),V("parens")};if(!1!==r.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(_g,((e,t,r,i,a,o)=>"\\"===i?(n=!0,e):"?"===i?t?t+i+(a?v.repeat(a.length):""):0===o?T+(a?v.repeat(a.length):""):v.repeat(r.length):"."===i?u.repeat(r.length):"*"===i?t?t+i+(a?C:""):C:t?e:`\\${e}`));return!0===n&&(i=!0===r.unescape?i.replace(/\\/g,""):i.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),i===e&&!0===r.contains?(A.output=e,A):(A.output=Jm.wrapOutput(i,A,t),A)}for(;!I();){if(F=M(),"\0"===F)continue;if("\\"===F){const e=O();if("/"===e&&!0!==r.bash)continue;if("."===e||";"===e)continue;if(!e){F+="\\",z({type:"text",value:F});continue}const t=/^\\+/.exec(R());let n=0;if(t&&t[0].length>2&&(n=t[0].length,A.index+=n,n%2!=0&&(F+="\\")),!0===r.unescape?F=M():F+=M(),0===A.brackets){z({type:"text",value:F});continue}}if(A.brackets>0&&("]"!==F||"["===P.value||"[^"===P.value)){if(!1!==r.posix&&":"===F){const e=P.value.slice(1);if(e.includes("[")&&(P.posix=!0,e.includes(":"))){const e=P.value.lastIndexOf("["),t=P.value.slice(0,e),r=P.value.slice(e+2),n=ug[r];if(n){P.value=t+n,A.backtrack=!0,M(),a.output||1!==o.indexOf(P)||(a.output=f);continue}}}("["===F&&":"!==O()||"-"===F&&"]"===O())&&(F=`\\${F}`),"]"!==F||"["!==P.value&&"[^"!==P.value||(F=`\\${F}`),!0===r.posix&&"!"===F&&"["===P.value&&(F="^"),P.value+=F,B({value:F});continue}if(1===A.quotes&&'"'!==F){F=Jm.escapeRegex(F),P.value+=F,B({value:F});continue}if('"'===F){A.quotes=1===A.quotes?0:1,!0===r.keepQuotes&&z({type:"text",value:F});continue}if("("===F){j("parens"),z({type:"paren",value:F});continue}if(")"===F){if(0===A.parens&&!0===r.strictBrackets)throw new SyntaxError(gg("opening","("));const e=k[k.length-1];if(e&&A.parens===e.parens+1){W(k.pop());continue}z({type:"paren",value:F,output:A.parens?")":"\\)"}),V("parens");continue}if("["===F){if(!0!==r.nobracket&&R().includes("]"))j("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw new SyntaxError(gg("closing","]"));F=`\\${F}`}z({type:"bracket",value:F});continue}if("]"===F){if(!0===r.nobracket||P&&"bracket"===P.type&&1===P.value.length){z({type:"text",value:F,output:`\\${F}`});continue}if(0===A.brackets){if(!0===r.strictBrackets)throw new SyntaxError(gg("opening","["));z({type:"text",value:F,output:`\\${F}`});continue}V("brackets");const e=P.value.slice(1);if(!0===P.posix||"^"!==e[0]||e.includes("/")||(F=`/${F}`),P.value+=F,B({value:F}),!1===r.literalBrackets||Jm.hasRegexChars(e))continue;const t=Jm.escapeRegex(P.value);if(A.output=A.output.slice(0,-P.value.length),!0===r.literalBrackets){A.output+=t,P.value=t;continue}P.value=`(${s}${t}|${P.value})`,A.output+=P.value;continue}if("{"===F&&!0!==r.nobrace){j("braces");const e={type:"brace",value:F,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};N.push(e),z(e);continue}if("}"===F){const e=N[N.length-1];if(!0===r.nobrace||!e){z({type:"text",value:F,output:F});continue}let t=")";if(!0===e.dots){const e=o.slice(),n=[];for(let t=e.length-1;t>=0&&(o.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=mg(n,r),A.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=A.output.slice(0,e.outputIndex),n=A.tokens.slice(e.tokensIndex);e.value=e.output="\\{",F=t="\\}",A.output=r;for(const e of n)A.output+=e.output||e.value}z({type:"brace",value:F,output:t}),V("braces"),N.pop();continue}if("|"===F){k.length>0&&k[k.length-1].conditions++,z({type:"text",value:F});continue}if(","===F){let e=F;const t=N[N.length-1];t&&"braces"===w[w.length-1]&&(t.comma=!0,e="|"),z({type:"comma",value:F,output:e});continue}if("/"===F){if("dot"===P.type&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",o.pop(),P=a;continue}z({type:"slash",value:F,output:_});continue}if("."===F){if(A.braces>0&&"dot"===P.type){"."===P.value&&(P.output=u);const e=N[N.length-1];P.type="dots",P.output+=F,P.value+=F,e.dots=!0;continue}if(A.braces+A.parens===0&&"bos"!==P.type&&"slash"!==P.type){z({type:"text",value:F,output:u});continue}z({type:"dot",value:F,output:u});continue}if("?"===F){if((!P||"("!==P.value)&&!0!==r.noextglob&&"("===O()&&"?"!==O(2)){H("qmark",F);continue}if(P&&"paren"===P.type){const e=O();let t=F;if("<"===e&&!Jm.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===P.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(R()))&&(t=`\\${F}`),z({type:"text",value:F,output:t});continue}if(!0!==r.dot&&("slash"===P.type||"bos"===P.type)){z({type:"qmark",value:F,output:b});continue}z({type:"qmark",value:F,output:v});continue}if("!"===F){if(!0!==r.noextglob&&"("===O()&&("?"!==O(2)||!/[!=<:]/.test(O(3)))){H("negate",F);continue}if(!0!==r.nonegate&&0===A.index){U();continue}}if("+"===F){if(!0!==r.noextglob&&"("===O()&&"?"!==O(2)){H("plus",F);continue}if(P&&"("===P.value||!1===r.regex){z({type:"plus",value:F,output:p});continue}if(P&&("bracket"===P.type||"paren"===P.type||"brace"===P.type)||A.parens>0){z({type:"plus",value:F});continue}z({type:"plus",value:p});continue}if("@"===F){if(!0!==r.noextglob&&"("===O()&&"?"!==O(2)){z({type:"at",extglob:!0,value:F,output:""});continue}z({type:"text",value:F});continue}if("*"!==F){"$"!==F&&"^"!==F||(F=`\\${F}`);const e=pg.exec(R());e&&(F+=e[0],A.index+=e[0].length),z({type:"text",value:F});continue}if(P&&("globstar"===P.type||!0===P.star)){P.type="star",P.star=!0,P.value+=F,P.output=C,A.backtrack=!0,A.globstar=!0,L(F);continue}let t=R();if(!0!==r.noextglob&&/^\([^?]/.test(t)){H("star",F);continue}if("star"===P.type){if(!0===r.noglobstar){L(F);continue}const n=P.prev,i=n.prev,a="slash"===n.type||"bos"===n.type,o=i&&("star"===i.type||"globstar"===i.type);if(!0===r.bash&&(!a||t[0]&&"/"!==t[0])){z({type:"star",value:F,output:""});continue}const s=A.braces>0&&("comma"===n.type||"brace"===n.type),c=k.length&&("pipe"===n.type||"paren"===n.type);if(!a&&"paren"!==n.type&&!s&&!c){z({type:"star",value:F,output:""});continue}for(;"/**"===t.slice(0,3);){const r=e[A.index+4];if(r&&"/"!==r)break;t=t.slice(3),L("/**",3)}if("bos"===n.type&&I()){P.type="globstar",P.value+=F,P.output=D(r),A.output=P.output,A.globstar=!0,L(F);continue}if("slash"===n.type&&"bos"!==n.prev.type&&!o&&I()){A.output=A.output.slice(0,-(n.output+P.output).length),n.output=`(?:${n.output}`,P.type="globstar",P.output=D(r)+(r.strictSlashes?")":"|$)"),P.value+=F,A.globstar=!0,A.output+=n.output+P.output,L(F);continue}if("slash"===n.type&&"bos"!==n.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";A.output=A.output.slice(0,-(n.output+P.output).length),n.output=`(?:${n.output}`,P.type="globstar",P.output=`${D(r)}${_}|${_}${e})`,P.value+=F,A.output+=n.output+P.output,A.globstar=!0,L(F+M()),z({type:"slash",value:"/",output:""});continue}if("bos"===n.type&&"/"===t[0]){P.type="globstar",P.value+=F,P.output=`(?:^|${_}|${D(r)}${_})`,A.output=P.output,A.globstar=!0,L(F+M()),z({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-P.output.length),P.type="globstar",P.output=D(r),P.value+=F,A.output+=P.output,A.globstar=!0,L(F);continue}const n={type:"star",value:F,output:C};!0!==r.bash?!P||"bracket"!==P.type&&"paren"!==P.type||!0!==r.regex?(A.index!==A.start&&"slash"!==P.type&&"dot"!==P.type||("dot"===P.type?(A.output+=h,P.output+=h):!0===r.dot?(A.output+=y,P.output+=y):(A.output+=S,P.output+=S),"*"!==O()&&(A.output+=f,P.output+=f)),z(n)):(n.output=F,z(n)):(n.output=".*?","bos"!==P.type&&"slash"!==P.type||(n.output=S+n.output),z(n))}for(;A.brackets>0;){if(!0===r.strictBrackets)throw new SyntaxError(gg("closing","]"));A.output=Jm.escapeLast(A.output,"["),V("brackets")}for(;A.parens>0;){if(!0===r.strictBrackets)throw new SyntaxError(gg("closing",")"));A.output=Jm.escapeLast(A.output,"("),V("parens")}for(;A.braces>0;){if(!0===r.strictBrackets)throw new SyntaxError(gg("closing","}"));A.output=Jm.escapeLast(A.output,"{"),V("braces")}if(!0===r.strictSlashes||"star"!==P.type&&"bracket"!==P.type||z({type:"maybe_slash",value:"",output:`${_}?`}),!0===A.backtrack){A.output="";for(const e of A.tokens)A.output+=null!=e.output?e.output:e.value,e.suffix&&(A.output+=e.suffix)}return A};hg.fastpaths=(e,t)=>{const r={...t},n="number"==typeof r.maxLength?Math.min(dg,r.maxLength):dg,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=fg[e]||e;const a=Jm.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:s,ONE_CHAR:c,DOTS_SLASH:l,NO_DOT:d,NO_DOTS:u,NO_DOTS_SLASH:p,STAR:_,START_ANCHOR:f}=Km.globChars(a),m=r.dot?u:d,g=r.dot?p:d,h=r.capture?"":"?:";let y=!0===r.bash?".*?":_;r.capture&&(y=`(${y})`);const v=e=>!0===e.noglobstar?y:`(${h}(?:(?!${f}${e.dot?l:o}).)*?)`,b=e=>{switch(e){case"*":return`${m}${c}${y}`;case".*":return`${o}${c}${y}`;case"*.*":return`${m}${y}${o}${c}${y}`;case"*/*":return`${m}${y}${s}${c}${g}${y}`;case"**":return m+v(r);case"**/*":return`(?:${m}${v(r)}${s})?${g}${c}${y}`;case"**/*.*":return`(?:${m}${v(r)}${s})?${g}${y}${o}${c}${y}`;case"**/.*":return`(?:${m}${v(r)}${s})?${o}${c}${y}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=b(t[1]);if(!r)return;return r+o+t[2]}}},E=Jm.removePrefix(e,{negated:!1,prefix:""});let x=b(E);return x&&!0!==r.strictSlashes&&(x+=`${s}?`),x};var yg=hg;const vg=(e,t,r=!1)=>{if(Array.isArray(e)){const n=e.map((e=>vg(e,t,r)));return e=>{for(const t of n){const r=t(e);if(r)return r}return!1}}const n=(i=e)&&"object"==typeof i&&!Array.isArray(i)&&e.tokens&&e.input;var i;if(""===e||"string"!=typeof e&&!n)throw new TypeError("Expected pattern to be a non-empty string");const a=t||{},o=Jm.isWindows(t),s=n?vg.compileRe(e,t):vg.makeRe(e,t,!1,!0),c=s.state;delete s.state;let l=()=>!1;if(a.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};l=vg(a.ignore,e,r)}const d=(r,n=!1)=>{const{isMatch:i,match:d,output:u}=vg.test(r,s,t,{glob:e,posix:o}),p={glob:e,state:c,regex:s,posix:o,input:r,output:u,match:d,isMatch:i};return"function"==typeof a.onResult&&a.onResult(p),!1===i?(p.isMatch=!1,!!n&&p):l(r)?("function"==typeof a.onIgnore&&a.onIgnore(p),p.isMatch=!1,!!n&&p):("function"==typeof a.onMatch&&a.onMatch(p),!n||p)};return r&&(d.state=c),d};vg.test=(e,t,r,{glob:n,posix:i}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const a=r||{},o=a.format||(i?Jm.toPosixSlashes:null);let s=e===n,c=s&&o?o(e):e;return!1===s&&(c=o?o(e):e,s=c===n),!1!==s&&!0!==a.capture||(s=!0===a.matchBase||!0===a.basename?vg.matchBase(e,t,r,i):t.exec(c)),{isMatch:Boolean(s),match:s,output:c}},vg.matchBase=(e,t,r,n=Jm.isWindows(r))=>(t instanceof RegExp?t:vg.makeRe(t,r)).test(rt.basename(e)),vg.isMatch=(e,t,r)=>vg(t,r)(e),vg.parse=(e,t)=>Array.isArray(e)?e.map((e=>vg.parse(e,t))):yg(e,{...t,fastpaths:!1}),vg.scan=(e,t)=>((e,t)=>{const r=t||{},n=e.length-1,i=!0===r.parts||!0===r.scanToEnd,a=[],o=[],s=[];let c,l,d=e,u=-1,p=0,_=0,f=!1,m=!1,g=!1,h=!1,y=!1,v=!1,b=!1,E=!1,x=!1,D=!1,S=0,T={value:"",depth:0,isGlob:!1};const C=()=>u>=n,A=()=>(c=l,d.charCodeAt(++u));for(;u<n;){let e;if(l=A(),l!==qm){if(!0===v||l===eg){for(S++;!0!==C()&&(l=A());)if(l!==qm)if(l!==eg){if(!0!==v&&l===Ym&&(l=A())===Ym){if(f=T.isBrace=!0,g=T.isGlob=!0,D=!0,!0===i)continue;break}if(!0!==v&&l===Xm){if(f=T.isBrace=!0,g=T.isGlob=!0,D=!0,!0===i)continue;break}if(l===ag&&(S--,0===S)){v=!1,f=T.isBrace=!0,D=!0;break}}else S++;else b=T.backslashes=!0,A();if(!0===i)continue;break}if(l!==Zm){if(!0!==r.noext&&1==(l===ng||l===$m||l===Gm||l===ig||l===Qm)&&d.charCodeAt(u+1)===tg){if(g=T.isGlob=!0,h=T.isExtglob=!0,D=!0,l===Qm&&u===p&&(x=!0),!0===i){for(;!0!==C()&&(l=A());)if(l!==qm){if(l===og){g=T.isGlob=!0,D=!0;break}}else b=T.backslashes=!0,l=A();continue}break}if(l===Gm){if(c===Gm&&(y=T.isGlobstar=!0),g=T.isGlob=!0,D=!0,!0===i)continue;break}if(l===ig){if(g=T.isGlob=!0,D=!0,!0===i)continue;break}if(l===rg){for(;!0!==C()&&(e=A());)if(e!==qm){if(e===sg){m=T.isBracket=!0,g=T.isGlob=!0,D=!0;break}}else b=T.backslashes=!0,A();if(!0===i)continue;break}if(!0===r.nonegate||l!==Qm||u!==p){if(!0!==r.noparen&&l===tg){if(g=T.isGlob=!0,!0===i){for(;!0!==C()&&(l=A());)if(l!==tg){if(l===og){D=!0;break}}else b=T.backslashes=!0,l=A();continue}break}if(!0===g){if(D=!0,!0===i)continue;break}}else E=T.negated=!0,p++}else{if(a.push(u),o.push(T),T={value:"",depth:0,isGlob:!1},!0===D)continue;if(c===Ym&&u===p+1){p+=2;continue}_=u+1}}else b=T.backslashes=!0,l=A(),l===eg&&(v=!0)}!0===r.noext&&(h=!1,g=!1);let k=d,N="",w="";p>0&&(N=d.slice(0,p),d=d.slice(p),_-=p),k&&!0===g&&_>0?(k=d.slice(0,_),w=d.slice(_)):!0===g?(k="",w=d):k=d,k&&""!==k&&"/"!==k&&k!==d&&cg(k.charCodeAt(k.length-1))&&(k=k.slice(0,-1)),!0===r.unescape&&(w&&(w=Jm.removeBackslashes(w)),k&&!0===b&&(k=Jm.removeBackslashes(k)));const F={prefix:N,input:e,start:p,base:k,glob:w,isBrace:f,isBracket:m,isGlob:g,isExtglob:h,isGlobstar:y,negated:E,negatedExtglob:x};if(!0===r.tokens&&(F.maxDepth=0,cg(l)||o.push(T),F.tokens=o),!0===r.parts||!0===r.tokens){let t;for(let n=0;n<a.length;n++){const i=t?t+1:p,c=a[n],l=e.slice(i,c);r.tokens&&(0===n&&0!==p?(o[n].isPrefix=!0,o[n].value=N):o[n].value=l,lg(o[n]),F.maxDepth+=o[n].depth),0===n&&""===l||s.push(l),t=c}if(t&&t+1<e.length){const n=e.slice(t+1);s.push(n),r.tokens&&(o[o.length-1].value=n,lg(o[o.length-1]),F.maxDepth+=o[o.length-1].depth)}F.slashes=a,F.parts=s}return F})(e,t),vg.compileRe=(e,t,r=!1,n=!1)=>{if(!0===r)return e.output;const i=t||{},a=i.contains?"":"^",o=i.contains?"":"$";let s=`${a}(?:${e.output})${o}`;e&&!0===e.negated&&(s=`^(?!${s}).*$`);const c=vg.toRegex(s,t);return!0===n&&(c.state=e),c},vg.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(i.output=yg.fastpaths(e,t)),i.output||(i=yg(e,t)),vg.compileRe(i,t,r,n)},vg.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},vg.constants=Km;var bg=vg;function Eg(e,{enter:t,leave:r}){return kg(e,null,t,r)}let xg=!1,Dg=!1,Sg=null;const Tg={skip:()=>xg=!0,remove:()=>Dg=!0,replace:e=>Sg=e};function Cg(e,t,r,n){e&&(null!==r?e[t][r]=n:e[t]=n)}function Ag(e,t,r){e&&(null!==r?e[t].splice(r,1):delete e[t])}function kg(e,t,r,n,i,a){if(e){if(r){const n=xg,o=Dg,s=Sg;xg=!1,Dg=!1,Sg=null,r.call(Tg,e,t,i,a),Sg&&Cg(t,i,a,e=Sg),Dg&&Ag(t,i,a);const c=xg,l=Dg;if(xg=n,Dg=o,Sg=s,c)return e;if(l)return null}for(const t in e){const i=e[t];if("object"==typeof i)if(Array.isArray(i))for(let a=0,o=0;a<i.length;a+=1,o+=1)null!==i[a]&&"string"==typeof i[a].type&&(kg(i[a],e,r,n,t,o)||a--);else null!==i&&"string"==typeof i.type&&kg(i,e,r,n,t,null)}if(n){const r=Sg,o=Dg;Sg=null,Dg=!1,n.call(Tg,e,t,i,a),Sg&&Cg(t,i,a,e=Sg),Dg&&Ag(t,i,a);const s=Dg;if(Sg=r,Dg=o,s)return null}}return e}const Ng={ArrayPattern(e,t){for(const r of t.elements)r&&Ng[r.type](e,r)},AssignmentPattern(e,t){Ng[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(const r of t.properties)"RestElement"===r.type?Ng.RestElement(e,r):Ng[r.value.type](e,r.value)},RestElement(e,t){Ng[t.argument.type](e,t.argument)}},wg=e=>{const t=[];return Ng[e.type](t,e),t},Fg={const:!0,let:!0};class Pg{constructor(e={}){this.parent=e.parent,this.isBlockScope=!!e.block,this.declarations=Object.create(null),e.params&&e.params.forEach((e=>{wg(e).forEach((e=>{this.declarations[e]=!0}))}))}addDeclaration(e,t,r){!t&&this.isBlockScope?this.parent.addDeclaration(e,t,r):e.id&&wg(e.id).forEach((e=>{this.declarations[e]=!0}))}contains(e){return this.declarations[e]||!!this.parent&&this.parent.contains(e)}}function Ig(e){return t=e,Array.isArray(t)?e:null==e?[]:[e];var t}const Og=new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "));Og.add("");const Mg=e=>{let t=e.replace(/-(\w)/g,((e,t)=>t.toUpperCase())).replace(/[^$_a-zA-Z0-9]/g,"_");return(/\d/.test(t[0])||Og.has(t))&&(t=`_${t}`),t||"_"};class Rg extends class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,r,n){e&&(null!==r?e[t][r]=n:e[t]=n)}remove(e,t,r){e&&(null!==r?e[t].splice(r,1):delete e[t])}}{constructor(e,t){super(),this.enter=e,this.leave=t}visit(e,t,r,n){if(e){if(this.enter){const i=this.should_skip,a=this.should_remove,o=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,r,n),this.replacement&&(e=this.replacement,this.replace(t,r,n,e)),this.should_remove&&this.remove(t,r,n);const s=this.should_skip,c=this.should_remove;if(this.should_skip=i,this.should_remove=a,this.replacement=o,s)return e;if(c)return null}for(const t in e){const r=e[t];if("object"==typeof r)if(Array.isArray(r))for(let n=0;n<r.length;n+=1)null!==r[n]&&"string"==typeof r[n].type&&(this.visit(r[n],e,t,n)||n--);else null!==r&&"string"==typeof r.type&&this.visit(r,e,t,null)}if(this.leave){const i=this.replacement,a=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,r,n),this.replacement&&(e=this.replacement,this.replace(t,r,n,e)),this.should_remove&&this.remove(t,r,n);const o=this.should_remove;if(this.replacement=i,this.should_remove=a,o)return null}}return e}}function Lg(e,{enter:t,leave:r}){return new Rg(t,r).visit(e,null)}function Bg(e){for(var t=0,r=0,n=0,i=0,a="",o=0;o<e.length;o++){var s=e[o];if(o>0&&(a+=";"),0!==s.length){for(var c=0,l=[],d=0,u=s;d<u.length;d++){var p=u[d],_=Ug(p[0]-c);c=p[0],p.length>1&&(_+=Ug(p[1]-t)+Ug(p[2]-r)+Ug(p[3]-n),t=p[1],r=p[2],n=p[3]),5===p.length&&(_+=Ug(p[4]-i),i=p[4]),l.push(_)}a+=l.join(",")}}return a}function Ug(e){var t="";e=e<0?-e<<1|1:e<<1;do{var r=31&e;(e>>>=5)>0&&(r|=32),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[r]}while(e>0);return t}var jg=function e(t){this.bits=t instanceof e?t.bits.slice():[]};jg.prototype.add=function(e){this.bits[e>>5]|=1<<(31&e)},jg.prototype.has=function(e){return!!(this.bits[e>>5]&1<<(31&e))};var Vg=function(e,t,r){this.start=e,this.end=t,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};Vg.prototype.appendLeft=function(e){this.outro+=e},Vg.prototype.appendRight=function(e){this.intro=this.intro+e},Vg.prototype.clone=function(){var e=new Vg(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},Vg.prototype.contains=function(e){return this.start<e&&e<this.end},Vg.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next},Vg.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous},Vg.prototype.edit=function(e,t,r){return this.content=e,r||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this},Vg.prototype.prependLeft=function(e){this.outro=e+this.outro},Vg.prototype.prependRight=function(e){this.intro=e+this.intro},Vg.prototype.split=function(e){var t=e-this.start,r=this.original.slice(0,t),n=this.original.slice(t);this.original=r;var i=new Vg(e,this.end,n);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},Vg.prototype.toString=function(){return this.intro+this.content+this.outro},Vg.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)},Vg.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)};var zg=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?zg=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof t&&(zg=e=>t.from(e,"utf-8").toString("base64"));var Hg=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Bg(e.mappings)};function Wg(e){var t=e.split("\n"),r=t.filter((e=>/^\t+/.test(e))),n=t.filter((e=>/^ {2,}/.test(e)));if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";var i=n.reduce(((e,t)=>{var r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),1/0);return new Array(i+1).join(" ")}function Kg(e,t){var r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length)for(var i=r.length;i--;)r[i]="..";return r.concat(n).join("/")}Hg.prototype.toString=function(){return JSON.stringify(this)},Hg.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+zg(this.toString())};var Jg=Object.prototype.toString;function Gg(e){for(var t=e.split("\n"),r=[],n=0,i=0;n<t.length;n++)r.push(i),i+=t[n].length+1;return e=>{for(var t=0,n=r.length;t<n;){var i=t+n>>1;e<r[i]?n=i:t=i+1}var a=t-1;return{line:a,column:e-r[a]}}}var $g=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};$g.prototype.addEdit=function(e,t,r,n){if(t.length){var i=[this.generatedCodeColumn,e,r.line,r.column];n>=0&&i.push(n),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null},$g.prototype.addUneditedChunk=function(e,t,r,n,i){for(var a=t.start,o=!0;a<t.end;)(this.hires||o||i.has(a))&&this.rawSegments.push([this.generatedCodeColumn,e,n.line,n.column]),"\n"===r[a]?(n.line+=1,n.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(n.column+=1,this.generatedCodeColumn+=1,o=!1),a+=1;this.pending=null},$g.prototype.advance=function(e){if(e){var t=e.split("\n");if(t.length>1){for(var r=0;r<t.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var qg="\n",Xg={insertLeft:!1,insertRight:!1,storeName:!1},Yg=function(e,t){void 0===t&&(t={});var r=new Vg(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new jg},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:Wg(e)}}),this.byStart[0]=r,this.byEnd[e.length]=r};function Qg(e,t){if("MemberExpression"===e.type)return!e.computed&&Qg(e.object,e);if("Identifier"===e.type){if(!t)return!0;switch(t.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return t.computed;case"FieldDefinition":case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}return!1}Yg.prototype.addSourcemapLocation=function(e){this.sourcemapLocations.add(e)},Yg.prototype.append=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},Yg.prototype.appendLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.appendLeft(t):this.intro+=t,this},Yg.prototype.appendRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.appendRight(t):this.outro+=t,this},Yg.prototype.clone=function(){for(var e=new Yg(this.original,{filename:this.filename}),t=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[r.start]=r,e.byEnd[r.end]=r;var n=t.next,i=n&&n.clone();i&&(r.next=i,i.previous=r,r=i),t=n}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new jg(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e},Yg.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var r=Object.keys(this.storedNames),n=new $g(e.hires),i=Gg(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext((e=>{var a=i(e.start);e.intro.length&&n.advance(e.intro),e.edited?n.addEdit(0,e.content,a,e.storeName?r.indexOf(e.original):-1):n.addUneditedChunk(0,e,t.original,a,t.sourcemapLocations),e.outro.length&&n.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?Kg(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:r,mappings:n.raw}},Yg.prototype.generateMap=function(e){return new Hg(this.generateDecodedMap(e))},Yg.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},Yg.prototype.indent=function(e,t){var r,n=/^[^\r\n]/gm;if(r=e,"[object Object]"===Jg.call(r)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var i={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((e=>{for(var t=e[0];t<e[1];t+=1)i[t]=!0}));var a=!1!==t.indentStart,o=t=>a?""+e+t:(a=!0,t);this.intro=this.intro.replace(n,o);for(var s=0,c=this.firstChunk;c;){var l=c.end;if(c.edited)i[s]||(c.content=c.content.replace(n,o),c.content.length&&(a="\n"===c.content[c.content.length-1]));else for(s=c.start;s<l;){if(!i[s]){var d=this.original[s];"\n"===d?a=!0:"\r"!==d&&a&&(a=!1,s===c.start?c.prependRight(e):(this._splitChunk(c,s),(c=c.next).prependRight(e)))}s+=1}s=c.end,c=c.next}return this.outro=this.outro.replace(n,o),this},Yg.prototype.insert=()=>{throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},Yg.prototype.insertLeft=function(e,t){return Xg.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Xg.insertLeft=!0),this.appendLeft(e,t)},Yg.prototype.insertRight=function(e,t){return Xg.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Xg.insertRight=!0),this.prependRight(e,t)},Yg.prototype.move=function(e,t,r){if(r>=e&&r<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(r);var n=this.byStart[e],i=this.byEnd[t],a=n.previous,o=i.next,s=this.byStart[r];if(!s&&i===this.lastChunk)return this;var c=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),c&&(c.next=n),s&&(s.previous=i),n.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=n.previous,this.lastChunk.next=null),n.previous=c,i.next=s||null,c||(this.firstChunk=n),s||(this.lastChunk=i),this},Yg.prototype.overwrite=function(e,t,r,n){if("string"!=typeof r)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===n&&(Xg.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Xg.storeName=!0),n={storeName:!0});var i=void 0!==n&&n.storeName,a=void 0!==n&&n.contentOnly;if(i){var o=this.original.slice(e,t);Object.defineProperty(this.storedNames,o,{writable:!0,value:!0,enumerable:!0})}var s=this.byStart[e],c=this.byEnd[t];if(s){for(var l=s;l!==c;){if(l.next!==this.byStart[l.end])throw new Error("Cannot overwrite across a split point");(l=l.next).edit("",!1)}s.edit(r,i,a)}else{var d=new Vg(e,t,"").edit(r,i);c.next=d,d.previous=c}return this},Yg.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},Yg.prototype.prependLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.prependLeft(t):this.intro=t+this.intro,this},Yg.prototype.prependRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.prependRight(t):this.outro=t+this.outro,this},Yg.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var r=this.byStart[e];r;)r.intro="",r.outro="",r.edit(""),r=t>r.end?this.byStart[r.end]:null;return this},Yg.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},Yg.prototype.lastLine=function(){var e=this.outro.lastIndexOf(qg);if(-1!==e)return this.outro.substr(e+1);var t=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(-1!==(e=r.outro.lastIndexOf(qg)))return r.outro.substr(e+1)+t;t=r.outro+t}if(r.content.length>0){if(-1!==(e=r.content.lastIndexOf(qg)))return r.content.substr(e+1)+t;t=r.content+t}if(r.intro.length>0){if(-1!==(e=r.intro.lastIndexOf(qg)))return r.intro.substr(e+1)+t;t=r.intro+t}}while(r=r.previous);return-1!==(e=this.intro.lastIndexOf(qg))?this.intro.substr(e+1)+t:this.intro+t},Yg.prototype.slice=function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var r="",n=this.firstChunk;n&&(n.start>e||n.end<=e);){if(n.start<t&&n.end>=t)return r;n=n.next}if(n&&n.edited&&n.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=n;n;){!n.intro||i===n&&n.start!==e||(r+=n.intro);var a=n.start<t&&n.end>=t;if(a&&n.edited&&n.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===n?e-n.start:0,s=a?n.content.length+t-n.end:n.content.length;if(r+=n.content.slice(o,s),!n.outro||a&&n.end!==t||(r+=n.outro),a)break;n=n.next}return r},Yg.prototype.snip=function(e,t){var r=this.clone();return r.remove(0,e),r.remove(t,r.original.length),r},Yg.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,r=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=r?this.byStart[t.end]:this.byEnd[t.start]}},Yg.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var r=Gg(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+r.line+":"+r.column+' – "'+e.original+'")')}var n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0},Yg.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},Yg.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},Yg.prototype.length=function(){var e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t},Yg.prototype.trimLines=function(){return this.trim("[\\r\\n]")},Yg.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},Yg.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var r=this.lastChunk;do{var n=r.end,i=r.trimEnd(t);if(r.end!==n&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.previous}while(r);return!1},Yg.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},Yg.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var r=this.firstChunk;do{var n=r.end,i=r.trimStart(t);if(r.end!==n&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.next}while(r);return!1},Yg.prototype.trimStart=function(e){return this.trimStartAborted(e),this};var Zg="win32"===r.platform;if(Zg)var eh=/(.*?)(?:[\/\\]+|$)/g;else eh=/(.*?)(?:[\/]+|$)/g;if(Zg)var th=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else th=/^[\/]*/;var rh=ch;ch.realpath=ch,ch.sync=lh,ch.realpathSync=lh,ch.monkeypatch=()=>{St.realpath=ch,St.realpathSync=lh},ch.unmonkeypatch=()=>{St.realpath=nh,St.realpathSync=ih};var nh=St.realpath,ih=St.realpathSync,ah=r.version,oh=/^v[0-5]\./.test(ah);function sh(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function ch(e,t,n){if(oh)return nh(e,t,n);"function"==typeof t&&(n=t,t=null),nh(e,t,((i,a)=>{sh(i)?((e,t,n)=>{if("function"!=typeof n&&(n=(e=>"function"==typeof e?e:e=>{if(e){if(r.throwDeprecation)throw e;if(!r.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);r.traceDeprecation?console.trace(t):console.error(t)}}})(t),t=null),e=rt.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return r.nextTick(n.bind(null,null,t[e]));var i,a,o,s,c=e,l={},d={};function u(){var t=th.exec(e);i=t[0].length,a=t[0],o=t[0],s="",Zg&&!d[o]?St.lstat(o,(e=>{if(e)return n(e);d[o]=!0,p()})):r.nextTick(p)}function p(){if(i>=e.length)return t&&(t[c]=e),n(null,e);eh.lastIndex=i;var l=eh.exec(e);return s=a,a+=l[0],o=s+l[1],i=eh.lastIndex,d[o]||t&&t[o]===o?r.nextTick(p):t&&Object.prototype.hasOwnProperty.call(t,o)?m(t[o]):St.lstat(o,_)}function _(e,i){if(e)return n(e);if(!i.isSymbolicLink())return d[o]=!0,t&&(t[o]=o),r.nextTick(p);if(!Zg){var a=i.dev.toString(32)+":"+i.ino.toString(32);if(l.hasOwnProperty(a))return f(null,l[a],o)}St.stat(o,(e=>{if(e)return n(e);St.readlink(o,((e,t)=>{Zg||(l[a]=t),f(e,t)}))}))}function f(e,r,i){if(e)return n(e);var a=rt.resolve(s,r);t&&(t[i]=a),m(a)}function m(t){e=rt.resolve(t,e.slice(i)),u()}u()})(e,t,n):n(i,a)}))}function lh(e,t){if(oh)return ih(e,t);try{return ih(e,t)}catch(r){if(sh(r))return((e,t)=>{if(e=rt.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,n,i,a,o=e,s={},c={};function l(){var t=th.exec(e);r=t[0].length,n=t[0],i=t[0],a="",Zg&&!c[i]&&(St.lstatSync(i),c[i]=!0)}for(l();r<e.length;){eh.lastIndex=r;var d=eh.exec(e);if(a=n,n+=d[0],i=a+d[1],r=eh.lastIndex,!(c[i]||t&&t[i]===i)){var u;if(t&&Object.prototype.hasOwnProperty.call(t,i))u=t[i];else{var p=St.lstatSync(i);if(!p.isSymbolicLink()){c[i]=!0,t&&(t[i]=i);continue}var _=null;if(!Zg){var f=p.dev.toString(32)+":"+p.ino.toString(32);s.hasOwnProperty(f)&&(_=s[f])}null===_&&(St.statSync(i),_=St.readlinkSync(i)),u=rt.resolve(a,_),t&&(t[i]=u),Zg||(s[f]=_)}e=rt.resolve(u,e.slice(r)),l()}}return t&&(t[o]=e),e})(e,t);throw r}}var dh=Array.isArray||(e=>"[object Array]"===Object.prototype.toString.call(e)),uh=ph;function ph(e,t,r){e instanceof RegExp&&(e=_h(e,r)),t instanceof RegExp&&(t=_h(t,r));var n=fh(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function _h(e,t){var r=t.match(e);return r?r[0]:null}function fh(e,t,r){var n,i,a,o,s,c=r.indexOf(e),l=r.indexOf(t,c+1),d=c;if(c>=0&&l>0){for(n=[],a=r.length;d>=0&&!s;)d==c?(n.push(d),c=r.indexOf(e,d+1)):1==n.length?s=[n.pop(),l]:((i=n.pop())<a&&(a=i,o=l),l=r.indexOf(t,d+1)),d=c<l&&c>=0?c:l;n.length&&(s=[a,o])}return s}ph.range=fh;var mh="\0SLASH"+Math.random()+"\0",gh="\0OPEN"+Math.random()+"\0",hh="\0CLOSE"+Math.random()+"\0",yh="\0COMMA"+Math.random()+"\0",vh="\0PERIOD"+Math.random()+"\0";function bh(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Eh(e){return e.split(mh).join("\\").split(gh).join("{").split(hh).join("}").split(yh).join(",").split(vh).join(".")}function xh(e){if(!e)return[""];var t=[],r=uh("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,a=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var s=xh(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function Dh(e){return"{"+e+"}"}function Sh(e){return/^-?0\d/.test(e)}function Th(e,t){return e<=t}function Ch(e,t){return e>=t}function Ah(e,t){var r=[],n=uh("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var i,a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),s=a||o,c=n.body.indexOf(",")>=0;if(!s&&!c)return n.post.match(/,.*\}/)?Ah(e=n.pre+"{"+n.body+hh+n.post):[e];if(s)i=n.body.split(/\.\./);else if(1===(i=xh(n.body)).length&&1===(i=Ah(i[0],!1).map(Dh)).length)return(u=n.post.length?Ah(n.post,!1):[""]).map((e=>n.pre+i[0]+e));var l,d=n.pre,u=n.post.length?Ah(n.post,!1):[""];if(s){var p=bh(i[0]),_=bh(i[1]),f=Math.max(i[0].length,i[1].length),m=3==i.length?Math.abs(bh(i[2])):1,g=Th;_<p&&(m*=-1,g=Ch);var h=i.some(Sh);l=[];for(var y=p;g(y,_);y+=m){var v;if(o)"\\"===(v=String.fromCharCode(y))&&(v="");else if(v=String(y),h){var b=f-v.length;if(b>0){var E=new Array(b+1).join("0");v=y<0?"-"+E+v.slice(1):E+v}}l.push(v)}}else l=((e,t)=>{for(var r=[],n=0;n<e.length;n++){var i=Ah(e[n],!1);dh(i)?r.push.apply(r,i):r.push(i)}return r})(i);for(var x=0;x<l.length;x++)for(var D=0;D<u.length;D++){var S=d+l[x]+u[D];(!t||s||S)&&r.push(S)}return r}var kh=Lh;Lh.Minimatch=Bh;var Nh=(()=>{try{return rt}catch(e){}})()||{sep:"/"};Lh.sep=Nh.sep;var wh=Lh.GLOBSTAR=Bh.GLOBSTAR={},Fh={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Ph="[^/]",Ih="[^/]*?",Oh="().*{}+?[]^$\\!".split("").reduce(((e,t)=>(e[t]=!0,e)),{}),Mh=/\/+/;function Rh(e,t){t=t||{};var r={};return Object.keys(e).forEach((t=>{r[t]=e[t]})),Object.keys(t).forEach((e=>{r[e]=t[e]})),r}function Lh(e,t,r){return jh(t),r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&new Bh(t,r).match(e)}function Bh(e,t){if(!(this instanceof Bh))return new Bh(e,t);jh(e),t||(t={}),e=e.trim(),t.allowWindowsEscape||"/"===Nh.sep||(e=e.split(Nh.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}function Uh(e,t){return t||(t=this instanceof Bh?this.options:{}),e=void 0===e?this.pattern:e,jh(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(r=e)?("{}"===r.substr(0,2)&&(r="\\{\\}"+r.substr(2)),Ah((e=>e.split("\\\\").join(mh).split("\\{").join(gh).split("\\}").join(hh).split("\\,").join(yh).split("\\.").join(vh))(r),!0).map(Eh)):[];var r}Lh.filter=(e,t)=>(t=t||{},(r,n,i)=>Lh(r,e,t)),Lh.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return Lh;var t=Lh,r=(r,n,i)=>t(r,n,Rh(e,i));return(r.Minimatch=(r,n)=>new t.Minimatch(r,Rh(e,n))).defaults=r=>t.defaults(Rh(e,r)).Minimatch,r.filter=(r,n)=>t.filter(r,Rh(e,n)),r.defaults=r=>t.defaults(Rh(e,r)),r.makeRe=(r,n)=>t.makeRe(r,Rh(e,n)),r.braceExpand=(r,n)=>t.braceExpand(r,Rh(e,n)),r.match=(r,n,i)=>t.match(r,n,Rh(e,i)),r},Bh.defaults=e=>Lh.defaults(e).Minimatch,Bh.prototype.debug=()=>{},Bh.prototype.make=function(){var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return this.comment=!0,void 0;if(!e)return this.empty=!0,void 0;this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map((e=>e.split(Mh))),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((e=>-1===e.indexOf(!1))),this.debug(this.pattern,r),this.set=r},Bh.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=0;if(!this.options.nonegate){for(var n=0,i=e.length;n<i&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}},Lh.braceExpand=(e,t)=>Uh(e,t),Bh.prototype.braceExpand=Uh;var jh=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};Bh.prototype.parse=function(e,t){jh(e);var r=this.options;if("**"===e){if(!r.noglobstar)return wh;e="*"}if(""===e)return"";var n,i="",a=!!r.nocase,o=!1,s=[],c=[],l=!1,d=-1,u=-1,p="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",_=this;function f(){if(n){switch(n){case"*":i+=Ih,a=!0;break;case"?":i+=Ph,a=!0;break;default:i+="\\"+n}_.debug("clearStateChar %j %j",n,i),n=!1}}for(var m,g=0,h=e.length;g<h&&(m=e.charAt(g));g++)if(this.debug("%s\t%s %s %j",e,g,i,m),o&&Oh[m])i+="\\"+m,o=!1;else switch(m){case"/":return!1;case"\\":f(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,g,i,m),l){this.debug(" in class"),"!"===m&&g===u+1&&(m="^"),i+=m;continue}_.debug("call clearStateChar %j",n),f(),n=m,r.noext&&f();continue;case"(":if(l){i+="(";continue}if(!n){i+="\\(";continue}s.push({type:n,start:g-1,reStart:i.length,open:Fh[n].open,close:Fh[n].close}),i+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,i),n=!1;continue;case")":if(l||!s.length){i+="\\)";continue}f(),a=!0;var y=s.pop();i+=y.close,"!"===y.type&&c.push(y),y.reEnd=i.length;continue;case"|":if(l||!s.length||o){i+="\\|",o=!1;continue}f(),i+="|";continue;case"[":if(f(),l){i+="\\"+m;continue}l=!0,u=g,d=i.length,i+=m;continue;case"]":if(g===u+1||!l){i+="\\"+m,o=!1;continue}var v=e.substring(u+1,g);try{RegExp("["+v+"]")}catch(e){var b=this.parse(v,Vh);i=i.substr(0,d)+"\\["+b[0]+"\\]",a=a||b[1],l=!1;continue}a=!0,l=!1,i+=m;continue;default:f(),o?o=!1:!Oh[m]||"^"===m&&l||(i+="\\"),i+=m}for(l&&(v=e.substr(u+1),b=this.parse(v,Vh),i=i.substr(0,d)+"\\["+b[0],a=a||b[1]),y=s.pop();y;y=s.pop()){var E=i.slice(y.reStart+y.open.length);this.debug("setting tail",i,y),E=E.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>(r||(r="\\"),t+t+r+"|"))),this.debug("tail=%j\n %s",E,E,y,i);var x="*"===y.type?Ih:"?"===y.type?Ph:"\\"+y.type;a=!0,i=i.slice(0,y.reStart)+x+"\\("+E}f(),o&&(i+="\\\\");var D=!1;switch(i.charAt(0)){case"[":case".":case"(":D=!0}for(var S=c.length-1;S>-1;S--){var T=c[S],C=i.slice(0,T.reStart),A=i.slice(T.reStart,T.reEnd-8),k=i.slice(T.reEnd-8,T.reEnd),N=i.slice(T.reEnd);k+=N;var w=C.split("(").length-1,F=N;for(g=0;g<w;g++)F=F.replace(/\)[+*?]?/,"");var P="";""===(N=F)&&t!==Vh&&(P="$"),i=C+A+N+P+k}if(""!==i&&a&&(i="(?=.)"+i),D&&(i=p+i),t===Vh)return[i,a];if(!a)return(e=>e.replace(/\\(.)/g,"$1"))(e);var I=r.nocase?"i":"";try{var O=new RegExp("^"+i+"$",I)}catch(e){return new RegExp("$.")}return O._glob=e,O._src=i,O};var Vh={};Lh.makeRe=(e,t)=>new Bh(e,t||{}).makeRe(),Bh.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?Ih:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",i=e.map((e=>e.map((e=>e===wh?r:"string"==typeof e?(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(e):e._src)).join("\\/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp},Lh.match=(e,t,r)=>{var n=new Bh(t,r=r||{});return e=e.filter((e=>n.match(e))),n.options.nonull&&!e.length&&e.push(t),e},Bh.prototype.match=function(e,t){if(void 0===t&&(t=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==Nh.sep&&(e=e.split(Nh.sep).join("/")),e=e.split(Mh),this.debug(this.pattern,"split",e);var n,i,a=this.set;for(this.debug(this.pattern,"set",a),i=e.length-1;i>=0&&!(n=e[i]);i--);for(i=0;i<a.length;i++){var o=a[i],s=e;if(r.matchBase&&1===o.length&&(s=[n]),this.matchOne(s,o,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},Bh.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,a=0,o=e.length,s=t.length;i<o&&a<s;i++,a++){this.debug("matchOne loop");var c,l=t[a],d=e[i];if(this.debug(t,l,d),!1===l)return!1;if(l===wh){this.debug("GLOBSTAR",[t,l,d]);var u=i,p=a+1;if(p===s){for(this.debug("** at the end");i<o;i++)if("."===e[i]||".."===e[i]||!n.dot&&"."===e[i].charAt(0))return!1;return!0}for(;u<o;){var _=e[u];if(this.debug("\nglobstar while",e,u,t,p,_),this.matchOne(e.slice(u),t.slice(p),r))return this.debug("globstar found match!",u,o,_),!0;if("."===_||".."===_||!n.dot&&"."===_.charAt(0)){this.debug("dot detected!",e,u,t,p);break}this.debug("globstar swallow a segment, and continue"),u++}return!(!r||(this.debug("\n>>> no match, partial?",e,u,t,p),u!==o))}if("string"==typeof l?(c=d===l,this.debug("string match",l,d,c)):(c=d.match(l),this.debug("pattern match",l,d,c)),!c)return!1}if(i===o&&a===s)return!0;if(i===o)return r;if(a===s)return i===o-1&&""===e[i];throw new Error("wtf?")};var zh,Hh=Vm((e=>{"function"==typeof Object.create?e.exports=(e,t)=>{t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=(e,t)=>{if(t){e.super_=t;var r=()=>{};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),Wh=Vm((e=>{try{var t=Et;if("function"!=typeof t.inherits)throw"";e.exports=t.inherits}catch(t){e.exports=Hh}})),Kh="object"==typeof Reflect?Reflect:null,Jh=Kh&&"function"==typeof Kh.apply?Kh.apply:(e,t,r)=>Function.prototype.apply.call(e,t,r);zh=Kh&&"function"==typeof Kh.ownKeys?Kh.ownKeys:Object.getOwnPropertySymbols?e=>Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)):e=>Object.getOwnPropertyNames(e);var Gh=Number.isNaN||(e=>e!=e);function $h(){$h.init.call(this)}var qh=$h;$h.EventEmitter=$h,$h.prototype._events=void 0,$h.prototype._eventsCount=0,$h.prototype._maxListeners=void 0;var Xh=10;function Yh(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Qh(e){return void 0===e._maxListeners?$h.defaultMaxListeners:e._maxListeners}function Zh(e,t,r,n){var i,a,o,s;if(Yh(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),void 0===o)o=a[t]=r,++e._eventsCount;else if("function"==typeof o?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=Qh(e))>0&&o.length>i&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,s=c,console&&console.warn&&console.warn(s)}return e}function ey(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ty(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=ey.bind(n);return i.listener=r,n.wrapFn=i,i}function ry(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?(e=>{for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t})(i):iy(i,i.length)}function ny(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function iy(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function ay(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){n.once&&e.removeEventListener(t,i),r(a)}))}}Object.defineProperty($h,"defaultMaxListeners",{enumerable:!0,get:()=>Xh,set(e){if("number"!=typeof e||e<0||Gh(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Xh=e}}),$h.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},$h.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||Gh(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},$h.prototype.getMaxListeners=function(){return Qh(this)},$h.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)Jh(s,this,t);else{var c=s.length,l=iy(s,c);for(r=0;r<c;++r)Jh(l[r],this,t)}return!0},$h.prototype.addListener=function(e,t){return Zh(this,e,t,!1)},$h.prototype.on=$h.prototype.addListener,$h.prototype.prependListener=function(e,t){return Zh(this,e,t,!0)},$h.prototype.once=function(e,t){return Yh(t),this.on(e,ty(this,e,t)),this},$h.prototype.prependOnceListener=function(e,t){return Yh(t),this.prependListener(e,ty(this,e,t)),this},$h.prototype.removeListener=function(e,t){var r,n,i,a,o;if(Yh(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():!((e,t)=>{for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()})(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},$h.prototype.off=$h.prototype.removeListener,$h.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n<a.length;++n)"removeListener"!==(i=a[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},$h.prototype.listeners=function(e){return ry(this,e,!0)},$h.prototype.rawListeners=function(e){return ry(this,e,!1)},$h.listenerCount=(e,t)=>"function"==typeof e.listenerCount?e.listenerCount(t):ny.call(e,t),$h.prototype.listenerCount=ny,$h.prototype.eventNames=function(){return this._eventsCount>0?zh(this._events):[]},qh.once=(e,t)=>new Promise(((r,n)=>{function i(r){e.removeListener(t,a),n(r)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}ay(e,t,a,{once:!0}),"error"!==t&&((e,t,r)=>{"function"==typeof e.on&&ay(e,"error",t,{once:!0})})(e,i)}));var oy=Object.getOwnPropertySymbols,sy=Object.prototype.hasOwnProperty,cy=Object.prototype.propertyIsEnumerable;function ly(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var dy=(()=>{try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((e=>t[e])).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((e=>{n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}})()?Object.assign:function(e,t){for(var r,n,i=ly(e),a=1;a<arguments.length;a++){for(var o in r=Object(arguments[a]))sy.call(r,o)&&(i[o]=r[o]);if(oy){n=oy(r);for(var s=0;s<n.length;s++)cy.call(r,n[s])&&(i[n[s]]=r[n[s]])}}return i},uy=e=>e instanceof t,py=Et.inherits,_y=Vm((function(e,t){var n=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(" ")}r=1;for(var i=arguments,a=i.length,s=String(e).replace(n,(e=>{if("%%"===e)return"%";if(r>=a)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}})),c=i[r];r<a;c=i[++r])f(c)||!v(c)?s+=" "+c:s+=" "+o(c);return s},t.deprecate=function(e,n){if(h(jm.process))return function(){return t.deprecate(e,n).apply(this,arguments)};if(!0===r.noDeprecation)return e;var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?console.trace(n):console.error(n),i=!0}return e.apply(this,arguments)}};var i,a={};function o(e,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_(r)?n.showHidden=r:r&&t._extend(n,r),h(n.showHidden)&&(n.showHidden=!1),h(n.depth)&&(n.depth=2),h(n.colors)&&(n.colors=!1),h(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),l(n,e,n.depth)}function s(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function c(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return g(i)||(i=l(e,i,n)),i}var a=((e,t)=>{if(h(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):_(t)?e.stylize(""+t,"boolean"):f(t)?e.stylize("null","null"):void 0})(e,r);if(a)return a;var o=Object.keys(r),s=(e=>{var t={};return e.forEach(((e,r)=>{t[e]=!0})),t})(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),E(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(r);if(0===o.length){if(x(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(b(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return d(r)}var v,D="",S=!1,T=["{","}"];return p(r)&&(S=!0,T=["[","]"]),x(r)&&(D=" [Function"+(r.name?": "+r.name:"")+"]"),y(r)&&(D=" "+RegExp.prototype.toString.call(r)),b(r)&&(D=" "+Date.prototype.toUTCString.call(r)),E(r)&&(D=" "+d(r)),0!==o.length||S&&0!=r.length?n<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),v=S?((e,t,r,n,i)=>{for(var a=[],o=0,s=t.length;o<s;++o)A(t,String(o))?a.push(u(e,t,r,n,String(o),!0)):a.push("");return i.forEach((i=>{i.match(/^\d+$/)||a.push(u(e,t,r,n,i,!0))})),a})(e,r,n,s,o):o.map((t=>u(e,r,n,s,t,S))),e.seen.pop(),((e,t,r)=>e.reduce(((e,t)=>(t.indexOf("\n")>=0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1)),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1])(v,D,T)):T[0]+D+T[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function u(e,t,r,n,i,a){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),A(n,i)||(o="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=f(r)?l(e,c.value,null):l(e,c.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((e=>" "+e)).join("\n").substr(2):"\n"+s.split("\n").map((e=>" "+e)).join("\n")):s=e.stylize("[Circular]","special")),h(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function p(e){return Array.isArray(e)}function _(e){return"boolean"==typeof e}function f(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function h(e){return void 0===e}function y(e){return v(e)&&"[object RegExp]"===D(e)}function v(e){return"object"==typeof e&&null!==e}function b(e){return v(e)&&"[object Date]"===D(e)}function E(e){return v(e)&&("[object Error]"===D(e)||e instanceof Error)}function x(e){return"function"==typeof e}function D(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=e=>{if(h(i)&&(i=""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=()=>{};return a[e]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=_,t.isNull=f,t.isNullOrUndefined=e=>null==e,t.isNumber=m,t.isString=g,t.isSymbol=e=>"symbol"==typeof e,t.isUndefined=h,t.isRegExp=y,t.isObject=v,t.isDate=b,t.isError=E,t.isFunction=x,t.isPrimitive=e=>null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e,t.isBuffer=uy;var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",C(),t.format.apply(t,arguments))},t.inherits=py,t._extend=(e,t)=>{if(!t||!v(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}})),fy=Vm((function(e){function t(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function r(e){return jm.Buffer&&"function"==typeof jm.Buffer.isBuffer?jm.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var n=Object.prototype.hasOwnProperty,i=Array.prototype.slice,a="foo"===(()=>{}).name;function o(e){return Object.prototype.toString.call(e)}function s(e){return!r(e)&&"function"==typeof jm.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var c=e.exports=f,l=/\s*function\s+([^\(\s]*)\s*/;function d(e){if(_y.isFunction(e)){if(a)return e.name;var t=e.toString().match(l);return t&&t[1]}}function u(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function p(e){if(a||!_y.isFunction(e))return _y.inspect(e);var t=d(e);return"[Function"+(t?": "+t:"")+"]"}function _(e,t,r,n,i){throw new c.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}function f(e,t){e||_(e,!0,t,"==",c.ok)}function m(e,n,a,c){if(e===n)return!0;if(r(e)&&r(n))return 0===t(e,n);if(_y.isDate(e)&&_y.isDate(n))return e.getTime()===n.getTime();if(_y.isRegExp(e)&&_y.isRegExp(n))return e.source===n.source&&e.global===n.global&&e.multiline===n.multiline&&e.lastIndex===n.lastIndex&&e.ignoreCase===n.ignoreCase;if(null!==e&&"object"==typeof e||null!==n&&"object"==typeof n){if(s(e)&&s(n)&&o(e)===o(n)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===t(new Uint8Array(e.buffer),new Uint8Array(n.buffer));if(r(e)!==r(n))return!1;var l=(c=c||{actual:[],expected:[]}).actual.indexOf(e);return-1!==l&&l===c.expected.indexOf(n)||(c.actual.push(e),c.expected.push(n),((e,t,r,n)=>{if(null==e||null==t)return!1;if(_y.isPrimitive(e)||_y.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var a=g(e),o=g(t);if(a&&!o||!a&&o)return!1;if(a)return m(e=i.call(e),t=i.call(t),r);var s,c,l=v(e),d=v(t);if(l.length!==d.length)return!1;for(l.sort(),d.sort(),c=l.length-1;c>=0;c--)if(l[c]!==d[c])return!1;for(c=l.length-1;c>=0;c--)if(!m(e[s=l[c]],t[s],r,n))return!1;return!0})(e,n,a,c))}return a?e===n:e==n}function g(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function h(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function y(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=(e=>{var t;try{e()}catch(e){t=e}return t})(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&_(i,r,"Missing expected exception"+n);var a="string"==typeof n,o=!e&&i&&!r;if((!e&&_y.isError(i)&&a&&h(i,r)||o)&&_(i,r,"Got unwanted exception"+n),e&&i&&r&&!h(i,r)||!e&&i)throw i}c.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=(e=>u(p(e.actual),128)+" "+e.operator+" "+u(p(e.expected),128))(this),this.generatedMessage=!0);var t=e.stackStartFunction||_;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=d(t),a=n.indexOf("\n"+i);if(a>=0){var o=n.indexOf("\n",a+1);n=n.substring(o+1)}this.stack=n}}},_y.inherits(c.AssertionError,Error),c.fail=_,c.ok=f,c.equal=(e,t,r)=>{e!=t&&_(e,t,r,"==",c.equal)},c.notEqual=(e,t,r)=>{e==t&&_(e,t,r,"!=",c.notEqual)},c.deepEqual=(e,t,r)=>{m(e,t,!1)||_(e,t,r,"deepEqual",c.deepEqual)},c.deepStrictEqual=(e,t,r)=>{m(e,t,!0)||_(e,t,r,"deepStrictEqual",c.deepStrictEqual)},c.notDeepEqual=(e,t,r)=>{m(e,t,!1)&&_(e,t,r,"notDeepEqual",c.notDeepEqual)},c.notDeepStrictEqual=function e(t,r,n){m(t,r,!0)&&_(t,r,n,"notDeepStrictEqual",e)},c.strictEqual=(e,t,r)=>{e!==t&&_(e,t,r,"===",c.strictEqual)},c.notStrictEqual=(e,t,r)=>{e===t&&_(e,t,r,"!==",c.notStrictEqual)},c.throws=(e,t,r)=>{y(!0,e,t,r)},c.doesNotThrow=(e,t,r)=>{y(!1,e,t,r)},c.ifError=e=>{if(e)throw e},c.strict=dy((function e(t,r){t||_(t,!0,r,"==",e)}),c,{equal:c.strictEqual,deepEqual:c.deepStrictEqual,notEqual:c.notStrictEqual,notDeepEqual:c.notDeepStrictEqual}),c.strict.strict=c.strict;var v=Object.keys||(e=>{var t=[];for(var r in e)n.call(e,r)&&t.push(r);return t})}));function my(e){return"/"===e.charAt(0)}function gy(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}var hy="win32"===r.platform?gy:my,yy=my,vy=gy;hy.posix=yy,hy.win32=vy;var by=Dy,Ey=Ay,xy=ky;function Dy(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Sy=kh.Minimatch;function Ty(e,t){return e.localeCompare(t,"en")}function Cy(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new Sy(r,{dot:!0})}return{matcher:new Sy(e,{dot:!0}),gmatcher:t}}function Ay(e,t){var n=t;return n="/"===t.charAt(0)?rt.join(e.root,t):hy(t)||""===t?t:e.changedCwd?rt.resolve(e.cwd,t):rt.resolve(t),"win32"===r.platform&&(n=n.replace(/\\/g,"/")),n}function ky(e,t){return!!e.ignore.length&&e.ignore.some((e=>e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))))}var Ny={setopts(e,t,n){if(n||(n={}),n.matchBase&&-1===t.indexOf("/")){if(n.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!n.silent,e.pattern=t,e.strict=!1!==n.strict,e.realpath=!!n.realpath,e.realpathCache=n.realpathCache||Object.create(null),e.follow=!!n.follow,e.dot=!!n.dot,e.mark=!!n.mark,e.nodir=!!n.nodir,e.nodir&&(e.mark=!0),e.sync=!!n.sync,e.nounique=!!n.nounique,e.nonull=!!n.nonull,e.nosort=!!n.nosort,e.nocase=!!n.nocase,e.stat=!!n.stat,e.noprocess=!!n.noprocess,e.absolute=!!n.absolute,e.fs=n.fs||St,e.maxLength=n.maxLength||1/0,e.cache=n.cache||Object.create(null),e.statCache=n.statCache||Object.create(null),e.symlinks=n.symlinks||Object.create(null),((e,t)=>{e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(Cy))})(e,n),e.changedCwd=!1;var i=r.cwd();Dy(n,"cwd")?(e.cwd=rt.resolve(n.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=n.root||rt.resolve(e.cwd,"/"),e.root=rt.resolve(e.root),"win32"===r.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=hy(e.cwd)?e.cwd:Ay(e,e.cwd),"win32"===r.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!n.nomount,n.nonegate=!0,n.nocomment=!0,n.allowWindowsEscape=!1,e.minimatch=new Sy(t,n),e.options=e.minimatch.options},ownProp:by,makeAbs:Ey,finish(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var a=e.matches[n];if(a&&0!==Object.keys(a).length){var o=Object.keys(a);t?r.push.apply(r,o):o.forEach((e=>{r[e]=!0}))}else if(e.nonull){var s=e.minimatch.globSet[n];t?r.push(s):r[s]=!0}}if(t||(r=Object.keys(r)),e.nosort||(r=r.sort(Ty)),e.mark){for(n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter((t=>{var r=!/\/$/.test(t),n=e.cache[t]||e.cache[Ay(e,t)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r})))}e.ignore.length&&(r=r.filter((t=>!ky(e,t)))),e.found=r},mark(e,t){var r=Ay(e,t),n=e.cache[r],i=t;if(n){var a="DIR"===n||Array.isArray(n),o="/"===t.slice(-1);if(a&&!o?i+="/":!a&&o&&(i=i.slice(0,-1)),i!==t){var s=Ay(e,i);e.statCache[s]=e.statCache[r],e.cache[s]=e.cache[r]}}return i},isIgnored:xy,childrenIgnored(e,t){return!!e.ignore.length&&e.ignore.some((e=>!(!e.gmatcher||!e.gmatcher.match(t))))}},wy=My;My.GlobSync=Ry;var Fy=Ny.setopts,Py=Ny.ownProp,Iy=Ny.childrenIgnored,Oy=Ny.isIgnored;function My(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new Ry(e,t).found}function Ry(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof Ry))return new Ry(e,t);if(Fy(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}Ry.prototype._finish=function(){if(fy.ok(this instanceof Ry),this.realpath){var e=this;this.matches.forEach(((t,r)=>{var n=e.matches[r]=Object.create(null);for(var i in t)try{i=e._makeAbs(i),n[rh.realpathSync(i,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;n[e._makeAbs(i)]=!0}}))}Ny.finish(this)},Ry.prototype._process=function(e,t,r){fy.ok(this instanceof Ry);for(var n,i=0;"string"==typeof e[i];)i++;switch(i){case e.length:return this._processSimple(e.join("/"),t),void 0;case 0:n=null;break;default:n=e.slice(0,i).join("/")}var a,o=e.slice(i);null===n?a=".":hy(n)||hy(e.map((e=>"string"==typeof e?e:"[*]")).join("/"))?(n&&hy(n)||(n="/"+n),a=n):a=n;var s=this._makeAbs(a);Iy(this,a)||(o[0]===kh.GLOBSTAR?this._processGlobStar(n,a,s,o,t,r):this._processReaddir(n,a,s,o,t,r))},Ry.prototype._processReaddir=function(e,t,r,n,i,a){var o=this._readdir(r,a);if(o){for(var s=n[0],c=!!this.minimatch.negate,l=s._glob,d=this.dot||"."===l.charAt(0),u=[],p=0;p<o.length;p++)("."!==(m=o[p]).charAt(0)||d)&&(c&&!e?!m.match(s):m.match(s))&&u.push(m);var _=u.length;if(0!==_)if(1!==n.length||this.mark||this.stat)for(n.shift(),p=0;p<_;p++){var f;m=u[p],f=e?[e,m]:[m],this._process(f.concat(n),i,a)}else{this.matches[i]||(this.matches[i]=Object.create(null));for(p=0;p<_;p++){var m=u[p];e&&(m="/"!==e.slice(-1)?e+"/"+m:e+m),"/"!==m.charAt(0)||this.nomount||(m=rt.join(this.root,m)),this._emitMatch(i,m)}}}},Ry.prototype._emitMatch=function(e,t){if(!Oy(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},Ry.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=this.fs.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,n||!r||r.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},Ry.prototype._readdir=function(e,t){if(t&&!Py(this.symlinks,e))return this._readdirInGlobStar(e);if(Py(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},Ry.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];n="/"===e?e+n:e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t},Ry.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},Ry.prototype._processGlobStar=function(e,t,r,n,i,a){var o=this._readdir(r,a);if(o){var s=n.slice(1),c=e?[e]:[],l=c.concat(s);this._process(l,i,!1);var d=o.length;if(!this.symlinks[r]||!a)for(var u=0;u<d;u++)if("."!==o[u].charAt(0)||this.dot){var p=c.concat(o[u],s);this._process(p,i,!0);var _=c.concat(o[u],n);this._process(_,i,!0)}}},Ry.prototype._processSimple=function(e,t){var n=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),n){if(e&&hy(e)&&!this.nomount){var i=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=rt.join(this.root,e):(e=rt.resolve(this.root,e),i&&(e+="/"))}"win32"===r.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},Ry.prototype._stat=function(e){var t=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&Py(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var a;try{a=this.fs.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(a&&a.isSymbolicLink())try{i=this.fs.statSync(t)}catch(e){i=a}else i=a}return this.statCache[t]=i,n=!0,i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},Ry.prototype._mark=function(e){return Ny.mark(this,e)},Ry.prototype._makeAbs=function(e){return Ny.makeAbs(this,e)};var Ly=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((e=>{n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((e=>{n[e]=i[e]})),n}},By=Ly(jy),Uy=Ly(Vy);function jy(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Vy(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}jy.proto=jy((function(){Object.defineProperty(Function.prototype,"once",{value(){return jy(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value(){return Vy(this)},configurable:!0})})),By.strict=Uy;var zy=Object.create(null),Hy=Ly(((e,t)=>zy[e]?(zy[e].push(t),null):(zy[e]=[t],(e=>By((function t(){var n=zy[e],i=n.length,a=Wy(arguments);try{for(var o=0;o<i;o++)n[o].apply(null,a)}finally{n.length>i?(n.splice(0,i),r.nextTick((()=>{t.apply(null,a)}))):delete zy[e]}})))(e))));function Wy(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}var Ky=Yy,Jy=qh.EventEmitter,Gy=Ny.setopts,$y=Ny.ownProp,qy=Ny.childrenIgnored,Xy=Ny.isIgnored;function Yy(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return wy(e,t)}return new Zy(e,t,r)}Yy.sync=wy;var Qy=Yy.GlobSync=wy.GlobSync;function Zy(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new Qy(e,t)}if(!(this instanceof Zy))return new Zy(e,t,r);Gy(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=By(r),this.on("error",r),this.on("end",(e=>{r(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return o();for(var a=0;a<n;a++)this._process(this.minimatch.set[a],a,!1,o);function o(){--i._processing,i._processing<=0&&(!1,i._finish())}0}Yy.glob=Yy,Yy.hasMagic=(e,t)=>{var r=((e,t)=>{if(null===t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e})({},t);r.noprocess=!0;var n=new Zy(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var i=0;i<n[0].length;i++)if("string"!=typeof n[0][i])return!0;return!1},Yy.Glob=Zy,Wh(Zy,Jy),Zy.prototype._finish=function(){if(fy(this instanceof Zy),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();Ny.finish(this),this.emit("end",this.found)}},Zy.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--e&&t._finish()}},Zy.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),i=this,a=n.length;if(0===a)return t();var o=this.matches[e]=Object.create(null);n.forEach(((r,n)=>{r=i._makeAbs(r),rh.realpath(r,i.realpathCache,((n,s)=>{n?"stat"===n.syscall?o[r]=!0:i.emit("error",n):o[s]=!0,0==--a&&(i.matches[e]=o,t())}))}))},Zy.prototype._mark=function(e){return Ny.mark(this,e)},Zy.prototype._makeAbs=function(e){return Ny.makeAbs(this,e)},Zy.prototype.abort=function(){this.aborted=!0,this.emit("abort")},Zy.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},Zy.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);for(this._processQueue.length=0,t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},Zy.prototype._process=function(e,t,r,n){if(fy(this instanceof Zy),fy("function"==typeof n),!this.aborted){if(this._processing++,this.paused)return this._processQueue.push([e,t,r,n]),void 0;for(var i,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return this._processSimple(e.join("/"),t,n),void 0;case 0:i=null;break;default:i=e.slice(0,a).join("/")}var o,s=e.slice(a);null===i?o=".":hy(i)||hy(e.map((e=>"string"==typeof e?e:"[*]")).join("/"))?(i&&hy(i)||(i="/"+i),o=i):o=i;var c=this._makeAbs(o);if(qy(this,o))return n();s[0]===kh.GLOBSTAR?this._processGlobStar(i,o,c,s,t,r,n):this._processReaddir(i,o,c,s,t,r,n)}},Zy.prototype._processReaddir=function(e,t,r,n,i,a,o){var s=this;this._readdir(r,a,((c,l)=>s._processReaddir2(e,t,r,n,i,a,l,o)))},Zy.prototype._processReaddir2=function(e,t,r,n,i,a,o,s){if(!o)return s();for(var c=n[0],l=!!this.minimatch.negate,d=c._glob,u=this.dot||"."===d.charAt(0),p=[],_=0;_<o.length;_++)("."!==(m=o[_]).charAt(0)||u)&&(l&&!e?!m.match(c):m.match(c))&&p.push(m);var f=p.length;if(0===f)return s();if(1===n.length&&!this.mark&&!this.stat){for(this.matches[i]||(this.matches[i]=Object.create(null)),_=0;_<f;_++){var m=p[_];e&&(m="/"!==e?e+"/"+m:e+m),"/"!==m.charAt(0)||this.nomount||(m=rt.join(this.root,m)),this._emitMatch(i,m)}return s()}for(n.shift(),_=0;_<f;_++)m=p[_],e&&(m="/"!==e?e+"/"+m:e+m),this._process([m].concat(n),i,a,s);s()},Zy.prototype._emitMatch=function(e,t){if(!this.aborted&&!Xy(this,t)){if(this.paused)return this._emitQueue.push([e,t]),void 0;var r=hy(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}},Zy.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,n=Hy("lstat\0"+e,((n,i)=>{if(n&&"ENOENT"===n.code)return t();var a=i&&i.isSymbolicLink();r.symlinks[e]=a,a||!i||i.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())}));n&&r.fs.lstat(e,n)}},Zy.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=Hy("readdir\0"+e+"\0"+t,r))){if(t&&!$y(this.symlinks,e))return this._readdirInGlobStar(e,r);if($y(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return r();if(Array.isArray(n))return r(null,n)}this.fs.readdir(e,((e,t,r)=>(n,i)=>{n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)})(this,e,r))}},Zy.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}},Zy.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},Zy.prototype._processGlobStar=function(e,t,r,n,i,a,o){var s=this;this._readdir(r,a,((c,l)=>{s._processGlobStar2(e,t,r,n,i,a,l,o)}))},Zy.prototype._processGlobStar2=function(e,t,r,n,i,a,o,s){if(!o)return s();var c=n.slice(1),l=e?[e]:[],d=l.concat(c);this._process(d,i,!1,s);var u=this.symlinks[r],p=o.length;if(u&&a)return s();for(var _=0;_<p;_++)if("."!==o[_].charAt(0)||this.dot){var f=l.concat(o[_],c);this._process(f,i,!0,s);var m=l.concat(o[_],n);this._process(m,i,!0,s)}s()},Zy.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,((i,a)=>{n._processSimple2(e,t,i,a,r)}))},Zy.prototype._processSimple2=function(e,t,n,i,a){if(this.matches[t]||(this.matches[t]=Object.create(null)),!i)return a();if(e&&hy(e)&&!this.nomount){var o=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=rt.join(this.root,e):(e=rt.resolve(this.root,e),o&&(e+="/"))}"win32"===r.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),a()},Zy.prototype._stat=function(e,t){var r=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&$y(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var a=this.statCache[r];if(void 0!==a){if(!1===a)return t(null,a);var o=a.isDirectory()?"DIR":"FILE";return n&&"FILE"===o?t():t(null,o,a)}var s=this,c=Hy("stat\0"+r,((n,i)=>{if(i&&i.isSymbolicLink())return s.fs.stat(r,((n,a)=>{n?s._stat2(e,r,null,i,t):s._stat2(e,r,n,a,t)}));s._stat2(e,r,n,i,t)}));c&&s.fs.lstat(r,c)},Zy.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var a="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var o=!0;return n&&(o=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,a&&"FILE"===o?i():i(null,o,n)};var ev={rollup:"^2.22.0"};const tv="?commonjs-proxy",rv=e=>`\0${e}?commonjs-proxy`,nv=e=>e.slice(1,-tv.length),iv="?commonjs-external",av=e=>`\0${e}?commonjs-external`,ov=(e,t)=>e.startsWith(t)?"/$$rollup_base$$"+e.slice(t.length):e,sv="\0commonjs-dynamic-register:",cv="\0commonjs-dynamic-json:",lv="\0commonjs-dynamic-packages",dv="\0commonjsHelpers.js",uv={"==":e=>gv(e.left,e.right,!1),"!=":e=>mv(uv["=="](e)),"===":e=>gv(e.left,e.right,!0),"!==":e=>mv(uv["==="](e)),"!":e=>fv(e.argument),"&&":e=>_v(e.left)&&_v(e.right),"||":e=>_v(e.left)||_v(e.right)};function pv(e){const t=[];for(;"MemberExpression"===e.type;){if(e.computed)return null;t.unshift(e.property.name),e=e.object}if("Identifier"!==e.type)return null;const{name:r}=e;return t.unshift(r),{name:r,keypath:t.join(".")}}function _v(e){return"Literal"===e.type?!!e.value:"ParenthesizedExpression"===e.type?_v(e.expression):e.operator in uv?uv[e.operator](e):void 0}function fv(e){return mv(_v(e))}function mv(e){return void 0===e?e:!e}function gv(e,t,r){if(e.type===t.type)return"Literal"===e.type?r?e.value===t.value:e.value==t.value:void 0}function hv(e){const t=Mg(He(e,Ke(e)));if("index"!==t)return t;const r=We(e).split(Qe);return Mg(r[r.length-1])}const yv="process location abstract arguments boolean break byte case catch char class const continue debugger default delete do double else enum eval export extends false final finally float for from function goto if implements import in instanceof int interface let long native new null package private protected public return short static super switch synchronized this throw throws transient true try typeof var void volatile while with yield".split(" "),vv={__esModule:!0};yv.forEach((e=>vv[e]=!0));const bv=/^(?:module\.)?exports(?:\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/,Ev=/\b(?:require|module|exports|global)\b/,xv=/\b(?:require|module|exports)\b/,Dv=/^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/;function Sv(e,t,r){let n=1,i=Mg(r);for(;e.contains(i)||t.has(i)||i in vv;)i=`${r}_${n}`,n+=1;return e.declarations[i]=!0,i}function Tv(e,t,r){try{return e(t,{allowReturnOutsideFunction:!0})}catch(e){throw e.message+=` in ${r}`,e}}function Cv(e){return e.replace(/\\/g,"/")}function Av(e,t,r,n,i,a,o,s,c,l,d){const u=d||Tv(e,t,r),p=new Yg(t),_={},f=[];let m=0,g=((e,t="scope")=>{let r=new Pg;return Eg(e,{enter(e,n){const i=e;if(/(Function|Class)Declaration/.test(i.type)&&r.addDeclaration(i,!1,!1),"VariableDeclaration"===i.type){const{kind:e}=i,t=Fg[e],a=n?n.type:"";t&&/ForOfStatement/.test(a)||i.declarations.forEach((e=>{r.addDeclaration(e,t,!0)}))}let a;if(/Function/.test(i.type)){const e=i;a=new Pg({parent:r,block:!1,params:e.params}),"FunctionExpression"===e.type&&e.id&&a.addDeclaration(e,!1,!1)}"BlockStatement"!==i.type||/Function/.test(n.type)||(a=new Pg({parent:r,block:!0})),"CatchClause"===i.type&&(a=new Pg({parent:r,params:i.param?[i.param]:[],block:!0})),a&&(Object.defineProperty(i,t,{value:a,configurable:!0}),r=a)},leave(e){e[t]&&(r=r.parent)}}),r})(u,"scope");const h={module:!1,exports:!1,global:!1,require:!1};let y=0,v=0;const b=new Set,E=Sv(g,b,"commonjsHelpers");let x=/__esModule/.test(t),D=!1;function S(e){return!!e&&"CallExpression"===e.type&&0!==e.arguments.length&&T(e.callee)}function T(e){return!!e&&("Identifier"===e.type&&"require"===e.name?!g.contains("require"):"MemberExpression"===e.type&&"Identifier"===e.object.type&&"module"===e.object.name&&!g.contains("module")&&"Identifier"===e.property.type&&"require"===e.property.name)}function C(e){return!!S(e)&&!(e=>e.arguments.length>1||"Literal"!==e.arguments[0].type&&("TemplateLiteral"!==e.arguments[0].type||e.arguments[0].expressions.length>0))(e)}function A(e){return a(e.arguments[0].value)}function k(e,t){let r=(e=>"Literal"===e.arguments[0].type?e.arguments[0].value:e.arguments[0].quasis[0].value.cooked)(e);const n=r.startsWith(sv);if(n&&(r=r.substr(sv.length)),void 0===_[r]){const e=N(r);if(!t)do{t=`require$$${m}`,m+=1}while(g.contains(t));n&&r.endsWith(".json")&&(r=cv+r),(n||!e||r.endsWith(".json"))&&f.push([r,!n]),_[r]={source:r,name:t,importsDefault:!1,isDynamic:e}}return _[r]}function N(e){if(!/[/\\]/.test(e)){try{const t=Cv(Sr.sync(e,{basedir:We(r)}));if(c.has(t))return!0}catch(e){return!1}return!1}for(const t of["",".js",".json"]){const n=Cv(Ye(We(r),e+t));if(c.has(n))return!0}return!1}const w=new Set;if(Lg(u,{enter(e){"AssignmentExpression"===e.type&&"MemberExpression"!==e.left.type&&wg(e.left).forEach((e=>{w.add(e)}))}}),Lg(u,{enter(e,t){if(o&&(p.addSourcemapLocation(e.start),p.addSourcemapLocation(e.end)),t&&("IfStatement"===t.type||"ConditionalExpression"===t.type)){if(e===t.consequent&&fv(t.test))return this.skip(),void 0;if(e===t.alternate&&_v(t.test))return this.skip(),void 0}if(e._skip)return this.skip(),void 0;if(v+=1,e.scope&&({scope:g}=e),Dv.test(e.type)&&(y+=1),"ReturnStatement"===e.type&&0===y&&(x=!0),"ThisExpression"===e.type&&0===y)return h.global=!0,i||(p.overwrite(e.start,e.end,`${E}.commonjsGlobal`,{storeName:!0}),D=!0),void 0;if("UnaryExpression"===e.type&&"typeof"===e.operator){const t=pv(e.argument);if(!t)return;if(g.contains(t.name))return;"module.exports"!==t.keypath&&"module"!==t.keypath&&"exports"!==t.keypath||p.overwrite(e.start,e.end,"'object'",{storeName:!1})}if("Identifier"===e.type){if(Qg(e,t)&&!g.contains(e.name)){if(e.name in h){if(T(e)){if((e=>!!(e&&e.property&&["resolve","cache","main"].indexOf(e.property.name)>-1))(t))return;if(!s&&C(t))return;s&&S(t)&&p.appendLeft(t.end-1,`,${JSON.stringify("."===We(r)?null:ov(Cv(We(r)),l))}`),p.overwrite(e.start,e.end,`${E}.commonjsRequire`,{storeName:!0}),D=!0}h[e.name]=!0,"global"!==e.name||i||(p.overwrite(e.start,e.end,`${E}.commonjsGlobal`,{storeName:!0}),D=!0),"module"!==e.name&&"exports"!==e.name||(x=!0)}"define"===e.name&&p.overwrite(e.start,e.end,"undefined",{storeName:!0}),b.add(e.name)}return}if("AssignmentExpression"===e.type){if("MemberExpression"!==e.left.type)return;const t=pv(e.left);if(!t)return;if(g.contains(t.name))return;if(!bv.exec(t.keypath)||"exports"===t.keypath)return;return h[t.name]=!0,v>3&&(x=!0),e.left._skip=!0,"module.exports"===t.keypath&&"ObjectExpression"===e.right.type?(e.right.properties.forEach((e=>{if(e.computed||!("key"in e)||"Identifier"!==e.key.type)return;const{name:t}=e.key;t===Mg(t)})),void 0):void 0}const n=((e,t)=>{if("CallExpression"!==e.type)return;const{callee:{object:r,property:n}}=e;if(!r||"Identifier"!==r.type||"Object"!==r.name)return;if(!n||"Identifier"!==n.type||"defineProperty"!==n.name)return;if(3!==e.arguments.length)return;const[i,a]=e.arguments;return"Identifier"===i.type&&"exports"===i.name?a.value:void 0})(e);if(n&&n===Mg(n),"VariableDeclarator"===e.type&&"Identifier"===e.id.type&&C(e.init)&&!A(e.init)){if(g.parent)return;if(w.has(e.id.name))return;const t=k(e.init,e.id.name);t.importsDefault=!0,t.name!==e.id.name||t.isDynamic||(e._shouldRemove=!0)}if(!C(e)||A(e))return;const a=k(e);"ExpressionStatement"===t.type?p.remove(t.start,t.end):(a.importsDefault=!0,(e=>N(e.source)&&(e.source.startsWith(sv)||!e.source.endsWith(".json")))(a)?(p.overwrite(e.start,e.end,`${E}.commonjsRequire(${JSON.stringify(ov(Cv(a.source),l))}, ${JSON.stringify("."===We(r)?null:ov(Cv(We(r)),l))})`),D=!0):p.overwrite(e.start,e.end,a.name)),e.callee._skip=!0},leave(e){if(v-=1,e.scope&&(g=g.parent),Dv.test(e.type)&&(y-=1),"VariableDeclaration"===e.type){let t=!1,r=e.declarations[0].start;for(let n=0;n<e.declarations.length;n+=1){const i=e.declarations[n];i._shouldRemove?p.remove(r,i.end):(t||(p.remove(r,i.start),t=!0),r=i.end)}t||p.remove(e.start,e.end)}}}),!f.length&&!h.module&&!h.exports&&!h.require&&(i||!h.global))return null;n&&(x=!1),D=D||x;const F=`${(D?[`import * as ${E} from '${dv}';`]:[]).concat(f.map((([e])=>`import '${e}';`)),f.filter((([,e])=>e)).map((([e])=>{const{name:t,importsDefault:r}=_[e];return`import ${r?`${t} from `:""}'${e.startsWith("\0")?e:rv(e)}';`}))).join("\n")}\n\n`,P=[];let I="",O="";const M=Sv(g,b,hv(r));if(!n){const e={str:`export { ${M} as __moduleExports };`,name:"__moduleExports"};P.push(e)}const R=[];let L=!1;if(x){const e="module"+(h.exports?", exports":"");I=`var ${M} = ${E}.createCommonjsModule(function (${e}) {\n`,O="\n}",s&&(O+=`, ${JSON.stringify(ov(Cv(We(r)),l))}`),O+=");"}else{const e=[];for(const t of u.body)if("ExpressionStatement"===t.type&&"AssignmentExpression"===t.expression.type){const{left:r}=t.expression,n=pv(r);if(!n)continue;const i=bv.exec(n.keypath);if(!i)continue;if("module.exports"===n.keypath)L=!0,p.overwrite(r.start,r.end,`var ${M}`);else{const[,n]=i,a=Sv(g,b,n);e.push({name:n,deconflicted:a}),p.overwrite(t.start,r.end,`var ${a}`);const o=n===a?`export { ${n} };`:`export { ${a} as ${n} };`;"default"!==n&&P.push({str:o,name:n}),R.push(`${M}.${n} = ${a};`)}}n||L||(O=`\n\nvar ${M} = {\n${e.map((({name:e,deconflicted:t})=>`\t${e}: ${t}`)).join(",\n")}\n};`)}p.trim().prepend(F+I).trim().append(O);const B=t.indexOf("__esModule")>=0?`export default /*@__PURE__*/${E}.getDefaultExportFromCjs(${M});`:`export default ${M};`,U=P.filter((e=>"default"!==e.name||!L)).map((e=>e.str));return p.append(`\n\n${(n?[]:[B]).concat(U).concat(L?R:[]).join("\n")}`),{code:t=p.toString(),map:o?p.generateMap():null,syntheticNamedExports:!n&&"__moduleExports"}}const kv=new Map;function Nv(e,t){const r=kv.get(e);r?r.resolve&&(r.resolve(t),r.resolve=void 0):kv.set(e,{promise:Promise.resolve(t),resolve:void 0})}function wv(e,t){if(!0===t||e.endsWith(".json"))return`export {default} from ${JSON.stringify(e)};`;const r=hv(e),n="auto"===t?`import {getDefaultExportFromNamespaceIfNotNamed} from "${dv}"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(${r});`:"preferred"===t?`import {getDefaultExportFromNamespaceIfPresent} from "${dv}"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfPresent(${r});`:t?`export default ${r};`:`import {getAugmentedNamespace} from "${dv}"; export default /*@__PURE__*/getAugmentedNamespace(${r});`;return`import * as ${r} from ${JSON.stringify(e)}; ${n}`}function Fv(e){return function(t,r){const n=t.endsWith(tv);if(n&&(t=nv(t)),t.startsWith("\0")){if(t.startsWith(dv)||t===lv||t.startsWith(cv))return t;if(!n)return null}return r&&r.endsWith(tv)&&(r=nv(r)),this.resolve(t,r,{skipSelf:!0}).then((i=>(i||(i=((t,r)=>{if("."!==t[0]||!r)return;const n=function(e,t){return t.reduce(((t,r)=>t.concat(((e,t)=>[e+t,`${e}${Qe}index${t}`])(e,r))),[e])}(Ye(We(r),t),e);for(let e=0;e<n.length;e+=1)try{if(Ot(n[e]).isFile())return{id:n[e]}}catch(e){}})(t,r)),n?i?(i.id=(i.external?av:rv)(i.id),i.external=!1,i):{id:av(t),external:!1}:i)))}}function Pv(e={}){const t=e.extensions||[".js"],n=((e,t,r)=>{const n=r&&r.resolve,i=e=>e instanceof RegExp?e:{test(t){const r=((e,t)=>{if(!1===t)return e;const r=Ye(t||"").split(Qe).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return et.join(r,e)})(e,n);return bg(r,{dot:!0})(t)}},a=Ig(e).map(i),o=Ig(t).map(i);return e=>{if("string"!=typeof e)return!1;if(/\0/.test(e))return!1;const t=e.split(Qe).join("/");for(let e=0;e<o.length;++e)if(o[e].test(t))return!1;for(let e=0;e<a.length;++e)if(a[e].test(t))return!0;return!a.length}})(e.include,e.exclude),{ignoreGlobal:i,requireReturnsDefault:a,esmExternals:o}=e,s="function"==typeof a?a:()=>a;let c;const l="function"==typeof o?o:Array.isArray(o)?(c=new Set(o),e=>c.has(e)):()=>o,{dynamicRequireModuleSet:d,dynamicRequireModuleDirPaths:u}=(e=>{const t=new Set;for(const r of!e||Array.isArray(e)?e||[]:[e]){const e=r.startsWith("!"),n=Set.prototype[e?"delete":"add"].bind(t);for(const t of Ky.sync(e?r.substr(1):r))n(Cv(Ye(t)))}const r=Array.from(t.values()).filter((e=>{try{if(Ot(e).isDirectory())return!0}catch(e){}return!1}));return{dynamicRequireModuleSet:t,dynamicRequireModuleDirPaths:r}})(e.dynamicRequireTargets),p=d.size>0,_=p?((e,t)=>{if(t)var r=t.map((e=>rt.resolve(null,e)));else r=null;var n=r.slice(1).reduce(((e,t)=>{if(!t.match(/^([A-Za-z]:)?\/|\\/))throw new Error("relative path without a basedir");for(var r=t.split(/\/+|\\+/),n=0;e[n]===r[n]&&n<Math.min(e.length,r.length);n++);return e.slice(0,n)}),r[0].split(/\/+|\\+/));return n.length>1?n.join("/"):"/"})(0,Array.from(d).concat(r.cwd())):null,f=new Set,m=new Set,g="function"==typeof e.ignore?e.ignore:Array.isArray(e.ignore)?t=>e.ignore.includes(t):()=>!1,h=Fv(t),y=!1!==e.sourceMap;function v(t,r){const{isEsModule:n,hasDefaultExport:a,hasNamedExports:o,ast:s}=((e,t,r)=>{const n=Tv(e,t,r);let i=!1,a=!1,o=!1;for(const e of n.body)if("ExportDefaultDeclaration"===e.type)i=!0,a=!0;else if("ExportNamedDeclaration"===e.type)if(i=!0,e.declaration)o=!0;else for(const t of e.specifiers)"default"===t.exported.name?a=!0:o=!0;else"ExportAllDeclaration"===e.type?(i=!0,e.exported&&"default"===e.exported.name?a=!0:o=!0):"ImportDeclaration"===e.type&&(i=!0);return{isEsModule:i,hasDefaultExport:a,hasNamedExports:o,ast:n}})(this.parse,t,r);if(a&&f.add(r),o&&m.add(r),!d.has(Cv(r))&&(!((e,t)=>(t?xv:Ev).test(e))(t,i)||n&&!e.transformMixedEsModules))return Nv(r,!1),null;const c=Av(this.parse,t,r,n,i||n,g,y,p,d,_,s);return Nv(r,!n&&Boolean(c)),c}return{name:"commonjs",buildStart(){null!=e.namedExports&&this.warn('The namedExports option from "@rollup/plugin-commonjs" is deprecated. Named exports are now handled automatically.');const[t,r]=this.meta.rollupVersion.split(".").map(Number),n=ev.rollup.slice(2),[i,a]=n.split(".").map(Number);(t<i||t===i&&r<a)&&this.error(`Insufficient Rollup version: "@rollup/plugin-commonjs" requires at least rollup@${n} but found rollup@${this.meta.rollupVersion}.`)},resolveId:h,load(e){if(e===dv)return(e=>"\nexport var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport function createCommonjsModule(fn, basedir, module) {\n\treturn module = {\n\t\tpath: basedir,\n\t\texports: {},\n\t\trequire: function (path, base) {\n\t\t\treturn commonjsRequire(path, (base === undefined || base === null) ? module.path : base);\n\t\t}\n\t}, fn(module, module.exports), module.exports;\n}\n\nexport function getDefaultExportFromNamespaceIfPresent (n) {\n\treturn n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;\n}\n\nexport function getDefaultExportFromNamespaceIfNotNamed (n) {\n\treturn n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;\n}\n\nexport function getAugmentedNamespace(n) {\n\tif (n.__esModule) return n;\n\tvar a = Object.defineProperty({}, '__esModule', {value: true});\n\tObject.keys(n).forEach(function (k) {\n\t\tvar d = Object.getOwnPropertyDescriptor(n, k);\n\t\tObject.defineProperty(a, k, d.get ? d : {\n\t\t\tenumerable: true,\n\t\t\tget: function () {\n\t\t\t\treturn n[k];\n\t\t\t}\n\t\t});\n\t});\n\treturn a;\n}\n"+(e?"\nexport function commonjsRegister (path, loader) {\n\tDYNAMIC_REQUIRE_LOADERS[path] = loader;\n}\n\nconst DYNAMIC_REQUIRE_LOADERS = Object.create(null);\nconst DYNAMIC_REQUIRE_CACHE = Object.create(null);\nconst DEFAULT_PARENT_MODULE = {\n\tid: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []\n};\nconst CHECKED_EXTENSIONS = ['', '.js', '.json'];\n\nfunction normalize (path) {\n\tpath = path.replace(/\\\\/g, '/');\n\tconst parts = path.split('/');\n\tconst slashed = parts[0] === '';\n\tfor (let i = 1; i < parts.length; i++) {\n\t\tif (parts[i] === '.' || parts[i] === '') {\n\t\t\tparts.splice(i--, 1);\n\t\t}\n\t}\n\tfor (let i = 1; i < parts.length; i++) {\n\t\tif (parts[i] !== '..') continue;\n\t\tif (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {\n\t\t\tparts.splice(--i, 2);\n\t\t\ti--;\n\t\t}\n\t}\n\tpath = parts.join('/');\n\tif (slashed && path[0] !== '/')\n\t path = '/' + path;\n\telse if (path.length === 0)\n\t path = '.';\n\treturn path;\n}\n\nfunction join () {\n\tif (arguments.length === 0)\n\t return '.';\n\tlet joined;\n\tfor (let i = 0; i < arguments.length; ++i) {\n\t let arg = arguments[i];\n\t if (arg.length > 0) {\n\t\tif (joined === undefined)\n\t\t joined = arg;\n\t\telse\n\t\t joined += '/' + arg;\n\t }\n\t}\n\tif (joined === undefined)\n\t return '.';\n\n\treturn joined;\n}\n\nfunction isPossibleNodeModulesPath (modulePath) {\n\tlet c0 = modulePath[0];\n\tif (c0 === '/' || c0 === '\\\\') return false;\n\tlet c1 = modulePath[1], c2 = modulePath[2];\n\tif ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||\n\t\t(c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;\n\tif (c1 === ':' && (c2 === '/' || c2 === '\\\\'))\n\t\treturn false;\n\treturn true;\n}\n\nfunction dirname (path) {\n if (path.length === 0)\n return '.';\n\n let i = path.length - 1;\n while (i > 0) {\n const c = path.charCodeAt(i);\n if ((c === 47 || c === 92) && i !== path.length - 1)\n break;\n i--;\n }\n\n if (i > 0)\n return path.substr(0, i);\n\n if (path.chartCodeAt(0) === 47 || path.chartCodeAt(0) === 92)\n return path.charAt(0);\n\n return '.';\n}\n\nexport function commonjsRequire (path, originalModuleDir) {\n\tconst shouldTryNodeModules = isPossibleNodeModulesPath(path);\n\tpath = normalize(path);\n\tlet relPath;\n\twhile (true) {\n\t\tif (!shouldTryNodeModules) {\n\t\t\trelPath = originalModuleDir ? normalize(originalModuleDir + '/' + path) : path;\n\t\t} else if (originalModuleDir) {\n\t\t\trelPath = normalize(originalModuleDir + '/node_modules/' + path);\n\t\t} else {\n\t\t\trelPath = normalize(join('node_modules', path));\n\t\t}\n\t\tfor (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {\n\t\t\tconst resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];\n\t\t\tlet cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];\n\t\t\tif (cachedModule) return cachedModule.exports;\n\t\t\tconst loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];\n\t\t\tif (loader) {\n\t\t\t\tDYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {\n\t\t\t\t\tid: resolvedPath,\n\t\t\t\t\tfilename: resolvedPath,\n\t\t\t\t\tpath: dirname(resolvedPath),\n\t\t\t\t\texports: {},\n\t\t\t\t\tparent: DEFAULT_PARENT_MODULE,\n\t\t\t\t\tloaded: false,\n\t\t\t\t\tchildren: [],\n\t\t\t\t\tpaths: [],\n\t\t\t\t\trequire: function (path, base) {\n\t\t\t\t\t return commonjsRequire(path, (base === undefined || base === null) ? cachedModule.path : base);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\ttry {\n\t\t\t\t\tloader.call(commonjsGlobal, cachedModule, cachedModule.exports);\n\t\t\t\t} catch (error) {\n\t\t\t\t\tdelete DYNAMIC_REQUIRE_CACHE[resolvedPath];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t\tcachedModule.loaded = true;\n\t\t\t\treturn cachedModule.exports;\n\t\t\t};\n\t\t}\n\t\tif (!shouldTryNodeModules) break;\n\t\tconst nextDir = normalize(originalModuleDir + '/..');\n\t\tif (nextDir === originalModuleDir) break;\n\t\toriginalModuleDir = nextDir;\n\t}\n\treturn require(path);\n}\n\ncommonjsRequire.cache = DYNAMIC_REQUIRE_CACHE;\n":"\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');\n}\n"))(p);if(e.startsWith(dv))return(e=>`export {${e.split("?")[1]} as default} from '${dv}';`)(e);if(e.endsWith(iv)){const t=e.slice(1,-iv.length);return wv(t,!l(t)||s(t))}if(e===lv)return((e,t)=>{let r=`const commonjsRegister = require('${dv}?commonjsRegister');`;for(const n of e){let e="index.js";try{Ct(Ge(n,"package.json"))&&(e=JSON.parse(Ft(Ge(n,"package.json"),{encoding:"utf8"})).main||e)}catch(e){}r+=`\ncommonjsRegister(${JSON.stringify(ov(n,t))}, function (module, exports) {\n module.exports = require(${JSON.stringify(Cv(Ge(n,e)))});\n});`}return r})(u,_);if(e.startsWith(cv))return((e,t)=>{const r=Cv(e.slice(cv.length));return`const commonjsRegister = require('${dv}?commonjsRegister');\ncommonjsRegister(${JSON.stringify(ov(r,t))}, function (module, exports) {\n module.exports = require(${JSON.stringify(r)});\n});`})(e,_);const t=Cv(e);if(d.has(t)&&!t.endsWith(".json"))return((e,t)=>`const commonjsRegister = require('${dv}?commonjsRegister');\ncommonjsRegister(${JSON.stringify(ov(e,t))}, function (module, exports) {\n ${Ft(e,{encoding:"utf8"})}\n});`)(t,_);if(e.endsWith(tv)){const t=nv(e);return async function(e,t,r,n){const i=hv(e),a=await(e=>{let t=kv.get(e);if(t)return t.promise;const r=new Promise((r=>{t={resolve:r,promise:void 0},kv.set(e,t)}));return t.promise=r,r})(e);return a?`import { __moduleExports } from ${JSON.stringify(e)}; export default __moduleExports;`:null===a?wv(e,t):t?!0!==t&&("namespace"===t||!r.has(e)||"auto"===t&&n.has(e))?`import * as ${i} from ${JSON.stringify(e)}; export default ${i};`:`export {default} from ${JSON.stringify(e)};`:`import {getAugmentedNamespace} from "${dv}"; import * as ${i} from ${JSON.stringify(e)}; export default /*@__PURE__*/getAugmentedNamespace(${i});`}(t,s(t),f,m)}return p&&this.getModuleInfo(e).isEntry?function(e,t,r){try{const n=Ft(e,{encoding:"utf8"});let i=Array.from(r,(e=>`require(${JSON.stringify(sv+e)});`)).join("\n");return t.length&&(i+=`require(${JSON.stringify(sv+lv)});`),`${i}\n${n}`}catch(t){return this.warn(`Failed to read file ${e}, dynamic modules might not work correctly`),null}}(e,u,d):null},transform(e,r){const i=Ke(r);if(!(".cjs"===i||r===lv||r.startsWith(cv)||n(r)&&t.includes(i)))return Nv(r,null),null;let a;try{a=v.call(this,e,r)}catch(e){a=null,Nv(r,!1),this.error(e,e.loc)}return a}}}function Iv(e){return t=e,Array.isArray(t)?e:null==e?[]:[e];var t}const Ov=e=>e.split(tt.sep).join(et.sep),Mv=new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "));Mv.add("");const Rv=e=>{let t=e.replace(/-(\w)/g,((e,t)=>t.toUpperCase())).replace(/[^$_a-zA-Z0-9]/g,"_");return(/\d/.test(t[0])||Mv.has(t))&&(t=`_${t}`),t||"_"};function Lv(e){return(JSON.stringify(e)||"undefined").replace(/[\u2028\u2029]/g,(e=>`\\u${`000${e.charCodeAt(0).toString(16)}`.slice(-4)}`))}function Bv(e,t,r){if("object"==typeof e&&null!==e)return Array.isArray(e)?((e,t,r)=>{let n="[";const i=t?`\n${r}${t}`:"";for(let a=0;a<e.length;a++)n+=`${a>0?",":""}${i}${Bv(e[a],t,r+t)}`;return`${n}${t?`\n${r}`:""}]`})(e,t,r):e instanceof Date?`new Date(${e.getTime()})`:e instanceof RegExp?e.toString():((e,t,r)=>{let n="{";const i=t?`\n${r}${t}`:"",a=Object.entries(e);for(let e=0;e<a.length;e++){const[o,s]=a[e];n+=`${e>0?",":""}${i}${Rv(o)===o?o:Lv(o)}:${t?" ":""}${Bv(s,t,r+t)}`}return`${n}${t?`\n${r}`:""}}`})(e,t,r);if("number"==typeof e){if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(0===e)return 1/e==1/0?"0":"-0";if(e!=e)return"NaN"}if("symbol"==typeof e){const t=Symbol.keyFor(e);if(void 0!==t)return`Symbol.for(${Lv(t)})`}return"bigint"==typeof e?`${e}n`:Lv(e)}const Uv=(e,t={})=>{const r=t.compact?"":"indent"in t?t.indent:"\t",n=t.compact?"":" ",i=t.compact?"":"\n",a=t.preferConst?"const":"var";if(!1===t.namedExports||"object"!=typeof e||Array.isArray(e)||e instanceof Date||e instanceof RegExp||null===e){const i=Bv(e,t.compact?null:r,"");return`export default${n||(/^[{[\-\/]/.test(i)?"":" ")}${i};`}let o="";const s=[];for(const[c,l]of Object.entries(e))c===Rv(c)?(t.objectShorthand?s.push(c):s.push(`${c}:${n}${c}`),o+=`export ${a} ${c}${n}=${n}${Bv(l,t.compact?null:r,"")};${i}`):s.push(`${Lv(c)}:${n}${Bv(l,t.compact?null:r,"")}`);return`${o}export default${n}{${i}${r}${s.join(`,${i}${r}`)}${i}};${i}`};var jv=Uv;function Vv(e){void 0===e&&(e={});var t=((e,t,r)=>{const n=r&&r.resolve,i=e=>e instanceof RegExp?e:{test(t){const r=((e,t)=>{if(!1===t||Je(e)||e.startsWith("*"))return Ov(e);const r=Ov(Ye(t||"")).replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return et.join(r,Ov(e))})(e,n);return bg(r,{dot:!0})(t)}},a=Iv(e).map(i),o=Iv(t).map(i);return e=>{if("string"!=typeof e)return!1;if(/\0/.test(e))return!1;const t=Ov(e);for(let e=0;e<o.length;++e)if(o[e].test(t))return!1;for(let e=0;e<a.length;++e)if(a[e].test(t))return!0;return!a.length}})(e.include,e.exclude),r="indent"in e?e.indent:"\t";return{name:"json",transform(n,i){if(".json"!==i.slice(-5)||!t(i))return null;try{var a=JSON.parse(n);return{code:Uv(a,{preferConst:e.preferConst,compact:e.compact,namedExports:e.namedExports,indent:r}),map:{mappings:""}}}catch(e){var o=parseInt(/[\d]/.exec(e.message)[0],10);return this.warn({message:"Could not parse JSON file",id:i,position:o}),null}}}}const{builtinModules:zv}=class{static get builtinModules(){return Um}},Hv=["sys"];var Wv=zv.filter((e=>!/^_|^(internal|v8|node-inspect)\/|\//.test(e)&&!Hv.includes(e))).sort(),Kv=e=>(e=>!!e&&"object"==typeof e)(e)&&!(e=>{var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||(e=>e.$$typeof===Jv)(e)})(e),Jv="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Gv(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Yv((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function $v(e,t,r){return e.concat(t).map((e=>Gv(e,r)))}function qv(e){return Object.keys(e).concat((e=>Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((t=>e.propertyIsEnumerable(t))):[])(e))}function Xv(e,t){try{return t in e}catch(e){return!1}}function Yv(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||$v,r.isMergeableObject=r.isMergeableObject||Kv,r.cloneUnlessOtherwiseSpecified=Gv;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&qv(e).forEach((t=>{n[t]=Gv(e[t],r)})),qv(t).forEach((i=>{((e,t)=>Xv(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t)))(e,i)||(Xv(e,i)&&r.isMergeableObject(t[i])?n[i]=((e,t)=>{if(!t.customMerge)return Yv;var r=t.customMerge(e);return"function"==typeof r?r:Yv})(i,r)(e[i],t[i],r):n[i]=Gv(t[i],r))})),n}(e,t,r):Gv(t,r)}Yv.all=(e,t)=>{if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(((e,r)=>Yv(e,r,t)),{})};var Qv=Yv,Zv=/(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/,eb=/(?:^\s*|[}{\(\);,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/;function tb(e){return t=e,Array.isArray(t)?e:null==e?[]:[e];var t}new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" ")).add("");const rb=bt(St.exists),nb=bt(St.readFile),ib=bt(St.realpath),ab=bt(St.stat),ob=e=>{if("ENOENT"===e.code)return!1;throw e},sb=e=>{const t=new Map,r=async(r,n)=>{!1===t.has(r)&&t.set(r,e(r).catch((e=>{throw t.delete(r),e})));try{const e=t.get(r);return n(null,await e)}catch(e){return n(e)}};return r.clear=()=>t.clear(),r},cb=sb((async e=>{try{return(await ab(e)).isDirectory()}catch(e){return ob(e)}})),lb=sb((async e=>{try{return(await ab(e)).isFile()}catch(e){return ob(e)}})),db=sb(nb),ub=bt(Sr),pb=new Set(Wv),_b="\0node-resolve:empty.js",fb=()=>null,mb=e=>{Object.freeze(e);for(const t of Object.values(e))"object"!=typeof t||Object.isFrozen(t)||mb(t);return e},gb={customResolveOptions:{},dedupe:[],extensions:[".mjs",".js",".json",".node"],resolveOnly:[]};function hb(e={}){const t=Object.assign({},gb,e),{customResolveOptions:n,extensions:i,jail:a}=t,o=[],s=new Map,c=new Map,l=(e=>{let t;if(e.mainFields?({mainFields:t}=e):t=["module","main"],e.browser&&-1===t.indexOf("browser"))return["browser"].concat(t);if(!t.length)throw new Error("Please ensure at least one `mainFields` value is specified");return t})(t),d=-1!==l.indexOf("browser"),u=!0===t.preferBuiltins||!1===t.preferBuiltins,p=!u||t.preferBuiltins,_=t.rootDir||r.cwd();let f,{dedupe:m}=t;t.only&&(o.push("node-resolve: The `only` options is deprecated, please use `resolveOnly`"),t.resolveOnly=t.only),"function"!=typeof m&&(m=e=>t.dedupe.includes(e)||t.dedupe.includes((e=>{if(e.startsWith(".")||e.startsWith("/"))return null;const t=e.split("/");return"@"===t[0][0]?`${t[0]}/${t[1]}`:t[0]})(e)));const g=t.resolveOnly.map((e=>{if(e instanceof RegExp)return e;const t=e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(`^${t}$`)})),h=new Map;let y;return{name:"node-resolve",buildStart(e){f=e;for(const e of o)this.warn(e);({preserveSymlinks:y}=e)},generateBundle(){db.clear(),lb.clear(),cb.clear()},async resolveId(e,r){if(e===_b)return e;if(/\0/.test(e))return null;const[o,v]=e.split("#"),[b,E]=o.split("?"),x=`${E?`?${E}`:""}${v?`#${v}`:""}`;e=b;const D=!r||m(e)?_:We(r),S=h.get(r);if(d&&S){const t=Ye(D,e);if(!1===S[e]||!1===S[t])return _b;const r=S[e]||S[t]||S[`${t}.js`]||S[`${t}.json`];r&&(e=r)}const T=e.split(/[/\\]/);let C=T.shift(),A=!1;if("@"===C[0]&&T.length>0?C+=`/${T.shift()}`:"."===C[0]&&(C=Ye(D,e),A=!0),!A&&g.length&&!g.some((e=>e.test(C))))return!!(k=f.input,Array.isArray(k)?k:"object"==typeof k?Object.values(k):[k]).includes(e)&&null;var k;let N,w=fb,F=!0,P=!1,I={basedir:D,packageFilter(e,t){const r=(e=>{const{cache:t,extensions:r,pkg:n,mainFields:i,preserveSymlinks:a,useBrowserOverrides:o}=e;let{pkgPath:s}=e;if(t.has(s))return t.get(s);a||(s=It(s));const c=We(s),l={packageJson:Object.assign({},n),packageJsonPath:s,root:c,resolvedMainField:"main",browserMappedMain:!1,resolvedEntryPoint:""};let d=!1;for(let e=0;e<i.length;e++){const t=i[e];if("string"==typeof n[t]){n.main=n[t],l.resolvedMainField=t,d=!0;break}}const u={cachedPkg:n,hasModuleSideEffects(){return null},hasPackageEntry:!1!==d||-1!==i.indexOf("main"),packageBrowserField:o&&"object"==typeof n.browser&&Object.keys(n.browser).reduce(((e,t)=>{let i=n.browser[t];if(i&&"."===i[0]&&(i=Ye(c,i)),e[t]=i,"."===t[0]){const n=Ye(c,t);e[n]=i,Ke(t)||r.reduce(((e,r)=>(e[n+r]=e[t],e)),e)}return e}),{}),packageInfo:l},p=u.packageBrowserField;o&&"object"==typeof n.browser&&p.hasOwnProperty(n.main)?(l.resolvedEntryPoint=p[n.main],l.browserMappedMain=!0):(l.resolvedEntryPoint=Ye(c,n.main||"index.js"),l.browserMappedMain=!1);const _=n.sideEffects;return"boolean"==typeof _?u.hasModuleSideEffects=()=>_:Array.isArray(_)&&(u.hasModuleSideEffects=((e,t,r)=>{const n=r&&r.resolve,i=e=>e instanceof RegExp?e:{test(t){const r=((e,t)=>{if(!1===t)return e;const r=Ye(t||"").split(Qe).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return et.join(r,e)})(e,n);return bg(r,{dot:!0})(t)}},a=tb(e).map(i),o=tb(t).map(i);return e=>{if("string"!=typeof e)return!1;if(/\0/.test(e))return!1;const t=e.split(Qe).join("/");for(let e=0;e<o.length;++e)if(o[e].test(t))return!1;for(let e=0;e<a.length;++e)if(a[e].test(t))return!0;return!a.length}})(_,null,{resolve:c})),t.set(s,u),u})({cache:s,extensions:i,pkg:e,pkgPath:t,mainFields:l,preserveSymlinks:y,useBrowserOverrides:d});return({packageInfo:N,hasModuleSideEffects:w,hasPackageEntry:F,packageBrowserField:P}=r),r.cachedPkg},readFile:db,isFile:lb,isDirectory:cb,extensions:i};void 0!==y&&(I.preserveSymlinks=y);const O=[];void 0!==r||e[0].match(/^\.?\.?\//)||O.push(`./${e}`);const M=pb.has(e);if(!M||p&&u||O.push(`${e}/`),r&&e.endsWith(".js"))for(const t of[".ts",".tsx"])r.endsWith(t)&&i.includes(t)&&O.push(e.replace(/.js$/,t));O.push(e),I=Object.assign(I,n);try{let r=await((e,t)=>{let r=Promise.resolve();for(let n=0;n<e.length;n++)r=r.then((r=>r||ub(e[n],t).then((e=>(t.preserveSymlinks||(e=It(e)),e))))),n<e.length-1&&(r=r.catch((e=>{if("MODULE_NOT_FOUND"!==e.code)throw e})));return r})(O,I);if(r&&P){if(Object.prototype.hasOwnProperty.call(P,r)){if(!P[r])return h.set(r,P),_b;r=P[r]}h.set(r,P)}if(F&&!y&&r&&await rb(r)&&(r=await ib(r)),c.set(r,N),F){if(pb.has(r)&&p&&u)return null;if(M&&p)return u||this.warn(`preferring built-in module '${e}' over local alternative at '${r}', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning`),null;if(a&&0!==r.indexOf($e(a.trim(Qe))))return null}if(r&&t.modulesOnly){return R=await nb(r,"utf-8"),Zv.test(R)||eb.test(R)?{id:`${r}${x}`,moduleSideEffects:w(r)}:null}return{id:`${r}${x}`,moduleSideEffects:w(r)}}catch(e){return null}var R},load(e){return e===_b?"export default {};":null},getPackageInfoForId(e){return c.get(e)}}}mb(Qv({},gb));var yb=function e(t){this.bits=t instanceof e?t.bits.slice():[]};yb.prototype.add=function(e){this.bits[e>>5]|=1<<(31&e)},yb.prototype.has=function(e){return!!(this.bits[e>>5]&1<<(31&e))};var vb=function(e,t,r){this.start=e,this.end=t,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};vb.prototype.appendLeft=function(e){this.outro+=e},vb.prototype.appendRight=function(e){this.intro=this.intro+e},vb.prototype.clone=function(){var e=new vb(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},vb.prototype.contains=function(e){return this.start<e&&e<this.end},vb.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next},vb.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous},vb.prototype.edit=function(e,t,r){return this.content=e,r||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this},vb.prototype.prependLeft=function(e){this.outro=e+this.outro},vb.prototype.prependRight=function(e){this.intro=e+this.intro},vb.prototype.split=function(e){var t=e-this.start,r=this.original.slice(0,t),n=this.original.slice(t);this.original=r;var i=new vb(e,this.end,n);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},vb.prototype.toString=function(){return this.intro+this.content+this.outro},vb.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)},vb.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)};var bb=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?bb=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof t&&(bb=e=>t.from(e,"utf-8").toString("base64"));var Eb=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Bg(e.mappings)};function xb(e){var t=e.split("\n"),r=t.filter((e=>/^\t+/.test(e))),n=t.filter((e=>/^ {2,}/.test(e)));if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";var i=n.reduce(((e,t)=>{var r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),1/0);return new Array(i+1).join(" ")}function Db(e,t){var r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length)for(var i=r.length;i--;)r[i]="..";return r.concat(n).join("/")}Eb.prototype.toString=function(){return JSON.stringify(this)},Eb.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+bb(this.toString())};var Sb=Object.prototype.toString;function Tb(e){for(var t=e.split("\n"),r=[],n=0,i=0;n<t.length;n++)r.push(i),i+=t[n].length+1;return e=>{for(var t=0,n=r.length;t<n;){var i=t+n>>1;e<r[i]?n=i:t=i+1}var a=t-1;return{line:a,column:e-r[a]}}}var Cb=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};Cb.prototype.addEdit=function(e,t,r,n){if(t.length){var i=[this.generatedCodeColumn,e,r.line,r.column];n>=0&&i.push(n),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null},Cb.prototype.addUneditedChunk=function(e,t,r,n,i){for(var a=t.start,o=!0;a<t.end;)(this.hires||o||i.has(a))&&this.rawSegments.push([this.generatedCodeColumn,e,n.line,n.column]),"\n"===r[a]?(n.line+=1,n.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(n.column+=1,this.generatedCodeColumn+=1,o=!1),a+=1;this.pending=null},Cb.prototype.advance=function(e){if(e){var t=e.split("\n");if(t.length>1){for(var r=0;r<t.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var Ab="\n",kb={insertLeft:!1,insertRight:!1,storeName:!1},Nb=function(e,t){void 0===t&&(t={});var r=new vb(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new yb},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:xb(e)}}),this.byStart[0]=r,this.byEnd[e.length]=r};function wb(e){return t=e,Array.isArray(t)?e:null==e?[]:[e];var t}Nb.prototype.addSourcemapLocation=function(e){this.sourcemapLocations.add(e)},Nb.prototype.append=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},Nb.prototype.appendLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.appendLeft(t):this.intro+=t,this},Nb.prototype.appendRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.appendRight(t):this.outro+=t,this},Nb.prototype.clone=function(){for(var e=new Nb(this.original,{filename:this.filename}),t=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[r.start]=r,e.byEnd[r.end]=r;var n=t.next,i=n&&n.clone();i&&(r.next=i,i.previous=r,r=i),t=n}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new yb(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e},Nb.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var r=Object.keys(this.storedNames),n=new Cb(e.hires),i=Tb(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext((e=>{var a=i(e.start);e.intro.length&&n.advance(e.intro),e.edited?n.addEdit(0,e.content,a,e.storeName?r.indexOf(e.original):-1):n.addUneditedChunk(0,e,t.original,a,t.sourcemapLocations),e.outro.length&&n.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?Db(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:r,mappings:n.raw}},Nb.prototype.generateMap=function(e){return new Eb(this.generateDecodedMap(e))},Nb.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},Nb.prototype.indent=function(e,t){var r,n=/^[^\r\n]/gm;if(r=e,"[object Object]"===Sb.call(r)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var i={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((e=>{for(var t=e[0];t<e[1];t+=1)i[t]=!0}));var a=!1!==t.indentStart,o=t=>a?""+e+t:(a=!0,t);this.intro=this.intro.replace(n,o);for(var s=0,c=this.firstChunk;c;){var l=c.end;if(c.edited)i[s]||(c.content=c.content.replace(n,o),c.content.length&&(a="\n"===c.content[c.content.length-1]));else for(s=c.start;s<l;){if(!i[s]){var d=this.original[s];"\n"===d?a=!0:"\r"!==d&&a&&(a=!1,s===c.start?c.prependRight(e):(this._splitChunk(c,s),(c=c.next).prependRight(e)))}s+=1}s=c.end,c=c.next}return this.outro=this.outro.replace(n,o),this},Nb.prototype.insert=()=>{throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},Nb.prototype.insertLeft=function(e,t){return kb.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),kb.insertLeft=!0),this.appendLeft(e,t)},Nb.prototype.insertRight=function(e,t){return kb.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),kb.insertRight=!0),this.prependRight(e,t)},Nb.prototype.move=function(e,t,r){if(r>=e&&r<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(r);var n=this.byStart[e],i=this.byEnd[t],a=n.previous,o=i.next,s=this.byStart[r];if(!s&&i===this.lastChunk)return this;var c=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),c&&(c.next=n),s&&(s.previous=i),n.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=n.previous,this.lastChunk.next=null),n.previous=c,i.next=s||null,c||(this.firstChunk=n),s||(this.lastChunk=i),this},Nb.prototype.overwrite=function(e,t,r,n){if("string"!=typeof r)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===n&&(kb.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),kb.storeName=!0),n={storeName:!0});var i=void 0!==n&&n.storeName,a=void 0!==n&&n.contentOnly;if(i){var o=this.original.slice(e,t);Object.defineProperty(this.storedNames,o,{writable:!0,value:!0,enumerable:!0})}var s=this.byStart[e],c=this.byEnd[t];if(s){for(var l=s;l!==c;){if(l.next!==this.byStart[l.end])throw new Error("Cannot overwrite across a split point");(l=l.next).edit("",!1)}s.edit(r,i,a)}else{var d=new vb(e,t,"").edit(r,i);c.next=d,d.previous=c}return this},Nb.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},Nb.prototype.prependLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.prependLeft(t):this.intro=t+this.intro,this},Nb.prototype.prependRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.prependRight(t):this.outro=t+this.outro,this},Nb.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var r=this.byStart[e];r;)r.intro="",r.outro="",r.edit(""),r=t>r.end?this.byStart[r.end]:null;return this},Nb.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},Nb.prototype.lastLine=function(){var e=this.outro.lastIndexOf(Ab);if(-1!==e)return this.outro.substr(e+1);var t=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(-1!==(e=r.outro.lastIndexOf(Ab)))return r.outro.substr(e+1)+t;t=r.outro+t}if(r.content.length>0){if(-1!==(e=r.content.lastIndexOf(Ab)))return r.content.substr(e+1)+t;t=r.content+t}if(r.intro.length>0){if(-1!==(e=r.intro.lastIndexOf(Ab)))return r.intro.substr(e+1)+t;t=r.intro+t}}while(r=r.previous);return-1!==(e=this.intro.lastIndexOf(Ab))?this.intro.substr(e+1)+t:this.intro+t},Nb.prototype.slice=function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var r="",n=this.firstChunk;n&&(n.start>e||n.end<=e);){if(n.start<t&&n.end>=t)return r;n=n.next}if(n&&n.edited&&n.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=n;n;){!n.intro||i===n&&n.start!==e||(r+=n.intro);var a=n.start<t&&n.end>=t;if(a&&n.edited&&n.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===n?e-n.start:0,s=a?n.content.length+t-n.end:n.content.length;if(r+=n.content.slice(o,s),!n.outro||a&&n.end!==t||(r+=n.outro),a)break;n=n.next}return r},Nb.prototype.snip=function(e,t){var r=this.clone();return r.remove(0,e),r.remove(t,r.original.length),r},Nb.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,r=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=r?this.byStart[t.end]:this.byEnd[t.start]}},Nb.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var r=Tb(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+r.line+":"+r.column+' – "'+e.original+'")')}var n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0},Nb.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},Nb.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},Nb.prototype.length=function(){var e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t},Nb.prototype.trimLines=function(){return this.trim("[\\r\\n]")},Nb.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},Nb.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var r=this.lastChunk;do{var n=r.end,i=r.trimEnd(t);if(r.end!==n&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.previous}while(r);return!1},Nb.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},Nb.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var r=this.firstChunk;do{var n=r.end,i=r.trimStart(t);if(r.end!==n&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.next}while(r);return!1},Nb.prototype.trimStart=function(e){return this.trimStartAborted(e),this};function Fb(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Pb(e,t){return t.length-e.length}function Ib(e){void 0===e&&(e={});var t,r=((e,t,r)=>{const n=r&&r.resolve,i=e=>e instanceof RegExp?e:{test(t){const r=((e,t)=>{if(!1===t)return e;const r=Ye(t||"").split(Qe).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return et.join(r,e)})(e,n);return bg(r,{dot:!0})(t)}},a=wb(e).map(i),o=wb(t).map(i);return e=>{if("string"!=typeof e)return!1;if(/\0/.test(e))return!1;const t=e.split(Qe).join("/");for(let e=0;e<o.length;++e)if(o[e].test(t))return!1;for(let e=0;e<a.length;++e)if(a[e].test(t))return!0;return!a.length}})(e.include,e.exclude),n=e.delimiters,i=(t=(e=>{if(e.values)return Object.assign({},e.values);var t=Object.assign({},e);return delete t.delimiters,delete t.include,delete t.exclude,delete t.sourcemap,delete t.sourceMap,t})(e),Object.keys(t).reduce(((e,r)=>{var n,i=Object.assign({},e);return i[r]="function"==typeof(n=t[r])?n:()=>n,i}),{})),a=Object.keys(i).sort(Pb).map(Fb),o=n?new RegExp(Fb(n[0])+"("+a.join("|")+")"+Fb(n[1]),"g"):new RegExp("\\b("+a.join("|")+")\\b","g");return{name:"replace",renderChunk(e,t){var n=t.fileName;return a.length&&r(n)?s(e,n):null},transform:(e,t)=>a.length&&r(t)?s(e,t):null};function s(t,r){var n=new Nb(t);if(!((e,t,r)=>{for(var n,a=!1;n=o.exec(e);){a=!0;var s=n.index,c=s+n[0].length,l=String(i[n[1]](t));r.overwrite(s,c,l)}return a})(t,r,n))return null;var a={code:n.toString()};return!1!==e.sourceMap&&!1!==e.sourcemap&&(a.map=n.generateMap({hires:!0})),a}}new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" ")).add("");var Ob=Mb;function Mb(e,t){if(!e)throw new Error(t||"Assertion failed")}Mb.equal=(e,t,r)=>{if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var Rb=at((e=>{"function"==typeof Object.create?e.exports=(e,t)=>{t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=(e,t)=>{if(t){e.super_=t;var r=()=>{};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}));const Lb=ot(xt);function Bb(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function Ub(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function jb(e){return 1===e.length?"0"+e:e}function Vb(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}var zb={inherits:at((e=>{try{var t=Lb;if("function"!=typeof t.inherits)throw"";e.exports=t.inherits}catch(t){e.exports=Rb}})),toArray(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):Bb(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},toHex(e){for(var t="",r=0;r<e.length;r++)t+=jb(e[r].toString(16));return t},htonl:Ub,toHex32(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=Ub(i)),r+=Vb(i.toString(16))}return r},zero2:jb,zero8:Vb,join32(e,t,r,n){var i=r-t;Ob(i%4==0);for(var a=new Array(i/4),o=0,s=t;o<a.length;o++,s+=4){var c;c="big"===n?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],a[o]=c>>>0}return a},split32(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var a=e[n];"big"===t?(r[i]=a>>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=255&a):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=255&a)}return r},rotr32(e,t){return e>>>t|e<<32-t},rotl32(e,t){return e<<t|e>>>32-t},sum32(e,t){return e+t>>>0},sum32_3(e,t,r){return e+t+r>>>0},sum32_4(e,t,r,n){return e+t+r+n>>>0},sum32_5(e,t,r,n,i){return e+t+r+n+i>>>0},sum64(e,t,r,n){var i=e[t],a=n+e[t+1]>>>0,o=(a<n?1:0)+r+i;e[t]=o>>>0,e[t+1]=a},sum64_hi(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},sum64_lo(e,t,r,n){return t+n>>>0},sum64_4_hi(e,t,r,n,i,a,o,s){var c=0,l=t;return c+=(l=l+n>>>0)<t?1:0,c+=(l=l+a>>>0)<a?1:0,e+r+i+o+(c+=(l=l+s>>>0)<s?1:0)>>>0},sum64_4_lo(e,t,r,n,i,a,o,s){return t+n+a+s>>>0},sum64_5_hi(e,t,r,n,i,a,o,s,c,l){var d=0,u=t;return d+=(u=u+n>>>0)<t?1:0,d+=(u=u+a>>>0)<a?1:0,d+=(u=u+s>>>0)<s?1:0,e+r+i+o+c+(d+=(u=u+l>>>0)<l?1:0)>>>0},sum64_5_lo(e,t,r,n,i,a,o,s,c,l){return t+n+a+s+l>>>0},rotr64_hi(e,t,r){return(t<<32-r|e>>>r)>>>0},rotr64_lo(e,t,r){return(e<<32-r|t>>>r)>>>0},shr64_hi(e,t,r){return e>>>r},shr64_lo(e,t,r){return(e<<32-r|t>>>r)>>>0}};function Hb(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var Wb=Hb;Hb.prototype.update=function(e,t){if(e=zb.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=zb.join32(e,0,e.length-r,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},Hb.prototype.digest=function(e){return this.update(this._pad()),Ob(null===this.pending),this._digest(e)},Hb.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,a=8;a<this.padLength;a++)n[i++]=0;return n};var Kb={BlockHash:Wb},Jb=zb.rotr32;function Gb(e,t,r){return e&t^~e&r}function $b(e,t,r){return e&t^e&r^t&r}var qb=Gb,Xb=$b,Yb=e=>Jb(e,2)^Jb(e,13)^Jb(e,22),Qb=e=>Jb(e,6)^Jb(e,11)^Jb(e,25),Zb=e=>Jb(e,7)^Jb(e,18)^e>>>3,eE=e=>Jb(e,17)^Jb(e,19)^e>>>10,tE=zb.sum32,rE=zb.sum32_4,nE=zb.sum32_5,iE=qb,aE=Xb,oE=Yb,sE=Qb,cE=Zb,lE=eE,dE=Kb.BlockHash,uE=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function pE(){if(!(this instanceof pE))return new pE;dE.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=uE,this.W=new Array(64)}zb.inherits(pE,dE);var _E=pE;pE.blockSize=512,pE.outSize=256,pE.hmacStrength=192,pE.padLength=64,pE.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=rE(lE(r[n-2]),r[n-7],cE(r[n-15]),r[n-16]);var i=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],l=this.h[5],d=this.h[6],u=this.h[7];for(Ob(this.k.length===r.length),n=0;n<r.length;n++){var p=nE(u,sE(c),iE(c,l,d),this.k[n],r[n]),_=tE(oE(i),aE(i,a,o));u=d,d=l,l=c,c=tE(s,p),s=o,o=a,a=i,i=tE(p,_)}this.h[0]=tE(this.h[0],i),this.h[1]=tE(this.h[1],a),this.h[2]=tE(this.h[2],o),this.h[3]=tE(this.h[3],s),this.h[4]=tE(this.h[4],c),this.h[5]=tE(this.h[5],l),this.h[6]=tE(this.h[6],d),this.h[7]=tE(this.h[7],u)},pE.prototype._digest=function(e){return"hex"===e?zb.toHex32(this.h,"big"):zb.split32(this.h,"big")};for(var fE="2.42.3",mE={},gE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",hE=0;hE<gE.length;hE++)mE[gE.charCodeAt(hE)]=hE;function yE(e,t,r){4===r?e.push([t[0],t[1],t[2],t[3]]):5===r?e.push([t[0],t[1],t[2],t[3],t[4]]):1===r&&e.push([t[0]])}function vE(e){var t="";e=e<0?-e<<1|1:e<<1;do{var r=31&e;(e>>>=5)>0&&(r|=32),t+=gE[r]}while(e>0);return t}var bE=function e(t){this.bits=t instanceof e?t.bits.slice():[]};bE.prototype.add=function(e){this.bits[e>>5]|=1<<(31&e)},bE.prototype.has=function(e){return!!(this.bits[e>>5]&1<<(31&e))};var EE=function(e,t,r){this.start=e,this.end=t,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};EE.prototype.appendLeft=function(e){this.outro+=e},EE.prototype.appendRight=function(e){this.intro=this.intro+e},EE.prototype.clone=function(){var e=new EE(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},EE.prototype.contains=function(e){return this.start<e&&e<this.end},EE.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next},EE.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous},EE.prototype.edit=function(e,t,r){return this.content=e,r||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this},EE.prototype.prependLeft=function(e){this.outro=e+this.outro},EE.prototype.prependRight=function(e){this.intro=e+this.intro},EE.prototype.split=function(e){var t=e-this.start,r=this.original.slice(0,t),n=this.original.slice(t);this.original=r;var i=new EE(e,this.end,n);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},EE.prototype.toString=function(){return this.intro+this.content+this.outro},EE.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)},EE.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)};var xE=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?xE=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof t&&(xE=e=>t.from(e,"utf-8").toString("base64"));var DE=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=(e=>{for(var t=0,r=0,n=0,i=0,a="",o=0;o<e.length;o++){var s=e[o];if(o>0&&(a+=";"),0!==s.length){for(var c=0,l=[],d=0,u=s;d<u.length;d++){var p=u[d],_=vE(p[0]-c);c=p[0],p.length>1&&(_+=vE(p[1]-t)+vE(p[2]-r)+vE(p[3]-n),t=p[1],r=p[2],n=p[3]),5===p.length&&(_+=vE(p[4]-i),i=p[4]),l.push(_)}a+=l.join(",")}}return a})(e.mappings)};function SE(e){var t=e.split("\n"),r=t.filter((e=>/^\t+/.test(e))),n=t.filter((e=>/^ {2,}/.test(e)));if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";var i=n.reduce(((e,t)=>{var r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),1/0);return new Array(i+1).join(" ")}function TE(e,t){var r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length)for(var i=r.length;i--;)r[i]="..";return r.concat(n).join("/")}DE.prototype.toString=function(){return JSON.stringify(this)},DE.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+xE(this.toString())};var CE=Object.prototype.toString;function AE(e){return"[object Object]"===CE.call(e)}function kE(e){for(var t=e.split("\n"),r=[],n=0,i=0;n<t.length;n++)r.push(i),i+=t[n].length+1;return e=>{for(var t=0,n=r.length;t<n;){var i=t+n>>1;e<r[i]?n=i:t=i+1}var a=t-1;return{line:a,column:e-r[a]}}}var NE=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};NE.prototype.addEdit=function(e,t,r,n){if(t.length){var i=[this.generatedCodeColumn,e,r.line,r.column];n>=0&&i.push(n),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null},NE.prototype.addUneditedChunk=function(e,t,r,n,i){for(var a=t.start,o=!0;a<t.end;)(this.hires||o||i.has(a))&&this.rawSegments.push([this.generatedCodeColumn,e,n.line,n.column]),"\n"===r[a]?(n.line+=1,n.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(n.column+=1,this.generatedCodeColumn+=1,o=!1),a+=1;this.pending=null},NE.prototype.advance=function(e){if(e){var t=e.split("\n");if(t.length>1){for(var r=0;r<t.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var wE="\n",FE={insertLeft:!1,insertRight:!1,storeName:!1},PE=function(e,t){void 0===t&&(t={});var r=new EE(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new bE},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:SE(e)}}),this.byStart[0]=r,this.byEnd[e.length]=r};PE.prototype.addSourcemapLocation=function(e){this.sourcemapLocations.add(e)},PE.prototype.append=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},PE.prototype.appendLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.appendLeft(t):this.intro+=t,this},PE.prototype.appendRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.appendRight(t):this.outro+=t,this},PE.prototype.clone=function(){for(var e=new PE(this.original,{filename:this.filename}),t=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[r.start]=r,e.byEnd[r.end]=r;var n=t.next,i=n&&n.clone();i&&(r.next=i,i.previous=r,r=i),t=n}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new bE(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e},PE.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var r=Object.keys(this.storedNames),n=new NE(e.hires),i=kE(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext((e=>{var a=i(e.start);e.intro.length&&n.advance(e.intro),e.edited?n.addEdit(0,e.content,a,e.storeName?r.indexOf(e.original):-1):n.addUneditedChunk(0,e,t.original,a,t.sourcemapLocations),e.outro.length&&n.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?TE(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:r,mappings:n.raw}},PE.prototype.generateMap=function(e){return new DE(this.generateDecodedMap(e))},PE.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},PE.prototype.indent=function(e,t){var r=/^[^\r\n]/gm;if(AE(e)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var n={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((e=>{for(var t=e[0];t<e[1];t+=1)n[t]=!0}));var i=!1!==t.indentStart,a=t=>i?""+e+t:(i=!0,t);this.intro=this.intro.replace(r,a);for(var o=0,s=this.firstChunk;s;){var c=s.end;if(s.edited)n[o]||(s.content=s.content.replace(r,a),s.content.length&&(i="\n"===s.content[s.content.length-1]));else for(o=s.start;o<c;){if(!n[o]){var l=this.original[o];"\n"===l?i=!0:"\r"!==l&&i&&(i=!1,o===s.start?s.prependRight(e):(this._splitChunk(s,o),(s=s.next).prependRight(e)))}o+=1}o=s.end,s=s.next}return this.outro=this.outro.replace(r,a),this},PE.prototype.insert=()=>{throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},PE.prototype.insertLeft=function(e,t){return FE.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),FE.insertLeft=!0),this.appendLeft(e,t)},PE.prototype.insertRight=function(e,t){return FE.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),FE.insertRight=!0),this.prependRight(e,t)},PE.prototype.move=function(e,t,r){if(r>=e&&r<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(r);var n=this.byStart[e],i=this.byEnd[t],a=n.previous,o=i.next,s=this.byStart[r];if(!s&&i===this.lastChunk)return this;var c=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),c&&(c.next=n),s&&(s.previous=i),n.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=n.previous,this.lastChunk.next=null),n.previous=c,i.next=s||null,c||(this.firstChunk=n),s||(this.lastChunk=i),this},PE.prototype.overwrite=function(e,t,r,n){if("string"!=typeof r)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===n&&(FE.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),FE.storeName=!0),n={storeName:!0});var i=void 0!==n&&n.storeName,a=void 0!==n&&n.contentOnly;if(i){var o=this.original.slice(e,t);this.storedNames[o]=!0}var s=this.byStart[e],c=this.byEnd[t];if(s){if(t>s.end&&s.next!==this.byStart[s.end])throw new Error("Cannot overwrite across a split point");if(s.edit(r,i,a),s!==c){for(var l=s.next;l!==c;)l.edit("",!1),l=l.next;l.edit("",!1)}}else{var d=new EE(e,t,"").edit(r,i);c.next=d,d.previous=c}return this},PE.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},PE.prototype.prependLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.prependLeft(t):this.intro=t+this.intro,this},PE.prototype.prependRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.prependRight(t):this.outro=t+this.outro,this},PE.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var r=this.byStart[e];r;)r.intro="",r.outro="",r.edit(""),r=t>r.end?this.byStart[r.end]:null;return this},PE.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},PE.prototype.lastLine=function(){var e=this.outro.lastIndexOf(wE);if(-1!==e)return this.outro.substr(e+1);var t=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(-1!==(e=r.outro.lastIndexOf(wE)))return r.outro.substr(e+1)+t;t=r.outro+t}if(r.content.length>0){if(-1!==(e=r.content.lastIndexOf(wE)))return r.content.substr(e+1)+t;t=r.content+t}if(r.intro.length>0){if(-1!==(e=r.intro.lastIndexOf(wE)))return r.intro.substr(e+1)+t;t=r.intro+t}}while(r=r.previous);return-1!==(e=this.intro.lastIndexOf(wE))?this.intro.substr(e+1)+t:this.intro+t},PE.prototype.slice=function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var r="",n=this.firstChunk;n&&(n.start>e||n.end<=e);){if(n.start<t&&n.end>=t)return r;n=n.next}if(n&&n.edited&&n.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=n;n;){!n.intro||i===n&&n.start!==e||(r+=n.intro);var a=n.start<t&&n.end>=t;if(a&&n.edited&&n.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===n?e-n.start:0,s=a?n.content.length+t-n.end:n.content.length;if(r+=n.content.slice(o,s),!n.outro||a&&n.end!==t||(r+=n.outro),a)break;n=n.next}return r},PE.prototype.snip=function(e,t){var r=this.clone();return r.remove(0,e),r.remove(t,r.original.length),r},PE.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,r=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=r?this.byStart[t.end]:this.byEnd[t.start]}},PE.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var r=kE(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+r.line+":"+r.column+' – "'+e.original+'")')}var n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0},PE.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},PE.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},PE.prototype.length=function(){var e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t},PE.prototype.trimLines=function(){return this.trim("[\\r\\n]")},PE.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},PE.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var r=this.lastChunk;do{var n=r.end,i=r.trimEnd(t);if(r.end!==n&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.previous}while(r);return!1},PE.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},PE.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var r=this.firstChunk;do{var n=r.end,i=r.trimStart(t);if(r.end!==n&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.next}while(r);return!1},PE.prototype.trimStart=function(e){return this.trimStartAborted(e),this};var IE=Object.prototype.hasOwnProperty,OE=function(e){void 0===e&&(e={}),this.intro=e.intro||"",this.separator=void 0!==e.separator?e.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};function ME(e,t){const r=e.split(/[/\\]/).filter(Boolean),n=t.split(/[/\\]/).filter(Boolean);for("."===r[0]&&r.shift(),"."===n[0]&&n.shift();r[0]&&n[0]&&r[0]===n[0];)r.shift(),n.shift();for(;".."===n[0]&&r.length>0;)n.shift(),r.pop();for(;r.pop();)n.unshift("..");return n.join("/")}OE.prototype.addSource=function(e){if(e instanceof PE)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!AE(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach((t=>{IE.call(e,t)||(e[t]=e.content[t])})),void 0===e.separator&&(e.separator=this.separator),e.filename)if(IE.call(this.uniqueSourceIndexByFilename,e.filename)){var t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content)throw new Error("Illegal source: same filename ("+e.filename+"), different contents")}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this},OE.prototype.append=function(e,t){return this.addSource({content:new PE(e),separator:t&&t.separator||""}),this},OE.prototype.clone=function(){var e=new OE({intro:this.intro,separator:this.separator});return this.sources.forEach((t=>{e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})})),e},OE.prototype.generateDecodedMap=function(e){var t=this;void 0===e&&(e={});var r=[];this.sources.forEach((e=>{Object.keys(e.content.storedNames).forEach((e=>{~r.indexOf(e)||r.push(e)}))}));var n=new NE(e.hires);return this.intro&&n.advance(this.intro),this.sources.forEach(((e,i)=>{i>0&&n.advance(t.separator);var a=e.filename?t.uniqueSourceIndexByFilename[e.filename]:-1,o=e.content,s=kE(o.original);o.intro&&n.advance(o.intro),o.firstChunk.eachNext((t=>{var i=s(t.start);t.intro.length&&n.advance(t.intro),e.filename?t.edited?n.addEdit(a,t.content,i,t.storeName?r.indexOf(t.original):-1):n.addUneditedChunk(a,t,o.original,i,o.sourcemapLocations):n.advance(t.content),t.outro.length&&n.advance(t.outro)})),o.outro&&n.advance(o.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((t=>e.file?TE(e.file,t.filename):t.filename)),sourcesContent:this.uniqueSources.map((t=>e.includeContent?t.content:null)),names:r,mappings:n.raw}},OE.prototype.generateMap=function(e){return new DE(this.generateDecodedMap(e))},OE.prototype.getIndentString=function(){var e={};return this.sources.forEach((t=>{var r=t.content.indentStr;null!==r&&(e[r]||(e[r]=0),e[r]+=1)})),Object.keys(e).sort(((t,r)=>e[t]-e[r]))[0]||"\t"},OE.prototype.indent=function(e){var t=this;if(arguments.length||(e=this.getIndentString()),""===e)return this;var r=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(((n,i)=>{var a=void 0!==n.separator?n.separator:t.separator,o=r||i>0&&/\r?\n$/.test(a);n.content.indent(e,{exclude:n.indentExclusionRanges,indentStart:o}),r="\n"===n.content.lastChar()})),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,((t,r)=>r>0?e+t:t))),this},OE.prototype.prepend=function(e){return this.intro=e+this.intro,this},OE.prototype.toString=function(){var e=this,t=this.sources.map(((t,r)=>{var n=void 0!==t.separator?t.separator:e.separator;return(r>0?n:"")+t.content.toString()})).join("");return this.intro+t},OE.prototype.isEmpty=function(){return!(this.intro.length&&this.intro.trim()||this.sources.some((e=>!e.content.isEmpty())))},OE.prototype.length=function(){return this.sources.reduce(((e,t)=>e+t.content.length()),this.intro.length)},OE.prototype.trimLines=function(){return this.trim("[\\r\\n]")},OE.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},OE.prototype.trimStart=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),!this.intro){var r,n=0;do{if(!(r=this.sources[n++]))break}while(!r.content.trimStartAborted(e))}return this},OE.prototype.trimEnd=function(e){var t,r=new RegExp((e||"\\s")+"+$"),n=this.sources.length-1;do{if(!(t=this.sources[n--])){this.intro=this.intro.replace(r,"");break}}while(!t.content.trimEndAborted(e));return this};const RE="BlockStatement",LE="CallExpression",BE="ExpressionStatement",UE="Identifier",jE="Program";function VE(e,t,r,n){if(t.remove(r,n),e.annotations)for(const n of e.annotations)if(n.comment){if(!(n.comment.start<r))return;t.remove(n.comment.start,n.comment.end)}}function zE(e,t){if(e.annotations||e.parent.type!==BE||(e=e.parent),e.annotations)for(const r of e.annotations.filter((e=>e.comment)))t.remove(r.comment.start,r.comment.end)}const HE={isNoStatement:!0};function WE(e,t,r=0){let n,i;for(n=e.indexOf(t,r);;){if(-1===(r=e.indexOf("/",r))||r>=n)return n;i=e.charCodeAt(++r),++r,(r=47===i?e.indexOf("\n",r)+1:e.indexOf("*/",r)+2)>n&&(n=e.indexOf(t,r))}}const KE=/\S/g;function JE(e,t){return KE.lastIndex=t,KE.exec(e).index}function GE(e){let t,r,n=0;for(t=e.indexOf("\n",n);;){if(n=e.indexOf("/",n),-1===n||n>t)return[t,t+1];if(r=e.charCodeAt(n+1),47===r)return[n,t+1];n=e.indexOf("*/",n+3)+2,n>t&&(t=e.indexOf("\n",n))}}function $E(e,t,r,n,i){let a,o,s,c,l=e[0],d=!l.included||l.needsBoundaries;d&&(c=r+GE(t.original.slice(r,l.start))[1]);for(let r=1;r<=e.length;r++)a=l,o=c,s=d,l=e[r],d=void 0!==l&&(!l.included||l.needsBoundaries),s||d?(c=a.end+GE(t.original.slice(a.end,void 0===l?n:l.start))[1],a.included?s?a.render(t,i,{end:c,start:o}):a.render(t,i):VE(a,t,o,c)):a.render(t,i)}function qE(e,t,r,n){const i=[];let a,o,s,c,l,d=r-1;for(let n=0;n<e.length;n++){for(o=e[n],void 0!==a&&(d=a.end+WE(t.original.slice(a.end,o.start),",")),s=c=d+1+GE(t.original.slice(d+1,o.start))[1];l=t.original.charCodeAt(s),32===l||9===l||10===l||13===l;)s++;void 0!==a&&i.push({contentEnd:c,end:s,node:a,separator:d,start:r}),a=o,r=s}return i.push({contentEnd:n,end:n,node:a,separator:null,start:r}),i}function XE(e,t,r){for(;;){const[n,i]=GE(e.original.slice(t,r));if(-1===n)break;e.remove(t+n,t+=i)}}function YE(e,t){const r=t.compact?"":" ";if(1===e.length&&1===t.exportNamesByVariable.get(e[0]).length){const n=e[0];return`exports('${t.exportNamesByVariable.get(n)}',${r}${n.getName()})`}return`exports({${r}${e.map((e=>t.exportNamesByVariable.get(e).map((t=>`${t}:${r}${e.getName()}`)).join(`,${r}`))).join(`,${r}`)}${r}})`}function QE(e,t,r){const n=r.compact?"":" ",i=r.compact?"":";";return`function${n}(v)${n}{${n}return exports({${n}${e.map((e=>r.exportNamesByVariable.get(e).map((r=>`${r}:${n}${t?e.getName():"v"}`)).join(`,${n}`))).join(`,${n}`)}${n}}),${n}v${i}${n}}(`}function ZE(e){let t="";do{const r=e%64;e=Math.floor(e/64),t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$"[r]+t}while(0!==e);return t}const ex={__proto__:null,await:!0,break:!0,case:!0,catch:!0,class:!0,const:!0,continue:!0,debugger:!0,default:!0,delete:!0,do:!0,else:!0,enum:!0,eval:!0,export:!0,extends:!0,false:!0,finally:!0,for:!0,function:!0,if:!0,implements:!0,import:!0,in:!0,instanceof:!0,interface:!0,let:!0,new:!0,null:!0,package:!0,private:!0,protected:!0,public:!0,return:!0,static:!0,super:!0,switch:!0,this:!0,throw:!0,true:!0,try:!0,typeof:!0,undefined:!0,var:!0,void:!0,while:!0,with:!0,yield:!0};function tx(e,t){let r=e,n=1;for(;t.has(r)||ex[r];)r=`${e}$${ZE(n++)}`;return t.add(r),r}const rx=[];function nx(e,t,r){const n=e.get(t);if(n)return n;const i=r();return e.set(t,i),i}const ix=Symbol("Unknown Key"),ax=[],ox=[ix],sx=Symbol("Entities");class cx{constructor(){this.entityPaths=Object.create(null,{[sx]:{value:new Set}})}getEntities(e){let t=this.entityPaths;for(const r of e)t=t[r]=t[r]||Object.create(null,{[sx]:{value:new Set}});return t[sx]}}const lx=new cx;class dx{constructor(){this.entityPaths=Object.create(null,{[sx]:{value:new Map}})}getEntities(e,t){let r=this.entityPaths;for(const t of e)r=r[t]=r[t]||Object.create(null,{[sx]:{value:new Map}});return nx(r[sx],t,(()=>new Set))}}function ux(e,t=null){return Object.create(t,e)}const px=Symbol("Unknown Value"),_x={deoptimizePath(){},getLiteralValueAtPath:()=>px,getReturnExpressionWhenCalledAtPath:()=>_x,hasEffectsWhenAccessedAtPath:e=>e.length>0,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:()=>!0,include(){},includeCallArguments(e,t){for(const r of t)r.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN]]"},fx={deoptimizePath(){},getLiteralValueAtPath(){},getReturnExpressionWhenCalledAtPath:()=>_x,hasEffectsWhenAccessedAtPath:e=>e.length>0,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:()=>!0,include(){},includeCallArguments(){},included:!0,toString:()=>"undefined"},mx={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:_x}},gx={value:{returns:null,returnsPrimitive:_x,callsArgs:null,mutatesSelf:!0}},hx={value:{returns:null,returnsPrimitive:_x,callsArgs:[0],mutatesSelf:!1}};class yx{constructor(){this.included=!1}deoptimizePath(){}getLiteralValueAtPath(){return px}getReturnExpressionWhenCalledAtPath(e){return 1===e.length?Ux(Ox,e[0]):_x}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,r){return 1!==e.length||Bx(Ox,e[0],this.included,t,r)}include(){this.included=!0}includeCallArguments(e,t){for(const r of t)r.include(e,!1)}toString(){return"[[UNKNOWN ARRAY]]"}}const vx={value:{callsArgs:null,mutatesSelf:!1,returns:yx,returnsPrimitive:null}},bx={value:{callsArgs:null,mutatesSelf:!0,returns:yx,returnsPrimitive:null}},Ex={value:{callsArgs:[0],mutatesSelf:!1,returns:yx,returnsPrimitive:null}},xx={value:{callsArgs:[0],mutatesSelf:!0,returns:yx,returnsPrimitive:null}},Dx={deoptimizePath(){},getLiteralValueAtPath:()=>px,getReturnExpressionWhenCalledAtPath:e=>1===e.length?Ux(Mx,e[0]):_x,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath(e){if(1===e.length){const t=e[0];return"string"!=typeof t||!Mx[t]}return!0},include(){},includeCallArguments(e,t){for(const r of t)r.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN BOOLEAN]]"},Sx={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:Dx}},Tx={value:{callsArgs:[0],mutatesSelf:!1,returns:null,returnsPrimitive:Dx}},Cx={deoptimizePath(){},getLiteralValueAtPath:()=>px,getReturnExpressionWhenCalledAtPath:e=>1===e.length?Ux(Rx,e[0]):_x,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath(e){if(1===e.length){const t=e[0];return"string"!=typeof t||!Rx[t]}return!0},include(){},includeCallArguments(e,t){for(const r of t)r.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN NUMBER]]"},Ax={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:Cx}},kx={value:{callsArgs:null,mutatesSelf:!0,returns:null,returnsPrimitive:Cx}},Nx={value:{callsArgs:[0],mutatesSelf:!1,returns:null,returnsPrimitive:Cx}},wx={deoptimizePath(){},getLiteralValueAtPath:()=>px,getReturnExpressionWhenCalledAtPath:e=>1===e.length?Ux(Lx,e[0]):_x,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:(e,t,r)=>1!==e.length||Bx(Lx,e[0],!0,t,r),include(){},includeCallArguments(e,t){for(const r of t)r.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN STRING]]"},Fx={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:wx}};class Px{constructor(){this.included=!1}deoptimizePath(){}getLiteralValueAtPath(){return px}getReturnExpressionWhenCalledAtPath(e){return 1===e.length?Ux(Ix,e[0]):_x}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,r){return 1!==e.length||Bx(Ix,e[0],this.included,t,r)}include(){this.included=!0}includeCallArguments(e,t){for(const r of t)r.include(e,!1)}toString(){return"[[UNKNOWN OBJECT]]"}}const Ix=ux({hasOwnProperty:Sx,isPrototypeOf:Sx,propertyIsEnumerable:Sx,toLocaleString:Fx,toString:Fx,valueOf:mx}),Ox=ux({concat:vx,copyWithin:bx,every:Tx,fill:bx,filter:Ex,find:hx,findIndex:Nx,forEach:hx,includes:Sx,indexOf:Ax,join:Fx,lastIndexOf:Ax,map:Ex,pop:gx,push:kx,reduce:hx,reduceRight:hx,reverse:bx,shift:gx,slice:vx,some:Tx,sort:xx,splice:bx,unshift:kx},Ix),Mx=ux({valueOf:Sx},Ix),Rx=ux({toExponential:Fx,toFixed:Fx,toLocaleString:Fx,toPrecision:Fx,valueOf:Ax},Ix),Lx=ux({charAt:Fx,charCodeAt:Ax,codePointAt:Ax,concat:Fx,endsWith:Sx,includes:Sx,indexOf:Ax,lastIndexOf:Ax,localeCompare:Ax,match:Sx,normalize:Fx,padEnd:Fx,padStart:Fx,repeat:Fx,replace:{value:{callsArgs:[1],mutatesSelf:!1,returns:null,returnsPrimitive:wx}},search:Ax,slice:Fx,split:vx,startsWith:Sx,substr:Fx,substring:Fx,toLocaleLowerCase:Fx,toLocaleUpperCase:Fx,toLowerCase:Fx,toUpperCase:Fx,trim:Fx,valueOf:Fx},Ix);function Bx(e,t,r,n,i){if("string"!=typeof t||!e[t]||e[t].mutatesSelf&&r)return!0;if(!e[t].callsArgs)return!1;for(const r of e[t].callsArgs)if(n.args[r]&&n.args[r].hasEffectsWhenCalledAtPath(ax,{args:rx,withNew:!1},i))return!0;return!1}function Ux(e,t){return"string"==typeof t&&e[t]?null!==e[t].returnsPrimitive?e[t].returnsPrimitive:new e[t].returns:_x}function jx(){return{brokenFlow:0,includedCallArguments:new Set,includedLabels:new Set}}function Vx(){return{accessed:new cx,assigned:new cx,brokenFlow:0,called:new dx,ignore:{breaks:!1,continues:!1,labels:new Set,returnAwaitYield:!1},includedLabels:new Set,instantiated:new dx,replacedVariableInits:new Map}}class zx{constructor(e){this.alwaysRendered=!1,this.included=!1,this.isId=!1,this.isReassigned=!1,this.renderBaseName=null,this.renderName=null,this.name=e}addReference(e){}deoptimizePath(e){}getBaseVariableName(){return this.renderBaseName||this.renderName||this.name}getLiteralValueAtPath(e,t,r){return px}getName(){const e=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}${ex[e]?`['${e}']`:`.${e}`}`:e}getReturnExpressionWhenCalledAtPath(e,t,r){return _x}hasEffectsWhenAccessedAtPath(e,t){return e.length>0}hasEffectsWhenAssignedAtPath(e,t){return!0}hasEffectsWhenCalledAtPath(e,t,r){return!0}include(){this.included=!0}includeCallArguments(e,t){for(const r of t)r.include(e,!1)}markCalledFromTryStatement(){}setRenderNames(e,t){this.renderBaseName=e,this.renderName=t}}class Hx extends zx{constructor(e,t,r,n){super(e),this.additionalInitializers=null,this.calledFromTryStatement=!1,this.expressionsToBeDeoptimized=[],this.declarations=t?[t]:[],this.init=r,this.deoptimizationTracker=n.deoptimizationTracker,this.module=n.module}addDeclaration(e,t){this.declarations.push(e),null===this.additionalInitializers&&(this.additionalInitializers=null===this.init?[]:[this.init],this.init=_x,this.isReassigned=!0),null!==t&&this.additionalInitializers.push(t)}consolidateInitializers(){if(null!==this.additionalInitializers){for(const e of this.additionalInitializers)e.deoptimizePath(ox);this.additionalInitializers=null}}deoptimizePath(e){if(e.length>7||this.isReassigned)return;const t=this.deoptimizationTracker.getEntities(e);if(!t.has(this))if(t.add(this),0===e.length){if(!this.isReassigned){this.isReassigned=!0;const e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[];for(const t of e)t.deoptimizeCache();this.init&&this.init.deoptimizePath(ox)}}else this.init&&this.init.deoptimizePath(e)}getLiteralValueAtPath(e,t,r){if(this.isReassigned||!this.init||e.length>7)return px;const n=t.getEntities(e);if(n.has(this.init))return px;this.expressionsToBeDeoptimized.push(r),n.add(this.init);const i=this.init.getLiteralValueAtPath(e,t,r);return n.delete(this.init),i}getReturnExpressionWhenCalledAtPath(e,t,r){if(this.isReassigned||!this.init||e.length>7)return _x;const n=t.getEntities(e);if(n.has(this.init))return _x;this.expressionsToBeDeoptimized.push(r),n.add(this.init);const i=this.init.getReturnExpressionWhenCalledAtPath(e,t,r);return n.delete(this.init),i}hasEffectsWhenAccessedAtPath(e,t){if(0===e.length)return!1;if(this.isReassigned||e.length>7)return!0;const r=t.accessed.getEntities(e);return!r.has(this)&&(r.add(this),this.init&&this.init.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){if(this.included||e.length>7)return!0;if(0===e.length)return!1;if(this.isReassigned)return!0;const r=t.assigned.getEntities(e);return!r.has(this)&&(r.add(this),this.init&&this.init.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,r){if(e.length>7||this.isReassigned)return!0;const n=(t.withNew?r.instantiated:r.called).getEntities(e,t);return!n.has(this)&&(n.add(this),this.init&&this.init.hasEffectsWhenCalledAtPath(e,t,r))}include(){if(!this.included){this.included=!0;for(const e of this.declarations){e.included||e.include(jx(),!1);let t=e.parent;for(;!t.included&&(t.included=!0,t.type!==jE);)t=t.parent}}}includeCallArguments(e,t){if(this.isReassigned||this.init&&e.includedCallArguments.has(this.init))for(const r of t)r.include(e,!1);else this.init&&(e.includedCallArguments.add(this.init),this.init.includeCallArguments(e,t),e.includedCallArguments.delete(this.init))}markCalledFromTryStatement(){this.calledFromTryStatement=!0}}class Wx{constructor(){this.children=[],this.variables=new Map}addDeclaration(e,t,r,n){const i=e.name;let a=this.variables.get(i);return a?a.addDeclaration(e,r):(a=new Hx(e.name,e,r||fx,t),this.variables.set(i,a)),a}contains(e){return this.variables.has(e)}findVariable(e){throw new Error("Internal Error: findVariable needs to be implemented by a subclass")}}class Kx extends Wx{constructor(e){super(),this.accessedOutsideVariables=new Map,this.parent=e,e.children.push(this)}addAccessedDynamicImport(e){(this.accessedDynamicImports||(this.accessedDynamicImports=new Set)).add(e),this.parent instanceof Kx&&this.parent.addAccessedDynamicImport(e)}addAccessedGlobals(e,t){const r=t.get(this)||new Set;for(const t of e)r.add(t);t.set(this,r),this.parent instanceof Kx&&this.parent.addAccessedGlobals(e,t)}addNamespaceMemberAccess(e,t){this.accessedOutsideVariables.set(e,t),this.parent.addNamespaceMemberAccess(e,t)}addReturnExpression(e){this.parent instanceof Kx&&this.parent.addReturnExpression(e)}addUsedOutsideNames(e,t,r,n){for(const n of this.accessedOutsideVariables.values())n.included&&(e.add(n.getBaseVariableName()),"system"===t&&r.has(n)&&e.add("exports"));const i=n.get(this);if(i)for(const t of i)e.add(t)}contains(e){return this.variables.has(e)||this.parent.contains(e)}deconflict(e,t,r){const n=new Set;if(this.addUsedOutsideNames(n,e,t,r),this.accessedDynamicImports)for(const e of this.accessedDynamicImports)e.inlineNamespace&&n.add(e.inlineNamespace.getBaseVariableName());for(const[e,t]of this.variables)(t.included||t.alwaysRendered)&&t.setRenderNames(null,tx(e,n));for(const n of this.children)n.deconflict(e,t,r)}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const r=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,r),r}}function Jx(e,t,r){if("number"==typeof r)throw new Error("locate takes a { startIndex, offsetLine, offsetColumn } object as the third argument");return((e,t)=>{void 0===t&&(t={});var r=t.offsetLine||0,n=t.offsetColumn||0,i=e.split("\n"),a=0,o=i.map(((e,t)=>{var r=a+e.length+1,n={start:a,end:r,line:t};return a=r,n})),s=0;function c(e,t){return e.start<=t&&t<e.end}function l(e,t){return{line:r+e.line,column:n+t-e.start,character:t}}return(t,r)=>{"string"==typeof t&&(t=e.indexOf(t,r||0));for(var n=o[s],i=t>=n.end?1:-1;n;){if(c(n,t))return l(n,t);n=o[s+=i]}}})(e,r)(t,r&&r.startIndex)}const Gx={Literal:[],Program:["body"]},$x="variables";class qx{constructor(e,t,r){this.included=!1,this.esTreeNode=e,this.keys=Gx[e.type]||(e=>(Gx[e.type]=Object.keys(e).filter((t=>"_rollupAnnotations"!==t&&"object"==typeof e[t])),Gx[e.type]))(e),this.parent=t,this.context=t.context,this.createScope(r),this.parseNode(e),this.initialise(),this.context.magicString.addSourcemapLocation(this.start),this.context.magicString.addSourcemapLocation(this.end)}addExportedVariables(e,t){}bind(){for(const e of this.keys){const t=this[e];if(null!==t)if(Array.isArray(t))for(const e of t)null!==e&&e.bind();else t.bind()}}createScope(e){this.scope=e}deoptimizePath(e){}getLiteralValueAtPath(e,t,r){return px}getReturnExpressionWhenCalledAtPath(e,t,r){return _x}hasEffects(e){for(const t of this.keys){const r=this[t];if(null!==r)if(Array.isArray(r)){for(const t of r)if(null!==t&&t.hasEffects(e))return!0}else if(r.hasEffects(e))return!0}return!1}hasEffectsWhenAccessedAtPath(e,t){return e.length>0}hasEffectsWhenAssignedAtPath(e,t){return!0}hasEffectsWhenCalledAtPath(e,t,r){return!0}include(e,t){this.included=!0;for(const r of this.keys){const n=this[r];if(null!==n)if(Array.isArray(n))for(const r of n)null!==r&&r.include(e,t);else n.include(e,t)}}includeAsSingleStatement(e,t){this.include(e,t)}includeCallArguments(e,t){for(const r of t)r.include(e,!1)}initialise(){}insertSemicolon(e){";"!==e.original[this.end-1]&&e.appendLeft(this.end,";")}parseNode(e){for(const t of Object.keys(e)){if(this.hasOwnProperty(t))continue;const r=e[t];if("_rollupAnnotations"===t)this.annotations=r;else if("object"!=typeof r||null===r)this[t]=r;else if(Array.isArray(r)){this[t]=[];for(const e of r)this[t].push(null===e?null:new(this.context.nodeConstructors[e.type]||this.context.nodeConstructors.UnknownNode)(e,this,this.scope))}else this[t]=new(this.context.nodeConstructors[r.type]||this.context.nodeConstructors.UnknownNode)(r,this,this.scope)}}render(e,t){for(const r of this.keys){const n=this[r];if(null!==n)if(Array.isArray(n))for(const r of n)null!==r&&r.render(e,t);else n.render(e,t)}}shouldBeIncluded(e){return this.included||!e.brokenFlow&&this.hasEffects(Vx())}}class Xx extends qx{createScope(e){this.scope=new Kx(e)}hasEffectsWhenAccessedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0])}hasEffectsWhenAssignedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0])}hasEffectsWhenCalledAtPath(e,t,r){return!t.withNew||this.body.hasEffectsWhenCalledAtPath(e,t,r)||null!==this.superClass&&this.superClass.hasEffectsWhenCalledAtPath(e,t,r)}initialise(){null!==this.id&&this.id.declare("class",this)}}class Yx extends Xx{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}parseNode(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),super.parseNode(e)}render(e,t){"system"===t.format&&this.id&&t.exportNamesByVariable.has(this.id.variable)&&e.appendLeft(this.end,`${t.compact?"":" "}${YE([this.id.variable],t)};`),super.render(e,t)}}class Qx extends Hx{constructor(e){super("arguments",null,_x,e)}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(){return!0}hasEffectsWhenCalledAtPath(){return!0}}class Zx extends Hx{constructor(e){super("this",null,null,e)}getLiteralValueAtPath(){return px}hasEffectsWhenAccessedAtPath(e,t){return this.getInit(t).hasEffectsWhenAccessedAtPath(e,t)||super.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return this.getInit(t).hasEffectsWhenAssignedAtPath(e,t)||super.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,r){return this.getInit(r).hasEffectsWhenCalledAtPath(e,t,r)||super.hasEffectsWhenCalledAtPath(e,t,r)}getInit(e){return e.replacedVariableInits.get(this)||_x}}class eD extends qx{bind(){super.bind(),this.argument.deoptimizePath([ix,ix])}}class tD extends Kx{constructor(e,t){super(e),this.parameters=[],this.hasRest=!1,this.context=t,this.hoistedBodyVarScope=new Kx(this)}addParameterDeclaration(e){const t=e.name;let r=this.hoistedBodyVarScope.variables.get(t);return r?r.addDeclaration(e,null):r=new Hx(t,e,_x,this.context),this.variables.set(t,r),r}addParameterVariables(e,t){this.parameters=e;for(const t of e)for(const e of t)e.alwaysRendered=!0;this.hasRest=t}includeCallArguments(e,t){let r=!1,n=!1;const i=this.hasRest&&this.parameters[this.parameters.length-1];for(const r of t)if(r instanceof eD){for(const r of t)r.include(e,!1);break}for(let a=t.length-1;a>=0;a--){const o=this.parameters[a]||i,s=t[a];if(o)if(r=!1,0===o.length)n=!0;else for(const e of o)e.included&&(n=!0),e.calledFromTryStatement&&(r=!0);!n&&s.shouldBeIncluded(e)&&(n=!0),n&&s.include(e,r)}}}class rD extends tD{constructor(){super(...arguments),this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(e){this.returnExpressions.push(e)}getReturnExpression(){return null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression}updateReturnExpression(){if(1===this.returnExpressions.length)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=_x;for(const e of this.returnExpressions)e.deoptimizePath(ox)}}}class nD extends rD{constructor(e,t){super(e,t),this.variables.set("arguments",this.argumentsVariable=new Qx(t)),this.variables.set("this",this.thisVariable=new Zx(t))}findLexicalBoundary(){return this}includeCallArguments(e,t){if(super.includeCallArguments(e,t),this.argumentsVariable.included)for(const r of t)r.included||r.include(e,!1)}}function iD(e,t){if("MemberExpression"===e.type)return!e.computed&&iD(e.object,e);if("Identifier"===e.type){if(!t)return!0;switch(t.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return t.computed;case"PropertyDefinition":case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}return!1}const aD=Object.freeze(Object.create(null)),oD=Object.freeze({}),sD=Object.freeze([]),cD=Symbol("Value Properties"),lD={pure:!0},dD={pure:!1},uD={__proto__:null,[cD]:dD},pD={__proto__:null,[cD]:lD},_D={__proto__:null,[cD]:dD,prototype:uD},fD={__proto__:null,[cD]:lD,prototype:uD},mD={__proto__:null,[cD]:lD,from:pD,of:pD,prototype:uD},gD={__proto__:null,[cD]:lD,supportedLocalesOf:fD},hD={global:uD,globalThis:uD,self:uD,window:uD,__proto__:null,[cD]:dD,Array:{__proto__:null,[cD]:dD,from:uD,isArray:pD,of:pD,prototype:uD},ArrayBuffer:{__proto__:null,[cD]:lD,isView:pD,prototype:uD},Atomics:uD,BigInt:_D,BigInt64Array:_D,BigUint64Array:_D,Boolean:fD,constructor:_D,DataView:fD,Date:{__proto__:null,[cD]:lD,now:pD,parse:pD,prototype:uD,UTC:pD},decodeURI:pD,decodeURIComponent:pD,encodeURI:pD,encodeURIComponent:pD,Error:fD,escape:pD,eval:uD,EvalError:fD,Float32Array:mD,Float64Array:mD,Function:_D,hasOwnProperty:uD,Infinity:uD,Int16Array:mD,Int32Array:mD,Int8Array:mD,isFinite:pD,isNaN:pD,isPrototypeOf:uD,JSON:uD,Map:fD,Math:{__proto__:null,[cD]:dD,abs:pD,acos:pD,acosh:pD,asin:pD,asinh:pD,atan:pD,atan2:pD,atanh:pD,cbrt:pD,ceil:pD,clz32:pD,cos:pD,cosh:pD,exp:pD,expm1:pD,floor:pD,fround:pD,hypot:pD,imul:pD,log:pD,log10:pD,log1p:pD,log2:pD,max:pD,min:pD,pow:pD,random:pD,round:pD,sign:pD,sin:pD,sinh:pD,sqrt:pD,tan:pD,tanh:pD,trunc:pD},NaN:uD,Number:{__proto__:null,[cD]:lD,isFinite:pD,isInteger:pD,isNaN:pD,isSafeInteger:pD,parseFloat:pD,parseInt:pD,prototype:uD},Object:{__proto__:null,[cD]:lD,create:pD,getNotifier:pD,getOwn:pD,getOwnPropertyDescriptor:pD,getOwnPropertyNames:pD,getOwnPropertySymbols:pD,getPrototypeOf:pD,is:pD,isExtensible:pD,isFrozen:pD,isSealed:pD,keys:pD,prototype:uD},parseFloat:pD,parseInt:pD,Promise:{__proto__:null,[cD]:dD,all:pD,prototype:uD,race:pD,resolve:pD},propertyIsEnumerable:uD,Proxy:uD,RangeError:fD,ReferenceError:fD,Reflect:uD,RegExp:fD,Set:fD,SharedArrayBuffer:_D,String:{__proto__:null,[cD]:lD,fromCharCode:pD,fromCodePoint:pD,prototype:uD,raw:pD},Symbol:{__proto__:null,[cD]:lD,for:pD,keyFor:pD,prototype:uD},SyntaxError:fD,toLocaleString:uD,toString:uD,TypeError:fD,Uint16Array:mD,Uint32Array:mD,Uint8Array:mD,Uint8ClampedArray:mD,unescape:pD,URIError:fD,valueOf:uD,WeakMap:fD,WeakSet:fD,clearInterval:_D,clearTimeout:_D,console:uD,Intl:{__proto__:null,[cD]:dD,Collator:gD,DateTimeFormat:gD,ListFormat:gD,NumberFormat:gD,PluralRules:gD,RelativeTimeFormat:gD},setInterval:_D,setTimeout:_D,TextDecoder:_D,TextEncoder:_D,URL:_D,URLSearchParams:_D,AbortController:_D,AbortSignal:_D,addEventListener:uD,alert:uD,AnalyserNode:_D,Animation:_D,AnimationEvent:_D,applicationCache:uD,ApplicationCache:_D,ApplicationCacheErrorEvent:_D,atob:uD,Attr:_D,Audio:_D,AudioBuffer:_D,AudioBufferSourceNode:_D,AudioContext:_D,AudioDestinationNode:_D,AudioListener:_D,AudioNode:_D,AudioParam:_D,AudioProcessingEvent:_D,AudioScheduledSourceNode:_D,AudioWorkletNode:_D,BarProp:_D,BaseAudioContext:_D,BatteryManager:_D,BeforeUnloadEvent:_D,BiquadFilterNode:_D,Blob:_D,BlobEvent:_D,blur:uD,BroadcastChannel:_D,btoa:uD,ByteLengthQueuingStrategy:_D,Cache:_D,caches:uD,CacheStorage:_D,cancelAnimationFrame:uD,cancelIdleCallback:uD,CanvasCaptureMediaStreamTrack:_D,CanvasGradient:_D,CanvasPattern:_D,CanvasRenderingContext2D:_D,ChannelMergerNode:_D,ChannelSplitterNode:_D,CharacterData:_D,clientInformation:uD,ClipboardEvent:_D,close:uD,closed:uD,CloseEvent:_D,Comment:_D,CompositionEvent:_D,confirm:uD,ConstantSourceNode:_D,ConvolverNode:_D,CountQueuingStrategy:_D,createImageBitmap:uD,Credential:_D,CredentialsContainer:_D,crypto:uD,Crypto:_D,CryptoKey:_D,CSS:_D,CSSConditionRule:_D,CSSFontFaceRule:_D,CSSGroupingRule:_D,CSSImportRule:_D,CSSKeyframeRule:_D,CSSKeyframesRule:_D,CSSMediaRule:_D,CSSNamespaceRule:_D,CSSPageRule:_D,CSSRule:_D,CSSRuleList:_D,CSSStyleDeclaration:_D,CSSStyleRule:_D,CSSStyleSheet:_D,CSSSupportsRule:_D,CustomElementRegistry:_D,customElements:uD,CustomEvent:_D,DataTransfer:_D,DataTransferItem:_D,DataTransferItemList:_D,defaultstatus:uD,defaultStatus:uD,DelayNode:_D,DeviceMotionEvent:_D,DeviceOrientationEvent:_D,devicePixelRatio:uD,dispatchEvent:uD,document:uD,Document:_D,DocumentFragment:_D,DocumentType:_D,DOMError:_D,DOMException:_D,DOMImplementation:_D,DOMMatrix:_D,DOMMatrixReadOnly:_D,DOMParser:_D,DOMPoint:_D,DOMPointReadOnly:_D,DOMQuad:_D,DOMRect:_D,DOMRectReadOnly:_D,DOMStringList:_D,DOMStringMap:_D,DOMTokenList:_D,DragEvent:_D,DynamicsCompressorNode:_D,Element:_D,ErrorEvent:_D,Event:_D,EventSource:_D,EventTarget:_D,external:uD,fetch:uD,File:_D,FileList:_D,FileReader:_D,find:uD,focus:uD,FocusEvent:_D,FontFace:_D,FontFaceSetLoadEvent:_D,FormData:_D,frames:uD,GainNode:_D,Gamepad:_D,GamepadButton:_D,GamepadEvent:_D,getComputedStyle:uD,getSelection:uD,HashChangeEvent:_D,Headers:_D,history:uD,History:_D,HTMLAllCollection:_D,HTMLAnchorElement:_D,HTMLAreaElement:_D,HTMLAudioElement:_D,HTMLBaseElement:_D,HTMLBodyElement:_D,HTMLBRElement:_D,HTMLButtonElement:_D,HTMLCanvasElement:_D,HTMLCollection:_D,HTMLContentElement:_D,HTMLDataElement:_D,HTMLDataListElement:_D,HTMLDetailsElement:_D,HTMLDialogElement:_D,HTMLDirectoryElement:_D,HTMLDivElement:_D,HTMLDListElement:_D,HTMLDocument:_D,HTMLElement:_D,HTMLEmbedElement:_D,HTMLFieldSetElement:_D,HTMLFontElement:_D,HTMLFormControlsCollection:_D,HTMLFormElement:_D,HTMLFrameElement:_D,HTMLFrameSetElement:_D,HTMLHeadElement:_D,HTMLHeadingElement:_D,HTMLHRElement:_D,HTMLHtmlElement:_D,HTMLIFrameElement:_D,HTMLImageElement:_D,HTMLInputElement:_D,HTMLLabelElement:_D,HTMLLegendElement:_D,HTMLLIElement:_D,HTMLLinkElement:_D,HTMLMapElement:_D,HTMLMarqueeElement:_D,HTMLMediaElement:_D,HTMLMenuElement:_D,HTMLMetaElement:_D,HTMLMeterElement:_D,HTMLModElement:_D,HTMLObjectElement:_D,HTMLOListElement:_D,HTMLOptGroupElement:_D,HTMLOptionElement:_D,HTMLOptionsCollection:_D,HTMLOutputElement:_D,HTMLParagraphElement:_D,HTMLParamElement:_D,HTMLPictureElement:_D,HTMLPreElement:_D,HTMLProgressElement:_D,HTMLQuoteElement:_D,HTMLScriptElement:_D,HTMLSelectElement:_D,HTMLShadowElement:_D,HTMLSlotElement:_D,HTMLSourceElement:_D,HTMLSpanElement:_D,HTMLStyleElement:_D,HTMLTableCaptionElement:_D,HTMLTableCellElement:_D,HTMLTableColElement:_D,HTMLTableElement:_D,HTMLTableRowElement:_D,HTMLTableSectionElement:_D,HTMLTemplateElement:_D,HTMLTextAreaElement:_D,HTMLTimeElement:_D,HTMLTitleElement:_D,HTMLTrackElement:_D,HTMLUListElement:_D,HTMLUnknownElement:_D,HTMLVideoElement:_D,IDBCursor:_D,IDBCursorWithValue:_D,IDBDatabase:_D,IDBFactory:_D,IDBIndex:_D,IDBKeyRange:_D,IDBObjectStore:_D,IDBOpenDBRequest:_D,IDBRequest:_D,IDBTransaction:_D,IDBVersionChangeEvent:_D,IdleDeadline:_D,IIRFilterNode:_D,Image:_D,ImageBitmap:_D,ImageBitmapRenderingContext:_D,ImageCapture:_D,ImageData:_D,indexedDB:uD,innerHeight:uD,innerWidth:uD,InputEvent:_D,IntersectionObserver:_D,IntersectionObserverEntry:_D,isSecureContext:uD,KeyboardEvent:_D,KeyframeEffect:_D,length:uD,localStorage:uD,location:uD,Location:_D,locationbar:uD,matchMedia:uD,MediaDeviceInfo:_D,MediaDevices:_D,MediaElementAudioSourceNode:_D,MediaEncryptedEvent:_D,MediaError:_D,MediaKeyMessageEvent:_D,MediaKeySession:_D,MediaKeyStatusMap:_D,MediaKeySystemAccess:_D,MediaList:_D,MediaQueryList:_D,MediaQueryListEvent:_D,MediaRecorder:_D,MediaSettingsRange:_D,MediaSource:_D,MediaStream:_D,MediaStreamAudioDestinationNode:_D,MediaStreamAudioSourceNode:_D,MediaStreamEvent:_D,MediaStreamTrack:_D,MediaStreamTrackEvent:_D,menubar:uD,MessageChannel:_D,MessageEvent:_D,MessagePort:_D,MIDIAccess:_D,MIDIConnectionEvent:_D,MIDIInput:_D,MIDIInputMap:_D,MIDIMessageEvent:_D,MIDIOutput:_D,MIDIOutputMap:_D,MIDIPort:_D,MimeType:_D,MimeTypeArray:_D,MouseEvent:_D,moveBy:uD,moveTo:uD,MutationEvent:_D,MutationObserver:_D,MutationRecord:_D,name:uD,NamedNodeMap:_D,NavigationPreloadManager:_D,navigator:uD,Navigator:_D,NetworkInformation:_D,Node:_D,NodeFilter:uD,NodeIterator:_D,NodeList:_D,Notification:_D,OfflineAudioCompletionEvent:_D,OfflineAudioContext:_D,offscreenBuffering:uD,OffscreenCanvas:_D,open:uD,openDatabase:uD,Option:_D,origin:uD,OscillatorNode:_D,outerHeight:uD,outerWidth:uD,PageTransitionEvent:_D,pageXOffset:uD,pageYOffset:uD,PannerNode:_D,parent:uD,Path2D:_D,PaymentAddress:_D,PaymentRequest:_D,PaymentRequestUpdateEvent:_D,PaymentResponse:_D,performance:uD,Performance:_D,PerformanceEntry:_D,PerformanceLongTaskTiming:_D,PerformanceMark:_D,PerformanceMeasure:_D,PerformanceNavigation:_D,PerformanceNavigationTiming:_D,PerformanceObserver:_D,PerformanceObserverEntryList:_D,PerformancePaintTiming:_D,PerformanceResourceTiming:_D,PerformanceTiming:_D,PeriodicWave:_D,Permissions:_D,PermissionStatus:_D,personalbar:uD,PhotoCapabilities:_D,Plugin:_D,PluginArray:_D,PointerEvent:_D,PopStateEvent:_D,postMessage:uD,Presentation:_D,PresentationAvailability:_D,PresentationConnection:_D,PresentationConnectionAvailableEvent:_D,PresentationConnectionCloseEvent:_D,PresentationConnectionList:_D,PresentationReceiver:_D,PresentationRequest:_D,print:uD,ProcessingInstruction:_D,ProgressEvent:_D,PromiseRejectionEvent:_D,prompt:uD,PushManager:_D,PushSubscription:_D,PushSubscriptionOptions:_D,queueMicrotask:uD,RadioNodeList:_D,Range:_D,ReadableStream:_D,RemotePlayback:_D,removeEventListener:uD,Request:_D,requestAnimationFrame:uD,requestIdleCallback:uD,resizeBy:uD,ResizeObserver:_D,ResizeObserverEntry:_D,resizeTo:uD,Response:_D,RTCCertificate:_D,RTCDataChannel:_D,RTCDataChannelEvent:_D,RTCDtlsTransport:_D,RTCIceCandidate:_D,RTCIceTransport:_D,RTCPeerConnection:_D,RTCPeerConnectionIceEvent:_D,RTCRtpReceiver:_D,RTCRtpSender:_D,RTCSctpTransport:_D,RTCSessionDescription:_D,RTCStatsReport:_D,RTCTrackEvent:_D,screen:uD,Screen:_D,screenLeft:uD,ScreenOrientation:_D,screenTop:uD,screenX:uD,screenY:uD,ScriptProcessorNode:_D,scroll:uD,scrollbars:uD,scrollBy:uD,scrollTo:uD,scrollX:uD,scrollY:uD,SecurityPolicyViolationEvent:_D,Selection:_D,ServiceWorker:_D,ServiceWorkerContainer:_D,ServiceWorkerRegistration:_D,sessionStorage:uD,ShadowRoot:_D,SharedWorker:_D,SourceBuffer:_D,SourceBufferList:_D,speechSynthesis:uD,SpeechSynthesisEvent:_D,SpeechSynthesisUtterance:_D,StaticRange:_D,status:uD,statusbar:uD,StereoPannerNode:_D,stop:uD,Storage:_D,StorageEvent:_D,StorageManager:_D,styleMedia:uD,StyleSheet:_D,StyleSheetList:_D,SubtleCrypto:_D,SVGAElement:_D,SVGAngle:_D,SVGAnimatedAngle:_D,SVGAnimatedBoolean:_D,SVGAnimatedEnumeration:_D,SVGAnimatedInteger:_D,SVGAnimatedLength:_D,SVGAnimatedLengthList:_D,SVGAnimatedNumber:_D,SVGAnimatedNumberList:_D,SVGAnimatedPreserveAspectRatio:_D,SVGAnimatedRect:_D,SVGAnimatedString:_D,SVGAnimatedTransformList:_D,SVGAnimateElement:_D,SVGAnimateMotionElement:_D,SVGAnimateTransformElement:_D,SVGAnimationElement:_D,SVGCircleElement:_D,SVGClipPathElement:_D,SVGComponentTransferFunctionElement:_D,SVGDefsElement:_D,SVGDescElement:_D,SVGDiscardElement:_D,SVGElement:_D,SVGEllipseElement:_D,SVGFEBlendElement:_D,SVGFEColorMatrixElement:_D,SVGFEComponentTransferElement:_D,SVGFECompositeElement:_D,SVGFEConvolveMatrixElement:_D,SVGFEDiffuseLightingElement:_D,SVGFEDisplacementMapElement:_D,SVGFEDistantLightElement:_D,SVGFEDropShadowElement:_D,SVGFEFloodElement:_D,SVGFEFuncAElement:_D,SVGFEFuncBElement:_D,SVGFEFuncGElement:_D,SVGFEFuncRElement:_D,SVGFEGaussianBlurElement:_D,SVGFEImageElement:_D,SVGFEMergeElement:_D,SVGFEMergeNodeElement:_D,SVGFEMorphologyElement:_D,SVGFEOffsetElement:_D,SVGFEPointLightElement:_D,SVGFESpecularLightingElement:_D,SVGFESpotLightElement:_D,SVGFETileElement:_D,SVGFETurbulenceElement:_D,SVGFilterElement:_D,SVGForeignObjectElement:_D,SVGGElement:_D,SVGGeometryElement:_D,SVGGradientElement:_D,SVGGraphicsElement:_D,SVGImageElement:_D,SVGLength:_D,SVGLengthList:_D,SVGLinearGradientElement:_D,SVGLineElement:_D,SVGMarkerElement:_D,SVGMaskElement:_D,SVGMatrix:_D,SVGMetadataElement:_D,SVGMPathElement:_D,SVGNumber:_D,SVGNumberList:_D,SVGPathElement:_D,SVGPatternElement:_D,SVGPoint:_D,SVGPointList:_D,SVGPolygonElement:_D,SVGPolylineElement:_D,SVGPreserveAspectRatio:_D,SVGRadialGradientElement:_D,SVGRect:_D,SVGRectElement:_D,SVGScriptElement:_D,SVGSetElement:_D,SVGStopElement:_D,SVGStringList:_D,SVGStyleElement:_D,SVGSVGElement:_D,SVGSwitchElement:_D,SVGSymbolElement:_D,SVGTextContentElement:_D,SVGTextElement:_D,SVGTextPathElement:_D,SVGTextPositioningElement:_D,SVGTitleElement:_D,SVGTransform:_D,SVGTransformList:_D,SVGTSpanElement:_D,SVGUnitTypes:_D,SVGUseElement:_D,SVGViewElement:_D,TaskAttributionTiming:_D,Text:_D,TextEvent:_D,TextMetrics:_D,TextTrack:_D,TextTrackCue:_D,TextTrackCueList:_D,TextTrackList:_D,TimeRanges:_D,toolbar:uD,top:uD,Touch:_D,TouchEvent:_D,TouchList:_D,TrackEvent:_D,TransitionEvent:_D,TreeWalker:_D,UIEvent:_D,ValidityState:_D,visualViewport:uD,VisualViewport:_D,VTTCue:_D,WaveShaperNode:_D,WebAssembly:uD,WebGL2RenderingContext:_D,WebGLActiveInfo:_D,WebGLBuffer:_D,WebGLContextEvent:_D,WebGLFramebuffer:_D,WebGLProgram:_D,WebGLQuery:_D,WebGLRenderbuffer:_D,WebGLRenderingContext:_D,WebGLSampler:_D,WebGLShader:_D,WebGLShaderPrecisionFormat:_D,WebGLSync:_D,WebGLTexture:_D,WebGLTransformFeedback:_D,WebGLUniformLocation:_D,WebGLVertexArrayObject:_D,WebSocket:_D,WheelEvent:_D,Window:_D,Worker:_D,WritableStream:_D,XMLDocument:_D,XMLHttpRequest:_D,XMLHttpRequestEventTarget:_D,XMLHttpRequestUpload:_D,XMLSerializer:_D,XPathEvaluator:_D,XPathExpression:_D,XPathResult:_D,XSLTProcessor:_D};for(const e of["window","global","self","globalThis"])hD[e]=hD;function yD(e){let t=hD;for(const r of e){if("string"!=typeof r)return null;if(t=t[r],!t)return null}return t[cD]}class vD extends zx{constructor(){super(...arguments),this.isReassigned=!0}hasEffectsWhenAccessedAtPath(e){return!(e=>1===e.length?"undefined"===e[0]||null!==yD(e):null!==yD(e.slice(0,-1)))([this.name,...e])}hasEffectsWhenCalledAtPath(e){return!(e=>{const t=yD(e);return null!==t&&t.pure})([this.name,...e])}}class bD extends qx{constructor(){super(...arguments),this.variable=null,this.bound=!1}addExportedVariables(e,t){null!==this.variable&&t.has(this.variable)&&e.push(this.variable)}bind(){this.bound||(this.bound=!0,null===this.variable&&iD(this,this.parent)&&(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)),null!==this.variable&&this.variable instanceof Hx&&null!==this.variable.additionalInitializers&&this.variable.consolidateInitializers())}declare(e,t){let r;switch(e){case"var":r=this.scope.addDeclaration(this,this.context,t,!0);break;case"function":r=this.scope.addDeclaration(this,this.context,t,!1);break;case"let":case"const":case"class":r=this.scope.addDeclaration(this,this.context,t,!1);break;case"parameter":r=this.scope.addParameterDeclaration(this);break;default:throw new Error(`Internal Error: Unexpected identifier kind ${e}.`)}return[this.variable=r]}deoptimizePath(e){this.bound||this.bind(),0!==e.length||this.scope.contains(this.name)||this.disallowImportReassignment(),this.variable.deoptimizePath(e)}getLiteralValueAtPath(e,t,r){return this.bound||this.bind(),this.variable.getLiteralValueAtPath(e,t,r)}getReturnExpressionWhenCalledAtPath(e,t,r){return this.bound||this.bind(),this.variable.getReturnExpressionWhenCalledAtPath(e,t,r)}hasEffects(){return this.context.options.treeshake.unknownGlobalSideEffects&&this.variable instanceof vD&&this.variable.hasEffectsWhenAccessedAtPath(ax)}hasEffectsWhenAccessedAtPath(e,t){return null!==this.variable&&this.variable.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return!this.variable||this.variable.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,r){return!this.variable||this.variable.hasEffectsWhenCalledAtPath(e,t,r)}include(){this.included||(this.included=!0,null!==this.variable&&this.context.includeVariableInModule(this.variable))}includeCallArguments(e,t){this.variable.includeCallArguments(e,t)}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,isShorthandProperty:i}=aD){if(this.variable){const t=this.variable.getName();t!==this.name&&(e.overwrite(this.start,this.end,t,{contentOnly:!0,storeName:!0}),i&&e.prependRight(this.start,`${this.name}: `)),"eval"===t&&r===LE&&n&&e.appendRight(this.start,"0, ")}}disallowImportReassignment(){return this.context.error({code:"ILLEGAL_REASSIGNMENT",message:`Illegal reassignment to import '${this.name}'`},this.start)}}class ED extends qx{constructor(){super(...arguments),this.declarationInit=null}addExportedVariables(e,t){this.argument.addExportedVariables(e,t)}bind(){super.bind(),null!==this.declarationInit&&this.declarationInit.deoptimizePath([ix,ix])}declare(e,t){return this.declarationInit=t,this.argument.declare(e,_x)}deoptimizePath(e){0===e.length&&this.argument.deoptimizePath(ax)}hasEffectsWhenAssignedAtPath(e,t){return e.length>0||this.argument.hasEffectsWhenAssignedAtPath(ax,t)}}class xD extends qx{constructor(){super(...arguments),this.isPrototypeDeoptimized=!1}createScope(e){this.scope=new nD(e,this.context)}deoptimizePath(e){1===e.length&&("prototype"===e[0]?this.isPrototypeDeoptimized=!0:e[0]===ix&&(this.isPrototypeDeoptimized=!0,this.scope.getReturnExpression().deoptimizePath(ox)))}getReturnExpressionWhenCalledAtPath(e){return 0===e.length?this.scope.getReturnExpression():_x}hasEffects(){return null!==this.id&&this.id.hasEffects()}hasEffectsWhenAccessedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0]||this.isPrototypeDeoptimized)}hasEffectsWhenAssignedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0]||this.isPrototypeDeoptimized)}hasEffectsWhenCalledAtPath(e,t,r){if(e.length>0)return!0;for(const e of this.params)if(e.hasEffects(r))return!0;const n=r.replacedVariableInits.get(this.scope.thisVariable);r.replacedVariableInits.set(this.scope.thisVariable,t.withNew?new Px:_x);const{brokenFlow:i,ignore:a}=r;return r.ignore={breaks:!1,continues:!1,labels:new Set,returnAwaitYield:!0},!!this.body.hasEffects(r)||(r.brokenFlow=i,n?r.replacedVariableInits.set(this.scope.thisVariable,n):r.replacedVariableInits.delete(this.scope.thisVariable),r.ignore=a,!1)}include(e,t){this.included=!0,this.id&&this.id.include();const r=this.scope.argumentsVariable.included;for(const n of this.params)n instanceof bD&&!r||n.include(e,t);const{brokenFlow:n}=e;e.brokenFlow=0,this.body.include(e,t),e.brokenFlow=n}includeCallArguments(e,t){this.scope.includeCallArguments(e,t)}initialise(){null!==this.id&&this.id.declare("function",this),this.scope.addParameterVariables(this.params.map((e=>e.declare("parameter",_x))),this.params[this.params.length-1]instanceof ED),this.body.addImplicitReturnExpressionToScope()}parseNode(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope),super.parseNode(e)}}xD.prototype.preventChildBlockScope=!0;class DD extends xD{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}parseNode(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),super.parseNode(e)}}class SD extends qx{include(e,t){super.include(e,t),t&&this.context.includeVariableInModule(this.variable)}initialise(){const e=this.declaration;this.declarationName=e.id&&e.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.context.getModuleName(),this,this.context),this.context.addExport(this)}render(e,t,r){const{start:n,end:i}=r,a=((e,t)=>JE(e,WE(e,"default",t)+7))(e.original,this.start);if(this.declaration instanceof DD)this.renderNamedDeclaration(e,a,"function","(",null===this.declaration.id,t);else if(this.declaration instanceof Yx)this.renderNamedDeclaration(e,a,"class","{",null===this.declaration.id,t);else{if(this.variable.getOriginalVariable()!==this.variable)return VE(this,e,n,i),void 0;if(!this.variable.included)return e.remove(this.start,a),this.declaration.render(e,t,{isCalleeOfRenderedParent:!1,renderedParentType:BE}),";"!==e.original[this.end-1]&&e.appendLeft(this.end,";"),void 0;this.renderVariableDeclaration(e,a,t)}this.declaration.render(e,t)}renderNamedDeclaration(e,t,r,n,i,a){const o=this.variable.getName();e.remove(this.start,t),i&&e.appendLeft(((e,t,r,n)=>{const i=WE(e,t,n)+t.length;e=e.slice(i,WE(e,r,i));const a=WE(e,"*");return-1===a?i:i+a+1})(e.original,r,n,t),` ${o}`),"system"===a.format&&this.declaration instanceof Yx&&a.exportNamesByVariable.has(this.variable)&&e.appendLeft(this.end,` ${YE([this.variable],a)};`)}renderVariableDeclaration(e,t,r){const n=59===e.original.charCodeAt(this.end-1),i="system"===r.format&&r.exportNamesByVariable.get(this.variable);i?(e.overwrite(this.start,t,`${r.varOrConst} ${this.variable.getName()} = exports('${i[0]}', `),e.appendRight(n?this.end-1:this.end,")"+(n?"":";"))):(e.overwrite(this.start,t,`${r.varOrConst} ${this.variable.getName()} = `),n||e.appendLeft(this.end,";"))}}SD.prototype.needsBoundaries=!0;class TD extends zx{constructor(){super("undefined")}getLiteralValueAtPath(){}}class CD extends Hx{constructor(e,t,r){super(e,t,t.declaration,r),this.hasId=!1,this.originalId=null,this.originalVariable=null;const n=t.declaration;(n instanceof DD||n instanceof Yx)&&n.id?(this.hasId=!0,this.originalId=n.id):n instanceof bD&&(this.originalId=n)}addReference(e){this.hasId||(this.name=e.name)}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getBaseVariableName(){const e=this.getOriginalVariable();return e===this?super.getBaseVariableName():e.getBaseVariableName()}getDirectOriginalVariable(){return!this.originalId||!this.hasId&&(this.originalId.variable.isReassigned||this.originalId.variable instanceof TD||"syntheticNamespace"in this.originalId.variable)?null:this.originalId.variable}getName(){const e=this.getOriginalVariable();return e===this?super.getName():e.getName()}getOriginalVariable(){if(this.originalVariable)return this.originalVariable;let e,t=this;const r=new Set;do{r.add(t),e=t,t=e.getDirectOriginalVariable()}while(t instanceof CD&&!r.has(t));return this.originalVariable=t||e}}const AD="_missingExportShim";class kD extends zx{constructor(e){super(AD),this.module=e}}class ND extends zx{constructor(e,t){super(e.getModuleName()),this.memberVariables=null,this.mergedNamespaces=[],this.referencedEarly=!1,this.references=[],this.context=e,this.module=e.module,this.syntheticNamedExports=t}addReference(e){this.references.push(e),this.name=e.name}deoptimizePath(){const e=this.getMemberVariables();for(const t of Object.keys(e))e[t].deoptimizePath(ox)}getMemberVariables(){if(this.memberVariables)return this.memberVariables;const e=Object.create(null);for(const t of this.context.getExports().concat(this.context.getReexports()))"*"!==t[0]&&t!==this.module.info.syntheticNamedExports&&(e[t]=this.context.traceExport(t));return this.memberVariables=e}include(){this.included=!0,this.context.includeAllExports()}prepareNamespace(e){this.mergedNamespaces=e;const t=this.context.getModuleExecIndex();for(const e of this.references)if(e.context.getModuleExecIndex()<=t){this.referencedEarly=!0;break}}renderBlock(e){const t=e.compact?"":" ",r=e.compact?"":"\n",n=e.indent,i=this.getMemberVariables(),a=Object.keys(i).map((r=>{const a=i[r];return this.referencedEarly||a.isReassigned?`${n}get ${r}${t}()${t}{${t}return ${a.getName()}${e.compact?"":";"}${t}}`:`${n}${ex[r]?`'${r}'`:r}: ${a.getName()}`}));e.namespaceToStringTag&&a.unshift(`${n}[Symbol.toStringTag]:${t}'Module'`);const o=this.mergedNamespaces.length>0||this.syntheticNamedExports;o||a.unshift(`${n}__proto__:${t}null`);let s=`{${r}${a.join(`,${r}`)}${r}}`;if(o){const e=["/*#__PURE__*/Object.create(null)"];this.mergedNamespaces.length>0&&e.push(...this.mergedNamespaces.map((e=>e.getName()))),this.syntheticNamedExports&&e.push(this.module.getSyntheticNamespace().getName()),a.length>0&&e.push(s),s=`/*#__PURE__*/Object.assign(${e.join(`,${t}`)})`}e.freeze&&(s=`/*#__PURE__*/Object.freeze(${s})`);const c=this.getName();return s=`${e.varOrConst} ${c}${t}=${t}${s};`,"system"===e.format&&e.exportNamesByVariable.has(this)&&(s+=`${r}${YE([this],e)};`),s}renderFirst(){return this.referencedEarly}}ND.prototype.isNamespace=!0;class wD extends zx{constructor(e,t,r){super(t),this.baseVariable=null,this.context=e,this.module=e.module,this.syntheticNamespace=r}getBaseVariable(){if(this.baseVariable)return this.baseVariable;let e=this.syntheticNamespace;for(;e instanceof CD||e instanceof wD;){if(e instanceof CD){const t=e.getOriginalVariable();if(t===e)break;e=t}e instanceof wD&&(e=e.syntheticNamespace)}return this.baseVariable=e}getBaseVariableName(){return this.syntheticNamespace.getBaseVariableName()}getName(){const e=this.name;return`${this.syntheticNamespace.getName()}${FD(e)}`}include(){this.included||(this.included=!0,this.context.includeVariableInModule(this.syntheticNamespace))}setRenderNames(e,t){super.setRenderNames(e,t)}}const FD=e=>!ex[e]&&/^(?!\d)[\w$]+$/.test(e)?`.${e}`:`[${JSON.stringify(e)}]`;class PD extends zx{constructor(e,t){super(t),this.module=e,this.isNamespace="*"===t,this.referenced=!1}addReference(e){this.referenced=!0,"default"!==this.name&&"*"!==this.name||this.module.suggestName(e.name)}hasEffectsWhenAccessedAtPath(e){return e.length>(this.isNamespace?1:0)}include(){this.included||(this.included=!0,this.module.used=!0)}}const ID="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public".split(" "),OD="Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "),MD=new Set(ID.concat(OD)),RD=/[^$_a-zA-Z0-9]/g,LD=e=>/\d/.test(e[0]);function BD(e){return e=e.replace(/-(\w)/g,((e,t)=>t.toUpperCase())).replace(RD,"_"),(LD(e)||MD.has(e))&&(e=`_${e}`),e||"_"}const UD=/^(?:\/|(?:[A-Za-z]:)?[\\|/])/,jD=/^\.?\.\//;function VD(e){return UD.test(e)}function zD(e){return jD.test(e)}function HD(e){return-1==e.indexOf("\\")?e:e.replace(/\\/g,"/")}class WD{constructor(e,t,r,n){this.options=e,this.id=t,this.defaultVariableName="",this.dynamicImporters=[],this.importers=[],this.mostCommonSuggestion=0,this.namespaceVariableName="",this.reexported=!1,this.renderPath=void 0,this.renormalizeRenderPath=!1,this.used=!1,this.variableName="",this.execIndex=1/0,this.suggestedVariableName=BD(t.split(/[\\/]/).pop()),this.nameSuggestions=Object.create(null),this.declarations=Object.create(null),this.exportedVariables=new Map;const i=this;this.info={ast:null,code:null,dynamicallyImportedIds:sD,get dynamicImporters(){return i.dynamicImporters.sort()},hasModuleSideEffects:r,id:t,implicitlyLoadedAfterOneOf:sD,implicitlyLoadedBefore:sD,importedIds:sD,get importers(){return i.importers.sort()},isEntry:!1,isExternal:!0,meta:n,syntheticNamedExports:!1}}getVariableForExportName(e){let t=this.declarations[e];return t||(this.declarations[e]=t=new PD(this,e),this.exportedVariables.set(t,e),t)}setRenderPath(e,t){return this.renderPath="function"==typeof e.paths?e.paths(this.id):e.paths[this.id],this.renderPath||(VD(this.id)?(this.renderPath=HD(Xe(t,this.id)),this.renormalizeRenderPath=!0):this.renderPath=this.id),this.renderPath}suggestName(e){this.nameSuggestions[e]||(this.nameSuggestions[e]=0),this.nameSuggestions[e]+=1,this.nameSuggestions[e]>this.mostCommonSuggestion&&(this.mostCommonSuggestion=this.nameSuggestions[e],this.suggestedVariableName=e)}warnUnusedImports(){const e=Object.keys(this.declarations).filter((e=>{if("*"===e)return!1;const t=this.declarations[e];return!t.included&&!this.reexported&&!t.referenced}));if(0===e.length)return;const t=1===e.length?`'${e[0]}' is`:`${e.slice(0,-1).map((e=>`'${e}'`)).join(", ")} and '${e.slice(-1)}' are`;this.options.onwarn({code:"UNUSED_EXTERNAL_IMPORT",message:`${t} imported from external module '${this.id}' but never used`,names:e,source:this.id})}}function KD(e){return e.endsWith(".js")?e.slice(0,-3):e}function JD(e,t){return e.autoId?`${e.basePath?e.basePath+"/":""}${KD(t)}`:e.id||""}const GD="_interopDefault",$D="_interopDefaultLegacy",qD="_interopNamespace",XD="_interopNamespaceDefault",YD="_interopNamespaceDefaultOnly",QD={auto:GD,default:null,defaultOnly:null,esModule:null,false:null,true:$D};function ZD(e,t){return"esModule"===e||t&&("auto"===e||"true"===e)}const eS={auto:qD,default:XD,defaultOnly:YD,esModule:null,false:null,true:qD};function tS(e,t){return ZD(e,t)&&QD[e]===GD}function rS(){return YD}const nS={[GD]:(e,t,r,n,i)=>`function _interopDefault${e}(e)${e}{${e}return e${e}&&${e}e.__esModule${e}?${e}${i?iS(e):aS(e)}${r}${e}}${t}${t}`,[$D]:(e,t,r,n,i)=>`function _interopDefaultLegacy${e}(e)${e}{${e}return e${e}&&${e}typeof e${e}===${e}'object'${e}&&${e}'default'${e}in e${e}?${e}${i?iS(e):aS(e)}${r}${e}}${t}${t}`,[qD]:(e,t,r,n,i,a,o,s)=>`function _interopNamespace(e)${e}{${t}`+(s.has(XD)?`${n}return e${e}&&${e}e.__esModule${e}?${e}e${e}:${e}_interopNamespaceDefault(e)${r}${t}`:`${n}if${e}(e${e}&&${e}e.__esModule)${e}return e;${t}`+oS(e,t,n,n,i,a,o))+`}${t}${t}`,[XD]:(e,t,r,n,i,a,o)=>`function _interopNamespaceDefault(e)${e}{${t}`+oS(e,t,n,n,i,a,o)+`}${t}${t}`,[YD]:(e,t,r,n,i,a,o)=>`function _interopNamespaceDefaultOnly(e)${e}{${t}${n}return ${lS(`{__proto__: null,${o?`${e}[Symbol.toStringTag]:${e}'Module',`:""}${e}'default':${e}e}`,a)};${t}}${t}${t}`};function iS(e){return`e${e}:${e}{${e}'default':${e}e${e}}`}function aS(e){return`e['default']${e}:${e}e`}function oS(e,t,r,n,i,a,o){return`${n}var n${e}=${e}${o?`{__proto__:${e}null,${e}[Symbol.toStringTag]:${e}'Module'}`:"Object.create(null)"};${t}${n}if${e}(e)${e}{${t}${n}${r}Object.keys(e).forEach(function${e}(k)${e}{${t}`+(i?sS:cS)(e,t,r,n+r+r)+`${n}${r}});${t}`+`${n}}${t}`+`${n}n['default']${e}=${e}e;${t}`+`${n}return ${lS("n",a)};${t}`}function sS(e,t,r,n){return`${n}if${e}(k${e}!==${e}'default')${e}{${t}${n}${r}var d${e}=${e}Object.getOwnPropertyDescriptor(e,${e}k);${t}${n}${r}Object.defineProperty(n,${e}k,${e}d.get${e}?${e}d${e}:${e}{${t}${n}${r}${r}enumerable:${e}true,${t}${n}${r}${r}get:${e}function${e}()${e}{${t}${n}${r}${r}${r}return e[k];${t}${n}${r}${r}}${t}${n}${r}});${t}${n}}${t}`}function cS(e,t,r,n){return`${n}n[k]${e}=${e}e[k];${t}`}function lS(e,t){return t?`Object.freeze(${e})`:e}const dS=Object.keys(nS);function uS(e,t,r,n,i,a,o,s="return "){const c=i?"":" ",l=i?"":"\n";if(!r)return`${l}${l}${s}${((e,t,r,n)=>{if(e.length>0)return e[0].local;for(const{defaultVariableName:e,id:i,isChunk:a,name:o,namedExportsMode:s,namespaceVariableName:c,reexports:l}of t)if(l)return pS(o,l[0].imported,s,a,e,c,r,i,n)})(e,t,n,o)};`;let d="";for(const{defaultVariableName:e,id:i,isChunk:s,name:u,namedExportsMode:p,namespaceVariableName:_,reexports:f}of t)if(f&&r)for(const t of f)if("*"!==t.reexported){const r=pS(u,t.imported,p,s,e,_,n,i,o);d&&(d+=l),d+="*"!==t.imported&&t.needsLiveBinding?`Object.defineProperty(exports,${c}'${t.reexported}',${c}{${l}${a}enumerable:${c}true,${l}${a}get:${c}function${c}()${c}{${l}${a}${a}return ${r};${l}${a}}${l}});`:`exports.${t.reexported}${c}=${c}${r};`}for(const t of e){const e=`exports.${t.exported}`,r=t.local;e!==r&&(d&&(d+=l),d+=`${e}${c}=${c}${r};`)}for(const{name:e,reexports:n}of t)if(n&&r)for(const t of n)"*"===t.reexported&&(d&&(d+=l),t.needsLiveBinding?d+=`Object.keys(${e}).forEach(function${c}(k)${c}{${l}${a}if${c}(k${c}!==${c}'default'${c}&&${c}!exports.hasOwnProperty(k))${c}Object.defineProperty(exports,${c}k,${c}{${l}${a}${a}enumerable:${c}true,${l}${a}${a}get:${c}function${c}()${c}{${l}${a}${a}${a}return ${e}[k];${l}${a}${a}}${l}${a}});${l}});`:d+=`Object.keys(${e}).forEach(function${c}(k)${c}{${l}${a}if${c}(k${c}!==${c}'default'${c}&&${c}!exports.hasOwnProperty(k))${c}exports[k]${c}=${c}${e}[k];${l}});`);return d?`${l}${l}${d}`:""}function pS(e,t,r,n,i,a,o,s,c){if("default"===t){if(!n){const t=String(o(s)),r=QD[t]?i:e;return ZD(t,c)?`${r}['default']`:r}return r?`${e}['default']`:e}return"*"===t?(n?!r:eS[String(o(s))])?a:e:`${e}.${t}`}function _S(e,t,r,n,i){let a="";return e&&(t&&(a+=(e=>`Object.defineProperty(exports,${e}'__esModule',${e}{${e}value:${e}true${e}});`)(n)),r&&(a&&(a+=i),a+=(e=>`exports[Symbol.toStringTag]${e}=${e}'Module';`)(n))),a}function fS(e,t,r,n,i,a,o,s,c,l,d){const u=new Set,p=[],_=(e,r,n)=>{u.add(r),p.push(`${t} ${e}${s}=${s}/*#__PURE__*/${r}(${n});`)};for(const{defaultVariableName:t,imports:n,id:i,isChunk:a,name:o,namedExportsMode:s,namespaceVariableName:c,reexports:l}of e)if(a){for(const{imported:e,reexported:t}of[...n||[],...l||[]])if("*"===e&&"*"!==t){s||_(c,rS(),o);break}}else{const e=String(r(i));let a=!1,s=!1;for(const{imported:r,reexported:i}of[...n||[],...l||[]]){let n,l;"default"===r?a||(a=!0,t!==c&&(l=t,n=QD[e])):"*"===r&&"*"!==i&&(s||(s=!0,n=eS[e],l=c)),n&&_(l,n,o)}}return`${((e,t,r,n,i,a,o,s,c)=>dS.map((l=>e.has(l)||t.has(l)?nS[l](r,n,i,a,o,s,c,e):"")).join(""))(u,o,s,c,l,d,n,i,a)}${p.length>0?`${p.join(c)}${c}${c}`:""}`}function mS(e){return"."===e[0]?KD(e):e}const gS={assert:!0,buffer:!0,console:!0,constants:!0,domain:!0,events:!0,http:!0,https:!0,os:!0,path:!0,process:!0,punycode:!0,querystring:!0,stream:!0,string_decoder:!0,timers:!0,tty:!0,url:!0,util:!0,vm:!0,zlib:!0};function hS(e,t){const r=t.map((({id:e})=>e)).filter((e=>e in gS));r.length&&e({code:"MISSING_NODE_BUILTINS",message:`Creating a browser bundle that depends on Node.js built-in ${1===r.length?`module ('${r[0]}')`:`modules (${r.slice(0,-1).map((e=>`'${e}'`)).join(", ")} and '${r.slice(-1)}')`}. You might need to include https://github.com/ionic-team/rollup-plugin-node-polyfills`,modules:r})}function yS(e){return e.replace(/^\t+/,(e=>e.split("\t").join(" ")))}function vS(e){const t=/^[a-z]:/i.exec(e),r=t?t[0]:"";return r+e.substr(r.length).replace(/[\0?*:]/g,"_")}function bS(e){const t=He(e);return t.substr(0,t.length-Ke(e).length)}function ES(e){return VD(e)?Xe(Ye(),e):e}function xS(e){return!("/"===e[0]||"."===e[0]&&("/"===e[1]||"."===e[1])||vS(e)!==e||VD(e))}function DS(e){throw e instanceof Error||(e=Object.assign(new Error(e.message),e)),e}function SS(e,t,r,n){if("object"==typeof t){const{line:r,column:i}=t;e.loc={file:n,line:r,column:i}}else{e.pos=t;const{line:i,column:a}=Jx(r,t,{offsetLine:1});e.loc={file:n,line:i,column:a}}if(void 0===e.frame){const{line:t,column:n}=e.loc;e.frame=((e,t,r)=>{let n=e.split("\n");const i=Math.max(0,t-3);let a=Math.min(t+2,n.length);for(n=n.slice(i,a);!/\S/.test(n[n.length-1]);)n.pop(),a-=1;const o=String(a).length;return n.map(((e,n)=>{const a=i+n+1===t;let s=String(n+i+1);for(;s.length<o;)s=` ${s}`;if(a){const t=(e=>{let t="";for(;e--;)t+=" ";return t})(o+2+yS(e.slice(0,r)).length)+"^";return`${s}: ${yS(e)}\n${t}`}return`${s}: ${yS(e)}`})).join("\n")})(r,t,n)}}var TS;function CS({fileName:e,code:t},r){const n={code:TS.CHUNK_INVALID,message:`Chunk "${e}" is not valid JavaScript: ${r.message}.`};return SS(n,r.loc,t,e),n}function AS(e,t,r){return{code:"INVALID_EXPORT_OPTION",message:`"${e}" was specified for "output.exports", but entry module "${ES(r)}" has the following exports: ${t.join(", ")}`}}function kS(e,t,r){return{code:TS.MISSING_EXPORT,message:`'${e}' is not exported by ${ES(r)}, imported by ${ES(t)}`,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"}}function NS(e){const t=Array.from(e.implicitlyLoadedBefore,(e=>ES(e.id))).sort();return{code:TS.MISSING_IMPLICIT_DEPENDANT,message:`Module "${ES(e.id)}" that should be implicitly loaded before "${1===t.length?t[0]:`${t.slice(0,-1).join('", "')}" and "${t.slice(-1)[0]}`}" is not included in the module graph. Either it was not imported by an included module or only via a tree-shaken dynamic import, or no imported bindings were used and it had otherwise no side-effects.`}}function wS(e,t,r){return{code:TS.NAMESPACE_CONFLICT,message:`Conflicting namespaces: ${ES(t.id)} re-exports '${e}' from both ${ES(t.exportsAll[e])} and ${ES(r.exportsAll[e])} (will be ignored)`,name:e,reexporter:t.id,sources:[t.exportsAll[e],r.exportsAll[e]]}}function FS(e,t,r){const n=r?"reexport":"import";return{code:TS.UNEXPECTED_NAMED_IMPORT,id:e,message:`The named export "${t}" was ${n}ed from the external module ${ES(e)} even though its interop type is "defaultOnly". Either remove or change this ${n} or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function PS(e){return{code:TS.UNEXPECTED_NAMED_IMPORT,id:e,message:`There was a namespace "*" reexport from the external module ${ES(e)} even though its interop type is "defaultOnly". This will be ignored as namespace reexports only reexport named exports. If this is not intended, either remove or change this reexport or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function IS(e){return{code:TS.VALIDATION_ERROR,message:e}}function OS(){return{code:TS.ALREADY_CLOSED,message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}}function MS(e,t,r){RS(e,t,r.onwarn,r.strictDeprecations)}function RS(e,t,r,n){if(t||n){const t=(e=>({code:TS.DEPRECATED_FEATURE,..."string"==typeof e?{message:e}:e}))(e);if(n)return DS(t);r(t)}}(e=>{e.ALREADY_CLOSED="ALREADY_CLOSED",e.ASSET_NOT_FINALISED="ASSET_NOT_FINALISED",e.ASSET_NOT_FOUND="ASSET_NOT_FOUND",e.ASSET_SOURCE_ALREADY_SET="ASSET_SOURCE_ALREADY_SET",e.ASSET_SOURCE_MISSING="ASSET_SOURCE_MISSING",e.BAD_LOADER="BAD_LOADER",e.CANNOT_EMIT_FROM_OPTIONS_HOOK="CANNOT_EMIT_FROM_OPTIONS_HOOK",e.CHUNK_NOT_GENERATED="CHUNK_NOT_GENERATED",e.CHUNK_INVALID="CHUNK_INVALID",e.CIRCULAR_REEXPORT="CIRCULAR_REEXPORT",e.CYCLIC_CROSS_CHUNK_REEXPORT="CYCLIC_CROSS_CHUNK_REEXPORT",e.DEPRECATED_FEATURE="DEPRECATED_FEATURE",e.EXTERNAL_SYNTHETIC_EXPORTS="EXTERNAL_SYNTHETIC_EXPORTS",e.FILE_NAME_CONFLICT="FILE_NAME_CONFLICT",e.FILE_NOT_FOUND="FILE_NOT_FOUND",e.INPUT_HOOK_IN_OUTPUT_PLUGIN="INPUT_HOOK_IN_OUTPUT_PLUGIN",e.INVALID_CHUNK="INVALID_CHUNK",e.INVALID_EXPORT_OPTION="INVALID_EXPORT_OPTION",e.INVALID_EXTERNAL_ID="INVALID_EXTERNAL_ID",e.INVALID_OPTION="INVALID_OPTION",e.INVALID_PLUGIN_HOOK="INVALID_PLUGIN_HOOK",e.INVALID_ROLLUP_PHASE="INVALID_ROLLUP_PHASE",e.MISSING_EXPORT="MISSING_EXPORT",e.MISSING_IMPLICIT_DEPENDANT="MISSING_IMPLICIT_DEPENDANT",e.MIXED_EXPORTS="MIXED_EXPORTS",e.NAMESPACE_CONFLICT="NAMESPACE_CONFLICT",e.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE="NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",e.PLUGIN_ERROR="PLUGIN_ERROR",e.PREFER_NAMED_EXPORTS="PREFER_NAMED_EXPORTS",e.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT="SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT",e.UNEXPECTED_NAMED_IMPORT="UNEXPECTED_NAMED_IMPORT",e.UNRESOLVED_ENTRY="UNRESOLVED_ENTRY",e.UNRESOLVED_IMPORT="UNRESOLVED_IMPORT",e.VALIDATION_ERROR="VALIDATION_ERROR"})(TS||(TS={}));const LS=/^[a-zA-Z$_][a-zA-Z0-9$_]*$/;function BS(e){return LS.test(e)?`.${e}`:`['${e}']`}function US(e){return e.split(".").map(BS).join("")}function jS(e,t,r,n,i){const a=n?"":" ",o=e.split(".");o[0]=("function"==typeof r?r(o[0]):r[o[0]])||o[0];const s=o.pop();let c=t,l=o.map((e=>(c+=BS(e),`${c}${a}=${a}${c}${a}||${a}{}`))).concat(`${c}${BS(s)}`).join(`,${a}`).concat(`${a}=${a}${i}`);return o.length>0&&(l=`(${l})`),l}function VS(e){let t=e.length;for(;t--;){const{imports:r,reexports:n}=e[t];if(r||n)return e.slice(0,t+1)}return[]}const zS=e=>`this${US(e)}`;function HS({dependencies:e,exports:t}){const r=new Set(t.map((e=>e.exported)));r.has("default")||r.add("default");for(const{reexports:t}of e)if(t)for(const e of t)"*"===e.imported||r.has(e.reexported)||r.add(e.reexported);return r}function WS(e,t,r,n){return 0===e.length?"":1===e.length?`${r}${r}${r}exports('${e[0].name}',${t}${e[0].value});${n}${n}`:`${r}${r}${r}exports({${n}`+e.map((({name:e,value:n})=>`${r}${r}${r}${r}${e}:${t}${n}`)).join(`,${n}`)+`${n}${r}${r}${r}});${n}${n}`}function KS(e,t){return e?`${t}${US(e)}`:"null"}var JS={system(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,indentString:a,intro:o,outro:s,usesTopLevelAwait:c,varOrConst:l},d){const u=d.compact?"":"\n",p=d.compact?"":" ",_=r.map((e=>`'${e.id}'`)),f=[];let m;const g=[];for(const{imports:e,reexports:t}of r){const i=[];if(e)for(const t of e)f.push(t.local),"*"===t.imported?i.push(`${t.local}${p}=${p}module;`):i.push(`${t.local}${p}=${p}module.${t.imported};`);if(t){let e=!1;if(t.length>1||1===t.length&&("*"===t[0].reexported||"*"===t[0].imported)){for(const o of t)"*"===o.reexported&&(m||(m=HS({dependencies:r,exports:n})),e||(i.push(`${l} _setter${p}=${p}{};`),e=!0),i.push(`for${p}(var _$p${p}in${p}module)${p}{`),i.push(`${a}if${p}(!_starExcludes[_$p])${p}_setter[_$p]${p}=${p}module[_$p];`),i.push("}"));for(const e of t)"*"===e.imported&&"*"!==e.reexported&&i.push(`exports('${e.reexported}',${p}module);`);for(const r of t)"*"!==r.reexported&&"*"!==r.imported&&(e||(i.push(`${l} _setter${p}=${p}{};`),e=!0),i.push(`_setter.${r.reexported}${p}=${p}module.${r.imported};`));e&&i.push("exports(_setter);")}else for(const e of t)i.push(`exports('${e.reexported}',${p}module.${e.imported});`)}g.push(i.join(`${u}${a}${a}${a}`))}const h=d.name?`'${d.name}',${p}`:"",y=t.has("module")?`exports,${p}module`:i?"exports":"";let v=`System.register(${h}[`+_.join(`,${p}`)+`],${p}function${p}(${y})${p}{${u}${a}${d.strict?"'use strict';":""}`+((e,t,r,n,i)=>e?`${i}${n}${t} _starExcludes${r}=${r}{${r}${[...e].map((e=>`${e}:${r}1`)).join(`,${r}`)}${r}};`:"")(m,l,p,a,u)+((e,t,r,n)=>e.length?`${n}${r}var ${e.join(`,${t}`)};`:"")(f,p,a,u)+`${u}${a}return${p}{${g.length?`${u}${a}${a}setters:${p}[${g.map((e=>e?`function${p}(module)${p}{${u}${a}${a}${a}${e}${u}${a}${a}}`:d.systemNullSetters?"null":`function${p}()${p}{}`)).join(`,${p}`)}],`:""}${u}`;v+=`${a}${a}execute:${p}${c?`async${p}`:""}function${p}()${p}{${u}${u}`+((e,t,r,n)=>WS(e.filter((e=>e.hoisted||e.uninitialized)).map((e=>({name:e.exported,value:e.uninitialized?"void 0":e.local}))),t,r,n))(n,p,a,u);const b=`${u}${u}`+((e,t,r,n)=>WS(e.filter((e=>e.expression)).map((e=>({name:e.exported,value:e.local}))),t,r,n))(n,p,a,u)+((e,t,r,n)=>WS(e.filter((e=>e.local===AD)).map((e=>({name:e.exported,value:AD}))),t,r,n))(n,p,a,u)+`${a}${a}}${u}${a}}${d.compact?"":";"}${u}});`;return o&&e.prepend(o),s&&e.append(s),e.indent(`${a}${a}${a}`).append(b).prepend(v)},amd(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,id:a,indentString:o,intro:s,isEntryFacade:c,isModuleFacade:l,namedExportsMode:d,outro:u,varOrConst:p,warn:_},{amd:f,compact:m,esModule:g,externalLiveBindings:h,freeze:y,interop:v,namespaceToStringTag:b,strict:E}){hS(_,r);const x=r.map((e=>`'${mS(e.id)}'`)),D=r.map((e=>e.name)),S=m?"":"\n",T=m?"":";",C=m?"":" ";d&&i&&(D.unshift("exports"),x.unshift("'exports'")),t.has("require")&&(D.unshift("require"),x.unshift("'require'")),t.has("module")&&(D.unshift("module"),x.unshift("'module'"));const A=JD(f,a),k=(A?`'${A}',${C}`:"")+(x.length?`[${x.join(`,${C}`)}],${C}`:""),N=E?`${C}'use strict';`:"";e.prepend(`${s}${fS(r,p,v,h,y,b,t,C,S,T,o)}`);const w=uS(n,r,d,v,m,o,h);let F=_S(d&&i,c&&g,l&&b,C,S);return F&&(F=S+S+F),e.append(`${w}${F}${u}`),e.indent(o).prepend(`${f.define}(${k}function${C}(${D.join(`,${C}`)})${C}{${N}${S}${S}`).append(`${S}${S}});`)},cjs(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,indentString:a,intro:o,isEntryFacade:s,isModuleFacade:c,namedExportsMode:l,outro:d,varOrConst:u},{compact:p,esModule:_,externalLiveBindings:f,freeze:m,interop:g,namespaceToStringTag:h,strict:y}){const v=p?"":"\n",b=p?"":";",E=p?"":" ",x=y?`'use strict';${v}${v}`:"";let D=_S(l&&i,s&&_,c&&h,E,v);D&&(D+=v+v);const S=((e,t,r,n,i)=>{let a="",o=!1;for(const{id:s,name:c,reexports:l,imports:d}of e)l||d?(a+=t&&o?",":`${a?`;${n}`:""}${r} `,o=!0,a+=`${c}${i}=${i}require('${s}')`):(a&&(a+=!t||o?`;${n}`:","),o=!1,a+=`require('${s}')`);return a?`${a};${n}${n}`:""})(r,p,u,v,E),T=fS(r,u,g,f,m,h,t,E,v,b,a);e.prepend(`${x}${o}${D}${S}${T}`);const C=uS(n,r,l,g,p,a,f,`module.exports${E}=${E}`);return e.append(`${C}${d}`)},es(e,{intro:t,outro:r,dependencies:n,exports:i,varOrConst:a},{compact:o}){const s=o?"":" ",c=o?"":"\n",l=((e,t)=>{const r=[];for(const{id:n,reexports:i,imports:a,name:o}of e)if(i||a){if(a){let e=null,i=null;const o=[];for(const t of a)"default"===t.imported?e=t:"*"===t.imported?i=t:o.push(t);i&&r.push(`import${t}*${t}as ${i.local} from${t}'${n}';`),e&&0===o.length?r.push(`import ${e.local} from${t}'${n}';`):o.length>0&&r.push(`import ${e?`${e.local},${t}`:""}{${t}${o.map((e=>e.imported===e.local?e.imported:`${e.imported} as ${e.local}`)).join(`,${t}`)}${t}}${t}from${t}'${n}';`)}if(i){let e=null;const s=[],c=[];for(const t of i)"*"===t.reexported?e=t:"*"===t.imported?s.push(t):c.push(t);if(e&&r.push(`export${t}*${t}from${t}'${n}';`),s.length>0){a&&a.some((e=>"*"===e.imported&&e.local===o))||r.push(`import${t}*${t}as ${o} from${t}'${n}';`);for(const e of s)r.push(`export${t}{${t}${o===e.reexported?o:`${o} as ${e.reexported}`} };`)}c.length>0&&r.push(`export${t}{${t}${c.map((e=>e.imported===e.reexported?e.imported:`${e.imported} as ${e.reexported}`)).join(`,${t}`)}${t}}${t}from${t}'${n}';`)}}else r.push(`import${t}'${n}';`);return r})(n,s);l.length>0&&(t+=l.join(c)+c+c),t&&e.prepend(t);const d=((e,t,r)=>{const n=[],i=[];for(const a of e)"default"===a.exported?n.push(`export default ${a.local};`):(a.expression&&n.push(`${r} ${a.local}${t}=${t}${a.expression};`),i.push(a.exported===a.local?a.local:`${a.local} as ${a.exported}`));return i.length&&n.push(`export${t}{${t}${i.join(`,${t}`)}${t}};`),n})(i,s,a);return d.length&&e.append(c+c+d.join(c).trim()),r&&e.append(r),e.trim()},iife(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,indentString:a,intro:o,namedExportsMode:s,outro:c,varOrConst:l,warn:d},{compact:u,esModule:p,extend:_,freeze:f,externalLiveBindings:m,globals:g,interop:h,name:y,namespaceToStringTag:v,strict:b}){const E=u?"":" ",x=u?"":";",D=u?"":"\n",S=y&&-1!==y.indexOf("."),T=!_&&!S;if(y&&T&&(LD(C=y)||MD.has(C)||RD.test(C)))return DS({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${y}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`});var C;hS(d,r);const A=VS(r),k=A.map((e=>e.globalName||"null")),N=A.map((e=>e.name));i&&!y&&d({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.'}),s&&i&&(_?(k.unshift(`${zS(y)}${E}=${E}${zS(y)}${E}||${E}{}`),N.unshift("exports")):(k.unshift("{}"),N.unshift("exports")));const w=b?`${a}'use strict';${D}`:"",F=fS(r,l,h,m,f,v,t,E,D,x,a);e.prepend(`${o}${F}`);let P=`(function${E}(${N.join(`,${E}`)})${E}{${D}${w}${D}`;i&&(!y||_&&s||(P=(T?`${l} ${y}`:zS(y))+`${E}=${E}${P}`),S&&(P=((e,t,r,n)=>{const i=n?"":" ",a=e.split(".");a[0]=("function"==typeof r?r(a[0]):r[a[0]])||a[0],a.pop();let o="this";return a.map((e=>(o+=BS(e),`${o}${i}=${i}${o}${i}||${i}{}${n?"":";"}`))).join(n?",":"\n")+(n&&a.length?";":"\n")})(y,0,g,u)+P));let I=`${D}${D}}(${k.join(`,${E}`)}));`;i&&!_&&s&&(I=`${D}${D}${a}return exports;${I}`);const O=uS(n,r,s,h,u,a,m);let M=_S(s&&i,p,v,E,D);return M&&(M=D+D+M),e.append(`${O}${M}${c}`),e.indent(a).prepend(P).append(I)},umd(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,id:a,indentString:o,intro:s,namedExportsMode:c,outro:l,varOrConst:d,warn:u},{amd:p,compact:_,esModule:f,extend:m,externalLiveBindings:g,freeze:h,interop:y,name:v,namespaceToStringTag:b,globals:E,noConflict:x,strict:D}){const S=_?"":" ",T=_?"":"\n",C=_?"":";",A=_?"f":"factory",k=_?"g":"global";if(i&&!v)return DS({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'You must supply "output.name" for UMD bundles that have exports so that the exports are accessible in environments without a module loader.'});hS(u,r);const N=r.map((e=>`'${mS(e.id)}'`)),w=r.map((e=>`require('${e.id}')`)),F=VS(r),P=F.map((e=>KS(e.globalName,k))),I=F.map((e=>e.name));c&&(i||x)&&(N.unshift("'exports'"),w.unshift("exports"),P.unshift(jS(v,k,E,_,(m?`${KS(v,k)}${S}||${S}`:"")+"{}")),I.unshift("exports"));const O=JD(p,a),M=(O?`'${O}',${S}`:"")+(N.length?`[${N.join(`,${S}`)}],${S}`:""),R=p.define,L=!c&&i?`module.exports${S}=${S}`:"",B=D?`${S}'use strict';${T}`:"";let U;if(x){const e=_?"e":"exports";let t;t=!c&&i?`var ${e}${S}=${S}${jS(v,k,E,_,`${A}(${P.join(`,${S}`)})`)};`:`var ${e}${S}=${S}${P.shift()};${T}${o}${o}${A}(${[e].concat(P).join(`,${S}`)});`,U=`(function${S}()${S}{${T}${o}${o}var current${S}=${S}${((e,t,r)=>{const n=e.split(".");let i=t;return n.map((e=>i+=BS(e))).join(`${r}&&${r}`)})(v,k,S)};${T}${o}${o}${t}${T}${o}${o}${e}.noConflict${S}=${S}function${S}()${S}{${S}${KS(v,k)}${S}=${S}current;${S}return ${e}${_?"":"; "}};${T}${o}}())`}else U=`${A}(${P.join(`,${S}`)})`,!c&&i&&(U=jS(v,k,E,_,U));const j=i||x&&c||P.length>0,V=j?`this,${S}`:"",z=j?`(${k}${S}=${S}typeof globalThis${S}!==${S}'undefined'${S}?${S}globalThis${S}:${S}${k}${S}||${S}self,${S}`:"",H=j?")":"",W=`(function${S}(${j?`${k},${S}`:""}${A})${S}{${T}`+(j?`${o}typeof exports${S}===${S}'object'${S}&&${S}typeof module${S}!==${S}'undefined'${S}?${S}${L}${A}(${w.join(`,${S}`)})${S}:${T}`:"")+`${o}typeof ${R}${S}===${S}'function'${S}&&${S}${R}.amd${S}?${S}${R}(${M}${A})${S}:${T}`+`${o}${z}${U}${H};${T}`+`}(${V}(function${S}(${I.join(", ")})${S}{${B}${T}`,K=T+T+"})));";e.prepend(`${s}${fS(r,d,y,g,h,b,t,S,T,C,o)}`);const J=uS(n,r,c,y,_,o,g);let G=_S(c&&i,f,b,S,T);return G&&(G=T+T+G),e.append(`${J}${G}${l}`),e.trim().indent(o).append(K).prepend(W)}};const GS={ArrayPattern(e,t){for(const r of t.elements)r&&GS[r.type](e,r)},AssignmentPattern(e,t){GS[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(const r of t.properties)"RestElement"===r.type?GS.RestElement(e,r):GS[r.value.type](e,r.value)},RestElement(e,t){GS[t.argument.type](e,t.argument)}},$S=e=>{const t=[];return GS[e.type](t,e),t};class qS extends qx{hasEffects(){return!1}initialise(){this.context.addExport(this)}render(e,t,r){e.remove(r.start,r.end)}}qS.prototype.needsBoundaries=!0;class XS extends Kx{addDeclaration(e,t,r,n){return n?this.parent.addDeclaration(e,t,_x,n):super.addDeclaration(e,t,r,!1)}}class YS extends qx{initialise(){this.directive&&"use strict"!==this.directive&&this.parent.type===jE&&this.context.warn({code:"MODULE_LEVEL_DIRECTIVE",message:`Module level directives cause errors when bundled, '${this.directive}' was ignored.`},this.start)}render(e,t){super.render(e,t),this.included&&this.insertSemicolon(e)}shouldBeIncluded(e){return this.directive&&"use strict"!==this.directive?this.parent.type!==jE:super.shouldBeIncluded(e)}}class QS extends qx{constructor(){super(...arguments),this.directlyIncluded=!1}addImplicitReturnExpressionToScope(){const e=this.body[this.body.length-1];e&&"ReturnStatement"===e.type||this.scope.addReturnExpression(_x)}createScope(e){this.scope=this.parent.preventChildBlockScope?e:new XS(e)}hasEffects(e){if(this.deoptimizeBody)return!0;for(const t of this.body){if(t.hasEffects(e))return!0;if(e.brokenFlow)break}return!1}include(e,t){if(!this.deoptimizeBody||!this.directlyIncluded){this.included=!0,this.directlyIncluded=!0,this.deoptimizeBody&&(t=!0);for(const r of this.body)(t||r.shouldBeIncluded(e))&&r.include(e,t)}}initialise(){const e=this.body[0];this.deoptimizeBody=e instanceof YS&&"use asm"===e.directive}render(e,t){this.body.length?$E(this.body,e,this.start+1,this.end-1,t):super.render(e,t)}}class ZS extends qx{createScope(e){this.scope=new rD(e,this.context)}deoptimizePath(e){1===e.length&&e[0]===ix&&this.scope.getReturnExpression().deoptimizePath(ox)}getReturnExpressionWhenCalledAtPath(e){return 0===e.length?this.scope.getReturnExpression():_x}hasEffects(){return!1}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,r){if(e.length>0)return!0;for(const e of this.params)if(e.hasEffects(r))return!0;const{ignore:n,brokenFlow:i}=r;return r.ignore={breaks:!1,continues:!1,labels:new Set,returnAwaitYield:!0},!!this.body.hasEffects(r)||(r.ignore=n,r.brokenFlow=i,!1)}include(e,t){this.included=!0;for(const r of this.params)r instanceof bD||r.include(e,t);const{brokenFlow:r}=e;e.brokenFlow=0,this.body.include(e,t),e.brokenFlow=r}includeCallArguments(e,t){this.scope.includeCallArguments(e,t)}initialise(){this.scope.addParameterVariables(this.params.map((e=>e.declare("parameter",_x))),this.params[this.params.length-1]instanceof ED),this.body instanceof QS?this.body.addImplicitReturnExpressionToScope():this.scope.addReturnExpression(this.body)}parseNode(e){e.body.type===RE&&(this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope)),super.parseNode(e)}}ZS.prototype.preventChildBlockScope=!0;const eT={"!=":(e,t)=>e!=t,"!==":(e,t)=>e!==t,"%":(e,t)=>e%t,"&":(e,t)=>e&t,"*":(e,t)=>e*t,"**":(e,t)=>e**t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"<":(e,t)=>e<t,"<<":(e,t)=>e<<t,"<=":(e,t)=>e<=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"^":(e,t)=>e^t,in:()=>px,instanceof:()=>px,"|":(e,t)=>e|t};class tT extends qx{getLiteralValueAtPath(e){return e.length>0||null===this.value&&110!==this.context.code.charCodeAt(this.start)||"bigint"==typeof this.value||47===this.context.code.charCodeAt(this.start)?px:this.value}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?_x:Ux(this.members,e[0])}hasEffectsWhenAccessedAtPath(e){return null===this.value?e.length>0:e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>0}hasEffectsWhenCalledAtPath(e,t,r){return 1!==e.length||Bx(this.members,e[0],this.included,t,r)}initialise(){this.members=(e=>{switch(typeof e){case"boolean":return Mx;case"number":return Rx;case"string":return Lx;default:return Object.create(null)}})(this.value)}parseNode(e){this.value=e.value,this.regex=e.regex,super.parseNode(e)}render(e){"string"==typeof this.value&&e.indentExclusionRanges.push([this.start+1,this.end-1])}}function rT(e){const t=e.propertyKey,r=e.object;if("string"==typeof t){if(r instanceof bD)return[{key:r.name,pos:r.start},{key:t,pos:e.property.start}];if(r instanceof nT){const n=rT(r);return n&&[...n,{key:t,pos:e.property.start}]}}return null}class nT extends qx{constructor(){super(...arguments),this.variable=null,this.bound=!1,this.expressionsToBeDeoptimized=[],this.replacement=null,this.wasPathDeoptimizedWhileOptimized=!1}bind(){if(this.bound)return;this.bound=!0;const e=rT(this),t=e&&this.scope.findVariable(e[0].key);if(t&&t.isNamespace){const r=this.resolveNamespaceVariables(t,e.slice(1));r?"string"==typeof r?this.replacement=r:(this.variable=r,this.scope.addNamespaceMemberAccess((e=>{let t=e[0].key;for(let r=1;r<e.length;r++)t+="."+e[r].key;return t})(e),r)):super.bind()}else super.bind(),this.getPropertyKey()}deoptimizeCache(){const e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.propertyKey=ix,this.wasPathDeoptimizedWhileOptimized&&this.object.deoptimizePath(ox);for(const t of e)t.deoptimizeCache()}deoptimizePath(e){if(this.bound||this.bind(),0===e.length&&this.disallowNamespaceReassignment(),this.variable)this.variable.deoptimizePath(e);else{const t=this.getPropertyKey();t===ix?this.object.deoptimizePath(ox):(this.wasPathDeoptimizedWhileOptimized=!0,this.object.deoptimizePath([t,...e]))}}getLiteralValueAtPath(e,t,r){return this.bound||this.bind(),null!==this.variable?this.variable.getLiteralValueAtPath(e,t,r):(this.expressionsToBeDeoptimized.push(r),this.object.getLiteralValueAtPath([this.getPropertyKey(),...e],t,r))}getReturnExpressionWhenCalledAtPath(e,t,r){return this.bound||this.bind(),null!==this.variable?this.variable.getReturnExpressionWhenCalledAtPath(e,t,r):(this.expressionsToBeDeoptimized.push(r),this.object.getReturnExpressionWhenCalledAtPath([this.getPropertyKey(),...e],t,r))}hasEffects(e){const t=this.context.options.treeshake.propertyReadSideEffects;return"always"===t||this.property.hasEffects(e)||this.object.hasEffects(e)||t&&this.object.hasEffectsWhenAccessedAtPath([this.propertyKey],e)}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null!==this.variable?this.variable.hasEffectsWhenAccessedAtPath(e,t):this.object.hasEffectsWhenAccessedAtPath([this.propertyKey,...e],t))}hasEffectsWhenAssignedAtPath(e,t){return null!==this.variable?this.variable.hasEffectsWhenAssignedAtPath(e,t):this.object.hasEffectsWhenAssignedAtPath([this.propertyKey,...e],t)}hasEffectsWhenCalledAtPath(e,t,r){return null!==this.variable?this.variable.hasEffectsWhenCalledAtPath(e,t,r):this.object.hasEffectsWhenCalledAtPath([this.propertyKey,...e],t,r)}include(e,t){this.included||(this.included=!0,null!==this.variable&&this.context.includeVariableInModule(this.variable)),this.object.include(e,t),this.property.include(e,t)}includeCallArguments(e,t){this.variable?this.variable.includeCallArguments(e,t):super.includeCallArguments(e,t)}initialise(){var e,t;this.propertyKey=(e=this).computed?(t=e.property)instanceof tT?String(t.value):null:e.property.name}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,renderedSurroundingElement:i}=aD){const a=r===LE&&n;if(this.variable||this.replacement){let t=this.variable?this.variable.getName():this.replacement;a&&(t="0, "+t),e.overwrite(this.start,this.end,t,{contentOnly:!0,storeName:!0})}else{a&&e.appendRight(this.start,"0, ");const n=r||i;this.object.render(e,t,n?{renderedSurroundingElement:n}:aD),this.property.render(e,t)}}disallowNamespaceReassignment(){this.object instanceof bD&&this.scope.findVariable(this.object.name).isNamespace&&(this.variable&&this.context.includeVariableInModule(this.variable),this.context.warn({code:"ILLEGAL_NAMESPACE_REASSIGNMENT",message:`Illegal reassignment to import '${this.object.name}'`},this.start))}getPropertyKey(){if(null===this.propertyKey){this.propertyKey=ix;const e=this.property.getLiteralValueAtPath(ax,lx,this);return this.propertyKey=e===px?ix:String(e)}return this.propertyKey}resolveNamespaceVariables(e,t){if(0===t.length)return e;if(!e.isNamespace||e instanceof PD)return null;const r=t[0].key,n=e.context.traceExport(r);if(!n){const n=e.context.fileName;return this.context.warn({code:"MISSING_EXPORT",exporter:ES(n),importer:ES(this.context.fileName),message:`'${r}' is not exported by '${ES(n)}'`,missing:r,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"},t[0].pos),"undefined"}return this.resolveNamespaceVariables(n,t.slice(1))}}class iT extends tD{addDeclaration(e,t,r,n){return n?this.parent.addDeclaration(e,t,r,n):super.addDeclaration(e,t,r,!1)}}class aT extends qx{createScope(e){this.scope=new iT(e,this.context)}initialise(){this.param&&this.param.declare("parameter",_x)}parseNode(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope),super.parseNode(e)}}aT.prototype.preventChildBlockScope=!0;class oT extends Kx{findLexicalBoundary(){return this}}class sT extends qx{hasEffects(e){return this.key.hasEffects(e)}hasEffectsWhenCalledAtPath(e,t,r){return e.length>0||this.value.hasEffectsWhenCalledAtPath(ax,t,r)}}class cT{constructor(e){this.included=!1,this.expressions=e}deoptimizePath(e){for(const t of this.expressions)t.deoptimizePath(e)}getLiteralValueAtPath(){return px}getReturnExpressionWhenCalledAtPath(e,t,r){return new cT(this.expressions.map((n=>n.getReturnExpressionWhenCalledAtPath(e,t,r))))}hasEffectsWhenAccessedAtPath(e,t){for(const r of this.expressions)if(r.hasEffectsWhenAccessedAtPath(e,t))return!0;return!1}hasEffectsWhenAssignedAtPath(e,t){for(const r of this.expressions)if(r.hasEffectsWhenAssignedAtPath(e,t))return!0;return!1}hasEffectsWhenCalledAtPath(e,t,r){for(const n of this.expressions)if(n.hasEffectsWhenCalledAtPath(e,t,r))return!0;return!1}include(e,t){for(const r of this.expressions)r.included||r.include(e,t)}includeCallArguments(){}}class lT extends qx{bind(){null!==this.declaration&&this.declaration.bind()}hasEffects(e){return null!==this.declaration&&this.declaration.hasEffects(e)}initialise(){this.context.addExport(this)}render(e,t,r){const{start:n,end:i}=r;null===this.declaration?e.remove(n,i):(e.remove(this.start,this.declaration.start),this.declaration.render(e,t,{start:n,end:i}))}}lT.prototype.needsBoundaries=!0;class dT extends XS{constructor(){super(...arguments),this.hoistedDeclarations=[]}addDeclaration(e,t,r,n){return this.hoistedDeclarations.push(e),this.parent.addDeclaration(e,t,r,n)}}const uT=Symbol("unset");class pT extends qx{constructor(){super(...arguments),this.testValue=uT}deoptimizeCache(){this.testValue=px}hasEffects(e){if(this.test.hasEffects(e))return!0;const t=this.getTestValue();if(t===px){const{brokenFlow:t}=e;if(this.consequent.hasEffects(e))return!0;const r=e.brokenFlow;return e.brokenFlow=t,null!==this.alternate&&(!!this.alternate.hasEffects(e)||(e.brokenFlow=e.brokenFlow<r?e.brokenFlow:r,!1))}return t?this.consequent.hasEffects(e):null!==this.alternate&&this.alternate.hasEffects(e)}include(e,t){if(this.included=!0,t)this.includeRecursively(t,e);else{const t=this.getTestValue();t===px?this.includeUnknownTest(e):this.includeKnownTest(e,t)}}parseNode(e){this.consequentScope=new dT(this.scope),this.consequent=new(this.context.nodeConstructors[e.consequent.type]||this.context.nodeConstructors.UnknownNode)(e.consequent,this,this.consequentScope),e.alternate&&(this.alternateScope=new dT(this.scope),this.alternate=new(this.context.nodeConstructors[e.alternate.type]||this.context.nodeConstructors.UnknownNode)(e.alternate,this,this.alternateScope)),super.parseNode(e)}render(e,t){const r=this.getTestValue(),n=[],i=this.test.included,a=!this.context.options.treeshake;i?this.test.render(e,t):(zE(this,e),e.remove(this.start,this.consequent.start)),this.consequent.included&&(a||r===px||r)?this.consequent.render(e,t):(e.overwrite(this.consequent.start,this.consequent.end,i?";":""),n.push(...this.consequentScope.hoistedDeclarations)),this.alternate&&(!this.alternate.included||!a&&r!==px&&r?(i&&this.shouldKeepAlternateBranch()?e.overwrite(this.alternate.start,this.end,";"):e.remove(this.consequent.end,this.end),n.push(...this.alternateScope.hoistedDeclarations)):(i?101===e.original.charCodeAt(this.alternate.start-1)&&e.prependLeft(this.alternate.start," "):e.remove(this.consequent.end,this.alternate.start),this.alternate.render(e,t))),this.renderHoistedDeclarations(n,e)}getTestValue(){return this.testValue===uT?this.testValue=this.test.getLiteralValueAtPath(ax,lx,this):this.testValue}includeKnownTest(e,t){this.test.shouldBeIncluded(e)&&this.test.include(e,!1),t&&this.consequent.shouldBeIncluded(e)&&this.consequent.includeAsSingleStatement(e,!1),null!==this.alternate&&!t&&this.alternate.shouldBeIncluded(e)&&this.alternate.includeAsSingleStatement(e,!1)}includeRecursively(e,t){this.test.include(t,e),this.consequent.include(t,e),null!==this.alternate&&this.alternate.include(t,e)}includeUnknownTest(e){this.test.include(e,!1);const{brokenFlow:t}=e;let r=0;this.consequent.shouldBeIncluded(e)&&(this.consequent.includeAsSingleStatement(e,!1),r=e.brokenFlow,e.brokenFlow=t),null!==this.alternate&&this.alternate.shouldBeIncluded(e)&&(this.alternate.includeAsSingleStatement(e,!1),e.brokenFlow=e.brokenFlow<r?e.brokenFlow:r)}renderHoistedDeclarations(e,t){const r=[...new Set(e.map((e=>{const t=e.variable;return t.included?t.getName():""})))].filter(Boolean).join(", ");if(r){const e=this.parent.type,n=e!==jE&&e!==RE;t.prependRight(this.start,`${n?"{ ":""}var ${r}; `),n&&t.appendLeft(this.end," }")}}shouldKeepAlternateBranch(){let e=this.parent;do{if(e instanceof pT&&e.alternate)return!0;if(e instanceof QS)return!1;e=e.parent}while(e);return!1}}class _T extends qx{bind(){}hasEffects(){return!1}initialise(){this.context.addImport(this)}render(e,t,r){e.remove(r.start,r.end)}}_T.prototype.needsBoundaries=!0;const fT={amd:["require"],cjs:["require"],system:["module"]},mT="ROLLUP_ASSET_URL_",gT="ROLLUP_CHUNK_URL_",hT="ROLLUP_FILE_URL_",yT={amd:["document","module","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module"],umd:["document","require","URL"]},vT={amd:["document","require","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},bT=(e,t="URL")=>`new ${t}(${e}).href`,ET=e=>bT(`'${e}', document.currentScript && document.currentScript.src || document.baseURI`),xT=e=>(t,r)=>{const n=e(r);return null===t?`({ url: ${n} })`:"url"===t?n:"undefined"},DT=e=>`(document.currentScript && document.currentScript.src || new URL('${e}', document.baseURI).href)`,ST={amd:e=>("."!==e[0]&&(e="./"+e),bT(`require.toUrl('${e}'), document.baseURI`)),cjs:e=>`(typeof document === 'undefined' ? ${bT(`'file:' + __dirname + '/${e}'`,"(require('u' + 'rl').URL)")} : ${ET(e)})`,es:e=>bT(`'${e}', import.meta.url`),iife:e=>ET(e),system:e=>bT(`'${e}', module.meta.url`),umd:e=>`(typeof document === 'undefined' ? ${bT(`'file:' + __dirname + '/${e}'`,"(require('u' + 'rl').URL)")} : ${ET(e)})`},TT={amd:xT((()=>bT("module.uri, document.baseURI"))),cjs:xT((e=>`(typeof document === 'undefined' ? ${bT("'file:' + __filename","(require('u' + 'rl').URL)")} : ${DT(e)})`)),iife:xT((e=>DT(e))),system:e=>null===e?"module.meta":`module.meta.${e}`,umd:xT((e=>`(typeof document === 'undefined' ? ${bT("'file:' + __filename","(require('u' + 'rl').URL)")} : ${DT(e)})`))};class CT extends qx{constructor(){super(...arguments),this.hasCachedEffect=!1}hasEffects(e){if(this.hasCachedEffect)return!0;for(const t of this.body)if(t.hasEffects(e))return this.hasCachedEffect=!0;return!1}include(e,t){this.included=!0;for(const r of this.body)(t||r.shouldBeIncluded(e))&&r.include(e,t)}render(e,t){this.body.length?$E(this.body,e,this.start,this.end,t):super.render(e,t)}}class AT extends qx{hasEffects(e){if(this.test&&this.test.hasEffects(e))return!0;for(const t of this.consequent){if(e.brokenFlow)break;if(t.hasEffects(e))return!0}return!1}include(e,t){this.included=!0,this.test&&this.test.include(e,t);for(const r of this.consequent)(t||r.shouldBeIncluded(e))&&r.include(e,t)}render(e,t,r){if(this.consequent.length){this.test&&this.test.render(e,t);const n=this.test?this.test.end:WE(e.original,"default",this.start)+7,i=WE(e.original,":",n)+1;$E(this.consequent,e,i,r.end,t)}else super.render(e,t)}}AT.prototype.needsBoundaries=!0;class kT extends qx{getLiteralValueAtPath(e){return e.length>0||1!==this.quasis.length?px:this.quasis[0].value.cooked}render(e,t){e.indentExclusionRanges.push([this.start,this.end]),super.render(e,t)}}class NT extends Kx{constructor(e,t){super(e),this.context=t,this.variables.set("this",new Hx("this",null,fx,t))}addExportDefaultDeclaration(e,t,r){const n=new CD(e,t,r);return this.variables.set("default",n),n}addNamespaceMemberAccess(){}deconflict(e,t,r){for(const n of this.children)n.deconflict(e,t,r)}findLexicalBoundary(){return this}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const r=this.context.traceVariable(e)||this.parent.findVariable(e);return r instanceof vD&&this.accessedOutsideVariables.set(e,r),r}}const wT={"!":e=>!e,"+":e=>+e,"-":e=>-e,delete:()=>px,typeof:e=>typeof e,void(){},"~":e=>~e};function FT(e,t){return null!==e.renderBaseName&&t.has(e)&&e.isReassigned}class PT extends qx{deoptimizePath(){for(const e of this.declarations)e.deoptimizePath(ax)}hasEffectsWhenAssignedAtPath(){return!1}include(e,t){this.included=!0;for(const r of this.declarations)(t||r.shouldBeIncluded(e))&&r.include(e,t)}includeAsSingleStatement(e,t){this.included=!0;for(const r of this.declarations)(t||r.shouldBeIncluded(e))&&(r.include(e,t),r.id.include(e,t))}initialise(){for(const e of this.declarations)e.declareDeclarator(this.kind)}render(e,t,r=aD){if(((e,t)=>{for(const r of e){if(!r.id.included)return!1;if(r.id.type===UE){if(t.has(r.id.variable))return!1}else{const e=[];if(r.id.addExportedVariables(e,t),e.length>0)return!1}}return!0})(this.declarations,t.exportNamesByVariable)){for(const r of this.declarations)r.render(e,t);r.isNoStatement||59===e.original.charCodeAt(this.end-1)||e.appendLeft(this.end,";")}else this.renderReplacedDeclarations(e,t,r)}renderDeclarationEnd(e,t,r,n,i,a,o,s){59===e.original.charCodeAt(this.end-1)&&e.remove(this.end-1,this.end),s||(t+=";"),null!==r?(10!==e.original.charCodeAt(n-1)||10!==e.original.charCodeAt(this.end)&&13!==e.original.charCodeAt(this.end)||(n--,13===e.original.charCodeAt(n)&&n--),n===r+1?e.overwrite(r,i,t):(e.overwrite(r,r+1,t),e.remove(n,i))):e.appendLeft(i,t),a.length>0&&e.appendLeft(i,` ${YE(a,o)};`)}renderReplacedDeclarations(e,t,{isNoStatement:r}){const n=qE(this.declarations,e,this.start+this.kind.length,this.end-(59===e.original.charCodeAt(this.end-1)?1:0));let i,a;a=JE(e.original,this.start+this.kind.length);let o=a-1;e.remove(this.start,o);let s,c,l=!1,d=!1,u="";const p=[];for(const{node:r,start:_,separator:f,contentEnd:m,end:g}of n)if(r.included){if(s="",c="",!r.id.included||r.id instanceof bD&&FT(r.id.variable,t.exportNamesByVariable))d&&(u+=";"),l=!1;else{if("system"===t.format&&null!==r.init)if(r.id.type!==UE)r.id.addExportedVariables(p,t.exportNamesByVariable);else{const n=t.exportNamesByVariable.get(r.id.variable);if(n){const i=t.compact?"":" ",a=WE(e.original,"=",r.id.end);e.prependLeft(JE(e.original,a+1),1===n.length?`exports('${n[0]}',${i}`:QE([r.id.variable],!1,t)),c+=")"}}l?u+=",":(d&&(u+=";"),s+=`${this.kind} `,l=!0)}a===o+1?e.overwrite(o,a,u+s):(e.overwrite(o,o+1,u),e.appendLeft(a,s)),r.render(e,t),i=m,a=g,d=!0,o=f,u=c}else e.remove(_,g);this.renderDeclarationEnd(e,u,o,i,a,p,t,r)}}const IT={ArrayExpression:class extends qx{bind(){super.bind();for(const e of this.elements)null!==e&&e.deoptimizePath(ox)}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?_x:Ux(Ox,e[0])}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,r){return 1!==e.length||Bx(Ox,e[0],this.included,t,r)}},ArrayPattern:class extends qx{addExportedVariables(e,t){for(const r of this.elements)null!==r&&r.addExportedVariables(e,t)}declare(e){const t=[];for(const r of this.elements)null!==r&&t.push(...r.declare(e,_x));return t}deoptimizePath(e){if(0===e.length)for(const t of this.elements)null!==t&&t.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){if(e.length>0)return!0;for(const e of this.elements)if(null!==e&&e.hasEffectsWhenAssignedAtPath(ax,t))return!0;return!1}},ArrowFunctionExpression:ZS,AssignmentExpression:class extends qx{constructor(){super(...arguments),this.deoptimized=!1}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),this.right.hasEffects(e)||this.left.hasEffects(e)||this.left.hasEffectsWhenAssignedAtPath(ax,e)}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.right.hasEffectsWhenAccessedAtPath(e,t)}include(e,t){let r;this.deoptimized||this.applyDeoptimizations(),this.included=!0,(t||"="!==this.operator||this.left.included||(r=Vx(),this.left.hasEffects(r)||this.left.hasEffectsWhenAssignedAtPath(ax,r)))&&this.left.include(e,t),this.right.include(e,t)}render(e,t,{preventASI:r,renderedParentType:n}=aD){if(this.left.included)this.left.render(e,t),this.right.render(e,t);else{const i=JE(e.original,WE(e.original,"=",this.left.end)+1);e.remove(this.start,i),r&&XE(e,i,this.right.start),this.right.render(e,t,{renderedParentType:n||this.parent.type})}if("system"===t.format){const r=this.left.variable&&t.exportNamesByVariable.get(this.left.variable);if("Identifier"===this.left.type&&r){const n=t.compact?"":" ",i=WE(e.original,this.operator,this.left.end),a=this.operator.length>1?`${r[0]}${n}${this.operator.slice(0,-1)}${n}`:"";e.overwrite(i,JE(e.original,i+this.operator.length),`=${n}${1===r.length?`exports('${r[0]}',${n}`:QE([this.left.variable],!1,t)}${a}`),e.appendLeft(this.right.end,")")}else{const r=[];this.left.addExportedVariables(r,t.exportNamesByVariable),r.length>0&&(e.prependRight(this.start,`(${QE(r,!0,t)}`),e.appendLeft(this.end,"))"))}}}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(ax),this.right.deoptimizePath(ox)}},AssignmentPattern:class extends qx{addExportedVariables(e,t){this.left.addExportedVariables(e,t)}bind(){super.bind(),this.left.deoptimizePath(ax),this.right.deoptimizePath(ox)}declare(e,t){return this.left.declare(e,t)}deoptimizePath(e){0===e.length&&this.left.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){return e.length>0||this.left.hasEffectsWhenAssignedAtPath(ax,t)}render(e,t,{isShorthandProperty:r}=aD){this.left.render(e,t,{isShorthandProperty:r}),this.right.render(e,t)}},AwaitExpression:class extends qx{hasEffects(e){return!e.ignore.returnAwaitYield||this.argument.hasEffects(e)}include(e,t){if(!this.included){this.included=!0;e:if(!this.context.usesTopLevelAwait){let e=this.parent;do{if(e instanceof xD||e instanceof ZS)break e}while(e=e.parent);this.context.usesTopLevelAwait=!0}}this.argument.include(e,t)}},BinaryExpression:class extends qx{deoptimizeCache(){}getLiteralValueAtPath(e,t,r){if(e.length>0)return px;const n=this.left.getLiteralValueAtPath(ax,t,r);if(n===px)return px;const i=this.right.getLiteralValueAtPath(ax,t,r);if(i===px)return px;const a=eT[this.operator];return a?a(n,i):px}hasEffects(e){return"+"===this.operator&&this.parent instanceof YS&&""===this.left.getLiteralValueAtPath(ax,lx,this)||super.hasEffects(e)}hasEffectsWhenAccessedAtPath(e){return e.length>1}},BlockStatement:QS,BreakStatement:class extends qx{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name),e.brokenFlow=2}else{if(!e.ignore.breaks)return!0;e.brokenFlow=1}return!1}include(e){this.included=!0,this.label&&(this.label.include(),e.includedLabels.add(this.label.name)),e.brokenFlow=this.label?2:1}},CallExpression:class extends qx{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.returnExpression=null,this.wasPathDeoptmizedWhileOptimized=!1}bind(){super.bind(),this.callee instanceof bD&&(this.scope.findVariable(this.callee.name).isNamespace&&this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${this.callee.name}')`},this.start),"eval"===this.callee.name&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en/#avoiding-eval"},this.start)),this.getReturnExpression(lx),this.callee instanceof nT&&!this.callee.variable&&this.callee.object.deoptimizePath(ox);for(const e of this.arguments)e.deoptimizePath(ox)}deoptimizeCache(){if(this.returnExpression!==_x){this.returnExpression=null;const e=this.getReturnExpression(lx),t=this.expressionsToBeDeoptimized;e!==_x&&(this.expressionsToBeDeoptimized=[],this.wasPathDeoptmizedWhileOptimized&&(e.deoptimizePath(ox),this.wasPathDeoptmizedWhileOptimized=!1));for(const e of t)e.deoptimizeCache()}}deoptimizePath(e){if(0===e.length)return;const t=this.context.deoptimizationTracker.getEntities(e);if(t.has(this))return;t.add(this);const r=this.getReturnExpression(lx);r!==_x&&(this.wasPathDeoptmizedWhileOptimized=!0,r.deoptimizePath(e))}getLiteralValueAtPath(e,t,r){const n=this.getReturnExpression(t);if(n===_x)return px;const i=t.getEntities(e);if(i.has(n))return px;this.expressionsToBeDeoptimized.push(r),i.add(n);const a=n.getLiteralValueAtPath(e,t,r);return i.delete(n),a}getReturnExpressionWhenCalledAtPath(e,t,r){const n=this.getReturnExpression(t);if(this.returnExpression===_x)return _x;const i=t.getEntities(e);if(i.has(n))return _x;this.expressionsToBeDeoptimized.push(r),i.add(n);const a=n.getReturnExpressionWhenCalledAtPath(e,t,r);return i.delete(n),a}hasEffects(e){var t;for(const t of this.arguments)if(t.hasEffects(e))return!0;return(!this.context.options.treeshake.annotations||!(null===(t=this.annotations)||void 0===t?void 0:t.some((e=>e.pure))))&&(this.callee.hasEffects(e)||this.callee.hasEffectsWhenCalledAtPath(ax,this.callOptions,e))}hasEffectsWhenAccessedAtPath(e,t){if(0===e.length)return!1;const r=t.accessed.getEntities(e);return!r.has(this)&&(r.add(this),this.returnExpression.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){if(0===e.length)return!0;const r=t.assigned.getEntities(e);return!r.has(this)&&(r.add(this),this.returnExpression.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,r){const n=(t.withNew?r.instantiated:r.called).getEntities(e,t);return!n.has(this)&&(n.add(this),this.returnExpression.hasEffectsWhenCalledAtPath(e,t,r))}include(e,t){t?(super.include(e,t),t===$x&&this.callee instanceof bD&&this.callee.variable&&this.callee.variable.markCalledFromTryStatement()):(this.included=!0,this.callee.include(e,!1)),this.callee.includeCallArguments(e,this.arguments),this.returnExpression.included||this.returnExpression.include(e,!1)}initialise(){this.callOptions={args:this.arguments,withNew:!1}}render(e,t,{renderedParentType:r,renderedSurroundingElement:n}=aD){const i=r||n;if(this.callee.render(e,t,i?{renderedSurroundingElement:i}:aD),this.arguments.length>0)if(this.arguments[this.arguments.length-1].included)for(const r of this.arguments)r.render(e,t);else{let r=this.arguments.length-2;for(;r>=0&&!this.arguments[r].included;)r--;if(r>=0){for(let n=0;n<=r;n++)this.arguments[n].render(e,t);e.remove(WE(e.original,",",this.arguments[r].end),this.end-1)}else e.remove(WE(e.original,"(",this.callee.end)+1,this.end-1)}}getReturnExpression(e){return null===this.returnExpression?(this.returnExpression=_x,this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(ax,e,this)):this.returnExpression}},CatchClause:aT,ChainExpression:class extends qx{},ClassBody:class extends qx{createScope(e){this.scope=new oT(e)}hasEffectsWhenCalledAtPath(e,t,r){return e.length>0||null!==this.classConstructor&&this.classConstructor.hasEffectsWhenCalledAtPath(ax,t,r)}initialise(){for(const e of this.body)if(e instanceof sT&&"constructor"===e.kind)return this.classConstructor=e,void 0;this.classConstructor=null}},ClassDeclaration:Yx,ClassExpression:class extends Xx{render(e,t,{renderedParentType:r,renderedSurroundingElement:n}=aD){super.render(e,t),(r||n)===BE&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}},ConditionalExpression:class extends qx{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.usedBranch=null,this.wasPathDeoptimizedWhileOptimized=!1}bind(){super.bind(),this.getUsedBranch()}deoptimizeCache(){if(null!==this.usedBranch){const e=this.usedBranch===this.consequent?this.alternate:this.consequent;this.usedBranch=null;const t=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.wasPathDeoptimizedWhileOptimized&&e.deoptimizePath(ox);for(const e of t)e.deoptimizeCache()}}deoptimizePath(e){if(e.length>0){const t=this.getUsedBranch();null===t?(this.consequent.deoptimizePath(e),this.alternate.deoptimizePath(e)):(this.wasPathDeoptimizedWhileOptimized=!0,t.deoptimizePath(e))}}getLiteralValueAtPath(e,t,r){const n=this.getUsedBranch();return null===n?px:(this.expressionsToBeDeoptimized.push(r),n.getLiteralValueAtPath(e,t,r))}getReturnExpressionWhenCalledAtPath(e,t,r){const n=this.getUsedBranch();return null===n?new cT([this.consequent.getReturnExpressionWhenCalledAtPath(e,t,r),this.alternate.getReturnExpressionWhenCalledAtPath(e,t,r)]):(this.expressionsToBeDeoptimized.push(r),n.getReturnExpressionWhenCalledAtPath(e,t,r))}hasEffects(e){return!!this.test.hasEffects(e)||(null===this.usedBranch?this.consequent.hasEffects(e)||this.alternate.hasEffects(e):this.usedBranch.hasEffects(e))}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null===this.usedBranch?this.consequent.hasEffectsWhenAccessedAtPath(e,t)||this.alternate.hasEffectsWhenAccessedAtPath(e,t):this.usedBranch.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||(null===this.usedBranch?this.consequent.hasEffectsWhenAssignedAtPath(e,t)||this.alternate.hasEffectsWhenAssignedAtPath(e,t):this.usedBranch.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,r){return null===this.usedBranch?this.consequent.hasEffectsWhenCalledAtPath(e,t,r)||this.alternate.hasEffectsWhenCalledAtPath(e,t,r):this.usedBranch.hasEffectsWhenCalledAtPath(e,t,r)}include(e,t){this.included=!0,t||this.test.shouldBeIncluded(e)||null===this.usedBranch?(this.test.include(e,t),this.consequent.include(e,t),this.alternate.include(e,t)):this.usedBranch.include(e,t)}includeCallArguments(e,t){null===this.usedBranch?(this.consequent.includeCallArguments(e,t),this.alternate.includeCallArguments(e,t)):this.usedBranch.includeCallArguments(e,t)}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,preventASI:i}=aD){if(this.test.included)super.render(e,t);else{const a=WE(e.original,":",this.consequent.end),o=JE(e.original,(this.consequent.included?WE(e.original,"?",this.test.end):a)+1);i&&XE(e,o,this.usedBranch.start),e.remove(this.start,o),this.consequent.included&&e.remove(a,this.end),zE(this,e),this.usedBranch.render(e,t,{isCalleeOfRenderedParent:r?n:this.parent.callee===this,preventASI:!0,renderedParentType:r||this.parent.type})}}getUsedBranch(){if(this.isBranchResolutionAnalysed)return this.usedBranch;this.isBranchResolutionAnalysed=!0;const e=this.test.getLiteralValueAtPath(ax,lx,this);return e===px?null:this.usedBranch=e?this.consequent:this.alternate}},ContinueStatement:class extends qx{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name),e.brokenFlow=2}else{if(!e.ignore.continues)return!0;e.brokenFlow=1}return!1}include(e){this.included=!0,this.label&&(this.label.include(),e.includedLabels.add(this.label.name)),e.brokenFlow=this.label?2:1}},DoWhileStatement:class extends qx{hasEffects(e){if(this.test.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r,continues:n}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=r,e.ignore.continues=n,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.test.include(e,t);const{brokenFlow:r}=e;this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}},EmptyStatement:class extends qx{hasEffects(){return!1}},ExportAllDeclaration:qS,ExportDefaultDeclaration:SD,ExportNamedDeclaration:lT,ExportSpecifier:class extends qx{},ExpressionStatement:YS,ForInStatement:class extends qx{bind(){this.left.bind(),this.left.deoptimizePath(ax),this.right.bind(),this.body.bind()}createScope(e){this.scope=new XS(e)}hasEffects(e){if(this.left&&(this.left.hasEffects(e)||this.left.hasEffectsWhenAssignedAtPath(ax,e))||this.right&&this.right.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r,continues:n}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=r,e.ignore.continues=n,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.left.include(e,t||!0),this.left.deoptimizePath(ax),this.right.include(e,t);const{brokenFlow:r}=e;this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}render(e,t){this.left.render(e,t,HE),this.right.render(e,t,HE),110===e.original.charCodeAt(this.right.start-1)&&e.prependLeft(this.right.start," "),this.body.render(e,t)}},ForOfStatement:class extends qx{bind(){this.left.bind(),this.left.deoptimizePath(ax),this.right.bind(),this.body.bind()}createScope(e){this.scope=new XS(e)}hasEffects(){return!0}include(e,t){this.included=!0,this.left.include(e,t||!0),this.left.deoptimizePath(ax),this.right.include(e,t);const{brokenFlow:r}=e;this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}render(e,t){this.left.render(e,t,HE),this.right.render(e,t,HE),102===e.original.charCodeAt(this.right.start-1)&&e.prependLeft(this.right.start," "),this.body.render(e,t)}},ForStatement:class extends qx{createScope(e){this.scope=new XS(e)}hasEffects(e){if(this.init&&this.init.hasEffects(e)||this.test&&this.test.hasEffects(e)||this.update&&this.update.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r,continues:n}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=r,e.ignore.continues=n,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.init&&this.init.includeAsSingleStatement(e,t),this.test&&this.test.include(e,t);const{brokenFlow:r}=e;this.update&&this.update.include(e,t),this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}render(e,t){this.init&&this.init.render(e,t,HE),this.test&&this.test.render(e,t,HE),this.update&&this.update.render(e,t,HE),this.body.render(e,t)}},FunctionDeclaration:DD,FunctionExpression:class extends xD{render(e,t,{renderedParentType:r,renderedSurroundingElement:n}=aD){super.render(e,t),(r||n)===BE&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}},Identifier:bD,IfStatement:pT,ImportDeclaration:_T,ImportDefaultSpecifier:class extends qx{},ImportExpression:class extends qx{constructor(){super(...arguments),this.inlineNamespace=null,this.mechanism=null,this.resolution=null}hasEffects(){return!0}include(e,t){this.included||(this.included=!0,this.context.includeDynamicImport(this),this.scope.addAccessedDynamicImport(this)),this.source.include(e,t)}initialise(){this.context.addDynamicImport(this)}render(e,t){if(this.inlineNamespace){const r=t.compact?"":" ",n=t.compact?"":";";return e.overwrite(this.start,this.end,`Promise.resolve().then(function${r}()${r}{${r}return ${this.inlineNamespace.getName()}${n}${r}})`),void 0}this.mechanism&&(e.overwrite(this.start,WE(e.original,"(",this.start+6)+1,this.mechanism.left),e.overwrite(this.end-1,this.end,this.mechanism.right)),this.source.render(e,t)}renderFinalResolution(e,t,r,n){if(e.overwrite(this.source.start,this.source.end,t),r){const t=n.compact?"":" ",i=n.compact?"":";";e.prependLeft(this.end,`.then(function${t}(n)${t}{${t}return n.${r}${i}${t}})`)}}setExternalResolution(e,t,r,n,i){this.resolution=t;const a=[...fT[r.format]||[]];let o;({helper:o,mechanism:this.mechanism}=this.getDynamicImportMechanismAndHelper(t,e,r,n)),o&&a.push(o),a.length>0&&this.scope.addAccessedGlobals(a,i)}setInternalResolution(e){this.inlineNamespace=e}getDynamicImportMechanismAndHelper(e,t,r,n){const i=n.hookFirstSync("renderDynamicImport",[{customResolution:"string"==typeof this.resolution?this.resolution:null,format:r.format,moduleId:this.context.module.id,targetModuleId:this.resolution&&"string"!=typeof this.resolution?this.resolution.id:null}]);if(i)return{helper:null,mechanism:i};switch(r.format){case"cjs":{const n=r.compact?"":" ",i=r.compact?"":";",a=`Promise.resolve().then(function${n}()${n}{${n}return`,o=this.getInteropHelper(e,t,r.interop);return{helper:o,mechanism:o?{left:`${a} /*#__PURE__*/${o}(require(`,right:`))${i}${n}})`}:{left:`${a} require(`,right:`)${i}${n}})`}}}case"amd":{const n=r.compact?"":" ",i=r.compact?"c":"resolve",a=r.compact?"e":"reject",o=this.getInteropHelper(e,t,r.interop);return{helper:o,mechanism:{left:`new Promise(function${n}(${i},${n}${a})${n}{${n}require([`,right:`],${n}${o?`function${n}(m)${n}{${n}${i}(/*#__PURE__*/${o}(m));${n}}`:i},${n}${a})${n}})`}}}case"system":return{helper:null,mechanism:{left:"module.import(",right:")"}};case"es":if(r.dynamicImportFunction)return{helper:null,mechanism:{left:`${r.dynamicImportFunction}(`,right:")"}}}return{helper:null,mechanism:null}}getInteropHelper(e,t,r){return"external"===t?eS[String(r(e instanceof WD?e.id:null))]:"default"===t?rS():null}},ImportNamespaceSpecifier:class extends qx{},ImportSpecifier:class extends qx{},LabeledStatement:class extends qx{hasEffects(e){const t=e.brokenFlow;return e.ignore.labels.add(this.label.name),!!this.body.hasEffects(e)||(e.ignore.labels.delete(this.label.name),e.includedLabels.has(this.label.name)&&(e.includedLabels.delete(this.label.name),e.brokenFlow=t),!1)}include(e,t){this.included=!0;const r=e.brokenFlow;this.body.include(e,t),(t||e.includedLabels.has(this.label.name))&&(this.label.include(),e.includedLabels.delete(this.label.name),e.brokenFlow=r)}render(e,t){this.label.included?this.label.render(e,t):e.remove(this.start,JE(e.original,WE(e.original,":",this.label.end)+1)),this.body.render(e,t)}},Literal:tT,LogicalExpression:class extends qx{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.unusedBranch=null,this.usedBranch=null,this.wasPathDeoptimizedWhileOptimized=!1}bind(){super.bind(),this.getUsedBranch()}deoptimizeCache(){if(null!==this.usedBranch){this.usedBranch=null;const e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.wasPathDeoptimizedWhileOptimized&&this.unusedBranch.deoptimizePath(ox);for(const t of e)t.deoptimizeCache()}}deoptimizePath(e){const t=this.getUsedBranch();null===t?(this.left.deoptimizePath(e),this.right.deoptimizePath(e)):(this.wasPathDeoptimizedWhileOptimized=!0,t.deoptimizePath(e))}getLiteralValueAtPath(e,t,r){const n=this.getUsedBranch();return null===n?px:(this.expressionsToBeDeoptimized.push(r),n.getLiteralValueAtPath(e,t,r))}getReturnExpressionWhenCalledAtPath(e,t,r){const n=this.getUsedBranch();return null===n?new cT([this.left.getReturnExpressionWhenCalledAtPath(e,t,r),this.right.getReturnExpressionWhenCalledAtPath(e,t,r)]):(this.expressionsToBeDeoptimized.push(r),n.getReturnExpressionWhenCalledAtPath(e,t,r))}hasEffects(e){return!!this.left.hasEffects(e)||this.usedBranch!==this.left&&this.right.hasEffects(e)}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null===this.usedBranch?this.left.hasEffectsWhenAccessedAtPath(e,t)||this.right.hasEffectsWhenAccessedAtPath(e,t):this.usedBranch.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||(null===this.usedBranch?this.left.hasEffectsWhenAssignedAtPath(e,t)||this.right.hasEffectsWhenAssignedAtPath(e,t):this.usedBranch.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,r){return null===this.usedBranch?this.left.hasEffectsWhenCalledAtPath(e,t,r)||this.right.hasEffectsWhenCalledAtPath(e,t,r):this.usedBranch.hasEffectsWhenCalledAtPath(e,t,r)}include(e,t){this.included=!0,t||this.usedBranch===this.right&&this.left.shouldBeIncluded(e)||null===this.usedBranch?(this.left.include(e,t),this.right.include(e,t)):this.usedBranch.include(e,t)}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,preventASI:i}=aD){if(this.left.included&&this.right.included)this.left.render(e,t,{preventASI:i}),this.right.render(e,t);else{const a=WE(e.original,this.operator,this.left.end);if(this.right.included){const t=JE(e.original,a+2);e.remove(this.start,t),i&&XE(e,t,this.right.start)}else e.remove(a,this.end);zE(this,e),this.usedBranch.render(e,t,{isCalleeOfRenderedParent:r?n:this.parent.callee===this,preventASI:i,renderedParentType:r||this.parent.type})}}getUsedBranch(){if(!this.isBranchResolutionAnalysed){this.isBranchResolutionAnalysed=!0;const e=this.left.getLiteralValueAtPath(ax,lx,this);if(e===px)return null;"||"===this.operator&&e||"&&"===this.operator&&!e||"??"===this.operator&&null!=e?(this.usedBranch=this.left,this.unusedBranch=this.right):(this.usedBranch=this.right,this.unusedBranch=this.left)}return this.usedBranch}},MemberExpression:nT,MetaProperty:class extends qx{addAccessedGlobals(e,t){const r=this.metaProperty,n=(r&&(r.startsWith(hT)||r.startsWith(mT)||r.startsWith(gT))?vT:yT)[e];n.length>0&&this.scope.addAccessedGlobals(n,t)}getReferencedFileName(e){const t=this.metaProperty;return t&&t.startsWith(hT)?e.getFileName(t.substr(hT.length)):null}hasEffects(){return!1}hasEffectsWhenAccessedAtPath(e){return e.length>1}include(){if(!this.included&&(this.included=!0,"import"===this.meta.name)){this.context.addImportMeta(this);const e=this.parent;this.metaProperty=e instanceof nT&&"string"==typeof e.propertyKey?e.propertyKey:null}}renderFinalMechanism(e,t,r,n){var i;const a=this.parent,o=this.metaProperty;if(o&&(o.startsWith(hT)||o.startsWith(mT)||o.startsWith(gT))){let i,s=null,c=null,l=null;o.startsWith(hT)?(s=o.substr(hT.length),i=n.getFileName(s)):o.startsWith(mT)?(MS(`Using the "${mT}" prefix to reference files is deprecated. Use the "${hT}" prefix instead.`,!0,this.context.options),c=o.substr(mT.length),i=n.getFileName(c)):(MS(`Using the "${gT}" prefix to reference files is deprecated. Use the "${hT}" prefix instead.`,!0,this.context.options),l=o.substr(gT.length),i=n.getFileName(l));const d=HD(Xe(We(t),i));let u;return null!==c&&(u=n.hookFirstSync("resolveAssetUrl",[{assetFileName:i,chunkId:t,format:r,moduleId:this.context.module.id,relativeAssetPath:d}])),u||(u=n.hookFirstSync("resolveFileUrl",[{assetReferenceId:c,chunkId:t,chunkReferenceId:l,fileName:i,format:r,moduleId:this.context.module.id,referenceId:s||c||l,relativePath:d}])||ST[r](d)),e.overwrite(a.start,a.end,u,{contentOnly:!0}),void 0}const s=n.hookFirstSync("resolveImportMeta",[o,{chunkId:t,format:r,moduleId:this.context.module.id}])||(null===(i=TT[r])||void 0===i?void 0:i.call(TT,o,t));"string"==typeof s&&(a instanceof nT?e.overwrite(a.start,a.end,s,{contentOnly:!0}):e.overwrite(this.start,this.end,s,{contentOnly:!0}))}},MethodDefinition:sT,NewExpression:class extends qx{bind(){super.bind();for(const e of this.arguments)e.deoptimizePath(ox)}hasEffects(e){var t;for(const t of this.arguments)if(t.hasEffects(e))return!0;return(!this.context.options.treeshake.annotations||!(null===(t=this.annotations)||void 0===t?void 0:t.some((e=>e.pure))))&&(this.callee.hasEffects(e)||this.callee.hasEffectsWhenCalledAtPath(ax,this.callOptions,e))}hasEffectsWhenAccessedAtPath(e){return e.length>1}initialise(){this.callOptions={args:this.arguments,withNew:!0}}},ObjectExpression:class extends qx{constructor(){super(...arguments),this.deoptimizedPaths=new Set,this.expressionsToBeDeoptimized=new Map,this.hasUnknownDeoptimizedProperty=!1,this.propertyMap=null,this.unmatchablePropertiesRead=[],this.unmatchablePropertiesWrite=[]}bind(){super.bind(),this.getPropertyMap()}deoptimizeCache(){this.hasUnknownDeoptimizedProperty||this.deoptimizeAllProperties()}deoptimizePath(e){if(this.hasUnknownDeoptimizedProperty)return;const t=this.getPropertyMap(),r=e[0];if(1===e.length){if("string"!=typeof r)return this.deoptimizeAllProperties(),void 0;if(!this.deoptimizedPaths.has(r)){this.deoptimizedPaths.add(r);const e=this.expressionsToBeDeoptimized.get(r);if(e)for(const t of e)t.deoptimizeCache()}}const n=1===e.length?ox:e.slice(1);for(const e of"string"==typeof r?t[r]?t[r].propertiesRead:[]:this.properties)e.deoptimizePath(n)}getLiteralValueAtPath(e,t,r){const n=this.getPropertyMap(),i=e[0];return 0===e.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof i||this.deoptimizedPaths.has(i)?px:1!==e.length||n[i]||Ix[i]||0!==this.unmatchablePropertiesRead.length?!n[i]||null===n[i].exactMatchRead||n[i].propertiesRead.length>1?px:(nx(this.expressionsToBeDeoptimized,i,(()=>[])).push(r),n[i].exactMatchRead.getLiteralValueAtPath(e.slice(1),t,r)):(nx(this.expressionsToBeDeoptimized,i,(()=>[])).push(r),void 0)}getReturnExpressionWhenCalledAtPath(e,t,r){const n=this.getPropertyMap(),i=e[0];return 0===e.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof i||this.deoptimizedPaths.has(i)?_x:1!==e.length||!Ix[i]||0!==this.unmatchablePropertiesRead.length||n[i]&&null!==n[i].exactMatchRead?!n[i]||null===n[i].exactMatchRead||n[i].propertiesRead.length>1?_x:(nx(this.expressionsToBeDeoptimized,i,(()=>[])).push(r),n[i].exactMatchRead.getReturnExpressionWhenCalledAtPath(e.slice(1),t,r)):Ux(Ix,i)}hasEffectsWhenAccessedAtPath(e,t){if(0===e.length)return!1;const r=e[0],n=this.propertyMap;if(e.length>1&&(this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths.has(r)||!n[r]||null===n[r].exactMatchRead))return!0;const i=e.slice(1);for(const e of"string"!=typeof r?this.properties:n[r]?n[r].propertiesRead:[])if(e.hasEffectsWhenAccessedAtPath(i,t))return!0;return!1}hasEffectsWhenAssignedAtPath(e,t){const r=e[0],n=this.propertyMap;if(e.length>1&&(this.hasUnknownDeoptimizedProperty||this.deoptimizedPaths.has(r)||!n[r]||null===n[r].exactMatchRead))return!0;const i=e.slice(1);for(const a of"string"!=typeof r?this.properties:e.length>1?n[r].propertiesRead:n[r]?n[r].propertiesWrite:[])if(a.hasEffectsWhenAssignedAtPath(i,t))return!0;return!1}hasEffectsWhenCalledAtPath(e,t,r){const n=e[0];if("string"!=typeof n||this.hasUnknownDeoptimizedProperty||this.deoptimizedPaths.has(n)||(this.propertyMap[n]?!this.propertyMap[n].exactMatchRead:e.length>1||!Ix[n]))return!0;const i=e.slice(1);if(this.propertyMap[n])for(const e of this.propertyMap[n].propertiesRead)if(e.hasEffectsWhenCalledAtPath(i,t,r))return!0;return!(1!==e.length||!Ix[n])&&Bx(Ix,n,this.included,t,r)}render(e,t,{renderedParentType:r,renderedSurroundingElement:n}=aD){super.render(e,t);const i=r||n;i!==BE&&"ArrowFunctionExpression"!==i||(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}deoptimizeAllProperties(){this.hasUnknownDeoptimizedProperty=!0;for(const e of this.properties)e.deoptimizePath(ox);for(const e of this.expressionsToBeDeoptimized.values())for(const t of e)t.deoptimizeCache()}getPropertyMap(){if(null!==this.propertyMap)return this.propertyMap;const e=this.propertyMap=Object.create(null);for(let t=this.properties.length-1;t>=0;t--){const r=this.properties[t];if(r instanceof eD){this.unmatchablePropertiesRead.push(r);continue}const n="get"!==r.kind,i="set"!==r.kind;let a;if(r.computed){const e=r.key.getLiteralValueAtPath(ax,lx,this);if(e===px){i?this.unmatchablePropertiesRead.push(r):this.unmatchablePropertiesWrite.push(r);continue}a=String(e)}else a=r.key instanceof bD?r.key.name:String(r.key.value);const o=e[a];o?(i&&null===o.exactMatchRead&&(o.exactMatchRead=r,o.propertiesRead.push(r,...this.unmatchablePropertiesRead)),n&&!i&&null===o.exactMatchWrite&&(o.exactMatchWrite=r,o.propertiesWrite.push(r,...this.unmatchablePropertiesWrite))):e[a]={exactMatchRead:i?r:null,exactMatchWrite:n?r:null,propertiesRead:i?[r,...this.unmatchablePropertiesRead]:[],propertiesWrite:n&&!i?[r,...this.unmatchablePropertiesWrite]:[]}}return e}},ObjectPattern:class extends qx{addExportedVariables(e,t){for(const r of this.properties)"Property"===r.type?r.value.addExportedVariables(e,t):r.argument.addExportedVariables(e,t)}declare(e,t){const r=[];for(const n of this.properties)r.push(...n.declare(e,t));return r}deoptimizePath(e){if(0===e.length)for(const t of this.properties)t.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){if(e.length>0)return!0;for(const e of this.properties)if(e.hasEffectsWhenAssignedAtPath(ax,t))return!0;return!1}},PrivateIdentifier:class extends qx{},Program:CT,Property:class extends qx{constructor(){super(...arguments),this.declarationInit=null,this.returnExpression=null}bind(){super.bind(),"get"===this.kind&&this.getReturnExpression(),null!==this.declarationInit&&this.declarationInit.deoptimizePath([ix,ix])}declare(e,t){return this.declarationInit=t,this.value.declare(e,_x)}deoptimizeCache(){}deoptimizePath(e){"get"===this.kind?this.getReturnExpression().deoptimizePath(e):this.value.deoptimizePath(e)}getLiteralValueAtPath(e,t,r){return"get"===this.kind?this.getReturnExpression().getLiteralValueAtPath(e,t,r):this.value.getLiteralValueAtPath(e,t,r)}getReturnExpressionWhenCalledAtPath(e,t,r){return"get"===this.kind?this.getReturnExpression().getReturnExpressionWhenCalledAtPath(e,t,r):this.value.getReturnExpressionWhenCalledAtPath(e,t,r)}hasEffects(e){const t=this.context.options.treeshake.propertyReadSideEffects;return"ObjectPattern"===this.parent.type&&"always"===t||this.key.hasEffects(e)||this.value.hasEffects(e)}hasEffectsWhenAccessedAtPath(e,t){if("get"===this.kind){const r=t.accessed.getEntities(e);return!r.has(this)&&(r.add(this),this.value.hasEffectsWhenCalledAtPath(ax,this.accessorCallOptions,t)||e.length>0&&this.returnExpression.hasEffectsWhenAccessedAtPath(e,t))}return this.value.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){if("get"===this.kind){const r=t.assigned.getEntities(e);return!r.has(this)&&(r.add(this),this.returnExpression.hasEffectsWhenAssignedAtPath(e,t))}if("set"===this.kind){const r=t.assigned.getEntities(e);return!r.has(this)&&(r.add(this),this.value.hasEffectsWhenCalledAtPath(ax,this.accessorCallOptions,t))}return this.value.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,r){if("get"===this.kind){const n=(t.withNew?r.instantiated:r.called).getEntities(e,t);return!n.has(this)&&(n.add(this),this.returnExpression.hasEffectsWhenCalledAtPath(e,t,r))}return this.value.hasEffectsWhenCalledAtPath(e,t,r)}initialise(){this.accessorCallOptions={args:rx,withNew:!1}}render(e,t){this.shorthand||this.key.render(e,t),this.value.render(e,t,{isShorthandProperty:this.shorthand})}getReturnExpression(){return null===this.returnExpression?(this.returnExpression=_x,this.returnExpression=this.value.getReturnExpressionWhenCalledAtPath(ax,lx,this)):this.returnExpression}},PropertyDefinition:class extends qx{hasEffects(e){return this.key.hasEffects(e)||this.static&&null!==this.value&&this.value.hasEffects(e)}},RestElement:ED,ReturnStatement:class extends qx{hasEffects(e){return!(e.ignore.returnAwaitYield&&(null===this.argument||!this.argument.hasEffects(e))&&(e.brokenFlow=2,1))}include(e,t){this.included=!0,this.argument&&this.argument.include(e,t),e.brokenFlow=2}initialise(){this.scope.addReturnExpression(this.argument||_x)}render(e,t){this.argument&&(this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+6&&e.prependLeft(this.start+6," "))}},SequenceExpression:class extends qx{deoptimizePath(e){e.length>0&&this.expressions[this.expressions.length-1].deoptimizePath(e)}getLiteralValueAtPath(e,t,r){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(e,t,r)}hasEffects(e){for(const t of this.expressions)if(t.hasEffects(e))return!0;return!1}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.expressions[this.expressions.length-1].hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||this.expressions[this.expressions.length-1].hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,r){return this.expressions[this.expressions.length-1].hasEffectsWhenCalledAtPath(e,t,r)}include(e,t){this.included=!0;for(let r=0;r<this.expressions.length-1;r++){const n=this.expressions[r];(t||n.shouldBeIncluded(e))&&n.include(e,t)}this.expressions[this.expressions.length-1].include(e,t)}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,preventASI:i}=aD){let a=0;for(const{node:o,start:s,end:c}of qE(this.expressions,e,this.start,this.end))o.included?(a++,1===a&&i&&XE(e,s,o.start),o===this.expressions[this.expressions.length-1]&&1===a?o.render(e,t,{isCalleeOfRenderedParent:r?n:this.parent.callee===this,renderedParentType:r||this.parent.type}):o.render(e,t)):VE(o,e,s,c)}},SpreadElement:eD,Super:class extends qx{},SwitchCase:AT,SwitchStatement:class extends qx{createScope(e){this.scope=new XS(e)}hasEffects(e){if(this.discriminant.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r}}=e;let n=1/0;e.ignore.breaks=!0;for(const r of this.cases){if(r.hasEffects(e))return!0;n=e.brokenFlow<n?e.brokenFlow:n,e.brokenFlow=t}return null!==this.defaultCase&&1!==n&&(e.brokenFlow=n),e.ignore.breaks=r,!1}include(e,t){this.included=!0,this.discriminant.include(e,t);const{brokenFlow:r}=e;let n=1/0,i=t||null!==this.defaultCase&&this.defaultCase<this.cases.length-1;for(let a=this.cases.length-1;a>=0;a--){const o=this.cases[a];if(o.included&&(i=!0),!i){const e=Vx();e.ignore.breaks=!0,i=o.hasEffects(e)}i?(o.include(e,t),n=n<e.brokenFlow?n:e.brokenFlow,e.brokenFlow=r):n=r}i&&null!==this.defaultCase&&1!==n&&(e.brokenFlow=n)}initialise(){for(let e=0;e<this.cases.length;e++)if(null===this.cases[e].test)return this.defaultCase=e,void 0;this.defaultCase=null}render(e,t){this.discriminant.render(e,t),this.cases.length>0&&$E(this.cases,e,this.cases[0].start,this.end-1,t)}},TaggedTemplateExpression:class extends qx{bind(){if(super.bind(),this.tag.type===UE){const e=this.tag.name;this.scope.findVariable(e).isNamespace&&this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${e}')`},this.start),"eval"===e&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en/#avoiding-eval"},this.start)}}hasEffects(e){return super.hasEffects(e)||this.tag.hasEffectsWhenCalledAtPath(ax,this.callOptions,e)}initialise(){this.callOptions={args:rx,withNew:!1}}},TemplateElement:class extends qx{bind(){}hasEffects(){return!1}include(){this.included=!0}parseNode(e){this.value=e.value,super.parseNode(e)}render(){}},TemplateLiteral:kT,ThisExpression:class extends qx{bind(){super.bind(),this.variable=this.scope.findVariable("this")}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.variable.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return this.variable.hasEffectsWhenAssignedAtPath(e,t)}initialise(){this.alias=this.scope.findLexicalBoundary()instanceof NT?this.context.moduleContext:null,"undefined"===this.alias&&this.context.warn({code:"THIS_IS_UNDEFINED",message:"The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten",url:"https://rollupjs.org/guide/en/#error-this-is-undefined"},this.start)}render(e){null!==this.alias&&e.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}},ThrowStatement:class extends qx{hasEffects(){return!0}include(e,t){this.included=!0,this.argument.include(e,t),e.brokenFlow=2}render(e,t){this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," ")}},TryStatement:class extends qx{constructor(){super(...arguments),this.directlyIncluded=!1,this.includedLabelsAfterBlock=null}hasEffects(e){return(this.context.options.treeshake.tryCatchDeoptimization?this.block.body.length>0:this.block.hasEffects(e))||null!==this.finalizer&&this.finalizer.hasEffects(e)}include(e,t){var r;const n=null===(r=this.context.options.treeshake)||void 0===r?void 0:r.tryCatchDeoptimization,{brokenFlow:i}=e;if(this.directlyIncluded&&n){if(this.includedLabelsAfterBlock)for(const t of this.includedLabelsAfterBlock)e.includedLabels.add(t)}else this.included=!0,this.directlyIncluded=!0,this.block.include(e,n?$x:t),e.includedLabels.size>0&&(this.includedLabelsAfterBlock=[...e.includedLabels]),e.brokenFlow=i;null!==this.handler&&(this.handler.include(e,t),e.brokenFlow=i),null!==this.finalizer&&this.finalizer.include(e,t)}},UnaryExpression:class extends qx{bind(){super.bind(),"delete"===this.operator&&this.argument.deoptimizePath(ax)}getLiteralValueAtPath(e,t,r){if(e.length>0)return px;const n=this.argument.getLiteralValueAtPath(ax,t,r);return n===px?px:wT[this.operator](n)}hasEffects(e){return!("typeof"===this.operator&&this.argument instanceof bD)&&(this.argument.hasEffects(e)||"delete"===this.operator&&this.argument.hasEffectsWhenAssignedAtPath(ax,e))}hasEffectsWhenAccessedAtPath(e){return"void"===this.operator?e.length>0:e.length>1}},UnknownNode:class extends qx{hasEffects(){return!0}include(e){super.include(e,!0)}},UpdateExpression:class extends qx{bind(){super.bind(),this.argument.deoptimizePath(ax),this.argument instanceof bD&&(this.scope.findVariable(this.argument.name).isReassigned=!0)}hasEffects(e){return this.argument.hasEffects(e)||this.argument.hasEffectsWhenAssignedAtPath(ax,e)}hasEffectsWhenAccessedAtPath(e){return e.length>1}render(e,t){if(this.argument.render(e,t),"system"===t.format){const r=this.argument.variable,n=t.exportNamesByVariable.get(r);if(n&&n.length){const i=t.compact?"":" ",a=r.getName();if(this.prefix)1===n.length?e.overwrite(this.start,this.end,`exports('${n[0]}',${i}${this.operator}${a})`):e.overwrite(this.start,this.end,`(${this.operator}${a},${i}${YE([r],t)},${i}${a})`);else if(n.length>1)e.overwrite(this.start,this.end,`(${QE([r],!1,t)}${this.operator}${a}))`);else{let t;switch(this.operator){case"++":t=`${a}${i}+${i}1`;break;case"--":t=`${a}${i}-${i}1`}e.overwrite(this.start,this.end,`(exports('${n[0]}',${i}${t}),${i}${a}${this.operator})`)}}}}},VariableDeclaration:PT,VariableDeclarator:class extends qx{declareDeclarator(e){this.id.declare(e,this.init||fx)}deoptimizePath(e){this.id.deoptimizePath(e)}hasEffects(e){return this.id.hasEffects(e)||null!==this.init&&this.init.hasEffects(e)}include(e,t){this.included=!0,(t||this.id.shouldBeIncluded(e))&&this.id.include(e,t),this.init&&this.init.include(e,t)}render(e,t){const r=this.id.included;if(r)this.id.render(e,t);else{const t=WE(e.original,"=",this.id.end);e.remove(this.start,JE(e.original,t+1))}if(this.init)this.init.render(e,t,r?aD:{renderedParentType:BE});else if(this.id instanceof bD&&FT(this.id.variable,t.exportNamesByVariable)){const r=t.compact?"":" ";e.appendLeft(this.end,`${r}=${r}void 0`)}}},WhileStatement:class extends qx{hasEffects(e){if(this.test.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r,continues:n}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=r,e.ignore.continues=n,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.test.include(e,t);const{brokenFlow:r}=e;this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}},YieldExpression:class extends qx{bind(){super.bind(),null!==this.argument&&this.argument.deoptimizePath(ox)}hasEffects(e){return!e.ignore.returnAwaitYield||null!==this.argument&&this.argument.hasEffects(e)}render(e,t){this.argument&&(this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," "))}}};function OT(e){return e.id}let MT="sourceMa";MT+="ppingURL";const RT="[ \\f\\r\\t\\v\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]",LT=new RegExp(`(//#${RT}+sourceMappingURL=.+)|(/\\*#${RT}+sourceMappingURL=.+\\*/)`,"g"),BT=()=>{};let UT=()=>[0,0],jT=()=>0,VT=()=>0,zT={};function HT(e,t){switch(t){case 1:return`# ${e}`;case 2:return`## ${e}`;case 3:return e;default:return`${" ".repeat(t-4)}- ${e}`}}function WT(e,t=3){e=HT(e,t),zT.hasOwnProperty(e)||(zT[e]={memory:0,startMemory:void 0,startTime:void 0,time:0,totalMemory:0});const r=VT();zT[e].startTime=UT(),zT[e].startMemory=r}function KT(e,t=3){if(e=HT(e,t),zT.hasOwnProperty(e)){const t=VT();zT[e].time+=jT(zT[e].startTime),zT[e].totalMemory=Math.max(zT[e].totalMemory,t),zT[e].memory+=t-zT[e].startMemory}}function JT(){const e={};for(const t of Object.keys(zT))e[t]=[zT[t].time,zT[t].memory,zT[t].totalMemory];return e}let GT=BT,$T=BT;const qT={load:!0,resolveDynamicImport:!0,resolveId:!0,transform:!0};function XT(e,t){const r={};for(const n of Object.keys(e))if(!0===qT[n]){let i=`plugin ${t}`;e.name&&(i+=` (${e.name})`),i+=` - ${n}`,r[n]=function(){GT(i,4);let t=e[n].apply(this===r?e:this,arguments);return $T(i,4),t&&"function"==typeof t.then&&(GT(`${i} (async)`,4),t=t.then((()=>$T(`${i} (async)`,4)))),t}}else r[n]=e[n];return r}function YT(e){e.isExecuted=!0;const t=[e],r=new Set;for(const e of t)for(const n of[...e.dependencies,...e.implicitlyLoadedBefore])n instanceof WD||n.isExecuted||!n.info.hasModuleSideEffects&&!e.implicitlyLoadedBefore.has(n)||r.has(n.id)||(n.isExecuted=!0,r.add(n.id),t.push(n))}const QT={identifier:null,localName:AD};function ZT(e,t,r,n,i=new Map){const a=i.get(t);if(a){if(a.has(e))return n?null:DS((o=t,s=e.id,{code:TS.CIRCULAR_REEXPORT,id:s,message:`"${o}" cannot be exported from ${ES(s)} as it is a reexport that references itself.`}));a.add(e)}else i.set(t,new Set([e]));var o,s;return e.getVariableForExportName(t,r,n,i)}class eC{constructor(e,t,r,n,i,a,o){this.graph=e,this.id=t,this.options=r,this.alternativeReexportModules=new Map,this.ast=null,this.chunkFileNames=new Set,this.chunkName=null,this.cycles=new Set,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicImporters=[],this.dynamicImports=[],this.execIndex=1/0,this.exportAllSources=new Set,this.exports=Object.create(null),this.exportsAll=Object.create(null),this.implicitlyLoadedAfter=new Set,this.implicitlyLoadedBefore=new Set,this.importDescriptions=Object.create(null),this.importers=[],this.importMetas=[],this.imports=new Set,this.includedDynamicImporters=[],this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.preserveSignature=this.options.preserveEntrySignatures,this.reexportDescriptions=Object.create(null),this.sideEffectDependenciesByVariable=new Map,this.sources=new Set,this.userChunkNames=new Set,this.usesTopLevelAwait=!1,this.allExportNames=null,this.exportAllModules=[],this.exportNamesByVariable=null,this.exportShimVariable=new kD(this),this.relevantDependencies=null,this.syntheticExports=new Map,this.syntheticNamespace=null,this.transformDependencies=[],this.transitiveReexports=null,this.excludeFromSourcemap=/\0/.test(t),this.context=r.moduleContext(t);const s=this;this.info={ast:null,code:null,get dynamicallyImportedIds(){const e=[];for(const{resolution:t}of s.dynamicImports)(t instanceof eC||t instanceof WD)&&e.push(t.id);return e},get dynamicImporters(){return s.dynamicImporters.sort()},hasModuleSideEffects:i,id:t,get implicitlyLoadedAfterOneOf(){return Array.from(s.implicitlyLoadedAfter,OT)},get implicitlyLoadedBefore(){return Array.from(s.implicitlyLoadedBefore,OT)},get importedIds(){return Array.from(s.sources,(e=>s.resolvedIds[e].id))},get importers(){return s.importers.sort()},isEntry:n,isExternal:!1,meta:o,syntheticNamedExports:a}}basename(){const e=He(this.id),t=Ke(this.id);return BD(t?e.slice(0,-t.length):e)}bindReferences(){this.ast.bind()}error(e,t){return this.addLocationToLogProps(e,t),DS(e)}getAllExportNames(){if(this.allExportNames)return this.allExportNames;const e=this.allExportNames=new Set;for(const t of Object.keys(this.exports))e.add(t);for(const t of Object.keys(this.reexportDescriptions))e.add(t);for(const t of this.exportAllModules)if(t instanceof WD)e.add(`*${t.id}`);else for(const r of t.getAllExportNames())"default"!==r&&e.add(r);return e}getDependenciesToBeIncluded(){if(this.relevantDependencies)return this.relevantDependencies;const e=new Set,t=new Set,r=new Set;let n=this.imports.keys();if(this.info.isEntry||this.includedDynamicImporters.length>0||this.namespace.included||this.implicitlyLoadedAfter.size>0){n=new Set(n);for(const e of[...this.getReexports(),...this.getExports()])n.add(this.getVariableForExportName(e))}for(let e of n){const n=this.sideEffectDependenciesByVariable.get(e);if(n)for(const e of n)r.add(e);e instanceof wD?e=e.getBaseVariable():e instanceof CD&&(e=e.getOriginalVariable()),t.add(e.module)}if(this.options.treeshake&&"no-treeshake"!==this.info.hasModuleSideEffects)this.addRelevantSideEffectDependencies(e,t,r);else for(const t of this.dependencies)e.add(t);for(const r of t)e.add(r);return this.relevantDependencies=e}getExportNamesByVariable(){if(this.exportNamesByVariable)return this.exportNamesByVariable;const e=new Map;for(const t of this.getAllExportNames()){if(t===this.info.syntheticNamedExports)continue;let r=this.getVariableForExportName(t);if(r instanceof CD&&(r=r.getOriginalVariable()),!r||!(r.included||r instanceof PD))continue;const n=e.get(r);n?n.push(t):e.set(r,[t])}return this.exportNamesByVariable=e}getExports(){return Object.keys(this.exports)}getReexports(){if(this.transitiveReexports)return this.transitiveReexports;this.transitiveReexports=[];const e=new Set;for(const t in this.reexportDescriptions)e.add(t);for(const t of this.exportAllModules)if(t instanceof WD)e.add(`*${t.id}`);else for(const r of[...t.getReexports(),...t.getExports()])"default"!==r&&e.add(r);return this.transitiveReexports=[...e]}getRenderedExports(){const e=[],t=[];for(const r in this.exports){const n=this.getVariableForExportName(r);(n&&n.included?e:t).push(r)}return{renderedExports:e,removedExports:t}}getSyntheticNamespace(){return null===this.syntheticNamespace&&(this.syntheticNamespace=void 0,this.syntheticNamespace=this.getVariableForExportName("string"==typeof this.info.syntheticNamedExports?this.info.syntheticNamedExports:"default")),this.syntheticNamespace?this.syntheticNamespace:DS((e=this.id,t=this.info.syntheticNamedExports,{code:TS.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT,id:e,message:`Module "${ES(e)}" that is marked with 'syntheticNamedExports: ${JSON.stringify(t)}' needs ${"string"==typeof t&&"default"!==t?`an export named "${t}"`:"a default export"} that does not reexport an unresolved named export of the same module.`}));var e,t}getVariableForExportName(e,t,r,n){if("*"===e[0])return 1===e.length?this.namespace:this.graph.modulesById.get(e.slice(1)).getVariableForExportName("*");const i=this.reexportDescriptions[e];if(i){const e=ZT(i.module,i.localName,t,!1,n);return e?(t&&tC(e,t,this),e):this.error(kS(i.localName,this.id,i.module.id),i.start)}const a=this.exports[e];if(a){if(a===QT)return this.exportShimVariable;const e=a.localName,r=this.traceVariable(e,t);return t&&(nx(t.sideEffectDependenciesByVariable,r,(()=>new Set)).add(this),tC(r,t,this)),r}if("default"!==e){let r=null;for(const i of this.exportAllModules){const a=ZT(i,e,t,!0,n);if(a){if(!(a instanceof wD))return a;r||(r=a)}}if(r)return r}if(this.info.syntheticNamedExports){let t=this.syntheticExports.get(e);if(!t){const r=this.getSyntheticNamespace();return t=new wD(this.astContext,e,r),this.syntheticExports.set(e,t),t}return t}return!r&&this.options.shimMissingExports?(this.shimMissingExport(e),this.exportShimVariable):null}hasEffects(){return"no-treeshake"===this.info.hasModuleSideEffects||this.ast.included&&this.ast.hasEffects(Vx())}include(){const e=jx();this.ast.shouldBeIncluded(e)&&this.ast.include(e,!1)}includeAllExports(e){this.isExecuted||(this.graph.needsTreeshakingPass=!0,YT(this));for(const t of this.getExports())if(e||t!==this.info.syntheticNamedExports){const e=this.getVariableForExportName(t);e.deoptimizePath(ox),e.included||this.includeVariable(e)}for(const e of this.getReexports()){const t=this.getVariableForExportName(e);t.deoptimizePath(ox),t.included||this.includeVariable(t),t instanceof PD&&(t.module.reexported=!0)}e&&this.namespace.prepareNamespace(this.includeAndGetAdditionalMergedNamespaces())}includeAllInBundle(){this.ast.include(jx(),!0)}isIncluded(){return this.ast.included||this.namespace.included}linkImports(){this.addModulesToImportDescriptions(this.importDescriptions),this.addModulesToImportDescriptions(this.reexportDescriptions);for(const e in this.exports)"default"!==e&&e!==this.info.syntheticNamedExports&&(this.exportsAll[e]=this.id);const e=[];for(const t of this.exportAllSources){const r=this.graph.modulesById.get(this.resolvedIds[t].id);if(r instanceof WD)e.push(r);else{this.exportAllModules.push(r);for(const e in r.exportsAll)e in this.exportsAll?this.options.onwarn(wS(e,this,r)):this.exportsAll[e]=r.exportsAll[e]}}this.exportAllModules.push(...e)}render(e){const t=this.magicString.clone();return this.ast.render(t,e),this.usesTopLevelAwait=this.astContext.usesTopLevelAwait,t}setSource({alwaysRemovedCode:e,ast:t,code:r,customTransformCache:n,originalCode:i,originalSourcemap:a,resolvedIds:o,sourcemapChain:s,transformDependencies:c,transformFiles:l,...d}){this.info.code=r,this.originalCode=i,this.originalSourcemap=a,this.sourcemapChain=s,l&&(this.transformFiles=l),this.transformDependencies=c,this.customTransformCache=n,this.updateOptions(d),GT("generate ast",3),this.alwaysRemovedCode=e||[],t||(t=this.tryParse()),this.alwaysRemovedCode.push(...((e,t)=>{const r=[],n=(e,n)=>{if(e==n)return;let i;const a=t.slice(e,n);for(;i=LT.exec(a);)r.push([e+i.index,e+LT.lastIndex])};let i=0;for(const t of e.body)n(i,t.start),i=t.end;return n(i,t.length),r})(t,this.info.code)),$T("generate ast",3),this.resolvedIds=o||Object.create(null);const u=this.id;this.magicString=new PE(r,{filename:this.excludeFromSourcemap?null:u,indentExclusionRanges:[]});for(const[e,t]of this.alwaysRemovedCode)this.magicString.remove(e,t);GT("analyse ast",3),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),code:r,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:u,getExports:this.getExports.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),getReexports:this.getReexports.bind(this),importDescriptions:this.importDescriptions,includeAllExports:()=>this.includeAllExports(!0),includeDynamicImport:this.includeDynamicImport.bind(this),includeVariableInModule:this.includeVariableInModule.bind(this),magicString:this.magicString,module:this,moduleContext:this.context,nodeConstructors:IT,options:this.options,traceExport:this.getVariableForExportName.bind(this),traceVariable:this.traceVariable.bind(this),usesTopLevelAwait:!1,warn:this.warn.bind(this)},this.scope=new NT(this.graph.scope,this.astContext),this.namespace=new ND(this.astContext,this.info.syntheticNamedExports),this.ast=new CT(t,{type:"Module",context:this.astContext},this.scope),this.info.ast=t,$T("analyse ast",3)}toJSON(){return{alwaysRemovedCode:this.alwaysRemovedCode,ast:this.ast.esTreeNode,code:this.info.code,customTransformCache:this.customTransformCache,dependencies:Array.from(this.dependencies,OT),id:this.id,meta:this.info.meta,moduleSideEffects:this.info.hasModuleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,resolvedIds:this.resolvedIds,sourcemapChain:this.sourcemapChain,syntheticNamedExports:this.info.syntheticNamedExports,transformDependencies:this.transformDependencies,transformFiles:this.transformFiles}}traceVariable(e,t){const r=this.scope.variables.get(e);if(r)return r;if(e in this.importDescriptions){const r=this.importDescriptions[e],n=r.module;if(n instanceof eC&&"*"===r.name)return n.namespace;return n.getVariableForExportName(r.name,t||this)||this.error(kS(r.name,this.id,n.id),r.start)}return null}tryParse(){try{return this.graph.contextParse(this.info.code)}catch(e){let t=e.message.replace(/ \(\d+:\d+\)$/,"");return this.id.endsWith(".json")?t+=" (Note that you need @rollup/plugin-json to import JSON files)":this.id.endsWith(".js")||(t+=" (Note that you need plugins to import files that are not JavaScript)"),this.error({code:"PARSE_ERROR",message:t,parserError:e},e.pos)}}updateOptions({meta:e,moduleSideEffects:t,syntheticNamedExports:r}){null!=t&&(this.info.hasModuleSideEffects=t),null!=r&&(this.info.syntheticNamedExports=r),null!=e&&(this.info.meta={...this.info.meta,...e})}warn(e,t){this.addLocationToLogProps(e,t),this.options.onwarn(e)}addDynamicImport(e){let t=e.source;t instanceof kT?1===t.quasis.length&&t.quasis[0].value.cooked&&(t=t.quasis[0].value.cooked):t instanceof tT&&"string"==typeof t.value&&(t=t.value),this.dynamicImports.push({node:e,resolution:null,argument:t})}addExport(e){if(e instanceof SD)this.exports.default={identifier:e.variable.getAssignedVariableName(),localName:"default"};else if(e instanceof qS){const t=e.source.value;if(this.sources.add(t),e.exported){const r=e.exported.name;this.reexportDescriptions[r]={localName:"*",module:null,source:t,start:e.start}}else this.exportAllSources.add(t)}else if(e.source instanceof tT){const t=e.source.value;this.sources.add(t);for(const r of e.specifiers){const e=r.exported.name;this.reexportDescriptions[e]={localName:r.local.name,module:null,source:t,start:r.start}}}else if(e.declaration){const t=e.declaration;if(t instanceof PT)for(const e of t.declarations)for(const t of $S(e.id))this.exports[t]={identifier:null,localName:t};else{const e=t.id.name;this.exports[e]={identifier:null,localName:e}}}else for(const t of e.specifiers){const e=t.local.name,r=t.exported.name;this.exports[r]={identifier:null,localName:e}}}addImport(e){const t=e.source.value;this.sources.add(t);for(const r of e.specifiers){const e="ImportDefaultSpecifier"===r.type,n="ImportNamespaceSpecifier"===r.type,i=e?"default":n?"*":r.imported.name;this.importDescriptions[r.local.name]={module:null,name:i,source:t,start:r.start}}}addImportMeta(e){this.importMetas.push(e)}addLocationToLogProps(e,t){e.id=this.id,e.pos=t;let r=this.info.code,{column:n,line:i}=Jx(r,t,{offsetLine:1});try{({column:n,line:i}=((e,t)=>{const r=e.filter((e=>e.mappings));for(;r.length>0;){const e=r.pop(),n=e.mappings[t.line-1];let i=!1;if(void 0!==n)for(const r of n)if(r[0]>=t.column){if(1===r.length)break;t={column:r[3],line:r[2]+1,name:5===r.length?e.names[r[4]]:void 0,source:e.sources[r[1]]},i=!0;break}if(!i)throw new Error("Can't resolve original location of error.")}return t})(this.sourcemapChain,{column:n,line:i})),r=this.originalCode}catch(e){this.options.onwarn({code:"SOURCEMAP_ERROR",id:this.id,loc:{column:n,file:this.id,line:i},message:`Error when using sourcemap for reporting an error: ${e.message}`,pos:t})}SS(e,{column:n,line:i},r,this.id)}addModulesToImportDescriptions(e){for(const t of Object.keys(e)){const r=e[t],n=this.resolvedIds[r.source].id;r.module=this.graph.modulesById.get(n)}}addRelevantSideEffectDependencies(e,t,r){const n=new Set,i=a=>{for(const o of a)n.has(o)||(n.add(o),t.has(o)?e.add(o):(o.info.hasModuleSideEffects||r.has(o))&&(o instanceof WD||o.hasEffects()?e.add(o):i(o.dependencies)))};i(this.dependencies),i(r)}includeAndGetAdditionalMergedNamespaces(){const e=[];for(const t of this.exportAllModules)if(t instanceof WD){const r=t.getVariableForExportName("*");r.include(),this.imports.add(r),e.push(r)}else if(t.info.syntheticNamedExports){const r=t.getSyntheticNamespace();r.include(),this.imports.add(r),e.push(r)}return e}includeDynamicImport(e){const t=this.dynamicImports.find((t=>t.node===e)).resolution;t instanceof eC&&(t.includedDynamicImporters.push(this),t.includeAllExports(!0))}includeVariable(e){if(!e.included){e.include(),this.graph.needsTreeshakingPass=!0;const t=e.module;if(t&&t instanceof eC&&(t.isExecuted||YT(t),t!==this)){const t=((e,t)=>{const r=nx(t.sideEffectDependenciesByVariable,e,(()=>new Set));let n=e;const i=new Set([n]);for(;;){const e=n.module;if(n=n instanceof CD?n.getDirectOriginalVariable():n instanceof wD?n.syntheticNamespace:null,!n||i.has(n))break;i.add(n),r.add(e);const t=e.sideEffectDependenciesByVariable.get(n);if(t)for(const e of t)r.add(e)}return r})(e,this);for(const e of t)e.isExecuted||YT(e)}}}includeVariableInModule(e){this.includeVariable(e);const t=e.module;t&&t!==this&&this.imports.add(e)}shimMissingExport(e){this.options.onwarn({code:"SHIMMED_EXPORT",exporter:ES(this.id),exportName:e,message:`Missing export "${e}" has been shimmed in module ${ES(this.id)}.`}),this.exports[e]=QT}}function tC(e,t,r){if(e.module instanceof eC&&e.module!==r){const n=e.module.cycles;if(n.size>0){const i=r.cycles;for(const a of i)if(n.has(a)){t.alternativeReexportModules.set(e,r);break}}}}class rC{constructor(e,t){this.isOriginal=!0,this.filename=e,this.content=t}traceSegment(e,t,r){return{line:e,column:t,name:r,source:this}}}class nC{constructor(e,t){this.sources=t,this.names=e.names,this.mappings=e.mappings}traceMappings(){const e=[],t=[],r=[],n=[];for(const i of this.mappings){const a=[];for(const n of i){if(1==n.length)continue;const i=this.sources[n[1]];if(!i)continue;const o=i.traceSegment(n[2],n[3],5===n.length?this.names[n[4]]:"");if(o){let i=e.lastIndexOf(o.source.filename);if(-1===i)i=e.length,e.push(o.source.filename),t[i]=o.source.content;else if(null==t[i])t[i]=o.source.content;else if(null!=o.source.content&&t[i]!==o.source.content)return DS({message:`Multiple conflicting contents for sourcemap source ${o.source.filename}`});const s=[n[0],i,o.line,o.column];if(o.name){let e=r.indexOf(o.name);-1===e&&(e=r.length,r.push(o.name)),s[4]=e}a.push(s)}}n.push(a)}return{sources:e,sourcesContent:t,names:r,mappings:n}}traceSegment(e,t,r){const n=this.mappings[e];if(!n)return null;let i=0,a=n.length-1;for(;i<=a;){const e=i+a>>1,o=n[e];if(o[0]===t){if(1==o.length)return null;const e=this.sources[o[1]];return e?e.traceSegment(o[2],o[3],5===o.length?this.names[o[4]]:r):null}o[0]>t?a=e-1:i=e+1}return null}}function iC(e){return(t,r)=>r.mappings?new nC(r,[t]):(e({code:"SOURCEMAP_BROKEN",message:`Sourcemap is likely to be incorrect: a plugin (${r.plugin}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:r.plugin,url:"https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect"}),new nC({mappings:[],names:[]},[t]))}function aC(e,t,r,n,i){let a;if(r){const t=r.sources,n=r.sourcesContent||[],i=We(e)||".",o=r.sourceRoot||".",s=t.map(((e,t)=>new rC(Ye(i,o,e),n[t])));a=new nC(r,s)}else a=new rC(e,t);return n.reduce(i,a)}const oC=()=>_E(),sC={amd:lC,cjs:lC,es:cC,iife:lC,system:cC,umd:lC};function cC(e,t,r,n,i,a,o,s){for(const t of r.dependencies)(i||t instanceof WD)&&(t.variableName=tx(t.suggestedVariableName,e));for(const r of t){const t=r.module,n=r.name;r.isNamespace&&(i||t instanceof WD)?r.setRenderNames(null,(t instanceof WD?t:o.get(t)).variableName):t instanceof WD&&"default"===n?r.setRenderNames(null,tx([...t.exportedVariables].some((([e,t])=>"*"===t&&e.included))?t.suggestedVariableName+"__default":t.suggestedVariableName,e)):r.setRenderNames(null,tx(n,e))}for(const t of s)t.setRenderNames(null,tx(t.name,e))}function lC(e,t,{deconflictedDefault:r,deconflictedNamespace:n,dependencies:i},a,o,s,c){for(const t of i)t.variableName=tx(t.suggestedVariableName,e);for(const t of n)t.namespaceVariableName=tx(`${t.suggestedVariableName}__namespace`,e);for(const t of r)n.has(t)&&tS(String(a(t.id)),s)?t.defaultVariableName=t.namespaceVariableName:t.defaultVariableName=tx(`${t.suggestedVariableName}__default`,e);for(const e of t){const t=e.module;if(t instanceof WD){const r=e.name;if("default"===r){const r=String(a(t.id)),n=QD[r]?t.defaultVariableName:t.variableName;ZD(r,s)?e.setRenderNames(n,"default"):e.setRenderNames(null,n)}else"*"===r?e.setRenderNames(null,eS[String(a(t.id))]?t.namespaceVariableName:t.variableName):e.setRenderNames(t.variableName,null)}else{const r=c.get(t);o&&e.isNamespace?e.setRenderNames(null,"default"===r.exportMode?r.namespaceVariableName:r.variableName):"default"===r.exportMode?e.setRenderNames(null,r.variableName):e.setRenderNames(r.variableName,r.getVariableExportName(e))}}}const dC=/[\\'\r\n\u2028\u2029]/,uC=/(['\r\n\u2028\u2029])/g,pC=/\\/g;function _C(e){return e.match(dC)?e.replace(pC,"\\\\").replace(uC,"\\$1"):e}function fC(e){const t=e.split("\n"),r=t.filter((e=>/^\t+/.test(e))),n=t.filter((e=>/^ {2,}/.test(e)));if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";const i=n.reduce(((e,t)=>{const r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),1/0);return new Array(i+1).join(" ")}function mC(e,t,r,n,i){const a=e.getDependenciesToBeIncluded();for(const e of a){if(e instanceof WD){t.push(e);continue}const a=i.get(e);a===n?r.has(e)||(r.add(e),mC(e,t,r,n,i)):t.push(a)}}function gC(e){if(!e)return null;if("string"==typeof e&&(e=JSON.parse(e)),""===e.mappings)return{mappings:[],names:[],sources:[],version:3};let t;return t="string"==typeof e.mappings?(e=>{for(var t=[],r=[],n=[0,0,0,0,0],i=0,a=0,o=0,s=0;a<e.length;a++){var c=e.charCodeAt(a);if(44===c)yE(r,n,i),i=0;else if(59===c)yE(r,n,i),i=0,t.push(r),r=[],n[0]=0;else{var l=mE[c];if(void 0===l)throw new Error("Invalid character ("+String.fromCharCode(c)+")");var d=32&l;if(s+=(l&=31)<<o,d)o+=5;else{var u=1&s;s>>>=1,u&&(s=0===s?-2147483648:-s),n[i]+=s,i++,s=o=0}}}return yE(r,n,i),t.push(r),t})(e.mappings):e.mappings,{...e,mappings:t}}function hC(e,t,r){return xS(e)?e.replace(/\[(\w+)\]/g,((e,n)=>{if(!r.hasOwnProperty(n))return DS(IS(`"[${n}]" is not a valid placeholder in "${t}" pattern.`));const i=r[n]();return xS(i)?i:DS(IS(`Invalid substitution "${i}" for placeholder "[${n}]" in "${t}" pattern, can be neither absolute nor relative path.`))})):DS(IS(`Invalid pattern "${e}" for "${t}", patterns can be neither absolute nor relative paths and must not contain invalid characters.`))}function yC(e,t){const r=new Set(Object.keys(t).map((e=>e.toLowerCase())));if(!r.has(e.toLocaleLowerCase()))return e;const n=Ke(e);e=e.substr(0,e.length-n.length);let i,a=1;for(;r.has((i=e+ ++a+n).toLowerCase()););return i}const vC=[".js",".jsx",".ts",".tsx"];function bC(e,t,r,n){return("function"==typeof t?t(e.id):t[e.id])||(r?(n({code:"MISSING_GLOBAL_NAME",guess:e.variableName,message:`No name was provided for external module '${e.id}' in output.globals – guessing '${e.variableName}'`,source:e.id}),e.variableName):void 0)}class EC{constructor(e,t,r,n,i,a,o,s,c,l){this.orderedModules=e,this.inputOptions=t,this.outputOptions=r,this.unsetOptions=n,this.pluginDriver=i,this.modulesById=a,this.chunkByModule=o,this.facadeChunkByModule=s,this.includedNamespaces=c,this.manualChunkAlias=l,this.entryModules=[],this.exportMode="named",this.facadeModule=null,this.id=null,this.namespaceVariableName="",this.variableName="",this.accessedGlobalsByScope=new Map,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicEntryModules=[],this.exportNamesByVariable=new Map,this.exports=new Set,this.exportsByName=Object.create(null),this.fileName=null,this.implicitEntryModules=[],this.implicitlyLoadedBefore=new Set,this.imports=new Set,this.indentString=void 0,this.isEmpty=!0,this.name=null,this.needsExportsShim=!1,this.renderedDependencies=null,this.renderedExports=null,this.renderedHash=void 0,this.renderedModules=Object.create(null),this.renderedModuleSources=new Map,this.renderedSource=null,this.sortedExportNames=null,this.strictFacade=!1,this.usedModules=void 0,this.execIndex=e.length>0?e[0].execIndex:1/0;const d=new Set(e);for(const t of e){t.namespace.included&&c.add(t),this.isEmpty&&t.isIncluded()&&(this.isEmpty=!1),(t.info.isEntry||r.preserveModules)&&this.entryModules.push(t);for(const e of t.includedDynamicImporters)d.has(e)||(this.dynamicEntryModules.push(t),t.info.syntheticNamedExports&&!r.preserveModules&&(c.add(t),this.exports.add(t.namespace)));t.implicitlyLoadedAfter.size>0&&this.implicitEntryModules.push(t)}this.suggestedVariableName=BD(this.generateVariableName())}static generateFacade(e,t,r,n,i,a,o,s,c,l){const d=new EC([],e,t,r,n,i,a,o,s,null);d.assignFacadeName(l,c),o.has(c)||o.set(c,d);for(const e of c.getDependenciesToBeIncluded())d.dependencies.add(e instanceof eC?a.get(e):e);return!d.dependencies.has(a.get(c))&&c.info.hasModuleSideEffects&&c.hasEffects()&&d.dependencies.add(a.get(c)),d.ensureReexportsAreAvailableForModule(c),d.facadeModule=c,d.strictFacade=!0,d}canModuleBeFacade(e,t){const r=e.getExportNamesByVariable();for(const t of this.exports)if(!r.has(t))return 0===r.size&&e.isUserDefinedEntryPoint&&"strict"===e.preserveSignature&&this.unsetOptions.has("preserveEntrySignatures")&&this.inputOptions.onwarn({code:"EMPTY_FACADE",id:e.id,message:`To preserve the export signature of the entry module "${ES(e.id)}", an empty facade chunk was created. This often happens when creating a bundle for a web app where chunks are placed in script tags and exports are ignored. In this case it is recommended to set "preserveEntrySignatures: false" to avoid this and reduce the number of chunks. Otherwise if this is intentional, set "preserveEntrySignatures: 'strict'" explicitly to silence this warning.`,url:"https://rollupjs.org/guide/en/#preserveentrysignatures"}),!1;for(const n of t)if(!r.has(n)&&n.module!==e)return!1;return!0}generateExports(){this.sortedExportNames=null;const e=new Set(this.exports);if(null!==this.facadeModule&&(!1!==this.facadeModule.preserveSignature||this.strictFacade)){const t=this.facadeModule.getExportNamesByVariable();for(const[r,n]of t){this.exportNamesByVariable.set(r,[...n]);for(const e of n)this.exportsByName[e]=r;e.delete(r)}}this.outputOptions.minifyInternalExports?!((e,t,r)=>{let n=0;for(const i of e){let e=i.name[0];if(t[e])do{e=ZE(++n),49===e.charCodeAt(0)&&(n+=9*64**(e.length-1),e=ZE(n))}while(ex[e]||t[e]);t[e]=i,r.set(i,[e])}})(e,this.exportsByName,this.exportNamesByVariable):!((e,t,r)=>{for(const n of e){let e=0,i=n.name;for(;t[i];)i=n.name+"$"+ ++e;t[i]=n,r.set(n,[i])}})(e,this.exportsByName,this.exportNamesByVariable),(this.outputOptions.preserveModules||this.facadeModule&&this.facadeModule.info.isEntry)&&(this.exportMode=function(e,{exports:t,name:r,format:n},i,a,o){const s=e.getExportNames();if("default"===t){if(1!==s.length||"default"!==s[0])return DS(AS("default",s,a))}else if("none"===t&&s.length)return DS(AS("none",s,a));return"auto"===t&&(0===s.length?t="none":1===s.length&&"default"===s[0]?("cjs"===n&&i.has("exports")&&o((e=>{const t=ES(e);return{code:TS.PREFER_NAMED_EXPORTS,id:e,message:`Entry module "${t}" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "${t}" to use named exports only.`,url:"https://rollupjs.org/guide/en/#outputexports"}})(a)),t="default"):("es"!==n&&-1!==s.indexOf("default")&&o(((e,t)=>({code:TS.MIXED_EXPORTS,id:e,message:`Entry module "${ES(e)}" is using named and default exports together. Consumers of your bundle will have to use \`${t||"chunk"}["default"]\` to access the default export, which may not be what you want. Use \`output.exports: "named"\` to disable this warning`,url:"https://rollupjs.org/guide/en/#outputexports"}))(a,r)),t="named")),t}(this,this.outputOptions,this.unsetOptions,this.facadeModule.id,this.inputOptions.onwarn))}generateFacades(){var e;const t=[],r=new Set([...this.entryModules,...this.implicitEntryModules]),n=new Set(this.dynamicEntryModules.map((e=>e.namespace)));for(const e of r)if(e.preserveSignature)for(const t of e.getExportNamesByVariable().keys())n.add(t);for(const e of r){const r=Array.from(e.userChunkNames,(e=>({name:e})));if(0===r.length&&e.isUserDefinedEntryPoint&&r.push({}),r.push(...Array.from(e.chunkFileNames,(e=>({fileName:e})))),0===r.length&&r.push({}),!this.facadeModule){const t="strict"===e.preserveSignature||"exports-only"===e.preserveSignature&&0!==e.getExportNamesByVariable().size;(!t||this.outputOptions.preserveModules||this.canModuleBeFacade(e,n))&&(this.facadeModule=e,this.facadeChunkByModule.set(e,this),e.preserveSignature&&(this.strictFacade=t),this.assignFacadeName(r.shift(),e))}for(const n of r)t.push(EC.generateFacade(this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.modulesById,this.chunkByModule,this.facadeChunkByModule,this.includedNamespaces,e,n))}for(const t of this.dynamicEntryModules)t.info.syntheticNamedExports||(!this.facadeModule&&this.canModuleBeFacade(t,n)?(this.facadeModule=t,this.facadeChunkByModule.set(t,this),this.strictFacade=!0,this.assignFacadeName({},t)):this.facadeModule===t&&!this.strictFacade&&this.canModuleBeFacade(t,n)?this.strictFacade=!0:(null===(e=this.facadeChunkByModule.get(t))||void 0===e?void 0:e.strictFacade)||(this.includedNamespaces.add(t),this.exports.add(t.namespace)));return t}generateId(e,t,r,n){if(null!==this.fileName)return this.fileName;const[i,a]=this.facadeModule&&this.facadeModule.isUserDefinedEntryPoint?[t.entryFileNames,"output.entryFileNames"]:[t.chunkFileNames,"output.chunkFileNames"];return yC(hC("function"==typeof i?i(this.getChunkInfo()):i,a,{format:()=>t.format,hash:()=>n?this.computeContentHashWithDependencies(e,t,r):"[hash]",name:()=>this.getChunkName()}),r)}generateIdPreserveModules(e,t,r,n){const i=this.orderedModules[0].id,a=vS(i);let o;if(VD(i)){const r=Ke(i),s=n.has("entryFileNames")?vC.includes(r)?"[name].js":"[name][extname].js":t.entryFileNames,c=`${We(a)}/${hC("function"==typeof s?s(this.getChunkInfo()):s,"output.entryFileNames",{ext:()=>r.substr(1),extname:()=>r,format:()=>t.format,name:()=>this.getChunkName()})}`,{preserveModulesRoot:l}=t;o=l&&c.startsWith(l)?c.slice(l.length).replace(/^[\\/]/,""):ME(e,c)}else o=`_virtual/${He(a)}`;return yC(HD(o),r)}getChunkInfo(){const e=this.facadeModule,t=this.getChunkName.bind(this);return{exports:this.getExportNames(),facadeModuleId:e&&e.id,isDynamicEntry:this.dynamicEntryModules.length>0,isEntry:null!==e&&e.info.isEntry,isImplicitEntry:this.implicitEntryModules.length>0,modules:this.renderedModules,get name(){return t()},type:"chunk"}}getChunkInfoWithFileNames(){return Object.assign(this.getChunkInfo(),{code:void 0,dynamicImports:Array.from(this.dynamicDependencies,OT),fileName:this.id,implicitlyLoadedBefore:Array.from(this.implicitlyLoadedBefore,OT),importedBindings:this.getImportedBindingsPerDependency(),imports:Array.from(this.dependencies,OT),map:void 0,referencedFiles:this.getReferencedFiles()})}getChunkName(){return this.name||(this.name=vS(this.getFallbackChunkName()))}getExportNames(){return this.sortedExportNames||(this.sortedExportNames=Object.keys(this.exportsByName).sort())}getRenderedHash(){if(this.renderedHash)return this.renderedHash;const e=oC(),t=this.pluginDriver.hookReduceValueSync("augmentChunkHash","",[this.getChunkInfo()],((e,t)=>(t&&(e+=t),e)));return e.update(t),e.update(this.renderedSource.toString()),e.update(this.getExportNames().map((e=>{const t=this.exportsByName[e];return`${ES(t.module.id).replace(/\\/g,"/")}:${t.name}:${e}`})).join(",")),this.renderedHash=e.digest("hex")}getVariableExportName(e){return this.outputOptions.preserveModules&&e instanceof ND?"*":this.exportNamesByVariable.get(e)[0]}link(){this.dependencies=((e,t,r)=>{const n=[],i=new Set;for(let a=t.length-1;a>=0;a--){const o=t[a];if(!i.has(o)){const t=[];mC(o,t,i,e,r),n.unshift(t)}}const a=new Set;for(const e of n)for(const t of e)a.add(t);return a})(this,this.orderedModules,this.chunkByModule);for(const e of this.orderedModules)this.addDependenciesToChunk(e.dynamicDependencies,this.dynamicDependencies),this.addDependenciesToChunk(e.implicitlyLoadedBefore,this.implicitlyLoadedBefore),this.setUpChunkImportsAndExportsForModule(e)}preRender(e,t){const r=new OE({separator:e.compact?"":"\n\n"});this.usedModules=[],this.indentString=((e,t)=>{if(!0!==t.indent)return t.indent;for(let t=0;t<e.length;t++){const r=fC(e[t].originalCode);if(null!==r)return r}return"\t"})(this.orderedModules,e);const n=e.compact?"":"\n",i=e.compact?"":" ",a={compact:e.compact,dynamicImportFunction:e.dynamicImportFunction,exportNamesByVariable:this.exportNamesByVariable,format:e.format,freeze:e.freeze,indent:this.indentString,namespaceToStringTag:e.namespaceToStringTag,outputPluginDriver:this.pluginDriver,varOrConst:e.preferConst?"const":"var"};if(e.hoistTransitiveImports&&!this.outputOptions.preserveModules&&null!==this.facadeModule)for(const e of this.dependencies)e instanceof EC&&this.inlineChunkDependencies(e);this.prepareDynamicImportsAndImportMetas(),this.setIdentifierRenderResolutions(e);let o="";const s=this.renderedModules;for(const t of this.orderedModules){let i=0;if(t.isIncluded()||this.includedNamespaces.has(t)){const s=t.render(a).trim();i=s.length(),i&&(e.compact&&-1!==s.lastLine().indexOf("//")&&s.append("\n"),this.renderedModuleSources.set(t,s),r.addSource(s),this.usedModules.push(t));const c=t.namespace;if(this.includedNamespaces.has(t)&&!this.outputOptions.preserveModules){const e=c.renderBlock(a);c.renderFirst()?o+=n+e:r.addSource(new PE(e))}}const{renderedExports:c,removedExports:l}=t.getRenderedExports();s[t.id]={originalLength:t.originalCode.length,removedExports:l,renderedExports:c,renderedLength:i}}if(o&&r.prepend(o+n+n),this.needsExportsShim&&r.prepend(`${n}${a.varOrConst} _missingExportShim${i}=${i}void 0;${n}${n}`),e.compact?this.renderedSource=r:this.renderedSource=r.trim(),this.renderedHash=void 0,this.isEmpty&&0===this.getExportNames().length&&0===this.dependencies.size){const e=this.getChunkName();this.inputOptions.onwarn({chunkName:e,code:"EMPTY_BUNDLE",message:`Generated an empty chunk: "${e}"`})}this.setExternalRenderPaths(e,t),this.renderedDependencies=this.getChunkDependencyDeclarations(e),this.renderedExports="none"===this.exportMode?[]:this.getChunkExportDeclarations(e.format)}async render(e,t,r){GT("render format",2);const n=e.format,i=JS[n];e.dynamicImportFunction&&"es"!==n&&this.inputOptions.onwarn({code:"INVALID_OPTION",message:'"output.dynamicImportFunction" is ignored for formats other than "es".'});for(const e of this.dependencies){const t=this.renderedDependencies.get(e);if(e instanceof WD){const r=e.renderPath;t.id=_C(e.renormalizeRenderPath?this.getRelativePath(r,!1):r)}else t.namedExportsMode="default"!==e.exportMode,t.id=_C(this.getRelativePath(e.id,!1))}this.finaliseDynamicImports(e),this.finaliseImportMetas(n);const a=0!==this.renderedExports.length||[...this.renderedDependencies.values()].some((e=>e.reexports&&0!==e.reexports.length));let o=!1;const s=new Set;for(const e of this.orderedModules){e.usesTopLevelAwait&&(o=!0);const t=this.accessedGlobalsByScope.get(e.scope);if(t)for(const e of t)s.add(e)}if(o&&"es"!==n&&"system"!==n)return DS({code:"INVALID_TLA_FORMAT",message:`Module format ${n} does not support top-level await. Use the "es" or "system" output formats rather.`});if(!this.id)throw new Error("Internal Error: expecting chunk id");const c=i(this.renderedSource,{accessedGlobals:s,dependencies:[...this.renderedDependencies.values()],exports:this.renderedExports,hasExports:a,id:this.id,indentString:this.indentString,intro:t.intro,isEntryFacade:this.outputOptions.preserveModules||null!==this.facadeModule&&this.facadeModule.info.isEntry,isModuleFacade:null!==this.facadeModule,namedExportsMode:"default"!==this.exportMode,outro:t.outro,usesTopLevelAwait:o,varOrConst:e.preferConst?"const":"var",warn:this.inputOptions.onwarn},e);t.banner&&c.prepend(t.banner),t.footer&&c.append(t.footer);const l=c.toString();$T("render format",2);let d=null;const u=[];let p=await(({code:e,options:t,outputPluginDriver:r,renderChunk:n,sourcemapChain:i})=>r.hookReduceArg0("renderChunk",[e,n,t],((e,t,r)=>{if(null==t)return e;if("string"==typeof t&&(t={code:t,map:void 0}),null!==t.map){const e=gC(t.map);i.push(e||{missing:!0,plugin:r.name})}return t.code})))({code:l,options:e,outputPluginDriver:this.pluginDriver,renderChunk:r,sourcemapChain:u});if(e.sourcemap){let t;GT("sourcemap",2),t=e.file?Ye(e.sourcemapFile||e.file):e.dir?Ye(e.dir,this.id):Ye(this.id);const r=c.generateDecodedMap({});d=((e,t,r,n,i,a)=>{const o=iC(a),s=r.filter((e=>!e.excludeFromSourcemap)).map((e=>aC(e.id,e.originalCode,e.originalSourcemap,e.sourcemapChain,o)));let c=new nC(t,s);c=n.reduce(o,c);let{sources:l,sourcesContent:d,names:u,mappings:p}=c.traceMappings();if(e){const t=We(e);l=l.map((e=>Xe(t,e))),e=He(e)}return d=i?null:d,new DE({file:e,sources:l,sourcesContent:d,names:u,mappings:p})})(t,r,this.usedModules,u,e.sourcemapExcludeSources,this.inputOptions.onwarn),d.sources=d.sources.map((r=>{const{sourcemapPathTransform:n}=e;if(n){const e=n(r,`${t}.map`);return"string"!=typeof e&&DS(IS("sourcemapPathTransform function must return a string.")),e}return r})).map(HD),$T("sourcemap",2)}return e.compact||"\n"===p[p.length-1]||(p+="\n"),{code:p,map:d}}addDependenciesToChunk(e,t){for(const r of e)if(r instanceof eC){const e=this.chunkByModule.get(r);e&&e!==this&&t.add(e)}else t.add(r)}assignFacadeName({fileName:e,name:t},r){e?this.fileName=e:this.name=vS(t||r.chunkName||bS(r.id))}checkCircularDependencyImport(e,t){const r=e.module;if(r instanceof eC){const s=this.chunkByModule.get(r);let c;do{if(c=t.alternativeReexportModules.get(e),c){const l=this.chunkByModule.get(c);l&&l!==s&&this.inputOptions.onwarn((n=r.getExportNamesByVariable().get(e)[0],i=r.id,a=c.id,o=t.id,{code:TS.CYCLIC_CROSS_CHUNK_REEXPORT,exporter:i,importer:o,message:`Export "${n}" of module ${ES(i)} was reexported through module ${ES(a)} while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in ${ES(o)} to point directly to the exporting module or do not use "preserveModules" to ensure these modules end up in the same chunk.`,reexporter:a})),t=c}}while(c)}var n,i,a,o}computeContentHashWithDependencies(e,t,r){const n=oC();n.update([e.intro,e.outro,e.banner,e.footer].map((e=>e||"")).join(":")),n.update(t.format);const i=new Set([this]);for(const a of i)if(a instanceof WD?n.update(":"+a.renderPath):(n.update(a.getRenderedHash()),n.update(a.generateId(e,t,r,!1))),!(a instanceof WD))for(const e of[...a.dependencies,...a.dynamicDependencies])i.add(e);return n.digest("hex").substr(0,8)}ensureReexportsAreAvailableForModule(e){const t=e.getExportNamesByVariable();for(const r of t.keys()){const t=r instanceof wD,n=t?r.getBaseVariable():r;if(!(n instanceof ND&&this.outputOptions.preserveModules)){this.checkCircularDependencyImport(n,e);const r=n.module;if(r instanceof eC){const e=this.chunkByModule.get(r);e&&e!==this&&(e.exports.add(n),t&&this.imports.add(n))}}}}finaliseDynamicImports(e){const t="amd"===e.format;for(const[r,n]of this.renderedModuleSources)for(const{node:i,resolution:a}of r.dynamicImports){const r=this.chunkByModule.get(a),o=this.facadeChunkByModule.get(a);if(!a||!i.included||r===this)continue;const s=a instanceof eC?`'${this.getRelativePath((o||r).id,t)}'`:a instanceof WD?`'${a.renormalizeRenderPath?this.getRelativePath(a.renderPath,t):a.renderPath}'`:a;i.renderFinalResolution(n,s,a instanceof eC&&!(null==o?void 0:o.strictFacade)&&r.exportNamesByVariable.get(a.namespace)[0],e)}}finaliseImportMetas(e){for(const[t,r]of this.renderedModuleSources)for(const n of t.importMetas)n.renderFinalMechanism(r,this.id,e,this.pluginDriver)}generateVariableName(){if(this.manualChunkAlias)return this.manualChunkAlias;const e=this.entryModules[0]||this.implicitEntryModules[0]||this.dynamicEntryModules[0]||this.orderedModules[this.orderedModules.length-1];return e?e.chunkName||bS(e.id):"chunk"}getChunkDependencyDeclarations(e){const t=this.getImportSpecifiers(),r=this.getReexportSpecifiers(),n=new Map;for(const i of this.dependencies){const a=t.get(i)||null,o=r.get(i)||null,s=i instanceof WD||"default"!==i.exportMode;n.set(i,{defaultVariableName:i.defaultVariableName,globalName:i instanceof WD&&("umd"===e.format||"iife"===e.format)&&bC(i,e.globals,null!==(a||o),this.inputOptions.onwarn),id:void 0,imports:a,isChunk:i instanceof EC,name:i.variableName,namedExportsMode:s,namespaceVariableName:i.namespaceVariableName,reexports:o})}return n}getChunkExportDeclarations(e){const t=[];for(const r of this.getExportNames()){if("*"===r[0])continue;const n=this.exportsByName[r];if(!(n instanceof wD)){const e=n.module;if(e&&this.chunkByModule.get(e)!==this)continue}let i=null,a=!1,o=!1,s=n.getName();if(n instanceof Hx){n.init===fx&&(o=!0);for(const e of n.declarations)if(e.parent instanceof DD||e instanceof SD&&e.declaration instanceof DD){a=!0;break}}else n instanceof wD&&(i=s,"es"===e&&"default"!==r&&(s=n.renderName));t.push({exported:r,expression:i,hoisted:a,local:s,uninitialized:o})}return t}getDependenciesToBeDeconflicted(e,t,r){const n=new Set,i=new Set,a=new Set;for(const t of[...this.exportNamesByVariable.keys(),...this.imports])if(e||t.isNamespace){const o=t.module;if(o instanceof WD)n.add(o),e&&("default"===t.name?QD[String(r(o.id))]&&i.add(o):"*"===t.name&&eS[String(r(o.id))]&&a.add(o));else{const r=this.chunkByModule.get(o);r!==this&&(n.add(r),e&&"default"===r.exportMode&&t.isNamespace&&a.add(r))}}if(t)for(const e of this.dependencies)n.add(e);return{deconflictedDefault:i,deconflictedNamespace:a,dependencies:n}}getFallbackChunkName(){return this.manualChunkAlias?this.manualChunkAlias:this.fileName?bS(this.fileName):bS(this.orderedModules[this.orderedModules.length-1].id)}getImportedBindingsPerDependency(){const e={};for(const[t,r]of this.renderedDependencies){const n=new Set;if(r.imports)for(const{imported:e}of r.imports)n.add(e);if(r.reexports)for(const{imported:e}of r.reexports)n.add(e);e[t.id]=[...n]}return e}getImportSpecifiers(){const{interop:e}=this.outputOptions,t=new Map;for(const r of this.imports){const n=r.module;let i,a;if(n instanceof WD){if(i=n,a=r.name,"default"!==a&&"*"!==a&&"defaultOnly"===e(n.id))return DS(FS(n.id,a,!1))}else i=this.chunkByModule.get(n),a=i.getVariableExportName(r);nx(t,i,(()=>[])).push({imported:a,local:r.getName()})}return t}getReexportSpecifiers(){const{externalLiveBindings:e,interop:t}=this.outputOptions,r=new Map;for(let n of this.getExportNames()){let i,a,o=!1;if("*"===n[0]){const r=n.substr(1);"defaultOnly"===t(r)&&this.inputOptions.onwarn(PS(r)),o=e,i=this.modulesById.get(r),a=n="*"}else{const r=this.exportsByName[n];if(r instanceof wD)continue;const s=r.module;if(s instanceof eC){if(i=this.chunkByModule.get(s),i===this)continue;a=i.getVariableExportName(r),o=r.isReassigned}else{if(i=s,a=r.name,"default"!==a&&"*"!==a&&"defaultOnly"===t(s.id))return DS(FS(s.id,a,!0));o=e&&("default"!==a||ZD(String(t(s.id)),!0))}}nx(r,i,(()=>[])).push({imported:a,needsLiveBinding:o,reexported:n})}return r}getReferencedFiles(){const e=[];for(const t of this.orderedModules)for(const r of t.importMetas){const t=r.getReferencedFileName(this.pluginDriver);t&&e.push(t)}return e}getRelativePath(e,t){let r=HD(ME(We(this.id),e));return t&&r.endsWith(".js")&&(r=r.slice(0,-3)),".."===r?"../../"+He(e):""===r?"../"+He(e):r.startsWith("../")?r:"./"+r}inlineChunkDependencies(e){for(const t of e.dependencies)this.dependencies.has(t)||(this.dependencies.add(t),t instanceof EC&&this.inlineChunkDependencies(t))}prepareDynamicImportsAndImportMetas(){var e;const t=this.accessedGlobalsByScope;for(const r of this.orderedModules){for(const{node:n,resolution:i}of r.dynamicImports)if(n.included)if(i instanceof eC){const r=this.chunkByModule.get(i);r===this?n.setInternalResolution(i.namespace):n.setExternalResolution((null===(e=this.facadeChunkByModule.get(i))||void 0===e?void 0:e.exportMode)||r.exportMode,i,this.outputOptions,this.pluginDriver,t)}else n.setExternalResolution("external",i,this.outputOptions,this.pluginDriver,t);for(const e of r.importMetas)e.addAccessedGlobals(this.outputOptions.format,t)}}setExternalRenderPaths(e,t){for(const r of[...this.dependencies,...this.dynamicDependencies])r instanceof WD&&r.setRenderPath(e,t)}setIdentifierRenderResolutions({format:e,interop:t,namespaceToStringTag:r}){const n=new Set;for(const t of this.getExportNames()){const r=this.exportsByName[t];r instanceof kD&&(this.needsExportsShim=!0),"es"!==e&&"system"!==e&&r.isReassigned&&!r.isId?r.setRenderNames("exports",t):r instanceof wD?n.add(r):r.setRenderNames(null,null)}const i=new Set(["Object","Promise"]);switch(this.needsExportsShim&&i.add(AD),r&&i.add("Symbol"),e){case"system":i.add("module").add("exports");break;case"es":break;case"cjs":i.add("module").add("require").add("__filename").add("__dirname");default:i.add("exports");for(const e of dS)i.add(e)}!function(e,t,r,n,i,a,o,s,c,l,d,u,p){const _=e.slice().reverse();for(const e of _)e.scope.addUsedOutsideNames(n,i,d,u);!((e,t,r)=>{for(const n of t){for(const t of n.scope.variables.values())t.included&&!(t.renderBaseName||t instanceof CD&&t.getOriginalVariable()!==t)&&t.setRenderNames(null,tx(t.name,e));if(r.has(n)){const t=n.namespace;t.setRenderNames(null,tx(t.name,e))}}})(n,_,p),sC[i](n,r,t,a,o,s,c,l);for(const e of _)e.scope.deconflict(i,d,u)}(this.orderedModules,this.getDependenciesToBeDeconflicted("es"!==e&&"system"!==e,"amd"===e||"umd"===e||"iife"===e,t),this.imports,i,e,t,this.outputOptions.preserveModules,this.outputOptions.externalLiveBindings,this.chunkByModule,n,this.exportNamesByVariable,this.accessedGlobalsByScope,this.includedNamespaces)}setUpChunkImportsAndExportsForModule(e){const t=new Set(e.imports);if(!this.outputOptions.preserveModules&&this.includedNamespaces.has(e)){const r=e.namespace.getMemberVariables();for(const e of Object.keys(r))t.add(r[e])}for(let r of t){r instanceof CD&&(r=r.getOriginalVariable()),r instanceof wD&&(r=r.getBaseVariable());const t=this.chunkByModule.get(r.module);t!==this&&(this.imports.add(r),!(r instanceof ND&&this.outputOptions.preserveModules)&&r.module instanceof eC&&(t.exports.add(r),this.checkCircularDependencyImport(r,e)))}(this.includedNamespaces.has(e)||e.info.isEntry&&!1!==e.preserveSignature||e.includedDynamicImporters.some((e=>this.chunkByModule.get(e)!==this)))&&this.ensureReexportsAreAvailableForModule(e);for(const{node:t,resolution:r}of e.dynamicImports)t.included&&r instanceof eC&&this.chunkByModule.get(r)===this&&!this.includedNamespaces.has(r)&&(this.includedNamespaces.add(r),this.ensureReexportsAreAvailableForModule(r))}}const xC=(e,t)=>t?`${e}\n${t}`:e,DC=(e,t)=>t?`${e}\n\n${t}`:e;function SC(e,t,r){const n=new Set([e]);for(const e of n){r.add(e),t.push(e);for(const t of e.dependencies)t instanceof WD||r.has(t)||n.add(t)}}const TC=(e,t)=>e.execIndex>t.execIndex?1:-1;function CC(e,t,r){const n=Symbol(e.id),i=[ES(e.id)];let a=t;for(e.cycles.add(n);a!==e;)a.cycles.add(n),i.push(ES(a.id)),a=r.get(a);return i.push(i[0]),i.reverse(),i}var AC;function kC(e,t,r){e in t&&r((e=>({code:TS.FILE_NAME_CONFLICT,message:`The emitted file "${e}" overwrites a previously emitted file of the same name.`}))(e)),t[e]=NC}(e=>{e[e.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",e[e.ANALYSE=1]="ANALYSE",e[e.GENERATE=2]="GENERATE"})(AC||(AC={}));const NC={type:"placeholder"};function wC(e,t,r){if(!("string"==typeof e||e instanceof Uint8Array)){const e=t.fileName||t.name||r;return DS(IS(`Could not set source for ${"string"==typeof e?`asset "${e}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return e}class FC{constructor(e,t,r){this.graph=e,this.options=t,this.facadeChunkByModule=null,this.output=null,this.assertAssetsFinalized=()=>{for(const[t,r]of this.filesByReferenceId.entries())if("asset"===r.type&&"string"!=typeof r.fileName)return DS((e=r.name||t,{code:TS.ASSET_SOURCE_MISSING,message:`Plugin error creating asset "${e}" - no asset source set.`}));var e},this.emitFile=e=>(e=>Boolean(e&&("asset"===e.type||"chunk"===e.type)))(e)?(e=>{const t=e.fileName||e.name;return!t||"string"==typeof t&&xS(t)})(e)?"chunk"===e.type?this.emitChunk(e):this.emitAsset(e):DS(IS(`The "fileName" or "name" properties of emitted files must be strings that are neither absolute nor relative paths and do not contain invalid characters, received "${e.fileName||e.name}".`)):DS(IS(`Emitted files must be of type "asset" or "chunk", received "${e&&e.type}".`)),this.getFileName=e=>{const t=this.filesByReferenceId.get(e);return t?"chunk"===t.type?(r=t,n=this.facadeChunkByModule,r.fileName||r.module&&(null===(i=null==n?void 0:n.get(r.module))||void 0===i?void 0:i.id)||DS((a=r.fileName||r.name,{code:TS.CHUNK_NOT_GENERATED,message:`Plugin error - Unable to get file name for chunk "${a}". Ensure that generate is called first.`}))):function(e,t){return"string"!=typeof e.fileName?DS((r=e.name||t,{code:TS.ASSET_NOT_FINALISED,message:`Plugin error - Unable to get file name for asset "${r}". Ensure that the source is set and that generate is called first.`})):e.fileName;var r}(t,e):DS((o=e,{code:TS.FILE_NOT_FOUND,message:`Plugin error - Unable to get file name for unknown file "${o}".`}));var r,n,i,a,o},this.setAssetSource=(e,t)=>{const r=this.filesByReferenceId.get(e);if(!r)return DS((n=e,{code:TS.ASSET_NOT_FOUND,message:`Plugin error - Unable to set the source for unknown asset "${n}".`}));var n,i;if("asset"!==r.type)return DS(IS(`Asset sources can only be set for emitted assets but "${e}" is an emitted chunk.`));if(void 0!==r.source)return DS((i=r.name||e,{code:TS.ASSET_SOURCE_ALREADY_SET,message:`Unable to set the source for asset "${i}", source already set.`}));const a=wC(t,r,e);this.output?this.finalizeAsset(r,a,e,this.output):r.source=a},this.setOutputBundle=(e,t,r)=>{this.output={assetFileNames:t,bundle:e},this.facadeChunkByModule=r;for(const e of this.filesByReferenceId.values())e.fileName&&kC(e.fileName,this.output.bundle,this.options.onwarn);for(const[e,t]of this.filesByReferenceId.entries())"asset"===t.type&&void 0!==t.source&&this.finalizeAsset(t,t.source,e,this.output)},this.filesByReferenceId=r?new Map(r.filesByReferenceId):new Map}assignReferenceId(e,t){let r;do{const e=oC();r?e.update(r):e.update(t),r=e.digest("hex").substr(0,8)}while(this.filesByReferenceId.has(r));return this.filesByReferenceId.set(r,e),r}emitAsset(e){const t=void 0!==e.source?wC(e.source,e,null):void 0,r={fileName:e.fileName,name:e.name,source:t,type:"asset"},n=this.assignReferenceId(r,e.fileName||e.name||e.type);return this.output&&(e.fileName&&kC(e.fileName,this.output.bundle,this.options.onwarn),void 0!==t&&this.finalizeAsset(r,t,n,this.output)),n}emitChunk(e){if(this.graph.phase>AC.LOAD_AND_PARSE)return DS({code:TS.INVALID_ROLLUP_PHASE,message:"Cannot emit chunks after module loading has finished."});if("string"!=typeof e.id)return DS(IS(`Emitted chunks need to have a valid string id, received "${e.id}"`));const t={fileName:e.fileName,module:null,name:e.name||e.id,type:"chunk"};return this.graph.moduleLoader.emitChunk(e).then((e=>t.module=e)).catch((()=>{})),this.assignReferenceId(t,e.id)}finalizeAsset(e,t,r,n){const i=e.fileName||((e,t)=>{for(const r of Object.keys(e)){const n=e[r];if("asset"===n.type&&PC(t,n.source))return r}return null})(n.bundle,t)||((e,t,r)=>{const n=e||"asset";return yC(hC("function"==typeof r.assetFileNames?r.assetFileNames({name:e,source:t,type:"asset"}):r.assetFileNames,"output.assetFileNames",{hash(){const e=oC();return e.update(n),e.update(":"),e.update(t),e.digest("hex").substr(0,8)},ext(){return Ke(n).substr(1)},extname(){return Ke(n)},name(){return n.substr(0,n.length-Ke(n).length)}}),r.bundle)})(e.name,t,n),a={...e,source:t,fileName:i};this.filesByReferenceId.set(r,a);const o=this.options;n.bundle[i]={fileName:i,name:e.name,get isAsset(){return MS('Accessing "isAsset" on files in the bundle is deprecated, please use "type === \'asset\'" instead',!0,o),!0},source:t,type:"asset"}}}function PC(e,t){if("string"==typeof e)return e===t;if("string"==typeof t)return!1;if("equals"in e)return e.equals(t);if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}class IC{constructor(e,t,r,n,i){this.outputOptions=e,this.unsetOptions=t,this.inputOptions=r,this.pluginDriver=n,this.graph=i,this.facadeChunkByModule=new Map,this.includedNamespaces=new Set}async generate(e){GT("GENERATE",1);const t=Object.create(null);this.pluginDriver.setOutputBundle(t,this.outputOptions.assetFileNames,this.facadeChunkByModule);try{await this.pluginDriver.hookParallel("renderStart",[this.outputOptions,this.inputOptions]),GT("generate chunks",2);const e=await this.generateChunks();e.length>1&&(r=this.outputOptions,n=this.inputOptions.onwarn,!("umd"===r.format||"iife"===r.format?DS({code:"INVALID_OPTION",message:"UMD and IIFE output formats are not supported for code-splitting builds."}):"string"==typeof r.file?DS({code:"INVALID_OPTION",message:'When building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option.'}):r.sourcemapFile?DS({code:"INVALID_OPTION",message:'"output.sourcemapFile" is only supported for single-file builds.'}):(!r.amd.autoId&&r.amd.id&&n({code:"INVALID_OPTION",message:'"output.amd.id" is only properly supported for single-file builds. Use "output.amd.autoId" and "output.amd.basePath".'}),void 0)));const i=(e=>{if(0===e.length)return"/";if(1===e.length)return We(e[0]);const t=e.slice(1).reduce(((e,t)=>{const r=t.split(/\/+|\\+/);let n;for(n=0;e[n]===r[n]&&n<Math.min(e.length,r.length);n++);return e.slice(0,n)}),e[0].split(/\/+|\\+/));return t.length>1?t.join("/"):"/"})((e=>{const t=[];for(const r of e)for(const e of r.entryModules)VD(e.id)&&t.push(e.id);return t})(e));$T("generate chunks",2),GT("render modules",2);const a=await(async(e,t)=>{try{let[r,n,i,a]=await Promise.all([t.hookReduceValue("banner",e.banner(),[],xC),t.hookReduceValue("footer",e.footer(),[],xC),t.hookReduceValue("intro",e.intro(),[],DC),t.hookReduceValue("outro",e.outro(),[],DC)]);return i&&(i+="\n\n"),a&&(a=`\n\n${a}`),r.length&&(r+="\n"),n.length&&(n="\n"+n),{intro:i,outro:a,banner:r,footer:n}}catch(e){return DS({code:"ADDON_ERROR",message:`Could not retrieve ${e.hook}. Check configuration of plugin ${e.plugin}.\n\tError Message: ${e.message}`})}})(this.outputOptions,this.pluginDriver);this.prerenderChunks(e,i),$T("render modules",2),await this.addFinalizedChunksToBundle(e,i,a,t)}catch(e){throw await this.pluginDriver.hookParallel("renderError",[e]),e}var r,n;return await this.pluginDriver.hookSeq("generateBundle",[this.outputOptions,t,e]),this.finaliseAssets(t),$T("GENERATE",1),t}async addFinalizedChunksToBundle(e,t,r,n){this.assignChunkIds(e,t,r,n);for(const t of e)n[t.id]=t.getChunkInfoWithFileNames();await Promise.all(e.map((async e=>{const t=n[e.id];Object.assign(t,await e.render(this.outputOptions,r,t))})))}async addManualChunks(e){const t=new Map,r=await Promise.all(Object.keys(e).map((async t=>({alias:t,entries:await this.graph.moduleLoader.addAdditionalModules(e[t])}))));for(const{alias:e,entries:n}of r)for(const r of n)MC(e,r,t);return t}assignChunkIds(e,t,r,n){const i=[],a=[];for(const t of e)(t.facadeModule&&t.facadeModule.isUserDefinedEntryPoint?i:a).push(t);const o=i.concat(a);for(const e of o)this.outputOptions.file?e.id=He(this.outputOptions.file):this.outputOptions.preserveModules?e.id=e.generateIdPreserveModules(t,this.outputOptions,n,this.unsetOptions):e.id=e.generateId(r,this.outputOptions,n,!0),n[e.id]=NC}assignManualChunks(e){const t=new Map,r={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(const n of this.graph.modulesById.values())if(n instanceof eC){const i=e(n.id,r);"string"==typeof i&&MC(i,n,t)}return t}finaliseAssets(e){for(const t of Object.keys(e)){const r=e[t];if(r.type||(MS('A plugin is directly adding properties to the bundle object in the "generateBundle" hook. This is deprecated and will be removed in a future Rollup version, please use "this.emitFile" instead.',!0,this.inputOptions),r.type="asset"),this.outputOptions.validate&&"string"==typeof r.code)try{this.graph.contextParse(r.code,{allowHashBang:!0,ecmaVersion:"latest"})}catch(e){this.inputOptions.onwarn(CS(r,e))}}this.pluginDriver.finaliseAssets()}async generateChunks(){const{manualChunks:e}=this.outputOptions,t="object"==typeof e?await this.addManualChunks(e):this.assignManualChunks(e),r=[],n=new Map;for(const{alias:e,modules:i}of this.outputOptions.inlineDynamicImports?[{alias:null,modules:OC(this.graph.modulesById)}]:this.outputOptions.preserveModules?OC(this.graph.modulesById).map((e=>({alias:null,modules:[e]}))):function(e,t){const r=[],n=new Set(t.keys()),i=Object.create(null);for(const[e,r]of t)SC(e,i[r]=i[r]||[],n);for(const[e,t]of Object.entries(i))r.push({alias:e,modules:t});const a=new Map,{dependentEntryPointsByModule:o,dynamicEntryModules:s}=(e=>{const t=new Set,r=new Map,n=new Set(e);for(const e of n){const i=new Set([e]);for(const a of i){nx(r,a,(()=>new Set)).add(e);for(const e of a.getDependenciesToBeIncluded())e instanceof WD||i.add(e);for(const{resolution:e}of a.dynamicImports)e instanceof eC&&e.includedDynamicImporters.length>0&&(t.add(e),n.add(e));for(const e of a.implicitlyLoadedBefore)t.add(e),n.add(e)}}return{dependentEntryPointsByModule:r,dynamicEntryModules:t}})(e),c=((e,t)=>{const r=new Map;for(const n of t){const t=nx(r,n,(()=>new Set));for(const r of[...n.includedDynamicImporters,...n.implicitlyLoadedAfter])for(const n of e.get(r))t.add(n)}return r})(o,s),l=new Set(e);function d(e,t){const r=new Set([e]);for(const i of r){const s=nx(a,i,(()=>new Set));if(!t||!u(t,o.get(i))){s.add(e);for(const e of i.getDependenciesToBeIncluded())e instanceof WD||n.has(e)||r.add(e)}}}function u(e,t){const r=new Set(e);for(const e of r)if(!t.has(e)){if(l.has(e))return!1;const t=c.get(e);for(const e of t)r.add(e)}return!0}for(const t of e)n.has(t)||d(t,null);for(const e of s)n.has(e)||d(e,c.get(e));return r.push(...((e,t)=>{const r=Object.create(null);for(const[n,i]of t){let t="";for(const r of e)t+=i.has(r)?"X":"_";const a=r[t];a?a.push(n):r[t]=[n]}return Object.keys(r).map((e=>({alias:null,modules:r[e]})))})([...e,...s],a)),r}(this.graph.entryModules,t)){void i.sort(TC);const t=new EC(i,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,n,this.facadeChunkByModule,this.includedNamespaces,e);r.push(t);for(const e of i)n.set(e,t)}for(const e of r)e.link();const i=[];for(const e of r)i.push(...e.generateFacades());return[...r,...i]}prerenderChunks(e,t){for(const t of e)t.generateExports();for(const r of e)r.preRender(this.outputOptions,t)}}function OC(e){return[...e.values()].filter((e=>e instanceof eC&&(e.isIncluded()||e.info.isEntry||e.includedDynamicImporters.length>0)))}function MC(e,t,r){const n=r.get(t);if("string"==typeof n&&n!==e)return DS((i=t.id,a=e,o=n,{code:TS.INVALID_CHUNK,message:`Cannot assign ${ES(i)} to the "${a}" chunk as it is already in the "${o}" chunk.`}));var i,a,o;r.set(t,e)}var RC={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},LC="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",BC={5:LC,"5module":LC+" export import",6:LC+" const class extends export import super"},UC=/^in(stanceof)?$/,jC="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",VC="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",zC=new RegExp("["+jC+"]"),HC=new RegExp("["+jC+VC+"]");jC=VC=null;var WC=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],KC=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function JC(e,t){for(var r=65536,n=0;n<t.length;n+=2){if((r+=t[n])>e)return!1;if((r+=t[n+1])>=e)return!0}}function GC(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&zC.test(String.fromCharCode(e)):!1!==t&&JC(e,WC)))}function $C(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&HC.test(String.fromCharCode(e)):!1!==t&&(JC(e,WC)||JC(e,KC)))))}var qC=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function XC(e,t){return new qC(e,{beforeExpr:!0,binop:t})}var YC={beforeExpr:!0},QC={startsExpr:!0},ZC={};function eA(e,t){return void 0===t&&(t={}),t.keyword=e,ZC[e]=new qC(e,t)}var tA={num:new qC("num",QC),regexp:new qC("regexp",QC),string:new qC("string",QC),name:new qC("name",QC),eof:new qC("eof"),bracketL:new qC("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new qC("]"),braceL:new qC("{",{beforeExpr:!0,startsExpr:!0}),braceR:new qC("}"),parenL:new qC("(",{beforeExpr:!0,startsExpr:!0}),parenR:new qC(")"),comma:new qC(",",YC),semi:new qC(";",YC),colon:new qC(":",YC),dot:new qC("."),question:new qC("?",YC),questionDot:new qC("?."),arrow:new qC("=>",YC),template:new qC("template"),invalidTemplate:new qC("invalidTemplate"),ellipsis:new qC("...",YC),backQuote:new qC("`",QC),dollarBraceL:new qC("${",{beforeExpr:!0,startsExpr:!0}),eq:new qC("=",{beforeExpr:!0,isAssign:!0}),assign:new qC("_=",{beforeExpr:!0,isAssign:!0}),incDec:new qC("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new qC("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:XC("||",1),logicalAND:XC("&&",2),bitwiseOR:XC("|",3),bitwiseXOR:XC("^",4),bitwiseAND:XC("&",5),equality:XC("==/!=/===/!==",6),relational:XC("</>/<=/>=",7),bitShift:XC("<</>>/>>>",8),plusMin:new qC("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:XC("%",10),star:XC("*",10),slash:XC("/",10),starstar:new qC("**",{beforeExpr:!0}),coalesce:XC("??",1),_break:eA("break"),_case:eA("case",YC),_catch:eA("catch"),_continue:eA("continue"),_debugger:eA("debugger"),_default:eA("default",YC),_do:eA("do",{isLoop:!0,beforeExpr:!0}),_else:eA("else",YC),_finally:eA("finally"),_for:eA("for",{isLoop:!0}),_function:eA("function",QC),_if:eA("if"),_return:eA("return",YC),_switch:eA("switch"),_throw:eA("throw",YC),_try:eA("try"),_var:eA("var"),_const:eA("const"),_while:eA("while",{isLoop:!0}),_with:eA("with"),_new:eA("new",{beforeExpr:!0,startsExpr:!0}),_this:eA("this",QC),_super:eA("super",QC),_class:eA("class",QC),_extends:eA("extends",YC),_export:eA("export"),_import:eA("import",QC),_null:eA("null",QC),_true:eA("true",QC),_false:eA("false",QC),_in:eA("in",{beforeExpr:!0,binop:7}),_instanceof:eA("instanceof",{beforeExpr:!0,binop:7}),_typeof:eA("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:eA("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:eA("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},rA=/\r\n?|\n|\u2028|\u2029/,nA=new RegExp(rA.source,"g");function iA(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var aA=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,oA=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,sA=Object.prototype,cA=sA.hasOwnProperty,lA=sA.toString;function dA(e,t){return cA.call(e,t)}var uA=Array.isArray||(e=>"[object Array]"===lA.call(e));function pA(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var _A=function(e,t){this.line=e,this.column=t};_A.prototype.offset=function(e){return new _A(this.line,this.column+e)};var fA=function(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)};function mA(e,t){for(var r=1,n=0;;){nA.lastIndex=n;var i=nA.exec(e);if(!(i&&i.index<t))return new _A(r,t-n);++r,n=i.index+i[0].length}}var gA={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},hA=!1;function yA(e,t){return 2|(e?4:0)|(t?8:0)}var vA=function(e,t,r){this.options=e=function(e){var t={};for(var r in gA)t[r]=e&&dA(e,r)?e[r]:gA[r];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!hA&&"object"==typeof console&&console.warn&&(hA=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),uA(t.onToken)){var n=t.onToken;t.onToken=e=>n.push(e)}return uA(t.onComment)&&(t.onComment=function(e,t){return function(r,n,i,a,o,s){var c={type:r?"Block":"Line",value:n,start:i,end:a};e.locations&&(c.loc=new fA(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=pA(BC[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";!0!==e.allowReserved&&(n=RC[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(n+=" await")),this.reservedWords=pA(n);var i=(n?n+" ":"")+RC.strict;this.reservedWordsStrict=pA(i),this.reservedWordsStrictBind=pA(i+" "+RC.strictBind),this.input=String(t),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(rA).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=tA.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},bA={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},inNonArrowFunction:{configurable:!0}};vA.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},bA.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},bA.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},bA.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},bA.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},bA.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},bA.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},bA.inNonArrowFunction.get=function(){return(2&this.currentThisScope().flags)>0},vA.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r},vA.parse=function(e,t){return new this(t,e).parse()},vA.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()},vA.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(vA.prototype,bA);var EA=vA.prototype,xA=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function DA(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}EA.strictDirective=function(e){for(;;){oA.lastIndex=e,e+=oA.exec(this.input)[0].length;var t=xA.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){oA.lastIndex=e+t[0].length;var r=oA.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return";"===i||"}"===i||rA.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(n+1))}e+=t[0].length,oA.lastIndex=e,e+=oA.exec(this.input)[0].length,";"===this.input[e]&&e++}},EA.eat=function(e){return this.type===e&&(this.next(),!0)},EA.isContextual=function(e){return this.type===tA.name&&this.value===e&&!this.containsEsc},EA.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},EA.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},EA.canInsertSemicolon=function(){return this.type===tA.eof||this.type===tA.braceR||rA.test(this.input.slice(this.lastTokEnd,this.start))},EA.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},EA.semicolon=function(){this.eat(tA.semi)||this.insertSemicolon()||this.unexpected()},EA.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},EA.expect=function(e){this.eat(e)||this.unexpected()},EA.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},EA.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}},EA.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},EA.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},EA.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var SA=vA.prototype;SA.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==tA.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,i=Object.keys(this.undefinedExports);n<i.length;n+=1){var a=i[n];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var TA={kind:"loop"},CA={kind:"switch"};SA.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;oA.lastIndex=this.pos;var t=oA.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(91===n)return!0;if(e)return!1;if(123===n)return!0;if(GC(n,!0)){for(var i=r+1;$C(this.input.charCodeAt(i),!0);)++i;var a=this.input.slice(r,i);if(!UC.test(a))return!0}return!1},SA.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;oA.lastIndex=this.pos;var e=oA.exec(this.input),t=this.pos+e[0].length;return!(rA.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!==this.input.length&&$C(this.input.charAt(t+8)))},SA.parseStatement=function(e,t,r){var n,i=this.type,a=this.startNode();switch(this.isLet(e)&&(i=tA._var,n="let"),i){case tA._break:case tA._continue:return this.parseBreakContinueStatement(a,i.keyword);case tA._debugger:return this.parseDebuggerStatement(a);case tA._do:return this.parseDoStatement(a);case tA._for:return this.parseForStatement(a);case tA._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case tA._class:return e&&this.unexpected(),this.parseClass(a,!0);case tA._if:return this.parseIfStatement(a);case tA._return:return this.parseReturnStatement(a);case tA._switch:return this.parseSwitchStatement(a);case tA._throw:return this.parseThrowStatement(a);case tA._try:return this.parseTryStatement(a);case tA._const:case tA._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(a,n);case tA._while:return this.parseWhileStatement(a);case tA._with:return this.parseWithStatement(a);case tA.braceL:return this.parseBlock(!0,a);case tA.semi:return this.parseEmptyStatement(a);case tA._export:case tA._import:if(this.options.ecmaVersion>10&&i===tA._import){oA.lastIndex=this.pos;var o=oA.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(40===c||46===c)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===tA._import?this.parseImport(a):this.parseExport(a,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var l=this.value,d=this.parseExpression();return i===tA.name&&"Identifier"===d.type&&this.eat(tA.colon)?this.parseLabeledStatement(a,l,d,e):this.parseExpressionStatement(a,d)}},SA.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(tA.semi)||this.insertSemicolon()?e.label=null:this.type!==tA.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var i=this.labels[n];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(r||"loop"===i.kind))break;if(e.label&&r)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},SA.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},SA.parseDoStatement=function(e){return this.next(),this.labels.push(TA),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(tA._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(tA.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},SA.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(TA),this.enterScope(0),this.expect(tA.parenL),this.type===tA.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===tA._var||this.type===tA._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.type===tA._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length?(this.options.ecmaVersion>=9&&(this.type===tA._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,n)):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var a=new DA,o=this.parseExpression(!0,a);return this.type===tA._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===tA._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,a),this.checkLValPattern(o),this.parseForIn(e,o)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},SA.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,kA|(r?0:NA),!1,t)},SA.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(tA._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},SA.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(tA.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},SA.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(tA.braceL),this.labels.push(CA),this.enterScope(0);for(var r=!1;this.type!==tA.braceR;)if(this.type===tA._case||this.type===tA._default){var n=this.type===tA._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(tA.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},SA.parseThrowStatement=function(e){return this.next(),rA.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var AA=[];SA.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===tA._catch){var t=this.startNode();if(this.next(),this.eat(tA.parenL)){t.param=this.parseBindingAtom();var r="Identifier"===t.param.type;this.enterScope(r?32:0),this.checkLValPattern(t.param,r?4:2),this.expect(tA.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(tA._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},SA.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},SA.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(TA),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},SA.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},SA.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},SA.parseLabeledStatement=function(e,t,r,n){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(r.start,"Label '"+t+"' is already declared");for(var o=this.type.isLoop?"loop":this.type===tA._switch?"switch":null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},SA.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},SA.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(tA.braceL),e&&this.enterScope(0);this.type!==tA.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},SA.parseFor=function(e,t){return e.init=t,this.expect(tA.semi),e.test=this.type===tA.semi?null:this.parseExpression(),this.expect(tA.semi),e.update=this.type===tA.parenR?null:this.parseExpression(),this.expect(tA.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},SA.parseForIn=function(e,t){var r=this.type===tA._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(tA.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},SA.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(tA.eq)?n.init=this.parseMaybeAssign(t):"const"!==r||this.type===tA._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===n.id.type||t&&(this.type===tA._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(tA.comma))break}return e},SA.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var kA=1,NA=2;SA.parseFunction=function(e,t,r,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===tA.star&&t&NA&&this.unexpected(),e.generator=this.eat(tA.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&kA&&(e.id=4&t&&this.type!==tA.name?null:this.parseIdent(),!e.id||t&NA||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(yA(e.async,e.generator)),t&kA||(e.id=this.type===tA.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&kA?"FunctionDeclaration":"FunctionExpression")},SA.parseFunctionParams=function(e){this.expect(tA.parenL),e.params=this.parseBindingList(tA.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},SA.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),i=!1;for(n.body=[],this.expect(tA.braceL);this.type!==tA.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(n.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind&&(i&&this.raise(a.start,"Duplicate constructor in the same class"),i=!0))}return this.strict=r,this.next(),e.body=this.finishNode(n,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},SA.parseClassElement=function(e){var t=this;if(this.eat(tA.semi))return null;var r=this.startNode(),n=(e,n)=>{void 0===n&&(n=!1);var i=t.start,a=t.startLoc;return!(!t.eatContextual(e)||(t.type===tA.parenL||n&&t.canInsertSemicolon())&&(r.key&&t.unexpected(),r.computed=!1,r.key=t.startNodeAt(i,a),r.key.name=e,t.finishNode(r.key,"Identifier"),1))};r.kind="method",r.static=n("static");var i=this.eat(tA.star),a=!1;i||(this.options.ecmaVersion>=8&&n("async",!0)?(a=!0,i=this.options.ecmaVersion>=9&&this.eat(tA.star)):n("get")?r.kind="get":n("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var o=r.key,s=!1;return r.computed||r.static||!("Identifier"===o.type&&"constructor"===o.name||"Literal"===o.type&&"constructor"===o.value)?r.static&&"Identifier"===o.type&&"prototype"===o.name&&this.raise(o.start,"Classes may not have a static property named prototype"):("method"!==r.kind&&this.raise(o.start,"Constructor can't have get/set modifier"),i&&this.raise(o.start,"Constructor can't be a generator"),a&&this.raise(o.start,"Constructor can't be an async method"),r.kind="constructor",s=e),this.parseClassMethod(r,i,a,s),"get"===r.kind&&0!==r.value.params.length&&this.raiseRecoverable(r.value.start,"getter should have no params"),"set"===r.kind&&1!==r.value.params.length&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),"set"===r.kind&&"RestElement"===r.value.params[0].type&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r},SA.parseClassMethod=function(e,t,r,n){return e.value=this.parseMethod(t,r,n),this.finishNode(e,"MethodDefinition")},SA.parseClassId=function(e,t){this.type===tA.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},SA.parseClassSuper=function(e){e.superClass=this.eat(tA._extends)?this.parseExprSubscripts():null},SA.parseExport=function(e,t){if(this.next(),this.eat(tA.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==tA.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(tA._default)){var r;if(this.checkExport(t,"default",this.lastTokStart),this.type===tA._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,4|kA,!1,r)}else if(this.type===tA._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==tA.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},SA.checkExport=function(e,t,r){e&&(dA(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},SA.checkPatternExport=function(e,t){var r=t.type;if("Identifier"===r)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===r)for(var n=0,i=t.properties;n<i.length;n+=1){var a=i[n];this.checkPatternExport(e,a)}else if("ArrayPattern"===r)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else"Property"===r?this.checkPatternExport(e,t.value):"AssignmentPattern"===r?this.checkPatternExport(e,t.left):"RestElement"===r?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===r&&this.checkPatternExport(e,t.expression)},SA.checkVariableExport=function(e,t){if(e)for(var r=0,n=t;r<n.length;r+=1){var i=n[r];this.checkPatternExport(e,i.id)}},SA.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},SA.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(tA.braceL);!this.eat(tA.braceR);){if(r)r=!1;else if(this.expect(tA.comma),this.afterTrailingComma(tA.braceR))break;var n=this.startNode();n.local=this.parseIdent(!0),n.exported=this.eatContextual("as")?this.parseIdent(!0):n.local,this.checkExport(e,n.exported.name,n.exported.start),t.push(this.finishNode(n,"ExportSpecifier"))}return t},SA.parseImport=function(e){return this.next(),this.type===tA.string?(e.specifiers=AA,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===tA.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},SA.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===tA.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLValSimple(r.local,2),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(tA.comma))return e}if(this.type===tA.star){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdent(),this.checkLValSimple(n.local,2),e.push(this.finishNode(n,"ImportNamespaceSpecifier")),e}for(this.expect(tA.braceL);!this.eat(tA.braceR);){if(t)t=!1;else if(this.expect(tA.comma),this.afterTrailingComma(tA.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,2),e.push(this.finishNode(i,"ImportSpecifier"))}return e},SA.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},SA.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var wA=vA.prototype;wA.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,i=e.properties;n<i.length;n+=1){var a=i[n];this.toAssignable(a,t),"RestElement"!==a.type||"ArrayPattern"!==a.argument.type&&"ObjectPattern"!==a.argument.type||this.raise(a.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e},wA.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var i=e[n];i&&this.toAssignable(i,t)}if(r){var a=e[r-1];6===this.options.ecmaVersion&&t&&a&&"RestElement"===a.type&&"Identifier"!==a.argument.type&&this.unexpected(a.argument.start)}return e},wA.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},wA.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==tA.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},wA.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case tA.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(tA.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case tA.braceL:return this.parseObj(!0)}return this.parseIdent()},wA.parseBindingList=function(e,t,r){for(var n=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(tA.comma),t&&this.type===tA.comma)n.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===tA.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),n.push(a),this.type===tA.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),n.push(o)}return n},wA.parseBindingListItem=e=>e,wA.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(tA.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},wA.checkLValSimple=function(e,t,r){void 0===t&&(t=0);var n=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(dA(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},wA.checkLValPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var n=0,i=e.properties;n<i.length;n+=1){var a=i[n];this.checkLValInnerPattern(a,t,r)}break;case"ArrayPattern":for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,r)}break;default:this.checkLValSimple(e,t,r)}},wA.checkLValInnerPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var FA=vA.prototype;FA.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,i=e.key;switch(i.type){case"Identifier":n=i.name;break;case"Literal":n=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)return"__proto__"===n&&"init"===a&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0),void 0;var o=t[n="$"+n];o?("init"===a?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(i.start,"Redefinition of property"):o=t[n]={init:!1,get:!1,set:!1},o[a]=!0}},FA.parseExpression=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===tA.comma){var a=this.startNodeAt(r,n);for(a.expressions=[i];this.eat(tA.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return i},FA.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,i=-1,a=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new DA,n=!0);var o=this.start,s=this.startLoc;this.type!==tA.parenL&&this.type!==tA.name||(this.potentialArrowAt=this.start);var c=this.parseMaybeConditional(e,t);if(r&&(c=r.call(this,c,o,s)),this.type.isAssign){var l=this.startNodeAt(o,s);return l.operator=this.value,this.type===tA.eq&&(c=this.toAssignable(c,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===tA.eq?this.checkLValPattern(c):this.checkLValSimple(c),l.left=c,this.next(),l.right=this.parseMaybeAssign(e),this.finishNode(l,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),c},FA.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(tA.question)){var a=this.startNodeAt(r,n);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(tA.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return i},FA.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||i.start===r&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,r,n,-1,e)},FA.parseExprOp=function(e,t,r,n,i){var a=this.type.binop;if(null!=a&&(!i||this.type!==tA._in)&&a>n){var o=this.type===tA.logicalOR||this.type===tA.logicalAND,s=this.type===tA.coalesce;s&&(a=tA.logicalAND.binop);var c=this.value;this.next();var l=this.start,d=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1),l,d,a,i),p=this.buildBinary(t,r,e,u,c,o||s);return(o&&this.type===tA.coalesce||s&&(this.type===tA.logicalOR||this.type===tA.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,t,r,n,i)}return e},FA.buildBinary=function(e,t,r,n,i,a){var o=this.startNodeAt(e,t);return o.left=r,o.operator=i,o.right=n,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")},FA.parseMaybeUnary=function(e,t){var r,n=this.start,i=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))r=this.parseAwait(),t=!0;else if(this.type.prefix){var a=this.startNode(),o=this.type===tA.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):t=!0,r=this.finishNode(a,o?"UpdateExpression":"UnaryExpression")}else{if(r=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(n,i);s.operator=this.value,s.prefix=!1,s.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(s,"UpdateExpression")}}return!t&&this.eat(tA.starstar)?this.buildBinary(n,i,r,this.parseMaybeUnary(null,!1),"**",!1):r},FA.parseExprSubscripts=function(e){var t=this.start,r=this.startLoc,n=this.parseExprAtom(e);if("ArrowFunctionExpression"===n.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return n;var i=this.parseSubscripts(n,t,r);return e&&"MemberExpression"===i.type&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1)),i},FA.parseSubscripts=function(e,t,r,n){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,r,n,i,a);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var s=this.startNodeAt(t,r);s.expression=o,o=this.finishNode(s,"ChainExpression")}return o}e=o}},FA.parseSubscript=function(e,t,r,n,i,a){var o=this.options.ecmaVersion>=11,s=o&&this.eat(tA.questionDot);n&&s&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(tA.bracketL);if(c||s&&this.type!==tA.parenL&&this.type!==tA.backQuote||this.eat(tA.dot)){var l=this.startNodeAt(t,r);l.object=e,l.property=c?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),l.computed=!!c,c&&this.expect(tA.bracketR),o&&(l.optional=s),e=this.finishNode(l,"MemberExpression")}else if(!n&&this.eat(tA.parenL)){var d=new DA,u=this.yieldPos,p=this.awaitPos,_=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(tA.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!s&&!this.canInsertSemicolon()&&this.eat(tA.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=p,this.awaitIdentPos=_,this.parseArrowExpression(this.startNodeAt(t,r),f,!0);this.checkExpressionErrors(d,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=_||this.awaitIdentPos;var m=this.startNodeAt(t,r);m.callee=e,m.arguments=f,o&&(m.optional=s),e=this.finishNode(m,"CallExpression")}else if(this.type===tA.backQuote){(s||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var g=this.startNodeAt(t,r);g.tag=e,g.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(g,"TaggedTemplateExpression")}return e},FA.parseExprAtom=function(e){this.type===tA.slash&&this.readRegexp();var t,r=this.potentialArrowAt===this.start;switch(this.type){case tA._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type!==tA.parenL||this.allowDirectSuper||this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==tA.dot&&this.type!==tA.bracketL&&this.type!==tA.parenL&&this.unexpected(),this.finishNode(t,"Super");case tA._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case tA.name:var n=this.start,i=this.startLoc,a=this.containsEsc,o=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(tA._function))return this.parseFunction(this.startNodeAt(n,i),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(tA.arrow))return this.parseArrowExpression(this.startNodeAt(n,i),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===tA.name&&!a)return o=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(tA.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,i),[o],!0)}return o;case tA.regexp:var s=this.value;return(t=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},t;case tA.num:case tA.string:return this.parseLiteral(this.value);case tA._null:case tA._true:case tA._false:return(t=this.startNode()).value=this.type===tA._null?null:this.type===tA._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case tA.parenL:var c=this.start,l=this.parseParenAndDistinguishExpression(r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),l;case tA.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(tA.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case tA.braceL:return this.parseObj(!1,e);case tA._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case tA._class:return this.parseClass(this.startNode(),!1);case tA._new:return this.parseNew();case tA.backQuote:return this.parseTemplate();case tA._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},FA.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case tA.parenL:return this.parseDynamicImport(e);case tA.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},FA.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(tA.parenR)){var t=this.start;this.eat(tA.comma)&&this.eat(tA.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},FA.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},FA.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},FA.parseParenExpression=function(){this.expect(tA.parenL);var e=this.parseExpression();return this.expect(tA.parenR),e},FA.parseParenAndDistinguishExpression=function(e){var t,r=this.start,n=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,s=this.startLoc,c=[],l=!0,d=!1,u=new DA,p=this.yieldPos,_=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==tA.parenR;){if(l?l=!1:this.expect(tA.comma),i&&this.afterTrailingComma(tA.parenR,!0)){d=!0;break}if(this.type===tA.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===tA.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(tA.parenR),e&&!this.canInsertSemicolon()&&this.eat(tA.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=_,this.parseParenArrowList(r,n,c);c.length&&!d||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=_||this.awaitPos,c.length>1?((t=this.startNodeAt(o,s)).expressions=c,this.finishNodeAt(t,"SequenceExpression",f,m)):t=c[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(r,n);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},FA.parseParenItem=e=>e,FA.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var PA=[];FA.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(tA.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var n=this.start,i=this.startLoc,a=this.type===tA._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,i,!0),a&&"ImportExpression"===e.callee.type&&this.raise(n,"Cannot use new with import()"),this.eat(tA.parenL)?e.arguments=this.parseExprList(tA.parenR,this.options.ecmaVersion>=8,!1):e.arguments=PA,this.finishNode(e,"NewExpression")},FA.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===tA.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===tA.backQuote,this.finishNode(r,"TemplateElement")},FA.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===tA.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(tA.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(tA.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},FA.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===tA.name||this.type===tA.num||this.type===tA.string||this.type===tA.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===tA.star)&&!rA.test(this.input.slice(this.lastTokEnd,this.start))},FA.parseObj=function(e,t){var r=this.startNode(),n=!0,i={};for(r.properties=[],this.next();!this.eat(tA.braceR);){if(n)n=!1;else if(this.expect(tA.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(tA.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),r.properties.push(a)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},FA.parseProperty=function(e,t){var r,n,i,a,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(tA.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===tA.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===tA.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,t),this.type===tA.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,a=this.startLoc),e||(r=this.eat(tA.star)));var s=this.containsEsc;return this.parsePropertyName(o),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(o)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(tA.star),this.parsePropertyName(o,t)):n=!1,this.parsePropertyValue(o,e,r,n,i,a,t,s),this.finishNode(o,"Property")},FA.parsePropertyValue=function(e,t,r,n,i,a,o,s){if((r||n)&&this.type===tA.colon&&this.unexpected(),this.eat(tA.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===tA.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===tA.comma||this.type===tA.braceR||this.type===tA.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===tA.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(r||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c="get"===e.kind?0:1;if(e.value.params.length!==c){var l=e.value.start;"get"===e.kind?this.raiseRecoverable(l,"getter should have no params"):this.raiseRecoverable(l,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},FA.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(tA.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(tA.bracketR),e.key;e.computed=!1}return e.key=this.type===tA.num||this.type===tA.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},FA.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},FA.parseMethod=function(e,t,r){var n=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|yA(t,n.generator)|(r?128:0)),this.expect(tA.parenL),n.params=this.parseBindingList(tA.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(n,"FunctionExpression")},FA.parseArrowExpression=function(e,t,r){var n=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|yA(r,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=n,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},FA.parseFunctionBody=function(e,t,r){var n=t&&this.type!==tA.braceL,i=this.strict,a=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);i&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var s=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!i&&!a&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=s}this.exitScope()},FA.isSimpleParamList=e=>{for(var t=0,r=e;t<r.length;t+=1)if("Identifier"!==r[t].type)return!1;return!0},FA.checkParams=function(e,t){for(var r=Object.create(null),n=0,i=e.params;n<i.length;n+=1){var a=i[n];this.checkLValInnerPattern(a,1,t?null:r)}},FA.parseExprList=function(e,t,r,n){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(tA.comma),t&&this.afterTrailingComma(e))break;var o=void 0;r&&this.type===tA.comma?o=null:this.type===tA.ellipsis?(o=this.parseSpread(n),n&&this.type===tA.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):o=this.parseMaybeAssign(!1,n),i.push(o)}return i},FA.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,r).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},FA.parseIdent=function(e,t){var r=this.startNode();return this.type===tA.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,"class"!==r.name&&"function"!==r.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(r,"Identifier"),e||(this.checkUnreserved(r),"await"!==r.name||this.awaitIdentPos||(this.awaitIdentPos=r.start)),r},FA.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===tA.semi||this.canInsertSemicolon()||this.type!==tA.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(tA.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},FA.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0),this.finishNode(e,"AwaitExpression")};var IA=vA.prototype;IA.raise=function(e,t){var r=mA(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n},IA.raiseRecoverable=IA.raise,IA.curPosition=function(){if(this.options.locations)return new _A(this.curLine,this.pos-this.lineStart)};var OA=vA.prototype,MA=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};OA.enterScope=function(e){this.scopeStack.push(new MA(e))},OA.exitScope=function(){this.scopeStack.pop()},OA.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},OA.declareName=function(e,t,r){var n=!1;if(2===t){var i=this.currentScope();n=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var a=this.currentScope();n=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(32&s.flags&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){n=!0;break}if(s.var.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e],3&s.flags)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},OA.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},OA.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},OA.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags)return t}},OA.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags&&!(16&t.flags))return t}};var RA=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new fA(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},LA=vA.prototype;function BA(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}LA.startNode=function(){return new RA(this,this.start,this.startLoc)},LA.startNodeAt=function(e,t){return new RA(this,e,t)},LA.finishNode=function(e,t){return BA.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},LA.finishNodeAt=function(e,t,r,n){return BA.call(this,e,t,r,n)},LA.copyNode=function(e){var t=new RA(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var UA=function(e,t,r,n,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!i},jA={b_stat:new UA("{",!1),b_expr:new UA("{",!0),b_tmpl:new UA("${",!1),p_stat:new UA("(",!1),p_expr:new UA("(",!0),q_tmpl:new UA("`",!0,!0,(e=>e.tryReadTemplateToken())),f_stat:new UA("function",!1),f_expr:new UA("function",!0),f_expr_gen:new UA("function",!0,!1,null,!0),f_gen:new UA("function",!1,!1,null,!0)},VA=vA.prototype;VA.initialContext=()=>[jA.b_stat],VA.braceIsBlock=function(e){var t=this.curContext();return t===jA.f_expr||t===jA.f_stat||(e!==tA.colon||t!==jA.b_stat&&t!==jA.b_expr?e===tA._return||e===tA.name&&this.exprAllowed?rA.test(this.input.slice(this.lastTokEnd,this.start)):e===tA._else||e===tA.semi||e===tA.eof||e===tA.parenR||e===tA.arrow||(e===tA.braceL?t===jA.b_stat:e!==tA._var&&e!==tA._const&&e!==tA.name&&!this.exprAllowed):!t.isExpr)},VA.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},VA.updateContext=function(e){var t,r=this.type;r.keyword&&e===tA.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},tA.parenR.updateContext=tA.braceR.updateContext=function(){if(1===this.context.length)return this.exprAllowed=!0,void 0;var e=this.context.pop();e===jA.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},tA.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?jA.b_stat:jA.b_expr),this.exprAllowed=!0},tA.dollarBraceL.updateContext=function(){this.context.push(jA.b_tmpl),this.exprAllowed=!0},tA.parenL.updateContext=function(e){var t=e===tA._if||e===tA._for||e===tA._with||e===tA._while;this.context.push(t?jA.p_stat:jA.p_expr),this.exprAllowed=!0},tA.incDec.updateContext=()=>{},tA._function.updateContext=tA._class.updateContext=function(e){!e.beforeExpr||e===tA._else||e===tA.semi&&this.curContext()!==jA.p_stat||e===tA._return&&rA.test(this.input.slice(this.lastTokEnd,this.start))||(e===tA.colon||e===tA.braceL)&&this.curContext()===jA.b_stat?this.context.push(jA.f_stat):this.context.push(jA.f_expr),this.exprAllowed=!1},tA.backQuote.updateContext=function(){this.curContext()===jA.q_tmpl?this.context.pop():this.context.push(jA.q_tmpl),this.exprAllowed=!1},tA.star.updateContext=function(e){if(e===tA._function){var t=this.context.length-1;this.context[t]===jA.f_expr?this.context[t]=jA.f_expr_gen:this.context[t]=jA.f_gen}this.exprAllowed=!0},tA.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==tA.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var zA="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",HA=zA+" Extended_Pictographic",WA={9:zA,10:HA,11:HA,12:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic EBase EComp EMod EPres ExtPict"},KA="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",JA="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",GA=JA+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",$A={9:JA,10:GA,11:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",12:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"},qA={};function XA(e){var t=qA[e]={binary:pA(WA[e]+" "+KA),nonBinary:{General_Category:pA(KA),Script:pA($A[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}XA(9),XA(10),XA(11),XA(12);var YA=vA.prototype,QA=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=qA[e.options.ecmaVersion>=12?12:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function ZA(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function ek(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function tk(e){return e>=65&&e<=90||e>=97&&e<=122}function rk(e){return tk(e)||95===e}function nk(e){return rk(e)||ik(e)}function ik(e){return e>=48&&e<=57}function ak(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ok(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function sk(e){return e>=48&&e<=55}QA.prototype.reset=function(e,t,r){var n=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},QA.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},QA.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var i=r.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=n)return i;var a=r.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},QA.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var i,a=r.charCodeAt(e);return!t&&!this.switchU||a<=55295||a>=57344||e+1>=n||(i=r.charCodeAt(e+1))<56320||i>57343?e+1:e+2},QA.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},QA.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},QA.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},QA.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},YA.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=0;n<r.length;n++){var i=r.charAt(n);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(i,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},YA.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},YA.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var n=r[t];-1===e.groupNames.indexOf(n)&&e.raise("Invalid named capture referenced")}},YA.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},YA.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},YA.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},YA.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},YA.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},YA.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},YA.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},YA.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},YA.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},YA.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},YA.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},YA.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},YA.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},YA.regexp_eatSyntaxCharacter=e=>{var t=e.current();return!!ek(t)&&(e.lastIntValue=t,e.advance(),!0)},YA.regexp_eatPatternCharacters=e=>{for(var t=e.pos,r=0;-1!==(r=e.current())&&!ek(r);)e.advance();return e.pos!==t},YA.regexp_eatExtendedPatternCharacter=e=>{var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},YA.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue),void 0;e.raise("Invalid group")}},YA.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},YA.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ZA(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ZA(e.lastIntValue);return!0}return!1},YA.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),(e=>GC(e,!0)||36===e||95===e)(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},YA.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),(e=>$C(e,!0)||36===e||95===e||8204===e||8205===e)(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},YA.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},YA.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},YA.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},YA.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},YA.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},YA.regexp_eatZero=e=>48===e.current()&&!ik(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0),YA.regexp_eatControlEscape=e=>{var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},YA.regexp_eatControlLetter=e=>{var t=e.current();return!!tk(t)&&(e.lastIntValue=t%32,e.advance(),!0)},YA.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r,n=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(i&&a>=55296&&a<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(a-55296)+(s-56320)+65536,!0}e.pos=o,e.lastIntValue=a}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(r=e.lastIntValue)>=0&&r<=1114111)return!0;i&&e.raise("Invalid unicode escape"),e.pos=n}return!1},YA.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},YA.regexp_eatDecimalEscape=e=>{e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},YA.regexp_eatCharacterClassEscape=function(e){var t=e.current();if((e=>100===e||68===e||115===e||83===e||119===e||87===e)(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},YA.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},YA.regexp_validateUnicodePropertyNameAndValue=(e,t,r)=>{dA(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},YA.regexp_validateUnicodePropertyNameOrValue=(e,t)=>{e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},YA.regexp_eatUnicodePropertyName=e=>{var t=0;for(e.lastStringValue="";rk(t=e.current());)e.lastStringValue+=ZA(t),e.advance();return""!==e.lastStringValue},YA.regexp_eatUnicodePropertyValue=e=>{var t=0;for(e.lastStringValue="";nk(t=e.current());)e.lastStringValue+=ZA(t),e.advance();return""!==e.lastStringValue},YA.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},YA.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},YA.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||-1!==t&&-1!==r||e.raise("Invalid character class"),-1!==t&&-1!==r&&t>r&&e.raise("Range out of order in character class")}}},YA.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||sk(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},YA.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},YA.regexp_eatClassControlLetter=e=>{var t=e.current();return!(!ik(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},YA.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},YA.regexp_eatDecimalDigits=e=>{var t=e.pos,r=0;for(e.lastIntValue=0;ik(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},YA.regexp_eatHexDigits=e=>{var t=e.pos,r=0;for(e.lastIntValue=0;ak(r=e.current());)e.lastIntValue=16*e.lastIntValue+ok(r),e.advance();return e.pos!==t},YA.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},YA.regexp_eatOctalDigit=e=>{var t=e.current();return sk(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},YA.regexp_eatFixedHexDigits=(e,t)=>{var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var i=e.current();if(!ak(i))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+ok(i),e.advance()}return!0};var ck=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new fA(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},lk=vA.prototype;function dk(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}function uk(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}lk.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ck(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},lk.getToken=function(){return this.next(),new ck(this)},"undefined"!=typeof Symbol&&(lk[Symbol.iterator]=function(){var e=this;return{next(){var t=e.getToken();return{done:t.type===tA.eof,value:t}}}}),lk.curContext=function(){return this.context[this.context.length-1]},lk.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(tA.eof):e.override?e.override(this):(this.readToken(this.fullCharCodeAtPos()),void 0)},lk.readToken=function(e){return GC(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},lk.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},lk.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),r=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(nA.lastIndex=r;(e=nA.exec(this.input))&&e.index<this.pos;)++this.curLine,this.lineStart=e.index+e[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(r+2,n),r,this.pos,t,this.curPosition())},lk.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!iA(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},lk.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&aA.test(String.fromCharCode(e))))break e;++this.pos}}},lk.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},lk.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(tA.ellipsis)):(++this.pos,this.finishToken(tA.dot))},lk.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(tA.assign,2):this.finishOp(tA.slash,1)},lk.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=42===e?tA.star:tA.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,n=tA.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(tA.assign,r+1):this.finishOp(n,r)},lk.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(tA.assign,3):this.finishOp(124===e?tA.logicalOR:tA.logicalAND,2):61===t?this.finishOp(tA.assign,2):this.finishOp(124===e?tA.bitwiseOR:tA.bitwiseAND,1)},lk.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(tA.assign,2):this.finishOp(tA.bitwiseXOR,1)},lk.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!rA.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(tA.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(tA.assign,2):this.finishOp(tA.plusMin,1)},lk.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(tA.assign,r+1):this.finishOp(tA.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(tA.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},lk.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(tA.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(tA.arrow)):this.finishOp(61===e?tA.eq:tA.prefix,1)},lk.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(tA.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(tA.assign,3):this.finishOp(tA.coalesce,2)}return this.finishOp(tA.question,1)},lk.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(tA.parenL);case 41:return++this.pos,this.finishToken(tA.parenR);case 59:return++this.pos,this.finishToken(tA.semi);case 44:return++this.pos,this.finishToken(tA.comma);case 91:return++this.pos,this.finishToken(tA.bracketL);case 93:return++this.pos,this.finishToken(tA.bracketR);case 123:return++this.pos,this.finishToken(tA.braceL);case 125:return++this.pos,this.finishToken(tA.braceR);case 58:return++this.pos,this.finishToken(tA.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(tA.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(tA.prefix,1)}this.raise(this.pos,"Unexpected character '"+uk(e)+"'")},lk.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},lk.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(rA.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||(this.regexpState=new QA(this));s.reset(r,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch(e){}return this.finishToken(tA.regexp,{pattern:i,flags:o,value:c})},lk.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&void 0===t,i=r&&48===this.input.charCodeAt(this.pos),a=this.pos,o=0,s=0,c=0,l=null==t?1/0:t;c<l;++c,++this.pos){var d=this.input.charCodeAt(this.pos),u=void 0;if(n&&95===d)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===s&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===c&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),s=d;else{if((u=d>=97?d-97+10:d>=65?d-65+10:d>=48&&d<=57?d-48:1/0)>=e)break;s=d,o=o*e+u}}return n&&95===s&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=t&&this.pos-a!==t?null:o},lk.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=dk(this.input.slice(t,this.pos)),++this.pos):GC(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(tA.num,r)},lk.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var r=this.pos-t>=2&&48===this.input.charCodeAt(t);r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===n){var i=dk(this.input.slice(t,this.pos));return++this.pos,GC(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(tA.num,i)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),46!==n||r||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||r||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),GC(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a,o=(a=this.input.slice(t,this.pos),r?parseInt(a,8):parseFloat(a.replace(/_/g,"")));return this.finishToken(tA.num,o)},lk.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},lk.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):(iA(n,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(tA.string,t)};var pk={};lk.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==pk)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},lk.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw pk;this.raise(e,t)},lk.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==tA.template&&this.type!==tA.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(tA.template,e)):36===r?(this.pos+=2,this.finishToken(tA.dollarBraceL)):(++this.pos,this.finishToken(tA.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(iA(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},lk.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(tA.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},lk.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return uk(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return iA(t)?"":String.fromCharCode(t)}},lk.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},lk.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if($C(i,n))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(r,this.pos);var a=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?GC:$C)(o,n)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=uk(o),r=this.pos}t=!1}return e+this.input.slice(r,this.pos)},lk.readWord=function(){var e=this.readWord1(),t=tA.name;return this.keywords.test(e)&&(t=ZC[e]),this.finishToken(t,e)};var _k="8.0.5";vA.acorn={Parser:vA,version:_k,defaultOptions:gA,Position:_A,SourceLocation:fA,getLineInfo:mA,Node:RA,TokenType:qC,tokTypes:tA,keywordTypes:ZC,TokContext:UA,tokContexts:jA,isIdentifierChar:$C,isIdentifierStart:GC,Token:ck,isNewLine:iA,lineBreak:rA,lineBreakG:nA,nonASCIIwhitespace:aA};var fk={__proto__:null,Node:RA,Parser:vA,Position:_A,SourceLocation:fA,TokContext:UA,Token:ck,TokenType:qC,defaultOptions:gA,getLineInfo:mA,isIdentifierChar:$C,isIdentifierStart:GC,isNewLine:iA,keywordTypes:ZC,lineBreak:rA,lineBreakG:nA,nonASCIIwhitespace:aA,parse:(e,t)=>vA.parse(e,t),parseExpressionAt:(e,t,r)=>vA.parseExpressionAt(e,t,r),tokContexts:jA,tokTypes:tA,tokenizer:(e,t)=>vA.tokenizer(e,t),version:_k};class mk extends Wx{constructor(){super(),this.variables.set("undefined",new TD)}findVariable(e){let t=this.variables.get(e);return t||(t=new vD(e),this.variables.set(e,t)),t}}function gk(e){const t=We(e);try{Nt(t)}catch(e){gk(t);try{kt(t)}catch(e){if("EEXIST"!==e.code)throw e}}}function hk(e,t){return new Promise(((r,n)=>{gk(e),Bt(e,t,(e=>{e?n(e):r()}))}))}async function yk(e,t,r,n,i,a,o){const s=await((e,t,r,n,i,a)=>{let o=null,s=null;if(i){o=new Set;for(const r of i)e===r.source&&t===r.importer&&o.add(r.plugin);s=(e,t)=>({...e,resolve(e,r,{custom:a,skipSelf:o}=aD){return n(e,r,a,o?[...i,{importer:r,plugin:t,source:e}]:i)}})}return r.hookFirst("resolveId",[e,t,{custom:a}],s,o)})(e,t,n,i,a,o);return null!=s?s:void 0===t||VD(e)||"."===e[0]?((e,t)=>{let r=vk(e,t);return r||(r=vk(e+".mjs",t),r||(r=vk(e+".js",t),r))})(t?Ye(We(t),e):Ye(e),r):null}function vk(e,t){try{const r=Mt(e);if(!t&&r.isSymbolicLink())return vk(It(e),t);if(t&&r.isSymbolicLink()||r.isFile()){const t=He(e);if(-1!==Nt(We(e)).indexOf(t))return e}}catch(e){}}const bk="at position ",Ek="at output position ";function xk(e,t,{hook:r,id:n}={}){return"string"==typeof e&&(e={message:e}),e.code&&e.code!==TS.PLUGIN_ERROR&&(e.pluginCode=e.code),e.code=TS.PLUGIN_ERROR,e.plugin=t,r&&(e.hook=r),n&&(e.id=n),DS(e)}const Dk=[{active:!0,deprecated:"resolveAssetUrl",replacement:"resolveFileUrl"}],Sk={has(){return!1},get(){},set(){},delete(){return!1}};function Tk(e){return e.startsWith(bk)||e.startsWith(Ek)?DS({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):DS({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${e} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}class Ck{constructor(e,t,r,n){this.graph=e,this.modulesById=t,this.options=r,this.pluginDriver=n,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.nextEntryModuleIndex=0,this.resolveId=async(e,t,r,n=null)=>this.addDefaultsToResolvedId(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(e,t,!1)&&await yk(e,t,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,n,r),t,e)),this.hasModuleSideEffects=r.treeshake?r.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(e){const t=this.extendLoadModulesPromise(Promise.all(e.map((e=>this.loadEntryModule(e,!1,void 0,null)))));return await this.awaitLoadModulesPromise(),t}async addEntryModules(e,t){const r=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=e.length;const n=await this.extendLoadModulesPromise(Promise.all(e.map((({id:e,importer:t})=>this.loadEntryModule(e,!0,t,null)))).then((n=>{let i=r;for(let r=0;r<n.length;r++){const a=n[r];a.isUserDefinedEntryPoint=a.isUserDefinedEntryPoint||t,kk(a,e[r],t);const o=this.indexedEntryModules.find((e=>e.module===a));o?o.index=Math.min(o.index,i):this.indexedEntryModules.push({module:a,index:i}),i++}return this.indexedEntryModules.sort((({index:e},{index:t})=>e>t?1:-1)),n})));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map((({module:e})=>e)),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:n}}async emitChunk({fileName:e,id:t,importer:r,name:n,implicitlyLoadedAfterOneOf:i,preserveSignature:a}){const o={fileName:e||null,id:t,importer:r,name:n||null},s=i?await this.addEntryWithImplicitDependants(o,i):(await this.addEntryModules([o],!1)).newEntryModules[0];return null!=a&&(s.preserveSignature=a),s}addDefaultsToResolvedId(e){var t,r;if(!e)return null;const n=e.external||!1;return{external:n,id:e.id,meta:e.meta||oD,moduleSideEffects:null!==(t=e.moduleSideEffects)&&void 0!==t?t:this.hasModuleSideEffects(e.id,n),syntheticNamedExports:null!==(r=e.syntheticNamedExports)&&void 0!==r&&r}}addEntryWithImplicitDependants(e,t){return this.extendLoadModulesPromise(this.loadEntryModule(e.id,!1,e.importer,null).then((async r=>{if(kk(r,e,!1),!r.info.isEntry){this.implicitEntryModules.add(r);const n=await Promise.all(t.map((t=>this.loadEntryModule(t,!1,e.importer,r.id))));for(const e of n)r.implicitlyLoadedAfter.add(e);for(const e of r.implicitlyLoadedAfter)e.implicitlyLoadedBefore.add(r)}return r})))}async addModuleSource(e,t,r){var n;let i;GT("load modules",3);try{i=null!==(n=await this.pluginDriver.hookFirst("load",[e]))&&void 0!==n?n:await(a=e,new Promise(((e,t)=>wt(a,"utf-8",((r,n)=>r?t(r):e(n))))))}catch(r){$T("load modules",3);let n=`Could not load ${e}`;throw t&&(n+=` (imported by ${ES(t)})`),n+=`: ${r.message}`,r.message=n,r}var a;$T("load modules",3);const o="string"==typeof i?{code:i}:"object"==typeof i&&"string"==typeof i.code?i:DS((e=>({code:TS.BAD_LOADER,message:`Error loading ${ES(e)}: plugin load hook should return a string, a { code, map } object, or nothing/null`}))(e)),s=this.graph.cachedModules.get(e);if(s&&!s.customTransformCache&&s.originalCode===o.code){if(s.transformFiles)for(const e of s.transformFiles)this.pluginDriver.emitFile(e);r.setSource(s)}else r.updateOptions(o),r.setSource(await function(e,t,r,n){const i=t.id,a=[];let o=null===e.map?null:gC(e.map);const s=e.code;let c=e.ast;const l=[],d=[];let u=!1;const p=()=>u=!0;let _;const f=e.code;return r.hookReduceArg0("transform",[f,i],((e,r,i)=>{let o,s;if("string"==typeof r)o=r;else{if(!r||"object"!=typeof r)return e;if(t.updateOptions(r),null==r.code)return(r.map||r.ast)&&n((l=i.name,{code:TS.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE,message:`The plugin "${l}" returned a "map" or "ast" without returning a "code". This will be ignored.`})),e;({code:o,map:s,ast:c}=r)}var l;return null!==s&&a.push(gC("string"==typeof s?JSON.parse(s):s)||{missing:!0,plugin:i.name}),o}),((e,t)=>{return _=t,{...e,cache:u?e.cache:(c=e.cache,m=p,{has(e){return m(),c.has(e)},get(e){return m(),c.get(e)},set(e,t){return m(),c.set(e,t)},delete(e){return m(),c.delete(e)}}),warn(t,r){"string"==typeof t&&(t={message:t}),r&&SS(t,r,f,i),t.id=i,t.hook="transform",e.warn(t)},error:(t,r)=>("string"==typeof t&&(t={message:t}),r&&SS(t,r,f,i),t.id=i,t.hook="transform",e.error(t)),emitAsset:(t,r)=>(d.push({type:"asset",name:t,source:r}),e.emitAsset(t,r)),emitChunk:(t,r)=>(d.push({type:"chunk",id:t,name:r&&r.name}),e.emitChunk(t,r)),emitFile:e=>(d.push(e),r.emitFile(e)),addWatchFile(t){l.push(t),e.addWatchFile(t)},setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},getCombinedSourcemap(){const e=((e,t,r,n,i)=>n.length?{version:3,...aC(e,t,r,n,iC(i)).traceMappings()}:r)(i,s,o,a,n);return e?(o!==e&&(o=e,a.length=0),new DE({...e,file:null,sourcesContent:e.sourcesContent})):new PE(s).generateMap({includeContent:!0,hires:!0,source:i})}};var c,m})).catch((e=>xk(e,_.name,{hook:"transform",id:i}))).then((e=>(u||d.length&&(t.transformFiles=d),{ast:c,code:e,customTransformCache:u,meta:t.info.meta,originalCode:s,originalSourcemap:o,sourcemapChain:a,transformDependencies:l})))}(o,r,this.pluginDriver,this.options.onwarn))}async awaitLoadModulesPromise(){let e;do{e=this.latestLoadModulesPromise,await e}while(e!==this.latestLoadModulesPromise)}extendLoadModulesPromise(e){return this.latestLoadModulesPromise=Promise.all([e,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch((()=>{})),e}async fetchDynamicDependencies(e){const t=await Promise.all(e.dynamicImports.map((async t=>{const r=await this.resolveDynamicImport(e,"string"==typeof t.argument?t.argument:t.argument.esTreeNode,e.id);return null===r?null:"string"==typeof r?(t.resolution=r,null):t.resolution=await this.fetchResolvedDependency(ES(r.id),e.id,r)})));for(const r of t)r&&(e.dynamicDependencies.add(r),r.dynamicImporters.push(e.id))}async fetchModule({id:e,meta:t,moduleSideEffects:r,syntheticNamedExports:n},i,a){const o=this.modulesById.get(e);if(o instanceof eC){if(a){o.info.isEntry=!0,this.implicitEntryModules.delete(o);for(const e of o.implicitlyLoadedAfter)e.implicitlyLoadedBefore.delete(o);o.implicitlyLoadedAfter.clear()}return o}const s=new eC(this.graph,e,this.options,a,r,n,t);return this.modulesById.set(e,s),this.graph.watchFiles[e]=!0,await this.addModuleSource(e,i,s),await this.pluginDriver.hookParallel("moduleParsed",[s.info]),await Promise.all([this.fetchStaticDependencies(s),this.fetchDynamicDependencies(s)]),s.linkImports(),s}fetchResolvedDependency(e,t,r){if(r.external){this.modulesById.has(r.id)||this.modulesById.set(r.id,new WD(this.options,r.id,r.moduleSideEffects,r.meta));const n=this.modulesById.get(r.id);return n instanceof WD?Promise.resolve(n):DS(((e,t)=>({code:TS.INVALID_EXTERNAL_ID,message:`'${e}' is imported as an external by ${ES(t)}, but is already an existing non-external module id.`}))(e,t))}return this.fetchModule(r,t,!1)}async fetchStaticDependencies(e){for(const t of await Promise.all(Array.from(e.sources,(async t=>this.fetchResolvedDependency(t,e.id,e.resolvedIds[t]=e.resolvedIds[t]||this.handleResolveId(await this.resolveId(t,e.id,oD),t,e.id))))))e.dependencies.add(t),t.importers.push(e.id)}getNormalizedResolvedIdWithoutDefaults(e,t,r){if(e){if("object"==typeof e)return{...e,external:e.external||this.options.external(e.id,t,!0)};const r=this.options.external(e,t,!0);return{external:r,id:r?Ak(e,t):e}}const n=Ak(r,t);return!1===e||this.options.external(n,t,!0)?{external:!0,id:n}:null}handleResolveId(e,t,r){return null===e?zD(t)?DS(((e,t)=>({code:TS.UNRESOLVED_IMPORT,message:`Could not resolve '${e}' from ${ES(t)}`}))(t,r)):(this.options.onwarn(((e,t)=>({code:TS.UNRESOLVED_IMPORT,importer:ES(t),message:`'${e}' is imported by ${ES(t)}, but could not be resolved – treating it as an external dependency`,source:e,url:"https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency"}))(t,r)),{external:!0,id:t,meta:oD,moduleSideEffects:this.hasModuleSideEffects(t,!0),syntheticNamedExports:!1}):(e.external&&e.syntheticNamedExports&&this.options.onwarn(((e,t)=>({code:TS.EXTERNAL_SYNTHETIC_EXPORTS,importer:ES(t),message:`External '${e}' can not have 'syntheticNamedExports' enabled.`,source:e}))(t,r)),e)}async loadEntryModule(e,t,r,n){const i=await yk(e,r,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,oD);return null==i?DS(null===n?(e=>({code:TS.UNRESOLVED_ENTRY,message:`Could not resolve entry module (${ES(e)}).`}))(e):((e,t)=>({code:TS.MISSING_IMPLICIT_DEPENDANT,message:`Module "${ES(e)}" that should be implicitly loaded before "${ES(t)}" could not be resolved.`}))(e,n)):!1===i||"object"==typeof i&&i.external?DS(null===n?(e=>({code:TS.UNRESOLVED_ENTRY,message:`Entry module cannot be external (${ES(e)}).`}))(e):((e,t)=>({code:TS.MISSING_IMPLICIT_DEPENDANT,message:`Module "${ES(e)}" that should be implicitly loaded before "${ES(t)}" cannot be external.`}))(e,n)):this.fetchModule(this.addDefaultsToResolvedId("object"==typeof i?i:{id:i}),void 0,t)}async resolveDynamicImport(e,t,r){const n=await this.pluginDriver.hookFirst("resolveDynamicImport",[t,r]);return"string"!=typeof t?"string"==typeof n?n:n?{external:!1,moduleSideEffects:!0,...n}:null:null==n?e.resolvedIds[t]=e.resolvedIds[t]||this.handleResolveId(await this.resolveId(t,e.id,oD),t,e.id):this.handleResolveId(this.addDefaultsToResolvedId(this.getNormalizedResolvedIdWithoutDefaults(n,r,t)),t,r)}}function Ak(e,t){return zD(e)?t?Ye(t,"..",e):Ye(e):e}function kk(e,{fileName:t,name:r},n){null!==t?e.chunkFileNames.add(t):null!==r&&(null===e.chunkName&&(e.chunkName=r),n&&e.userChunkNames.add(r))}function Nk(e,t,r,n,i,a){let o=!1;return(...s)=>(o||(o=!0,MS({message:`The "this.${t}" plugin context function used by plugin ${n} is deprecated. The "this.${r}" plugin context function should be used instead.`,plugin:n},i,a)),e(...s))}function wk(e,t,r,n,i,a){let o,s=!0;if("string"!=typeof e.cacheKey&&(e.name.startsWith(bk)||e.name.startsWith(Ek)||a.has(e.name)?s=!1:a.add(e.name)),t)if(s){const r=e.cacheKey||e.name;l=t[r]||(t[r]=Object.create(null)),o={has(e){const t=l[e];return!!t&&(t[0]=0,!0)},get(e){const t=l[e];if(t)return t[0]=0,t[1]},set(e,t){l[e]=[0,t]},delete(e){return delete l[e]}}}else c=e.name,o={has(){return Tk(c)},get(){return Tk(c)},set(){return Tk(c)},delete(){return Tk(c)}};else o=Sk;var c,l;return{addWatchFile(e){if(r.phase>=AC.GENERATE)return this.error({code:TS.INVALID_ROLLUP_PHASE,message:"Cannot call addWatchFile after the build has finished."});r.watchFiles[e]=!0},cache:o,emitAsset:Nk(((e,t)=>i.emitFile({type:"asset",name:e,source:t})),"emitAsset","emitFile",e.name,!0,n),emitChunk:Nk(((e,t)=>i.emitFile({type:"chunk",id:e,name:t&&t.name})),"emitChunk","emitFile",e.name,!0,n),emitFile:i.emitFile,error(t){return xk(t,e.name)},getAssetFileName:Nk(i.getFileName,"getAssetFileName","getFileName",e.name,!0,n),getChunkFileName:Nk(i.getFileName,"getChunkFileName","getFileName",e.name,!0,n),getFileName:i.getFileName,getModuleIds:()=>r.modulesById.keys(),getModuleInfo:r.getModuleInfo,getWatchFiles:()=>Object.keys(r.watchFiles),isExternal:Nk(((e,t,r=!1)=>n.external(e,t,r)),"isExternal","resolve",e.name,!0,n),meta:{rollupVersion:fE,watchMode:r.watchMode},get moduleIds(){const t=r.modulesById.keys();return function*(){MS({message:`Accessing "this.moduleIds" on the plugin context by plugin ${e.name} is deprecated. The "this.getModuleIds" plugin context function should be used instead.`,plugin:e.name},!1,n),yield*t}()},parse:r.contextParse.bind(r),resolve(t,n,{custom:i,skipSelf:a}=aD){return r.moduleLoader.resolveId(t,n,i,a?[{importer:n,plugin:e,source:t}]:null)},resolveId:Nk(((e,t)=>r.moduleLoader.resolveId(e,t,aD).then((e=>e&&e.id))),"resolveId","resolve",e.name,!0,n),setAssetSource:i.setAssetSource,warn(t){"string"==typeof t&&(t={message:t}),t.code&&(t.pluginCode=t.code),t.code="PLUGIN_WARNING",t.plugin=e.name,n.onwarn(t)}}}const Fk=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,options:1,resolveDynamicImport:1,resolveId:1,transform:1,watchChange:1});function Pk(e,t){return DS({code:"INVALID_PLUGIN_HOOK",message:`Error running plugin hook ${e} for ${t}, expected a function hook.`})}class Ik{constructor(e,t,r,n,i){this.graph=e,this.options=t,this.pluginContexts=new Map,((e,t)=>{for(const{active:r,deprecated:n,replacement:i}of Dk)for(const a of e)n in a&&MS({message:`The "${n}" hook used by plugin ${a.name} is deprecated. The "${i}" hook should be used instead.`,plugin:a.name},r,t)})(r,t),this.pluginCache=n,this.fileEmitter=new FC(e,t,i&&i.fileEmitter),this.emitFile=this.fileEmitter.emitFile,this.getFileName=this.fileEmitter.getFileName,this.finaliseAssets=this.fileEmitter.assertAssetsFinalized,this.setOutputBundle=this.fileEmitter.setOutputBundle,this.plugins=r.concat(i?i.plugins:[]);const a=new Set;for(const r of this.plugins)this.pluginContexts.set(r,wk(r,n,e,t,this.fileEmitter,a));if(i)for(const e of r)for(const r of Fk)r in e&&t.onwarn((o=e.name,s=r,{code:TS.INPUT_HOOK_IN_OUTPUT_PLUGIN,message:`The "${s}" hook used by the output plugin ${o} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}));var o,s}createOutputPluginDriver(e){return new Ik(this.graph,this.options,e,this.pluginCache,this)}hookFirst(e,t,r,n){let i=Promise.resolve(void 0);for(const a of this.plugins)n&&n.has(a)||(i=i.then((n=>null!=n?n:this.runHook(e,t,a,!1,r))));return i}hookFirstSync(e,t,r){for(const n of this.plugins){const i=this.runHookSync(e,t,n,r);if(null!=i)return i}return null}hookParallel(e,t,r){const n=[];for(const i of this.plugins){const a=this.runHook(e,t,i,!1,r);a&&n.push(a)}return Promise.all(n).then((()=>{}))}hookReduceArg0(e,[t,...r],n,i){let a=Promise.resolve(t);for(const t of this.plugins)a=a.then((a=>{const o=[a,...r],s=this.runHook(e,o,t,!1,i);return s?s.then((e=>n.call(this.pluginContexts.get(t),a,e,t))):a}));return a}hookReduceArg0Sync(e,[t,...r],n,i){for(const a of this.plugins){const o=[t,...r],s=this.runHookSync(e,o,a,i);t=n.call(this.pluginContexts.get(a),t,s,a)}return t}hookReduceValue(e,t,r,n,i){let a=Promise.resolve(t);for(const t of this.plugins)a=a.then((a=>{const o=this.runHook(e,r,t,!0,i);return o?o.then((e=>n.call(this.pluginContexts.get(t),a,e,t))):a}));return a}hookReduceValueSync(e,t,r,n,i){let a=t;for(const t of this.plugins){const o=this.runHookSync(e,r,t,i);a=n.call(this.pluginContexts.get(t),a,o,t)}return a}hookSeq(e,t,r){let n=Promise.resolve();for(const i of this.plugins)n=n.then((()=>this.runHook(e,t,i,!1,r)));return n}hookSeqSync(e,t,r){for(const n of this.plugins)this.runHookSync(e,t,n,r)}runHook(e,t,r,n,i){const a=r[e];if(!a)return;let o=this.pluginContexts.get(r);return i&&(o=i(o,r)),Promise.resolve().then((()=>"function"!=typeof a?n?a:Pk(e,r.name):a.apply(o,t))).catch((t=>xk(t,r.name,{hook:e})))}runHookSync(e,t,r,n){const i=r[e];if(!i)return;let a=this.pluginContexts.get(r);n&&(a=n(a,r));try{return"function"!=typeof i?Pk(e,r.name):i.apply(a,t)}catch(t){return xk(t,r.name,{hook:e})}}}function Ok(e,t,r){r(e,t)}function Mk(e,t,r){}var Rk={};function Lk(e,t,r=e.type){let n=t.commentNodes[t.commentIndex];for(;n&&e.start>=n.end;)Bk(e,n),n=t.commentNodes[++t.commentIndex];n&&n.end<=e.end&&Rk[r](e,t,Lk)}function Bk(e,t){for(e._rollupAnnotations?e._rollupAnnotations.push({comment:t}):e._rollupAnnotations=[{comment:t}];e.type===BE||"ChainExpression"===e.type;)e=e.expression;e.type!==LE&&"NewExpression"!==e.type||(e._rollupAnnotations?e._rollupAnnotations.push({pure:!0}):e._rollupAnnotations=[{pure:!0}])}Rk.Program=Rk.BlockStatement=(e,t,r)=>{for(var n=0,i=e.body;n<i.length;n+=1)r(i[n],t,"Statement")},Rk.Statement=Ok,Rk.EmptyStatement=Mk,Rk.ExpressionStatement=Rk.ParenthesizedExpression=Rk.ChainExpression=(e,t,r)=>r(e.expression,t,"Expression"),Rk.IfStatement=(e,t,r)=>{r(e.test,t,"Expression"),r(e.consequent,t,"Statement"),e.alternate&&r(e.alternate,t,"Statement")},Rk.LabeledStatement=(e,t,r)=>r(e.body,t,"Statement"),Rk.BreakStatement=Rk.ContinueStatement=Mk,Rk.WithStatement=(e,t,r)=>{r(e.object,t,"Expression"),r(e.body,t,"Statement")},Rk.SwitchStatement=(e,t,r)=>{r(e.discriminant,t,"Expression");for(var n=0,i=e.cases;n<i.length;n+=1){var a=i[n];a.test&&r(a.test,t,"Expression");for(var o=0,s=a.consequent;o<s.length;o+=1)r(s[o],t,"Statement")}},Rk.SwitchCase=(e,t,r)=>{e.test&&r(e.test,t,"Expression");for(var n=0,i=e.consequent;n<i.length;n+=1)r(i[n],t,"Statement")},Rk.ReturnStatement=Rk.YieldExpression=Rk.AwaitExpression=(e,t,r)=>{e.argument&&r(e.argument,t,"Expression")},Rk.ThrowStatement=Rk.SpreadElement=(e,t,r)=>r(e.argument,t,"Expression"),Rk.TryStatement=(e,t,r)=>{r(e.block,t,"Statement"),e.handler&&r(e.handler,t),e.finalizer&&r(e.finalizer,t,"Statement")},Rk.CatchClause=(e,t,r)=>{e.param&&r(e.param,t,"Pattern"),r(e.body,t,"Statement")},Rk.WhileStatement=Rk.DoWhileStatement=(e,t,r)=>{r(e.test,t,"Expression"),r(e.body,t,"Statement")},Rk.ForStatement=(e,t,r)=>{e.init&&r(e.init,t,"ForInit"),e.test&&r(e.test,t,"Expression"),e.update&&r(e.update,t,"Expression"),r(e.body,t,"Statement")},Rk.ForInStatement=Rk.ForOfStatement=(e,t,r)=>{r(e.left,t,"ForInit"),r(e.right,t,"Expression"),r(e.body,t,"Statement")},Rk.ForInit=(e,t,r)=>{"VariableDeclaration"===e.type?r(e,t):r(e,t,"Expression")},Rk.DebuggerStatement=Mk,Rk.FunctionDeclaration=(e,t,r)=>r(e,t,"Function"),Rk.VariableDeclaration=(e,t,r)=>{for(var n=0,i=e.declarations;n<i.length;n+=1)r(i[n],t)},Rk.VariableDeclarator=(e,t,r)=>{r(e.id,t,"Pattern"),e.init&&r(e.init,t,"Expression")},Rk.Function=(e,t,r)=>{e.id&&r(e.id,t,"Pattern");for(var n=0,i=e.params;n<i.length;n+=1)r(i[n],t,"Pattern");r(e.body,t,e.expression?"Expression":"Statement")},Rk.Pattern=(e,t,r)=>{"Identifier"===e.type?r(e,t,"VariablePattern"):"MemberExpression"===e.type?r(e,t,"MemberPattern"):r(e,t)},Rk.VariablePattern=Mk,Rk.MemberPattern=Ok,Rk.RestElement=(e,t,r)=>r(e.argument,t,"Pattern"),Rk.ArrayPattern=(e,t,r)=>{for(var n=0,i=e.elements;n<i.length;n+=1){var a=i[n];a&&r(a,t,"Pattern")}},Rk.ObjectPattern=(e,t,r)=>{for(var n=0,i=e.properties;n<i.length;n+=1){var a=i[n];"Property"===a.type?(a.computed&&r(a.key,t,"Expression"),r(a.value,t,"Pattern")):"RestElement"===a.type&&r(a.argument,t,"Pattern")}},Rk.Expression=Ok,Rk.ThisExpression=Rk.Super=Rk.MetaProperty=Mk,Rk.ArrayExpression=(e,t,r)=>{for(var n=0,i=e.elements;n<i.length;n+=1){var a=i[n];a&&r(a,t,"Expression")}},Rk.ObjectExpression=(e,t,r)=>{for(var n=0,i=e.properties;n<i.length;n+=1)r(i[n],t)},Rk.FunctionExpression=Rk.ArrowFunctionExpression=Rk.FunctionDeclaration,Rk.SequenceExpression=(e,t,r)=>{for(var n=0,i=e.expressions;n<i.length;n+=1)r(i[n],t,"Expression")},Rk.TemplateLiteral=(e,t,r)=>{for(var n=0,i=e.quasis;n<i.length;n+=1)r(i[n],t);for(var a=0,o=e.expressions;a<o.length;a+=1)r(o[a],t,"Expression")},Rk.TemplateElement=Mk,Rk.UnaryExpression=Rk.UpdateExpression=(e,t,r)=>{r(e.argument,t,"Expression")},Rk.BinaryExpression=Rk.LogicalExpression=(e,t,r)=>{r(e.left,t,"Expression"),r(e.right,t,"Expression")},Rk.AssignmentExpression=Rk.AssignmentPattern=(e,t,r)=>{r(e.left,t,"Pattern"),r(e.right,t,"Expression")},Rk.ConditionalExpression=(e,t,r)=>{r(e.test,t,"Expression"),r(e.consequent,t,"Expression"),r(e.alternate,t,"Expression")},Rk.NewExpression=Rk.CallExpression=(e,t,r)=>{if(r(e.callee,t,"Expression"),e.arguments)for(var n=0,i=e.arguments;n<i.length;n+=1)r(i[n],t,"Expression")},Rk.MemberExpression=(e,t,r)=>{r(e.object,t,"Expression"),e.computed&&r(e.property,t,"Expression")},Rk.ExportNamedDeclaration=Rk.ExportDefaultDeclaration=(e,t,r)=>{e.declaration&&r(e.declaration,t,"ExportNamedDeclaration"===e.type||e.declaration.id?"Statement":"Expression"),e.source&&r(e.source,t,"Expression")},Rk.ExportAllDeclaration=(e,t,r)=>{e.exported&&r(e.exported,t),r(e.source,t,"Expression")},Rk.ImportDeclaration=(e,t,r)=>{for(var n=0,i=e.specifiers;n<i.length;n+=1)r(i[n],t);r(e.source,t,"Expression")},Rk.ImportExpression=(e,t,r)=>{r(e.source,t,"Expression")},Rk.ImportSpecifier=Rk.ImportDefaultSpecifier=Rk.ImportNamespaceSpecifier=Rk.Identifier=Rk.Literal=Mk,Rk.TaggedTemplateExpression=(e,t,r)=>{r(e.tag,t,"Expression"),r(e.quasi,t,"Expression")},Rk.ClassDeclaration=Rk.ClassExpression=(e,t,r)=>r(e,t,"Class"),Rk.Class=(e,t,r)=>{e.id&&r(e.id,t,"Pattern"),e.superClass&&r(e.superClass,t,"Expression"),r(e.body,t)},Rk.ClassBody=(e,t,r)=>{for(var n=0,i=e.body;n<i.length;n+=1)r(i[n],t)},Rk.MethodDefinition=Rk.Property=(e,t,r)=>{e.computed&&r(e.key,t,"Expression"),r(e.value,t,"Expression")},Rk.PropertyDefinition=(e,t,r)=>{e.computed&&r(e.key,t,"Expression"),e.value&&r(e.value,t,"Expression")};const Uk=/[@#]__PURE__/,jk=e=>Uk.test(e.value);class Vk{constructor(e,t){var r,n;if(this.options=e,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.phase=AC.LOAD_AND_PARSE,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=e=>{const t=this.modulesById.get(e);return t?t.info:null},this.deoptimizationTracker=new cx,this.cachedModules=new Map,!1!==e.cache){if(null===(r=e.cache)||void 0===r?void 0:r.modules)for(const t of e.cache.modules)this.cachedModules.set(t.id,t);this.pluginCache=(null===(n=e.cache)||void 0===n?void 0:n.plugins)||Object.create(null);for(const e in this.pluginCache){const t=this.pluginCache[e];for(const e of Object.keys(t))t[e][0]++}}if(t){this.watchMode=!0;const e=(...e)=>this.pluginDriver.hookSeqSync("watchChange",e),r=()=>this.pluginDriver.hookSeqSync("closeWatcher",[]);t.on("change",e),t.on("close",r),t.once("restart",(()=>{t.removeListener("change",e),t.removeListener("close",r)}))}this.pluginDriver=new Ik(this,e,e.plugins,this.pluginCache),this.scope=new mk,this.acornParser=vA.extend(...e.acornInjectPlugins),this.moduleLoader=new Ck(this,this.modulesById,this.options,this.pluginDriver)}async build(){GT("generate module graph",2),await this.generateModuleGraph(),$T("generate module graph",2),GT("sort modules",2),this.phase=AC.ANALYSE,this.sortModules(),$T("sort modules",2),GT("mark included statements",2),this.includeStatements(),$T("mark included statements",2),this.phase=AC.GENERATE}contextParse(e,t={}){const r=t.onComment,n=[];t.onComment=r&&"function"==typeof r?(e,i,a,o,...s)=>(n.push({type:e?"Block":"Line",value:i,start:a,end:o}),r.call(t,e,i,a,o,...s)):n;const i=this.acornParser.parse(e,{...this.options.acorn,...t});return"object"==typeof r&&r.push(...n),t.onComment=r,((e,t)=>{Lk(t,{commentIndex:0,commentNodes:e.filter(jk)})})(n,i),i}getCache(){for(const e in this.pluginCache){const t=this.pluginCache[e];let r=!0;for(const e of Object.keys(t))t[e][0]>=this.options.experimentalCacheExpiry?delete t[e]:r=!1;r&&delete this.pluginCache[e]}return{modules:this.modules.map((e=>e.toJSON())),plugins:this.pluginCache}}async generateModuleGraph(){var e;if(({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((e=this.options.input,Array.isArray(e)?e.map((e=>({fileName:null,id:e,implicitlyLoadedAfter:[],importer:void 0,name:null}))):Object.keys(e).map((t=>({fileName:null,id:e[t],implicitlyLoadedAfter:[],importer:void 0,name:t})))),!0)),0===this.entryModules.length)throw new Error("You must supply options.input to rollup");for(const e of this.modulesById.values())e instanceof eC?this.modules.push(e):this.externalModules.push(e)}includeStatements(){for(const e of[...this.entryModules,...this.implicitEntryModules])!1!==e.preserveSignature?e.includeAllExports(!1):YT(e);if(this.options.treeshake){let e=1;do{GT(`treeshaking pass ${e}`,3),this.needsTreeshakingPass=!1;for(const e of this.modules)e.isExecuted&&("no-treeshake"===e.info.hasModuleSideEffects?e.includeAllInBundle():e.include());$T("treeshaking pass "+e++,3)}while(this.needsTreeshakingPass)}else for(const e of this.modules)e.includeAllInBundle();for(const e of this.externalModules)e.warnUnusedImports();for(const e of this.implicitEntryModules)for(const t of e.implicitlyLoadedAfter)t.info.isEntry||t.isIncluded()||DS(NS(t))}sortModules(){const{orderedModules:e,cyclePaths:t}=(e=>{let t=0;const r=[],n=new Set,i=new Set,a=new Map,o=[],s=e=>{if(e instanceof eC){for(const t of e.dependencies)a.has(t)?n.has(t)||r.push(CC(t,e,a)):(a.set(t,e),s(t));for(const t of e.implicitlyLoadedBefore)i.add(t);for(const{resolution:t}of e.dynamicImports)t instanceof eC&&i.add(t);o.push(e)}e.execIndex=t++,n.add(e)};for(const t of e)a.has(t)||(a.set(t,null),s(t));for(const e of i)a.has(e)||(a.set(e,null),s(e));return{orderedModules:o,cyclePaths:r}})(this.entryModules);for(const e of t)this.options.onwarn({code:"CIRCULAR_DEPENDENCY",cycle:e,importer:e[0],message:`Circular dependency: ${e.join(" -> ")}`});this.modules=e;for(const e of this.modules)e.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const e of this.modules)for(const t of Object.keys(e.importDescriptions)){const r=e.importDescriptions[t];"*"===r.name||r.module.getVariableForExportName(r.name)||e.warn({code:"NON_EXISTENT_EXPORT",message:`Non-existent export '${r.name}' is imported from ${ES(r.module.id)}`,name:r.name,source:r.module.id},r.start)}}}function zk(e){return Array.isArray(e)?e.filter(Boolean):e?[e]:[]}function Hk(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((r=>{var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})})),t}var Wk=Hk(fk);const Kk=Object.getPrototypeOf||(e=>e.__proto__);var Jk=function(e){if(e.prototype.parsePrivateName)return e;const t=(e=>{if(e.acorn)return e.acorn;const t=Wk;if(0!=t.version.indexOf("6.")&&0==t.version.indexOf("6.0.")&&0!=t.version.indexOf("7."))throw new Error(`acorn-private-class-elements requires acorn@^6.1.0 or acorn@7.0.0, not ${t.version}`);for(let r=e;r&&r!==t.Parser;r=Kk(r))if(r!==t.Parser)throw new Error("acorn-private-class-elements does not support mixing different acorn copies");return t})(e);return(e=class extends e{_branch(){return this.__branch=this.__branch||new e({ecmaVersion:this.options.ecmaVersion},this.input),this.__branch.end=this.end,this.__branch.pos=this.pos,this.__branch.type=this.type,this.__branch.value=this.value,this.__branch.containsEsc=this.containsEsc,this.__branch}parsePrivateClassElementName(e){e.computed=!1,e.key=this.parsePrivateName(),"constructor"==e.key.name&&this.raise(e.key.start,"Classes may not have a private element named constructor");const t={get:"set",set:"get"}[e.kind],r=this._privateBoundNames;return Object.prototype.hasOwnProperty.call(r,e.key.name)&&r[e.key.name]!==t&&this.raise(e.start,"Duplicate private element"),r[e.key.name]=e.kind||!0,delete this._unresolvedPrivateNames[e.key.name],e.key}parsePrivateName(){const e=this.startNode();return e.name=this.value,this.next(),this.finishNode(e,"PrivateIdentifier"),"never"==this.options.allowReserved&&this.checkUnreserved(e),e}getTokenFromCode(e){if(35===e){++this.pos;const e=this.readWord1();return this.finishToken(this.privateIdentifierToken,e)}return super.getTokenFromCode(e)}parseClass(e,t){const r=this._outerPrivateBoundNames;this._outerPrivateBoundNames=this._privateBoundNames,this._privateBoundNames=Object.create(this._privateBoundNames||null);const n=this._outerUnresolvedPrivateNames;this._outerUnresolvedPrivateNames=this._unresolvedPrivateNames,this._unresolvedPrivateNames=Object.create(null);const i=super.parseClass(e,t),a=this._unresolvedPrivateNames;if(this._privateBoundNames=this._outerPrivateBoundNames,this._outerPrivateBoundNames=r,this._unresolvedPrivateNames=this._outerUnresolvedPrivateNames,this._outerUnresolvedPrivateNames=n,this._unresolvedPrivateNames)Object.assign(this._unresolvedPrivateNames,a);else{const e=Object.keys(a);e.length&&(e.sort(((e,t)=>a[e]-a[t])),this.raise(a[e[0]],"Usage of undeclared private name"))}return i}parseClassSuper(e){const t=this._privateBoundNames;this._privateBoundNames=this._outerPrivateBoundNames;const r=this._unresolvedPrivateNames;this._unresolvedPrivateNames=this._outerUnresolvedPrivateNames;const n=super.parseClassSuper(e);return this._privateBoundNames=t,this._unresolvedPrivateNames=r,n}parseSubscript(e,r,n,i,a,o){const s=this.options.ecmaVersion>=11&&t.tokTypes.questionDot,c=this._branch();if(!(c.eat(t.tokTypes.dot)||s&&c.eat(t.tokTypes.questionDot))||c.type!=this.privateIdentifierToken)return super.parseSubscript.apply(this,arguments);let l=!1;this.eat(t.tokTypes.dot)||(this.expect(t.tokTypes.questionDot),l=!0);let d=this.startNodeAt(r,n);return d.object=e,d.computed=!1,s&&(d.optional=l),this.type==this.privateIdentifierToken?("Super"==e.type&&this.raise(this.start,"Cannot access private element on super"),d.property=this.parsePrivateName(),this._privateBoundNames&&this._privateBoundNames[d.property.name]||(this._unresolvedPrivateNames||this.raise(d.property.start,"Usage of undeclared private name"),this._unresolvedPrivateNames[d.property.name]=d.property.start)):d.property=this.parseIdent(!0),this.finishNode(d,"MemberExpression")}parseMaybeUnary(e,t){const r=super.parseMaybeUnary(e,t);return"delete"==r.operator&&"MemberExpression"==r.argument.type&&"PrivateIdentifier"==r.argument.property.type&&this.raise(r.start,"Private elements may not be deleted"),r}}).prototype.privateIdentifierToken=new t.TokenType("privateIdentifier"),e};const Gk=Jk;var $k=function(e){const t=(e.acorn||Wk).tokTypes;return e=Gk(e),class extends e{_maybeParseFieldValue(e){if(this.eat(t.eq)){const r=this._inFieldValue;this._inFieldValue=!0,this.type===t.name&&"await"===this.value&&(this.inAsync||this.options.allowAwaitOutsideFunction)?e.value=this.parseAwait():e.value=this.parseExpression(),this._inFieldValue=r}else e.value=null}parseClassElement(e){if(this.options.ecmaVersion>=8&&(this.type==t.name||this.type.keyword||this.type==this.privateIdentifierToken||this.type==t.bracketL||this.type==t.string||this.type==t.num)){const e=this._branch();if(e.type==t.bracketL){let r=0;do{e.eat(t.bracketL)?++r:e.eat(t.bracketR)?--r:e.next()}while(r>0)}else e.next(!0);let r=e.type==t.eq||e.type==t.semi;if(!r&&e.canInsertSemicolon()&&(r=e.type!=t.parenL),r){const e=this.startNode();return this.type==this.privateIdentifierToken?this.parsePrivateClassElementName(e):this.parsePropertyName(e),("Identifier"===e.key.type&&"constructor"===e.key.name||"Literal"===e.key.type&&"constructor"===e.key.value)&&this.raise(e.key.start,"Classes may not have a field called constructor"),this.enterScope(67),this._maybeParseFieldValue(e),this.exitScope(),this.finishNode(e,"PropertyDefinition"),this.semicolon(),e}}return super.parseClassElement.apply(this,arguments)}parseIdent(e,t){const r=super.parseIdent(e,t);return this._inFieldValue&&"arguments"==r.name&&this.raise(r.start,"A class field initializer may not contain arguments"),r}}};const qk=Jk;var Xk=function(e){const t=qk(e),r=(e.acorn||Wk).tokTypes;return class extends t{_maybeParseFieldValue(e){if(this.eat(r.eq)){const t=this._inStaticFieldScope;this._inStaticFieldScope=this.currentThisScope(),e.value=this.parseExpression(),this._inStaticFieldScope=t}else e.value=null}parseClassElement(e){if(this.options.ecmaVersion<8||!this.isContextual("static"))return super.parseClassElement.apply(this,arguments);const t=this._branch();if(t.next(),-1==[r.name,r.bracketL,r.string,r.num,this.privateIdentifierToken].indexOf(t.type)&&!t.type.keyword)return super.parseClassElement.apply(this,arguments);if(t.type==r.bracketL){let e=0;do{t.eat(r.bracketL)?++e:t.eat(r.bracketR)?--e:t.next()}while(e>0)}else t.next();if(t.type!=r.eq&&!t.canInsertSemicolon()&&t.type!=r.semi)return super.parseClassElement.apply(this,arguments);const n=this.startNode();return n.static=this.eatContextual("static"),this.type==this.privateIdentifierToken?this.parsePrivateClassElementName(n):this.parsePropertyName(n),("Identifier"===n.key.type&&"constructor"===n.key.name||"Literal"===n.key.type&&!n.computed&&"constructor"===n.key.value)&&this.raise(n.key.start,"Classes may not have a field called constructor"),"prototype"!==(n.key.name||n.key.value)||n.computed||this.raise(n.key.start,"Classes may not have a static property named prototype"),this.enterScope(67),this._maybeParseFieldValue(n),this.exitScope(),this.finishNode(n,"PropertyDefinition"),this.semicolon(),n}parsePropertyName(e){e.static&&this.type==this.privateIdentifierToken?this.parsePrivateClassElementName(e):super.parsePropertyName(e)}parseIdent(e,t){const r=super.parseIdent(e,t);return this._inStaticFieldScope&&this.currentThisScope()===this._inStaticFieldScope&&"arguments"==r.name&&this.raise(r.start,"A static class field initializer may not contain arguments"),r}}};const Yk=e=>console.warn(e.message||e);function Qk(e,t,r,n,i=/$./){const a=new Set(t),o=Object.keys(e).filter((e=>!(a.has(e)||i.test(e))));o.length>0&&n({code:"UNKNOWN_OPTION",message:`Unknown ${r}: ${o.join(", ")}. Allowed options: ${[...a].sort().join(", ")}`})}const Zk=e=>({allowAwaitOutsideFunction:!0,ecmaVersion:"latest",preserveParens:!1,sourceType:"module",...e.acorn}),eN=e=>[$k,Xk,...zk(e.acornInjectPlugins)],tN=e=>{var t;return(null===(t=e.cache)||void 0===t?void 0:t.cache)||e.cache},rN=e=>{if(!0===e)return()=>!0;if("function"==typeof e)return(t,...r)=>!t.startsWith("\0")&&e(t,...r)||!1;if(e){const t=new Set,r=[];for(const n of zk(e))n instanceof RegExp?r.push(n):t.add(n);return(e,...n)=>t.has(e)||r.some((t=>t.test(e)))}return()=>!1},nN=(e,t,r)=>{const n=e.inlineDynamicImports;return n&&RS('The "inlineDynamicImports" option is deprecated. Use the "output.inlineDynamicImports" option instead.',!1,t,r),n},iN=e=>{const t=e.input;return null==t?[]:"string"==typeof t?[t]:t},aN=(e,t,r)=>{const n=e.manualChunks;return n&&RS('The "manualChunks" option is deprecated. Use the "output.manualChunks" option instead.',!1,t,r),n},oN=(e,t)=>{const r=e.moduleContext;if("function"==typeof r)return e=>{var n;return null!==(n=r(e))&&void 0!==n?n:t};if(r){const e=Object.create(null);for(const t of Object.keys(r))e[Ye(t)]=r[t];return r=>e[r]||t}return()=>t},sN=(e,t)=>{const r=e.preserveEntrySignatures;return null==r&&t.add("preserveEntrySignatures"),null!=r?r:"strict"},cN=(e,t,r)=>{const n=e.preserveModules;return n&&RS('The "preserveModules" option is deprecated. Use the "output.preserveModules" option instead.',!1,t,r),n},lN=(e,t,r)=>{const n=e.treeshake;return!1!==n&&(n&&!0!==n?(void 0!==n.pureExternalModules&&RS('The "treeshake.pureExternalModules" option is deprecated. The "treeshake.moduleSideEffects" option should be used instead. "treeshake.pureExternalModules: true" is equivalent to "treeshake.moduleSideEffects: \'no-external\'"',!0,t,r),{annotations:!1!==n.annotations,moduleSideEffects:dN(n.moduleSideEffects,n.pureExternalModules,t),propertyReadSideEffects:"always"===n.propertyReadSideEffects?"always":!1!==n.propertyReadSideEffects,tryCatchDeoptimization:!1!==n.tryCatchDeoptimization,unknownGlobalSideEffects:!1!==n.unknownGlobalSideEffects}):{annotations:!0,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0})},dN=(e,t,r)=>{if("boolean"==typeof e)return()=>e;if("no-external"===e)return(e,t)=>!t;if("function"==typeof e)return(t,r)=>!!t.startsWith("\0")||!1!==e(t,r);if(Array.isArray(e)){const t=new Set(e);return e=>t.has(e)}e&&r(("treeshake.moduleSideEffects",'please use one of false, "no-external", a function or an array',{code:TS.INVALID_OPTION,message:'Invalid value for option "treeshake.moduleSideEffects" - please use one of false, "no-external", a function or an array.'}));const n=rN(t);return(e,t)=>!(t&&n(e))},uN=e=>{const t=e.preserveModulesRoot;if(null!=t)return Ye(t)},pN=e=>{const t={autoId:!1,basePath:"",define:"define",...e.amd};if((t.autoId||t.basePath)&&t.id)return DS({code:"INVALID_OPTION",message:'"output.amd.autoId"/"output.amd.basePath" and "output.amd.id" cannot be used together.'});if(t.basePath&&!t.autoId)return DS({code:"INVALID_OPTION",message:'"output.amd.basePath" only works with "output.amd.autoId".'});let r;return r=t.autoId?{autoId:!0,basePath:t.basePath,define:t.define}:{autoId:!1,define:t.define,id:t.id},r},_N=(e,t)=>{const r=e[t];return"function"==typeof r?r:()=>r||""},fN=(e,t)=>{const r=e.dir;return"string"==typeof r&&"string"==typeof t?DS({code:"INVALID_OPTION",message:'You must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks.'}):r},mN=(e,t)=>{const r=e.dynamicImportFunction;return r&&MS('The "output.dynamicImportFunction" option is deprecated. Use the "renderDynamicImport" plugin hook instead.',!1,t),r},gN=(e,t)=>{const r=e.entryFileNames;return null==r&&t.add("entryFileNames"),null!=r?r:"[name].js"};function hN(e,t){const r=e.exports;if(null==r)t.add("exports");else if(!["default","named","none","auto"].includes(r))return DS((n=r,{code:TS.INVALID_EXPORT_OPTION,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${n}"`,url:"https://rollupjs.org/guide/en/#outputexports"}));var n;return r||"auto"}const yN=(e,t)=>{if(t)return"";const r=e.indent;return!1===r?"":null==r||r},vN=new Set(["auto","esModule","default","defaultOnly",!0,!1]),bN=(e,t)=>{const r=e.interop,n=new Set,i=e=>{if(!n.has(e)){if(n.add(e),!vN.has(e))return DS({code:"INVALID_OPTION",message:`The value ${JSON.stringify(e)} is not supported for "output.interop". Use one of ${Array.from(vN.values(),(e=>JSON.stringify(e))).join(", ")} instead.`,url:"https://rollupjs.org/guide/en/#outputinterop"});"boolean"==typeof e&&MS({message:`The boolean value "${e}" for the "output.interop" option is deprecated. Use ${e?'"auto"':'"esModule", "default" or "defaultOnly"'} instead.`,url:"https://rollupjs.org/guide/en/#outputinterop"},!1,t)}return e};if("function"==typeof r){const e=Object.create(null);let t=null;return n=>null===n?t||i(t=r(n)):n in e?e[n]:i(e[n]=r(n))}return void 0===r?()=>!0:()=>i(r)},EN=(e,t,r,n)=>{const i=e.manualChunks||n.manualChunks;if(i){if(t)return DS({code:"INVALID_OPTION",message:'The "output.manualChunks" option is not supported for "output.inlineDynamicImports".'});if(r)return DS({code:"INVALID_OPTION",message:'The "output.manualChunks" option is not supported for "output.preserveModules".'})}return i||{}},xN=(e,t,r)=>{var n;return null!==(n=e.minifyInternalExports)&&void 0!==n?n:r||"es"===t||"system"===t};function DN(e){return(async(e,t)=>{const{options:n,unsetOptions:i}=await(async(e,t)=>{if(!e)throw new Error("You must supply an options object to rollup");const r=zk(e.plugins),{options:n,unsetOptions:i}=(e=>{var t,r;const n=new Set,i=null!==(t=e.context)&&void 0!==t?t:"undefined",a=(e=>e.onwarn?t=>{t.toString=()=>{let e="";return t.plugin&&(e+=`(${t.plugin} plugin) `),t.loc&&(e+=`${ES(t.loc.file)} (${t.loc.line}:${t.loc.column}) `),e+=t.message,e},e.onwarn(t,Yk)}:Yk)(e),o=e.strictDeprecations||!1,s={acorn:Zk(e),acornInjectPlugins:eN(e),cache:tN(e),context:i,experimentalCacheExpiry:null!==(r=e.experimentalCacheExpiry)&&void 0!==r?r:10,external:rN(e.external),inlineDynamicImports:nN(e,a,o),input:iN(e),manualChunks:aN(e,a,o),moduleContext:oN(e,i),onwarn:a,perf:e.perf||!1,plugins:zk(e.plugins),preserveEntrySignatures:sN(e,n),preserveModules:cN(e,a,o),preserveSymlinks:e.preserveSymlinks||!1,shimMissingExports:e.shimMissingExports||!1,strictDeprecations:o,treeshake:lN(e,a,o)};return Qk(e,[...Object.keys(s),"watch"],"input options",s.onwarn,/^(output)$/),{options:s,unsetOptions:n}})(await r.reduce((async(e,t)=>t.options&&t.options.call({meta:{rollupVersion:fE,watchMode:!1}},await e)||e),Promise.resolve(e)));return SN(n.plugins,bk),{options:n,unsetOptions:i}})(e);!function(e){e.perf?(zT={},void 0!==r&&"function"==typeof r.hrtime?(UT=r.hrtime.bind(r),jT=e=>{return 1e3*(t=r.hrtime(e))[0]+t[1]/1e6;var t}):"undefined"!=typeof performance&&"function"==typeof performance.now&&(UT=()=>[performance.now(),0],jT=e=>performance.now()-e[0]),void 0!==r&&"function"==typeof r.memoryUsage&&(VT=()=>r.memoryUsage().heapUsed),GT=WT,$T=KT,e.plugins=e.plugins.map(XT)):(GT=BT,$T=BT)}(n);const a=new Vk(n,null),o=!1!==e.cache;delete n.cache,delete e.cache,GT("BUILD",1);try{await a.pluginDriver.hookParallel("buildStart",[n]),await a.build()}catch(e){const t=Object.keys(a.watchFiles);throw t.length>0&&(e.watchFiles=t),await a.pluginDriver.hookParallel("buildEnd",[e]),await a.pluginDriver.hookParallel("closeBundle",[]),e}await a.pluginDriver.hookParallel("buildEnd",[]),$T("BUILD",1);const s={cache:o?a.getCache():void 0,closed:!1,async close(){s.closed||(s.closed=!0,await a.pluginDriver.hookParallel("closeBundle",[]))},async generate(e){return s.closed?DS(OS()):TN(!1,n,i,e,a)},watchFiles:Object.keys(a.watchFiles),async write(e){return s.closed?DS(OS()):TN(!0,n,i,e,a)}};return n.perf&&(s.getTimings=JT),s})(e)}function SN(e,t){for(let r=0;r<e.length;r++){const n=e[r];n.name||(n.name=`${t}${r+1}`)}}async function TN(e,t,r,n,i){const{options:a,outputPluginDriver:o,unsetOptions:s}=((e,t,r,n)=>{if(!e)throw new Error("You must supply an options object");const i=zk(e.plugins);SN(i,Ek);const a=t.createOutputPluginDriver(i);return{...CN(r,n,e,a),outputPluginDriver:a}})(n,i.pluginDriver,t,r),c=new IC(a,s,t,o,i),l=await c.generate(e);if(e){if(!a.dir&&!a.file)return DS({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.'});await Promise.all(Object.keys(l).map((e=>((e,t)=>{const r=Ye(t.dir||We(t.file),e.fileName);let n,i;if("asset"===e.type)i=e.source;else if(i=e.code,t.sourcemap&&e.map){let a;"inline"===t.sourcemap?a=e.map.toUrl():(a=`${He(e.fileName)}.map`,n=hk(`${r}.map`,e.map.toString())),"hidden"!==t.sourcemap&&(i+=`//# sourceMappingURL=${a}\n`)}return Promise.all([hk(r,i),n])})(l[e],a)))),await o.hookParallel("writeBundle",[a,l])}return d=l,{output:Object.keys(d).map((e=>d[e])).filter((e=>Object.keys(e).length>0)).sort(((e,t)=>{const r=kN(e),n=kN(t);return r===n?0:r<n?-1:1}))};var d}function CN(e,t,r,n){return((e,t,r)=>{var n,i,a,o,s,c,l;const d=new Set(r),u=e.compact||!1,p=(e=>{const t=e.format;switch(t){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return t;default:return DS({message:'You must specify "output.format", which can be one of "amd", "cjs", "system", "es", "iife" or "umd".',url:"https://rollupjs.org/guide/en/#outputformat"})}})(e),_=((e,t)=>{var r;const n=(null!==(r=e.inlineDynamicImports)&&void 0!==r?r:t.inlineDynamicImports)||!1,{input:i}=t;return n&&(Array.isArray(i)?i:Object.keys(i)).length>1?DS({code:"INVALID_OPTION",message:'Multiple inputs are not supported for "output.inlineDynamicImports".'}):n})(e,t),f=((e,t,r)=>{var n;const i=(null!==(n=e.preserveModules)&&void 0!==n?n:r.preserveModules)||!1;if(i){if(t)return DS({code:"INVALID_OPTION",message:'The "output.inlineDynamicImports" option is not supported for "output.preserveModules".'});if(!1===r.preserveEntrySignatures)return DS({code:"INVALID_OPTION",message:'Setting "preserveEntrySignatures" to "false" is not supported for "output.preserveModules".'})}return i})(e,_,t),m=((e,t,r)=>{const n=e.file;if("string"==typeof n){if(t)return DS({code:"INVALID_OPTION",message:'You must set "output.dir" instead of "output.file" when using the "output.preserveModules" option.'});if(!Array.isArray(r.input))return DS({code:"INVALID_OPTION",message:'You must set "output.dir" instead of "output.file" when providing named inputs.'})}return n})(e,f,t),g={amd:pN(e),assetFileNames:null!==(n=e.assetFileNames)&&void 0!==n?n:"assets/[name]-[hash][extname]",banner:_N(e,"banner"),chunkFileNames:null!==(i=e.chunkFileNames)&&void 0!==i?i:"[name]-[hash].js",compact:u,dir:fN(e,m),dynamicImportFunction:mN(e,t),entryFileNames:gN(e,d),esModule:null===(a=e.esModule)||void 0===a||a,exports:hN(e,d),extend:e.extend||!1,externalLiveBindings:null===(o=e.externalLiveBindings)||void 0===o||o,file:m,footer:_N(e,"footer"),format:p,freeze:null===(s=e.freeze)||void 0===s||s,globals:e.globals||{},hoistTransitiveImports:null===(c=e.hoistTransitiveImports)||void 0===c||c,indent:yN(e,u),inlineDynamicImports:_,interop:bN(e,t),intro:_N(e,"intro"),manualChunks:EN(e,_,f,t),minifyInternalExports:xN(e,p,u),name:e.name,namespaceToStringTag:e.namespaceToStringTag||!1,noConflict:e.noConflict||!1,outro:_N(e,"outro"),paths:e.paths||{},plugins:zk(e.plugins),preferConst:e.preferConst||!1,preserveModules:f,preserveModulesRoot:uN(e),sourcemap:e.sourcemap||!1,sourcemapExcludeSources:e.sourcemapExcludeSources||!1,sourcemapFile:e.sourcemapFile,sourcemapPathTransform:e.sourcemapPathTransform,strict:null===(l=e.strict)||void 0===l||l,systemNullSetters:e.systemNullSetters||!1,validate:e.validate||!1};return Qk(e,Object.keys(g),"output options",t.onwarn),{options:g,unsetOptions:d}})(n.hookReduceArg0Sync("outputOptions",[r.output||r],((e,t)=>t||e),(e=>{const t=()=>e.error({code:TS.CANNOT_EMIT_FROM_OPTIONS_HOOK,message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...e,emitFile:t,setAssetSource:t}})),e,t)}var AN;function kN(e){return"asset"===e.type?AN.ASSET:e.isEntry?AN.ENTRY_CHUNK:AN.SECONDARY_CHUNK}(e=>{e[e.ENTRY_CHUNK=0]="ENTRY_CHUNK",e[e.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",e[e.ASSET=2]="ASSET"})(AN||(AN={}));const NN=e=>{const t=new Map;return{name:"lazyComponentPlugin",resolveId(r){const n=e.entryModules.find((e=>e.entryKey===r));return n?(t.set(r,n),r):null},load(e){const r=t.get(e);return r?r.cmps.map(wN).join("\n"):null}}},wN=e=>`export { ${e.componentClassName} as ${e.tagName.replace(/-/g,"_")} } from '${me(e.sourceFilePath)}';`,FN=e=>()=>t=>{let r=!1;const n=t.statements.slice();for(let t=n.length-1;t>=0;t--){const i=n[t];if(p.isImportDeclaration(i)&&!i.importClause&&i.moduleSpecifier&&p.isStringLiteral(i.moduleSpecifier)){const a=i.moduleSpecifier.text;e.collections.some((e=>e.collectionName===a||e.moduleId===a))&&(r=!0,n.splice(t,1))}}return r?p.factory.updateSourceFile(t,n):t},PN="@stencil/core",IN="@stencil/core/internal/app-data",ON="@stencil/core/internal/app-globals",MN="@stencil/core/hydrate-factory",RN="@stencil/core/internal/client",LN="@stencil/core/internal/client/patch-browser",BN="@stencil/core/internal/client/patch-esm",UN="@stencil/core/internal/hydrate",jN="@lazy-browser-entrypoint?app-data=conditional",VN="@lazy-external-entrypoint?app-data=conditional",zN="@user-index-entrypoint",HN=(e,t,r,n,i)=>{if(!i)return{name:"appDataPlugin"};const a=WN(e,t);return{name:"appDataPlugin",resolveId(e,t){return e===IN||e===ON?("worker"===i&&this.error("@stencil/core packages cannot be imported from a worker."),"hydrate"===i,1,e):null},load(r){if(r===ON){const e=new wd("");return KN(a,e),e.toString()}if(r===IN){const t=new wd("");return $N(e,t),JN(e,n,t),GN(e,t),t.toString()}if(r!==e.globalScript)return null;const i=t.moduleMap.get(e.globalScript);if(!i)return null;if(!i.sourceMapFileText)return{code:i.staticSourceFileText,map:null};const o=JSON.parse(i.sourceMapFileText);return o.sources=o.sources.map((e=>He(e))),{code:i.staticSourceFileText,map:o}},transform(n,o){if(o=me(o),a.some((e=>e.path===o))){const a=this.parse(n,{}).body.some((e=>"ExportDefaultDeclaration"===e.type))?"":"\nexport const globalFn = () => {};\nexport default globalFn;";n=qN(i)+n+a;const s={...e.tsCompilerOptions};s.module=p.ModuleKind.ESNext;const c=p.transpileModule(n,{compilerOptions:s,fileName:o,transformers:{after:[FN(t)]}});if(r.diagnostics.push(...Ce(c.diagnostics)),e.sourceMap){const e=new wd(n).generateMap({source:o,file:o+".map",includeContent:!0,hires:!0});return{code:c.outputText,map:e}}return{code:c.outputText}}return null}}},WN=(e,t)=>{const r=[];if(G(e.globalScript)){const n=t.moduleMap.get(e.globalScript),i=2===t.version?e.globalScript:n&&n.jsFilePath;i&&r.push({defaultName:Pe(e.namespace+"GlobalScript"),path:me(i)})}return t.collections.forEach((e=>{if(null!=e.global&&G(e.global.sourceFilePath)){let t=Pe(e.collectionName+"GlobalScript");r.some((e=>e.defaultName===t))&&(t+=r.length),r.push({defaultName:t,path:me(e.global.sourceFilePath)})}})),r},KN=(e,t)=>{1===e.length?(t.prepend(`import appGlobalScript from '${e[0].path}';\n`),t.append("export const globalScripts = appGlobalScript;\n")):e.length>1?(e.forEach((e=>{t.prepend(`import ${e.defaultName} from '${e.path}';\n`)})),t.append("export const globalScripts = () => {\n"),e.forEach((e=>{t.append(` ${e.defaultName}();\n`)})),t.append("};\n")):t.append("export const globalScripts = () => {};\n")},JN=(e,t,r)=>{const n=Object.keys(t).sort().map((e=>e+": "+(t[e]?"true":"false"))).join(", ");r.append(`export const BUILD = /* ${e.fsNamespace} */ { ${n} };\n`)},GN=(e,t)=>{t.append(`export const Env = /* ${e.fsNamespace} */ ${JSON.stringify(e.env)};\n`)},$N=(e,t)=>{t.append(`export const NAMESPACE = '${e.fsNamespace}';\n`)},qN=e=>`import { Context } from '${"hydrate"===e?UN:PN}';\n`,XN=(e,t,r,n)=>{const i=e.sys.getCompilerExecutingPath(),a=YN(e,i,"client/index.js"),o=YN(e,i,"client/patch-browser.js"),s=YN(e,i,"client/patch-esm.js"),c=YN(e,i,"hydrate/index.js");return{name:"coreResolvePlugin",resolveId(e){if(e===PN||"@stencil/core/internal"===e){if("client"===r)return n?{id:RN,external:!0}:a+"?app-data=conditional";if("hydrate"===r)return c}return e===RN?n?{id:RN,external:!0}:a:e===LN?n?{id:LN,external:!0}:o:e===BN?n?{id:BN,external:!0}:s:e===UN?c:null},async load(n){if(n&&!n.startsWith("\0")&&((n=Se(n))===a||n===c)){if("worker"===r)return`\nexport const Build = {\n isDev: ${e.devMode},\n isBrowser: true,\n isServer: false,\n isTesting: false,\n};`;let a=await t.fs.readFile(n);if("string"!=typeof a&&Fe(i)){const r=zr(i,n);a=await $r(e.sys,t.fs,jr,r,n)}if("string"==typeof a){const t=e.hydratedFlag;if(t){const e=QN(t);dp!==e&&(a=a.replace(dp,e),"hydrated"!==t.name&&(a=a.replace('.classList.add("hydrated")',`.classList.add("${t.name}")`),a=a.replace(".classList.add('hydrated')",`.classList.add('${t.name}')`),a=a.replace('.setAttribute("hydrated",',`.setAttribute("${t.name}",`),a=a.replace(".setAttribute('hydrated',",`.setAttribute('${t.name}',`)))}else a=a.replace(dp,"{}")}return a}return null},resolveImportMeta(t,{format:r}){return e.extras.dynamicImportShim&&"url"===t&&"es"===r?'""':null}}},YN=(e,t,r)=>{if(Fe(t))return me(e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:"@stencil/core",path:"internal/"+r}));const n=We(t);return me(Ge(n,"..","internal",r))},QN=e=>{let t,r;t=String(e.initialValue)&&""!==e.initialValue&&null!=e.initialValue?`{${e.property}:${e.initialValue}}`:"";const n="attribute"===e.selector?`[${e.name}]`:`.${e.name}`;return r=String(e.hydratedValue)&&""!==e.hydratedValue&&null!=e.hydratedValue?`${n}{${e.property}:${e.hydratedValue}}`:"",t+r},ZN=e=>({name:"extFormatPlugin",transform(t,r){if(/\0/.test(r))return null;const{ext:n,filePath:i,format:a}=(e=>{const t=e.split("?"),r=me(t[0]),n=r.split(".").pop().toLowerCase(),i=t.length>1?new URLSearchParams(t[1]):null,a=i?i.get("format"):null;return{filePath:r,ext:n,params:i,format:a}})(r);switch(a){case"url":return{code:nw(e,this,t,i,n),map:null};case"text":return{code:rw(t,i),map:null}}return ew.includes(n)?{code:rw(t,i),map:null}:tw[n]?{code:nw(e,this,t,i,n),map:null}:null}}),ew=["txt","frag","vert"],tw={svg:"image/svg+xml"},rw=(e,t)=>{const r=Pe(He(t));return`const ${r} = ${JSON.stringify(e)};export default ${r};`},nw=(e,t,r,n,i)=>{const a=tw[i];if(!a)return t.warn(`Unsupported url format for "${i}" extension.`),rw("",n);const o=Pe(He(n)),s=e.sys.encodeToBase64(r);return e.devMode&&s.length>4096&&t.warn("Importing large files will bloat your bundle size, please use external assets instead."),`const ${o} = 'data:${a};base64,${s}';export default ${o};`},iw=async(e,t,r,n,i,a,o)=>{const s=i.toLowerCase().endsWith(".css"),c=[],l=new Set,d=await async function n(i,a,d){if(l.has(a))return d;l.add(a),null!=o&&nu(o,d);const u=await ow(e,t,r,a,d);if(0===u.length)return d;for(const e of u)c.includes(e.filePath)||c.push(e.filePath);return await Promise.all(u.map((async e=>{if(e.styleText=await aw(t,e),"string"==typeof e.styleText)e.styleText=await n(e.filePath,e.filePath,e.styleText);else{const t=Z(r.diagnostics);t.messageText=`Unable to read css import: ${e.srcImport}`,t.absFilePath=i}}))),dw(d,u,s)}(n,i,a);return{imports:c,styleText:d}},aw=async(e,t)=>{let r=null;try{r=await e.fs.readFile(t.filePath)}catch(n){if(t.altFilePath)try{r=await e.fs.readFile(t.filePath)}catch(e){}}return r},ow=async(e,t,r,n,i)=>{var a;const o=[];if(!i.includes("@import"))return o;i=du(i);const s=We(n),c=(null!==(a=n.split(".").pop())&&void 0!==a?a:"").toLowerCase();let l;const d=/(@import)\s+(url\()?\s?(.*?)\s?\)?([^;]*);?/gi;for(;l=d.exec(i);){const i={srcImport:l[0],url:l[4].replace(/[\"\'\)]/g,""),filePath:""};if(lw(i.srcImport)){if(sw(i.url)?await cw(e,t,r.diagnostics,n,i):Je(i.url)?i.filePath=me(i.url):i.filePath=me(Ge(s,i.url)),"css"!==c&&!i.filePath.toLowerCase().endsWith(".css")&&(i.filePath+=`.${c}`,"scss"===c)){const e="_"+He(i.filePath),t=We(i.filePath);i.altFilePath=me(Ge(t,e))}""!==i.filePath&&o.push(i)}else e.logger.debug(`did not resolve external css @import: ${i.srcImport}`)}return o},sw=e=>e.startsWith("~"),cw=async(e,t,r,n,i)=>{try{const r=Br(i.url),a=await qr(e.sys,t.fs,{moduleId:r.moduleId,containingFile:n,exts:[],packageFilter:e=>(""!==r.filePath&&(e.main=r.filePath),e)});i.filePath=a.resolveId,i.updatedImport=`@import "${i.filePath}";`}catch(e){const t=Z(r);t.messageText=`Unable to resolve node module for CSS @import: ${i.url}`,t.absFilePath=n}},lw=e=>!(e=e.toLowerCase()).includes("url(")||!(e=(e=(e=e.replace(/\"/g,"")).replace(/\'/g,"")).replace(/\s/g,"")).includes("url(http")&&!e.includes("url(//"),dw=(e,t,r)=>{for(const n of t)r?"string"==typeof n.styleText&&(e=e.replace(n.srcImport,n.styleText)):"string"==typeof n.updatedImport&&(e=e.replace(n.srcImport,n.updatedImport));return e},uw=(e,t,r,n)=>({name:"extTransformsPlugin",async transform(i,a){var o,s;if(/\0/.test(a))return null;const{data:c}=lu(a);if(null!=c){let i;const l=Se(a),d=await t.fs.readFile(l);if("string"!=typeof d)return null;const u=await(async(e,t,r,n,i)=>{const a={config:e,sys:e.sys,fs:t.fs,cache:t.cache,diagnostics:[]},o={code:n,id:i,map:null,diagnostics:[],dependencies:[]},s=i.toLowerCase().endsWith(".css");if(s){const n=await iw(e,t,r,i,i,o.code);o.code=n.styleText,Array.isArray(n.imports)&&o.dependencies.push(...n.imports)}for(const e of a.config.plugins)if(W(e.transform))try{let t;const r=e.transform(o.code,o.id,a);if(null!=r&&(t=W(r.then)?await r:r,null!=t))if(G(t))o.code=t;else if(G(t.code)&&(o.code=t.code),G(t.id)&&(o.id=t.id),Array.isArray(t.dependencies)){const e=t.dependencies.filter((e=>!o.dependencies.includes(e)));o.dependencies.push(...e)}}catch(e){re(o.diagnostics,e)}if(o.diagnostics.push(...a.diagnostics),!s){const n=await iw(e,t,r,i,o.id,o.code);if(o.code=n.styleText,Array.isArray(n.imports)){const e=n.imports.filter((e=>!o.dependencies.includes(e)));o.dependencies.push(...e)}}return o})(e,t,r,d,l),p=e.flags.watch&&e.flags.dev&&e.flags.serve&&"hmr"===(null!==(s=null===(o=e.devServer)||void 0===o?void 0:o.reloadStrategy)&&void 0!==s?s:null),_="hydrate"===n.platform&&"shadow"===c.encapsulation&&!p;if(c.tag&&(i=r.components.find((e=>e.tagName===c.tag)),i&&t.moduleMap.get(i.sourceFilePath))){const r=e.outputTargets.filter(Tu),n=Xe(e.srcDir,u.id);await Promise.all(r.map((async e=>{const r=Ge(e.collectionDir,n);await t.fs.writeFile(r,u.code)})))}const f=await t.worker.transformCssToEsm({file:u.id,input:u.code,tag:c.tag,encapsulation:c.encapsulation,mode:c.mode,commentOriginalSelector:_,sourceMap:e.sourceMap,minify:e.minifyCss,autoprefixer:e.autoprefixCss,docs:e.buildDocs});i&&(i.styleDocs=f.styleDocs);for(const e of u.dependencies)this.addWatchFile(e),t.addWatchFile(e);return r.diagnostics.push(...u.diagnostics),r.diagnostics.push(...f.diagnostics),(ne(f.diagnostics)||ne(u.diagnostics))&&this.error("Plugin CSS transform error"),r.stylesUpdated.some((e=>e.styleTag===c.tag&&e.styleMode===c.mode&&e.styleText===f.styleText))||r.stylesUpdated.push({styleTag:c.tag,styleMode:c.mode,styleText:f.styleText}),{code:f.output,map:f.map,moduleSideEffects:!1}}return null}}),pw=(e={})=>({name:"stencilLoaderPlugin",resolveId(t){return t in e?{id:t}:null},load(t){return t in e?e[t]:null}}),_w=(e,t,r)=>({name:"pluginHelper",resolveId(n,i){if(/\0/.test(n))return null;if(n.endsWith("/")&&(n=n.slice(0,-1)),fw.has(n)){let a="";i&&(a=` from ${Xe(e.rootDir,i)}`);const o=Z(t.diagnostics);o.header="Node Polyfills Required",o.messageText=`For the import "${n}" to be bundled${a}, ensure the "rollup-plugin-node-polyfills" plugin is installed and added to the stencil config plugins (${r}). Please see the bundling docs for more information.\n Further information: https://stenciljs.com/docs/module-bundling`}return null}}),fw=new Set(["child_process","cluster","dgram","dns","module","net","readline","repl","tls","assert","console","constants","domain","events","path","punycode","querystring","_stream_duplex","_stream_passthrough","_stream_readable","_stream_writable","_stream_transform","string_decoder","sys","tty","crypto","fs","Buffer","buffer","global","http","https","os","process","stream","timers","url","util","vm","zlib"]),mw=(e,t)=>{const r="hydrate"===t,n="@removed-server-code",i=e=>!!G(e)&&((e=Se(e)).includes(".server/")||e.endsWith(".server")),a=r?e.outputTargets.filter(Iu).flatMap((e=>e.external)):[];return{name:"serverPlugin",resolveId(e,t){if(e===n)return e;if(r){if(a.includes(e))return{id:e,external:!0};if(i(t)&&!e.startsWith(".")&&!Je(e))return{id:e,external:!0}}else if(i(e))return n;return null},load(e){return e===n?{code:"export default {};",syntheticNamedExports:!0}:null}}},gw=(e,t,r,n,i)=>{if(Kr(i))return;const a=hw(n);return G(a)&&((e,t,r,n,i,a)=>{r.endsWith("package.json")&&Or(a,i);let o=We(n);for(;"/"!==o&&""!==o;)t?(t.clearFileCache(o),t.sys.createDirSync(o)):e.createDirSync(o),o=We(o);t?(t.clearFileCache(n),t.sys.writeFileSync(n,i)):e.writeFileSync(n,i)})(e,t,n,i,a,r),a},hw=e=>{if(!Vr.has(e)&&!Jr(e)){try{const t=new XMLHttpRequest;if(t.open("GET",e,!1),t.send(null),t.status>=200&&t.status<=299)return t.responseText}catch(e){}Vr.add(e)}},yw=(e,t,r)=>({isFile(n){const i=Se(n);if(t.statSync(i).isFile)return!0;if(Rr(i)){if(!r.some((e=>i.endsWith(e))))return!1;const n=Wr(e,jr,i);return"string"==typeof gw(e,t,jr,n,i)}return!1},isDirectory(r){const n=Se(r);if(t.statSync(n).isDirectory)return!0;if(Rr(n)){if("node_modules"===He(n))return t.sys.createDirSync(n),t.clearFileCache(n),!0;if(Ir(n))return!1;const r=r=>{const i=Hr(e,jr,n,r),a=Pr(n,r),o=gw(e,t,jr,i,a);return G(o)};return Cr.some(r)}return!1},readFileSync(e){const r=t.readFileSync(e);if(G(r))return r;throw new Error(`file not found: ${e}`)},realpathSync(t){const r=Se(t);try{return e.realpathSync(r)}catch(e){if((n=e)instanceof Error&&n.hasOwnProperty("code")&&"ENOENT"!==e.code)throw e}var n;return r},extensions:r}),vw=(e,t,r,n)=>{const i=e=>{const r=t.realpathSync(e);return G(r)?r:e},o=e=>{try{const n=t.readDirSync(e||".").sort(),i=[],a=[];for(const e of n){const t=r.statSync(e);if(!t)continue;const n=He(e);t.isFile?i.push(n):t.isDirectory&&a.push(n)}return{files:i,directories:a}}catch(e){return{files:[],directories:[]}}};return n.createDirectory=e=>{t.createDirSync(e,{recursive:!0})},n.directoryExists=e=>r.statSync(e).isDirectory,n.exit=t.exit,n.fileExists=t=>{let i=t;Fe(t)&&(i=Ew(e,n.getExecutingFilePath(),t));const a=r.statSync(i);return!(!a||!a.isFile)},n.getCurrentDirectory=t.getCurrentDirectory,n.getExecutingFilePath=t.getCompilerExecutingPath,n.getDirectories=e=>t.readDirSync(e).filter((e=>{const t=r.statSync(e);return!!(t&&t.exists&&t.isDirectory)})),n.readDirectory=(e,r,n,s,c)=>{const l=t.getCurrentDirectory();return p.matchFiles(e,r,n,s,a,l,c,o,i)},n.readFile=t=>{let i=t;const a=Fe(t);a&&(i=Ew(e,n.getExecutingFilePath(),t));let o=r.readFileSync(i,{useCache:a});return"string"!=typeof o&&a&&(s?(o=hw(t),"string"==typeof o&&r.writeFile(i,o)):e.logger.error(`ts.sys can only request http resources from within a web worker: ${t}`)),o},n.writeFile=(e,t)=>r.writeFile(e,t),n},bw=(e,t)=>{var r,n;p.__patched||(e.sys&&(vw(e,e.sys,t,p.sys),r=e.sys,(n=p.sys).watchDirectory=(e,t,n)=>{const i=r.watchDirectory(e,(e=>{t(e)}),n);return{close(){i.close()}}},n.watchFile=(e,t)=>{const n=r.watchFile(e,((e,r)=>{"fileAdd"===r?t(e,p.FileWatcherEventKind.Created):"fileUpdate"===r?t(e,p.FileWatcherEventKind.Changed):"fileDelete"===r&&t(e,p.FileWatcherEventKind.Deleted)}));return{close(){n.close()}}}),Dw(e,t),xw(),p.__patched=!0)};void(p.sys||(p.sys={args:[],createDirectory:B,directoryExists(){return!1},exit:B,fileExists(){return!1},getCurrentDirectory:u,getDirectories(){return[]},getExecutingFilePath(){return"./"},readDirectory(){return[]},readFile:B,newLine:"\n",resolvePath:Ye,useCaseSensitiveFileNames:!1,write:B,writeFile:B}));const Ew=(e,t,r)=>{const n=new URL("..",t).href;if(r.startsWith(n)){const t=r.replace(n,"/"),i=e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:"@stencil/core",path:t});return me(i)}return r},xw=()=>{const e=p.getParsedCommandLineOfConfigFile;p.getParsedCommandLineOfConfigFile=(t,r,n,i)=>{const a=e(t,r,n,i);return a.fileNames=a.fileNames.filter((e=>!(e.includes(".e2e.")||e.includes("/e2e.")||e.includes(".spec.")||e.includes("/spec.")))),a}},Dw=(e,t)=>{let r;if(e.sys?r=e.sys.getCompilerExecutingPath():o&&(r=location.href),Nw(r)){const r=p.__resolveModuleName=p.resolveModuleName;p.resolveModuleName=(n,i,a,o,s,c)=>Tw(e,t,n,i)||r(n,i,a,o,s,c)}},Sw=(e,t,r,n)=>{const i=p.__resolveModuleName||p.resolveModuleName;if(r&&i&&e.tsCompilerOptions){const a=vw(e,e.sys,t.fs,p.sys),o={...e.tsCompilerOptions};return o.resolveJsonModule=!0,i(r,n,o,a)}return null},Tw=(e,t,r,n)=>{if(Mr(r)){const e=We(n);let i=Ge(e,r);if(i=me(Aw(i,n)),Je(i)&&!t.accessSync(i))return null;Je(i)||i.startsWith(".")||i.startsWith("/")||(i="./"+i);return{resolvedModule:{extension:kw(i),resolvedFileName:i,packageId:{name:r,subModuleName:"",version:dt}},failedLookupLocations:[]}}return Cw(e,t,r,n)},Cw=(e,t,r,n)=>{if(r.startsWith("@stencil/core")){return{resolvedModule:{extension:p.Extension.Dts,resolvedFileName:me(e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:"@stencil/core",path:"internal/index.d.ts"})),packageId:{name:r,subModuleName:"",version:dt}},failedLookupLocations:[]}}const i=((e,t,r)=>{const n=((e,t,r)=>{if(t){const n=me(e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:r,path:"package.json"}));let i=t.readFileSync(n);if(!G(i)&&s){const a=e.sys.getRemoteModuleUrl({moduleId:r,path:"package.json"});i=gw(e.sys,t,jr,a,n)}if("string"==typeof i)try{return JSON.parse(i)}catch(e){}}return null})(e,t,r.moduleId);if(n){const i={...r,exts:[".js",".mjs"]},a=((e,t,r)=>{if(t){const n=yw(e,t,r.exts);return n.basedir=We(r.containingFile),n.packageFilter=r.packageFilter,Sr.sync(r.moduleId,n)}return null})(e.sys,t,i);if("string"==typeof a)return{resolvedUrl:a,packageJson:n}}return null})(e,t,{moduleId:r,containingFile:n});if(i){return{resolvedModule:{extension:p.Extension.Js,resolvedFileName:i.resolvedUrl,packageId:{name:r,subModuleName:"",version:i.packageJson.version}},failedLookupLocations:[]}}return null},Aw=(e,t)=>(!He(e).includes(".")&&G(t)&&(t=t.toLowerCase(),Fr(t)?e+=".js":Ar(t)?e+=".d.ts":Nr(t)?e+=".tsx":kr(t)?e+=".ts":wr(t)&&(e+=".jsx")),e),kw=e=>Ar(e)?p.Extension.Dts:Nr(e)?p.Extension.Tsx:Fr(e)?p.Extension.Js:wr(e)?p.Extension.Jsx:(e=>e.endsWith(".json"))(e)?p.Extension.Json:p.Extension.Ts,Nw=e=>!i&&Fe(e),ww=(e,t)=>e.moduleMap.get(me(t)),Fw=(e,t,r)=>({name:`${t.id}TypescriptPlugin`,load(t){if(Je(t)){const r=Se(t),n=ww(e,r);if(n){if(!n.sourceMapFileText)return{code:n.staticSourceFileText,map:null};const e=JSON.parse(n.sourceMapFileText);return e.sources=e.sources.map((e=>He(e))),{code:n.staticSourceFileText,map:e}}}return null},transform(n,i){if(Je(i)){const n=Se(i),a=ww(e,n);if(a&&a.cmps.length>0){const e=p.transpileModule(a.staticSourceFileText,{compilerOptions:r.tsCompilerOptions,fileName:a.sourceFilePath,transformers:{before:t.customTransformers}}),n=e.sourceMapText?JSON.parse(e.sourceMapText):null;return{code:e.outputText,map:n}}}return null}}),Pw=(e,t)=>({name:"resolveIdWithTypeScript",async resolveId(r,n){if(/\0/.test(r)||!G(n))return null;const i=Sw(e,t,r,n);if(i&&i.resolvedModule){const e=i.resolvedModule.resolvedFileName;if(G(e)&&!e.endsWith(".d.ts"))return e}return null}}),Iw=(e,t)=>({name:"userIndexPlugin",async resolveId(r){if(r===zN){const n=Ge(e.srcDir,"index.ts");return await t.fs.access(n)?n:r}return null},async load(e){return e===zN?"//! Autogenerated index":null}}),Ow=(e,t,r,n,i)=>{if("worker"===n||"hydrate"===n)return{name:"workerPlugin",transform(e,t){return t.endsWith("?worker")||t.endsWith("?worker-inline")?Jw():null}};const a=new Map;return{name:"workerPlugin",buildStart(){a.clear()},resolveId(e){return e===jw?{id:e,moduleSideEffects:!1}:null},load(e){return e===jw?Hw:null},async transform(n,o){if(/\0/.test(o))return null;if(o.endsWith("?worker")){const n=Se(o),i=Lw(n),{code:s,dependencies:c,workerMsgId:l}=await Rw(e,t,r,this,a,n),d=this.emitFile({type:"asset",source:s,name:i+".js"});return c.forEach((e=>this.addWatchFile(e))),{code:Ww(d,i,l),moduleSideEffects:!1}}if(o.endsWith("?worker-inline")){const n=Se(o),i=Lw(n),{code:s,dependencies:c,workerMsgId:l}=await Rw(e,t,r,this,a,n),d=this.emitFile({type:"asset",source:s,name:i+".js"});return c.forEach((e=>this.addWatchFile(e))),{code:Kw(d,i,l),moduleSideEffects:!1}}const s=Mw(o);if(null!=s){const n=await Rw(e,t,r,this,a,s);if(n)return i?{code:$w(s,n.workerMsgId,n.exports),moduleSideEffects:!1}:{code:Gw(s,n.exports),moduleSideEffects:!1}}return null}}},Mw=e=>Uw.some((t=>e.endsWith(t)))?Se(e):null,Rw=async(e,t,r,n,i,a)=>{let o=i.get(a);return o||(o=await Bw(e,t,r,n,a),i.set(a,o)),o},Lw=e=>{const t=e.split("/").filter((e=>!e.includes("index")));return(e=t[t.length-1]).replace(".tsx","").replace(".ts","")},Bw=async(e,t,r,n,i)=>{const a=Lw(i),o=`stencil.${a}`,s=await qw(e,t,r,{platform:"worker",id:a,inputs:{[a]:i},inlineDynamicImports:!0});if(s){const a=(await s.generate({format:"commonjs",banner:`${Ie(e)}\n(()=>{\n`,footer:"})();",intro:zw(o,e.devMode),esModule:!1,preferConst:!0,externalLiveBindings:!1})).output[0];a.imports.length>0&&n.error("Workers should not have any external imports: "+JSON.stringify(a.imports));let c=a.code;const l=await Ll(e,t,{input:c,sourceTarget:e.buildEs5?"es5":"es2017",isCore:!1,minify:e.minifyJs,inlineHelpers:!0});return r.diagnostics.push(...l.diagnostics),ne(l.diagnostics)||(c=l.output),{code:c,exports:a.exports,workerMsgId:o,dependencies:Object.keys(a.modules).filter((e=>!/\0/.test(e)&&e!==i))}}return null},Uw=[".worker.ts",".worker.tsx",".worker/index.ts",".worker/index.tsx"],jw="@worker-helper",Vw='\nconst isInstanceOf = (value, className) => {\n const C = globalThis[className];\n return C != null && value instanceof C;\n}\nconst getTransferables = (value) => {\n if (value != null) {\n if (\n isInstanceOf(value, "ArrayBuffer") ||\n isInstanceOf(value, "MessagePort") ||\n isInstanceOf(value, "ImageBitmap") ||\n isInstanceOf(value, "OffscreenCanvas")\n ) {\n return [value];\n }\n if (typeof value === "object") {\n if (value.constructor === Object) {\n value = Object.values(value);\n }\n if (Array.isArray(value)) {\n return value.flatMap(getTransferables);\n }\n return getTransferables(value.buffer);\n }\n }\n return [];\n};',zw=(e,t)=>`\n${Vw}\nconst exports = {};\nconst workerMsgId = '${e}';\nconst workerMsgCallbackId = workerMsgId + '.cb';\naddEventListener('message', async ({data}) => {\n if (data && data[0] === workerMsgId) {\n let id = data[1];\n let method = data[2];\n let args = data[3];\n let i = 0;\n let argsLen = args.length;\n let value;\n let err;\n\n try {\n for (; i < argsLen; i++) {\n if (Array.isArray(args[i]) && args[i][0] === workerMsgCallbackId) {\n const callbackId = args[i][1];\n args[i] = (...cbArgs) => {\n postMessage(\n [workerMsgCallbackId, callbackId, cbArgs]\n );\n };\n }\n }\n ${t?"\n value = exports[method](...args);\n if (!value || !value.then) {\n throw new Error('The exported method \"' + method + '\" does not return a Promise, make sure it is an \"async\" function');\n }\n value = await value;\n ":"\n value = await exports[method](...args);"}\n\n } catch (e) {\n value = null;\n if (e instanceof Error) {\n err = {\n isError: true,\n value: {\n message: e.message,\n name: e.name,\n stack: e.stack,\n }\n };\n } else {\n err = {\n isError: false,\n value: e\n };\n }\n value = undefined;\n }\n\n const transferables = getTransferables(value);\n ${t?"if (transferables.length > 0) console.debug('Transfering', transferables);":""}\n\n postMessage(\n [workerMsgId, id, value, err],\n transferables\n );\n }\n});\n`,Hw=`\nimport { consoleError } from '@stencil/core/internal';\n\n${Vw}\n\nlet pendingIds = 0;\nlet callbackIds = 0;\nconst pending = new Map();\nconst callbacks = new Map();\n\nexport const createWorker = (workerPath, workerName, workerMsgId) => {\n const worker = new Worker(workerPath, {name:workerName});\n\n worker.addEventListener('message', ({data}) => {\n if (data) {\n const workerMsg = data[0];\n const id = data[1];\n const value = data[2];\n\n if (workerMsg === workerMsgId) {\n const err = data[3];\n const [resolve, reject, callbackIds] = pending.get(id);\n pending.delete(id);\n\n if (err) {\n const errObj = (err.isError)\n ? Object.assign(new Error(err.value.message), err.value)\n : err.value;\n\n consoleError(errObj);\n reject(errObj);\n } else {\n if (callbackIds) {\n callbackIds.forEach(id => callbacks.delete(id));\n }\n resolve(value);\n }\n } else if (workerMsg === workerMsgId + '.cb') {\n try {\n callbacks.get(id)(...value);\n } catch (e) {\n consoleError(e);\n }\n }\n }\n });\n\n return worker;\n};\n\nexport const createWorkerProxy = (worker, workerMsgId, exportedMethod) => (\n (...args) => new Promise((resolve, reject) => {\n let pendingId = pendingIds++;\n let i = 0;\n let argLen = args.length;\n let mainData = [resolve, reject];\n pending.set(pendingId, mainData);\n\n for (; i < argLen; i++) {\n if (typeof args[i] === 'function') {\n const callbackId = callbackIds++;\n callbacks.set(callbackId, args[i]);\n args[i] = [workerMsgId + '.cb', callbackId];\n (mainData[2] = mainData[2] || []).push(callbackId);\n }\n }\n const postMessage = (w) => (\n w.postMessage(\n [workerMsgId, pendingId, exportedMethod, args],\n getTransferables(args)\n )\n );\n if (worker.then) {\n worker.then(postMessage);\n } else {\n postMessage(worker);\n }\n })\n);\n`,Ww=(e,t,r)=>`\nimport { createWorker } from '${jw}';\nexport const workerName = '${t}';\nexport const workerMsgId = '${r}';\nexport const workerPath = /*@__PURE__*/import.meta.ROLLUP_FILE_URL_${e};\nexport const worker = /*@__PURE__*/createWorker(workerPath, workerName, workerMsgId);\n`,Kw=(e,t,r)=>`\nimport { createWorker } from '${jw}';\nexport const workerName = '${t}';\nexport const workerMsgId = '${r}';\nexport const workerPath = /*@__PURE__*/import.meta.ROLLUP_FILE_URL_${e};\nconst blob = new Blob(['importScripts("' + workerPath + '")'], { type: 'text/javascript' });\nconst url = URL.createObjectURL(blob);\nexport const worker = /*@__PURE__*/createWorker(url, workerName, workerMsgId);\nURL.revokeObjectURL(url);\n`,Jw=()=>"\nexport const workerName = 'mocked-worker';\nexport const workerMsgId = workerName;\nexport const workerPath = workerName;\nexport const worker = { name: workerName };\n",Gw=(e,t)=>`\nimport { createWorkerProxy } from '${jw}';\nimport { worker, workerName, workerMsgId } from '${e}?worker';\n${t.map((e=>`export const ${e} = /*@__PURE__*/createWorkerProxy(worker, workerMsgId, '${e}');`)).join("\n")}\n`,$w=(e,t,r)=>`\nimport { createWorkerProxy } from '${jw}';\nconst workerPromise = import('${e}?worker-inline').then(m => m.worker);\n${r.map((e=>`export const ${e} = /*@__PURE__*/createWorkerProxy(workerPromise, '${t}', '${e}');`)).join("\n")}\n`,qw=async(e,t,r,n)=>{try{const i=Xw(e,t,r,n),a=await DN(i);return t.rollupCache.set(n.id,a.cache),a}catch(n){r.hasError||de(e,t,r,n)}},Xw=(e,t,r,n)=>{var i;const a=hb({mainFields:["collection:main","jsnext:main","es2017","es2015","module","main"],customResolveOptions:Xr(e.sys,t.fs,[".tsx",".ts",".js",".mjs",".json",".d.ts"]),browser:!0,rootDir:e.rootDir,...e.nodeResolve}),o=a.resolveId,s=a.resolveId=async(e,t)=>{const[r,n]=e.split("?"),i=await o.call(a,r,t);return i?G(i)?n?i+"?"+n:i:{...i,id:n?i.id+"?"+n:i.id}:i};e.devServer&&e.devServer.experimentalDevModules&&(a.resolveId=async(r,n)=>{const i=await s.call(a,r,n);return(async(e,t,r,n)=>{if(!((e,t)=>e&&t&&e.id&&e.id.includes("node_modules")&&(e.id.endsWith(".js")||e.id.endsWith(".mjs"))&&!e.external&&!t.startsWith(".")&&!t.startsWith("/"))(r,n))return r;const i=r.id,a=((e,t)=>{let r=e;for(let e=0;e<10;e++){r=We(r);const e=He(r),n=We(r),i=He(n);if(e===t&&"node_modules"===i)return Ge(r,"package.json")}return null})(i,n);if(!a)return r;const o=await t.readFile(a);if(!o)return r;let s;try{s=JSON.parse(o)}catch(e){}return s&&s.version?(r.id=((e,t,r,n)=>{n=Xe(e.rootDir,n);let i="/~dev-module/";return i+=encodeURIComponent(t)+"@",i+=encodeURIComponent(r)+".js",i+="?p="+encodeURIComponent(n),i})(e,s.name,s.version,i),r.external=!0,r):r})(e,t.fs,i,r)});const c=e.rollupPlugins.before||[],l=e.rollupPlugins.after||[];return{input:n.inputs,plugins:[XN(e,t,n.platform,n.externalRuntime),HN(e,t,r,n.conditionals,n.platform),NN(r),pw(n.loader),Iw(e,t),Fw(t,n,e),ZN(e),uw(e,t,r,n),Ow(e,t,r,n.platform,!!n.inlineWorkers),mw(e,n.platform),...c,a,Pw(e,t),Pv({include:/node_modules/,sourceMap:e.sourceMap,transformMixedEsModules:!1,...e.commonjs}),...l,_w(e,r,n.platform),Vv({preferConst:!0}),Ib({"process.env.NODE_ENV":e.devMode?'"development"':'"production"'}),(d=t.fs,{name:"fileLoadPlugin",load(e){const t=Se(e);return e.endsWith(".d.ts")?"":d.readFile(t)}})],treeshake:Yw(e,n),inlineDynamicImports:n.inlineDynamicImports,preserveEntrySignatures:null!==(i=n.preserveEntrySignatures)&&void 0!==i?i:"strict",onwarn:ue(r.diagnostics),cache:t.rollupCache.get(n.id)};var d},Yw=(e,t)=>("hydrate"===t.platform||!e.devMode&&!1!==e.rollupConfig.inputOptions.treeshake)&&{propertyReadSideEffects:!1,tryCatchDeoptimization:!1},Qw=(e,t,r)=>()=>n=>{const i=Em(e,n),a=[],o=[],s=[];if(i.cmps.length){const e=i.cmps[0];s.push(e.tagName);const n=p.factory.createCallExpression(p.factory.createPropertyAccessExpression(p.factory.createIdentifier("customElements"),"define"),void 0,[p.factory.createIdentifier("tagName"),p.factory.createIdentifier(e.componentClassName)]);if(o.push(eF(e.tagName,n)),Zw(i,t,a,o,s),tF(s,a,o),r.autoDefineCustomElements){const t=(c=e.componentClassName,p.factory.createExpressionStatement(p.factory.createCallExpression(p.factory.createIdentifier("defineCustomElement"),void 0,[p.factory.createIdentifier(c)])));a.push(t)}}var c;return p.factory.updateSourceFile(n,[...n.statements,...a])},Zw=(e,t,r,n,i)=>{e.cmps.forEach((e=>{e.dependencies.forEach((e=>{const a=t.find((t=>t.tagName===e)),o=`$${R(a.tagName)}DefineCustomElement`;i.push(a.tagName),r.push(Nm([`defineCustomElement as ${o}`],a.sourceFilePath));const s=p.factory.createCallExpression(p.factory.createIdentifier(o),void 0,[]);n.push(eF(a.tagName,s))}))}))},eF=(e,t)=>p.factory.createCaseClause(p.factory.createStringLiteral(e),[p.factory.createIfStatement(p.factory.createPrefixUnaryExpression(p.SyntaxKind.ExclamationToken,p.factory.createCallExpression(p.factory.createPropertyAccessExpression(p.factory.createIdentifier("customElements"),"get"),void 0,[p.factory.createIdentifier("tagName")])),p.factory.createBlock([p.factory.createExpressionStatement(t)])),p.factory.createBreakStatement()]),tF=(e,t,r)=>{const n=p.factory.createFunctionDeclaration([p.factory.createModifier(p.SyntaxKind.ExportKeyword)],void 0,p.factory.createIdentifier("defineCustomElement"),void 0,[],void 0,p.factory.createBlock([p.factory.createIfStatement(p.factory.createStrictEquality(p.factory.createTypeOfExpression(p.factory.createIdentifier("customElements")),p.factory.createStringLiteral("undefined")),p.factory.createBlock([p.factory.createReturnStatement()])),p.factory.createVariableStatement(void 0,p.factory.createVariableDeclarationList([p.factory.createVariableDeclaration("components",void 0,void 0,p.factory.createArrayLiteralExpression(e.map((e=>p.factory.createStringLiteral(e)))))],p.NodeFlags.Const)),p.factory.createExpressionStatement(p.factory.createCallExpression(p.factory.createPropertyAccessExpression(p.factory.createIdentifier("components"),"forEach"),void 0,[p.factory.createArrowFunction(void 0,void 0,[p.factory.createParameterDeclaration(void 0,void 0,p.factory.createIdentifier("tagName"),void 0,void 0)],void 0,p.factory.createToken(p.SyntaxKind.EqualsGreaterThanToken),p.factory.createBlock([p.factory.createSwitchStatement(p.factory.createIdentifier("tagName"),p.factory.createCaseBlock(r))]))]))],!0));t.push(n)},rF="__stencil_createEvent",nF="__stencil_defineCustomElement",iF="__stencil_getConnect",aF="__stencil_getContext",oF="__stencil_getElement",sF="__stencil_Host",cF="HTMLElement",lF="__stencil_proxyCustomElement",dF="__stencil_registerInstance",uF="__stencil_h",pF={attachShadow:"attachShadow as __stencil_attachShadow",createEvent:`createEvent as ${rF}`,defineCustomElement:`defineCustomElement as ${nF}`,getConnect:`getConnect as ${iF}`,getContext:`getContext as ${aF}`,getElement:`getElement as ${oF}`,h:`h as ${uF}`,legacyH:"h",Host:`Host as ${sF}`,HTMLElement:cF,proxyCustomElement:`proxyCustomElement as ${lF}`,registerHost:"registerHost as __stencil_registerHost",registerInstance:`registerInstance as ${dF}`},_F=(e,t)=>{e.coreRuntimeApis.includes(t)||e.coreRuntimeApis.push(t)},fF=e=>{_F(e,pF.legacyH)},mF=e=>p.factory.createExpressionStatement(gF(e)),gF=e=>{const t=D(e,!0),r=p.factory.createIdentifier(e.componentClassName),n=im(t);return p.factory.createCallExpression(p.factory.createIdentifier(lF),[],[r,n])},hF=(e,t)=>{const r=D(e,!0),n=im(r);return p.factory.createCallExpression(p.factory.createIdentifier(lF),[],[t,n])},yF=(e,t,r,n)=>{if(0===r.length)return t;if("cjs"===e.module){const e=((e,t)=>{const r=p.factory.createObjectBindingPattern(e.map((e=>{const t=e.split(" as ");let r=e,n=e;return t.length>1&&(r=t[1],n=t[0]),p.factory.createBindingElement(void 0,n,r)})));return p.factory.createVariableStatement(void 0,p.factory.createVariableDeclarationList([p.factory.createVariableDeclaration(r,void 0,void 0,p.factory.createCallExpression(p.factory.createIdentifier("require"),[],[p.factory.createStringLiteral(t)]))],p.NodeFlags.Const))})(r,n),i=t.statements.slice();return i.splice(2,0,e),p.factory.updateSourceFile(t,i)}const i=Nm(r,n),a=t.statements.slice();return a.unshift(i),p.factory.updateSourceFile(t,a)},vF=(e,t)=>()=>r=>{const n=Em(e,r);if(!n.cmps.length)return r;const i=n.cmps[0];for(const[e,n]of r.statements.entries())if(p.isVariableStatement(n))for(const[a,o]of n.declarationList.declarations.entries()){if(o.name.getText()!==i.componentClassName)continue;const s=hF(i,o.initializer);p.addSyntheticLeadingComment(s,p.SyntaxKind.MultiLineCommentTrivia,"@__PURE__",!1);const c=p.factory.updateVariableDeclaration(o,o.name,o.exclamationToken,o.type,s),l=p.factory.updateVariableDeclarationList(n.declarationList,[...n.declarationList.declarations.slice(0,a),c,...n.declarationList.declarations.slice(a+1)]),d=p.factory.updateVariableStatement(n,[p.factory.createModifier(p.SyntaxKind.ExportKeyword)],l);return r=p.factory.updateSourceFile(r,[...r.statements.slice(0,e),d,...r.statements.slice(e+1)]),yF(t,r,[pF.proxyCustomElement],t.coreImportPath)}return r},bF=(e,t,r)=>"cjs"===e.module?SF(e,t,r):EF(e,t,r),EF=(e,t,r)=>{const n=[];let i=t.statements.slice(),a=!1;if(r.cmps.forEach((r=>{r.styles.forEach((o=>{"string"==typeof o.styleIdentifier&&(a=!0,o.externalStyles.length>0?n.push(DF(e,t,r,o)):i=xF(e,t,i,r,o))}))})),a){let e=-1;for(let t=0;t<i.length;t++)p.isImportDeclaration(i[t])&&(e=t);return i.splice(e+1,0,...n),p.factory.updateSourceFile(t,i)}return t},xF=(e,t,r,n,i)=>{for(let a=0;a<r.length;a++){const o=r[a];if(p.isImportDeclaration(o)&&o.importClause&&o.moduleSpecifier&&p.isStringLiteral(o.moduleSpecifier)&&o.importClause.name&&o.importClause.name.escapedText===i.styleIdentifier){const s=o.moduleSpecifier.text,c=CF(e,t,n,i,s);r[a]=p.factory.updateImportDeclaration(o,Pm(o),o.importClause,p.factory.createStringLiteral(c),void 0);break}}return r},DF=(e,t,r,n)=>{const i=p.factory.createIdentifier(n.styleIdentifier),a=CF(e,t,r,n,n.externalStyles[0].absolutePath);return p.factory.createImportDeclaration(void 0,p.factory.createImportClause(!1,i,void 0),p.factory.createStringLiteral(a))},SF=(e,t,r)=>{const n=[];return r.cmps.forEach((r=>{r.styles.forEach((i=>{"string"==typeof i.styleIdentifier&&i.externalStyles.length>0&&n.push(TF(e,t,r,i))}))})),n.length>0?p.factory.updateSourceFile(t,[...n,...t.statements]):t},TF=(e,t,r,n)=>{const i=p.factory.createIdentifier(n.styleIdentifier),a=CF(e,t,r,n,n.externalStyles[0].absolutePath);return p.factory.createVariableStatement(void 0,p.factory.createVariableDeclarationList([p.factory.createVariableDeclaration(i,void 0,void 0,p.factory.createCallExpression(p.factory.createIdentifier("require"),[],[p.factory.createStringLiteral(a)]))],p.NodeFlags.Const))},CF=(e,t,r,n,i)=>{const a={importeePath:i,importerPath:t.fileName,tag:r.tagName,encapsulation:r.encapsulation,mode:n.modeName};return cu(a,e.styleImportData)},AF=(e,t)=>{if(e.some((e=>p.isMethodDeclaration(e)&&"hostData"===e.name.escapedText))){const r=e.findIndex((e=>p.isMethodDeclaration(e)&&"render"===e.name.escapedText));if(r>=0){const t=e[r];e[r]=p.factory.updateMethodDeclaration(t,wm(t),t.asteriskToken,p.factory.createIdentifier(NF),t.questionToken,t.typeParameters,t.parameters,t.type,t.body)}e.push(kF(t,r>=0))}},kF=(e,t)=>{_F(e,pF.Host),_F(e,pF.h);const r=[p.factory.createIdentifier(sF),p.factory.createCallExpression(p.factory.createPropertyAccessExpression(p.factory.createThis(),"hostData"),void 0,void 0)];return t&&r.push(p.factory.createCallExpression(p.factory.createPropertyAccessExpression(p.factory.createThis(),NF),void 0,void 0)),p.factory.createMethodDeclaration(void 0,void 0,"render",void 0,void 0,[],void 0,p.factory.createBlock([p.factory.createReturnStatement(p.factory.createCallExpression(p.factory.createIdentifier(uF),void 0,r))]))},NF="__stencil_render",wF=e=>null==e.members?[]:e.members.filter((e=>{var t;if(null===(t=Pm(e))||void 0===t?void 0:t.some((e=>e.kind===p.SyntaxKind.StaticKeyword))){const t=e.name.escapedText;if(FF.has(t))return!1}return!0})),FF=new Set(["is","properties","encapsulation","elementRef","events","listeners","methods","states","originalStyleUrls","styleMode","style","styles","styleUrl","watchers","styleUrls","contextProps","connectProps"]),PF=(e,t,r,n)=>{var i,a,o;let s=null!==(a=null===(i=Pm(t))||void 0===i?void 0:i.slice())&&void 0!==a?a:[];return"cjs"===e.module?("customelement"===e.componentExport&&(s=s.filter((e=>e.kind!==p.SyntaxKind.ExportKeyword))),p.factory.updateClassDeclaration(t,[...null!==(o=Fm(t))&&void 0!==o?o:[],...s],t.name,t.typeParameters,r,n)):IF(e,t,r,n)},IF=(e,t,r,n)=>{var i;const a=t.name,o=(null!==(i=Pm(t))&&void 0!==i?i:[]).filter((e=>e.kind!==p.SyntaxKind.ExportKeyword)),s=[];return"customelement"!==e.componentExport&&s.push(p.factory.createModifier(p.SyntaxKind.ExportKeyword)),p.factory.createVariableStatement(s,p.factory.createVariableDeclarationList([p.factory.createVariableDeclaration(a,void 0,void 0,p.factory.createClassExpression(o,void 0,t.typeParameters,r,n))],p.NodeFlags.Const))},OF=(e,t)=>{if(t.watchers.length>0){const r={};t.watchers.forEach((({propName:e,methodName:t})=>{r[e]=r[e]||[],r[e].push(t)})),e.push(sm("watchers",im(r)))}},MF=(e,t)=>t.events.map((t=>(_F(e,pF.createEvent),p.factory.createExpressionStatement(p.factory.createAssignment(p.factory.createPropertyAccessExpression(p.factory.createThis(),p.factory.createIdentifier(t.method)),p.factory.createCallExpression(p.factory.createIdentifier(rF),void 0,[p.factory.createThis(),p.factory.createStringLiteral(t.name),p.factory.createNumericLiteral(RF(t))])))))),RF=e=>{let t=0;return e.bubbles&&(t|=4),e.composed&&(t|=2),e.cancelable&&(t|=1),t},LF=(e,t)=>(t.legacyConnect.length>0&&_F(e,pF.getConnect),t.legacyContext.length>0&&_F(e,pF.getContext),[...t.legacyConnect.map((e=>BF(e.name,iF,e.connect))),...t.legacyContext.map((e=>BF(e.name,aF,e.context)))]),BF=(e,t,r)=>p.factory.createExpressionStatement(p.factory.createAssignment(p.factory.createPropertyAccessExpression(p.factory.createThis(),e),p.factory.createCallExpression(p.factory.createIdentifier(t),void 0,[p.factory.createThis(),p.factory.createStringLiteral(r)]))),UF=(e,t)=>{const r=[jF()];return"shadow"===t.encapsulation&&r.push(VF(e)),r},jF=()=>p.factory.createExpressionStatement(p.factory.createCallExpression(p.factory.createPropertyAccessExpression(p.factory.createThis(),p.factory.createIdentifier("__registerHost")),void 0,void 0)),VF=e=>(_F(e,pF.attachShadow),p.factory.createExpressionStatement(p.factory.createCallExpression(p.factory.createPropertyAccessExpression(p.factory.createThis(),p.factory.createIdentifier("__attachShadow")),void 0,void 0))),zF=()=>p.factory.createExpressionStatement(p.factory.createCallExpression(p.factory.createIdentifier("super"),void 0,void 0)),HF=(e,t)=>{if("scoped"===e.encapsulation){const r=td(e.tagName,t.modeName);return p.factory.createStringLiteral(ru(t.styleStr,r,!1))}return p.factory.createStringLiteral(t.styleStr)},WF=(e,t)=>(t.styleIdentifier=R(e.tagName),t.styleIdentifier=t.styleIdentifier.charAt(0).toLowerCase()+t.styleIdentifier.substring(1),t.modeName!==E&&(t.styleIdentifier+=R(t.modeName)),t.styleIdentifier+="Style",t.externalStyles=[t.externalStyles[0]],p.factory.createIdentifier(t.styleIdentifier)),KF=(e,t,r,n)=>{const i=wF(t);return((e,t,r,n)=>{if(r.isPlain)return;const i=e.findIndex((e=>e.kind===p.SyntaxKind.Constructor));if(i>=0){const n=e[i];let a=[...UF(t,r),...MF(t,r),...n.body.statements,...LF(t,r)];true,n.body.statements.some((e=>e.kind===p.SyntaxKind.SuperKeyword))||(a=[zF(),...a]),e[i]=p.factory.updateConstructorDeclaration(n,Pm(n),n.parameters,p.factory.updateBlock(n.body,a))}else{let n=[...UF(t,r),...MF(t,r),...LF(t,r)];true,n=[zF(),...n];const i=p.factory.createConstructorDeclaration(void 0,[],p.factory.createBlock(n,!0));e.unshift(i)}})(i,r,n),((e,t)=>{if(t.isPlain&&t.hasRenderFn){const t=p.factory.createExpressionStatement(p.factory.createAssignment(p.factory.createPropertyAccessExpression(p.factory.createThis(),"textContent"),p.factory.createCallExpression(p.factory.createPropertyAccessExpression(p.factory.createThis(),"render"),void 0,void 0))),r=e.find((e=>p.isMethodDeclaration(e)&&"connectedCallback"===e.name.escapedText));if(null!=r){const n=p.factory.createMethodDeclaration(void 0,void 0,"connectedCallback",void 0,void 0,[],void 0,p.factory.createBlock([t,...r.body.statements],!0)),i=e.indexOf(r);e[i]=n}else{const r=p.factory.createMethodDeclaration(void 0,void 0,"connectedCallback",void 0,void 0,[],void 0,p.factory.createBlock([t],!0));e.push(r)}}})(i,n),((e,t)=>{t.elementRef&&e.push(p.factory.createGetAccessorDeclaration(void 0,t.elementRef,[],void 0,p.factory.createBlock([p.factory.createReturnStatement(p.factory.createThis())])))})(i,n),OF(i,n),n.isPlain&&((e,t)=>{e.push(sm("is",im(t.tagName)))})(i,n),"static"===e.style&&((e,t)=>{Array.isArray(t.styles)&&t.styles.length>0&&(t.styles.length>1||1===t.styles.length&&t.styles[0].modeName!==E?((e,t,r)=>{const n=[];r.forEach((e=>{if("string"==typeof e.styleStr){const r=HF(t,e),i=p.factory.createPropertyAssignment(e.modeName,r);n.push(i)}else if("string"==typeof e.styleIdentifier){const t=p.factory.createIdentifier(e.styleIdentifier),r=p.factory.createPropertyAssignment(e.modeName,t);n.push(r)}else if(Array.isArray(e.externalStyles)&&e.externalStyles.length>0){const r=WF(t,e),i=p.factory.createPropertyAssignment(e.modeName,r);n.push(i)}}));const i=p.factory.createObjectLiteralExpression(n,!0);e.push(sm("style",i))})(e,t,t.styles):((e,t,r)=>{if("string"==typeof r.styleStr){const n=HF(t,r);e.push(sm("style",n))}else if("string"==typeof r.styleIdentifier){const t=p.factory.createIdentifier(r.styleIdentifier);e.push(sm("style",t))}else if(Array.isArray(r.externalStyles)&&r.externalStyles.length>0){const n=WF(t,r);e.push(sm("style",n))}})(e,t,t.styles[0]))})(i,n),AF(i,r),i},JF=(e,t)=>r=>n=>{const i=Em(e,n),a=o=>{if(p.isClassDeclaration(o)){const r=xm(e,n,o);if(null!=r)return((e,t,r,n)=>{const i=((e,t)=>null!=e.heritageClauses&&e.heritageClauses.length>0?e.heritageClauses:(t.cmps.length>=1&&_F(t,pF.HTMLElement),[p.factory.createHeritageClause(p.SyntaxKind.ExtendsKeyword,[p.factory.createExpressionWithTypeArguments(p.factory.createIdentifier(cF),[])])]))(t,r),a=KF(e,t,r,n);return PF(e,t,i,a)})(t,o,i,r)}return p.visitEachChild(o,a,r)};return n=p.visitEachChild(n,a,r),i.cmps.length>0&&("customelement"===t.componentExport?n=((e,t,r)=>{let n=e.statements.slice();return n.push(...t.cmps.map((e=>((e,t)=>{if(t.isPlain)return p.factory.createExpressionStatement(p.factory.createCallExpression(p.factory.createPropertyAccessExpression(p.factory.createIdentifier("customElements"),p.factory.createIdentifier("define")),[],[p.factory.createStringLiteral(t.tagName),p.factory.createIdentifier(t.componentClassName)]));_F(e,pF.defineCustomElement);const r=D(t,!0),n=p.factory.createIdentifier(t.componentClassName),i=im(r);return p.factory.createExpressionStatement(p.factory.createCallExpression(p.factory.createIdentifier(nF),[],[n,i]))})(t,e)))),"cjs"===r.module&&(n=((e,t)=>{const r=new Set(t.cmps.map((e=>e.componentClassName)));return e.filter((e=>{if(e.kind===p.SyntaxKind.ExpressionStatement){const t=e.expression;if(t&&t.kind===p.SyntaxKind.BinaryExpression){const e=t.left;if(e&&e.kind===p.SyntaxKind.PropertyAccessExpression&&e.expression&&e.expression.kind===p.SyntaxKind.Identifier&&"exports"===e.expression.text){const e=t.right;if(e&&r.has(e.text))return!1}}}return!0}))})(n,t)),p.factory.updateSourceFile(e,n)})(n,i,t):"defineproperty"===t.proxy&&(n=((e,t)=>{const r=e.statements.slice();return _F(t,pF.proxyCustomElement),r.push(...t.cmps.map(mF)),p.factory.updateSourceFile(e,r)})(n,i)),n=bF(t,n,i)),i.isLegacy&&fF(i),n=yF(t,n,i.coreRuntimeApis,t.coreImportPath)},GF=e=>()=>t=>{if(PN===e)return t;let r=!1;const n=[];return t.statements.forEach((t=>{if(p.isImportDeclaration(t)&&null!=t.moduleSpecifier&&p.isStringLiteral(t.moduleSpecifier)&&t.moduleSpecifier.text===PN){if(t.importClause&&t.importClause.namedBindings&&t.importClause.namedBindings.kind===p.SyntaxKind.NamedImports){const r=t.importClause.namedBindings.elements.map((e=>e.getText())).filter((e=>$F.has(e)));if(r.length>0){const i=p.factory.updateImportDeclaration(t,void 0,p.factory.createImportClause(!1,void 0,p.factory.createNamedImports(r.map((e=>p.factory.createImportSpecifier(!1,void 0,p.factory.createIdentifier(e)))))),p.factory.createStringLiteral(e),void 0);n.push(i)}}return r=!0,void 0}n.push(t)})),r?p.factory.updateSourceFile(t,n,t.isDeclarationFile,t.referencedFiles,t.typeReferenceDirectives,t.hasNoDefaultLib,t.libReferenceDirectives):t},$F=new Set(["h","setMode","getMode","setPlatformHelpers","Build","Env","Host","Fragment","getAssetPath","writeTask","readTask","getElement","forceUpdate","getRenderingRef","forceModeUpdate","setErrorHandler"]),qF=e=>{const t=e.some((e=>e.htmlTagNames.includes("slot"))),r=e.some((e=>"shadow"===e.encapsulation)),n=e.some((e=>"shadow"!==e.encapsulation&&e.htmlTagNames.includes("slot"))),i={allRenderFn:e.every((e=>e.hasRenderFn)),cmpDidLoad:e.some((e=>e.hasComponentDidLoadFn)),cmpShouldUpdate:e.some((e=>e.hasComponentShouldUpdateFn)),cmpDidUnload:e.some((e=>e.hasComponentDidUnloadFn)),cmpDidUpdate:e.some((e=>e.hasComponentDidUpdateFn)),cmpDidRender:e.some((e=>e.hasComponentDidRenderFn)),cmpWillLoad:e.some((e=>e.hasComponentWillLoadFn)),cmpWillUpdate:e.some((e=>e.hasComponentWillUpdateFn)),cmpWillRender:e.some((e=>e.hasComponentWillRenderFn)),connectedCallback:e.some((e=>e.hasConnectedCallbackFn)),disconnectedCallback:e.some((e=>e.hasDisconnectedCallbackFn)),element:e.some((e=>e.hasElement)),event:e.some((e=>e.hasEvent)),hasRenderFn:e.some((e=>e.hasRenderFn)),lifecycle:e.some((e=>e.hasLifecycle)),asyncLoading:!1,hostListener:e.some((e=>e.hasListener)),hostListenerTargetWindow:e.some((e=>e.hasListenerTargetWindow)),hostListenerTargetDocument:e.some((e=>e.hasListenerTargetDocument)),hostListenerTargetBody:e.some((e=>e.hasListenerTargetBody)),hostListenerTargetParent:e.some((e=>e.hasListenerTargetParent)),hostListenerTarget:e.some((e=>e.hasListenerTarget)),member:e.some((e=>e.hasMember)),method:e.some((e=>e.hasMethod)),mode:e.some((e=>e.hasMode)),observeAttribute:e.some((e=>e.hasAttribute)),prop:e.some((e=>e.hasProp)),propBoolean:e.some((e=>e.hasPropBoolean)),propNumber:e.some((e=>e.hasPropNumber)),propString:e.some((e=>e.hasPropString)),propMutable:e.some((e=>e.hasPropMutable)),reflect:e.some((e=>e.hasReflect)),scoped:e.some((e=>"scoped"===e.encapsulation)),shadowDom:r,shadowDelegatesFocus:r&&e.some((e=>e.shadowDelegatesFocus)),slot:t,slotRelocation:n,state:e.some((e=>e.hasState)),style:e.some((e=>e.hasStyle)),svg:e.some((e=>e.htmlTagNames.includes("svg"))),updatable:e.some((e=>e.isUpdateable)),vdomAttribute:e.some((e=>e.hasVdomAttribute)),vdomXlink:e.some((e=>e.hasVdomXlink)),vdomClass:e.some((e=>e.hasVdomClass)),vdomFunctional:e.some((e=>e.hasVdomFunctional)),vdomKey:e.some((e=>e.hasVdomKey)),vdomListener:e.some((e=>e.hasVdomListener)),vdomPropOrAttr:e.some((e=>e.hasVdomPropOrAttr)),vdomRef:e.some((e=>e.hasVdomRef)),vdomRender:e.some((e=>e.hasVdomRender)),vdomStyle:e.some((e=>e.hasVdomStyle)),vdomText:e.some((e=>e.hasVdomText)),watchCallback:e.some((e=>e.hasWatchCallback)),taskQueue:!0};return i.asyncLoading=i.cmpWillUpdate||i.cmpWillLoad||i.cmpWillRender,i.vdomAttribute=i.vdomAttribute||i.reflect,i.vdomPropOrAttr=i.vdomPropOrAttr||i.reflect,i},XF=(e,t,r)=>{let n=e.get(t);return null==n&&(n=e.get(t+".tsx"),null==n&&(n=e.get(t+".ts"),null==n&&(n=e.get(t+".js")))),null==n||r.some((e=>e.sourceFilePath===n.sourceFilePath))||(r.push(n),n.localImports.forEach((t=>{XF(e,t,r)}))),r},YF=(e,t)=>{t.isDebug="debug"===e.logLevel,t.isDev=!!e.devMode,t.isTesting=!!e._isTesting,t.devTools=t.isDev&&!e._isTesting,t.profile=!!e.profile,t.hotModuleReplacement=!(!e.devMode||!e.devServer||"hmr"!==e.devServer.reloadStrategy||e._isTesting),t.updatable=t.updatable||t.hydrateClientSide||t.hotModuleReplacement,t.member=t.member||t.updatable||t.mode||t.lifecycle,t.constructableCSS=!t.hotModuleReplacement||!!e._isTesting,t.asyncLoading=!!(t.asyncLoading||t.lazyLoad||t.taskQueue||t.initializeNextTick),t.cssAnnotations=!0,t.appendChildSlotFix=e.extras.appendChildSlotFix,t.slotChildNodesFix=e.extras.slotChildNodesFix,t.cloneNodeFix=e.extras.cloneNodeFix,t.dynamicImportShim=e.extras.dynamicImportShim,t.lifecycleDOMEvents=!!(t.isDebug||e._isTesting||e.extras.lifecycleDOMEvents),t.safari10=e.extras.safari10,t.scopedSlotTextContentFix=!!e.extras.scopedSlotTextContentFix,t.scriptDataOpts=e.extras.scriptDataOpts,t.shadowDomShim=e.extras.shadowDomShim,t.attachStyles=!0,t.invisiblePrehydration=void 0===e.invisiblePrehydration||e.invisiblePrehydration,t.shadowDomShim&&(t.slotRelocation=t.slot),e.hydratedFlag?(t.hydratedAttribute="attribute"===e.hydratedFlag.selector,t.hydratedClass="class"===e.hydratedFlag.selector):(t.hydratedAttribute=!1,t.hydratedClass=!1)},QF=(e,t)=>{const r=qF(t);return r.lazyLoad=!1,r.hydrateClientSide=!1,r.hydrateServerSide=!1,r.asyncQueue="congestionAsync"===e.taskQueue,r.taskQueue="immediate"!==e.taskQueue,YF(e,r),r.devTools=!1,r},ZF=async(e,t,r)=>{if(!e.buildDist)return;const n=e.outputTargets.filter(Cu);if(0===n.length)return;const i="generate custom elements",a=r.createTimeSpan(`${i} started`);await Promise.all(n.map((n=>eP(e,t,r,n)))),a.finish(`${i} finished`)},eP=async(e,t,r,n)=>{try{const i=((e,t,r,n)=>({id:"customElements",platform:"client",conditionals:QF(e,t.components),customTransformers:nP(e,r,t.components,n),externalRuntime:!!n.externalRuntime,inlineWorkers:!0,inputs:{index:"\0core"},loader:{"\0core":rP(n)},inlineDynamicImports:n.inlineDynamicImports,preserveEntrySignatures:"allow-extension"}))(e,r,t,n);tP(r,i);const a=await qw(e,t,r,i);if(a){const i=await a.generate({banner:Ie(e),format:"esm",sourcemap:e.sourceMap,chunkFileNames:n.externalRuntime||!e.hashFileNames?"[name].js":"p-[hash].js",entryFileNames:"[name].js",hoistTransitiveImports:!1,preferConst:!0}),o=n.dir;if(!G(o))return r.diagnostics.push({level:"error",type:"build",messageText:"dist-custom-elements output target provided with no output target directory!"}),void 0;const s=!n.externalRuntime&&!0===n.minify&&e.minifyJs,c=i.output.map((async i=>{if("chunk"===i.type){let a=i.code,c=Ne(i.map);const l=await Ll(e,t,{input:a,isCore:i.isEntry,minify:s,sourceMap:c});r.diagnostics.push(...l.diagnostics),ne(l.diagnostics)||"string"!=typeof l.output||(a=l.output),l.sourceMap&&(c=l.sourceMap,a+=we(i.fileName),await t.fs.writeFile(Ge(o,i.fileName+".map"),JSON.stringify(c),{outputTargetType:n.type})),await t.fs.writeFile(Ge(o,i.fileName),a,{outputTargetType:n.type})}}));await Promise.all(c)}}catch(e){re(r.diagnostics,e)}},tP=(e,t)=>{const r=e.components,n=[];r.forEach((e=>{const r=[],i=R(e.tagName),a=e.componentClassName,o=`$Cmp${i}`,s=`\0${i}`;e.isPlain?(r.push(`export { ${a} as ${i} } from '${e.sourceFilePath}';`),n.push(`export { {${i} } from '${s}';`)):(r.push(`import { ${a} as ${o}, defineCustomElement as cmpDefCustomEle } from '${e.sourceFilePath}';`),r.push(`export const ${i} = ${o};`),r.push("export const defineCustomElement = cmpDefCustomEle;"),n.push(`export { ${i}, defineCustomElement as defineCustomElement${i} } from '${s}';`)),t.inputs[e.tagName]=s,t.loader[s]=r.join("\n")})),t.loader["\0core"]+=n.join("\n")},rP=e=>{const t=[];return t.push("export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';","export * from '@user-index-entrypoint';"),!1!==e.includeGlobalScripts&&t.push(`import { globalScripts } from '${ON}';`,"globalScripts();"),t.join("\n")+"\n"},nP=(e,t,r,n)=>{const i={coreImportPath:RN,componentExport:null,componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[Qw(t,r,n),GF(i.coreImportPath),JF(t,i),vF(t,i),FN(t)]},iP=async(e,t,r)=>{if(!e.buildDist)return;const n=e.outputTargets.filter(Au);if(0===n.length)return;const i="generate custom elements bundle"+(e.sourceMap?" + source maps":""),a=r.createTimeSpan(`${i} started`);await Promise.all(n.map((n=>aP(e,t,r,n)))),a.finish(`${i} finished`)},aP=async(e,t,r,n)=>{try{const i={id:"customElementsBundle",platform:"client",conditionals:QF(e,r.components),customTransformers:sP(e,t),externalRuntime:!!n.externalRuntime,inlineWorkers:!0,inputs:{index:"\0core"},loader:{"\0core":oP(n,r)},inlineDynamicImports:n.inlineDynamicImports,preserveEntrySignatures:"allow-extension"},a=await qw(e,t,r,i);if(a){const i=await a.generate({banner:Ie(e),format:"esm",sourcemap:e.sourceMap,chunkFileNames:n.externalRuntime||!e.hashFileNames?"[name].js":"p-[hash].js",entryFileNames:"[name].js",hoistTransitiveImports:!1,preferConst:!0}),o=!n.externalRuntime&&!0===n.minify&&e.minifyJs,s=i.output.map((async i=>{if("chunk"===i.type){let a=i.code,s=Ne(i.map);const c=await Ll(e,t,{input:a,isCore:i.isEntry,minify:o,sourceMap:s});r.diagnostics.push(...c.diagnostics),ne(c.diagnostics)||"string"!=typeof c.output||(a=c.output,s=c.sourceMap),s&&(a+=we(i.fileName),await t.fs.writeFile(Ge(n.dir,i.fileName+".map"),JSON.stringify(s),{outputTargetType:n.type})),await t.fs.writeFile(Ge(n.dir,i.fileName),a,{outputTargetType:n.type})}}));await Promise.all(s)}}catch(e){re(r.diagnostics,e)}},oP=(e,t)=>{const r=[],n=[],i=[];return r.push("import { proxyCustomElement } from '@stencil/core/internal/client';","export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';","export * from '@user-index-entrypoint';"),!1!==e.includeGlobalScripts&&r.push(`import { globalScripts } from '${ON}';`,"globalScripts();"),t.components.forEach((e=>{const t=R(e.tagName),a=e.componentClassName,o=`$Cmp${t}`;if(e.isPlain)n.push(`export { ${a} as ${t} } from '${e.sourceFilePath}';`);else{const i=S(D(e,!1));r.push(`import { ${a} as ${o} } from '${e.sourceFilePath}';`),n.push(`export const ${t} = /*@__PURE__*/proxyCustomElement(${o}, ${i});`)}i.push(t)})),n.push("export const defineCustomElements = (opts) => {"),n.push(" if (typeof customElements !== 'undefined') {"),n.push(" ["),n.push(` ${i.join(",\n ")}`),n.push(" ].forEach(cmp => {"),n.push(" if (!customElements.get(cmp.is)) {"),n.push(" customElements.define(cmp.is, cmp, opts);"),n.push(" }"),n.push(" });"),n.push(" }"),n.push("};"),[...r,...n].join("\n")+"\n"},sP=(e,t)=>{const r={coreImportPath:RN,componentExport:null,componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[GF(r.coreImportPath),JF(t,r),FN(t)]},cP=(e,t,r)=>{const n=[p.factory.createParameterDeclaration(void 0,void 0,p.factory.createIdentifier(dP))],i=e.findIndex((e=>e.kind===p.SyntaxKind.Constructor));if(i>=0){const a=e[i],o=p.factory.updateBlock(a.body,[lP(t),...MF(t,r),...a.body.statements,...LF(t,r)]);e[i]=p.factory.updateConstructorDeclaration(a,Pm(a),n,o)}else{const i=p.factory.createConstructorDeclaration(void 0,n,p.factory.createBlock([lP(t),...MF(t,r),...LF(t,r)],!0));e.unshift(i)}},lP=e=>(_F(e,pF.registerInstance),p.factory.createExpressionStatement(p.factory.createCallExpression(p.factory.createIdentifier(dF),void 0,[p.factory.createThis(),p.factory.createIdentifier(dP)]))),dP="hostRef",uP=(e,t,r)=>{r.elementRef&&(_F(t,pF.getElement),e.push(p.factory.createGetAccessorDeclaration(void 0,r.elementRef,[],void 0,p.factory.createBlock([p.factory.createReturnStatement(p.factory.createCallExpression(p.factory.createIdentifier(oF),void 0,[p.factory.createThis()]))]))))},pP=(e,t)=>Array.isArray(e.styles)&&e.styles.length>0?e.styles.length>1||1===e.styles.length&&e.styles[0].modeName!==E?_P(e,e.styles,t):fP(e,e.styles[0],t):null,_P=(e,t,r)=>{const n=[];return t.forEach((t=>{if("string"==typeof t.styleStr){const i=mP(e,t,r),a=p.factory.createPropertyAssignment(t.modeName,i);n.push(a)}else if("string"==typeof t.styleIdentifier){const e=p.factory.createIdentifier(t.styleIdentifier),r=p.factory.createPropertyAssignment(t.modeName,e);n.push(r)}else if(Array.isArray(t.externalStyles)&&t.externalStyles.length>0){const r=gP(e,t),i=p.factory.createPropertyAssignment(t.modeName,r);n.push(i)}})),p.factory.createObjectLiteralExpression(n,!0)},fP=(e,t,r)=>"string"==typeof t.styleStr?mP(e,t,r):"string"==typeof t.styleIdentifier?p.factory.createIdentifier(t.styleIdentifier):Array.isArray(t.externalStyles)&&t.externalStyles.length>0?gP(e,t):null,mP=(e,t,r)=>{if("scoped"===e.encapsulation||r&&"shadow"===e.encapsulation){const n=td(e.tagName,t.modeName);return p.factory.createStringLiteral(ru(t.styleStr,n,r))}return p.factory.createStringLiteral(t.styleStr)},gP=(e,t)=>(t.styleIdentifier=R(e.tagName),t.styleIdentifier=t.styleIdentifier.charAt(0).toLowerCase()+t.styleIdentifier.substring(1),t.modeName!==E&&(t.styleIdentifier+=R(t.modeName)),t.styleIdentifier+="Style",t.externalStyles=[t.externalStyles[0]],p.factory.createIdentifier(t.styleIdentifier)),hP=e=>"-",yP=e=>e.properties.reduce(((e,t)=>(t.reflect&&e.push([t.name,t.attribute]),e)),[]),vP=(e,t,r)=>{const n=wF(e);return cP(n,t,r),uP(n,t,r),OF(n,r),((e,t)=>{const r=D(t,!0),n={$flags$:r[0],$tagName$:r[1],$members$:r[2],$listeners$:r[3],$lazyBundleId$:hP(),$attrsToReflect$:yP(t)};1&n.$flags$&&(n.$flags$|=8);const i=sm("cmpMeta",im(n));((e,t,r)=>{const n=pP(t,r);n&&e.push(sm("style",n))})(e,t,"shadow"===t.encapsulation),e.push(i)})(n,r),AF(n,t),n},bP=(e,t)=>r=>n=>{const i=Em(e,n),a=t=>{if(p.isClassDeclaration(t)){const r=xm(e,n,t);if(null!=r)return((e,t,r)=>p.factory.updateClassDeclaration(e,wm(e),e.name,e.typeParameters,e.heritageClauses,vP(e,t,r)))(t,i,r)}return p.visitEachChild(t,a,r)};return n=p.visitEachChild(n,a,r),i.cmps.length>0&&(n=bF(t,n,i)),i.isLegacy&&fF(i),n=yF(t,n,i.coreRuntimeApis,t.coreImportPath)},EP=e=>{const t=qF(e);return t.slotRelocation=!0,t.lazyLoad=!0,t.hydrateServerSide=!0,t.cssVarShim=!1,t.hydrateClientSide=!0,t.isDebug=!1,t.isDev=!1,t.isTesting=!1,t.devTools=!1,t.lifecycleDOMEvents=!1,t.profile=!1,t.hotModuleReplacement=!1,t.updatable=!0,t.member=!0,t.constructableCSS=!1,t.asyncLoading=!0,t.appendChildSlotFix=!1,t.slotChildNodesFix=!1,t.cloneNodeFix=!1,t.cssAnnotations=!0,t.shadowDomShim=!0,t.safari10=!1,t.hydratedAttribute=!1,t.hydratedClass=!0,t.scriptDataOpts=!1,t.dynamicImportShim=!1,t.attachStyles=!0,t},xP=(e,t)=>{const r={coreImportPath:UN,componentExport:null,componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[GF(r.coreImportPath),bP(t,r),FN(t)]},DP="/*hydrateAppClosure start*/",SP=async e=>{const t={filePath:e.sourceFilePath,exportLine:"",cmp:e,uniqueComponentClassName:"",importLine:""},r=R(L(e.tagName));return e.componentClassName!==r?(t.uniqueComponentClassName=r,t.importLine=`import { ${e.componentClassName} as ${t.uniqueComponentClassName} } from '${t.filePath}';`):(t.uniqueComponentClassName=e.componentClassName,t.importLine=`import { ${t.uniqueComponentClassName} } from '${t.filePath}';`),t},TP=(e,t,r,n)=>{const i={name:n,description:`${e.namespace} component hydration app.`,main:He(t),types:He(r)};return JSON.stringify(i,null,2)},CP=async(e,t)=>{try{const r=Ge(e.rootDir,"package.json"),n=await t.fs.readFile(r);return`${JSON.parse(n).name}/hydrate`}catch(e){}return`${e.fsNamespace}/hydrate`},AP=async(e,t,r)=>{const n=Ge(e.sys.getCompilerExecutingPath(),"..",".."),i=Ge(n,"internal","hydrate","runner.d.ts"),a=Ge(r,"index.d.ts");await t.fs.copyFile(i,a)},kP=async(e,t,r,n)=>{try{const i=Ge(e.sys.getCompilerExecutingPath(),"..",".."),a=Ge(i,"internal","hydrate","runner.js"),o=Ge(i,"mock-doc","index.js"),s={...e.rollupConfig.inputOptions,input:a,inlineDynamicImports:!0,plugins:[{name:"hydrateAppPlugin",resolveId(e){return e===MN?e:"@stencil/core/mock-doc"===e?o:null},load(n){return n===MN?NP(e,t,r):null}}],treeshake:!1,onwarn:ue(r.diagnostics)},c=await DN(s),l=await c.generate({banner:Ie(e),format:"cjs",file:"index.js"});await((e,t,r,n,i)=>Promise.all(n.map((n=>(async(e,t,r,n,i)=>{const a=await CP(e,t),o=n.dir,s=Ge(o,"index.js"),c=Ge(o,"index.d.ts"),l=Ge(o,"package.json"),d=TP(e,s,c,a);await Promise.all([AP(e,t,o),t.fs.writeFile(l,d)]),r.hydrateAppFilePath=s,await Promise.all(i.output.map((async r=>{if("chunk"===r.type){r.code=((e,t,r)=>{if(WN(e,t).length>0){const e=r.indexOf("/*hydrate context start*/");if(e>-1){const t=r.indexOf("/*hydrate context end*/")+"/*hydrate context end*/".length,n=r.substring(e,t);return(r=r.replace(n,"")).replace(DP,DP+"\n "+n)}}return r})(e,t,r.code);const n=Ge(o,r.fileName);await t.fs.writeFile(n,r.code,{immediateWrite:!0})}})))})(e,t,r,n,i)))))(e,t,r,n,l)}catch(n){r.hasError||de(e,t,r,n)}},NP=async(e,t,r)=>{if(!r.hasError)try{const n=r.components,i=(FP(e,n),await wP(r)),a=await(async(e,t,r,n,i)=>{try{const n={id:"hydrate",platform:"hydrate",conditionals:EP(r.components),customTransformers:xP(e,t),inlineDynamicImports:!0,inputs:{"@app-factory-entry":"@app-factory-entry"},loader:{"@app-factory-entry":i}};return await qw(e,t,r,n)}catch(n){r.hasError||de(e,t,r,n)}})(e,t,r,0,i);if(null!=a){const e=await a.generate({format:"cjs",esModule:!1,strict:!1,intro:"\nexport function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {\n var globalThis = $stencilWindow;\n var self = $stencilWindow;\n var top = $stencilWindow;\n var parent = $stencilWindow;\n\n var addEventListener = $stencilWindow.addEventListener.bind($stencilWindow);\n var alert = $stencilWindow.alert.bind($stencilWindow);\n var blur = $stencilWindow.blur.bind($stencilWindow);\n var cancelAnimationFrame = $stencilWindow.cancelAnimationFrame.bind($stencilWindow);\n var cancelIdleCallback = $stencilWindow.cancelIdleCallback.bind($stencilWindow);\n var clearInterval = $stencilWindow.clearInterval.bind($stencilWindow);\n var clearTimeout = $stencilWindow.clearTimeout.bind($stencilWindow);\n var close = () => {};\n var confirm = $stencilWindow.confirm.bind($stencilWindow);\n var dispatchEvent = $stencilWindow.dispatchEvent.bind($stencilWindow);\n var focus = $stencilWindow.focus.bind($stencilWindow);\n var getComputedStyle = $stencilWindow.getComputedStyle.bind($stencilWindow);\n var matchMedia = $stencilWindow.matchMedia.bind($stencilWindow);\n var open = $stencilWindow.open.bind($stencilWindow);\n var prompt = $stencilWindow.prompt.bind($stencilWindow);\n var removeEventListener = $stencilWindow.removeEventListener.bind($stencilWindow);\n var requestAnimationFrame = $stencilWindow.requestAnimationFrame.bind($stencilWindow);\n var requestIdleCallback = $stencilWindow.requestIdleCallback.bind($stencilWindow);\n var setInterval = $stencilWindow.setInterval.bind($stencilWindow);\n var setTimeout = $stencilWindow.setTimeout.bind($stencilWindow);\n\n var CharacterData = $stencilWindow.CharacterData;\n var CSS = $stencilWindow.CSS;\n var CustomEvent = $stencilWindow.CustomEvent;\n var Document = $stencilWindow.Document;\n var DocumentFragment = $stencilWindow.DocumentFragment;\n var DocumentType = $stencilWindow.DocumentType;\n var DOMTokenList = $stencilWindow.DOMTokenList;\n var Element = $stencilWindow.Element;\n var Event = $stencilWindow.Event;\n var HTMLAnchorElement = $stencilWindow.HTMLAnchorElement;\n var HTMLBaseElement = $stencilWindow.HTMLBaseElement;\n var HTMLButtonElement = $stencilWindow.HTMLButtonElement;\n var HTMLCanvasElement = $stencilWindow.HTMLCanvasElement;\n var HTMLElement = $stencilWindow.HTMLElement;\n var HTMLFormElement = $stencilWindow.HTMLFormElement;\n var HTMLImageElement = $stencilWindow.HTMLImageElement;\n var HTMLInputElement = $stencilWindow.HTMLInputElement;\n var HTMLLinkElement = $stencilWindow.HTMLLinkElement;\n var HTMLMetaElement = $stencilWindow.HTMLMetaElement;\n var HTMLScriptElement = $stencilWindow.HTMLScriptElement;\n var HTMLStyleElement = $stencilWindow.HTMLStyleElement;\n var HTMLTemplateElement = $stencilWindow.HTMLTemplateElement;\n var HTMLTitleElement = $stencilWindow.HTMLTitleElement;\n var IntersectionObserver = $stencilWindow.IntersectionObserver;\n var KeyboardEvent = $stencilWindow.KeyboardEvent;\n var MouseEvent = $stencilWindow.MouseEvent;\n var Node = $stencilWindow.Node;\n var NodeList = $stencilWindow.NodeList;\n var URL = $stencilWindow.URL;\n\n var console = $stencilWindow.console;\n var customElements = $stencilWindow.customElements;\n var history = $stencilWindow.history;\n var localStorage = $stencilWindow.localStorage;\n var location = $stencilWindow.location;\n var navigator = $stencilWindow.navigator;\n var performance = $stencilWindow.performance;\n var sessionStorage = $stencilWindow.sessionStorage;\n\n var devicePixelRatio = $stencilWindow.devicePixelRatio;\n var innerHeight = $stencilWindow.innerHeight;\n var innerWidth = $stencilWindow.innerWidth;\n var origin = $stencilWindow.origin;\n var pageXOffset = $stencilWindow.pageXOffset;\n var pageYOffset = $stencilWindow.pageYOffset;\n var screen = $stencilWindow.screen;\n var screenLeft = $stencilWindow.screenLeft;\n var screenTop = $stencilWindow.screenTop;\n var screenX = $stencilWindow.screenX;\n var screenY = $stencilWindow.screenY;\n var scrollX = $stencilWindow.scrollX;\n var scrollY = $stencilWindow.scrollY;\n var exports = {};\n\n var fetch, FetchError, Headers, Request, Response;\n\n if (typeof $stencilWindow.fetch === 'function') {\n fetch = $stencilWindow.fetch;\n } else {\n fetch = $stencilWindow.fetch = function() { throw new Error('fetch() is not implemented'); };\n }\n\n if (typeof $stencilWindow.FetchError === 'function') {\n FetchError = $stencilWindow.FetchError;\n } else {\n FetchError = $stencilWindow.FetchError = class FetchError { constructor() { throw new Error('FetchError is not implemented'); } };\n }\n\n if (typeof $stencilWindow.Headers === 'function') {\n Headers = $stencilWindow.Headers;\n } else {\n Headers = $stencilWindow.Headers = class Headers { constructor() { throw new Error('Headers is not implemented'); } };\n }\n\n if (typeof $stencilWindow.Request === 'function') {\n Request = $stencilWindow.Request;\n } else {\n Request = $stencilWindow.Request = class Request { constructor() { throw new Error('Request is not implemented'); } };\n }\n\n if (typeof $stencilWindow.Response === 'function') {\n Response = $stencilWindow.Response;\n } else {\n Response = $stencilWindow.Response = class Response { constructor() { throw new Error('Response is not implemented'); } };\n }\n\n function hydrateAppClosure($stencilWindow) {\n const window = $stencilWindow;\n const document = $stencilWindow.document;\n /*hydrateAppClosure start*/\n",outro:"\n /*hydrateAppClosure end*/\n hydrateApp(window, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve);\n }\n\n hydrateAppClosure($stencilWindow);\n}\n",preferConst:!1});if(!r.hasError&&null!=e&&Array.isArray(e.output))return e.output[0].code}}catch(e){re(r.diagnostics,e)}return""},wP=async e=>{const t=e.components,r=await(async e=>{const t=await Promise.all(e.map(SP));return U(t,(e=>e.cmp.componentClassName))})(t),n=new wd("");return n.append("import { hydrateApp, registerComponents, styles } from '@stencil/core/internal/hydrate';\n"),r.forEach((e=>n.append(e.importLine+"\n"))),n.append("registerComponents([\n"),r.forEach((e=>{n.append(` ${e.uniqueComponentClassName},\n`)})),n.append("]);\n"),n.append("export { hydrateApp }\n"),n.toString()},FP=(e,t)=>{const r=qF(t);return r.lazyLoad=!0,r.hydrateClientSide=!1,r.hydrateServerSide=!0,YF(e,r),r.lifecycleDOMEvents=!1,r.devTools=!1,r.hotModuleReplacement=!1,r.cloneNodeFix=!1,r.appendChildSlotFix=!1,r.slotChildNodesFix=!1,r.safari10=!1,r.shadowDomShim=!1,r},PP=async(e,t,r)=>{const n=e.outputTargets.filter(Iu);if(n.length>0){const i=r.createTimeSpan("generate hydrate app started");await kP(e,t,r,n),i.finish("generate hydrate app finished")}},IP=(e,t)=>{const r=new Set(t.map((e=>e.tagName.toUpperCase()))),n=[],i=e=>{r.has(e.tagName)&&n.push(e.tagName.toLowerCase());for(let t=0;t<e.childElementCount;t++)i(e.children[t])};return i(e.documentElement),n};function OP(e,t){const r=U(t.components,(e=>e.dependents.length)),n=function(e,t,r){const n=((e,t,r)=>{const n=new Set;return e.bundles.map((e=>e.components.map((e=>{const i=Be(e);if(i){const e=Z(t.diagnostics);e.header="Stencil Config",e.messageText=i}const a=r.find((t=>t.tagName===e));if(!a){const r=ee(t.diagnostics);r.header="Stencil Config",r.messageText=`Component tag "${e}" is defined in a bundle but no matching component was found within this app or its collections.`}if(n.has(e)){const r=ee(t.diagnostics);r.header="Stencil Config",r.messageText=`Component tag "${e}" has been defined multiple times in the "bundles" config.`}return n.add(e),a})).sort()))})(e,t,r);if(n.length>0)return n;let i=e.entryComponentsHint;if(!i&&t.indexDoc&&(i=IP(t.indexDoc,r)),!i)return[];function a(e){return r.find((t=>t.tagName===e))}return[V([...i,...j(i.map(a).map((e=>e.dependencies)))]).map(a)]}(e,t,r),i=((e,t,r)=>{if(!e.excludeUnusedDependencies)return new Set(r.map((e=>e.tagName)));const n=new Set;return t.forEach((e=>{e.forEach((e=>n.add(e.tagName)))})),r.forEach((e=>{e.isCollectionDependency||n.add(e.tagName)})),r.forEach((e=>{e.isCollectionDependency&&e.dependents.some((e=>n.has(e)))&&n.add(e.tagName)})),n})(e,n,r);if(e.devMode)return r.filter((e=>i.has(e.tagName))).map((e=>[e]));const a=new Set;n.forEach((e=>{e.forEach((e=>a.add(e)))}));const o=r.filter((e=>i.has(e.tagName)&&!a.has(e))).map((e=>[e]));return[...n,...MP(o,.6)].filter((e=>e.length>0))}function MP(e,t){const r=new Map;e.forEach(((e,t)=>{e.forEach((e=>{r.set(e.tagName,t)}))}));const n=e.map((t=>{const n=new Uint8Array(e.length);return t.forEach((e=>{e.dependents.forEach((e=>{const t=r.get(e);void 0!==t&&(n[t]=1)}))})),t.forEach((e=>{const t=r.get(e.tagName);void 0!==t&&(n[t]=0)})),n})),i=[],a=new Uint8Array(e.length);for(let r=0;r<n.length;r++)if(0===a[r]){const o=[...e[r]];a[r]=1;for(let i=r+1;i<n.length;i++)0===a[i]&&RP(n[r],n[i])>=t&&(o.push(...e[i]),a[i]=1);i.push(o)}return i}function RP(e,t){let r=0,n=0;for(let i=0;i<e.length;i++)1!==e[i]&&1!==t[i]||(r++,e[i]===t[i]&&n++);return n/r}const LP=(e,t)=>r=>n=>{const i=[],a=Em(e,n),o=s=>{if(p.isClassDeclaration(s)){const r=xm(e,n,s);if(null!=r)return((e,t,r,n,i)=>{const a=((e,t,r,n,i)=>{const a=wF(r);return cP(a,n,i),uP(a,n,i),OF(a,i),AF(a,n),"static"===e.style&&((e,t)=>{const r=pP(t,!1);if(r){const n=p.factory.createExpressionStatement(p.factory.createAssignment(p.factory.createPropertyAccessExpression(p.factory.createIdentifier(t.componentClassName),"style"),r));e.push(n)}})(t,i),a})(e,t,r,n,i);return PF(e,r,r.heritageClauses,a)})(t,i,s,a,r)}return p.visitEachChild(s,o,r)};return n=p.visitEachChild(n,o,r),a.cmps.length>0&&(n=bF(t,n,a)),a.isLegacy&&fF(a),n=yF(t,n,a.coreRuntimeApis,t.coreImportPath),i.length>0&&(n=p.factory.updateSourceFile(n,[...n.statements,...i])),n},BP=async(e,t,r,n)=>{if(null==e)return null;const{output:i}=await e.generate(t);return i.map((e=>{if("chunk"===e.type){const i=Object.keys(e.modules).some((e=>e.includes(PN)));return{type:"chunk",fileName:e.fileName,map:e.map,code:e.code,moduleFormat:t.format,entryKey:e.name,imports:e.imports,isEntry:!!e.isEntry,isComponent:!!e.isEntry&&n.some((t=>t.entryKey===e.name)),isBrowserLoader:e.isEntry&&e.name===r.fsNamespace,isIndex:e.isEntry&&"index"===e.name,isCore:i}}return{type:"asset",fileName:e.fileName,content:e.source}}))},UP=async(e,t,r,n,i,a,o,s,c)=>{var l;if(!Array.isArray(i)||0===i.length)return[];const d=e.minifyJs&&s,u=a.filter((e=>"chunk"===e.type)),p=u.filter((e=>e.isComponent)),_=u.filter((e=>!e.isComponent&&!e.isEntry)),f=await Promise.all(p.map((a=>KP(e,t,r,a,n,i,o,d,s,c))));(null===(l=e.extras)||void 0===l?void 0:l.experimentalImportInjection)&&!s&&jP(u,f),await Promise.all(_.map((a=>JP(e,t,r,a,n,i,o,d,s))));const m=$P(f),g=u.filter((e=>!e.isComponent&&e.isEntry));return await Promise.all(g.map((a=>GP(e,t,r,a,n,i,m,o,d,s)))),await Promise.all(a.filter((e=>"asset"===e.type)).map((e=>Promise.all(i.map((r=>t.fs.writeFile(Ge(r,e.fileName),e.content))))))),f},jP=(e,t)=>{e.filter(VP).forEach((e=>{const r=zP(e)?WP:HP;e.code=e.code.replace("/*!__STENCIL_STATIC_IMPORT_SWITCH__*/",`\n if (!hmrVersionId || !BUILD.hotModuleReplacement) {\n const processMod = importedModule => {\n cmpModules.set(bundleId, importedModule);\n return importedModule[exportName];\n }\n switch(bundleId) {\n ${t.map((e=>r(e.output.bundleId))).join("")}\n }\n }`)}))},VP=e=>e.isCore&&"index"===e.entryKey&&("es"===e.moduleFormat||"esm"===e.moduleFormat||zP(e)),zP=e=>"cjs"===e.moduleFormat||"commonjs"===e.moduleFormat,HP=e=>`\n case '${e}':\n return import(\n /* webpackMode: "lazy" */\n './${e}.entry.js').then(processMod, consoleError);`,WP=e=>`\n case '${e}':\n return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(\n /* webpackMode: "lazy" */\n './${e}.entry.js')); }).then(processMod, consoleError);`,KP=async(e,t,r,n,i,a,o,s,c,l)=>{const d=r.entryModules.find((e=>e.entryKey===n.entryKey)),u=e.hashFileNames&&c,{code:p,sourceMap:_}=await QP(e,t,r,o,s,!1,c,n.code,n.map),f=await(async(e,t,r,n,i,a,o,s,c)=>{const l=await(async(e,t,r,n,i)=>{if(r)return`p-${await e.sys.generateContentHash(n,e.hashedFileNameLength)}${i}`;const a=t.split(".");let o=a[0];return a.length>2&&(o=`${o}_${a.length-1}`),o+i})(e,i.entryKey,a,o,c),d=`${l}.entry.js`;return s&&(o+=we(d)),await Promise.all(n.map((e=>{t.fs.writeFile(Ge(e,d),o,{outputTargetType:r}),s&&t.fs.writeFile(Ge(e,d)+".map",JSON.stringify(s),{outputTargetType:r})}))),{bundleId:l,fileName:d,code:o}})(e,t,i,a,d,u,p,_,l);return{rollupResult:n,entryKey:n.entryKey,cmps:d.cmps,output:f}},JP=async(e,t,r,n,i,a,o,s,c)=>{const{code:l,sourceMap:d}=await QP(e,t,r,o,s,n.isCore,c,n.code,n.map);await Promise.all(a.map((e=>{const r=Ge(e,n.fileName);let a=l;n.map&&(a=l+we(n.fileName),t.fs.writeFile(r+".map",JSON.stringify(d),{outputTargetType:i})),t.fs.writeFile(r,a,{outputTargetType:i})})))},GP=async(e,t,r,n,i,a,o,s,c,l)=>{if(l&&["loader"].includes(n.entryKey))return;const d=n.code.replace("[/*!__STENCIL_LAZY_DATA__*/]",`${o}`),{code:u,sourceMap:p}=await QP(e,t,r,s,c,!1,l,d,n.map);await Promise.all(a.map((e=>{const r=Ge(e,n.fileName);let a=u;return p&&(a=u+we(n.fileName),t.fs.writeFile(r+".map",JSON.stringify(p),{outputTargetType:i})),t.fs.writeFile(r,a,{outputTargetType:i})})))},$P=e=>{const t=e.slice().sort(XP).map(qP);return S(t)},qP=e=>[e.output.bundleId,e.cmps.slice().sort(YP).map((e=>D(e,!0)))],XP=(e,t)=>{const r=e.cmps.reduce(((e,t)=>(e.push(...t.dependents),e)),[]),n=t.cmps.reduce(((e,t)=>(e.push(...t.dependents),e)),[]);if(e.cmps.some((e=>n.includes(e.tagName))))return 1;if(t.cmps.some((e=>r.includes(e.tagName))))return-1;const i=e.cmps.reduce(((e,t)=>(e.push(...t.dependencies),e)),[]),a=t.cmps.reduce(((e,t)=>(e.push(...t.dependencies),e)),[]);if(e.cmps.some((e=>a.includes(e.tagName))))return-1;if(t.cmps.some((e=>i.includes(e.tagName))))return 1;if(r.length<n.length)return-1;if(r.length>n.length)return 1;if(i.length>a.length)return-1;if(i.length<a.length)return 1;const o=e.cmps.map((e=>e.tagName)),s=t.cmps.map((e=>e.tagName));if(o.length>s.length)return-1;if(o.length<s.length)return 1;const c=o.sort().join("."),l=s.sort().join(".");return c<l?-1:c>l?1:0},YP=(e,t)=>e.directDependents.includes(t.tagName)?1:t.directDependents.includes(e.tagName)?-1:e.directDependencies.includes(t.tagName)?1:t.directDependencies.includes(e.tagName)?-1:e.dependents.includes(t.tagName)?1:t.dependents.includes(e.tagName)?-1:e.dependencies.includes(t.tagName)?1:t.dependencies.includes(e.tagName)||e.dependents.length<t.dependents.length?-1:e.dependents.length>t.dependents.length?1:e.dependencies.length>t.dependencies.length?-1:e.dependencies.length<t.dependencies.length?1:e.tagName<t.tagName?-1:e.tagName>t.tagName?1:0,QP=async(e,t,r,n,i,a,o,s,c)=>{let l=Ne(c);const d=o||!((e,t)=>(e=>null!=e.packageJson&&null!=e.packageJson.dependencies?Object.keys(e.packageJson.dependencies).filter((e=>!Le.includes(e))):[])(e).includes(t))(r,"tslib"),u=await Ll(e,t,{input:s,sourceMap:l,isCore:a,sourceTarget:n,inlineHelpers:d,minify:i});return r.diagnostics.push(...u.diagnostics),"string"==typeof u.output&&(s=u.output,l=u.sourceMap),{code:s,sourceMap:l}},ZP=async(e,t,r,n,i)=>{const a=i.filter((e=>!!e.cjsDir));if(a.length>0){const i=a[0].type,o={banner:Ie(e),format:"cjs",entryFileNames:"[name].cjs.js",assetFileNames:"[name]-[hash][extname]",preferConst:!0,sourcemap:e.sourceMap},s=await BP(n,o,e,r.entryModules);if(null!=s){const n=a.map((e=>e.cjsDir));r.commonJsComponentBundle=await UP(e,t,r,i,n,s,"es2017",!1,".cjs"),await eI(t,s,a)}}return{name:"cjs",buildCtx:r}},eI=(e,t,r)=>{const n=t.find((e=>"chunk"===e.type&&e.isIndex)).fileName;return Promise.all(r.map((async t=>{if(t.cjsIndexFile){const r=Ge(t.cjsDir,n),i=`module.exports = require('${xu(t.cjsIndexFile,r)}');\n`;await e.fs.writeFile(t.cjsIndexFile,i,{outputTargetType:t.type})}})))},tI=async(e,t,r,n,i)=>{const a=e.buildEs5?i.filter((e=>!!e.esmEs5Dir&&!e.isBrowserBuild)):[],o=i.filter((e=>!!e.esmDir&&!e.isBrowserBuild));if(o.length+a.length>0){const s={banner:Ie(e),format:"es",entryFileNames:"[name].js",assetFileNames:"[name]-[hash][extname]",preferConst:!0,sourcemap:e.sourceMap},c=o[0].type,l=await BP(n,s,e,r.entryModules);if(null!=l){const n=o.map((e=>e.esmDir));r.esmComponentBundle=await UP(e,t,r,c,n,l,"es2017",!1,"");const s=a.map((e=>e.esmEs5Dir));r.es5ComponentBundle=await UP(e,t,r,c,s,l,"es5",!1,""),await rI(e,t,o),await nI(e,t,i,l)}}return{name:"esm",buildCtx:r}},rI=async(e,t,r)=>{const n=r.filter((e=>e.polyfills)).map((e=>e.esmDir));if(0===n.length)return;const i=Ge(e.sys.getCompilerExecutingPath(),"..","..","internal","client","polyfills"),a=await t.fs.readdir(i);await Promise.all(n.map((e=>Promise.all(a.map((r=>t.fs.copyFile(r.absPath,Ge(e,"polyfills",r.relPath))))))))},nI=(e,t,r,n)=>{const i=n.find((e=>"chunk"===e.type&&e.isIndex)).fileName;return Promise.all(r.map((async r=>{if(r.esmDir&&r.esmIndexFile){const n=e.buildEs5&&r.esmEs5Dir?Ge(r.esmEs5Dir,i):Ge(r.esmDir,i),a=`export * from '${xu(r.esmIndexFile,n)}';`;await t.fs.writeFile(r.esmIndexFile,a,{outputTargetType:r.type})}})))},iI=async(e,t,r,n,i)=>{const a=i.filter((e=>!!e.esmDir&&!!e.isBrowserBuild));if(a.length){const i=a[0].type,o={banner:Ie(e),format:"es",entryFileNames:"[name].esm.js",chunkFileNames:e.hashFileNames?"p-[hash].js":"[name]-[hash].js",assetFileNames:e.hashFileNames?"p-[hash][extname]":"[name]-[hash][extname]",preferConst:!0,sourcemap:e.sourceMap};e.extras.dynamicImportShim&&(o.dynamicImportFunction=`__sc_import_${e.fsNamespace.replace(/\s|-/g,"_")}`);const s=await BP(n,o,e,r.entryModules);if(null!=s){const n=a.map((e=>e.esmDir));r.esmBrowserComponentBundle=await UP(e,t,r,i,n,s,"es2017",!0,"")}}return{name:"esm-browser",buildCtx:r}},aI=async(e,t,r)=>{const n=Ge(e.sys.getCompilerExecutingPath(),"..","..","internal","client","polyfills",r);return t.fs.readFile(n)},oI=["core-js.js","dom.js","es5-html-element.js","system.js"],sI=async(e,t,r,n,i)=>{const a=i.filter((e=>!!e.systemDir));if(a.length>0){const o={banner:Ie(e),format:"system",entryFileNames:e.hashFileNames?"p-[hash].system.js":"[name].system.js",chunkFileNames:e.hashFileNames?"p-[hash].system.js":"[name]-[hash].system.js",assetFileNames:e.hashFileNames?"p-[hash][extname]":"[name]-[hash][extname]",preferConst:!0,sourcemap:e.sourceMap},s=await BP(n,o,e,r.entryModules);if(null!=s){const n=a.map((e=>e.esmDir));r.systemComponentBundle=await UP(e,t,r,i[0].type,n,s,"es5",!0,".system"),await cI(e,t,s,a)}}return{name:"system",buildCtx:r}},cI=(e,t,r,n)=>{const i=r.find((e=>"chunk"===e.type&&e.isBrowserLoader)).fileName;return Promise.all(n.map((r=>lI(e,t,i,r))))},lI=async(e,t,r,n)=>{if(n.systemLoaderFile){const i=Ge(n.systemDir,r),a=xu(n.systemLoaderFile,i),o=await dI(e,t,a,n.polyfills);await t.fs.writeFile(n.systemLoaderFile,o,{outputTargetType:n.type})}},dI=async(e,t,r,n)=>`\n'use strict';\n(function () {\n var currentScript = document.currentScript;\n\n // Safari 10 support type="module" but still download and executes the nomodule script\n if (!currentScript || !currentScript.hasAttribute('nomodule') || !('onbeforeload' in currentScript)) {\n\n ${n?await(async(e,t)=>{const r=oI.slice();return e.extras.cssVarsShim&&r.push("css-shim.js"),(await Promise.all(r.map((r=>aI(e,t,r))))).join("\n").trim()})(e,t):"/* polyfills excluded */"}\n\n // Figure out currentScript (for IE11, since it does not support currentScript)\n var regex = /\\/${e.fsNamespace}(\\.esm)?\\.js($|\\?|#)/;\n var scriptElm = currentScript || Array.from(document.querySelectorAll('script')).find(function(s) {\n return regex.test(s.src) || s.getAttribute('data-stencil-namespace') === "${e.fsNamespace}";\n });\n\n var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';\n var start = function() {\n // if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL\n var url = new URL('${r}', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));\n System.import(url.href);\n };\n\n if (window.__cssshim) {\n window.__cssshim.i().then(start);\n } else {\n start();\n }\n\n // Note: using .call(window) here because the self-executing function needs\n // to be scoped to the window object for the ES6Promise polyfill to work\n }\n}).call(window);\n`,uI=(e,t)=>{const r=qF(t);r.lazyLoad=!0,r.hydrateServerSide=!1,r.cssVarShim=e.extras.cssVarsShim,r.transformTagName=e.extras.tagNameTransform,r.asyncQueue="congestionAsync"===e.taskQueue,r.taskQueue="immediate"!==e.taskQueue,r.initializeNextTick=e.extras.initializeNextTick;const n=e.outputTargets.some(Iu);return r.hydrateClientSide=n,YF(e,r),r},pI=async(e,t,r)=>{const n=e.outputTargets.filter(Nu);if(0===n.length)return;const i="generate lazy"+(e.sourceMap?" + source maps":""),a=r.createTimeSpan(`${i} started`);try{const i={id:"lazy",platform:"client",conditionals:uI(e,r.components),customTransformers:_I(e,t),inlineWorkers:e.outputTargets.some(Su),inputs:{[e.fsNamespace]:jN,loader:VN,index:zN},loader:{[VN]:mI(!1),[jN]:mI(!0)}};!((e,t)=>{try{const r=OP(e,t);t.entryModules=r.map(fI)}catch(e){re(t.diagnostics,e)}t.debug(`generateEntryModules, ${t.entryModules.length} entryModules`)})(e,r),r.entryModules.forEach((e=>{i.inputs[e.entryKey]=e.entryKey}));const a=await qw(e,t,r,i);null!=a&&((await Promise.all([iI(e,t,r,a,n),tI(e,t,r,a,n),sI(e,t,r,a,n),ZP(e,t,r,a,n)])).forEach((e=>{"cjs"===e.name?r.commonJsComponentBundle=e.buildCtx.commonJsComponentBundle:"system"===e.name?r.systemComponentBundle=e.buildCtx.systemComponentBundle:"esm"===e.name?(r.esmComponentBundle=e.buildCtx.esmComponentBundle,r.es5ComponentBundle=e.buildCtx.es5ComponentBundle):"esm-browser"===e.name&&(r.esmBrowserComponentBundle=e.buildCtx.esmBrowserComponentBundle,r.buildResults=e.buildCtx.buildResults,r.components=e.buildCtx.components)})),null!=r.esmBrowserComponentBundle&&(r.componentGraph=((e,t)=>{const r=new Map;return e.forEach((e=>{const n=t.find((t=>t.cmps.includes(e)));n&&r.set(td(e.tagName),n.rollupResult.imports)})),r})(r.components,r.esmBrowserComponentBundle)))}catch(e){re(r.diagnostics,e)}a.finish(`${i} finished`)},_I=(e,t)=>{const r={coreImportPath:PN,componentExport:"lazy",componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[GF(r.coreImportPath),LP(t,r),FN(t)]};function fI(e){const t=(e=U(e,(e=>e.tagName))).map((e=>e.tagName)).join(".")+".entry";return{cmps:e,entryKey:t}}const mI=e=>{const t=new wd("");return t.append("import { bootstrapLazy } from '@stencil/core';\n"),e?(t.append("import { patchBrowser } from '@stencil/core/internal/client/patch-browser';\n"),t.append(`import { globalScripts } from '${ON}';\n`),t.append("patchBrowser().then(options => {\n"),t.append(" globalScripts();\n"),t.append(" return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n"),t.append("});\n")):(t.append("import { patchEsm } from '@stencil/core/internal/client/patch-esm';\n"),t.append(`import { globalScripts } from '${ON}';\n`),t.append("export const defineCustomElements = (win, options) => {\n"),t.append(" if (typeof window === 'undefined') return Promise.resolve();\n"),t.append(" return patchEsm().then(() => {\n"),t.append(" globalScripts();\n"),t.append(" return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n"),t.append(" });\n"),t.append("};\n")),t.toString()},gI=async(e,t,r)=>{if(!e.buildDist)return;const n=e.outputTargets.filter(wu);if(0===n.length)return;const i=r.createTimeSpan("generate angular proxies started",!0);await Promise.all(n.map((n=>hI(e,t,r,n)))),i.finish("generate angular proxies finished")},hI=(e,t,r,n)=>{const i=yI(n.excludeComponents,r.components);return Promise.all([vI(e,t,r,i,n),AI(t,i,n),kI(t,n)])},yI=(e=[],t)=>U(t,(e=>e.tagName)).filter((t=>!e.includes(t.tagName)&&!t.internal)),vI=async(e,t,r,n,i)=>{const a=bI(n),o=We(r.packageJson.types),s=Ge(e.rootDir,o,wI),c=xu(i.directivesProxyFile,s,".d.ts"),l=i.componentCorePackage?`import { Components } from '${i.componentCorePackage}';`:`import { Components } from '${c}';`,d=["/* eslint-disable */\n/* tslint:disable */\n/* auto-generated angular directive proxies */\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, NgZone } from '@angular/core';",CI(i),l,a].join("\n")+"\n",u=p.createSourceFile(wI,d,p.ScriptTarget.Latest,!1),_=p.createPrinter({newLine:p.NewLineKind.LineFeed}).printFile(u);return t.fs.writeFile(i.directivesProxyFile,_)},bI=e=>e.map(xI).join("\n"),EI=(e,t)=>{const r=e.length>0,n=t.length>0,i=[];return r||n?(r&&i.push(`inputs: ['${e.join("', '")}']`),n&&i.push(`'methods': ['${t.join("', '")}']`),`@ProxyCmp({${i.join(", ")}})`):""},xI=e=>{const t=DI(e),r=SI(e),n=TI(e),i=r.length>0,a=[`selector: '${e.tagName}'`,"changeDetection: ChangeDetectionStrategy.OnPush","template: '<ng-content></ng-content>'"];t.length>0&&a.push(`inputs: ['${t.join("', '")}']`);const o=R(e.tagName),s=[`\nexport declare interface ${o} extends Components.${o} {}\n${EI(t,n)}\n@Component({ ${a.join(", ")} })\nexport class ${o} {`];return r.forEach((e=>{s.push(` ${e}!: EventEmitter<CustomEvent>;`)})),s.push(" protected el: HTMLElement;"),s.push(" constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;"),i&&s.push(` proxyOutputs(this, this.el, ['${r.join("', '")}']);`),s.push(" }"),s.push("}"),s.join("\n")},DI=e=>[...e.properties.filter((e=>!e.internal)).map((e=>e.name)),...e.virtualProperties.map((e=>e.name))].sort(),SI=e=>e.events.filter((e=>!e.internal)).map((e=>e.name)),TI=e=>e.methods.filter((e=>!e.internal)).map((e=>e.name)),CI=e=>e.directivesUtilsFile?`import { ProxyCmp, proxyOutputs } from '${xu(e.directivesProxyFile,e.directivesUtilsFile,".ts")}';\n`:NI.replace(/export function/g,"function"),AI=(e,t,r)=>{if(!r.directivesArrayFile)return Promise.resolve();const n=`\nimport type * as d from '${xu(r.directivesArrayFile,r.directivesProxyFile,".ts")}';\n\nexport const DIRECTIVES = [\n${t.map((e=>R(e.tagName))).map((e=>` d.${e}`)).join(",\n")}\n];\n`;return e.fs.writeFile(r.directivesArrayFile,n)},kI=async(e,t)=>{t.directivesUtilsFile&&await e.fs.writeFile(t.directivesUtilsFile,"/* eslint-disable */\n/* tslint:disable */\n"+NI)},NI="import { fromEvent } from 'rxjs';\n\nexport const proxyInputs = (Cmp: any, inputs: string[]) => {\n const Prototype = Cmp.prototype;\n inputs.forEach(item => {\n Object.defineProperty(Prototype, item, {\n get() {\n return this.el[item];\n },\n set(val: any) {\n this.z.runOutsideAngular(() => (this.el[item] = val));\n }\n });\n });\n};\n\nexport const proxyMethods = (Cmp: any, methods: string[]) => {\n const Prototype = Cmp.prototype;\n methods.forEach(methodName => {\n Prototype[methodName] = function () {\n const args = arguments;\n return this.z.runOutsideAngular(() =>\n this.el[methodName].apply(this.el, args)\n );\n };\n });\n};\n\nexport const proxyOutputs = (instance: any, el: any, events: string[]) => {\n events.forEach(eventName => instance[eventName] = fromEvent(el, eventName));\n}\n\nexport function ProxyCmp(opts: { inputs?: any; methods?: any }) {\n const decorator = function(cls: any){\n if (opts.inputs) {\n proxyInputs(cls, opts.inputs);\n }\n if (opts.methods) {\n proxyMethods(cls, opts.methods);\n }\n return cls;\n };\n return decorator;\n}\n",wI="components.d.ts",FI=async(e,t,r)=>{const n=r.filter(Bu);0!==n.length&&await Promise.all(n.map((async r=>{try{await r.generator(t,e)}catch(t){e.logger.error(`uncaught custom docs error: ${t}`)}})))};class PI{constructor(e,t){this.buildId=-1,this.buildMessages=[],this.buildResults=null,this.bundleBuildCount=0,this.collections=[],this.completedTasks=[],this.components=[],this.componentGraph=new Map,this.data={},this.buildStats=void 0,this.diagnostics=[],this.dirsAdded=[],this.dirsDeleted=[],this.entryModules=[],this.filesAdded=[],this.filesChanged=[],this.filesDeleted=[],this.filesUpdated=[],this.filesWritten=[],this.globalStyle=void 0,this.hasConfigChanges=!1,this.hasFinished=!1,this.hasHtmlChanges=!1,this.hasPrintedResults=!1,this.hasServiceWorkerChanges=!1,this.hasScriptChanges=!0,this.hasStyleChanges=!0,this.hydrateAppFilePath=null,this.indexBuildCount=0,this.indexDoc=void 0,this.isRebuild=!1,this.moduleFiles=[],this.outputs=[],this.packageJson={},this.packageJsonFilePath=null,this.pendingCopyTasks=[],this.requiresFullBuild=!0,this.scriptsAdded=[],this.scriptsDeleted=[],this.startTime=Date.now(),this.styleBuildCount=0,this.stylesPromise=null,this.stylesUpdated=[],this.timeSpan=null,this.transpileBuildCount=0,this.config=e,this.compilerCtx=t,this.buildId=++this.compilerCtx.activeBuildId,this.debug=e.logger.debug.bind(e.logger)}start(){const e=`${this.isRebuild?"rebuild":"build"}, ${this.config.fsNamespace}, ${this.config.devMode?"dev":"prod"} mode, started`,t={buildId:this.buildId,messages:[],progress:0};this.compilerCtx.events.emit("buildLog",t),this.timeSpan=this.createTimeSpan(e),this.timestamp=II(),this.debug(`start build, ${this.timestamp}`);const r={buildId:this.buildId,timestamp:this.timestamp};this.compilerCtx.events.emit("buildStart",r)}createTimeSpan(e,t){if(!this.hasFinished||t){t&&this.config.watch&&(e=`${this.config.logger.cyan("["+this.buildId+"]")} ${e}`);const r=this.config.logger.createTimeSpan(e,t,this.buildMessages);if(!t&&this.compilerCtx.events){const e={buildId:this.buildId,messages:this.buildMessages,progress:OI(this.completedTasks)};this.compilerCtx.events.emit("buildLog",e)}return{duration:()=>r.duration(),finish:(e,n,i,a)=>{if((!this.hasFinished||t)&&(t&&this.config.watch&&(e=`${this.config.logger.cyan("["+this.buildId+"]")} ${e}`),r.finish(e,n,i,a),!t)){const e={buildId:this.buildId,messages:this.buildMessages.slice(),progress:OI(this.completedTasks)};this.compilerCtx.events.emit("buildLog",e)}return r.duration()}}}return{duration(){return 0},finish(){return 0}}}debug(e){this.config.logger.debug(e)}get hasError(){return ne(this.diagnostics)}get hasWarning(){return null!=(e=this.diagnostics)&&0!==e.length&&e.some((e=>"warn"===e.level));var e}progress(e){this.completedTasks.push(e)}async validateTypesBuild(){this.hasError||this.validateTypesPromise&&(this.config.watch||(this.debug("build, non-watch, waiting on validateTypes"),await this.validateTypesPromise,this.debug("build, non-watch, finished waiting on validateTypes")))}}const II=()=>{const e=new Date;let t=e.getUTCFullYear()+"-";return t+=("0"+(e.getUTCMonth()+1)).slice(-2)+"-",t+=("0"+e.getUTCDate()).slice(-2)+"T",t+=("0"+e.getUTCHours()).slice(-2)+":",t+=("0"+e.getUTCMinutes()).slice(-2)+":",t+=("0"+e.getUTCSeconds()).slice(-2),t},OI=e=>{let t=0;const r=Object.keys(MI);return r.forEach(((r,n)=>{e.includes(MI[r])&&(t=n)})),(t+1)/r.length},MI={emptyOutputTargets:{},transpileApp:{},generateStyles:{},generateOutputTargets:{},validateTypesBuild:{},writeBuildFiles:{}},RI="\x3c!-- Auto Generated Below --\x3e",LI=async(e,t,r)=>{const n=await Promise.all(r.moduleFiles.map((async n=>{const i=n.sourceFilePath,a=me(We(i)),o=me(Ge(a,"readme.md")),s=me(Ge(a,"usage")),c=await QI(t,o),l=await eO(t,s);return n.cmps.filter((e=>!e.internal&&!e.isCollectionDependency)).map((t=>({dirPath:a,filePath:Xe(e.rootDir,i),fileName:He(i),readmePath:o,usagesDir:s,tag:t.tagName,readme:c,overview:t.docs.text,usage:l,docs:ZI(c,t.docs),docsTags:t.docs.tags,encapsulation:UI(t),dependents:t.directDependents,dependencies:t.directDependencies,dependencyGraph:BI(t,r.components),deprecation:$I(t.docs.tags),props:jI(t),methods:WI(t.methods),events:KI(t.events),styles:JI(t),slots:qI(t.docs.tags),parts:XI(t.htmlParts,t.docs.tags),listeners:GI(t.listeners)})))})));return U(j(n),(e=>e.tag))},BI=(e,t)=>{const r={};return!function e(n){if(!r[n]){const i=t.find((e=>e.tagName===n)).directDependencies;i.length>0&&(r[n]=i,i.forEach(e))}}(e.tagName),e.directDependents.forEach((t=>{r[t]&&!r[t].includes(e.tagName)?r[t].push(e.tagName):r[t]=[e.tagName]})),r},UI=e=>"shadow"===e.encapsulation?"shadow":"scoped"===e.encapsulation?"scoped":"none",jI=e=>U([...VI(e.properties),...zI(e.virtualProperties)],(e=>e.name)),VI=e=>e.filter((e=>!e.internal)).map((e=>({name:e.name,type:e.complexType.resolved,mutable:e.mutable,attr:e.attribute,reflectToAttr:!!e.reflect,docs:e.docs.text,docsTags:e.docs.tags,default:e.defaultValue,deprecation:$I(e.docs.tags),values:HI(e.complexType.resolved),optional:e.optional,required:e.required}))),zI=e=>e.map((e=>({name:e.name,type:e.type,mutable:!1,attr:e.name,reflectToAttr:!1,docs:e.docs,docsTags:[],default:void 0,deprecation:void 0,values:HI(e.type),optional:!0,required:!1}))),HI=e=>{if("string"==typeof e){const t=e.split("|").map((e=>e.trim())),r=[];return t.forEach((e=>"true"===e?(r.push({value:"true",type:"boolean"}),void 0):"false"===e?(r.push({value:"false",type:"boolean"}),void 0):Number.isNaN(parseFloat(e))?/^("|').+("|')$/gm.test(e)?(r.push({value:e.slice(1,-1),type:"string"}),void 0):(r.push({type:e}),void 0):(r.push({value:e,type:"number"}),void 0))),r}return[]},WI=e=>U(e,(e=>e.name)).filter((e=>!e.internal)).map((e=>({name:e.name,returns:{type:e.complexType.return,docs:e.docs.tags.filter((e=>"return"===e.name||"returns"===e.name)).map((e=>e.text)).join("\n")},signature:`${e.name}${e.complexType.signature}`,parameters:[],docs:e.docs.text,docsTags:e.docs.tags,deprecation:$I(e.docs.tags)}))),KI=e=>U(e,(e=>e.name.toLowerCase())).filter((e=>!e.internal)).map((e=>({event:e.name,detail:e.complexType.resolved,bubbles:e.bubbles,cancelable:e.cancelable,composed:e.composed,docs:e.docs.text,docsTags:e.docs.tags,deprecation:$I(e.docs.tags)}))),JI=e=>e.styleDocs?U(e.styleDocs,(e=>e.name.toLowerCase())).map((e=>({name:e.name,annotation:e.annotation||"",docs:e.docs||""}))):[],GI=e=>e.map((e=>({event:e.name,target:e.target,capture:e.capture,passive:e.passive}))),$I=e=>{const t=e.find((e=>"deprecated"===e.name));if(t)return t.text||""},qI=e=>U(YI("slot",e).map((([e,t])=>({name:e,docs:t}))),(e=>e.name)),XI=(e,t)=>{const r=YI("part",t).map((([e,t])=>({name:e,docs:t}))),n=e.map((e=>({name:e,docs:""})));return U(V([...r,...n],(e=>e.name)),(e=>e.name))},YI=(e,t)=>t.filter((t=>t.name===e&&t.text)).map((({text:e})=>{const[t,...r]=(" "+e).split(" - ");return[t.trim(),r.join(" - ").trim()]})),QI=async(e,t)=>{try{const r=await e.fs.readFile(t),n=r.indexOf(RI)-1;if(n>=0)return r.substring(0,n)}catch(e){}},ZI=(e,t)=>{const r=t.text;if(""!==r||!e)return r;let n=!1;const i=e.split("\n"),a=[];for(const e of i){const t=e.startsWith("#");if(t&&n)break;t||n||(n=!0),n&&a.push(e)}return a.join("\n").trim()},eO=async(e,t)=>{const r={};try{const n=await e.fs.readdir(t),i={};await Promise.all(n.map((async t=>{if(!t.isFile)return;const r=He(t.relPath);if(!r.toLowerCase().endsWith(".md"))return;const n=r.split(".");n.pop();const a=n.join(".");i[a]=await e.fs.readFile(t.absPath)}))),Object.keys(i).sort().forEach((e=>{r[e]=i[e]}))}catch(e){}return r},tO=async(e,t,r,n)=>{const i=n.filter(Lu);if(0===i.length)return;const a=Ge(e.sys.getCompilerExecutingPath(),"..","..","internal","stencil-public-docs.d.ts"),o=`\n/**\n * This is an autogenerated file created by the Stencil compiler.\n * DO NOT MODIFY IT MANUALLY\n */\n${await t.fs.readFile(a)}\ndeclare const _default: JsonDocs;\nexport default _default;\n`,s={...r,components:r.components.map((e=>({filePath:e.filePath,encapsulation:e.encapsulation,tag:e.tag,readme:e.readme,docs:e.docs,docsTags:e.docsTags,usage:e.usage,props:e.props,methods:e.methods,events:e.events,listeners:e.listeners,styles:e.styles,slots:e.slots,parts:e.parts,dependents:e.dependents,dependencies:e.dependencies,dependencyGraph:e.dependencyGraph,deprecation:e.deprecation})))},c=JSON.stringify(s,null,2);await Promise.all(i.map((e=>rO(t,e,c,o))))},rO=async(e,t,r,n)=>Promise.all([e.fs.writeFile(t.file,r),t.typesFile?e.fs.writeFile(t.typesFile,n):Promise.resolve()]);class nO{constructor(){this.rows=[]}addHeader(e){this.addRow(e,!0)}addRow(e,t=!1){const r=[];e.forEach((e=>{const t={text:iO(e),width:e.length};r.push(t)})),this.rows.push({columns:r,isHeader:t})}toMarkdown(){return aO(this.rows)}}const iO=e=>(e=e.replace(/\r?\n/g," ")).replace(/\|/g,"\\|"),aO=e=>{const t=[];if(0===e.length)return t;cO(e),lO(e);const r=e.find((e=>e.isHeader));if(r){const e=sO(r);t.push(e),t.push(oO(r))}return e.filter((e=>!e.isHeader)).forEach((e=>{t.push(sO(e))})),t},oO=e=>{const t={columns:[],isHeader:!1};return e.columns.forEach((e=>{const r={text:"",width:e.width};for(;r.text.length<r.width;)r.text+="-";t.columns.push(r)})),sO(t)},sO=e=>{const t=["| "];return e.columns.forEach((e=>{t.push(e.text),t.push(" | ")})),t.join("").trim()},cO=e=>{let t=0;e.forEach((e=>{e.columns.length>t&&(t=e.columns.length)})),e.forEach((e=>{for(;e.columns.length<t;)e.columns.push({text:"",width:0})}))},lO=e=>{const t=e[0].columns.length;for(let r=0;r<t;r++){let t=0;e.forEach((e=>{const n=e.columns[r];n.text.length>t&&(t=n.text.length)})),e.forEach((e=>{const n=e.columns[r];for(n.width=t;n.text.length<t;)n.text+=" "}))}},dO=e=>{const t=[];if(0===e.length)return t;t.push("## CSS Custom Properties"),t.push("");const r=new nO;return r.addHeader(["Name","Description"]),e.forEach((e=>{r.addRow([`\`${e.name}\``,e.docs])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},uO=(e,t,r)=>{const n=r.find((e=>e.tag===t));if(n){const r=me(Xe(e.dirPath,n.dirPath));return`[${t}](${r})`}return t},pO=e=>{const t=[];if(0===e.length)return t;t.push("## Events"),t.push("");const r=new nO;return r.addHeader(["Event","Description","Type"]),e.forEach((e=>{r.addRow([`\`${e.event}\``,_O(e),`\`CustomEvent<${e.detail}>\``])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},_O=e=>`${void 0!==e.deprecation?`<span style="color:red">**[DEPRECATED]**</span> ${e.deprecation}<br/><br/>`:""}${e.docs}`,fO=e=>{const t=[];return 0===e.length||(t.push("## Methods"),t.push(""),e.forEach((e=>{if(t.push(`### \`${e.signature}\``),t.push(""),t.push(mO(e)),t.push(""),e.parameters.length>0){const r=new nO;r.addHeader(["Name","Type","Description"]),e.parameters.forEach((({name:e,type:t,docs:n})=>{r.addRow(["`"+e+"`","`"+t+"`",n])})),t.push("#### Parameters"),t.push(""),t.push(...r.toMarkdown()),t.push("")}e.returns&&(t.push("#### Returns"),t.push(""),t.push(`Type: \`${e.returns.type}\``),t.push(""),t.push(e.returns.docs),t.push(""))})),t.push("")),t},mO=e=>`${void 0!==e.deprecation?`<span style="color:red">**[DEPRECATED]**</span> ${e.deprecation}<br/><br/>`:""}${e.docs}`,gO=e=>{if(!e)return[];const t=[];return t.push("## Overview"),t.push(""),t.push(`${e.trim()}`),t.push(""),t},hO=e=>{const t=[];if(0===e.length)return t;t.push("## Shadow Parts"),t.push("");const r=new nO;return r.addHeader(["Part","Description"]),e.forEach((e=>{r.addRow([""===e.name?"":`\`"${e.name}"\``,e.docs])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},yO=e=>{const t=[];if(0===e.length)return t;t.push("## Properties"),t.push("");const r=new nO;return r.addHeader(["Property","Attribute","Description","Type","Default"]),e.forEach((e=>{r.addRow([vO(e),bO(e),EO(e),`\`${e.type}\``,`\`${e.default}\``])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},vO=e=>`\`${e.name}\`${e.required?" _(required)_":""}`,bO=e=>e.attr?`\`${e.attr}\``:"--",EO=e=>`${void 0!==e.deprecation?`<span style="color:red">**[DEPRECATED]**</span> ${e.deprecation}<br/><br/>`:""}${e.docs}`,xO=e=>{const t=[];if(0===e.length)return t;t.push("## Slots"),t.push("");const r=new nO;return r.addHeader(["Slot","Description"]),e.forEach((e=>{r.addRow([""===e.name?"":`\`"${e.name}"\``,e.docs])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},DO=e=>{const t=[],r=SO(e);return 0===r.length||(t.push("## Usage"),r.forEach((({name:e,text:r})=>{t.push(""),t.push(`### ${L(e)}`),t.push(""),t.push(r),t.push("")})),t.push(""),t.push("")),t},SO=e=>{const t=Object.keys(e),r=new Map;t.forEach((t=>{const n=e[t].trim(),i=r.get(n)||[];i.push(t),r.set(n,i)}));const n=[];return r.forEach(((e,t)=>{n.push({name:e.join(" / "),text:t})})),n},TO=e=>void 0!==e.deprecation?[`> **[DEPRECATED]** ${e.deprecation}`,""]:[],CO=async(e,t,r,n)=>{const i=n.filter(Ru);0!==i.length&&(i.some((e=>e.strict))&&AO(e,r),await Promise.all(r.components.map((n=>(async(e,t,r,n,i)=>{const a=!!n.readme,o=a?n.readme:(e=>[`# ${e.tag}`,"","",""].join("\n"))(n);await Promise.all(r.map((async r=>{if(r.dir){const s=((e,t,r,n)=>{const i=!1!==n.dependencies?((e,t)=>{const r=[],n=Object.entries(e.dependencyGraph);if(0===n.length)return r;if(r.push("## Dependencies"),r.push(""),e.dependents.length>0){const n=e.dependents.map((r=>" - "+uO(e,r,t)));r.push("### Used by"),r.push(""),r.push(...n),r.push("")}if(e.dependencies.length>0){const n=e.dependencies.map((r=>"- "+uO(e,r,t)));r.push("### Depends on"),r.push(""),r.push(...n),r.push("")}return r.push("### Graph"),r.push("```mermaid"),r.push("graph TD;"),n.forEach((([e,t])=>{t.forEach((t=>{r.push(` ${e} --\x3e ${t}`)}))})),r.push(` style ${e.tag} fill:#f9f,stroke:#333,stroke-width:4px`),r.push("```"),r.push(""),r})(t,r):[];return[e,RI,"","",...TO(t),...gO(t.overview),...DO(t.usage),...yO(t.props),...pO(t.events),...fO(t.methods),...xO(t.slots),...hO(t.parts),...dO(t.styles),...i,"----------------------------------------------","",n.footer,""].join("\n")})(o,n,i,r),c=Xe(e.srcDir,n.readmePath),l=Ge(r.dir,c);(await t.fs.writeFile(l,s)).changedContent&&(a?e.logger.info(`updated readme docs: ${n.tag}`):e.logger.info(`created readme docs: ${n.tag}`))}})))})(e,t,i,n,r.components)))))},AO=(e,t)=>{t.components.forEach((t=>{t.props.forEach((r=>{r.docs||void 0!==r.deprecation||e.logger.warn(`Property "${r.name}" of "${t.tag}" is not documented. ${t.filePath}`)})),t.methods.forEach((r=>{r.docs||void 0!==r.deprecation||e.logger.warn(`Method "${r.name}" of "${t.tag}" is not documented. ${t.filePath}`)})),t.events.forEach((r=>{r.docs||void 0!==r.deprecation||e.logger.warn(`Event "${r.event}" of "${t.tag}" is not documented. ${t.filePath}`)})),t.parts.forEach((r=>{""===r.docs&&e.logger.warn(`Part "${r.name}" of "${t.tag}" is not documented. ${t.filePath}`)}))}))},kO=async(e,t,r)=>{const n=r.filter(Uu);0!==n.length&&await Promise.all(n.map((async r=>{const n={version:1.1,tags:t.components.map((e=>({name:e.tag,description:{kind:"markdown",value:e.docs},attributes:e.props.filter((e=>void 0!==e.attr&&e.attr.length>0)).map(wO),references:NO(e,r.sourceCodeBaseUrl)})))},i=JSON.stringify(n,null,2);await e.fs.writeFile(r.file,i)})))},NO=(e,t)=>{var r;const n=YI("reference",e.docsTags).map((([e,t])=>({name:e,url:t})));if(t&&n.push({name:"Source code",url:Ge(t,null!==(r=e.filePath)&&void 0!==r?r:"")}),n.length>0)return n},wO=e=>{const t={name:e.attr,description:e.docs},r=e.values.filter((e=>"string"===e.type&&void 0!==e.value)).map((e=>({name:e.value})));return r.length>0&&(t.values=r),t},FO=async(e,t,r,n,i)=>{const a=i.filter(Ou);0!==a.length&&await Promise.all(a.map((async i=>{const a=r.createTimeSpan(`generating ${i.name} started`);try{await i.generator(e,t,r,n)}catch(e){re(r.diagnostics,e)}a.finish(`generate ${i.name} finished`)})))},PO=async(e,t)=>{const r=e.outputTargets.filter(Fu);0!==r.length&&await Promise.all(r.map((r=>IO(e,t,r))))},IO=async(e,t,r)=>{const n=r.dir,i=r.esmDir,a=r.esmEs5Dir||i,o=r.cjsDir;if(!n||!i||!o)return;const s=await aI(e,t,"es5-html-element.js"),c=JSON.stringify({name:e.fsNamespace+"-loader",private:!0,typings:"./index.d.ts",module:"./index.js",main:"./index.cjs.js","jsnext:main":"./index.es2017.js",es2015:"./index.es2017.js",es2017:"./index.es2017.js",unpkg:"./cdn.js"},null,2),l=Ge(a,"loader.js"),d=Ge(i,"loader.js"),u=Ge(i,"polyfills/index.js"),p=Ge(o,"loader.cjs.js"),_=`export * from '${me(Xe(n,u))}';`,f=`${Ie(e)}\n${s}\n${_}\nexport * from '${me(Xe(n,l))}';\n`,m=`${Ie(e)}\n${_}\nexport * from '${me(Xe(n,d))}';\n`,g=`${Ie(e)}\nmodule.exports = require('${me(Xe(n,p))}');\nmodule.exports.applyPolyfills = function() { return Promise.resolve() };\n`,h=Ge(n,"index.d.ts");await Promise.all([t.fs.writeFile(Ge(n,"package.json"),c),t.fs.writeFile(Ge(n,"index.d.ts"),OO(h,r.componentDts)),t.fs.writeFile(Ge(n,"index.js"),f),t.fs.writeFile(Ge(n,"index.cjs.js"),g),t.fs.writeFile(Ge(n,"cdn.js"),g),t.fs.writeFile(Ge(n,"index.es2017.js"),m)])},OO=(e,t)=>`export * from '${xu(e,t,".d.ts")}';\nexport interface CustomElementsDefineOptions {\n exclude?: string[];\n resourcesUrl?: string;\n syncQueue?: boolean;\n jmp?: (c: Function) => any;\n raf?: (c: FrameRequestCallback) => number;\n ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;\n rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;\n}\nexport declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;\nexport declare function applyPolyfills(): Promise<void>;\n`,MO=(e,t)=>{const r=R(t.tagName);return[`import type { Components, JSX } from "${e}";`,"",`interface ${r} extends Components.${r}, HTMLElement {}`,`export const ${r}: {`,` prototype: ${r};`,` new (): ${r};`,"};","/**"," * Used to define this component and all nested components recursively."," */","export const defineCustomElement: () => void;",""].join("\n")},RO=(e,t)=>((t=Xe(e,t)).startsWith(".")||(t="."+t),me(t.replace(".d.ts",""))),LO=e=>{const t=R(e.tagName);return[`interface ${t} extends Components.${t}, HTMLElement {}`,`export const ${t}: {`,` prototype: ${t};`,` new (): ${t};`,"};",""].join("\n")},BO=(e,t)=>((t=Xe(e,t)).startsWith(".")||(t="."+t),me(t.replace(".d.ts",""))),UO=(e,t,r)=>{const n=We(t),i=Xe(n,e);let a=Ge(i,HO);return a.startsWith(".")||(a=`./${a}`),a=me(a),r.includes("@stencil/core")&&(r=(r=r.replace(/(from\s*(:?'|"))@stencil\/core\/internal('|")/g,`$1${a}$2`)).replace(/(from\s*(:?'|"))@stencil\/core('|")/g,`$1${a}$2`)),r},jO=(e,t,r,n)=>{let i=n;for(const n of Object.values(e)){const e=VO(n.path,r);if(t.hasOwnProperty(e))for(const r of t[e])i=zO(i,r)}return i},VO=(e,t)=>(e&&e.startsWith(".")&&(e=Ye(We(t),e)),e),zO=(e,t)=>{if(!t.importName)return e;const r=new RegExp(`${t.localName}\\b(?!("|'|\`))`,"g");return e.replace(r,t.importName)},HO="stencil-public-runtime",WO=`${HO}.d.ts`,KO=(e,t,r,n)=>e.complexType.original?`(event: ${t}<${jO(e.complexType.references,r,n,e.complexType.original)}>) => void`:"CustomEvent";function JO(e,t,r){return jO(e.complexType.references,t,r,e.complexType.signature)}function GO(e,t,r){return jO(e.complexType.references,t,r,e.complexType.original)}const $O=(e,t,r)=>{const n=U(e,(e=>e.name)).filter((e=>!(t&&!r&&e.internal))).reduce(((e,r)=>{r.jsdoc&&(e.push(" /**"),e.push(...r.jsdoc.split("\n").map((e=>" * "+e))),e.push(" */"));const n=t?!r.required:r.optional;return e.push(` "${r.name}"${n?"?":""}: ${r.type};`),e}),[]).join("\n");return""!==n?`${n}\n`:""},qO=(e,t)=>{const r=e.localName.toLowerCase(),n=t.localName.toLowerCase();return r<n?-1:r>n?1:e.localName<t.localName?-1:e.localName>t.localName?1:0},XO=async(e,t,r,n)=>{const i=r.createTimeSpan("generated app types started",!0),a="src"===n;let o=YO(e,r,a),s=(e=>Ge(e.srcDir,cp))(e);a||(s=Ye(n,cp),o=UO(n,s,o));const c=(await t.fs.writeFile(s,o,{immediateWrite:!0})).changedContent,l=Xe(e.rootDir,s);return c&&e.logger.debug(`generateAppTypes: ${l} has changed`),i.finish(`generated app types finished: ${l}`),c},YO=(e,t,r)=>{let n={};const i=[],a=new Map,o=t.components.filter((e=>!e.isCollectionDependency)),s=[],c=o.map((e=>(n=((e,t,r,n)=>{const i=((e,t)=>(r,n)=>(Object.keys(n).map((e=>[e,n[e]])).forEach((([n,i])=>{let a;if("global"===i.location)return;if("local"===i.location?a=t:"import"===i.location&&(a=i.path),a.startsWith(".")&&(a=Ye(We(t),a)),r[a]=r[a]||[],r[a].find((e=>e.localName===n)))return;const o=(t=>{const r=e.get(t);return void 0===r?(e.set(t,1),t):(e.set(t,r+1),`${t}${r}`)})(n);r[a].push({localName:n,importName:o})})),r))(t,n);return[...r.properties,...r.events,...r.methods].filter((e=>e.complexType&&e.complexType.references)).reduce(((e,t)=>i(e,t.complexType.references)),e)})(n,a,e,e.sourceFilePath),e.events.length>0&&s.push((e=>{const t=e.tagName.toLowerCase(),r=R(t),n=`HTML${r}Element`,i=[`export interface ${r}CustomEvent<T> extends CustomEvent<T> {`," detail: T;",` target: ${n};`,"}"];return{isDep:e.isCollectionDependency,tagName:t,tagNameAsPascal:r,htmlElementName:n,component:i.join("\n"),jsx:i.join("\n"),element:i.join("\n")}})(e)),((e,t,r)=>{const n=e.tagName.toLowerCase(),i=R(n),a=`HTML${i}Element`,o=((e,t)=>[...e.properties.map((r=>({name:r.name,type:GO(r,t,e.sourceFilePath),optional:r.optional,required:r.required,internal:r.internal,jsdoc:Me(r.docs)}))),...e.virtualProperties.map((e=>({name:e.name,type:e.type,optional:!0,required:!1,jsdoc:e.docs,internal:!1})))])(e,t),s=((e,t)=>e.methods.map((r=>({name:r.name,type:JO(r,t,e.sourceFilePath),optional:!1,required:!1,internal:r.internal,jsdoc:Me(r.docs)}))))(e,t),c=((e,t,r)=>e.events.map((n=>({name:`on${L(n.name)}`,type:KO(n,`${r}CustomEvent`,t,e.sourceFilePath),optional:!1,required:!1,internal:n.internal,jsdoc:Me(n.docs)}))))(e,t,i),l=$O([...o,...s],!1,r);return{isDep:e.isCollectionDependency,tagName:n,tagNameAsPascal:i,htmlElementName:a,component:` interface ${i} {\n${l} }`,jsx:` interface ${i} {\n${$O([...o,...c],!0,r)} }`,element:[` interface ${a} extends Components.${i}, HTMLStencilElement {`," }",` var ${a}: {`,` prototype: ${a};`,` new (): ${a};`," };"].join("\n")}})(e,n,r))));return i.push("/* eslint-disable */\n/* tslint:disable */\n/**\n * This is an autogenerated file created by the Stencil compiler.\n * It contains typing information for all components that exist in this project.\n */"),i.push('import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";'),i.push(...Object.keys(n).map((t=>{const r=n[t];let i;return i=Je(t)?me("./"+Xe(e.srcDir,t)).replace(/\.(tsx|ts)$/,""):t,`import { ${r.sort(qO).map((e=>e.localName===e.importName?`${e.importName}`:`${e.localName} as ${e.importName}`)).join(", ")} } from "${i}";`}))),i.push("export namespace Components {"),i.push(...c.map((e=>`${e.component}`))),i.push("}"),i.push(...s.map((e=>`${e.component}`))),i.push("declare global {"),i.push(...c.map((e=>e.element))),i.push(" interface HTMLElementTagNameMap {"),i.push(...c.map((e=>` "${e.tagName}": ${e.htmlElementName};`))),i.push(" }"),i.push("}"),i.push("declare namespace LocalJSX {"),i.push(...c.map((e=>` ${e.jsx}`))),i.push(" interface IntrinsicElements {"),i.push(...c.map((e=>` "${e.tagName}": ${e.tagNameAsPascal};`))),i.push(" }"),i.push("}"),i.push("export { LocalJSX as JSX };"),i.push('declare module "@stencil/core" {'),i.push(" export namespace JSX {"),i.push(" interface IntrinsicElements {"),i.push(...c.map((e=>` "${e.tagName}": LocalJSX.${e.tagNameAsPascal} & JSXBase.HTMLAttributes<${e.htmlElementName}>;`))),i.push(" }"),i.push(" }"),i.push("}"),i.join("\n")+"\n"},QO=async(e,t,r,n)=>{const i=(await t.fs.readdir(e.srcDir,{recursive:!1})).filter((e=>e.isFile&&(e=>{const t=e.toLowerCase().split(".");return t.length>2&&"d"===t[t.length-2]&&"ts"===t[t.length-1]})(e.absPath))),a=(await Promise.all(i.map((async r=>{const i=Xe(e.srcDir,r.absPath),a=Ge(n.typesDir,i),o=await t.fs.readFile(r.absPath),s=UO(n.typesDir,a,o);return await t.fs.writeFile(a,s),a})))).slice(-1)[0],o=n.typesDir;await XO(e,t,r,o);const{typesDir:s}=n;a&&(await(async(e,t,r,n)=>{const i=e.outputTargets.filter(Au);await Promise.all(i.map((i=>(async(e,t,r,n,i)=>{const a=Ge(i.dir,"index.d.ts"),o=BO(i.dir,n),s=r.components.filter((e=>!e.isCollectionDependency)),c=[`/* ${e.namespace} custom elements bundle */`,"",`import type { Components, JSX } from "${o}";`,"",...s.map(LO),"/**"," * Utility to define all custom elements within this package using the tag name provided in the component's source. "," * When defining each custom element, it will also check it's safe to define by:"," *",' * 1. Ensuring the "customElements" registry is available in the global context (window).'," * 2. The component tag name is not already defined."," *"," * Use the standard [customElements.define()](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define) "," * method instead to define custom elements individually, or to provide a different tag name."," */","export declare const defineCustomElements: (opts?: any) => void;","","/**"," * Used to manually set the base path where assets can be found.",' * If the script is used as "module", it\'s recommended to use "import.meta.url",',' * such as "setAssetPath(import.meta.url)". Other options include',' * "setAssetPath(document.currentScript.src)", or using a bundler\'s replace plugin to',' * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".'," * But do note that this configuration depends on how your script is bundled, or lack of"," * bunding, and where your assets can be loaded from. Additionally custom bundling"," * will have to ensure the static assets are copied to its build directory."," */","export declare const setAssetPath: (path: string) => void;","","export interface SetPlatformOptions {"," raf?: (c: FrameRequestCallback) => number;"," ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;"," rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;"," ce?: (eventName: string, opts?: any) => CustomEvent;","}","export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;","","export type { Components, JSX };",""],l=Ge(e.srcDir,"index.ts");if(await t.fs.access(l)){const e=me(We(o));c.push(`export * from '${e}';`)}else c.push(`export * from '${o}';`);await t.fs.writeFile(a,c.join("\n")+"\n",{outputTargetType:i.type})})(e,t,r,n,i))))})(e,t,r,a),await(async(e,t,r,n)=>{const i=e.outputTargets.filter(Cu);await Promise.all(i.map((i=>(async(e,t,r,n,i)=>{const a=Ge(i.dir,"index.d.ts"),o=Xe(i.dir,n),s=r.components.filter((e=>!e.isCollectionDependency)),c=[`/* ${e.namespace} custom elements */`,...s.map((t=>{const r=R(t.tagName),n=t.componentClassName,i=Xe(e.srcDir,t.sourceFilePath).replace(".tsx","");return`export { ${n} as ${r} } from '${Ge(o,i)}';`})),"","/**"," * Used to manually set the base path where assets can be found.",' * If the script is used as "module", it\'s recommended to use "import.meta.url",',' * such as "setAssetPath(import.meta.url)". Other options include',' * "setAssetPath(document.currentScript.src)", or using a bundler\'s replace plugin to',' * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".'," * But do note that this configuration depends on how your script is bundled, or lack of"," * bundling, and where your assets can be loaded from. Additionally custom bundling"," * will have to ensure the static assets are copied to its build directory."," */","export declare const setAssetPath: (path: string) => void;","","export interface SetPlatformOptions {"," raf?: (c: FrameRequestCallback) => number;"," ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;"," rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;","}","export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;"],l=RO(i.dir,Ge(n,"components.d.ts")),d=Ge(e.srcDir,"index.ts");if(await t.fs.access(d)){const e=me(We(l));c.push(`export * from '${e}';`)}else c.push(`export * from '${l}';`);await t.fs.writeFile(a,c.join("\n")+"\n",{outputTargetType:i.type}),await Promise.all(s.map((async e=>{const r=MO(l,e),n=`${e.tagName}.d.ts`,a=Ge(i.dir,n);await t.fs.writeFile(a,r,{outputTargetType:i.type})})))})(e,t,r,n,i))))})(e,t,r,s))},ZO=e=>e.replace(/\n/g,"\\n").replace(/\'/g,"\\'").trim(),eM=async(e,t,r)=>{const n=e.createTimeSpan("copy service worker library started",!0);try{await r.copyWorkboxLibraries(t.appDir)}catch(t){ee(e.diagnostics).messageText="Service worker library already exists"}n.finish("copy service worker library finished")},tM=async(e,t,r)=>{const n=e.createTimeSpan("inject manifest into service worker started");try{await r.injectManifest(t),n.finish("inject manifest into service worker finished")}catch(t){re(e.diagnostics,t)}},rM=(e,t,r)=>{const n=e.createElement("script");return n.setAttribute("data-build",`${t.timestamp}`),n.innerHTML=(e=>`\nif ('serviceWorker' in navigator && location.protocol !== 'file:') {\n window.addEventListener('load', function() {\n navigator.serviceWorker.register('${e}')\n .then(function(reg) {\n reg.onupdatefound = function() {\n var installingWorker = reg.installing;\n installingWorker.onstatechange = function() {\n if (installingWorker.state === 'installed') {\n window.dispatchEvent(new Event('swUpdate'))\n }\n }\n }\n })\n .catch(function(err) { console.error('service worker error', err) });\n });\n}`)(r),n},nM=async(e,t,r)=>{try{const n=await t.fs.readFile(r),i=`p-${await e.sys.generateContentHash(n,e.hashedFileNameLength)}${Ke(r)}`;return await t.fs.writeFile(Ge(We(r),i),n),i}catch(e){}},iM=(e,t)=>e.startsWith("./")&&(e.endsWith(".js")||e.endsWith(".mjs"))?t+e.substring(2):null,aM=e=>()=>t=>(t.statements.filter(p.isImportDeclaration).filter((e=>null!=e.moduleSpecifier)).filter((e=>p.isStringLiteral(e.moduleSpecifier)&&e.moduleSpecifier.text)).forEach((t=>{p.isStringLiteral(t.moduleSpecifier)&&e.push(t.moduleSpecifier.text)})),t),oM=async(e,t,r)=>{const n=e.outputTargets.filter(ju);if(0===n.length)return;const i=r.createTimeSpan("generate www started",!0),a=sM(r);await Promise.all(n.map((n=>cM(e,t,r,a,n)))),i.finish("generate www finished")},sM=e=>{const t=e.componentGraph;return e.indexDoc&&t?V(j(IP(e.indexDoc,e.components).map((e=>td(e))).map((t=>e.componentGraph.get(t)||[])))).sort():[]},cM=async(e,t,r,n,i)=>{e.buildEs5||await(async(e,t,r)=>{const n=`${e.fsNamespace}.js`,i=Ge(r.buildDir,n);return await t.fs.writeFile(i,(e=>{const t="\n<style>\nbody {\n display: block !important;\n font-family: sans-serif;\n padding: 20px;\n line-height:22px;\n}\nh1 {\n font-size: 18px;\n}\nh2 {\n font-size: 14px;\n margin-top: 40px;\n}\n</style>\n",r=`\n ${t}\n\n <h1>This Stencil app is disabled for this browser.</h1>\n\n <h2>Developers:</h2>\n <ul>\n <li>ES5 builds are disabled <strong>during development</strong> to take advantage of 2x faster build times.</li>\n <li>Please see the example below or our <a href="https://stenciljs.com/docs/stencil-config" target="_blank" rel="noopener noreferrer">config docs</a> if you would like to develop on a browser that does not fully support ES2017 and custom elements.</li>\n <li>Note that as of Stencil v2, ES5 builds and polyfills are <strong>disabled</strong> during production builds. You can enable these <a href="https://stenciljs.com/docs/config#buildes5" target="_blank" rel="noopener noreferrer">in your stencil.config.ts file</a>.</li>\n <li>When testing browsers it is recommended to always test in production mode, and ES5 builds should always be enabled during production builds.</li>\n <li><em>This is only an experiment and if it slows down app development then we will revert this and enable ES5 builds during dev.</em></li>\n </ul>\n\n\n <h2>Enabling ES5 builds during development:</h2>\n <pre>\n <code>npm run dev --es5</code>\n </pre>\n <p>For stencil-component-starter, use:</p>\n <pre>\n <code>npm start --es5</code>\n </pre>\n\n\n <h2>Enabling full production builds during development:</h2>\n <pre>\n <code>npm run dev --prod</code>\n </pre>\n <p>For stencil-component-starter, use:</p>\n <pre>\n <code>npm start --prod</code>\n </pre>\n\n <h2>Current Browser's Support:</h2>\n <ul>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import">ES Module Imports</a>: <span id="es-modules-test"></span></li>\n <li><a href="http://2ality.com/2017/01/import-operator.html">ES Dynamic Imports</a>: <span id="es-dynamic-modules-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements">Custom Elements</a>: <span id="custom-elements-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM">Shadow DOM</a>: <span id="shadow-dom-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API">fetch</a>: <span id="fetch-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables">CSS Variables</a>: <span id="css-variables-test"></span></li>\n </ul>\n\n <h2>Current Browser:</h2>\n <pre>\n <code id="current-browser-output"></code>\n </pre>\n `,n=`\n ${t}\n\n <h1>Update src/index.html</h1>\n\n <p>Stencil recently changed how scripts are loaded in order to improve performance.</p>\n\n <h2>BEFORE:</h2>\n <p>Previously, a single script was included that handled loading the correct JavaScript based on browser support.</p>\n <pre>\n <code>${le(`<script src="/build/${e.fsNamespace}.js"><\/script>\n`)}</code>\n </pre>\n\n <h2 style="margin-top:0">AFTER:</h2>\n <p>The index.html should now include two scripts using the modern ES Module script pattern.\n Note that only one file will actually be requested and loaded based on the browser's native support for ES Modules.\n For more info, please see <a href="https://developers.google.com/web/fundamentals/primers/modules#browser" target="_blank" rel="noopener noreferrer">Using JavaScript modules on the web</a>.\n </p>\n <pre>\n <code>${le("<script")} <span style="background:yellow">type="module"</span> src="/build/${e.fsNamespace}<span style="background:yellow">.esm</span>.js"${le("><\/script>")}\n ${le("<script")} <span style="background:yellow">nomodule</span> ${le(`src="/build/${e.fsNamespace}.js"><\/script>`)}</code>\n </pre>\n `;return`${Ie(e)}\n(function() {\n function checkSupport() {\n if (!document.body) {\n setTimeout(checkSupport);\n return;\n }\n function supportsDynamicImports() {\n try {\n new Function('import("")');\n return true;\n } catch (e) {}\n return false;\n }\n var supportsEsModules = !!('noModule' in document.createElement('script'));\n\n if (!supportsEsModules) {\n document.body.innerHTML = '${ZO(r)}';\n\n document.getElementById('current-browser-output').textContent = window.navigator.userAgent;\n document.getElementById('es-modules-test').textContent = supportsEsModules;\n document.getElementById('es-dynamic-modules-test').textContent = supportsDynamicImports();\n document.getElementById('shadow-dom-test').textContent = !!(document.head.attachShadow);\n document.getElementById('custom-elements-test').textContent = !!(window.customElements);\n document.getElementById('css-variables-test').textContent = !!(window.CSS && window.CSS.supports && window.CSS.supports('color', 'var(--c)'));\n document.getElementById('fetch-test').textContent = !!(window.fetch);\n } else {\n document.body.innerHTML = '${ZO(n)}';\n }\n }\n\n setTimeout(checkSupport);\n})();`})(e)),n})(e,t,i),r.indexDoc&&i.indexHtml&&await dM(e,t,r,n,i),await lM(t,i)},lM=(e,t)=>{const r=Yl(t),n=Ge(t.appDir,"host.config.json"),i=JSON.stringify({hosting:{headers:[{source:Ge(r,"/p-*"),headers:[{key:"Cache-Control",value:"max-age=31556952, s-maxage=31556952, immutable"}]}]}},null," ");return e.fs.writeFile(n,i,{outputTargetType:t.type})},dM=async(e,t,r,n,i)=>{if(!t.hasSuccessfulBuild||r.hasHtmlChanges)try{const o=null==(a=r.indexDoc)?null:((e,t={})=>{if(null==e)return null;const r=new bf(!1);if(t.customElementProxy||(e.customElements=null),null!=e.document){const t=new Sf(!1,r);r.document=t,t.documentElement=e.document.documentElement.cloneNode(!0)}else r.document=new Sf(null,r);return r})(a.defaultView).document;if(((e,t,r)=>{const n=Yl(r),i=`${e.fsNamespace}.esm.js`,a=`${e.fsNamespace}.js`,o=Ge(n,i),s=Ge(n,a),c=Array.from(t.querySelectorAll("script")),l=c.find((e=>e.getAttribute("src")===o)),d=c.find((e=>e.getAttribute("src")===s));l&&l.setAttribute("data-stencil",""),d&&d.setAttribute("data-stencil","")})(e,o,i),await(async(e,t,r,n)=>{const i=n.serviceWorker;!1!==i&&(i&&i.unregister||!i&&e.devMode?(e=>{const t=e.createElement("script");t.innerHTML="\nif ('serviceWorker' in navigator && location.protocol !== 'file:') {\n // auto-unregister service worker during dev mode\n navigator.serviceWorker.getRegistration().then(function(registration) {\n if (registration) {\n registration.unregister().then(function() { location.reload(true) });\n }\n });\n}\n",e.body.appendChild(t)})(r):i&&await(async(e,t,r)=>{const n=((e,t)=>{let r=me(Xe(e.appDir,t.swDest));"/"!==r.charAt(0)&&(r="/"+r);let n=new URL(e.baseUrl,"http://config.stenciljs.com").pathname;return n.endsWith("/")||(n+="/"),r=n+r.substring(1),r})(t,t.serviceWorker),i=rM(r,e,n);r.body.appendChild(i)})(t,n,r))})(e,r,o,i),!e.watch&&!e.devMode){const r=await nM(e,t,Ge(i.buildDir,`${e.fsNamespace}.css`)),a=await(async(e,t,r,n)=>{const i=Yl(n),a=`${e.fsNamespace}.esm.js`,o=Ge(i,a),s=Array.from(r.querySelectorAll("script")).find((e=>"module"===e.getAttribute("type")&&!e.hasAttribute("crossorigin")&&e.getAttribute("src")===o));if(!s)return!1;s.setAttribute("data-resources-url",i),s.setAttribute("data-stencil-namespace",e.fsNamespace);const c=Ge(n.buildDir,a),l=await t.fs.readFile(c);if(G(l)){if(e.allowInlineScripts&&l.length<1024){const e=((e,t)=>{const r=[],n=p.createSourceFile("module.ts",e,p.ScriptTarget.Latest);return p.transform(n,[aM(r)]),r.forEach((r=>{const n=iM(r,t);n&&(e=(e=e.replace(`"${r}"`,`"${n}"`)).replace(`'${r}'`,`'${n}'`))})),{code:e,orgImportPaths:r}})(l,i);e.orgImportPaths.length>0&&(s.removeAttribute("src"),s.innerHTML=e.code)}else{const n=await nM(e,t,c);if(n){const e=Ge(i,n);s.setAttribute("src",e),Ql(r,[e])}}return!0}return!1})(e,t,o,i);await((e,t,r,n)=>{const i=Array.from(t.querySelectorAll("link[rel=stylesheet]"));return Promise.all(i.map((async i=>{const a=i.getAttribute("href");if("string"==typeof a&&a.startsWith("/")&&null===i.getAttribute("media"))try{const o=Ge(n.dir,a),s=await e.fs.readFile(o);if(s.length>r)return;const c=t.createElement("style");c.innerHTML=s,i.parentNode.insertBefore(c,i),i.remove()}catch(e){}})))})(t,o,uM,i),((e,t,r,n)=>{if(!r)return;const i=Yl(n),a=Ge(i,e.fsNamespace+".css"),o=Ge(i,r);if(a===o)return;const s=new RegExp(a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")+"$");Array.from(t.querySelectorAll("link")).forEach((e=>{const t=e.getAttribute("href");if(t){const r=t.replace(s,o);r!==t&&e.setAttribute("href",r)}}))})(e,o,r,i),a&&((e,t,r)=>{const n=Yl(r),i=t.map((e=>Ge(n,e)));Ql(e,i)})(o,n,i)}const s=Zp(o);await t.fs.writeFile(i.indexHtml,s,{outputTargetType:i.type}),i.serviceWorker&&e.flags.prerender&&await t.fs.writeFile(Ge(i.appDir,"index-org.html"),s,{outputTargetType:i.type}),r.debug(`generateIndexHtml, write: ${Xe(e.rootDir,i.indexHtml)}`)}catch(e){re(r.diagnostics,e)}var a},uM=3072,pM=async(e,t,r)=>{const n=r.createTimeSpan("generate outputs started",!0),i=Array.from(t.changedModules).map((e=>t.moduleMap.get(e))).filter((e=>e&&!e.isCollectionDependency));t.changedModules.clear(),_M(t),await Promise.all([gI(e,t,r),Xf(e,t,r),Om(e,t,r,i),ZF(e,t,r),iP(e,t,r),PP(e,t,r),PO(e,t),pI(e,t,r),oM(e,t,r)]),await(async(e,t,r)=>{if(!e.buildDocs)return;const n=e.outputTargets.filter((e=>Ou(e)||Ru(e)||Lu(e)||Bu(e)||Uu(e)));if(0===n.length)return;await r.stylesPromise;const i=await(async(e,t,r)=>({timestamp:II(),compiler:{name:"@stencil/core",version:dt,typescriptVersion:lt},components:await LI(e,t,r)}))(e,t,r);await Promise.all([CO(e,t,i,n),tO(e,t,i,n),kO(t,i,n),FI(e,i,n),FO(e,t,r,i,n)])})(e,t,r),await(async(e,t,r)=>{const n=e.outputTargets.filter(zu);if(0===n.length)return;const i=r.createTimeSpan("generate types started",!0);await Promise.all(n.map((n=>(async(e,t,r,n)=>{r.hasError||(await QO(e,t,r,n),await(async(e,t)=>{const r=e.outputTargets.filter(zu).filter((e=>e.typesDir)),n=Ge(e.sys.getCompilerExecutingPath(),"..","..","internal",WO),i=await t.fs.readFile(n);return Promise.all(r.map((e=>{const r=Ge(e.typesDir,WO);return t.fs.writeFile(r,i,{outputTargetType:e.type})})))})(e,t))})(e,t,r,n)))),i.finish("generate types finished")})(e,t,r),n.finish("generate outputs finished")},_M=e=>{const t=e.changedFiles;e.rollupCache.forEach((e=>{e.modules.forEach((e=>{e.transformDependencies.some((e=>t.has(e)))&&(e.originalCode=null)}))}))},fM=e=>Su(e)||Cu(e)||Au(e)||ju(e)||Nu(e)||Fu(e)||Iu(e),mM=async(e,t,r)=>{let n=e.globalStyle;if(!n)return null;if(await gM(e,t,r))return t.cachedGlobalStyle;try{n=me(n),t.addWatchFile(n);const i=await(async(e,t,r,n,i)=>{const a={config:e,sys:e.sys,fs:t.fs,cache:t.cache,diagnostics:[]},o=await(async(e,t)=>{for(const r of e.config.plugins)if(W(r.resolveId))try{const n=r.resolveId(t,null,e);if(null!=n)if(W(n.then)){const e=await n;if(null!=e)return e}else if(G(n))return n}catch(t){re(e.diagnostics,t)}return t})(a,n),s=await(async(e,t)=>{for(const r of e.config.plugins)if(W(r.load))try{const n=r.load(t,e);if(null!=n)if(W(n.then)){const e=await n;if(null!=e)return e}else if(G(n))return n}catch(t){re(e.diagnostics,t)}return e.fs.readFile(t)})(a,o);if(!G(s)){const t=Z(r.diagnostics);return t.header=`Unable to find "${He(n)}"`,t.messageText=`The file "${Xe(e.rootDir,n)}" was unable to load.`,null}const c={code:s,id:n},l=c.id.toLowerCase().endsWith(".css"),d=null!=i&&e.outputTargets.some(Mu);if(l)if(d&&null!=i){i.styleDocs=i.styleDocs||[];const a=await iw(e,t,r,n,n,c.code,i.styleDocs);c.code=a.styleText,c.dependencies=a.imports}else{const i=await iw(e,t,r,n,n,c.code);c.code=i.styleText,c.dependencies=i.imports}for(const e of a.config.plugins)if(W(e.transform))try{let t;const r=e.transform(c.code,c.id,a);null!=r&&(t=W(r.then)?await r:r,null!=t&&(G(t)?c.code=t:(G(t.code)&&(c.code=t.code),G(t.id)&&(c.id=t.id))))}catch(e){re(r.diagnostics,e)}if(r.diagnostics.push(...a.diagnostics),!l)if(d&&null!=i){i.styleDocs=i.styleDocs||[];const a=await iw(e,t,r,n,c.id,c.code,i.styleDocs);c.code=a.styleText,c.dependencies=a.imports}else{const i=await iw(e,t,r,n,c.id,c.code);c.code=i.styleText,c.dependencies=i.imports}return c})(e,t,r,n);if(i){const a=await(async(e,t,r,n,i)=>{if("string"!=typeof n||!n.length)return n;if((!1===e.autoprefixCss||null===e.autoprefixCss)&&!e.minifyCss)return n;"string"==typeof i&&(i=me(i));const a={input:n,filePath:i,autoprefixer:e.autoprefixCss,minify:e.minifyCss},o=await t.cache.createKey("optimizeCss","autoprefixer10.4.13_postcss8.4.19_7",a),s=await t.cache.get(o);if(null!=s)return s;const c=await t.worker.optimizeCss(a);return c.diagnostics.forEach((e=>{r.push(e)})),"string"!=typeof c.output||ne(r)?n:(await t.cache.put(o,c.output),c.output)})(e,t,r.diagnostics,i.code,n);if(t.cachedGlobalStyle=a,Array.isArray(i.dependencies)){const e=t.cssModuleImports.get(n)||[];i.dependencies.forEach((r=>{t.addWatchFile(r),e.includes(r)||e.push(r)})),t.cssModuleImports.set(n,e)}return a}}catch(e){re(r.diagnostics,e).absFilePath=n}return t.cachedGlobalStyle=null,null},gM=async(e,t,r)=>{if(!t.cachedGlobalStyle)return!1;if(r.requiresFullBuild)return!1;if(r.isRebuild&&!r.hasStyleChanges)return!0;if(r.filesChanged.includes(e.globalStyle))return!1;const n=t.cssModuleImports.get(e.globalStyle);return(!n||!r.filesChanged.some((e=>n.includes(e))))&&!await hM(e,t,r,e.globalStyle,t.cachedGlobalStyle,[])},hM=async(e,t,r,n,i,a)=>!a.includes(n)&&(a.push(n),yM(e,t,r,n,i,a)),yM=async(e,t,r,n,i,a)=>{const o=await ow(e,t,r,n,i);if(0===o.length)return!1;if(r.filesChanged.some((e=>o.some((t=>t.filePath===e)))))return!0;const s=o.map((async n=>{try{const i=await t.fs.readFile(n.filePath);return hM(e,t,r,n.filePath,i,a)}catch(e){return!1}}));return(await Promise.all(s)).includes(!0)};function vM(e){!(e=>{const t=new Set;e.forEach((r=>{bM(r,e,t),r.dependencies=V(r.dependencies).sort()}))})(e),(e=>{e.forEach((t=>{!((e,t)=>{e.dependents=t.filter((t=>t.dependencies.includes(e.tagName))).map((e=>e.tagName)).sort(),e.directDependents=t.filter((t=>t.directDependencies.includes(e.tagName))).map((e=>e.tagName)).sort()})(t,e)}))})(e)}function bM(e,t,r){if(r.has(e))return e.dependencies;r.add(e);const n=V(e.potentialCmpRefs.filter((e=>t.some((t=>t.tagName===e)))));e.dependencies=e.directDependencies=n;const i=j(n.map((e=>t.find((t=>t.tagName===e)))).map((e=>bM(e,t,r))));return e.dependencies=[...n,...i]}const EM=e=>p.isCallExpression(e.expression)?e.expression.arguments.map(xM):[],xM=e=>{if(p.isObjectLiteralExpression(e))return dm(e);if(p.isStringLiteral(e))return e.text;throw new Error(`invalid decorator argument: ${e.getText()}`)},DM=e=>t=>p.isCallExpression(t.expression)&&t.expression.expression.getText()===e,SM=e=>{const t=We(e),r=Ke(e),n=He(e,r);return Ge(t,n+".css")},TM=e=>Array.isArray(e)?e:e?[e]:[],CM=(e,t,r,n,i,a)=>{const[o]=EM(a);if(!o)return;if(!AM(e,r,t,o,n,a))return;i.push(sm("is",im(o.tag.trim()))),o.shadow?(i.push(sm("encapsulation",im("shadow"))),"boolean"!=typeof o.shadow&&!0===o.shadow.delegatesFocus&&i.push(sm("delegatesFocus",im(!0)))):o.scoped&&i.push(sm("encapsulation",im("scoped"))),((e,t)=>{const r=[];t.styleUrls&&(Array.isArray(t.styleUrls)?r.push(...TM(t.styleUrls)):r.push(...TM(t.styleUrls.$))),t.styleUrl&&r.push(...TM(t.styleUrl));let n={};if(t.styleUrls&&!Array.isArray(t.styleUrls)&&(n=(e=>{const t={};return Object.keys(e).forEach((r=>{t[r]=TM(e[r])})),t})(t.styleUrls)),r.length>0&&(n.$=r),Object.keys(n).length>0){const t=im(n);e.push(sm("originalStyleUrls",t));const r=(e=>{const t={};return Object.keys(e).forEach((r=>{t[r]=e[r].map((e=>SM(e)))})),t})(n),i=im(r);e.push(sm("styleUrls",i))}if("string"==typeof t.styles){const r=t.styles.trim();r.length>0&&e.push(sm("styles",p.factory.createStringLiteral(r)))}else if(t.styles){const r=t.styles;if(r.__identifier){const t=r.__escapedText;e.push(sm("styles",p.factory.createIdentifier(t)))}else"object"==typeof r&&Object.keys(r).length>0&&e.push(sm("styles",im(r)))}})(i,o);const s=o.assetsDirs||[];if(G(o.assetsDir)){s.push(o.assetsDir);const e=ee(r);e.messageText='@Component option "assetsDir" should be renamed to "assetsDirs" and the value should be an array of strings.',Te(e,a)}s.length>0&&i.push(sm("assetsDirs",im(s)))},AM=(e,t,r,n,i,a)=>{var o;const s=i.heritageClauses&&i.heritageClauses.find((e=>e.token===p.SyntaxKind.ExtendsKeyword));if(s){const e=Z(t);return e.messageText="Classes decorated with @Component can not extend from a base class.\n Stencil needs to be able to switch between different base classes in order to implement the different output targets such as: lazy and raw web components.",Te(e,s),!1}if(n.shadow&&n.scoped){const e=Z(t);return e.messageText='Components cannot be "scoped" and "shadow" at the same time, they are mutually exclusive configurations.',Te(e,kM("scoped",a)),!1}const c=i.members.find(p.isConstructorDeclaration);if(c&&c.parameters.length>0){const e=Z(t);return e.messageText='Classes decorated with @Component can not have a "constructor" that takes arguments.\n All data required by a component must be passed by using class properties decorated with @Prop()',Te(e,c.parameters[0]),!1}const l=null===(o=Fm(i))||void 0===o?void 0:o.find((e=>e!==a));if(l){const e=Z(t);return e.messageText="Classes decorated with @Component can not be decorated with more decorators.\n Stencil performs extensive static analysis on top of your components in order to generate the necessary metadata, runtime decorators at the components level make this task very hard.",Te(e,l),!1}const d=n.tag;if("string"!=typeof d||0===d.trim().length){const e=Z(t);return e.messageText="tag missing in component decorator",Te(e,a),!1}const u=Be(d);if(u){const e=Z(t);return e.messageText=`${u}. Please refer to https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name for more info.`,Te(e,kM("tag",a)),!1}if(!e._isTesting){const e=r.getExportsOfModule(r.getSymbolAtLocation(i.getSourceFile())).filter((e=>0==(e.flags&(p.SymbolFlags.Interface|p.SymbolFlags.TypeAlias)))).filter((e=>e.name!==i.name.text));if(e.forEach((e=>{const r=Z(t);r.messageText="To allow efficient bundling, modules using @Component() can only have a single export which is the component class itself.\n Any other exports should be moved to a separate file.\n For further information check out: https://stenciljs.com/docs/module-bundling";const n=e.valueDeclaration?e.valueDeclaration:e.declarations[0];Te(r,n)})),e.length>0)return!1}return!0},kM=(e,t)=>{if(p.isDecorator(t)&&p.isCallExpression(t.expression)){const r=t.expression.arguments[0];p.isObjectLiteralExpression(r)&&r.properties.forEach((r=>{p.isPropertyAssignment(r)&&r.name.getText()===e&&(t=r.initializer)}))}return t},NM=(e,t)=>e&&"string"==typeof e.eventName&&e.eventName.trim().length>0?e.eventName.trim():t,wM=(e,t)=>{const r=t.getSourceFile(),n=t.type?FM(t.type):null;return{original:n?n.getText():"any",resolved:n?ym(e,e.getTypeFromTypeNode(n)):"any",references:n?_m(n,r):{}}},FM=e=>p.isTypeReferenceNode(e)&&p.isIdentifier(e.typeName)&&"EventEmitter"===e.typeName.text&&e.typeArguments&&e.typeArguments.length>0?e.typeArguments[0]:null,PM=(e,t,r)=>{if(/^[A-Z]/.test(r)){const r=ee(e);return r.messageText=["In order to be compatible with all event listeners on elements, the event name ","cannot start with a capital letter. ","Please lowercase the first character for the event to best work with all listeners."].join(""),Te(r,t),void 0}if(/^on[A-Z]/.test(r)){const n=ee(e),i=r[2].toLowerCase()+r.slice(3);return n.messageText=`Events decorated with @Event() should describe the actual DOM event name, not the handler. In other words "${r}" would be better named as "${i}".`,Te(n,t),void 0}if(IM.has(r.toLowerCase())){const n=ee(e);return n.messageText=`The event name conflicts with the "${r}" native DOM event name.`,Te(n,t),void 0}},IM=new Set(["CheckboxStateChange","DOMContentLoaded","DOMMenuItemActive","DOMMenuItemInactive","DOMMouseScroll","MSManipulationStateChanged","MSPointerHover","MozAudioAvailable","MozGamepadButtonDown","MozGamepadButtonUp","MozMousePixelScroll","MozOrientation","MozScrolledAreaChanged","RadioStateChange","SVGAbort","SVGError","SVGLoad","SVGResize","SVGScroll","SVGUnload","SVGZoom","abort","afterprint","afterscriptexecute","alerting","animationcancel","animationend","animationiteration","animationstart","appinstalled","audioend","audioprocess","audiostart","auxclick","beforeinstallprompt","beforeprint","beforescriptexecute","beforeunload","beginEvent","blur","boundary","broadcast","busy","callschanged","canplay","canplaythrough","cardstatechange","cfstatechange","change","chargingchange","chargingtimechange","checking","click","command","commandupdate","compassneedscalibration","complete","compositionend","compositionstart","compositionupdate","connected","connecting","connectionInfoUpdate","contextmenu","copy","cut","datachange","dataerror","dblclick","delivered","devicechange","devicemotion","deviceorientation","dialing","disabled","dischargingtimechange","disconnected","disconnecting","downloading","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","enabled","end","endEvent","ended","error","focus","focusin","focusout","fullscreenchange","fullscreenerror","gamepadconnected","gamepaddisconnected","gotpointercapture","hashchange","held","holding","icccardlockerror","iccinfochange","incoming","input","invalid","keydown","keypress","keyup","languagechange","levelchange","load","loadeddata","loadedmetadata","loadend","loadstart","localized","lostpointercapture","mark","message","messageerror","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","mozbrowseractivitydone","mozbrowserasyncscroll","mozbrowseraudioplaybackchange","mozbrowsercaretstatechanged","mozbrowserclose","mozbrowsercontextmenu","mozbrowserdocumentfirstpaint","mozbrowsererror","mozbrowserfindchange","mozbrowserfirstpaint","mozbrowsericonchange","mozbrowserloadend","mozbrowserloadstart","mozbrowserlocationchange","mozbrowsermanifestchange","mozbrowsermetachange","mozbrowseropensearch","mozbrowseropentab","mozbrowseropenwindow","mozbrowserresize","mozbrowserscroll","mozbrowserscrollareachanged","mozbrowserscrollviewchange","mozbrowsersecuritychange","mozbrowserselectionstatechanged","mozbrowsershowmodalprompt","mozbrowsertitlechange","mozbrowserusernameandpasswordrequired","mozbrowservisibilitychange","moztimechange","msContentZoom","nomatch","notificationclick","noupdate","obsolete","offline","online","orientationchange","overflow","pagehide","pageshow","paste","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","pointerlockerror","pointermove","pointerout","pointerover","pointerup","popstate","popuphidden","popuphiding","popupshowing","popupshown","progress","push","pushsubscriptionchange","ratechange","readystatechange","received","repeatEvent","reset","resize","resourcetimingbufferfull","result","resume","resuming","scroll","seeked","seeking","select","selectionchange","selectstart","sent","show","slotchange","smartcard-insert","smartcard-remove","soundend","soundstart","speechend","speechstart","stalled","start","statechange","statuschange","stkcommand","stksessionend","storage","submit","suspend","timeout","timeupdate","touchcancel","touchend","touchenter","touchleave","touchmove","touchstart","transitioncancel","transitionend","transitionrun","transitionstart","underflow","unload","updateready","userproximity","ussdreceived","visibilitychange","voicechange","voiceschanged","volumechange","vrdisplayactivate","vrdisplayblur","vrdisplayconnect","vrdisplaydeactivate","vrdisplaydisconnect","vrdisplayfocus","vrdisplaypresentchange","waiting","wheel"].map((e=>e.toLowerCase()))),OM=(e,t={},r)=>{const n=e.trim();return{name:n,method:r,target:t.target,capture:"boolean"==typeof t.capture&&t.capture,passive:"boolean"==typeof t.passive?t.passive:MM.has(n.toLowerCase())}},MM=new Set(["dragstart","drag","dragend","dragenter","dragover","dragleave","drop","mouseenter","mouseover","mousemove","mousedown","mouseup","mouseleave","mouseout","mousewheel","pointerover","pointerenter","pointerdown","pointermove","pointerup","pointercancel","pointerout","pointerleave","resize","scroll","touchstart","touchmove","touchend","touchenter","touchleave","touchcancel","wheel"]),RM=(e,t,r,n,i)=>{if(BM.has(t.toLowerCase())){const a=ee(e);return a.messageText=[`The ${r} name "${t}" is a reserved public name. `,`Please rename the "${t}" ${n} so it does not conflict with an existing standardized prototype member. `,`Reusing ${n} names that are already defined on the element's prototype may cause `,"unexpected runtime errors or user-interface issues on various browsers, so it's best to avoid them entirely."].join(""),Te(a,i),void 0}},LM=["title","lang","translate","dir","tabIndex","accessKey","draggable","contentEditable","isContentEditable","offsetParent","offsetTop","offsetLeft","offsetWidth","offsetHeight","style","innerText","outerText","oncopy","oncut","onpaste","onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onresize","onscroll","onseeked","onseeking","onselect","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","onvolumechange","onwaiting","onwheel","onauxclick","ongotpointercapture","onlostpointercapture","onpointerdown","onpointermove","onpointerup","onpointercancel","onpointerover","onpointerout","onpointerenter","onpointerleave","onselectstart","onselectionchange","nonce","click","focus","blur","namespaceURI","prefix","localName","tagName","id","className","classList","slot","attributes","shadowRoot","assignedSlot","innerHTML","outerHTML","scrollTop","scrollLeft","scrollWidth","scrollHeight","clientTop","clientLeft","clientWidth","clientHeight","attributeStyleMap","onbeforecopy","onbeforecut","onbeforepaste","onsearch","previousElementSibling","nextElementSibling","children","firstElementChild","lastElementChild","childElementCount","onfullscreenchange","onfullscreenerror","onwebkitfullscreenchange","onwebkitfullscreenerror","setPointerCapture","releasePointerCapture","hasPointerCapture","hasAttributes","getAttributeNames","getAttribute","getAttributeNS","setAttribute","setAttributeNS","removeAttribute","removeAttributeNS","hasAttribute","hasAttributeNS","toggleAttribute","getAttributeNode","getAttributeNodeNS","setAttributeNode","setAttributeNodeNS","removeAttributeNode","closest","matches","webkitMatchesSelector","attachShadow","getElementsByTagName","getElementsByTagNameNS","getElementsByClassName","insertAdjacentElement","insertAdjacentText","insertAdjacentHTML","requestPointerLock","getClientRects","getBoundingClientRect","scrollIntoView","scroll","scrollTo","scrollBy","scrollIntoViewIfNeeded","animate","computedStyleMap","before","after","replaceWith","remove","prepend","append","querySelector","querySelectorAll","requestFullscreen","webkitRequestFullScreen","webkitRequestFullscreen","part","createShadowRoot","getDestinationInsertionPoints","ELEMENT_NODE","ATTRIBUTE_NODE","TEXT_NODE","CDATA_SECTION_NODE","ENTITY_REFERENCE_NODE","ENTITY_NODE","PROCESSING_INSTRUCTION_NODE","COMMENT_NODE","DOCUMENT_NODE","DOCUMENT_TYPE_NODE","DOCUMENT_FRAGMENT_NODE","NOTATION_NODE","DOCUMENT_POSITION_DISCONNECTED","DOCUMENT_POSITION_PRECEDING","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC","nodeType","nodeName","baseURI","isConnected","ownerDocument","parentNode","parentElement","childNodes","firstChild","lastChild","previousSibling","nextSibling","nodeValue","textContent","hasChildNodes","getRootNode","normalize","cloneNode","isEqualNode","isSameNode","compareDocumentPosition","contains","lookupPrefix","lookupNamespaceURI","isDefaultNamespace","insertBefore","appendChild","replaceChild","removeChild","ref","key"].map((e=>e.toLowerCase())),BM=new Set(LM),UM=e=>/^Promise<.+>$/.test(e),jM=(e,t)=>{if(null!==t.attribute)return"string"==typeof t.attribute&&t.attribute.trim().length>0?t.attribute.trim().toLowerCase():M(e)},VM=(e,t,r)=>{if("boolean"==typeof r.reflect)return r.reflect;if("boolean"==typeof r.reflectToAttr){const n=Z(e);return n.header='Rename "reflectToAttr" to "reflect"',n.messageText='@Prop option "reflectToAttr" should be renamed to "reflect".',Te(n,t),r.reflectToAttr}return!1},zM=(e,t,r)=>{const n=t.type;return{original:n?n.getText():vm(e,r),resolved:ym(e,r),references:_m(t,t.getSourceFile())}},HM=e=>{if(WM(e,$M))return"any";const t=WM(e,GM),r=WM(e,JM),n=WM(e,KM);return Number(t)+Number(r)+Number(n)>1?"any":t?"string":r?"number":n?"boolean":"unknown"},WM=(e,t)=>!!(e.flags&p.TypeFlags.Union&&e.types.some((e=>WM(e,t))))||t(e),KM=e=>!!e&&!!(e.flags&(p.TypeFlags.Boolean|p.TypeFlags.BooleanLike)),JM=e=>!!e&&!!(e.flags&(p.TypeFlags.Number|p.TypeFlags.NumberLike|p.TypeFlags.NumberLiteral)),GM=e=>!!e&&!!(e.flags&(p.TypeFlags.String|p.TypeFlags.StringLike|p.TypeFlags.StringLiteral)),$M=e=>!!e&&!!(e.flags&p.TypeFlags.Any),qM=(e,t,r)=>n=>{const i=a=>p.isClassDeclaration(a)?XM(e,t,r,a):p.visitEachChild(a,i,n);return e=>p.visitEachChild(e,i,n)},XM=(e,t,r,n)=>{var i,a,o;const s=null===(i=Fm(n))||void 0===i?void 0:i.find(DM("Component"));if(!s)return n;const c=n.members,l=c.filter((e=>{var t,r;return(null!==(r=null===(t=Fm(e))||void 0===t?void 0:t.length)&&void 0!==r?r:0)>0})),d=YM(Array.from(c),t);CM(e,r,t,n,d,s);const u=new Set;l.length>0&&(((e,t,r,n,i)=>{const a=t.filter(p.isPropertyDeclaration).map((t=>((e,t,r,n)=>{var i;const a=null===(i=Fm(r))||void 0===i?void 0:i.find(DM("Prop"));if(null==a)return null;const o=EM(a)[0]||{},s=r.name.getText();if(nm(r)){const t=Z(e);t.messageText='Properties decorated with the @Prop() decorator cannot be "private" nor "protected". More info: https://stenciljs.com/docs/properties',Te(t,Pm(r)[0])}if(/^on(-|[A-Z])/.test(s)){const t=ee(e);t.messageText=`The @Prop() name "${s}" looks like an event. Please use the "@Event()" decorator to expose events instead, not properties or methods.`,Te(t,r.name)}else RM(e,s,"@Prop()","prop",r.name);const c=t.getSymbolAtLocation(r.name),l=t.getTypeAtLocation(r),d=HM(l),u={type:d,mutable:!!o.mutable,complexType:zM(t,r,l),required:void 0!==r.exclamationToken&&"mode"!==s,optional:void 0!==r.questionToken,docs:Tm(t,c)};gm(e,u.complexType.references,r.type),"unknown"!==d&&(u.attribute=jM(s,o),u.reflect=VM(e,a,o));const _=r.initializer;_&&(u.defaultValue=_.getText());const f=p.factory.createPropertyAssignment(p.factory.createStringLiteral(s),im(u));return n.add(s),f})(e,r,t,n))).filter((e=>null!=e));a.length>0&&i.push(sm("properties",p.factory.createObjectLiteralExpression(a,!0)))})(t,l,r,u,d),((e,t,r)=>{const n=e.filter(p.isPropertyDeclaration).map((e=>((e,t)=>{var r;if(null==(null===(r=Fm(e))||void 0===r?void 0:r.find(DM("State"))))return null;const n=e.name.getText();return t.add(n),p.factory.createPropertyAssignment(p.factory.createStringLiteral(n),p.factory.createObjectLiteralExpression([],!0))})(e,t))).filter((e=>!!e));n.length>0&&r.push(sm("states",p.factory.createObjectLiteralExpression(n,!0)))})(l,u,d),((e,t,r,n)=>{const i=t.filter(p.isPropertyDeclaration).map((t=>((e,t,r)=>{var n;const i=null===(n=Fm(r))||void 0===n?void 0:n.find(DM("Event"));if(null==i)return null;const a=r.name.getText();if(!a)return null;const[o]=EM(i),s=t.getSymbolAtLocation(r.name),c=NM(o,a);PM(e,r.name,c);const l={method:a,name:c,bubbles:!o||"boolean"!=typeof o.bubbles||o.bubbles,cancelable:!o||"boolean"!=typeof o.cancelable||o.cancelable,composed:!o||"boolean"!=typeof o.composed||o.composed,docs:Tm(t,s),complexType:wM(t,r)};return gm(e,l.complexType.references,r.type),l})(e,r,t))).filter((e=>!!e));i.length>0&&n.push(sm("events",im(i)))})(t,l,r,d),((e,t,r,n,i,a)=>{const o=r.getSourceFile(),s=n.filter(p.isMethodDeclaration).map((r=>((e,t,r,n,i)=>{var a;if(null==(null===(a=Fm(i))||void 0===a?void 0:a.find(DM("Method"))))return null;const o=i.name.getText(),s=p.TypeFormatFlags.WriteArrowStyleSignature|p.TypeFormatFlags.NoTruncation,c=n.getSignatureFromDeclaration(i),l=n.getReturnTypeOfSignature(c),d=n.typeToTypeNode(l,i,p.NodeBuilderFlags.NoTruncation|p.NodeBuilderFlags.NoTypeReduction);let u=vm(n,l),_=n.signatureToString(c,i,s,p.SignatureKind.Call);if(!e._isTesting)if("void"===u){const e=ee(t);e.header="@Method requires async",e.messageText=`External @Method() ${o}() must return a Promise.\n\n Consider prefixing the method with async, such as @Method() async ${o}().`,Te(e,i.name),u="Promise<void>",_=_.replace(/=> void$/,"=> Promise<void>")}else if(!UM(u)){const e=Z(t);e.header="@Method requires async",e.messageText=`External @Method() ${o}() must return a Promise.\n\n Consider prefixing the method with async, such as @Method() async ${o}().`,Te(e,i.name)}if(nm(i)){const e=Z(t);e.messageText='Methods decorated with the @Method() decorator cannot be "private" nor "protected". More info: https://stenciljs.com/docs/methods',Te(e,Pm(i)[0])}RM(t,o,"@Method()","method",i.name);const f={complexType:{signature:_,parameters:c.parameters.map((e=>Tm(n,e))),references:{..._m(d,r),..._m(i,r)},return:u},docs:{text:p.displayPartsToString(c.getDocumentationComment(n)),tags:Cm(c.getJsDocTags())}};return gm(t,f.complexType.references,i.type||i.name),p.factory.createPropertyAssignment(p.factory.createStringLiteral(o),im(f))})(e,t,o,i,r))).filter((e=>!!e));s.length>0&&a.push(sm("methods",p.factory.createObjectLiteralExpression(s,!0)))})(e,t,n,l,r,d),((e,t,r,n)=>{const i=t.filter(p.isPropertyDeclaration).map((e=>((e,t,r)=>{var n;return null==(null===(n=Fm(r))||void 0===n?void 0:n.find(DM("Element")))?null:r.name.getText()})(0,0,e))).filter((e=>!!e));i.length>0&&(n.push(sm("elementRef",p.factory.createStringLiteral(i[0]))),i.length>1)&&(Z(e).messageText="It's not valid to add more than one Element() decorator")})(t,l,0,d),((e,t,r,n,i)=>{const a=r.filter(p.isMethodDeclaration).map((r=>((e,t,r,n)=>{var i;const a=n.name.getText();return(null!==(i=Fm(n))&&void 0!==i?i:[]).filter(DM("Watch")).map((n=>{const[i]=EM(n);if(!r.has(i)){const r=e.devMode?ee(t):Z(t);r.messageText=`@Watch('${i}') is trying to watch for changes in a property that does not exist.\n Make sure only properties decorated with @State() or @Prop() are watched.`,Te(r,n)}return{propName:i,methodName:a}}))})(e,t,n,r))),o=j(a);o.length>0&&i.push(sm("watchers",im(o)))})(e,t,l,u,d),((e,t,r)=>{const n=t.filter(p.isMethodDeclaration).map((t=>((e,t)=>{var r;const n=(null!==(r=Fm(t))&&void 0!==r?r:[]).filter(DM("Listen"));return 0===n.length?[]:n.map((r=>{const n=t.name.getText(),[i,a]=EM(r),o=i.split(",");if(o.length>1){const t=Z(e);t.messageText="Please use multiple @Listen() decorators instead of comma-separated names.",Te(t,r)}const s=OM(o[0],a,n);if("parent"===s.target){const t=Z(e);t.messageText='The "parent" target is no longer available as of Stencil 2. Please use "window", "document" or "body" instead.',Te(t,r)}return s}))})(e,t))),i=j(n);i.length>0&&r.push(sm("listeners",im(i)))})(t,l,d));const _=((e,t)=>{var r;const n=[],i=[];for(const e of t)if(rR(e)&&p.isPropertyDeclaration(e)){const t=p.getNameOfDeclaration(e),i=t.kind===p.SyntaxKind.ComputedPropertyName?t.expression.getText():t.getText();n.push(p.factory.createExpressionStatement(p.factory.createBinaryExpression(p.factory.createPropertyAccessExpression(p.factory.createThis(),p.factory.createIdentifier(i)),p.factory.createToken(p.SyntaxKind.EqualsToken),null!==(r=e.initializer)&&void 0!==r?r:p.factory.createIdentifier("undefined"))))}else i.push(e);return 0===n.length?i:ZM(e,i,n)})(n,d);((e,t)=>{t.filter(p.isMethodDeclaration).map((t=>{if("componentDidUnload"===t.name.getText()){const r=Z(e);r.header='Replace "componentDidUnload()" with "disconnectedCallback()"',r.messageText='The "componentDidUnload()" method was removed in Stencil 2. Please use the "disconnectedCallback()" method instead.',Te(r,t.name)}}))})(t,c);const f=Fm(n);return p.factory.updateClassDeclaration(n,[...null!==(a=QM(f,em))&&void 0!==a?a:[],...null!==(o=Pm(n))&&void 0!==o?o:[]],n.name,n.typeParameters,n.heritageClauses,_)},YM=(e,t)=>e.map((e=>{var r;const n=Fm(e),i=QM(n,tm);if(n!==i){if(p.isMethodDeclaration(e))return p.factory.updateMethodDeclaration(e,[...null!=i?i:[],...null!==(r=Pm(e))&&void 0!==r?r:[]],e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);if(p.isPropertyDeclaration(e)){if(rR(e))return e;{const t=Pm(e);return p.factory.updatePropertyDeclaration(e,[...null!=i?i:[],...null!=t?t:[]],e.name,e.questionToken,e.type,e.initializer)}}{const r=Z(t);r.messageText="Unknown class member encountered!",Te(r,e)}}return e})),QM=(e,t)=>{if(e){const r=e.filter((e=>{const r=p.isCallExpression(e.expression)&&p.isIdentifier(e.expression.expression)&&e.expression.expression.text;return"boolean"==typeof r||!t.includes(r)}));if(0===r.length)return;if(r.length!==e.length)return p.factory.createNodeArray(r)}return e},ZM=(e,t,r)=>{var n,i,a;const o=t.findIndex((e=>e.kind===p.SyntaxKind.Constructor)),s=t[o];if(o>=0&&p.isConstructorDeclaration(s)){const c=null!==(i=null===(n=s.body)||void 0===n?void 0:n.statements)&&void 0!==i?i:p.factory.createNodeArray();r=!c.some((e=>e.kind===p.SyntaxKind.SuperKeyword))&&eR(e)?[tR(),...r,...c]:[...r,...c],t[o]=p.factory.updateConstructorDeclaration(s,Pm(s),s.parameters,p.factory.updateBlock(null!==(a=null==s?void 0:s.body)&&void 0!==a?a:p.factory.createBlock([]),r))}else eR(e)&&(r=[tR(),...r]),t=[p.factory.createConstructorDeclaration(void 0,[],p.factory.createBlock(r,!0)),...t];return t},eR=e=>!!(e.heritageClauses&&e.heritageClauses.length>0)&&e.heritageClauses.some((e=>e.token===p.SyntaxKind.ExtendsKeyword)),tR=()=>p.factory.createExpressionStatement(p.factory.createCallExpression(p.factory.createIdentifier("super"),void 0,void 0)),rR=e=>{const t=Fm(e);return void 0!==t&&t!==QM(t,rm)},nR=(e,t)=>{if(null!=t.arguments&&t.arguments.length>0)if(p.isIdentifier(t.expression))iR(e,t.expression,t.arguments);else if(p.isPropertyAccessExpression(t.expression)){const r=t.expression.name;p.isIdentifier(r)&&r&&iR(e,r,t.arguments)}},iR=(e,t,r)=>{const n=t.escapedText;if("h"===n||n===uF||"createElement"===n)aR(e,r[0]),"h"!==n&&n!==uF||((e,t)=>{e.hasVdomRender=!0;const r=t[0];if(p.isStringLiteral(r)||p.isIdentifier(r)&&"Host"===r.text||(e.hasVdomFunctional=!0),t.length>1){const r=t[1];p.isCallExpression(r)||p.isIdentifier(r)?(e.hasVdomAttribute=!0,e.hasVdomClass=!0,e.hasVdomKey=!0,e.hasVdomListener=!0,e.hasVdomPropOrAttr=!0,e.hasVdomRef=!0,e.hasVdomStyle=!0,e.hasVdomXlink=!0):p.isObjectLiteralExpression(r)&&r.properties.forEach((t=>{if(e.hasVdomAttribute=!0,p.isSpreadAssignment(t)||p.isComputedPropertyName(t.name))e.hasVdomClass=!0,e.hasVdomKey=!0,e.hasVdomListener=!0,e.hasVdomPropOrAttr=!0,e.hasVdomRef=!0,e.hasVdomStyle=!0,e.hasVdomXlink=!0;else if(t.name&&t.name.text&&t.name.text.length>0){const r=t.name.text;"key"===r?e.hasVdomKey=!0:"ref"===r?e.hasVdomRef=!0:"class"===r||"className"===r?e.hasVdomClass=!0:"style"===r?e.hasVdomStyle=!0:/^on(-|[A-Z])/.test(r)?e.hasVdomListener=!0:r.startsWith("xlink")?(e.hasVdomXlink=!0,e.hasVdomPropOrAttr=!0):e.hasVdomPropOrAttr=!0,"part"===r&&p.isPropertyAssignment(t)&&p.isStringLiteral(t.initializer)&&e.htmlParts.push(...t.initializer.text.toLowerCase().split(" ").filter((e=>e.length>0))),e.htmlAttrNames.push(r)}}))}if(!e.hasVdomText)for(let r=2;r<t.length;r++){const n=t[r];if(!p.isCallExpression(n)||!p.isIdentifier(n.expression)||"h"!==n.expression.text){e.hasVdomText=!0;break}}})(e,r);else if(r.length>1&&"createElementNS"===n)aR(e,r[1]);else if("require"===n&&r.length>0&&e.originalImports){const t=r[0];p.isStringLiteral(t)&&(e.originalImports.includes(t.text)||e.originalImports.push(t.text))}},aR=(e,t)=>{if(p.isStringLiteral(t)){let r=t.text;"string"==typeof r&&(r=r.toLowerCase(),e.htmlTagNames.push(r),r.includes("-")&&e.potentialCmpRefs.push(r))}},oR=e=>{const t=Object.assign({},e);return delete t.assetsDirs,delete t.dependencies,delete t.excludeFromCollection,delete t.isCollectionDependency,delete t.docs,delete t.jsFilePath,delete t.potentialCmpRefs,delete t.styleDocs,delete t.sourceFilePath,t},sR=e=>{const t=cm(e,"elementRef");return"string"==typeof t?t:null},cR=(e,t)=>"shadow"===e?!!cm(t,"delegatesFocus"):null,lR=e=>{const t=cm(e,"events");return t&&0!==t.length?t.map((e=>({name:e.name,method:e.method,bubbles:e.bubbles,cancelable:e.cancelable,composed:e.composed,docs:e.docs,complexType:e.complexType,internal:Am(e.docs)}))):[]},dR=e=>{const t=cm(e,"listeners");return t&&0!==t.length?t.map((e=>({name:e.name,method:e.method,capture:!!e.capture,passive:!!e.passive,target:e.target}))):[]},uR=e=>{const t=cm(e,"methods");if(!t)return[];const r=Object.keys(t);return 0===r.length?[]:r.map((e=>({name:e,docs:t[e].docs,complexType:t[e].complexType,internal:Am(t[e].docs)})))},pR=e=>{const t=cm(e,"properties");if(!t)return[];const r=Object.keys(t);return 0===r.length?[]:r.map((e=>{const r=t[e];return{name:e,type:r.type,attribute:r.attribute?r.attribute.toLowerCase():void 0,reflect:"boolean"==typeof r.reflect&&r.reflect,mutable:!!r.mutable,required:!!r.required,optional:!!r.optional,defaultValue:r.defaultValue,complexType:r.complexType,docs:r.docs,internal:Am(r.docs)}}))},_R=e=>{const t=cm(e,"states");if(!t)return[];const r=Object.keys(t);return 0===r.length?[]:r.map((e=>({name:e})))},fR=(e,t)=>{"string"==typeof t.text&&t.text.includes("</")&&(t.text.includes("<slot")&&e.htmlTagNames.push("slot"),t.text.includes("<svg")&&e.htmlTagNames.push("svg"))},mR=(e,t,r,n,i)=>{const a=[],o=cm(i,n?"styleUrls":"originalStyleUrls");let s=cm(i,"styles");return s&&("string"==typeof s?(s=s.trim(),s.length>0&&(a.push({modeName:E,styleId:null,styleStr:s,styleIdentifier:null,externalStyles:[]}),e.styleModeNames.add(E))):s.__identifier?(a.push(gR(s,E)),e.styleModeNames.add(E)):"object"==typeof s&&Object.keys(s).forEach((t=>{const r=s[t];"string"==typeof r?a.push({modeName:t,styleId:null,styleStr:r,styleIdentifier:null,externalStyles:[]}):a.push(gR(r,t)),e.styleModeNames.add(t)}))),o&&"object"==typeof o&&Object.keys(o).forEach((t=>{const r=[];if(o[t].forEach((e=>{"string"==typeof e&&e.trim().length>0&&r.push({absolutePath:null,relativePath:null,originalComponentPath:e.trim()})})),r.length>0){const n={modeName:t,styleId:null,styleStr:null,styleIdentifier:null,externalStyles:r};a.push(n),e.styleModeNames.add(t)}})),((e,t,r)=>{r.forEach((r=>{r.modeName===E?r.styleId=e.toUpperCase():r.styleId=`${e.toUpperCase()}#${r.modeName}`,Array.isArray(r.externalStyles)&&r.externalStyles.forEach((e=>{((e,t)=>{if("string"!=typeof t.originalComponentPath||0===t.originalComponentPath.trim().length)return;const r=We(e);Je(t.originalComponentPath)?(t.absolutePath=me(t.originalComponentPath),t.relativePath=me(Xe(r,t.originalComponentPath))):(t.relativePath=me(t.originalComponentPath),t.absolutePath=me(Ge(r,t.originalComponentPath)))})(t,e)}))}))})(t,r,a),U(a,(e=>e.modeName))},gR=(e,t)=>({modeName:t,styleId:null,styleStr:null,styleIdentifier:e.__escapedText,externalStyles:[]}),hR=e=>{const t=cm(e,"watchers");return t&&0!==t.length?t.map((e=>({propName:e.propName,methodName:e.methodName}))):[]},yR=(e,t,r,n,i)=>{if(null==r.members)return r;const a=r.members.filter(Sm),o=Dm(a);if(null==o)return r;const s=t?t.getSymbolAtLocation(r.name):void 0,c=Tm(t,s),l=n.isCollectionDependency,d=(e=>{let t=cm(e,"encapsulation");return"string"==typeof t&&(t=t.toLowerCase().trim(),"shadow"===t||"scoped"===t)?t:"none"})(a),u={tagName:o,excludeFromCollection:n.excludeFromCollection,isCollectionDependency:l,componentClassName:r.name?r.name.text:"",elementRef:sR(a),encapsulation:d,shadowDelegatesFocus:cR(d,a),properties:pR(a),virtualProperties:vR(c),states:_R(a),methods:uR(a),listeners:dR(a),events:lR(a),watchers:hR(a),styles:mR(e,o,n.sourceFilePath,l,a),legacyConnect:cm(a,"connectProps")||[],legacyContext:cm(a,"contextProps")||[],internal:Am(c),assetsDirs:ER(a,n.jsFilePath),styleDocs:[],docs:c,jsFilePath:n.jsFilePath,sourceFilePath:n.sourceFilePath,sourceMapPath:n.sourceMapPath,hasAttributeChangedCallbackFn:!1,hasComponentWillLoadFn:!1,hasComponentDidLoadFn:!1,hasComponentShouldUpdateFn:!1,hasComponentWillUpdateFn:!1,hasComponentDidUpdateFn:!1,hasComponentWillRenderFn:!1,hasComponentDidRenderFn:!1,hasComponentDidUnloadFn:!1,hasConnectedCallbackFn:!1,hasDisconnectedCallbackFn:!1,hasElement:!1,hasEvent:!1,hasLifecycle:!1,hasListener:!1,hasListenerTarget:!1,hasListenerTargetWindow:!1,hasListenerTargetDocument:!1,hasListenerTargetBody:!1,hasListenerTargetParent:!1,hasMember:!1,hasMethod:!1,hasMode:!1,hasAttribute:!1,hasProp:!1,hasPropNumber:!1,hasPropBoolean:!1,hasPropString:!1,hasPropMutable:!1,hasReflect:!1,hasRenderFn:!1,hasState:!1,hasStyle:!1,hasVdomAttribute:!1,hasVdomXlink:!1,hasVdomClass:!1,hasVdomFunctional:!1,hasVdomKey:!1,hasVdomListener:!1,hasVdomPropOrAttr:!1,hasVdomRef:!1,hasVdomRender:!1,hasVdomStyle:!1,hasVdomText:!1,hasWatchCallback:!1,isPlain:!1,htmlAttrNames:[],htmlTagNames:[],htmlParts:[],isUpdateable:!1,potentialCmpRefs:[]},_=e=>{p.isCallExpression(e)?nR(u,e):p.isStringLiteral(e)&&fR(u,e),e.forEachChild(_)};var f;return _(r),((e,t)=>{const r=e.members;if(!r||0===r.length)return;const n=r.filter((e=>p.isMethodDeclaration(e)));if(0===n.length)return;const i=n.some((e=>km(e,"hostData")));t.hasAttributeChangedCallbackFn=n.some((e=>km(e,"attributeChangedCallback"))),t.hasConnectedCallbackFn=n.some((e=>km(e,"connectedCallback"))),t.hasDisconnectedCallbackFn=n.some((e=>km(e,"disconnectedCallback"))),t.hasComponentWillLoadFn=n.some((e=>km(e,"componentWillLoad"))),t.hasComponentWillUpdateFn=n.some((e=>km(e,"componentWillUpdate"))),t.hasComponentWillRenderFn=n.some((e=>km(e,"componentWillRender"))),t.hasComponentDidRenderFn=n.some((e=>km(e,"componentDidRender"))),t.hasComponentDidLoadFn=n.some((e=>km(e,"componentDidLoad"))),t.hasComponentShouldUpdateFn=n.some((e=>km(e,"componentShouldUpdate"))),t.hasComponentDidUpdateFn=n.some((e=>km(e,"componentDidUpdate"))),t.hasComponentDidUnloadFn=n.some((e=>km(e,"componentDidUnload"))),t.hasLifecycle=t.hasComponentWillLoadFn||t.hasComponentDidLoadFn||t.hasComponentWillUpdateFn||t.hasComponentDidUpdateFn,t.hasRenderFn=n.some((e=>km(e,"render")))||i,t.hasVdomRender=t.hasVdomRender||i})(r,u),u.legacyConnect.forEach((({connect:e})=>{u.htmlTagNames.push(e),e.includes("-")&&u.potentialCmpRefs.push(e)})),u.htmlAttrNames=V(u.htmlAttrNames),u.htmlTagNames=V(u.htmlTagNames),u.potentialCmpRefs=V(u.potentialCmpRefs),(f=u).properties.length>0&&(f.hasProp=!0,f.hasPropMutable=f.properties.some((e=>e.mutable)),f.hasReflect=f.properties.some((e=>e.reflect)),f.hasAttribute=f.properties.some((e=>"string"==typeof e.attribute)),f.hasPropBoolean=f.properties.some((e=>"boolean"===e.type)),f.hasPropNumber=f.properties.some((e=>"number"===e.type)),f.hasPropString=f.properties.some((e=>"string"===e.type))),f.states.length>0&&(f.hasState=!0),f.watchers.length>0&&(f.hasWatchCallback=!0),f.methods.length>0&&(f.hasMethod=!0),f.events.length>0&&(f.hasEvent=!0),f.listeners.length>0&&(f.hasListener=!0,f.hasListenerTargetWindow=f.listeners.some((e=>"window"===e.target)),f.hasListenerTargetDocument=f.listeners.some((e=>"document"===e.target)),f.hasListenerTargetBody=f.listeners.some((e=>"body"===e.target)),f.hasListenerTargetParent=f.listeners.some((e=>"parent"===e.target)),f.hasListenerTarget=f.listeners.some((e=>!!e.target))),f.hasMember=f.hasProp||f.hasState||f.hasElement||f.hasMethod,f.isUpdateable=f.hasProp||f.hasState,f.styles.length>0&&(f.hasStyle=!0,f.hasMode=f.styles.some((e=>e.modeName!==E))),f.hasLifecycle=f.hasComponentWillLoadFn||f.hasComponentDidLoadFn||f.hasComponentShouldUpdateFn||f.hasComponentWillUpdateFn||f.hasComponentDidUpdateFn||f.hasComponentWillRenderFn||f.hasComponentDidRenderFn,f.isPlain=!(f.hasMember||f.hasStyle||f.hasLifecycle||f.hasListener||f.hasVdomRender),i&&"compilerstatic"===i.componentMetadata&&(r=((e,t)=>{const r=oR(t),n=sm("COMPILER_META",im(r)),i=[...e.members,n];return p.factory.updateClassDeclaration(e,wm(e),e.name,e.typeParameters,e.heritageClauses,i)})(r,u)),n.cmps.push(u),e.nodeMap.set(r,u),r},vR=e=>e.tags.filter((({name:e})=>"virtualProp"===e)).map(bR).filter((e=>!!e)),bR=e=>{const t=/^\s*(?:\{([^}]+)\}\s+)?(\w+)\s+-\s+(.*)$/.exec(e.text);if(!t)return;const[,r,n,i]=t;return{type:null==r?"any":r.trim(),name:n.trim(),docs:i.trim()}},ER=(e,t)=>{const r=cm(e,"assetsDirs")||[],n=me(We(t));return r.map((e=>{let t=e=me(e.trim()),r=e;return Je(e)?r=Xe(n,e):t=Ge(n,e),{absolutePath:t,cmpRelativePath:r,originalComponentPath:e}}))},xR=(e,t,r,n,i)=>{const a=t.fs.readFileSync(i),o=p.createSourceFile(i,a,p.ScriptTarget.ES2017,!0,p.ScriptKind.JS);return NR(e,t,r,o,a,i,void 0,n)},DR=e=>(e.collections||[]).map((e=>e.name)),SR=(e,t,r,n,i,a)=>{if("string"!=typeof i.global)return;const o=me(Ge(n,i.global)),s=xR(e,t,r,a,o);a.global=s},TR=e=>CR(e.bundles)?[]:e.bundles.map((e=>({components:e.components.slice().sort()}))),CR=e=>!e||!Array.isArray(e)||0===e.length,AR=(e,t,r,n,i,a,o)=>{if(n.externalImports.includes(a)||(n.externalImports.push(a),n.externalImports.sort()),!o||t.resolvedCollections.has(a))return;let s=((e,t,r,n)=>{try{const i=Sw(e,t,r,n);if(i&&i.resolvedModule&&i.resolvedModule.resolvedFileName){const t=Ye("/");let r=i.resolvedModule.resolvedFileName;for(let n=0;n<30;n++){if(t===r)return null;r=We(r);const n=Ge(r,"package.json");if(e.sys.accessSync(n))return me(n)}}}catch(t){e.logger.error(t)}return null})(e,t,a,i);if(t.resolvedCollections.add(a),null==s)return;const c=e.sys.realpathSync(s);if(c.path&&(s=c.path),s===e.packageJsonFilePath)return;const l=t.fs.readFileSync(s);if(null==l)return;const d=Re(l,s);if(d.diagnostic)return r.diagnostics.push(d.diagnostic),void 0;if(!G(d.data.collection)||!d.data.collection.endsWith(".json"))return;if(!G(d.data.types)||!d.data.types.endsWith(".d.ts"))return;const u=((e,t,r,n,i,a)=>{const o=a.name;let s=t.collections.find((e=>e.collectionName===o));if(null!=s)return s;const c=We(i),l=Ge(c,a.collection),d=Xe(e.rootDir,l);e.logger.debug(`load collection: ${o}, ${d}`);const u=t.fs.readFileSync(l);if(!u)return null;const p=me(We(l));return s=((e,t,r,n,i,a)=>{const o=JSON.parse(a),s=o.compiler||{},c={collectionName:n,moduleId:n,moduleFiles:[],dependencies:DR(o),compiler:{name:s.name||"",version:s.version||"",typescriptVersion:s.typescriptVersion||""},bundles:TR(o)};return SR(e,t,r,i,o,c),((e,t,r,n,i,a)=>{i.entries&&i.entries.forEach((i=>{const o=Ge(n,i);xR(e,t,r,a,o)}))})(e,t,r,i,o,c),c})(e,t,r,o,p,u),s.moduleId=n,a.module&&a.module!==a.main&&(s.hasExports=!0),s.moduleDir=c,t.collections.push(s),s})(e,t,r,a,d.filePath,d.data);u&&(r.collections.some((e=>e.collectionName===u.collectionName))||(r.collections.push(u),Array.isArray(u.dependencies)&&u.dependencies.forEach((i=>{const a=We(s);AR(e,t,r,n,a,i,o)}))))},kR=(e,t,r,n,i,a,o)=>{if(a.moduleSpecifier&&p.isStringLiteral(a.moduleSpecifier)){let s=a.moduleSpecifier.text;n.originalImports.includes(s)||n.originalImports.push(s),Je(s)?(s=me(s),n.localImports.push(s)):s.startsWith(".")?(s=me(Ye(i,s)),n.localImports.push(s)):AR(e,t,r,n,n.sourceFilePath,s,o)}},NR=(e,t,r,n,i,a,o,s)=>{const c=me(n.fileName),l=ww(t,c);if(l&&l.staticSourceFileText===i)return l;const d=We(c),u=He(a),_=(m=i,g=a=me(Ge(d,u)),{sourceFilePath:me((f=n).fileName),jsFilePath:g,staticSourceFile:f,staticSourceFileText:m,cmps:[],coreRuntimeApis:[],collectionName:null,dtsFilePath:null,excludeFromCollection:!1,externalImports:[],hasVdomAttribute:!1,hasVdomClass:!1,hasVdomFunctional:!1,hasVdomKey:!1,hasVdomListener:!1,hasVdomPropOrAttr:!1,hasVdomRef:!1,hasVdomRender:!1,hasVdomStyle:!1,hasVdomText:!1,hasVdomXlink:!1,htmlAttrNames:[],htmlParts:[],htmlTagNames:[],isCollectionDependency:!1,isLegacy:!1,localImports:[],originalCollectionComponentPath:null,originalImports:[],potentialCmpRefs:[],sourceMapPath:null,sourceMapFileText:null});var f,m,g;a.endsWith(".js.map")?(_.sourceMapPath=a,_.sourceMapFileText=i):l&&l.sourceMapPath&&(_.sourceMapPath=l.sourceMapPath,_.sourceMapFileText=l.sourceMapFileText);const h=me(_.sourceFilePath);t.moduleMap.set(h,_),t.changedModules.add(_.sourceFilePath);const y=n=>p.isClassDeclaration(n)?(yR(t,o,n,_),void 0):p.isImportDeclaration(n)?(kR(e,t,r,_,d,n,!0),void 0):(p.isCallExpression(n)?nR(_,n):p.isStringLiteral(n)&&fR(_,n),n.forEachChild(y),void 0);return null!=s&&(_.isCollectionDependency=!0,_.collectionName=s.collectionName,s.moduleFiles.push(_)),y(n),_.cmps.length>0&&(_.staticSourceFile=p.createSourceFile(c,i,n.languageVersion,!0,p.ScriptKind.JS)),_},wR=(e,t,r)=>{const n=r.tagName,i=t.components.filter((e=>e.tagName===n));if(i.length>1){const r=Z(t.diagnostics);r.header=`Component Tag Name "${n}" Must Be Unique`,r.messageText=`Please update the components so "${n}" is only used once: ${i.map((t=>Xe(e.rootDir,t.sourceFilePath))).join(" ")}`}},FR=(e,t,r)=>{const n=[];for(let i=0;i<30&&e.srcDir!==t;i++){const e=He(r);n.push(e),r=Ge(r,".."),t=me(Ge(t,".."))}return Ge(...n.reverse())},PR=(e,t,r,n,i)=>{n.includes(i)||n.push(i),r.has(i)||(r.add(i),e.reduce(((e,t)=>(t.localImports.forEach((r=>{let n=r;return n===i?(e.push(t.sourceFilePath),void 0):(n=r+".tsx",n===i?(e.push(t.sourceFilePath),void 0):(n=r+".ts",n===i?(e.push(t.sourceFilePath),void 0):(n=r+".js",n===i?(e.push(t.sourceFilePath),void 0):void 0)))})),e)),[]).forEach((e=>{t.push(e)})))},IR=[".png",".jpg",".jpeg",".gif",".webp",".ico",".svg"],OR=(e,t,r)=>{const n=r.componentGraph?(e=>{const t={};for(const[r,n]of e)t[r]=n;return t})(r.componentGraph.entries()):void 0,i={buildId:r.buildId,diagnostics:oe(t,r.diagnostics),dirsAdded:r.dirsAdded.slice().sort(),dirsDeleted:r.dirsDeleted.slice().sort(),duration:Date.now()-r.startTime,filesAdded:r.filesAdded.slice().sort(),filesChanged:r.filesChanged.slice().sort(),filesDeleted:r.filesDeleted.slice().sort(),filesUpdated:r.filesUpdated.slice().sort(),hasError:ne(r.diagnostics),hasSuccessfulBuild:t.hasSuccessfulBuild,isRebuild:r.isRebuild,namespace:e.namespace,outputs:t.fs.getBuildOutputs(),rootDir:e.rootDir,srcDir:e.srcDir,timestamp:II(),componentGraph:n},a=((e,t,r)=>{if(null==e.devServer||null==e.devServer.reloadStrategy)return null;const n={reloadStrategy:e.devServer.reloadStrategy,versionId:Date.now().toString().substring(6)+""+Math.round(89999*Math.random()+1e4)};r.scriptsAdded.length>0&&(n.scriptsAdded=r.scriptsAdded.slice()),r.scriptsDeleted.length>0&&(n.scriptsDeleted=r.scriptsDeleted.slice());const i=((e,t,r)=>{const n=[];return t&&0!==t.length?(t.forEach((t=>r.map((r=>{let i=!1;return i=X(t)?$f(r,t):me(t)===me(r),i&&(e.logger.debug(`excludeHmr: ${r}`),n.push(He(r))),i})).some((e=>e)))),n.sort()):n})(e,e.devServer.excludeHmr,r.filesChanged);i.length>0&&(n.excludeHmr=i.slice()),r.hasHtmlChanges&&(n.indexHtmlUpdated=!0),r.hasServiceWorkerChanges&&(n.serviceWorkerUpdated=!0);const a=e.outputTargets.filter(ju),o=((e,t)=>{if(!t.filesChanged)return null;const r=t.filesChanged.filter((e=>e.endsWith(".ts")||e.endsWith(".tsx")||e.endsWith(".js")||e.endsWith(".jsx")));if(0===r.length)return null;const n=[],i=new Set,a=t.moduleFiles.filter((e=>e.localImports&&e.localImports.length>0));for(;r.length>0;){const e=r.shift();PR(a,r,i,n,e)}const o=n.reduce(((t,r)=>{const n=e.moduleMap.get(r);return null!=n&&n.cmps.forEach((e=>{"string"==typeof e.tagName&&(t.includes(e.tagName)||t.push(e.tagName))})),t}),[]);return 0===o.length?null:o.sort()})(t,r);o&&(n.componentsUpdated=o),Object.keys(r.stylesUpdated).length>0&&(n.inlineStylesUpdated=U(r.stylesUpdated.map((e=>({styleId:td(e.styleTag,e.styleMode),styleTag:e.styleTag,styleText:e.styleText}))),(e=>e.styleId)));const s=((e,t)=>{if(!e.isRebuild||0===t.length)return null;const r=e.filesWritten.filter((e=>e.endsWith(".css")));return 0===r.length?null:r.map((e=>He(e))).sort()})(r,a);s&&(n.externalStylesUpdated=s);const c=((e,t)=>{if(0===t.length)return null;const r=e.filesChanged.reduce(((e,t)=>{if(IR.some((e=>t.toLowerCase().endsWith(e)))){const r=He(t);e.includes(r)||e.push(r)}return e}),[]);return 0===r.length?null:r.sort()})(r,a);return c&&(n.imagesUpdated=c),n})(e,t,r);return null!=a&&(i.hmr=a),G(r.hydrateAppFilePath)&&(i.hydrateAppFilePath=r.hydrateAppFilePath),t.lastBuildResults=Object.assign({},i),i};function MR(e){return e?e.map((e=>{return{key:e.entryKey,components:e.cmps.map((e=>e.tagName)),bundleId:e.output.bundleId,fileName:e.output.fileName,imports:e.rollupResult.imports,originalByteSize:(r=e.rollupResult.code,t.byteLength(r,"utf8"))};var r})):[]}function RR(e,t){const r={};return U(t.moduleFiles,(e=>e.sourceFilePath)).forEach((t=>{const n=jR(e,t.sourceFilePath);r[n]=t.localImports.map((t=>jR(e,t))).sort()})),r}function LR(e,t){return t.outputs.map((t=>({name:t.type,files:t.files.length,generatedFiles:t.files.map((t=>jR(e,t)))})))}function BR(e,t){return t.components.map((t=>({tag:t.tagName,path:jR(e,t.jsFilePath),source:jR(e,t.sourceFilePath),elementRef:t.elementRef,componentClassName:t.componentClassName,assetsDirs:t.assetsDirs,dependencies:t.dependencies,dependents:t.dependents,directDependencies:t.directDependencies,directDependents:t.directDependents,docs:t.docs,encapsulation:t.encapsulation,excludeFromCollection:t.excludeFromCollection,events:t.events,internal:t.internal,legacyConnect:t.legacyConnect,legacyContext:t.legacyContext,listeners:t.listeners,methods:t.methods,potentialCmpRefs:t.potentialCmpRefs,properties:t.properties,shadowDelegatesFocus:t.shadowDelegatesFocus,states:t.states})))}function UR(e,t){return t.collections.map((t=>({name:t.collectionName,source:jR(e,t.moduleDir),tags:t.moduleFiles.map((e=>e.cmps.map((e=>e.tagName)))).sort()}))).sort(((e,t)=>e.name<t.name?-1:e.name>t.name?1:0))}function jR(e,t){return e.sys.normalizePath(e.sys.platformPath.relative(e.rootDir,t))}const VR=e=>zR(e.config,e.compilerCtx,e,!0),zR=async(e,t,r,n)=>{if(r.hasFinished&&r.buildResults)return r.buildResults;if(r.buildResults=OR(e,t,r),r.buildStats=((e,t)=>{const r=t.buildResults;let n;try{n=r.hasError?{diagnostics:r.diagnostics}:{timestamp:r.timestamp,compiler:{name:e.sys.name,version:e.sys.version},app:{namespace:e.namespace,fsNamespace:e.fsNamespace,components:Object.keys(r.componentGraph).length,entries:Object.keys(r.componentGraph).length,bundles:r.outputs.reduce(((e,t)=>e+t.files.length),0),outputs:LR(e,r)},options:{minifyJs:e.minifyJs,minifyCss:e.minifyCss,hashFileNames:e.hashFileNames,hashedFileNameLength:e.hashedFileNameLength,buildEs5:e.buildEs5},formats:{esmBrowser:MR(t.esmBrowserComponentBundle),esm:MR(t.esmComponentBundle),es5:MR(t.es5ComponentBundle),system:MR(t.systemComponentBundle),commonjs:MR(t.commonJsComponentBundle)},components:BR(e,t),entries:t.entryModules,componentGraph:r.componentGraph,sourceGraph:RR(e,t),rollupResults:t.rollupResults,collections:UR(e,t)}}catch(e){n={diagnostics:[{messageText:"Generate Build Stats Error: "+e,level:"error",type:"build"}]}}return n})(e,r),await(async(e,t)=>{const r=e.outputTargets.filter(Vu);await Promise.all(r.map((async r=>{(await e.sys.writeFile(r.file,JSON.stringify(t,null,2))).error&&e.logger.warn([`Stats failed to write file to ${r.file}`])})))})(e,r.buildStats),r.debug(`${n?"aborted":"finished"} build, ${r.buildResults.duration}ms`),!r.hasFinished){r.hasPrintedResults||(KR(e,r.buildResults.diagnostics),e.logger.printDiagnostics(r.buildResults.diagnostics));const i=r.hasScriptChanges||r.hasStyleChanges;r.isRebuild&&i&&r.buildResults.hmr&&!n&&HR(e.logger,r);const a=r.isRebuild?"rebuild":"build",o=e.watch?", watching for changes...":"";let s="finished",c="green";r.hasError?(s="failed",c="red"):(t.changedFiles.clear(),t.hasSuccessfulBuild=!0,r.buildResults.hasSuccessfulBuild=!0),r.hasPrintedResults||(r.timeSpan.finish(`${a} ${s}${o}`,c,!0,!0),r.hasPrintedResults=!0),t.events.emit("buildFinish",r.buildResults),W(e.logger.writeLogs)&&e.logger.writeLogs(r.isRebuild)}return r.hasFinished=!0,e.watch||(t.reset(),i&&global.gc&&(r.debug("triggering forced gc"),global.gc(),r.debug("forced gc finished"))),r.buildResults},HR=(e,t)=>{const r=t.buildResults.hmr;if(r.componentsUpdated&&WR(e,"updated component",r.componentsUpdated),r.inlineStylesUpdated){const t=r.inlineStylesUpdated.map((e=>e.styleTag)).reduce(((e,t)=>(e.includes(t)||e.push(t),e)),[]);WR(e,"updated style",t)}r.externalStylesUpdated&&WR(e,"updated stylesheet",r.externalStylesUpdated),r.imagesUpdated&&WR(e,"updated image",r.imagesUpdated)},WR=(e,t,r)=>{if(r.length>0){let n="";if(r.length>7){const e=r.length-6;n=(r=r.slice(0,6)).join(", ")+`, +${e} others`}else n=r.join(", ");r.length>1&&(t+="s"),e.info(`${t}: ${e.cyan(n)}`)}},KR=(e,t)=>{t.forEach((t=>{!t.relFilePath&&!Fe(t.absFilePath)&&t.absFilePath&&e.rootDir&&(t.relFilePath=Xe(e.rootDir,t.absFilePath))}))},JR=async(e,t)=>{const r=e.outputTargets.filter(ju).filter((e=>"string"==typeof e.indexHtml&&!!e.serviceWorker));if(0===r.length||null==e.sys.lazyRequire)return;const n=await e.sys.lazyRequire.ensure(e.rootDir,["workbox-build"]);if(n.length>0)t.diagnostics.push(...n);else{const n=e.sys.lazyRequire.require(e.rootDir,"workbox-build");await Promise.all(r.map((r=>(async(e,t,r,n)=>{const i=await(async e=>{if(!e.serviceWorker)return;const t={...e.serviceWorker};return!0!==t.unregister&&delete t.unregister,t})(n);if(!i.unregister)return i.swSrc?Promise.all([eM(t,n,r),tM(t,i,r)]):(async(e,t,r)=>{const n=e.createTimeSpan("generate service worker started");try{await r.generateSW(t),n.finish("generate service worker finished")}catch(t){re(e.diagnostics,t)}})(t,i,r);await e.sys.writeFile(i.swDest,"\nself.addEventListener('install', function(e) {\n self.skipWaiting();\n});\n\nself.addEventListener('activate', function(e) {\n self.registration.unregister()\n .then(function() {\n return self.clients.matchAll();\n })\n .then(function(clients) {\n clients.forEach(client => client.navigate(client.url))\n });\n});\n")})(e,t,n,r))))}},GR=(e,t,r)=>{if(e.devMode)return null;const n=e.outputTargets.filter(ju);return Promise.all(n.map((async e=>{const n=Ge(e.dir,"manifest.json");try{const e=await t.fs.readFile(n);if(e)try{const i=JSON.parse(e);await $R(t,r,n,i)}catch(e){const t=Z(r.diagnostics);t.header=`Invalid manifest.json: ${e}`,t.absFilePath=n}}catch(e){}})))},$R=async(e,t,r,n)=>{Array.isArray(n.icons)&&await Promise.all(n.icons.map((n=>qR(e,t,r,n))))},qR=async(e,t,r,n)=>{let i=n.src;if("string"!=typeof i){const n='Manifest icon missing "src"';return te(e,t.diagnostics,r,n,'"icons"'),void 0}i.startsWith("/")&&(i=i.slice(1));const a=We(r),o=Ge(a,i);if(!await e.fs.access(o)){const i=`Unable to find manifest icon "${n.src}"`;te(e,t.diagnostics,r,i,`"${n.src}"`)}},XR=async(e,t,r)=>{if(e.watch)return;if(null==r.packageJson)return;const n=e.outputTargets.filter(Tu),i=e.outputTargets.filter(zu);await Promise.all([...n.map((n=>YR(e,t,r,n))),...i.map((n=>tL(e,t,r,n))),eL(e,t,r)])},YR=async(e,t,r,n)=>{await Promise.all([QR(e,t,r,n),ZR(e,t,r,n),rL(e,t,r,n),nL(e,t,r)])},QR=async(e,t,r,n)=>{if(!e.devMode&&Array.isArray(r.packageJson.files)){const i=me(Xe(e.rootDir,n.dir)),a=[`${i}`,`${i}/`,`./${i}`,`./${i}/`];if(!r.packageJson.files.some((e=>a.some((t=>me(e)===t)))))return aL(e,t,r,`package.json "files" array must contain the distribution directory "${i}/" when generating a distribution.`,'"files"'),void 0;await Promise.all(r.packageJson.files.map((async n=>{if(!X(n)){const i=We(e.packageJsonFilePath),a=Ge(i,n);await t.fs.access(a)||iL(e,t,r,`Unable to find "${n}" within the package.json "files" array.`,`"${n}"`)}})))}},ZR=(e,t,r,n)=>{const i=Ge(n.dir,"index.cjs.js"),a=Xe(e.rootDir,i);if(G(r.packageJson.main)&&""!==r.packageJson.main){if(me(r.packageJson.main)!==me(a)){const n=`package.json "main" property is set to "${r.packageJson.main}". It's recommended to set the "main" property to: ${a}`;aL(e,t,r,n,'"main"')}}else aL(e,t,r,`package.json "main" property is required when generating a distribution. It's recommended to set the "main" property to: ${a}`,'"main"')},eL=async(e,t,r)=>{const n=r.packageJson.module,i=(e=>{const t=e.outputTargets.find(Au),r=e.outputTargets.find(Cu),n=e.outputTargets.find(Tu);if(n)return Xe(e.rootDir,Ge(n.dir,"index.js"));if(r){const t=Ge(r.dir,"index.js");return Xe(e.rootDir,t)}if(t){const r=Ge(t.dir,"index.js");return Xe(e.rootDir,r)}return null})(e);if(!G(n)){let n='package.json "module" property is required when generating a distribution.';return null!==i&&(n+=` It's recommended to set the "module" property to: ${me(i)}`),aL(e,t,r,n,'"module"'),void 0}if(null!==i&&me(i)!==me(n)){const a=`package.json "module" property is set to "${n}". It's recommended to set the "module" property to: ${me(i)}`;aL(e,t,r,a,'"module"')}},tL=async(e,t,r,n)=>{const i=Du(n),a=Xe(e.rootDir,i);if(G(r.packageJson.types)&&""!==r.packageJson.types)if(r.packageJson.types.endsWith(".d.ts")){const n=Ge(e.rootDir,r.packageJson.types);if(!await t.fs.access(n)){let n=`package.json "types" property is set to "${r.packageJson.types}" but cannot be found.`;me(r.packageJson.types)!==me(a)&&(n+=` It's recommended to set the "types" property to: ${a}`),iL(e,t,r,n,'"types"')}}else{const n=`package.json "types" file must have a ".d.ts" extension: ${r.packageJson.types}`;aL(e,t,r,n,'"types"')}else aL(e,t,r,`package.json "types" property is required when generating a distribution. It's recommended to set the "types" property to: ${a}`,'"types"')},rL=(e,t,r,n)=>{if(n.collectionDir){const i=Ge(Xe(e.rootDir,n.collectionDir),x);r.packageJson.collection&&me(r.packageJson.collection)===i||aL(e,t,r,`package.json "collection" property is required when generating a distribution and must be set to: ${i}`,'"collection"')}},nL=(e,t,r)=>{if(G(r.packageJson.browser)){const n=`package.json "browser" property is set to "${r.packageJson.browser}". However, for maximum compatibility with all bundlers it's recommended to not set the "browser" property and instead ensure both "module" and "main" properties are set.`;aL(e,t,r,n,'"browser"')}},iL=(e,t,r,n,i)=>{const a=te(t,r.diagnostics,e.packageJsonFilePath,n,i);return a.header="Package Json",a},aL=(e,t,r,n,i)=>{const a=te(t,r.diagnostics,e.packageJsonFilePath,n,i);return a.header="Package Json",a.level="warn",a},oL=async(e,t,n,i)=>{try{if(r.chdir(e.rootDir),await(async(e,t,r)=>{if(r.isRebuild)return;const n=e.outputTargets.filter(fM).filter((e=>!0===e.empty)).map((e=>e.dir||e.esmDir)).filter(G);if(0===n.length)return;const i=r.createTimeSpan(`cleaning ${n.length} dirs`,!0);await t.fs.emptyDirs(n),i.finish("cleaning dirs finished")})(e,t,n),n.hasError)return VR(n);if(e.srcIndexHtml){const r=await t.fs.readFile(e.srcIndexHtml);G(r)&&(n.indexDoc=Tf(r))}if(await(async(e,t,r)=>{try{const n=await t.fs.readFile(e.packageJsonFilePath);if(n){const t=Re(n,e.packageJsonFilePath);t.diagnostic?r.diagnostics.push(t.diagnostic):r.packageJson=t.data}}catch(t){if(!e.outputTargets.some((e=>e.type.includes("dist")))){const t=Z(r.diagnostics);t.header='Missing "package.json"',t.messageText=`Valid "package.json" file is required for distribution: ${e.packageJsonFilePath}`}}})(e,t,n),n.hasError)return VR(n);const a=n.createTimeSpan("transpile started"),o=await(async(e,t,r,n)=>{const i=Ce(n.getSyntacticDiagnostics()),a=Ce(n.getGlobalDiagnostics()),o=Ce(n.getOptionsDiagnostics());if(r.diagnostics.push(...i),r.diagnostics.push(...a),r.diagnostics.push(...o),r.hasError)return!1;const s=n.getProgram(),c=s.getTypeChecker(),l=e.outputTargets.filter(zu),d=[];n.emit(void 0,((n,i,a,o,s)=>{if(n.endsWith(".js")||n.endsWith("js.map"))NR(e,t,r,s[0],i,n,c,null);else if(n.endsWith(".d.ts")){const r=me(s[0].fileName),a=FR(e,r,n);d.push(r),l.forEach((e=>{const r=Ge(e.typesDir,a);i=UO(e.typesDir,r,i),t.fs.writeFile(r,i)}))}}),void 0,!1,{before:[qM(e,r.diagnostics,c)]});const u=Array.from(t.changedModules.keys());var p,_;if(r.debug("Transpiled modules: "+JSON.stringify(u,null,"\n")),r.moduleFiles=Array.from(t.moduleMap.values()),r.components=(p=r.moduleFiles,U(j(p.map((e=>e.cmps))),(e=>e.tagName))),_=t.moduleMap,r.components.forEach((e=>{XF(_,e.sourceFilePath,[]).forEach((t=>{e.hasVdomAttribute=e.hasVdomAttribute||t.hasVdomAttribute,e.hasVdomPropOrAttr=e.hasVdomPropOrAttr||t.hasVdomPropOrAttr,e.hasVdomXlink=e.hasVdomXlink||t.hasVdomXlink,e.hasVdomClass=e.hasVdomClass||t.hasVdomClass,e.hasVdomFunctional=e.hasVdomFunctional||t.hasVdomFunctional,e.hasVdomKey=e.hasVdomKey||t.hasVdomKey,e.hasVdomListener=e.hasVdomListener||t.hasVdomListener,e.hasVdomRef=e.hasVdomRef||t.hasVdomRef,e.hasVdomRender=e.hasVdomRender||t.hasVdomRender,e.hasVdomStyle=e.hasVdomStyle||t.hasVdomStyle,e.hasVdomText=e.hasVdomText||t.hasVdomText,e.htmlAttrNames.push(...t.htmlAttrNames),e.htmlTagNames.push(...t.htmlTagNames),e.potentialCmpRefs.push(...t.potentialCmpRefs)})),e.htmlAttrNames=V(e.htmlAttrNames),e.htmlTagNames=V(e.htmlTagNames),e.potentialCmpRefs=V(e.potentialCmpRefs)})),vM(r.components),((e,t)=>{for(const r of t.components)wR(e,t,r)})(e,r),r.hasError)return!1;if(await XO(e,t,r,"src"))return!0;if(l.length>0){const r=s.getRootFileNames().filter((e=>e.endsWith(".d.ts")&&!e.endsWith("components.d.ts"))).map(me).filter((e=>!d.includes(e))).map((r=>{const n=Xe(e.srcDir,r);return Promise.all(l.map((async e=>{const i=Ge(e.typesDir,n);let a=await t.fs.readFile(r);a=UO(e.typesDir,i,a),await t.fs.writeFile(i,a)})))}));await Promise.all(r)}if(e.validateTypes){const t=Ce(n.getSemanticDiagnostics());e.devMode&&t.forEach((e=>{"6133"!==e.code&&"6192"!==e.code||(e.level="warn")})),r.diagnostics.push(...t)}return!1})(e,t,n,i);if(a.finish("transpile finished"),n.hasError)return VR(n);if(e.watch&&o)return null;if(n.stylesPromise=(async(e,t,r)=>{const n=e.outputTargets.filter(Pu);if(0===n.length)return;const i=await mM(e,t,r);i&&await Promise.all(n.map((e=>t.fs.writeFile(e.file,i))))})(e,t,n),n.hasError)return VR(n);if(await pM(e,t,n),n.hasError)return VR(n);await n.stylesPromise,await(async(e,t,r)=>{const n=r.createTimeSpan("writeBuildFiles started",!0);let i=0;try{const n=await t.fs.commit();r.filesWritten=n.filesWritten,r.filesDeleted=n.filesDeleted,r.dirsDeleted=n.dirsDeleted,r.dirsAdded=n.dirsAdded,i=n.filesWritten.length,r.debug(`in-memory-fs: ${t.fs.getMemoryStats()}`),await JR(e,r),await((e,t,r)=>r.hasError?null:Promise.all([XR(e,t,r),GR(e,t,r)]))(e,t,r)}catch(e){re(r.diagnostics,e)}n.finish(`writeBuildFiles finished, files wrote: ${i}`)})(e,t,n)}catch(e){re(n.diagnostics,e)}return t.changedFiles.clear(),(async e=>{const t=await zR(e.config,e.compilerCtx,e,!1),r={buildId:e.buildId,messages:e.buildMessages.slice(),progress:1};return e.compilerCtx.events.emit("buildLog",r),t})(n)},sL=e=>He(e),cL=e=>e.split(".").pop().toLowerCase(),lL=["ts","tsx","js","jsx"],dL=e=>lL.includes(cL(e)),uL=["css","scss","sass","pcss","styl","stylus","less"],pL=e=>uL.includes(cL(e)),_L=(e,t)=>{if(G(t)){if(e.watchIgnoredRegex.some((e=>e.test(t))))return!0;const r=e.outputTargets;if([...r.filter(Lu).map((e=>e.file)),...r.filter(Lu).map((e=>e.typesFile)),...r.filter(Vu).map((e=>e.file)),...r.filter(Uu).map((e=>e.file))].includes(t))return!0}return!1},fL=async(e,t)=>{let r,n,i=!1;const a=new Promise((e=>n=e)),o=new Set,s=new Set,c=new Set,l=new Set,d=new Set,u=async r=>{const n=new PI(e,t);n.isRebuild=i,n.requiresFullBuild=!i,n.dirsAdded=Array.from(o.keys()).sort(),n.dirsDeleted=Array.from(s.keys()).sort(),n.filesAdded=Array.from(c.keys()).sort(),n.filesUpdated=Array.from(l.keys()).sort(),n.filesDeleted=Array.from(d.keys()).sort(),n.filesChanged=(e=>V([...e.filesUpdated,...e.filesAdded,...e.filesDeleted]).sort())(n),n.scriptsAdded=(e=>e.filesAdded.filter(dL).map(sL))(n),n.scriptsDeleted=(e=>e.filesDeleted.filter(dL).map(sL))(n),n.hasScriptChanges=(e=>e.filesChanged.some(dL))(n),n.hasStyleChanges=(e=>e.filesChanged.some(pL))(n),n.hasHtmlChanges=((e,t)=>!!t.filesChanged.some((e=>e.toLowerCase().endsWith(".html")))||t.filesChanged.some((t=>t===e.srcIndexHtml)))(e,n),n.hasServiceWorkerChanges=((e,t)=>!(e.devMode&&!e.flags.serviceWorker)&&e.outputTargets.filter(ju).filter((e=>e.serviceWorker&&e.serviceWorker.swSrc)).some((e=>t.filesChanged.some((t=>!!e.serviceWorker&&He(t).toLowerCase()===He(e.serviceWorker.swSrc).toLowerCase())))))(e,n),o.clear(),s.clear(),c.clear(),l.clear(),d.clear(),hL(t,n),n.start();const a=await oL(e,t,n,r);a&&!a.hasError&&(i=!0)},_=new Map,f=new Map,m=(n,i)=>{if(r&&!_L(e,n)){switch(yL(e,t,n,i),i){case"dirAdd":o.add(n);break;case"dirDelete":s.add(n);break;case"fileAdd":c.add(n);break;case"fileUpdate":l.add(n);break;case"fileDelete":d.add(n)}e.logger.debug(`onFsChange ${i}: ${n}`),r.rebuild()}},g=(e,t)=>{null!=t&&m(e,t)},h=async()=>{_.forEach((e=>e.close())),f.forEach((e=>e.close())),_.clear(),f.clear(),r&&(r.program.close(),r=null);const e={exitCode:0};return n(e),e};return t.addWatchFile=t=>{!G(t)||f.has(t)||_L(e,t)||f.set(t,e.sys.watchFile(t,m))},t.addWatchDir=(t,r)=>{!G(t)||_.has(t)||_L(e,t)||_.set(t,e.sys.watchDirectory(t,g,r))},e.sys.addDestory(h),{async start(){const n=mL(e,t),i=gL(e,t);return await n,await i,r=await(async(e,t)=>{let r,n,i,a=!1;const o=lp(e),s={...p.sys,setTimeout(t,r){clearInterval(i);const o=n=setInterval((()=>{a||(t(),clearInterval(o),n=i=null)}),e.sys.watchTimeout||r);return o},clearTimeout:e=>clearInterval(e)};e.sys.addDestory((()=>s.clearTimeout(n)));const c=p.createWatchCompilerHost(e.tsconfig,o,s,p.createEmitAndSemanticDiagnosticsBuilderProgram,(t=>{e.logger.debug("watch reportDiagnostic:"+t.messageText)}),(t=>{e.logger.debug(t.messageText)}));return c.afterProgramCreate=async e=>{r=e,a=!0,await t(e),a=!1},{program:p.createWatchProgram(c),rebuild(){r&&!n&&(i=s.setTimeout((()=>c.afterProgramCreate(r)),300))}}})(e,u),a},close:h,on:t.events.on,request:async r=>(async(e,t,r)=>{const n={path:r.path,nodeModuleId:null,nodeModuleVersion:null,nodeResolvedPath:null,cachePath:null,cacheHit:!1,content:"",status:404};try{const i=((e,t)=>{const r={nodeModuleId:null,nodeModuleVersion:null,nodeResolvedPath:null};if(t&&t.includes("~dev-module")&&t.endsWith(".js")){const n=new URL(t,"https://stenciljs.com");let i=He(n.pathname);i=i.substring(0,i.length-3);const a=i.split("@");2===a.length&&(r.nodeModuleId=decodeURIComponent(a[0]),r.nodeModuleVersion=decodeURIComponent(a[1]),r.nodeResolvedPath=n.searchParams.get("p"),r.nodeResolvedPath&&(r.nodeResolvedPath=decodeURIComponent(r.nodeResolvedPath),r.nodeResolvedPath=Ge(e.rootDir,r.nodeResolvedPath)))}return r})(e,r.path);if(Object.assign(n,i),!i.nodeModuleId)return n.content="/* invalid dev module */",n.status=400,n;{if(!i.nodeModuleVersion)return n.content="/* invalid module version */",n.status=400,n;if(!i.nodeResolvedPath)return n.content="/* invalid resolved path */",n.status=400,n;const r=await(async(e,t)=>{if(e.enableCache)for(let r=0;r<10;r++){if("node_modules"===He(t))return!0;if(await e.sys.isSymbolicLink(t))return!1;t=We(t)}return!1})(e,i.nodeResolvedPath);let a=null;if(r){a=((e,t)=>Ge(e.cacheDir,`dev_module_${t.nodeModuleId}_${t.nodeModuleVersion}_0.log`))(e,i);const t=await e.sys.readFile(a);if("string"==typeof t)return n.content=t,n.cachePath=a,n.cacheHit=!0,n.status=200,n}await(async(e,t,r,n)=>{const i=new PI(e,t);try{const a=Xw(e,t,i,{id:r.nodeModuleId,platform:"client",inputs:{index:r.nodeResolvedPath}}),o=await DN(a),s={banner:Ie(e),format:"es"};if(r.nodeModuleId){const t=Xe(e.rootDir,r.nodeResolvedPath);s.intro=`/**\n * Dev Node Module: ${r.nodeModuleId}, v${r.nodeModuleVersion}\n * Entry: ${t}\n * DEVELOPMENT PURPOSES ONLY!!\n */`,a.input=r.nodeResolvedPath}const c=await o.generate(s);i.hasError?(n.status=500,n.content=`console.error(${JSON.stringify(i.diagnostics)})`):c&&c.output&&c.output.length>0&&(n.content=c.output[0].code,n.status=200)}catch(e){n.status=500;const t=e instanceof Error?e.stack:e+"";n.content=`console.error(${JSON.stringify(t)})`}})(e,t,i,n),200===n.status&&r&&(n.cachePath=a,(async(e,t)=>{try{await e.sys.createDir(e.cacheDir),e.sys.writeFile(t.cachePath,t.content)}catch(e){console.error(e)}})(e,n))}}catch(e){e&&(e instanceof Error&&e.stack?n.content=`/*\n${e.stack}\n*/`:n.content=`/*\n${e}\n*/`),n.status=500}return n})(e,t,r)}},mL=async(e,t)=>{(await t.fs.readdir(e.srcDir,{recursive:!0,excludeDirNames:[".cache",".git",".github",".stencil",".vscode","node_modules"],excludeExtensions:[".md",".markdown",".txt",".spec.ts",".spec.tsx",".e2e.ts",".e2e.tsx",".gitignore",".editorconfig"]})).filter((({isFile:e})=>e)).forEach((({absPath:e})=>t.addWatchFile(e))),t.addWatchDir(e.srcDir,!0)},gL=async(e,t)=>{(await t.fs.readdir(e.rootDir,{recursive:!1,excludeDirNames:[".cache",".git",".github",".stencil",".vscode","node_modules"]})).filter((({isFile:e})=>e)).forEach((({absPath:e})=>t.addWatchFile(e)))},hL=(e,t)=>{(t.dirsAdded.length>0||t.dirsDeleted.length>0||t.filesUpdated.length>0||t.filesAdded.length>0||t.filesDeleted.length>0)&&e.events.emit("fsChange",{dirsAdded:t.dirsAdded.slice(),dirsDeleted:t.dirsDeleted.slice(),filesUpdated:t.filesUpdated.slice(),filesAdded:t.filesAdded.slice(),filesDeleted:t.filesDeleted.slice()})},yL=(e,t,r,n)=>{if(t.fs.clearFileCache(r),t.changedFiles.add(r),"fileDelete"===n)t.moduleMap.delete(r);else if("dirDelete"===n){const n=Ye("/");t.moduleMap.forEach(((i,a)=>{let o=We(a);for(let i=0;i<50&&o!==e.rootDir&&o!==n;i++){if(o===r){t.fs.clearFileCache(a),t.moduleMap.delete(a),t.changedFiles.add(a);break}o=We(o)}}))}};class vL{constructor(e,t){this.config=e,this.cacheFs=t,this.failed=0,this.skip=!1,this.sys=e.sys,this.logger=e.logger}async initCacheDir(){if(!this.config._isTesting&&this.config.cacheDir){if(!this.config.enableCache||!this.cacheFs)return this.config.logger.info("cache optimizations disabled"),this.clearDiskCache(),void 0;this.config.logger.debug(`cache enabled, cacheDir: ${this.config.cacheDir}`);try{const e=Ge(this.config.cacheDir,"_README.log");await this.cacheFs.writeFile(e,SL)}catch(e){this.logger.error(`Cache, initCacheDir: ${e}`),this.config.enableCache=!1}}}async get(e){if(!this.config.enableCache||this.skip)return null;if(this.failed>=bL)return this.skip||(this.skip=!0,this.logger.debug(`cache had ${this.failed} failed ops, skip disk ops for remander of build`)),null;let t;try{t=await this.cacheFs.readFile(this.getCacheFilePath(e)),this.failed=0,this.skip=!1}catch(e){this.failed++,t=null}return t}async put(e,t){if(!this.config.enableCache)return!1;let r;try{await this.cacheFs.writeFile(this.getCacheFilePath(e),t),r=!0}catch(e){this.failed++,r=!1}return r}async has(e){return"string"==typeof await this.get(e)}async createKey(e,...t){return this.config.enableCache?e+"_"+await this.sys.generateContentHash(JSON.stringify(t),32):e+9999999*Math.random()}async commit(){this.config.enableCache&&(this.skip=!1,this.failed=0,await this.cacheFs.commit(),await this.clearExpiredCache())}clear(){null!=this.cacheFs&&this.cacheFs.clearCache()}async clearExpiredCache(){if(null==this.cacheFs||null==this.sys.cacheStorage)return;const e=Date.now(),t=await this.sys.cacheStorage.get(DL);if(null!=t){if(e-t<EL)return;const r=this.cacheFs.sys,n=await r.readDir(this.config.cacheDir),i=n.map((e=>Ge(this.config.cacheDir,e)));let a=0;const o=i.map((async t=>{const n=(await r.stat(t)).mtimeMs;e-n>xL&&(await r.removeFile(t),a++)}));await Promise.all(o),this.logger.debug(`clearExpiredCache, cachedFileNames: ${n.length}, totalCleared: ${a}`)}this.logger.debug("clearExpiredCache, set last clear"),await this.sys.cacheStorage.set(DL,e)}async clearDiskCache(){null!=this.cacheFs&&await this.cacheFs.access(this.config.cacheDir)&&(await this.cacheFs.remove(this.config.cacheDir),await this.cacheFs.commit())}getCacheFilePath(e){return Ge(this.config.cacheDir,e)+".log"}getMemoryStats(){return null!=this.cacheFs?this.cacheFs.getMemoryStats():null}}const bL=100,EL=864e5,xL=7*EL,DL="last_clear_expired_cache",SL='# Stencil Cache Directory\n\nThis directory contains files which the compiler has\ncached for faster builds. To disable caching, please set\n"enableCache: false" within the stencil config.\n\nTo change the cache directory, please update the\n"cacheDir" property within the stencil config.\n',TL=(e={})=>({task:null,args:[],knownArgs:[],unknownArgs:[],...e}),CL=e=>{const t=new Map,r=new Map,n=async(e,r={})=>{e=me(e);const n=[];if(!0===r.inMemoryOnly){let i=e;i.endsWith("/")||(i+="/");const o=e.split("/");t.forEach(((t,i)=>{if(!i.startsWith(e))return;const s=i.split("/");if((s.length===o.length+1||r.recursive&&s.length>o.length)&&t.exists){const e={absPath:i,relPath:s[o.length],isDirectory:t.isDirectory,isFile:t.isFile};a(r,e)||n.push(e)}}))}else await i(e,e,r,n);return n.sort(((e,t)=>e.absPath<t.absPath?-1:e.absPath>t.absPath?1:0))},i=async(t,r,n,o)=>{const c=await e.readDir(r);if(c.length>0){const e=m(r);e.exists=!0,e.isFile=!1,e.isDirectory=!0,await Promise.all(c.map((async e=>{const r=me(e),c=me(Xe(t,r)),l=await s(r),d={absPath:r,relPath:c,isDirectory:l.isDirectory,isFile:l.isFile};a(n,d)||(o.push(d),!0===n.recursive&&!0===l.isDirectory&&await i(t,r,n,o))})))}},a=(e,t)=>{if(t.isDirectory){if(Array.isArray(e.excludeDirNames)){const r=He(t.absPath);if(e.excludeDirNames.some((e=>r===e)))return!0}}else if(Array.isArray(e.excludeExtensions)){const r=t.relPath.toLowerCase();if(e.excludeExtensions.some((e=>r.endsWith(e))))return!0}return!1},o=async e=>{const t=m(e);t.queueWriteToDisk||(t.queueDeleteFromDisk=!0)},s=async t=>{const r=m(t);if("boolean"!=typeof r.isDirectory||"boolean"!=typeof r.isFile){const n=await e.stat(t);n.error?r.exists=!1:(r.exists=!0,n.isFile?(r.isFile=!0,r.isDirectory=!1,r.size=n.size):n.isDirectory?(r.isFile=!1,r.isDirectory=!0,r.size=n.size):(r.isFile=!1,r.isDirectory=!1,r.size=null))}return{exists:!!r.exists,isFile:!!r.isFile,isDirectory:!!r.isDirectory,size:"number"==typeof r.size?r.size:0}},c=t=>{const r=m(t);if("boolean"!=typeof r.isDirectory||"boolean"!=typeof r.isFile){const n=e.statSync(t);n.error?r.exists=!1:(r.exists=!0,n.isFile?(r.isFile=!0,r.isDirectory=!1,r.size=n.size):n.isDirectory?(r.isFile=!1,r.isDirectory=!0,r.size=n.size):(r.isFile=!1,r.isDirectory=!1,r.size=null))}return{exists:!!r.exists,isFile:!!r.isFile,isDirectory:!!r.isDirectory,size:r.size}},l=async(t,n,i)=>{if("string"!=typeof t)throw new Error(`writeFile, invalid filePath: ${t}`);if("string"!=typeof n)throw new Error(`writeFile, invalid content: ${t}`);const a={ignored:!1,changedContent:!1,queuedWrite:!1};if(!0===kL(t))return a.ignored=!0,a;const o=m(t);if(o.exists=!0,o.isFile=!0,o.isDirectory=!1,o.queueDeleteFromDisk=!1,"string"==typeof o.fileText?a.changedContent=o.fileText.replace(/\r/g,"")!==n.replace(/\r/g,""):a.changedContent=!0,o.fileText=n,a.queuedWrite=!1,null!=i&&("string"==typeof i.outputTargetType&&r.set(t,i.outputTargetType),!1===i.useCache&&(o.useCache=!1)),null!=i&&!0===i.inMemoryOnly)o.queueWriteToDisk?a.queuedWrite=!0:o.queueWriteToDisk=!1,await d(t,!0);else if(null!=i&&!0===i.immediateWrite){if(a.changedContent||!0!==i.useCache){const r=await e.readFile(t);"string"==typeof r&&(a.changedContent=o.fileText.replace(/\r/g,"")!==r.replace(/\r/g,"")),a.changedContent&&(await d(t,!1),await e.writeFile(t,o.fileText))}}else o.queueWriteToDisk||!0!==a.changedContent||(o.queueWriteToDisk=!0,a.queuedWrite=!0);return a},d=async(e,t)=>{const r=[];for(;"string"==typeof(e=We(e))&&e.length>0&&"/"!==e&&!1===e.endsWith(":/")&&!1===e.endsWith(":\\");)r.push(e);r.reverse(),await u(r,t)},u=async(t,r)=>{const n=[];for(const i of t){const t=m(i);if(!0!==t.exists||!0!==t.isDirectory)try{t.exists=!0,t.isDirectory=!0,t.isFile=!1,r||await e.createDir(i),n.push(i)}catch(e){}}return n},p=async t=>{const r=m(t);if(null==r.fileText)throw new Error(`unable to find item fileText to write: ${t}`);return await e.writeFile(t,r.fileText),!1===r.useCache&&f(t),t},_=e=>{e=me(e),t.forEach(((t,r)=>{const n=Xe(e,r).split("/")[0];n.startsWith(".")||n.startsWith("/")||f(r)}))},f=e=>{e=me(e);const r=t.get(e);null==r||r.queueWriteToDisk||t.delete(e)},m=e=>{e=me(e);let r=t.get(e);return null!=r||t.set(e,r={exists:null,fileText:null,size:null,mtimeMs:null,isDirectory:null,isFile:null,queueCopyFileToDest:null,queueDeleteFromDisk:null,queueWriteToDisk:null,useCache:null}),r},g=5242880;return{async access(e){const t=m(e);return"boolean"!=typeof t.exists?(await s(e)).exists:t.exists},accessSync(e){const t=m(e);return"boolean"!=typeof t.exists?c(e).exists:t.exists},cancelDeleteDirectoriesFromDisk(e){for(const t of e){const e=m(t);!0===e.queueDeleteFromDisk&&(e.queueDeleteFromDisk=!1)}},cancelDeleteFilesFromDisk(e){for(const t of e){const e=m(t);!0===e.isFile&&!0===e.queueDeleteFromDisk&&(e.queueDeleteFromDisk=!1)}},clearCache(){t.clear()},clearDirCache:_,clearFileCache:f,async commit(){const r=AL(t),n=await u(r.dirsToEnsure,!1),i=await(l=r.filesToWrite,Promise.all(l.map((async e=>{if("string"!=typeof e)throw new Error("unable to writeFile without filePath");return p(e)})))),a=await(c=r.filesToCopy,Promise.all(c.map((async t=>{const[r,n]=t;return await e.copyFile(r,n),[r,n]})))),o=await(async t=>await Promise.all(t.map((async t=>{if("string"!=typeof t)throw new Error("unable to unlink without filePath");return await e.removeFile(t),t}))))(r.filesToDelete),s=await(async t=>{const r=[];for(const n of t)await e.removeDir(n),r.push(n);return r})(r.dirsToDelete);var c,l;return r.filesToDelete.forEach(f),r.dirsToDelete.forEach(_),{filesCopied:a,filesWritten:i,filesDeleted:o,dirsDeleted:s,dirsAdded:n}},async copyFile(e,t){m(e).queueCopyFileToDest=t},async emptyDirs(e){e=e.filter(G).map(me).reduce(((e,t)=>(e.includes(t)||e.push(t),e)),[]);const t=await Promise.all(e.map((e=>n(e,{recursive:!0})))),r=[];for(const e of t)for(const t of e)r.includes(t.absPath)||r.push(t.absPath);r.sort(((e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?1:r>n?-1:0})),await Promise.all(r.map(o)),e.forEach((e=>{const t=m(e);t.isFile=!1,t.isDirectory=!0,t.queueWriteToDisk=!0,t.queueDeleteFromDisk=!1}))},getBuildOutputs(){const e=[];return r.forEach(((t,r)=>{const n=e.find((e=>e.type===t));n?n.files.push(r):e.push({type:t,files:[r]})})),e.forEach((e=>e.files.sort())),e.sort(((e,t)=>e.type<t.type?-1:e.type>t.type?1:0))},getItem:m,getMemoryStats:()=>`data length: ${t.size}`,async readFile(t,r){if(null==r||!0===r.useCache||void 0===r.useCache){const e=m(t);if(e.exists&&"string"==typeof e.fileText)return e.fileText}const n=await e.readFile(t),i=m(t);return"string"==typeof n?n.length<g&&(i.exists=!0,i.isFile=!0,i.isDirectory=!1,i.fileText=n):i.exists=!1,n},readFileSync(t,r){if(null==r||!0===r.useCache||void 0===r.useCache){const e=m(t);if(e.exists&&"string"==typeof e.fileText)return e.fileText}const n=e.readFileSync(t),i=m(t);return"string"==typeof n?n.length<g&&(i.exists=!0,i.isFile=!0,i.isDirectory=!1,i.fileText=n):i.exists=!1,n},readdir:n,async remove(e){const t=await s(e);!0===t.isDirectory?await(async e=>{const t=m(e);t.isFile=!1,t.isDirectory=!0,t.queueWriteToDisk||(t.queueDeleteFromDisk=!0);try{const t=await n(e,{recursive:!0});await Promise.all(t.map((e=>e.relPath.endsWith(".gitkeep")?null:o(e.absPath))))}catch(e){}})(e):!0===t.isFile&&await o(e)},stat:s,statSync:c,sys:e,writeFile:l,writeFiles(e,t){const r=[];return $(e)?e.forEach(((e,n)=>{r.push(l(n,e,t))})):Object.keys(e).map((n=>{r.push(l(n,e[n],t))})),Promise.all(r)}}},AL=e=>{const t={filesToDelete:[],filesToWrite:[],filesToCopy:[],dirsToDelete:[],dirsToEnsure:[]};e.forEach(((e,r)=>{if(!0===e.queueWriteToDisk){if(!0===e.isFile){t.filesToWrite.push(r);const e=me(We(r));t.dirsToEnsure.includes(e)||t.dirsToEnsure.push(e);const n=t.dirsToDelete.indexOf(e);n>-1&&t.dirsToDelete.splice(n,1);const i=t.filesToDelete.indexOf(r);i>-1&&t.filesToDelete.splice(i,1)}else if(!0===e.isDirectory){t.dirsToEnsure.includes(r)||t.dirsToEnsure.push(r);const e=t.dirsToDelete.indexOf(r);e>-1&&t.dirsToDelete.splice(e,1)}}else if(!0===e.queueDeleteFromDisk)e.isDirectory&&!t.dirsToEnsure.includes(r)?t.dirsToDelete.push(r):e.isFile&&!t.filesToWrite.includes(r)&&t.filesToDelete.push(r);else if("string"==typeof e.queueCopyFileToDest){const n=r,i=e.queueCopyFileToDest;t.filesToCopy.push([n,i]);const a=me(We(i));t.dirsToEnsure.includes(a)||t.dirsToEnsure.push(a);const o=t.dirsToDelete.indexOf(a);o>-1&&t.dirsToDelete.splice(o,1);const s=t.filesToDelete.indexOf(i);s>-1&&t.filesToDelete.splice(s,1)}e.queueDeleteFromDisk=!1,e.queueWriteToDisk=!1}));for(let e=0,r=t.dirsToEnsure.length;e<r;e++){const r=t.dirsToEnsure[e].split("/");for(let e=2;e<r.length;e++){const n=r.slice(0,e).join("/");!1===t.dirsToEnsure.includes(n)&&t.dirsToEnsure.push(n)}}t.dirsToEnsure.sort(((e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?-1:r>n?1:e.length<t.length?-1:e.length>t.length?1:0})),t.dirsToDelete.sort(((e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?1:r>n?-1:e.length<t.length?1:e.length>t.length?-1:0}));for(const e of t.dirsToEnsure){const r=t.dirsToDelete.indexOf(e);r>-1&&t.dirsToDelete.splice(r,1)}return t.dirsToDelete=t.dirsToDelete.filter((e=>"/"!==e&&!0!==e.endsWith(":/"))),t.dirsToEnsure=t.dirsToEnsure.filter((t=>{const r=e.get(t);return(null==r||!0!==r.exists||!0!==r.isDirectory)&&"/"!==t&&!t.endsWith(":/")})),t},kL=e=>(e=e.trim().toLowerCase(),NL.some((t=>e.endsWith(t)))),NL=[".ds_store",".gitignore","desktop.ini","thumbs.db"],wL=e=>({optimizeCss:e.handler("optimizeCss"),prepareModule:e.handler("prepareModule"),prerenderWorker:e.handler("prerenderWorker"),transformCssToEsm:e.handler("transformCssToEsm")}),FL=e=>JSON.stringify({compilerOptions:{allowSyntheticDefaultImports:!0,experimentalDecorators:!0,lib:["dom","es2015"],moduleResolution:"node",module:"esnext",target:"es2017",jsx:"react",jsxFactory:"h",jsxFragmentFactory:"Fragment",sourceMap:e.sourceMap,inlineSources:e.sourceMap},include:[Xe(e.rootDir,e.srcDir)]},null,2),PL=(e,t)=>(Je(t)||(t=Ge(e.rootDir,t)),t),IL=(e,t,r,n)=>{var i;if(r){const n=null===(i=e.flags)||void 0===i?void 0:i[r];H(n)&&(e[t]=n)}const a=OL(e,t);"function"==typeof e[a]&&(e[a]=!!e[a]()),H(e[a])?e[t]=e[a]:e[t]=n},OL=(e,t)=>{var r;const n=Object.keys(e);for(const i of n)if(i.toLowerCase()===t.toLowerCase()){if(i!==t)return null===(r=e.logger)||void 0===r?void 0:r.warn(`config "${i}" should be "${t}"`),i;break}return t},ML=(e,t)=>t.filter(wu).map((t=>{let r=t.directivesProxyFile;r&&!Je(r)&&(r=Ge(e.rootDir,r));let n=t.directivesArrayFile;n&&!Je(n)&&(n=Ge(e.rootDir,n));let i=t.directivesUtilsFile;return i&&!Je(i)&&(i=Ge(e.rootDir,i)),{type:"angular",componentCorePackage:t.componentCorePackage,directivesProxyFile:r,directivesArrayFile:n,directivesUtilsFile:i,excludeComponents:t.excludeComponents||[]}})),RL=(e,t)=>t.filter(Tu).map((t=>{var r,n;return{...t,transformAliasedImportPaths:null!==(r=t.transformAliasedImportPaths)&&void 0!==r&&r,dir:PL(e,null!==(n=t.dir)&&void 0!==n?n:"dist/collection")}})),LL=(e,t=[])=>{if(null===e||!1===e)return[];Array.isArray(e)||(e=[]),e=e.slice();for(const r of t)e.every((e=>e.src!==r.src))&&e.push(r);return V(e,(e=>`${e.src}:${e.dest}:${e.keepDirStructure}`))},BL=(e,t)=>{const r="dist";return t.filter(Cu).reduce(((t,n)=>{const i={...n,dir:PL(e,n.dir||Ge(r,"components"))};if(H(i.empty)||(i.empty=!0),H(i.externalRuntime)||(i.externalRuntime=!0),i.generateTypeDeclarations){const n=PL(e,Ge(r,"types"));t.push({type:Xu,dir:i.dir,typesDir:n})}return i.copy=LL(i.copy,[]),i.copy.length>0&&t.push({type:Wu,dir:e.rootDir,copy:[...i.copy]}),t.push(i),t}),[])},UL=(e,t)=>t.filter(Au).reduce(((t,r)=>{const n={...r,dir:PL(e,r.dir||"dist/custom-elements")};return H(n.empty)||(n.empty=!0),H(n.externalRuntime)||(n.externalRuntime=!0),n.copy=LL(n.copy,[]),n.copy.length>0&&t.push({type:Wu,dir:e.rootDir,copy:[...n.copy]}),t.push(n),t}),[]),jL=(e,t,r)=>r.filter(Ou).map((r=>{if(r.validate){const n=[];try{r.validate(e,t)}catch(e){re(n,e)}r.copy&&r.copy.length>0&&e.outputTargets.push({type:Wu,dir:e.rootDir,copy:[...r.copy]}),t.push(...n)}return r})),VL=(e,t)=>t.filter(Su).reduce(((t,r)=>{var n;const i=zL(e,r);t.push(i);const a=e.fsNamespace||"app",o=Ge(i.buildDir,a);if(t.push({type:Qu,esmDir:o,systemDir:e.buildEs5?o:void 0,systemLoaderFile:e.buildEs5?Ge(o,a+".js"):void 0,legacyLoaderFile:Ge(i.buildDir,a+".js"),polyfills:void 0===i.polyfills||!!i.polyfills,isBrowserBuild:!0,empty:i.empty}),t.push({type:Wu,dir:o,copyAssets:"dist",copy:(null!==(n=i.copy)&&void 0!==n?n:[]).concat()}),t.push({type:ep,file:Ge(o,`${e.fsNamespace}.css`)}),t.push({type:Xu,dir:i.dir,typesDir:i.typesDir}),e.buildDist){i.collectionDir&&(t.push({type:Gu,dir:i.dir,collectionDir:i.collectionDir,empty:i.empty,transformAliasedImportPaths:i.transformAliasedImportPathsInCollection}),t.push({type:Wu,dir:i.collectionDir,copyAssets:"collection",copy:[...i.copy,{src:"**/*.svg"},{src:"**/*.js"}]}));const r=Ge(i.dir,"esm"),n=e.buildEs5?Ge(i.dir,"esm-es5"):void 0,a=Ge(i.dir,"cjs");t.push({type:Qu,esmDir:r,esmEs5Dir:n,cjsDir:a,cjsIndexFile:Ge(i.dir,"index.cjs.js"),esmIndexFile:Ge(i.dir,"index.js"),polyfills:!0,empty:i.empty}),t.push({type:Zu,dir:i.esmLoaderPath,esmDir:r,esmEs5Dir:n,cjsDir:a,componentDts:Du(i),empty:i.empty})}return t}),[]),zL=(e,t)=>{var r,n;const i={...t,dir:PL(e,t.dir||HL),buildDir:G(t.buildDir)?t.buildDir:WL,collectionDir:void 0!==t.collectionDir?t.collectionDir:KL,typesDir:t.typesDir||JL,esmLoaderPath:t.esmLoaderPath||GL,copy:LL(null!==(r=t.copy)&&void 0!==r?r:[],[]),polyfills:H(t.polyfills)?t.polyfills:void 0,empty:!H(t.empty)||t.empty,transformAliasedImportPathsInCollection:null!==(n=t.transformAliasedImportPathsInCollection)&&void 0!==n&&n};return Je(i.buildDir)||(i.buildDir=Ge(i.dir,i.buildDir)),i.collectionDir&&!Je(i.collectionDir)&&(i.collectionDir=Ge(i.dir,i.collectionDir)),Je(i.esmLoaderPath)||(i.esmLoaderPath=Ye(i.dir,i.esmLoaderPath)),Je(i.typesDir)||(i.typesDir=Ge(i.dir,i.typesDir)),i},HL="dist",WL="",KL="collection",JL="types",GL="loader",$L=(e,t,r)=>{const n=[];return G(e.flags.docsJson)&&n.push(XL(e,t,{type:"docs-json",file:e.flags.docsJson})),r.filter(Lu).forEach((r=>{n.push(XL(e,t,r))})),(e.flags.docs||"docs"===e.flags.task)&&(r.some(Ru)||n.push(qL(e,{type:"docs-readme"}))),r.filter(Ru).forEach((t=>{n.push(qL(e,t))})),r.filter(Bu).forEach((e=>{n.push(YL(t,e))})),r.filter(Uu).forEach((e=>{n.push(QL(t,e))})),n},qL=(e,t)=>(G(t.dir)||(t.dir=e.srcDir),Je(t.dir)||(t.dir=Ge(e.rootDir,t.dir)),null==t.footer&&(t.footer="*Built with [StencilJS](https://stenciljs.com/)*"),t.strict=!!t.strict,t),XL=(e,t,r)=>(G(r.file)||(Z(t).messageText='docs-json outputTarget missing the "file" option'),r.file=Ge(e.rootDir,r.file),G(r.typesFile)?r.typesFile=Ge(e.rootDir,r.typesFile):null!==r.typesFile&&r.file.endsWith(".json")&&(r.typesFile=r.file.replace(/\.json$/,".d.ts")),r.strict=!!r.strict,r),YL=(e,t)=>(W(t.generator)||(Z(e).messageText='docs-custom outputTarget missing the "generator" function'),t.strict=!!t.strict,t),QL=(e,t)=>(G(t.file)||(Z(e).messageText='docs-vscode outputTarget missing the "file" path'),t),ZL=(e,t)=>{const r=[];if(!t.some(Iu)){const r=t.filter(ju).some((e=>G(e.indexHtml))),n=e.flags.prerender||e.flags.ssr;if(r&&n){let e;const r=t.find(Su);e=null!=r&&G(r.dir)?Ge(r.dir,"hydrate"):"dist/hydrate";const n={type:Yu,dir:e};t.push(n)}}return t.filter(Iu).forEach((t=>{G(t.dir)||(t.dir="hydrate"),Je(t.dir)||(t.dir=Ge(e.rootDir,t.dir)),H(t.empty)||(t.empty=!0),t.external=t.external||[],t.external.push(...Um),r.push(t)})),r},eB=(e,t)=>t.filter(Nu).map((t=>{const r=PL(e,t.dir||Ge("dist",e.fsNamespace));return{type:Qu,esmDir:r,systemDir:e.buildEs5?r:void 0,systemLoaderFile:e.buildEs5?Ge(r,`${e.fsNamespace}.js`):void 0,polyfills:!!t.polyfills,isBrowserBuild:!0,empty:!H(t.empty)||t.empty}})),tB=(e,t)=>{const r=[];return e.flags.stats&&(t.some(Vu)||r.push({type:ap})),r.push(...t.filter(Vu)),r.forEach((t=>{t.file||(t.file="stencil-stats.json"),Je(t.file)||(t.file=Ge(e.rootDir,t.file))})),r},rB=["*.html","**/*.{js,css,json}"],nB=(e,t,r)=>{const n=r.length>0,i=!!e.flags.e2e,a=r.filter(ju);return n&&(!i||r.some(ju)||r.some(Su))||a.push({type:op}),e.flags.prerender&&0===a.length&&(Z(t).messageText='You need at least one "www" output target configured in your stencil.config.ts, when the "--prerender" flag is used'),a.reduce(((r,n)=>{const i=iB(e,n,t);r.push(i);const a=i.buildDir;return r.push({type:Qu,dir:a,esmDir:a,systemDir:e.buildEs5?a:void 0,systemLoaderFile:e.buildEs5?Ge(a,`${e.fsNamespace}.js`):void 0,polyfills:i.polyfills,isBrowserBuild:!0}),r.push({type:Wu,dir:a,copyAssets:"dist"}),r.push({type:Wu,dir:i.appDir,copy:LL(i.copy,[{src:"assets",warn:!1},{src:"manifest.json",warn:!1}])}),r.push({type:ep,file:Ge(a,`${e.fsNamespace}.css`)}),r}),[])},iB=(e,t,r)=>{G(t.baseUrl)||(t.baseUrl="/"),t.baseUrl.endsWith("/")||(t.baseUrl+="/"),t.dir=PL(e,t.dir||"www");const n=new URL(t.baseUrl,"http://localhost/").pathname;return t.appDir=Ge(t.dir,n),(t.appDir.endsWith("/")||t.appDir.endsWith("\\"))&&(t.appDir=t.appDir.substring(0,t.appDir.length-1)),G(t.buildDir)||(t.buildDir="build"),Je(t.buildDir)||(t.buildDir=Ge(t.appDir,t.buildDir)),G(t.indexHtml)||(t.indexHtml="index.html"),Je(t.indexHtml)||(t.indexHtml=Ge(t.appDir,t.indexHtml)),H(t.empty)||(t.empty=!0),((e,t,r)=>{if(e.flags.ssr||e.flags.prerender||"prerender"===e.flags.task){r.baseUrl=me(r.baseUrl),r.baseUrl.startsWith("http://")||r.baseUrl.startsWith("https://")||(Z(t).messageText='When prerendering, the "baseUrl" output target config must be a full URL and start with either "http://" or "https://". The config can be updated in the "www" output target within the stencil config.');try{new URL(r.baseUrl)}catch(e){Z(t).messageText=`invalid "baseUrl": ${e}`}r.baseUrl.endsWith("/")||(r.baseUrl+="/"),G(r.prerenderConfig)&&(Je(r.prerenderConfig)||(r.prerenderConfig=Ge(e.rootDir,r.prerenderConfig)))}})(e,r,t),((e,t)=>{if(!1!==t.serviceWorker){if(e.devMode&&!e.flags.serviceWorker)return t.serviceWorker=null,void 0;if(null===t.serviceWorker)return t.serviceWorker=null,void 0;if(!0===t.serviceWorker)t.serviceWorker={};else if(!t.serviceWorker&&e.devMode)return t.serviceWorker=null,void 0;"object"!=typeof t.serviceWorker&&(t.serviceWorker={}),Array.isArray(t.serviceWorker.globPatterns)||("string"==typeof t.serviceWorker.globPatterns?t.serviceWorker.globPatterns=[t.serviceWorker.globPatterns]:"string"!=typeof t.serviceWorker.globPatterns&&(t.serviceWorker.globPatterns=rB.slice())),"string"!=typeof t.serviceWorker.globDirectory&&(t.serviceWorker.globDirectory=t.appDir),"string"==typeof t.serviceWorker.globIgnores&&(t.serviceWorker.globIgnores=[t.serviceWorker.globIgnores]),t.serviceWorker.globIgnores=t.serviceWorker.globIgnores||[],((e,t)=>{t.push("**/host.config.json","**/*.system.entry.js","**/*.system.js",`**/${e.fsNamespace}.js`,`**/${e.fsNamespace}.esm.js`,`**/${e.fsNamespace}.css`)})(e,t.serviceWorker.globIgnores),t.serviceWorker.dontCacheBustURLsMatching=/p-\w{8}/,G(t.serviceWorker.swSrc)&&!Je(t.serviceWorker.swSrc)&&(t.serviceWorker.swSrc=Ge(e.rootDir,t.serviceWorker.swSrc)),G(t.serviceWorker.swDest)||(t.serviceWorker.swDest=Ge(t.appDir,"sw.js")),Je(t.serviceWorker.swDest)||(t.serviceWorker.swDest=Ge(t.appDir,t.serviceWorker.swDest))}})(e,t),void 0===t.polyfills&&(t.polyfills=!0),t.polyfills=!!t.polyfills,t},aB={inputOptions:{},outputOptions:{}},oB=(e,t)=>{e.includes(t)||e.push(t)},sB=[".vscode",".stencil","node_modules"],cB=(e={},t)=>{var r,n,i,a;const o=Object.assign({},e),s=[],c=t.logger||o.logger||_t(),l={...o,flags:JSON.parse(JSON.stringify(o.flags||{})),logger:c,outputTargets:null!==(r=o.outputTargets)&&void 0!==r?r:[],rootDir:"string"==typeof o.rootDir?o.rootDir:"/",sys:null!==(i=null!==(n=o.sys)&&void 0!==n?n:t.sys)&&void 0!==i?i:Yr({logger:c}),testing:null!==(a=o.testing)&&void 0!==a?a:{}};return l.flags.prod?l.devMode=!1:l.flags.dev?l.devMode=!0:H(l.devMode)||(l.devMode=lB),l.extras=l.extras||{},l.extras.appendChildSlotFix=!!l.extras.appendChildSlotFix,l.extras.cloneNodeFix=!!l.extras.cloneNodeFix,l.extras.cssVarsShim=!!l.extras.cssVarsShim,l.extras.dynamicImportShim=!!l.extras.dynamicImportShim,l.extras.lifecycleDOMEvents=!!l.extras.lifecycleDOMEvents,l.extras.safari10=!!l.extras.safari10,l.extras.scriptDataOpts=!!l.extras.scriptDataOpts,l.extras.shadowDomShim=!!l.extras.shadowDomShim,l.extras.slotChildNodesFix=!!l.extras.slotChildNodesFix,l.extras.initializeNextTick=!!l.extras.initializeNextTick,l.extras.tagNameTransform=!!l.extras.tagNameTransform,l.buildEs5=!0===l.buildEs5||!l.devMode&&"prod"===l.buildEs5,IL(l,"minifyCss",null,!l.devMode),IL(l,"minifyJs",null,!l.devMode),IL(l,"sourceMap",null,void 0!==l.sourceMap&&l.sourceMap),IL(l,"watch","watch",!1),IL(l,"buildDocs","docs",!l.devMode),IL(l,"buildDist","esm",!l.devMode||l.buildEs5),IL(l,"profile","profile",l.devMode),IL(l,"writeLog","log",!1),IL(l,"buildAppCore",null,!0),IL(l,"autoprefixCss",null,l.buildEs5),IL(l,"validateTypes",null,!l._isTesting),IL(l,"allowInlineScripts",null,!0),G(l.taskQueue)||(l.taskQueue="async"),H(l.hashFileNames)||(l.hashFileNames=!l.devMode),K(l.hashedFileNameLength)||(l.hashedFileNameLength=dB),l.hashedFileNameLength<uB&&(Z(s).messageText=`validatedConfig.hashedFileNameLength must be at least ${uB} characters`),l.hashedFileNameLength>pB&&(Z(s).messageText=`validatedConfig.hashedFileNameLength cannot be more than ${pB} characters`),l.env||(l.env={}),((e,t)=>{e.namespace=G(e.namespace)?e.namespace:"App",e.namespace=e.namespace.trim();const r=e.namespace.replace(/(\w)|(\-)|(\$)/g,"");""!==r&&(Z(t).messageText=`Namespace "${e.namespace}" contains invalid characters: ${r}`),e.namespace.length<3&&(Z(t).messageText=`Namespace "${e.namespace}" must be at least 3 characters`),/^\d+$/.test(e.namespace.charAt(0))&&(Z(t).messageText=`Namespace "${e.namespace}" cannot have a number for the first character`),"-"===e.namespace.charAt(0)&&(Z(t).messageText=`Namespace "${e.namespace}" cannot have a dash for the first character`),"-"===e.namespace.charAt(e.namespace.length-1)&&(Z(t).messageText=`Namespace "${e.namespace}" cannot have a dash for the last character`),G(e.fsNamespace)||(e.fsNamespace=e.namespace.toLowerCase().trim()),e.namespace.includes("-")&&(e.namespace=R(e.namespace))})(l,s),(e=>{"string"!=typeof e.rootDir&&(e.rootDir="/"),"string"!=typeof e.srcDir&&(e.srcDir="src"),Je(e.srcDir)||(e.srcDir=Ge(e.rootDir,e.srcDir)),"string"!=typeof e.cacheDir&&(e.cacheDir=".stencil"),Je(e.cacheDir)||(e.cacheDir=Ge(e.rootDir,e.cacheDir)),"string"!=typeof e.srcIndexHtml&&(e.srcIndexHtml=Ge(e.srcDir,"index.html")),Je(e.srcIndexHtml)||(e.srcIndexHtml=Ge(e.rootDir,e.srcIndexHtml)),"string"!=typeof e.globalScript||Je(e.globalScript)||Je(e.globalScript)||(e.globalScript=Ge(e.rootDir,e.globalScript)),"string"==typeof e.globalStyle&&(Je(e.globalStyle)||(e.globalStyle=Ge(e.rootDir,e.globalStyle))),e.writeLog&&("string"!=typeof e.buildLogFilePath&&(e.buildLogFilePath="stencil-build.log"),Je(e.buildLogFilePath)||(e.buildLogFilePath=Ge(e.rootDir,e.buildLogFilePath))),e.packageJsonFilePath=Ge(e.rootDir,"package.json")})(l),((e,t)=>{const r=(e.outputTargets||[]).slice();r.forEach((e=>{var r;r=e.type,sp.includes(r)?e.type===qu&&(ee(t).messageText='dist-custom-elements-bundle is deprecated and will be removed in a future major version release. Use "dist-custom-elements" instead. If "dist-custom-elements" does not meet your needs, please add a comment to https://github.com/ionic-team/stencil/issues/3136.'):Z(t).messageText=`Invalid outputTarget type "${e.type}". Valid outputTarget types include: ${sp.map((e=>`"${e}"`)).join(", ")}`})),e.outputTargets=[...RL(e,r),...BL(e,r),...UL(e,r),...jL(e,t,r),...eB(e,r),...nB(e,t,r),...VL(e,r),...$L(e,t,r),...ML(e,r),...tB(e,r)],e.outputTargets=[...e.outputTargets,...ZL(e,[...r,...e.outputTargets])]})(l,s),((e,t)=>{const r=e.plugins;if(e.rollupPlugins||(e.rollupPlugins={}),!Array.isArray(r))return e.plugins=[],void 0;const n=r.filter((e=>!(!e||"object"!=typeof e||e.pluginType))),i=n.some((e=>"node-resolve"===e.name));n.some((e=>"commonjs"===e.name))&&(ee(t).messageText='Stencil already uses "@rollup/plugin-commonjs", please remove it from your "stencil.config.ts" plugins.\n You can configure the commonjs settings using the "commonjs" property in "stencil.config.ts'),i&&(ee(t).messageText='Stencil already uses "@rollup/plugin-commonjs", please remove it from your "stencil.config.ts" plugins.\n You can configure the commonjs settings using the "commonjs" property in "stencil.config.ts'),e.rollupPlugins.before=[...e.rollupPlugins.before||[],...n.filter((({name:e})=>"node-resolve"!==e&&"commonjs"!==e))],e.plugins=r.filter((e=>!(!e||"object"!=typeof e||!e.pluginType)))})(l,s),(e=>{const t=(e=>{let t=aB;return e&&J(e)?(e.inputOptions&&J(e.inputOptions)&&(t={...t,inputOptions:z(e.inputOptions,["context","moduleContext","treeshake"])}),e.outputOptions&&J(e.outputOptions)&&(t={...t,outputOptions:z(e.outputOptions,["globals"])}),t):t})(e.rollupConfig);e.rollupConfig=t})(l),l.devServer=((e,t)=>{var r,n,i,a,o;if(!1===(null===e.devServer||e.devServer))return;const{flags:s}=e,c={...e.devServer};s.address&&G(s.address)?c.address=s.address:G(c.address)||(c.address="0.0.0.0");let l="http";c.address.toLowerCase().startsWith("http://")?(c.address=c.address.substring(7),l="http"):c.address.toLowerCase().startsWith("https://")&&(c.address=c.address.substring(8),l="https"),c.address=c.address.split("/")[0];const d=c.address.split(":");let u,p,_="localhost"!==d[0]&&isNaN(d[0].split(".")[0])?void 0:3333;if(d.length>1&&(isNaN(d[1])||(c.address=d[0],_=parseInt(d[1],10))),K(s.port)?c.port=s.port:null===c.port||K(c.port)||K(_)&&(c.port=_),void 0===c.reloadStrategy?c.reloadStrategy="hmr":"hmr"!==c.reloadStrategy&&"pageReload"!==c.reloadStrategy&&null!==c.reloadStrategy&&(Z(t).messageText=`Invalid devServer reloadStrategy "${c.reloadStrategy}". Valid configs include "hmr", "pageReload" and null.`),H(c.gzip)||(c.gzip=!0),H(c.openBrowser)||(c.openBrowser=!0),H(c.websocket)||(c.websocket=!0),s.ssr?c.ssr=!0:c.ssr=!!c.ssr,c.ssr){const t=(null!==(r=e.outputTargets)&&void 0!==r?r:[]).find(ju);c.prerenderConfig=null==t?void 0:t.prerenderConfig}G(e.srcIndexHtml)&&(c.srcIndexHtml=me(e.srcIndexHtml)),"http"!==c.protocol&&"https"!==c.protocol&&(c.protocol=c.https?"https":l||"http"),null!==c.historyApiFallback&&!1!==c.historyApiFallback&&(c.historyApiFallback=c.historyApiFallback||{},G(c.historyApiFallback.index)||(c.historyApiFallback.index="index.html"),H(c.historyApiFallback.disableDotRule)||(c.historyApiFallback.disableDotRule=!1)),(!1===s.open||s.prerender&&!e.watch)&&(c.openBrowser=!1);const f=(null!==(n=e.outputTargets)&&void 0!==n?n:[]).find(ju);return f?(p=new URL(null!==(i=f.baseUrl)&&void 0!==i?i:"","http://config.stenciljs.com").pathname,u=null!==(a=f.appDir)&&void 0!==a?a:""):(p="",u=null!==(o=e.rootDir)&&void 0!==o?o:""),G(p)&&""!==p.trim()||(p="/"),p=me(p),p.startsWith("/")||(p="/"+p),p.endsWith("/")||(p+="/"),H(c.logRequests)||(c.logRequests="debug"===e.logLevel),G(c.root)||(c.root=u),G(c.basePath)||(c.basePath=p),G(c.baseUrl)&&(Z(t).messageText='devServer config "baseUrl" has been renamed to "basePath", and should not include a domain or protocol.'),Je(c.root)||(c.root=Ge(e.rootDir,c.root)),c.root=me(c.root),c.excludeHmr?Array.isArray(c.excludeHmr)||(Z(t).messageText="dev server excludeHmr must be an array of glob strings"):c.excludeHmr=[],!e.devMode||e.buildEs5?c.experimentalDevModules=!1:c.experimentalDevModules=!!c.experimentalDevModules,c})(l,s),((e,t)=>{var r;const n=e.testing=Object.assign({},e.testing||{});if(!e.flags.e2e&&!e.flags.spec)return;let i=e.configPath;G(i)?He(i).includes(".")&&(i=We(i)):i=e.rootDir,"boolean"==typeof e.flags.headless?n.browserHeadless=e.flags.headless:"boolean"!=typeof n.browserHeadless&&(n.browserHeadless=!0),n.browserWaitUntil||(n.browserWaitUntil="load"),n.browserArgs=n.browserArgs||[],oB(n.browserArgs,"--font-render-hinting=medium"),oB(n.browserArgs,"--incognito"),e.flags.ci&&(oB(n.browserArgs,"--no-sandbox"),oB(n.browserArgs,"--disable-setuid-sandbox"),oB(n.browserArgs,"--disable-dev-shm-usage"),n.browserHeadless=!0),"string"==typeof n.rootDir?Je(n.rootDir)||(n.rootDir=Ge(e.rootDir,n.rootDir)):n.rootDir=e.rootDir,"string"==typeof e.flags.screenshotConnector&&(n.screenshotConnector=e.flags.screenshotConnector),"string"==typeof n.screenshotConnector?Je(n.screenshotConnector)||(n.screenshotConnector=Ge(e.rootDir,n.screenshotConnector)):n.screenshotConnector=Ge(e.sys.getCompilerExecutingPath(),"..","..","screenshot","local-connector.js"),Array.isArray(n.testPathIgnorePatterns)||(n.testPathIgnorePatterns=sB.map((e=>Ge(n.rootDir,e))),(null!==(r=e.outputTargets)&&void 0!==r?r:[]).filter((e=>(Su(e)||ju(e))&&!!e.dir)).forEach((e=>{var t;null===(t=n.testPathIgnorePatterns)||void 0===t?void 0:t.push(e.dir)}))),"string"!=typeof n.preset?n.preset=Ge(e.sys.getCompilerExecutingPath(),"..","..","testing"):Je(n.preset)||(n.preset=Ge(i,n.preset)),Array.isArray(n.setupFilesAfterEnv)||(n.setupFilesAfterEnv=[]),n.setupFilesAfterEnv.unshift(Ge(e.sys.getCompilerExecutingPath(),"..","..","testing","jest-setuptestframework.js")),G(n.testEnvironment)&&!Je(n.testEnvironment)&&Mr(n.testEnvironment)&&(n.testEnvironment=Ge(i,n.testEnvironment)),"number"==typeof n.allowableMismatchedPixels?n.allowableMismatchedPixels<0&&(Z(t).messageText="allowableMismatchedPixels must be a value that is 0 or greater"):n.allowableMismatchedPixels=100,"number"==typeof n.allowableMismatchedRatio&&(n.allowableMismatchedRatio<0||n.allowableMismatchedRatio>1)&&(Z(t).messageText="allowableMismatchedRatio must be a value ranging from 0 to 1"),"number"==typeof n.pixelmatchThreshold?(n.pixelmatchThreshold<0||n.pixelmatchThreshold>1)&&(Z(t).messageText="pixelmatchThreshold must be a value ranging from 0 to 1"):n.pixelmatchThreshold=.1,void 0===n.testRegex&&(n.testRegex="(/__tests__/.*|(\\.|/)(test|spec|e2e))\\.[jt]sx?$"),Array.isArray(n.testMatch)?delete n.testRegex:"string"==typeof n.testRegex&&delete n.testMatch,"string"!=typeof n.runner&&(n.runner=Ge(e.sys.getCompilerExecutingPath(),"..","..","testing","jest-runner.js")),"number"==typeof n.waitBeforeScreenshot?n.waitBeforeScreenshot<0&&(Z(t).messageText="waitBeforeScreenshot must be a value that is 0 or greater"):n.waitBeforeScreenshot=10,Array.isArray(n.emulate)&&0!==n.emulate.length||(n.emulate=[{userAgent:"default",viewport:{width:600,height:600,deviceScaleFactor:1,isMobile:!1,hasTouch:!1,isLandscape:!1}}])})(l,s),l.hydratedFlag=(e=>{if(null===e.hydratedFlag||!1===e.hydratedFlag)return;const t={...e.hydratedFlag};return G(t.name)&&""!==t.property||(t.name="hydrated"),"attribute"===t.selector?t.selector="attribute":t.selector="class",G(t.property)&&""!==t.property||(t.property="visibility"),G(t.initialValue)||null===t.initialValue||(t.initialValue="hidden"),G(t.hydratedValue)||null===t.initialValue||(t.hydratedValue="inherit"),t})(l),Array.isArray(l.bundles)?l.bundles=U(l.bundles,(e=>e.components.length)):l.bundles=[],(e=>{"number"!=typeof e.maxConcurrentWorkers&&(e.maxConcurrentWorkers=8),"number"==typeof e.flags.maxWorkers?e.maxConcurrentWorkers=e.flags.maxWorkers:e.flags.ci&&(e.maxConcurrentWorkers=4),e.maxConcurrentWorkers=Math.max(Math.min(e.maxConcurrentWorkers,16),0),e.devServer&&(e.devServer.worker=e.maxConcurrentWorkers>0)})(l),IL(l,"devInspector",null,l.devMode),l._isTesting||((e,t)=>{var r;!(null!==(r=e.outputTargets)&&void 0!==r?r:[]).some(Su)||G(e.namespace)&&"app"!==e.namespace.toLowerCase()||(Z(t).messageText='When generating a distribution it is recommended to choose a unique namespace rather than the default setting "App". Please updated the "namespace" config property within the stencil config.')})(l,s),IL(l,"enableCache","cache",!0),Array.isArray(l.watchIgnoredRegex)||null==l.watchIgnoredRegex||(l.watchIgnoredRegex=[l.watchIgnoredRegex]),l.watchIgnoredRegex=(l.watchIgnoredRegex||[]).reduce(((e,t)=>(t instanceof RegExp&&e.push(t),e)),[]),{config:l,diagnostics:s}},lB=!1,dB=8,uB=4,pB=32,_B=async(e,t,r)=>{let n=null;try{if(i){const e=$l(r);t.push(...e.diagnostics),n=e.module}else{let i=await e.readFile(r);if(i=fB(t,i,r),ne(t))return n;n=new Function(`const exports = {}; ${i}; return exports;`)()}}catch(e){re(t,e)}return n},fB=(e,t,r)=>{if(ne(e))return t;const n={fileName:r,compilerOptions:{module:p.ModuleKind.CommonJS,moduleResolution:p.ModuleResolutionKind.NodeJs,esModuleInterop:!0,target:p.ScriptTarget.ES2015,allowJs:!0},reportDiagnostics:!1};return p.transpileModule(t,n).outputText},mB=(e,t)=>{const r=new URL(e.outputTarget.baseUrl,e.devServerHostUrl).pathname.toLowerCase(),n=new URL(t,e.devServerHostUrl).pathname.toLowerCase(),i=r.split("/"),a=n.split("/");let o;o=r===n?rt.basename(e.outputTarget.indexHtml):"index.html";const s=[];for(let e=0;e<a.length;e++){const t=i[e],r=a[e];if("string"!=typeof t||t!==r){if(e===a.length-1){const t=a[e].toLowerCase();if(t.endsWith(".html")||t.endsWith(".htm")){o=a[e];break}}s.push(r)}}return s.push(o),rt.join(e.outputTarget.appDir,...s)},gB=(e,t,r)=>{if(G(t)&&""!==t&&!e.urlsPending.has(t)&&!e.urlsProcessing.has(t)&&!e.urlsCompleted.has(t)&&(e.urlsPending.add(t),e.isDebug)){const n=new URL(t,e.outputTarget.baseUrl).pathname,i=r.startsWith("#")?r:new URL(r,e.outputTarget.baseUrl).pathname;e.config.logger.debug(`prerender queue: ${n} (from ${i})`)}},hB=(e,t)=>{const r=t.urlsPending.values().next();if(!r.done)if(t.urlsProcessing.size>t.maxConcurrency)setTimeout((()=>hB(e,t)));else{const n=r.value;t.urlsPending.delete(n),t.urlsProcessing.add(n),yB(e,t,n),t.urlsProcessing.size<t.maxConcurrency&&t.config.sys.nextTick((()=>hB(e,t)))}0===t.urlsProcessing.size&&0===t.urlsPending.size&&W(t.resolve)&&(t.resolve(),t.resolve=null)},yB=async(e,t,r)=>{let n=r;try{let i;n=new URL(r).pathname,t.isDebug&&(i=t.config.logger.createTimeSpan(`prerender start: ${n}`,!0));const a={appDir:t.outputTarget.appDir,baseUrl:t.outputTarget.baseUrl,buildId:e.buildId,componentGraphPath:t.componentGraphPath,devServerHostUrl:t.devServerHostUrl,hydrateAppFilePath:t.hydrateAppFilePath,isDebug:t.isDebug,prerenderConfigPath:t.prerenderConfigPath,staticSite:t.staticSite,templateId:t.templateId,url:r,writeToFilePath:mB(t,r)},o=await t.prerenderUrlWorker(a);if(t.isDebug){const e=Xe(t.config.rootDir,o.filePath);o.diagnostics.some((e=>"error"===e.level))?i.finish(`prerender failed: ${n}, ${e}`,"red"):i.finish(`prerender finish: ${n}, ${e}`)}if(t.diagnostics.push(...o.diagnostics),Array.isArray(o.anchorUrls))for(const e of o.anchorUrls)gB(t,e,r)}catch(e){re(t.diagnostics,e)}t.urlsProcessing.delete(r),t.urlsCompleted.add(r),e.urls++;const i=t.urlsCompleted.size;t.progressLogger&&i>1&&t.progressLogger.update(` prerendered ${i} urls: ${t.config.logger.dim(n)}`),t.config.sys.nextTick((()=>hB(e,t)))},vB=e=>{const t=[];if("function"==typeof e.prerenderConfig.canonicalUrl)for(const r of e.urlsCompleted){const n=e.prerenderConfig.canonicalUrl(new URL(r));"string"==typeof n&&""!==n.trim()&&t.push(n)}else for(const r of e.urlsCompleted)"string"==typeof r&&t.push(r);return t.sort(bB)},bB=(e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?-1:r>n?1:e<t?-1:e>t?1:0},EB=async(e,t,r,n,i,a,o,s,c)=>{try{const l=n.logger.createTimeSpan("prerendering started"),d=new URL(i.browserUrl),u=d.origin,p=ql(r,c.prerenderConfig),_=Xl(p,d,r);if(n.logger.debug(`prerender hydrate app: ${a}`),n.logger.debug(`prerender dev server: ${u}`),ne(r))return;const f=[],m={prerenderUrlWorker:t=>e.prerenderWorker(t),componentGraphPath:null,config:n,diagnostics:f,devServerHostUrl:u,hydrateAppFilePath:a,isDebug:"debug"===n.logLevel,logCount:0,maxConcurrency:Math.max(20,10*n.maxConcurrentWorkers),outputTarget:c,prerenderConfig:p,prerenderConfigPath:c.prerenderConfig,staticSite:!1,templateId:null,urlsCompleted:new Set,urlsPending:new Set,urlsProcessing:new Set,resolve:null};if(n.flags.ci||m.isDebug||(m.progressLogger=await n.logger.createLineUpdater()),((e,t)=>{const r=[];if(Array.isArray(t.prerenderConfig.entryUrls))for(const e of t.prerenderConfig.entryUrls){const t={href:e};r.push(t)}else{const e={href:t.outputTarget.baseUrl};r.push(e)}for(const n of r)try{new URL(n.href,t.outputTarget.baseUrl)}catch(t){const r=Z(e.diagnostics);return r.header=`Invalid Prerender Entry Url: ${n.href}`,r.messageText="Entry Urls must include the protocol and domain of the site being prerendered.",void 0}const n=new URL(t.outputTarget.baseUrl),i=jl(t.prerenderConfig,e.diagnostics,n,n,r);for(const e of i)gB(t,e,"#entryUrl")})(t,m),0===m.urlsPending.size)return Z(r).messageText="prerendering failed: no urls found in the prerender config",void 0;const g=await(async(e,t,r,n,i,a,o,s)=>{try{let c;if(G(i)||(i=a.indexHtml),W(t.loadTemplate)){const e=t.loadTemplate(i);c=q(e)?await e:e}else c=await e.sys.readFile(i);let l=Tf(c),d=!1;if(t.staticSite?(od(l),d=!0):d=!(e=>!!e.querySelector("script[data-stencil]"))(l),l.documentElement.classList.add("hydrated"),o.inlineExternalStyleSheets&&!n)try{await(async(e,t,r)=>{const n=Array.from(r.querySelectorAll("link[rel=stylesheet]"));0!==n.length&&await Promise.all(n.map((async n=>{const i=n.getAttribute("href");if(!i.startsWith("/")||null!==n.getAttribute("media"))return;const a=Ge(t,i);try{let t=await e.readFile(a);t=(await Tn({input:t})).output;const i=r.createElement("style");i.innerHTML=t,n.parentNode.insertBefore(i,n),n.remove(),i.setAttribute("data-styles",""),n.setAttribute("media","(max-width: 0px)"),n.setAttribute("importance","low"),n.setAttribute("onload","this.media=''"),r.body.appendChild(n)}catch(e){}})))})(e.sys,a.appDir,l)}catch(e){re(r,e)}if(o.minifyScriptElements&&!n)try{await rd(l,!0)}catch(e){re(r,e)}if(o.minifyStyleElements&&!n)try{const t=new URL(a.baseUrl,s.devServerHostUrl);await nd(e.sys,a.appDir,l,t,!0)}catch(e){re(r,e)}if(W(t.beforeSerializeTemplate)){const e=t.beforeSerializeTemplate(l);l=q(e)?await e:e}let u=Zp(l);if(W(t.afterSerializeTemplate)){const e=t.afterSerializeTemplate(u);u=q(e)?await e:e}return{html:u,staticSite:d}}catch(e){re(r,e)}})(n,p,r,m.isDebug,s,c,_,m);if(r.length>0||!g||!G(g.html))return;if(m.templateId=await xB(n,g.html),m.staticSite=g.staticSite,m.componentGraphPath=await DB(n,o,c),await new Promise((e=>{m.resolve=e,n.sys.nextTick((()=>hB(t,m)))})),m.isDebug){const e=f.filter((e=>"debug"===e.level));e.length>0&&n.logger.printDiagnostics(e)}const h=l.duration(),y=await(async e=>{if(null===e.prerenderConfig.sitemapXml)return null;try{"function"!=typeof e.prerenderConfig.sitemapXml&&(e.prerenderConfig.sitemapXml=e=>{const t=[];t.push('<?xml version="1.0" encoding="UTF-8"?>'),t.push('<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">');for(const r of e.urls)t.push(`<url><loc>${r}</loc></url>`);return t.push("</urlset>"),t.join("\n")});const t={urls:vB(e),baseUrl:e.outputTarget.baseUrl,dir:e.outputTarget.appDir},r=e.prerenderConfig.sitemapXml(t);if(null==r)return null;const n={content:null,filePath:null,url:null};if("string"==typeof r?n.content=r:(n.content=r.content,n.filePath=r.filePath),"string"!=typeof n.content)return null;if("string"!=typeof n.filePath&&(n.filePath=Ge(e.outputTarget.appDir,"sitemap.xml")),"string"!=typeof n.url){const t=new URL("sitemap.xml",e.outputTarget.baseUrl);n.url=t.href}return await e.config.sys.writeFile(n.filePath,n.content),n}catch(t){return re(e.diagnostics,t),null}})(m);await(async(e,t)=>{if(null===e.prerenderConfig.robotsTxt)return null;try{"function"!=typeof e.prerenderConfig.robotsTxt&&(e.prerenderConfig.robotsTxt=e=>{const t=["User-agent: *","Disallow:"];return"string"==typeof e.sitemapUrl&&t.push(`Sitemap: ${e.sitemapUrl}`),t.join("\n")});const r={urls:vB(e),baseUrl:e.outputTarget.baseUrl,sitemapUrl:t?t.url:null,dir:e.outputTarget.dir},n=e.prerenderConfig.robotsTxt(r);if(null==n)return null;const i={content:null,filePath:null,url:null};if("string"==typeof n?i.content=n:(i.content=n.content,i.filePath=n.filePath),"string"!=typeof i.content)return null;const a=i.content.replace(/\r/g,"\n").split("\n");if(i.content=a.map((e=>e.trim())).join("\n"),"string"!=typeof i.filePath&&(i.filePath=Ge(e.outputTarget.dir,"robots.txt")),"string"!=typeof i.url){const t=new URL("/robots.txt",e.outputTarget.baseUrl);i.url=t.href}return await e.config.sys.writeFile(i.filePath,i.content),i}catch(t){return re(e.diagnostics,t),null}})(m,y);const v=f.filter((e=>"error"===e.level)),b=f.filter((e=>"runtime"===e.type));if(v.length>0){for(const e of v)e.type="runtime";r.push(...v)}r.push(...b),m.progressLogger&&await m.progressLogger.stop();const E=m.urlsCompleted.size;if(E>1){const e=Math.round(h/E);n.logger.info(`prerendered ${E} urls, averaging ${e} ms per url`)}const x=v.length>0?"failed":"finished",D=v.length>0?"red":"green";l.finish(`prerendering ${x}`,D,!0)}catch(e){re(r,e)}},xB=async(e,t)=>{const r=`prerender-${await e.sys.generateContentHash(t,12)}.html`,n=Ge(e.sys.tmpDirSync(),r);return e.logger.debug(`prerender template: ${n}`),e.sys.writeFileSync(n,t),n},DB=async(e,t,r)=>{if(t){const n=SB(t,r),i=`prerender-component-graph-${await e.sys.generateContentHash(n)}.json`,a=Ge(e.sys.tmpDirSync(),i);return e.sys.writeFileSync(a,n),a}return null},SB=(e,t)=>{const r=Yl(t),n={},i=Object.entries(e);for(const[e,t]of i)n[e]=t.map((e=>Ge(r,e)));return JSON.stringify(n)},TB=(e,t)=>{G(t.file)||(t.file="module.tsx");const r=lu(t.file),n={code:"string"==typeof e?e:"",data:[],diagnostics:[],inputFileExtension:r.ext,inputFilePath:t.file,imports:[],map:null,outputFilePath:null};return{importData:r.data,results:n}},CB={sys:null},AB=e=>{e.sys?CB.sys=e.sys:CB.sys||(CB.sys=i?d("../sys/node/index.js").createNodeSys():Yr());const t={componentExport:NB(e.componentExport,wB,"customelement"),componentMetadata:NB(e.componentMetadata,FB,null),coreImportPath:G(e.coreImportPath)?e.coreImportPath:RN,currentDirectory:G(e.currentDirectory)?e.currentDirectory:CB.sys.getCurrentDirectory(),file:e.file,proxy:NB(e.proxy,IB,"defineproperty"),module:NB(e.module,PB,"esm"),sourceMap:"inline"===e.sourceMap?"inline":!1!==e.sourceMap,style:NB(e.style,OB,"static"),styleImportData:NB(e.styleImportData,MB,"queryparams"),target:NB(e.target,RB,"latest")},r={allowSyntheticDefaultImports:!0,esModuleInterop:!0,sourceMap:!1!==t.sourceMap,isolatedModules:!0,suppressOutputPathCheck:!0,allowNonTsExtensions:!0,noLib:!0,noResolve:!0};G(e.baseUrl)&&(t.baseUrl=e.baseUrl,r.baseUrl=t.baseUrl),e.paths&&(t.paths={...e.paths},r.paths={...t.paths});const n={coreImportPath:t.coreImportPath,componentExport:t.componentExport,componentMetadata:t.componentMetadata,currentDirectory:t.currentDirectory,isolatedModules:!0,module:t.module,proxy:t.proxy,file:t.file,style:t.style,styleImportData:t.styleImportData,target:t.target};return{compileOpts:t,config:{rootDir:t.currentDirectory,srcDir:t.currentDirectory,devMode:!0,minifyCss:!0,minifyJs:!1,_isTesting:!0,validateTypes:!1,enableCache:!1,sys:CB.sys,tsCompilerOptions:r},transformOpts:n}},kB=(e,t,r)=>({file:r.inputFilePath,input:r.code,tag:t&&t.tag,encapsulation:t&&t.encapsulation,mode:t&&t.mode,sourceMap:!1!==e.sourceMap,commentOriginalSelector:!1,minify:!1,autoprefixer:!1,module:e.module,styleImportData:e.styleImportData}),NB=(e,t,r)=>null===e||"null"===e?null:(e=G(e)?e.toLowerCase().trim():null,t.has(e)?e:r),wB=new Set(["customelement","module"]),FB=new Set(["compilerstatic",null]),PB=new Set(["cjs","esm"]),IB=new Set(["defineproperty",null]),OB=new Set(["static"]),MB=new Set(["queryparams"]),RB=new Set(["latest","esnext","es2020","es2019","es2018","es2017","es2016","es2015","es5"]),LB=(e,t,r,n,i,a)=>o=>{let s,c;const l=i=>p.isClassDeclaration(i)?yR(t,n,i,c,a):(p.isImportDeclaration(i)?kR(e,t,r,c,s,i,!a.isolatedModules):p.isCallExpression(i)?nR(c,i):p.isStringLiteral(i)&&fR(c,i),p.visitEachChild(i,l,o));return e=>(s=We(e.fileName),c=((e,t,r)=>{r=me(r);const n=t.moduleMap.get(r);if(null!=n)return n;{const e=We(r),n=Ke(r),i=He(r,n),a={sourceFilePath:r,jsFilePath:Ge(e,i+".js"),cmps:[],coreRuntimeApis:[],collectionName:null,dtsFilePath:null,excludeFromCollection:!1,externalImports:[],hasVdomAttribute:!1,hasVdomXlink:!1,hasVdomClass:!1,hasVdomFunctional:!1,hasVdomKey:!1,hasVdomListener:!1,hasVdomPropOrAttr:!1,hasVdomRef:!1,hasVdomRender:!1,hasVdomStyle:!1,hasVdomText:!1,htmlAttrNames:[],htmlTagNames:[],htmlParts:[],isCollectionDependency:!1,isLegacy:!1,localImports:[],originalCollectionComponentPath:null,originalImports:[],potentialCmpRefs:[],staticSourceFile:null,staticSourceFileText:"",sourceMapPath:null,sourceMapFileText:null};return t.moduleMap.set(r,a),a}})(0,t,e.fileName),(e=>{e.cmps.length=0,e.coreRuntimeApis.length=0,e.collectionName=null,e.dtsFilePath=null,e.excludeFromCollection=!1,e.externalImports.length=0,e.isCollectionDependency=!1,e.localImports.length=0,e.originalCollectionComponentPath=null,e.originalImports.length=0,e.hasVdomXlink=!1,e.hasVdomAttribute=!1,e.hasVdomClass=!1,e.hasVdomFunctional=!1,e.hasVdomKey=!1,e.hasVdomListener=!1,e.hasVdomRef=!1,e.hasVdomRender=!1,e.hasVdomStyle=!1,e.hasVdomText=!1,e.htmlAttrNames.length=0,e.htmlTagNames.length=0,e.potentialCmpRefs.length=0})(c),null!=i?(c.isCollectionDependency=!0,c.collectionName=i.collectionName,i.moduleFiles.push(c)):(c.isCollectionDependency=!1,c.collectionName=null),l(e))},BB=(e,r,n,i)=>{const a=((e,t,r)=>{e.logger||(e={...e,logger:_t()});const n=new Eu,i=new PI(e,n),a={...e.tsCompilerOptions};let o=r.file;o=G(o)?me(o):a.jsx?"module.tsx":"module.ts";const s={sourceFilePath:o,code:null,map:null,diagnostics:[],moduleFile:null};"cjs"===r.module?a.module=p.ModuleKind.CommonJS:a.module=p.ModuleKind.ESNext,a.target=(e=>{const t=e.target&&e.target.toUpperCase();return K(p.ScriptTarget[t])?p.ScriptTarget[t]:p.ScriptTarget.Latest})(r),(o.endsWith(".tsx")||o.endsWith(".jsx"))&&null==a.jsx&&(a.jsx=p.JsxEmit.React),null==a.jsx||G(a.jsxFactory)||(a.jsxFactory="h"),null==a.jsx||G(a.jsxFragmentFactory)||(a.jsxFragmentFactory="Fragment"),a.paths&&!G(a.baseUrl)&&(a.baseUrl=".");const c=p.createSourceFile(o,t,a.target),l={getSourceFile(e){return me(e)===me(o)?c:void 0},writeFile(e,t){e.endsWith(".js.map")?s.map=t:e.endsWith(".js")&&(s.code=t)},getDefaultLibFileName(){return"lib.d.ts"},useCaseSensitiveFileNames(){return!1},getCanonicalFileName(e){return e},getCurrentDirectory(){return r.currentDirectory||u()},getNewLine(){return p.sys.newLine||"\n"},fileExists(e){return me(e)===me(o)},readFile(){return""},directoryExists(){return!0},getDirectories(){return[]}},d=p.createProgram([o],a,l),_=d.getTypeChecker(),f=[LB(e,n,i,_,null,r)];"customelement"===r.componentExport||"module"===r.componentExport?f.push(JF(n,r)):f.push(LP(n,r)),d.emit(void 0,void 0,void 0,!1,{before:[qM(e,i.diagnostics,_),GF(r.coreImportPath)],after:f});const m=[...d.getSyntacticDiagnostics()];return e.validateTypes&&m.push(...d.getOptionsDiagnostics()),i.diagnostics.push(...Ce(m)),s.diagnostics.push(...i.diagnostics),s.moduleFile=n.moduleMap.get(s.sourceFilePath),s})(e,i.code,n);if(i.diagnostics.push(...a.diagnostics),"string"==typeof a.code&&(i.code=a.code,i.map=a.map,"inline"===r.sourceMap))try{const e=JSON.parse(a.map);e.file=r.file,e.sources=[r.file],delete e.sourceRoot;const n=i.code.lastIndexOf("//#");i.code=i.code.slice(0,n)+(o=JSON.stringify(e),`//# sourceMappingURL=data:application/json;charset=utf-8;base64,${t.from(o,"utf8").toString("base64")}`)}catch(e){console.error(e)}var o;G(a.sourceFilePath)&&(i.inputFilePath=a.sourceFilePath);const s=a.moduleFile;s&&(i.outputFilePath=s.jsFilePath,s.cmps.forEach((e=>{i.data.push(oR(e))})),s.originalImports.forEach((e=>{i.imports.push({path:e})})))},UB=e=>{e.code=jv(JSON.parse(e.code),{preferConst:!0,compact:!1,indent:" "}),e.map={mappings:""}},jB=e=>["tsx","ts","mjs","jsx","js"].includes(e);s&&(e=>{let t=!1;const r=Promise.resolve(),n=[],i=()=>{t=!1,self.postMessage(n),n.length=0},a=e=>{n.push(e),t||(t=!0,r.then(i))},o=(e,t)=>{const r={stencilId:e,stencilRtnValue:null,stencilRtnError:"Error"};G(t)?r.stencilRtnError+=": "+t:t&&(t.stack?r.stencilRtnError+=": "+t.stack:t.message&&(r.stencilRtnError+=": "+t.message)),a(r)},s=async t=>{if(t&&K(t.stencilId))try{const r={stencilId:t.stencilId,stencilRtnValue:await e(t),stencilRtnError:null};a(r)}catch(e){o(t.stencilId,e)}};self.onmessage=e=>{const t=e.data;if(Array.isArray(t))for(const e of t)s(e)},self.onerror=e=>{o(-1,e)}})(bu(Yr())),e.buildId="20221205164801",e.createCompiler=async e=>{const t=(e=>{var t,r,n,i,a;const o=null!==(t=e.logger)&&void 0!==t?t:_t(),s={...e,flags:TL(null!==(r=e.flags)&&void 0!==r?r:{}),logger:o,outputTargets:null!==(n=e.outputTargets)&&void 0!==n?n:[],rootDir:null!==(i=e.rootDir)&&void 0!==i?i:"/",sys:null!==(a=e.sys)&&void 0!==a?a:Yr({logger:o}),testing:null!=e?e:{}};return nt(s.sys.platformPath),s.flags.debug||s.flags.verbose?s.logLevel="debug":s.flags.logLevel?s.logLevel=s.flags.logLevel:"string"!=typeof s.logLevel&&(s.logLevel="info"),s.logger.setLevel(s.logLevel),s})(e),r=t.sys,n=new Eu;W(t.sys.setupCompiler)&&t.sys.setupCompiler({ts:p}),(e=>{const t=St;Object.assign(t.__sys,e)})(r),n.fs=CL(r),n.cache=new vL(t,CL(r)),await n.cache.initCacheDir(),r.resolveModuleId=e=>qr(r,n.fs,e),n.worker=(e=>{if(W(e.sys.createWorkerController)&&e.maxConcurrentWorkers>0&&e.sys.hardwareConcurrency>1){const t=e.sys.createWorkerController(e.maxConcurrentWorkers);return e.sys.addDestory((()=>t.destroy())),e.logger.debug(`create workers, maxWorkers: ${t.maxWorkers}`),wL(t)}return e.logger.debug(`no workers, maxConcurrentWorkers: ${e.maxConcurrentWorkers}, hardwareConcurrency: ${e.sys.hardwareConcurrency}`),vu(e.sys)})(t),r.events&&r.events.on(n.events.emit),bw(t,n.fs);const i={build:()=>(async(e,t)=>new Promise((r=>{let n=null;t.events.on("fileUpdate",(r=>{e.logger.debug(`fileUpdate: ${r}`),t.fs.clearFileCache(r)})),(async(e,t)=>{let r,n=!1;const i=lp(e),a={...p.sys,watchFile(){return{close(){}}},watchDirectory(){return{close(){}}},setTimeout(t,i){return r=setInterval((()=>{n||(t(),clearInterval(r))}),e.sys.watchTimeout||i),r},clearTimeout(e){clearInterval(e)}};e.sys.addDestory((()=>a.clearTimeout(r)));const o=p.createWatchCompilerHost(e.tsconfig,i,a,p.createEmitAndSemanticDiagnosticsBuilderProgram,(t=>{e.logger.debug("watch reportDiagnostic:"+t.messageText)}),(t=>{e.logger.debug(t.messageText)}));return o.afterProgramCreate=async e=>{n=!0,await t(e),n=!1},p.createWatchProgram(o)})(e,(async i=>{const a=new PI(e,t);a.isRebuild=!1,a.requiresFullBuild=!0,a.start();const o=await oL(e,t,a,i);null!==o&&(n&&(n.close(),n=null),r(o))})).then((e=>{n=e}))})))(t,n),createWatcher:()=>fL(t,n),async destroy(){n.reset(),n.events.unsubscribeAll(),await r.destroy()},sys:r};return t.logger.printDiagnostics([]),i},e.createPrerenderer=async e=>({start:t=>(async(e,t,r,n,i)=>{const a=Date.now(),o=[],s={buildId:i,diagnostics:o,urls:0,duration:0,average:0},c=e.outputTargets.filter(ju).filter((e=>G(e.indexHtml)));if(G(s.buildId)||(s.buildId=(()=>{let e="abcdefghijklmnopqrstuvwxyz",t="";for(;t.length<8;)t+=e[Math.floor(Math.random()*e.length)],1===t.length&&(e+="0123456789");return t})()),0===c.length)return s;if(G(t)){if(Je(t)||(t=Ge(e.sys.getCurrentDirectory(),t)),!await e.sys.access(t)){const e=Z(o);e.header="Prerender Error",e.messageText=`Unable to open "hydrateAppFilePath": ${t}`}}else{const e=Z(o);e.header="Prerender Error",e.messageText='Build results missing "hydrateAppFilePath"'}if(!ne(o)){let i,a;null==e.sys.createWorkerController||e.maxConcurrentWorkers<1?i=vu(e.sys):(a=e.sys.createWorkerController(e.maxConcurrentWorkers),i=wL(a));const l={...e.devServer};l.openBrowser=!1,l.gzip=!1,l.logRequests=!1,l.reloadStrategy=null;const d=e.sys.getDevServerExecutingPath(),{start:u}=await e.sys.dynamicImport(d),p=await u(l,e.logger);try{await Promise.all(c.map((a=>EB(i,s,o,e,p,t,r,n,a))))}catch(e){re(o,e)}a&&a.destroy(),p&&await p.close()}return s.duration=Date.now()-a,s.urls>0&&(s.average=s.duration/s.urls),s})(e,t.hydrateAppFilePath,t.componentGraph,t.srcIndexHtmlPath,t.buildId)}),e.createSystem=Yr,e.createWorkerContext=vu,e.createWorkerMessageHandler=bu,e.dependencies=[{name:"@stencil/core",version:"2.20.0",main:"compiler/stencil.js",resources:["package.json","compiler/lib.d.ts","compiler/lib.dom.d.ts","compiler/lib.dom.iterable.d.ts","compiler/lib.es2015.collection.d.ts","compiler/lib.es2015.core.d.ts","compiler/lib.es2015.d.ts","compiler/lib.es2015.generator.d.ts","compiler/lib.es2015.iterable.d.ts","compiler/lib.es2015.promise.d.ts","compiler/lib.es2015.proxy.d.ts","compiler/lib.es2015.reflect.d.ts","compiler/lib.es2015.symbol.d.ts","compiler/lib.es2015.symbol.wellknown.d.ts","compiler/lib.es2016.array.include.d.ts","compiler/lib.es2016.d.ts","compiler/lib.es2016.full.d.ts","compiler/lib.es2017.d.ts","compiler/lib.es2017.full.d.ts","compiler/lib.es2017.intl.d.ts","compiler/lib.es2017.object.d.ts","compiler/lib.es2017.sharedmemory.d.ts","compiler/lib.es2017.string.d.ts","compiler/lib.es2017.typedarrays.d.ts","compiler/lib.es2018.asyncgenerator.d.ts","compiler/lib.es2018.asynciterable.d.ts","compiler/lib.es2018.d.ts","compiler/lib.es2018.full.d.ts","compiler/lib.es2018.intl.d.ts","compiler/lib.es2018.promise.d.ts","compiler/lib.es2018.regexp.d.ts","compiler/lib.es2019.array.d.ts","compiler/lib.es2019.d.ts","compiler/lib.es2019.full.d.ts","compiler/lib.es2019.object.d.ts","compiler/lib.es2019.string.d.ts","compiler/lib.es2019.symbol.d.ts","compiler/lib.es2020.bigint.d.ts","compiler/lib.es2020.d.ts","compiler/lib.es2020.date.d.ts","compiler/lib.es2020.full.d.ts","compiler/lib.es2020.intl.d.ts","compiler/lib.es2020.number.d.ts","compiler/lib.es2020.promise.d.ts","compiler/lib.es2020.sharedmemory.d.ts","compiler/lib.es2020.string.d.ts","compiler/lib.es2020.symbol.wellknown.d.ts","compiler/lib.es2021.d.ts","compiler/lib.es2021.full.d.ts","compiler/lib.es2021.intl.d.ts","compiler/lib.es2021.promise.d.ts","compiler/lib.es2021.string.d.ts","compiler/lib.es2021.weakref.d.ts","compiler/lib.es2022.array.d.ts","compiler/lib.es2022.d.ts","compiler/lib.es2022.error.d.ts","compiler/lib.es2022.full.d.ts","compiler/lib.es2022.intl.d.ts","compiler/lib.es2022.object.d.ts","compiler/lib.es2022.sharedmemory.d.ts","compiler/lib.es2022.string.d.ts","compiler/lib.es5.d.ts","compiler/lib.es6.d.ts","compiler/lib.esnext.d.ts","compiler/lib.esnext.full.d.ts","compiler/lib.esnext.intl.d.ts","compiler/lib.esnext.promise.d.ts","compiler/lib.esnext.string.d.ts","compiler/lib.esnext.weakref.d.ts","compiler/lib.scripthost.d.ts","compiler/lib.webworker.d.ts","compiler/lib.webworker.importscripts.d.ts","compiler/lib.webworker.iterable.d.ts","internal/index.d.ts","internal/index.js","internal/package.json","internal/stencil-ext-modules.d.ts","internal/stencil-private.d.ts","internal/stencil-public-compiler.d.ts","internal/stencil-public-docs.d.ts","internal/stencil-public-runtime.d.ts","mock-doc/index.js","mock-doc/package.json","internal/client/css-shim.js","internal/client/dom.js","internal/client/index.js","internal/client/package.json","internal/client/patch-browser.js","internal/client/patch-esm.js","internal/client/shadow-css.js","internal/hydrate/index.js","internal/hydrate/package.json","internal/hydrate/runner.js","internal/hydrate/shadow-css.js","internal/stencil-core/index.d.ts","internal/stencil-core/index.js"]},{name:"rollup",version:"2.42.3",main:"dist/es/rollup.browser.js"},{name:"terser",version:"5.6.1",main:"dist/bundle.min.js"},{name:"typescript",version:"4.8.4",main:"lib/typescript.js"}],e.loadConfig=async(e={})=>{var t;const r={config:null,diagnostics:[],tsconfig:{path:null,compilerOptions:null,files:null,include:null,exclude:null,extends:null}},n={};try{const i=e.config||{};let a=e.configPath||i.configPath;const o=null!==(t=e.sys)&&void 0!==t?t:Yr(),s=await(async(e,t,r)=>{let n=null;if(G(r)){const i=await _B(e,t,r);if(ne(t))return n;if(!i.config){const e=Z(t);return e.messageText=`Invalid Stencil configuration file "${r}". Missing "config" property.`,e.absFilePath=r,n}n=i.config,n.configPath=me(r)}return n})(o,r.diagnostics,a);if(ne(r.diagnostics))return r;null!==s?(a=s.configPath,n.config={...s,...i},n.config.configPath=a,n.config.rootDir=me(We(a))):(n.config={...i},n.config.configPath=null,n.config.rootDir=me(o.getCurrentDirectory())),n.config.sys=o;const c=cB(n.config,e);if(r.diagnostics.push(...c.diagnostics),ne(r.diagnostics))return r;if(r.config=c.config,r.config.flags.debug||r.config.flags.verbose?r.config.logLevel="debug":r.config.flags.logLevel?r.config.logLevel=r.config.flags.logLevel:"string"!=typeof r.config.logLevel&&(r.config.logLevel="info"),r.config.logger.setLevel(r.config.logLevel),!ne(r.diagnostics)){const t=await(async(e,t,r)=>{var n;const i={path:null,compilerOptions:null,files:null,include:null,exclude:null,extends:null,diagnostics:[]};try{const o=await(async(e,t,r)=>{const n={path:null,content:null};if(G(e.tsconfig)?Je(e.tsconfig)?n.path=e.tsconfig:n.path=Ge(e.rootDir,e.tsconfig):n.path=Ge(e.rootDir,"tsconfig.json"),n.content=await t.readFile(n.path),!G(n.content)){if(!r.initTsConfig)return null;n.path=Ge(e.rootDir,"tsconfig.json"),n.content=FL(e),await t.writeFile(n.path,n.content)}return n.path=me(n.path),n})(e,t,r);if(o){i.path=o.path;const r={...p.sys,readFile(e){return e===i.path?o.content:t.readFileSync(e)},readDirectory(e){return t.readDirSync(e)},fileExists(e){return t.accessSync(e)},onUnRecoverableConfigFileDiagnostic(e){return console.error(e)}},s=p.getParsedCommandLineOfConfigFile(i.path,{},r);if(s.errors&&s.errors.length>0)s.errors.forEach((e=>{const t=Ae(e);"18003"===t.code&&(t.level="warn"),t.absFilePath=i.path,i.diagnostics.push(t)}));else{if(s.raw){const t=Xe(e.rootDir,e.srcDir);if(!((e,t)=>Array.isArray(e)&&e.includes(t))(s.raw.include,t)){const e=ee(i.diagnostics);e.header='tsconfig.json "include" required',e.messageText=`In order for TypeScript to improve watch performance, it's recommended the "tsconfig.json" file should have the "include" property, with at least the app's "${t}" directory listed. For example: "include": ["${t}"]`}if(a=s.raw.include,Array.isArray(a)&&a.includes("stencil.config.ts")){const e=ee(i.diagnostics);e.header="tsconfig.json should not reference stencil.config.ts",e.messageText="stencil.config.ts is not part of the output build, it should not be included."}Array.isArray(s.raw.files)&&(i.files=s.raw.files.slice()),Array.isArray(s.raw.include)&&(i.include=s.raw.include.slice()),Array.isArray(s.raw.exclude)&&(i.exclude=s.raw.exclude.slice()),G(s.raw.extends)&&(i.extends=s.raw.extends)}if(s.options){i.compilerOptions=s.options;const t=null!==(n=i.compilerOptions.target)&&void 0!==n?n:p.ScriptTarget.ES5;[p.ScriptTarget.ES3,p.ScriptTarget.ES5,p.ScriptTarget.ES2015,p.ScriptTarget.ES2016].includes(t)&&(ee(i.diagnostics).messageText='To improve bundling, it is always recommended to set the tsconfig.json “target” setting to "es2017". Note that the compiler will automatically handle transpilation for ES5-only browsers.'),i.compilerOptions.module===p.ModuleKind.ESNext||e._isTesting||(ee(i.diagnostics).messageText="To improve bundling, it is always recommended to set the tsconfig.json “module” setting to “esnext”. Note that the compiler will automatically handle bundling both modern and legacy builds."),i.compilerOptions.sourceMap=e.sourceMap,i.compilerOptions.inlineSources=e.sourceMap}}}else{const t=Z(i.diagnostics);t.header="Missing tsconfig.json",t.messageText=`Unable to load TypeScript config file. Please create a "tsconfig.json" file within the "${e.rootDir}" directory.`}}catch(e){re(i.diagnostics,e)}var a;return i})(r.config,o,e);r.diagnostics.push(...t.diagnostics),r.config.tsconfig=t.path,r.config.tsCompilerOptions=t.compilerOptions,r.tsconfig.path=t.path,r.tsconfig.compilerOptions=JSON.parse(JSON.stringify(t.compilerOptions)),r.tsconfig.files=t.files,r.tsconfig.include=t.include,r.tsconfig.exclude=t.exclude,r.tsconfig.extends=t.extends}}catch(e){re(r.diagnostics,e)}return r},e.nodeRequire=$l,e.optimizeCss=Tn,e.optimizeJs=ed,e.path=rt,e.transpile=async(e,t={})=>{const{importData:r,results:n}=TB(e,t);try{if(jB(n.inputFileExtension)){const{config:e,compileOpts:r,transformOpts:i}=AB(t);bw(e,null),BB(e,r,i,n)}else if("d.ts"===n.inputFileExtension)n.code="";else if("css"===n.inputFileExtension){const e=kB(t,r,n);await(async(e,t)=>{const r=await pu(e);t.code=r.output,t.map=r.map,t.imports=r.imports.map((e=>({path:e.importPath}))),t.diagnostics.push(...r.diagnostics)})(e,n)}else"json"===n.inputFileExtension&&UB(n)}catch(e){re(n.diagnostics,e)}return n},e.transpileSync=(e,t={})=>{const{importData:r,results:n}=TB(e,t);try{if(jB(n.inputFileExtension)){const{config:e,compileOpts:r,transformOpts:i}=AB(t);bw(e,null),BB(e,r,i,n)}else if("d.ts"===n.inputFileExtension)n.code="";else if("css"===n.inputFileExtension){((e,t)=>{const r=(e=>{const t=_u(e);return fu(e,t)})(e);t.code=r.output,t.map=r.map,t.imports=r.imports.map((e=>({path:e.importPath}))),t.diagnostics.push(...r.diagnostics)})(kB(t,r,n),n)}else"json"===n.inputFileExtension&&UB(n)}catch(e){re(n.diagnostics,e)}return n},e.ts=p,e.vermoji="🍁",e.version=dt,e.versions=ut,"undefined"!=typeof module&&module.exports&&(module.exports=e),globalThis.stencil=e}({}); |